From bcfc86c0080fc9a1c2bf39fe1dd5a222ae994230 Mon Sep 17 00:00:00 2001 From: Takeshi NAMAO Date: Fri, 28 Jun 2024 15:00:15 +0900 Subject: [PATCH 1/4] =?UTF-8?q?AudioCodecTypeForm=20=E3=81=AE=20controlId?= =?UTF-8?q?=20=E3=82=92=20audioCodecType=20=E3=81=AB=E7=9B=B4=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGES.md | 4 ++++ src/components/DevtoolsPane/AudioCodecTypeForm.tsx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 06d64fc1..7056811b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -11,6 +11,10 @@ ## develop +- [FIX] AudioCodecTypeForm の `controlId` を `audioCodecType` に直す + - `audioBitRate` となっていた + - @tnamao + ## 2024.1.5 **2024-06-20** diff --git a/src/components/DevtoolsPane/AudioCodecTypeForm.tsx b/src/components/DevtoolsPane/AudioCodecTypeForm.tsx index b282cd44..0925fdb6 100644 --- a/src/components/DevtoolsPane/AudioCodecTypeForm.tsx +++ b/src/components/DevtoolsPane/AudioCodecTypeForm.tsx @@ -19,7 +19,7 @@ export const AudioCodecTypeForm: React.FC = () => { } } return ( - + audioCodecType: Date: Tue, 9 Jul 2024 12:44:36 +0900 Subject: [PATCH 2/4] =?UTF-8?q?sora-js-sdk=20=E3=82=92=202024.1.2=20?= =?UTF-8?q?=E3=81=AB=E4=B8=8A=E3=81=92=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGES.md | 6 + biome.jsonc | 2 +- package.json | 16 +- pnpm-lock.yaml | 617 +++++++++++++++++++++---------------------------- 4 files changed, 278 insertions(+), 363 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 7056811b..b9c537b6 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -11,6 +11,12 @@ ## develop +## 2024.1.6 + +**2024-07-09** + +- [FIX] sora-js-sdk のバージョンを 2024.1.2 に上げる + - @voluntas - [FIX] AudioCodecTypeForm の `controlId` を `audioCodecType` に直す - `audioBitRate` となっていた - @tnamao diff --git a/biome.jsonc b/biome.jsonc index fda708f5..82dc79c0 100644 --- a/biome.jsonc +++ b/biome.jsonc @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.8.0/schema.json", + "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", "organizeImports": { "enabled": true }, diff --git a/package.json b/package.json index 6da2e93c..dd7329ad 100644 --- a/package.json +++ b/package.json @@ -25,26 +25,26 @@ "cleanup": "git clean -ffdx" }, "dependencies": { - "@reduxjs/toolkit": "2.2.5", + "@reduxjs/toolkit": "2.2.6", "@shiguredo/light-adjustment": "2023.2.0", "@shiguredo/noise-suppression": "2022.4.2", "@shiguredo/virtual-background": "2023.2.0", "bootstrap": "5.3.3", "query-string": "9.0.0", "react": "18.3.1", - "react-bootstrap": "2.10.3", + "react-bootstrap": "2.10.4", "react-dom": "18.3.1", "react-draggable": "4.4.6", "react-redux": "9.1.2", "redux": "5.0.1", "redux-logger": "3.0.6", "redux-thunk": "3.1.0", - "sora-js-sdk": "2024.1.1" + "sora-js-sdk": "2024.1.2" }, "devDependencies": { - "@biomejs/biome": "1.8.1", - "@playwright/test": "1.44.1", - "@types/node": "20.14.6", + "@biomejs/biome": "1.8.3", + "@playwright/test": "1.45.1", + "@types/node": "20.14.10", "@types/react": "18.3.3", "@types/react-redux": "7.1.33", "@types/redux-logger": "3.0.13", @@ -52,8 +52,8 @@ "dotenv": "16.4.5", "jsdom": "24.1.0", "next": "14.2.4", - "typescript": "5.4.5", - "vitest": "1.6.0" + "typescript": "5.5.3", + "vitest": "2.0.1" }, "packageManager": "pnpm@9.3.0", "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0eee5d6d..e46ee0b9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: '@reduxjs/toolkit': - specifier: 2.2.5 - version: 2.2.5(react-redux@9.1.2(@types/react@18.3.3)(react@18.3.1)(redux@5.0.1))(react@18.3.1) + specifier: 2.2.6 + version: 2.2.6(react-redux@9.1.2(@types/react@18.3.3)(react@18.3.1)(redux@5.0.1))(react@18.3.1) '@shiguredo/light-adjustment': specifier: 2023.2.0 version: 2023.2.0 @@ -30,8 +30,8 @@ importers: specifier: 18.3.1 version: 18.3.1 react-bootstrap: - specifier: 2.10.3 - version: 2.10.3(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: 2.10.4 + version: 2.10.4(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-dom: specifier: 18.3.1 version: 18.3.1(react@18.3.1) @@ -51,18 +51,18 @@ importers: specifier: 3.1.0 version: 3.1.0(redux@5.0.1) sora-js-sdk: - specifier: 2024.1.1 - version: 2024.1.1 + specifier: 2024.1.2 + version: 2024.1.2 devDependencies: '@biomejs/biome': - specifier: 1.8.1 - version: 1.8.1 + specifier: 1.8.3 + version: 1.8.3 '@playwright/test': - specifier: 1.44.1 - version: 1.44.1 + specifier: 1.45.1 + version: 1.45.1 '@types/node': - specifier: 20.14.6 - version: 20.14.6 + specifier: 20.14.10 + version: 20.14.10 '@types/react': specifier: 18.3.3 version: 18.3.3 @@ -74,7 +74,7 @@ importers: version: 3.0.13 '@vitejs/plugin-react': specifier: 4.3.1 - version: 4.3.1(vite@5.3.1(@types/node@20.14.6)) + version: 4.3.1(vite@5.3.3(@types/node@20.14.10)) dotenv: specifier: 16.4.5 version: 16.4.5 @@ -83,13 +83,13 @@ importers: version: 24.1.0 next: specifier: 14.2.4 - version: 14.2.4(@babel/core@7.24.7)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 14.2.4(@babel/core@7.24.7)(@playwright/test@1.45.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) typescript: - specifier: 5.4.5 - version: 5.4.5 + specifier: 5.5.3 + version: 5.5.3 vitest: - specifier: 1.6.0 - version: 1.6.0(@types/node@20.14.6)(jsdom@24.1.0) + specifier: 2.0.1 + version: 2.0.1(@types/node@20.14.10)(jsdom@24.1.0) packages: @@ -204,55 +204,55 @@ packages: resolution: {integrity: sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==} engines: {node: '>=6.9.0'} - '@biomejs/biome@1.8.1': - resolution: {integrity: sha512-fQXGfvq6DIXem12dGQCM2tNF+vsNHH1qs3C7WeOu75Pd0trduoTmoO7G4ntLJ2qDs5wuw981H+cxQhi1uHnAtA==} + '@biomejs/biome@1.8.3': + resolution: {integrity: sha512-/uUV3MV+vyAczO+vKrPdOW0Iaet7UnJMU4bNMinggGJTAnBPjCoLEYcyYtYHNnUNYlv4xZMH6hVIQCAozq8d5w==} engines: {node: '>=14.21.3'} hasBin: true - '@biomejs/cli-darwin-arm64@1.8.1': - resolution: {integrity: sha512-XLiB7Uu6GALIOBWzQ2aMD0ru4Ly5/qSeQF7kk3AabzJ/kwsEWSe33iVySBP/SS2qv25cgqNiLksjGcw2bHT3mw==} + '@biomejs/cli-darwin-arm64@1.8.3': + resolution: {integrity: sha512-9DYOjclFpKrH/m1Oz75SSExR8VKvNSSsLnVIqdnKexj6NwmiMlKk94Wa1kZEdv6MCOHGHgyyoV57Cw8WzL5n3A==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [darwin] - '@biomejs/cli-darwin-x64@1.8.1': - resolution: {integrity: sha512-uMTSxVLMfqkBVqyc25hSn83jBbp+wtWjzM/pHFlKXt3htJuw7FErVGW0nmQ9Sxa9vJ7GcqoltLMl28VQRIMYzg==} + '@biomejs/cli-darwin-x64@1.8.3': + resolution: {integrity: sha512-UeW44L/AtbmOF7KXLCoM+9PSgPo0IDcyEUfIoOXYeANaNXXf9mLUwV1GeF2OWjyic5zj6CnAJ9uzk2LT3v/wAw==} engines: {node: '>=14.21.3'} cpu: [x64] os: [darwin] - '@biomejs/cli-linux-arm64-musl@1.8.1': - resolution: {integrity: sha512-UQ8Wc01J0wQL+5AYOc7qkJn20B4PZmQL1KrmDZh7ot0DvD6aX4+8mmfd/dG5b6Zjo/44QvCKcvkFGCMRYuhWZA==} + '@biomejs/cli-linux-arm64-musl@1.8.3': + resolution: {integrity: sha512-9yjUfOFN7wrYsXt/T/gEWfvVxKlnh3yBpnScw98IF+oOeCYb5/b/+K7YNqKROV2i1DlMjg9g/EcN9wvj+NkMuQ==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] - '@biomejs/cli-linux-arm64@1.8.1': - resolution: {integrity: sha512-3SzZRuC/9Oi2P2IBNPsEj0KXxSXUEYRR2kfRF/Ve8QAfGgrt4qnwuWd6QQKKN5R+oYH691qjm+cXBKEcrP1v/Q==} + '@biomejs/cli-linux-arm64@1.8.3': + resolution: {integrity: sha512-fed2ji8s+I/m8upWpTJGanqiJ0rnlHOK3DdxsyVLZQ8ClY6qLuPc9uehCREBifRJLl/iJyQpHIRufLDeotsPtw==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] - '@biomejs/cli-linux-x64-musl@1.8.1': - resolution: {integrity: sha512-fYbP/kNu/rtZ4kKzWVocIdqZOtBSUEg9qUhZaao3dy3CRzafR6u6KDtBeSCnt47O+iLnks1eOR1TUxzr5+QuqA==} + '@biomejs/cli-linux-x64-musl@1.8.3': + resolution: {integrity: sha512-UHrGJX7PrKMKzPGoEsooKC9jXJMa28TUSMjcIlbDnIO4EAavCoVmNQaIuUSH0Ls2mpGMwUIf+aZJv657zfWWjA==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] - '@biomejs/cli-linux-x64@1.8.1': - resolution: {integrity: sha512-AeBycVdNrTzsyYKEOtR2R0Ph0hCD0sCshcp2aOnfGP0hCZbtFg09D0SdKLbyzKntisY41HxKVrydYiaApp+2uw==} + '@biomejs/cli-linux-x64@1.8.3': + resolution: {integrity: sha512-I8G2QmuE1teISyT8ie1HXsjFRz9L1m5n83U1O6m30Kw+kPMPSKjag6QGUn+sXT8V+XWIZxFFBoTDEDZW2KPDDw==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] - '@biomejs/cli-win32-arm64@1.8.1': - resolution: {integrity: sha512-6tEd1H/iFKpgpE3OIB7oNgW5XkjiVMzMRPL8zYoZ036YfuJ5nMYm9eB9H/y81+8Z76vL48fiYzMPotJwukGPqQ==} + '@biomejs/cli-win32-arm64@1.8.3': + resolution: {integrity: sha512-J+Hu9WvrBevfy06eU1Na0lpc7uR9tibm9maHynLIoAjLZpQU3IW+OKHUtyL8p6/3pT2Ju5t5emReeIS2SAxhkQ==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [win32] - '@biomejs/cli-win32-x64@1.8.1': - resolution: {integrity: sha512-g2H31jJzYmS4jkvl6TiyEjEX+Nv79a5km/xn+5DARTp5MBFzC9gwceusSSB2AkJKqZzY131AiACAWjKrVt5Ijw==} + '@biomejs/cli-win32-x64@1.8.3': + resolution: {integrity: sha512-/PJ59vA1pnQeKahemaQf4Nyj7IKUvGQSc3Ze1uIGi+Wvr1xF7rGobSrAAG01T/gUDG21vkDsZYM03NAmPiVkqg==} engines: {node: '>=14.21.3'} cpu: [x64] os: [win32] @@ -474,9 +474,9 @@ packages: cpu: [x64] os: [win32] - '@playwright/test@1.44.1': - resolution: {integrity: sha512-1hZ4TNvD5z9VuhNJ/walIjvMVvYkZKf71axoF/uiAqpntQJXpG64dlXhoDXE3OczPuTuvjf/M5KWFg5VAVUS3Q==} - engines: {node: '>=16'} + '@playwright/test@1.45.1': + resolution: {integrity: sha512-Wo1bWTzQvGA7LyKGIZc8nFSTFf2TkthGIFBR+QVNilvwouGzFd4PYukZe3rvf5PSqjHi1+1NyKSDZKcQWETzaA==} + engines: {node: '>=18'} hasBin: true '@popperjs/core@2.11.8': @@ -488,8 +488,8 @@ packages: peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - '@reduxjs/toolkit@2.2.5': - resolution: {integrity: sha512-aeFA/s5NCG7NoJe/MhmwREJxRkDs0ZaSqt0MxhWUrwCf1UQXpwR87RROJEql0uAkLI6U7snBOYOcKw83ew3FPg==} + '@reduxjs/toolkit@2.2.6': + resolution: {integrity: sha512-kH0r495c5z1t0g796eDQAkYbEQ3a1OLYN9o8jQQVZyKyw367pfRGS+qZLkHYvFHiUUdafpoSlQ2QYObIApjPWA==} peerDependencies: react: ^16.9.0 || ^17.0.0 || ^18 react-redux: ^7.2.1 || ^8.1.3 || ^9.0.0 @@ -510,83 +510,83 @@ packages: react: '>=16.14.0' react-dom: '>=16.14.0' - '@rollup/rollup-android-arm-eabi@4.18.0': - resolution: {integrity: sha512-Tya6xypR10giZV1XzxmH5wr25VcZSncG0pZIjfePT0OVBvqNEurzValetGNarVrGiq66EBVAFn15iYX4w6FKgQ==} + '@rollup/rollup-android-arm-eabi@4.18.1': + resolution: {integrity: sha512-lncuC4aHicncmbORnx+dUaAgzee9cm/PbIqgWz1PpXuwc+sa1Ct83tnqUDy/GFKleLiN7ZIeytM6KJ4cAn1SxA==} cpu: [arm] os: [android] - '@rollup/rollup-android-arm64@4.18.0': - resolution: {integrity: sha512-avCea0RAP03lTsDhEyfy+hpfr85KfyTctMADqHVhLAF3MlIkq83CP8UfAHUssgXTYd+6er6PaAhx/QGv4L1EiA==} + '@rollup/rollup-android-arm64@4.18.1': + resolution: {integrity: sha512-F/tkdw0WSs4ojqz5Ovrw5r9odqzFjb5LIgHdHZG65dFI1lWTWRVy32KDJLKRISHgJvqUeUhdIvy43fX41znyDg==} cpu: [arm64] os: [android] - '@rollup/rollup-darwin-arm64@4.18.0': - resolution: {integrity: sha512-IWfdwU7KDSm07Ty0PuA/W2JYoZ4iTj3TUQjkVsO/6U+4I1jN5lcR71ZEvRh52sDOERdnNhhHU57UITXz5jC1/w==} + '@rollup/rollup-darwin-arm64@4.18.1': + resolution: {integrity: sha512-vk+ma8iC1ebje/ahpxpnrfVQJibTMyHdWpOGZ3JpQ7Mgn/3QNHmPq7YwjZbIE7km73dH5M1e6MRRsnEBW7v5CQ==} cpu: [arm64] os: [darwin] - '@rollup/rollup-darwin-x64@4.18.0': - resolution: {integrity: sha512-n2LMsUz7Ynu7DoQrSQkBf8iNrjOGyPLrdSg802vk6XT3FtsgX6JbE8IHRvposskFm9SNxzkLYGSq9QdpLYpRNA==} + '@rollup/rollup-darwin-x64@4.18.1': + resolution: {integrity: sha512-IgpzXKauRe1Tafcej9STjSSuG0Ghu/xGYH+qG6JwsAUxXrnkvNHcq/NL6nz1+jzvWAnQkuAJ4uIwGB48K9OCGA==} cpu: [x64] os: [darwin] - '@rollup/rollup-linux-arm-gnueabihf@4.18.0': - resolution: {integrity: sha512-C/zbRYRXFjWvz9Z4haRxcTdnkPt1BtCkz+7RtBSuNmKzMzp3ZxdM28Mpccn6pt28/UWUCTXa+b0Mx1k3g6NOMA==} + '@rollup/rollup-linux-arm-gnueabihf@4.18.1': + resolution: {integrity: sha512-P9bSiAUnSSM7EmyRK+e5wgpqai86QOSv8BwvkGjLwYuOpaeomiZWifEos517CwbG+aZl1T4clSE1YqqH2JRs+g==} cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm-musleabihf@4.18.0': - resolution: {integrity: sha512-l3m9ewPgjQSXrUMHg93vt0hYCGnrMOcUpTz6FLtbwljo2HluS4zTXFy2571YQbisTnfTKPZ01u/ukJdQTLGh9A==} + '@rollup/rollup-linux-arm-musleabihf@4.18.1': + resolution: {integrity: sha512-5RnjpACoxtS+aWOI1dURKno11d7krfpGDEn19jI8BuWmSBbUC4ytIADfROM1FZrFhQPSoP+KEa3NlEScznBTyQ==} cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm64-gnu@4.18.0': - resolution: {integrity: sha512-rJ5D47d8WD7J+7STKdCUAgmQk49xuFrRi9pZkWoRD1UeSMakbcepWXPF8ycChBoAqs1pb2wzvbY6Q33WmN2ftw==} + '@rollup/rollup-linux-arm64-gnu@4.18.1': + resolution: {integrity: sha512-8mwmGD668m8WaGbthrEYZ9CBmPug2QPGWxhJxh/vCgBjro5o96gL04WLlg5BA233OCWLqERy4YUzX3bJGXaJgQ==} cpu: [arm64] os: [linux] - '@rollup/rollup-linux-arm64-musl@4.18.0': - resolution: {integrity: sha512-be6Yx37b24ZwxQ+wOQXXLZqpq4jTckJhtGlWGZs68TgdKXJgw54lUUoFYrg6Zs/kjzAQwEwYbp8JxZVzZLRepQ==} + '@rollup/rollup-linux-arm64-musl@4.18.1': + resolution: {integrity: sha512-dJX9u4r4bqInMGOAQoGYdwDP8lQiisWb9et+T84l2WXk41yEej8v2iGKodmdKimT8cTAYt0jFb+UEBxnPkbXEQ==} cpu: [arm64] os: [linux] - '@rollup/rollup-linux-powerpc64le-gnu@4.18.0': - resolution: {integrity: sha512-hNVMQK+qrA9Todu9+wqrXOHxFiD5YmdEi3paj6vP02Kx1hjd2LLYR2eaN7DsEshg09+9uzWi2W18MJDlG0cxJA==} + '@rollup/rollup-linux-powerpc64le-gnu@4.18.1': + resolution: {integrity: sha512-V72cXdTl4EI0x6FNmho4D502sy7ed+LuVW6Ym8aI6DRQ9hQZdp5sj0a2usYOlqvFBNKQnLQGwmYnujo2HvjCxQ==} cpu: [ppc64] os: [linux] - '@rollup/rollup-linux-riscv64-gnu@4.18.0': - resolution: {integrity: sha512-ROCM7i+m1NfdrsmvwSzoxp9HFtmKGHEqu5NNDiZWQtXLA8S5HBCkVvKAxJ8U+CVctHwV2Gb5VUaK7UAkzhDjlg==} + '@rollup/rollup-linux-riscv64-gnu@4.18.1': + resolution: {integrity: sha512-f+pJih7sxoKmbjghrM2RkWo2WHUW8UbfxIQiWo5yeCaCM0TveMEuAzKJte4QskBp1TIinpnRcxkquY+4WuY/tg==} cpu: [riscv64] os: [linux] - '@rollup/rollup-linux-s390x-gnu@4.18.0': - resolution: {integrity: sha512-0UyyRHyDN42QL+NbqevXIIUnKA47A+45WyasO+y2bGJ1mhQrfrtXUpTxCOrfxCR4esV3/RLYyucGVPiUsO8xjg==} + '@rollup/rollup-linux-s390x-gnu@4.18.1': + resolution: {integrity: sha512-qb1hMMT3Fr/Qz1OKovCuUM11MUNLUuHeBC2DPPAWUYYUAOFWaxInaTwTQmc7Fl5La7DShTEpmYwgdt2hG+4TEg==} cpu: [s390x] os: [linux] - '@rollup/rollup-linux-x64-gnu@4.18.0': - resolution: {integrity: sha512-xuglR2rBVHA5UsI8h8UbX4VJ470PtGCf5Vpswh7p2ukaqBGFTnsfzxUBetoWBWymHMxbIG0Cmx7Y9qDZzr648w==} + '@rollup/rollup-linux-x64-gnu@4.18.1': + resolution: {integrity: sha512-7O5u/p6oKUFYjRbZkL2FLbwsyoJAjyeXHCU3O4ndvzg2OFO2GinFPSJFGbiwFDaCFc+k7gs9CF243PwdPQFh5g==} cpu: [x64] os: [linux] - '@rollup/rollup-linux-x64-musl@4.18.0': - resolution: {integrity: sha512-LKaqQL9osY/ir2geuLVvRRs+utWUNilzdE90TpyoX0eNqPzWjRm14oMEE+YLve4k/NAqCdPkGYDaDF5Sw+xBfg==} + '@rollup/rollup-linux-x64-musl@4.18.1': + resolution: {integrity: sha512-pDLkYITdYrH/9Cv/Vlj8HppDuLMDUBmgsM0+N+xLtFd18aXgM9Nyqupb/Uw+HeidhfYg2lD6CXvz6CjoVOaKjQ==} cpu: [x64] os: [linux] - '@rollup/rollup-win32-arm64-msvc@4.18.0': - resolution: {integrity: sha512-7J6TkZQFGo9qBKH0pk2cEVSRhJbL6MtfWxth7Y5YmZs57Pi+4x6c2dStAUvaQkHQLnEQv1jzBUW43GvZW8OFqA==} + '@rollup/rollup-win32-arm64-msvc@4.18.1': + resolution: {integrity: sha512-W2ZNI323O/8pJdBGil1oCauuCzmVd9lDmWBBqxYZcOqWD6aWqJtVBQ1dFrF4dYpZPks6F+xCZHfzG5hYlSHZ6g==} cpu: [arm64] os: [win32] - '@rollup/rollup-win32-ia32-msvc@4.18.0': - resolution: {integrity: sha512-Txjh+IxBPbkUB9+SXZMpv+b/vnTEtFyfWZgJ6iyCmt2tdx0OF5WhFowLmnh8ENGNpfUlUZkdI//4IEmhwPieNg==} + '@rollup/rollup-win32-ia32-msvc@4.18.1': + resolution: {integrity: sha512-ELfEX1/+eGZYMaCIbK4jqLxO1gyTSOIlZr6pbC4SRYFaSIDVKOnZNMdoZ+ON0mrFDp4+H5MhwNC1H/AhE3zQLg==} cpu: [ia32] os: [win32] - '@rollup/rollup-win32-x64-msvc@4.18.0': - resolution: {integrity: sha512-UOo5FdvOL0+eIVTgS4tIdbW+TtnBLWg1YBCcU2KWM7nuNwRz9bksDX1bekJJCpu25N1DVWaCwnT39dVQxzqS8g==} + '@rollup/rollup-win32-x64-msvc@4.18.1': + resolution: {integrity: sha512-yjk2MAkQmoaPYCSu35RLJ62+dz358nE83VfTePJRp8CG7aMg25mEJYpXFiD+NcevhX8LxD5OP5tktPXnXN7GDw==} cpu: [x64] os: [win32] @@ -635,8 +635,8 @@ packages: '@types/hoist-non-react-statics@3.3.5': resolution: {integrity: sha512-SbcrWzkKBw2cdwRTwQAswfpB9g9LJWfjtUeW/jvNwbhC8cpmmNYVePa+ncbUe0rGTQ7G3Ff6mYUN2VMfLVr+Sg==} - '@types/node@20.14.6': - resolution: {integrity: sha512-JbA0XIJPL1IiNnU7PFxDXyfAwcwVVrOoqyzzyQTyMeVhBzkJVMSkC1LlVsRQ2lpqiY4n6Bb9oCS6lzDKVQxbZw==} + '@types/node@20.14.10': + resolution: {integrity: sha512-MdiXf+nDuMvY0gJKxyfZ7/6UFsETO7mGKF54MVD/ekJS6HdFtpZFBgrh6Pseu64XTb2MLyFPlbW6hj8HYRQNOQ==} '@types/prop-types@15.7.12': resolution: {integrity: sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==} @@ -665,29 +665,20 @@ packages: peerDependencies: vite: ^4.2.0 || ^5.0.0 - '@vitest/expect@1.6.0': - resolution: {integrity: sha512-ixEvFVQjycy/oNgHjqsL6AZCDduC+tflRluaHIzKIsdbzkLn2U/iBnVeJwB6HsIjQBdfMR8Z0tRxKUsvFJEeWQ==} + '@vitest/expect@2.0.1': + resolution: {integrity: sha512-yw70WL3ZwzbI2O3MOXYP2Shf4vqVkS3q5FckLJ6lhT9VMMtDyWdofD53COZcoeuHwsBymdOZp99r5bOr5g+oeA==} - '@vitest/runner@1.6.0': - resolution: {integrity: sha512-P4xgwPjwesuBiHisAVz/LSSZtDjOTPYZVmNAnpHHSR6ONrf8eCJOFRvUwdHn30F5M1fxhqtl7QZQUk2dprIXAg==} + '@vitest/runner@2.0.1': + resolution: {integrity: sha512-XfcSXOGGxgR2dQ466ZYqf0ZtDLLDx9mZeQcKjQDLQ9y6Cmk2Wl7wxMuhiYK4Fo1VxCtLcFEGW2XpcfMuiD1Maw==} - '@vitest/snapshot@1.6.0': - resolution: {integrity: sha512-+Hx43f8Chus+DCmygqqfetcAZrDJwvTj0ymqjQq4CvmpKFSTVteEOBzCusu1x2tt4OJcvBflyHUE0DZSLgEMtQ==} + '@vitest/snapshot@2.0.1': + resolution: {integrity: sha512-rst79a4Q+J5vrvHRapdfK4BdqpMH0eF58jVY1vYeBo/1be+nkyenGI5SCSohmjf6MkCkI20/yo5oG+0R8qrAnA==} - '@vitest/spy@1.6.0': - resolution: {integrity: sha512-leUTap6B/cqi/bQkXUu6bQV5TZPx7pmMBKBQiI0rJA8c3pB56ZsaTbREnF7CJfmvAS4V2cXIBAh/3rVwrrCYgw==} + '@vitest/spy@2.0.1': + resolution: {integrity: sha512-NLkdxbSefAtJN56GtCNcB4GiHFb5i9q1uh4V229lrlTZt2fnwsTyjLuWIli1xwK2fQspJJmHXHyWx0Of3KTXWA==} - '@vitest/utils@1.6.0': - resolution: {integrity: sha512-21cPiuGMoMZwiOHa2i4LXkMkMkCGzA+MVFV70jRwHo95dL4x/ts5GZhML1QWuy7yfp3WzK3lRvZi3JnXTYqrBw==} - - acorn-walk@8.3.3: - resolution: {integrity: sha512-MxXdReSRhGO7VlFe1bRG/oI7/mdLV9B9JJT0N8vZOhF7gFRR5l3M8W9G8JxmKV+JC5mGqJ0QvqfSOLsCPa4nUw==} - engines: {node: '>=0.4.0'} - - acorn@8.12.0: - resolution: {integrity: sha512-RTvkC4w+KNXrM39/lWCUaG0IbRkWdCv7W/IOW9oU6SawyxulvkQy5HQPVTKxEjczcUvapcrw3cFx/60VN/NRNw==} - engines: {node: '>=0.4.0'} - hasBin: true + '@vitest/utils@2.0.1': + resolution: {integrity: sha512-STH+2fHZxlveh1mpU4tKzNgRk7RZJyr6kFGJYCI5vocdfqfPsQrgVC6k7dBWHfin5QNB4TLvRS0Ckly3Dt1uWw==} agent-base@7.1.1: resolution: {integrity: sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==} @@ -701,8 +692,9 @@ packages: resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==} engines: {node: '>=10'} - assertion-error@1.1.0: - resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==} + assertion-error@2.0.1: + resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} + engines: {node: '>=12'} asynckit@0.4.0: resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} @@ -725,19 +717,20 @@ packages: resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} engines: {node: '>=8'} - caniuse-lite@1.0.30001636: - resolution: {integrity: sha512-bMg2vmr8XBsbL6Lr0UHXy/21m84FTxDLWn2FSqMd5PrlbMxwJlQnC2YWYxVgp66PZE+BBNF2jYQUBKCo1FDeZg==} + caniuse-lite@1.0.30001640: + resolution: {integrity: sha512-lA4VMpW0PSUrFnkmVuEKBUovSWKhj7puyCg8StBChgu298N1AtuF1sKWEvfDuimSEDbhlb/KqPKC3fs1HbuQUA==} - chai@4.4.1: - resolution: {integrity: sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g==} - engines: {node: '>=4'} + chai@5.1.1: + resolution: {integrity: sha512-pT1ZgP8rPNqUgieVaEY+ryQr6Q4HXNg8Ei9UnLUrjN4IA7dvQC5JB+/kxVcPNDHyBcc/26CXPkbNzq3qwrOEKA==} + engines: {node: '>=12'} chalk@2.4.2: resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} engines: {node: '>=4'} - check-error@1.0.3: - resolution: {integrity: sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==} + check-error@2.1.1: + resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==} + engines: {node: '>= 16'} classnames@2.5.1: resolution: {integrity: sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==} @@ -759,9 +752,6 @@ packages: resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} engines: {node: '>= 0.8'} - confbox@0.1.7: - resolution: {integrity: sha512-uJcB/FKZtBMCJpK8MQji6bJHgu1tixKPxRLeGkNzBoOZzpnZUJm0jm2/sBDWcuBx1dYgxV4JU+g5hmNxCyAmdA==} - convert-source-map@2.0.0: resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} @@ -799,8 +789,8 @@ packages: deep-diff@0.3.8: resolution: {integrity: sha512-yVn6RZmHiGnxRKR9sJb3iVV2XTF1Ghh2DiWRZ3dMnGc43yUdWWF/kX6lQyk3+P84iprfWKU/8zFTrlkvtFm1ug==} - deep-eql@4.1.4: - resolution: {integrity: sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg==} + deep-eql@5.0.2: + resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==} engines: {node: '>=6'} delayed-stream@1.0.0: @@ -822,8 +812,8 @@ packages: resolution: {integrity: sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==} engines: {node: '>=12'} - electron-to-chromium@1.4.807: - resolution: {integrity: sha512-kSmJl2ZwhNf/bcIuCH/imtNOKlpkLDn2jqT5FJ+/0CXjhnFaOa9cOe9gHKKy71eM49izwuQjZhKk+lWQ1JxB7A==} + electron-to-chromium@1.4.819: + resolution: {integrity: sha512-8RwI6gKUokbHWcN3iRij/qpvf/wCbIVY5slODi85werwqUQwpFXM+dvUBND93Qh7SB0pW3Hlq3/wZsqQ3M9Jaw==} entities@4.5.0: resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} @@ -900,8 +890,8 @@ packages: resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==} engines: {node: '>= 14'} - https-proxy-agent@7.0.4: - resolution: {integrity: sha512-wlwpilI7YdjSkWaQ/7omYBMTliDcmCN8OLihO6I9B86g06lMyAoqgoDpV0XqoaPOKj+0DIdAvnsWfyAAhmimcg==} + https-proxy-agent@7.0.5: + resolution: {integrity: sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==} engines: {node: '>= 14'} human-signals@5.0.0: @@ -931,9 +921,6 @@ packages: js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} - js-tokens@9.0.0: - resolution: {integrity: sha512-WriZw1luRMlmV3LGJaR6QOJjWwgLUTf89OwT2lUOyjX2dJGBwgmIkbcz+7WFZjrZM635JOIR517++e/67CP9dQ==} - jsdom@24.1.0: resolution: {integrity: sha512-6gpM7pRXCwIOKxX47cgOyvyQDN/Eh0f1MeKySBV2xGdKtqJBLj8P25eY3EVCWo2mglDDzozR2r2MW4T+JiNUZA==} engines: {node: '>=18'} @@ -953,16 +940,12 @@ packages: engines: {node: '>=6'} hasBin: true - local-pkg@0.5.0: - resolution: {integrity: sha512-ok6z3qlYyCDS4ZEU27HaU6x/xZa9Whf8jD4ptH5UZTQYZVYeb9bnZ3ojVhiJNLiXK1Hfc0GNbLXcmZ5plLDDBg==} - engines: {node: '>=14'} - loose-envify@1.4.0: resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} hasBin: true - loupe@2.3.7: - resolution: {integrity: sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==} + loupe@3.1.1: + resolution: {integrity: sha512-edNu/8D5MKVfGVFRhFf8aAxiTM6Wumfz5XsaatSxlD3w4R1d/WEKUTydCdPGbl9K7QG/Ca3GnDV2sIKIpXRQcw==} lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} @@ -985,9 +968,6 @@ packages: resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==} engines: {node: '>=12'} - mlly@1.7.1: - resolution: {integrity: sha512-rrVRZRELyQzrIUAVMHxP97kv+G786pHmOKzuFII8zDYahFBS7qnHh2AlYSl1GAHhaMPCz6/oHjVMcfFYgFYHgA==} - ms@2.1.2: resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} @@ -1032,10 +1012,6 @@ packages: resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==} engines: {node: '>=12'} - p-limit@5.0.0: - resolution: {integrity: sha512-/Eaoq+QyLSiXQ4lyYV23f14mZRQcXnxfHrN0vCai+ak9G0pp9iEQukIIZq5NccEvwRB8PUnZT0KsOoDCINS1qQ==} - engines: {node: '>=18'} - parse5@7.1.2: resolution: {integrity: sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==} @@ -1050,31 +1026,29 @@ packages: pathe@1.1.2: resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==} - pathval@1.1.1: - resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==} + pathval@2.0.0: + resolution: {integrity: sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==} + engines: {node: '>= 14.16'} picocolors@1.0.1: resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==} - pkg-types@1.1.1: - resolution: {integrity: sha512-ko14TjmDuQJ14zsotODv7dBlwxKhUKQEhuhmbqo1uCi9BB0Z2alo/wAXg6q1dTR5TyuqYyWhjtfe/Tsh+X28jQ==} - - playwright-core@1.44.1: - resolution: {integrity: sha512-wh0JWtYTrhv1+OSsLPgFzGzt67Y7BE/ZS3jEqgGBlp2ppp1ZDj8c+9IARNW4dwf1poq5MgHreEM2KV/GuR4cFA==} - engines: {node: '>=16'} + playwright-core@1.45.1: + resolution: {integrity: sha512-LF4CUUtrUu2TCpDw4mcrAIuYrEjVDfT1cHbJMfwnE2+1b8PZcFzPNgvZCvq2JfQ4aTjRCCHw5EJ2tmr2NSzdPg==} + engines: {node: '>=18'} hasBin: true - playwright@1.44.1: - resolution: {integrity: sha512-qr/0UJ5CFAtloI3avF95Y0L1xQo6r3LQArLIg/z/PoGJ6xa+EwzrwO5lpNr/09STxdHuUoP2mvuELJS+hLdtgg==} - engines: {node: '>=16'} + playwright@1.45.1: + resolution: {integrity: sha512-Hjrgae4kpSQBr98nhCj3IScxVeVUixqj+5oyif8TdIn2opTCPEzqAqNMeK42i3cWDCVu9MI+ZsGWw+gVR4ISBg==} + engines: {node: '>=18'} hasBin: true postcss@8.4.31: resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==} engines: {node: ^10 || ^12 || >=14} - postcss@8.4.38: - resolution: {integrity: sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==} + postcss@8.4.39: + resolution: {integrity: sha512-0vzE+lAiG7hZl1/9I8yzKLx3aR9Xbof3fBHKunvMfOCYAtMhrsnccJY2iTURb9EZd5+pLuiNV9/c/GZJOHsgIw==} engines: {node: ^10 || ^12 || >=14} pretty-format@29.7.0: @@ -1103,8 +1077,8 @@ packages: querystringify@2.2.0: resolution: {integrity: sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==} - react-bootstrap@2.10.3: - resolution: {integrity: sha512-cc1KAaQyj6Gr3AfA0eRRiUMSlRi3brDVcjc/o0E9y9XNW7ISo8TITrq8G8G3QTFe7VIhCiDt38k99AEFoLOolw==} + react-bootstrap@2.10.4: + resolution: {integrity: sha512-W3398nBM2CBfmGP2evneEO3ZZwEMPtHs72q++eNw60uDGDAdiGn0f9yNys91eo7/y8CTF5Ke1C0QO8JFVPU40Q==} peerDependencies: '@types/react': '>=16.14.8' react: '>=16.14.0' @@ -1182,8 +1156,8 @@ packages: reselect@5.1.1: resolution: {integrity: sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w==} - rollup@4.18.0: - resolution: {integrity: sha512-QmJz14PX3rzbJCN1SG4Xe/bAAX2a6NpCP8ab2vfu2GiUr8AQcr2nCV/oEO3yneFarB67zk8ShlIyWb2LGTb3Sg==} + rollup@4.18.1: + resolution: {integrity: sha512-Elx2UT8lzxxOXMpy5HWQGZqkrQOtrVDDa/bm9l10+U4rQnVzbL/LgZ4NOM1MPIDyHk69W4InuYDF5dzRh4Kw1A==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true @@ -1222,8 +1196,8 @@ packages: resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} engines: {node: '>=14'} - sora-js-sdk@2024.1.1: - resolution: {integrity: sha512-wKV7ADPnBZg32hpTiBAyy53JciujI2kuOnG72nJ5YUlu5tMhapb/+xaQtqORdoYeCpZ201bQvf/qyh0oLE0gEA==} + sora-js-sdk@2024.1.2: + resolution: {integrity: sha512-pOg2J48stxUZtG72eMT+/Ao1SjKY4P0aAqdCRwWIl67dAxvVCJapkLdFvWKBwRGMzoIta+VnRlbNZ7A8yqK6RA==} engines: {node: '>=18'} source-map-js@1.2.0: @@ -1248,9 +1222,6 @@ packages: resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==} engines: {node: '>=12'} - strip-literal@2.1.0: - resolution: {integrity: sha512-Op+UycaUt/8FbN/Z2TWPBLge3jWrP3xj10f3fnYxf052bKuS3EKs1ZQcVGjnEMdsNVAM+plXRdmjrZ/KgG3Skw==} - styled-jsx@5.1.1: resolution: {integrity: sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==} engines: {node: '>= 12.0.0'} @@ -1274,12 +1245,12 @@ packages: tinybench@2.8.0: resolution: {integrity: sha512-1/eK7zUnIklz4JUUlL+658n58XO2hHLQfSk1Zf2LKieUjxidN16eKFEoDEfjHc3ohofSSqK3X5yO6VGb6iW8Lw==} - tinypool@0.8.4: - resolution: {integrity: sha512-i11VH5gS6IFeLY3gMBQ00/MmLncVP7JLXOw1vlgkytLmJK7QnEr7NXf0LBdxfmNPAeyetukOk0bOYrJrFGjYJQ==} - engines: {node: '>=14.0.0'} + tinypool@1.0.0: + resolution: {integrity: sha512-KIKExllK7jp3uvrNtvRBYBWBOAXSX8ZvoaD8T+7KB/QHIuoJW3Pmr60zucywjAlMb5TeXUkcs/MWeWLu0qvuAQ==} + engines: {node: ^18.0.0 || >=20.0.0} - tinyspy@2.2.1: - resolution: {integrity: sha512-KYad6Vy5VDWV4GH3fjpseMQ/XU2BhIYP7Vzd0LG44qRWm/Yt2WCOTicFdvmgo6gWaqooMQCawTtILVQJupKu7A==} + tinyspy@3.0.0: + resolution: {integrity: sha512-q5nmENpTHgiPVd1cJDDc9cVoYN5x4vCvwT3FMilvKPKneCBZAxn2YWQjDF0UMcE9k0Cay1gBiDfTMU0g+mPMQA==} engines: {node: '>=14.0.0'} to-fast-properties@2.0.0: @@ -1297,18 +1268,11 @@ packages: tslib@2.6.3: resolution: {integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==} - type-detect@4.0.8: - resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==} - engines: {node: '>=4'} - - typescript@5.4.5: - resolution: {integrity: sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==} + typescript@5.5.3: + resolution: {integrity: sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==} engines: {node: '>=14.17'} hasBin: true - ufo@1.5.3: - resolution: {integrity: sha512-Y7HYmWaFwPUmkoQCUIAYpKqkOf+SbVj/2fJJZ4RJMCfZp0rTGwRbzQD+HghfnhKOjL9E01okqz+ncJskGYfBNw==} - uncontrollable@7.2.1: resolution: {integrity: sha512-svtcfoTADIB0nT9nltgjujTi7BzVmwjZClOmskKu/E8FW9BXzg9os8OLr4f8Dlnk0rYWJIWr4wv9eKUXiQvQwQ==} peerDependencies: @@ -1326,8 +1290,8 @@ packages: resolution: {integrity: sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==} engines: {node: '>= 4.0.0'} - update-browserslist-db@1.0.16: - resolution: {integrity: sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ==} + update-browserslist-db@1.1.0: + resolution: {integrity: sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==} hasBin: true peerDependencies: browserslist: '>= 4.21.0' @@ -1340,13 +1304,13 @@ packages: peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 - vite-node@1.6.0: - resolution: {integrity: sha512-de6HJgzC+TFzOu0NTC4RAIsyf/DY/ibWDYQUcuEA84EMHhcefTUGkjFHKKEJhQN4A+6I0u++kr3l36ZF2d7XRw==} + vite-node@2.0.1: + resolution: {integrity: sha512-nVd6kyhPAql0s+xIVJzuF+RSRH8ZimNrm6U8ZvTA4MXv8CHI17TFaQwRaFiK75YX6XeFqZD4IoAaAfi9OR1XvQ==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true - vite@5.3.1: - resolution: {integrity: sha512-XBmSKRLXLxiaPYamLv3/hnP/KXDai1NDexN0FpkTaZXTfycHvkRHoenpgl/fvuK/kPbB6xAgoyiryAhQNxYmAQ==} + vite@5.3.3: + resolution: {integrity: sha512-NPQdeCU0Dv2z5fu+ULotpuq5yfCS1BzKUIPhNbP3YBfAMGJXbt2nS+sbTFu+qchaqWTD+H3JK++nRwr6XIcp6A==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: @@ -1373,15 +1337,15 @@ packages: terser: optional: true - vitest@1.6.0: - resolution: {integrity: sha512-H5r/dN06swuFnzNFhq/dnz37bPXnq8xB2xB5JOVk8K09rUtoeNN+LHWkoQ0A/i3hvbUKKcCei9KpbxqHMLhLLA==} + vitest@2.0.1: + resolution: {integrity: sha512-PBPvNXRJiywtI9NmbnEqHIhcXlk8mB0aKf6REQIaYGY4JtWF1Pg8Am+N0vAuxdg/wUSlxPSVJr8QdjwcVxc2Hg==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' '@types/node': ^18.0.0 || >=20.0.0 - '@vitest/browser': 1.6.0 - '@vitest/ui': 1.6.0 + '@vitest/browser': 2.0.1 + '@vitest/ui': 2.0.1 happy-dom: '*' jsdom: '*' peerDependenciesMeta: @@ -1426,13 +1390,13 @@ packages: engines: {node: '>= 8'} hasBin: true - why-is-node-running@2.2.2: - resolution: {integrity: sha512-6tSwToZxTOcotxHeA+qGCq1mVzKR3CwcJGmVcY+QE8SHy6TnpFnh8PAvPNHYr7EcuVeG0QSMxtYCuO1ta/G/oA==} + why-is-node-running@2.3.0: + resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} engines: {node: '>=8'} hasBin: true - ws@8.17.1: - resolution: {integrity: sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==} + ws@8.18.0: + resolution: {integrity: sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==} engines: {node: '>=10.0.0'} peerDependencies: bufferutil: ^4.0.1 @@ -1453,10 +1417,6 @@ packages: yallist@3.1.1: resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} - yocto-queue@1.0.0: - resolution: {integrity: sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==} - engines: {node: '>=12.20'} - snapshots: '@ampproject/remapping@2.3.0': @@ -1613,39 +1573,39 @@ snapshots: '@babel/helper-validator-identifier': 7.24.7 to-fast-properties: 2.0.0 - '@biomejs/biome@1.8.1': + '@biomejs/biome@1.8.3': optionalDependencies: - '@biomejs/cli-darwin-arm64': 1.8.1 - '@biomejs/cli-darwin-x64': 1.8.1 - '@biomejs/cli-linux-arm64': 1.8.1 - '@biomejs/cli-linux-arm64-musl': 1.8.1 - '@biomejs/cli-linux-x64': 1.8.1 - '@biomejs/cli-linux-x64-musl': 1.8.1 - '@biomejs/cli-win32-arm64': 1.8.1 - '@biomejs/cli-win32-x64': 1.8.1 - - '@biomejs/cli-darwin-arm64@1.8.1': + '@biomejs/cli-darwin-arm64': 1.8.3 + '@biomejs/cli-darwin-x64': 1.8.3 + '@biomejs/cli-linux-arm64': 1.8.3 + '@biomejs/cli-linux-arm64-musl': 1.8.3 + '@biomejs/cli-linux-x64': 1.8.3 + '@biomejs/cli-linux-x64-musl': 1.8.3 + '@biomejs/cli-win32-arm64': 1.8.3 + '@biomejs/cli-win32-x64': 1.8.3 + + '@biomejs/cli-darwin-arm64@1.8.3': optional: true - '@biomejs/cli-darwin-x64@1.8.1': + '@biomejs/cli-darwin-x64@1.8.3': optional: true - '@biomejs/cli-linux-arm64-musl@1.8.1': + '@biomejs/cli-linux-arm64-musl@1.8.3': optional: true - '@biomejs/cli-linux-arm64@1.8.1': + '@biomejs/cli-linux-arm64@1.8.3': optional: true - '@biomejs/cli-linux-x64-musl@1.8.1': + '@biomejs/cli-linux-x64-musl@1.8.3': optional: true - '@biomejs/cli-linux-x64@1.8.1': + '@biomejs/cli-linux-x64@1.8.3': optional: true - '@biomejs/cli-win32-arm64@1.8.1': + '@biomejs/cli-win32-arm64@1.8.3': optional: true - '@biomejs/cli-win32-x64@1.8.1': + '@biomejs/cli-win32-x64@1.8.3': optional: true '@esbuild/aix-ppc64@0.21.5': @@ -1767,9 +1727,9 @@ snapshots: '@next/swc-win32-x64-msvc@14.2.4': optional: true - '@playwright/test@1.44.1': + '@playwright/test@1.45.1': dependencies: - playwright: 1.44.1 + playwright: 1.45.1 '@popperjs/core@2.11.8': {} @@ -1778,7 +1738,7 @@ snapshots: '@swc/helpers': 0.5.11 react: 18.3.1 - '@reduxjs/toolkit@2.2.5(react-redux@9.1.2(@types/react@18.3.3)(react@18.3.1)(redux@5.0.1))(react@18.3.1)': + '@reduxjs/toolkit@2.2.6(react-redux@9.1.2(@types/react@18.3.3)(react@18.3.1)(redux@5.0.1))(react@18.3.1)': dependencies: immer: 10.1.1 redux: 5.0.1 @@ -1807,52 +1767,52 @@ snapshots: uncontrollable: 8.0.4(react@18.3.1) warning: 4.0.3 - '@rollup/rollup-android-arm-eabi@4.18.0': + '@rollup/rollup-android-arm-eabi@4.18.1': optional: true - '@rollup/rollup-android-arm64@4.18.0': + '@rollup/rollup-android-arm64@4.18.1': optional: true - '@rollup/rollup-darwin-arm64@4.18.0': + '@rollup/rollup-darwin-arm64@4.18.1': optional: true - '@rollup/rollup-darwin-x64@4.18.0': + '@rollup/rollup-darwin-x64@4.18.1': optional: true - '@rollup/rollup-linux-arm-gnueabihf@4.18.0': + '@rollup/rollup-linux-arm-gnueabihf@4.18.1': optional: true - '@rollup/rollup-linux-arm-musleabihf@4.18.0': + '@rollup/rollup-linux-arm-musleabihf@4.18.1': optional: true - '@rollup/rollup-linux-arm64-gnu@4.18.0': + '@rollup/rollup-linux-arm64-gnu@4.18.1': optional: true - '@rollup/rollup-linux-arm64-musl@4.18.0': + '@rollup/rollup-linux-arm64-musl@4.18.1': optional: true - '@rollup/rollup-linux-powerpc64le-gnu@4.18.0': + '@rollup/rollup-linux-powerpc64le-gnu@4.18.1': optional: true - '@rollup/rollup-linux-riscv64-gnu@4.18.0': + '@rollup/rollup-linux-riscv64-gnu@4.18.1': optional: true - '@rollup/rollup-linux-s390x-gnu@4.18.0': + '@rollup/rollup-linux-s390x-gnu@4.18.1': optional: true - '@rollup/rollup-linux-x64-gnu@4.18.0': + '@rollup/rollup-linux-x64-gnu@4.18.1': optional: true - '@rollup/rollup-linux-x64-musl@4.18.0': + '@rollup/rollup-linux-x64-musl@4.18.1': optional: true - '@rollup/rollup-win32-arm64-msvc@4.18.0': + '@rollup/rollup-win32-arm64-msvc@4.18.1': optional: true - '@rollup/rollup-win32-ia32-msvc@4.18.0': + '@rollup/rollup-win32-ia32-msvc@4.18.1': optional: true - '@rollup/rollup-win32-x64-msvc@4.18.0': + '@rollup/rollup-win32-x64-msvc@4.18.1': optional: true '@shiguredo/light-adjustment@2023.2.0': @@ -1914,7 +1874,7 @@ snapshots: '@types/react': 18.3.3 hoist-non-react-statics: 3.3.2 - '@types/node@20.14.6': + '@types/node@20.14.10': dependencies: undici-types: 5.26.5 @@ -1944,52 +1904,45 @@ snapshots: '@types/warning@3.0.3': {} - '@vitejs/plugin-react@4.3.1(vite@5.3.1(@types/node@20.14.6))': + '@vitejs/plugin-react@4.3.1(vite@5.3.3(@types/node@20.14.10))': dependencies: '@babel/core': 7.24.7 '@babel/plugin-transform-react-jsx-self': 7.24.7(@babel/core@7.24.7) '@babel/plugin-transform-react-jsx-source': 7.24.7(@babel/core@7.24.7) '@types/babel__core': 7.20.5 react-refresh: 0.14.2 - vite: 5.3.1(@types/node@20.14.6) + vite: 5.3.3(@types/node@20.14.10) transitivePeerDependencies: - supports-color - '@vitest/expect@1.6.0': + '@vitest/expect@2.0.1': dependencies: - '@vitest/spy': 1.6.0 - '@vitest/utils': 1.6.0 - chai: 4.4.1 + '@vitest/spy': 2.0.1 + '@vitest/utils': 2.0.1 + chai: 5.1.1 - '@vitest/runner@1.6.0': + '@vitest/runner@2.0.1': dependencies: - '@vitest/utils': 1.6.0 - p-limit: 5.0.0 + '@vitest/utils': 2.0.1 pathe: 1.1.2 - '@vitest/snapshot@1.6.0': + '@vitest/snapshot@2.0.1': dependencies: magic-string: 0.30.10 pathe: 1.1.2 pretty-format: 29.7.0 - '@vitest/spy@1.6.0': + '@vitest/spy@2.0.1': dependencies: - tinyspy: 2.2.1 + tinyspy: 3.0.0 - '@vitest/utils@1.6.0': + '@vitest/utils@2.0.1': dependencies: diff-sequences: 29.6.3 estree-walker: 3.0.3 - loupe: 2.3.7 + loupe: 3.1.1 pretty-format: 29.7.0 - acorn-walk@8.3.3: - dependencies: - acorn: 8.12.0 - - acorn@8.12.0: {} - agent-base@7.1.1: dependencies: debug: 4.3.5 @@ -2002,7 +1955,7 @@ snapshots: ansi-styles@5.2.0: {} - assertion-error@1.1.0: {} + assertion-error@2.0.1: {} asynckit@0.4.0: {} @@ -2012,10 +1965,10 @@ snapshots: browserslist@4.23.1: dependencies: - caniuse-lite: 1.0.30001636 - electron-to-chromium: 1.4.807 + caniuse-lite: 1.0.30001640 + electron-to-chromium: 1.4.819 node-releases: 2.0.14 - update-browserslist-db: 1.0.16(browserslist@4.23.1) + update-browserslist-db: 1.1.0(browserslist@4.23.1) busboy@1.6.0: dependencies: @@ -2023,17 +1976,15 @@ snapshots: cac@6.7.14: {} - caniuse-lite@1.0.30001636: {} + caniuse-lite@1.0.30001640: {} - chai@4.4.1: + chai@5.1.1: dependencies: - assertion-error: 1.1.0 - check-error: 1.0.3 - deep-eql: 4.1.4 - get-func-name: 2.0.2 - loupe: 2.3.7 - pathval: 1.1.1 - type-detect: 4.0.8 + assertion-error: 2.0.1 + check-error: 2.1.1 + deep-eql: 5.0.2 + loupe: 3.1.1 + pathval: 2.0.0 chalk@2.4.2: dependencies: @@ -2041,9 +1992,7 @@ snapshots: escape-string-regexp: 1.0.5 supports-color: 5.5.0 - check-error@1.0.3: - dependencies: - get-func-name: 2.0.2 + check-error@2.1.1: {} classnames@2.5.1: {} @@ -2061,8 +2010,6 @@ snapshots: dependencies: delayed-stream: 1.0.0 - confbox@0.1.7: {} - convert-source-map@2.0.0: {} cross-spawn@7.0.3: @@ -2092,9 +2039,7 @@ snapshots: deep-diff@0.3.8: {} - deep-eql@4.1.4: - dependencies: - type-detect: 4.0.8 + deep-eql@5.0.2: {} delayed-stream@1.0.0: {} @@ -2109,7 +2054,7 @@ snapshots: dotenv@16.4.5: {} - electron-to-chromium@1.4.807: {} + electron-to-chromium@1.4.819: {} entities@4.5.0: {} @@ -2200,7 +2145,7 @@ snapshots: transitivePeerDependencies: - supports-color - https-proxy-agent@7.0.4: + https-proxy-agent@7.0.5: dependencies: agent-base: 7.1.1 debug: 4.3.5 @@ -2227,8 +2172,6 @@ snapshots: js-tokens@4.0.0: {} - js-tokens@9.0.0: {} - jsdom@24.1.0: dependencies: cssstyle: 4.0.1 @@ -2237,7 +2180,7 @@ snapshots: form-data: 4.0.0 html-encoding-sniffer: 4.0.0 http-proxy-agent: 7.0.2 - https-proxy-agent: 7.0.4 + https-proxy-agent: 7.0.5 is-potential-custom-element-name: 1.0.1 nwsapi: 2.2.10 parse5: 7.1.2 @@ -2250,7 +2193,7 @@ snapshots: whatwg-encoding: 3.1.1 whatwg-mimetype: 4.0.0 whatwg-url: 14.0.0 - ws: 8.17.1 + ws: 8.18.0 xml-name-validator: 5.0.0 transitivePeerDependencies: - bufferutil @@ -2261,16 +2204,11 @@ snapshots: json5@2.2.3: {} - local-pkg@0.5.0: - dependencies: - mlly: 1.7.1 - pkg-types: 1.1.1 - loose-envify@1.4.0: dependencies: js-tokens: 4.0.0 - loupe@2.3.7: + loupe@3.1.1: dependencies: get-func-name: 2.0.2 @@ -2292,23 +2230,16 @@ snapshots: mimic-fn@4.0.0: {} - mlly@1.7.1: - dependencies: - acorn: 8.12.0 - pathe: 1.1.2 - pkg-types: 1.1.1 - ufo: 1.5.3 - ms@2.1.2: {} nanoid@3.3.7: {} - next@14.2.4(@babel/core@7.24.7)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + next@14.2.4(@babel/core@7.24.7)(@playwright/test@1.45.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: '@next/env': 14.2.4 '@swc/helpers': 0.5.5 busboy: 1.6.0 - caniuse-lite: 1.0.30001636 + caniuse-lite: 1.0.30001640 graceful-fs: 4.2.11 postcss: 8.4.31 react: 18.3.1 @@ -2324,7 +2255,7 @@ snapshots: '@next/swc-win32-arm64-msvc': 14.2.4 '@next/swc-win32-ia32-msvc': 14.2.4 '@next/swc-win32-x64-msvc': 14.2.4 - '@playwright/test': 1.44.1 + '@playwright/test': 1.45.1 transitivePeerDependencies: - '@babel/core' - babel-plugin-macros @@ -2343,10 +2274,6 @@ snapshots: dependencies: mimic-fn: 4.0.0 - p-limit@5.0.0: - dependencies: - yocto-queue: 1.0.0 - parse5@7.1.2: dependencies: entities: 4.5.0 @@ -2357,21 +2284,15 @@ snapshots: pathe@1.1.2: {} - pathval@1.1.1: {} + pathval@2.0.0: {} picocolors@1.0.1: {} - pkg-types@1.1.1: - dependencies: - confbox: 0.1.7 - mlly: 1.7.1 - pathe: 1.1.2 - - playwright-core@1.44.1: {} + playwright-core@1.45.1: {} - playwright@1.44.1: + playwright@1.45.1: dependencies: - playwright-core: 1.44.1 + playwright-core: 1.45.1 optionalDependencies: fsevents: 2.3.2 @@ -2381,7 +2302,7 @@ snapshots: picocolors: 1.0.1 source-map-js: 1.2.0 - postcss@8.4.38: + postcss@8.4.39: dependencies: nanoid: 3.3.7 picocolors: 1.0.1 @@ -2417,7 +2338,7 @@ snapshots: querystringify@2.2.0: {} - react-bootstrap@2.10.3(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + react-bootstrap@2.10.4(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: '@babel/runtime': 7.24.7 '@restart/hooks': 0.4.16(react@18.3.1) @@ -2499,26 +2420,26 @@ snapshots: reselect@5.1.1: {} - rollup@4.18.0: + rollup@4.18.1: dependencies: '@types/estree': 1.0.5 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.18.0 - '@rollup/rollup-android-arm64': 4.18.0 - '@rollup/rollup-darwin-arm64': 4.18.0 - '@rollup/rollup-darwin-x64': 4.18.0 - '@rollup/rollup-linux-arm-gnueabihf': 4.18.0 - '@rollup/rollup-linux-arm-musleabihf': 4.18.0 - '@rollup/rollup-linux-arm64-gnu': 4.18.0 - '@rollup/rollup-linux-arm64-musl': 4.18.0 - '@rollup/rollup-linux-powerpc64le-gnu': 4.18.0 - '@rollup/rollup-linux-riscv64-gnu': 4.18.0 - '@rollup/rollup-linux-s390x-gnu': 4.18.0 - '@rollup/rollup-linux-x64-gnu': 4.18.0 - '@rollup/rollup-linux-x64-musl': 4.18.0 - '@rollup/rollup-win32-arm64-msvc': 4.18.0 - '@rollup/rollup-win32-ia32-msvc': 4.18.0 - '@rollup/rollup-win32-x64-msvc': 4.18.0 + '@rollup/rollup-android-arm-eabi': 4.18.1 + '@rollup/rollup-android-arm64': 4.18.1 + '@rollup/rollup-darwin-arm64': 4.18.1 + '@rollup/rollup-darwin-x64': 4.18.1 + '@rollup/rollup-linux-arm-gnueabihf': 4.18.1 + '@rollup/rollup-linux-arm-musleabihf': 4.18.1 + '@rollup/rollup-linux-arm64-gnu': 4.18.1 + '@rollup/rollup-linux-arm64-musl': 4.18.1 + '@rollup/rollup-linux-powerpc64le-gnu': 4.18.1 + '@rollup/rollup-linux-riscv64-gnu': 4.18.1 + '@rollup/rollup-linux-s390x-gnu': 4.18.1 + '@rollup/rollup-linux-x64-gnu': 4.18.1 + '@rollup/rollup-linux-x64-musl': 4.18.1 + '@rollup/rollup-win32-arm64-msvc': 4.18.1 + '@rollup/rollup-win32-ia32-msvc': 4.18.1 + '@rollup/rollup-win32-x64-msvc': 4.18.1 fsevents: 2.3.3 rrweb-cssom@0.6.0: {} @@ -2547,7 +2468,7 @@ snapshots: signal-exit@4.1.0: {} - sora-js-sdk@2024.1.1: {} + sora-js-sdk@2024.1.2: {} source-map-js@1.2.0: {} @@ -2561,10 +2482,6 @@ snapshots: strip-final-newline@3.0.0: {} - strip-literal@2.1.0: - dependencies: - js-tokens: 9.0.0 - styled-jsx@5.1.1(@babel/core@7.24.7)(react@18.3.1): dependencies: client-only: 0.0.1 @@ -2580,9 +2497,9 @@ snapshots: tinybench@2.8.0: {} - tinypool@0.8.4: {} + tinypool@1.0.0: {} - tinyspy@2.2.1: {} + tinyspy@3.0.0: {} to-fast-properties@2.0.0: {} @@ -2599,11 +2516,7 @@ snapshots: tslib@2.6.3: {} - type-detect@4.0.8: {} - - typescript@5.4.5: {} - - ufo@1.5.3: {} + typescript@5.5.3: {} uncontrollable@7.2.1(react@18.3.1): dependencies: @@ -2621,7 +2534,7 @@ snapshots: universalify@0.2.0: {} - update-browserslist-db@1.0.16(browserslist@4.23.1): + update-browserslist-db@1.1.0(browserslist@4.23.1): dependencies: browserslist: 4.23.1 escalade: 3.1.2 @@ -2636,13 +2549,13 @@ snapshots: dependencies: react: 18.3.1 - vite-node@1.6.0(@types/node@20.14.6): + vite-node@2.0.1(@types/node@20.14.10): dependencies: cac: 6.7.14 debug: 4.3.5 pathe: 1.1.2 picocolors: 1.0.1 - vite: 5.3.1(@types/node@20.14.6) + vite: 5.3.3(@types/node@20.14.10) transitivePeerDependencies: - '@types/node' - less @@ -2653,39 +2566,37 @@ snapshots: - supports-color - terser - vite@5.3.1(@types/node@20.14.6): + vite@5.3.3(@types/node@20.14.10): dependencies: esbuild: 0.21.5 - postcss: 8.4.38 - rollup: 4.18.0 + postcss: 8.4.39 + rollup: 4.18.1 optionalDependencies: - '@types/node': 20.14.6 + '@types/node': 20.14.10 fsevents: 2.3.3 - vitest@1.6.0(@types/node@20.14.6)(jsdom@24.1.0): + vitest@2.0.1(@types/node@20.14.10)(jsdom@24.1.0): dependencies: - '@vitest/expect': 1.6.0 - '@vitest/runner': 1.6.0 - '@vitest/snapshot': 1.6.0 - '@vitest/spy': 1.6.0 - '@vitest/utils': 1.6.0 - acorn-walk: 8.3.3 - chai: 4.4.1 + '@ampproject/remapping': 2.3.0 + '@vitest/expect': 2.0.1 + '@vitest/runner': 2.0.1 + '@vitest/snapshot': 2.0.1 + '@vitest/spy': 2.0.1 + '@vitest/utils': 2.0.1 + chai: 5.1.1 debug: 4.3.5 execa: 8.0.1 - local-pkg: 0.5.0 magic-string: 0.30.10 pathe: 1.1.2 picocolors: 1.0.1 std-env: 3.7.0 - strip-literal: 2.1.0 tinybench: 2.8.0 - tinypool: 0.8.4 - vite: 5.3.1(@types/node@20.14.6) - vite-node: 1.6.0(@types/node@20.14.6) - why-is-node-running: 2.2.2 + tinypool: 1.0.0 + vite: 5.3.3(@types/node@20.14.10) + vite-node: 2.0.1(@types/node@20.14.10) + why-is-node-running: 2.3.0 optionalDependencies: - '@types/node': 20.14.6 + '@types/node': 20.14.10 jsdom: 24.1.0 transitivePeerDependencies: - less @@ -2721,17 +2632,15 @@ snapshots: dependencies: isexe: 2.0.0 - why-is-node-running@2.2.2: + why-is-node-running@2.3.0: dependencies: siginfo: 2.0.0 stackback: 0.0.2 - ws@8.17.1: {} + ws@8.18.0: {} xml-name-validator@5.0.0: {} xmlchars@2.2.0: {} yallist@3.1.1: {} - - yocto-queue@1.0.0: {} From 27b2b5333cacc92d7ba56d00982cf31aabda2340 Mon Sep 17 00:00:00 2001 From: voluntas Date: Tue, 9 Jul 2024 12:44:57 +0900 Subject: [PATCH 3/4] =?UTF-8?q?=E3=83=90=E3=83=BC=E3=82=B8=E3=83=A7?= =?UTF-8?q?=E3=83=B3=E3=82=92=E4=B8=8A=E3=81=92=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dd7329ad..8e37f029 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sora-devtools", - "version": "2024.1.5", + "version": "2024.1.6", "description": "WebRTC SFU Sora DevTools", "repository": { "type": "git", From 0a608194e83d6b4e818ee41f165e20d9de7ba04c Mon Sep 17 00:00:00 2001 From: voluntas Date: Tue, 9 Jul 2024 12:48:11 +0900 Subject: [PATCH 4/4] =?UTF-8?q?=E6=88=90=E6=9E=9C=E7=89=A9=E3=82=92?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/404.html | 2 +- dist/_next/static/chunks/285-eb176e5e2c5aed66.js | 1 - dist/_next/static/chunks/3014b548-3d757d63f1e501e2.js | 1 + dist/_next/static/chunks/3551a1ba-785a2fd4891fbc2c.js | 1 - .../{510-be8461ad20d7575b.js => 724-8c8e5c7dff506555.js} | 2 +- dist/_next/static/chunks/764-e923497c56bbf81a.js | 1 + dist/_next/static/chunks/a9b156ee-ea1fe3ff0dd2e9c3.js | 2 ++ dist/_next/static/chunks/bbf08e97-e92398dc34f2ada8.js | 2 -- dist/_next/static/chunks/main-276b825106a04641.js | 1 + dist/_next/static/chunks/main-7d342494b2e6d0f5.js | 1 - dist/_next/static/chunks/main-app-84645346a32b8f2d.js | 1 - dist/_next/static/chunks/main-app-c14122c618ecb97b.js | 1 + ...{_app-ea1b0387e8a3aa72.js => _app-350942015c635c5c.js} | 8 ++++---- dist/_next/static/chunks/pages/_error-0e8428b30c6c0304.js | 1 + dist/_next/static/chunks/pages/_error-d2a2433779266cd3.js | 1 - .../static/chunks/pages/devtools-199bb388d8c28fda.js | 1 + .../static/chunks/pages/devtools-9cc4b1fc459d3c89.js | 1 - dist/_next/static/chunks/pages/index-53d9c8fada56c387.js | 1 - dist/_next/static/chunks/pages/index-9f9e2ecd00a2d7b5.js | 1 + dist/_next/static/sora_devtools/_buildManifest.js | 2 +- dist/devtools.html | 2 +- dist/index.html | 2 +- 22 files changed, 18 insertions(+), 18 deletions(-) delete mode 100644 dist/_next/static/chunks/285-eb176e5e2c5aed66.js create mode 100644 dist/_next/static/chunks/3014b548-3d757d63f1e501e2.js delete mode 100644 dist/_next/static/chunks/3551a1ba-785a2fd4891fbc2c.js rename dist/_next/static/chunks/{510-be8461ad20d7575b.js => 724-8c8e5c7dff506555.js} (62%) create mode 100644 dist/_next/static/chunks/764-e923497c56bbf81a.js create mode 100644 dist/_next/static/chunks/a9b156ee-ea1fe3ff0dd2e9c3.js delete mode 100644 dist/_next/static/chunks/bbf08e97-e92398dc34f2ada8.js create mode 100644 dist/_next/static/chunks/main-276b825106a04641.js delete mode 100644 dist/_next/static/chunks/main-7d342494b2e6d0f5.js delete mode 100644 dist/_next/static/chunks/main-app-84645346a32b8f2d.js create mode 100644 dist/_next/static/chunks/main-app-c14122c618ecb97b.js rename dist/_next/static/chunks/pages/{_app-ea1b0387e8a3aa72.js => _app-350942015c635c5c.js} (89%) create mode 100644 dist/_next/static/chunks/pages/_error-0e8428b30c6c0304.js delete mode 100644 dist/_next/static/chunks/pages/_error-d2a2433779266cd3.js create mode 100644 dist/_next/static/chunks/pages/devtools-199bb388d8c28fda.js delete mode 100644 dist/_next/static/chunks/pages/devtools-9cc4b1fc459d3c89.js delete mode 100644 dist/_next/static/chunks/pages/index-53d9c8fada56c387.js create mode 100644 dist/_next/static/chunks/pages/index-9f9e2ecd00a2d7b5.js diff --git a/dist/404.html b/dist/404.html index 82d0b483..f0a999b0 100644 --- a/dist/404.html +++ b/dist/404.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/dist/_next/static/chunks/285-eb176e5e2c5aed66.js b/dist/_next/static/chunks/285-eb176e5e2c5aed66.js deleted file mode 100644 index 820561bd..00000000 --- a/dist/_next/static/chunks/285-eb176e5e2c5aed66.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[285],{7311:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(5271);function o(){return(0,r.useState)(null)}},4586:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(5271),o=n(994);function a(e,t,n,a=!1){let i=(0,o.Z)(n);(0,r.useEffect)(()=>{let n="function"==typeof e?e():e;return n.addEventListener(t,i,a),()=>n.removeEventListener(t,i,a)},[e])}},5434:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(5271);function o(){let[,e]=(0,r.useReducer)(e=>!e,!1);return e}},2798:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(5271),o=n(9761),a=n(3354);let i=2147483648-1;function l(){let e=(0,o.Z)(),t=(0,r.useRef)();return(0,a.Z)(()=>clearTimeout(t.current)),(0,r.useMemo)(()=>{let n=()=>clearTimeout(t.current);return{set:function(r,o=0){e()&&(n(),o<=i?t.current=setTimeout(r,o):function e(t,n,r){let o=r-Date.now();t.current=o<=i?setTimeout(n,o):setTimeout(()=>e(t,n,r),i)}(t,r,Date.now()+o))},clear:n,handleRef:t}},[])}},1900:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(5271);n(7311),n(50);var o=n(994);n(4586),n(9761),n(5965),n(9125),new WeakMap;var a=n(8743),i=n(2676);let l=["onKeyDown"],s=r.forwardRef((e,t)=>{var n;let{onKeyDown:r}=e,s=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,l),[u]=(0,a.FT)(Object.assign({tagName:"a"},s)),c=(0,o.Z)(e=>{u.onKeyDown(e),null==r||r(e)});return(n=s.href)&&"#"!==n.trim()&&"button"!==s.role?(0,i.jsx)("a",Object.assign({ref:t},s,{onKeyDown:r})):(0,i.jsx)("a",Object.assign({ref:t},s,u,{onKeyDown:c}))});s.displayName="Anchor";var u=s},8743:function(e,t,n){n.d(t,{FT:function(){return i}});var r=n(5271),o=n(2676);let a=["as","disabled"];function i({tagName:e,disabled:t,href:n,target:r,rel:o,role:a,onClick:i,tabIndex:l=0,type:s}){e||(e=null!=n||null!=r||null!=o?"a":"button");let u={tagName:e};if("button"===e)return[{type:s||"button",disabled:t},u];let c=r=>{var o;if(!t&&("a"!==e||(o=n)&&"#"!==o.trim())||r.preventDefault(),t){r.stopPropagation();return}null==i||i(r)};return"a"===e&&(n||(n="#"),t&&(n=void 0)),[{role:null!=a?a:"button",disabled:void 0,tabIndex:t?void 0:l,href:n,target:"a"===e?r:void 0,"aria-disabled":t||void 0,rel:"a"===e?o:void 0,onClick:c,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),c(e))}},u]}let l=r.forwardRef((e,t)=>{let{as:n,disabled:r}=e,l=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,a),[s,{tagName:u}]=i(Object.assign({tagName:n,disabled:r},l));return(0,o.jsx)(u,Object.assign({},l,s,{ref:t}))});l.displayName="Button",t.ZP=l},5851:function(e,t,n){let r=n(5271).createContext(null);t.Z=r},9355:function(e,t,n){n.d(t,{d:function(){return d}});var r=n(5271),o=n(7311),a=n(5851),i=n(7200),l=n(5116),s=n(5882),u=n(2676);let c=["children","usePopper"],f=()=>{};function d(e={}){let t=(0,r.useContext)(a.Z),[n,u]=(0,o.Z)(),c=(0,r.useRef)(!1),{flip:d,offset:p,rootCloseEvent:h,fixed:m=!1,placement:v,popperConfig:g={},enableEventListeners:y=!0,usePopper:b=!!t}=e,x=(null==t?void 0:t.show)==null?!!e.show:t.show;x&&!c.current&&(c.current=!0);let{placement:w,setMenu:O,menuElement:j,toggleElement:E}=t||{},Z=(0,i.Z)(E,j,(0,s.ZP)({placement:v||w||"bottom-start",enabled:b,enableEvents:null==y?x:y,offset:p,flip:d,fixed:m,arrowElement:n,popperConfig:g})),D=Object.assign({ref:O||f,"aria-labelledby":null==E?void 0:E.id},Z.attributes.popper,{style:Z.styles.popper}),C={show:x,placement:w,hasShown:c.current,toggle:null==t?void 0:t.toggle,popper:b?Z:null,arrowProps:b?Object.assign({ref:u},Z.attributes.arrow,{style:Z.styles.arrow}):{}};return(0,l.Z)(j,e=>{null==t||t.toggle(!1,e)},{clickTrigger:h,disabled:!x}),[D,C]}function p(e){let{children:t,usePopper:n=!0}=e,[r,o]=d(Object.assign({},function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,c),{usePopper:n}));return(0,u.jsx)(u.Fragment,{children:t(r,o)})}p.displayName="DropdownMenu",t.Z=p},5082:function(e,t,n){n.d(t,{Jr:function(){return u},bt:function(){return l}});var r=n(5271),o=n(336),a=n(5851),i=n(2676);let l=e=>{var t;return(null==(t=e.getAttribute("role"))?void 0:t.toLowerCase())==="menu"},s=()=>{};function u(){let e=(0,o.gP)(),{show:t=!1,toggle:n=s,setToggle:i,menuElement:u}=(0,r.useContext)(a.Z)||{},c={id:e,ref:i||s,onClick:(0,r.useCallback)(e=>{n(!t,e)},[t,n]),"aria-expanded":!!t};return u&&l(u)&&(c["aria-haspopup"]=!0),[c,{show:t,toggle:n}]}function c({children:e}){let[t,n]=u();return(0,i.jsx)(i.Fragment,{children:e(t,n)})}c.displayName="DropdownToggle",t.ZP=c},1159:function(e,t,n){let r=n(5271).createContext(null);r.displayName="NavContext",t.Z=r},9628:function(e,t,n){n.d(t,{v:function(){return d}});var r=n(5271),o=n(994),a=n(1159),i=n(177),l=n(8743),s=n(8122),u=n(3778),c=n(2676);let f=["as","active","eventKey"];function d({key:e,onClick:t,active:n,id:l,role:c,disabled:f}){let d=(0,r.useContext)(i.Z),p=(0,r.useContext)(a.Z),h=(0,r.useContext)(u.Z),m=n,v={role:c};if(p){c||"tablist"!==p.role||(v.role="tab");let t=p.getControllerId(null!=e?e:null),r=p.getControlledId(null!=e?e:null);v[(0,s.PB)("event-key")]=e,v.id=t||l,((m=null==n&&null!=e?p.activeKey===e:n)||!(null!=h&&h.unmountOnExit)&&!(null!=h&&h.mountOnEnter))&&(v["aria-controls"]=r)}return"tab"===v.role&&(v["aria-selected"]=m,m||(v.tabIndex=-1),f&&(v.tabIndex=-1,v["aria-disabled"]=!0)),v.onClick=(0,o.Z)(n=>{f||(null==t||t(n),null!=e&&d&&!n.isPropagationStopped()&&d(e,n))}),[v,{isActive:m}]}let p=r.forwardRef((e,t)=>{let{as:n=l.ZP,active:r,eventKey:o}=e,a=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,f),[u,p]=d(Object.assign({key:(0,i.h)(o,a.href),active:r},a));return u[(0,s.PB)("active")]=p.isActive,(0,c.jsx)(n,Object.assign({},a,u,{ref:t}))});p.displayName="NavItem",t.Z=p},3778:function(e,t,n){let r=n(5271).createContext(null);t.Z=r},6162:function(e,t,n){n.d(t,{W:function(){return d}});var r=n(5271),o=n(3778),a=n(177),i=n(3636),l=n(2676);let s=["active","eventKey","mountOnEnter","transition","unmountOnExit","role","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],u=["activeKey","getControlledId","getControllerId"],c=["as"];function f(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function d(e){let{active:t,eventKey:n,mountOnEnter:i,transition:l,unmountOnExit:c,role:d="tabpanel",onEnter:p,onEntering:h,onEntered:m,onExit:v,onExiting:g,onExited:y}=e,b=f(e,s),x=(0,r.useContext)(o.Z);if(!x)return[Object.assign({},b,{role:d}),{eventKey:n,isActive:t,mountOnEnter:i,transition:l,unmountOnExit:c,onEnter:p,onEntering:h,onEntered:m,onExit:v,onExiting:g,onExited:y}];let{activeKey:w,getControlledId:O,getControllerId:j}=x,E=f(x,u),Z=(0,a.h)(n);return[Object.assign({},b,{role:d,id:O(n),"aria-labelledby":j(n)}),{eventKey:n,isActive:null==t&&null!=Z?(0,a.h)(w)===Z:t,transition:l||E.transition,mountOnEnter:null!=i?i:E.mountOnEnter,unmountOnExit:null!=c?c:E.unmountOnExit,onEnter:p,onEntering:h,onEntered:m,onExit:v,onExiting:g,onExited:y}]}let p=r.forwardRef((e,t)=>{let{as:n="div"}=e,[r,{isActive:s,onEnter:u,onEntering:p,onEntered:h,onExit:m,onExiting:v,onExited:g,mountOnEnter:y,unmountOnExit:b,transition:x=i.Z}]=d(f(e,c));return(0,l.jsx)(o.Z.Provider,{value:null,children:(0,l.jsx)(a.Z.Provider,{value:null,children:(0,l.jsx)(x,{in:s,onEnter:u,onEntering:p,onEntered:h,onExit:m,onExiting:v,onExited:g,mountOnEnter:y,unmountOnExit:b,children:(0,l.jsx)(n,Object.assign({},r,{ref:t,hidden:!s,"aria-hidden":!s}))})})})});p.displayName="TabPanel",t.Z=p},3809:function(e,t,n){var r=n(5271),o=n(3689),a=n(336),i=n(3778),l=n(177),s=n(6162),u=n(2676);let c=e=>{let{id:t,generateChildId:n,onSelect:s,activeKey:c,defaultActiveKey:f,transition:d,mountOnEnter:p,unmountOnExit:h,children:m}=e,[v,g]=(0,o.$c)(c,f,s),y=(0,a.gP)(t),b=(0,r.useMemo)(()=>n||((e,t)=>y?`${y}-${t}-${e}`:null),[y,n]),x=(0,r.useMemo)(()=>({onSelect:g,activeKey:v,transition:d,mountOnEnter:p||!1,unmountOnExit:h||!1,getControlledId:e=>b(e,"tabpane"),getControllerId:e=>b(e,"tab")}),[g,v,d,p,h,b]);return(0,u.jsx)(i.Z.Provider,{value:x,children:(0,u.jsx)(l.Z.Provider,{value:g||null,children:m})})};c.Panel=s.Z,t.Z=c},5882:function(e,t,n){n.d(t,{ZP:function(){return r}});function r({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:a,containerPadding:i,arrowElement:l,popperConfig:s={}}){var u,c,f,d,p;let h=function(e){let t={};return Array.isArray(e)?(null==e||e.forEach(e=>{t[e.name]=e}),t):e||t}(s.modifiers);return Object.assign({},s,{placement:n,enabled:e,strategy:a?"fixed":s.strategy,modifiers:function(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}(Object.assign({},h,{eventListeners:{enabled:t,options:null==(u=h.eventListeners)?void 0:u.options},preventOverflow:Object.assign({},h.preventOverflow,{options:i?Object.assign({padding:i},null==(c=h.preventOverflow)?void 0:c.options):null==(f=h.preventOverflow)?void 0:f.options}),offset:{options:Object.assign({offset:o},null==(d=h.offset)?void 0:d.options)},arrow:Object.assign({},h.arrow,{enabled:!!l,options:Object.assign({},null==(p=h.arrow)?void 0:p.options,{element:l})}),flip:Object.assign({enabled:!!r},h.flip)}))})}},5116:function(e,t,n){n.d(t,{f:function(){return f}});var r=n(6712),o=n(2685),a=n(8342),i=n(5271),l=n(994),s=n(1190),u=n.n(s);let c=()=>{},f=e=>e&&("current"in e?e.current:e),d={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};t.Z=function(e,t=c,{disabled:n,clickTrigger:s="click"}={}){let p=(0,i.useRef)(!1),h=(0,i.useRef)(!1),m=(0,i.useCallback)(t=>{let n=f(e);u()(!!n,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),p.current=!n||!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)||0!==t.button||!!(0,r.Z)(n,t.target)||h.current,h.current=!1},[e]),v=(0,l.Z)(t=>{let n=f(e);n&&(0,r.Z)(n,t.target)&&(h.current=!0)}),g=(0,l.Z)(e=>{p.current||t(e)});(0,i.useEffect)(()=>{var t,r;if(n||null==e)return;let i=(0,a.Z)(f(e)),l=i.defaultView||window,u=null!=(t=l.event)?t:null==(r=l.parent)?void 0:r.event,p=null;d[s]&&(p=(0,o.Z)(i,d[s],v,!0));let h=(0,o.Z)(i,s,m,!0),y=(0,o.Z)(i,s,e=>{if(e===u){u=void 0;return}g(e)}),b=[];return"ontouchstart"in i.documentElement&&(b=[].slice.call(i.body.children).map(e=>(0,o.Z)(e,"mousemove",c))),()=>{null==p||p(),h(),y(),b.forEach(e=>e())}},[e,n,s,m,v,g])}},7200:function(e,t,n){n.d(t,{Z:function(){return ex}});var r,o,a,i,l,s=n(5271),u=Object.prototype.hasOwnProperty;function c(e,t,n){for(n of e.keys())if(f(n,t))return n}function f(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&f(e[r],t[r]););return -1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if((o=r)&&"object"==typeof o&&!(o=c(t,o))||!t.has(o))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if((o=r[0])&&"object"==typeof o&&!(o=c(t,o))||!f(r[1],t.get(o)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return -1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return -1===r}if(!n||"object"==typeof e){for(n in r=0,e)if(u.call(e,n)&&++r&&!u.call(t,n)||!(n in t)||!f(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!=e&&t!=t}var d=n(9761),p=function(e){let t=(0,d.Z)();return[e[0],(0,s.useCallback)(n=>{if(t())return e[1](n)},[t,e[1]])]};function h(e){return e.split("-")[0]}function m(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function v(e){var t=m(e).Element;return e instanceof t||e instanceof Element}function g(e){var t=m(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function y(e){if("undefined"==typeof ShadowRoot)return!1;var t=m(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var b=Math.max,x=Math.min,w=Math.round;function O(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function j(){return!/^((?!chrome|android).)*safari/i.test(O())}function E(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&g(e)&&(o=e.offsetWidth>0&&w(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&w(r.height)/e.offsetHeight||1);var i=(v(e)?m(e):window).visualViewport,l=!j()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/o,u=(r.top+(l&&i?i.offsetTop:0))/a,c=r.width/o,f=r.height/a;return{width:c,height:f,top:u,right:s+c,bottom:u+f,left:s,x:s,y:u}}function Z(e){var t=E(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function D(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&y(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function C(e){return e?(e.nodeName||"").toLowerCase():null}function N(e){return m(e).getComputedStyle(e)}function S(e){return((v(e)?e.ownerDocument:e.document)||window.document).documentElement}function P(e){return"html"===C(e)?e:e.assignedSlot||e.parentNode||(y(e)?e.host:null)||S(e)}function k(e){return g(e)&&"fixed"!==N(e).position?e.offsetParent:null}function T(e){for(var t=m(e),n=k(e);n&&["table","td","th"].indexOf(C(n))>=0&&"static"===N(n).position;)n=k(n);return n&&("html"===C(n)||"body"===C(n)&&"static"===N(n).position)?t:n||function(e){var t=/firefox/i.test(O());if(/Trident/i.test(O())&&g(e)&&"fixed"===N(e).position)return null;var n=P(e);for(y(n)&&(n=n.host);g(n)&&0>["html","body"].indexOf(C(n));){var r=N(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function M(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function R(e,t,n){return b(e,x(t,n))}function A(){return{top:0,right:0,bottom:0,left:0}}function I(e){return Object.assign({},A(),e)}function L(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var _="bottom",F="right",W="left",B="auto",H=["top",_,F,W],U="start",X="viewport",V="popper",Y=H.reduce(function(e,t){return e.concat([t+"-"+U,t+"-end"])},[]),K=[].concat(H,[B]).reduce(function(e,t){return e.concat([t,t+"-"+U,t+"-end"])},[]),z=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function $(e){return e.split("-")[1]}var q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function G(e){var t,n,r,o,a,i,l,s=e.popper,u=e.popperRect,c=e.placement,f=e.variation,d=e.offsets,p=e.position,h=e.gpuAcceleration,v=e.adaptive,g=e.roundOffsets,y=e.isFixed,b=d.x,x=void 0===b?0:b,O=d.y,j=void 0===O?0:O,E="function"==typeof g?g({x:x,y:j}):{x:x,y:j};x=E.x,j=E.y;var Z=d.hasOwnProperty("x"),D=d.hasOwnProperty("y"),C=W,P="top",k=window;if(v){var M=T(s),R="clientHeight",A="clientWidth";M===m(s)&&"static"!==N(M=S(s)).position&&"absolute"===p&&(R="scrollHeight",A="scrollWidth"),("top"===c||(c===W||c===F)&&"end"===f)&&(P=_,j-=(y&&M===k&&k.visualViewport?k.visualViewport.height:M[R])-u.height,j*=h?1:-1),(c===W||("top"===c||c===_)&&"end"===f)&&(C=F,x-=(y&&M===k&&k.visualViewport?k.visualViewport.width:M[A])-u.width,x*=h?1:-1)}var I=Object.assign({position:p},v&&q),L=!0===g?(t={x:x,y:j},n=m(s),r=t.x,o=t.y,{x:w(r*(a=n.devicePixelRatio||1))/a||0,y:w(o*a)/a||0}):{x:x,y:j};return(x=L.x,j=L.y,h)?Object.assign({},I,((l={})[P]=D?"0":"",l[C]=Z?"0":"",l.transform=1>=(k.devicePixelRatio||1)?"translate("+x+"px, "+j+"px)":"translate3d("+x+"px, "+j+"px, 0)",l)):Object.assign({},I,((i={})[P]=D?j+"px":"",i[C]=Z?x+"px":"",i.transform="",i))}var J={passive:!0},Q={left:"right",right:"left",bottom:"top",top:"bottom"};function ee(e){return e.replace(/left|right|bottom|top/g,function(e){return Q[e]})}var et={start:"end",end:"start"};function en(e){return e.replace(/start|end/g,function(e){return et[e]})}function er(e){var t=m(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function eo(e){return E(S(e)).left+er(e).scrollLeft}function ea(e){var t=N(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ei(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf(C(t))>=0?t.ownerDocument.body:g(t)&&ea(t)?t:e(P(t))}(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=m(r),i=o?[a].concat(a.visualViewport||[],ea(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(ei(P(i)))}function el(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function es(e,t,n){var r,o,a,i,l,s,u,c,f,d;return t===X?el(function(e,t){var n=m(e),r=S(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var u=j();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+eo(e),y:s}}(e,n)):v(t)?((r=E(t,!1,"fixed"===n)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):el((o=S(e),i=S(o),l=er(o),s=null==(a=o.ownerDocument)?void 0:a.body,u=b(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),c=b(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),f=-l.scrollLeft+eo(o),d=-l.scrollTop,"rtl"===N(s||i).direction&&(f+=b(i.clientWidth,s?s.clientWidth:0)-u),{width:u,height:c,x:f,y:d}))}function eu(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?h(o):null,i=o?$(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case"top":t={x:l,y:n.y-r.height};break;case _:t={x:l,y:n.y+n.height};break;case F:t={x:n.x+n.width,y:s};break;case W:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=a?M(a):null;if(null!=u){var c="y"===u?"height":"width";switch(i){case U:t[u]=t[u]-(n[c]/2-r[c]/2);break;case"end":t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function ec(e,t){void 0===t&&(t={});var n,r,o,a,i,l,s,u,c=t,f=c.placement,d=void 0===f?e.placement:f,p=c.strategy,h=void 0===p?e.strategy:p,m=c.boundary,y=c.rootBoundary,w=c.elementContext,O=void 0===w?V:w,j=c.altBoundary,Z=c.padding,k=void 0===Z?0:Z,M=I("number"!=typeof k?k:L(k,H)),R=e.rects.popper,A=e.elements[void 0!==j&&j?O===V?"reference":V:O],W=(n=v(A)?A:A.contextElement||S(e.elements.popper),r=void 0===m?"clippingParents":m,o=void 0===y?X:y,s=(l=[].concat("clippingParents"===r?(a=ei(P(n)),v(i=["absolute","fixed"].indexOf(N(n).position)>=0&&g(n)?T(n):n)?a.filter(function(e){return v(e)&&D(e,i)&&"body"!==C(e)}):[]):[].concat(r),[o]))[0],(u=l.reduce(function(e,t){var r=es(n,t,h);return e.top=b(r.top,e.top),e.right=x(r.right,e.right),e.bottom=x(r.bottom,e.bottom),e.left=b(r.left,e.left),e},es(n,s,h))).width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u),B=E(e.elements.reference),U=eu({reference:B,element:R,strategy:"absolute",placement:d}),Y=el(Object.assign({},R,U)),K=O===V?Y:B,z={top:W.top-K.top+M.top,bottom:K.bottom-W.bottom+M.bottom,left:W.left-K.left+M.left,right:K.right-W.right+M.right},$=e.modifiersData.offset;if(O===V&&$){var q=$[d];Object.keys(z).forEach(function(e){var t=[F,_].indexOf(e)>=0?1:-1,n=["top",_].indexOf(e)>=0?"y":"x";z[e]+=q[n]*t})}return z}function ef(e,t,n){return void 0===n&&(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 ed(e){return["top",F,_,W].some(function(t){return e[t]>=0})}var ep={placement:"bottom",modifiers:[],strategy:"absolute"};function eh(){for(var e=arguments.length,t=Array(e),n=0;n=0?-1:1,s=(l="function"==typeof a?a(Object.assign({},r,{placement:n})):a)[0],u=l[1],s=s||0,u=(u||0)*i,[W,F].indexOf(o)>=0?{x:u,y:s}:{x:s,y:u}),e},{}),l=i[t.placement],s=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,m=void 0===p||p,v=n.allowedAutoPlacements,g=t.options.placement,y=h(g)===g,b=s||(y||!m?[ee(g)]:function(e){if(h(e)===B)return[];var t=ee(e);return[en(e),t,en(t)]}(g)),x=[g].concat(b).reduce(function(e,n){var r,o,a,i,l,s,d,p,g,y,b,x;return e.concat(h(n)===B?(o=(r={placement:n,boundary:c,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:v}).placement,a=r.boundary,i=r.rootBoundary,l=r.padding,s=r.flipVariations,p=void 0===(d=r.allowedAutoPlacements)?K:d,0===(b=(y=(g=$(o))?s?Y:Y.filter(function(e){return $(e)===g}):H).filter(function(e){return p.indexOf(e)>=0})).length&&(b=y),Object.keys(x=b.reduce(function(e,n){return e[n]=ec(t,{placement:n,boundary:a,rootBoundary:i,padding:l})[h(n)],e},{})).sort(function(e,t){return x[e]-x[t]})):n)},[]),w=t.rects.reference,O=t.rects.popper,j=new Map,E=!0,Z=x[0],D=0;D=0,k=P?"width":"height",T=ec(t,{placement:C,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),M=P?S?F:W:S?_:"top";w[k]>O[k]&&(M=ee(M));var R=ee(M),A=[];if(a&&A.push(T[N]<=0),l&&A.push(T[M]<=0,T[R]<=0),A.every(function(e){return e})){Z=C,E=!1;break}j.set(C,A)}if(E)for(var I=m?3:1,L=function(e){var t=x.find(function(t){var n=j.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return Z=t,"break"},X=I;X>0&&"break"!==L(X);X--);t.placement!==Z&&(t.modifiersData[r]._skip=!0,t.placement=Z,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=n.altAxis,i=n.boundary,l=n.rootBoundary,s=n.altBoundary,u=n.padding,c=n.tether,f=void 0===c||c,d=n.tetherOffset,p=void 0===d?0:d,m=ec(t,{boundary:i,rootBoundary:l,padding:u,altBoundary:s}),v=h(t.placement),g=$(t.placement),y=!g,w=M(v),O="x"===w?"y":"x",j=t.modifiersData.popperOffsets,E=t.rects.reference,D=t.rects.popper,C="function"==typeof p?p(Object.assign({},t.rects,{placement:t.placement})):p,N="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(j){if(void 0===o||o){var k,I="y"===w?"top":W,L="y"===w?_:F,B="y"===w?"height":"width",H=j[w],X=H+m[I],V=H-m[L],Y=f?-D[B]/2:0,K=g===U?E[B]:D[B],z=g===U?-D[B]:-E[B],q=t.elements.arrow,G=f&&q?Z(q):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:A(),Q=J[I],ee=J[L],et=R(0,E[B],G[B]),en=y?E[B]/2-Y-et-Q-N.mainAxis:K-et-Q-N.mainAxis,er=y?-E[B]/2+Y+et+ee+N.mainAxis:z+et+ee+N.mainAxis,eo=t.elements.arrow&&T(t.elements.arrow),ea=eo?"y"===w?eo.clientTop||0:eo.clientLeft||0:0,ei=null!=(k=null==S?void 0:S[w])?k:0,el=R(f?x(X,H+en-ei-ea):X,H,f?b(V,H+er-ei):V);j[w]=el,P[w]=el-H}if(void 0!==a&&a){var es,eu,ef="x"===w?"top":W,ed="x"===w?_:F,ep=j[O],eh="y"===O?"height":"width",em=ep+m[ef],ev=ep-m[ed],eg=-1!==["top",W].indexOf(v),ey=null!=(eu=null==S?void 0:S[O])?eu:0,eb=eg?em:ep-E[eh]-D[eh]-ey+N.altAxis,ex=eg?ep+E[eh]+D[eh]-ey-N.altAxis:ev,ew=f&&eg?(es=R(eb,ep,ex))>ex?ex:es:R(f?eb:em,ep,f?ex:ev);j[O]=ew,P[O]=ew-ep}t.modifiersData[r]=P}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r=e.state,o=e.name,a=e.options,i=r.elements.arrow,l=r.modifiersData.popperOffsets,s=h(r.placement),u=M(s),c=[W,F].indexOf(s)>=0?"height":"width";if(i&&l){var f=I("number"!=typeof(t="function"==typeof(t=a.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:L(t,H)),d=Z(i),p="y"===u?"top":W,m="y"===u?_:F,v=r.rects.reference[c]+r.rects.reference[u]-l[u]-r.rects.popper[c],g=l[u]-r.rects.reference[u],y=T(i),b=y?"y"===u?y.clientHeight||0:y.clientWidth||0:0,x=f[p],w=b-d[c]-f[m],O=b/2-d[c]/2+(v/2-g/2),j=R(x,O,w);r.modifiersData[o]=((n={})[u]=j,n.centerOffset=j-O,n)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&D(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}]}).defaultModifiers)?[]:o,l=void 0===(i=r.defaultOptions)?ep:i,function(e,t,n){void 0===n&&(n=l);var r,o,i={placement:"bottom",orderedModifiers:[],options:Object.assign({},ep,l),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],u=!1,c={state:i,setOptions:function(n){var r,o,u,d,p,h="function"==typeof n?n(i.options):n;f(),i.options=Object.assign({},l,i.options,h),i.scrollParents={reference:v(e)?ei(e):e.contextElement?ei(e.contextElement):[],popper:ei(t)};var m=(o=Object.keys(r=[].concat(a,i.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}),u=new Map,d=new Set,p=[],o.forEach(function(e){u.set(e.name,e)}),o.forEach(function(e){d.has(e.name)||function e(t){d.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!d.has(t)){var n=u.get(t);n&&e(n)}}),p.push(t)}(e)}),z.reduce(function(e,t){return e.concat(p.filter(function(e){return e.phase===t}))},[]));return i.orderedModifiers=m.filter(function(e){return e.enabled}),i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var o=r({state:i,name:t,instance:c,options:void 0===n?{}:n});s.push(o||function(){})}}),c.update()},forceUpdate:function(){if(!u){var e,t,n,r,o,a,l,s,f,d,p,h,v=i.elements,y=v.reference,b=v.popper;if(eh(y,b)){i.rects={reference:(t=T(b),n="fixed"===i.options.strategy,r=g(t),s=g(t)&&(a=w((o=t.getBoundingClientRect()).width)/t.offsetWidth||1,l=w(o.height)/t.offsetHeight||1,1!==a||1!==l),f=S(t),d=E(y,s,n),p={scrollLeft:0,scrollTop:0},h={x:0,y:0},(r||!r&&!n)&&(("body"!==C(t)||ea(f))&&(p=(e=t)!==m(e)&&g(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:er(e)),g(t)?(h=E(t,!0),h.x+=t.clientLeft,h.y+=t.clientTop):f&&(h.x=eo(f))),{x:d.left+p.scrollLeft-h.x,y:d.top+p.scrollTop-h.y,width:d.width,height:d.height}),popper:Z(b)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var x=0;xvoid 0},ey={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{let{reference:t,popper:n}=e.elements;if("removeAttribute"in t){let e=(t.getAttribute("aria-describedby")||"").split(",").filter(e=>e.trim()!==n.id);e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;let{popper:n,reference:r}=e.elements,o=null==(t=n.getAttribute("role"))?void 0:t.toLowerCase();if(n.id&&"tooltip"===o&&"setAttribute"in r){let e=r.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(n.id))return;r.setAttribute("aria-describedby",e?`${e},${n.id}`:n.id)}}},eb=[];var ex=function(e,t,n={}){let{enabled:r=!0,placement:o="bottom",strategy:a="absolute",modifiers:i=eb}=n,l=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(n,ev),u=(0,s.useRef)(i),c=(0,s.useRef)(),d=(0,s.useCallback)(()=>{var e;null==(e=c.current)||e.update()},[]),h=(0,s.useCallback)(()=>{var e;null==(e=c.current)||e.forceUpdate()},[]),[m,v]=p((0,s.useState)({placement:o,update:d,forceUpdate:h,attributes:{},styles:{popper:{},arrow:{}}})),g=(0,s.useMemo)(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{let t={},n={};Object.keys(e.elements).forEach(r=>{t[r]=e.styles[r],n[r]=e.attributes[r]}),v({state:e,styles:t,attributes:n,update:d,forceUpdate:h,placement:e.placement})}}),[d,h,v]),y=(0,s.useMemo)(()=>(f(u.current,i)||(u.current=i),u.current),[i]);return(0,s.useEffect)(()=>{c.current&&r&&c.current.setOptions({placement:o,strategy:a,modifiers:[...y,g,eg]})},[a,o,g,r,y]),(0,s.useEffect)(()=>{if(r&&null!=e&&null!=t)return c.current=em(e,t,Object.assign({},l,{placement:o,strategy:a,modifiers:[...y,ey,g]})),()=>{null!=c.current&&(c.current.destroy(),c.current=void 0,v(e=>Object.assign({},e,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),m}},5924:function(e,t,n){function r(){for(var e,t,n=0,r="";n{let{as:n,bsPrefix:r,variant:a="primary",size:u,active:c=!1,disabled:f=!1,className:d,...p}=e,h=(0,l.vE)(r,"btn"),[m,{tagName:v}]=(0,i.FT)({tagName:n,disabled:f,...p});return(0,s.jsx)(v,{...m,...p,ref:t,disabled:f,className:o()(d,h,c&&"active",a&&"".concat(h,"-").concat(a),u&&"".concat(h,"-").concat(u),p.href&&f&&"disabled")})});u.displayName="Button",t.Z=u},4090:function(e,t,n){var r=n(2187),o=n.n(r),a=n(5271),i=n(7896),l=n(2676);let s=a.forwardRef((e,t)=>{let[{className:n,...r},{as:a="div",bsPrefix:s,spans:u}]=function(e){let{as:t,bsPrefix:n,className:r,...a}=e;n=(0,i.vE)(n,"col");let l=(0,i.pi)(),s=(0,i.zG)(),u=[],c=[];return l.forEach(e=>{let t,r,o;let i=a[e];delete a[e],"object"==typeof i&&null!=i?{span:t,offset:r,order:o}=i:t=i;let l=e!==s?"-".concat(e):"";t&&u.push(!0===t?"".concat(n).concat(l):"".concat(n).concat(l,"-").concat(t)),null!=o&&c.push("order".concat(l,"-").concat(o)),null!=r&&c.push("offset".concat(l,"-").concat(r))}),[{...a,className:o()(r,...u,...c)},{as:t,bsPrefix:n,spans:u}]}(e);return(0,l.jsx)(a,{...r,ref:t,className:o()(n,!u.length&&s)})});s.displayName="Col",t.Z=s},9383:function(e,t,n){n.d(t,{Z:function(){return F}});var r=n(2187),o=n.n(r),a=n(5271),i=n(3465),l=n(2853),s=n(3689),u=n(5965),c=n(5434),f=n(4586),d=n(994),p=n(5851),h=n(9355),m=n(5082),v=n(177),g=n(1159),y=n(8743),b=n(8122),x=n(2676);let w=["eventKey","disabled","onClick","active","as"];function O({key:e,href:t,active:n,disabled:r,onClick:o}){let i=(0,a.useContext)(v.Z),{activeKey:l}=(0,a.useContext)(g.Z)||{},s=(0,v.h)(e,t),u=null==n&&null!=e?(0,v.h)(l)===s:n;return[{onClick:(0,d.Z)(e=>{r||(null==o||o(e),i&&!e.isPropagationStopped()&&i(s,e))}),"aria-disabled":r||void 0,"aria-selected":u,[(0,b.PB)("dropdown-item")]:""},{isActive:u}]}let j=a.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:o,active:a,as:i=y.ZP}=e,l=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,w),[s]=O({key:n,href:l.href,disabled:r,onClick:o,active:a});return(0,x.jsx)(i,Object.assign({},l,{ref:t},s))});j.displayName="DropdownItem";var E=n(2879);function Z(){let e=(0,c.Z)(),t=(0,a.useRef)(null),n=(0,a.useCallback)(n=>{t.current=n,e()},[e]);return[t,n]}function D({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:o=`* [${(0,b.PB)("dropdown-item")}]`,focusFirstItemOnShow:c,placement:h="bottom-start",children:g}){let y=(0,E.Z)(),[w,O]=(0,s.$c)(t,e,r),[j,D]=Z(),C=j.current,[N,S]=Z(),P=N.current,k=(0,u.Z)(w),T=(0,a.useRef)(null),M=(0,a.useRef)(!1),R=(0,a.useContext)(v.Z),A=(0,a.useCallback)((e,t,n=null==t?void 0:t.type)=>{O(e,{originalEvent:t,source:n})},[O]),I=(0,d.Z)((e,t)=>{null==n||n(e,t),A(!1,t,"select"),t.isPropagationStopped()||null==R||R(e,t)}),L=(0,a.useMemo)(()=>({toggle:A,placement:h,show:w,menuElement:C,toggleElement:P,setMenu:D,setToggle:S}),[A,h,w,C,P,D,S]);C&&k&&!w&&(M.current=C.contains(C.ownerDocument.activeElement));let _=(0,d.Z)(()=>{P&&P.focus&&P.focus()}),F=(0,d.Z)(()=>{let e=T.current,t=c;if(null==t&&(t=!!(j.current&&(0,m.bt)(j.current))&&"keyboard"),!1===t||"keyboard"===t&&!/^key.+$/.test(e))return;let n=(0,i.Z)(j.current,o)[0];n&&n.focus&&n.focus()});(0,a.useEffect)(()=>{w?F():M.current&&(M.current=!1,_())},[w,M,_,F]),(0,a.useEffect)(()=>{T.current=null});let W=(e,t)=>{if(!j.current)return null;let n=(0,i.Z)(j.current,o),r=n.indexOf(e)+t;return r=Math.max(0,Math.min(r,n.length)),n[r]};return(0,f.Z)((0,a.useCallback)(()=>y.document,[y]),"keydown",e=>{var t,n;let{key:r}=e,o=e.target,a=null==(t=j.current)?void 0:t.contains(o),i=null==(n=N.current)?void 0:n.contains(o);if(/input|textarea/i.test(o.tagName)&&(" "===r||"Escape"!==r&&a||"Escape"===r&&"search"===o.type)||!a&&!i||"Tab"===r&&(!j.current||!w))return;T.current=e.type;let s={originalEvent:e,source:e.type};switch(r){case"ArrowUp":{let t=W(o,-1);t&&t.focus&&t.focus(),e.preventDefault();return}case"ArrowDown":if(e.preventDefault(),w){let e=W(o,1);e&&e.focus&&e.focus()}else O(!0,s);return;case"Tab":(0,l.ZP)(o.ownerDocument,"keyup",e=>{var t;("Tab"!==e.key||e.target)&&null!=(t=j.current)&&t.contains(e.target)||O(!1,s)},{once:!0});break;case"Escape":"Escape"===r&&(e.preventDefault(),e.stopPropagation()),O(!1,s)}}),(0,x.jsx)(v.Z.Provider,{value:I,children:(0,x.jsx)(p.Z.Provider,{value:L,children:g})})}D.displayName="Dropdown",D.Menu=h.Z,D.Toggle=m.ZP,D.Item=j;var C=n(743),N=n(1851),S=n(7896);let P=a.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:a="hr",role:i="separator",...l}=e;return r=(0,S.vE)(r,"dropdown-divider"),(0,x.jsx)(a,{ref:t,className:o()(n,r),role:i,...l})});P.displayName="DropdownDivider";let k=a.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:a="div",role:i="heading",...l}=e;return r=(0,S.vE)(r,"dropdown-header"),(0,x.jsx)(a,{ref:t,className:o()(n,r),role:i,...l})});k.displayName="DropdownHeader";var T=n(1900);let M=a.forwardRef((e,t)=>{let{bsPrefix:n,className:r,eventKey:a,disabled:i=!1,onClick:l,active:s,as:u=T.Z,...c}=e,f=(0,S.vE)(n,"dropdown-item"),[d,p]=O({key:a,href:c.href,disabled:i,onClick:l,active:s});return(0,x.jsx)(u,{...c,...d,ref:t,className:o()(r,f,p.isActive&&"active",i&&"disabled")})});M.displayName="DropdownItem";let R=a.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:a="span",...i}=e;return r=(0,S.vE)(r,"dropdown-item-text"),(0,x.jsx)(a,{ref:t,className:o()(n,r),...i})});R.displayName="DropdownItemText";var A=n(1600),I=n(7335),L=n(5605);let _=a.forwardRef((e,t)=>{let{bsPrefix:n,drop:r="down",show:i,className:l,align:s="start",onSelect:u,onToggle:c,focusFirstItemOnShow:f,as:p="div",navbar:h,autoClose:m=!0,...v}=(0,C.Ch)(e,{show:"onToggle"}),g=(0,a.useContext)(L.Z),y=(0,S.vE)(n,"dropdown"),b=(0,S.SC)(),w=e=>!1===m?"click"===e:"inside"===m?"rootClose"!==e:"outside"!==m||"select"!==e,O=(0,d.Z)((e,t)=>{var n;(null==(n=t.originalEvent)||null==(n=n.target)||!n.classList.contains("dropdown-toggle")||"mousedown"!==t.source)&&(t.originalEvent.currentTarget===document&&("keydown"!==t.source||"Escape"===t.originalEvent.key)&&(t.source="rootClose"),w(t.source)&&(null==c||c(e,t)))}),j=(0,A.J)("end"===s,r,b),E=(0,a.useMemo)(()=>({align:s,drop:r,isRTL:b}),[s,r,b]);return(0,x.jsx)(N.Z.Provider,{value:E,children:(0,x.jsx)(D,{placement:j,show:i,onSelect:u,onToggle:O,focusFirstItemOnShow:f,itemSelector:".".concat(y,"-item:not(.disabled):not(:disabled)"),children:g?v.children:(0,x.jsx)(p,{...v,ref:t,className:o()(l,i&&"show",{down:y,"down-centered":"".concat(y,"-center"),up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"}[r])})})})});_.displayName="Dropdown";var F=Object.assign(_,{Toggle:I.Z,Menu:A.Z,Item:M,ItemText:R,Divider:P,Header:k})},8305:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(5271),o=n(507),a=n.n(o),i=n(9383),l=n(7335),s=n(1600);let u=a().oneOf(["start","end"]),c=a().oneOfType([u,a().shape({sm:u}),a().shape({md:u}),a().shape({lg:u}),a().shape({xl:u}),a().shape({xxl:u}),a().object]);var f=n(2676);let d={id:a().string,href:a().string,onClick:a().func,title:a().node.isRequired,disabled:a().bool,align:c,menuRole:a().string,renderMenuOnMount:a().bool,rootCloseEvent:a().string,menuVariant:a().oneOf(["dark"]),flip:a().bool,bsPrefix:a().string,variant:a().string,size:a().string},p=r.forwardRef((e,t)=>{let{title:n,children:r,bsPrefix:o,rootCloseEvent:a,variant:u,size:c,menuRole:d,renderMenuOnMount:p,disabled:h,href:m,id:v,menuVariant:g,flip:y,...b}=e;return(0,f.jsxs)(i.Z,{ref:t,...b,children:[(0,f.jsx)(l.Z,{id:v,href:m,size:c,variant:u,disabled:h,childBsPrefix:o,children:n}),(0,f.jsx)(s.Z,{role:d,renderOnMount:p,rootCloseEvent:a,variant:g,flip:y,children:r})]})});p.displayName="DropdownButton",p.propTypes=d;var h=p},1851:function(e,t,n){let r=n(5271).createContext({});r.displayName="DropdownContext",t.Z=r},1600:function(e,t,n){n.d(t,{J:function(){return m}});var r=n(2187),o=n.n(r),a=n(5271),i=n(9355),l=n(9125),s=n(1920);n(1190);var u=n(1851),c=n(5605),f=n(1991),d=n(7896),p=n(5821),h=n(2676);function m(e,t,n){let r=e?n?"bottom-start":"bottom-end":n?"bottom-end":"bottom-start";return"up"===t?r=e?n?"top-start":"top-end":n?"top-end":"top-start":"end"===t?r=e?n?"left-end":"right-end":n?"left-start":"right-start":"start"===t?r=e?n?"right-end":"left-end":n?"right-start":"left-start":"down-centered"===t?r="bottom":"up-centered"===t&&(r="top"),r}let v=a.forwardRef((e,t)=>{let{bsPrefix:n,className:r,align:v,rootCloseEvent:g,flip:y=!0,show:b,renderOnMount:x,as:w="div",popperConfig:O,variant:j,...E}=e,Z=!1,D=(0,a.useContext)(f.Z),C=(0,d.vE)(n,"dropdown-menu"),{align:N,drop:S,isRTL:P}=(0,a.useContext)(u.Z);v=v||N;let k=(0,a.useContext)(c.Z),T=[];if(v){if("object"==typeof v){let e=Object.keys(v);if(e.length){let t=e[0],n=v[t];Z="start"===n,T.push("".concat(C,"-").concat(t,"-").concat(n))}}else"end"===v&&(Z=!0)}let M=m(Z,S,P),[R,{hasShown:A,popper:I,show:L,toggle:_}]=(0,i.d)({flip:y,rootCloseEvent:g,show:b,usePopper:!D&&0===T.length,offset:[0,2],popperConfig:O,placement:M});if(R.ref=(0,s.Z)((0,p.Z)(t,"DropdownMenu"),R.ref),(0,l.Z)(()=>{L&&(null==I||I.update())},[L]),!A&&!x&&!k)return null;"string"!=typeof w&&(R.show=L,R.close=()=>null==_?void 0:_(!1),R.align=v);let F=E.style;return null!=I&&I.placement&&(F={...E.style,...R.style},E["x-placement"]=I.placement),(0,h.jsx)(w,{...E,...R,style:F,...(T.length||D)&&{"data-bs-popper":"static"},className:o()(r,C,L&&"show",Z&&"".concat(C,"-end"),j&&"".concat(C,"-").concat(j),...T)})});v.displayName="DropdownMenu",t.Z=v},7335:function(e,t,n){var r=n(1920),o=n(5851),a=n(5082),i=n(2187),l=n.n(i),s=n(5271),u=n(6271),c=n(7896),f=n(5821),d=n(2676);let p=s.forwardRef((e,t)=>{let{bsPrefix:n,split:i,className:p,childBsPrefix:h,as:m=u.Z,...v}=e,g=(0,c.vE)(n,"dropdown-toggle"),y=(0,s.useContext)(o.Z);void 0!==h&&(v.bsPrefix=h);let[b]=(0,a.Jr)();return b.ref=(0,r.Z)(b.ref,(0,f.Z)(t,"DropdownToggle")),(0,d.jsx)(m,{className:l()(p,g,i&&"".concat(g,"-split"),(null==y?void 0:y.show)&&"show"),...b,...v})});p.displayName="DropdownToggle",t.Z=p},2138:function(e,t,n){n.d(t,{Ed:function(){return a},UI:function(){return o},XW:function(){return i}});var r=n(5271);function o(e,t){let n=0;return r.Children.map(e,e=>r.isValidElement(e)?t(e,n++):e)}function a(e,t){let n=0;r.Children.forEach(e,e=>{r.isValidElement(e)&&t(e,n++)})}function i(e,t){return r.Children.toArray(e).some(e=>r.isValidElement(e)&&e.type===t)}},9841:function(e,t,n){var r=n(2187),o=n.n(r),a=n(5271),i=n(507),l=n.n(i),s=n(2676);let u={type:l().string,tooltip:l().bool,as:l().elementType},c=a.forwardRef((e,t)=>{let{as:n="div",className:r,type:a="valid",tooltip:i=!1,...l}=e;return(0,s.jsx)(n,{...l,ref:t,className:o()(r,"".concat(a,"-").concat(i?"tooltip":"feedback"))})});c.displayName="Feedback",c.propTypes=u,t.Z=c},2103:function(e,t,n){n.d(t,{Z:function(){return E}});var r=n(2187),o=n.n(r),a=n(507),i=n.n(a),l=n(5271),s=n(8765),u=n(3524),c=n(7896),f=n(2676);let d=l.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:a="div",...i}=e;return r=(0,c.vE)(r,"form-floating"),(0,f.jsx)(a,{ref:t,className:o()(n,r),...i})});d.displayName="FormFloating";var p=n(162),h=n(2933),m=n(5372);let v=l.forwardRef((e,t)=>{let{bsPrefix:n,className:r,id:a,...i}=e,{controlId:s}=(0,l.useContext)(m.Z);return n=(0,c.vE)(n,"form-range"),(0,f.jsx)("input",{...i,type:"range",ref:t,className:o()(r,n),id:a||s})});v.displayName="FormRange";var g=n(1992);let y=l.forwardRef((e,t)=>{let{bsPrefix:n,className:r,as:a="small",muted:i,...l}=e;return n=(0,c.vE)(n,"form-text"),(0,f.jsx)(a,{...l,ref:t,className:o()(r,n,i&&"text-muted")})});y.displayName="FormText";let b=l.forwardRef((e,t)=>(0,f.jsx)(s.Z,{...e,ref:t,type:"switch"}));b.displayName="Switch";var x=Object.assign(b,{Input:s.Z.Input,Label:s.Z.Label});let w=l.forwardRef((e,t)=>{let{bsPrefix:n,className:r,children:a,controlId:i,label:l,...s}=e;return n=(0,c.vE)(n,"form-floating"),(0,f.jsxs)(p.Z,{ref:t,className:o()(r,n),controlId:i,...s,children:[a,(0,f.jsx)("label",{htmlFor:i,children:l})]})});w.displayName="FloatingLabel";let O={_ref:i().any,validated:i().bool,as:i().elementType},j=l.forwardRef((e,t)=>{let{className:n,validated:r,as:a="form",...i}=e;return(0,f.jsx)(a,{...i,ref:t,className:o()(n,r&&"was-validated")})});j.displayName="Form",j.propTypes=O;var E=Object.assign(j,{Group:p.Z,Control:u.Z,Floating:d,Check:s.Z,Switch:x,Label:h.Z,Text:y,Range:v,Select:g.Z,FloatingLabel:w})},8765:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(2187),o=n.n(r),a=n(5271),i=n(9841),l=n(2182),s=n(5372),u=n(7896),c=n(2676);let f=a.forwardRef((e,t)=>{let{bsPrefix:n,className:r,htmlFor:i,...l}=e,{controlId:f}=(0,a.useContext)(s.Z);return n=(0,u.vE)(n,"form-check-label"),(0,c.jsx)("label",{...l,ref:t,htmlFor:i||f,className:o()(r,n)})});f.displayName="FormCheckLabel";var d=n(2138);let p=a.forwardRef((e,t)=>{let{id:n,bsPrefix:r,bsSwitchPrefix:p,inline:h=!1,reverse:m=!1,disabled:v=!1,isValid:g=!1,isInvalid:y=!1,feedbackTooltip:b=!1,feedback:x,feedbackType:w,className:O,style:j,title:E="",type:Z="checkbox",label:D,children:C,as:N="input",...S}=e;r=(0,u.vE)(r,"form-check"),p=(0,u.vE)(p,"form-switch");let{controlId:P}=(0,a.useContext)(s.Z),k=(0,a.useMemo)(()=>({controlId:n||P}),[P,n]),T=!C&&null!=D&&!1!==D||(0,d.XW)(C,f),M=(0,c.jsx)(l.Z,{...S,type:"switch"===Z?"checkbox":Z,ref:t,isValid:g,isInvalid:y,disabled:v,as:N});return(0,c.jsx)(s.Z.Provider,{value:k,children:(0,c.jsx)("div",{style:j,className:o()(O,T&&r,h&&"".concat(r,"-inline"),m&&"".concat(r,"-reverse"),"switch"===Z&&p),children:C||(0,c.jsxs)(c.Fragment,{children:[M,T&&(0,c.jsx)(f,{title:E,children:D}),x&&(0,c.jsx)(i.Z,{type:w,tooltip:b,children:x})]})})})});p.displayName="FormCheck";var h=Object.assign(p,{Input:l.Z,Label:f})},2182:function(e,t,n){var r=n(2187),o=n.n(r),a=n(5271),i=n(5372),l=n(7896),s=n(2676);let u=a.forwardRef((e,t)=>{let{id:n,bsPrefix:r,className:u,type:c="checkbox",isValid:f=!1,isInvalid:d=!1,as:p="input",...h}=e,{controlId:m}=(0,a.useContext)(i.Z);return r=(0,l.vE)(r,"form-check-input"),(0,s.jsx)(p,{...h,ref:t,type:c,id:n||m,className:o()(u,r,f&&"is-valid",d&&"is-invalid")})});u.displayName="FormCheckInput",t.Z=u},5372:function(e,t,n){let r=n(5271).createContext({});t.Z=r},3524:function(e,t,n){var r=n(2187),o=n.n(r),a=n(5271);n(1190);var i=n(9841),l=n(5372),s=n(7896),u=n(2676);let c=a.forwardRef((e,t)=>{let{bsPrefix:n,type:r,size:i,htmlSize:c,id:f,className:d,isValid:p=!1,isInvalid:h=!1,plaintext:m,readOnly:v,as:g="input",...y}=e,{controlId:b}=(0,a.useContext)(l.Z);return n=(0,s.vE)(n,"form-control"),(0,u.jsx)(g,{...y,type:r,size:c,ref:t,readOnly:v,id:f||b,className:o()(d,m?"".concat(n,"-plaintext"):n,i&&"".concat(n,"-").concat(i),"color"===r&&"".concat(n,"-color"),p&&"is-valid",h&&"is-invalid")})});c.displayName="FormControl",t.Z=Object.assign(c,{Feedback:i.Z})},162:function(e,t,n){var r=n(5271),o=n(5372),a=n(2676);let i=r.forwardRef((e,t)=>{let{controlId:n,as:i="div",...l}=e,s=(0,r.useMemo)(()=>({controlId:n}),[n]);return(0,a.jsx)(o.Z.Provider,{value:s,children:(0,a.jsx)(i,{...l,ref:t})})});i.displayName="FormGroup",t.Z=i},2933:function(e,t,n){var r=n(2187),o=n.n(r),a=n(5271);n(1190);var i=n(4090),l=n(5372),s=n(7896),u=n(2676);let c=a.forwardRef((e,t)=>{let{as:n="label",bsPrefix:r,column:c=!1,visuallyHidden:f=!1,className:d,htmlFor:p,...h}=e,{controlId:m}=(0,a.useContext)(l.Z);r=(0,s.vE)(r,"form-label");let v="col-form-label";"string"==typeof c&&(v="".concat(v," ").concat(v,"-").concat(c));let g=o()(d,r,f&&"visually-hidden",c&&v);return(p=p||m,c)?(0,u.jsx)(i.Z,{ref:t,as:"label",className:g,htmlFor:p,...h}):(0,u.jsx)(n,{ref:t,className:g,htmlFor:p,...h})});c.displayName="FormLabel",t.Z=c},1992:function(e,t,n){var r=n(2187),o=n.n(r),a=n(5271),i=n(7896),l=n(5372),s=n(2676);let u=a.forwardRef((e,t)=>{let{bsPrefix:n,size:r,htmlSize:u,className:c,isValid:f=!1,isInvalid:d=!1,id:p,...h}=e,{controlId:m}=(0,a.useContext)(l.Z);return n=(0,i.vE)(n,"form-select"),(0,s.jsx)("select",{...h,size:u,ref:t,className:o()(c,n,r&&"".concat(n,"-").concat(r),f&&"is-valid",d&&"is-invalid"),id:p||m})});u.displayName="FormSelect",t.Z=u},5053:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(2187),o=n.n(r),a=n(5271),i=n(7896),l=n(2182),s=n(5605),u=n(2676);let c=a.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:a="span",...l}=e;return r=(0,i.vE)(r,"input-group-text"),(0,u.jsx)(a,{ref:t,className:o()(n,r),...l})});c.displayName="InputGroupText";let f=a.forwardRef((e,t)=>{let{bsPrefix:n,size:r,hasValidation:l,className:c,as:f="div",...d}=e;n=(0,i.vE)(n,"input-group");let p=(0,a.useMemo)(()=>({}),[]);return(0,u.jsx)(s.Z.Provider,{value:p,children:(0,u.jsx)(f,{ref:t,...d,className:o()(c,n,r&&"".concat(n,"-").concat(r),l&&"has-validation")})})});f.displayName="InputGroup";var d=Object.assign(f,{Text:c,Radio:e=>(0,u.jsx)(c,{children:(0,u.jsx)(l.Z,{type:"radio",...e})}),Checkbox:e=>(0,u.jsx)(c,{children:(0,u.jsx)(l.Z,{type:"checkbox",...e})})})},5605:function(e,t,n){let r=n(5271).createContext(null);r.displayName="InputGroupContext",t.Z=r},4522:function(e,t,n){n.d(t,{Z:function(){return C}});var r=n(2187),o=n.n(r);n(9215);var a=n(5271),i=n(743),l=n(3465),s=n(5434),u=n(1920),c=n(1159),f=n(177),d=n(3778),p=n(8122),h=n(9628),m=n(2676);let v=["as","onSelect","activeKey","role","onKeyDown"],g=()=>{},y=(0,p.PB)("event-key"),b=a.forwardRef((e,t)=>{let n,r,{as:o="div",onSelect:i,activeKey:h,role:b,onKeyDown:x}=e,w=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,v),O=(0,s.Z)(),j=(0,a.useRef)(!1),E=(0,a.useContext)(f.Z),Z=(0,a.useContext)(d.Z);Z&&(b=b||"tablist",h=Z.activeKey,n=Z.getControlledId,r=Z.getControllerId);let D=(0,a.useRef)(null),C=e=>{let t=D.current;if(!t)return null;let n=(0,l.Z)(t,`[${y}]:not([aria-disabled=true])`),r=t.querySelector("[aria-selected=true]");if(!r||r!==document.activeElement)return null;let o=n.indexOf(r);if(-1===o)return null;let a=o+e;return a>=n.length&&(a=0),a<0&&(a=n.length-1),n[a]},N=(e,t)=>{null!=e&&(null==i||i(e,t),null==E||E(e,t))};(0,a.useEffect)(()=>{if(D.current&&j.current){let e=D.current.querySelector(`[${y}][aria-selected=true]`);null==e||e.focus()}j.current=!1});let S=(0,u.Z)(t,D);return(0,m.jsx)(f.Z.Provider,{value:N,children:(0,m.jsx)(c.Z.Provider,{value:{role:b,activeKey:(0,f.h)(h),getControlledId:n||g,getControllerId:r||g},children:(0,m.jsx)(o,Object.assign({},w,{onKeyDown:e=>{let t;if(null==x||x(e),Z){switch(e.key){case"ArrowLeft":case"ArrowUp":t=C(-1);break;case"ArrowRight":case"ArrowDown":t=C(1);break;default:return}t&&(e.preventDefault(),N(t.dataset[(0,p.$F)("EventKey")]||null,e),j.current=!0,O())}},ref:S,role:b}))})})});b.displayName="Nav";var x=Object.assign(b,{Item:h.Z}),w=n(7896),O=n(1991);let j=a.createContext(null);j.displayName="CardHeaderContext";var E=n(8406),Z=n(4352);let D=a.forwardRef((e,t)=>{let n,r;let{as:l="div",bsPrefix:s,variant:u,fill:c=!1,justify:f=!1,navbar:d,navbarScroll:p,className:h,activeKey:v,...g}=(0,i.Ch)(e,{activeKey:"onSelect"}),y=(0,w.vE)(s,"nav"),b=!1,E=(0,a.useContext)(O.Z),Z=(0,a.useContext)(j);return E?(n=E.bsPrefix,b=null==d||d):Z&&({cardHeaderBsPrefix:r}=Z),(0,m.jsx)(x,{as:l,ref:t,activeKey:v,className:o()(h,{[y]:!b,["".concat(n,"-nav")]:b,["".concat(n,"-nav-scroll")]:b&&p,["".concat(r,"-").concat(u)]:!!r,["".concat(y,"-").concat(u)]:!!u,["".concat(y,"-fill")]:c,["".concat(y,"-justified")]:f}),...g})});D.displayName="Nav";var C=Object.assign(D,{Item:E.Z,Link:Z.Z})},8406:function(e,t,n){var r=n(5271),o=n(2187),a=n.n(o),i=n(7896),l=n(2676);let s=r.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:o="div",...s}=e;return r=(0,i.vE)(r,"nav-item"),(0,l.jsx)(o,{ref:t,className:a()(n,r),...s})});s.displayName="NavItem",t.Z=s},4352:function(e,t,n){var r=n(2187),o=n.n(r),a=n(5271),i=n(1900),l=n(9628),s=n(177),u=n(7896),c=n(2676);let f=a.forwardRef((e,t)=>{let{bsPrefix:n,className:r,as:a=i.Z,active:f,eventKey:d,disabled:p=!1,...h}=e;n=(0,u.vE)(n,"nav-link");let[m,v]=(0,l.v)({key:(0,s.h)(d,h.href),active:f,disabled:p,...h});return(0,c.jsx)(a,{...h,...m,ref:t,disabled:p,className:o()(r,n,p&&"disabled",v.isActive&&"active")})});f.displayName="NavLink",t.Z=f},8877:function(e,t,n){n.d(t,{Z:function(){return F}});var r=n(6712),o=n(507),a=n.n(o),i=n(5271),l=n(2798);n(1190);var s=n(743),u=n(1920),c=n(2187),f=n.n(c),d=n(967),p=n(7311),h=n(7200),m=n(2685),v=n(8342),g=n(994),y=n(5116),b=n(7128);let x=()=>{};var w=function(e,t,{disabled:n,clickTrigger:r}={}){let o=t||x;(0,y.Z)(e,o,{disabled:n,clickTrigger:r});let a=(0,g.Z)(e=>{(0,b.k)(e)&&o(e)});(0,i.useEffect)(()=>{if(n||null==e)return;let t=(0,v.Z)((0,y.f)(e)),r=(t.defaultView||window).event,o=(0,m.Z)(t,"keyup",e=>{if(e===r){r=void 0;return}a(e)});return()=>{o()}},[e,n,a])},O=n(8633),j=n(5882),E=n(9458);let Z=i.forwardRef((e,t)=>{let{flip:n,offset:r,placement:o,containerPadding:a,popperConfig:l={},transition:s,runTransition:c}=e,[f,m]=(0,p.Z)(),[v,g]=(0,p.Z)(),y=(0,u.Z)(m,t),b=(0,O.Z)(e.container),x=(0,O.Z)(e.target),[Z,D]=(0,i.useState)(!e.show),C=(0,h.Z)(x,f,(0,j.ZP)({placement:o,enableEvents:!!e.show,containerPadding:a||5,flip:n,offset:r,arrowElement:v,popperConfig:l}));e.show&&Z&&D(!1);let N=e.show||!Z;if(w(f,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!N)return null;let{onExit:S,onExiting:P,onEnter:k,onEntering:T,onEntered:M}=e,R=e.children(Object.assign({},C.attributes.popper,{style:C.styles.popper,ref:y}),{popper:C,placement:o,show:!!e.show,arrowProps:Object.assign({},C.attributes.arrow,{style:C.styles.arrow,ref:g})});return R=(0,E.sD)(s,c,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:R,onExit:S,onExiting:P,onExited:(...t)=>{D(!0),e.onExited&&e.onExited(...t)},onEnter:k,onEntering:T,onEntered:M}),b?d.createPortal(R,b):null});Z.displayName="Overlay";var D=n(9125),C=n(9523),N=n(7896),S=n(5285),P=n(4011),k=n(9473),T=n(2676);let M=i.forwardRef((e,t)=>{let{bsPrefix:n,placement:r="right",className:o,style:a,children:i,arrowProps:l,hasDoneInitialMeasure:s,popper:u,show:c,...d}=e;n=(0,N.vE)(n,"tooltip");let p=(0,N.SC)(),[h]=(null==r?void 0:r.split("-"))||[],m=(0,P.z)(h,p),v=a;return c&&!s&&(v={...a,...(0,k.Z)(null==u?void 0:u.strategy)}),(0,T.jsxs)("div",{ref:t,style:v,role:"tooltip","x-placement":h,className:f()(o,n,"bs-tooltip-".concat(m)),...d,children:[(0,T.jsx)("div",{className:"tooltip-arrow",...l}),(0,T.jsx)("div",{className:"".concat(n,"-inner"),children:i})]})});M.displayName="Tooltip";var R=Object.assign(M,{TOOLTIP_OFFSET:[0,6]}),A=n(8238),I=n(4269);let L=i.forwardRef((e,t)=>{let{children:n,transition:r=A.Z,popperConfig:o={},rootClose:a=!1,placement:l="top",show:s=!1,...c}=e,d=(0,i.useRef)({}),[p,h]=(0,i.useState)(null),[m,v]=function(e){let t=(0,i.useRef)(null),n=(0,N.vE)(void 0,"popover"),r=(0,N.vE)(void 0,"tooltip"),o=(0,i.useMemo)(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if((0,C.Z)(t.current,n))return S.Z.POPPER_OFFSET;if((0,C.Z)(t.current,r))return R.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[o]]}(c.offset),y=(0,u.Z)(t,m),b=!0===r?A.Z:r||void 0,x=(0,g.Z)(e=>{h(e),null==o||null==o.onFirstUpdate||o.onFirstUpdate(e)});return(0,D.Z)(()=>{p&&c.target&&(null==d.current.scheduleUpdate||d.current.scheduleUpdate())},[p,c.target]),(0,i.useEffect)(()=>{s||h(null)},[s]),(0,T.jsx)(Z,{...c,ref:y,popperConfig:{...o,modifiers:v.concat(o.modifiers||[]),onFirstUpdate:x},transition:b,rootClose:a,placement:l,show:s,children:(e,t)=>{var a;let{arrowProps:l,popper:s,show:u}=t;!function(e,t){let{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=e=>n((0,I.Z)(e))),t.ref=r.__wrapped||(r.__wrapped=e=>r((0,I.Z)(e)))}(e,l);let c=null==s?void 0:s.placement,h=Object.assign(d.current,{state:null==s?void 0:s.state,scheduleUpdate:null==s?void 0:s.update,placement:c,outOfBoundaries:(null==s||null==(a=s.state)||null==(a=a.modifiersData.hide)?void 0:a.isReferenceHidden)||!1,strategy:o.strategy}),m=!!p;return"function"==typeof n?n({...e,placement:c,show:u,...!r&&u&&{className:"show"},popper:h,arrowProps:l,hasDoneInitialMeasure:m}):i.cloneElement(n,{...e,placement:c,arrowProps:l,popper:h,hasDoneInitialMeasure:m,className:f()(n.props.className,!r&&u&&"show"),style:{...n.props.style,...e.style}})}})});function _(e,t,n){let[o]=t,a=o.currentTarget,i=o.relatedTarget||o.nativeEvent[n];i&&i===a||(0,r.Z)(a,i)||e(...t)}L.displayName="Overlay",a().oneOf(["click","hover","focus"]);var F=e=>{let{trigger:t=["hover","focus"],overlay:n,children:r,popperConfig:o={},show:a,defaultShow:c=!1,onToggle:f,delay:d,placement:p,flip:h=p&&-1!==p.indexOf("auto"),...m}=e,v=(0,i.useRef)(null),g=(0,u.Z)(v,r.ref),y=(0,l.Z)(),b=(0,i.useRef)(""),[x,w]=(0,s.$c)(a,c,f),O=d&&"object"==typeof d?d:{show:d,hide:d},{onFocus:j,onBlur:E,onClick:Z}="function"!=typeof r?i.Children.only(r).props:{},D=(0,i.useCallback)(()=>{if(y.clear(),b.current="show",!O.show){w(!0);return}y.set(()=>{"show"===b.current&&w(!0)},O.show)},[O.show,w,y]),C=(0,i.useCallback)(()=>{if(y.clear(),b.current="hide",!O.hide){w(!1);return}y.set(()=>{"hide"===b.current&&w(!1)},O.hide)},[O.hide,w,y]),N=(0,i.useCallback)(function(){for(var e=arguments.length,t=Array(e),n=0;n{g((0,I.Z)(e))}};return -1!==R.indexOf("click")&&(A.onClick=P),-1!==R.indexOf("focus")&&(A.onFocus=N,A.onBlur=S),-1!==R.indexOf("hover")&&(A.onMouseOver=k,A.onMouseOut=M),(0,T.jsxs)(T.Fragment,{children:["function"==typeof r?r(A):(0,i.cloneElement)(r,A),(0,T.jsx)(L,{...m,show:x,onHide:C,flip:h,placement:p,popperConfig:o,target:v.current,children:n})]})}},5285:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(2187),o=n.n(r),a=n(5271),i=n(7896),l=n(2676);let s=a.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:a="div",...s}=e;return r=(0,i.vE)(r,"popover-header"),(0,l.jsx)(a,{ref:t,className:o()(n,r),...s})});s.displayName="PopoverHeader";let u=a.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:a="div",...s}=e;return r=(0,i.vE)(r,"popover-body"),(0,l.jsx)(a,{ref:t,className:o()(n,r),...s})});u.displayName="PopoverBody";var c=n(4011),f=n(9473),d=Object.assign(a.forwardRef((e,t)=>{let{bsPrefix:n,placement:r="right",className:a,style:s,children:d,body:p,arrowProps:h,hasDoneInitialMeasure:m,popper:v,show:g,...y}=e,b=(0,i.vE)(n,"popover"),x=(0,i.SC)(),[w]=(null==r?void 0:r.split("-"))||[],O=(0,c.z)(w,x),j=s;return g&&!m&&(j={...s,...(0,f.Z)(null==v?void 0:v.strategy)}),(0,l.jsxs)("div",{ref:t,role:"tooltip",style:j,"x-placement":w,className:o()(a,b,w&&"bs-popover-".concat(O)),...y,children:[(0,l.jsx)("div",{className:"popover-arrow",...h}),p?(0,l.jsx)(u,{children:d}):d]})}),{Header:s,Body:u,POPPER_OFFSET:[0,8]})},7978:function(e,t,n){var r=n(2187),o=n.n(r),a=n(5271),i=n(7896),l=n(2676);let s=a.forwardRef((e,t)=>{let{bsPrefix:n,className:r,as:a="div",...s}=e,u=(0,i.vE)(n,"row"),c=(0,i.pi)(),f=(0,i.zG)(),d="".concat(u,"-cols"),p=[];return c.forEach(e=>{let t;let n=s[e];delete s[e],null!=n&&"object"==typeof n?{cols:t}=n:t=n,null!=t&&p.push("".concat(d).concat(e!==f?"-".concat(e):"","-").concat(t))}),(0,l.jsx)(a,{ref:t,...s,className:o()(r,u,...p)})});s.displayName="Row",t.Z=s},9461:function(e,t,n){var r=n(2187),o=n.n(r),a=n(5271),i=n(7896),l=n(2676);let s=a.forwardRef((e,t)=>{let{bsPrefix:n,variant:r,animation:a="border",size:s,as:u="div",className:c,...f}=e;n=(0,i.vE)(n,"spinner");let d="".concat(n,"-").concat(a);return(0,l.jsx)(u,{ref:t,...f,className:o()(c,d,s&&"".concat(d,"-").concat(s),r&&"text-".concat(r))})});s.displayName="Spinner",t.Z=s},2596:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(507),o=n.n(r);n(5271);var a=n(3809),i=n(1104),l=n(2676);let s=e=>{let{transition:t,...n}=e;return(0,l.jsx)(a.Z,{...n,transition:(0,i.Z)(t)})};s.displayName="TabContainer";var u=n(7671),c=n(6225);let f={eventKey:o().oneOfType([o().string,o().number]),title:o().node.isRequired,disabled:o().bool,tabClassName:o().string,tabAttrs:o().object},d=()=>{throw Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")};d.propTypes=f;var p=Object.assign(d,{Container:s,Content:u.Z,Pane:c.Z})},7671:function(e,t,n){var r=n(5271),o=n(2187),a=n.n(o),i=n(7896),l=n(2676);let s=r.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:o="div",...s}=e;return r=(0,i.vE)(r,"tab-content"),(0,l.jsx)(o,{ref:t,className:a()(n,r),...s})});s.displayName="TabContent",t.Z=s},6225:function(e,t,n){var r=n(2187),o=n.n(r),a=n(5271),i=n(177),l=n(3778),s=n(6162),u=n(7896),c=n(8238),f=n(1104),d=n(2676);let p=a.forwardRef((e,t)=>{let{bsPrefix:n,transition:r,...a}=e,[{className:p,as:h="div",...m},{isActive:v,onEnter:g,onEntering:y,onEntered:b,onExit:x,onExiting:w,onExited:O,mountOnEnter:j,unmountOnExit:E,transition:Z=c.Z}]=(0,s.W)({...a,transition:(0,f.Z)(r)}),D=(0,u.vE)(n,"tab-pane");return(0,d.jsx)(l.Z.Provider,{value:null,children:(0,d.jsx)(i.Z.Provider,{value:null,children:(0,d.jsx)(Z,{in:v,onEnter:g,onEntering:y,onEntered:b,onExit:x,onExiting:w,onExited:O,mountOnEnter:j,unmountOnExit:E,children:(0,d.jsx)(h,{...m,ref:t,className:o()(p,D,v&&"active")})})})})});p.displayName="TabPane",t.Z=p},219:function(e,t,n){n(5271);var r=n(743),o=n(3809),a=n(4522),i=n(4352),l=n(8406),s=n(7671),u=n(6225),c=n(2138),f=n(1104),d=n(2676);function p(e){let{title:t,eventKey:n,disabled:r,tabClassName:o,tabAttrs:a,id:s}=e.props;return null==t?null:(0,d.jsx)(l.Z,{as:"li",role:"presentation",children:(0,d.jsx)(i.Z,{as:"button",type:"button",eventKey:n,disabled:r,id:s,className:o,...a,children:t})})}let h=e=>{let t;let{id:n,onSelect:i,transition:l,mountOnEnter:h=!1,unmountOnExit:m=!1,variant:v="tabs",children:g,activeKey:y=((0,c.Ed)(g,e=>{null==t&&(t=e.props.eventKey)}),t),...b}=(0,r.Ch)(e,{activeKey:"onSelect"});return(0,d.jsxs)(o.Z,{id:n,activeKey:y,onSelect:i,transition:(0,f.Z)(l),mountOnEnter:h,unmountOnExit:m,children:[(0,d.jsx)(a.Z,{id:n,...b,role:"tablist",as:"ul",variant:v,children:(0,c.UI)(g,p)}),(0,d.jsx)(s.Z,{children:(0,c.UI)(g,e=>{let t={...e.props};return delete t.title,delete t.disabled,delete t.tabClassName,delete t.tabAttrs,(0,d.jsx)(u.Z,{...t})})})]})};h.displayName="Tabs",t.Z=h},5537:function(e,t,n){n.d(t,{Z:function(){return b}});var r=n(5271),o=n(2187),a=n.n(o),i=n(2798),l=n(9800),s=n(8238),u=n(2676);let c={[l.d0]:"showing",[l.Ix]:"showing show"},f=r.forwardRef((e,t)=>(0,u.jsx)(s.Z,{...e,ref:t,transitionClasses:c}));f.displayName="ToastFade";var d=n(994),p=n(7896),h=n(3666);let m=r.createContext({onClose(){}}),v=r.forwardRef((e,t)=>{let{bsPrefix:n,closeLabel:o="Close",closeVariant:i,closeButton:l=!0,className:s,children:c,...f}=e;n=(0,p.vE)(n,"toast-header");let v=(0,r.useContext)(m),g=(0,d.Z)(e=>{null==v||null==v.onClose||v.onClose(e)});return(0,u.jsxs)("div",{ref:t,...f,className:a()(n,s),children:[c,l&&(0,u.jsx)(h.Z,{"aria-label":o,variant:i,onClick:g,"data-dismiss":"toast"})]})});v.displayName="ToastHeader";let g=r.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:o="div",...i}=e;return r=(0,p.vE)(r,"toast-body"),(0,u.jsx)(o,{ref:t,className:a()(n,r),...i})});g.displayName="ToastBody";let y=r.forwardRef((e,t)=>{let{bsPrefix:n,className:o,transition:l=f,show:s=!0,animation:c=!0,delay:d=5e3,autohide:h=!1,onClose:v,onEntered:g,onExit:y,onExiting:b,onEnter:x,onEntering:w,onExited:O,bg:j,...E}=e;n=(0,p.vE)(n,"toast");let Z=(0,r.useRef)(d),D=(0,r.useRef)(v);(0,r.useEffect)(()=>{Z.current=d,D.current=v},[d,v]);let C=(0,i.Z)(),N=!!(h&&s),S=(0,r.useCallback)(()=>{N&&(null==D.current||D.current())},[N]);(0,r.useEffect)(()=>{C.set(S,Z.current)},[C,S]);let P=(0,r.useMemo)(()=>({onClose:v}),[v]),k=!!(l&&c),T=(0,u.jsx)("div",{...E,ref:t,className:a()(n,o,j&&"bg-".concat(j),!k&&(s?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return(0,u.jsx)(m.Provider,{value:P,children:k&&l?(0,u.jsx)(l,{in:s,onEnter:x,onEntering:w,onEntered:g,onExit:y,onExiting:b,onExited:O,unmountOnExit:!0,children:T}):T})});y.displayName="Toast";var b=Object.assign(y,{Body:g,Header:v})},9473:function(e,t,n){n.d(t,{Z:function(){return r}});function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"absolute";return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}},1104:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(3636),o=n(8238);function a(e){return"boolean"==typeof e?e?o.Z:r.Z:e}},4011:function(e,t,n){function r(e,t){let n=e;return"left"===e?n=t?"end":"start":"right"===e&&(n=t?"start":"end"),n}n.d(t,{z:function(){return r}}),n(5271)},5821:function(e,t,n){function r(e,t){return e}n.d(t,{Z:function(){return r}}),n(3670),n(5271),n(1920)},9215:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n>",s=i||r;if(null==n[r])return t?Error("Required "+a+" `"+s+"` was not specified in `"+l+"`."):null;for(var u=arguments.length,c=Array(u>6?u-6:0),f=6;f{if((0,f.default)("Draggable: onDragStart: %j",t),!1===this.props.onStart(e,(0,s.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})}),m(this,"onDrag",(e,t)=>{if(!this.state.dragging)return!1;(0,f.default)("Draggable: onDrag: %j",t);let n=(0,s.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){let{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[o,a]=(0,s.getBoundPosition)(this,r.x,r.y);r.x=o,r.y=a,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)}),m(this,"onDragStop",(e,t)=>{if(!this.state.dragging||!1===this.props.onStop(e,(0,s.createDraggableData)(this,t)))return!1;(0,f.default)("Draggable: onDragStop: %j",t);let n={dragging:!1,slackX:0,slackY:0};if(this.props.position){let{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)}),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode() instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:a.default.findDOMNode(this)}render(){let{axis:e,bounds:t,children:n,defaultPosition:o,defaultClassName:a,defaultClassNameDragging:u,defaultClassNameDragged:f,position:d,positionOffset:p,scale:m,...v}=this.props,g={},y=null,b=!d||this.state.dragging,x=d||o,w={x:(0,s.canDragX)(this)&&b?this.state.x:x.x,y:(0,s.canDragY)(this)&&b?this.state.y:x.y};this.state.isElementSVG?y=(0,l.createSVGTransform)(w,p):g=(0,l.createCSSTransform)(w,p);let O=(0,i.default)(n.props.className||"",a,{[u]:this.state.dragging,[f]:this.state.dragged});return r.createElement(c.default,h({},v,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),r.cloneElement(r.Children.only(n),{className:O,style:{...n.props.style,...g},transform:y}))}}t.default=v,m(v,"displayName","Draggable"),m(v,"propTypes",{...c.default.propTypes,axis:o.default.oneOf(["both","x","y","none"]),bounds:o.default.oneOfType([o.default.shape({left:o.default.number,right:o.default.number,top:o.default.number,bottom:o.default.number}),o.default.string,o.default.oneOf([!1])]),defaultClassName:o.default.string,defaultClassNameDragging:o.default.string,defaultClassNameDragged:o.default.string,defaultPosition:o.default.shape({x:o.default.number,y:o.default.number}),positionOffset:o.default.shape({x:o.default.oneOfType([o.default.number,o.default.string]),y:o.default.oneOfType([o.default.number,o.default.string])}),position:o.default.shape({x:o.default.number,y:o.default.number}),className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),m(v,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})},7322:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(void 0);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(5271)),o=c(n(507)),a=c(n(967)),i=n(2153),l=n(2356),s=n(9035),u=c(n(3544));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function d(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let p={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},h=p.mouse;class m extends r.Component{constructor(){super(...arguments),d(this,"dragging",!1),d(this,"lastX",NaN),d(this,"lastY",NaN),d(this,"touchIdentifier",null),d(this,"mounted",!1),d(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw Error(" not mounted on DragStart!");let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,i.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,i.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"===e.type&&e.preventDefault();let r=(0,i.getTouchIdentifier)(e);this.touchIdentifier=r;let o=(0,l.getControlPosition)(e,r,this);if(null==o)return;let{x:a,y:s}=o,c=(0,l.createCoreData)(this,a,s);(0,u.default)("DraggableCore: handleDragStart: %j",c),(0,u.default)("calling",this.props.onStart),!1!==this.props.onStart(e,c)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,i.addUserSelectStyles)(n),this.dragging=!0,this.lastX=a,this.lastY=s,(0,i.addEvent)(n,h.move,this.handleDrag),(0,i.addEvent)(n,h.stop,this.handleDragStop))}),d(this,"handleDrag",e=>{let t=(0,l.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,l.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}let o=(0,l.createCoreData)(this,n,r);if((0,u.default)("DraggableCore: handleDrag: %j",o),!1===this.props.onDrag(e,o)||!1===this.mounted){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(t){let e=document.createEvent("MouseEvents");e.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(e)}return}this.lastX=n,this.lastY=r}),d(this,"handleDragStop",e=>{if(!this.dragging)return;let t=(0,l.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=(0,l.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}let o=(0,l.createCoreData)(this,n,r);if(!1===this.props.onStop(e,o)||!1===this.mounted)return!1;let a=this.findDOMNode();a&&this.props.enableUserSelectHack&&(0,i.removeUserSelectStyles)(a.ownerDocument),(0,u.default)("DraggableCore: handleDragStop: %j",o),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&((0,u.default)("DraggableCore: Removing handlers"),(0,i.removeEvent)(a.ownerDocument,h.move,this.handleDrag),(0,i.removeEvent)(a.ownerDocument,h.stop,this.handleDragStop))}),d(this,"onMouseDown",e=>(h=p.mouse,this.handleDragStart(e))),d(this,"onMouseUp",e=>(h=p.mouse,this.handleDragStop(e))),d(this,"onTouchStart",e=>(h=p.touch,this.handleDragStart(e))),d(this,"onTouchEnd",e=>(h=p.touch,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&(0,i.addEvent)(e,p.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;(0,i.removeEvent)(t,p.mouse.move,this.handleDrag),(0,i.removeEvent)(t,p.touch.move,this.handleDrag),(0,i.removeEvent)(t,p.mouse.stop,this.handleDragStop),(0,i.removeEvent)(t,p.touch.stop,this.handleDragStop),(0,i.removeEvent)(e,p.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,i.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current:a.default.findDOMNode(this)}render(){return r.cloneElement(r.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}t.default=m,d(m,"displayName","DraggableCore"),d(m,"propTypes",{allowAnyClick:o.default.bool,children:o.default.node.isRequired,disabled:o.default.bool,enableUserSelectHack:o.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw Error("Draggable's offsetParent must be a DOM Node.")},grid:o.default.arrayOf(o.default.number),handle:o.default.string,cancel:o.default.string,nodeRef:o.default.object,onStart:o.default.func,onDrag:o.default.func,onStop:o.default.func,onMouseDown:o.default.func,scale:o.default.number,className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),d(m,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},4569:function(e,t,n){let{default:r,DraggableCore:o}=n(9661);e.exports=r,e.exports.default=r,e.exports.DraggableCore=o},2153:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.addClassName=u,t.addEvent=function(e,t,n,r){if(!e)return;let o={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},t.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t)),e.body&&u(e.body,"react-draggable-transparent-selection")},t.createCSSTransform=function(e,t){let n=s(e,t,"px");return{[(0,o.browserPrefixToKey)("transform",o.default)]:n}},t.createSVGTransform=function(e,t){return s(e,t,"")},t.getTouch=function(e,t){return e.targetTouches&&(0,r.findInArray)(e.targetTouches,e=>t===e.identifier)||e.changedTouches&&(0,r.findInArray)(e.changedTouches,e=>t===e.identifier)},t.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},t.getTranslation=s,t.innerHeight=function(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,r.int)(n.paddingTop),t-=(0,r.int)(n.paddingBottom)},t.innerWidth=function(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,r.int)(n.paddingLeft),t-=(0,r.int)(n.paddingRight)},t.matchesSelector=l,t.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(l(r,t))return!0;if(r===n)break;r=r.parentNode}while(r);return!1},t.offsetXYFromParent=function(e,t,n){let r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-r.left)/n,y:(e.clientY+t.scrollTop-r.top)/n}},t.outerHeight=function(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+((0,r.int)(n.borderTopWidth)+(0,r.int)(n.borderBottomWidth))},t.outerWidth=function(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+((0,r.int)(n.borderLeftWidth)+(0,r.int)(n.borderRightWidth))},t.removeClassName=c,t.removeEvent=function(e,t,n,r){if(!e)return;let o={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},t.removeUserSelectStyles=function(e){if(e)try{if(e.body&&c(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{let t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var r=n(9035),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(void 0);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(8596));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}let i="";function l(e,t){return i||(i=(0,r.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(t){return(0,r.isFunction)(e[t])})),!!(0,r.isFunction)(e[i])&&e[i](t)}function s(e,t,n){let{x:r,y:o}=e,a="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){let e="".concat("string"==typeof t.x?t.x:t.x+n),r="".concat("string"==typeof t.y?t.y:t.y+n);a="translate(".concat(e,", ").concat(r,")")+a}return a}function u(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function c(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}},8596:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.browserPrefixToKey=o,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0,t.getPrefix=r;let n=["Moz","Webkit","O","ms"];function r(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";let r=null===(e=window.document)||void 0===e||null===(e=e.documentElement)||void 0===e?void 0:e.style;if(!r||t in r)return"";for(let e=0;e: Unmounted during event!");return t}},9035:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function(e,t,n){if(e[t])return Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},t.findInArray=function(e,t){for(let n=0,r=e.length;n{let[t,...r]=e,o=null==n?void 0:n(t,...r);return i(t),o},[n])]}},1190:function(e){e.exports=function(){}},336:function(e,t,n){n.d(t,{gP:function(){return u}});var r=n(5271);let o={prefix:String(Math.round(1e10*Math.random())),current:0},a=r.createContext(o),i=r.createContext(!1),l=!!("undefined"!=typeof window&&window.document&&window.document.createElement),s=new WeakMap,u="function"==typeof r.useId?function(e){let t=r.useId(),[n]=(0,r.useState)("function"==typeof r.useSyncExternalStore?r.useSyncExternalStore(d,c,f):(0,r.useContext)(i)),a=n?"react-aria":`react-aria${o.prefix}`;return e||`${a}-${t}`}:function(e){let t=(0,r.useContext)(a);t!==o||l||console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let n=function(e=!1){let t=(0,r.useContext)(a),n=(0,r.useRef)(null);if(null===n.current&&!e){var o,i;let e=null===(i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===i?void 0:null===(o=i.ReactCurrentOwner)||void 0===o?void 0:o.current;if(e){let n=s.get(e);null==n?s.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,s.delete(e))}n.current=++t.current}return n.current}(!!e),i=`react-aria${t.prefix}`;return e||`${i}-${n}`};function c(){return!1}function f(){return!0}function d(e){return()=>{}}}}]); \ No newline at end of file diff --git a/dist/_next/static/chunks/3014b548-3d757d63f1e501e2.js b/dist/_next/static/chunks/3014b548-3d757d63f1e501e2.js new file mode 100644 index 00000000..cfc06ee4 --- /dev/null +++ b/dist/_next/static/chunks/3014b548-3d757d63f1e501e2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[121],{756:function(e,t,n){var r,l=n(116),a=n(6947),o={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function i(e){var t="https://react.dev/errors/"+e;if(1p||(e.current=d[p],d[p]=null,p--)}function g(e,t){d[++p]=e.current,e.current=t}var y=Symbol.for("react.element"),v=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),C=Symbol.for("react.consumer"),E=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),L=Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var T=Symbol.for("react.offscreen"),F=Symbol.for("react.legacy_hidden"),M=Symbol.for("react.cache");Symbol.for("react.tracing_marker");var O=Symbol.iterator;function R(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var D=m(null),A=m(null),I=m(null),U=m(null),B={$$typeof:E,_currentValue:null,_currentValue2:null,_threadCount:0,Provider:null,Consumer:null};function V(e,t){switch(g(I,t),g(A,e),g(D,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?s2(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=s3(e=s2(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}h(D),g(D,t)}function Q(){h(D),h(A),h(I)}function $(e){null!==e.memoizedState&&g(U,e);var t=D.current,n=s3(t,e.type);t!==n&&(g(A,e),g(D,n))}function j(e){A.current===e&&(h(D),h(A)),U.current===e&&(h(U),B._currentValue=null)}var W=a.unstable_scheduleCallback,H=a.unstable_cancelCallback,q=a.unstable_shouldYield,K=a.unstable_requestPaint,Y=a.unstable_now,X=a.unstable_getCurrentPriorityLevel,G=a.unstable_ImmediatePriority,Z=a.unstable_UserBlockingPriority,J=a.unstable_NormalPriority,ee=a.unstable_LowPriority,et=a.unstable_IdlePriority,en=a.log,er=a.unstable_setDisableYieldValue,el=null,ea=null;function eo(e){if("function"==typeof en&&er(e),ea&&"function"==typeof ea.setStrictMode)try{ea.setStrictMode(el,e)}catch(e){}}var ei=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(eu(e)/es|0)|0},eu=Math.log,es=Math.LN2,ec=128,ef=4194304;function ed(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ep(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,l=e.suspendedLanes;e=e.pingedLanes;var a=134217727&n;return 0!==a?0!=(n=a&~l)?r=ed(n):0!=(e&=a)&&(r=ed(e)):0!=(n&=~l)?r=ed(n):0!==e&&(r=ed(e)),0===r?0:0!==t&&t!==r&&0==(t&l)&&((l=r&-r)>=(e=t&-t)||32===l&&0!=(4194176&e))?t:r}function em(e,t){return e.errorRecoveryDisabledLanes&t?0:0!=(e=-536870913&e.pendingLanes)?e:536870912&e?536870912:0}function eh(){var e=ec;return 0==(4194176&(ec<<=1))&&(ec=128),e}function eg(){var e=ef;return 0==(62914560&(ef<<=1))&&(ef=4194304),e}function ey(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ev(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ei(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194218&n}function eb(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ei(n),l=1<l||u[r]!==s[l]){var c="\n"+u[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=r&&0<=l);break}}}finally{eG=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?eX(n):""}function eJ(e){try{var t="";do t+=function(e){switch(e.tag){case 26:case 27:case 5:return eX(e.type);case 16:return eX("Lazy");case 13:return eX("Suspense");case 19:return eX("SuspenseList");case 0:case 2:case 15:return e=eZ(e.type,!1);case 11:return e=eZ(e.type.render,!1);case 1:return e=eZ(e.type,!0);default:return""}}(e),e=e.return;while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var e0=Symbol.for("react.client.reference");function e1(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function e2(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function e3(e){e._valueTracker||(e._valueTracker=function(e){var t=e2(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var l=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function e4(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=e2(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function e6(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var e8=/[\n"\\]/g;function e5(e){return e.replace(e8,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function e7(e,t,n,r,l,a,o,i){e.name="",null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o?e.type=o:e.removeAttribute("type"),null!=t?"number"===o?(0===t&&""===e.value||e.value!=t)&&(e.value=""+e1(t)):e.value!==""+e1(t)&&(e.value=""+e1(t)):"submit"!==o&&"reset"!==o||e.removeAttribute("value"),null!=t?te(e,o,e1(t)):null!=n?te(e,o,e1(n)):null!=r&&e.removeAttribute("value"),null==l&&null!=a&&(e.defaultChecked=!!a),null!=l&&(e.checked=l&&"function"!=typeof l&&"symbol"!=typeof l),null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?e.name=""+e1(i):e.removeAttribute("name")}function e9(e,t,n,r,l,a,o,i){if(null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.type=a),null!=t||null!=n){if(!("submit"!==a&&"reset"!==a||null!=t))return;n=null!=n?""+e1(n):"",t=null!=t?""+e1(t):n,i||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:l)&&"symbol"!=typeof r&&!!r,e.checked=i?e.checked:!!r,e.defaultChecked=!!r,null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.name=o)}function te(e,t,n){"number"===t&&e6(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}var tt=Array.isArray;function tn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=iX.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}var to=ta;"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(to=function(e,t){return MSApp.execUnsafeLocalFunction(function(){return ta(e,t)})});var ti=to;function tu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType){n.nodeValue=t;return}}e.textContent=t}var ts=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 tc(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||ts.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function tf(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(i(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var l in t)r=t[l],t.hasOwnProperty(l)&&n[l]!==r&&tc(e,l,r)}else for(var a in t)t.hasOwnProperty(a)&&tc(e,a,t[a])}function td(e){if(-1===e.indexOf("-"))return!1;switch(e){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 tp=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"]]),tm=null;function th(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var tg=null,ty=null;function tv(e){var t=eO(e);if(t&&(e=t.stateNode)){var n=eD(e);switch(e=t.stateNode,t.type){case"input":if(e7(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+e5(""+t)+'"][type="radio"]'),t=0;t>=o,l-=o,tj=1<<32-ei(t)+l|n<h?(g=f,f=null):g=f.sibling;var y=p(l,f,i[h],u);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(l,f),o=a(y,o,h),null===c?s=y:c.sibling=y,c=y,f=g}if(h===i.length)return n(l,f),tZ&&tH(l,h),s;if(null===f){for(;hg?(y=h,h=null):y=h.sibling;var b=p(l,h,v.value,s);if(null===b){null===h&&(h=y);break}e&&h&&null===b.alternate&&t(l,h),o=a(b,o,g),null===f?c=b:f.sibling=b,f=b,h=y}if(v.done)return n(l,h),tZ&&tH(l,g),c;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,s))&&(o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return tZ&&tH(l,g),c}for(h=r(l,h);!v.done;g++,v=u.next())null!==(v=m(h,l,g,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return e&&h.forEach(function(e){return t(l,e)}),tZ&&tH(l,g),c}(s,c,f,h);if("function"==typeof f.then)return u(s,c,nJ(f),h);if(f.$$typeof===E)return u(s,c,ai(s,f,h),h);n1(s,f)}return"string"==typeof f&&""!==f||"number"==typeof f?(f=""+f,null!==c&&6===c.tag?(n(s,c.sibling),(c=l(c,f)).return=s):(n(s,c),(c=i_(f,s.mode,h)).return=s),o(s=c)):n(s,c)}(u,s,c,f),nG=null,u}}var n4=n3(!0),n6=n3(!1),n8=m(null),n5=m(0);function n7(e,t){g(n5,e=oz),g(n8,t),oz=e|t.baseLanes}function n9(){g(n5,oz),g(n8,n8.current)}function re(){oz=n5.current,h(n8),h(n5)}var rt=m(null),rn=null;function rr(e){var t=e.alternate;g(ri,1&ri.current),g(rt,e),null===rn&&(null===t||null!==n8.current?rn=e:null!==t.memoizedState&&(rn=e))}function rl(e){if(22===e.tag){if(g(ri,ri.current),g(rt,e),null===rn){var t=e.alternate;null!==t&&null!==t.memoizedState&&(rn=e)}}else ra(e)}function ra(){g(ri,ri.current),g(rt,rt.current)}function ro(e){h(rt),rn===e&&(rn=null),h(ri)}var ri=m(0);function ru(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rs=s.ReactCurrentDispatcher,rc=s.ReactCurrentBatchConfig,rf=0,rd=null,rp=null,rm=null,rh=!1,rg=!1,ry=!1,rv=0,rb=0,rk=null,rw=0;function rS(){throw Error(i(321))}function rC(e,t){if(null===t)return!1;for(var n=0;na?a:8;var o=rc.transition,i={_callbacks:new Set};rc.transition=i,lf(e,!1,t,n);try{var u=l();if(null!==u&&"object"==typeof u&&"function"==typeof u.then){av(i,u);var s,c,f=(s=[],c={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},u.then(function(){c.status="fulfilled",c.value=r;for(var e=0;e title"))),sG(l,n,r),l[eE]=e,eI(l),n=l;break e;case"link":var a=cE("link","href",t).get(n+(r.href||""));if(a){for(var o=0;o",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?l.createElement(n,{is:r.is}):l.createElement(n)}}e[eE]=t,e[ex]=r;e:for(l=t.child;null!==l;){if(5===l.tag||6===l.tag)e.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break;for(;null===l.sibling;){if(null===l.return||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(t.stateNode=e,sG(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break;case"img":e=!0;break;default:e=!1}e&&aC(t)}}return aP(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&aC(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(e=I.current,t9(t)){e:{if(e=t.stateNode,n=t.memoizedProps,e[eE]=t,(r=e.nodeValue!==n)&&null!==(l=tX))switch(l.tag){case 3:if(l=0!=(1&l.mode),sq(e.nodeValue,n,l),l){e=!1;break e}break;case 27:case 5:var a=0!=(1&l.mode);if(!0!==l.memoizedProps.suppressHydrationWarning&&sq(e.nodeValue,n,a),a){e=!1;break e}}e=r}e&&aC(t)}else(e=s1(e).createTextNode(r))[eE]=t,t.stateNode=e}return aP(t),null;case 13:if(ro(t),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(tZ&&null!==tG&&0!=(1&t.mode)&&0==(128&t.flags))ne(),nt(),t.flags|=384,l=!1;else if(l=t9(t),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(i(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(i(317));l[eE]=t}else nt(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;aP(t),l=!1}else null!==tJ&&(o0(tJ),tJ=null),l=!0;if(!l)return 256&t.flags?t:null}if(0!=(128&t.flags))return t.lanes=n,t;return n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(r=t.child,l=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool),a=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ax(t,t.updateQueue),aP(t),null;case 4:return Q(),null===e&&sA(t.stateNode.containerInfo),aP(t),null;case 10:return an(t.type._context),aP(t),null;case 19:if(h(ri),null===(l=t.memoizedState))return aP(t),null;if(r=0!=(128&t.flags),null===(a=l.rendering)){if(r)az(l,!1);else{if(0!==oP||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=ru(e))){for(t.flags|=128,az(l,!1),e=a.updateQueue,t.updateQueue=e,ax(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)ix(n,e),n=n.sibling;return g(ri,1&ri.current|2),t.child}e=e.sibling}null!==l.tail&&Y()>oI&&(t.flags|=128,r=!0,az(l,!1),t.lanes=4194304)}}else{if(!r){if(null!==(e=ru(a))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,ax(t,e),az(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate&&!tZ)return aP(t),null}else 2*Y()-l.renderingStartTime>oI&&536870912!==n&&(t.flags|=128,r=!0,az(l,!1),t.lanes=4194304)}l.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=l.last)?e.sibling=a:t.child=a,l.last=a)}if(null!==l.tail)return t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Y(),t.sibling=null,e=ri.current,g(ri,r?1&e|2:1&e),t;return aP(t),null;case 22:case 23:return ro(t),re(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(536870912&n)&&0==(128&t.flags)&&(aP(t),6&t.subtreeFlags&&(t.flags|=8192)):aP(t),null!==(n=t.updateQueue)&&ax(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&h(ab),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),an(ad),aP(t),null;case 25:return null}throw Error(i(156,t.tag))}(t.alternate,t,oz);if(null!==n){ow=n;return}if(null!==(t=t.sibling)){ow=t;return}ow=t=e}while(null!==t);0===oP&&(oP=5)}function is(e,t,n,r,l){var a=ek,o=ov.transition;try{ov.transition=null,ek=2,function(e,t,n,r,l,a){do id();while(null!==oj);if(0!=(6&ob))throw Error(i(327));var o,u=e.finishedWork,s=e.finishedLanes;if(null!==u){if(e.finishedWork=null,e.finishedLanes=0,u===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var c=u.lanes|u.childLanes;if(function(e,t,n){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0,t=e.entanglements;for(var l=e.expirationTimes,a=e.hiddenUpdates;0r&&(l=r,r=a,a=l),l=si(n,a);var o=si(n,r);l&&o&&(1!==e.rangeCount||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(l.node,l.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;nn?32:n;n=ov.transition;var l=ek;try{if(ov.transition=null,ek=r,null===oj)var a=!1;else{r=oq,oq=null;var o=oj,u=oW;if(oj=null,oW=0,0!=(6&ob))throw Error(i(331));var s=ob;if(ob|=4,of(o.current),ol(o,o.current,u,r),ob=s,nb(!1),ea&&"function"==typeof ea.onPostCommitFiberRoot)try{ea.onPostCommitFiberRoot(el,o)}catch(e){}a=!0}return a}finally{ek=l,ov.transition=n,ic(e,t)}}return!1}function ip(e,t,n){t=lL(e,t=lP(n,t),2),null!==(e=nO(e,t,2))&&(o2(e,2),nv(e))}function im(e,t,n){if(3===e.tag)ip(e,e,n);else for(;null!==t;){if(3===t.tag){ip(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===oQ||!oQ.has(r))){e=lT(t,e=lP(n,e),2),null!==(t=nO(t,e,2))&&(o2(t,2),nv(t));break}}t=t.return}}function ih(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new om;var l=new Set;r.set(t,l)}else void 0===(l=r.get(t))&&(l=new Set,r.set(t,l));l.has(n)||(ox=!0,l.add(n),e=ig.bind(null,e,t,n),t.then(e,e))}function ig(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,2&ob?oR=!0:4&ob&&(oD=!0),ik(),ok===e&&(oS&n)===n&&(4===oP||3===oP&&(62914560&oS)===oS&&300>Y()-oA?0==(2&ob)&&o5(e,0):oT|=n),nv(e)}function iy(e,t){0===t&&(t=0==(1&e.mode)?2:eg()),null!==(e=ns(e,t))&&(o2(e,t),nv(e))}function iv(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),iy(e,n)}function ib(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(n=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}null!==r&&r.delete(t),iy(e,n)}function ik(){if(50=uH),uY=!1;function uX(e,t){switch(e){case"keyup":return -1!==uj.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uG(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var uZ=!1,uJ={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 u0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!uJ[e.type]:"textarea"===t}function u1(e,t,n,r){tb(r),0<(t=sV(t,"onChange")).length&&(n=new i3("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var u2=null,u3=null;function u4(e){sM(e,0)}function u6(e){if(e4(eR(e)))return e}function u8(e,t){if("change"===e)return t}var u5=!1;if(e$){if(e$){var u7="oninput"in document;if(!u7){var u9=document.createElement("div");u9.setAttribute("oninput","return;"),u7="function"==typeof u9.oninput}r=u7}else r=!1;u5=r&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=so(r)}}function su(){for(var e=window,t=e6();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=e6(e.document)}return t}function ss(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var sc=e$&&"documentMode"in document&&11>=document.documentMode,sf=null,sd=null,sp=null,sm=!1;function sh(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;sm||null==sf||sf!==e6(r)||(r="selectionStart"in(r=sf)&&ss(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},sp&&nQ(sp,r)||(sp=r,0<(r=sV(sd,"onSelect")).length&&(t=new i3("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=sf)))}function sg(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sy={animationend:sg("Animation","AnimationEnd"),animationiteration:sg("Animation","AnimationIteration"),animationstart:sg("Animation","AnimationStart"),transitionend:sg("Transition","TransitionEnd")},sv={},sb={};function sk(e){if(sv[e])return sv[e];if(!sy[e])return e;var t,n=sy[e];for(t in n)if(n.hasOwnProperty(t)&&t in sb)return sv[e]=n[t];return e}e$&&(sb=document.createElement("div").style,"AnimationEvent"in window||(delete sy.animationend.animation,delete sy.animationiteration.animation,delete sy.animationstart.animation),"TransitionEvent"in window||delete sy.transitionend.transition);var sw=sk("animationend"),sS=sk("animationiteration"),sC=sk("animationstart"),sE=sk("transitionend"),sx=new Map,sz="abort auxClick 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 scrollEnd toggle touchMove waiting wheel".split(" ");function sP(e,t){sx.set(e,t),eV(t,[e])}for(var sN=0;sN title"):null)}var cz=null;function cP(){}function cN(){if(this.count--,0===this.count){if(this.stylesheets)cL(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var c_=null;function cL(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,c_=new Map,t.forEach(cT,e),c_=null,cN.call(e))}function cT(e,t){if(!(4&t.state.loading)){var n=c_.get(e);if(n)var r=n.get(null);else{n=new Map,c_.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;ap||(e.current=d[p],d[p]=null,p--)}function g(e,t){d[++p]=e.current,e.current=t}var y=Symbol.for("react.element"),v=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),C=Symbol.for("react.consumer"),E=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),L=Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var T=Symbol.for("react.offscreen"),F=Symbol.for("react.legacy_hidden"),M=Symbol.for("react.cache");Symbol.for("react.tracing_marker");var O=Symbol.iterator;function R(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var D=m(null),A=m(null),I=m(null),U=m(null),B={$$typeof:E,_currentValue:null,_currentValue2:null,_threadCount:0,Provider:null,Consumer:null};function V(e,t){switch(g(I,t),g(A,e),g(D,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?s2(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=s3(e=s2(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}h(D),g(D,t)}function Q(){h(D),h(A),h(I)}function $(e){null!==e.memoizedState&&g(U,e);var t=D.current,n=s3(t,e.type);t!==n&&(g(A,e),g(D,n))}function j(e){A.current===e&&(h(D),h(A)),U.current===e&&(h(U),B._currentValue=null)}var W=a.unstable_scheduleCallback,H=a.unstable_cancelCallback,q=a.unstable_shouldYield,K=a.unstable_requestPaint,Y=a.unstable_now,X=a.unstable_getCurrentPriorityLevel,G=a.unstable_ImmediatePriority,Z=a.unstable_UserBlockingPriority,J=a.unstable_NormalPriority,ee=a.unstable_LowPriority,et=a.unstable_IdlePriority,en=a.log,er=a.unstable_setDisableYieldValue,el=null,ea=null;function eo(e){if("function"==typeof en&&er(e),ea&&"function"==typeof ea.setStrictMode)try{ea.setStrictMode(el,e)}catch(e){}}var ei=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(eu(e)/es|0)|0},eu=Math.log,es=Math.LN2,ec=128,ef=4194304;function ed(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ep(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,l=e.suspendedLanes;e=e.pingedLanes;var a=134217727&n;return 0!==a?0!=(n=a&~l)?r=ed(n):0!=(e&=a)&&(r=ed(e)):0!=(n&=~l)?r=ed(n):0!==e&&(r=ed(e)),0===r?0:0!==t&&t!==r&&0==(t&l)&&((l=r&-r)>=(e=t&-t)||32===l&&0!=(4194176&e))?t:r}function em(e,t){return e.errorRecoveryDisabledLanes&t?0:0!=(e=-536870913&e.pendingLanes)?e:536870912&e?536870912:0}function eh(){var e=ec;return 0==(4194176&(ec<<=1))&&(ec=128),e}function eg(){var e=ef;return 0==(62914560&(ef<<=1))&&(ef=4194304),e}function ey(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ev(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ei(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194218&n}function eb(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ei(n),l=1<l||u[r]!==s[l]){var c="\n"+u[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=r&&0<=l);break}}}finally{eG=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?eX(n):""}function eJ(e){try{var t="";do t+=function(e){switch(e.tag){case 26:case 27:case 5:return eX(e.type);case 16:return eX("Lazy");case 13:return eX("Suspense");case 19:return eX("SuspenseList");case 0:case 2:case 15:return e=eZ(e.type,!1);case 11:return e=eZ(e.type.render,!1);case 1:return e=eZ(e.type,!0);default:return""}}(e),e=e.return;while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var e0=Symbol.for("react.client.reference");function e1(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function e2(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function e3(e){e._valueTracker||(e._valueTracker=function(e){var t=e2(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var l=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function e4(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=e2(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function e6(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var e8=/[\n"\\]/g;function e5(e){return e.replace(e8,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function e7(e,t,n,r,l,a,o,i){e.name="",null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o?e.type=o:e.removeAttribute("type"),null!=t?"number"===o?(0===t&&""===e.value||e.value!=t)&&(e.value=""+e1(t)):e.value!==""+e1(t)&&(e.value=""+e1(t)):"submit"!==o&&"reset"!==o||e.removeAttribute("value"),null!=t?te(e,o,e1(t)):null!=n?te(e,o,e1(n)):null!=r&&e.removeAttribute("value"),null==l&&null!=a&&(e.defaultChecked=!!a),null!=l&&(e.checked=l&&"function"!=typeof l&&"symbol"!=typeof l),null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?e.name=""+e1(i):e.removeAttribute("name")}function e9(e,t,n,r,l,a,o,i){if(null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.type=a),null!=t||null!=n){if(!("submit"!==a&&"reset"!==a||null!=t))return;n=null!=n?""+e1(n):"",t=null!=t?""+e1(t):n,i||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:l)&&"symbol"!=typeof r&&!!r,e.checked=i?e.checked:!!r,e.defaultChecked=!!r,null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.name=o)}function te(e,t,n){"number"===t&&e6(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}var tt=Array.isArray;function tn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=iX.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}var to=ta;"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(to=function(e,t){return MSApp.execUnsafeLocalFunction(function(){return ta(e,t)})});var ti=to;function tu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType){n.nodeValue=t;return}}e.textContent=t}var ts=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 tc(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||ts.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function tf(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(i(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var l in t)r=t[l],t.hasOwnProperty(l)&&n[l]!==r&&tc(e,l,r)}else for(var a in t)t.hasOwnProperty(a)&&tc(e,a,t[a])}function td(e){if(-1===e.indexOf("-"))return!1;switch(e){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 tp=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"]]),tm=null;function th(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var tg=null,ty=null;function tv(e){var t=eO(e);if(t&&(e=t.stateNode)){var n=eD(e);switch(e=t.stateNode,t.type){case"input":if(e7(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+e5(""+t)+'"][type="radio"]'),t=0;t>=o,l-=o,tj=1<<32-ei(t)+l|n<h?(g=f,f=null):g=f.sibling;var y=p(l,f,i[h],u);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(l,f),o=a(y,o,h),null===c?s=y:c.sibling=y,c=y,f=g}if(h===i.length)return n(l,f),tZ&&tH(l,h),s;if(null===f){for(;hg?(y=h,h=null):y=h.sibling;var b=p(l,h,v.value,s);if(null===b){null===h&&(h=y);break}e&&h&&null===b.alternate&&t(l,h),o=a(b,o,g),null===f?c=b:f.sibling=b,f=b,h=y}if(v.done)return n(l,h),tZ&&tH(l,g),c;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,s))&&(o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return tZ&&tH(l,g),c}for(h=r(l,h);!v.done;g++,v=u.next())null!==(v=m(h,l,g,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return e&&h.forEach(function(e){return t(l,e)}),tZ&&tH(l,g),c}(s,c,f,h);if("function"==typeof f.then)return u(s,c,nJ(f),h);if(f.$$typeof===E)return u(s,c,ai(s,f,h),h);n1(s,f)}return"string"==typeof f&&""!==f||"number"==typeof f?(f=""+f,null!==c&&6===c.tag?(n(s,c.sibling),(c=l(c,f)).return=s):(n(s,c),(c=i_(f,s.mode,h)).return=s),o(s=c)):n(s,c)}(u,s,c,f),nG=null,u}}var n4=n3(!0),n6=n3(!1),n8=m(null),n5=m(0);function n7(e,t){g(n5,e=oz),g(n8,t),oz=e|t.baseLanes}function n9(){g(n5,oz),g(n8,n8.current)}function re(){oz=n5.current,h(n8),h(n5)}var rt=m(null),rn=null;function rr(e){var t=e.alternate;g(ri,1&ri.current),g(rt,e),null===rn&&(null===t||null!==n8.current?rn=e:null!==t.memoizedState&&(rn=e))}function rl(e){if(22===e.tag){if(g(ri,ri.current),g(rt,e),null===rn){var t=e.alternate;null!==t&&null!==t.memoizedState&&(rn=e)}}else ra(e)}function ra(){g(ri,ri.current),g(rt,rt.current)}function ro(e){h(rt),rn===e&&(rn=null),h(ri)}var ri=m(0);function ru(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rs=s.ReactCurrentDispatcher,rc=s.ReactCurrentBatchConfig,rf=0,rd=null,rp=null,rm=null,rh=!1,rg=!1,ry=!1,rv=0,rb=0,rk=null,rw=0;function rS(){throw Error(i(321))}function rC(e,t){if(null===t)return!1;for(var n=0;na?a:8;var o=rc.transition,i={_callbacks:new Set};rc.transition=i,lf(e,!1,t,n);try{var u=l();if(null!==u&&"object"==typeof u&&"function"==typeof u.then){av(i,u);var s,c,f=(s=[],c={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},u.then(function(){c.status="fulfilled",c.value=r;for(var e=0;e title"))),sG(l,n,r),l[eE]=e,eI(l),n=l;break e;case"link":var a=cE("link","href",t).get(n+(r.href||""));if(a){for(var o=0;o",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?l.createElement(n,{is:r.is}):l.createElement(n)}}e[eE]=t,e[ex]=r;e:for(l=t.child;null!==l;){if(5===l.tag||6===l.tag)e.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break;for(;null===l.sibling;){if(null===l.return||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(t.stateNode=e,sG(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break;case"img":e=!0;break;default:e=!1}e&&aC(t)}}return aP(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&aC(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(e=I.current,t9(t)){e:{if(e=t.stateNode,n=t.memoizedProps,e[eE]=t,(r=e.nodeValue!==n)&&null!==(l=tX))switch(l.tag){case 3:if(l=0!=(1&l.mode),sq(e.nodeValue,n,l),l){e=!1;break e}break;case 27:case 5:var a=0!=(1&l.mode);if(!0!==l.memoizedProps.suppressHydrationWarning&&sq(e.nodeValue,n,a),a){e=!1;break e}}e=r}e&&aC(t)}else(e=s1(e).createTextNode(r))[eE]=t,t.stateNode=e}return aP(t),null;case 13:if(ro(t),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(tZ&&null!==tG&&0!=(1&t.mode)&&0==(128&t.flags))ne(),nt(),t.flags|=384,l=!1;else if(l=t9(t),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(i(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(i(317));l[eE]=t}else nt(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;aP(t),l=!1}else null!==tJ&&(o0(tJ),tJ=null),l=!0;if(!l)return 256&t.flags?t:null}if(0!=(128&t.flags))return t.lanes=n,t;return n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(r=t.child,l=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool),a=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ax(t,t.updateQueue),aP(t),null;case 4:return Q(),null===e&&sA(t.stateNode.containerInfo),aP(t),null;case 10:return an(t.type._context),aP(t),null;case 19:if(h(ri),null===(l=t.memoizedState))return aP(t),null;if(r=0!=(128&t.flags),null===(a=l.rendering)){if(r)az(l,!1);else{if(0!==oP||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=ru(e))){for(t.flags|=128,az(l,!1),e=a.updateQueue,t.updateQueue=e,ax(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)ix(n,e),n=n.sibling;return g(ri,1&ri.current|2),t.child}e=e.sibling}null!==l.tail&&Y()>oI&&(t.flags|=128,r=!0,az(l,!1),t.lanes=4194304)}}else{if(!r){if(null!==(e=ru(a))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,ax(t,e),az(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate&&!tZ)return aP(t),null}else 2*Y()-l.renderingStartTime>oI&&536870912!==n&&(t.flags|=128,r=!0,az(l,!1),t.lanes=4194304)}l.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=l.last)?e.sibling=a:t.child=a,l.last=a)}if(null!==l.tail)return t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Y(),t.sibling=null,e=ri.current,g(ri,r?1&e|2:1&e),t;return aP(t),null;case 22:case 23:return ro(t),re(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(536870912&n)&&0==(128&t.flags)&&(aP(t),6&t.subtreeFlags&&(t.flags|=8192)):aP(t),null!==(n=t.updateQueue)&&ax(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&h(ab),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),an(ad),aP(t),null;case 25:return null}throw Error(i(156,t.tag))}(t.alternate,t,oz);if(null!==n){ow=n;return}if(null!==(t=t.sibling)){ow=t;return}ow=t=e}while(null!==t);0===oP&&(oP=5)}function is(e,t,n,r,l){var a=ek,o=ov.transition;try{ov.transition=null,ek=2,function(e,t,n,r,l,a){do id();while(null!==oj);if(0!=(6&ob))throw Error(i(327));var o,u=e.finishedWork,s=e.finishedLanes;if(null!==u){if(e.finishedWork=null,e.finishedLanes=0,u===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var c=u.lanes|u.childLanes;if(function(e,t,n){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0,t=e.entanglements;for(var l=e.expirationTimes,a=e.hiddenUpdates;0r&&(l=r,r=a,a=l),l=si(n,a);var o=si(n,r);l&&o&&(1!==e.rangeCount||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(l.node,l.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;nn?32:n;n=ov.transition;var l=ek;try{if(ov.transition=null,ek=r,null===oj)var a=!1;else{r=oq,oq=null;var o=oj,u=oW;if(oj=null,oW=0,0!=(6&ob))throw Error(i(331));var s=ob;if(ob|=4,of(o.current),ol(o,o.current,u,r),ob=s,nb(!1),ea&&"function"==typeof ea.onPostCommitFiberRoot)try{ea.onPostCommitFiberRoot(el,o)}catch(e){}a=!0}return a}finally{ek=l,ov.transition=n,ic(e,t)}}return!1}function ip(e,t,n){t=lL(e,t=lP(n,t),2),null!==(e=nO(e,t,2))&&(o2(e,2),nv(e))}function im(e,t,n){if(3===e.tag)ip(e,e,n);else for(;null!==t;){if(3===t.tag){ip(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===oQ||!oQ.has(r))){e=lT(t,e=lP(n,e),2),null!==(t=nO(t,e,2))&&(o2(t,2),nv(t));break}}t=t.return}}function ih(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new om;var l=new Set;r.set(t,l)}else void 0===(l=r.get(t))&&(l=new Set,r.set(t,l));l.has(n)||(ox=!0,l.add(n),e=ig.bind(null,e,t,n),t.then(e,e))}function ig(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,2&ob?oR=!0:4&ob&&(oD=!0),ik(),ok===e&&(oS&n)===n&&(4===oP||3===oP&&(62914560&oS)===oS&&300>Y()-oA?0==(2&ob)&&o5(e,0):oT|=n),nv(e)}function iy(e,t){0===t&&(t=0==(1&e.mode)?2:eg()),null!==(e=ns(e,t))&&(o2(e,t),nv(e))}function iv(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),iy(e,n)}function ib(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(n=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}null!==r&&r.delete(t),iy(e,n)}function ik(){if(50=uH),uY=!1;function uX(e,t){switch(e){case"keyup":return -1!==uj.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uG(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var uZ=!1,uJ={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 u0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!uJ[e.type]:"textarea"===t}function u1(e,t,n,r){tb(r),0<(t=sV(t,"onChange")).length&&(n=new i3("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var u2=null,u3=null;function u4(e){sM(e,0)}function u6(e){if(e4(eR(e)))return e}function u8(e,t){if("change"===e)return t}var u5=!1;if(e$){if(e$){var u7="oninput"in document;if(!u7){var u9=document.createElement("div");u9.setAttribute("oninput","return;"),u7="function"==typeof u9.oninput}r=u7}else r=!1;u5=r&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=so(r)}}function su(){for(var e=window,t=e6();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=e6(e.document)}return t}function ss(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var sc=e$&&"documentMode"in document&&11>=document.documentMode,sf=null,sd=null,sp=null,sm=!1;function sh(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;sm||null==sf||sf!==e6(r)||(r="selectionStart"in(r=sf)&&ss(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},sp&&nQ(sp,r)||(sp=r,0<(r=sV(sd,"onSelect")).length&&(t=new i3("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=sf)))}function sg(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sy={animationend:sg("Animation","AnimationEnd"),animationiteration:sg("Animation","AnimationIteration"),animationstart:sg("Animation","AnimationStart"),transitionend:sg("Transition","TransitionEnd")},sv={},sb={};function sk(e){if(sv[e])return sv[e];if(!sy[e])return e;var t,n=sy[e];for(t in n)if(n.hasOwnProperty(t)&&t in sb)return sv[e]=n[t];return e}e$&&(sb=document.createElement("div").style,"AnimationEvent"in window||(delete sy.animationend.animation,delete sy.animationiteration.animation,delete sy.animationstart.animation),"TransitionEvent"in window||delete sy.transitionend.transition);var sw=sk("animationend"),sS=sk("animationiteration"),sC=sk("animationstart"),sE=sk("transitionend"),sx=new Map,sz="abort auxClick 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 scrollEnd toggle touchMove waiting wheel".split(" ");function sP(e,t){sx.set(e,t),eV(t,[e])}for(var sN=0;sN title"):null)}var cz=null;function cP(){}function cN(){if(this.count--,0===this.count){if(this.stylesheets)cL(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var c_=null;function cL(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,c_=new Map,t.forEach(cT,e),c_=null,cN.call(e))}function cT(e,t){if(!(4&t.state.loading)){var n=c_.get(e);if(n)var r=n.get(null);else{n=new Map,c_.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a{t.current=e},[e]),t}},994:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(5271),o=n(50);function i(e){let t=(0,o.Z)(e);return(0,r.useCallback)(function(...e){return t.current&&t.current(...e)},[t])}},9125:function(e,t,n){"use strict";var r=n(5271);let o=void 0!==n.g&&n.g.navigator&&"ReactNative"===n.g.navigator.product,i="undefined"!=typeof document;t.Z=i||o?r.useLayoutEffect:r.useEffect},1920:function(e,t,n){"use strict";var r=n(5271);let o=e=>e&&"function"!=typeof e?t=>{e.current=t}:e;t.Z=function(e,t){return(0,r.useMemo)(()=>(function(e,t){let n=o(e),r=o(t);return e=>{n&&n(e),r&&r(e)}})(e,t),[e,t])}},9761:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(5271);function o(){let e=(0,r.useRef)(!0),t=(0,r.useRef)(()=>e.current);return(0,r.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}},5965:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(5271);function o(e){let t=(0,r.useRef)(null);return(0,r.useEffect)(()=>{t.current=e}),t.current}},3354:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(5271);function o(e){let t=function(e){let t=(0,r.useRef)(e);return t.current=e,t}(e);(0,r.useEffect)(()=>()=>t.current(),[])}},8122:function(e,t,n){"use strict";function r(e){return`data-rr-ui-${e}`}function o(e){return`rrUi${e}`}n.d(t,{$F:function(){return o},PB:function(){return r}})},9458:function(e,t,n){"use strict";n.d(t,{sD:function(){return m}});var r=n(1920),o=n(994),i=n(9125),a=n(5271),s=n(3636),u=n(7128);let l=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];var c=n(2676);let f=["component"],d=a.forwardRef((e,t)=>{let{component:n}=e,o=function(e){let{onEnter:t,onEntering:n,onEntered:o,onExit:i,onExiting:s,onExited:c,addEndListener:f,children:d}=e,p=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,l),{major:m}=(0,u.E)(),h=m>=19?d.props.ref:d.ref,v=(0,a.useRef)(null),g=(0,r.Z)(v,"function"==typeof d?null:h),y=e=>t=>{e&&v.current&&e(v.current,t)},E=(0,a.useCallback)(y(t),[t]),x=(0,a.useCallback)(y(n),[n]),b=(0,a.useCallback)(y(o),[o]),C=(0,a.useCallback)(y(i),[i]),O=(0,a.useCallback)(y(s),[s]),N=(0,a.useCallback)(y(c),[c]),Z=(0,a.useCallback)(y(f),[f]);return Object.assign({},p,{nodeRef:v},t&&{onEnter:E},n&&{onEntering:x},o&&{onEntered:b},i&&{onExit:C},s&&{onExiting:O},c&&{onExited:N},f&&{addEndListener:Z},{children:"function"==typeof d?(e,t)=>d(e,Object.assign({},t,{ref:g})):(0,a.cloneElement)(d,{ref:g})})}(function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,f));return(0,c.jsx)(n,Object.assign({ref:t},o))});function p({children:e,in:t,onExited:n,onEntered:s,transition:u}){let[l,c]=(0,a.useState)(!t);t&&l&&c(!1);let f=function({in:e,onTransition:t}){let n=(0,a.useRef)(null),r=(0,a.useRef)(!0),s=(0,o.Z)(t);return(0,i.Z)(()=>{if(!n.current)return;let t=!1;return s({in:e,element:n.current,initial:r.current,isStale:()=>t}),()=>{t=!0}},[e,s]),(0,i.Z)(()=>(r.current=!1,()=>{r.current=!0}),[]),n}({in:!!t,onTransition:e=>{Promise.resolve(u(e)).then(()=>{e.isStale()||(e.in?null==s||s(e.element,e.initial):(c(!0),null==n||n(e.element)))},t=>{throw e.in||c(!0),t})}}),d=(0,r.Z)(f,e.ref);return l&&!t?null:(0,a.cloneElement)(e,{ref:d})}function m(e,t,n){return e?(0,c.jsx)(d,Object.assign({},n,{component:e})):t?(0,c.jsx)(p,Object.assign({},n,{transition:t})):(0,c.jsx)(s.Z,Object.assign({},n))}},3636:function(e,t,n){"use strict";var r=n(994),o=n(1920),i=n(5271);t.Z=function({children:e,in:t,onExited:n,mountOnEnter:a,unmountOnExit:s}){let u=(0,i.useRef)(null),l=(0,i.useRef)(t),c=(0,r.Z)(n);(0,i.useEffect)(()=>{t?l.current=!0:c(u.current)},[t,c]);let f=(0,o.Z)(u,e.ref),d=(0,i.cloneElement)(e,{ref:f});return t?d:s||!l.current&&a?null:d}},177:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});let r=n(5271).createContext(null),o=(e,t=null)=>null!=e?String(e):t||null;t.Z=r},8633:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(8342),o=n(2762),i=n(5271),a=n(2879);let s=(e,t)=>o.Z?null==e?(t||(0,r.Z)()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect))?e:null:null;function u(e,t){let n=(0,a.Z)(),[r,o]=(0,i.useState)(()=>s(e,null==n?void 0:n.document));if(!r){let t=s(e);t&&o(t)}return(0,i.useEffect)(()=>{t&&r&&t(r)},[t,r]),(0,i.useEffect)(()=>{let t=s(e);t!==r&&o(t)},[e,r]),r}},2879:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(5271),o=n(2762);let i=(0,r.createContext)(o.Z?window:void 0);function a(){return(0,r.useContext)(i)}i.Provider},7128:function(e,t,n){"use strict";n.d(t,{E:function(){return i},k:function(){return o}});var r=n(5271);function o(e){return"Escape"===e.code||27===e.keyCode}function i(){let e=r.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}},2853:function(e,t,n){"use strict";var r=n(2762),o=!1,i=!1;try{var a={get passive(){return o=!0},get once(){return i=o=!0}};r.Z&&(window.addEventListener("test",a,a),window.removeEventListener("test",a,!0))}catch(e){}t.ZP=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!i){var a=r.once,s=r.capture,u=n;!i&&a&&(u=n.__once||function e(r){this.removeEventListener(t,e,s),n.call(this,r)},n.__once=u),e.addEventListener(t,u,o?r:s)}e.addEventListener(t,n,r)}},2762:function(e,t){"use strict";t.Z=!!("undefined"!=typeof window&&window.document&&window.document.createElement)},6712:function(e,t,n){"use strict";function r(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}n.d(t,{Z:function(){return r}})},968:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(8342),o=/([A-Z])/g,i=/^ms-/;function a(e){return e.replace(o,"-$1").toLowerCase().replace(i,"-ms-")}var s=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,u=function(e,t){var n,o="",i="";if("string"==typeof t)return e.style.getPropertyValue(a(t))||((n=(0,r.Z)(e))&&n.defaultView||window).getComputedStyle(e,void 0).getPropertyValue(a(t));Object.keys(t).forEach(function(n){var r=t[n];r||0===r?n&&s.test(n)?i+=n+"("+r+") ":o+=a(n)+": "+r+";":e.style.removeProperty(a(n))}),i&&(o+="transform: "+i+";"),e.style.cssText+=";"+o}},9523:function(e,t,n){"use strict";function r(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}n.d(t,{Z:function(){return r}})},2685:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(2853),o=function(e,t,n,r){var o=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)},i=function(e,t,n,i){return(0,r.ZP)(e,t,n,i),function(){o(e,t,n,i)}}},8342:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},3465:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=Function.prototype.bind.call(Function.prototype.call,[].slice);function o(e,t){return r(e.querySelectorAll(t))}},3670:function(e){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,s],c=0;(u=Error(t.replace(/%s/g,function(){return l[c++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},3666:function(e,t,n){"use strict";var r=n(507),o=n.n(r),i=n(5271),a=n(2187),s=n.n(a),u=n(2676);let l={"aria-label":o().string,onClick:o().func,variant:o().oneOf(["white"])},c=i.forwardRef((e,t)=>{let{className:n,variant:r,"aria-label":o="Close",...i}=e;return(0,u.jsx)("button",{ref:t,type:"button",className:s()("btn-close",r&&"btn-close-".concat(r),n),"aria-label":o,...i})});c.displayName="CloseButton",c.propTypes=l,t.Z=c},1138:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(2187),o=n.n(r),i=n(968),a=n(5271),s=n(9800),u=n(8487),l=function(){for(var e=arguments.length,t=Array(e),n=0;nnull!=e).reduce((e,t)=>{if("function"!=typeof t)throw Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(){for(var n=arguments.length,r=Array(n),o=0;o{let{onEnter:n,onEntering:r,onEntered:i,onExit:s,onExiting:p,className:v,children:g,dimension:y="height",in:E=!1,timeout:x=300,mountOnEnter:b=!1,unmountOnExit:C=!1,appear:O=!1,getDimensionValue:N=m,...Z}=e,k="function"==typeof y?y():y,j=(0,a.useMemo)(()=>l(e=>{e.style[k]="0"},n),[k,n]),w=(0,a.useMemo)(()=>l(e=>{let t="scroll".concat(k[0].toUpperCase()).concat(k.slice(1));e.style[k]="".concat(e[t],"px")},r),[k,r]),R=(0,a.useMemo)(()=>l(e=>{e.style[k]=null},i),[k,i]),S=(0,a.useMemo)(()=>l(e=>{e.style[k]="".concat(N(k,e),"px"),(0,c.Z)(e)},s),[s,N,k]),T=(0,a.useMemo)(()=>l(e=>{e.style[k]=null},p),[k,p]);return(0,d.jsx)(f.Z,{ref:t,addEndListener:u.Z,...Z,"aria-expanded":Z.role?E:null,onEnter:j,onEntering:w,onEntered:R,onExit:S,onExiting:T,childRef:g.ref,in:E,timeout:x,mountOnEnter:b,unmountOnExit:C,appear:O,children:(e,t)=>a.cloneElement(g,{...t,className:o()(v,g.props.className,h[e],"width"===k&&"collapse-horizontal")})})})},5636:function(e,t,n){"use strict";var r=n(2187),o=n.n(r),i=n(5271),a=n(7896),s=n(2676);let u=i.forwardRef((e,t)=>{let{bsPrefix:n,fluid:r=!1,as:i="div",className:u,...l}=e,c=(0,a.vE)(n,"container");return(0,s.jsx)(i,{ref:t,...l,className:o()(u,r?"".concat(c).concat("string"==typeof r?"-".concat(r):"-fluid"):c)})});u.displayName="Container",t.Z=u},8238:function(e,t,n){"use strict";var r=n(2187),o=n.n(r),i=n(5271),a=n(9800),s=n(8487),u=n(5604),l=n(8322),c=n(2676);let f={[a.d0]:"show",[a.cn]:"show"},d=i.forwardRef((e,t)=>{let{className:n,children:r,transitionClasses:a={},onEnter:d,...p}=e,m={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...p},h=(0,i.useCallback)((e,t)=>{(0,u.Z)(e),null==d||d(e,t)},[d]);return(0,c.jsx)(l.Z,{ref:t,addEndListener:s.Z,...m,onEnter:h,childRef:r.ref,children:(e,t)=>i.cloneElement(r,{...t,className:o()("fade",n,r.props.className,f[e],a[e])})})});d.displayName="Fade",t.Z=d},847:function(e,t,n){"use strict";let r,o;n.d(t,{Z:function(){return ep}});var i=n(2187),a=n.n(i),s=n(5271),u=n(177),l=n(743),c=n(7896),f=n(2676);let d=s.forwardRef((e,t)=>{let{bsPrefix:n,className:r,as:o,...i}=e;n=(0,c.vE)(n,"navbar-brand");let s=o||(i.href?"a":"span");return(0,f.jsx)(s,{...i,ref:t,className:a()(r,n)})});d.displayName="NavbarBrand";var p=n(1138),m=n(1991);let h=s.forwardRef((e,t)=>{let{children:n,bsPrefix:r,...o}=e;r=(0,c.vE)(r,"navbar-collapse");let i=(0,s.useContext)(m.Z);return(0,f.jsx)(p.Z,{in:!!(i&&i.expanded),...o,children:(0,f.jsx)("div",{ref:t,className:r,children:n})})});h.displayName="NavbarCollapse";var v=n(994);let g=s.forwardRef((e,t)=>{let{bsPrefix:n,className:r,children:o,label:i="Toggle navigation",as:u="button",onClick:l,...d}=e;n=(0,c.vE)(n,"navbar-toggler");let{onToggle:p,expanded:h}=(0,s.useContext)(m.Z)||{},g=(0,v.Z)(e=>{l&&l(e),p&&p()});return"button"===u&&(d.type="button"),(0,f.jsx)(u,{...d,ref:t,onClick:g,"aria-label":i,className:a()(r,n,!h&&"collapsed"),children:o||(0,f.jsx)("span",{className:"".concat(n,"-icon")})})});g.displayName="NavbarToggle";var y=n(9125);let E=new WeakMap,x=(e,t)=>{if(!e||!t)return;let n=E.get(t)||new Map;E.set(t,n);let r=n.get(e);return r||((r=t.matchMedia(e)).refCount=0,n.set(r.media,r)),r},b=function(e){let t=Object.keys(e);function n(e,t){return e===t?t:e?`${e} and ${t}`:t}return function(r,o,i){let a;return"object"==typeof r?(a=r,i=o,o=!0):a={[r]:o=o||!0},function(e,t="undefined"==typeof window?void 0:window){let n=x(e,t),[r,o]=(0,s.useState)(()=>!!n&&n.matches);return(0,y.Z)(()=>{let n=x(e,t);if(!n)return o(!1);let r=E.get(t),i=()=>{o(n.matches)};return n.refCount++,n.addListener(i),i(),()=>{n.removeListener(i),n.refCount--,n.refCount<=0&&(null==r||r.delete(n.media)),n=void 0}},[e]),r}((0,s.useMemo)(()=>Object.entries(a).reduce((r,[o,i])=>{if("up"===i||!0===i){let t;r=n(r,("number"==typeof(t=e[o])&&(t=`${t}px`),`(min-width: ${t})`))}if("down"===i||!0===i){let i;r=n(r,(i="number"==typeof(i=e[t[Math.min(t.indexOf(o)+1,t.length-1)]])?`${i-.2}px`:`calc(${i} - 0.2px)`,`(max-width: ${i})`))}return r},""),[JSON.stringify(a)]),i)}}({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400});var C=n(8342);function O(e){void 0===e&&(e=(0,C.Z)());try{var t=e.activeElement;if(!t||!t.nodeName)return null;return t}catch(t){return e.body}}var N=n(6712),Z=n(2762),k=n(2685),j=n(967),w=n(9761),R=n(3354),S=n(5965),T=n(968);let L=(0,n(8122).PB)("modal-open");class F{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:n=!1}={}){this.handleContainerOverflow=t,this.isRTL=n,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(e=document){return Math.abs(e.defaultView.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){let t={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[n]:r.style[n]},e.scrollBarWidth&&(t[n]=`${parseInt((0,T.Z)(r,n)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(L,""),(0,T.Z)(r,t)}reset(){[...this.modals].forEach(e=>this.remove(e))}removeContainerStyle(e){let t=this.getElement();t.removeAttribute(L),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return -1!==t||(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state))),t}remove(e){let t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}}var A=F,P=n(8633),D=n(2879),I=n(9458),M=n(7128);let _=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"],$=(0,s.forwardRef)((e,t)=>{let{show:n=!1,role:o="dialog",className:i,style:a,children:u,backdrop:l=!0,keyboard:c=!0,onBackdropClick:d,onEscapeKeyDown:p,transition:m,runTransition:h,backdropTransition:g,runBackdropTransition:y,autoFocus:E=!0,enforceFocus:x=!0,restoreFocus:b=!0,restoreFocusOptions:C,renderDialog:T,renderBackdrop:L=e=>(0,f.jsx)("div",Object.assign({},e)),manager:F,container:$,onShow:B,onHide:U=()=>{},onExit:W,onExited:V,onExiting:H,onEnter:G,onEntering:X,onEntered:K}=e,Y=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,_),q=(0,D.Z)(),z=(0,P.Z)($),J=function(e){let t=(0,D.Z)(),n=e||(r||(r=new A({ownerDocument:null==t?void 0:t.document})),r),o=(0,s.useRef)({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>n.add(o.current),remove:()=>n.remove(o.current),isTopModal:()=>n.isTopModal(o.current),setDialogRef:(0,s.useCallback)(e=>{o.current.dialog=e},[]),setBackdropRef:(0,s.useCallback)(e=>{o.current.backdrop=e},[])})}(F),Q=(0,w.Z)(),ee=(0,S.Z)(n),[et,en]=(0,s.useState)(!n),er=(0,s.useRef)(null);(0,s.useImperativeHandle)(t,()=>J,[J]),Z.Z&&!ee&&n&&(er.current=O(null==q?void 0:q.document)),n&&et&&en(!1);let eo=(0,v.Z)(()=>{if(J.add(),ec.current=(0,k.Z)(document,"keydown",eu),el.current=(0,k.Z)(document,"focus",()=>setTimeout(ea),!0),B&&B(),E){var e,t;let n=O(null!=(e=null==(t=J.dialog)?void 0:t.ownerDocument)?e:null==q?void 0:q.document);J.dialog&&n&&!(0,N.Z)(J.dialog,n)&&(er.current=n,J.dialog.focus())}}),ei=(0,v.Z)(()=>{if(J.remove(),null==ec.current||ec.current(),null==el.current||el.current(),b){var e;null==(e=er.current)||null==e.focus||e.focus(C),er.current=null}});(0,s.useEffect)(()=>{n&&z&&eo()},[n,z,eo]),(0,s.useEffect)(()=>{et&&ei()},[et,ei]),(0,R.Z)(()=>{ei()});let ea=(0,v.Z)(()=>{if(!x||!Q()||!J.isTopModal())return;let e=O(null==q?void 0:q.document);J.dialog&&e&&!(0,N.Z)(J.dialog,e)&&J.dialog.focus()}),es=(0,v.Z)(e=>{e.target===e.currentTarget&&(null==d||d(e),!0===l&&U())}),eu=(0,v.Z)(e=>{c&&(0,M.k)(e)&&J.isTopModal()&&(null==p||p(e),e.defaultPrevented||U())}),el=(0,s.useRef)(),ec=(0,s.useRef)();if(!z)return null;let ef=Object.assign({role:o,ref:J.setDialogRef,"aria-modal":"dialog"===o||void 0},Y,{style:a,className:i,tabIndex:-1}),ed=T?T(ef):(0,f.jsx)("div",Object.assign({},ef,{children:s.cloneElement(u,{role:"document"})}));ed=(0,I.sD)(m,h,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:W,onExiting:H,onExited:(...e)=>{en(!0),null==V||V(...e)},onEnter:G,onEntering:X,onEntered:K,children:ed});let ep=null;return l&&(ep=L({ref:J.setBackdropRef,onClick:es}),ep=(0,I.sD)(g,y,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ep})),(0,f.jsx)(f.Fragment,{children:j.createPortal((0,f.jsxs)(f.Fragment,{children:[ep,ed]}),z)})});$.displayName="Modal";var B=Object.assign($,{Manager:A}),U=n(8238);let W=s.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:o="div",...i}=e;return r=(0,c.vE)(r,"offcanvas-body"),(0,f.jsx)(o,{ref:t,className:a()(n,r),...i})});W.displayName="OffcanvasBody";var V=n(9800),H=n(8487),G=n(8322);let X={[V.d0]:"show",[V.cn]:"show"},K=s.forwardRef((e,t)=>{let{bsPrefix:n,className:r,children:o,in:i=!1,mountOnEnter:u=!1,unmountOnExit:l=!1,appear:d=!1,...p}=e;return n=(0,c.vE)(n,"offcanvas"),(0,f.jsx)(G.Z,{ref:t,addEndListener:H.Z,in:i,mountOnEnter:u,unmountOnExit:l,appear:d,...p,childRef:o.ref,children:(e,t)=>s.cloneElement(o,{...t,className:a()(r,o.props.className,(e===V.d0||e===V.Ix)&&"".concat(n,"-toggling"),X[e])})})});K.displayName="OffcanvasToggling";let Y=s.createContext({onHide(){}});var q=n(3666);let z=s.forwardRef((e,t)=>{let{closeLabel:n="Close",closeVariant:r,closeButton:o=!1,onHide:i,children:a,...u}=e,l=(0,s.useContext)(Y),c=(0,v.Z)(()=>{null==l||l.onHide(),null==i||i()});return(0,f.jsxs)("div",{ref:t,...u,children:[a,o&&(0,f.jsx)(q.Z,{"aria-label":n,variant:r,onClick:c})]})}),J=s.forwardRef((e,t)=>{let{bsPrefix:n,className:r,closeLabel:o="Close",closeButton:i=!1,...s}=e;return n=(0,c.vE)(n,"offcanvas-header"),(0,f.jsx)(z,{ref:t,...s,className:a()(r,n),closeLabel:o,closeButton:i})});J.displayName="OffcanvasHeader";let Q=s.forwardRef((e,t)=>(0,f.jsx)("div",{...e,ref:t,className:a()(e.className,"h5")})),ee=s.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:o=Q,...i}=e;return r=(0,c.vE)(r,"offcanvas-title"),(0,f.jsx)(o,{ref:t,className:a()(n,r),...i})});ee.displayName="OffcanvasTitle";var et=n(9523),en=n(3465);function er(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}let eo={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class ei extends A{adjustAndStore(e,t,n){let r=t.style[e];t.dataset[e]=r,(0,T.Z)(t,{[e]:"".concat(parseFloat((0,T.Z)(t,e))+n,"px")})}restore(e,t){let n=t.dataset[e];void 0!==n&&(delete t.dataset[e],(0,T.Z)(t,{[e]:n}))}setContainerStyle(e){var t;super.setContainerStyle(e);let n=this.getElement();if(t="modal-open",n.classList?n.classList.add(t):(0,et.Z)(n,t)||("string"==typeof n.className?n.className=n.className+" "+t:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+t)),!e.scrollBarWidth)return;let r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";(0,en.Z)(n,eo.FIXED_CONTENT).forEach(t=>this.adjustAndStore(r,t,e.scrollBarWidth)),(0,en.Z)(n,eo.STICKY_CONTENT).forEach(t=>this.adjustAndStore(o,t,-e.scrollBarWidth)),(0,en.Z)(n,eo.NAVBAR_TOGGLER).forEach(t=>this.adjustAndStore(o,t,e.scrollBarWidth))}removeContainerStyle(e){var t;super.removeContainerStyle(e);let n=this.getElement();t="modal-open",n.classList?n.classList.remove(t):"string"==typeof n.className?n.className=er(n.className,t):n.setAttribute("class",er(n.className&&n.className.baseVal||"",t));let r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";(0,en.Z)(n,eo.FIXED_CONTENT).forEach(e=>this.restore(r,e)),(0,en.Z)(n,eo.STICKY_CONTENT).forEach(e=>this.restore(o,e)),(0,en.Z)(n,eo.NAVBAR_TOGGLER).forEach(e=>this.restore(o,e))}}function ea(e){return(0,f.jsx)(K,{...e})}function es(e){return(0,f.jsx)(U.Z,{...e})}let eu=s.forwardRef((e,t)=>{let{bsPrefix:n,className:r,children:i,"aria-labelledby":u,placement:l="start",responsive:d,show:p=!1,backdrop:h=!0,keyboard:g=!0,scroll:y=!1,onEscapeKeyDown:E,onShow:x,onHide:C,container:O,autoFocus:N=!0,enforceFocus:Z=!0,restoreFocus:k=!0,restoreFocusOptions:j,onEntered:w,onExit:R,onExiting:S,onEnter:T,onEntering:L,onExited:F,backdropClassName:A,manager:P,renderStaticNode:D=!1,...I}=e,M=(0,s.useRef)();n=(0,c.vE)(n,"offcanvas");let{onToggle:_}=(0,s.useContext)(m.Z)||{},[$,U]=(0,s.useState)(!1),W=b(d||"xs","up");(0,s.useEffect)(()=>{U(d?p&&!W:p)},[p,d,W]);let V=(0,v.Z)(()=>{null==_||_(),null==C||C()}),H=(0,s.useMemo)(()=>({onHide:V}),[V]),G=(0,s.useCallback)(e=>(0,f.jsx)("div",{...e,className:a()("".concat(n,"-backdrop"),A)}),[A,n]),X=e=>(0,f.jsx)("div",{...e,...I,className:a()(r,d?"".concat(n,"-").concat(d):n,"".concat(n,"-").concat(l)),"aria-labelledby":u,children:i});return(0,f.jsxs)(f.Fragment,{children:[!$&&(d||D)&&X({}),(0,f.jsx)(Y.Provider,{value:H,children:(0,f.jsx)(B,{show:$,ref:t,backdrop:h,container:O,keyboard:g,autoFocus:N,enforceFocus:Z&&!y,restoreFocus:k,restoreFocusOptions:j,onEscapeKeyDown:E,onShow:x,onHide:V,onEnter:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r{let n=(0,s.useContext)(m.Z);return(0,f.jsx)(el,{ref:t,show:!!(null!=n&&n.expanded),...e,renderStaticNode:!0})});ec.displayName="NavbarOffcanvas";let ef=s.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:o="span",...i}=e;return r=(0,c.vE)(r,"navbar-text"),(0,f.jsx)(o,{ref:t,className:a()(n,r),...i})});ef.displayName="NavbarText";let ed=s.forwardRef((e,t)=>{let{bsPrefix:n,expand:r=!0,variant:o="light",bg:i,fixed:d,sticky:p,className:h,as:v="nav",expanded:g,onToggle:y,onSelect:E,collapseOnSelect:x=!1,...b}=(0,l.Ch)(e,{expanded:"onToggle"}),C=(0,c.vE)(n,"navbar"),O=(0,s.useCallback)(function(){for(var e=arguments.length,t=Array(e),n=0;n({onToggle:()=>null==y?void 0:y(!g),bsPrefix:C,expanded:!!g,expand:r}),[C,g,r,y]);return(0,f.jsx)(m.Z.Provider,{value:Z,children:(0,f.jsx)(u.Z.Provider,{value:O,children:(0,f.jsx)(v,{ref:t,...b,className:a()(h,C,r&&N,o&&"".concat(C,"-").concat(o),i&&"bg-".concat(i),p&&"sticky-".concat(p),d&&"fixed-".concat(d))})})})});ed.displayName="Navbar";var ep=Object.assign(ed,{Brand:d,Collapse:h,Offcanvas:ec,Text:ef,Toggle:g})},1991:function(e,t,n){"use strict";let r=n(5271).createContext(null);r.displayName="NavbarContext",t.Z=r},7896:function(e,t,n){"use strict";n.d(t,{SC:function(){return c},pi:function(){return u},vE:function(){return s},zG:function(){return l}});var r=n(5271);n(2676);let o=r.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:i,Provider:a}=o;function s(e,t){let{prefixes:n}=(0,r.useContext)(o);return e||n[t]||t}function u(){let{breakpoints:e}=(0,r.useContext)(o);return e}function l(){let{minBreakpoint:e}=(0,r.useContext)(o);return e}function c(){let{dir:e}=(0,r.useContext)(o);return"rtl"===e}},8322:function(e,t,n){"use strict";var r=n(5271),o=n(9800),i=n(1920),a=n(4269),s=n(2676);let u=r.forwardRef((e,t)=>{let{onEnter:n,onEntering:u,onEntered:l,onExit:c,onExiting:f,onExited:d,addEndListener:p,children:m,childRef:h,...v}=e,g=(0,r.useRef)(null),y=(0,i.Z)(g,h),E=e=>{y((0,a.Z)(e))},x=e=>t=>{e&&g.current&&e(g.current,t)},b=(0,r.useCallback)(x(n),[n]),C=(0,r.useCallback)(x(u),[u]),O=(0,r.useCallback)(x(l),[l]),N=(0,r.useCallback)(x(c),[c]),Z=(0,r.useCallback)(x(f),[f]),k=(0,r.useCallback)(x(d),[d]),j=(0,r.useCallback)(x(p),[p]);return(0,s.jsx)(o.ZP,{ref:t,...v,onEnter:b,onEntered:O,onEntering:C,onExit:N,onExited:k,onExiting:Z,addEndListener:j,nodeRef:g,children:"function"==typeof m?(e,t)=>m(e,{...t,ref:E}):r.cloneElement(m,{ref:E})})});t.Z=u},4269:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(967);function o(e){return e&&"setState"in e?r.findDOMNode(e):null!=e?e:null}},8487:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(968),o=n(2685);function i(e,t){let n=(0,r.Z)(e,t)||"",o=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*o}function a(e,t){var n,a,s,u,l,c,f,d,p,m,h,v;let g=i(e,"transitionDuration"),y=i(e,"transitionDelay"),E=(n=e,a=n=>{n.target===e&&(E(),t(n))},null==(s=g+y)&&(c=-1===(l=(0,r.Z)(n,"transitionDuration")||"").indexOf("ms")?1e3:1,s=parseFloat(l)*c||0),h=(d=!1,p=setTimeout(function(){d||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(t,n,r),e.dispatchEvent(o)}}(n,"transitionend",!0)},s+5),m=(0,o.Z)(n,"transitionend",function(){d=!0},{once:!0}),function(){clearTimeout(p),m()}),v=(0,o.Z)(n,"transitionend",a),function(){h(),v()})}},5604:function(e,t,n){"use strict";function r(e){e.offsetHeight}n.d(t,{Z:function(){return r}})},13:function(e,t,n){e.exports=n(5178)},4049:function(e,t,n){"use strict";var r=n(6257);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},507:function(e,t,n){e.exports=n(4049)()},6257:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9800:function(e,t,n){"use strict";n.d(t,{cn:function(){return d},d0:function(){return f},Wj:function(){return c},Ix:function(){return p},ZP:function(){return v}});var r=n(4139);function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var i=n(5271),a=n(967),s={disabled:!1},u=i.createContext(null),l="unmounted",c="exited",f="entering",d="entered",p="exiting",m=function(e){function t(t,n){r=e.call(this,t,n)||this;var r,o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=c,r.appearStatus=f):o=d:o=t.unmountOnExit||t.mountOnEnter?l:c,r.state={status:o},r.nextCallback=null,r}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,o(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===l?{status:c}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==f&&n!==d&&(t=f):(n===f||n===d)&&(t=p)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){if(this.cancelNextCallback(),t===f){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);n&&n.scrollTop}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:l})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[a.findDOMNode(this),r],i=o[0],u=o[1],l=this.getTimeouts(),c=r?l.appear:l.enter;if(!e&&!n||s.disabled){this.safeSetState({status:d},function(){t.props.onEntered(i)});return}this.props.onEnter(i,u),this.safeSetState({status:f},function(){t.props.onEntering(i,u),t.onTransitionEnd(c,function(){t.safeSetState({status:d},function(){t.props.onEntered(i,u)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.findDOMNode(this);if(!t||s.disabled){this.safeSetState({status:c},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:p},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:c},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===l)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(u.Provider,{value:null},"function"==typeof n?n(e,o):i.cloneElement(i.Children.only(n),o))},t}(i.Component);function h(){}m.contextType=u,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},m.UNMOUNTED=l,m.EXITED=c,m.ENTERING=f,m.ENTERED=d,m.EXITING=p;var v=m},743:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),o=1;o{t.current=e},[e]),t}},994:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(5271),o=n(50);function i(e){let t=(0,o.Z)(e);return(0,r.useCallback)(function(...e){return t.current&&t.current(...e)},[t])}},9125:function(e,t,n){"use strict";var r=n(5271);let o=void 0!==n.g&&n.g.navigator&&"ReactNative"===n.g.navigator.product,i="undefined"!=typeof document;t.Z=i||o?r.useLayoutEffect:r.useEffect},1920:function(e,t,n){"use strict";var r=n(5271);let o=e=>e&&"function"!=typeof e?t=>{e.current=t}:e;t.Z=function(e,t){return(0,r.useMemo)(()=>(function(e,t){let n=o(e),r=o(t);return e=>{n&&n(e),r&&r(e)}})(e,t),[e,t])}},9761:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(5271);function o(){let e=(0,r.useRef)(!0),t=(0,r.useRef)(()=>e.current);return(0,r.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}},5965:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(5271);function o(e){let t=(0,r.useRef)(null);return(0,r.useEffect)(()=>{t.current=e}),t.current}},3354:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(5271);function o(e){let t=function(e){let t=(0,r.useRef)(e);return t.current=e,t}(e);(0,r.useEffect)(()=>()=>t.current(),[])}},8122:function(e,t,n){"use strict";function r(e){return`data-rr-ui-${e}`}function o(e){return`rrUi${e}`}n.d(t,{$F:function(){return o},PB:function(){return r}})},9458:function(e,t,n){"use strict";n.d(t,{sD:function(){return m}});var r=n(1920),o=n(994),i=n(9125),a=n(5271),s=n(3636),u=n(7128);let l=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];var c=n(2676);let f=["component"],d=a.forwardRef((e,t)=>{let{component:n}=e,o=function(e){let{onEnter:t,onEntering:n,onEntered:o,onExit:i,onExiting:s,onExited:c,addEndListener:f,children:d}=e,p=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,l),{major:m}=(0,u.E)(),h=m>=19?d.props.ref:d.ref,v=(0,a.useRef)(null),g=(0,r.Z)(v,"function"==typeof d?null:h),y=e=>t=>{e&&v.current&&e(v.current,t)},E=(0,a.useCallback)(y(t),[t]),x=(0,a.useCallback)(y(n),[n]),b=(0,a.useCallback)(y(o),[o]),C=(0,a.useCallback)(y(i),[i]),O=(0,a.useCallback)(y(s),[s]),N=(0,a.useCallback)(y(c),[c]),Z=(0,a.useCallback)(y(f),[f]);return Object.assign({},p,{nodeRef:v},t&&{onEnter:E},n&&{onEntering:x},o&&{onEntered:b},i&&{onExit:C},s&&{onExiting:O},c&&{onExited:N},f&&{addEndListener:Z},{children:"function"==typeof d?(e,t)=>d(e,Object.assign({},t,{ref:g})):(0,a.cloneElement)(d,{ref:g})})}(function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,f));return(0,c.jsx)(n,Object.assign({ref:t},o))});function p({children:e,in:t,onExited:n,onEntered:s,transition:u}){let[l,c]=(0,a.useState)(!t);t&&l&&c(!1);let f=function({in:e,onTransition:t}){let n=(0,a.useRef)(null),r=(0,a.useRef)(!0),s=(0,o.Z)(t);return(0,i.Z)(()=>{if(!n.current)return;let t=!1;return s({in:e,element:n.current,initial:r.current,isStale:()=>t}),()=>{t=!0}},[e,s]),(0,i.Z)(()=>(r.current=!1,()=>{r.current=!0}),[]),n}({in:!!t,onTransition:e=>{Promise.resolve(u(e)).then(()=>{e.isStale()||(e.in?null==s||s(e.element,e.initial):(c(!0),null==n||n(e.element)))},t=>{throw e.in||c(!0),t})}}),d=(0,r.Z)(f,e.ref);return l&&!t?null:(0,a.cloneElement)(e,{ref:d})}function m(e,t,n){return e?(0,c.jsx)(d,Object.assign({},n,{component:e})):t?(0,c.jsx)(p,Object.assign({},n,{transition:t})):(0,c.jsx)(s.Z,Object.assign({},n))}},3636:function(e,t,n){"use strict";var r=n(994),o=n(1920),i=n(5271);t.Z=function({children:e,in:t,onExited:n,mountOnEnter:a,unmountOnExit:s}){let u=(0,i.useRef)(null),l=(0,i.useRef)(t),c=(0,r.Z)(n);(0,i.useEffect)(()=>{t?l.current=!0:c(u.current)},[t,c]);let f=(0,o.Z)(u,e.ref),d=(0,i.cloneElement)(e,{ref:f});return t?d:s||!l.current&&a?null:d}},177:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});let r=n(5271).createContext(null),o=(e,t=null)=>null!=e?String(e):t||null;t.Z=r},8633:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(8342),o=n(2762),i=n(5271),a=n(2879);let s=(e,t)=>o.Z?null==e?(t||(0,r.Z)()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect))?e:null:null;function u(e,t){let n=(0,a.Z)(),[r,o]=(0,i.useState)(()=>s(e,null==n?void 0:n.document));if(!r){let t=s(e);t&&o(t)}return(0,i.useEffect)(()=>{t&&r&&t(r)},[t,r]),(0,i.useEffect)(()=>{let t=s(e);t!==r&&o(t)},[e,r]),r}},2879:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(5271),o=n(2762);let i=(0,r.createContext)(o.Z?window:void 0);function a(){return(0,r.useContext)(i)}i.Provider},7128:function(e,t,n){"use strict";n.d(t,{E:function(){return i},k:function(){return o}});var r=n(5271);function o(e){return"Escape"===e.code||27===e.keyCode}function i(){let e=r.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}},2853:function(e,t,n){"use strict";var r=n(2762),o=!1,i=!1;try{var a={get passive(){return o=!0},get once(){return i=o=!0}};r.Z&&(window.addEventListener("test",a,a),window.removeEventListener("test",a,!0))}catch(e){}t.ZP=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!i){var a=r.once,s=r.capture,u=n;!i&&a&&(u=n.__once||function e(r){this.removeEventListener(t,e,s),n.call(this,r)},n.__once=u),e.addEventListener(t,u,o?r:s)}e.addEventListener(t,n,r)}},2762:function(e,t){"use strict";t.Z=!!("undefined"!=typeof window&&window.document&&window.document.createElement)},6712:function(e,t,n){"use strict";function r(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}n.d(t,{Z:function(){return r}})},968:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(8342),o=/([A-Z])/g,i=/^ms-/;function a(e){return e.replace(o,"-$1").toLowerCase().replace(i,"-ms-")}var s=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,u=function(e,t){var n,o="",i="";if("string"==typeof t)return e.style.getPropertyValue(a(t))||((n=(0,r.Z)(e))&&n.defaultView||window).getComputedStyle(e,void 0).getPropertyValue(a(t));Object.keys(t).forEach(function(n){var r=t[n];r||0===r?n&&s.test(n)?i+=n+"("+r+") ":o+=a(n)+": "+r+";":e.style.removeProperty(a(n))}),i&&(o+="transform: "+i+";"),e.style.cssText+=";"+o}},9681:function(e,t,n){"use strict";function r(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}n.d(t,{Z:function(){return r}})},2685:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(2853),o=function(e,t,n,r){var o=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)},i=function(e,t,n,i){return(0,r.ZP)(e,t,n,i),function(){o(e,t,n,i)}}},8342:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},3465:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=Function.prototype.bind.call(Function.prototype.call,[].slice);function o(e,t){return r(e.querySelectorAll(t))}},3670:function(e){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,s],c=0;(u=Error(t.replace(/%s/g,function(){return l[c++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},8463:function(e,t,n){"use strict";var r=n(507),o=n.n(r),i=n(5271),a=n(2187),s=n.n(a),u=n(2676);let l={"aria-label":o().string,onClick:o().func,variant:o().oneOf(["white"])},c=i.forwardRef((e,t)=>{let{className:n,variant:r,"aria-label":o="Close",...i}=e;return(0,u.jsx)("button",{ref:t,type:"button",className:s()("btn-close",r&&"btn-close-".concat(r),n),"aria-label":o,...i})});c.displayName="CloseButton",c.propTypes=l,t.Z=c},5580:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(2187),o=n.n(r),i=n(968),a=n(5271),s=n(9800),u=n(2158),l=function(){for(var e=arguments.length,t=Array(e),n=0;nnull!=e).reduce((e,t)=>{if("function"!=typeof t)throw Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(){for(var n=arguments.length,r=Array(n),o=0;o{let{onEnter:n,onEntering:r,onEntered:i,onExit:s,onExiting:p,className:v,children:g,dimension:y="height",in:E=!1,timeout:x=300,mountOnEnter:b=!1,unmountOnExit:C=!1,appear:O=!1,getDimensionValue:N=m,...Z}=e,k="function"==typeof y?y():y,j=(0,a.useMemo)(()=>l(e=>{e.style[k]="0"},n),[k,n]),w=(0,a.useMemo)(()=>l(e=>{let t="scroll".concat(k[0].toUpperCase()).concat(k.slice(1));e.style[k]="".concat(e[t],"px")},r),[k,r]),R=(0,a.useMemo)(()=>l(e=>{e.style[k]=null},i),[k,i]),S=(0,a.useMemo)(()=>l(e=>{e.style[k]="".concat(N(k,e),"px"),(0,c.Z)(e)},s),[s,N,k]),T=(0,a.useMemo)(()=>l(e=>{e.style[k]=null},p),[k,p]);return(0,d.jsx)(f.Z,{ref:t,addEndListener:u.Z,...Z,"aria-expanded":Z.role?E:null,onEnter:j,onEntering:w,onEntered:R,onExit:S,onExiting:T,childRef:g.ref,in:E,timeout:x,mountOnEnter:b,unmountOnExit:C,appear:O,children:(e,t)=>a.cloneElement(g,{...t,className:o()(v,g.props.className,h[e],"width"===k&&"collapse-horizontal")})})})},7411:function(e,t,n){"use strict";var r=n(2187),o=n.n(r),i=n(5271),a=n(6136),s=n(2676);let u=i.forwardRef((e,t)=>{let{bsPrefix:n,fluid:r=!1,as:i="div",className:u,...l}=e,c=(0,a.vE)(n,"container");return(0,s.jsx)(i,{ref:t,...l,className:o()(u,r?"".concat(c).concat("string"==typeof r?"-".concat(r):"-fluid"):c)})});u.displayName="Container",t.Z=u},291:function(e,t,n){"use strict";var r=n(2187),o=n.n(r),i=n(5271),a=n(9800),s=n(2158),u=n(8550),l=n(3098),c=n(2676);let f={[a.d0]:"show",[a.cn]:"show"},d=i.forwardRef((e,t)=>{let{className:n,children:r,transitionClasses:a={},onEnter:d,...p}=e,m={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...p},h=(0,i.useCallback)((e,t)=>{(0,u.Z)(e),null==d||d(e,t)},[d]);return(0,c.jsx)(l.Z,{ref:t,addEndListener:s.Z,...m,onEnter:h,childRef:r.ref,children:(e,t)=>i.cloneElement(r,{...t,className:o()("fade",n,r.props.className,f[e],a[e])})})});d.displayName="Fade",t.Z=d},7072:function(e,t,n){"use strict";let r,o;n.d(t,{Z:function(){return ep}});var i=n(2187),a=n.n(i),s=n(5271),u=n(177),l=n(5770),c=n(6136),f=n(2676);let d=s.forwardRef((e,t)=>{let{bsPrefix:n,className:r,as:o,...i}=e;n=(0,c.vE)(n,"navbar-brand");let s=o||(i.href?"a":"span");return(0,f.jsx)(s,{...i,ref:t,className:a()(r,n)})});d.displayName="NavbarBrand";var p=n(5580),m=n(1481);let h=s.forwardRef((e,t)=>{let{children:n,bsPrefix:r,...o}=e;r=(0,c.vE)(r,"navbar-collapse");let i=(0,s.useContext)(m.Z);return(0,f.jsx)(p.Z,{in:!!(i&&i.expanded),...o,children:(0,f.jsx)("div",{ref:t,className:r,children:n})})});h.displayName="NavbarCollapse";var v=n(994);let g=s.forwardRef((e,t)=>{let{bsPrefix:n,className:r,children:o,label:i="Toggle navigation",as:u="button",onClick:l,...d}=e;n=(0,c.vE)(n,"navbar-toggler");let{onToggle:p,expanded:h}=(0,s.useContext)(m.Z)||{},g=(0,v.Z)(e=>{l&&l(e),p&&p()});return"button"===u&&(d.type="button"),(0,f.jsx)(u,{...d,ref:t,onClick:g,"aria-label":i,className:a()(r,n,!h&&"collapsed"),children:o||(0,f.jsx)("span",{className:"".concat(n,"-icon")})})});g.displayName="NavbarToggle";var y=n(9125);let E=new WeakMap,x=(e,t)=>{if(!e||!t)return;let n=E.get(t)||new Map;E.set(t,n);let r=n.get(e);return r||((r=t.matchMedia(e)).refCount=0,n.set(r.media,r)),r},b=function(e){let t=Object.keys(e);function n(e,t){return e===t?t:e?`${e} and ${t}`:t}return function(r,o,i){let a;return"object"==typeof r?(a=r,i=o,o=!0):a={[r]:o=o||!0},function(e,t="undefined"==typeof window?void 0:window){let n=x(e,t),[r,o]=(0,s.useState)(()=>!!n&&n.matches);return(0,y.Z)(()=>{let n=x(e,t);if(!n)return o(!1);let r=E.get(t),i=()=>{o(n.matches)};return n.refCount++,n.addListener(i),i(),()=>{n.removeListener(i),n.refCount--,n.refCount<=0&&(null==r||r.delete(n.media)),n=void 0}},[e]),r}((0,s.useMemo)(()=>Object.entries(a).reduce((r,[o,i])=>{if("up"===i||!0===i){let t;r=n(r,("number"==typeof(t=e[o])&&(t=`${t}px`),`(min-width: ${t})`))}if("down"===i||!0===i){let i;r=n(r,(i="number"==typeof(i=e[t[Math.min(t.indexOf(o)+1,t.length-1)]])?`${i-.2}px`:`calc(${i} - 0.2px)`,`(max-width: ${i})`))}return r},""),[JSON.stringify(a)]),i)}}({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400});var C=n(8342);function O(e){void 0===e&&(e=(0,C.Z)());try{var t=e.activeElement;if(!t||!t.nodeName)return null;return t}catch(t){return e.body}}var N=n(6712),Z=n(2762),k=n(2685),j=n(967),w=n(9761),R=n(3354),S=n(5965),T=n(968);let L=(0,n(8122).PB)("modal-open");class F{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:n=!1}={}){this.handleContainerOverflow=t,this.isRTL=n,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(e=document){return Math.abs(e.defaultView.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){let t={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[n]:r.style[n]},e.scrollBarWidth&&(t[n]=`${parseInt((0,T.Z)(r,n)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(L,""),(0,T.Z)(r,t)}reset(){[...this.modals].forEach(e=>this.remove(e))}removeContainerStyle(e){let t=this.getElement();t.removeAttribute(L),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return -1!==t||(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state))),t}remove(e){let t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}}var A=F,P=n(8633),D=n(2879),I=n(9458),M=n(7128);let _=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"],$=(0,s.forwardRef)((e,t)=>{let{show:n=!1,role:o="dialog",className:i,style:a,children:u,backdrop:l=!0,keyboard:c=!0,onBackdropClick:d,onEscapeKeyDown:p,transition:m,runTransition:h,backdropTransition:g,runBackdropTransition:y,autoFocus:E=!0,enforceFocus:x=!0,restoreFocus:b=!0,restoreFocusOptions:C,renderDialog:T,renderBackdrop:L=e=>(0,f.jsx)("div",Object.assign({},e)),manager:F,container:$,onShow:B,onHide:U=()=>{},onExit:W,onExited:V,onExiting:H,onEnter:G,onEntering:X,onEntered:K}=e,Y=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,_),q=(0,D.Z)(),z=(0,P.Z)($),J=function(e){let t=(0,D.Z)(),n=e||(r||(r=new A({ownerDocument:null==t?void 0:t.document})),r),o=(0,s.useRef)({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>n.add(o.current),remove:()=>n.remove(o.current),isTopModal:()=>n.isTopModal(o.current),setDialogRef:(0,s.useCallback)(e=>{o.current.dialog=e},[]),setBackdropRef:(0,s.useCallback)(e=>{o.current.backdrop=e},[])})}(F),Q=(0,w.Z)(),ee=(0,S.Z)(n),[et,en]=(0,s.useState)(!n),er=(0,s.useRef)(null);(0,s.useImperativeHandle)(t,()=>J,[J]),Z.Z&&!ee&&n&&(er.current=O(null==q?void 0:q.document)),n&&et&&en(!1);let eo=(0,v.Z)(()=>{if(J.add(),ec.current=(0,k.Z)(document,"keydown",eu),el.current=(0,k.Z)(document,"focus",()=>setTimeout(ea),!0),B&&B(),E){var e,t;let n=O(null!=(e=null==(t=J.dialog)?void 0:t.ownerDocument)?e:null==q?void 0:q.document);J.dialog&&n&&!(0,N.Z)(J.dialog,n)&&(er.current=n,J.dialog.focus())}}),ei=(0,v.Z)(()=>{if(J.remove(),null==ec.current||ec.current(),null==el.current||el.current(),b){var e;null==(e=er.current)||null==e.focus||e.focus(C),er.current=null}});(0,s.useEffect)(()=>{n&&z&&eo()},[n,z,eo]),(0,s.useEffect)(()=>{et&&ei()},[et,ei]),(0,R.Z)(()=>{ei()});let ea=(0,v.Z)(()=>{if(!x||!Q()||!J.isTopModal())return;let e=O(null==q?void 0:q.document);J.dialog&&e&&!(0,N.Z)(J.dialog,e)&&J.dialog.focus()}),es=(0,v.Z)(e=>{e.target===e.currentTarget&&(null==d||d(e),!0===l&&U())}),eu=(0,v.Z)(e=>{c&&(0,M.k)(e)&&J.isTopModal()&&(null==p||p(e),e.defaultPrevented||U())}),el=(0,s.useRef)(),ec=(0,s.useRef)();if(!z)return null;let ef=Object.assign({role:o,ref:J.setDialogRef,"aria-modal":"dialog"===o||void 0},Y,{style:a,className:i,tabIndex:-1}),ed=T?T(ef):(0,f.jsx)("div",Object.assign({},ef,{children:s.cloneElement(u,{role:"document"})}));ed=(0,I.sD)(m,h,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:W,onExiting:H,onExited:(...e)=>{en(!0),null==V||V(...e)},onEnter:G,onEntering:X,onEntered:K,children:ed});let ep=null;return l&&(ep=L({ref:J.setBackdropRef,onClick:es}),ep=(0,I.sD)(g,y,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ep})),(0,f.jsx)(f.Fragment,{children:j.createPortal((0,f.jsxs)(f.Fragment,{children:[ep,ed]}),z)})});$.displayName="Modal";var B=Object.assign($,{Manager:A}),U=n(291);let W=s.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:o="div",...i}=e;return r=(0,c.vE)(r,"offcanvas-body"),(0,f.jsx)(o,{ref:t,className:a()(n,r),...i})});W.displayName="OffcanvasBody";var V=n(9800),H=n(2158),G=n(3098);let X={[V.d0]:"show",[V.cn]:"show"},K=s.forwardRef((e,t)=>{let{bsPrefix:n,className:r,children:o,in:i=!1,mountOnEnter:u=!1,unmountOnExit:l=!1,appear:d=!1,...p}=e;return n=(0,c.vE)(n,"offcanvas"),(0,f.jsx)(G.Z,{ref:t,addEndListener:H.Z,in:i,mountOnEnter:u,unmountOnExit:l,appear:d,...p,childRef:o.ref,children:(e,t)=>s.cloneElement(o,{...t,className:a()(r,o.props.className,(e===V.d0||e===V.Ix)&&"".concat(n,"-toggling"),X[e])})})});K.displayName="OffcanvasToggling";let Y=s.createContext({onHide(){}});var q=n(8463);let z=s.forwardRef((e,t)=>{let{closeLabel:n="Close",closeVariant:r,closeButton:o=!1,onHide:i,children:a,...u}=e,l=(0,s.useContext)(Y),c=(0,v.Z)(()=>{null==l||l.onHide(),null==i||i()});return(0,f.jsxs)("div",{ref:t,...u,children:[a,o&&(0,f.jsx)(q.Z,{"aria-label":n,variant:r,onClick:c})]})}),J=s.forwardRef((e,t)=>{let{bsPrefix:n,className:r,closeLabel:o="Close",closeButton:i=!1,...s}=e;return n=(0,c.vE)(n,"offcanvas-header"),(0,f.jsx)(z,{ref:t,...s,className:a()(r,n),closeLabel:o,closeButton:i})});J.displayName="OffcanvasHeader";let Q=s.forwardRef((e,t)=>(0,f.jsx)("div",{...e,ref:t,className:a()(e.className,"h5")})),ee=s.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:o=Q,...i}=e;return r=(0,c.vE)(r,"offcanvas-title"),(0,f.jsx)(o,{ref:t,className:a()(n,r),...i})});ee.displayName="OffcanvasTitle";var et=n(9681),en=n(3465);function er(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}let eo={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class ei extends A{adjustAndStore(e,t,n){let r=t.style[e];t.dataset[e]=r,(0,T.Z)(t,{[e]:"".concat(parseFloat((0,T.Z)(t,e))+n,"px")})}restore(e,t){let n=t.dataset[e];void 0!==n&&(delete t.dataset[e],(0,T.Z)(t,{[e]:n}))}setContainerStyle(e){var t;super.setContainerStyle(e);let n=this.getElement();if(t="modal-open",n.classList?n.classList.add(t):(0,et.Z)(n,t)||("string"==typeof n.className?n.className=n.className+" "+t:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+t)),!e.scrollBarWidth)return;let r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";(0,en.Z)(n,eo.FIXED_CONTENT).forEach(t=>this.adjustAndStore(r,t,e.scrollBarWidth)),(0,en.Z)(n,eo.STICKY_CONTENT).forEach(t=>this.adjustAndStore(o,t,-e.scrollBarWidth)),(0,en.Z)(n,eo.NAVBAR_TOGGLER).forEach(t=>this.adjustAndStore(o,t,e.scrollBarWidth))}removeContainerStyle(e){var t;super.removeContainerStyle(e);let n=this.getElement();t="modal-open",n.classList?n.classList.remove(t):"string"==typeof n.className?n.className=er(n.className,t):n.setAttribute("class",er(n.className&&n.className.baseVal||"",t));let r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";(0,en.Z)(n,eo.FIXED_CONTENT).forEach(e=>this.restore(r,e)),(0,en.Z)(n,eo.STICKY_CONTENT).forEach(e=>this.restore(o,e)),(0,en.Z)(n,eo.NAVBAR_TOGGLER).forEach(e=>this.restore(o,e))}}function ea(e){return(0,f.jsx)(K,{...e})}function es(e){return(0,f.jsx)(U.Z,{...e})}let eu=s.forwardRef((e,t)=>{let{bsPrefix:n,className:r,children:i,"aria-labelledby":u,placement:l="start",responsive:d,show:p=!1,backdrop:h=!0,keyboard:g=!0,scroll:y=!1,onEscapeKeyDown:E,onShow:x,onHide:C,container:O,autoFocus:N=!0,enforceFocus:Z=!0,restoreFocus:k=!0,restoreFocusOptions:j,onEntered:w,onExit:R,onExiting:S,onEnter:T,onEntering:L,onExited:F,backdropClassName:A,manager:P,renderStaticNode:D=!1,...I}=e,M=(0,s.useRef)();n=(0,c.vE)(n,"offcanvas");let{onToggle:_}=(0,s.useContext)(m.Z)||{},[$,U]=(0,s.useState)(!1),W=b(d||"xs","up");(0,s.useEffect)(()=>{U(d?p&&!W:p)},[p,d,W]);let V=(0,v.Z)(()=>{null==_||_(),null==C||C()}),H=(0,s.useMemo)(()=>({onHide:V}),[V]),G=(0,s.useCallback)(e=>(0,f.jsx)("div",{...e,className:a()("".concat(n,"-backdrop"),A)}),[A,n]),X=e=>(0,f.jsx)("div",{...e,...I,className:a()(r,d?"".concat(n,"-").concat(d):n,"".concat(n,"-").concat(l)),"aria-labelledby":u,children:i});return(0,f.jsxs)(f.Fragment,{children:[!$&&(d||D)&&X({}),(0,f.jsx)(Y.Provider,{value:H,children:(0,f.jsx)(B,{show:$,ref:t,backdrop:h,container:O,keyboard:g,autoFocus:N,enforceFocus:Z&&!y,restoreFocus:k,restoreFocusOptions:j,onEscapeKeyDown:E,onShow:x,onHide:V,onEnter:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r{let n=(0,s.useContext)(m.Z);return(0,f.jsx)(el,{ref:t,show:!!(null!=n&&n.expanded),...e,renderStaticNode:!0})});ec.displayName="NavbarOffcanvas";let ef=s.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:o="span",...i}=e;return r=(0,c.vE)(r,"navbar-text"),(0,f.jsx)(o,{ref:t,className:a()(n,r),...i})});ef.displayName="NavbarText";let ed=s.forwardRef((e,t)=>{let{bsPrefix:n,expand:r=!0,variant:o="light",bg:i,fixed:d,sticky:p,className:h,as:v="nav",expanded:g,onToggle:y,onSelect:E,collapseOnSelect:x=!1,...b}=(0,l.Ch)(e,{expanded:"onToggle"}),C=(0,c.vE)(n,"navbar"),O=(0,s.useCallback)(function(){for(var e=arguments.length,t=Array(e),n=0;n({onToggle:()=>null==y?void 0:y(!g),bsPrefix:C,expanded:!!g,expand:r}),[C,g,r,y]);return(0,f.jsx)(m.Z.Provider,{value:Z,children:(0,f.jsx)(u.Z.Provider,{value:O,children:(0,f.jsx)(v,{ref:t,...b,className:a()(h,C,r&&N,o&&"".concat(C,"-").concat(o),i&&"bg-".concat(i),p&&"sticky-".concat(p),d&&"fixed-".concat(d))})})})});ed.displayName="Navbar";var ep=Object.assign(ed,{Brand:d,Collapse:h,Offcanvas:ec,Text:ef,Toggle:g})},1481:function(e,t,n){"use strict";let r=n(5271).createContext(null);r.displayName="NavbarContext",t.Z=r},6136:function(e,t,n){"use strict";n.d(t,{SC:function(){return c},pi:function(){return u},vE:function(){return s},zG:function(){return l}});var r=n(5271);n(2676);let o=r.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:i,Provider:a}=o;function s(e,t){let{prefixes:n}=(0,r.useContext)(o);return e||n[t]||t}function u(){let{breakpoints:e}=(0,r.useContext)(o);return e}function l(){let{minBreakpoint:e}=(0,r.useContext)(o);return e}function c(){let{dir:e}=(0,r.useContext)(o);return"rtl"===e}},3098:function(e,t,n){"use strict";var r=n(5271),o=n(9800),i=n(1920),a=n(3400),s=n(2676);let u=r.forwardRef((e,t)=>{let{onEnter:n,onEntering:u,onEntered:l,onExit:c,onExiting:f,onExited:d,addEndListener:p,children:m,childRef:h,...v}=e,g=(0,r.useRef)(null),y=(0,i.Z)(g,h),E=e=>{y((0,a.Z)(e))},x=e=>t=>{e&&g.current&&e(g.current,t)},b=(0,r.useCallback)(x(n),[n]),C=(0,r.useCallback)(x(u),[u]),O=(0,r.useCallback)(x(l),[l]),N=(0,r.useCallback)(x(c),[c]),Z=(0,r.useCallback)(x(f),[f]),k=(0,r.useCallback)(x(d),[d]),j=(0,r.useCallback)(x(p),[p]);return(0,s.jsx)(o.ZP,{ref:t,...v,onEnter:b,onEntered:O,onEntering:C,onExit:N,onExited:k,onExiting:Z,addEndListener:j,nodeRef:g,children:"function"==typeof m?(e,t)=>m(e,{...t,ref:E}):r.cloneElement(m,{ref:E})})});t.Z=u},3400:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(967);function o(e){return e&&"setState"in e?r.findDOMNode(e):null!=e?e:null}},2158:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(968),o=n(2685);function i(e,t){let n=(0,r.Z)(e,t)||"",o=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*o}function a(e,t){var n,a,s,u,l,c,f,d,p,m,h,v;let g=i(e,"transitionDuration"),y=i(e,"transitionDelay"),E=(n=e,a=n=>{n.target===e&&(E(),t(n))},null==(s=g+y)&&(c=-1===(l=(0,r.Z)(n,"transitionDuration")||"").indexOf("ms")?1e3:1,s=parseFloat(l)*c||0),h=(d=!1,p=setTimeout(function(){d||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(t,n,r),e.dispatchEvent(o)}}(n,"transitionend",!0)},s+5),m=(0,o.Z)(n,"transitionend",function(){d=!0},{once:!0}),function(){clearTimeout(p),m()}),v=(0,o.Z)(n,"transitionend",a),function(){h(),v()})}},8550:function(e,t,n){"use strict";function r(e){e.offsetHeight}n.d(t,{Z:function(){return r}})},4700:function(e,t,n){e.exports=n(9111)},4049:function(e,t,n){"use strict";var r=n(6257);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},507:function(e,t,n){e.exports=n(4049)()},6257:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9800:function(e,t,n){"use strict";n.d(t,{cn:function(){return d},d0:function(){return f},Wj:function(){return c},Ix:function(){return p},ZP:function(){return v}});var r=n(4139);function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var i=n(5271),a=n(967),s={disabled:!1},u=i.createContext(null),l="unmounted",c="exited",f="entering",d="entered",p="exiting",m=function(e){function t(t,n){r=e.call(this,t,n)||this;var r,o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=c,r.appearStatus=f):o=d:o=t.unmountOnExit||t.mountOnEnter?l:c,r.state={status:o},r.nextCallback=null,r}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,o(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===l?{status:c}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==f&&n!==d&&(t=f):(n===f||n===d)&&(t=p)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){if(this.cancelNextCallback(),t===f){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);n&&n.scrollTop}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:l})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[a.findDOMNode(this),r],i=o[0],u=o[1],l=this.getTimeouts(),c=r?l.appear:l.enter;if(!e&&!n||s.disabled){this.safeSetState({status:d},function(){t.props.onEntered(i)});return}this.props.onEnter(i,u),this.safeSetState({status:f},function(){t.props.onEntering(i,u),t.onTransitionEnd(c,function(){t.safeSetState({status:d},function(){t.props.onEntered(i,u)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.findDOMNode(this);if(!t||s.disabled){this.safeSetState({status:c},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:p},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:c},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===l)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(u.Provider,{value:null},"function"==typeof n?n(e,o):i.cloneElement(i.Children.only(n),o))},t}(i.Component);function h(){}m.contextType=u,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},m.UNMOUNTED=l,m.EXITED=c,m.ENTERING=f,m.ENTERED=d,m.EXITING=p;var v=m},5770:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),o=1;o{let n="function"==typeof e?e():e;return n.addEventListener(t,i,a),()=>n.removeEventListener(t,i,a)},[e])}},5434:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(5271);function o(){let[,e]=(0,r.useReducer)(e=>!e,!1);return e}},2798:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(5271),o=n(9761),a=n(3354);let i=2147483648-1;function l(){let e=(0,o.Z)(),t=(0,r.useRef)();return(0,a.Z)(()=>clearTimeout(t.current)),(0,r.useMemo)(()=>{let n=()=>clearTimeout(t.current);return{set:function(r,o=0){e()&&(n(),o<=i?t.current=setTimeout(r,o):function e(t,n,r){let o=r-Date.now();t.current=o<=i?setTimeout(n,o):setTimeout(()=>e(t,n,r),i)}(t,r,Date.now()+o))},clear:n,handleRef:t}},[])}},1900:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(5271);n(7311),n(50);var o=n(994);n(4586),n(9761),n(5965),n(9125),new WeakMap;var a=n(8743),i=n(2676);let l=["onKeyDown"],s=r.forwardRef((e,t)=>{var n;let{onKeyDown:r}=e,s=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,l),[u]=(0,a.FT)(Object.assign({tagName:"a"},s)),c=(0,o.Z)(e=>{u.onKeyDown(e),null==r||r(e)});return(n=s.href)&&"#"!==n.trim()&&"button"!==s.role?(0,i.jsx)("a",Object.assign({ref:t},s,{onKeyDown:r})):(0,i.jsx)("a",Object.assign({ref:t},s,u,{onKeyDown:c}))});s.displayName="Anchor";var u=s},8743:function(e,t,n){n.d(t,{FT:function(){return i}});var r=n(5271),o=n(2676);let a=["as","disabled"];function i({tagName:e,disabled:t,href:n,target:r,rel:o,role:a,onClick:i,tabIndex:l=0,type:s}){e||(e=null!=n||null!=r||null!=o?"a":"button");let u={tagName:e};if("button"===e)return[{type:s||"button",disabled:t},u];let c=r=>{var o;if(!t&&("a"!==e||(o=n)&&"#"!==o.trim())||r.preventDefault(),t){r.stopPropagation();return}null==i||i(r)};return"a"===e&&(n||(n="#"),t&&(n=void 0)),[{role:null!=a?a:"button",disabled:void 0,tabIndex:t?void 0:l,href:n,target:"a"===e?r:void 0,"aria-disabled":t||void 0,rel:"a"===e?o:void 0,onClick:c,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),c(e))}},u]}let l=r.forwardRef((e,t)=>{let{as:n,disabled:r}=e,l=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,a),[s,{tagName:u}]=i(Object.assign({tagName:n,disabled:r},l));return(0,o.jsx)(u,Object.assign({},l,s,{ref:t}))});l.displayName="Button",t.ZP=l},5851:function(e,t,n){let r=n(5271).createContext(null);t.Z=r},9355:function(e,t,n){n.d(t,{d:function(){return d}});var r=n(5271),o=n(7311),a=n(5851),i=n(7200),l=n(5116),s=n(5882),u=n(2676);let c=["children","usePopper"],f=()=>{};function d(e={}){let t=(0,r.useContext)(a.Z),[n,u]=(0,o.Z)(),c=(0,r.useRef)(!1),{flip:d,offset:p,rootCloseEvent:h,fixed:m=!1,placement:v,popperConfig:g={},enableEventListeners:y=!0,usePopper:b=!!t}=e,x=(null==t?void 0:t.show)==null?!!e.show:t.show;x&&!c.current&&(c.current=!0);let{placement:w,setMenu:O,menuElement:j,toggleElement:E}=t||{},Z=(0,i.Z)(E,j,(0,s.ZP)({placement:v||w||"bottom-start",enabled:b,enableEvents:null==y?x:y,offset:p,flip:d,fixed:m,arrowElement:n,popperConfig:g})),D=Object.assign({ref:O||f,"aria-labelledby":null==E?void 0:E.id},Z.attributes.popper,{style:Z.styles.popper}),C={show:x,placement:w,hasShown:c.current,toggle:null==t?void 0:t.toggle,popper:b?Z:null,arrowProps:b?Object.assign({ref:u},Z.attributes.arrow,{style:Z.styles.arrow}):{}};return(0,l.Z)(j,e=>{null==t||t.toggle(!1,e)},{clickTrigger:h,disabled:!x}),[D,C]}function p(e){let{children:t,usePopper:n=!0}=e,[r,o]=d(Object.assign({},function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,c),{usePopper:n}));return(0,u.jsx)(u.Fragment,{children:t(r,o)})}p.displayName="DropdownMenu",t.Z=p},5082:function(e,t,n){n.d(t,{Jr:function(){return u},bt:function(){return l}});var r=n(5271),o=n(336),a=n(5851),i=n(2676);let l=e=>{var t;return(null==(t=e.getAttribute("role"))?void 0:t.toLowerCase())==="menu"},s=()=>{};function u(){let e=(0,o.gP)(),{show:t=!1,toggle:n=s,setToggle:i,menuElement:u}=(0,r.useContext)(a.Z)||{},c={id:e,ref:i||s,onClick:(0,r.useCallback)(e=>{n(!t,e)},[t,n]),"aria-expanded":!!t};return u&&l(u)&&(c["aria-haspopup"]=!0),[c,{show:t,toggle:n}]}function c({children:e}){let[t,n]=u();return(0,i.jsx)(i.Fragment,{children:e(t,n)})}c.displayName="DropdownToggle",t.ZP=c},1159:function(e,t,n){let r=n(5271).createContext(null);r.displayName="NavContext",t.Z=r},9628:function(e,t,n){n.d(t,{v:function(){return d}});var r=n(5271),o=n(994),a=n(1159),i=n(177),l=n(8743),s=n(8122),u=n(3778),c=n(2676);let f=["as","active","eventKey"];function d({key:e,onClick:t,active:n,id:l,role:c,disabled:f}){let d=(0,r.useContext)(i.Z),p=(0,r.useContext)(a.Z),h=(0,r.useContext)(u.Z),m=n,v={role:c};if(p){c||"tablist"!==p.role||(v.role="tab");let t=p.getControllerId(null!=e?e:null),r=p.getControlledId(null!=e?e:null);v[(0,s.PB)("event-key")]=e,v.id=t||l,((m=null==n&&null!=e?p.activeKey===e:n)||!(null!=h&&h.unmountOnExit)&&!(null!=h&&h.mountOnEnter))&&(v["aria-controls"]=r)}return"tab"===v.role&&(v["aria-selected"]=m,m||(v.tabIndex=-1),f&&(v.tabIndex=-1,v["aria-disabled"]=!0)),v.onClick=(0,o.Z)(n=>{f||(null==t||t(n),null!=e&&d&&!n.isPropagationStopped()&&d(e,n))}),[v,{isActive:m}]}let p=r.forwardRef((e,t)=>{let{as:n=l.ZP,active:r,eventKey:o}=e,a=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,f),[u,p]=d(Object.assign({key:(0,i.h)(o,a.href),active:r},a));return u[(0,s.PB)("active")]=p.isActive,(0,c.jsx)(n,Object.assign({},a,u,{ref:t}))});p.displayName="NavItem",t.Z=p},3778:function(e,t,n){let r=n(5271).createContext(null);t.Z=r},6162:function(e,t,n){n.d(t,{W:function(){return d}});var r=n(5271),o=n(3778),a=n(177),i=n(3636),l=n(2676);let s=["active","eventKey","mountOnEnter","transition","unmountOnExit","role","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],u=["activeKey","getControlledId","getControllerId"],c=["as"];function f(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function d(e){let{active:t,eventKey:n,mountOnEnter:i,transition:l,unmountOnExit:c,role:d="tabpanel",onEnter:p,onEntering:h,onEntered:m,onExit:v,onExiting:g,onExited:y}=e,b=f(e,s),x=(0,r.useContext)(o.Z);if(!x)return[Object.assign({},b,{role:d}),{eventKey:n,isActive:t,mountOnEnter:i,transition:l,unmountOnExit:c,onEnter:p,onEntering:h,onEntered:m,onExit:v,onExiting:g,onExited:y}];let{activeKey:w,getControlledId:O,getControllerId:j}=x,E=f(x,u),Z=(0,a.h)(n);return[Object.assign({},b,{role:d,id:O(n),"aria-labelledby":j(n)}),{eventKey:n,isActive:null==t&&null!=Z?(0,a.h)(w)===Z:t,transition:l||E.transition,mountOnEnter:null!=i?i:E.mountOnEnter,unmountOnExit:null!=c?c:E.unmountOnExit,onEnter:p,onEntering:h,onEntered:m,onExit:v,onExiting:g,onExited:y}]}let p=r.forwardRef((e,t)=>{let{as:n="div"}=e,[r,{isActive:s,onEnter:u,onEntering:p,onEntered:h,onExit:m,onExiting:v,onExited:g,mountOnEnter:y,unmountOnExit:b,transition:x=i.Z}]=d(f(e,c));return(0,l.jsx)(o.Z.Provider,{value:null,children:(0,l.jsx)(a.Z.Provider,{value:null,children:(0,l.jsx)(x,{in:s,onEnter:u,onEntering:p,onEntered:h,onExit:m,onExiting:v,onExited:g,mountOnEnter:y,unmountOnExit:b,children:(0,l.jsx)(n,Object.assign({},r,{ref:t,hidden:!s,"aria-hidden":!s}))})})})});p.displayName="TabPanel",t.Z=p},3809:function(e,t,n){var r=n(5271),o=n(3689),a=n(336),i=n(3778),l=n(177),s=n(6162),u=n(2676);let c=e=>{let{id:t,generateChildId:n,onSelect:s,activeKey:c,defaultActiveKey:f,transition:d,mountOnEnter:p,unmountOnExit:h,children:m}=e,[v,g]=(0,o.$c)(c,f,s),y=(0,a.gP)(t),b=(0,r.useMemo)(()=>n||((e,t)=>y?`${y}-${t}-${e}`:null),[y,n]),x=(0,r.useMemo)(()=>({onSelect:g,activeKey:v,transition:d,mountOnEnter:p||!1,unmountOnExit:h||!1,getControlledId:e=>b(e,"tabpane"),getControllerId:e=>b(e,"tab")}),[g,v,d,p,h,b]);return(0,u.jsx)(i.Z.Provider,{value:x,children:(0,u.jsx)(l.Z.Provider,{value:g||null,children:m})})};c.Panel=s.Z,t.Z=c},5882:function(e,t,n){n.d(t,{ZP:function(){return r}});function r({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:a,containerPadding:i,arrowElement:l,popperConfig:s={}}){var u,c,f,d,p;let h=function(e){let t={};return Array.isArray(e)?(null==e||e.forEach(e=>{t[e.name]=e}),t):e||t}(s.modifiers);return Object.assign({},s,{placement:n,enabled:e,strategy:a?"fixed":s.strategy,modifiers:function(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}(Object.assign({},h,{eventListeners:{enabled:t,options:null==(u=h.eventListeners)?void 0:u.options},preventOverflow:Object.assign({},h.preventOverflow,{options:i?Object.assign({padding:i},null==(c=h.preventOverflow)?void 0:c.options):null==(f=h.preventOverflow)?void 0:f.options}),offset:{options:Object.assign({offset:o},null==(d=h.offset)?void 0:d.options)},arrow:Object.assign({},h.arrow,{enabled:!!l,options:Object.assign({},null==(p=h.arrow)?void 0:p.options,{element:l})}),flip:Object.assign({enabled:!!r},h.flip)}))})}},5116:function(e,t,n){n.d(t,{f:function(){return f}});var r=n(6712),o=n(2685),a=n(8342),i=n(5271),l=n(994),s=n(1190),u=n.n(s);let c=()=>{},f=e=>e&&("current"in e?e.current:e),d={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};t.Z=function(e,t=c,{disabled:n,clickTrigger:s="click"}={}){let p=(0,i.useRef)(!1),h=(0,i.useRef)(!1),m=(0,i.useCallback)(t=>{let n=f(e);u()(!!n,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),p.current=!n||!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)||0!==t.button||!!(0,r.Z)(n,t.target)||h.current,h.current=!1},[e]),v=(0,l.Z)(t=>{let n=f(e);n&&(0,r.Z)(n,t.target)&&(h.current=!0)}),g=(0,l.Z)(e=>{p.current||t(e)});(0,i.useEffect)(()=>{var t,r;if(n||null==e)return;let i=(0,a.Z)(f(e)),l=i.defaultView||window,u=null!=(t=l.event)?t:null==(r=l.parent)?void 0:r.event,p=null;d[s]&&(p=(0,o.Z)(i,d[s],v,!0));let h=(0,o.Z)(i,s,m,!0),y=(0,o.Z)(i,s,e=>{if(e===u){u=void 0;return}g(e)}),b=[];return"ontouchstart"in i.documentElement&&(b=[].slice.call(i.body.children).map(e=>(0,o.Z)(e,"mousemove",c))),()=>{null==p||p(),h(),y(),b.forEach(e=>e())}},[e,n,s,m,v,g])}},7200:function(e,t,n){n.d(t,{Z:function(){return ex}});var r,o,a,i,l,s=n(5271),u=Object.prototype.hasOwnProperty;function c(e,t,n){for(n of e.keys())if(f(n,t))return n}function f(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&f(e[r],t[r]););return -1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if((o=r)&&"object"==typeof o&&!(o=c(t,o))||!t.has(o))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if((o=r[0])&&"object"==typeof o&&!(o=c(t,o))||!f(r[1],t.get(o)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return -1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return -1===r}if(!n||"object"==typeof e){for(n in r=0,e)if(u.call(e,n)&&++r&&!u.call(t,n)||!(n in t)||!f(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!=e&&t!=t}var d=n(9761),p=function(e){let t=(0,d.Z)();return[e[0],(0,s.useCallback)(n=>{if(t())return e[1](n)},[t,e[1]])]};function h(e){return e.split("-")[0]}function m(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function v(e){var t=m(e).Element;return e instanceof t||e instanceof Element}function g(e){var t=m(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function y(e){if("undefined"==typeof ShadowRoot)return!1;var t=m(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var b=Math.max,x=Math.min,w=Math.round;function O(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function j(){return!/^((?!chrome|android).)*safari/i.test(O())}function E(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&g(e)&&(o=e.offsetWidth>0&&w(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&w(r.height)/e.offsetHeight||1);var i=(v(e)?m(e):window).visualViewport,l=!j()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/o,u=(r.top+(l&&i?i.offsetTop:0))/a,c=r.width/o,f=r.height/a;return{width:c,height:f,top:u,right:s+c,bottom:u+f,left:s,x:s,y:u}}function Z(e){var t=E(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function D(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&y(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function C(e){return e?(e.nodeName||"").toLowerCase():null}function N(e){return m(e).getComputedStyle(e)}function S(e){return((v(e)?e.ownerDocument:e.document)||window.document).documentElement}function P(e){return"html"===C(e)?e:e.assignedSlot||e.parentNode||(y(e)?e.host:null)||S(e)}function k(e){return g(e)&&"fixed"!==N(e).position?e.offsetParent:null}function T(e){for(var t=m(e),n=k(e);n&&["table","td","th"].indexOf(C(n))>=0&&"static"===N(n).position;)n=k(n);return n&&("html"===C(n)||"body"===C(n)&&"static"===N(n).position)?t:n||function(e){var t=/firefox/i.test(O());if(/Trident/i.test(O())&&g(e)&&"fixed"===N(e).position)return null;var n=P(e);for(y(n)&&(n=n.host);g(n)&&0>["html","body"].indexOf(C(n));){var r=N(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function M(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function R(e,t,n){return b(e,x(t,n))}function A(){return{top:0,right:0,bottom:0,left:0}}function I(e){return Object.assign({},A(),e)}function L(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var _="bottom",F="right",W="left",B="auto",H=["top",_,F,W],U="start",X="viewport",V="popper",Y=H.reduce(function(e,t){return e.concat([t+"-"+U,t+"-end"])},[]),K=[].concat(H,[B]).reduce(function(e,t){return e.concat([t,t+"-"+U,t+"-end"])},[]),z=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function $(e){return e.split("-")[1]}var q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function G(e){var t,n,r,o,a,i,l,s=e.popper,u=e.popperRect,c=e.placement,f=e.variation,d=e.offsets,p=e.position,h=e.gpuAcceleration,v=e.adaptive,g=e.roundOffsets,y=e.isFixed,b=d.x,x=void 0===b?0:b,O=d.y,j=void 0===O?0:O,E="function"==typeof g?g({x:x,y:j}):{x:x,y:j};x=E.x,j=E.y;var Z=d.hasOwnProperty("x"),D=d.hasOwnProperty("y"),C=W,P="top",k=window;if(v){var M=T(s),R="clientHeight",A="clientWidth";M===m(s)&&"static"!==N(M=S(s)).position&&"absolute"===p&&(R="scrollHeight",A="scrollWidth"),("top"===c||(c===W||c===F)&&"end"===f)&&(P=_,j-=(y&&M===k&&k.visualViewport?k.visualViewport.height:M[R])-u.height,j*=h?1:-1),(c===W||("top"===c||c===_)&&"end"===f)&&(C=F,x-=(y&&M===k&&k.visualViewport?k.visualViewport.width:M[A])-u.width,x*=h?1:-1)}var I=Object.assign({position:p},v&&q),L=!0===g?(t={x:x,y:j},n=m(s),r=t.x,o=t.y,{x:w(r*(a=n.devicePixelRatio||1))/a||0,y:w(o*a)/a||0}):{x:x,y:j};return(x=L.x,j=L.y,h)?Object.assign({},I,((l={})[P]=D?"0":"",l[C]=Z?"0":"",l.transform=1>=(k.devicePixelRatio||1)?"translate("+x+"px, "+j+"px)":"translate3d("+x+"px, "+j+"px, 0)",l)):Object.assign({},I,((i={})[P]=D?j+"px":"",i[C]=Z?x+"px":"",i.transform="",i))}var J={passive:!0},Q={left:"right",right:"left",bottom:"top",top:"bottom"};function ee(e){return e.replace(/left|right|bottom|top/g,function(e){return Q[e]})}var et={start:"end",end:"start"};function en(e){return e.replace(/start|end/g,function(e){return et[e]})}function er(e){var t=m(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function eo(e){return E(S(e)).left+er(e).scrollLeft}function ea(e){var t=N(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ei(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf(C(t))>=0?t.ownerDocument.body:g(t)&&ea(t)?t:e(P(t))}(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=m(r),i=o?[a].concat(a.visualViewport||[],ea(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(ei(P(i)))}function el(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function es(e,t,n){var r,o,a,i,l,s,u,c,f,d;return t===X?el(function(e,t){var n=m(e),r=S(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var u=j();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+eo(e),y:s}}(e,n)):v(t)?((r=E(t,!1,"fixed"===n)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):el((o=S(e),i=S(o),l=er(o),s=null==(a=o.ownerDocument)?void 0:a.body,u=b(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),c=b(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),f=-l.scrollLeft+eo(o),d=-l.scrollTop,"rtl"===N(s||i).direction&&(f+=b(i.clientWidth,s?s.clientWidth:0)-u),{width:u,height:c,x:f,y:d}))}function eu(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?h(o):null,i=o?$(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case"top":t={x:l,y:n.y-r.height};break;case _:t={x:l,y:n.y+n.height};break;case F:t={x:n.x+n.width,y:s};break;case W:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=a?M(a):null;if(null!=u){var c="y"===u?"height":"width";switch(i){case U:t[u]=t[u]-(n[c]/2-r[c]/2);break;case"end":t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function ec(e,t){void 0===t&&(t={});var n,r,o,a,i,l,s,u,c=t,f=c.placement,d=void 0===f?e.placement:f,p=c.strategy,h=void 0===p?e.strategy:p,m=c.boundary,y=c.rootBoundary,w=c.elementContext,O=void 0===w?V:w,j=c.altBoundary,Z=c.padding,k=void 0===Z?0:Z,M=I("number"!=typeof k?k:L(k,H)),R=e.rects.popper,A=e.elements[void 0!==j&&j?O===V?"reference":V:O],W=(n=v(A)?A:A.contextElement||S(e.elements.popper),r=void 0===m?"clippingParents":m,o=void 0===y?X:y,s=(l=[].concat("clippingParents"===r?(a=ei(P(n)),v(i=["absolute","fixed"].indexOf(N(n).position)>=0&&g(n)?T(n):n)?a.filter(function(e){return v(e)&&D(e,i)&&"body"!==C(e)}):[]):[].concat(r),[o]))[0],(u=l.reduce(function(e,t){var r=es(n,t,h);return e.top=b(r.top,e.top),e.right=x(r.right,e.right),e.bottom=x(r.bottom,e.bottom),e.left=b(r.left,e.left),e},es(n,s,h))).width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u),B=E(e.elements.reference),U=eu({reference:B,element:R,strategy:"absolute",placement:d}),Y=el(Object.assign({},R,U)),K=O===V?Y:B,z={top:W.top-K.top+M.top,bottom:K.bottom-W.bottom+M.bottom,left:W.left-K.left+M.left,right:K.right-W.right+M.right},$=e.modifiersData.offset;if(O===V&&$){var q=$[d];Object.keys(z).forEach(function(e){var t=[F,_].indexOf(e)>=0?1:-1,n=["top",_].indexOf(e)>=0?"y":"x";z[e]+=q[n]*t})}return z}function ef(e,t,n){return void 0===n&&(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 ed(e){return["top",F,_,W].some(function(t){return e[t]>=0})}var ep={placement:"bottom",modifiers:[],strategy:"absolute"};function eh(){for(var e=arguments.length,t=Array(e),n=0;n=0?-1:1,s=(l="function"==typeof a?a(Object.assign({},r,{placement:n})):a)[0],u=l[1],s=s||0,u=(u||0)*i,[W,F].indexOf(o)>=0?{x:u,y:s}:{x:s,y:u}),e},{}),l=i[t.placement],s=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,m=void 0===p||p,v=n.allowedAutoPlacements,g=t.options.placement,y=h(g)===g,b=s||(y||!m?[ee(g)]:function(e){if(h(e)===B)return[];var t=ee(e);return[en(e),t,en(t)]}(g)),x=[g].concat(b).reduce(function(e,n){var r,o,a,i,l,s,d,p,g,y,b,x;return e.concat(h(n)===B?(o=(r={placement:n,boundary:c,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:v}).placement,a=r.boundary,i=r.rootBoundary,l=r.padding,s=r.flipVariations,p=void 0===(d=r.allowedAutoPlacements)?K:d,0===(b=(y=(g=$(o))?s?Y:Y.filter(function(e){return $(e)===g}):H).filter(function(e){return p.indexOf(e)>=0})).length&&(b=y),Object.keys(x=b.reduce(function(e,n){return e[n]=ec(t,{placement:n,boundary:a,rootBoundary:i,padding:l})[h(n)],e},{})).sort(function(e,t){return x[e]-x[t]})):n)},[]),w=t.rects.reference,O=t.rects.popper,j=new Map,E=!0,Z=x[0],D=0;D=0,k=P?"width":"height",T=ec(t,{placement:C,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),M=P?S?F:W:S?_:"top";w[k]>O[k]&&(M=ee(M));var R=ee(M),A=[];if(a&&A.push(T[N]<=0),l&&A.push(T[M]<=0,T[R]<=0),A.every(function(e){return e})){Z=C,E=!1;break}j.set(C,A)}if(E)for(var I=m?3:1,L=function(e){var t=x.find(function(t){var n=j.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return Z=t,"break"},X=I;X>0&&"break"!==L(X);X--);t.placement!==Z&&(t.modifiersData[r]._skip=!0,t.placement=Z,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=n.altAxis,i=n.boundary,l=n.rootBoundary,s=n.altBoundary,u=n.padding,c=n.tether,f=void 0===c||c,d=n.tetherOffset,p=void 0===d?0:d,m=ec(t,{boundary:i,rootBoundary:l,padding:u,altBoundary:s}),v=h(t.placement),g=$(t.placement),y=!g,w=M(v),O="x"===w?"y":"x",j=t.modifiersData.popperOffsets,E=t.rects.reference,D=t.rects.popper,C="function"==typeof p?p(Object.assign({},t.rects,{placement:t.placement})):p,N="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(j){if(void 0===o||o){var k,I="y"===w?"top":W,L="y"===w?_:F,B="y"===w?"height":"width",H=j[w],X=H+m[I],V=H-m[L],Y=f?-D[B]/2:0,K=g===U?E[B]:D[B],z=g===U?-D[B]:-E[B],q=t.elements.arrow,G=f&&q?Z(q):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:A(),Q=J[I],ee=J[L],et=R(0,E[B],G[B]),en=y?E[B]/2-Y-et-Q-N.mainAxis:K-et-Q-N.mainAxis,er=y?-E[B]/2+Y+et+ee+N.mainAxis:z+et+ee+N.mainAxis,eo=t.elements.arrow&&T(t.elements.arrow),ea=eo?"y"===w?eo.clientTop||0:eo.clientLeft||0:0,ei=null!=(k=null==S?void 0:S[w])?k:0,el=R(f?x(X,H+en-ei-ea):X,H,f?b(V,H+er-ei):V);j[w]=el,P[w]=el-H}if(void 0!==a&&a){var es,eu,ef="x"===w?"top":W,ed="x"===w?_:F,ep=j[O],eh="y"===O?"height":"width",em=ep+m[ef],ev=ep-m[ed],eg=-1!==["top",W].indexOf(v),ey=null!=(eu=null==S?void 0:S[O])?eu:0,eb=eg?em:ep-E[eh]-D[eh]-ey+N.altAxis,ex=eg?ep+E[eh]+D[eh]-ey-N.altAxis:ev,ew=f&&eg?(es=R(eb,ep,ex))>ex?ex:es:R(f?eb:em,ep,f?ex:ev);j[O]=ew,P[O]=ew-ep}t.modifiersData[r]=P}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r=e.state,o=e.name,a=e.options,i=r.elements.arrow,l=r.modifiersData.popperOffsets,s=h(r.placement),u=M(s),c=[W,F].indexOf(s)>=0?"height":"width";if(i&&l){var f=I("number"!=typeof(t="function"==typeof(t=a.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:L(t,H)),d=Z(i),p="y"===u?"top":W,m="y"===u?_:F,v=r.rects.reference[c]+r.rects.reference[u]-l[u]-r.rects.popper[c],g=l[u]-r.rects.reference[u],y=T(i),b=y?"y"===u?y.clientHeight||0:y.clientWidth||0:0,x=f[p],w=b-d[c]-f[m],O=b/2-d[c]/2+(v/2-g/2),j=R(x,O,w);r.modifiersData[o]=((n={})[u]=j,n.centerOffset=j-O,n)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&D(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}]}).defaultModifiers)?[]:o,l=void 0===(i=r.defaultOptions)?ep:i,function(e,t,n){void 0===n&&(n=l);var r,o,i={placement:"bottom",orderedModifiers:[],options:Object.assign({},ep,l),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],u=!1,c={state:i,setOptions:function(n){var r,o,u,d,p,h="function"==typeof n?n(i.options):n;f(),i.options=Object.assign({},l,i.options,h),i.scrollParents={reference:v(e)?ei(e):e.contextElement?ei(e.contextElement):[],popper:ei(t)};var m=(o=Object.keys(r=[].concat(a,i.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}),u=new Map,d=new Set,p=[],o.forEach(function(e){u.set(e.name,e)}),o.forEach(function(e){d.has(e.name)||function e(t){d.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!d.has(t)){var n=u.get(t);n&&e(n)}}),p.push(t)}(e)}),z.reduce(function(e,t){return e.concat(p.filter(function(e){return e.phase===t}))},[]));return i.orderedModifiers=m.filter(function(e){return e.enabled}),i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var o=r({state:i,name:t,instance:c,options:void 0===n?{}:n});s.push(o||function(){})}}),c.update()},forceUpdate:function(){if(!u){var e,t,n,r,o,a,l,s,f,d,p,h,v=i.elements,y=v.reference,b=v.popper;if(eh(y,b)){i.rects={reference:(t=T(b),n="fixed"===i.options.strategy,r=g(t),s=g(t)&&(a=w((o=t.getBoundingClientRect()).width)/t.offsetWidth||1,l=w(o.height)/t.offsetHeight||1,1!==a||1!==l),f=S(t),d=E(y,s,n),p={scrollLeft:0,scrollTop:0},h={x:0,y:0},(r||!r&&!n)&&(("body"!==C(t)||ea(f))&&(p=(e=t)!==m(e)&&g(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:er(e)),g(t)?(h=E(t,!0),h.x+=t.clientLeft,h.y+=t.clientTop):f&&(h.x=eo(f))),{x:d.left+p.scrollLeft-h.x,y:d.top+p.scrollTop-h.y,width:d.width,height:d.height}),popper:Z(b)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var x=0;xvoid 0},ey={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{let{reference:t,popper:n}=e.elements;if("removeAttribute"in t){let e=(t.getAttribute("aria-describedby")||"").split(",").filter(e=>e.trim()!==n.id);e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;let{popper:n,reference:r}=e.elements,o=null==(t=n.getAttribute("role"))?void 0:t.toLowerCase();if(n.id&&"tooltip"===o&&"setAttribute"in r){let e=r.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(n.id))return;r.setAttribute("aria-describedby",e?`${e},${n.id}`:n.id)}}},eb=[];var ex=function(e,t,n={}){let{enabled:r=!0,placement:o="bottom",strategy:a="absolute",modifiers:i=eb}=n,l=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(n,ev),u=(0,s.useRef)(i),c=(0,s.useRef)(),d=(0,s.useCallback)(()=>{var e;null==(e=c.current)||e.update()},[]),h=(0,s.useCallback)(()=>{var e;null==(e=c.current)||e.forceUpdate()},[]),[m,v]=p((0,s.useState)({placement:o,update:d,forceUpdate:h,attributes:{},styles:{popper:{},arrow:{}}})),g=(0,s.useMemo)(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{let t={},n={};Object.keys(e.elements).forEach(r=>{t[r]=e.styles[r],n[r]=e.attributes[r]}),v({state:e,styles:t,attributes:n,update:d,forceUpdate:h,placement:e.placement})}}),[d,h,v]),y=(0,s.useMemo)(()=>(f(u.current,i)||(u.current=i),u.current),[i]);return(0,s.useEffect)(()=>{c.current&&r&&c.current.setOptions({placement:o,strategy:a,modifiers:[...y,g,eg]})},[a,o,g,r,y]),(0,s.useEffect)(()=>{if(r&&null!=e&&null!=t)return c.current=em(e,t,Object.assign({},l,{placement:o,strategy:a,modifiers:[...y,ey,g]})),()=>{null!=c.current&&(c.current.destroy(),c.current=void 0,v(e=>Object.assign({},e,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),m}},5924:function(e,t,n){function r(){for(var e,t,n=0,r="";n{let{as:n,bsPrefix:r,variant:a="primary",size:u,active:c=!1,disabled:f=!1,className:d,...p}=e,h=(0,l.vE)(r,"btn"),[m,{tagName:v}]=(0,i.FT)({tagName:n,disabled:f,...p});return(0,s.jsx)(v,{...m,...p,ref:t,disabled:f,className:o()(d,h,c&&"active",a&&"".concat(h,"-").concat(a),u&&"".concat(h,"-").concat(u),p.href&&f&&"disabled")})});u.displayName="Button",t.Z=u},2286:function(e,t,n){var r=n(2187),o=n.n(r),a=n(5271),i=n(6136),l=n(2676);let s=a.forwardRef((e,t)=>{let[{className:n,...r},{as:a="div",bsPrefix:s,spans:u}]=function(e){let{as:t,bsPrefix:n,className:r,...a}=e;n=(0,i.vE)(n,"col");let l=(0,i.pi)(),s=(0,i.zG)(),u=[],c=[];return l.forEach(e=>{let t,r,o;let i=a[e];delete a[e],"object"==typeof i&&null!=i?{span:t,offset:r,order:o}=i:t=i;let l=e!==s?"-".concat(e):"";t&&u.push(!0===t?"".concat(n).concat(l):"".concat(n).concat(l,"-").concat(t)),null!=o&&c.push("order".concat(l,"-").concat(o)),null!=r&&c.push("offset".concat(l,"-").concat(r))}),[{...a,className:o()(r,...u,...c)},{as:t,bsPrefix:n,spans:u}]}(e);return(0,l.jsx)(a,{...r,ref:t,className:o()(n,!u.length&&s)})});s.displayName="Col",t.Z=s},9449:function(e,t,n){n.d(t,{Z:function(){return F}});var r=n(2187),o=n.n(r),a=n(5271),i=n(3465),l=n(2853),s=n(3689),u=n(5965),c=n(5434),f=n(4586),d=n(994),p=n(5851),h=n(9355),m=n(5082),v=n(177),g=n(1159),y=n(8743),b=n(8122),x=n(2676);let w=["eventKey","disabled","onClick","active","as"];function O({key:e,href:t,active:n,disabled:r,onClick:o}){let i=(0,a.useContext)(v.Z),{activeKey:l}=(0,a.useContext)(g.Z)||{},s=(0,v.h)(e,t),u=null==n&&null!=e?(0,v.h)(l)===s:n;return[{onClick:(0,d.Z)(e=>{r||(null==o||o(e),i&&!e.isPropagationStopped()&&i(s,e))}),"aria-disabled":r||void 0,"aria-selected":u,[(0,b.PB)("dropdown-item")]:""},{isActive:u}]}let j=a.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:o,active:a,as:i=y.ZP}=e,l=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,w),[s]=O({key:n,href:l.href,disabled:r,onClick:o,active:a});return(0,x.jsx)(i,Object.assign({},l,{ref:t},s))});j.displayName="DropdownItem";var E=n(2879);function Z(){let e=(0,c.Z)(),t=(0,a.useRef)(null),n=(0,a.useCallback)(n=>{t.current=n,e()},[e]);return[t,n]}function D({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:o=`* [${(0,b.PB)("dropdown-item")}]`,focusFirstItemOnShow:c,placement:h="bottom-start",children:g}){let y=(0,E.Z)(),[w,O]=(0,s.$c)(t,e,r),[j,D]=Z(),C=j.current,[N,S]=Z(),P=N.current,k=(0,u.Z)(w),T=(0,a.useRef)(null),M=(0,a.useRef)(!1),R=(0,a.useContext)(v.Z),A=(0,a.useCallback)((e,t,n=null==t?void 0:t.type)=>{O(e,{originalEvent:t,source:n})},[O]),I=(0,d.Z)((e,t)=>{null==n||n(e,t),A(!1,t,"select"),t.isPropagationStopped()||null==R||R(e,t)}),L=(0,a.useMemo)(()=>({toggle:A,placement:h,show:w,menuElement:C,toggleElement:P,setMenu:D,setToggle:S}),[A,h,w,C,P,D,S]);C&&k&&!w&&(M.current=C.contains(C.ownerDocument.activeElement));let _=(0,d.Z)(()=>{P&&P.focus&&P.focus()}),F=(0,d.Z)(()=>{let e=T.current,t=c;if(null==t&&(t=!!(j.current&&(0,m.bt)(j.current))&&"keyboard"),!1===t||"keyboard"===t&&!/^key.+$/.test(e))return;let n=(0,i.Z)(j.current,o)[0];n&&n.focus&&n.focus()});(0,a.useEffect)(()=>{w?F():M.current&&(M.current=!1,_())},[w,M,_,F]),(0,a.useEffect)(()=>{T.current=null});let W=(e,t)=>{if(!j.current)return null;let n=(0,i.Z)(j.current,o),r=n.indexOf(e)+t;return r=Math.max(0,Math.min(r,n.length)),n[r]};return(0,f.Z)((0,a.useCallback)(()=>y.document,[y]),"keydown",e=>{var t,n;let{key:r}=e,o=e.target,a=null==(t=j.current)?void 0:t.contains(o),i=null==(n=N.current)?void 0:n.contains(o);if(/input|textarea/i.test(o.tagName)&&(" "===r||"Escape"!==r&&a||"Escape"===r&&"search"===o.type)||!a&&!i||"Tab"===r&&(!j.current||!w))return;T.current=e.type;let s={originalEvent:e,source:e.type};switch(r){case"ArrowUp":{let t=W(o,-1);t&&t.focus&&t.focus(),e.preventDefault();return}case"ArrowDown":if(e.preventDefault(),w){let e=W(o,1);e&&e.focus&&e.focus()}else O(!0,s);return;case"Tab":(0,l.ZP)(o.ownerDocument,"keyup",e=>{var t;("Tab"!==e.key||e.target)&&null!=(t=j.current)&&t.contains(e.target)||O(!1,s)},{once:!0});break;case"Escape":"Escape"===r&&(e.preventDefault(),e.stopPropagation()),O(!1,s)}}),(0,x.jsx)(v.Z.Provider,{value:I,children:(0,x.jsx)(p.Z.Provider,{value:L,children:g})})}D.displayName="Dropdown",D.Menu=h.Z,D.Toggle=m.ZP,D.Item=j;var C=n(5770),N=n(1415),S=n(6136);let P=a.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:a="hr",role:i="separator",...l}=e;return r=(0,S.vE)(r,"dropdown-divider"),(0,x.jsx)(a,{ref:t,className:o()(n,r),role:i,...l})});P.displayName="DropdownDivider";let k=a.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:a="div",role:i="heading",...l}=e;return r=(0,S.vE)(r,"dropdown-header"),(0,x.jsx)(a,{ref:t,className:o()(n,r),role:i,...l})});k.displayName="DropdownHeader";var T=n(1900);let M=a.forwardRef((e,t)=>{let{bsPrefix:n,className:r,eventKey:a,disabled:i=!1,onClick:l,active:s,as:u=T.Z,...c}=e,f=(0,S.vE)(n,"dropdown-item"),[d,p]=O({key:a,href:c.href,disabled:i,onClick:l,active:s});return(0,x.jsx)(u,{...c,...d,ref:t,className:o()(r,f,p.isActive&&"active",i&&"disabled")})});M.displayName="DropdownItem";let R=a.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:a="span",...i}=e;return r=(0,S.vE)(r,"dropdown-item-text"),(0,x.jsx)(a,{ref:t,className:o()(n,r),...i})});R.displayName="DropdownItemText";var A=n(6350),I=n(6353),L=n(1804);let _=a.forwardRef((e,t)=>{let{bsPrefix:n,drop:r="down",show:i,className:l,align:s="start",onSelect:u,onToggle:c,focusFirstItemOnShow:f,as:p="div",navbar:h,autoClose:m=!0,...v}=(0,C.Ch)(e,{show:"onToggle"}),g=(0,a.useContext)(L.Z),y=(0,S.vE)(n,"dropdown"),b=(0,S.SC)(),w=e=>!1===m?"click"===e:"inside"===m?"rootClose"!==e:"outside"!==m||"select"!==e,O=(0,d.Z)((e,t)=>{var n;(null==(n=t.originalEvent)||null==(n=n.target)||!n.classList.contains("dropdown-toggle")||"mousedown"!==t.source)&&(t.originalEvent.currentTarget===document&&("keydown"!==t.source||"Escape"===t.originalEvent.key)&&(t.source="rootClose"),w(t.source)&&(null==c||c(e,t)))}),j=(0,A.J)("end"===s,r,b),E=(0,a.useMemo)(()=>({align:s,drop:r,isRTL:b}),[s,r,b]);return(0,x.jsx)(N.Z.Provider,{value:E,children:(0,x.jsx)(D,{placement:j,show:i,onSelect:u,onToggle:O,focusFirstItemOnShow:f,itemSelector:".".concat(y,"-item:not(.disabled):not(:disabled)"),children:g?v.children:(0,x.jsx)(p,{...v,ref:t,className:o()(l,i&&"show",{down:y,"down-centered":"".concat(y,"-center"),up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"}[r])})})})});_.displayName="Dropdown";var F=Object.assign(_,{Toggle:I.Z,Menu:A.Z,Item:M,ItemText:R,Divider:P,Header:k})},7908:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(5271),o=n(507),a=n.n(o),i=n(9449),l=n(6353),s=n(6350);let u=a().oneOf(["start","end"]),c=a().oneOfType([u,a().shape({sm:u}),a().shape({md:u}),a().shape({lg:u}),a().shape({xl:u}),a().shape({xxl:u}),a().object]);var f=n(2676);let d={id:a().string,href:a().string,onClick:a().func,title:a().node.isRequired,disabled:a().bool,align:c,menuRole:a().string,renderMenuOnMount:a().bool,rootCloseEvent:a().string,menuVariant:a().oneOf(["dark"]),flip:a().bool,bsPrefix:a().string,variant:a().string,size:a().string},p=r.forwardRef((e,t)=>{let{title:n,children:r,bsPrefix:o,rootCloseEvent:a,variant:u,size:c,menuRole:d,renderMenuOnMount:p,disabled:h,href:m,id:v,menuVariant:g,flip:y,...b}=e;return(0,f.jsxs)(i.Z,{ref:t,...b,children:[(0,f.jsx)(l.Z,{id:v,href:m,size:c,variant:u,disabled:h,childBsPrefix:o,children:n}),(0,f.jsx)(s.Z,{role:d,renderOnMount:p,rootCloseEvent:a,variant:g,flip:y,children:r})]})});p.displayName="DropdownButton",p.propTypes=d;var h=p},1415:function(e,t,n){let r=n(5271).createContext({});r.displayName="DropdownContext",t.Z=r},6350:function(e,t,n){n.d(t,{J:function(){return m}});var r=n(2187),o=n.n(r),a=n(5271),i=n(9355),l=n(9125),s=n(1920);n(1190);var u=n(1415),c=n(1804),f=n(1481),d=n(6136),p=n(850),h=n(2676);function m(e,t,n){let r=e?n?"bottom-start":"bottom-end":n?"bottom-end":"bottom-start";return"up"===t?r=e?n?"top-start":"top-end":n?"top-end":"top-start":"end"===t?r=e?n?"left-end":"right-end":n?"left-start":"right-start":"start"===t?r=e?n?"right-end":"left-end":n?"right-start":"left-start":"down-centered"===t?r="bottom":"up-centered"===t&&(r="top"),r}let v=a.forwardRef((e,t)=>{let{bsPrefix:n,className:r,align:v,rootCloseEvent:g,flip:y=!0,show:b,renderOnMount:x,as:w="div",popperConfig:O,variant:j,...E}=e,Z=!1,D=(0,a.useContext)(f.Z),C=(0,d.vE)(n,"dropdown-menu"),{align:N,drop:S,isRTL:P}=(0,a.useContext)(u.Z);v=v||N;let k=(0,a.useContext)(c.Z),T=[];if(v){if("object"==typeof v){let e=Object.keys(v);if(e.length){let t=e[0],n=v[t];Z="start"===n,T.push("".concat(C,"-").concat(t,"-").concat(n))}}else"end"===v&&(Z=!0)}let M=m(Z,S,P),[R,{hasShown:A,popper:I,show:L,toggle:_}]=(0,i.d)({flip:y,rootCloseEvent:g,show:b,usePopper:!D&&0===T.length,offset:[0,2],popperConfig:O,placement:M});if(R.ref=(0,s.Z)((0,p.Z)(t,"DropdownMenu"),R.ref),(0,l.Z)(()=>{L&&(null==I||I.update())},[L]),!A&&!x&&!k)return null;"string"!=typeof w&&(R.show=L,R.close=()=>null==_?void 0:_(!1),R.align=v);let F=E.style;return null!=I&&I.placement&&(F={...E.style,...R.style},E["x-placement"]=I.placement),(0,h.jsx)(w,{...E,...R,style:F,...(T.length||D)&&{"data-bs-popper":"static"},className:o()(r,C,L&&"show",Z&&"".concat(C,"-end"),j&&"".concat(C,"-").concat(j),...T)})});v.displayName="DropdownMenu",t.Z=v},6353:function(e,t,n){var r=n(1920),o=n(5851),a=n(5082),i=n(2187),l=n.n(i),s=n(5271),u=n(8312),c=n(6136),f=n(850),d=n(2676);let p=s.forwardRef((e,t)=>{let{bsPrefix:n,split:i,className:p,childBsPrefix:h,as:m=u.Z,...v}=e,g=(0,c.vE)(n,"dropdown-toggle"),y=(0,s.useContext)(o.Z);void 0!==h&&(v.bsPrefix=h);let[b]=(0,a.Jr)();return b.ref=(0,r.Z)(b.ref,(0,f.Z)(t,"DropdownToggle")),(0,d.jsx)(m,{className:l()(p,g,i&&"".concat(g,"-split"),(null==y?void 0:y.show)&&"show"),...b,...v})});p.displayName="DropdownToggle",t.Z=p},612:function(e,t,n){n.d(t,{Ed:function(){return a},UI:function(){return o},XW:function(){return i}});var r=n(5271);function o(e,t){let n=0;return r.Children.map(e,e=>r.isValidElement(e)?t(e,n++):e)}function a(e,t){let n=0;r.Children.forEach(e,e=>{r.isValidElement(e)&&t(e,n++)})}function i(e,t){return r.Children.toArray(e).some(e=>r.isValidElement(e)&&e.type===t)}},1359:function(e,t,n){var r=n(2187),o=n.n(r),a=n(5271),i=n(507),l=n.n(i),s=n(2676);let u={type:l().string,tooltip:l().bool,as:l().elementType},c=a.forwardRef((e,t)=>{let{as:n="div",className:r,type:a="valid",tooltip:i=!1,...l}=e;return(0,s.jsx)(n,{...l,ref:t,className:o()(r,"".concat(a,"-").concat(i?"tooltip":"feedback"))})});c.displayName="Feedback",c.propTypes=u,t.Z=c},9293:function(e,t,n){n.d(t,{Z:function(){return E}});var r=n(2187),o=n.n(r),a=n(507),i=n.n(a),l=n(5271),s=n(6050),u=n(1106),c=n(6136),f=n(2676);let d=l.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:a="div",...i}=e;return r=(0,c.vE)(r,"form-floating"),(0,f.jsx)(a,{ref:t,className:o()(n,r),...i})});d.displayName="FormFloating";var p=n(3590),h=n(8650),m=n(6937);let v=l.forwardRef((e,t)=>{let{bsPrefix:n,className:r,id:a,...i}=e,{controlId:s}=(0,l.useContext)(m.Z);return n=(0,c.vE)(n,"form-range"),(0,f.jsx)("input",{...i,type:"range",ref:t,className:o()(r,n),id:a||s})});v.displayName="FormRange";var g=n(2775);let y=l.forwardRef((e,t)=>{let{bsPrefix:n,className:r,as:a="small",muted:i,...l}=e;return n=(0,c.vE)(n,"form-text"),(0,f.jsx)(a,{...l,ref:t,className:o()(r,n,i&&"text-muted")})});y.displayName="FormText";let b=l.forwardRef((e,t)=>(0,f.jsx)(s.Z,{...e,ref:t,type:"switch"}));b.displayName="Switch";var x=Object.assign(b,{Input:s.Z.Input,Label:s.Z.Label});let w=l.forwardRef((e,t)=>{let{bsPrefix:n,className:r,children:a,controlId:i,label:l,...s}=e;return n=(0,c.vE)(n,"form-floating"),(0,f.jsxs)(p.Z,{ref:t,className:o()(r,n),controlId:i,...s,children:[a,(0,f.jsx)("label",{htmlFor:i,children:l})]})});w.displayName="FloatingLabel";let O={_ref:i().any,validated:i().bool,as:i().elementType},j=l.forwardRef((e,t)=>{let{className:n,validated:r,as:a="form",...i}=e;return(0,f.jsx)(a,{...i,ref:t,className:o()(n,r&&"was-validated")})});j.displayName="Form",j.propTypes=O;var E=Object.assign(j,{Group:p.Z,Control:u.Z,Floating:d,Check:s.Z,Switch:x,Label:h.Z,Text:y,Range:v,Select:g.Z,FloatingLabel:w})},6050:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(2187),o=n.n(r),a=n(5271),i=n(1359),l=n(4381),s=n(6937),u=n(6136),c=n(2676);let f=a.forwardRef((e,t)=>{let{bsPrefix:n,className:r,htmlFor:i,...l}=e,{controlId:f}=(0,a.useContext)(s.Z);return n=(0,u.vE)(n,"form-check-label"),(0,c.jsx)("label",{...l,ref:t,htmlFor:i||f,className:o()(r,n)})});f.displayName="FormCheckLabel";var d=n(612);let p=a.forwardRef((e,t)=>{let{id:n,bsPrefix:r,bsSwitchPrefix:p,inline:h=!1,reverse:m=!1,disabled:v=!1,isValid:g=!1,isInvalid:y=!1,feedbackTooltip:b=!1,feedback:x,feedbackType:w,className:O,style:j,title:E="",type:Z="checkbox",label:D,children:C,as:N="input",...S}=e;r=(0,u.vE)(r,"form-check"),p=(0,u.vE)(p,"form-switch");let{controlId:P}=(0,a.useContext)(s.Z),k=(0,a.useMemo)(()=>({controlId:n||P}),[P,n]),T=!C&&null!=D&&!1!==D||(0,d.XW)(C,f),M=(0,c.jsx)(l.Z,{...S,type:"switch"===Z?"checkbox":Z,ref:t,isValid:g,isInvalid:y,disabled:v,as:N});return(0,c.jsx)(s.Z.Provider,{value:k,children:(0,c.jsx)("div",{style:j,className:o()(O,T&&r,h&&"".concat(r,"-inline"),m&&"".concat(r,"-reverse"),"switch"===Z&&p),children:C||(0,c.jsxs)(c.Fragment,{children:[M,T&&(0,c.jsx)(f,{title:E,children:D}),x&&(0,c.jsx)(i.Z,{type:w,tooltip:b,children:x})]})})})});p.displayName="FormCheck";var h=Object.assign(p,{Input:l.Z,Label:f})},4381:function(e,t,n){var r=n(2187),o=n.n(r),a=n(5271),i=n(6937),l=n(6136),s=n(2676);let u=a.forwardRef((e,t)=>{let{id:n,bsPrefix:r,className:u,type:c="checkbox",isValid:f=!1,isInvalid:d=!1,as:p="input",...h}=e,{controlId:m}=(0,a.useContext)(i.Z);return r=(0,l.vE)(r,"form-check-input"),(0,s.jsx)(p,{...h,ref:t,type:c,id:n||m,className:o()(u,r,f&&"is-valid",d&&"is-invalid")})});u.displayName="FormCheckInput",t.Z=u},6937:function(e,t,n){let r=n(5271).createContext({});t.Z=r},1106:function(e,t,n){var r=n(2187),o=n.n(r),a=n(5271);n(1190);var i=n(1359),l=n(6937),s=n(6136),u=n(2676);let c=a.forwardRef((e,t)=>{let{bsPrefix:n,type:r,size:i,htmlSize:c,id:f,className:d,isValid:p=!1,isInvalid:h=!1,plaintext:m,readOnly:v,as:g="input",...y}=e,{controlId:b}=(0,a.useContext)(l.Z);return n=(0,s.vE)(n,"form-control"),(0,u.jsx)(g,{...y,type:r,size:c,ref:t,readOnly:v,id:f||b,className:o()(d,m?"".concat(n,"-plaintext"):n,i&&"".concat(n,"-").concat(i),"color"===r&&"".concat(n,"-color"),p&&"is-valid",h&&"is-invalid")})});c.displayName="FormControl",t.Z=Object.assign(c,{Feedback:i.Z})},3590:function(e,t,n){var r=n(5271),o=n(6937),a=n(2676);let i=r.forwardRef((e,t)=>{let{controlId:n,as:i="div",...l}=e,s=(0,r.useMemo)(()=>({controlId:n}),[n]);return(0,a.jsx)(o.Z.Provider,{value:s,children:(0,a.jsx)(i,{...l,ref:t})})});i.displayName="FormGroup",t.Z=i},8650:function(e,t,n){var r=n(2187),o=n.n(r),a=n(5271);n(1190);var i=n(2286),l=n(6937),s=n(6136),u=n(2676);let c=a.forwardRef((e,t)=>{let{as:n="label",bsPrefix:r,column:c=!1,visuallyHidden:f=!1,className:d,htmlFor:p,...h}=e,{controlId:m}=(0,a.useContext)(l.Z);r=(0,s.vE)(r,"form-label");let v="col-form-label";"string"==typeof c&&(v="".concat(v," ").concat(v,"-").concat(c));let g=o()(d,r,f&&"visually-hidden",c&&v);return(p=p||m,c)?(0,u.jsx)(i.Z,{ref:t,as:"label",className:g,htmlFor:p,...h}):(0,u.jsx)(n,{ref:t,className:g,htmlFor:p,...h})});c.displayName="FormLabel",t.Z=c},2775:function(e,t,n){var r=n(2187),o=n.n(r),a=n(5271),i=n(6136),l=n(6937),s=n(2676);let u=a.forwardRef((e,t)=>{let{bsPrefix:n,size:r,htmlSize:u,className:c,isValid:f=!1,isInvalid:d=!1,id:p,...h}=e,{controlId:m}=(0,a.useContext)(l.Z);return n=(0,i.vE)(n,"form-select"),(0,s.jsx)("select",{...h,size:u,ref:t,className:o()(c,n,r&&"".concat(n,"-").concat(r),f&&"is-valid",d&&"is-invalid"),id:p||m})});u.displayName="FormSelect",t.Z=u},2536:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(2187),o=n.n(r),a=n(5271),i=n(6136),l=n(4381),s=n(1804),u=n(2676);let c=a.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:a="span",...l}=e;return r=(0,i.vE)(r,"input-group-text"),(0,u.jsx)(a,{ref:t,className:o()(n,r),...l})});c.displayName="InputGroupText";let f=a.forwardRef((e,t)=>{let{bsPrefix:n,size:r,hasValidation:l,className:c,as:f="div",...d}=e;n=(0,i.vE)(n,"input-group");let p=(0,a.useMemo)(()=>({}),[]);return(0,u.jsx)(s.Z.Provider,{value:p,children:(0,u.jsx)(f,{ref:t,...d,className:o()(c,n,r&&"".concat(n,"-").concat(r),l&&"has-validation")})})});f.displayName="InputGroup";var d=Object.assign(f,{Text:c,Radio:e=>(0,u.jsx)(c,{children:(0,u.jsx)(l.Z,{type:"radio",...e})}),Checkbox:e=>(0,u.jsx)(c,{children:(0,u.jsx)(l.Z,{type:"checkbox",...e})})})},1804:function(e,t,n){let r=n(5271).createContext(null);r.displayName="InputGroupContext",t.Z=r},8200:function(e,t,n){n.d(t,{Z:function(){return C}});var r=n(2187),o=n.n(r);n(9215);var a=n(5271),i=n(5770),l=n(3465),s=n(5434),u=n(1920),c=n(1159),f=n(177),d=n(3778),p=n(8122),h=n(9628),m=n(2676);let v=["as","onSelect","activeKey","role","onKeyDown"],g=()=>{},y=(0,p.PB)("event-key"),b=a.forwardRef((e,t)=>{let n,r,{as:o="div",onSelect:i,activeKey:h,role:b,onKeyDown:x}=e,w=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,v),O=(0,s.Z)(),j=(0,a.useRef)(!1),E=(0,a.useContext)(f.Z),Z=(0,a.useContext)(d.Z);Z&&(b=b||"tablist",h=Z.activeKey,n=Z.getControlledId,r=Z.getControllerId);let D=(0,a.useRef)(null),C=e=>{let t=D.current;if(!t)return null;let n=(0,l.Z)(t,`[${y}]:not([aria-disabled=true])`),r=t.querySelector("[aria-selected=true]");if(!r||r!==document.activeElement)return null;let o=n.indexOf(r);if(-1===o)return null;let a=o+e;return a>=n.length&&(a=0),a<0&&(a=n.length-1),n[a]},N=(e,t)=>{null!=e&&(null==i||i(e,t),null==E||E(e,t))};(0,a.useEffect)(()=>{if(D.current&&j.current){let e=D.current.querySelector(`[${y}][aria-selected=true]`);null==e||e.focus()}j.current=!1});let S=(0,u.Z)(t,D);return(0,m.jsx)(f.Z.Provider,{value:N,children:(0,m.jsx)(c.Z.Provider,{value:{role:b,activeKey:(0,f.h)(h),getControlledId:n||g,getControllerId:r||g},children:(0,m.jsx)(o,Object.assign({},w,{onKeyDown:e=>{let t;if(null==x||x(e),Z){switch(e.key){case"ArrowLeft":case"ArrowUp":t=C(-1);break;case"ArrowRight":case"ArrowDown":t=C(1);break;default:return}t&&(e.preventDefault(),N(t.dataset[(0,p.$F)("EventKey")]||null,e),j.current=!0,O())}},ref:S,role:b}))})})});b.displayName="Nav";var x=Object.assign(b,{Item:h.Z}),w=n(6136),O=n(1481);let j=a.createContext(null);j.displayName="CardHeaderContext";var E=n(7723),Z=n(9727);let D=a.forwardRef((e,t)=>{let n,r;let{as:l="div",bsPrefix:s,variant:u,fill:c=!1,justify:f=!1,navbar:d,navbarScroll:p,className:h,activeKey:v,...g}=(0,i.Ch)(e,{activeKey:"onSelect"}),y=(0,w.vE)(s,"nav"),b=!1,E=(0,a.useContext)(O.Z),Z=(0,a.useContext)(j);return E?(n=E.bsPrefix,b=null==d||d):Z&&({cardHeaderBsPrefix:r}=Z),(0,m.jsx)(x,{as:l,ref:t,activeKey:v,className:o()(h,{[y]:!b,["".concat(n,"-nav")]:b,["".concat(n,"-nav-scroll")]:b&&p,["".concat(r,"-").concat(u)]:!!r,["".concat(y,"-").concat(u)]:!!u,["".concat(y,"-fill")]:c,["".concat(y,"-justified")]:f}),...g})});D.displayName="Nav";var C=Object.assign(D,{Item:E.Z,Link:Z.Z})},7723:function(e,t,n){var r=n(5271),o=n(2187),a=n.n(o),i=n(6136),l=n(2676);let s=r.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:o="div",...s}=e;return r=(0,i.vE)(r,"nav-item"),(0,l.jsx)(o,{ref:t,className:a()(n,r),...s})});s.displayName="NavItem",t.Z=s},9727:function(e,t,n){var r=n(2187),o=n.n(r),a=n(5271),i=n(1900),l=n(9628),s=n(177),u=n(6136),c=n(2676);let f=a.forwardRef((e,t)=>{let{bsPrefix:n,className:r,as:a=i.Z,active:f,eventKey:d,disabled:p=!1,...h}=e;n=(0,u.vE)(n,"nav-link");let[m,v]=(0,l.v)({key:(0,s.h)(d,h.href),active:f,disabled:p,...h});return(0,c.jsx)(a,{...h,...m,ref:t,disabled:p,className:o()(r,n,p&&"disabled",v.isActive&&"active")})});f.displayName="NavLink",t.Z=f},1080:function(e,t,n){n.d(t,{Z:function(){return F}});var r=n(6712),o=n(507),a=n.n(o),i=n(5271),l=n(2798);n(1190);var s=n(5770),u=n(1920),c=n(2187),f=n.n(c),d=n(967),p=n(7311),h=n(7200),m=n(2685),v=n(8342),g=n(994),y=n(5116),b=n(7128);let x=()=>{};var w=function(e,t,{disabled:n,clickTrigger:r}={}){let o=t||x;(0,y.Z)(e,o,{disabled:n,clickTrigger:r});let a=(0,g.Z)(e=>{(0,b.k)(e)&&o(e)});(0,i.useEffect)(()=>{if(n||null==e)return;let t=(0,v.Z)((0,y.f)(e)),r=(t.defaultView||window).event,o=(0,m.Z)(t,"keyup",e=>{if(e===r){r=void 0;return}a(e)});return()=>{o()}},[e,n,a])},O=n(8633),j=n(5882),E=n(9458);let Z=i.forwardRef((e,t)=>{let{flip:n,offset:r,placement:o,containerPadding:a,popperConfig:l={},transition:s,runTransition:c}=e,[f,m]=(0,p.Z)(),[v,g]=(0,p.Z)(),y=(0,u.Z)(m,t),b=(0,O.Z)(e.container),x=(0,O.Z)(e.target),[Z,D]=(0,i.useState)(!e.show),C=(0,h.Z)(x,f,(0,j.ZP)({placement:o,enableEvents:!!e.show,containerPadding:a||5,flip:n,offset:r,arrowElement:v,popperConfig:l}));e.show&&Z&&D(!1);let N=e.show||!Z;if(w(f,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!N)return null;let{onExit:S,onExiting:P,onEnter:k,onEntering:T,onEntered:M}=e,R=e.children(Object.assign({},C.attributes.popper,{style:C.styles.popper,ref:y}),{popper:C,placement:o,show:!!e.show,arrowProps:Object.assign({},C.attributes.arrow,{style:C.styles.arrow,ref:g})});return R=(0,E.sD)(s,c,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:R,onExit:S,onExiting:P,onExited:(...t)=>{D(!0),e.onExited&&e.onExited(...t)},onEnter:k,onEntering:T,onEntered:M}),b?d.createPortal(R,b):null});Z.displayName="Overlay";var D=n(9125),C=n(9681),N=n(6136),S=n(368),P=n(2044),k=n(861),T=n(2676);let M=i.forwardRef((e,t)=>{let{bsPrefix:n,placement:r="right",className:o,style:a,children:i,arrowProps:l,hasDoneInitialMeasure:s,popper:u,show:c,...d}=e;n=(0,N.vE)(n,"tooltip");let p=(0,N.SC)(),[h]=(null==r?void 0:r.split("-"))||[],m=(0,P.z)(h,p),v=a;return c&&!s&&(v={...a,...(0,k.Z)(null==u?void 0:u.strategy)}),(0,T.jsxs)("div",{ref:t,style:v,role:"tooltip","x-placement":h,className:f()(o,n,"bs-tooltip-".concat(m)),...d,children:[(0,T.jsx)("div",{className:"tooltip-arrow",...l}),(0,T.jsx)("div",{className:"".concat(n,"-inner"),children:i})]})});M.displayName="Tooltip";var R=Object.assign(M,{TOOLTIP_OFFSET:[0,6]}),A=n(291),I=n(3400);let L=i.forwardRef((e,t)=>{let{children:n,transition:r=A.Z,popperConfig:o={},rootClose:a=!1,placement:l="top",show:s=!1,...c}=e,d=(0,i.useRef)({}),[p,h]=(0,i.useState)(null),[m,v]=function(e){let t=(0,i.useRef)(null),n=(0,N.vE)(void 0,"popover"),r=(0,N.vE)(void 0,"tooltip"),o=(0,i.useMemo)(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if((0,C.Z)(t.current,n))return S.Z.POPPER_OFFSET;if((0,C.Z)(t.current,r))return R.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[o]]}(c.offset),y=(0,u.Z)(t,m),b=!0===r?A.Z:r||void 0,x=(0,g.Z)(e=>{h(e),null==o||null==o.onFirstUpdate||o.onFirstUpdate(e)});return(0,D.Z)(()=>{p&&c.target&&(null==d.current.scheduleUpdate||d.current.scheduleUpdate())},[p,c.target]),(0,i.useEffect)(()=>{s||h(null)},[s]),(0,T.jsx)(Z,{...c,ref:y,popperConfig:{...o,modifiers:v.concat(o.modifiers||[]),onFirstUpdate:x},transition:b,rootClose:a,placement:l,show:s,children:(e,t)=>{var a;let{arrowProps:l,popper:s,show:u}=t;!function(e,t){let{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=e=>n((0,I.Z)(e))),t.ref=r.__wrapped||(r.__wrapped=e=>r((0,I.Z)(e)))}(e,l);let c=null==s?void 0:s.placement,h=Object.assign(d.current,{state:null==s?void 0:s.state,scheduleUpdate:null==s?void 0:s.update,placement:c,outOfBoundaries:(null==s||null==(a=s.state)||null==(a=a.modifiersData.hide)?void 0:a.isReferenceHidden)||!1,strategy:o.strategy}),m=!!p;return"function"==typeof n?n({...e,placement:c,show:u,...!r&&u&&{className:"show"},popper:h,arrowProps:l,hasDoneInitialMeasure:m}):i.cloneElement(n,{...e,placement:c,arrowProps:l,popper:h,hasDoneInitialMeasure:m,className:f()(n.props.className,!r&&u&&"show"),style:{...n.props.style,...e.style}})}})});function _(e,t,n){let[o]=t,a=o.currentTarget,i=o.relatedTarget||o.nativeEvent[n];i&&i===a||(0,r.Z)(a,i)||e(...t)}L.displayName="Overlay",a().oneOf(["click","hover","focus"]);var F=e=>{let{trigger:t=["hover","focus"],overlay:n,children:r,popperConfig:o={},show:a,defaultShow:c=!1,onToggle:f,delay:d,placement:p,flip:h=p&&-1!==p.indexOf("auto"),...m}=e,v=(0,i.useRef)(null),g=(0,u.Z)(v,r.ref),y=(0,l.Z)(),b=(0,i.useRef)(""),[x,w]=(0,s.$c)(a,c,f),O=d&&"object"==typeof d?d:{show:d,hide:d},{onFocus:j,onBlur:E,onClick:Z}="function"!=typeof r?i.Children.only(r).props:{},D=(0,i.useCallback)(()=>{if(y.clear(),b.current="show",!O.show){w(!0);return}y.set(()=>{"show"===b.current&&w(!0)},O.show)},[O.show,w,y]),C=(0,i.useCallback)(()=>{if(y.clear(),b.current="hide",!O.hide){w(!1);return}y.set(()=>{"hide"===b.current&&w(!1)},O.hide)},[O.hide,w,y]),N=(0,i.useCallback)(function(){for(var e=arguments.length,t=Array(e),n=0;n{g((0,I.Z)(e))}};return -1!==R.indexOf("click")&&(A.onClick=P),-1!==R.indexOf("focus")&&(A.onFocus=N,A.onBlur=S),-1!==R.indexOf("hover")&&(A.onMouseOver=k,A.onMouseOut=M),(0,T.jsxs)(T.Fragment,{children:["function"==typeof r?r(A):(0,i.cloneElement)(r,A),(0,T.jsx)(L,{...m,show:x,onHide:C,flip:h,placement:p,popperConfig:o,target:v.current,children:n})]})}},368:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(2187),o=n.n(r),a=n(5271),i=n(6136),l=n(2676);let s=a.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:a="div",...s}=e;return r=(0,i.vE)(r,"popover-header"),(0,l.jsx)(a,{ref:t,className:o()(n,r),...s})});s.displayName="PopoverHeader";let u=a.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:a="div",...s}=e;return r=(0,i.vE)(r,"popover-body"),(0,l.jsx)(a,{ref:t,className:o()(n,r),...s})});u.displayName="PopoverBody";var c=n(2044),f=n(861),d=Object.assign(a.forwardRef((e,t)=>{let{bsPrefix:n,placement:r="right",className:a,style:s,children:d,body:p,arrowProps:h,hasDoneInitialMeasure:m,popper:v,show:g,...y}=e,b=(0,i.vE)(n,"popover"),x=(0,i.SC)(),[w]=(null==r?void 0:r.split("-"))||[],O=(0,c.z)(w,x),j=s;return g&&!m&&(j={...s,...(0,f.Z)(null==v?void 0:v.strategy)}),(0,l.jsxs)("div",{ref:t,role:"tooltip",style:j,"x-placement":w,className:o()(a,b,w&&"bs-popover-".concat(O)),...y,children:[(0,l.jsx)("div",{className:"popover-arrow",...h}),p?(0,l.jsx)(u,{children:d}):d]})}),{Header:s,Body:u,POPPER_OFFSET:[0,8]})},1358:function(e,t,n){var r=n(2187),o=n.n(r),a=n(5271),i=n(6136),l=n(2676);let s=a.forwardRef((e,t)=>{let{bsPrefix:n,className:r,as:a="div",...s}=e,u=(0,i.vE)(n,"row"),c=(0,i.pi)(),f=(0,i.zG)(),d="".concat(u,"-cols"),p=[];return c.forEach(e=>{let t;let n=s[e];delete s[e],null!=n&&"object"==typeof n?{cols:t}=n:t=n,null!=t&&p.push("".concat(d).concat(e!==f?"-".concat(e):"","-").concat(t))}),(0,l.jsx)(a,{ref:t,...s,className:o()(r,u,...p)})});s.displayName="Row",t.Z=s},8736:function(e,t,n){var r=n(2187),o=n.n(r),a=n(5271),i=n(6136),l=n(2676);let s=a.forwardRef((e,t)=>{let{bsPrefix:n,variant:r,animation:a="border",size:s,as:u="div",className:c,...f}=e;n=(0,i.vE)(n,"spinner");let d="".concat(n,"-").concat(a);return(0,l.jsx)(u,{ref:t,...f,className:o()(c,d,s&&"".concat(d,"-").concat(s),r&&"text-".concat(r))})});s.displayName="Spinner",t.Z=s},8854:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(507),o=n.n(r);n(5271);var a=n(3809),i=n(940),l=n(2676);let s=e=>{let{transition:t,...n}=e;return(0,l.jsx)(a.Z,{...n,transition:(0,i.Z)(t)})};s.displayName="TabContainer";var u=n(1449),c=n(5886);let f={eventKey:o().oneOfType([o().string,o().number]),title:o().node.isRequired,disabled:o().bool,tabClassName:o().string,tabAttrs:o().object},d=()=>{throw Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")};d.propTypes=f;var p=Object.assign(d,{Container:s,Content:u.Z,Pane:c.Z})},1449:function(e,t,n){var r=n(5271),o=n(2187),a=n.n(o),i=n(6136),l=n(2676);let s=r.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:o="div",...s}=e;return r=(0,i.vE)(r,"tab-content"),(0,l.jsx)(o,{ref:t,className:a()(n,r),...s})});s.displayName="TabContent",t.Z=s},5886:function(e,t,n){var r=n(2187),o=n.n(r),a=n(5271),i=n(177),l=n(3778),s=n(6162),u=n(6136),c=n(291),f=n(940),d=n(2676);let p=a.forwardRef((e,t)=>{let{bsPrefix:n,transition:r,...a}=e,[{className:p,as:h="div",...m},{isActive:v,onEnter:g,onEntering:y,onEntered:b,onExit:x,onExiting:w,onExited:O,mountOnEnter:j,unmountOnExit:E,transition:Z=c.Z}]=(0,s.W)({...a,transition:(0,f.Z)(r)}),D=(0,u.vE)(n,"tab-pane");return(0,d.jsx)(l.Z.Provider,{value:null,children:(0,d.jsx)(i.Z.Provider,{value:null,children:(0,d.jsx)(Z,{in:v,onEnter:g,onEntering:y,onEntered:b,onExit:x,onExiting:w,onExited:O,mountOnEnter:j,unmountOnExit:E,children:(0,d.jsx)(h,{...m,ref:t,className:o()(p,D,v&&"active")})})})})});p.displayName="TabPane",t.Z=p},9051:function(e,t,n){n(5271);var r=n(5770),o=n(3809),a=n(8200),i=n(9727),l=n(7723),s=n(1449),u=n(5886),c=n(612),f=n(940),d=n(2676);function p(e){let{title:t,eventKey:n,disabled:r,tabClassName:o,tabAttrs:a,id:s}=e.props;return null==t?null:(0,d.jsx)(l.Z,{as:"li",role:"presentation",children:(0,d.jsx)(i.Z,{as:"button",type:"button",eventKey:n,disabled:r,id:s,className:o,...a,children:t})})}let h=e=>{let t;let{id:n,onSelect:i,transition:l,mountOnEnter:h=!1,unmountOnExit:m=!1,variant:v="tabs",children:g,activeKey:y=((0,c.Ed)(g,e=>{null==t&&(t=e.props.eventKey)}),t),...b}=(0,r.Ch)(e,{activeKey:"onSelect"});return(0,d.jsxs)(o.Z,{id:n,activeKey:y,onSelect:i,transition:(0,f.Z)(l),mountOnEnter:h,unmountOnExit:m,children:[(0,d.jsx)(a.Z,{id:n,...b,role:"tablist",as:"ul",variant:v,children:(0,c.UI)(g,p)}),(0,d.jsx)(s.Z,{children:(0,c.UI)(g,e=>{let t={...e.props};return delete t.title,delete t.disabled,delete t.tabClassName,delete t.tabAttrs,(0,d.jsx)(u.Z,{...t})})})]})};h.displayName="Tabs",t.Z=h},2542:function(e,t,n){n.d(t,{Z:function(){return b}});var r=n(5271),o=n(2187),a=n.n(o),i=n(2798),l=n(9800),s=n(291),u=n(2676);let c={[l.d0]:"showing",[l.Ix]:"showing show"},f=r.forwardRef((e,t)=>(0,u.jsx)(s.Z,{...e,ref:t,transitionClasses:c}));f.displayName="ToastFade";var d=n(994),p=n(6136),h=n(8463);let m=r.createContext({onClose(){}}),v=r.forwardRef((e,t)=>{let{bsPrefix:n,closeLabel:o="Close",closeVariant:i,closeButton:l=!0,className:s,children:c,...f}=e;n=(0,p.vE)(n,"toast-header");let v=(0,r.useContext)(m),g=(0,d.Z)(e=>{null==v||null==v.onClose||v.onClose(e)});return(0,u.jsxs)("div",{ref:t,...f,className:a()(n,s),children:[c,l&&(0,u.jsx)(h.Z,{"aria-label":o,variant:i,onClick:g,"data-dismiss":"toast"})]})});v.displayName="ToastHeader";let g=r.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:o="div",...i}=e;return r=(0,p.vE)(r,"toast-body"),(0,u.jsx)(o,{ref:t,className:a()(n,r),...i})});g.displayName="ToastBody";let y=r.forwardRef((e,t)=>{let{bsPrefix:n,className:o,transition:l=f,show:s=!0,animation:c=!0,delay:d=5e3,autohide:h=!1,onClose:v,onEntered:g,onExit:y,onExiting:b,onEnter:x,onEntering:w,onExited:O,bg:j,...E}=e;n=(0,p.vE)(n,"toast");let Z=(0,r.useRef)(d),D=(0,r.useRef)(v);(0,r.useEffect)(()=>{Z.current=d,D.current=v},[d,v]);let C=(0,i.Z)(),N=!!(h&&s),S=(0,r.useCallback)(()=>{N&&(null==D.current||D.current())},[N]);(0,r.useEffect)(()=>{C.set(S,Z.current)},[C,S]);let P=(0,r.useMemo)(()=>({onClose:v}),[v]),k=!!(l&&c),T=(0,u.jsx)("div",{...E,ref:t,className:a()(n,o,j&&"bg-".concat(j),!k&&(s?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return(0,u.jsx)(m.Provider,{value:P,children:k&&l?(0,u.jsx)(l,{in:s,onEnter:x,onEntering:w,onEntered:g,onExit:y,onExiting:b,onExited:O,unmountOnExit:!0,children:T}):T})});y.displayName="Toast";var b=Object.assign(y,{Body:g,Header:v})},861:function(e,t,n){n.d(t,{Z:function(){return r}});function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"absolute";return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}},940:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(3636),o=n(291);function a(e){return"boolean"==typeof e?e?o.Z:r.Z:e}},2044:function(e,t,n){function r(e,t){let n=e;return"left"===e?n=t?"end":"start":"right"===e&&(n=t?"start":"end"),n}n.d(t,{z:function(){return r}}),n(5271)},850:function(e,t,n){function r(e,t){return e}n.d(t,{Z:function(){return r}}),n(3670),n(5271),n(1920)},9215:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n>",s=i||r;if(null==n[r])return t?Error("Required "+a+" `"+s+"` was not specified in `"+l+"`."):null;for(var u=arguments.length,c=Array(u>6?u-6:0),f=6;f{if((0,f.default)("Draggable: onDragStart: %j",t),!1===this.props.onStart(e,(0,s.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})}),m(this,"onDrag",(e,t)=>{if(!this.state.dragging)return!1;(0,f.default)("Draggable: onDrag: %j",t);let n=(0,s.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){let{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[o,a]=(0,s.getBoundPosition)(this,r.x,r.y);r.x=o,r.y=a,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)}),m(this,"onDragStop",(e,t)=>{if(!this.state.dragging||!1===this.props.onStop(e,(0,s.createDraggableData)(this,t)))return!1;(0,f.default)("Draggable: onDragStop: %j",t);let n={dragging:!1,slackX:0,slackY:0};if(this.props.position){let{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)}),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode() instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:a.default.findDOMNode(this)}render(){let{axis:e,bounds:t,children:n,defaultPosition:o,defaultClassName:a,defaultClassNameDragging:u,defaultClassNameDragged:f,position:d,positionOffset:p,scale:m,...v}=this.props,g={},y=null,b=!d||this.state.dragging,x=d||o,w={x:(0,s.canDragX)(this)&&b?this.state.x:x.x,y:(0,s.canDragY)(this)&&b?this.state.y:x.y};this.state.isElementSVG?y=(0,l.createSVGTransform)(w,p):g=(0,l.createCSSTransform)(w,p);let O=(0,i.default)(n.props.className||"",a,{[u]:this.state.dragging,[f]:this.state.dragged});return r.createElement(c.default,h({},v,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),r.cloneElement(r.Children.only(n),{className:O,style:{...n.props.style,...g},transform:y}))}}t.default=v,m(v,"displayName","Draggable"),m(v,"propTypes",{...c.default.propTypes,axis:o.default.oneOf(["both","x","y","none"]),bounds:o.default.oneOfType([o.default.shape({left:o.default.number,right:o.default.number,top:o.default.number,bottom:o.default.number}),o.default.string,o.default.oneOf([!1])]),defaultClassName:o.default.string,defaultClassNameDragging:o.default.string,defaultClassNameDragged:o.default.string,defaultPosition:o.default.shape({x:o.default.number,y:o.default.number}),positionOffset:o.default.shape({x:o.default.oneOfType([o.default.number,o.default.string]),y:o.default.oneOfType([o.default.number,o.default.string])}),position:o.default.shape({x:o.default.number,y:o.default.number}),className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),m(v,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})},7322:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(void 0);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(5271)),o=c(n(507)),a=c(n(967)),i=n(2153),l=n(2356),s=n(9035),u=c(n(3544));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function d(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let p={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},h=p.mouse;class m extends r.Component{constructor(){super(...arguments),d(this,"dragging",!1),d(this,"lastX",NaN),d(this,"lastY",NaN),d(this,"touchIdentifier",null),d(this,"mounted",!1),d(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw Error(" not mounted on DragStart!");let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,i.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,i.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"===e.type&&e.preventDefault();let r=(0,i.getTouchIdentifier)(e);this.touchIdentifier=r;let o=(0,l.getControlPosition)(e,r,this);if(null==o)return;let{x:a,y:s}=o,c=(0,l.createCoreData)(this,a,s);(0,u.default)("DraggableCore: handleDragStart: %j",c),(0,u.default)("calling",this.props.onStart),!1!==this.props.onStart(e,c)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,i.addUserSelectStyles)(n),this.dragging=!0,this.lastX=a,this.lastY=s,(0,i.addEvent)(n,h.move,this.handleDrag),(0,i.addEvent)(n,h.stop,this.handleDragStop))}),d(this,"handleDrag",e=>{let t=(0,l.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,l.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}let o=(0,l.createCoreData)(this,n,r);if((0,u.default)("DraggableCore: handleDrag: %j",o),!1===this.props.onDrag(e,o)||!1===this.mounted){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(t){let e=document.createEvent("MouseEvents");e.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(e)}return}this.lastX=n,this.lastY=r}),d(this,"handleDragStop",e=>{if(!this.dragging)return;let t=(0,l.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=(0,l.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}let o=(0,l.createCoreData)(this,n,r);if(!1===this.props.onStop(e,o)||!1===this.mounted)return!1;let a=this.findDOMNode();a&&this.props.enableUserSelectHack&&(0,i.removeUserSelectStyles)(a.ownerDocument),(0,u.default)("DraggableCore: handleDragStop: %j",o),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&((0,u.default)("DraggableCore: Removing handlers"),(0,i.removeEvent)(a.ownerDocument,h.move,this.handleDrag),(0,i.removeEvent)(a.ownerDocument,h.stop,this.handleDragStop))}),d(this,"onMouseDown",e=>(h=p.mouse,this.handleDragStart(e))),d(this,"onMouseUp",e=>(h=p.mouse,this.handleDragStop(e))),d(this,"onTouchStart",e=>(h=p.touch,this.handleDragStart(e))),d(this,"onTouchEnd",e=>(h=p.touch,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&(0,i.addEvent)(e,p.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;(0,i.removeEvent)(t,p.mouse.move,this.handleDrag),(0,i.removeEvent)(t,p.touch.move,this.handleDrag),(0,i.removeEvent)(t,p.mouse.stop,this.handleDragStop),(0,i.removeEvent)(t,p.touch.stop,this.handleDragStop),(0,i.removeEvent)(e,p.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,i.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current:a.default.findDOMNode(this)}render(){return r.cloneElement(r.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}t.default=m,d(m,"displayName","DraggableCore"),d(m,"propTypes",{allowAnyClick:o.default.bool,children:o.default.node.isRequired,disabled:o.default.bool,enableUserSelectHack:o.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw Error("Draggable's offsetParent must be a DOM Node.")},grid:o.default.arrayOf(o.default.number),handle:o.default.string,cancel:o.default.string,nodeRef:o.default.object,onStart:o.default.func,onDrag:o.default.func,onStop:o.default.func,onMouseDown:o.default.func,scale:o.default.number,className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),d(m,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},4569:function(e,t,n){let{default:r,DraggableCore:o}=n(9661);e.exports=r,e.exports.default=r,e.exports.DraggableCore=o},2153:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.addClassName=u,t.addEvent=function(e,t,n,r){if(!e)return;let o={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},t.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t)),e.body&&u(e.body,"react-draggable-transparent-selection")},t.createCSSTransform=function(e,t){let n=s(e,t,"px");return{[(0,o.browserPrefixToKey)("transform",o.default)]:n}},t.createSVGTransform=function(e,t){return s(e,t,"")},t.getTouch=function(e,t){return e.targetTouches&&(0,r.findInArray)(e.targetTouches,e=>t===e.identifier)||e.changedTouches&&(0,r.findInArray)(e.changedTouches,e=>t===e.identifier)},t.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},t.getTranslation=s,t.innerHeight=function(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,r.int)(n.paddingTop),t-=(0,r.int)(n.paddingBottom)},t.innerWidth=function(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,r.int)(n.paddingLeft),t-=(0,r.int)(n.paddingRight)},t.matchesSelector=l,t.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(l(r,t))return!0;if(r===n)break;r=r.parentNode}while(r);return!1},t.offsetXYFromParent=function(e,t,n){let r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-r.left)/n,y:(e.clientY+t.scrollTop-r.top)/n}},t.outerHeight=function(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+((0,r.int)(n.borderTopWidth)+(0,r.int)(n.borderBottomWidth))},t.outerWidth=function(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+((0,r.int)(n.borderLeftWidth)+(0,r.int)(n.borderRightWidth))},t.removeClassName=c,t.removeEvent=function(e,t,n,r){if(!e)return;let o={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},t.removeUserSelectStyles=function(e){if(e)try{if(e.body&&c(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{let t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var r=n(9035),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(void 0);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(8596));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}let i="";function l(e,t){return i||(i=(0,r.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(t){return(0,r.isFunction)(e[t])})),!!(0,r.isFunction)(e[i])&&e[i](t)}function s(e,t,n){let{x:r,y:o}=e,a="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){let e="".concat("string"==typeof t.x?t.x:t.x+n),r="".concat("string"==typeof t.y?t.y:t.y+n);a="translate(".concat(e,", ").concat(r,")")+a}return a}function u(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function c(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}},8596:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.browserPrefixToKey=o,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0,t.getPrefix=r;let n=["Moz","Webkit","O","ms"];function r(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";let r=null===(e=window.document)||void 0===e||null===(e=e.documentElement)||void 0===e?void 0:e.style;if(!r||t in r)return"";for(let e=0;e: Unmounted during event!");return t}},9035:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function(e,t,n){if(e[t])return Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},t.findInArray=function(e,t){for(let n=0,r=e.length;n{let[t,...r]=e,o=null==n?void 0:n(t,...r);return i(t),o},[n])]}},1190:function(e){e.exports=function(){}},336:function(e,t,n){n.d(t,{gP:function(){return u}});var r=n(5271);let o={prefix:String(Math.round(1e10*Math.random())),current:0},a=r.createContext(o),i=r.createContext(!1),l=!!("undefined"!=typeof window&&window.document&&window.document.createElement),s=new WeakMap,u="function"==typeof r.useId?function(e){let t=r.useId(),[n]=(0,r.useState)("function"==typeof r.useSyncExternalStore?r.useSyncExternalStore(d,c,f):(0,r.useContext)(i)),a=n?"react-aria":`react-aria${o.prefix}`;return e||`${a}-${t}`}:function(e){let t=(0,r.useContext)(a);t!==o||l||console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let n=function(e=!1){let t=(0,r.useContext)(a),n=(0,r.useRef)(null);if(null===n.current&&!e){var o,i;let e=null===(i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===i?void 0:null===(o=i.ReactCurrentOwner)||void 0===o?void 0:o.current;if(e){let n=s.get(e);null==n?s.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,s.delete(e))}n.current=++t.current}return n.current}(!!e),i=`react-aria${t.prefix}`;return e||`${i}-${n}`};function c(){return!1}function f(){return!0}function d(e){return()=>{}}}}]); \ No newline at end of file diff --git a/dist/_next/static/chunks/a9b156ee-ea1fe3ff0dd2e9c3.js b/dist/_next/static/chunks/a9b156ee-ea1fe3ff0dd2e9c3.js new file mode 100644 index 00000000..7dedcdb5 --- /dev/null +++ b/dist/_next/static/chunks/a9b156ee-ea1fe3ff0dd2e9c3.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[834],{4974:function(e,t,i){i.d(t,{Z:function(){return eC}});var n=i(7716);class s{constructor(){if(!RTCRtpSender.prototype.createEncodedStreams)throw Error("E2EE is not supported in this browser.");this.worker=null,this.onWorkerDisconnect=null}startWorker(){let e=atob("InVzZSBzdHJpY3QiOwpjb25zdCBjb25uZWN0aW9uSWRMZW5ndGggPSAyNjsKZnVuY3Rpb24gYnl0ZUNvdW50KG4pIHsKICAgIGlmIChuID09PSAwKSB7CiAgICAgICAgcmV0dXJuIDE7CiAgICB9CiAgICAvLyBsb2cyNTYoeCkgPSBsb2coeCkgLyBsb2coMjU2KQogICAgcmV0dXJuIE1hdGguZmxvb3IoTWF0aC5sb2cobikgLyBNYXRoLmxvZygyICoqIDgpICsgMSk7Cn0KZnVuY3Rpb24gYXJyYXlCdWZmZXJUb051bWJlcihhcnJheUJ1ZmZlcikgewogICAgLy8gMzJiaXQg44G+44Gn44KS5oOz5a6aIChCaWdJbnQg44G444Gu5pu444GN5o+b44GI5pmC44Gr6KaB5L+u5q2jKQogICAgY29uc3QgbmV3QXJyYXlCdWZmZXIgPSBuZXcgQXJyYXlCdWZmZXIoVWludDMyQXJyYXkuQllURVNfUEVSX0VMRU1FTlQpOwogICAgY29uc3QgbmV3RGF0YVZpZXcgPSBuZXcgRGF0YVZpZXcobmV3QXJyYXlCdWZmZXIpOwogICAgY29uc3QgZGF0YVZpZXcgPSBuZXcgRGF0YVZpZXcoYXJyYXlCdWZmZXIpOwogICAgY29uc3QgcGFkZGluZ0xlbmd0aCA9IFVpbnQzMkFycmF5LkJZVEVTX1BFUl9FTEVNRU5UIC0gZGF0YVZpZXcuYnl0ZUxlbmd0aDsKICAgIGZvciAobGV0IGkgPSAwOyBpIDwgcGFkZGluZ0xlbmd0aDsgaSArPSAxKSB7CiAgICAgICAgbmV3RGF0YVZpZXcuc2V0VWludDgoaSwgMCk7CiAgICB9CiAgICBmb3IgKGxldCBpID0gcGFkZGluZ0xlbmd0aCwgaiA9IDA7IGkgPCBVaW50MzJBcnJheS5CWVRFU19QRVJfRUxFTUVOVDsgaSArPSAxLCBqICs9IDEpIHsKICAgICAgICBuZXdEYXRhVmlldy5zZXRVaW50OChpLCBkYXRhVmlldy5nZXRVaW50OChqKSk7CiAgICB9CiAgICByZXR1cm4gbmV3RGF0YVZpZXcuZ2V0VWludDMyKDApOwp9CmZ1bmN0aW9uIGVuY29kZVNGcmFtZUhlYWRlcihzLCBjb3VudCwga2V5SWQpIHsKICAgIC8vICAwIDEgMiAzIDQgNSA2IDcKICAgIC8vICstKy0rLSstKy0rLSstKy0rLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tKy0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSsKICAgIC8vIHxTfExFTiAgfDF8S0xFTiB8ICAgS0lELi4uIChsZW5ndGg9S0xFTikgICAgfCAgICBDVFIuLi4gKGxlbmd0aD1MRU4pICAgIHwKICAgIC8vICstKy0rLSstKy0rLSstKy0rLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tKy0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSsKICAgIC8vIFM6IDEgYml0CiAgICAvLyBMRU46IDMgYml0CiAgICAvLyBYOiAxIGJpdAogICAgLy8gS0xFTjogMyBiaXQKICAgIC8vIEtJRDogS0xFTiBieXRlCiAgICAvLyBDVFI6IExFTiBieXRlCiAgICAvLyBUT0RPOiBrZXlJZCAoS0lEKSDjgYwgTnVtYmVyLk1BWF9TQUZFX0lOVEVHRVIsIDcgYnl0ZSDjgpLotoXjgYjjgabjgYTjgZ/loLTlkIjjga/jgqjjg6njg7zjgYvkvovlpJYKICAgIC8vIFRPRE86IGNvdW50IChDVFIpIOOBjCBOdW1iZXIuTUFYX1NBRkVfSU5URUdFUiwgNyBieXRlIOOCkui2heOBiOOBpuOBhOOBn+WgtOWQiOOBr+OCqOODqeODvOOBi+S+i+WklgogICAgaWYgKG1heEtleUlkIDwga2V5SWQgfHwgbWF4Q291bnQgPCBjb3VudCkgewogICAgICAgIHRocm93IG5ldyBFcnJvcignRVhDRUVERUQtTUFYSU1VTS1CUk9BRENBU1RJTkctVElNRScpOwogICAgfQogICAgY29uc3Qga2xlbiA9IGJ5dGVDb3VudChrZXlJZCk7CiAgICBjb25zdCBsZW4gPSBieXRlQ291bnQoY291bnQpOwogICAgY29uc3QgaGVhZGVyQnVmZmVyID0gbmV3IEFycmF5QnVmZmVyKDEgKyBrbGVuICsgbGVuKTsKICAgIGNvbnN0IGhlYWRlckRhdGFWaWV3ID0gbmV3IERhdGFWaWV3KGhlYWRlckJ1ZmZlcik7CiAgICAvLyBTLCBMRU4sIDEsIEtMRU4g44GnIDEgYnl0ZQogICAgaGVhZGVyRGF0YVZpZXcuc2V0VWludDgoMCwgKHMgPDwgNykgKyAobGVuIDw8IDQpICsgKDEgPDwgMykgKyBrbGVuKTsKICAgIGNvbnN0IGhlYWRlclVpbnQ4QXJyYXkgPSBuZXcgVWludDhBcnJheShoZWFkZXJCdWZmZXIpOwogICAgY29uc3Qga2V5SWRCdWZmZXIgPSBuZXcgQXJyYXlCdWZmZXIoVWludDMyQXJyYXkuQllURVNfUEVSX0VMRU1FTlQpOwogICAgY29uc3Qga2V5SWREYXRhVmlldyA9IG5ldyBEYXRhVmlldyhrZXlJZEJ1ZmZlcik7CiAgICBrZXlJZERhdGFWaWV3LnNldFVpbnQzMigwLCBrZXlJZCk7CiAgICBjb25zdCBrZXlJZFVpbnQ4QXJyYXkgPSBuZXcgVWludDhBcnJheShrZXlJZEJ1ZmZlcik7CiAgICBoZWFkZXJVaW50OEFycmF5LnNldChrZXlJZFVpbnQ4QXJyYXkuc3ViYXJyYXkoVWludDMyQXJyYXkuQllURVNfUEVSX0VMRU1FTlQgLSBrbGVuKSwgMSk7CiAgICBjb25zdCBjb3VudEJ1ZmZlciA9IG5ldyBBcnJheUJ1ZmZlcihVaW50MzJBcnJheS5CWVRFU19QRVJfRUxFTUVOVCk7CiAgICBjb25zdCBjb3VudERhdGFWaWV3ID0gbmV3IERhdGFWaWV3KGNvdW50QnVmZmVyKTsKICAgIGNvdW50RGF0YVZpZXcuc2V0VWludDMyKDAsIGNvdW50KTsKICAgIGNvbnN0IGNvdW50VWludDhBcnJheSA9IG5ldyBVaW50OEFycmF5KGNvdW50QnVmZmVyKTsKICAgIGhlYWRlclVpbnQ4QXJyYXkuc2V0KGNvdW50VWludDhBcnJheS5zdWJhcnJheShVaW50MzJBcnJheS5CWVRFU19QRVJfRUxFTUVOVCAtIGxlbiksIGtsZW4gKyAxKTsKICAgIHJldHVybiBoZWFkZXJVaW50OEFycmF5Owp9CmZ1bmN0aW9uIHNwbGl0SGVhZGVyKHNmcmFtZSkgewogICAgY29uc3Qgc2ZyYW1lRGF0YVZpZXcgPSBuZXcgRGF0YVZpZXcoc2ZyYW1lKTsKICAgIGNvbnN0IGhlYWRlciA9IHNmcmFtZURhdGFWaWV3LmdldFVpbnQ4KDApOwogICAgY29uc3QgbGVuID0gKGhlYWRlciAmIDB4NzApID4+IDQ7CiAgICBjb25zdCBrbGVuID0gaGVhZGVyICYgMHgwNzsKICAgIGNvbnN0IHNmcmFtZUhlYWRlckxlbmd0aCA9IDEgKyBrbGVuICsgbGVuOwogICAgY29uc3Qgc2ZyYW1lSGVhZGVyID0gc2ZyYW1lLnNsaWNlKDAsIHNmcmFtZUhlYWRlckxlbmd0aCk7CiAgICBpZiAoc2ZyYW1lSGVhZGVyLmJ5dGVMZW5ndGggPCBzZnJhbWVIZWFkZXJMZW5ndGgpIHsKICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ1VORVhQRUNURUQtU0ZSQU1FLUxFTkdUSCcpOwogICAgfQogICAgY29uc3QgY29ubmVjdGlvbklkID0gc2ZyYW1lLnNsaWNlKHNmcmFtZUhlYWRlckxlbmd0aCwgc2ZyYW1lSGVhZGVyTGVuZ3RoICsgY29ubmVjdGlvbklkTGVuZ3RoKTsKICAgIGNvbnN0IGVuY3J5cHRlZEZyYW1lID0gc2ZyYW1lLnNsaWNlKHNmcmFtZUhlYWRlckxlbmd0aCArIGNvbm5lY3Rpb25JZExlbmd0aCwgc2ZyYW1lLmJ5dGVMZW5ndGgpOwogICAgcmV0dXJuIFtzZnJhbWVIZWFkZXIsIGNvbm5lY3Rpb25JZCwgZW5jcnlwdGVkRnJhbWVdOwp9CmZ1bmN0aW9uIHBhcnNlU0ZyYW1lSGVhZGVyKHNmcmFtZUhlYWRlcikgewogICAgY29uc3Qgc2ZyYW1lSGVhZGVyRGF0YVZpZXcgPSBuZXcgRGF0YVZpZXcoc2ZyYW1lSGVhZGVyKTsKICAgIGNvbnN0IGhlYWRlciA9IHNmcmFtZUhlYWRlckRhdGFWaWV3LmdldFVpbnQ4KDApOwogICAgY29uc3QgcyA9IChoZWFkZXIgJiAweDgwKSA+PiA3OwogICAgY29uc3QgbGVuID0gKGhlYWRlciAmIDB4NzApID4+IDQ7CiAgICBjb25zdCB4ID0gKGhlYWRlciAmIDB4MDgpID4+IDM7CiAgICBjb25zdCBrbGVuID0gaGVhZGVyICYgMHgwNzsKICAgIC8vIHggZmxhZwogICAgaWYgKHggIT09IDEpIHsKICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ1VORVhQRUNURUQtWC1GTEFHJyk7CiAgICB9CiAgICBjb25zdCBoZWFkZXJMZW5ndGggPSAxICsga2xlbiArIGxlbjsKICAgIGlmIChzZnJhbWVIZWFkZXJEYXRhVmlldy5ieXRlTGVuZ3RoIDwgaGVhZGVyTGVuZ3RoKSB7CiAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdVTkVYUEVDVEVELVNGUkFNRS1IRUFERVItTEVOR1RIJyk7CiAgICB9CiAgICBjb25zdCBrZXlJZEJ1ZmZlciA9IHNmcmFtZUhlYWRlci5zbGljZSgxLCAxICsga2xlbik7CiAgICBjb25zdCBrZXlJZCA9IGFycmF5QnVmZmVyVG9OdW1iZXIoa2V5SWRCdWZmZXIpOwogICAgY29uc3QgY291bnRCdWZmZXIgPSBzZnJhbWVIZWFkZXIuc2xpY2UoMSArIGtsZW4sIGhlYWRlckxlbmd0aCk7CiAgICBjb25zdCBjb3VudCA9IGFycmF5QnVmZmVyVG9OdW1iZXIoY291bnRCdWZmZXIpOwogICAgcmV0dXJuIFtzLCBjb3VudCwga2V5SWRdOwp9Ci8vLyA8cmVmZXJlbmNlIHBhdGg9Ii4vc2ZyYW1lLnRzIi8+Ci8vIFRPRE86IOaJseOBhuaVsOWApOOBjOWkp+OBjeOBhOeuh+aJgOOBp+OBryBOdW1iZXIg44GL44KJIEJpZ0ludCDjgavnva7jgY3mj5vjgYjjgosKLy8gVE9ETzogQmlnSW50IOOBq+e9ruOBjeaPm+OBiOOCi+mam+OBq+WkieabtOOBmeOCiwpjb25zdCBtYXhLZXlJZCA9IDIgKiogMzI7CmNvbnN0IG1heENvdW50ID0gMiAqKiAzMjsKY29uc3Qgc2VsZkRlcml2ZUtleU1hcCA9IG5ldyBNYXAoKTsKY29uc3QgY291bnRNYXAgPSBuZXcgTWFwKCk7CmNvbnN0IHdyaXRlSVZNYXAgPSBuZXcgTWFwKCk7CmNvbnN0IHJlbW90ZURlcml2ZUtleU1hcCA9IG5ldyBNYXAoKTsKY29uc3QgbGF0ZXN0UmVtb3RlS2V5SWRNYXAgPSBuZXcgTWFwKCk7CmNvbnN0IGxpdHRsZUVuZGlhbiA9IHRydWU7CmNvbnN0IGJpZ0VuZGlhbiA9ICFsaXR0bGVFbmRpYW47CmNvbnN0IHRleHRFbmNvZGVyID0gbmV3IFRleHRFbmNvZGVyKCk7CmNvbnN0IHRleHREZWNvZGVyID0gbmV3IFRleHREZWNvZGVyKCk7Ci8vIFZQOCDjga7jgb8KLy8gVE9ETyhuYWthaSk6IFZQOSAvIEFWMSDjgoLlsIbmnaXnmoTjgavlr77lv5zjgoLogIPjgYjjgosKY29uc3QgdW5lbmNyeXB0ZWRCeXRlcyA9IHsKICAgIC8vIEkg44OV44Os44O844OgCiAgICBrZXk6IDEwLAogICAgLy8g6Z2eIEkg44OV44Os44O844OgCiAgICBkZWx0YTogMywKICAgIC8vIOOCquODvOODh+OCo+OCqgogICAgdW5kZWZpbmVkOiAxLAp9OwpmdW5jdGlvbiBnZXRDb3VudChjb25uZWN0aW9uSWQpIHsKICAgIHJldHVybiBjb3VudE1hcC5nZXQoY29ubmVjdGlvbklkKSB8fCAwOwp9CmZ1bmN0aW9uIHNldENvdW50KGNvbm5lY3Rpb25JZCwgY291bnQpIHsKICAgIHJldHVybiBjb3VudE1hcC5zZXQoY29ubmVjdGlvbklkLCBjb3VudCk7Cn0KZnVuY3Rpb24gZ2V0UmVtb3RlRGVyaXZlS2V5KGNvbm5lY3Rpb25JZCwga2V5SWQpIHsKICAgIGlmICghcmVtb3RlRGVyaXZlS2V5TWFwLmhhcyhjb25uZWN0aW9uSWQpKSB7CiAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdSRU1PVEUtREVSSVZFS0VZLU1BUC1OT1QtRk9VTkQnKTsKICAgIH0KICAgIGNvbnN0IGRlcml2ZUtleU1hcCA9IHJlbW90ZURlcml2ZUtleU1hcC5nZXQoY29ubmVjdGlvbklkKTsKICAgIGlmICghZGVyaXZlS2V5TWFwKSB7CiAgICAgICAgcmV0dXJuOwogICAgfQogICAgcmV0dXJuIGRlcml2ZUtleU1hcC5nZXQoa2V5SWQpOwp9CmZ1bmN0aW9uIHNldFJlbW90ZURlcml2ZUtleShjb25uZWN0aW9uSWQsIGtleUlkLCBkZXJpdmVLZXkpIHsKICAgIGxldCBkZXJpdmVLZXlNYXAgPSByZW1vdGVEZXJpdmVLZXlNYXAuZ2V0KGNvbm5lY3Rpb25JZCk7CiAgICBpZiAoIWRlcml2ZUtleU1hcCkgewogICAgICAgIGRlcml2ZUtleU1hcCA9IG5ldyBNYXAoKTsKICAgIH0KICAgIGRlcml2ZUtleU1hcC5zZXQoa2V5SWQsIGRlcml2ZUtleSk7CiAgICByZW1vdGVEZXJpdmVLZXlNYXAuc2V0KGNvbm5lY3Rpb25JZCwgZGVyaXZlS2V5TWFwKTsKfQpmdW5jdGlvbiBzZXRMYXRlc3RSZW1vdGVLZXlJZChjb25uZWN0aW9uSWQsIGtleUlkKSB7CiAgICBjb25zdCBsYXRlc3RSZW1vdGVLZXlJZCA9IGxhdGVzdFJlbW90ZUtleUlkTWFwLmdldChjb25uZWN0aW9uSWQpOwogICAgaWYgKGxhdGVzdFJlbW90ZUtleUlkKSB7CiAgICAgICAgaWYgKGxhdGVzdFJlbW90ZUtleUlkIDwga2V5SWQpIHsKICAgICAgICAgICAgbGF0ZXN0UmVtb3RlS2V5SWRNYXAuc2V0KGNvbm5lY3Rpb25JZCwga2V5SWQpOwogICAgICAgIH0KICAgIH0KICAgIGVsc2UgewogICAgICAgIGxhdGVzdFJlbW90ZUtleUlkTWFwLnNldChjb25uZWN0aW9uSWQsIGtleUlkKTsKICAgIH0KfQpmdW5jdGlvbiByZW1vdmVPbGRSZW1vdGVEZXJpdmVLZXlzKCkgewogICAgbGF0ZXN0UmVtb3RlS2V5SWRNYXAuZm9yRWFjaCgobGF0ZXN0S2V5SWQsIGNvbm5lY3Rpb25JZCkgPT4gewogICAgICAgIGNvbnN0IGRlcml2ZUtleU1hcCA9IHJlbW90ZURlcml2ZUtleU1hcC5nZXQoY29ubmVjdGlvbklkKTsKICAgICAgICBpZiAoZGVyaXZlS2V5TWFwKSB7CiAgICAgICAgICAgIGRlcml2ZUtleU1hcC5mb3JFYWNoKChfLCBrZXlJZCkgPT4gewogICAgICAgICAgICAgICAgaWYgKGxhdGVzdEtleUlkICE9PSBrZXlJZCkgewogICAgICAgICAgICAgICAgICAgIGRlcml2ZUtleU1hcC5kZWxldGUoa2V5SWQpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICB9CiAgICB9KTsKfQpmdW5jdGlvbiByZW1vdmVEZXJpdmVLZXkoY29ubmVjdGlvbklkKSB7CiAgICBsYXRlc3RSZW1vdGVLZXlJZE1hcC5kZWxldGUoY29ubmVjdGlvbklkKTsKICAgIHJlbW90ZURlcml2ZUtleU1hcC5kZWxldGUoY29ubmVjdGlvbklkKTsKfQpmdW5jdGlvbiBnZXRMYXRlc3RTZWxmRGVyaXZlS2V5KCkgewogICAgY29uc3QgZGVyaXZlS2V5ID0gc2VsZkRlcml2ZUtleU1hcC5nZXQoJ2xhdGVzdCcpOwogICAgaWYgKCFkZXJpdmVLZXkpIHsKICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ0xBVEVTVC1TRUxGLURFUklWRUtFWS1OT1RfRk9VTkQnKTsKICAgIH0KICAgIHJldHVybiBkZXJpdmVLZXk7Cn0KZnVuY3Rpb24gc2V0U2VsZkRlcml2ZUtleShjb25uZWN0aW9uSWQsIGtleUlkLCBkZXJpdmVLZXkpIHsKICAgIGNvbnN0IGN1cnJlbnRTZWxmRGVyaXZlS2V5ID0gc2VsZkRlcml2ZUtleU1hcC5nZXQoJ2xhdGVzdCcpOwogICAgaWYgKGN1cnJlbnRTZWxmRGVyaXZlS2V5KSB7CiAgICAgICAgaWYgKGN1cnJlbnRTZWxmRGVyaXZlS2V5LmtleUlkIDwga2V5SWQpIHsKICAgICAgICAgICAgY29uc3QgbmV4dFNlbGZEZXJpdmVLZXkgPSB7IGNvbm5lY3Rpb25JZCwga2V5SWQsIGRlcml2ZUtleSB9OwogICAgICAgICAgICBzZWxmRGVyaXZlS2V5TWFwLnNldCgnbGF0ZXN0JywgbmV4dFNlbGZEZXJpdmVLZXkpOwogICAgICAgIH0KICAgIH0KICAgIGVsc2UgewogICAgICAgIGNvbnN0IG5leHRTZWxmRGVyaXZlS2V5ID0geyBjb25uZWN0aW9uSWQsIGtleUlkLCBkZXJpdmVLZXkgfTsKICAgICAgICBzZWxmRGVyaXZlS2V5TWFwLnNldCgnbGF0ZXN0JywgbmV4dFNlbGZEZXJpdmVLZXkpOwogICAgfQp9CmZ1bmN0aW9uIHNpbGVuY2VGcmFtZShlbmNvZGVkRnJhbWUpIHsKICAgIC8vIGNvbm5lY3Rpb24uY3JlYXRlZCwgcmVjZWl2ZU1lc3NhZ2Ug5Y+X5L+h5YmN44Gu5aC05ZCICiAgICBpZiAoZW5jb2RlZEZyYW1lLnR5cGUgPT09IHVuZGVmaW5lZCkgewogICAgICAgIC8vIOmfs+WjsOOBr+aal+WPt+WMluOBr+OBhOOCi+OBqOiBnuOBkeOBn+OCguOBruOBmOOCg+OBquOBhOOBruOBp+e9ruOBjeaPm+OBiOOCiwogICAgICAgIGNvbnN0IG5ld0RhdGEgPSBuZXcgQXJyYXlCdWZmZXIoMyk7CiAgICAgICAgY29uc3QgbmV3VWludDggPSBuZXcgVWludDhBcnJheShuZXdEYXRhKTsKICAgICAgICAvLyBPcHVzIOOCteOCpOODrOODs+OCueODleODrOODvOODoAogICAgICAgIG5ld1VpbnQ4LnNldChbMHhkOCwgMHhmZiwgMHhmZV0pOwogICAgICAgIGVuY29kZWRGcmFtZS5kYXRhID0gbmV3RGF0YTsKICAgIH0KICAgIGVsc2UgewogICAgICAgIC8vIOaYoOWDj+OBjOato+W4uOOBmOOCg+OBquOBhOOBn+OCgSBQTEkg44K544OI44O844Og44GM55m655Sf44GX44Gm44GX44G+44GGCiAgICAgICAgLy8g44Gd44Gu44Gf44KBIDMyMHgyNDAg44Gu55yf44Gj6buS44Gq55S76Z2i44Gr572u44GN5o+b44GI44KLCiAgICAgICAgY29uc3QgbmV3RGF0YSA9IG5ldyBBcnJheUJ1ZmZlcig2MCk7CiAgICAgICAgY29uc3QgbmV3VWludDggPSBuZXcgVWludDhBcnJheShuZXdEYXRhKTsKICAgICAgICBuZXdVaW50OC5zZXQoWwogICAgICAgICAgICAweGIwLCAweDA1LCAweDAwLCAweDlkLCAweDAxLCAweDJhLCAweGEwLCAweDAwLCAweDVhLCAweDAwLCAweDM5LCAweDAzLCAweDAwLCAweDAwLCAweDFjLAogICAgICAgICAgICAweDIyLCAweDE2LCAweDE2LCAweDIyLCAweDY2LCAweDEyLCAweDIwLCAweDA0LCAweDkwLCAweDQwLCAweDAwLCAweGM1LCAweDAxLCAweGUwLCAweDdjLAogICAgICAgICAgICAweDRkLCAweDJmLCAweGZhLCAweGRkLCAweDRkLCAweGE1LCAweDdmLCAweDg5LCAweGE1LCAweGZmLCAweDViLCAweGE5LCAweGI0LCAweGFmLCAweGYxLAogICAgICAgICAgICAweDM0LCAweGJmLCAweGViLCAweDc1LCAweDM2LCAweDk1LCAweGZlLCAweDI2LCAweDk2LCAweDYwLCAweGZlLCAweGZmLCAweGJhLCAweGZmLCAweDQwLAogICAgICAgIF0pOwogICAgICAgIGVuY29kZWRGcmFtZS5kYXRhID0gbmV3RGF0YTsKICAgIH0KICAgIHJldHVybiBlbmNvZGVkRnJhbWU7Cn0KZnVuY3Rpb24gc2V0V3JpdGVJVihjb25uZWN0aW9uSWQsIGtleUlkLCB3cml0ZUlWKSB7CiAgICBjb25zdCBrZXkgPSBbY29ubmVjdGlvbklkLCBrZXlJZC50b1N0cmluZygpXS5qb2luKCc6Jyk7CiAgICB3cml0ZUlWTWFwLnNldChrZXksIHdyaXRlSVYpOwp9CmZ1bmN0aW9uIGdldFdyaXRlSVYoY29ubmVjdGlvbklkLCBrZXlJZCkgewogICAgY29uc3Qga2V5ID0gW2Nvbm5lY3Rpb25JZCwga2V5SWQudG9TdHJpbmcoKV0uam9pbignOicpOwogICAgcmV0dXJuIHdyaXRlSVZNYXAuZ2V0KGtleSk7Cn0KZnVuY3Rpb24gZ2VuZXJhdGVJVihjb3VudCwgY29ubmVjdGlvbklkLCBrZXlJZCkgewogICAgLy8gVE9ETzoga2V5SWQg44GMIE51bWJlci5NQVhfU0FGRV9JTlRFR0VSLCA3IGJ5dGUg44KS6LaF44GI44Gm44GE44Gf5aC05ZCI44Gv44Ko44Op44O844GL5L6L5aSWCiAgICAvLyBUT0RPOiBjb3VudCDjgYwgTnVtYmVyLk1BWF9TQUZFX0lOVEVHRVIsIDcgYnl0ZSDjgpLotoXjgYjjgabjgYTjgZ/loLTlkIjjga/jgqjjg6njg7zjgYvkvovlpJYKICAgIC8vIDMyIGJpdCDjgb7jgacKICAgIGlmIChtYXhLZXlJZCA8IGtleUlkIHx8IG1heENvdW50IDwgY291bnQpIHsKICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ0VYQ0VFREVELU1BWElNVU0tQlJPQURDQVNUSU5HLVRJTUUnKTsKICAgIH0KICAgIGNvbnN0IHdyaXRlSVYgPSBnZXRXcml0ZUlWKGNvbm5lY3Rpb25JZCwga2V5SWQpOwogICAgaWYgKCF3cml0ZUlWKSB7CiAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdXUklURUlWLU5PVC1GT1VORCcpOwogICAgfQogICAgY29uc3QgcGFkZGluZ0xlbmd0aCA9IE5uIC0gVWludDMyQXJyYXkuQllURVNfUEVSX0VMRU1FTlQ7CiAgICBjb25zdCBjb3VudFdpdGhQYWRkaW5nQnVmZmVyID0gbmV3IEFycmF5QnVmZmVyKE5uKTsKICAgIGNvbnN0IGNvdW50V2l0aFBhZGRpbmdEYXRhVmlldyA9IG5ldyBEYXRhVmlldyhjb3VudFdpdGhQYWRkaW5nQnVmZmVyKTsKICAgIGNvdW50V2l0aFBhZGRpbmdEYXRhVmlldy5zZXRVaW50MzIocGFkZGluZ0xlbmd0aCwgY291bnQsIGJpZ0VuZGlhbik7CiAgICBjb25zdCBpdiA9IG5ldyBVaW50OEFycmF5KE5uKTsKICAgIGNvbnN0IGNvdW50V2l0aFBhZGRpbmcgPSBuZXcgVWludDhBcnJheShjb3VudFdpdGhQYWRkaW5nQnVmZmVyKTsKICAgIGZvciAobGV0IGkgPSAwOyBpIDwgTm47IGkrKykgewogICAgICAgIGl2W2ldID0gd3JpdGVJVltpXSBeIGNvdW50V2l0aFBhZGRpbmdbaV07CiAgICB9CiAgICByZXR1cm4gaXY7Cn0KZnVuY3Rpb24gcGFyc2VQYXlsb2FkKHBheWxvYWRUeXBlLCBwYXlsb2FkKSB7CiAgICByZXR1cm4gWwogICAgICAgIG5ldyBVaW50OEFycmF5KHBheWxvYWQsIDAsIHVuZW5jcnlwdGVkQnl0ZXNbcGF5bG9hZFR5cGVdKSwKICAgICAgICBuZXcgVWludDhBcnJheShwYXlsb2FkLCB1bmVuY3J5cHRlZEJ5dGVzW3BheWxvYWRUeXBlXSksCiAgICBdOwp9CmZ1bmN0aW9uIGVuY29kZUZyYW1lQWRkKGhlYWRlciwgc2ZyYW1lSGVhZGVyLCBjb25uZWN0aW9uSWQpIHsKICAgIGNvbnN0IGNvbm5lY3Rpb25JZERhdGEgPSB0ZXh0RW5jb2Rlci5lbmNvZGUoY29ubmVjdGlvbklkKTsKICAgIGNvbnN0IGZyYW1lQWRkID0gbmV3IFVpbnQ4QXJyYXkoaGVhZGVyLmJ5dGVMZW5ndGggKyBzZnJhbWVIZWFkZXIuYnl0ZUxlbmd0aCArIGNvbm5lY3Rpb25JZERhdGEuYnl0ZUxlbmd0aCk7CiAgICBmcmFtZUFkZC5zZXQoaGVhZGVyLCAwKTsKICAgIGZyYW1lQWRkLnNldChzZnJhbWVIZWFkZXIsIGhlYWRlci5ieXRlTGVuZ3RoKTsKICAgIGZyYW1lQWRkLnNldChjb25uZWN0aW9uSWREYXRhLCBoZWFkZXIuYnl0ZUxlbmd0aCArIHNmcmFtZUhlYWRlci5ieXRlTGVuZ3RoKTsKICAgIHJldHVybiBmcmFtZUFkZDsKfQphc3luYyBmdW5jdGlvbiBlbmNyeXB0RnVuY3Rpb24oZW5jb2RlZEZyYW1lLCBjb250cm9sbGVyKSB7CiAgICBjb25zdCB7IGNvbm5lY3Rpb25JZCwga2V5SWQsIGRlcml2ZUtleSB9ID0gZ2V0TGF0ZXN0U2VsZkRlcml2ZUtleSgpOwogICAgaWYgKCFkZXJpdmVLZXkpIHsKICAgICAgICByZXR1cm47CiAgICB9CiAgICBjb25zdCBjdXJyZW50Q291bnQgPSBnZXRDb3VudChjb25uZWN0aW9uSWQpOwogICAgLy8gY291bnQg44GMIDMyIGJpdCDku6XkuIrjga7loLTlkIjjga/lgZzmraLjgZnjgosKICAgIGlmIChjdXJyZW50Q291bnQgPiBtYXhDb3VudCkgewogICAgICAgIHBvc3RNZXNzYWdlKHsgdHlwZTogJ2Rpc2Nvbm5lY3QnIH0pOwogICAgfQogICAgY29uc3QgaXYgPSBnZW5lcmF0ZUlWKGN1cnJlbnRDb3VudCwgY29ubmVjdGlvbklkLCBrZXlJZCk7CiAgICBpZiAoIWl2KSB7CiAgICAgICAgcmV0dXJuOwogICAgfQogICAgY29uc3QgW2hlYWRlciwgcGF5bG9hZF0gPSBwYXJzZVBheWxvYWQoZW5jb2RlZEZyYW1lLnR5cGUsIGVuY29kZWRGcmFtZS5kYXRhKTsKICAgIGNvbnN0IHNmcmFtZUhlYWRlciA9IGVuY29kZVNGcmFtZUhlYWRlcigwLCBjdXJyZW50Q291bnQsIGtleUlkKTsKICAgIGNvbnN0IGZyYW1lQWRkID0gZW5jb2RlRnJhbWVBZGQoaGVhZGVyLCBzZnJhbWVIZWFkZXIsIGNvbm5lY3Rpb25JZCk7CiAgICBjcnlwdG8uc3VidGxlCiAgICAgICAgLmVuY3J5cHQoewogICAgICAgIG5hbWU6ICdBRVMtR0NNJywKICAgICAgICBpdjogaXYsCiAgICAgICAgLy8g5pqX5Y+35YyW44GV44KM44Gm44GE44Gq44GE6YOo5YiGCiAgICAgICAgYWRkaXRpb25hbERhdGE6IGZyYW1lQWRkLAogICAgfSwgZGVyaXZlS2V5LCBwYXlsb2FkKQogICAgICAgIC50aGVuKChjaXBoZXJUZXh0KSA9PiB7CiAgICAgICAgY29uc3QgbmV3RGF0YSA9IG5ldyBBcnJheUJ1ZmZlcihmcmFtZUFkZC5ieXRlTGVuZ3RoICsgY2lwaGVyVGV4dC5ieXRlTGVuZ3RoKTsKICAgICAgICBjb25zdCBuZXdEYXRhVWludDggPSBuZXcgVWludDhBcnJheShuZXdEYXRhKTsKICAgICAgICBuZXdEYXRhVWludDguc2V0KGZyYW1lQWRkLCAwKTsKICAgICAgICBuZXdEYXRhVWludDguc2V0KG5ldyBVaW50OEFycmF5KGNpcGhlclRleHQpLCBmcmFtZUFkZC5ieXRlTGVuZ3RoKTsKICAgICAgICBlbmNvZGVkRnJhbWUuZGF0YSA9IG5ld0RhdGE7CiAgICAgICAgY29udHJvbGxlci5lbnF1ZXVlKGVuY29kZWRGcmFtZSk7CiAgICB9KTsKICAgIHNldENvdW50KGNvbm5lY3Rpb25JZCwgY3VycmVudENvdW50ICsgMSk7Cn0KYXN5bmMgZnVuY3Rpb24gZGVjcnlwdEZ1bmN0aW9uKGVuY29kZWRGcmFtZSwgY29udHJvbGxlcikgewogICAgLy8g56m644OV44Os44O844Og5a++5b+cCiAgICBpZiAoZW5jb2RlZEZyYW1lLmRhdGEuYnl0ZUxlbmd0aCA8IDEpIHsKICAgICAgICByZXR1cm47CiAgICB9CiAgICB0cnkgewogICAgICAgIGNvbnN0IGZyYW1lTWV0YWRhdGFCdWZmZXIgPSBlbmNvZGVkRnJhbWUuZGF0YS5zbGljZSgwLCB1bmVuY3J5cHRlZEJ5dGVzW2VuY29kZWRGcmFtZS50eXBlXSk7CiAgICAgICAgY29uc3QgZnJhbWVNZXRhZGF0YSA9IG5ldyBVaW50OEFycmF5KGZyYW1lTWV0YWRhdGFCdWZmZXIpOwogICAgICAgIGNvbnN0IFtzZnJhbWVIZWFkZXJCdWZmZXIsIGNvbm5lY3Rpb25JZEJ1ZmZlciwgZW5jcnlwdGVkRnJhbWVCdWZmZXJdID0gc3BsaXRIZWFkZXIoZW5jb2RlZEZyYW1lLmRhdGEuc2xpY2UodW5lbmNyeXB0ZWRCeXRlc1tlbmNvZGVkRnJhbWUudHlwZV0pKTsKICAgICAgICBjb25zdCBzZnJhbWVIZWFkZXIgPSBuZXcgVWludDhBcnJheShzZnJhbWVIZWFkZXJCdWZmZXIpOwogICAgICAgIGNvbnN0IGNvbm5lY3Rpb25JZCA9IHRleHREZWNvZGVyLmRlY29kZShjb25uZWN0aW9uSWRCdWZmZXIpOwogICAgICAgIGNvbnN0IFtzLCBjb3VudCwga2V5SWRdID0gcGFyc2VTRnJhbWVIZWFkZXIoc2ZyYW1lSGVhZGVyQnVmZmVyKTsKICAgICAgICAvLyDku4rlm57jga8gcyBmbGFnIOOBryAwIOOBruOBvwogICAgICAgIGlmIChzICE9PSAwKSB7CiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcignVU5FWFBFQ1RFRC1TLUZMQUcnKTsKICAgICAgICB9CiAgICAgICAgY29uc3QgZGVyaXZlS2V5ID0gZ2V0UmVtb3RlRGVyaXZlS2V5KGNvbm5lY3Rpb25JZCwga2V5SWQpOwogICAgICAgIGlmICghZGVyaXZlS2V5KSB7CiAgICAgICAgICAgIHJldHVybjsKICAgICAgICB9CiAgICAgICAgY29uc3QgaXYgPSBnZW5lcmF0ZUlWKGNvdW50LCBjb25uZWN0aW9uSWQsIGtleUlkKTsKICAgICAgICBpZiAoIWl2KSB7CiAgICAgICAgICAgIHJldHVybjsKICAgICAgICB9CiAgICAgICAgY29uc3QgZnJhbWVBZGQgPSBlbmNvZGVGcmFtZUFkZChmcmFtZU1ldGFkYXRhLCBzZnJhbWVIZWFkZXIsIGNvbm5lY3Rpb25JZCk7CiAgICAgICAgY3J5cHRvLnN1YnRsZQogICAgICAgICAgICAuZGVjcnlwdCh7CiAgICAgICAgICAgIG5hbWU6ICdBRVMtR0NNJywKICAgICAgICAgICAgaXY6IGl2LAogICAgICAgICAgICBhZGRpdGlvbmFsRGF0YTogZnJhbWVBZGQsCiAgICAgICAgfSwgZGVyaXZlS2V5LCBuZXcgVWludDhBcnJheShlbmNyeXB0ZWRGcmFtZUJ1ZmZlcikpCiAgICAgICAgICAgIC50aGVuKChwbGFpblRleHQpID0+IHsKICAgICAgICAgICAgY29uc3QgbmV3RGF0YSA9IG5ldyBBcnJheUJ1ZmZlcihmcmFtZU1ldGFkYXRhQnVmZmVyLmJ5dGVMZW5ndGggKyBwbGFpblRleHQuYnl0ZUxlbmd0aCk7CiAgICAgICAgICAgIGNvbnN0IG5ld1VpbnQ4ID0gbmV3IFVpbnQ4QXJyYXkobmV3RGF0YSk7CiAgICAgICAgICAgIG5ld1VpbnQ4LnNldChuZXcgVWludDhBcnJheShmcmFtZU1ldGFkYXRhQnVmZmVyLCAwLCB1bmVuY3J5cHRlZEJ5dGVzW2VuY29kZWRGcmFtZS50eXBlXSkpOwogICAgICAgICAgICBuZXdVaW50OC5zZXQobmV3IFVpbnQ4QXJyYXkocGxhaW5UZXh0KSwgdW5lbmNyeXB0ZWRCeXRlc1tlbmNvZGVkRnJhbWUudHlwZV0pOwogICAgICAgICAgICBlbmNvZGVkRnJhbWUuZGF0YSA9IG5ld0RhdGE7CiAgICAgICAgICAgIGNvbnRyb2xsZXIuZW5xdWV1ZShlbmNvZGVkRnJhbWUpOwogICAgICAgIH0pOwogICAgfQogICAgY2F0Y2ggKGUpIHsKICAgICAgICAvLyDmg7PlrprlpJbjga7jg5HjgrHjg4Pjg4jjg5Xjgqnjg7zjg57jg4Pjg4jjgpLlj5fkv6HjgZfjgZ/loLTlkIgKICAgICAgICBjb250cm9sbGVyLmVucXVldWUoc2lsZW5jZUZyYW1lKGVuY29kZWRGcmFtZSkpOwogICAgfQp9Ci8vLyA8cmVmZXJlbmNlIHBhdGg9Ii4vZTJlZS50cyIvPgovLyBub25jZSDjgrXjgqTjgroKY29uc3QgTm4gPSAxMjsKLy8ga2V5IOOCteOCpOOCugpjb25zdCBOayA9IDE2OwovLyBrZXkg44K144Kk44K677yIYml077yJCmNvbnN0IGtleUxlbmd0aCA9IE5rICogODsKYXN5bmMgZnVuY3Rpb24gZ2VuZXJhdGVEZXJpdmVLZXkobWF0ZXJpYWwpIHsKICAgIGNvbnN0IHNhbHQgPSB0ZXh0RW5jb2Rlci5lbmNvZGUoJ1NGcmFtZTEwJyk7CiAgICBjb25zdCBpbmZvID0gdGV4dEVuY29kZXIuZW5jb2RlKCdrZXknKTsKICAgIGNvbnN0IGRlcml2ZUtleSA9IGF3YWl0IGNyeXB0by5zdWJ0bGUuZGVyaXZlS2V5KHsKICAgICAgICBuYW1lOiAnSEtERicsCiAgICAgICAgc2FsdDogc2FsdCwKICAgICAgICBoYXNoOiAnU0hBLTI1NicsCiAgICAgICAgaW5mbzogaW5mbywKICAgIH0sIG1hdGVyaWFsLCB7CiAgICAgICAgbmFtZTogJ0FFUy1HQ00nLAogICAgICAgIGxlbmd0aDoga2V5TGVuZ3RoLAogICAgfSwgZmFsc2UsIFsnZW5jcnlwdCcsICdkZWNyeXB0J10pOwogICAgcmV0dXJuIGRlcml2ZUtleTsKfQphc3luYyBmdW5jdGlvbiBnZW5lcmF0ZVdyaXRlSVYobWF0ZXJpYWwpIHsKICAgIGNvbnN0IHNhbHQgPSB0ZXh0RW5jb2Rlci5lbmNvZGUoJ1NGcmFtZTEwJyk7CiAgICBjb25zdCBpbmZvID0gdGV4dEVuY29kZXIuZW5jb2RlKCdzYWx0Jyk7CiAgICBjb25zdCB3cml0ZUlWQnVmZmVyID0gYXdhaXQgY3J5cHRvLnN1YnRsZS5kZXJpdmVCaXRzKHsKICAgICAgICBuYW1lOiAnSEtERicsCiAgICAgICAgc2FsdDogc2FsdCwKICAgICAgICBoYXNoOiAnU0hBLTM4NCcsCiAgICAgICAgaW5mbzogaW5mbywKICAgIH0sIG1hdGVyaWFsLCAKICAgIC8vIElWIOOBryA5NiDjg5Pjg4Pjg4jjgarjga7jgacKICAgIE5uICogOCk7CiAgICBjb25zdCB3cml0ZUlWID0gbmV3IFVpbnQ4QXJyYXkod3JpdGVJVkJ1ZmZlcik7CiAgICByZXR1cm4gd3JpdGVJVjsKfQpsZXQgcmVtb3ZhbFRpbWVvdXRJZCA9IDA7Ci8vIGJpb21lLWlnbm9yZSBsaW50L3N1c3BpY2lvdXMvbm9HbG9iYWxBc3NpZ246IOaknOiojgpvbm1lc3NhZ2UgPSAoZXZlbnQpID0+IHsKICAgIGNvbnN0IHsgdHlwZSB9ID0gZXZlbnQuZGF0YTsKICAgIGlmICh0eXBlID09PSAnc2VsZlNlY3JldEtleU1hdGVyaWFsJykgewogICAgICAgIGNvbnN0IHsgc2VsZlNlY3JldEtleU1hdGVyaWFsLCBzZWxmQ29ubmVjdGlvbklkLCBzZWxmS2V5SWQsIHdhaXRpbmdUaW1lIH0gPSBldmVudC5kYXRhOwogICAgICAgIGNvbnN0IHRpbWVvdXRJZCA9IHNldFRpbWVvdXQoKCkgPT4gewogICAgICAgICAgICBjcnlwdG8uc3VidGxlCiAgICAgICAgICAgICAgICAuaW1wb3J0S2V5KCdyYXcnLCBzZWxmU2VjcmV0S2V5TWF0ZXJpYWwuYnVmZmVyLCAnSEtERicsIGZhbHNlLCBbJ2Rlcml2ZUJpdHMnLCAnZGVyaXZlS2V5J10pCiAgICAgICAgICAgICAgICAudGhlbigobWF0ZXJpYWwpID0+IHsKICAgICAgICAgICAgICAgIGdlbmVyYXRlRGVyaXZlS2V5KG1hdGVyaWFsKS50aGVuKChkZXJpdmVLZXkpID0+IHsKICAgICAgICAgICAgICAgICAgICBzZXRTZWxmRGVyaXZlS2V5KHNlbGZDb25uZWN0aW9uSWQsIHNlbGZLZXlJZCwgZGVyaXZlS2V5KTsKICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICAgICAgZ2VuZXJhdGVXcml0ZUlWKG1hdGVyaWFsKS50aGVuKCh3cml0ZUlWKSA9PiB7CiAgICAgICAgICAgICAgICAgICAgc2V0V3JpdGVJVihzZWxmQ29ubmVjdGlvbklkLCBzZWxmS2V5SWQsIHdyaXRlSVYpOwogICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICBjbGVhclRpbWVvdXQodGltZW91dElkKTsKICAgICAgICAgICAgfSk7CiAgICAgICAgfSwgd2FpdGluZ1RpbWUgfHwgMCk7CiAgICAgICAgLy8gVE9ETzogKzEwMDAg44Gn6Y2155Sf5oiQ5b6M44Gr5a6f6KGM44GV44KM44KL44KI44GG44Gr44GX44Gm44GE44KL44GM55+t44GE5aC05ZCI44Gv5Ly444Gw44GZCiAgICAgICAgY29uc3QgcmVtb3ZhbFdhaXRpbmdUaW1lID0gKHdhaXRpbmdUaW1lIHx8IDApICsgMTAwMDsKICAgICAgICBpZiAocmVtb3ZhbFRpbWVvdXRJZCkgewogICAgICAgICAgICAvLyDli5XkvZzmuIjjgb/jgr/jgqTjg57jg7zmnInjgooKICAgICAgICAgICAgaWYgKHdhaXRpbmdUaW1lKSB7CiAgICAgICAgICAgICAgICAvLyBjb25uZWN0aW9uLmRlc3Ryb3llZAogICAgICAgICAgICAgICAgY2xlYXJUaW1lb3V0KHJlbW92YWxUaW1lb3V0SWQpOwogICAgICAgICAgICAgICAgcmVtb3ZhbFRpbWVvdXRJZCA9IHNldFRpbWVvdXQoKCkgPT4gewogICAgICAgICAgICAgICAgICAgIHJlbW92ZU9sZFJlbW90ZURlcml2ZUtleXMoKTsKICAgICAgICAgICAgICAgICAgICBjbGVhclRpbWVvdXQocmVtb3ZhbFRpbWVvdXRJZCk7CiAgICAgICAgICAgICAgICAgICAgcmVtb3ZhbFRpbWVvdXRJZCA9IDA7CiAgICAgICAgICAgICAgICB9LCByZW1vdmFsV2FpdGluZ1RpbWUpOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGVsc2UgewogICAgICAgICAgICAvLyDli5XkvZzmuIjjgb/jgr/jgqTjg57jg7zjgarjgZcKICAgICAgICAgICAgLy8gY29ubmVjdGlvbi5jcmVhdGVkIOOBruWgtOWQiOOCguWwkeOBl+Wun+ihjOOCkumBheOCieOBm+OCiwogICAgICAgICAgICByZW1vdmFsVGltZW91dElkID0gc2V0VGltZW91dCgoKSA9PiB7CiAgICAgICAgICAgICAgICByZW1vdmVPbGRSZW1vdGVEZXJpdmVLZXlzKCk7CiAgICAgICAgICAgICAgICBjbGVhclRpbWVvdXQocmVtb3ZhbFRpbWVvdXRJZCk7CiAgICAgICAgICAgICAgICByZW1vdmFsVGltZW91dElkID0gMDsKICAgICAgICAgICAgfSwgcmVtb3ZhbFdhaXRpbmdUaW1lKTsKICAgICAgICB9CiAgICB9CiAgICBlbHNlIGlmICh0eXBlID09PSAncmVtb3RlU2VjcmV0S2V5TWF0ZXJpYWxzJykgewogICAgICAgIGNvbnN0IHsgcmVtb3RlU2VjcmV0S2V5TWF0ZXJpYWxzIH0gPSBldmVudC5kYXRhOwogICAgICAgIGZvciAoY29uc3QgW2Nvbm5lY3Rpb25JZCwgcmVtb3RlU2VjcmV0S2V5TWF0ZXJpYWxdIG9mIE9iamVjdC5lbnRyaWVzKHJlbW90ZVNlY3JldEtleU1hdGVyaWFscykpIHsKICAgICAgICAgICAgY29uc3QgeyBrZXlJZCwgc2VjcmV0S2V5TWF0ZXJpYWwgfSA9IHJlbW90ZVNlY3JldEtleU1hdGVyaWFsOwogICAgICAgICAgICBjcnlwdG8uc3VidGxlCiAgICAgICAgICAgICAgICAuaW1wb3J0S2V5KCdyYXcnLCBzZWNyZXRLZXlNYXRlcmlhbC5idWZmZXIsICdIS0RGJywgZmFsc2UsIFsnZGVyaXZlQml0cycsICdkZXJpdmVLZXknXSkKICAgICAgICAgICAgICAgIC50aGVuKChtYXRlcmlhbCkgPT4gewogICAgICAgICAgICAgICAgZ2VuZXJhdGVEZXJpdmVLZXkobWF0ZXJpYWwpLnRoZW4oKGRlcml2ZUtleSkgPT4gewogICAgICAgICAgICAgICAgICAgIHNldFJlbW90ZURlcml2ZUtleShjb25uZWN0aW9uSWQsIGtleUlkLCBkZXJpdmVLZXkpOwogICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICBnZW5lcmF0ZVdyaXRlSVYobWF0ZXJpYWwpLnRoZW4oKHdyaXRlSVYpID0+IHsKICAgICAgICAgICAgICAgICAgICBzZXRXcml0ZUlWKGNvbm5lY3Rpb25JZCwga2V5SWQsIHdyaXRlSVYpOwogICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICBzZXRMYXRlc3RSZW1vdGVLZXlJZChjb25uZWN0aW9uSWQsIGtleUlkKTsKICAgICAgICAgICAgfSk7CiAgICAgICAgfQogICAgfQogICAgZWxzZSBpZiAodHlwZSA9PT0gJ3JlbW92ZVJlbW90ZURlcml2ZUtleScpIHsKICAgICAgICBjb25zdCB7IGNvbm5lY3Rpb25JZCB9ID0gZXZlbnQuZGF0YTsKICAgICAgICByZW1vdmVEZXJpdmVLZXkoY29ubmVjdGlvbklkKTsKICAgIH0KICAgIGVsc2UgaWYgKHR5cGUgPT09ICdlbmNyeXB0JykgewogICAgICAgIGNvbnN0IHsgcmVhZGFibGVTdHJlYW0sIHdyaXRhYmxlU3RyZWFtIH0gPSBldmVudC5kYXRhOwogICAgICAgIGNvbnN0IHRyYW5zZm9ybVN0cmVhbSA9IG5ldyBUcmFuc2Zvcm1TdHJlYW0oewogICAgICAgICAgICB0cmFuc2Zvcm06IGVuY3J5cHRGdW5jdGlvbiwKICAgICAgICB9KTsKICAgICAgICByZWFkYWJsZVN0cmVhbS5waXBlVGhyb3VnaCh0cmFuc2Zvcm1TdHJlYW0pLnBpcGVUbyh3cml0YWJsZVN0cmVhbSk7CiAgICB9CiAgICBlbHNlIGlmICh0eXBlID09PSAnZGVjcnlwdCcpIHsKICAgICAgICBjb25zdCB7IHJlYWRhYmxlU3RyZWFtLCB3cml0YWJsZVN0cmVhbSB9ID0gZXZlbnQuZGF0YTsKICAgICAgICBjb25zdCB0cmFuc2Zvcm1TdHJlYW0gPSBuZXcgVHJhbnNmb3JtU3RyZWFtKHsKICAgICAgICAgICAgdHJhbnNmb3JtOiBkZWNyeXB0RnVuY3Rpb24sCiAgICAgICAgfSk7CiAgICAgICAgcmVhZGFibGVTdHJlYW0ucGlwZVRocm91Z2godHJhbnNmb3JtU3RyZWFtKS5waXBlVG8od3JpdGFibGVTdHJlYW0pOwogICAgfQogICAgZWxzZSBpZiAodHlwZSA9PT0gJ2NsZWFyJykgewogICAgICAgIGNvdW50TWFwLmNsZWFyKCk7CiAgICAgICAgd3JpdGVJVk1hcC5jbGVhcigpOwogICAgICAgIHJlbW90ZURlcml2ZUtleU1hcC5jbGVhcigpOwogICAgICAgIGxhdGVzdFJlbW90ZUtleUlkTWFwLmNsZWFyKCk7CiAgICAgICAgc2VsZkRlcml2ZUtleU1hcC5jbGVhcigpOwogICAgfQp9Owo=");this.worker=new Worker(URL.createObjectURL(new Blob([e],{type:"application/javascript"}))),this.worker.onmessage=e=>{let{operation:t}=e.data;"disconnect"===t&&"function"==typeof this.onWorkerDisconnect&&this.onWorkerDisconnect()}}clearWorker(){this.worker&&this.worker.postMessage({type:"clear"})}terminateWorker(){this.worker&&this.worker.terminate()}async init(){let{preKeyBundle:e}=await window.e2ee.init();return e}setupSenderTransform(e,t){if(!this.worker)throw Error("Worker is null. Call startWorker in advance.");this.worker.postMessage({type:"encrypt",readableStream:e,writableStream:t},[e,t])}setupReceiverTransform(e,t){if(!this.worker)throw Error("Worker is null. Call startWorker in advance.");this.worker.postMessage({type:"decrypt",readableStream:e,writableStream:t},[e,t])}postRemoteSecretKeyMaterials(e){if(!this.worker)throw Error("Worker is null. Call startWorker in advance.");this.worker.postMessage({type:"remoteSecretKeyMaterials",remoteSecretKeyMaterials:e.remoteSecretKeyMaterials})}postRemoveRemoteDeriveKey(e){if(!this.worker)throw Error("Worker is null. Call startWorker in advance.");this.worker.postMessage({type:"removeRemoteDeriveKey",connectionId:e})}postSelfSecretKeyMaterial(e,t,i,n=0){if(!this.worker)throw Error("Worker is null. Call startWorker in advance.");this.worker.postMessage({type:"selfSecretKeyMaterial",selfConnectionId:e,selfKeyId:t,selfSecretKeyMaterial:i,waitingTime:n})}startSession(e,t){let[i,n]=window.e2ee.startSession(e,t.identityKey,t.signedPreKey,t.preKeySignature);if(n)throw n;return i}stopSession(e){let[t,i]=window.e2ee.stopSession(e);if(i)throw i;return t}receiveMessage(e){let[t,i]=window.e2ee.receiveMessage(e);if(i)throw i;return t}start(e){let[t,i]=window.e2ee.start(e);if(i)throw i;return t}addPreKeyBundle(e,t){let i=window.e2ee.addPreKeyBundle(e,t.identityKey,t.signedPreKey,t.preKeySignature);if(i)throw i}selfFingerprint(){return window.e2ee.selfFingerprint()}remoteFingerprints(){return window.e2ee.remoteFingerprints()}static async loadWasm(e){if(window.e2ee,(()=>{if("undefined"!=typeof global);else if("undefined"!=typeof window)window.global=window;else if("undefined"!=typeof self)self.global=self;else throw Error("cannot export Go (neither global, window nor self is defined)");if(global.require||"undefined"==typeof require||(global.require=require),!global.fs&&global.require){let e=require("fs");0!==Object.keys(e)&&(global.fs=e)}let e=()=>{let e=Error("not implemented");return e.code="ENOSYS",e};if(!global.fs){let t="";global.fs={constants:{O_WRONLY:-1,O_RDWR:-1,O_CREAT:-1,O_TRUNC:-1,O_APPEND:-1,O_EXCL:-1},writeSync(e,n){let s=(t+=i.decode(n)).lastIndexOf("\n");return -1!=s&&(console.log(t.substr(0,s)),t=t.substr(s+1)),n.length},write(t,i,n,s,a,o){if(0!==n||s!==i.length||null!==a){o(e());return}o(null,this.writeSync(t,i))},chmod(t,i,n){n(e())},chown(t,i,n,s){s(e())},close(t,i){i(e())},fchmod(t,i,n){n(e())},fchown(t,i,n,s){s(e())},fstat(t,i){i(e())},fsync(e,t){t(null)},ftruncate(t,i,n){n(e())},lchown(t,i,n,s){s(e())},link(t,i,n){n(e())},lstat(t,i){i(e())},mkdir(t,i,n){n(e())},open(t,i,n,s){s(e())},read(t,i,n,s,a,o){o(e())},readdir(t,i){i(e())},readlink(t,i){i(e())},rename(t,i,n){n(e())},rmdir(t,i){i(e())},stat(t,i){i(e())},symlink(t,i,n){n(e())},truncate(t,i,n){n(e())},unlink(t,i){i(e())},utimes(t,i,n,s){s(e())}}}if(global.process||(global.process={getuid:()=>-1,getgid:()=>-1,geteuid:()=>-1,getegid:()=>-1,getgroups(){throw e()},pid:-1,ppid:-1,umask(){throw e()},cwd(){throw e()},chdir(){throw e()}}),!global.crypto){let e=require("crypto");global.crypto={getRandomValues(t){e.randomFillSync(t)}}}global.performance||(global.performance={now(){let[e,t]=n.hrtime();return 1e3*e+t/1e6}}),global.TextEncoder||(global.TextEncoder=require("util").TextEncoder),global.TextDecoder||(global.TextDecoder=require("util").TextDecoder);let t=new TextEncoder("utf-8"),i=new TextDecoder("utf-8");if(global.Go=class{constructor(){this.argv=["js"],this.env={},this.exit=e=>{0!==e&&console.warn("exit code:",e)},this._exitPromise=new Promise(e=>{this._resolveExitPromise=e}),this._pendingEvent=null,this._scheduledTimeouts=new Map,this._nextCallbackTimeoutID=1;let e=(e,t)=>{this.mem.setUint32(e+0,t,!0),this.mem.setUint32(e+4,Math.floor(t/4294967296),!0)},n=e=>this.mem.getUint32(e+0,!0)+4294967296*this.mem.getInt32(e+4,!0),s=e=>{let t=this.mem.getFloat64(e,!0);if(0===t)return;if(!isNaN(t))return t;let i=this.mem.getUint32(e,!0);return this._values[i]},a=(e,t)=>{if("number"==typeof t&&0!==t){if(isNaN(t)){this.mem.setUint32(e+4,2146959360,!0),this.mem.setUint32(e,0,!0);return}this.mem.setFloat64(e,t,!0);return}if(void 0===t){this.mem.setFloat64(e,0,!0);return}let i=this._ids.get(t);void 0===i&&(void 0===(i=this._idPool.pop())&&(i=this._values.length),this._values[i]=t,this._goRefCounts[i]=0,this._ids.set(t,i)),this._goRefCounts[i]++;let n=0;switch(typeof t){case"object":null!==t&&(n=1);break;case"string":n=2;break;case"symbol":n=3;break;case"function":n=4}this.mem.setUint32(e+4,2146959360|n,!0),this.mem.setUint32(e,i,!0)},o=e=>{let t=n(e+0),i=n(e+8);return new Uint8Array(this._inst.exports.mem.buffer,t,i)},l=e=>{let t=n(e+0),i=n(e+8),a=Array(i);for(let e=0;e{let t=n(e+0),s=n(e+8);return i.decode(new DataView(this._inst.exports.mem.buffer,t,s))},g=Date.now()-performance.now();this.importObject={go:{"runtime.wasmExit":e=>{let t=this.mem.getInt32(e+8,!0);this.exited=!0,delete this._inst,delete this._values,delete this._goRefCounts,delete this._ids,delete this._idPool,this.exit(t)},"runtime.wasmWrite":e=>{let t=n(e+8),i=n(e+16),s=this.mem.getInt32(e+24,!0);fs.writeSync(t,new Uint8Array(this._inst.exports.mem.buffer,i,s))},"runtime.resetMemoryDataView":e=>{this.mem=new DataView(this._inst.exports.mem.buffer)},"runtime.nanotime1":t=>{e(t+8,(g+performance.now())*1e6)},"runtime.walltime1":t=>{let i=(new Date).getTime();e(t+8,i/1e3),this.mem.setInt32(t+16,i%1e3*1e6,!0)},"runtime.scheduleTimeoutEvent":e=>{let t=this._nextCallbackTimeoutID;this._nextCallbackTimeoutID++,this._scheduledTimeouts.set(t,setTimeout(()=>{for(this._resume();this._scheduledTimeouts.has(t);)console.warn("scheduleTimeoutEvent: missed timeout event"),this._resume()},n(e+8)+1)),this.mem.setInt32(e+16,t,!0)},"runtime.clearTimeoutEvent":e=>{let t=this.mem.getInt32(e+8,!0);clearTimeout(this._scheduledTimeouts.get(t)),this._scheduledTimeouts.delete(t)},"runtime.getRandomData":e=>{crypto.getRandomValues(o(e+8))},"syscall/js.finalizeRef":e=>{let t=this.mem.getUint32(e+8,!0);if(this._goRefCounts[t]--,0===this._goRefCounts[t]){let e=this._values[t];this._values[t]=null,this._ids.delete(e),this._idPool.push(t)}},"syscall/js.stringVal":e=>{a(e+24,r(e+8))},"syscall/js.valueGet":e=>{let t=Reflect.get(s(e+8),r(e+16));a((e=this._inst.exports.getsp())+32,t)},"syscall/js.valueSet":e=>{Reflect.set(s(e+8),r(e+16),s(e+32))},"syscall/js.valueDelete":e=>{Reflect.deleteProperty(s(e+8),r(e+16))},"syscall/js.valueIndex":e=>{a(e+24,Reflect.get(s(e+8),n(e+16)))},"syscall/js.valueSetIndex":e=>{Reflect.set(s(e+8),n(e+16),s(e+24))},"syscall/js.valueCall":e=>{try{let t=s(e+8),i=Reflect.get(t,r(e+16)),n=l(e+32),o=Reflect.apply(i,t,n);e=this._inst.exports.getsp(),a(e+56,o),this.mem.setUint8(e+64,1)}catch(t){a(e+56,t),this.mem.setUint8(e+64,0)}},"syscall/js.valueInvoke":e=>{try{let t=s(e+8),i=l(e+16),n=Reflect.apply(t,void 0,i);e=this._inst.exports.getsp(),a(e+40,n),this.mem.setUint8(e+48,1)}catch(t){a(e+40,t),this.mem.setUint8(e+48,0)}},"syscall/js.valueNew":e=>{try{let t=s(e+8),i=l(e+16),n=Reflect.construct(t,i);e=this._inst.exports.getsp(),a(e+40,n),this.mem.setUint8(e+48,1)}catch(t){a(e+40,t),this.mem.setUint8(e+48,0)}},"syscall/js.valueLength":t=>{e(t+16,parseInt(s(t+8).length))},"syscall/js.valuePrepareString":i=>{let n=t.encode(String(s(i+8)));a(i+16,n),e(i+24,n.length)},"syscall/js.valueLoadString":e=>{let t=s(e+8);o(e+16).set(t)},"syscall/js.valueInstanceOf":e=>{this.mem.setUint8(e+24,s(e+8) instanceof s(e+16)?1:0)},"syscall/js.copyBytesToGo":t=>{let i=o(t+8),n=s(t+32);if(!(n instanceof Uint8Array||n instanceof Uint8ClampedArray)){this.mem.setUint8(t+48,0);return}let a=n.subarray(0,i.length);i.set(a),e(t+40,a.length),this.mem.setUint8(t+48,1)},"syscall/js.copyBytesToJS":t=>{let i=s(t+8),n=o(t+16);if(!(i instanceof Uint8Array||i instanceof Uint8ClampedArray)){this.mem.setUint8(t+48,0);return}let a=n.subarray(0,i.length);i.set(a),e(t+40,a.length),this.mem.setUint8(t+48,1)},debug:e=>{console.log(e)}}}}async run(e){this._inst=e,this.mem=new DataView(this._inst.exports.mem.buffer),this._values=[NaN,0,null,!0,!1,global,this],this._goRefCounts=Array(this._values.length).fill(1/0),this._ids=new Map([[0,1],[null,2],[!0,3],[!1,4],[global,5],[this,6]]),this._idPool=[],this.exited=!1;let i=4096,n=e=>{let n=i,s=t.encode(e+"\0");return new Uint8Array(this.mem.buffer,i,s.length).set(s),(i+=s.length)%8!=0&&(i+=8-i%8),n},s=this.argv.length,a=[];this.argv.forEach(e=>{a.push(n(e))}),a.push(0),Object.keys(this.env).sort().forEach(e=>{a.push(n(`${e}=${this.env[e]}`))}),a.push(0);let o=i;a.forEach(e=>{this.mem.setUint32(i,e,!0),this.mem.setUint32(i+4,0,!0),i+=8}),this._inst.exports.run(s,o),this.exited&&this._resolveExitPromise(),await this._exitPromise}_resume(){if(this.exited)throw Error("Go program has already exited");this._inst.exports.resume(),this.exited&&this._resolveExitPromise()}_makeFuncWrapper(e){let t=this;return function(){let i={id:e,this:this,args:arguments};return t._pendingEvent=i,t._resume(),i.result}}},global.require&&global.require.main===module&&global.process&&global.process.versions&&!global.process.versions.electron){n.argv.length<3&&(console.error("usage: go_js_wasm_exec [wasm binary] [arguments]"),n.exit(1));let e=new Go;e.argv=n.argv.slice(2),e.env=Object.assign({TMPDIR:require("os").tmpdir()},n.env),e.exit=n.exit,WebAssembly.instantiate(fs.readFileSync(n.argv[2]),e.importObject).then(t=>(n.on("exit",t=>{0!==t||e.exited||(e._pendingEvent={id:0},e._resume())}),e.run(t.instance))).catch(e=>{console.error(e),n.exit(1)})}})(),!window.Go)throw Error(`Failed to load module Go. window.Go is ${window.Go}.`);let t=new Go,{instance:i}=await WebAssembly.instantiateStreaming(fetch(e),t.importObject);if(t.run(i),!window.e2ee)throw Error(`Failed to load module e2ee. window.e2ee is ${window.e2ee}.`)}static version(){return"2021.1.0"}static wasmVersion(){return window.e2ee.version()}}async function a(e,t){if(t.audio&&"boolean"!=typeof t.audio)for(let i of e.getAudioTracks())await i.applyConstraints(t.audio);if(t.video&&"boolean"!=typeof t.video)for(let i of e.getVideoTracks())await i.applyConstraints(t.video)}var o=Uint8Array,l=Uint16Array,r=Int32Array,g=new o([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),c=new o([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),d=new o([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),C=function(e,t){for(var i=new l(31),n=0;n<31;++n)i[n]=t+=1<>1|(21845&Z)<<1;w=(61680&(w=(52428&w)>>2|(13107&w)<<2))>>4|(3855&w)<<4,p[Z]=((65280&w)>>8|(255&w)<<8)>>1}for(var f=function(e,t,i){for(var n,s=e.length,a=0,o=new l(t);a>g]=c}else for(a=0,n=new l(s);a>15-e[a]);return n},S=new o(288),Z=0;Z<144;++Z)S[Z]=8;for(var Z=144;Z<256;++Z)S[Z]=9;for(var Z=256;Z<280;++Z)S[Z]=7;for(var Z=280;Z<288;++Z)S[Z]=8;for(var V=new o(32),Z=0;Z<32;++Z)V[Z]=5;var y=f(S,9,0),W=f(S,9,1),G=f(V,5,0),v=f(V,5,1),k=function(e){for(var t=e[0],i=1;it&&(t=e[i]);return t},R=function(e,t,i){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(7&t)&i},T=function(e,t){var i=t/8|0;return(e[i]|e[i+1]<<8|e[i+2]<<16)>>(7&t)},O=function(e){return(e+7)/8|0},X=function(e,t,i){return(null==i||i>e.length)&&(i=e.length),new o(e.subarray(t,i))},B=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(e,t,i){var n=Error(t||B[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,E),!i)throw n;return n},N=function(e,t,i,n){var s=e.length;if(!s||t.f&&!t.l)return i||new o(0);var a=!i,l=a||2!=t.i,r=t.i;a&&(i=new o(3*s));var C=function(e){var t=i.length;if(e>t){var n=new o(Math.max(2*t,e));n.set(i),i=n}},h=t.f||0,m=t.p||0,u=t.b||0,b=t.l,p=t.d,Z=t.m,w=t.n,S=8*s;do{if(!b){h=R(e,m,1);var V=R(e,m+1,3);if(m+=3,V){if(1==V)b=W,p=v,Z=9,w=5;else if(2==V){var y=R(e,m,31)+257,G=R(e,m+10,15)+4,B=y+R(e,m+5,31)+1;m+=14;for(var N=new o(B),Y=new o(19),D=0;D>4;if(F<16)N[D++]=F;else{var j=0,Q=0;for(16==F?(Q=3+R(e,m,3),m+=2,j=N[D-1]):17==F?(Q=3+R(e,m,7),m+=3):18==F&&(Q=11+R(e,m,127),m+=7);Q--;)N[D++]=j}}var P=N.subarray(0,y),x=N.subarray(y);Z=k(P),w=k(x),b=f(P,Z,1),p=f(x,w,1)}else E(1)}else{var F=O(m)+4,H=e[F-4]|e[F-3]<<8,M=F+H;if(M>s){r&&E(0);break}l&&C(u+H),i.set(e.subarray(F,M),u),t.b=u+=H,t.p=m=8*M,t.f=h;continue}if(m>S){r&&E(0);break}}l&&C(u+131072);for(var _=(1<>4;if((m+=15&j)>S){r&&E(0);break}if(j||E(2),$<256)i[u++]=$;else if(256==$){q=m,b=null;break}else{var ee=$-254;if($>264){var D=$-257,et=g[D];ee=R(e,m,(1<>4;ei||E(3),m+=15&ei;var x=A[en];if(en>3){var et=c[en];x+=T(e,m)&(1<S){r&&E(0);break}l&&C(u+131072);var es=u+ee;if(u>8},D=function(e,t,i){i<<=7&t;var n=t/8|0;e[n]|=i,e[n+1]|=i>>8,e[n+2]|=i>>16},L=function(e,t){for(var i=[],n=0;nI&&(I=a[n].s);var m=new l(I+1),u=K(i[C-1],m,0);if(u>t){var n=0,A=0,b=u-t,p=1<t)A+=p-(1<>=b;A>0;){var w=a[n].s;m[w]=0&&A;--n){var f=a[n].s;m[f]==t&&(--m[f],++A)}u=t}return{t:new o(m),l:u}},K=function(e,t,i){return -1==e.s?Math.max(K(e.l,t,i+1),K(e.r,t,i+1)):t[e.s]=i},J=function(e){for(var t=e.length;t&&!e[--t];);for(var i=new l(++t),n=0,s=e[0],a=1,o=function(e){i[n++]=e},r=1;r<=t;++r)if(e[r]==s&&r!=t)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=e[r]}return{c:i.subarray(0,n),n:t}},U=function(e,t){for(var i=0,n=0;n>8,e[s+2]=255^e[s],e[s+3]=255^e[s+1];for(var a=0;a4&&!Q[d[x-1]];--x);var H=h+5<<3,M=U(s,S)+U(a,V)+o,_=U(s,Z)+U(a,v)+o+14+3*x+U(N,Q)+2*N[16]+3*N[17]+7*N[18];if(C>=0&&H<=M&&H<=_)return F(t,I,e.subarray(C,C+h));if(Y(t,I,1+(_15&&(Y(t,I,ee[K]>>5&127),I+=ee[K]>>12)}}else m=y,u=S,A=G,b=V;for(var K=0;K255){var et=ei>>18&31;D(t,I,m[et+257]),I+=u[et+257],et>7&&(Y(t,I,ei>>23&31),I+=g[et]);var en=31&ei;D(t,I,A[en]),I+=b[en],en>3&&(D(t,I,ei>>5&8191),I+=c[en])}else D(t,I,m[ei]),I+=u[ei]}return D(t,I,m[256]),I+u[256]},Q=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),P=new o(0),x=function(e,t,i,n,s,a){var d=a.z||e.length,C=new o(n+d+5*(1+Math.ceil(d/7e3))+s),h=C.subarray(n,C.length-s),I=a.l,u=7&(a.r||0);if(t){u&&(h[0]=a.r>>3);for(var A=Q[t-1],p=A>>13,Z=8191&A,w=(1<7e3||E>24576)&&(J>423||!I)){u=j(e,h,0,G,v,k,T,E,Y,B-Y,u),E=R=T=0,Y=B;for(var U=0;U<286;++U)v[U]=0;for(var U=0;U<30;++U)k[U]=0}var P=2,x=0,H=Z,M=L-K&32767;if(J>2&&D==W(B-M))for(var _=Math.min(p,J)-1,z=Math.min(32767,B),q=Math.min(258,J);M<=z&&--H&&L!=K;){if(e[B+P]==e[B+P-M]){for(var $=0;$P){if(P=$,x=M,$>_)break;for(var ee=Math.min(M,$-2),et=0,U=0;Uet&&(et=es,K=ei)}}}K=f[L=K],M+=L-K&32767}if(x){G[E++]=268435456|m[P]<<18|b[x];var ea=31&m[P],eo=31&b[x];T+=g[ea]+c[eo],++v[257+ea],++k[eo],N=B+P,++R}else G[E++]=e[B],++v[e[B]]}}for(B=Math.max(B,N);B=d&&(h[u/8|0]=I,el=d),u=F(h,u+1,e.subarray(B,el))}a.i=d}return X(C,0,n+O(u)+s)},H=function(){var e=1,t=0;return{p:function(i){for(var n=e,s=t,a=0|i.length,o=0;o!=a;){for(var l=Math.min(o+2655,a);o>16),s=(65535&s)+15*(s>>16)}e=n,t=s},d:function(){return e%=65521,t%=65521,(255&e)<<24|(65280&e)<<8|(255&t)<<8|t>>8}}},M=function(e,t,i,n,s){if(!s&&(s={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),l=new o(a.length+e.length);l.set(a),l.set(e,a.length),e=l,s.w=a.length}return x(e,null==t.level?6:t.level,null==t.mem?s.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,i,n,s)},_=function(e,t,i){for(;i;++t)e[t]=i,i>>>=8},z=function(e,t){var i=t.level;if(e[0]=120,e[1]=(0==i?0:i<6?1:9==i?3:2)<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var n=H();n.p(t.dictionary),_(e,2,n.d())}};function q(e,t){t||(t={});var i=H();i.p(e);var n=M(e,t,t.dictionary?6:2,4);return z(n,t),_(n,n.length-4,i.d()),n}function $(e,t){return N(e.subarray((((15&e[0])!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&E(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&E(6,"invalid zlib data: "+(32&e[1]?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2),-4),{i:2},t,t)}var ee="undefined"!=typeof TextDecoder&&new TextDecoder;try{ee.decode(P,{stream:!0})}catch(e){}function et(){let e=window.navigator.userAgent.toLocaleLowerCase();return -1!==e.indexOf("edge")?"edge":-1!==e.indexOf("chrome")&&-1===e.indexOf("edge")?"chrome":-1!==e.indexOf("safari")&&-1===e.indexOf("chrome")?"safari":-1!==e.indexOf("opera")?"opera":-1!==e.indexOf("firefox")?"firefox":null}function ei(e){return void 0!==e.authn_metadata?e.authn_metadata:void 0!==e.metadata?e.metadata:null}function en(e){return"object"==typeof e&&null!==e&&"pre_key_bundle"in e?e.pre_key_bundle:null}class es extends Error{}function ea(e,t,i){let n=new Event(e);try{n.data=JSON.parse(JSON.stringify(t))}catch(e){n.data=t}return n.transportType=i,n}function eo(e,t,i,n,s){let a=new Event(e);try{a.data=JSON.parse(JSON.stringify(t))}catch(e){a.data=t}return a.logType=i,a.dataChannelId=n,a.dataChannelLabel=s,a}function el(e,t){if(t){let t=$(new Uint8Array(e));return new TextDecoder().decode(t)}return e}class er{constructor(e,t,i,n,s,a){this.senderStreamInitialized=new WeakSet,this.role=t,this.channelId=i,this.metadata=n,this.signalingUrlCandidates=e,this.options=s,this.connectionTimeout=6e4,"number"==typeof this.options.timeout&&(console.warn("@deprecated timeout option will be removed in a future version. Use connectionTimeout."),this.connectionTimeout=this.options.timeout),"number"==typeof this.options.connectionTimeout&&(this.connectionTimeout=this.options.connectionTimeout),this.disconnectWaitTimeout=3e3,"number"==typeof this.options.disconnectWaitTimeout&&(this.disconnectWaitTimeout=this.options.disconnectWaitTimeout),this.signalingCandidateTimeout=3e3,"number"==typeof this.options.signalingCandidateTimeout&&(this.signalingCandidateTimeout=this.options.signalingCandidateTimeout),this.constraints=null,this.debug=a,this.simulcast=!1,this.spotlight=!1,this.sessionId=null,this.clientId=null,this.bundleId=null,this.connectionId=null,this.remoteConnectionIds=[],this.stream=null,this.ws=null,this.pc=null,this.encodings=[],this.callbacks={disconnect:()=>{},push:()=>{},addstream:()=>{},track:()=>{},removestream:()=>{},removetrack:()=>{},notify:()=>{},log:()=>{},timeout:()=>{},timeline:()=>{},signaling:()=>{},message:()=>{},datachannel:()=>{}},this.authMetadata=null,this.e2ee=null,this.connectionTimeoutTimerId=0,this.monitorSignalingWebSocketEventTimerId=0,this.monitorIceConnectionStateChangeTimerId=0,this.soraDataChannels={},this.mids={audio:"",video:""},this.signalingSwitched=!1,this.signalingOfferMessageDataChannels={},this.connectedSignalingUrl="",this.contactSignalingUrl=""}on(e,t){"addstream"===e?console.warn("@deprecated addstream callback will be removed in a future version. Use track callback."):"removestream"===e&&console.warn("@deprecated removestream callback will be removed in a future version. Use removetrack callback."),e in this.callbacks&&(this.callbacks[e]=t)}stopAudioTrack(e){return console.warn("@deprecated stopAudioTrack will be removed in a future version. Use removeAudioTrack instead."),this.removeAudioTrack(e)}removeAudioTrack(e){for(let t of e.getAudioTracks())t.enabled=!1;return new Promise((t,i)=>{setTimeout(()=>{Promise.all(e.getAudioTracks().map(async t=>{if(t.stop(),e.removeTrack(t),null!==this.pc){let e=this.pc.getSenders().find(e=>e.track&&e.track.id===t.id);if(e)return e.replaceTrack(null)}})).then(()=>t()).catch(i)},100)})}stopVideoTrack(e){return console.warn("@deprecated stopVideoTrack will be removed in a future version. Use removeVideoTrack instead."),this.removeVideoTrack(e)}removeVideoTrack(e){for(let t of e.getVideoTracks())t.enabled=!1;return new Promise((t,i)=>{setTimeout(()=>{Promise.all(e.getVideoTracks().map(async t=>{if(t.stop(),e.removeTrack(t),null!==this.pc){let e=this.pc.getSenders().find(e=>e.track&&e.track.id===t.id);if(e)return e.replaceTrack(null)}})).then(()=>t()).catch(i)},100)})}async replaceAudioTrack(e,t){await this.removeAudioTrack(e);let i=this.getAudioTransceiver();if(null===i)throw Error("Unable to set an audio track. Audio track sender is undefined");e.addTrack(t),await i.sender.replaceTrack(t),await this.setupSenderTransform(i.sender)}async replaceVideoTrack(e,t){await this.removeVideoTrack(e);let i=this.getVideoTransceiver();if(null===i)throw Error("Unable to set video track. Video track sender is undefined");e.addTrack(t),await i.sender.replaceTrack(t),await this.setupSenderTransform(i.sender)}signalingTerminate(){for(let e of Object.keys(this.soraDataChannels)){let t=this.soraDataChannels[e];t&&t.close(),delete this.soraDataChannels[e]}this.ws&&(this.ws.close(),this.ws=null),this.pc&&this.pc.close(),this.e2ee&&this.e2ee.terminateWorker(),this.initializeConnection()}abendPeerConnectionState(e){for(let e of(this.clearMonitorIceConnectionStateChange(),this.pc&&(this.pc.ondatachannel=null,this.pc.oniceconnectionstatechange=null,this.pc.onicegatheringstatechange=null,this.pc.onconnectionstatechange=null),this.ws&&(this.ws.onclose=e=>{this.writeWebSocketTimelineLog("onclose",{code:e.code,reason:e.reason})},this.ws.onmessage=null,this.ws.onerror=null),Object.keys(this.soraDataChannels))){let t=this.soraDataChannels[e];t&&(t.onclose=e=>{let t=e.currentTarget;this.writeDataChannelTimelineLog("onclose",t),this.trace("CLOSE DATA CHANNEL",t.label)},t.onmessage=null,t.onerror=null)}for(let e of Object.keys(this.soraDataChannels)){let t=this.soraDataChannels[e];t&&t.close(),delete this.soraDataChannels[e]}this.ws&&(this.ws.close(),this.ws=null),this.pc&&this.pc.close(),this.e2ee&&this.e2ee.terminateWorker(),this.initializeConnection();let t=this.soraCloseEvent("abend",e);this.callbacks.disconnect(t),this.writeSoraTimelineLog("disconnect-abend",t)}async abend(e,t){for(let e of(this.clearMonitorIceConnectionStateChange(),this.pc&&(this.pc.ondatachannel=null,this.pc.oniceconnectionstatechange=null,this.pc.onicegatheringstatechange=null,this.pc.onconnectionstatechange=null),this.ws&&(this.ws.onclose=e=>{this.writeWebSocketTimelineLog("onclose",{code:e.code,reason:e.reason})},this.ws.onmessage=null,this.ws.onerror=null),Object.keys(this.soraDataChannels))){let t=this.soraDataChannels[e];t&&(t.onclose=e=>{let t=e.currentTarget;this.writeDataChannelTimelineLog("onclose",t),this.trace("CLOSE DATA CHANNEL",t.label)},t.onmessage=null,t.onerror=null)}if(this.soraDataChannels.signaling){let t={type:"disconnect",reason:e};if(this.signalingOfferMessageDataChannels.signaling&&!0===this.signalingOfferMessageDataChannels.signaling.compress){let e=q(new TextEncoder().encode(JSON.stringify(t)),{});if("open"===this.soraDataChannels.signaling.readyState)try{this.soraDataChannels.signaling.send(e),this.writeDataChannelSignalingLog("send-disconnect",this.soraDataChannels.signaling,t)}catch(t){let e=t.message;this.writeDataChannelSignalingLog("failed-to-send-disconnect",this.soraDataChannels.signaling,e)}}else if("open"===this.soraDataChannels.signaling.readyState)try{this.soraDataChannels.signaling.send(JSON.stringify(t)),this.writeDataChannelSignalingLog("send-disconnect",this.soraDataChannels.signaling,t)}catch(t){let e=t.message;this.writeDataChannelSignalingLog("failed-to-send-disconnect",this.soraDataChannels.signaling,e)}}for(let e of Object.keys(this.soraDataChannels)){let t=this.soraDataChannels[e];t&&(t.onerror=null,t.close()),delete this.soraDataChannels[e]}if(await this.disconnectWebSocket(e),await this.disconnectPeerConnection(),this.e2ee&&this.e2ee.terminateWorker(),this.initializeConnection(),"WEBSOCKET-ONCLOSE"===e&&t&&(1e3===t.code||1005===t.code)){let e=this.soraCloseEvent("normal","DISCONNECT",t);this.writeSoraTimelineLog("disconnect-normal",e),this.callbacks.disconnect(e);return}let i=this.soraCloseEvent("abend",e,t);this.writeSoraTimelineLog("disconnect-abend",i),this.callbacks.disconnect(this.soraCloseEvent("abend",e,t))}initializeConnection(){this.simulcast=!1,this.spotlight=!1,this.sessionId=null,this.clientId=null,this.bundleId=null,this.connectionId=null,this.remoteConnectionIds=[],this.stream=null,this.ws=null,this.pc=null,this.encodings=[],this.authMetadata=null,this.e2ee=null,this.soraDataChannels={},this.mids={audio:"",video:""},this.signalingSwitched=!1,this.signalingOfferMessageDataChannels={},this.contactSignalingUrl="",this.connectedSignalingUrl="",this.clearConnectionTimeout()}disconnectWebSocket(e){let t=0;return this.signalingSwitched?(this.ws&&(this.ws.close(),this.ws=null),Promise.resolve(null)):new Promise((i,n)=>{if(!this.ws)return i(null);if(this.ws.onclose=e=>(this.ws&&(this.ws.close(),this.ws=null),clearTimeout(t),this.writeWebSocketTimelineLog("onclose",{code:e.code,reason:e.reason}),i({code:e.code,reason:e.reason})),1!==this.ws.readyState)return this.ws.close(),this.ws=null,i(null);{let n={type:"disconnect",reason:e};this.ws.send(JSON.stringify(n)),this.writeWebSocketSignalingLog("send-disconnect",n),t=setTimeout(()=>{this.ws&&(this.ws.close(),this.ws=null),i({code:1006,reason:""})},this.disconnectWaitTimeout)}})}disconnectDataChannel(){let e=()=>{for(let e of Object.keys(this.soraDataChannels)){let t=this.soraDataChannels[e];t&&(t.onerror=null,t.close()),delete this.soraDataChannels[e]}};return new Promise((t,i)=>{if(!this.soraDataChannels.signaling)return e(),t({code:4999,reason:""});let n=setTimeout(()=>(e(),i()),this.disconnectWaitTimeout),s=[];for(let i of Object.keys(this.soraDataChannels)){let a=this.soraDataChannels[i];if(a){a.onerror=()=>(clearTimeout(n),e(),t({code:4999,reason:""}));let i=()=>new Promise((e,t)=>{let i=0,n=setInterval(()=>{i++,"closed"===a.readyState&&(clearInterval(n),e()),this.disconnectWaitTimeout<100*i&&(e(),clearInterval(n))},100)});s.push(i())}}Promise.all(s).then(()=>{0===Object.keys(this.soraDataChannels).length?t(null):t({code:4999,reason:""})}).catch(e=>i(e)).finally(()=>{e(),clearTimeout(n)});let a={type:"disconnect",reason:"NO-ERROR"};if(this.signalingOfferMessageDataChannels.signaling&&!0===this.signalingOfferMessageDataChannels.signaling.compress){let e=q(new TextEncoder().encode(JSON.stringify(a)),{});if("open"===this.soraDataChannels.signaling.readyState)try{this.soraDataChannels.signaling.send(e),this.writeDataChannelSignalingLog("send-disconnect",this.soraDataChannels.signaling,a)}catch(t){let e=t.message;this.writeDataChannelSignalingLog("failed-to-send-disconnect",this.soraDataChannels.signaling,e)}}else if("open"===this.soraDataChannels.signaling.readyState)try{this.soraDataChannels.signaling.send(JSON.stringify(a)),this.writeDataChannelSignalingLog("send-disconnect",this.soraDataChannels.signaling,a)}catch(t){let e=t.message;this.writeDataChannelSignalingLog("failed-to-send-disconnect",this.soraDataChannels.signaling,e)}})}disconnectPeerConnection(){return new Promise((e,t)=>(this.pc&&"closed"!==this.pc.connectionState&&this.pc.close(),e()))}async disconnect(){for(let e of(this.clearMonitorIceConnectionStateChange(),this.pc&&(this.pc.ondatachannel=null,this.pc.oniceconnectionstatechange=null,this.pc.onicegatheringstatechange=null,this.pc.onconnectionstatechange=null),this.ws&&(this.ws.onclose=e=>{this.writeWebSocketTimelineLog("onclose",{code:e.code,reason:e.reason})},this.ws.onmessage=null,this.ws.onerror=null),Object.keys(this.soraDataChannels))){let t=this.soraDataChannels[e];t&&(t.onmessage=null,t.onclose=e=>{let t=e.currentTarget;this.writeDataChannelTimelineLog("onclose",t),this.trace("CLOSE DATA CHANNEL",t.label)})}let e=null;if(this.signalingSwitched){try{let t=await this.disconnectDataChannel();null!==t&&(e=this.soraCloseEvent("normal","DISCONNECT",t))}catch(t){e=this.soraCloseEvent("abend","DISCONNECT-TIMEOUT")}await this.disconnectWebSocket("NO-ERROR"),await this.disconnectPeerConnection()}else{let t=await this.disconnectWebSocket("NO-ERROR");await this.disconnectPeerConnection(),null!==t&&(e=this.soraCloseEvent("normal","DISCONNECT",t))}this.e2ee&&this.e2ee.terminateWorker(),this.initializeConnection(),e&&("abend"===e.type?this.writeSoraTimelineLog("disconnect-abend",e):"normal"===e.type&&this.writeSoraTimelineLog("disconnect-normal",e),this.callbacks.disconnect(e))}setupE2EE(){!0===this.options.e2ee&&(this.e2ee=new s,this.e2ee.onWorkerDisconnect=async()=>{await this.abend("INTERNAL-ERROR",{reason:"CRASH-E2EE-WORKER"})},this.e2ee.startWorker())}startE2EE(){if(!0===this.options.e2ee&&this.e2ee){if(!this.connectionId){let e=Error();throw e.message="E2EE failed. Self connectionId is null",e}this.e2ee.clearWorker();let e=this.e2ee.start(this.connectionId);this.e2ee.postSelfSecretKeyMaterial(this.connectionId,e.selfKeyId,e.selfSecretKeyMaterial)}}async getSignalingWebSocket(e){if("string"==typeof e)return new Promise((t,i)=>{let n=new WebSocket(e);n.onclose=e=>{let t=new es(`Signaling failed. CloseEventCode:${e.code} CloseEventReason:'${e.reason}'`);t.code=e.code,t.reason=e.reason,this.writeWebSocketTimelineLog("onclose",t),i(t)},n.onopen=e=>{t(n)}});if(Array.isArray(e)){let t=!1,i=e=>new Promise((i,n)=>{let s=new WebSocket(e),a=setTimeout(()=>{this.writeWebSocketSignalingLog("signaling-url-candidate",{type:"timeout",url:s.url}),s&&!t&&(s.onclose=null,s.onerror=null,s.onopen=null,s.close(),n())},this.signalingCandidateTimeout);s.onclose=e=>{this.writeWebSocketSignalingLog("signaling-url-candidate",{type:"close",url:s.url,message:"WebSocket closed",code:e.code,reason:e.reason}),s&&s.close(),clearInterval(a),n()},s.onerror=e=>{this.writeWebSocketSignalingLog("signaling-url-candidate",{type:"error",url:s.url,message:"Failed to connect WebSocket"}),s&&(s.onclose=null,s.close()),clearInterval(a),n()},s.onopen=e=>{s&&(clearInterval(a),t?(this.writeWebSocketSignalingLog("signaling-url-candidate",{type:"open",url:s.url,selected:!1}),s.onerror=null,s.onclose=null,s.onopen=null,s.close(),n()):(this.writeWebSocketSignalingLog("signaling-url-candidate",{type:"open",url:s.url,selected:!0}),s.onerror=null,s.onclose=null,s.onopen=null,t=!0,i(s)))}});try{return await Promise.any(e.map(e=>i(e)))}catch(e){throw new es("Signaling failed. All signaling URL candidates failed to connect")}}throw new es("Signaling failed. Invalid format signaling URL candidates")}async signaling(e,t=!1){let i=await this.createOffer();return this.trace("CREATE OFFER",i),new Promise((n,s)=>{this.writeWebSocketSignalingLog("new-websocket",e.url),e.binaryType="arraybuffer",e.onclose=e=>{let t=new es(`Signaling failed. CloseEventCode:${e.code} CloseEventReason:'${e.reason}'`);t.code=e.code,t.reason=e.reason,this.writeWebSocketTimelineLog("onclose",t),this.signalingTerminate(),s(t)},e.onmessage=async t=>{if(t.data instanceof ArrayBuffer){this.writeWebSocketSignalingLog("onmessage-e2ee",t.data),this.signalingOnMessageE2EE(t.data);return}if("string"!=typeof t.data)throw Error("Received invalid signaling data");let i=JSON.parse(t.data);if("offer"===i.type)this.writeWebSocketSignalingLog("onmessage-offer",i),this.signalingOnMessageTypeOffer(i),this.connectedSignalingUrl=e.url,n(i);else if("update"===i.type)this.writeWebSocketSignalingLog("onmessage-update",i),await this.signalingOnMessageTypeUpdate(i);else if("re-offer"===i.type)this.writeWebSocketSignalingLog("onmessage-re-offer",i),await this.signalingOnMessageTypeReOffer(i);else if("ping"===i.type)await this.signalingOnMessageTypePing(i);else if("push"===i.type)this.callbacks.push(i,"websocket");else if("notify"===i.type)"connection.created"===i.event_type?this.writeWebSocketTimelineLog("notify-connection.created",i):"connection.destroyed"===i.event_type&&this.writeWebSocketTimelineLog("notify-connection.destroyed",i),this.signalingOnMessageTypeNotify(i,"websocket");else if("switched"===i.type)this.writeWebSocketSignalingLog("onmessage-switched",i),this.signalingOnMessageTypeSwitched(i);else if("redirect"===i.type){this.writeWebSocketSignalingLog("onmessage-redirect",i);try{let e=await this.signalingOnMessageTypeRedirect(i);n(e)}catch(e){s(e)}}},(async()=>{let n;try{n=function(e,t,i,n,s,a){if("sendrecv"!==t&&"sendonly"!==t&&"recvonly"!==t)throw Error("Unknown role type");if(null==i)throw Error("channelId can not be null or undefined");let o={type:"connect",sora_client:"Sora JavaScript SDK 2024.1.2",environment:window.navigator.userAgent,role:t,channel_id:i,sdp:e,audio:!0,video:!0};if("sendrecv"===t&&!1===s.multistream)throw Error("Failed to parse options. Options multistream must be true when connecting using 'sendrecv'");!0===a&&(o.redirect=!0),"boolean"==typeof s.multistream&&(o.multistream=s.multistream),"boolean"==typeof s.simulcast&&(o.simulcast=s.simulcast),void 0!==s.simulcastRid&&0<=["r0","r1","r2"].indexOf(s.simulcastRid)&&(o.simulcast_rid=s.simulcastRid),"boolean"==typeof s.spotlight&&(o.spotlight=s.spotlight),"spotlightNumber"in s&&(o.spotlight_number=s.spotlightNumber);let l=["none","r0","r1","r2"];void 0!==s.spotlightFocusRid&&0<=l.indexOf(s.spotlightFocusRid)&&(o.spotlight_focus_rid=s.spotlightFocusRid),void 0!==s.spotlightUnfocusRid&&0<=l.indexOf(s.spotlightUnfocusRid)&&(o.spotlight_unfocus_rid=s.spotlightUnfocusRid),void 0!==n&&(o.metadata=n),void 0!==s.signalingNotifyMetadata&&(o.signaling_notify_metadata=s.signalingNotifyMetadata),void 0!==s.forwardingFilter&&(o.forwarding_filter=s.forwardingFilter),void 0!==s.clientId&&(o.client_id=s.clientId),void 0!==s.bundleId&&(o.bundle_id=s.bundleId),"boolean"==typeof s.dataChannelSignaling&&(o.data_channel_signaling=s.dataChannelSignaling),"boolean"==typeof s.ignoreDisconnectWebSocket&&(o.ignore_disconnect_websocket=s.ignoreDisconnectWebSocket);let r=["audioCodecType","audioBitRate"],g=["audioOpusParamsChannels","audioOpusParamsMaxplaybackrate","audioOpusParamsStereo","audioOpusParamsSpropStereo","audioOpusParamsMinptime","audioOpusParamsPtime","audioOpusParamsUseinbandfec","audioOpusParamsUsedtx"],c=["videoCodecType","videoBitRate","videoVP9Params","videoH264Params","videoH265Params","videoAV1Params"],d=Object.assign({},s);Object.keys(d).filter(e=>{"audio"===e&&"boolean"==typeof d[e]||"video"===e&&"boolean"==typeof d[e]||0<=r.indexOf(e)&&null!==d[e]||0<=g.indexOf(e)&&null!==d[e]||0<=c.indexOf(e)&&null!==d[e]||delete d[e]}),void 0!==d.audio&&(o.audio=d.audio);let C=Object.keys(d).some(e=>0<=r.indexOf(e));o.audio&&C&&(o.audio={},"audioCodecType"in d&&(o.audio.codec_type=d.audioCodecType),"audioBitRate"in d&&(o.audio.bit_rate=d.audioBitRate));let h=Object.keys(d).some(e=>0<=g.indexOf(e));o.audio&&h&&("object"!=typeof o.audio&&(o.audio={}),o.audio.opus_params={},"audioOpusParamsChannels"in d&&(o.audio.opus_params.channels=d.audioOpusParamsChannels),"audioOpusParamsMaxplaybackrate"in d&&(o.audio.opus_params.maxplaybackrate=d.audioOpusParamsMaxplaybackrate),"audioOpusParamsStereo"in d&&(o.audio.opus_params.stereo=d.audioOpusParamsStereo),"audioOpusParamsSpropStereo"in d&&(o.audio.opus_params.sprop_stereo=d.audioOpusParamsSpropStereo),"audioOpusParamsMinptime"in d&&(o.audio.opus_params.minptime=d.audioOpusParamsMinptime),"audioOpusParamsPtime"in d&&(o.audio.opus_params.ptime=d.audioOpusParamsPtime),"audioOpusParamsUseinbandfec"in d&&(o.audio.opus_params.useinbandfec=d.audioOpusParamsUseinbandfec),"audioOpusParamsUsedtx"in d&&(o.audio.opus_params.usedtx=d.audioOpusParamsUsedtx)),void 0!==d.video&&(o.video=d.video);let I=Object.keys(d).some(e=>0<=c.indexOf(e));if(o.video&&I&&(o.video={},"videoCodecType"in d&&(o.video.codec_type=d.videoCodecType),"videoBitRate"in d&&(o.video.bit_rate=d.videoBitRate),"videoVP9Params"in d&&(o.video.vp9_params=d.videoVP9Params),"videoH264Params"in d&&(o.video.h264_params=d.videoH264Params),"videoH265Params"in d&&(o.video.h265_params=d.videoH265Params),"videoAV1Params"in d&&(o.video.av1_params=d.videoAV1Params)),o.simulcast&&!function(){if(!window.RTCRtpSender||!RTCRtpSender.getCapabilities)return!1;let e=RTCRtpSender.getCapabilities("video");if(!e)return!1;let t=e.headerExtensions.map(e=>e.uri);return["urn:ietf:params:rtp-hdrext:sdes:mid","urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id","urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id"].every(e=>t.includes(e))}()&&"recvonly"!==t)throw Error("Simulcast can not be used with this browser");if("boolean"==typeof s.e2ee&&(o.e2ee=s.e2ee),!0===s.e2ee){if(void 0===o.signaling_notify_metadata&&(o.signaling_notify_metadata={}),null===o.signaling_notify_metadata||"object"!=typeof o.signaling_notify_metadata)throw Error("E2EE failed. Options signalingNotifyMetadata must be type 'object'");!0===o.video&&(o.video={}),o.video&&(o.video.codec_type="VP8")}return Array.isArray(s.dataChannels)&&0{this.pc&&(this.writePeerConnectionTimelineLog("oniceconnectionstatechange",{connectionState:this.pc.connectionState,iceConnectionState:this.pc.iceConnectionState,iceGatheringState:this.pc.iceGatheringState}),this.trace("ONICECONNECTIONSTATECHANGE ICECONNECTIONSTATE",this.pc.iceConnectionState))},this.pc.onicegatheringstatechange=e=>{this.pc&&this.writePeerConnectionTimelineLog("onicegatheringstatechange",{connectionState:this.pc.connectionState,iceConnectionState:this.pc.iceConnectionState,iceGatheringState:this.pc.iceGatheringState})},this.pc.onconnectionstatechange=e=>{this.pc&&this.writePeerConnectionTimelineLog("onconnectionstatechange",{connectionState:this.pc.connectionState,iceConnectionState:this.pc.iceConnectionState,iceGatheringState:this.pc.iceGatheringState})},this.pc.ondatachannel=e=>{this.onDataChannel(e)}}async setRemoteDescription(e){if(!this.pc)return;let t=new RTCSessionDescription({type:"offer",sdp:this.processOfferSdp(e.sdp)});await this.pc.setRemoteDescription(t),this.writePeerConnectionTimelineLog("set-remote-description",t)}async createAnswer(e){if(!this.pc)return;for(let e of Object.values(this.mids)){let t=this.pc.getTransceivers().find(t=>t.mid===e);t&&"recvonly"===t.direction&&(t.direction="sendrecv")}if(this.simulcast&&("sendrecv"===this.role||"sendonly"===this.role)){let t=this.pc.getTransceivers().find(e=>{if(null!==e.mid&&null!==e.sender.track&&(null===e.currentDirection||"sendonly"===e.currentDirection)&&(""!==this.mids.video&&this.mids.video===e.mid||0<=e.mid.indexOf("video")))return e});if(t){await this.setSenderParameters(t,this.encodings),await this.setRemoteDescription(e),this.trace("TRANSCEIVER SENDER GET_PARAMETERS",t.sender.getParameters()),await this.setSenderParameters(t,this.encodings);let i=await this.pc.createAnswer();await this.pc.setLocalDescription(i),this.trace("TRANSCEIVER SENDER GET_PARAMETERS",t.sender.getParameters());return}}let t=await this.pc.createAnswer();this.writePeerConnectionTimelineLog("create-answer",t),await this.pc.setLocalDescription(t),this.writePeerConnectionTimelineLog("set-local-description",t)}processOfferSdp(e){let t=e;return"firefox"===et()&&(t=t.replace(/^m=(audio|video) 0 /gm,(e,t)=>`m=${t} 9 `)),t}async setupSenderTransform(e){if(null===this.e2ee||null===e.track||this.senderStreamInitialized.has(e)||"transform"in RTCRtpSender.prototype)return;let t=e.createEncodedStreams(),i=t.readable;this.e2ee.setupSenderTransform(i,t.writable),this.senderStreamInitialized.add(e)}async setupReceiverTransform(e,t){if(null===this.e2ee||"transform"in RTCRtpSender.prototype)return;let i=t.createEncodedStreams(),n=i.writable;this.e2ee.setupReceiverTransform(i.readable,n)}sendAnswer(){if(this.pc&&this.ws&&this.pc.localDescription){this.trace("ANSWER SDP",this.pc.localDescription.sdp);let e={type:"answer",sdp:this.pc.localDescription.sdp};this.ws.send(JSON.stringify(e)),this.writeWebSocketSignalingLog("send-answer",e)}}onIceCandidate(){return new Promise((e,t)=>{this.pc&&(this.pc.oniceconnectionstatechange=t=>{this.pc&&(this.writePeerConnectionTimelineLog("oniceconnectionstatechange",{connectionState:this.pc.connectionState,iceConnectionState:this.pc.iceConnectionState,iceGatheringState:this.pc.iceGatheringState}),this.trace("ONICECONNECTIONSTATECHANGE ICECONNECTIONSTATE",this.pc.iceConnectionState),"connected"===this.pc.iceConnectionState&&e())},this.pc.onicecandidate=t=>{if(this.writePeerConnectionTimelineLog("onicecandidate",t.candidate),this.pc&&this.trace("ONICECANDIDATE ICEGATHERINGSTATE",this.pc.iceGatheringState),null===t.candidate)e();else{let e=Object.assign(t.candidate.toJSON(),{type:"candidate"});this.trace("ONICECANDIDATE CANDIDATE MESSAGE",e),this.sendSignalingMessage(e)}})})}waitChangeConnectionStateConnected(){return new Promise((e,t)=>{if(this.pc&&void 0===this.pc.connectionState){e();return}let i=setInterval(()=>{if(this.pc)this.pc&&"connected"===this.pc.connectionState&&(clearInterval(i),e());else{let e=Error();e.message="PeerConnection connectionState did not change to 'connected'",clearInterval(i),t(e)}},10)})}monitorSignalingWebSocketEvent(){return new Promise((e,t)=>{this.monitorSignalingWebSocketEventTimerId=setInterval(()=>{this.ws&&(this.clearMonitorSignalingWebSocketEvent(),this.ws.onclose=e=>{let i=new es(`Signaling failed. CloseEventCode:${e.code} CloseEventReason:'${e.reason}'`);i.code=e.code,i.reason=e.reason,this.writeWebSocketTimelineLog("onclose",i),this.signalingTerminate(),t(i)},this.ws.onerror=e=>{let i=new es("Signaling failed. WebSocket onerror was called");this.writeWebSocketSignalingLog("onerror",i),this.signalingTerminate(),t(i)})},100)})}monitorWebSocketEvent(){this.ws&&(this.ws.onclose=async e=>{this.writeWebSocketTimelineLog("onclose",{code:e.code,reason:e.reason}),await this.abend("WEBSOCKET-ONCLOSE",{code:e.code,reason:e.reason})},this.ws.onerror=async e=>{this.writeWebSocketSignalingLog("onerror"),await this.abend("WEBSOCKET-ONERROR")})}monitorPeerConnectionState(){this.pc&&(this.pc.oniceconnectionstatechange=e=>{this.pc&&void 0===this.pc.connectionState&&(this.writePeerConnectionTimelineLog("oniceconnectionstatechange",{connectionState:this.pc.connectionState,iceConnectionState:this.pc.iceConnectionState,iceGatheringState:this.pc.iceGatheringState}),this.trace("ONICECONNECTIONSTATECHANGE ICECONNECTIONSTATE",this.pc.iceConnectionState),clearTimeout(this.monitorIceConnectionStateChangeTimerId),"failed"===this.pc.iceConnectionState?this.abendPeerConnectionState("ICE-CONNECTION-STATE-FAILED"):"disconnected"===this.pc.iceConnectionState&&(this.monitorIceConnectionStateChangeTimerId=setTimeout(()=>{this.pc&&"disconnected"===this.pc.iceConnectionState&&this.abendPeerConnectionState("ICE-CONNECTION-STATE-DISCONNECTED-TIMEOUT")},1e4)))},this.pc.onconnectionstatechange=e=>{this.pc&&(this.writePeerConnectionTimelineLog("onconnectionstatechange",{connectionState:this.pc.connectionState,iceConnectionState:this.pc.iceConnectionState,iceGatheringState:this.pc.iceGatheringState}),"failed"===this.pc.connectionState&&this.abendPeerConnectionState("CONNECTION-STATE-FAILED"))})}setConnectionTimeout(){return new Promise((e,t)=>{0{if(!this.pc||this.pc&&void 0!==this.pc.connectionState&&"connected"!==this.pc.connectionState){let e=Error();e.message="Signaling connection timeout",this.callbacks.timeout(),this.trace("DISCONNECT","Signaling connection timeout"),this.writePeerConnectionTimelineLog("signaling-connection-timeout",{connectionTimeout:this.connectionTimeout}),this.signalingTerminate(),t(e)}},this.connectionTimeout))})}clearConnectionTimeout(){clearTimeout(this.connectionTimeoutTimerId)}clearMonitorSignalingWebSocketEvent(){clearInterval(this.monitorSignalingWebSocketEventTimerId)}clearMonitorIceConnectionStateChange(){clearInterval(this.monitorIceConnectionStateChangeTimerId)}trace(e,t){this.callbacks.log(e,t),this.debug&&function(e,t,i){let n=e=>{if(e&&"object"==typeof e){let t=null;try{t=Object.keys(JSON.parse(JSON.stringify(e)))}catch(e){}t&&Array.isArray(t)?t.filter(t=>{console.group(t),n(e[t]),console.groupEnd()}):console.info(e)}else console.info(e)},s="";window.performance&&(s=`[${(window.performance.now()/1e3).toFixed(3)}]`),e&&(s=`${s}[${e}]`),void 0!==console.info&&void 0!==console.group?(console.group(`${s} ${t}`),n(i),console.groupEnd()):console.log(`${s} ${t} +`,i)}(this.clientId,e,t)}writeWebSocketSignalingLog(e,t){this.callbacks.signaling(ea(e,t,"websocket")),this.writeWebSocketTimelineLog(e,t)}writeDataChannelSignalingLog(e,t,i){this.callbacks.signaling(ea(e,i,"datachannel")),this.writeDataChannelTimelineLog(e,t,i)}writeWebSocketTimelineLog(e,t){let i=eo(e,t,"websocket");this.callbacks.timeline(i)}writeDataChannelTimelineLog(e,t,i){let n=eo(e,i,"datachannel",t.id,t.label);this.callbacks.timeline(n)}writePeerConnectionTimelineLog(e,t){let i=eo(e,t,"peerconnection");this.callbacks.timeline(i)}writeSoraTimelineLog(e,t){let i=eo(e,t,"sora");this.callbacks.timeline(i)}async createOffer(){let e=new window.RTCPeerConnection({iceServers:[]});if("safari"===et()){e.addTransceiver("video",{direction:"recvonly"}),e.addTransceiver("audio",{direction:"recvonly"});let t=await e.createOffer();return e.close(),this.writePeerConnectionTimelineLog("create-offer",t),t}let t=await e.createOffer({offerToReceiveAudio:!0,offerToReceiveVideo:!0});return e.close(),this.writePeerConnectionTimelineLog("create-offer",t),t}signalingOnMessageE2EE(e){if(this.e2ee){let t=new Uint8Array(e),i=this.e2ee.receiveMessage(t);this.e2ee.postRemoteSecretKeyMaterials(i),i.messages.filter(e=>{this.sendE2EEMessage(e.buffer)})}}signalingOnMessageTypeOffer(e){if(this.simulcast=e.simulcast,this.spotlight=e.spotlight,void 0!==e.session_id&&(this.sessionId=e.session_id),this.clientId=e.client_id,this.bundleId=e.bundle_id,this.connectionId=e.connection_id,void 0!==e.metadata&&(this.authMetadata=e.metadata),Array.isArray(e.encodings)&&(this.encodings=e.encodings),void 0!==e.mid&&void 0!==e.mid.audio&&(this.mids.audio=e.mid.audio),void 0!==e.mid&&void 0!==e.mid.video&&(this.mids.video=e.mid.video),e.data_channels)for(let t of e.data_channels)this.signalingOfferMessageDataChannels[t.label]=t;this.trace("SIGNALING OFFER MESSAGE",e),this.trace("OFFER SDP",e.sdp)}sendUpdateAnswer(){this.pc&&this.ws&&this.pc.localDescription&&(this.trace("ANSWER SDP",this.pc.localDescription.sdp),this.sendSignalingMessage({type:"update",sdp:this.pc.localDescription.sdp}))}sendReAnswer(){this.pc?.localDescription&&(this.trace("RE ANSWER SDP",this.pc.localDescription.sdp),this.sendSignalingMessage({type:"re-answer",sdp:this.pc.localDescription.sdp}))}async signalingOnMessageTypeUpdate(e){this.trace("SIGNALING UPDATE MESSGE",e),this.trace("UPDATE SDP",e.sdp),await this.setRemoteDescription(e),await this.createAnswer(e),this.sendUpdateAnswer()}async signalingOnMessageTypeReOffer(e){this.trace("SIGNALING RE OFFER MESSGE",e),this.trace("RE OFFER SDP",e.sdp),await this.setRemoteDescription(e),await this.createAnswer(e),this.sendReAnswer()}async signalingOnMessageTypePing(e){let t={type:"pong"};if(e.stats){let e=await this.getStats();t.stats=e}this.ws&&this.ws.send(JSON.stringify(t))}signalingOnMessageTypeNotify(e,t){if("connection.created"===e.event_type){let t=e.connection_id;if(this.connectionId!==t){let i=en(ei(e));if(i&&this.e2ee&&t){let e=this.e2ee.startSession(t,i);this.e2ee.postRemoteSecretKeyMaterials(e),e.messages.filter(e=>{this.sendE2EEMessage(e.buffer)}),this.e2ee.postSelfSecretKeyMaterial(e.selfConnectionId,e.selfKeyId,e.selfSecretKeyMaterial)}}(e.data&&Array.isArray(e.data)?e.data:e.metadata_list&&Array.isArray(e.metadata_list)?e.metadata_list:[]).filter(e=>{let t=en(ei(e)),i=e.connection_id;i&&this.e2ee&&t&&this.e2ee.addPreKeyBundle(i,t)})}else if("connection.destroyed"===e.event_type){let t=en(ei(e)),i=e.connection_id;if(t&&this.e2ee&&i){let e=this.e2ee.stopSession(i);this.e2ee.postSelfSecretKeyMaterial(e.selfConnectionId,e.selfKeyId,e.selfSecretKeyMaterial,5e3),e.messages.filter(e=>{this.sendE2EEMessage(e.buffer)}),this.e2ee.postRemoveRemoteDeriveKey(i)}}this.callbacks.notify(e,t)}signalingOnMessageTypeSwitched(e){if(this.signalingSwitched=!0,this.ws)for(let t of(e.ignore_disconnect_websocket&&(this.ws&&(this.ws.onclose=null,this.ws.close(),this.ws=null),this.writeWebSocketSignalingLog("close")),this.datachannels))this.callbacks.datachannel(function(e){let t=new Event("datachannel");return t.datachannel=e,t}(t))}async signalingOnMessageTypeRedirect(e){this.ws&&(this.ws.onclose=null,this.ws.onerror=null,this.ws.close(),this.ws=null);let t=await this.getSignalingWebSocket(e.location);return await this.signaling(t,!0)}async setSenderParameters(e,t){let i=e.sender.getParameters();i.encodings=t,await e.sender.setParameters(i),this.trace("TRANSCEIVER SENDER SET_PARAMETERS",i),this.writePeerConnectionTimelineLog("transceiver-sender-set-parameters",i)}async getStats(){let e=[];return this.pc&&(await this.pc.getStats()).forEach(t=>{e.push(t)}),e}onDataChannel(e){let t=e.channel;t.bufferedAmountLowThreshold=65536,t.binaryType="arraybuffer",this.soraDataChannels[t.label]=t,this.writeDataChannelTimelineLog("ondatachannel",t,{binaryType:t.binaryType,bufferedAmount:t.bufferedAmount,bufferedAmountLowThreshold:t.bufferedAmountLowThreshold,id:t.id,label:t.label,maxPacketLifeTime:t.maxPacketLifeTime,maxRetransmits:t.maxRetransmits,negotiated:t.negotiated,ordered:t.ordered,protocol:t.protocol,readyState:t.readyState,reliable:t.reliable}),e.channel.onbufferedamountlow=e=>{let t=e.currentTarget;this.writeDataChannelTimelineLog("onbufferedamountlow",t)},e.channel.onopen=e=>{let t=e.currentTarget;this.trace("OPEN DATA CHANNEL",t.label),"signaling"===t.label&&this.ws?this.writeDataChannelSignalingLog("onopen",t):this.writeDataChannelTimelineLog("onopen",t)},e.channel.onclose=async e=>{let t=e.currentTarget;this.writeDataChannelTimelineLog("onclose",t),this.trace("CLOSE DATA CHANNEL",t.label),await this.disconnect()},e.channel.onerror=async e=>{let t=e.currentTarget;this.writeDataChannelTimelineLog("onerror",t),this.trace("ERROR DATA CHANNEL",t.label),await this.abend("DATA-CHANNEL-ONERROR",{params:{label:t.label}})},"signaling"===e.channel.label?e.channel.onmessage=async e=>{let t=e.currentTarget,i=t.label,n=this.signalingOfferMessageDataChannels[i];if(!n){console.warn(`Received onmessage event for '${i}' DataChannel. But '${i}' DataChannel settings doesn't exist`);return}let s=JSON.parse(el(e.data,n.compress));this.writeDataChannelSignalingLog(`onmessage-${s.type}`,t,s),"re-offer"===s.type&&await this.signalingOnMessageTypeReOffer(s)}:"notify"===e.channel.label?e.channel.onmessage=e=>{let t=e.currentTarget,i=t.label,n=this.signalingOfferMessageDataChannels[i];if(!n){console.warn(`Received onmessage event for '${i}' DataChannel. But '${i}' DataChannel settings doesn't exist`);return}let s=JSON.parse(el(e.data,n.compress));"connection.created"===s.event_type?this.writeDataChannelTimelineLog("notify-connection.created",t,s):"connection.destroyed"===s.event_type&&this.writeDataChannelTimelineLog("notify-connection.destroyed",t,s),this.signalingOnMessageTypeNotify(s,"datachannel")}:"push"===e.channel.label?e.channel.onmessage=e=>{let t=e.currentTarget.label,i=this.signalingOfferMessageDataChannels[t];if(!i){console.warn(`Received onmessage event for '${t}' DataChannel. But '${t}' DataChannel settings doesn't exist`);return}let n=JSON.parse(el(e.data,i.compress));this.callbacks.push(n,"datachannel")}:"e2ee"===e.channel.label?e.channel.onmessage=e=>{let t=e.currentTarget,i=e.data;this.signalingOnMessageE2EE(i),this.writeDataChannelSignalingLog("onmessage-e2ee",t,i)}:"stats"===e.channel.label?e.channel.onmessage=async e=>{let t=e.currentTarget.label,i=this.signalingOfferMessageDataChannels[t];if(!i){console.warn(`Received onmessage event for '${t}' DataChannel. But '${t}' DataChannel settings doesn't exist`);return}if("req-stats"===JSON.parse(el(e.data,i.compress)).type){let e=await this.getStats();this.sendStatsMessage(e)}}:/^#.*/.exec(e.channel.label)&&(e.channel.onmessage=e=>{let t;if(null===e.currentTarget)return;let i=e.currentTarget.label,n=this.signalingOfferMessageDataChannels[i];if(!n){console.warn(`Received onmessage event for '${i}' DataChannel. But '${i}' DataChannel settings doesn't exist`);return}let s=e.target;"string"==typeof e.data?t=new TextEncoder().encode(e.data):e.data instanceof ArrayBuffer?t=e.data:console.warn("Received onmessage event data is not of type String or ArrayBuffer."),void 0!==t&&(!0===n.compress&&(t=$(new Uint8Array(t)).buffer),this.callbacks.message(function(e,t){let i=new Event("message");return i.label=e,i.data=t,i}(s.label,t)))})}sendSignalingMessage(e){if(this.soraDataChannels.signaling){if(this.signalingOfferMessageDataChannels.signaling&&!0===this.signalingOfferMessageDataChannels.signaling.compress){let t=q(new TextEncoder().encode(JSON.stringify(e)),{});this.soraDataChannels.signaling.send(t)}else this.soraDataChannels.signaling.send(JSON.stringify(e));this.writeDataChannelSignalingLog(`send-${e.type}`,this.soraDataChannels.signaling,e)}else null!==this.ws&&(this.ws.send(JSON.stringify(e)),this.writeWebSocketSignalingLog(`send-${e.type}`,e))}sendE2EEMessage(e){this.soraDataChannels.e2ee?(this.soraDataChannels.e2ee.send(e),this.writeDataChannelSignalingLog("send-e2ee",this.soraDataChannels.e2ee,e)):null!==this.ws&&(this.ws.send(e),this.writeWebSocketSignalingLog("send-e2ee",e))}sendStatsMessage(e){if(this.soraDataChannels.stats){let t={type:"stats",reports:e};if(this.signalingOfferMessageDataChannels.stats&&!0===this.signalingOfferMessageDataChannels.stats.compress){let e=q(new TextEncoder().encode(JSON.stringify(t)),{});this.soraDataChannels.stats.send(e)}else this.soraDataChannels.stats.send(JSON.stringify(t))}}getAudioTransceiver(){return this.pc&&this.mids.audio&&this.pc.getTransceivers().find(e=>e.mid===this.mids.audio)||null}getVideoTransceiver(){return this.pc&&this.mids.video&&this.pc.getTransceivers().find(e=>e.mid===this.mids.video)||null}soraCloseEvent(e,t,i){return new class extends Event{constructor(e,t,i){super(e),i&&(i.code&&(this.code=i.code),i.reason&&(this.reason=i.reason),i.params&&(this.params=i.params)),this.title=t}}(e,t,i)}sendMessage(e,t){let i=this.soraDataChannels[e];if(null===this.pc)return;if(void 0===i)throw Error("Could not find DataChannel");if("open"!==i.readyState)throw Error("Messaging DataChannel is not open");let n=this.signalingOfferMessageDataChannels[e];if(void 0!==n&&!0===n.compress){let e=q(t,{});i.send(e)}else i.send(t)}get e2eeSelfFingerprint(){if(this.options.e2ee&&this.e2ee)return this.e2ee.selfFingerprint()}get e2eeRemoteFingerprints(){if(this.options.e2ee&&this.e2ee)return this.e2ee.remoteFingerprints()}get audio(){return null!==this.getAudioTransceiver()}get video(){return null!==this.getVideoTransceiver()}get signalingUrl(){return this.signalingUrlCandidates}get datachannels(){if(!this.signalingSwitched)return[];let e=Object.keys(this.signalingOfferMessageDataChannels).filter(e=>/^#.*/.exec(e)),t=[];for(let i of e){let e=this.soraDataChannels[i];if(!e)continue;let n=this.signalingOfferMessageDataChannels[i];if(!n)continue;let s={label:e.label,ordered:e.ordered,protocol:e.protocol,compress:n.compress,direction:n.direction};"number"==typeof e.maxPacketLifeTime&&(s.maxPacketLifeTime=e.maxPacketLifeTime),"number"==typeof e.maxRetransmits&&(s.maxRetransmits=e.maxRetransmits),t.push(s)}return t}}class eg extends er{async connect(e){return!1===this.options.multistream?await Promise.race([this.legacyStream(e).finally(()=>{this.clearConnectionTimeout(),this.clearMonitorSignalingWebSocketEvent()}),this.setConnectionTimeout(),this.monitorSignalingWebSocketEvent()]):await Promise.race([this.multiStream(e).finally(()=>{this.clearConnectionTimeout(),this.clearMonitorSignalingWebSocketEvent()}),this.setConnectionTimeout(),this.monitorSignalingWebSocketEvent()]),this.monitorWebSocketEvent(),this.monitorPeerConnectionState(),e}async legacyStream(e){await this.disconnect(),this.setupE2EE();let t=await this.getSignalingWebSocket(this.signalingUrlCandidates),i=await this.signaling(t);if(this.startE2EE(),await this.connectPeerConnection(i),await this.setRemoteDescription(i),e.getTracks().filter(t=>{this.pc&&this.pc.addTrack(t,e)}),this.pc)for(let e of this.pc.getSenders())await this.setupSenderTransform(e);return this.stream=e,await this.createAnswer(i),this.sendAnswer(),await this.onIceCandidate(),await this.waitChangeConnectionStateConnected(),e}async multiStream(e){await this.disconnect(),this.setupE2EE();let t=await this.getSignalingWebSocket(this.signalingUrlCandidates),i=await this.signaling(t);if(this.startE2EE(),await this.connectPeerConnection(i),this.pc&&(this.pc.ontrack=async e=>{await this.setupReceiverTransform(e.transceiver.mid,e.receiver);let t=e.streams[0];if(!t)return;let i={"stream.id":t.id,id:e.track.id,label:e.track.label,enabled:e.track.enabled,kind:e.track.kind,muted:e.track.muted,readyState:e.track.readyState};this.writePeerConnectionTimelineLog("ontrack",i),"default"!==t.id&&t.id!==this.connectionId&&(this.callbacks.track(e),t.onremovetrack=e=>{if(this.callbacks.removetrack(e),e.target){let t=this.remoteConnectionIds.indexOf(e.target.id);-1{this.pc&&this.pc.addTrack(t,e)}),this.pc)for(let e of this.pc.getSenders())await this.setupSenderTransform(e);return this.stream=e,await this.createAnswer(i),this.sendAnswer(),await this.onIceCandidate(),await this.waitChangeConnectionStateConnected(),e}}class ec extends er{async connect(){if(!1===this.options.multistream){let e=await Promise.race([this.legacyStream().finally(()=>{this.clearConnectionTimeout(),this.clearMonitorSignalingWebSocketEvent()}),this.setConnectionTimeout(),this.monitorSignalingWebSocketEvent()]);return this.monitorWebSocketEvent(),this.monitorPeerConnectionState(),e}await Promise.race([this.multiStream().finally(()=>{this.clearConnectionTimeout(),this.clearMonitorSignalingWebSocketEvent()}),this.setConnectionTimeout(),this.monitorSignalingWebSocketEvent()]),this.monitorWebSocketEvent(),this.monitorPeerConnectionState()}async legacyStream(){await this.disconnect(),this.setupE2EE();let e=await this.getSignalingWebSocket(this.signalingUrlCandidates),t=await this.signaling(e);return this.startE2EE(),await this.connectPeerConnection(t),this.pc&&(this.pc.ontrack=async e=>{await this.setupReceiverTransform(e.transceiver.mid,e.receiver),this.stream=e.streams[0];let t=this.stream.id;if("default"===t)return;let i={"stream.id":t,id:e.track.id,label:e.track.label,enabled:e.track.enabled,kind:e.track.kind,muted:e.track.muted,readyState:e.track.readyState};this.writePeerConnectionTimelineLog("ontrack",i),this.callbacks.track(e),this.stream.onremovetrack=e=>{if(this.callbacks.removetrack(e),e.target){let t=e.target.id,i=this.remoteConnectionIds.indexOf(t);-1{await this.setupReceiverTransform(e.transceiver.mid,e.receiver);let t=e.streams[0];if("default"===t.id||t.id===this.connectionId)return;let i={"stream.id":t.id,id:e.track.id,label:e.track.label,enabled:e.track.enabled,kind:e.track.kind,muted:e.track.muted,readyState:e.track.readyState};this.writePeerConnectionTimelineLog("ontrack",i),this.callbacks.track(e),t.onremovetrack=e=>{if(this.callbacks.removetrack(e),e.target){let t=e.target.id,i=this.remoteConnectionIds.indexOf(t);-1{await s.loadWasm(e)},connection:(e,t=!1)=>new ed(e,t),version:()=>"2024.1.2",helpers:{applyMediaStreamConstraints:a}}}}]); \ No newline at end of file diff --git a/dist/_next/static/chunks/bbf08e97-e92398dc34f2ada8.js b/dist/_next/static/chunks/bbf08e97-e92398dc34f2ada8.js deleted file mode 100644 index 387ae24d..00000000 --- a/dist/_next/static/chunks/bbf08e97-e92398dc34f2ada8.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[84],{511:function(e,t,i){i.d(t,{Z:function(){return eC}});var n=i(6689);class a{constructor(){if(!RTCRtpSender.prototype.createEncodedStreams)throw Error("E2EE is not supported in this browser.");this.worker=null,this.onWorkerDisconnect=null}startWorker(){let e=atob("InVzZSBzdHJpY3QiOwpjb25zdCBjb25uZWN0aW9uSWRMZW5ndGggPSAyNjsKZnVuY3Rpb24gYnl0ZUNvdW50KG4pIHsKICAgIGlmIChuID09PSAwKSB7CiAgICAgICAgcmV0dXJuIDE7CiAgICB9CiAgICAvLyBsb2cyNTYoeCkgPSBsb2coeCkgLyBsb2coMjU2KQogICAgcmV0dXJuIE1hdGguZmxvb3IoTWF0aC5sb2cobikgLyBNYXRoLmxvZygyICoqIDgpICsgMSk7Cn0KZnVuY3Rpb24gYXJyYXlCdWZmZXJUb051bWJlcihhcnJheUJ1ZmZlcikgewogICAgLy8gMzJiaXQg44G+44Gn44KS5oOz5a6aIChCaWdJbnQg44G444Gu5pu444GN5o+b44GI5pmC44Gr6KaB5L+u5q2jKQogICAgY29uc3QgbmV3QXJyYXlCdWZmZXIgPSBuZXcgQXJyYXlCdWZmZXIoVWludDMyQXJyYXkuQllURVNfUEVSX0VMRU1FTlQpOwogICAgY29uc3QgbmV3RGF0YVZpZXcgPSBuZXcgRGF0YVZpZXcobmV3QXJyYXlCdWZmZXIpOwogICAgY29uc3QgZGF0YVZpZXcgPSBuZXcgRGF0YVZpZXcoYXJyYXlCdWZmZXIpOwogICAgY29uc3QgcGFkZGluZ0xlbmd0aCA9IFVpbnQzMkFycmF5LkJZVEVTX1BFUl9FTEVNRU5UIC0gZGF0YVZpZXcuYnl0ZUxlbmd0aDsKICAgIGZvciAobGV0IGkgPSAwOyBpIDwgcGFkZGluZ0xlbmd0aDsgaSArPSAxKSB7CiAgICAgICAgbmV3RGF0YVZpZXcuc2V0VWludDgoaSwgMCk7CiAgICB9CiAgICBmb3IgKGxldCBpID0gcGFkZGluZ0xlbmd0aCwgaiA9IDA7IGkgPCBVaW50MzJBcnJheS5CWVRFU19QRVJfRUxFTUVOVDsgaSArPSAxLCBqICs9IDEpIHsKICAgICAgICBuZXdEYXRhVmlldy5zZXRVaW50OChpLCBkYXRhVmlldy5nZXRVaW50OChqKSk7CiAgICB9CiAgICByZXR1cm4gbmV3RGF0YVZpZXcuZ2V0VWludDMyKDApOwp9CmZ1bmN0aW9uIGVuY29kZVNGcmFtZUhlYWRlcihzLCBjb3VudCwga2V5SWQpIHsKICAgIC8vICAwIDEgMiAzIDQgNSA2IDcKICAgIC8vICstKy0rLSstKy0rLSstKy0rLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tKy0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSsKICAgIC8vIHxTfExFTiAgfDF8S0xFTiB8ICAgS0lELi4uIChsZW5ndGg9S0xFTikgICAgfCAgICBDVFIuLi4gKGxlbmd0aD1MRU4pICAgIHwKICAgIC8vICstKy0rLSstKy0rLSstKy0rLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tKy0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSsKICAgIC8vIFM6IDEgYml0CiAgICAvLyBMRU46IDMgYml0CiAgICAvLyBYOiAxIGJpdAogICAgLy8gS0xFTjogMyBiaXQKICAgIC8vIEtJRDogS0xFTiBieXRlCiAgICAvLyBDVFI6IExFTiBieXRlCiAgICAvLyBUT0RPOiBrZXlJZCAoS0lEKSDjgYwgTnVtYmVyLk1BWF9TQUZFX0lOVEVHRVIsIDcgYnl0ZSDjgpLotoXjgYjjgabjgYTjgZ/loLTlkIjjga/jgqjjg6njg7zjgYvkvovlpJYKICAgIC8vIFRPRE86IGNvdW50IChDVFIpIOOBjCBOdW1iZXIuTUFYX1NBRkVfSU5URUdFUiwgNyBieXRlIOOCkui2heOBiOOBpuOBhOOBn+WgtOWQiOOBr+OCqOODqeODvOOBi+S+i+WklgogICAgaWYgKG1heEtleUlkIDwga2V5SWQgfHwgbWF4Q291bnQgPCBjb3VudCkgewogICAgICAgIHRocm93IG5ldyBFcnJvcignRVhDRUVERUQtTUFYSU1VTS1CUk9BRENBU1RJTkctVElNRScpOwogICAgfQogICAgY29uc3Qga2xlbiA9IGJ5dGVDb3VudChrZXlJZCk7CiAgICBjb25zdCBsZW4gPSBieXRlQ291bnQoY291bnQpOwogICAgY29uc3QgaGVhZGVyQnVmZmVyID0gbmV3IEFycmF5QnVmZmVyKDEgKyBrbGVuICsgbGVuKTsKICAgIGNvbnN0IGhlYWRlckRhdGFWaWV3ID0gbmV3IERhdGFWaWV3KGhlYWRlckJ1ZmZlcik7CiAgICAvLyBTLCBMRU4sIDEsIEtMRU4g44GnIDEgYnl0ZQogICAgaGVhZGVyRGF0YVZpZXcuc2V0VWludDgoMCwgKHMgPDwgNykgKyAobGVuIDw8IDQpICsgKDEgPDwgMykgKyBrbGVuKTsKICAgIGNvbnN0IGhlYWRlclVpbnQ4QXJyYXkgPSBuZXcgVWludDhBcnJheShoZWFkZXJCdWZmZXIpOwogICAgY29uc3Qga2V5SWRCdWZmZXIgPSBuZXcgQXJyYXlCdWZmZXIoVWludDMyQXJyYXkuQllURVNfUEVSX0VMRU1FTlQpOwogICAgY29uc3Qga2V5SWREYXRhVmlldyA9IG5ldyBEYXRhVmlldyhrZXlJZEJ1ZmZlcik7CiAgICBrZXlJZERhdGFWaWV3LnNldFVpbnQzMigwLCBrZXlJZCk7CiAgICBjb25zdCBrZXlJZFVpbnQ4QXJyYXkgPSBuZXcgVWludDhBcnJheShrZXlJZEJ1ZmZlcik7CiAgICBoZWFkZXJVaW50OEFycmF5LnNldChrZXlJZFVpbnQ4QXJyYXkuc3ViYXJyYXkoVWludDMyQXJyYXkuQllURVNfUEVSX0VMRU1FTlQgLSBrbGVuKSwgMSk7CiAgICBjb25zdCBjb3VudEJ1ZmZlciA9IG5ldyBBcnJheUJ1ZmZlcihVaW50MzJBcnJheS5CWVRFU19QRVJfRUxFTUVOVCk7CiAgICBjb25zdCBjb3VudERhdGFWaWV3ID0gbmV3IERhdGFWaWV3KGNvdW50QnVmZmVyKTsKICAgIGNvdW50RGF0YVZpZXcuc2V0VWludDMyKDAsIGNvdW50KTsKICAgIGNvbnN0IGNvdW50VWludDhBcnJheSA9IG5ldyBVaW50OEFycmF5KGNvdW50QnVmZmVyKTsKICAgIGhlYWRlclVpbnQ4QXJyYXkuc2V0KGNvdW50VWludDhBcnJheS5zdWJhcnJheShVaW50MzJBcnJheS5CWVRFU19QRVJfRUxFTUVOVCAtIGxlbiksIGtsZW4gKyAxKTsKICAgIHJldHVybiBoZWFkZXJVaW50OEFycmF5Owp9CmZ1bmN0aW9uIHNwbGl0SGVhZGVyKHNmcmFtZSkgewogICAgY29uc3Qgc2ZyYW1lRGF0YVZpZXcgPSBuZXcgRGF0YVZpZXcoc2ZyYW1lKTsKICAgIGNvbnN0IGhlYWRlciA9IHNmcmFtZURhdGFWaWV3LmdldFVpbnQ4KDApOwogICAgY29uc3QgbGVuID0gKGhlYWRlciAmIDB4NzApID4+IDQ7CiAgICBjb25zdCBrbGVuID0gaGVhZGVyICYgMHgwNzsKICAgIGNvbnN0IHNmcmFtZUhlYWRlckxlbmd0aCA9IDEgKyBrbGVuICsgbGVuOwogICAgY29uc3Qgc2ZyYW1lSGVhZGVyID0gc2ZyYW1lLnNsaWNlKDAsIHNmcmFtZUhlYWRlckxlbmd0aCk7CiAgICBpZiAoc2ZyYW1lSGVhZGVyLmJ5dGVMZW5ndGggPCBzZnJhbWVIZWFkZXJMZW5ndGgpIHsKICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ1VORVhQRUNURUQtU0ZSQU1FLUxFTkdUSCcpOwogICAgfQogICAgY29uc3QgY29ubmVjdGlvbklkID0gc2ZyYW1lLnNsaWNlKHNmcmFtZUhlYWRlckxlbmd0aCwgc2ZyYW1lSGVhZGVyTGVuZ3RoICsgY29ubmVjdGlvbklkTGVuZ3RoKTsKICAgIGNvbnN0IGVuY3J5cHRlZEZyYW1lID0gc2ZyYW1lLnNsaWNlKHNmcmFtZUhlYWRlckxlbmd0aCArIGNvbm5lY3Rpb25JZExlbmd0aCwgc2ZyYW1lLmJ5dGVMZW5ndGgpOwogICAgcmV0dXJuIFtzZnJhbWVIZWFkZXIsIGNvbm5lY3Rpb25JZCwgZW5jcnlwdGVkRnJhbWVdOwp9CmZ1bmN0aW9uIHBhcnNlU0ZyYW1lSGVhZGVyKHNmcmFtZUhlYWRlcikgewogICAgY29uc3Qgc2ZyYW1lSGVhZGVyRGF0YVZpZXcgPSBuZXcgRGF0YVZpZXcoc2ZyYW1lSGVhZGVyKTsKICAgIGNvbnN0IGhlYWRlciA9IHNmcmFtZUhlYWRlckRhdGFWaWV3LmdldFVpbnQ4KDApOwogICAgY29uc3QgcyA9IChoZWFkZXIgJiAweDgwKSA+PiA3OwogICAgY29uc3QgbGVuID0gKGhlYWRlciAmIDB4NzApID4+IDQ7CiAgICBjb25zdCB4ID0gKGhlYWRlciAmIDB4MDgpID4+IDM7CiAgICBjb25zdCBrbGVuID0gaGVhZGVyICYgMHgwNzsKICAgIC8vIHggZmxhZwogICAgaWYgKHggIT09IDEpIHsKICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ1VORVhQRUNURUQtWC1GTEFHJyk7CiAgICB9CiAgICBjb25zdCBoZWFkZXJMZW5ndGggPSAxICsga2xlbiArIGxlbjsKICAgIGlmIChzZnJhbWVIZWFkZXJEYXRhVmlldy5ieXRlTGVuZ3RoIDwgaGVhZGVyTGVuZ3RoKSB7CiAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdVTkVYUEVDVEVELVNGUkFNRS1IRUFERVItTEVOR1RIJyk7CiAgICB9CiAgICBjb25zdCBrZXlJZEJ1ZmZlciA9IHNmcmFtZUhlYWRlci5zbGljZSgxLCAxICsga2xlbik7CiAgICBjb25zdCBrZXlJZCA9IGFycmF5QnVmZmVyVG9OdW1iZXIoa2V5SWRCdWZmZXIpOwogICAgY29uc3QgY291bnRCdWZmZXIgPSBzZnJhbWVIZWFkZXIuc2xpY2UoMSArIGtsZW4sIGhlYWRlckxlbmd0aCk7CiAgICBjb25zdCBjb3VudCA9IGFycmF5QnVmZmVyVG9OdW1iZXIoY291bnRCdWZmZXIpOwogICAgcmV0dXJuIFtzLCBjb3VudCwga2V5SWRdOwp9Ci8vLyA8cmVmZXJlbmNlIHBhdGg9Ii4vc2ZyYW1lLnRzIi8+Ci8vIFRPRE86IOaJseOBhuaVsOWApOOBjOWkp+OBjeOBhOeuh+aJgOOBp+OBryBOdW1iZXIg44GL44KJIEJpZ0ludCDjgavnva7jgY3mj5vjgYjjgosKLy8gVE9ETzogQmlnSW50IOOBq+e9ruOBjeaPm+OBiOOCi+mam+OBq+WkieabtOOBmeOCiwpjb25zdCBtYXhLZXlJZCA9IDIgKiogMzI7CmNvbnN0IG1heENvdW50ID0gMiAqKiAzMjsKY29uc3Qgc2VsZkRlcml2ZUtleU1hcCA9IG5ldyBNYXAoKTsKY29uc3QgY291bnRNYXAgPSBuZXcgTWFwKCk7CmNvbnN0IHdyaXRlSVZNYXAgPSBuZXcgTWFwKCk7CmNvbnN0IHJlbW90ZURlcml2ZUtleU1hcCA9IG5ldyBNYXAoKTsKY29uc3QgbGF0ZXN0UmVtb3RlS2V5SWRNYXAgPSBuZXcgTWFwKCk7CmNvbnN0IGxpdHRsZUVuZGlhbiA9IHRydWU7CmNvbnN0IGJpZ0VuZGlhbiA9ICFsaXR0bGVFbmRpYW47CmNvbnN0IHRleHRFbmNvZGVyID0gbmV3IFRleHRFbmNvZGVyKCk7CmNvbnN0IHRleHREZWNvZGVyID0gbmV3IFRleHREZWNvZGVyKCk7Ci8vIFZQOCDjga7jgb8KLy8gVE9ETyhuYWthaSk6IFZQOSAvIEFWMSDjgoLlsIbmnaXnmoTjgavlr77lv5zjgoLogIPjgYjjgosKY29uc3QgdW5lbmNyeXB0ZWRCeXRlcyA9IHsKICAgIC8vIEkg44OV44Os44O844OgCiAgICBrZXk6IDEwLAogICAgLy8g6Z2eIEkg44OV44Os44O844OgCiAgICBkZWx0YTogMywKICAgIC8vIOOCquODvOODh+OCo+OCqgogICAgdW5kZWZpbmVkOiAxLAp9OwpmdW5jdGlvbiBnZXRDb3VudChjb25uZWN0aW9uSWQpIHsKICAgIHJldHVybiBjb3VudE1hcC5nZXQoY29ubmVjdGlvbklkKSB8fCAwOwp9CmZ1bmN0aW9uIHNldENvdW50KGNvbm5lY3Rpb25JZCwgY291bnQpIHsKICAgIHJldHVybiBjb3VudE1hcC5zZXQoY29ubmVjdGlvbklkLCBjb3VudCk7Cn0KZnVuY3Rpb24gZ2V0UmVtb3RlRGVyaXZlS2V5KGNvbm5lY3Rpb25JZCwga2V5SWQpIHsKICAgIGlmICghcmVtb3RlRGVyaXZlS2V5TWFwLmhhcyhjb25uZWN0aW9uSWQpKSB7CiAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdSRU1PVEUtREVSSVZFS0VZLU1BUC1OT1QtRk9VTkQnKTsKICAgIH0KICAgIGNvbnN0IGRlcml2ZUtleU1hcCA9IHJlbW90ZURlcml2ZUtleU1hcC5nZXQoY29ubmVjdGlvbklkKTsKICAgIGlmICghZGVyaXZlS2V5TWFwKSB7CiAgICAgICAgcmV0dXJuOwogICAgfQogICAgcmV0dXJuIGRlcml2ZUtleU1hcC5nZXQoa2V5SWQpOwp9CmZ1bmN0aW9uIHNldFJlbW90ZURlcml2ZUtleShjb25uZWN0aW9uSWQsIGtleUlkLCBkZXJpdmVLZXkpIHsKICAgIGxldCBkZXJpdmVLZXlNYXAgPSByZW1vdGVEZXJpdmVLZXlNYXAuZ2V0KGNvbm5lY3Rpb25JZCk7CiAgICBpZiAoIWRlcml2ZUtleU1hcCkgewogICAgICAgIGRlcml2ZUtleU1hcCA9IG5ldyBNYXAoKTsKICAgIH0KICAgIGRlcml2ZUtleU1hcC5zZXQoa2V5SWQsIGRlcml2ZUtleSk7CiAgICByZW1vdGVEZXJpdmVLZXlNYXAuc2V0KGNvbm5lY3Rpb25JZCwgZGVyaXZlS2V5TWFwKTsKfQpmdW5jdGlvbiBzZXRMYXRlc3RSZW1vdGVLZXlJZChjb25uZWN0aW9uSWQsIGtleUlkKSB7CiAgICBjb25zdCBsYXRlc3RSZW1vdGVLZXlJZCA9IGxhdGVzdFJlbW90ZUtleUlkTWFwLmdldChjb25uZWN0aW9uSWQpOwogICAgaWYgKGxhdGVzdFJlbW90ZUtleUlkKSB7CiAgICAgICAgaWYgKGxhdGVzdFJlbW90ZUtleUlkIDwga2V5SWQpIHsKICAgICAgICAgICAgbGF0ZXN0UmVtb3RlS2V5SWRNYXAuc2V0KGNvbm5lY3Rpb25JZCwga2V5SWQpOwogICAgICAgIH0KICAgIH0KICAgIGVsc2UgewogICAgICAgIGxhdGVzdFJlbW90ZUtleUlkTWFwLnNldChjb25uZWN0aW9uSWQsIGtleUlkKTsKICAgIH0KfQpmdW5jdGlvbiByZW1vdmVPbGRSZW1vdGVEZXJpdmVLZXlzKCkgewogICAgbGF0ZXN0UmVtb3RlS2V5SWRNYXAuZm9yRWFjaCgobGF0ZXN0S2V5SWQsIGNvbm5lY3Rpb25JZCkgPT4gewogICAgICAgIGNvbnN0IGRlcml2ZUtleU1hcCA9IHJlbW90ZURlcml2ZUtleU1hcC5nZXQoY29ubmVjdGlvbklkKTsKICAgICAgICBpZiAoZGVyaXZlS2V5TWFwKSB7CiAgICAgICAgICAgIGRlcml2ZUtleU1hcC5mb3JFYWNoKChfLCBrZXlJZCkgPT4gewogICAgICAgICAgICAgICAgaWYgKGxhdGVzdEtleUlkICE9PSBrZXlJZCkgewogICAgICAgICAgICAgICAgICAgIGRlcml2ZUtleU1hcC5kZWxldGUoa2V5SWQpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICB9CiAgICB9KTsKfQpmdW5jdGlvbiByZW1vdmVEZXJpdmVLZXkoY29ubmVjdGlvbklkKSB7CiAgICBsYXRlc3RSZW1vdGVLZXlJZE1hcC5kZWxldGUoY29ubmVjdGlvbklkKTsKICAgIHJlbW90ZURlcml2ZUtleU1hcC5kZWxldGUoY29ubmVjdGlvbklkKTsKfQpmdW5jdGlvbiBnZXRMYXRlc3RTZWxmRGVyaXZlS2V5KCkgewogICAgY29uc3QgZGVyaXZlS2V5ID0gc2VsZkRlcml2ZUtleU1hcC5nZXQoJ2xhdGVzdCcpOwogICAgaWYgKCFkZXJpdmVLZXkpIHsKICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ0xBVEVTVC1TRUxGLURFUklWRUtFWS1OT1RfRk9VTkQnKTsKICAgIH0KICAgIHJldHVybiBkZXJpdmVLZXk7Cn0KZnVuY3Rpb24gc2V0U2VsZkRlcml2ZUtleShjb25uZWN0aW9uSWQsIGtleUlkLCBkZXJpdmVLZXkpIHsKICAgIGNvbnN0IGN1cnJlbnRTZWxmRGVyaXZlS2V5ID0gc2VsZkRlcml2ZUtleU1hcC5nZXQoJ2xhdGVzdCcpOwogICAgaWYgKGN1cnJlbnRTZWxmRGVyaXZlS2V5KSB7CiAgICAgICAgaWYgKGN1cnJlbnRTZWxmRGVyaXZlS2V5LmtleUlkIDwga2V5SWQpIHsKICAgICAgICAgICAgY29uc3QgbmV4dFNlbGZEZXJpdmVLZXkgPSB7IGNvbm5lY3Rpb25JZCwga2V5SWQsIGRlcml2ZUtleSB9OwogICAgICAgICAgICBzZWxmRGVyaXZlS2V5TWFwLnNldCgnbGF0ZXN0JywgbmV4dFNlbGZEZXJpdmVLZXkpOwogICAgICAgIH0KICAgIH0KICAgIGVsc2UgewogICAgICAgIGNvbnN0IG5leHRTZWxmRGVyaXZlS2V5ID0geyBjb25uZWN0aW9uSWQsIGtleUlkLCBkZXJpdmVLZXkgfTsKICAgICAgICBzZWxmRGVyaXZlS2V5TWFwLnNldCgnbGF0ZXN0JywgbmV4dFNlbGZEZXJpdmVLZXkpOwogICAgfQp9CmZ1bmN0aW9uIHNpbGVuY2VGcmFtZShlbmNvZGVkRnJhbWUpIHsKICAgIC8vIGNvbm5lY3Rpb24uY3JlYXRlZCwgcmVjZWl2ZU1lc3NhZ2Ug5Y+X5L+h5YmN44Gu5aC05ZCICiAgICBpZiAoZW5jb2RlZEZyYW1lLnR5cGUgPT09IHVuZGVmaW5lZCkgewogICAgICAgIC8vIOmfs+WjsOOBr+aal+WPt+WMluOBr+OBhOOCi+OBqOiBnuOBkeOBn+OCguOBruOBmOOCg+OBquOBhOOBruOBp+e9ruOBjeaPm+OBiOOCiwogICAgICAgIGNvbnN0IG5ld0RhdGEgPSBuZXcgQXJyYXlCdWZmZXIoMyk7CiAgICAgICAgY29uc3QgbmV3VWludDggPSBuZXcgVWludDhBcnJheShuZXdEYXRhKTsKICAgICAgICAvLyBPcHVzIOOCteOCpOODrOODs+OCueODleODrOODvOODoAogICAgICAgIG5ld1VpbnQ4LnNldChbMHhkOCwgMHhmZiwgMHhmZV0pOwogICAgICAgIGVuY29kZWRGcmFtZS5kYXRhID0gbmV3RGF0YTsKICAgIH0KICAgIGVsc2UgewogICAgICAgIC8vIOaYoOWDj+OBjOato+W4uOOBmOOCg+OBquOBhOOBn+OCgSBQTEkg44K544OI44O844Og44GM55m655Sf44GX44Gm44GX44G+44GGCiAgICAgICAgLy8g44Gd44Gu44Gf44KBIDMyMHgyNDAg44Gu55yf44Gj6buS44Gq55S76Z2i44Gr572u44GN5o+b44GI44KLCiAgICAgICAgY29uc3QgbmV3RGF0YSA9IG5ldyBBcnJheUJ1ZmZlcig2MCk7CiAgICAgICAgY29uc3QgbmV3VWludDggPSBuZXcgVWludDhBcnJheShuZXdEYXRhKTsKICAgICAgICBuZXdVaW50OC5zZXQoWwogICAgICAgICAgICAweGIwLCAweDA1LCAweDAwLCAweDlkLCAweDAxLCAweDJhLCAweGEwLCAweDAwLCAweDVhLCAweDAwLCAweDM5LCAweDAzLCAweDAwLCAweDAwLCAweDFjLAogICAgICAgICAgICAweDIyLCAweDE2LCAweDE2LCAweDIyLCAweDY2LCAweDEyLCAweDIwLCAweDA0LCAweDkwLCAweDQwLCAweDAwLCAweGM1LCAweDAxLCAweGUwLCAweDdjLAogICAgICAgICAgICAweDRkLCAweDJmLCAweGZhLCAweGRkLCAweDRkLCAweGE1LCAweDdmLCAweDg5LCAweGE1LCAweGZmLCAweDViLCAweGE5LCAweGI0LCAweGFmLCAweGYxLAogICAgICAgICAgICAweDM0LCAweGJmLCAweGViLCAweDc1LCAweDM2LCAweDk1LCAweGZlLCAweDI2LCAweDk2LCAweDYwLCAweGZlLCAweGZmLCAweGJhLCAweGZmLCAweDQwLAogICAgICAgIF0pOwogICAgICAgIGVuY29kZWRGcmFtZS5kYXRhID0gbmV3RGF0YTsKICAgIH0KICAgIHJldHVybiBlbmNvZGVkRnJhbWU7Cn0KZnVuY3Rpb24gc2V0V3JpdGVJVihjb25uZWN0aW9uSWQsIGtleUlkLCB3cml0ZUlWKSB7CiAgICBjb25zdCBrZXkgPSBbY29ubmVjdGlvbklkLCBrZXlJZC50b1N0cmluZygpXS5qb2luKCc6Jyk7CiAgICB3cml0ZUlWTWFwLnNldChrZXksIHdyaXRlSVYpOwp9CmZ1bmN0aW9uIGdldFdyaXRlSVYoY29ubmVjdGlvbklkLCBrZXlJZCkgewogICAgY29uc3Qga2V5ID0gW2Nvbm5lY3Rpb25JZCwga2V5SWQudG9TdHJpbmcoKV0uam9pbignOicpOwogICAgcmV0dXJuIHdyaXRlSVZNYXAuZ2V0KGtleSk7Cn0KZnVuY3Rpb24gZ2VuZXJhdGVJVihjb3VudCwgY29ubmVjdGlvbklkLCBrZXlJZCkgewogICAgLy8gVE9ETzoga2V5SWQg44GMIE51bWJlci5NQVhfU0FGRV9JTlRFR0VSLCA3IGJ5dGUg44KS6LaF44GI44Gm44GE44Gf5aC05ZCI44Gv44Ko44Op44O844GL5L6L5aSWCiAgICAvLyBUT0RPOiBjb3VudCDjgYwgTnVtYmVyLk1BWF9TQUZFX0lOVEVHRVIsIDcgYnl0ZSDjgpLotoXjgYjjgabjgYTjgZ/loLTlkIjjga/jgqjjg6njg7zjgYvkvovlpJYKICAgIC8vIDMyIGJpdCDjgb7jgacKICAgIGlmIChtYXhLZXlJZCA8IGtleUlkIHx8IG1heENvdW50IDwgY291bnQpIHsKICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ0VYQ0VFREVELU1BWElNVU0tQlJPQURDQVNUSU5HLVRJTUUnKTsKICAgIH0KICAgIGNvbnN0IHdyaXRlSVYgPSBnZXRXcml0ZUlWKGNvbm5lY3Rpb25JZCwga2V5SWQpOwogICAgaWYgKCF3cml0ZUlWKSB7CiAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdXUklURUlWLU5PVC1GT1VORCcpOwogICAgfQogICAgY29uc3QgcGFkZGluZ0xlbmd0aCA9IE5uIC0gVWludDMyQXJyYXkuQllURVNfUEVSX0VMRU1FTlQ7CiAgICBjb25zdCBjb3VudFdpdGhQYWRkaW5nQnVmZmVyID0gbmV3IEFycmF5QnVmZmVyKE5uKTsKICAgIGNvbnN0IGNvdW50V2l0aFBhZGRpbmdEYXRhVmlldyA9IG5ldyBEYXRhVmlldyhjb3VudFdpdGhQYWRkaW5nQnVmZmVyKTsKICAgIGNvdW50V2l0aFBhZGRpbmdEYXRhVmlldy5zZXRVaW50MzIocGFkZGluZ0xlbmd0aCwgY291bnQsIGJpZ0VuZGlhbik7CiAgICBjb25zdCBpdiA9IG5ldyBVaW50OEFycmF5KE5uKTsKICAgIGNvbnN0IGNvdW50V2l0aFBhZGRpbmcgPSBuZXcgVWludDhBcnJheShjb3VudFdpdGhQYWRkaW5nQnVmZmVyKTsKICAgIGZvciAobGV0IGkgPSAwOyBpIDwgTm47IGkrKykgewogICAgICAgIGl2W2ldID0gd3JpdGVJVltpXSBeIGNvdW50V2l0aFBhZGRpbmdbaV07CiAgICB9CiAgICByZXR1cm4gaXY7Cn0KZnVuY3Rpb24gcGFyc2VQYXlsb2FkKHBheWxvYWRUeXBlLCBwYXlsb2FkKSB7CiAgICByZXR1cm4gWwogICAgICAgIG5ldyBVaW50OEFycmF5KHBheWxvYWQsIDAsIHVuZW5jcnlwdGVkQnl0ZXNbcGF5bG9hZFR5cGVdKSwKICAgICAgICBuZXcgVWludDhBcnJheShwYXlsb2FkLCB1bmVuY3J5cHRlZEJ5dGVzW3BheWxvYWRUeXBlXSksCiAgICBdOwp9CmZ1bmN0aW9uIGVuY29kZUZyYW1lQWRkKGhlYWRlciwgc2ZyYW1lSGVhZGVyLCBjb25uZWN0aW9uSWQpIHsKICAgIGNvbnN0IGNvbm5lY3Rpb25JZERhdGEgPSB0ZXh0RW5jb2Rlci5lbmNvZGUoY29ubmVjdGlvbklkKTsKICAgIGNvbnN0IGZyYW1lQWRkID0gbmV3IFVpbnQ4QXJyYXkoaGVhZGVyLmJ5dGVMZW5ndGggKyBzZnJhbWVIZWFkZXIuYnl0ZUxlbmd0aCArIGNvbm5lY3Rpb25JZERhdGEuYnl0ZUxlbmd0aCk7CiAgICBmcmFtZUFkZC5zZXQoaGVhZGVyLCAwKTsKICAgIGZyYW1lQWRkLnNldChzZnJhbWVIZWFkZXIsIGhlYWRlci5ieXRlTGVuZ3RoKTsKICAgIGZyYW1lQWRkLnNldChjb25uZWN0aW9uSWREYXRhLCBoZWFkZXIuYnl0ZUxlbmd0aCArIHNmcmFtZUhlYWRlci5ieXRlTGVuZ3RoKTsKICAgIHJldHVybiBmcmFtZUFkZDsKfQphc3luYyBmdW5jdGlvbiBlbmNyeXB0RnVuY3Rpb24oZW5jb2RlZEZyYW1lLCBjb250cm9sbGVyKSB7CiAgICBjb25zdCB7IGNvbm5lY3Rpb25JZCwga2V5SWQsIGRlcml2ZUtleSB9ID0gZ2V0TGF0ZXN0U2VsZkRlcml2ZUtleSgpOwogICAgaWYgKCFkZXJpdmVLZXkpIHsKICAgICAgICByZXR1cm47CiAgICB9CiAgICBjb25zdCBjdXJyZW50Q291bnQgPSBnZXRDb3VudChjb25uZWN0aW9uSWQpOwogICAgLy8gY291bnQg44GMIDMyIGJpdCDku6XkuIrjga7loLTlkIjjga/lgZzmraLjgZnjgosKICAgIGlmIChjdXJyZW50Q291bnQgPiBtYXhDb3VudCkgewogICAgICAgIHBvc3RNZXNzYWdlKHsgdHlwZTogJ2Rpc2Nvbm5lY3QnIH0pOwogICAgfQogICAgY29uc3QgaXYgPSBnZW5lcmF0ZUlWKGN1cnJlbnRDb3VudCwgY29ubmVjdGlvbklkLCBrZXlJZCk7CiAgICBpZiAoIWl2KSB7CiAgICAgICAgcmV0dXJuOwogICAgfQogICAgY29uc3QgW2hlYWRlciwgcGF5bG9hZF0gPSBwYXJzZVBheWxvYWQoZW5jb2RlZEZyYW1lLnR5cGUsIGVuY29kZWRGcmFtZS5kYXRhKTsKICAgIGNvbnN0IHNmcmFtZUhlYWRlciA9IGVuY29kZVNGcmFtZUhlYWRlcigwLCBjdXJyZW50Q291bnQsIGtleUlkKTsKICAgIGNvbnN0IGZyYW1lQWRkID0gZW5jb2RlRnJhbWVBZGQoaGVhZGVyLCBzZnJhbWVIZWFkZXIsIGNvbm5lY3Rpb25JZCk7CiAgICBjcnlwdG8uc3VidGxlCiAgICAgICAgLmVuY3J5cHQoewogICAgICAgIG5hbWU6ICdBRVMtR0NNJywKICAgICAgICBpdjogaXYsCiAgICAgICAgLy8g5pqX5Y+35YyW44GV44KM44Gm44GE44Gq44GE6YOo5YiGCiAgICAgICAgYWRkaXRpb25hbERhdGE6IGZyYW1lQWRkLAogICAgfSwgZGVyaXZlS2V5LCBwYXlsb2FkKQogICAgICAgIC50aGVuKChjaXBoZXJUZXh0KSA9PiB7CiAgICAgICAgY29uc3QgbmV3RGF0YSA9IG5ldyBBcnJheUJ1ZmZlcihmcmFtZUFkZC5ieXRlTGVuZ3RoICsgY2lwaGVyVGV4dC5ieXRlTGVuZ3RoKTsKICAgICAgICBjb25zdCBuZXdEYXRhVWludDggPSBuZXcgVWludDhBcnJheShuZXdEYXRhKTsKICAgICAgICBuZXdEYXRhVWludDguc2V0KGZyYW1lQWRkLCAwKTsKICAgICAgICBuZXdEYXRhVWludDguc2V0KG5ldyBVaW50OEFycmF5KGNpcGhlclRleHQpLCBmcmFtZUFkZC5ieXRlTGVuZ3RoKTsKICAgICAgICBlbmNvZGVkRnJhbWUuZGF0YSA9IG5ld0RhdGE7CiAgICAgICAgY29udHJvbGxlci5lbnF1ZXVlKGVuY29kZWRGcmFtZSk7CiAgICB9KTsKICAgIHNldENvdW50KGNvbm5lY3Rpb25JZCwgY3VycmVudENvdW50ICsgMSk7Cn0KYXN5bmMgZnVuY3Rpb24gZGVjcnlwdEZ1bmN0aW9uKGVuY29kZWRGcmFtZSwgY29udHJvbGxlcikgewogICAgLy8g56m644OV44Os44O844Og5a++5b+cCiAgICBpZiAoZW5jb2RlZEZyYW1lLmRhdGEuYnl0ZUxlbmd0aCA8IDEpIHsKICAgICAgICByZXR1cm47CiAgICB9CiAgICB0cnkgewogICAgICAgIGNvbnN0IGZyYW1lTWV0YWRhdGFCdWZmZXIgPSBlbmNvZGVkRnJhbWUuZGF0YS5zbGljZSgwLCB1bmVuY3J5cHRlZEJ5dGVzW2VuY29kZWRGcmFtZS50eXBlXSk7CiAgICAgICAgY29uc3QgZnJhbWVNZXRhZGF0YSA9IG5ldyBVaW50OEFycmF5KGZyYW1lTWV0YWRhdGFCdWZmZXIpOwogICAgICAgIGNvbnN0IFtzZnJhbWVIZWFkZXJCdWZmZXIsIGNvbm5lY3Rpb25JZEJ1ZmZlciwgZW5jcnlwdGVkRnJhbWVCdWZmZXJdID0gc3BsaXRIZWFkZXIoZW5jb2RlZEZyYW1lLmRhdGEuc2xpY2UodW5lbmNyeXB0ZWRCeXRlc1tlbmNvZGVkRnJhbWUudHlwZV0pKTsKICAgICAgICBjb25zdCBzZnJhbWVIZWFkZXIgPSBuZXcgVWludDhBcnJheShzZnJhbWVIZWFkZXJCdWZmZXIpOwogICAgICAgIGNvbnN0IGNvbm5lY3Rpb25JZCA9IHRleHREZWNvZGVyLmRlY29kZShjb25uZWN0aW9uSWRCdWZmZXIpOwogICAgICAgIGNvbnN0IFtzLCBjb3VudCwga2V5SWRdID0gcGFyc2VTRnJhbWVIZWFkZXIoc2ZyYW1lSGVhZGVyQnVmZmVyKTsKICAgICAgICAvLyDku4rlm57jga8gcyBmbGFnIOOBryAwIOOBruOBvwogICAgICAgIGlmIChzICE9PSAwKSB7CiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcignVU5FWFBFQ1RFRC1TLUZMQUcnKTsKICAgICAgICB9CiAgICAgICAgY29uc3QgZGVyaXZlS2V5ID0gZ2V0UmVtb3RlRGVyaXZlS2V5KGNvbm5lY3Rpb25JZCwga2V5SWQpOwogICAgICAgIGlmICghZGVyaXZlS2V5KSB7CiAgICAgICAgICAgIHJldHVybjsKICAgICAgICB9CiAgICAgICAgY29uc3QgaXYgPSBnZW5lcmF0ZUlWKGNvdW50LCBjb25uZWN0aW9uSWQsIGtleUlkKTsKICAgICAgICBpZiAoIWl2KSB7CiAgICAgICAgICAgIHJldHVybjsKICAgICAgICB9CiAgICAgICAgY29uc3QgZnJhbWVBZGQgPSBlbmNvZGVGcmFtZUFkZChmcmFtZU1ldGFkYXRhLCBzZnJhbWVIZWFkZXIsIGNvbm5lY3Rpb25JZCk7CiAgICAgICAgY3J5cHRvLnN1YnRsZQogICAgICAgICAgICAuZGVjcnlwdCh7CiAgICAgICAgICAgIG5hbWU6ICdBRVMtR0NNJywKICAgICAgICAgICAgaXY6IGl2LAogICAgICAgICAgICBhZGRpdGlvbmFsRGF0YTogZnJhbWVBZGQsCiAgICAgICAgfSwgZGVyaXZlS2V5LCBuZXcgVWludDhBcnJheShlbmNyeXB0ZWRGcmFtZUJ1ZmZlcikpCiAgICAgICAgICAgIC50aGVuKChwbGFpblRleHQpID0+IHsKICAgICAgICAgICAgY29uc3QgbmV3RGF0YSA9IG5ldyBBcnJheUJ1ZmZlcihmcmFtZU1ldGFkYXRhQnVmZmVyLmJ5dGVMZW5ndGggKyBwbGFpblRleHQuYnl0ZUxlbmd0aCk7CiAgICAgICAgICAgIGNvbnN0IG5ld1VpbnQ4ID0gbmV3IFVpbnQ4QXJyYXkobmV3RGF0YSk7CiAgICAgICAgICAgIG5ld1VpbnQ4LnNldChuZXcgVWludDhBcnJheShmcmFtZU1ldGFkYXRhQnVmZmVyLCAwLCB1bmVuY3J5cHRlZEJ5dGVzW2VuY29kZWRGcmFtZS50eXBlXSkpOwogICAgICAgICAgICBuZXdVaW50OC5zZXQobmV3IFVpbnQ4QXJyYXkocGxhaW5UZXh0KSwgdW5lbmNyeXB0ZWRCeXRlc1tlbmNvZGVkRnJhbWUudHlwZV0pOwogICAgICAgICAgICBlbmNvZGVkRnJhbWUuZGF0YSA9IG5ld0RhdGE7CiAgICAgICAgICAgIGNvbnRyb2xsZXIuZW5xdWV1ZShlbmNvZGVkRnJhbWUpOwogICAgICAgIH0pOwogICAgfQogICAgY2F0Y2ggKGUpIHsKICAgICAgICAvLyDmg7PlrprlpJbjga7jg5HjgrHjg4Pjg4jjg5Xjgqnjg7zjg57jg4Pjg4jjgpLlj5fkv6HjgZfjgZ/loLTlkIgKICAgICAgICBjb250cm9sbGVyLmVucXVldWUoc2lsZW5jZUZyYW1lKGVuY29kZWRGcmFtZSkpOwogICAgfQp9Ci8vLyA8cmVmZXJlbmNlIHBhdGg9Ii4vZTJlZS50cyIvPgovLyBub25jZSDjgrXjgqTjgroKY29uc3QgTm4gPSAxMjsKLy8ga2V5IOOCteOCpOOCugpjb25zdCBOayA9IDE2OwovLyBrZXkg44K144Kk44K677yIYml077yJCmNvbnN0IGtleUxlbmd0aCA9IE5rICogODsKYXN5bmMgZnVuY3Rpb24gZ2VuZXJhdGVEZXJpdmVLZXkobWF0ZXJpYWwpIHsKICAgIGNvbnN0IHNhbHQgPSB0ZXh0RW5jb2Rlci5lbmNvZGUoJ1NGcmFtZTEwJyk7CiAgICBjb25zdCBpbmZvID0gdGV4dEVuY29kZXIuZW5jb2RlKCdrZXknKTsKICAgIGNvbnN0IGRlcml2ZUtleSA9IGF3YWl0IGNyeXB0by5zdWJ0bGUuZGVyaXZlS2V5KHsKICAgICAgICBuYW1lOiAnSEtERicsCiAgICAgICAgc2FsdDogc2FsdCwKICAgICAgICBoYXNoOiAnU0hBLTI1NicsCiAgICAgICAgaW5mbzogaW5mbywKICAgIH0sIG1hdGVyaWFsLCB7CiAgICAgICAgbmFtZTogJ0FFUy1HQ00nLAogICAgICAgIGxlbmd0aDoga2V5TGVuZ3RoLAogICAgfSwgZmFsc2UsIFsnZW5jcnlwdCcsICdkZWNyeXB0J10pOwogICAgcmV0dXJuIGRlcml2ZUtleTsKfQphc3luYyBmdW5jdGlvbiBnZW5lcmF0ZVdyaXRlSVYobWF0ZXJpYWwpIHsKICAgIGNvbnN0IHNhbHQgPSB0ZXh0RW5jb2Rlci5lbmNvZGUoJ1NGcmFtZTEwJyk7CiAgICBjb25zdCBpbmZvID0gdGV4dEVuY29kZXIuZW5jb2RlKCdzYWx0Jyk7CiAgICBjb25zdCB3cml0ZUlWQnVmZmVyID0gYXdhaXQgY3J5cHRvLnN1YnRsZS5kZXJpdmVCaXRzKHsKICAgICAgICBuYW1lOiAnSEtERicsCiAgICAgICAgc2FsdDogc2FsdCwKICAgICAgICBoYXNoOiAnU0hBLTM4NCcsCiAgICAgICAgaW5mbzogaW5mbywKICAgIH0sIG1hdGVyaWFsLCAKICAgIC8vIElWIOOBryA5NiDjg5Pjg4Pjg4jjgarjga7jgacKICAgIE5uICogOCk7CiAgICBjb25zdCB3cml0ZUlWID0gbmV3IFVpbnQ4QXJyYXkod3JpdGVJVkJ1ZmZlcik7CiAgICByZXR1cm4gd3JpdGVJVjsKfQpsZXQgcmVtb3ZhbFRpbWVvdXRJZCA9IDA7Ci8vIGJpb21lLWlnbm9yZSBsaW50L3N1c3BpY2lvdXMvbm9HbG9iYWxBc3NpZ246IOaknOiojgpvbm1lc3NhZ2UgPSAoZXZlbnQpID0+IHsKICAgIGNvbnN0IHsgdHlwZSB9ID0gZXZlbnQuZGF0YTsKICAgIGlmICh0eXBlID09PSAnc2VsZlNlY3JldEtleU1hdGVyaWFsJykgewogICAgICAgIGNvbnN0IHsgc2VsZlNlY3JldEtleU1hdGVyaWFsLCBzZWxmQ29ubmVjdGlvbklkLCBzZWxmS2V5SWQsIHdhaXRpbmdUaW1lIH0gPSBldmVudC5kYXRhOwogICAgICAgIGNvbnN0IHRpbWVvdXRJZCA9IHNldFRpbWVvdXQoKCkgPT4gewogICAgICAgICAgICBjcnlwdG8uc3VidGxlCiAgICAgICAgICAgICAgICAuaW1wb3J0S2V5KCdyYXcnLCBzZWxmU2VjcmV0S2V5TWF0ZXJpYWwuYnVmZmVyLCAnSEtERicsIGZhbHNlLCBbJ2Rlcml2ZUJpdHMnLCAnZGVyaXZlS2V5J10pCiAgICAgICAgICAgICAgICAudGhlbigobWF0ZXJpYWwpID0+IHsKICAgICAgICAgICAgICAgIGdlbmVyYXRlRGVyaXZlS2V5KG1hdGVyaWFsKS50aGVuKChkZXJpdmVLZXkpID0+IHsKICAgICAgICAgICAgICAgICAgICBzZXRTZWxmRGVyaXZlS2V5KHNlbGZDb25uZWN0aW9uSWQsIHNlbGZLZXlJZCwgZGVyaXZlS2V5KTsKICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICAgICAgZ2VuZXJhdGVXcml0ZUlWKG1hdGVyaWFsKS50aGVuKCh3cml0ZUlWKSA9PiB7CiAgICAgICAgICAgICAgICAgICAgc2V0V3JpdGVJVihzZWxmQ29ubmVjdGlvbklkLCBzZWxmS2V5SWQsIHdyaXRlSVYpOwogICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICBjbGVhclRpbWVvdXQodGltZW91dElkKTsKICAgICAgICAgICAgfSk7CiAgICAgICAgfSwgd2FpdGluZ1RpbWUgfHwgMCk7CiAgICAgICAgLy8gVE9ETzogKzEwMDAg44Gn6Y2155Sf5oiQ5b6M44Gr5a6f6KGM44GV44KM44KL44KI44GG44Gr44GX44Gm44GE44KL44GM55+t44GE5aC05ZCI44Gv5Ly444Gw44GZCiAgICAgICAgY29uc3QgcmVtb3ZhbFdhaXRpbmdUaW1lID0gKHdhaXRpbmdUaW1lIHx8IDApICsgMTAwMDsKICAgICAgICBpZiAocmVtb3ZhbFRpbWVvdXRJZCkgewogICAgICAgICAgICAvLyDli5XkvZzmuIjjgb/jgr/jgqTjg57jg7zmnInjgooKICAgICAgICAgICAgaWYgKHdhaXRpbmdUaW1lKSB7CiAgICAgICAgICAgICAgICAvLyBjb25uZWN0aW9uLmRlc3Ryb3llZAogICAgICAgICAgICAgICAgY2xlYXJUaW1lb3V0KHJlbW92YWxUaW1lb3V0SWQpOwogICAgICAgICAgICAgICAgcmVtb3ZhbFRpbWVvdXRJZCA9IHNldFRpbWVvdXQoKCkgPT4gewogICAgICAgICAgICAgICAgICAgIHJlbW92ZU9sZFJlbW90ZURlcml2ZUtleXMoKTsKICAgICAgICAgICAgICAgICAgICBjbGVhclRpbWVvdXQocmVtb3ZhbFRpbWVvdXRJZCk7CiAgICAgICAgICAgICAgICAgICAgcmVtb3ZhbFRpbWVvdXRJZCA9IDA7CiAgICAgICAgICAgICAgICB9LCByZW1vdmFsV2FpdGluZ1RpbWUpOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGVsc2UgewogICAgICAgICAgICAvLyDli5XkvZzmuIjjgb/jgr/jgqTjg57jg7zjgarjgZcKICAgICAgICAgICAgLy8gY29ubmVjdGlvbi5jcmVhdGVkIOOBruWgtOWQiOOCguWwkeOBl+Wun+ihjOOCkumBheOCieOBm+OCiwogICAgICAgICAgICByZW1vdmFsVGltZW91dElkID0gc2V0VGltZW91dCgoKSA9PiB7CiAgICAgICAgICAgICAgICByZW1vdmVPbGRSZW1vdGVEZXJpdmVLZXlzKCk7CiAgICAgICAgICAgICAgICBjbGVhclRpbWVvdXQocmVtb3ZhbFRpbWVvdXRJZCk7CiAgICAgICAgICAgICAgICByZW1vdmFsVGltZW91dElkID0gMDsKICAgICAgICAgICAgfSwgcmVtb3ZhbFdhaXRpbmdUaW1lKTsKICAgICAgICB9CiAgICB9CiAgICBlbHNlIGlmICh0eXBlID09PSAncmVtb3RlU2VjcmV0S2V5TWF0ZXJpYWxzJykgewogICAgICAgIGNvbnN0IHsgcmVtb3RlU2VjcmV0S2V5TWF0ZXJpYWxzIH0gPSBldmVudC5kYXRhOwogICAgICAgIGZvciAoY29uc3QgW2Nvbm5lY3Rpb25JZCwgcmVtb3RlU2VjcmV0S2V5TWF0ZXJpYWxdIG9mIE9iamVjdC5lbnRyaWVzKHJlbW90ZVNlY3JldEtleU1hdGVyaWFscykpIHsKICAgICAgICAgICAgY29uc3QgeyBrZXlJZCwgc2VjcmV0S2V5TWF0ZXJpYWwgfSA9IHJlbW90ZVNlY3JldEtleU1hdGVyaWFsOwogICAgICAgICAgICBjcnlwdG8uc3VidGxlCiAgICAgICAgICAgICAgICAuaW1wb3J0S2V5KCdyYXcnLCBzZWNyZXRLZXlNYXRlcmlhbC5idWZmZXIsICdIS0RGJywgZmFsc2UsIFsnZGVyaXZlQml0cycsICdkZXJpdmVLZXknXSkKICAgICAgICAgICAgICAgIC50aGVuKChtYXRlcmlhbCkgPT4gewogICAgICAgICAgICAgICAgZ2VuZXJhdGVEZXJpdmVLZXkobWF0ZXJpYWwpLnRoZW4oKGRlcml2ZUtleSkgPT4gewogICAgICAgICAgICAgICAgICAgIHNldFJlbW90ZURlcml2ZUtleShjb25uZWN0aW9uSWQsIGtleUlkLCBkZXJpdmVLZXkpOwogICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICBnZW5lcmF0ZVdyaXRlSVYobWF0ZXJpYWwpLnRoZW4oKHdyaXRlSVYpID0+IHsKICAgICAgICAgICAgICAgICAgICBzZXRXcml0ZUlWKGNvbm5lY3Rpb25JZCwga2V5SWQsIHdyaXRlSVYpOwogICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICBzZXRMYXRlc3RSZW1vdGVLZXlJZChjb25uZWN0aW9uSWQsIGtleUlkKTsKICAgICAgICAgICAgfSk7CiAgICAgICAgfQogICAgfQogICAgZWxzZSBpZiAodHlwZSA9PT0gJ3JlbW92ZVJlbW90ZURlcml2ZUtleScpIHsKICAgICAgICBjb25zdCB7IGNvbm5lY3Rpb25JZCB9ID0gZXZlbnQuZGF0YTsKICAgICAgICByZW1vdmVEZXJpdmVLZXkoY29ubmVjdGlvbklkKTsKICAgIH0KICAgIGVsc2UgaWYgKHR5cGUgPT09ICdlbmNyeXB0JykgewogICAgICAgIGNvbnN0IHsgcmVhZGFibGVTdHJlYW0sIHdyaXRhYmxlU3RyZWFtIH0gPSBldmVudC5kYXRhOwogICAgICAgIGNvbnN0IHRyYW5zZm9ybVN0cmVhbSA9IG5ldyBUcmFuc2Zvcm1TdHJlYW0oewogICAgICAgICAgICB0cmFuc2Zvcm06IGVuY3J5cHRGdW5jdGlvbiwKICAgICAgICB9KTsKICAgICAgICByZWFkYWJsZVN0cmVhbS5waXBlVGhyb3VnaCh0cmFuc2Zvcm1TdHJlYW0pLnBpcGVUbyh3cml0YWJsZVN0cmVhbSk7CiAgICB9CiAgICBlbHNlIGlmICh0eXBlID09PSAnZGVjcnlwdCcpIHsKICAgICAgICBjb25zdCB7IHJlYWRhYmxlU3RyZWFtLCB3cml0YWJsZVN0cmVhbSB9ID0gZXZlbnQuZGF0YTsKICAgICAgICBjb25zdCB0cmFuc2Zvcm1TdHJlYW0gPSBuZXcgVHJhbnNmb3JtU3RyZWFtKHsKICAgICAgICAgICAgdHJhbnNmb3JtOiBkZWNyeXB0RnVuY3Rpb24sCiAgICAgICAgfSk7CiAgICAgICAgcmVhZGFibGVTdHJlYW0ucGlwZVRocm91Z2godHJhbnNmb3JtU3RyZWFtKS5waXBlVG8od3JpdGFibGVTdHJlYW0pOwogICAgfQogICAgZWxzZSBpZiAodHlwZSA9PT0gJ2NsZWFyJykgewogICAgICAgIGNvdW50TWFwLmNsZWFyKCk7CiAgICAgICAgd3JpdGVJVk1hcC5jbGVhcigpOwogICAgICAgIHJlbW90ZURlcml2ZUtleU1hcC5jbGVhcigpOwogICAgICAgIGxhdGVzdFJlbW90ZUtleUlkTWFwLmNsZWFyKCk7CiAgICAgICAgc2VsZkRlcml2ZUtleU1hcC5jbGVhcigpOwogICAgfQp9Owo=");this.worker=new Worker(URL.createObjectURL(new Blob([e],{type:"application/javascript"}))),this.worker.onmessage=e=>{let{operation:t}=e.data;"disconnect"===t&&"function"==typeof this.onWorkerDisconnect&&this.onWorkerDisconnect()}}clearWorker(){this.worker&&this.worker.postMessage({type:"clear"})}terminateWorker(){this.worker&&this.worker.terminate()}async init(){let{preKeyBundle:e}=await window.e2ee.init();return e}setupSenderTransform(e,t){if(!this.worker)throw Error("Worker is null. Call startWorker in advance.");this.worker.postMessage({type:"encrypt",readableStream:e,writableStream:t},[e,t])}setupReceiverTransform(e,t){if(!this.worker)throw Error("Worker is null. Call startWorker in advance.");this.worker.postMessage({type:"decrypt",readableStream:e,writableStream:t},[e,t])}postRemoteSecretKeyMaterials(e){if(!this.worker)throw Error("Worker is null. Call startWorker in advance.");this.worker.postMessage({type:"remoteSecretKeyMaterials",remoteSecretKeyMaterials:e.remoteSecretKeyMaterials})}postRemoveRemoteDeriveKey(e){if(!this.worker)throw Error("Worker is null. Call startWorker in advance.");this.worker.postMessage({type:"removeRemoteDeriveKey",connectionId:e})}postSelfSecretKeyMaterial(e,t,i,n=0){if(!this.worker)throw Error("Worker is null. Call startWorker in advance.");this.worker.postMessage({type:"selfSecretKeyMaterial",selfConnectionId:e,selfKeyId:t,selfSecretKeyMaterial:i,waitingTime:n})}startSession(e,t){let[i,n]=window.e2ee.startSession(e,t.identityKey,t.signedPreKey,t.preKeySignature);if(n)throw n;return i}stopSession(e){let[t,i]=window.e2ee.stopSession(e);if(i)throw i;return t}receiveMessage(e){let[t,i]=window.e2ee.receiveMessage(e);if(i)throw i;return t}start(e){let[t,i]=window.e2ee.start(e);if(i)throw i;return t}addPreKeyBundle(e,t){let i=window.e2ee.addPreKeyBundle(e,t.identityKey,t.signedPreKey,t.preKeySignature);if(i)throw i}selfFingerprint(){return window.e2ee.selfFingerprint()}remoteFingerprints(){return window.e2ee.remoteFingerprints()}static async loadWasm(e){if(window.e2ee,(()=>{if("undefined"!=typeof global);else if("undefined"!=typeof window)window.global=window;else if("undefined"!=typeof self)self.global=self;else throw Error("cannot export Go (neither global, window nor self is defined)");if(global.require||"undefined"==typeof require||(global.require=require),!global.fs&&global.require){let e=require("fs");0!==Object.keys(e)&&(global.fs=e)}let e=()=>{let e=Error("not implemented");return e.code="ENOSYS",e};if(!global.fs){let t="";global.fs={constants:{O_WRONLY:-1,O_RDWR:-1,O_CREAT:-1,O_TRUNC:-1,O_APPEND:-1,O_EXCL:-1},writeSync(e,n){let a=(t+=i.decode(n)).lastIndexOf("\n");return -1!=a&&(console.log(t.substr(0,a)),t=t.substr(a+1)),n.length},write(t,i,n,a,s,o){if(0!==n||a!==i.length||null!==s){o(e());return}o(null,this.writeSync(t,i))},chmod(t,i,n){n(e())},chown(t,i,n,a){a(e())},close(t,i){i(e())},fchmod(t,i,n){n(e())},fchown(t,i,n,a){a(e())},fstat(t,i){i(e())},fsync(e,t){t(null)},ftruncate(t,i,n){n(e())},lchown(t,i,n,a){a(e())},link(t,i,n){n(e())},lstat(t,i){i(e())},mkdir(t,i,n){n(e())},open(t,i,n,a){a(e())},read(t,i,n,a,s,o){o(e())},readdir(t,i){i(e())},readlink(t,i){i(e())},rename(t,i,n){n(e())},rmdir(t,i){i(e())},stat(t,i){i(e())},symlink(t,i,n){n(e())},truncate(t,i,n){n(e())},unlink(t,i){i(e())},utimes(t,i,n,a){a(e())}}}if(global.process||(global.process={getuid:()=>-1,getgid:()=>-1,geteuid:()=>-1,getegid:()=>-1,getgroups(){throw e()},pid:-1,ppid:-1,umask(){throw e()},cwd(){throw e()},chdir(){throw e()}}),!global.crypto){let e=require("crypto");global.crypto={getRandomValues(t){e.randomFillSync(t)}}}global.performance||(global.performance={now(){let[e,t]=n.hrtime();return 1e3*e+t/1e6}}),global.TextEncoder||(global.TextEncoder=require("util").TextEncoder),global.TextDecoder||(global.TextDecoder=require("util").TextDecoder);let t=new TextEncoder("utf-8"),i=new TextDecoder("utf-8");if(global.Go=class{constructor(){this.argv=["js"],this.env={},this.exit=e=>{0!==e&&console.warn("exit code:",e)},this._exitPromise=new Promise(e=>{this._resolveExitPromise=e}),this._pendingEvent=null,this._scheduledTimeouts=new Map,this._nextCallbackTimeoutID=1;let e=(e,t)=>{this.mem.setUint32(e+0,t,!0),this.mem.setUint32(e+4,Math.floor(t/4294967296),!0)},n=e=>this.mem.getUint32(e+0,!0)+4294967296*this.mem.getInt32(e+4,!0),a=e=>{let t=this.mem.getFloat64(e,!0);if(0===t)return;if(!isNaN(t))return t;let i=this.mem.getUint32(e,!0);return this._values[i]},s=(e,t)=>{if("number"==typeof t&&0!==t){if(isNaN(t)){this.mem.setUint32(e+4,2146959360,!0),this.mem.setUint32(e,0,!0);return}this.mem.setFloat64(e,t,!0);return}if(void 0===t){this.mem.setFloat64(e,0,!0);return}let i=this._ids.get(t);void 0===i&&(void 0===(i=this._idPool.pop())&&(i=this._values.length),this._values[i]=t,this._goRefCounts[i]=0,this._ids.set(t,i)),this._goRefCounts[i]++;let n=0;switch(typeof t){case"object":null!==t&&(n=1);break;case"string":n=2;break;case"symbol":n=3;break;case"function":n=4}this.mem.setUint32(e+4,2146959360|n,!0),this.mem.setUint32(e,i,!0)},o=e=>{let t=n(e+0),i=n(e+8);return new Uint8Array(this._inst.exports.mem.buffer,t,i)},l=e=>{let t=n(e+0),i=n(e+8),s=Array(i);for(let e=0;e{let t=n(e+0),a=n(e+8);return i.decode(new DataView(this._inst.exports.mem.buffer,t,a))},g=Date.now()-performance.now();this.importObject={go:{"runtime.wasmExit":e=>{let t=this.mem.getInt32(e+8,!0);this.exited=!0,delete this._inst,delete this._values,delete this._goRefCounts,delete this._ids,delete this._idPool,this.exit(t)},"runtime.wasmWrite":e=>{let t=n(e+8),i=n(e+16),a=this.mem.getInt32(e+24,!0);fs.writeSync(t,new Uint8Array(this._inst.exports.mem.buffer,i,a))},"runtime.resetMemoryDataView":e=>{this.mem=new DataView(this._inst.exports.mem.buffer)},"runtime.nanotime1":t=>{e(t+8,(g+performance.now())*1e6)},"runtime.walltime1":t=>{let i=(new Date).getTime();e(t+8,i/1e3),this.mem.setInt32(t+16,i%1e3*1e6,!0)},"runtime.scheduleTimeoutEvent":e=>{let t=this._nextCallbackTimeoutID;this._nextCallbackTimeoutID++,this._scheduledTimeouts.set(t,setTimeout(()=>{for(this._resume();this._scheduledTimeouts.has(t);)console.warn("scheduleTimeoutEvent: missed timeout event"),this._resume()},n(e+8)+1)),this.mem.setInt32(e+16,t,!0)},"runtime.clearTimeoutEvent":e=>{let t=this.mem.getInt32(e+8,!0);clearTimeout(this._scheduledTimeouts.get(t)),this._scheduledTimeouts.delete(t)},"runtime.getRandomData":e=>{crypto.getRandomValues(o(e+8))},"syscall/js.finalizeRef":e=>{let t=this.mem.getUint32(e+8,!0);if(this._goRefCounts[t]--,0===this._goRefCounts[t]){let e=this._values[t];this._values[t]=null,this._ids.delete(e),this._idPool.push(t)}},"syscall/js.stringVal":e=>{s(e+24,r(e+8))},"syscall/js.valueGet":e=>{let t=Reflect.get(a(e+8),r(e+16));s((e=this._inst.exports.getsp())+32,t)},"syscall/js.valueSet":e=>{Reflect.set(a(e+8),r(e+16),a(e+32))},"syscall/js.valueDelete":e=>{Reflect.deleteProperty(a(e+8),r(e+16))},"syscall/js.valueIndex":e=>{s(e+24,Reflect.get(a(e+8),n(e+16)))},"syscall/js.valueSetIndex":e=>{Reflect.set(a(e+8),n(e+16),a(e+24))},"syscall/js.valueCall":e=>{try{let t=a(e+8),i=Reflect.get(t,r(e+16)),n=l(e+32),o=Reflect.apply(i,t,n);e=this._inst.exports.getsp(),s(e+56,o),this.mem.setUint8(e+64,1)}catch(t){s(e+56,t),this.mem.setUint8(e+64,0)}},"syscall/js.valueInvoke":e=>{try{let t=a(e+8),i=l(e+16),n=Reflect.apply(t,void 0,i);e=this._inst.exports.getsp(),s(e+40,n),this.mem.setUint8(e+48,1)}catch(t){s(e+40,t),this.mem.setUint8(e+48,0)}},"syscall/js.valueNew":e=>{try{let t=a(e+8),i=l(e+16),n=Reflect.construct(t,i);e=this._inst.exports.getsp(),s(e+40,n),this.mem.setUint8(e+48,1)}catch(t){s(e+40,t),this.mem.setUint8(e+48,0)}},"syscall/js.valueLength":t=>{e(t+16,parseInt(a(t+8).length))},"syscall/js.valuePrepareString":i=>{let n=t.encode(String(a(i+8)));s(i+16,n),e(i+24,n.length)},"syscall/js.valueLoadString":e=>{let t=a(e+8);o(e+16).set(t)},"syscall/js.valueInstanceOf":e=>{this.mem.setUint8(e+24,a(e+8) instanceof a(e+16)?1:0)},"syscall/js.copyBytesToGo":t=>{let i=o(t+8),n=a(t+32);if(!(n instanceof Uint8Array||n instanceof Uint8ClampedArray)){this.mem.setUint8(t+48,0);return}let s=n.subarray(0,i.length);i.set(s),e(t+40,s.length),this.mem.setUint8(t+48,1)},"syscall/js.copyBytesToJS":t=>{let i=a(t+8),n=o(t+16);if(!(i instanceof Uint8Array||i instanceof Uint8ClampedArray)){this.mem.setUint8(t+48,0);return}let s=n.subarray(0,i.length);i.set(s),e(t+40,s.length),this.mem.setUint8(t+48,1)},debug:e=>{console.log(e)}}}}async run(e){this._inst=e,this.mem=new DataView(this._inst.exports.mem.buffer),this._values=[NaN,0,null,!0,!1,global,this],this._goRefCounts=Array(this._values.length).fill(1/0),this._ids=new Map([[0,1],[null,2],[!0,3],[!1,4],[global,5],[this,6]]),this._idPool=[],this.exited=!1;let i=4096,n=e=>{let n=i,a=t.encode(e+"\0");return new Uint8Array(this.mem.buffer,i,a.length).set(a),(i+=a.length)%8!=0&&(i+=8-i%8),n},a=this.argv.length,s=[];this.argv.forEach(e=>{s.push(n(e))}),s.push(0),Object.keys(this.env).sort().forEach(e=>{s.push(n(`${e}=${this.env[e]}`))}),s.push(0);let o=i;s.forEach(e=>{this.mem.setUint32(i,e,!0),this.mem.setUint32(i+4,0,!0),i+=8}),this._inst.exports.run(a,o),this.exited&&this._resolveExitPromise(),await this._exitPromise}_resume(){if(this.exited)throw Error("Go program has already exited");this._inst.exports.resume(),this.exited&&this._resolveExitPromise()}_makeFuncWrapper(e){let t=this;return function(){let i={id:e,this:this,args:arguments};return t._pendingEvent=i,t._resume(),i.result}}},global.require&&global.require.main===module&&global.process&&global.process.versions&&!global.process.versions.electron){n.argv.length<3&&(console.error("usage: go_js_wasm_exec [wasm binary] [arguments]"),n.exit(1));let e=new Go;e.argv=n.argv.slice(2),e.env=Object.assign({TMPDIR:require("os").tmpdir()},n.env),e.exit=n.exit,WebAssembly.instantiate(fs.readFileSync(n.argv[2]),e.importObject).then(t=>(n.on("exit",t=>{0!==t||e.exited||(e._pendingEvent={id:0},e._resume())}),e.run(t.instance))).catch(e=>{console.error(e),n.exit(1)})}})(),!window.Go)throw Error(`Failed to load module Go. window.Go is ${window.Go}.`);let t=new Go,{instance:i}=await WebAssembly.instantiateStreaming(fetch(e),t.importObject);if(t.run(i),!window.e2ee)throw Error(`Failed to load module e2ee. window.e2ee is ${window.e2ee}.`)}static version(){return"2021.1.0"}static wasmVersion(){return window.e2ee.version()}}async function s(e,t){if(t.audio&&"boolean"!=typeof t.audio)for(let i of e.getAudioTracks())await i.applyConstraints(t.audio);if(t.video&&"boolean"!=typeof t.video)for(let i of e.getVideoTracks())await i.applyConstraints(t.video)}var o=Uint8Array,l=Uint16Array,r=Int32Array,g=new o([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),c=new o([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),d=new o([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),C=function(e,t){for(var i=new l(31),n=0;n<31;++n)i[n]=t+=1<>1|(21845&Z)<<1;w=(61680&(w=(52428&w)>>2|(13107&w)<<2))>>4|(3855&w)<<4,p[Z]=((65280&w)>>8|(255&w)<<8)>>1}for(var f=function(e,t,i){for(var n,a=e.length,s=0,o=new l(t);s>g]=c}else for(s=0,n=new l(a);s>15-e[s]);return n},S=new o(288),Z=0;Z<144;++Z)S[Z]=8;for(var Z=144;Z<256;++Z)S[Z]=9;for(var Z=256;Z<280;++Z)S[Z]=7;for(var Z=280;Z<288;++Z)S[Z]=8;for(var V=new o(32),Z=0;Z<32;++Z)V[Z]=5;var y=f(S,9,0),W=f(S,9,1),G=f(V,5,0),v=f(V,5,1),k=function(e){for(var t=e[0],i=1;it&&(t=e[i]);return t},R=function(e,t,i){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(7&t)&i},T=function(e,t){var i=t/8|0;return(e[i]|e[i+1]<<8|e[i+2]<<16)>>(7&t)},O=function(e){return(e+7)/8|0},X=function(e,t,i){return(null==i||i>e.length)&&(i=e.length),new o(e.subarray(t,i))},B=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(e,t,i){var n=Error(t||B[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,E),!i)throw n;return n},N=function(e,t,i,n){var a=e.length;if(!a||t.f&&!t.l)return i||new o(0);var s=!i,l=s||2!=t.i,r=t.i;s&&(i=new o(3*a));var C=function(e){var t=i.length;if(e>t){var n=new o(Math.max(2*t,e));n.set(i),i=n}},h=t.f||0,m=t.p||0,u=t.b||0,b=t.l,p=t.d,Z=t.m,w=t.n,S=8*a;do{if(!b){h=R(e,m,1);var V=R(e,m+1,3);if(m+=3,V){if(1==V)b=W,p=v,Z=9,w=5;else if(2==V){var y=R(e,m,31)+257,G=R(e,m+10,15)+4,B=y+R(e,m+5,31)+1;m+=14;for(var N=new o(B),Y=new o(19),D=0;D>4;if(F<16)N[D++]=F;else{var j=0,Q=0;for(16==F?(Q=3+R(e,m,3),m+=2,j=N[D-1]):17==F?(Q=3+R(e,m,7),m+=3):18==F&&(Q=11+R(e,m,127),m+=7);Q--;)N[D++]=j}}var P=N.subarray(0,y),x=N.subarray(y);Z=k(P),w=k(x),b=f(P,Z,1),p=f(x,w,1)}else E(1)}else{var F=O(m)+4,H=e[F-4]|e[F-3]<<8,M=F+H;if(M>a){r&&E(0);break}l&&C(u+H),i.set(e.subarray(F,M),u),t.b=u+=H,t.p=m=8*M,t.f=h;continue}if(m>S){r&&E(0);break}}l&&C(u+131072);for(var _=(1<>4;if((m+=15&j)>S){r&&E(0);break}if(j||E(2),$<256)i[u++]=$;else if(256==$){q=m,b=null;break}else{var ee=$-254;if($>264){var D=$-257,et=g[D];ee=R(e,m,(1<>4;ei||E(3),m+=15&ei;var x=A[en];if(en>3){var et=c[en];x+=T(e,m)&(1<S){r&&E(0);break}l&&C(u+131072);var ea=u+ee;if(u>8},D=function(e,t,i){i<<=7&t;var n=t/8|0;e[n]|=i,e[n+1]|=i>>8,e[n+2]|=i>>16},L=function(e,t){for(var i=[],n=0;nI&&(I=s[n].s);var m=new l(I+1),u=K(i[C-1],m,0);if(u>t){var n=0,A=0,b=u-t,p=1<t)A+=p-(1<>=b;A>0;){var w=s[n].s;m[w]=0&&A;--n){var f=s[n].s;m[f]==t&&(--m[f],++A)}u=t}return{t:new o(m),l:u}},K=function(e,t,i){return -1==e.s?Math.max(K(e.l,t,i+1),K(e.r,t,i+1)):t[e.s]=i},J=function(e){for(var t=e.length;t&&!e[--t];);for(var i=new l(++t),n=0,a=e[0],s=1,o=function(e){i[n++]=e},r=1;r<=t;++r)if(e[r]==a&&r!=t)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=e[r]}return{c:i.subarray(0,n),n:t}},U=function(e,t){for(var i=0,n=0;n>8,e[a+2]=255^e[a],e[a+3]=255^e[a+1];for(var s=0;s4&&!Q[d[x-1]];--x);var H=h+5<<3,M=U(a,S)+U(s,V)+o,_=U(a,Z)+U(s,v)+o+14+3*x+U(N,Q)+2*N[16]+3*N[17]+7*N[18];if(C>=0&&H<=M&&H<=_)return F(t,I,e.subarray(C,C+h));if(Y(t,I,1+(_15&&(Y(t,I,ee[K]>>5&127),I+=ee[K]>>12)}}else m=y,u=S,A=G,b=V;for(var K=0;K255){var et=ei>>18&31;D(t,I,m[et+257]),I+=u[et+257],et>7&&(Y(t,I,ei>>23&31),I+=g[et]);var en=31&ei;D(t,I,A[en]),I+=b[en],en>3&&(D(t,I,ei>>5&8191),I+=c[en])}else D(t,I,m[ei]),I+=u[ei]}return D(t,I,m[256]),I+u[256]},Q=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),P=new o(0),x=function(e,t,i,n,a,s){var d=s.z||e.length,C=new o(n+d+5*(1+Math.ceil(d/7e3))+a),h=C.subarray(n,C.length-a),I=s.l,u=7&(s.r||0);if(t){u&&(h[0]=s.r>>3);for(var A=Q[t-1],p=A>>13,Z=8191&A,w=(1<7e3||E>24576)&&(J>423||!I)){u=j(e,h,0,G,v,k,T,E,Y,B-Y,u),E=R=T=0,Y=B;for(var U=0;U<286;++U)v[U]=0;for(var U=0;U<30;++U)k[U]=0}var P=2,x=0,H=Z,M=L-K&32767;if(J>2&&D==W(B-M))for(var _=Math.min(p,J)-1,z=Math.min(32767,B),q=Math.min(258,J);M<=z&&--H&&L!=K;){if(e[B+P]==e[B+P-M]){for(var $=0;$P){if(P=$,x=M,$>_)break;for(var ee=Math.min(M,$-2),et=0,U=0;Uet&&(et=ea,K=ei)}}}K=f[L=K],M+=L-K&32767}if(x){G[E++]=268435456|m[P]<<18|b[x];var es=31&m[P],eo=31&b[x];T+=g[es]+c[eo],++v[257+es],++k[eo],N=B+P,++R}else G[E++]=e[B],++v[e[B]]}}for(B=Math.max(B,N);B=d&&(h[u/8|0]=I,el=d),u=F(h,u+1,e.subarray(B,el))}s.i=d}return X(C,0,n+O(u)+a)},H=function(){var e=1,t=0;return{p:function(i){for(var n=e,a=t,s=0|i.length,o=0;o!=s;){for(var l=Math.min(o+2655,s);o>16),a=(65535&a)+15*(a>>16)}e=n,t=a},d:function(){return e%=65521,t%=65521,(255&e)<<24|(65280&e)<<8|(255&t)<<8|t>>8}}},M=function(e,t,i,n,a){if(!a&&(a={l:1},t.dictionary)){var s=t.dictionary.subarray(-32768),l=new o(s.length+e.length);l.set(s),l.set(e,s.length),e=l,a.w=s.length}return x(e,null==t.level?6:t.level,null==t.mem?a.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,i,n,a)},_=function(e,t,i){for(;i;++t)e[t]=i,i>>>=8},z=function(e,t){var i=t.level;if(e[0]=120,e[1]=(0==i?0:i<6?1:9==i?3:2)<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var n=H();n.p(t.dictionary),_(e,2,n.d())}};function q(e,t){t||(t={});var i=H();i.p(e);var n=M(e,t,t.dictionary?6:2,4);return z(n,t),_(n,n.length-4,i.d()),n}function $(e,t){return N(e.subarray((((15&e[0])!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&E(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&E(6,"invalid zlib data: "+(32&e[1]?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2),-4),{i:2},t,t)}var ee="undefined"!=typeof TextDecoder&&new TextDecoder;try{ee.decode(P,{stream:!0})}catch(e){}function et(){let e=window.navigator.userAgent.toLocaleLowerCase();return -1!==e.indexOf("edge")?"edge":-1!==e.indexOf("chrome")&&-1===e.indexOf("edge")?"chrome":-1!==e.indexOf("safari")&&-1===e.indexOf("chrome")?"safari":-1!==e.indexOf("opera")?"opera":-1!==e.indexOf("firefox")?"firefox":null}function ei(e){return void 0!==e.authn_metadata?e.authn_metadata:void 0!==e.metadata?e.metadata:null}function en(e){return"object"==typeof e&&null!==e&&"pre_key_bundle"in e?e.pre_key_bundle:null}class ea extends Error{}function es(e,t,i){let n=new Event(e);try{n.data=JSON.parse(JSON.stringify(t))}catch(e){n.data=t}return n.transportType=i,n}function eo(e,t,i,n,a){let s=new Event(e);try{s.data=JSON.parse(JSON.stringify(t))}catch(e){s.data=t}return s.logType=i,s.dataChannelId=n,s.dataChannelLabel=a,s}function el(e,t){if(t){let t=$(new Uint8Array(e));return new TextDecoder().decode(t)}return e}class er{constructor(e,t,i,n,a,s){this.senderStreamInitialized=new WeakSet,this.role=t,this.channelId=i,this.metadata=n,this.signalingUrlCandidates=e,this.options=a,this.connectionTimeout=6e4,"number"==typeof this.options.timeout&&(console.warn("@deprecated timeout option will be removed in a future version. Use connectionTimeout."),this.connectionTimeout=this.options.timeout),"number"==typeof this.options.connectionTimeout&&(this.connectionTimeout=this.options.connectionTimeout),this.disconnectWaitTimeout=3e3,"number"==typeof this.options.disconnectWaitTimeout&&(this.disconnectWaitTimeout=this.options.disconnectWaitTimeout),this.signalingCandidateTimeout=3e3,"number"==typeof this.options.signalingCandidateTimeout&&(this.signalingCandidateTimeout=this.options.signalingCandidateTimeout),this.constraints=null,this.debug=s,this.clientId=null,this.connectionId=null,this.sessionId=null,this.remoteConnectionIds=[],this.stream=null,this.ws=null,this.pc=null,this.encodings=[],this.callbacks={disconnect:()=>{},push:()=>{},addstream:()=>{},track:()=>{},removestream:()=>{},removetrack:()=>{},notify:()=>{},log:()=>{},timeout:()=>{},timeline:()=>{},signaling:()=>{},message:()=>{},datachannel:()=>{}},this.authMetadata=null,this.e2ee=null,this.connectionTimeoutTimerId=0,this.monitorSignalingWebSocketEventTimerId=0,this.monitorIceConnectionStateChangeTimerId=0,this.soraDataChannels={},this.mids={audio:"",video:""},this.signalingSwitched=!1,this.signalingOfferMessageDataChannels={},this.connectedSignalingUrl="",this.contactSignalingUrl=""}on(e,t){"addstream"===e?console.warn("@deprecated addstream callback will be removed in a future version. Use track callback."):"removestream"===e&&console.warn("@deprecated removestream callback will be removed in a future version. Use removetrack callback."),e in this.callbacks&&(this.callbacks[e]=t)}stopAudioTrack(e){return console.warn("@deprecated stopAudioTrack will be removed in a future version. Use removeAudioTrack instead."),this.removeAudioTrack(e)}removeAudioTrack(e){for(let t of e.getAudioTracks())t.enabled=!1;return new Promise((t,i)=>{setTimeout(()=>{Promise.all(e.getAudioTracks().map(async t=>{if(t.stop(),e.removeTrack(t),null!==this.pc){let e=this.pc.getSenders().find(e=>e.track&&e.track.id===t.id);if(e)return e.replaceTrack(null)}})).then(()=>t()).catch(i)},100)})}stopVideoTrack(e){return console.warn("@deprecated stopVideoTrack will be removed in a future version. Use removeVideoTrack instead."),this.removeVideoTrack(e)}removeVideoTrack(e){for(let t of e.getVideoTracks())t.enabled=!1;return new Promise((t,i)=>{setTimeout(()=>{Promise.all(e.getVideoTracks().map(async t=>{if(t.stop(),e.removeTrack(t),null!==this.pc){let e=this.pc.getSenders().find(e=>e.track&&e.track.id===t.id);if(e)return e.replaceTrack(null)}})).then(()=>t()).catch(i)},100)})}async replaceAudioTrack(e,t){await this.removeAudioTrack(e);let i=this.getAudioTransceiver();if(null===i)throw Error("Unable to set an audio track. Audio track sender is undefined");e.addTrack(t),await i.sender.replaceTrack(t),await this.setupSenderTransform(i.sender)}async replaceVideoTrack(e,t){await this.removeVideoTrack(e);let i=this.getVideoTransceiver();if(null===i)throw Error("Unable to set video track. Video track sender is undefined");e.addTrack(t),await i.sender.replaceTrack(t),await this.setupSenderTransform(i.sender)}signalingTerminate(){for(let e of Object.keys(this.soraDataChannels)){let t=this.soraDataChannels[e];t&&t.close(),delete this.soraDataChannels[e]}this.ws&&(this.ws.close(),this.ws=null),this.pc&&this.pc.close(),this.e2ee&&this.e2ee.terminateWorker(),this.initializeConnection()}abendPeerConnectionState(e){for(let e of(this.clearMonitorIceConnectionStateChange(),this.pc&&(this.pc.ondatachannel=null,this.pc.oniceconnectionstatechange=null,this.pc.onicegatheringstatechange=null,this.pc.onconnectionstatechange=null),this.ws&&(this.ws.onclose=e=>{this.writeWebSocketTimelineLog("onclose",{code:e.code,reason:e.reason})},this.ws.onmessage=null,this.ws.onerror=null),Object.keys(this.soraDataChannels))){let t=this.soraDataChannels[e];t&&(t.onclose=e=>{let t=e.currentTarget;this.writeDataChannelTimelineLog("onclose",t),this.trace("CLOSE DATA CHANNEL",t.label)},t.onmessage=null,t.onerror=null)}for(let e of Object.keys(this.soraDataChannels)){let t=this.soraDataChannels[e];t&&t.close(),delete this.soraDataChannels[e]}this.ws&&(this.ws.close(),this.ws=null),this.pc&&this.pc.close(),this.e2ee&&this.e2ee.terminateWorker(),this.initializeConnection();let t=this.soraCloseEvent("abend",e);this.callbacks.disconnect(t),this.writeSoraTimelineLog("disconnect-abend",t)}async abend(e,t){for(let e of(this.clearMonitorIceConnectionStateChange(),this.pc&&(this.pc.ondatachannel=null,this.pc.oniceconnectionstatechange=null,this.pc.onicegatheringstatechange=null,this.pc.onconnectionstatechange=null),this.ws&&(this.ws.onclose=e=>{this.writeWebSocketTimelineLog("onclose",{code:e.code,reason:e.reason})},this.ws.onmessage=null,this.ws.onerror=null),Object.keys(this.soraDataChannels))){let t=this.soraDataChannels[e];t&&(t.onclose=e=>{let t=e.currentTarget;this.writeDataChannelTimelineLog("onclose",t),this.trace("CLOSE DATA CHANNEL",t.label)},t.onmessage=null,t.onerror=null)}if(this.soraDataChannels.signaling){let t={type:"disconnect",reason:e};if(this.signalingOfferMessageDataChannels.signaling&&!0===this.signalingOfferMessageDataChannels.signaling.compress){let e=q(new TextEncoder().encode(JSON.stringify(t)),{});if("open"===this.soraDataChannels.signaling.readyState)try{this.soraDataChannels.signaling.send(e),this.writeDataChannelSignalingLog("send-disconnect",this.soraDataChannels.signaling,t)}catch(t){let e=t.message;this.writeDataChannelSignalingLog("failed-to-send-disconnect",this.soraDataChannels.signaling,e)}}else if("open"===this.soraDataChannels.signaling.readyState)try{this.soraDataChannels.signaling.send(JSON.stringify(t)),this.writeDataChannelSignalingLog("send-disconnect",this.soraDataChannels.signaling,t)}catch(t){let e=t.message;this.writeDataChannelSignalingLog("failed-to-send-disconnect",this.soraDataChannels.signaling,e)}}for(let e of Object.keys(this.soraDataChannels)){let t=this.soraDataChannels[e];t&&(t.onerror=null,t.close()),delete this.soraDataChannels[e]}if(await this.disconnectWebSocket(e),await this.disconnectPeerConnection(),this.e2ee&&this.e2ee.terminateWorker(),this.initializeConnection(),"WEBSOCKET-ONCLOSE"===e&&t&&(1e3===t.code||1005===t.code)){let e=this.soraCloseEvent("normal","DISCONNECT",t);this.writeSoraTimelineLog("disconnect-normal",e),this.callbacks.disconnect(e);return}let i=this.soraCloseEvent("abend",e,t);this.writeSoraTimelineLog("disconnect-abend",i),this.callbacks.disconnect(this.soraCloseEvent("abend",e,t))}initializeConnection(){this.clientId=null,this.connectionId=null,this.sessionId=null,this.remoteConnectionIds=[],this.stream=null,this.ws=null,this.pc=null,this.encodings=[],this.authMetadata=null,this.e2ee=null,this.soraDataChannels={},this.mids={audio:"",video:""},this.signalingSwitched=!1,this.signalingOfferMessageDataChannels={},this.contactSignalingUrl="",this.connectedSignalingUrl="",this.clearConnectionTimeout()}disconnectWebSocket(e){let t=0;return this.signalingSwitched?(this.ws&&(this.ws.close(),this.ws=null),Promise.resolve(null)):new Promise((i,n)=>{if(!this.ws)return i(null);if(this.ws.onclose=e=>(this.ws&&(this.ws.close(),this.ws=null),clearTimeout(t),this.writeWebSocketTimelineLog("onclose",{code:e.code,reason:e.reason}),i({code:e.code,reason:e.reason})),1!==this.ws.readyState)return this.ws.close(),this.ws=null,i(null);{let n={type:"disconnect",reason:e};this.ws.send(JSON.stringify(n)),this.writeWebSocketSignalingLog("send-disconnect",n),t=setTimeout(()=>{this.ws&&(this.ws.close(),this.ws=null),i({code:1006,reason:""})},this.disconnectWaitTimeout)}})}disconnectDataChannel(){let e=()=>{for(let e of Object.keys(this.soraDataChannels)){let t=this.soraDataChannels[e];t&&(t.onerror=null,t.close()),delete this.soraDataChannels[e]}};return new Promise((t,i)=>{if(!this.soraDataChannels.signaling)return e(),t({code:4999,reason:""});let n=setTimeout(()=>(e(),i()),this.disconnectWaitTimeout),a=[];for(let i of Object.keys(this.soraDataChannels)){let s=this.soraDataChannels[i];if(s){s.onerror=()=>(clearTimeout(n),e(),t({code:4999,reason:""}));let i=()=>new Promise((e,t)=>{let i=0,n=setInterval(()=>{i++,"closed"===s.readyState&&(clearInterval(n),e()),this.disconnectWaitTimeout<100*i&&(e(),clearInterval(n))},100)});a.push(i())}}Promise.all(a).then(()=>{0===Object.keys(this.soraDataChannels).length?t(null):t({code:4999,reason:""})}).catch(e=>i(e)).finally(()=>{e(),clearTimeout(n)});let s={type:"disconnect",reason:"NO-ERROR"};if(this.signalingOfferMessageDataChannels.signaling&&!0===this.signalingOfferMessageDataChannels.signaling.compress){let e=q(new TextEncoder().encode(JSON.stringify(s)),{});if("open"===this.soraDataChannels.signaling.readyState)try{this.soraDataChannels.signaling.send(e),this.writeDataChannelSignalingLog("send-disconnect",this.soraDataChannels.signaling,s)}catch(t){let e=t.message;this.writeDataChannelSignalingLog("failed-to-send-disconnect",this.soraDataChannels.signaling,e)}}else if("open"===this.soraDataChannels.signaling.readyState)try{this.soraDataChannels.signaling.send(JSON.stringify(s)),this.writeDataChannelSignalingLog("send-disconnect",this.soraDataChannels.signaling,s)}catch(t){let e=t.message;this.writeDataChannelSignalingLog("failed-to-send-disconnect",this.soraDataChannels.signaling,e)}})}disconnectPeerConnection(){return new Promise((e,t)=>(this.pc&&"closed"!==this.pc.connectionState&&this.pc.close(),e()))}async disconnect(){for(let e of(this.clearMonitorIceConnectionStateChange(),this.pc&&(this.pc.ondatachannel=null,this.pc.oniceconnectionstatechange=null,this.pc.onicegatheringstatechange=null,this.pc.onconnectionstatechange=null),this.ws&&(this.ws.onclose=e=>{this.writeWebSocketTimelineLog("onclose",{code:e.code,reason:e.reason})},this.ws.onmessage=null,this.ws.onerror=null),Object.keys(this.soraDataChannels))){let t=this.soraDataChannels[e];t&&(t.onmessage=null,t.onclose=e=>{let t=e.currentTarget;this.writeDataChannelTimelineLog("onclose",t),this.trace("CLOSE DATA CHANNEL",t.label)})}let e=null;if(this.signalingSwitched){try{let t=await this.disconnectDataChannel();null!==t&&(e=this.soraCloseEvent("normal","DISCONNECT",t))}catch(t){e=this.soraCloseEvent("abend","DISCONNECT-TIMEOUT")}await this.disconnectWebSocket("NO-ERROR"),await this.disconnectPeerConnection()}else{let t=await this.disconnectWebSocket("NO-ERROR");await this.disconnectPeerConnection(),null!==t&&(e=this.soraCloseEvent("normal","DISCONNECT",t))}this.e2ee&&this.e2ee.terminateWorker(),this.initializeConnection(),e&&("abend"===e.type?this.writeSoraTimelineLog("disconnect-abend",e):"normal"===e.type&&this.writeSoraTimelineLog("disconnect-normal",e),this.callbacks.disconnect(e))}setupE2EE(){!0===this.options.e2ee&&(this.e2ee=new a,this.e2ee.onWorkerDisconnect=async()=>{await this.abend("INTERNAL-ERROR",{reason:"CRASH-E2EE-WORKER"})},this.e2ee.startWorker())}startE2EE(){if(!0===this.options.e2ee&&this.e2ee){if(!this.connectionId){let e=Error();throw e.message="E2EE failed. Self connectionId is null",e}this.e2ee.clearWorker();let e=this.e2ee.start(this.connectionId);this.e2ee.postSelfSecretKeyMaterial(this.connectionId,e.selfKeyId,e.selfSecretKeyMaterial)}}async getSignalingWebSocket(e){if("string"==typeof e)return new Promise((t,i)=>{let n=new WebSocket(e);n.onclose=e=>{let t=new ea(`Signaling failed. CloseEventCode:${e.code} CloseEventReason:'${e.reason}'`);t.code=e.code,t.reason=e.reason,this.writeWebSocketTimelineLog("onclose",t),i(t)},n.onopen=e=>{t(n)}});if(Array.isArray(e)){let t=!1,i=e=>new Promise((i,n)=>{let a=new WebSocket(e),s=setTimeout(()=>{this.writeWebSocketSignalingLog("signaling-url-candidate",{type:"timeout",url:a.url}),a&&!t&&(a.onclose=null,a.onerror=null,a.onopen=null,a.close(),n())},this.signalingCandidateTimeout);a.onclose=e=>{this.writeWebSocketSignalingLog("signaling-url-candidate",{type:"close",url:a.url,message:"WebSocket closed",code:e.code,reason:e.reason}),a&&a.close(),clearInterval(s),n()},a.onerror=e=>{this.writeWebSocketSignalingLog("signaling-url-candidate",{type:"error",url:a.url,message:"Failed to connect WebSocket"}),a&&(a.onclose=null,a.close()),clearInterval(s),n()},a.onopen=e=>{a&&(clearInterval(s),t?(this.writeWebSocketSignalingLog("signaling-url-candidate",{type:"open",url:a.url,selected:!1}),a.onerror=null,a.onclose=null,a.onopen=null,a.close(),n()):(this.writeWebSocketSignalingLog("signaling-url-candidate",{type:"open",url:a.url,selected:!0}),a.onerror=null,a.onclose=null,a.onopen=null,t=!0,i(a)))}});try{return await Promise.any(e.map(e=>i(e)))}catch(e){throw new ea("Signaling failed. All signaling URL candidates failed to connect")}}throw new ea("Signaling failed. Invalid format signaling URL candidates")}async signaling(e,t=!1){let i=await this.createOffer();return this.trace("CREATE OFFER",i),new Promise((n,a)=>{this.writeWebSocketSignalingLog("new-websocket",e.url),e.binaryType="arraybuffer",e.onclose=e=>{let t=new ea(`Signaling failed. CloseEventCode:${e.code} CloseEventReason:'${e.reason}'`);t.code=e.code,t.reason=e.reason,this.writeWebSocketTimelineLog("onclose",t),this.signalingTerminate(),a(t)},e.onmessage=async t=>{if(t.data instanceof ArrayBuffer){this.writeWebSocketSignalingLog("onmessage-e2ee",t.data),this.signalingOnMessageE2EE(t.data);return}if("string"!=typeof t.data)throw Error("Received invalid signaling data");let i=JSON.parse(t.data);if("offer"===i.type)this.writeWebSocketSignalingLog("onmessage-offer",i),this.signalingOnMessageTypeOffer(i),this.connectedSignalingUrl=e.url,n(i);else if("update"===i.type)this.writeWebSocketSignalingLog("onmessage-update",i),await this.signalingOnMessageTypeUpdate(i);else if("re-offer"===i.type)this.writeWebSocketSignalingLog("onmessage-re-offer",i),await this.signalingOnMessageTypeReOffer(i);else if("ping"===i.type)await this.signalingOnMessageTypePing(i);else if("push"===i.type)this.callbacks.push(i,"websocket");else if("notify"===i.type)"connection.created"===i.event_type?this.writeWebSocketTimelineLog("notify-connection.created",i):"connection.destroyed"===i.event_type&&this.writeWebSocketTimelineLog("notify-connection.destroyed",i),this.signalingOnMessageTypeNotify(i,"websocket");else if("switched"===i.type)this.writeWebSocketSignalingLog("onmessage-switched",i),this.signalingOnMessageTypeSwitched(i);else if("redirect"===i.type){this.writeWebSocketSignalingLog("onmessage-redirect",i);try{let e=await this.signalingOnMessageTypeRedirect(i);n(e)}catch(e){a(e)}}},(async()=>{let n;try{n=function(e,t,i,n,a,s){if("sendrecv"!==t&&"sendonly"!==t&&"recvonly"!==t)throw Error("Unknown role type");if(null==i)throw Error("channelId can not be null or undefined");let o={type:"connect",sora_client:"Sora JavaScript SDK 2024.1.1",environment:window.navigator.userAgent,role:t,channel_id:i,sdp:e,audio:!0,video:!0};if("sendrecv"===t&&!1===a.multistream)throw Error("Failed to parse options. Options multistream must be true when connecting using 'sendrecv'");!0===s&&(o.redirect=!0),"boolean"==typeof a.multistream&&(o.multistream=a.multistream),"boolean"==typeof a.simulcast&&(o.simulcast=a.simulcast),void 0!==a.simulcastRid&&0<=["r0","r1","r2"].indexOf(a.simulcastRid)&&(o.simulcast_rid=a.simulcastRid),"boolean"==typeof a.spotlight&&(o.spotlight=a.spotlight),"spotlightNumber"in a&&(o.spotlight_number=a.spotlightNumber);let l=["none","r0","r1","r2"];void 0!==a.spotlightFocusRid&&0<=l.indexOf(a.spotlightFocusRid)&&(o.spotlight_focus_rid=a.spotlightFocusRid),void 0!==a.spotlightUnfocusRid&&0<=l.indexOf(a.spotlightUnfocusRid)&&(o.spotlight_unfocus_rid=a.spotlightUnfocusRid),void 0!==n&&(o.metadata=n),void 0!==a.signalingNotifyMetadata&&(o.signaling_notify_metadata=a.signalingNotifyMetadata),void 0!==a.forwardingFilter&&(o.forwarding_filter=a.forwardingFilter),void 0!==a.clientId&&(o.client_id=a.clientId),void 0!==a.bundleId&&(o.bundle_id=a.bundleId),"boolean"==typeof a.dataChannelSignaling&&(o.data_channel_signaling=a.dataChannelSignaling),"boolean"==typeof a.ignoreDisconnectWebSocket&&(o.ignore_disconnect_websocket=a.ignoreDisconnectWebSocket);let r=["audioCodecType","audioBitRate"],g=["audioOpusParamsChannels","audioOpusParamsMaxplaybackrate","audioOpusParamsStereo","audioOpusParamsSpropStereo","audioOpusParamsMinptime","audioOpusParamsPtime","audioOpusParamsUseinbandfec","audioOpusParamsUsedtx"],c=["videoCodecType","videoBitRate","videoVP9Params","videoH264Params","videoH265Params","videoAV1Params"],d=Object.assign({},a);Object.keys(d).filter(e=>{"audio"===e&&"boolean"==typeof d[e]||"video"===e&&"boolean"==typeof d[e]||0<=r.indexOf(e)&&null!==d[e]||0<=g.indexOf(e)&&null!==d[e]||0<=c.indexOf(e)&&null!==d[e]||delete d[e]}),void 0!==d.audio&&(o.audio=d.audio);let C=Object.keys(d).some(e=>0<=r.indexOf(e));o.audio&&C&&(o.audio={},"audioCodecType"in d&&(o.audio.codec_type=d.audioCodecType),"audioBitRate"in d&&(o.audio.bit_rate=d.audioBitRate));let h=Object.keys(d).some(e=>0<=g.indexOf(e));o.audio&&h&&("object"!=typeof o.audio&&(o.audio={}),o.audio.opus_params={},"audioOpusParamsChannels"in d&&(o.audio.opus_params.channels=d.audioOpusParamsChannels),"audioOpusParamsMaxplaybackrate"in d&&(o.audio.opus_params.maxplaybackrate=d.audioOpusParamsMaxplaybackrate),"audioOpusParamsStereo"in d&&(o.audio.opus_params.stereo=d.audioOpusParamsStereo),"audioOpusParamsSpropStereo"in d&&(o.audio.opus_params.sprop_stereo=d.audioOpusParamsSpropStereo),"audioOpusParamsMinptime"in d&&(o.audio.opus_params.minptime=d.audioOpusParamsMinptime),"audioOpusParamsPtime"in d&&(o.audio.opus_params.ptime=d.audioOpusParamsPtime),"audioOpusParamsUseinbandfec"in d&&(o.audio.opus_params.useinbandfec=d.audioOpusParamsUseinbandfec),"audioOpusParamsUsedtx"in d&&(o.audio.opus_params.usedtx=d.audioOpusParamsUsedtx)),void 0!==d.video&&(o.video=d.video);let I=Object.keys(d).some(e=>0<=c.indexOf(e));if(o.video&&I&&(o.video={},"videoCodecType"in d&&(o.video.codec_type=d.videoCodecType),"videoBitRate"in d&&(o.video.bit_rate=d.videoBitRate),"videoVP9Params"in d&&(o.video.vp9_params=d.videoVP9Params),"videoH264Params"in d&&(o.video.h264_params=d.videoH264Params),"videoH265Params"in d&&(o.video.h265_params=d.videoH265Params),"videoAV1Params"in d&&(o.video.av1_params=d.videoAV1Params)),o.simulcast&&!function(){if(!window.RTCRtpSender||!RTCRtpSender.getCapabilities)return!1;let e=RTCRtpSender.getCapabilities("video");if(!e)return!1;let t=e.headerExtensions.map(e=>e.uri);return["urn:ietf:params:rtp-hdrext:sdes:mid","urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id","urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id"].every(e=>t.includes(e))}()&&"recvonly"!==t)throw Error("Simulcast can not be used with this browser");if("boolean"==typeof a.e2ee&&(o.e2ee=a.e2ee),!0===a.e2ee){if(void 0===o.signaling_notify_metadata&&(o.signaling_notify_metadata={}),null===o.signaling_notify_metadata||"object"!=typeof o.signaling_notify_metadata)throw Error("E2EE failed. Options signalingNotifyMetadata must be type 'object'");!0===o.video&&(o.video={}),o.video&&(o.video.codec_type="VP8")}return Array.isArray(a.dataChannels)&&0{this.pc&&(this.writePeerConnectionTimelineLog("oniceconnectionstatechange",{connectionState:this.pc.connectionState,iceConnectionState:this.pc.iceConnectionState,iceGatheringState:this.pc.iceGatheringState}),this.trace("ONICECONNECTIONSTATECHANGE ICECONNECTIONSTATE",this.pc.iceConnectionState))},this.pc.onicegatheringstatechange=e=>{this.pc&&this.writePeerConnectionTimelineLog("onicegatheringstatechange",{connectionState:this.pc.connectionState,iceConnectionState:this.pc.iceConnectionState,iceGatheringState:this.pc.iceGatheringState})},this.pc.onconnectionstatechange=e=>{this.pc&&this.writePeerConnectionTimelineLog("onconnectionstatechange",{connectionState:this.pc.connectionState,iceConnectionState:this.pc.iceConnectionState,iceGatheringState:this.pc.iceGatheringState})},this.pc.ondatachannel=e=>{this.onDataChannel(e)}}async setRemoteDescription(e){if(!this.pc)return;let t=new RTCSessionDescription({type:"offer",sdp:this.processOfferSdp(e.sdp)});await this.pc.setRemoteDescription(t),this.writePeerConnectionTimelineLog("set-remote-description",t)}async createAnswer(e){if(!this.pc)return;for(let e of Object.values(this.mids)){let t=this.pc.getTransceivers().find(t=>t.mid===e);t&&"recvonly"===t.direction&&(t.direction="sendrecv")}if(this.options.simulcast&&("sendrecv"===this.role||"sendonly"===this.role)){let t=this.pc.getTransceivers().find(e=>{if(null!==e.mid&&null!==e.sender.track&&(null===e.currentDirection||"sendonly"===e.currentDirection)&&(""!==this.mids.video&&this.mids.video===e.mid||0<=e.mid.indexOf("video")))return e});if(t){await this.setSenderParameters(t,this.encodings),await this.setRemoteDescription(e),this.trace("TRANSCEIVER SENDER GET_PARAMETERS",t.sender.getParameters()),await this.setSenderParameters(t,this.encodings);let i=await this.pc.createAnswer();await this.pc.setLocalDescription(i),this.trace("TRANSCEIVER SENDER GET_PARAMETERS",t.sender.getParameters());return}}let t=await this.pc.createAnswer();this.writePeerConnectionTimelineLog("create-answer",t),await this.pc.setLocalDescription(t),this.writePeerConnectionTimelineLog("set-local-description",t)}processOfferSdp(e){let t=e;return"firefox"===et()&&(t=t.replace(/^m=(audio|video) 0 /gm,(e,t)=>`m=${t} 9 `)),t}async setupSenderTransform(e){if(null===this.e2ee||null===e.track||this.senderStreamInitialized.has(e)||"transform"in RTCRtpSender.prototype)return;let t=e.createEncodedStreams(),i=t.readable;this.e2ee.setupSenderTransform(i,t.writable),this.senderStreamInitialized.add(e)}async setupReceiverTransform(e,t){if(null===this.e2ee||"transform"in RTCRtpSender.prototype)return;let i=t.createEncodedStreams(),n=i.writable;this.e2ee.setupReceiverTransform(i.readable,n)}sendAnswer(){if(this.pc&&this.ws&&this.pc.localDescription){this.trace("ANSWER SDP",this.pc.localDescription.sdp);let e={type:"answer",sdp:this.pc.localDescription.sdp};this.ws.send(JSON.stringify(e)),this.writeWebSocketSignalingLog("send-answer",e)}}onIceCandidate(){return new Promise((e,t)=>{this.pc&&(this.pc.oniceconnectionstatechange=t=>{this.pc&&(this.writePeerConnectionTimelineLog("oniceconnectionstatechange",{connectionState:this.pc.connectionState,iceConnectionState:this.pc.iceConnectionState,iceGatheringState:this.pc.iceGatheringState}),this.trace("ONICECONNECTIONSTATECHANGE ICECONNECTIONSTATE",this.pc.iceConnectionState),"connected"===this.pc.iceConnectionState&&e())},this.pc.onicecandidate=t=>{if(this.writePeerConnectionTimelineLog("onicecandidate",t.candidate),this.pc&&this.trace("ONICECANDIDATE ICEGATHERINGSTATE",this.pc.iceGatheringState),null===t.candidate)e();else{let e=Object.assign(t.candidate.toJSON(),{type:"candidate"});this.trace("ONICECANDIDATE CANDIDATE MESSAGE",e),this.sendSignalingMessage(e)}})})}waitChangeConnectionStateConnected(){return new Promise((e,t)=>{if(this.pc&&void 0===this.pc.connectionState){e();return}let i=setInterval(()=>{if(this.pc)this.pc&&"connected"===this.pc.connectionState&&(clearInterval(i),e());else{let e=Error();e.message="PeerConnection connectionState did not change to 'connected'",clearInterval(i),t(e)}},10)})}monitorSignalingWebSocketEvent(){return new Promise((e,t)=>{this.monitorSignalingWebSocketEventTimerId=setInterval(()=>{this.ws&&(this.clearMonitorSignalingWebSocketEvent(),this.ws.onclose=e=>{let i=new ea(`Signaling failed. CloseEventCode:${e.code} CloseEventReason:'${e.reason}'`);i.code=e.code,i.reason=e.reason,this.writeWebSocketTimelineLog("onclose",i),this.signalingTerminate(),t(i)},this.ws.onerror=e=>{let i=new ea("Signaling failed. WebSocket onerror was called");this.writeWebSocketSignalingLog("onerror",i),this.signalingTerminate(),t(i)})},100)})}monitorWebSocketEvent(){this.ws&&(this.ws.onclose=async e=>{this.writeWebSocketTimelineLog("onclose",{code:e.code,reason:e.reason}),await this.abend("WEBSOCKET-ONCLOSE",{code:e.code,reason:e.reason})},this.ws.onerror=async e=>{this.writeWebSocketSignalingLog("onerror"),await this.abend("WEBSOCKET-ONERROR")})}monitorPeerConnectionState(){this.pc&&(this.pc.oniceconnectionstatechange=e=>{this.pc&&void 0===this.pc.connectionState&&(this.writePeerConnectionTimelineLog("oniceconnectionstatechange",{connectionState:this.pc.connectionState,iceConnectionState:this.pc.iceConnectionState,iceGatheringState:this.pc.iceGatheringState}),this.trace("ONICECONNECTIONSTATECHANGE ICECONNECTIONSTATE",this.pc.iceConnectionState),clearTimeout(this.monitorIceConnectionStateChangeTimerId),"failed"===this.pc.iceConnectionState?this.abendPeerConnectionState("ICE-CONNECTION-STATE-FAILED"):"disconnected"===this.pc.iceConnectionState&&(this.monitorIceConnectionStateChangeTimerId=setTimeout(()=>{this.pc&&"disconnected"===this.pc.iceConnectionState&&this.abendPeerConnectionState("ICE-CONNECTION-STATE-DISCONNECTED-TIMEOUT")},1e4)))},this.pc.onconnectionstatechange=e=>{this.pc&&(this.writePeerConnectionTimelineLog("onconnectionstatechange",{connectionState:this.pc.connectionState,iceConnectionState:this.pc.iceConnectionState,iceGatheringState:this.pc.iceGatheringState}),"failed"===this.pc.connectionState&&this.abendPeerConnectionState("CONNECTION-STATE-FAILED"))})}setConnectionTimeout(){return new Promise((e,t)=>{0{if(!this.pc||this.pc&&void 0!==this.pc.connectionState&&"connected"!==this.pc.connectionState){let e=Error();e.message="Signaling connection timeout",this.callbacks.timeout(),this.trace("DISCONNECT","Signaling connection timeout"),this.writePeerConnectionTimelineLog("signaling-connection-timeout",{connectionTimeout:this.connectionTimeout}),this.signalingTerminate(),t(e)}},this.connectionTimeout))})}clearConnectionTimeout(){clearTimeout(this.connectionTimeoutTimerId)}clearMonitorSignalingWebSocketEvent(){clearInterval(this.monitorSignalingWebSocketEventTimerId)}clearMonitorIceConnectionStateChange(){clearInterval(this.monitorIceConnectionStateChangeTimerId)}trace(e,t){this.callbacks.log(e,t),this.debug&&function(e,t,i){let n=e=>{if(e&&"object"==typeof e){let t=null;try{t=Object.keys(JSON.parse(JSON.stringify(e)))}catch(e){}t&&Array.isArray(t)?t.filter(t=>{console.group(t),n(e[t]),console.groupEnd()}):console.info(e)}else console.info(e)},a="";window.performance&&(a=`[${(window.performance.now()/1e3).toFixed(3)}]`),e&&(a=`${a}[${e}]`),void 0!==console.info&&void 0!==console.group?(console.group(`${a} ${t}`),n(i),console.groupEnd()):console.log(`${a} ${t} -`,i)}(this.clientId,e,t)}writeWebSocketSignalingLog(e,t){this.callbacks.signaling(es(e,t,"websocket")),this.writeWebSocketTimelineLog(e,t)}writeDataChannelSignalingLog(e,t,i){this.callbacks.signaling(es(e,i,"datachannel")),this.writeDataChannelTimelineLog(e,t,i)}writeWebSocketTimelineLog(e,t){let i=eo(e,t,"websocket");this.callbacks.timeline(i)}writeDataChannelTimelineLog(e,t,i){let n=eo(e,i,"datachannel",t.id,t.label);this.callbacks.timeline(n)}writePeerConnectionTimelineLog(e,t){let i=eo(e,t,"peerconnection");this.callbacks.timeline(i)}writeSoraTimelineLog(e,t){let i=eo(e,t,"sora");this.callbacks.timeline(i)}async createOffer(){let e=new window.RTCPeerConnection({iceServers:[]});if("safari"===et()){e.addTransceiver("video",{direction:"recvonly"}),e.addTransceiver("audio",{direction:"recvonly"});let t=await e.createOffer();return e.close(),this.writePeerConnectionTimelineLog("create-offer",t),t}let t=await e.createOffer({offerToReceiveAudio:!0,offerToReceiveVideo:!0});return e.close(),this.writePeerConnectionTimelineLog("create-offer",t),t}signalingOnMessageE2EE(e){if(this.e2ee){let t=new Uint8Array(e),i=this.e2ee.receiveMessage(t);this.e2ee.postRemoteSecretKeyMaterials(i),i.messages.filter(e=>{this.sendE2EEMessage(e.buffer)})}}signalingOnMessageTypeOffer(e){if(this.clientId=e.client_id,this.connectionId=e.connection_id,void 0!==e.session_id&&(this.sessionId=e.session_id),void 0!==e.metadata&&(this.authMetadata=e.metadata),Array.isArray(e.encodings)&&(this.encodings=e.encodings),void 0!==e.mid&&void 0!==e.mid.audio&&(this.mids.audio=e.mid.audio),void 0!==e.mid&&void 0!==e.mid.video&&(this.mids.video=e.mid.video),e.data_channels)for(let t of e.data_channels)this.signalingOfferMessageDataChannels[t.label]=t;this.trace("SIGNALING OFFER MESSAGE",e),this.trace("OFFER SDP",e.sdp)}sendUpdateAnswer(){this.pc&&this.ws&&this.pc.localDescription&&(this.trace("ANSWER SDP",this.pc.localDescription.sdp),this.sendSignalingMessage({type:"update",sdp:this.pc.localDescription.sdp}))}sendReAnswer(){this.pc?.localDescription&&(this.trace("RE ANSWER SDP",this.pc.localDescription.sdp),this.sendSignalingMessage({type:"re-answer",sdp:this.pc.localDescription.sdp}))}async signalingOnMessageTypeUpdate(e){this.trace("SIGNALING UPDATE MESSGE",e),this.trace("UPDATE SDP",e.sdp),await this.setRemoteDescription(e),await this.createAnswer(e),this.sendUpdateAnswer()}async signalingOnMessageTypeReOffer(e){this.trace("SIGNALING RE OFFER MESSGE",e),this.trace("RE OFFER SDP",e.sdp),await this.setRemoteDescription(e),await this.createAnswer(e),this.sendReAnswer()}async signalingOnMessageTypePing(e){let t={type:"pong"};if(e.stats){let e=await this.getStats();t.stats=e}this.ws&&this.ws.send(JSON.stringify(t))}signalingOnMessageTypeNotify(e,t){if("connection.created"===e.event_type){let t=e.connection_id;if(this.connectionId!==t){let i=en(ei(e));if(i&&this.e2ee&&t){let e=this.e2ee.startSession(t,i);this.e2ee.postRemoteSecretKeyMaterials(e),e.messages.filter(e=>{this.sendE2EEMessage(e.buffer)}),this.e2ee.postSelfSecretKeyMaterial(e.selfConnectionId,e.selfKeyId,e.selfSecretKeyMaterial)}}(e.data&&Array.isArray(e.data)?e.data:e.metadata_list&&Array.isArray(e.metadata_list)?e.metadata_list:[]).filter(e=>{let t=en(ei(e)),i=e.connection_id;i&&this.e2ee&&t&&this.e2ee.addPreKeyBundle(i,t)})}else if("connection.destroyed"===e.event_type){let t=en(ei(e)),i=e.connection_id;if(t&&this.e2ee&&i){let e=this.e2ee.stopSession(i);this.e2ee.postSelfSecretKeyMaterial(e.selfConnectionId,e.selfKeyId,e.selfSecretKeyMaterial,5e3),e.messages.filter(e=>{this.sendE2EEMessage(e.buffer)}),this.e2ee.postRemoveRemoteDeriveKey(i)}}this.callbacks.notify(e,t)}signalingOnMessageTypeSwitched(e){if(this.signalingSwitched=!0,this.ws)for(let t of(e.ignore_disconnect_websocket&&(this.ws&&(this.ws.onclose=null,this.ws.close(),this.ws=null),this.writeWebSocketSignalingLog("close")),this.datachannels))this.callbacks.datachannel(function(e){let t=new Event("datachannel");return t.datachannel=e,t}(t))}async signalingOnMessageTypeRedirect(e){this.ws&&(this.ws.onclose=null,this.ws.onerror=null,this.ws.close(),this.ws=null);let t=await this.getSignalingWebSocket(e.location);return await this.signaling(t,!0)}async setSenderParameters(e,t){let i=e.sender.getParameters();i.encodings=t,await e.sender.setParameters(i),this.trace("TRANSCEIVER SENDER SET_PARAMETERS",i),this.writePeerConnectionTimelineLog("transceiver-sender-set-parameters",i)}async getStats(){let e=[];return this.pc&&(await this.pc.getStats()).forEach(t=>{e.push(t)}),e}onDataChannel(e){let t=e.channel;t.bufferedAmountLowThreshold=65536,t.binaryType="arraybuffer",this.soraDataChannels[t.label]=t,this.writeDataChannelTimelineLog("ondatachannel",t,{binaryType:t.binaryType,bufferedAmount:t.bufferedAmount,bufferedAmountLowThreshold:t.bufferedAmountLowThreshold,id:t.id,label:t.label,maxPacketLifeTime:t.maxPacketLifeTime,maxRetransmits:t.maxRetransmits,negotiated:t.negotiated,ordered:t.ordered,protocol:t.protocol,readyState:t.readyState,reliable:t.reliable}),e.channel.onbufferedamountlow=e=>{let t=e.currentTarget;this.writeDataChannelTimelineLog("onbufferedamountlow",t)},e.channel.onopen=e=>{let t=e.currentTarget;this.trace("OPEN DATA CHANNEL",t.label),"signaling"===t.label&&this.ws?this.writeDataChannelSignalingLog("onopen",t):this.writeDataChannelTimelineLog("onopen",t)},e.channel.onclose=async e=>{let t=e.currentTarget;this.writeDataChannelTimelineLog("onclose",t),this.trace("CLOSE DATA CHANNEL",t.label),await this.disconnect()},e.channel.onerror=async e=>{let t=e.currentTarget;this.writeDataChannelTimelineLog("onerror",t),this.trace("ERROR DATA CHANNEL",t.label),await this.abend("DATA-CHANNEL-ONERROR",{params:{label:t.label}})},"signaling"===e.channel.label?e.channel.onmessage=async e=>{let t=e.currentTarget,i=t.label,n=this.signalingOfferMessageDataChannels[i];if(!n){console.warn(`Received onmessage event for '${i}' DataChannel. But '${i}' DataChannel settings doesn't exist`);return}let a=JSON.parse(el(e.data,n.compress));this.writeDataChannelSignalingLog(`onmessage-${a.type}`,t,a),"re-offer"===a.type&&await this.signalingOnMessageTypeReOffer(a)}:"notify"===e.channel.label?e.channel.onmessage=e=>{let t=e.currentTarget,i=t.label,n=this.signalingOfferMessageDataChannels[i];if(!n){console.warn(`Received onmessage event for '${i}' DataChannel. But '${i}' DataChannel settings doesn't exist`);return}let a=JSON.parse(el(e.data,n.compress));"connection.created"===a.event_type?this.writeDataChannelTimelineLog("notify-connection.created",t,a):"connection.destroyed"===a.event_type&&this.writeDataChannelTimelineLog("notify-connection.destroyed",t,a),this.signalingOnMessageTypeNotify(a,"datachannel")}:"push"===e.channel.label?e.channel.onmessage=e=>{let t=e.currentTarget.label,i=this.signalingOfferMessageDataChannels[t];if(!i){console.warn(`Received onmessage event for '${t}' DataChannel. But '${t}' DataChannel settings doesn't exist`);return}let n=JSON.parse(el(e.data,i.compress));this.callbacks.push(n,"datachannel")}:"e2ee"===e.channel.label?e.channel.onmessage=e=>{let t=e.currentTarget,i=e.data;this.signalingOnMessageE2EE(i),this.writeDataChannelSignalingLog("onmessage-e2ee",t,i)}:"stats"===e.channel.label?e.channel.onmessage=async e=>{let t=e.currentTarget.label,i=this.signalingOfferMessageDataChannels[t];if(!i){console.warn(`Received onmessage event for '${t}' DataChannel. But '${t}' DataChannel settings doesn't exist`);return}if("req-stats"===JSON.parse(el(e.data,i.compress)).type){let e=await this.getStats();this.sendStatsMessage(e)}}:/^#.*/.exec(e.channel.label)&&(e.channel.onmessage=e=>{let t;if(null===e.currentTarget)return;let i=e.currentTarget.label,n=this.signalingOfferMessageDataChannels[i];if(!n){console.warn(`Received onmessage event for '${i}' DataChannel. But '${i}' DataChannel settings doesn't exist`);return}let a=e.target;"string"==typeof e.data?t=new TextEncoder().encode(e.data):e.data instanceof ArrayBuffer?t=e.data:console.warn("Received onmessage event data is not of type String or ArrayBuffer."),void 0!==t&&(!0===n.compress&&(t=$(new Uint8Array(t)).buffer),this.callbacks.message(function(e,t){let i=new Event("message");return i.label=e,i.data=t,i}(a.label,t)))})}sendSignalingMessage(e){if(this.soraDataChannels.signaling){if(this.signalingOfferMessageDataChannels.signaling&&!0===this.signalingOfferMessageDataChannels.signaling.compress){let t=q(new TextEncoder().encode(JSON.stringify(e)),{});this.soraDataChannels.signaling.send(t)}else this.soraDataChannels.signaling.send(JSON.stringify(e));this.writeDataChannelSignalingLog(`send-${e.type}`,this.soraDataChannels.signaling,e)}else null!==this.ws&&(this.ws.send(JSON.stringify(e)),this.writeWebSocketSignalingLog(`send-${e.type}`,e))}sendE2EEMessage(e){this.soraDataChannels.e2ee?(this.soraDataChannels.e2ee.send(e),this.writeDataChannelSignalingLog("send-e2ee",this.soraDataChannels.e2ee,e)):null!==this.ws&&(this.ws.send(e),this.writeWebSocketSignalingLog("send-e2ee",e))}sendStatsMessage(e){if(this.soraDataChannels.stats){let t={type:"stats",reports:e};if(this.signalingOfferMessageDataChannels.stats&&!0===this.signalingOfferMessageDataChannels.stats.compress){let e=q(new TextEncoder().encode(JSON.stringify(t)),{});this.soraDataChannels.stats.send(e)}else this.soraDataChannels.stats.send(JSON.stringify(t))}}getAudioTransceiver(){return this.pc&&this.mids.audio&&this.pc.getTransceivers().find(e=>e.mid===this.mids.audio)||null}getVideoTransceiver(){return this.pc&&this.mids.video&&this.pc.getTransceivers().find(e=>e.mid===this.mids.video)||null}soraCloseEvent(e,t,i){return new class extends Event{constructor(e,t,i){super(e),i&&(i.code&&(this.code=i.code),i.reason&&(this.reason=i.reason),i.params&&(this.params=i.params)),this.title=t}}(e,t,i)}sendMessage(e,t){let i=this.soraDataChannels[e];if(null===this.pc)return;if(void 0===i)throw Error("Could not find DataChannel");if("open"!==i.readyState)throw Error("Messaging DataChannel is not open");let n=this.signalingOfferMessageDataChannels[e];if(void 0!==n&&!0===n.compress){let e=q(t,{});i.send(e)}else i.send(t)}get e2eeSelfFingerprint(){if(this.options.e2ee&&this.e2ee)return this.e2ee.selfFingerprint()}get e2eeRemoteFingerprints(){if(this.options.e2ee&&this.e2ee)return this.e2ee.remoteFingerprints()}get audio(){return null!==this.getAudioTransceiver()}get video(){return null!==this.getVideoTransceiver()}get signalingUrl(){return this.signalingUrlCandidates}get datachannels(){if(!this.signalingSwitched)return[];let e=Object.keys(this.signalingOfferMessageDataChannels).filter(e=>/^#.*/.exec(e)),t=[];for(let i of e){let e=this.soraDataChannels[i];if(!e)continue;let n=this.signalingOfferMessageDataChannels[i];if(!n)continue;let a={label:e.label,ordered:e.ordered,protocol:e.protocol,compress:n.compress,direction:n.direction};"number"==typeof e.maxPacketLifeTime&&(a.maxPacketLifeTime=e.maxPacketLifeTime),"number"==typeof e.maxRetransmits&&(a.maxRetransmits=e.maxRetransmits),t.push(a)}return t}}class eg extends er{async connect(e){return!1===this.options.multistream?await Promise.race([this.legacyStream(e).finally(()=>{this.clearConnectionTimeout(),this.clearMonitorSignalingWebSocketEvent()}),this.setConnectionTimeout(),this.monitorSignalingWebSocketEvent()]):await Promise.race([this.multiStream(e).finally(()=>{this.clearConnectionTimeout(),this.clearMonitorSignalingWebSocketEvent()}),this.setConnectionTimeout(),this.monitorSignalingWebSocketEvent()]),this.monitorWebSocketEvent(),this.monitorPeerConnectionState(),e}async legacyStream(e){await this.disconnect(),this.setupE2EE();let t=await this.getSignalingWebSocket(this.signalingUrlCandidates),i=await this.signaling(t);if(this.startE2EE(),await this.connectPeerConnection(i),await this.setRemoteDescription(i),e.getTracks().filter(t=>{this.pc&&this.pc.addTrack(t,e)}),this.pc)for(let e of this.pc.getSenders())await this.setupSenderTransform(e);return this.stream=e,await this.createAnswer(i),this.sendAnswer(),await this.onIceCandidate(),await this.waitChangeConnectionStateConnected(),e}async multiStream(e){await this.disconnect(),this.setupE2EE();let t=await this.getSignalingWebSocket(this.signalingUrlCandidates),i=await this.signaling(t);if(this.startE2EE(),await this.connectPeerConnection(i),this.pc&&(this.pc.ontrack=async e=>{await this.setupReceiverTransform(e.transceiver.mid,e.receiver);let t=e.streams[0];if(!t)return;let i={"stream.id":t.id,id:e.track.id,label:e.track.label,enabled:e.track.enabled,kind:e.track.kind,muted:e.track.muted,readyState:e.track.readyState};this.writePeerConnectionTimelineLog("ontrack",i),"default"!==t.id&&t.id!==this.connectionId&&(this.callbacks.track(e),t.onremovetrack=e=>{if(this.callbacks.removetrack(e),e.target){let t=this.remoteConnectionIds.indexOf(e.target.id);-1{this.pc&&this.pc.addTrack(t,e)}),this.pc)for(let e of this.pc.getSenders())await this.setupSenderTransform(e);return this.stream=e,await this.createAnswer(i),this.sendAnswer(),await this.onIceCandidate(),await this.waitChangeConnectionStateConnected(),e}}class ec extends er{async connect(){if(!1===this.options.multistream){let e=await Promise.race([this.legacyStream().finally(()=>{this.clearConnectionTimeout(),this.clearMonitorSignalingWebSocketEvent()}),this.setConnectionTimeout(),this.monitorSignalingWebSocketEvent()]);return this.monitorWebSocketEvent(),this.monitorPeerConnectionState(),e}await Promise.race([this.multiStream().finally(()=>{this.clearConnectionTimeout(),this.clearMonitorSignalingWebSocketEvent()}),this.setConnectionTimeout(),this.monitorSignalingWebSocketEvent()]),this.monitorWebSocketEvent(),this.monitorPeerConnectionState()}async legacyStream(){await this.disconnect(),this.setupE2EE();let e=await this.getSignalingWebSocket(this.signalingUrlCandidates),t=await this.signaling(e);return this.startE2EE(),await this.connectPeerConnection(t),this.pc&&(this.pc.ontrack=async e=>{await this.setupReceiverTransform(e.transceiver.mid,e.receiver),this.stream=e.streams[0];let t=this.stream.id;if("default"===t)return;let i={"stream.id":t,id:e.track.id,label:e.track.label,enabled:e.track.enabled,kind:e.track.kind,muted:e.track.muted,readyState:e.track.readyState};this.writePeerConnectionTimelineLog("ontrack",i),this.callbacks.track(e),this.stream.onremovetrack=e=>{if(this.callbacks.removetrack(e),e.target){let t=e.target.id,i=this.remoteConnectionIds.indexOf(t);-1{await this.setupReceiverTransform(e.transceiver.mid,e.receiver);let t=e.streams[0];if("default"===t.id||t.id===this.connectionId)return;let i={"stream.id":t.id,id:e.track.id,label:e.track.label,enabled:e.track.enabled,kind:e.track.kind,muted:e.track.muted,readyState:e.track.readyState};this.writePeerConnectionTimelineLog("ontrack",i),this.callbacks.track(e),t.onremovetrack=e=>{if(this.callbacks.removetrack(e),e.target){let t=e.target.id,i=this.remoteConnectionIds.indexOf(t);-1{await a.loadWasm(e)},connection:(e,t=!1)=>new ed(e,t),version:()=>"2024.1.1",helpers:{applyMediaStreamConstraints:s}}}}]); \ No newline at end of file diff --git a/dist/_next/static/chunks/main-276b825106a04641.js b/dist/_next/static/chunks/main-276b825106a04641.js new file mode 100644 index 00000000..e11464b6 --- /dev/null +++ b/dist/_next/static/chunks/main-276b825106a04641.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[179],{1646:function(e,t){"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return r}})},8092:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)})},4828:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});let n=r(3837),o=r(6968);function a(e,t){return(0,o.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1748:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(6968);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n25){window.location.reload();return}clearTimeout(o),o=setTimeout(t,i>5?5e3:1e3)}r&&r.close();let{hostname:u,port:l}=location,s=function(e){let t=location.protocol;try{t=new URL(e).protocol}catch(e){}return"http:"===t?"ws":"wss"}(e.assetPrefix||""),c=e.assetPrefix.replace(/^\/+/,""),f=s+"://"+u+":"+l+(c?"/"+c:"");c.startsWith("http")&&(f=s+"://"+c.split("://",2)[1]),(r=new window.WebSocket(""+f+e.path)).onopen=function(){i=0,window.console.log("[HMR] connected")},r.onerror=a,r.onclose=a,r.onmessage=function(e){let t=JSON.parse(e.data);for(let e of n)e(t)}}()}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8288:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});let r=function(){for(var e=arguments.length,t=Array(e),r=0;r{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let r=t[e.type]||[];r.push(e),t[e.type]=r});let n=t.title?t.title[0]:null,o="";if(n){let{children:e}=n.props;o="string"==typeof e?e:Array.isArray(e)?e.join(""):""}o!==document.title&&(document.title=o),["meta","base","link","style","script"].forEach(e=>{r(e,t[e]||[])})}}}r=(e,t)=>{let r=document.getElementsByTagName("head")[0],n=r.querySelector("meta[name=next-head-count]"),i=Number(n.content),u=[];for(let t=0,r=n.previousElementSibling;t{for(let t=0,r=u.length;t{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),s.forEach(e=>r.insertBefore(e,n)),n.content=(i-u.length+s.length).toString()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9729:function(e,t,r){"use strict";let n,o,a,i,u,l,s,c,f,d,p,h;Object.defineProperty(t,"__esModule",{value:!0});let m=r(1778);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{emitter:function(){return z},hydrate:function(){return ef},initialize:function(){return K},router:function(){return n},version:function(){return G}});let _=r(2430),g=r(2676);r(8092);let y=_._(r(5271)),b=_._(r(8751)),P=r(2513),v=_._(r(2583)),E=r(4722),S=r(20),O=r(3161),j=r(8679),w=r(7483),R=r(3330),T=r(4902),M=_._(r(2956)),x=_._(r(6372)),I=_._(r(324)),C=r(353),A=r(9291),L=r(4949),N=r(5285),D=r(8546),k=r(656),F=r(6602),U=r(418),B=r(5233),H=_._(r(4622)),W=_._(r(8572)),q=_._(r(3115)),G="14.2.4",z=(0,v.default)(),V=e=>[].slice.call(e),X=!1;class Y extends y.default.Component{componentDidCatch(e,t){this.props.fn(e,t)}componentDidMount(){this.scrollToHash(),n.isSsr&&(o.isFallback||o.nextExport&&((0,O.isDynamicRoute)(n.pathname)||location.search||X)||o.props&&o.props.__N_SSG&&(location.search||X))&&n.replace(n.pathname+"?"+String((0,j.assign)((0,j.urlQueryToSearchParams)(n.query),new URLSearchParams(location.search))),a,{_h:1,shallow:!o.isFallback&&!X}).catch(e=>{if(!e.cancelled)throw e})}componentDidUpdate(){this.scrollToHash()}scrollToHash(){let{hash:e}=location;if(!(e=e&&e.substring(1)))return;let t=document.getElementById(e);t&&setTimeout(()=>t.scrollIntoView(),0)}render(){return this.props.children}}async function K(e){void 0===e&&(e={}),W.default.onSpanEnd(q.default),o=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=o,h=o.defaultLocale;let t=o.assetPrefix||"";if(self.__next_set_public_path__(""+t+"/_next/"),(0,w.setConfig)({serverRuntimeConfig:{},publicRuntimeConfig:o.runtimeConfig||{}}),a=(0,R.getURL)(),(0,k.hasBasePath)(a)&&(a=(0,D.removeBasePath)(a)),o.scriptLoader){let{initScriptLoader:e}=r(2586);e(o.scriptLoader)}i=new x.default(o.buildId,t);let s=e=>{let[t,r]=e;return i.routeLoader.onEntrypoint(t,r)};return window.__NEXT_P&&window.__NEXT_P.map(e=>setTimeout(()=>s(e),0)),window.__NEXT_P=[],window.__NEXT_P.push=s,(l=(0,M.default)()).getIsSsr=()=>n.isSsr,u=document.getElementById("__next"),{assetPrefix:t}}function $(e,t){return(0,g.jsx)(e,{...t})}function J(e){var t;let{children:r}=e,o=y.default.useMemo(()=>(0,U.adaptForAppRouterInstance)(n),[]);return(0,g.jsx)(Y,{fn:e=>Z({App:f,err:e}).catch(e=>console.error("Error rendering page: ",e)),children:(0,g.jsx)(F.AppRouterContext.Provider,{value:o,children:(0,g.jsx)(B.SearchParamsContext.Provider,{value:(0,U.adaptForSearchParams)(n),children:(0,g.jsx)(U.PathnameContextProviderAdapter,{router:n,isAutoExport:null!=(t=self.__NEXT_DATA__.autoExport)&&t,children:(0,g.jsx)(B.PathParamsContext.Provider,{value:(0,U.adaptForPathParams)(n),children:(0,g.jsx)(E.RouterContext.Provider,{value:(0,A.makePublicRouterInstance)(n),children:(0,g.jsx)(P.HeadManagerContext.Provider,{value:l,children:(0,g.jsx)(N.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1},children:r})})})})})})})})}let Q=e=>t=>{let r={...t,Component:p,err:o.err,router:n};return(0,g.jsx)(J,{children:$(e,r)})};function Z(e){let{App:t,err:u}=e;return console.error(u),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),i.loadPage("/_error").then(n=>{let{page:o,styleSheets:a}=n;return(null==s?void 0:s.Component)===o?Promise.resolve().then(()=>m._(r(5268))).then(n=>Promise.resolve().then(()=>m._(r(4659))).then(r=>(t=r.default,e.App=t,n))).then(e=>({ErrorComponent:e.default,styleSheets:[]})):{ErrorComponent:o,styleSheets:a}}).then(r=>{var i;let{ErrorComponent:l,styleSheets:s}=r,c=Q(t),f={Component:l,AppTree:c,router:n,ctx:{err:u,pathname:o.page,query:o.query,asPath:a,AppTree:c}};return Promise.resolve((null==(i=e.props)?void 0:i.err)?e.props:(0,R.loadGetInitialProps)(t,f)).then(t=>es({...e,err:u,Component:l,styleSheets:s,props:t}))})}function ee(e){let{callback:t}=e;return y.default.useLayoutEffect(()=>t(),[t]),null}let et={navigationStart:"navigationStart",beforeRender:"beforeRender",afterRender:"afterRender",afterHydrate:"afterHydrate",routeChange:"routeChange"},er={hydration:"Next.js-hydration",beforeHydration:"Next.js-before-hydration",routeChangeToRender:"Next.js-route-change-to-render",render:"Next.js-render"},en=null,eo=!0;function ea(){[et.beforeRender,et.afterHydrate,et.afterRender,et.routeChange].forEach(e=>performance.clearMarks(e))}function ei(){R.ST&&(performance.mark(et.afterHydrate),performance.getEntriesByName(et.beforeRender,"mark").length&&(performance.measure(er.beforeHydration,et.navigationStart,et.beforeRender),performance.measure(er.hydration,et.beforeRender,et.afterHydrate)),d&&performance.getEntriesByName(er.hydration).forEach(d),ea())}function eu(){if(!R.ST)return;performance.mark(et.afterRender);let e=performance.getEntriesByName(et.routeChange,"mark");e.length&&(performance.getEntriesByName(et.beforeRender,"mark").length&&(performance.measure(er.routeChangeToRender,e[0].name,et.beforeRender),performance.measure(er.render,et.beforeRender,et.afterRender),d&&(performance.getEntriesByName(er.render).forEach(d),performance.getEntriesByName(er.routeChangeToRender).forEach(d))),ea(),[er.routeChangeToRender,er.render].forEach(e=>performance.clearMeasures(e)))}function el(e){let{callbacks:t,children:r}=e;return y.default.useLayoutEffect(()=>t.forEach(e=>e()),[t]),y.default.useEffect(()=>{(0,I.default)(d)},[]),r}function es(e){let t,{App:r,Component:o,props:a,err:i}=e,l="initial"in e?void 0:e.styleSheets;o=o||s.Component;let f={...a=a||s.props,Component:o,err:i,router:n};s=f;let d=!1,p=new Promise((e,r)=>{c&&c(),t=()=>{c=null,e()},c=()=>{d=!0,c=null;let e=Error("Cancel rendering route");e.cancelled=!0,r(e)}});function h(){t()}!function(){if(!l)return;let e=new Set(V(document.querySelectorAll("style[data-n-href]")).map(e=>e.getAttribute("data-n-href"))),t=document.querySelector("noscript[data-n-css]"),r=null==t?void 0:t.getAttribute("data-n-css");l.forEach(t=>{let{href:n,text:o}=t;if(!e.has(n)){let e=document.createElement("style");e.setAttribute("data-n-href",n),e.setAttribute("media","x"),r&&e.setAttribute("nonce",r),document.head.appendChild(e),e.appendChild(document.createTextNode(o))}})}();let m=(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(ee,{callback:function(){if(l&&!d){let e=new Set(l.map(e=>e.href)),t=V(document.querySelectorAll("style[data-n-href]")),r=t.map(e=>e.getAttribute("data-n-href"));for(let n=0;n{let{href:t}=e,r=document.querySelector('style[data-n-href="'+t+'"]');r&&(n.parentNode.insertBefore(r,n.nextSibling),n=r)}),V(document.querySelectorAll("link[data-n-p]")).forEach(e=>{e.parentNode.removeChild(e)})}if(e.scroll){let{x:t,y:r}=e.scroll;(0,S.handleSmoothScroll)(()=>{window.scrollTo(t,r)})}}}),(0,g.jsxs)(J,{children:[$(r,f),(0,g.jsx)(T.Portal,{type:"next-route-announcer",children:(0,g.jsx)(C.RouteAnnouncer,{})})]})]});return!function(e,t){R.ST&&performance.mark(et.beforeRender);let r=t(eo?ei:eu);en?(0,y.default.startTransition)(()=>{en.render(r)}):(en=b.default.hydrateRoot(e,r,{onRecoverableError:H.default}),eo=!1)}(u,e=>(0,g.jsx)(el,{callbacks:[e,h],children:m})),p}async function ec(e){if(e.err&&(void 0===e.Component||!e.isHydratePass)){await Z(e);return}try{await es(e)}catch(r){let t=(0,L.getProperError)(r);if(t.cancelled)throw t;await Z({...e,err:t})}}async function ef(e){let t=o.err;try{let e=await i.routeLoader.whenEntrypoint("/_app");if("error"in e)throw e.error;let{component:t,exports:r}=e;f=t,r&&r.reportWebVitals&&(d=e=>{let t,{id:n,name:o,startTime:a,value:i,duration:u,entryType:l,entries:s,attribution:c}=e,f=Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12);s&&s.length&&(t=s[0].startTime);let d={id:n||f,name:o,startTime:a||t,value:null==i?u:i,label:"mark"===l||"measure"===l?"custom":"web-vital"};c&&(d.attribution=c),r.reportWebVitals(d)});let n=await i.routeLoader.whenEntrypoint(o.page);if("error"in n)throw n.error;p=n.component}catch(e){t=(0,L.getProperError)(e)}window.__NEXT_PRELOADREADY&&await window.__NEXT_PRELOADREADY(o.dynamicIds),n=(0,A.createRouter)(o.page,o.query,a,{initialProps:o.props,pageLoader:i,App:f,Component:p,wrapApp:Q,err:t,isFallback:!!o.isFallback,subscription:(e,t,r)=>ec(Object.assign({},e,{App:t,scroll:r})),locale:o.locale,locales:o.locales,defaultLocale:h,domainLocales:o.domainLocales,isPreview:o.isPreview}),X=await n._initialMatchesMiddlewarePromise;let r={App:f,initial:!0,Component:p,props:o.props,err:t,isHydratePass:!0};(null==e?void 0:e.beforeRender)&&await e.beforeRender(),ec(r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5683:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3765);let n=r(9729);window.next={version:n.version,get router(){return n.router},emitter:n.emitter},(0,n.initialize)({}).then(()=>(0,n.hydrate)()).catch(console.error),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6968:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return a}});let n=r(6253),o=r(5466),a=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:a}=(0,o.parsePath)(e);return""+(0,n.removeTrailingSlash)(t)+r+a};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4622:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(3988);function o(e){let t="function"==typeof reportError?reportError:e=>{window.console.error(e)};(0,n.isBailoutToCSRError)(e)||t(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6372:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let n=r(2430),o=r(4828),a=r(8080),i=n._(r(9735)),u=r(1748),l=r(3161),s=r(8529),c=r(6253),f=r(3951);r(320);class d{getPageList(){return(0,f.getClientBuildManifest)().then(e=>e.sortedPages)}getMiddleware(){return window.__MIDDLEWARE_MATCHERS=[],window.__MIDDLEWARE_MATCHERS}getDataHref(e){let{asPath:t,href:r,locale:n}=e,{pathname:f,query:d,search:p}=(0,s.parseRelativeUrl)(r),{pathname:h}=(0,s.parseRelativeUrl)(t),m=(0,c.removeTrailingSlash)(f);if("/"!==m[0])throw Error('Route name should start with a "/", got "'+m+'"');return(e=>{let t=(0,i.default)((0,c.removeTrailingSlash)((0,u.addLocale)(e,n)),".json");return(0,o.addBasePath)("/_next/data/"+this.buildId+t+p,!0)})(e.skipInterpolation?h:(0,l.isDynamicRoute)(m)?(0,a.interpolateAs)(f,h,d).result:m)}_isSsg(e){return this.promisedSsgManifest.then(t=>t.has(e))}loadPage(e){return this.routeLoader.loadRoute(e).then(e=>{if("component"in e)return{page:e.component,mod:e.exports,styleSheets:e.styles.map(e=>({href:e.href,text:e.content}))};throw e.error})}prefetch(e){return this.routeLoader.prefetch(e)}constructor(e,t){this.routeLoader=(0,f.createRouteLoader)(t),this.buildId=e,this.assetPrefix=t,this.promisedSsgManifest=new Promise(e=>{window.__SSG_MANIFEST?e(window.__SSG_MANIFEST):window.__SSG_MANIFEST_CB=()=>{e(window.__SSG_MANIFEST)}})}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},324:function(e,t,r){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let o=["CLS","FCP","FID","INP","LCP","TTFB"];location.href;let a=!1;function i(e){n&&n(e)}let u=e=>{if(n=e,!a)for(let e of(a=!0,o))try{let t;t||(t=r(4357)),t["on"+e](i)}catch(t){console.warn("Failed to track "+e+" web-vital",t)}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4902:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Portal",{enumerable:!0,get:function(){return a}});let n=r(5271),o=r(967),a=e=>{let{children:t,type:r}=e,[a,i]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e=document.createElement(r);return document.body.appendChild(e),i(e),()=>{document.body.removeChild(e)}},[r]),a?(0,o.createPortal)(t,a):null};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8546:function(e,t,r){"use strict";function n(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return n}}),r(656),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8152:function(e,t,r){"use strict";function n(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return n}}),r(5466),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8788:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9241:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});let n=r(8679),o=r(8695),a=r(1211),i=r(3330),u=r(6968),l=r(8237),s=r(1480),c=r(8080);function f(e,t,r){let f;let d="string"==typeof t?t:(0,o.formatWithValidation)(t),p=d.match(/^[a-zA-Z]{1,}:\/\//),h=p?d.slice(p[0].length):d;if((h.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,i.normalizeRepeatedSlashes)(h);d=(p?p[0]:"")+t}if(!(0,l.isLocalURL)(d))return r?[d]:d;try{f=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(d,f);e.pathname=(0,u.normalizePathTrailingSlash)(e.pathname);let t="";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:i,params:u}=(0,c.interpolateAs)(e.pathname,e.pathname,r);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(r,u)}))}let i=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return r?[i,t||i]:i}catch(e){return r?[d]:d}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},353:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RouteAnnouncer:function(){return l},default:function(){return s}});let n=r(2430),o=r(2676),a=n._(r(5271)),i=r(9291),u={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",top:0,width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},l=()=>{let{asPath:e}=(0,i.useRouter)(),[t,r]=a.default.useState(""),n=a.default.useRef(e);return a.default.useEffect(()=>{if(n.current!==e){if(n.current=e,document.title)r(document.title);else{var t;let n=document.querySelector("h1");r((null!=(t=null==n?void 0:n.innerText)?t:null==n?void 0:n.textContent)||e)}}},[e]),(0,o.jsx)("p",{"aria-live":"assertive",id:"__next-route-announcer__",role:"alert",style:u,children:t})},s=l;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3951:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createRouteLoader:function(){return m},getClientBuildManifest:function(){return p},isAssetError:function(){return s},markAssetError:function(){return l}}),r(2430),r(9735);let n=r(2018),o=r(8788),a=r(1646);function i(e,t,r){let n,o=t.get(e);if(o)return"future"in o?o.future:Promise.resolve(o);let a=new Promise(e=>{n=e});return t.set(e,o={resolve:n,future:a}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):a}let u=Symbol("ASSET_LOAD_ERROR");function l(e){return Object.defineProperty(e,u,{})}function s(e){return e&&u in e}let c=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),f=()=>(0,a.getDeploymentIdQueryOrEmptyString)();function d(e,t,r){return new Promise((n,a)=>{let i=!1;e.then(e=>{i=!0,n(e)}).catch(a),(0,o.requestIdleCallback)(()=>setTimeout(()=>{i||a(r)},t))})}function p(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):d(new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}}),3800,l(Error("Failed to load client build manifest")))}function h(e,t){return p().then(r=>{if(!(t in r))throw l(Error("Failed to lookup route: "+t));let o=r[t].map(t=>e+"/_next/"+encodeURI(t));return{scripts:o.filter(e=>e.endsWith(".js")).map(e=>(0,n.__unsafeCreateTrustedScriptURL)(e)+f()),css:o.filter(e=>e.endsWith(".css")).map(e=>e+f())}})}function m(e){let t=new Map,r=new Map,n=new Map,a=new Map;function u(e){{var t;let n=r.get(e.toString());return n||(document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(l(Error("Failed to load script: "+e))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n))}}function s(e){let t=n.get(e);return t||n.set(e,t=fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw Error("Failed to load stylesheet: "+e);return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw l(e)})),t}return{whenEntrypoint:e=>i(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),a.delete(e))})},loadRoute(r,n){return i(r,a,()=>{let o;return d(h(e,r).then(e=>{let{scripts:n,css:o}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(u)),Promise.all(o.map(s))])}).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,l(Error("Route did not complete loading: "+r))).then(e=>{let{entrypoint:t,styles:r}=e,n=Object.assign({styles:r},t);return"error"in t?t:n}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>null==o?void 0:o())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():h(e,t).then(e=>Promise.all(c?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,o)=>{if(document.querySelector('\n link[rel="prefetch"][href^="'+t+'"],\n link[rel="preload"][href^="'+t+'"],\n script[src^="'+t+'"]'))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>o(l(Error("Failed to prefetch: "+t))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,o.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9291:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Router:function(){return a.default},createRouter:function(){return m},default:function(){return p},makePublicRouterInstance:function(){return _},useRouter:function(){return h},withRouter:function(){return l.default}});let n=r(2430),o=n._(r(5271)),a=n._(r(8961)),i=r(4722),u=n._(r(4949)),l=n._(r(1235)),s={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],f=["push","replace","reload","back","prefetch","beforePopState"];function d(){if(!s.router)throw Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n');return s.router}Object.defineProperty(s,"events",{get:()=>a.default.events}),c.forEach(e=>{Object.defineProperty(s,e,{get:()=>d()[e]})}),f.forEach(e=>{s[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n{s.ready(()=>{a.default.events.on(e,function(){for(var t=arguments.length,r=Array(t),n=0;ne()),s.readyCallbacks=[],s.router}function _(e){let t={};for(let r of c){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=a.default.events,f.forEach(r=>{t[r]=function(){for(var t=arguments.length,n=Array(t),o=0;o{if(i.default.preinit){e.forEach(e=>{i.default.preinit(e,{as:"style"})});return}{let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}},m=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:o=null,dangerouslySetInnerHTML:a,children:i="",strategy:u="afterInteractive",onError:l,stylesheets:c}=e,m=r||t;if(m&&d.has(m))return;if(f.has(t)){d.add(m),f.get(t).then(n,l);return}let _=()=>{o&&o(),d.add(m)},g=document.createElement("script"),y=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),n&&n.call(this,t),_()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){l&&l(e)});for(let[r,n]of(a?(g.innerHTML=a.__html||"",_()):i?(g.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",_()):t&&(g.src=t,f.set(t,y)),Object.entries(e))){if(void 0===n||p.includes(r))continue;let e=s.DOMAttributeNames[r]||r.toLowerCase();g.setAttribute(e,n)}"worker"===u&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",u),c&&h(c),document.body.appendChild(g)};function _(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>m(e))}):m(e)}function g(e){e.forEach(_),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");d.add(t)})}function y(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:o=null,strategy:s="afterInteractive",onError:f,stylesheets:p,...h}=e,{updateScripts:_,scripts:g,getIsSsr:y,appDir:b,nonce:P}=(0,u.useContext)(l.HeadManagerContext),v=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||r;v.current||(o&&e&&d.has(e)&&o(),v.current=!0)},[o,t,r]);let E=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{!E.current&&("afterInteractive"===s?m(e):"lazyOnload"===s&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>m(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>m(e))})),E.current=!0)},[e,s]),("beforeInteractive"===s||"worker"===s)&&(_?(g[s]=(g[s]||[]).concat([{id:t,src:r,onLoad:n,onReady:o,onError:f,...h}]),_(g)):y&&y()?d.add(t||r):y&&!y()&&m(e)),b){if(p&&p.forEach(e=>{i.default.preinit(e,{as:"style"})}),"beforeInteractive"===s)return r?(i.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:P}:{as:"script",nonce:P}),(0,a.jsx)("script",{nonce:P,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([r,{...h,id:t}])+")"}})):(h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:P,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...h,id:t}])+")"}}));"afterInteractive"===s&&r&&i.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:P}:{as:"script",nonce:P})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let b=y;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3115:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(6307);function o(e){if("ended"!==e.state.state)throw Error("Expected span to be ended");(0,n.sendMessage)(JSON.stringify({event:"span-end",startTime:e.startTime,endTime:e.state.endTime,spanName:e.name,attributes:e.attributes}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8572:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(2430)._(r(2583));class o{end(e){if("ended"===this.state.state)throw Error("Span has already ended");this.state={state:"ended",endTime:null!=e?e:Date.now()},this.onSpanEnd(this)}constructor(e,t,r){var n,o;this.name=e,this.attributes=null!=(n=t.attributes)?n:{},this.startTime=null!=(o=t.startTime)?o:Date.now(),this.onSpanEnd=r,this.state={state:"inprogress"}}}class a{startSpan(e,t){return new o(e,t,this.handleSpanEnd)}onSpanEnd(e){return this._emitter.on("spanend",e),()=>{this._emitter.off("spanend",e)}}constructor(){this._emitter=(0,n.default)(),this.handleSpanEnd=e=>{this._emitter.emit("spanend",e)}}}let i=new a;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2018:function(e,t){"use strict";let r;function n(e){var t;return(null==(t=function(){if(void 0===r){var e;r=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return r}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3765:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1646),self.__next_set_public_path__=e=>{r.p=e},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1235:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}}),r(2430);let n=r(2676);r(5271);let o=r(9291);function a(e){function t(t){return(0,n.jsx)(e,{router:(0,o.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4659:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=r(2430),o=r(2676),a=n._(r(5271)),i=r(3330);async function u(e){let{Component:t,ctx:r}=e;return{pageProps:await (0,i.loadGetInitialProps)(t,r)}}class l extends a.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,o.jsx)(e,{...t})}}l.origGetInitialProps=u,l.getInitialProps=u,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5268:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let n=r(2430),o=r(2676),a=n._(r(5271)),i=n._(r(9111)),u={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function l(e){let{res:t,err:r}=e;return{statusCode:t&&t.statusCode?t.statusCode:r?r.statusCode:404}}let s={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{lineHeight:"48px"},h1:{display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top"},h2:{fontSize:14,fontWeight:400,lineHeight:"28px"},wrap:{display:"inline-block"}};class c extends a.default.Component{render(){let{statusCode:e,withDarkMode:t=!0}=this.props,r=this.props.title||u[e]||"An unexpected error has occurred";return(0,o.jsxs)("div",{style:s.error,children:[(0,o.jsx)(i.default,{children:(0,o.jsx)("title",{children:e?e+": "+r:"Application error: a client-side exception has occurred"})}),(0,o.jsxs)("div",{style:s.desc,children:[(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}"+(t?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":"")}}),e?(0,o.jsx)("h1",{className:"next-error-h1",style:s.h1,children:e}):null,(0,o.jsx)("div",{style:s.wrap,children:(0,o.jsxs)("h2",{style:s.h2,children:[this.props.title||e?r:(0,o.jsx)(o.Fragment,{children:"Application error: a client-side exception has occurred (see the browser console for more information)"}),"."]})})]})]})}}c.displayName="ErrorPage",c.getInitialProps=l,c.origGetInitialProps=l,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},300:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(2430)._(r(5271)).default.createContext({})},4922:function(e,t){"use strict";function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},6602:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return i},LayoutRouterContext:function(){return a},MissingSlotContext:function(){return l},TemplateContext:function(){return u}});let n=r(2430)._(r(5271)),o=n.default.createContext(null),a=n.default.createContext(null),i=n.default.createContext(null),u=n.default.createContext(null),l=n.default.createContext(new Set)},598:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return r}});class r{static from(e,t){void 0===t&&(t=1e-4);let n=new r(e.length,t);for(let t of e)n.add(t);return n}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach(e=>{this.bitArray[e]=1})}contains(e){return this.getHashValues(e).every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let n=function(e){let t=0;for(let r=0;r>>13,t=Math.imul(t,1540483477);return t>>>0}(""+e+r)%this.numBits;t.push(n)}return t}constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},320:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{APP_BUILD_MANIFEST:function(){return b},APP_CLIENT_INTERNALS:function(){return $},APP_PATHS_MANIFEST:function(){return _},APP_PATH_ROUTES_MANIFEST:function(){return g},AUTOMATIC_FONT_OPTIMIZATION_MANIFEST:function(){return A},BARREL_OPTIMIZATION_PREFIX:function(){return W},BLOCKED_PAGES:function(){return k},BUILD_ID_FILE:function(){return D},BUILD_MANIFEST:function(){return y},CLIENT_PUBLIC_FILES_PATH:function(){return F},CLIENT_REFERENCE_MANIFEST:function(){return q},CLIENT_STATIC_FILES_PATH:function(){return U},CLIENT_STATIC_FILES_RUNTIME_AMP:function(){return Q},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return Y},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return K},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return ee},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return et},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return J},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return Z},COMPILER_INDEXES:function(){return i},COMPILER_NAMES:function(){return o},CONFIG_FILES:function(){return N},DEFAULT_RUNTIME_WEBPACK:function(){return er},DEFAULT_SANS_SERIF_FONT:function(){return es},DEFAULT_SERIF_FONT:function(){return el},DEV_CLIENT_PAGES_MANIFEST:function(){return M},DEV_MIDDLEWARE_MANIFEST:function(){return I},EDGE_RUNTIME_WEBPACK:function(){return en},EDGE_UNSUPPORTED_NODE_APIS:function(){return eh},EXPORT_DETAIL:function(){return O},EXPORT_MARKER:function(){return S},FUNCTIONS_CONFIG_MANIFEST:function(){return P},GOOGLE_FONT_PROVIDER:function(){return ei},IMAGES_MANIFEST:function(){return R},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return X},INTERNAL_HEADERS:function(){return a},MIDDLEWARE_BUILD_MANIFEST:function(){return z},MIDDLEWARE_MANIFEST:function(){return x},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return V},MODERN_BROWSERSLIST_TARGET:function(){return n.default},NEXT_BUILTIN_DOCUMENT:function(){return H},NEXT_FONT_MANIFEST:function(){return E},OPTIMIZED_FONT_PROVIDERS:function(){return eu},PAGES_MANIFEST:function(){return m},PHASE_DEVELOPMENT_SERVER:function(){return d},PHASE_EXPORT:function(){return s},PHASE_INFO:function(){return h},PHASE_PRODUCTION_BUILD:function(){return c},PHASE_PRODUCTION_SERVER:function(){return f},PHASE_TEST:function(){return p},PRERENDER_MANIFEST:function(){return j},REACT_LOADABLE_MANIFEST:function(){return C},ROUTES_MANIFEST:function(){return w},RSC_MODULE_TYPES:function(){return ep},SERVER_DIRECTORY:function(){return L},SERVER_FILES_MANIFEST:function(){return T},SERVER_PROPS_ID:function(){return ea},SERVER_REFERENCE_MANIFEST:function(){return G},STATIC_PROPS_ID:function(){return eo},STATIC_STATUS_PAGES:function(){return ec},STRING_LITERAL_DROP_BUNDLE:function(){return B},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return v},SYSTEM_ENTRYPOINTS:function(){return em},TRACE_OUTPUT_VERSION:function(){return ef},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return ed},UNDERSCORE_NOT_FOUND_ROUTE:function(){return u},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return l}});let n=r(2430)._(r(1076)),o={client:"client",server:"server",edgeServer:"edge-server"},a=["x-invoke-error","x-invoke-output","x-invoke-path","x-invoke-query","x-invoke-status","x-middleware-invoke"],i={[o.client]:0,[o.server]:1,[o.edgeServer]:2},u="/_not-found",l=""+u+"/page",s="phase-export",c="phase-production-build",f="phase-production-server",d="phase-development-server",p="phase-test",h="phase-info",m="pages-manifest.json",_="app-paths-manifest.json",g="app-path-routes-manifest.json",y="build-manifest.json",b="app-build-manifest.json",P="functions-config-manifest.json",v="subresource-integrity-manifest",E="next-font-manifest",S="export-marker.json",O="export-detail.json",j="prerender-manifest.json",w="routes-manifest.json",R="images-manifest.json",T="required-server-files.json",M="_devPagesManifest.json",x="middleware-manifest.json",I="_devMiddlewareManifest.json",C="react-loadable-manifest.json",A="font-manifest.json",L="server",N=["next.config.js","next.config.mjs"],D="BUILD_ID",k=["/_document","/_app","/_error"],F="public",U="static",B="__NEXT_DROP_CLIENT_FILE__",H="__NEXT_BUILTIN_DOCUMENT__",W="__barrel_optimize__",q="client-reference-manifest",G="server-reference-manifest",z="middleware-build-manifest",V="middleware-react-loadable-manifest",X="interception-route-rewrite-manifest",Y="main",K=""+Y+"-app",$="app-pages-internals",J="react-refresh",Q="amp",Z="webpack",ee="polyfills",et=Symbol(ee),er="webpack-runtime",en="edge-runtime-webpack",eo="__N_SSG",ea="__N_SSP",ei="https://fonts.googleapis.com/",eu=[{url:ei,preconnect:"https://fonts.gstatic.com"},{url:"https://use.typekit.net",preconnect:"https://use.typekit.net"}],el={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},es={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},ec=["/500"],ef=1,ed=6e3,ep={client:"client",server:"server"},eh=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],em=new Set([Y,J,Q,K]);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function o(e){return r.test(e)?e.replace(n,"\\$&"):e}},2513:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=r(2430)._(r(5271)).default.createContext({})},9111:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return m},defaultHead:function(){return f}});let n=r(2430),o=r(1778),a=r(2676),i=o._(r(5271)),u=n._(r(2440)),l=r(300),s=r(2513),c=r(4922);function f(e){void 0===e&&(e=!1);let t=[(0,a.jsx)("meta",{charSet:"utf-8"})];return e||t.push((0,a.jsx)("meta",{name:"viewport",content:"width=device-width"})),t}function d(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===i.default.Fragment?e.concat(i.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(7029);let p=["name","httpEquiv","charSet","itemProp"];function h(e,t){let{inAmpMode:r}=t;return e.reduce(d,[]).reverse().concat(f(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return o=>{let a=!0,i=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){i=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?a=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?a=!1:t.add(o.type);break;case"meta":for(let e=0,t=p.length;e{let n=e.key||t;if(!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,i.default.cloneElement(e,t)}return i.default.cloneElement(e,{key:n})})}let m=function(e){let{children:t}=e,r=(0,i.useContext)(l.AmpStateContext),n=(0,i.useContext)(s.HeadManagerContext);return(0,a.jsx)(u.default,{reduceComponentsToState:h,headManager:n,inAmpMode:(0,c.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5233:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathParamsContext:function(){return i},PathnameContext:function(){return a},SearchParamsContext:function(){return o}});let n=r(5271),o=(0,n.createContext)(null),a=(0,n.createContext)(null),i=(0,n.createContext)(null)},5974:function(e,t){"use strict";function r(e,t){let r;let n=e.split("/");return(t||[]).some(t=>!!n[1]&&n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0)),{pathname:e,detectedLocale:r}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}})},5285:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let n=r(2430)._(r(5271)),o=r(8765),a=n.default.createContext(o.imageConfigDefault)},8765:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},9311:function(e,t){"use strict";function r(e){return Object.prototype.toString.call(e)}function n(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},3988:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{BailoutToCSRError:function(){return n},isBailoutToCSRError:function(){return o}});let r="BAILOUT_TO_CLIENT_SIDE_RENDERING";class n extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}},2583:function(e,t){"use strict";function r(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o{e(...n)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},1076:function(e){"use strict";e.exports=["chrome 64","edge 79","firefox 67","opera 51","safari 12"]},1096:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return a}});let n=r(1480),o=r(7688);function a(e){let t=(0,o.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},2559:function(e,t){"use strict";function r(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return r}})},7688:function(e,t){"use strict";function r(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return r}})},4722:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(2430)._(r(5271)).default.createContext(null)},418:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathnameContextProviderAdapter:function(){return p},adaptForAppRouterInstance:function(){return c},adaptForPathParams:function(){return d},adaptForSearchParams:function(){return f}});let n=r(1778),o=r(2676),a=n._(r(5271)),i=r(5233),u=r(1480),l=r(7661),s=r(9409);function c(e){return{back(){e.back()},forward(){e.forward()},refresh(){e.reload()},fastRefresh(){},push(t,r){let{scroll:n}=void 0===r?{}:r;e.push(t,void 0,{scroll:n})},replace(t,r){let{scroll:n}=void 0===r?{}:r;e.replace(t,void 0,{scroll:n})},prefetch(t){e.prefetch(t)}}}function f(e){return e.isReady&&e.query?(0,l.asPathToSearchParams)(e.asPath):new URLSearchParams}function d(e){if(!e.isReady||!e.query)return null;let t={};for(let r of Object.keys((0,s.getRouteRegex)(e.pathname).groups))t[r]=e.query[r];return t}function p(e){let{children:t,router:r,...n}=e,l=(0,a.useRef)(n.isAutoExport),s=(0,a.useMemo)(()=>{let e;let t=l.current;if(t&&(l.current=!1),(0,u.isDynamicRoute)(r.pathname)&&(r.isFallback||t&&!r.isReady))return null;try{e=new URL(r.asPath,"http://f")}catch(e){return"/"}return e.pathname},[r.asPath,r.isFallback,r.isReady,r.pathname]);return(0,o.jsx)(i.PathnameContext.Provider,{value:s,children:t})}},8961:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createKey:function(){return q},default:function(){return V},matchesMiddleware:function(){return N}});let n=r(2430),o=r(1778),a=r(6253),i=r(3951),u=r(2586),l=o._(r(4949)),s=r(1096),c=r(5974),f=n._(r(2583)),d=r(3330),p=r(3161),h=r(8529);r(9771);let m=r(1562),_=r(9409),g=r(8695);r(8288);let y=r(5466),b=r(1748),P=r(8152),v=r(8546),E=r(4828),S=r(656),O=r(9241),j=r(97),w=r(2552),R=r(8852),T=r(3410),M=r(8237),x=r(2086),I=r(1211),C=r(8080),A=r(20);function L(){return Object.assign(Error("Route Cancelled"),{cancelled:!0})}async function N(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,y.parsePath)(e.asPath),n=(0,S.hasBasePath)(r)?(0,v.removeBasePath)(r):r,o=(0,E.addBasePath)((0,b.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(o))}function D(e){let t=(0,d.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function k(e,t,r){let[n,o]=(0,O.resolveHref)(e,t,!0),a=(0,d.getLocationOrigin)(),i=n.startsWith(a),u=o&&o.startsWith(a);n=D(n),o=o?D(o):o;let l=i?n:(0,E.addBasePath)(n),s=r?D((0,O.resolveHref)(e,r)):o||n;return{url:l,as:u?s:(0,E.addBasePath)(s)}}function F(e,t){let r=(0,a.removeTrailingSlash)((0,s.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,p.isDynamicRoute)(t)&&(0,_.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,a.removeTrailingSlash)(e))}async function U(e){if(!await N(e)||!e.fetchData)return null;let t=await e.fetchData(),r=await function(e,t,r){let n={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!1},o=t.headers.get("x-nextjs-rewrite"),u=o||t.headers.get("x-nextjs-matched-path"),l=t.headers.get("x-matched-path");if(!l||u||l.includes("__next_data_catchall")||l.includes("/_error")||l.includes("/404")||(u=l),u){if(u.startsWith("/")){let t=(0,h.parseRelativeUrl)(u),l=(0,w.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),s=(0,a.removeTrailingSlash)(l.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,i.getClientBuildManifest)()]).then(a=>{let[i,{__rewrites:u}]=a,f=(0,b.addLocale)(l.pathname,l.locale);if((0,p.isDynamicRoute)(f)||!o&&i.includes((0,c.normalizeLocalePath)((0,v.removeBasePath)(f),r.router.locales).pathname)){let r=(0,w.getNextPathnameInfo)((0,h.parseRelativeUrl)(e).pathname,{nextConfig:n,parseData:!0});f=(0,E.addBasePath)(r.pathname),t.pathname=f}if(!i.includes(s)){let e=F(s,i);e!==s&&(s=e)}let d=i.includes(s)?s:F((0,c.normalizeLocalePath)((0,v.removeBasePath)(t.pathname),r.router.locales).pathname,i);if((0,p.isDynamicRoute)(d)){let e=(0,m.getRouteMatcher)((0,_.getRouteRegex)(d))(f);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:d}})}let t=(0,y.parsePath)(e);return Promise.resolve({type:"redirect-external",destination:""+(0,R.formatNextPathnameInfo)({...(0,w.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""})+t.query+t.hash})}let s=t.headers.get("x-nextjs-redirect");if(s){if(s.startsWith("/")){let e=(0,y.parsePath)(s),t=(0,R.formatNextPathnameInfo)({...(0,w.getNextPathnameInfo)(e.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:s})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}let B=Symbol("SSG_DATA_NOT_FOUND");function H(e){try{return JSON.parse(e)}catch(e){return null}}function W(e){let{dataHref:t,inflightCache:r,isPrefetch:n,hasMiddleware:o,isServerRender:a,parseJSON:u,persistCache:l,isBackground:s,unstable_skipClientCache:c}=e,{href:f}=new URL(t,window.location.href),d=e=>{var s;return(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(o=>!o.ok&&r>1&&o.status>=500?e(t,r-1,n):o)})(t,a?3:1,{headers:Object.assign({},n?{purpose:"prefetch"}:{},n&&o?{"x-middleware-prefetch":"1"}:{}),method:null!=(s=null==e?void 0:e.method)?s:"GET"}).then(r=>r.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:t,response:r,text:"",json:{},cacheKey:f}:r.text().then(e=>{if(!r.ok){if(o&&[301,302,307,308].includes(r.status))return{dataHref:t,response:r,text:e,json:{},cacheKey:f};if(404===r.status){var n;if(null==(n=H(e))?void 0:n.notFound)return{dataHref:t,json:{notFound:B},response:r,text:e,cacheKey:f}}let u=Error("Failed to load static props");throw a||(0,i.markAssetError)(u),u}return{dataHref:t,json:u?H(e):null,response:r,text:e,cacheKey:f}})).then(e=>(l&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete r[f],e)).catch(e=>{throw c||delete r[f],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,i.markAssetError)(e),e})};return c&&l?d({}).then(e=>(r[f]=Promise.resolve(e),e)):void 0!==r[f]?r[f]:r[f]=d(s?{method:"HEAD"}:{})}function q(){return Math.random().toString(36).slice(2,10)}function G(e){let{url:t,router:r}=e;if(t===(0,E.addBasePath)((0,b.addLocale)(r.asPath,r.locale)))throw Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href);window.location.href=t}let z=e=>{let{route:t,router:r}=e,n=!1,o=r.clc=()=>{n=!0};return()=>{if(n){let e=Error('Abort fetching component for route: "'+t+'"');throw e.cancelled=!0,e}o===r.clc&&(r.clc=null)}};class V{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=k(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=k(this,e,t),this.change("replaceState",e,t,r)}async _bfl(e,t,r,n){{let l=!1,s=!1;for(let c of[e,t])if(c){let t=(0,a.removeTrailingSlash)(new URL(c,"http://n").pathname),f=(0,E.addBasePath)((0,b.addLocale)(t,r||this.locale));if(t!==(0,a.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var o,i,u;for(let e of(l=l||!!(null==(o=this._bfl_s)?void 0:o.contains(t))||!!(null==(i=this._bfl_s)?void 0:i.contains(f)),[t,f])){let t=e.split("/");for(let e=0;!s&&e{})}}}}return!1}async change(e,t,r,n,o){var s,c,f,O,j,w,R,x,A;let D,U;if(!(0,M.isLocalURL)(t))return G({url:t,router:this}),!1;let H=1===n._h;H||n.shallow||await this._bfl(r,void 0,n.locale);let W=H||n._shouldResolveHref||(0,y.parsePath)(t).pathname===(0,y.parsePath)(r).pathname,q={...this.state},z=!0!==this.isReady;this.isReady=!0;let X=this.isSsr;if(H||(this.isSsr=!1),H&&this.clc)return!1;let Y=q.locale;d.ST&&performance.mark("routeChange");let{shallow:K=!1,scroll:$=!0}=n,J={shallow:K};this._inFlightRoute&&this.clc&&(X||V.events.emit("routeChangeError",L(),this._inFlightRoute,J),this.clc(),this.clc=null),r=(0,E.addBasePath)((0,b.addLocale)((0,S.hasBasePath)(r)?(0,v.removeBasePath)(r):r,n.locale,this.defaultLocale));let Q=(0,P.removeLocale)((0,S.hasBasePath)(r)?(0,v.removeBasePath)(r):r,q.locale);this._inFlightRoute=r;let Z=Y!==q.locale;if(!H&&this.onlyAHashChange(Q)&&!Z){q.asPath=Q,V.events.emit("hashChangeStart",r,J),this.changeState(e,t,r,{...n,scroll:!1}),$&&this.scrollToHash(Q);try{await this.set(q,this.components[q.route],null)}catch(e){throw(0,l.default)(e)&&e.cancelled&&V.events.emit("routeChangeError",e,Q,J),e}return V.events.emit("hashChangeComplete",r,J),!0}let ee=(0,h.parseRelativeUrl)(t),{pathname:et,query:er}=ee;try{[D,{__rewrites:U}]=await Promise.all([this.pageLoader.getPageList(),(0,i.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return G({url:r,router:this}),!1}this.urlIsNew(Q)||Z||(e="replaceState");let en=r;et=et?(0,a.removeTrailingSlash)((0,v.removeBasePath)(et)):et;let eo=(0,a.removeTrailingSlash)(et),ea=r.startsWith("/")&&(0,h.parseRelativeUrl)(r).pathname;if(null==(s=this.components[et])?void 0:s.__appRouter)return G({url:r,router:this}),new Promise(()=>{});let ei=!!(ea&&eo!==ea&&(!(0,p.isDynamicRoute)(eo)||!(0,m.getRouteMatcher)((0,_.getRouteRegex)(eo))(ea))),eu=!n.shallow&&await N({asPath:r,locale:q.locale,router:this});if(H&&eu&&(W=!1),W&&"/_error"!==et&&(n._shouldResolveHref=!0,ee.pathname=F(et,D),ee.pathname===et||(et=ee.pathname,ee.pathname=(0,E.addBasePath)(et),eu||(t=(0,g.formatWithValidation)(ee)))),!(0,M.isLocalURL)(r))return G({url:r,router:this}),!1;en=(0,P.removeLocale)((0,v.removeBasePath)(en),q.locale),eo=(0,a.removeTrailingSlash)(et);let el=!1;if((0,p.isDynamicRoute)(eo)){let e=(0,h.parseRelativeUrl)(en),n=e.pathname,o=(0,_.getRouteRegex)(eo);el=(0,m.getRouteMatcher)(o)(n);let a=eo===n,i=a?(0,C.interpolateAs)(eo,n,er):{};if(el&&(!a||i.result))a?r=(0,g.formatWithValidation)(Object.assign({},e,{pathname:i.result,query:(0,I.omit)(er,i.params)})):Object.assign(er,el);else{let e=Object.keys(o.groups).filter(e=>!er[e]&&!o.groups[e].optional);if(e.length>0&&!eu)throw Error((a?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+n+") is incompatible with the `href` value ("+eo+"). ")+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as"))}}H||V.events.emit("routeChangeStart",r,J);let es="/404"===this.pathname||"/_error"===this.pathname;try{let a=await this.getRouteInfo({route:eo,pathname:et,query:er,as:r,resolvedAs:en,routeProps:J,locale:q.locale,isPreview:q.isPreview,hasMiddleware:eu,unstable_skipClientCache:n.unstable_skipClientCache,isQueryUpdating:H&&!this.isFallback,isMiddlewareRewrite:ei});if(H||n.shallow||await this._bfl(r,"resolvedAs"in a?a.resolvedAs:void 0,q.locale),"route"in a&&eu){eo=et=a.route||eo,J.shallow||(er=Object.assign({},a.query||{},er));let e=(0,S.hasBasePath)(ee.pathname)?(0,v.removeBasePath)(ee.pathname):ee.pathname;if(el&&et!==e&&Object.keys(el).forEach(e=>{el&&er[e]===el[e]&&delete er[e]}),(0,p.isDynamicRoute)(et)){let e=!J.shallow&&a.resolvedAs?a.resolvedAs:(0,E.addBasePath)((0,b.addLocale)(new URL(r,location.href).pathname,q.locale),!0);(0,S.hasBasePath)(e)&&(e=(0,v.removeBasePath)(e));let t=(0,_.getRouteRegex)(et),n=(0,m.getRouteMatcher)(t)(new URL(e,location.href).pathname);n&&Object.assign(er,n)}}if("type"in a){if("redirect-internal"===a.type)return this.change(e,a.newUrl,a.newAs,n);return G({url:a.destination,router:this}),new Promise(()=>{})}let i=a.Component;if(i&&i.unstable_scriptLoader&&[].concat(i.unstable_scriptLoader()).forEach(e=>{(0,u.handleClientScriptLoad)(e.props)}),(a.__N_SSG||a.__N_SSP)&&a.props){if(a.props.pageProps&&a.props.pageProps.__N_REDIRECT){n.locale=!1;let t=a.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==a.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,h.parseRelativeUrl)(t);r.pathname=F(r.pathname,D);let{url:o,as:a}=k(this,t,t);return this.change(e,o,a,n)}return G({url:t,router:this}),new Promise(()=>{})}if(q.isPreview=!!a.props.__N_PREVIEW,a.props.notFound===B){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(a=await this.getRouteInfo({route:e,pathname:e,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:q.locale,isPreview:q.isPreview,isNotFound:!0}),"type"in a)throw Error("Unexpected middleware effect on /404")}}H&&"/_error"===this.pathname&&(null==(f=self.__NEXT_DATA__.props)?void 0:null==(c=f.pageProps)?void 0:c.statusCode)===500&&(null==(O=a.props)?void 0:O.pageProps)&&(a.props.pageProps.statusCode=500);let s=n.shallow&&q.route===(null!=(j=a.route)?j:eo),d=null!=(w=n.scroll)?w:!H&&!s,g=null!=o?o:d?{x:0,y:0}:null,y={...q,route:eo,pathname:et,query:er,asPath:Q,isFallback:!1};if(H&&es){if(a=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:q.locale,isPreview:q.isPreview,isQueryUpdating:H&&!this.isFallback}),"type"in a)throw Error("Unexpected middleware effect on "+this.pathname);"/_error"===this.pathname&&(null==(x=self.__NEXT_DATA__.props)?void 0:null==(R=x.pageProps)?void 0:R.statusCode)===500&&(null==(A=a.props)?void 0:A.pageProps)&&(a.props.pageProps.statusCode=500);try{await this.set(y,a,g)}catch(e){throw(0,l.default)(e)&&e.cancelled&&V.events.emit("routeChangeError",e,Q,J),e}return!0}if(V.events.emit("beforeHistoryChange",r,J),this.changeState(e,t,r,n),!(H&&!g&&!z&&!Z&&(0,T.compareRouterStates)(y,this.state))){try{await this.set(y,a,g)}catch(e){if(e.cancelled)a.error=a.error||e;else throw e}if(a.error)throw H||V.events.emit("routeChangeError",a.error,Q,J),a.error;H||V.events.emit("routeChangeComplete",r,J),d&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,l.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n){void 0===n&&(n={}),("pushState"!==e||(0,d.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:q()},"",r))}async handleRouteInfoError(e,t,r,n,o,a){if(console.error(e),e.cancelled)throw e;if((0,i.isAssetError)(e)||a)throw V.events.emit("routeChangeError",e,n,o),G({url:n,router:this}),L();try{let n;let{page:o,styleSheets:a}=await this.fetchComponent("/_error"),i={props:n,Component:o,styleSheets:a,err:e,error:e};if(!i.props)try{i.props=await this.getInitialProps(o,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),i.props={}}return i}catch(e){return this.handleRouteInfoError((0,l.default)(e)?e:Error(e+""),t,r,n,o,!0)}}async getRouteInfo(e){let{route:t,pathname:r,query:n,as:o,resolvedAs:i,routeProps:u,locale:s,hasMiddleware:f,isPreview:d,unstable_skipClientCache:p,isQueryUpdating:h,isMiddlewareRewrite:m,isNotFound:_}=e,y=t;try{var b,P,E,S;let e=this.components[y];if(u.shallow&&e&&this.route===y)return e;let t=z({route:y,router:this});f&&(e=void 0);let l=!e||"initial"in e?void 0:e,O={dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:r,query:n}),skipInterpolation:!0,asPath:_?"/404":i,locale:s}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:h?this.sbc:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p,isBackground:h},w=h&&!m?null:await U({fetchData:()=>W(O),asPath:_?"/404":i,locale:s,router:this}).catch(e=>{if(h)return null;throw e});if(w&&("/_error"===r||"/404"===r)&&(w.effect=void 0),h&&(w?w.json=self.__NEXT_DATA__.props:w={json:self.__NEXT_DATA__.props}),t(),(null==w?void 0:null==(b=w.effect)?void 0:b.type)==="redirect-internal"||(null==w?void 0:null==(P=w.effect)?void 0:P.type)==="redirect-external")return w.effect;if((null==w?void 0:null==(E=w.effect)?void 0:E.type)==="rewrite"){let t=(0,a.removeTrailingSlash)(w.effect.resolvedHref),o=await this.pageLoader.getPageList();if((!h||o.includes(t))&&(y=t,r=w.effect.resolvedHref,n={...n,...w.effect.parsedAs.query},i=(0,v.removeBasePath)((0,c.normalizeLocalePath)(w.effect.parsedAs.pathname,this.locales).pathname),e=this.components[y],u.shallow&&e&&this.route===y&&!f))return{...e,route:y}}if((0,j.isAPIRoute)(y))return G({url:o,router:this}),new Promise(()=>{});let R=l||await this.fetchComponent(y).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),T=null==w?void 0:null==(S=w.response)?void 0:S.headers.get("x-middleware-skip"),M=R.__N_SSG||R.__N_SSP;T&&(null==w?void 0:w.dataHref)&&delete this.sdc[w.dataHref];let{props:x,cacheKey:I}=await this._getData(async()=>{if(M){if((null==w?void 0:w.json)&&!T)return{cacheKey:w.cacheKey,props:w.json};let e=(null==w?void 0:w.dataHref)?w.dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:r,query:n}),asPath:i,locale:s}),t=await W({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:T?{}:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(R.Component,{pathname:r,query:n,asPath:o,locale:s,locales:this.locales,defaultLocale:this.defaultLocale})}});return R.__N_SSP&&O.dataHref&&I&&delete this.sdc[I],this.isPreview||!R.__N_SSG||h||W(Object.assign({},O,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),x.pageProps=Object.assign({},x.pageProps),R.props=x,R.route=y,R.query=n,R.resolvedAs=i,this.components[y]=R,R}catch(e){return this.handleRouteInfoError((0,l.getProperError)(e),r,n,o,u)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#",2),[n,o]=e.split("#",2);return!!o&&t===n&&r===o||t===n&&r!==o}scrollToHash(e){let[,t=""]=e.split("#",2);(0,A.handleSmoothScroll)(()=>{if(""===t||"top"===t){window.scrollTo(0,0);return}let e=decodeURIComponent(t),r=document.getElementById(e);if(r){r.scrollIntoView();return}let n=document.getElementsByName(e)[0];n&&n.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,r){if(void 0===t&&(t=e),void 0===r&&(r={}),(0,x.isBot)(window.navigator.userAgent))return;let n=(0,h.parseRelativeUrl)(e),o=n.pathname,{pathname:i,query:u}=n,l=i,s=await this.pageLoader.getPageList(),c=t,f=void 0!==r.locale?r.locale||void 0:this.locale,d=await N({asPath:t,locale:f,router:this});n.pathname=F(n.pathname,s),(0,p.isDynamicRoute)(n.pathname)&&(i=n.pathname,n.pathname=i,Object.assign(u,(0,m.getRouteMatcher)((0,_.getRouteRegex)(n.pathname))((0,y.parsePath)(t).pathname)||{}),d||(e=(0,g.formatWithValidation)(n)));let b=await U({fetchData:()=>W({dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:l,query:u}),skipInterpolation:!0,asPath:c,locale:f}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:f,router:this});if((null==b?void 0:b.effect.type)==="rewrite"&&(n.pathname=b.effect.resolvedHref,i=b.effect.resolvedHref,u={...u,...b.effect.parsedAs.query},c=b.effect.parsedAs.pathname,e=(0,g.formatWithValidation)(n)),(null==b?void 0:b.effect.type)==="redirect-external")return;let P=(0,a.removeTrailingSlash)(i);await this._bfl(t,c,r.locale,!0)&&(this.components[o]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(P).then(t=>!!t&&W({dataHref:(null==b?void 0:b.json)?null==b?void 0:b.dataHref:this.pageLoader.getDataHref({href:e,asPath:c,locale:f}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](P)])}async fetchComponent(e){let t=z({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Error("Loading initial props cancelled");throw e.cancelled=!0,e}return e})}_getFlightData(e){return W({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then(e=>{let{text:t}=e;return{data:t}})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,d.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,n,{initialProps:o,pageLoader:i,App:u,wrapApp:l,Component:s,err:c,subscription:f,isFallback:m,locale:_,locales:y,defaultLocale:b,domainLocales:P,isPreview:v}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=q(),this.onPopState=e=>{let t;let{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,g.formatWithValidation)({pathname:(0,E.addBasePath)(e),query:t}),(0,d.getURL)());return}if(n.__NA){window.location.reload();return}if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:o,as:a,options:i,key:u}=n;this._key=u;let{pathname:l}=(0,h.parseRelativeUrl)(o);(!this.isSsr||a!==(0,E.addBasePath)(this.asPath)||l!==(0,E.addBasePath)(this.pathname))&&(!this._bps||this._bps(n))&&this.change("replaceState",o,a,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale,_h:0}),t)};let S=(0,a.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[S]={Component:s,initial:!0,props:o,err:c,__N_SSG:o&&o.__N_SSG,__N_SSP:o&&o.__N_SSP}),this.components["/_app"]={Component:u,styleSheets:[]};{let{BloomFilter:e}=r(598),t={numItems:0,errorRate:1e-4,numBits:0,numHashes:null,bitArray:[]},n={numItems:0,errorRate:1e-4,numBits:0,numHashes:null,bitArray:[]};(null==t?void 0:t.numHashes)&&(this._bfl_s=new e(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==n?void 0:n.numHashes)&&(this._bfl_d=new e(n.numItems,n.errorRate),this._bfl_d.import(n))}this.events=V.events,this.pageLoader=i;let O=(0,p.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=f,this.clc=null,this._wrapApp=l,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!O&&!self.location.search),this.state={route:S,pathname:e,query:t,asPath:O?e:n,isPreview:!!v,locale:void 0,isFallback:m},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!n.startsWith("//")){let r={locale:_},o=(0,d.getURL)();this._initialMatchesMiddlewarePromise=N({router:this,locale:_,asPath:o}).then(a=>(r._shouldResolveHref=n!==e,this.changeState("replaceState",a?o:(0,g.formatWithValidation)({pathname:(0,E.addBasePath)(e),query:t}),o,r),a))}window.addEventListener("popstate",this.onPopState)}}V.events=(0,f.default)()},2845:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return a}});let n=r(3837),o=r(1494);function a(e,t,r,a){if(!t||t===r)return e;let i=e.toLowerCase();return!a&&((0,o.pathHasPrefix)(i,"/api")||(0,o.pathHasPrefix)(i,"/"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,"/"+t)}},3837:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let n=r(5466);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+t+r+o+a}},364:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return o}});let n=r(5466);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+r+t+o+a}},5345:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalizeAppPath:function(){return a},normalizeRscURL:function(){return i}});let n=r(2559),o=r(6864);function a(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function i(e){return e.replace(/\.rsc($|\?)/,"$1")}},7661:function(e,t){"use strict";function r(e){return new URL(e,"http://n").searchParams}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"asPathToSearchParams",{enumerable:!0,get:function(){return r}})},3410:function(e,t){"use strict";function r(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let o=r[n];if("query"===o){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let o=r[n];if(!t.query.hasOwnProperty(o)||e.query[o]!==t.query[o])return!1}}else if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return r}})},8852:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return u}});let n=r(6253),o=r(3837),a=r(364),i=r(2845);function u(e){let t=(0,i.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,o.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,o.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},8695:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return a},formatWithValidation:function(){return u},urlObjectKeys:function(){return i}});let n=r(1778)._(r(8679)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,a=e.protocol||"",i=e.pathname||"",u=e.hash||"",l=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(s+=":"+e.port)),l&&"object"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let c=e.search||l&&"?"+l||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||o.test(a))&&!1!==s?(s="//"+(s||""),i&&"/"!==i[0]&&(i="/"+i)):s||(s=""),u&&"#"!==u[0]&&(u="#"+u),c&&"?"!==c[0]&&(c="?"+c),""+a+s+(i=i.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+u}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return a(e)}},9735:function(e,t){"use strict";function r(e,t){return void 0===t&&(t=""),("/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:e)+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},2552:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return i}});let n=r(5974),o=r(8694),a=r(1494);function i(e,t){var r,i;let{basePath:u,i18n:l,trailingSlash:s}=null!=(r=t.nextConfig)?r:{},c={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):s};u&&(0,a.pathHasPrefix)(c.pathname,u)&&(c.pathname=(0,o.removePathPrefix)(c.pathname,u),c.basePath=u);let f=c.pathname;if(c.pathname.startsWith("/_next/data/")&&c.pathname.endsWith(".json")){let e=c.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),r=e[0];c.buildId=r,f="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(c.pathname=f)}if(l){let e=t.i18nProvider?t.i18nProvider.analyze(c.pathname):(0,n.normalizeLocalePath)(c.pathname,l.locales);c.locale=e.detectedLocale,c.pathname=null!=(i=e.pathname)?i:c.pathname,!e.detectedLocale&&c.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(f):(0,n.normalizeLocalePath)(f,l.locales)).detectedLocale&&(c.locale=e.detectedLocale)}return c}},20:function(e,t){"use strict";function r(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let r=document.documentElement,n=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return r}})},1480:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let n=r(9554),o=r(3161)},8080:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return a}});let n=r(1562),o=r(9409);function a(e,t,r){let a="",i=(0,o.getRouteRegex)(e),u=i.groups,l=(t!==e?(0,n.getRouteMatcher)(i)(t):"")||r;a=e;let s=Object.keys(u);return s.every(e=>{let t=l[e]||"",{repeat:r,optional:n}=u[e],o="["+(r?"...":"")+e+"]";return n&&(o=(t?"":"/")+"["+o+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in l)&&(a=a.replace(o,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:s,result:a}}},2086:function(e,t){"use strict";function r(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return r}})},3161:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return a}});let n=r(2053),o=/\/\[[^/]+?\](?=\/|$)/;function a(e){return(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},8237:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=r(3330),o=r(656);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},1211:function(e,t){"use strict";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return r}})},5466:function(e,t){"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},8529:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return a}});let n=r(3330),o=r(8679);function a(e,t){let r=new URL((0,n.getLocationOrigin)()),a=t?new URL(t,r):e.startsWith(".")?new URL(window.location.href):r,{pathname:i,searchParams:u,search:l,hash:s,href:c,origin:f}=new URL(e,a);if(f!==r.origin)throw Error("invariant: invalid relative URL, router received "+e);return{pathname:i,query:(0,o.searchParamsToUrlQuery)(u),search:l,hash:s,href:c.slice(r.origin.length)}}},1494:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(5466);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},8679:function(e,t){"use strict";function r(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function n(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[r,o]=e;Array.isArray(o)?o.forEach(e=>t.append(r,n(e))):t.set(r,n(o))}),t}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return a},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o}})},8694:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return o}});let n=r(1494);function o(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}},6253:function(e,t){"use strict";function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},1562:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let n=r(3330);function o(e){let{re:t,groups:r}=e;return e=>{let o=t.exec(e);if(!o)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw new n.DecodeError("failed to decode param")}},i={};return Object.keys(r).forEach(e=>{let t=r[e],n=o[t.pos];void 0!==n&&(i[e]=~n.indexOf("/")?n.split("/").map(e=>a(e)):t.repeat?[a(n)]:a(n))}),i}}},9409:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getNamedMiddlewareRegex:function(){return d},getNamedRouteRegex:function(){return f},getRouteRegex:function(){return l}});let n=r(2053),o=r(95),a=r(6253);function i(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function u(e){let t=(0,a.removeTrailingSlash)(e).slice(1).split("/"),r={},u=1;return{parameterizedRoute:t.map(e=>{let t=n.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&a){let{key:e,optional:n,repeat:l}=i(a[1]);return r[e]={pos:u++,repeat:l,optional:n},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!a)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:n}=i(a[1]);return r[e]={pos:u++,repeat:t,optional:n},t?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:r}}function l(e){let{parameterizedRoute:t,groups:r}=u(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:r}}function s(e){let{interceptionMarker:t,getSafeRouteKey:r,segment:n,routeKeys:a,keyPrefix:u}=e,{key:l,optional:s,repeat:c}=i(n),f=l.replace(/\W/g,"");u&&(f=""+u+f);let d=!1;(0===f.length||f.length>30)&&(d=!0),isNaN(parseInt(f.slice(0,1)))||(d=!0),d&&(f=r()),u?a[f]=""+u+l:a[f]=l;let p=t?(0,o.escapeStringRegexp)(t):"";return c?s?"(?:/"+p+"(?<"+f+">.+?))?":"/"+p+"(?<"+f+">.+?)":"/"+p+"(?<"+f+">[^/]+?)"}function c(e,t){let r;let i=(0,a.removeTrailingSlash)(e).slice(1).split("/"),u=(r=0,()=>{let e="",t=++r;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),l={};return{namedParameterizedRoute:i.map(e=>{let r=n.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);if(r&&a){let[r]=e.split(a[0]);return s({getSafeRouteKey:u,interceptionMarker:r,segment:a[1],routeKeys:l,keyPrefix:t?"nxtI":void 0})}return a?s({getSafeRouteKey:u,segment:a[1],routeKeys:l,keyPrefix:t?"nxtP":void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:l}}function f(e,t){let r=c(e,t);return{...l(e),namedRegex:"^"+r.namedParameterizedRoute+"(?:/)?$",routeKeys:r.routeKeys}}function d(e,t){let{parameterizedRoute:r}=u(e),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:o}=c(e,!1);return{namedRegex:"^"+o+(n?"(?:(/.*)?)":"")+"$"}}},9554:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return n}});class r{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let r=o.slice(1,-1),i=!1;if(r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1),i=!0),r.startsWith("...")&&(r=r.substring(3),n=!0),r.startsWith("[")||r.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+r+"').");if(r.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+r+"').");function a(e,r){if(null!==e&&e!==r)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+r+"').");t.forEach(e=>{if(e===r)throw Error('You cannot have the same slug name "'+r+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+r+'" differ only by non-word symbols within a single dynamic path')}),t.push(r)}if(n){if(i){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');a(this.optionalRestSlugName,r),this.optionalRestSlugName=r,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');a(this.restSlugName,r),this.restSlugName=r,o="[...]"}}else{if(i)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');a(this.slugName,r),this.slugName=r,o="[]"}}this.children.has(o)||this.children.set(o,new r),this.children.get(o)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()}},7483:function(e,t){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return n},setConfig:function(){return o}});let n=()=>r;function o(e){r=e}},6864:function(e,t){"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DEFAULT_SEGMENT_KEY:function(){return o},PAGE_SEGMENT_KEY:function(){return n},isGroupSegment:function(){return r}});let n="__PAGE__",o="__DEFAULT__"},2440:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(5271),o=n.useLayoutEffect,a=n.useEffect;function i(e){let{headManager:t,reduceComponentsToState:r}=e;function i(){if(t&&t.mountedInstances){let o=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(o,e))}}return o(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=i),()=>{t&&(t._pendingUpdate=i)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},3330:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return y},MissingStaticPage:function(){return g},NormalizeError:function(){return m},PageNotFoundError:function(){return _},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return i},getURL:function(){return u},isAbsoluteUrl:function(){return a},isResSent:function(){return s},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return b}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),a=0;ao.test(e);function i(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function u(){let{href:e}=window.location,t=i();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&s(r))return n;if(!n)throw Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.');return n}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class m extends Error{}class _ extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class g extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},7029:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},4357:function(e){var t,r,n,o,a,i,u,l,s,c,f,d,p,h,m,_,g,y,b,P,v,E,S,O,j,w,R,T,M,x,I,C,A,L,N,D,k,F,U,B,H,W,q,G,z,V;(t={}).d=function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},void 0!==t&&(t.ab="//"),r={},t.r(r),t.d(r,{getCLS:function(){return S},getFCP:function(){return P},getFID:function(){return x},getINP:function(){return W},getLCP:function(){return G},getTTFB:function(){return V},onCLS:function(){return S},onFCP:function(){return P},onFID:function(){return x},onINP:function(){return W},onLCP:function(){return G},onTTFB:function(){return V}}),l=-1,s=function(e){addEventListener("pageshow",function(t){t.persisted&&(l=t.timeStamp,e(t))},!0)},c=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},f=function(){var e=c();return e&&e.activationStart||0},d=function(e,t){var r=c(),n="navigate";return l>=0?n="back-forward-cache":r&&(n=document.prerendering||f()>0?"prerender":r.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},p=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(e){t(e.getEntries())});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(e){}},h=function(e,t){var r=function r(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||(e(n),t&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},m=function(e,t,r,n){var o,a;return function(i){var u;t.value>=0&&(i||n)&&((a=t.value-(o||0))||void 0===o)&&(o=t.value,t.delta=a,t.rating=(u=t.value)>r[1]?"poor":u>r[0]?"needs-improvement":"good",e(t))}},_=-1,g=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},y=function(){h(function(e){_=e.timeStamp},!0)},b=function(){return _<0&&(_=g(),y(),s(function(){setTimeout(function(){_=g(),y()},0)})),{get firstHiddenTime(){return _}}},P=function(e,t){t=t||{};var r,n=[1800,3e3],o=b(),a=d("FCP"),i=function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(l&&l.disconnect(),e.startTime-1&&e(t)},a=d("CLS",0),i=0,u=[],l=function(e){e.forEach(function(e){if(!e.hadRecentInput){var t=u[0],r=u[u.length-1];i&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,u.push(e)):(i=e.value,u=[e]),i>a.value&&(a.value=i,a.entries=u,n())}})},c=p("layout-shift",l);c&&(n=m(o,a,r,t.reportAllChanges),h(function(){l(c.takeRecords()),n(!0)}),s(function(){i=0,E=-1,n=m(o,a=d("CLS",0),r,t.reportAllChanges)}))},O={passive:!0,capture:!0},j=new Date,w=function(e,t){n||(n=t,o=e,a=new Date,M(removeEventListener),R())},R=function(){if(o>=0&&o1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?(t=function(){w(o,e),n()},r=function(){n()},n=function(){removeEventListener("pointerup",t,O),removeEventListener("pointercancel",r,O)},addEventListener("pointerup",t,O),addEventListener("pointercancel",r,O)):w(o,e)}},M=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,T,O)})},x=function(e,t){t=t||{};var r,a=[100,300],u=b(),l=d("FID"),c=function(e){e.startTimet.latency){if(r)r.entries.push(e),r.latency=Math.max(r.latency,e.duration);else{var n={id:e.interactionId,latency:e.duration,entries:[e]};B[n.id]=n,U.push(n)}U.sort(function(e,t){return t.latency-e.latency}),U.splice(10).forEach(function(e){delete B[e.id]})}},W=function(e,t){t=t||{};var r=[200,500];D();var n,o=d("INP"),a=function(e){e.forEach(function(e){e.interactionId&&H(e),"first-input"!==e.entryType||U.some(function(t){return t.entries.some(function(t){return e.duration===t.duration&&e.startTime===t.startTime})})||H(e)});var t,r=(t=Math.min(U.length-1,Math.floor(F()/50)),U[t]);r&&r.latency!==o.value&&(o.value=r.latency,o.entries=r.entries,n())},i=p("event",a,{durationThreshold:t.durationThreshold||40});n=m(e,o,r,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),h(function(){a(i.takeRecords()),o.value<0&&F()>0&&(o.value=0,o.entries=[]),n(!0)}),s(function(){U=[],k=N(),n=m(e,o=d("INP"),r,t.reportAllChanges)}))},q={},G=function(e,t){t=t||{};var r,n=[2500,4e3],o=b(),a=d("LCP"),i=function(e){var t=e[e.length-1];if(t){var n=t.startTime-f();nperformance.now())return;n.entries=[a],o(!0),s(function(){(o=m(e,n=d("TTFB",0),r,t.reportAllChanges))(!0)})}})},e.exports=r},97:function(e,t){"use strict";function r(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return r}})},4949:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getProperError:function(){return a}});let n=r(9311);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function a(e){return o(e)?e:Error((0,n.isPlainObject)(e)?JSON.stringify(e):e+"")}},2053:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return i},isInterceptionRouteAppPath:function(){return a}});let n=r(5345),o=["(..)(..)","(.)","(..)","(...)"];function a(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function i(e){let t,r,a;for(let n of e.split("/"))if(r=o.find(e=>n.startsWith(e))){[t,a]=e.split(r,2);break}if(!t||!r||!a)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":a="/"===t?`/${a}`:t+"/"+a;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);a=t.split("/").slice(0,-1).concat(a).join("/");break;case"(...)":a="/"+a;break;case"(..)(..)":let i=t.split("/");if(i.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);a=i.slice(0,-2).concat(a).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:a}}},9771:function(){},2430:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:function(){return n},_interop_require_default:function(){return n}})},1778:function(e,t,r){"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}r.r(t),r.d(t,{_:function(){return o},_interop_require_wildcard:function(){return o}})}},function(e){e.O(0,[774],function(){return e(e.s=5683)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dist/_next/static/chunks/main-7d342494b2e6d0f5.js b/dist/_next/static/chunks/main-7d342494b2e6d0f5.js deleted file mode 100644 index 9d49ede6..00000000 --- a/dist/_next/static/chunks/main-7d342494b2e6d0f5.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[179],{5858:function(e,t){"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return r}})},8274:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)})},2385:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});let n=r(6478),o=r(5145);function a(e,t){return(0,o.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8409:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(5145);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n25){window.location.reload();return}clearTimeout(o),o=setTimeout(t,i>5?5e3:1e3)}r&&r.close();let{hostname:u,port:l}=location,s=function(e){let t=location.protocol;try{t=new URL(e).protocol}catch(e){}return"http:"===t?"ws":"wss"}(e.assetPrefix||""),c=e.assetPrefix.replace(/^\/+/,""),f=s+"://"+u+":"+l+(c?"/"+c:"");c.startsWith("http")&&(f=s+"://"+c.split("://",2)[1]),(r=new window.WebSocket(""+f+e.path)).onopen=function(){i=0,window.console.log("[HMR] connected")},r.onerror=a,r.onclose=a,r.onmessage=function(e){let t=JSON.parse(e.data);for(let e of n)e(t)}}()}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5379:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});let r=function(){for(var e=arguments.length,t=Array(e),r=0;r{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let r=t[e.type]||[];r.push(e),t[e.type]=r});let n=t.title?t.title[0]:null,o="";if(n){let{children:e}=n.props;o="string"==typeof e?e:Array.isArray(e)?e.join(""):""}o!==document.title&&(document.title=o),["meta","base","link","style","script"].forEach(e=>{r(e,t[e]||[])})}}}r=(e,t)=>{let r=document.getElementsByTagName("head")[0],n=r.querySelector("meta[name=next-head-count]"),i=Number(n.content),u=[];for(let t=0,r=n.previousElementSibling;t{for(let t=0,r=u.length;t{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),s.forEach(e=>r.insertBefore(e,n)),n.content=(i-u.length+s.length).toString()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2632:function(e,t,r){"use strict";let n,o,a,i,u,l,s,c,f,d,p,h;Object.defineProperty(t,"__esModule",{value:!0});let m=r(1778);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{emitter:function(){return z},hydrate:function(){return ef},initialize:function(){return K},router:function(){return n},version:function(){return G}});let _=r(2430),g=r(2676);r(8274);let y=_._(r(5271)),b=_._(r(8751)),P=r(9107),v=_._(r(4248)),E=r(3816),S=r(1847),O=r(3104),j=r(7450),w=r(8040),R=r(961),T=r(6385),M=_._(r(5442)),x=_._(r(4303)),I=_._(r(3015)),C=r(725),A=r(178),L=r(1964),N=r(5260),D=r(7150),k=r(5165),F=r(7190),U=r(4573),B=r(1250),H=_._(r(8697)),W=_._(r(1300)),q=_._(r(2423)),G="14.2.4",z=(0,v.default)(),V=e=>[].slice.call(e),X=!1;class Y extends y.default.Component{componentDidCatch(e,t){this.props.fn(e,t)}componentDidMount(){this.scrollToHash(),n.isSsr&&(o.isFallback||o.nextExport&&((0,O.isDynamicRoute)(n.pathname)||location.search||X)||o.props&&o.props.__N_SSG&&(location.search||X))&&n.replace(n.pathname+"?"+String((0,j.assign)((0,j.urlQueryToSearchParams)(n.query),new URLSearchParams(location.search))),a,{_h:1,shallow:!o.isFallback&&!X}).catch(e=>{if(!e.cancelled)throw e})}componentDidUpdate(){this.scrollToHash()}scrollToHash(){let{hash:e}=location;if(!(e=e&&e.substring(1)))return;let t=document.getElementById(e);t&&setTimeout(()=>t.scrollIntoView(),0)}render(){return this.props.children}}async function K(e){void 0===e&&(e={}),W.default.onSpanEnd(q.default),o=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=o,h=o.defaultLocale;let t=o.assetPrefix||"";if(self.__next_set_public_path__(""+t+"/_next/"),(0,w.setConfig)({serverRuntimeConfig:{},publicRuntimeConfig:o.runtimeConfig||{}}),a=(0,R.getURL)(),(0,k.hasBasePath)(a)&&(a=(0,D.removeBasePath)(a)),o.scriptLoader){let{initScriptLoader:e}=r(8990);e(o.scriptLoader)}i=new x.default(o.buildId,t);let s=e=>{let[t,r]=e;return i.routeLoader.onEntrypoint(t,r)};return window.__NEXT_P&&window.__NEXT_P.map(e=>setTimeout(()=>s(e),0)),window.__NEXT_P=[],window.__NEXT_P.push=s,(l=(0,M.default)()).getIsSsr=()=>n.isSsr,u=document.getElementById("__next"),{assetPrefix:t}}function $(e,t){return(0,g.jsx)(e,{...t})}function J(e){var t;let{children:r}=e,o=y.default.useMemo(()=>(0,U.adaptForAppRouterInstance)(n),[]);return(0,g.jsx)(Y,{fn:e=>Z({App:f,err:e}).catch(e=>console.error("Error rendering page: ",e)),children:(0,g.jsx)(F.AppRouterContext.Provider,{value:o,children:(0,g.jsx)(B.SearchParamsContext.Provider,{value:(0,U.adaptForSearchParams)(n),children:(0,g.jsx)(U.PathnameContextProviderAdapter,{router:n,isAutoExport:null!=(t=self.__NEXT_DATA__.autoExport)&&t,children:(0,g.jsx)(B.PathParamsContext.Provider,{value:(0,U.adaptForPathParams)(n),children:(0,g.jsx)(E.RouterContext.Provider,{value:(0,A.makePublicRouterInstance)(n),children:(0,g.jsx)(P.HeadManagerContext.Provider,{value:l,children:(0,g.jsx)(N.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1},children:r})})})})})})})})}let Q=e=>t=>{let r={...t,Component:p,err:o.err,router:n};return(0,g.jsx)(J,{children:$(e,r)})};function Z(e){let{App:t,err:u}=e;return console.error(u),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),i.loadPage("/_error").then(n=>{let{page:o,styleSheets:a}=n;return(null==s?void 0:s.Component)===o?Promise.resolve().then(()=>m._(r(2220))).then(n=>Promise.resolve().then(()=>m._(r(7654))).then(r=>(t=r.default,e.App=t,n))).then(e=>({ErrorComponent:e.default,styleSheets:[]})):{ErrorComponent:o,styleSheets:a}}).then(r=>{var i;let{ErrorComponent:l,styleSheets:s}=r,c=Q(t),f={Component:l,AppTree:c,router:n,ctx:{err:u,pathname:o.page,query:o.query,asPath:a,AppTree:c}};return Promise.resolve((null==(i=e.props)?void 0:i.err)?e.props:(0,R.loadGetInitialProps)(t,f)).then(t=>es({...e,err:u,Component:l,styleSheets:s,props:t}))})}function ee(e){let{callback:t}=e;return y.default.useLayoutEffect(()=>t(),[t]),null}let et={navigationStart:"navigationStart",beforeRender:"beforeRender",afterRender:"afterRender",afterHydrate:"afterHydrate",routeChange:"routeChange"},er={hydration:"Next.js-hydration",beforeHydration:"Next.js-before-hydration",routeChangeToRender:"Next.js-route-change-to-render",render:"Next.js-render"},en=null,eo=!0;function ea(){[et.beforeRender,et.afterHydrate,et.afterRender,et.routeChange].forEach(e=>performance.clearMarks(e))}function ei(){R.ST&&(performance.mark(et.afterHydrate),performance.getEntriesByName(et.beforeRender,"mark").length&&(performance.measure(er.beforeHydration,et.navigationStart,et.beforeRender),performance.measure(er.hydration,et.beforeRender,et.afterHydrate)),d&&performance.getEntriesByName(er.hydration).forEach(d),ea())}function eu(){if(!R.ST)return;performance.mark(et.afterRender);let e=performance.getEntriesByName(et.routeChange,"mark");e.length&&(performance.getEntriesByName(et.beforeRender,"mark").length&&(performance.measure(er.routeChangeToRender,e[0].name,et.beforeRender),performance.measure(er.render,et.beforeRender,et.afterRender),d&&(performance.getEntriesByName(er.render).forEach(d),performance.getEntriesByName(er.routeChangeToRender).forEach(d))),ea(),[er.routeChangeToRender,er.render].forEach(e=>performance.clearMeasures(e)))}function el(e){let{callbacks:t,children:r}=e;return y.default.useLayoutEffect(()=>t.forEach(e=>e()),[t]),y.default.useEffect(()=>{(0,I.default)(d)},[]),r}function es(e){let t,{App:r,Component:o,props:a,err:i}=e,l="initial"in e?void 0:e.styleSheets;o=o||s.Component;let f={...a=a||s.props,Component:o,err:i,router:n};s=f;let d=!1,p=new Promise((e,r)=>{c&&c(),t=()=>{c=null,e()},c=()=>{d=!0,c=null;let e=Error("Cancel rendering route");e.cancelled=!0,r(e)}});function h(){t()}!function(){if(!l)return;let e=new Set(V(document.querySelectorAll("style[data-n-href]")).map(e=>e.getAttribute("data-n-href"))),t=document.querySelector("noscript[data-n-css]"),r=null==t?void 0:t.getAttribute("data-n-css");l.forEach(t=>{let{href:n,text:o}=t;if(!e.has(n)){let e=document.createElement("style");e.setAttribute("data-n-href",n),e.setAttribute("media","x"),r&&e.setAttribute("nonce",r),document.head.appendChild(e),e.appendChild(document.createTextNode(o))}})}();let m=(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(ee,{callback:function(){if(l&&!d){let e=new Set(l.map(e=>e.href)),t=V(document.querySelectorAll("style[data-n-href]")),r=t.map(e=>e.getAttribute("data-n-href"));for(let n=0;n{let{href:t}=e,r=document.querySelector('style[data-n-href="'+t+'"]');r&&(n.parentNode.insertBefore(r,n.nextSibling),n=r)}),V(document.querySelectorAll("link[data-n-p]")).forEach(e=>{e.parentNode.removeChild(e)})}if(e.scroll){let{x:t,y:r}=e.scroll;(0,S.handleSmoothScroll)(()=>{window.scrollTo(t,r)})}}}),(0,g.jsxs)(J,{children:[$(r,f),(0,g.jsx)(T.Portal,{type:"next-route-announcer",children:(0,g.jsx)(C.RouteAnnouncer,{})})]})]});return!function(e,t){R.ST&&performance.mark(et.beforeRender);let r=t(eo?ei:eu);en?(0,y.default.startTransition)(()=>{en.render(r)}):(en=b.default.hydrateRoot(e,r,{onRecoverableError:H.default}),eo=!1)}(u,e=>(0,g.jsx)(el,{callbacks:[e,h],children:m})),p}async function ec(e){if(e.err&&(void 0===e.Component||!e.isHydratePass)){await Z(e);return}try{await es(e)}catch(r){let t=(0,L.getProperError)(r);if(t.cancelled)throw t;await Z({...e,err:t})}}async function ef(e){let t=o.err;try{let e=await i.routeLoader.whenEntrypoint("/_app");if("error"in e)throw e.error;let{component:t,exports:r}=e;f=t,r&&r.reportWebVitals&&(d=e=>{let t,{id:n,name:o,startTime:a,value:i,duration:u,entryType:l,entries:s,attribution:c}=e,f=Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12);s&&s.length&&(t=s[0].startTime);let d={id:n||f,name:o,startTime:a||t,value:null==i?u:i,label:"mark"===l||"measure"===l?"custom":"web-vital"};c&&(d.attribution=c),r.reportWebVitals(d)});let n=await i.routeLoader.whenEntrypoint(o.page);if("error"in n)throw n.error;p=n.component}catch(e){t=(0,L.getProperError)(e)}window.__NEXT_PRELOADREADY&&await window.__NEXT_PRELOADREADY(o.dynamicIds),n=(0,A.createRouter)(o.page,o.query,a,{initialProps:o.props,pageLoader:i,App:f,Component:p,wrapApp:Q,err:t,isFallback:!!o.isFallback,subscription:(e,t,r)=>ec(Object.assign({},e,{App:t,scroll:r})),locale:o.locale,locales:o.locales,defaultLocale:h,domainLocales:o.domainLocales,isPreview:o.isPreview}),X=await n._initialMatchesMiddlewarePromise;let r={App:f,initial:!0,Component:p,props:o.props,err:t,isHydratePass:!0};(null==e?void 0:e.beforeRender)&&await e.beforeRender(),ec(r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1695:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6851);let n=r(2632);window.next={version:n.version,get router(){return n.router},emitter:n.emitter},(0,n.initialize)({}).then(()=>(0,n.hydrate)()).catch(console.error),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5145:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return a}});let n=r(1552),o=r(8159),a=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:a}=(0,o.parsePath)(e);return""+(0,n.removeTrailingSlash)(t)+r+a};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8697:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(6422);function o(e){let t="function"==typeof reportError?reportError:e=>{window.console.error(e)};(0,n.isBailoutToCSRError)(e)||t(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4303:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let n=r(2430),o=r(2385),a=r(5770),i=n._(r(3060)),u=r(8409),l=r(3104),s=r(6664),c=r(1552),f=r(9962);r(9367);class d{getPageList(){return(0,f.getClientBuildManifest)().then(e=>e.sortedPages)}getMiddleware(){return window.__MIDDLEWARE_MATCHERS=[],window.__MIDDLEWARE_MATCHERS}getDataHref(e){let{asPath:t,href:r,locale:n}=e,{pathname:f,query:d,search:p}=(0,s.parseRelativeUrl)(r),{pathname:h}=(0,s.parseRelativeUrl)(t),m=(0,c.removeTrailingSlash)(f);if("/"!==m[0])throw Error('Route name should start with a "/", got "'+m+'"');return(e=>{let t=(0,i.default)((0,c.removeTrailingSlash)((0,u.addLocale)(e,n)),".json");return(0,o.addBasePath)("/_next/data/"+this.buildId+t+p,!0)})(e.skipInterpolation?h:(0,l.isDynamicRoute)(m)?(0,a.interpolateAs)(f,h,d).result:m)}_isSsg(e){return this.promisedSsgManifest.then(t=>t.has(e))}loadPage(e){return this.routeLoader.loadRoute(e).then(e=>{if("component"in e)return{page:e.component,mod:e.exports,styleSheets:e.styles.map(e=>({href:e.href,text:e.content}))};throw e.error})}prefetch(e){return this.routeLoader.prefetch(e)}constructor(e,t){this.routeLoader=(0,f.createRouteLoader)(t),this.buildId=e,this.assetPrefix=t,this.promisedSsgManifest=new Promise(e=>{window.__SSG_MANIFEST?e(window.__SSG_MANIFEST):window.__SSG_MANIFEST_CB=()=>{e(window.__SSG_MANIFEST)}})}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3015:function(e,t,r){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let o=["CLS","FCP","FID","INP","LCP","TTFB"];location.href;let a=!1;function i(e){n&&n(e)}let u=e=>{if(n=e,!a)for(let e of(a=!0,o))try{let t;t||(t=r(9326)),t["on"+e](i)}catch(t){console.warn("Failed to track "+e+" web-vital",t)}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6385:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Portal",{enumerable:!0,get:function(){return a}});let n=r(5271),o=r(967),a=e=>{let{children:t,type:r}=e,[a,i]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e=document.createElement(r);return document.body.appendChild(e),i(e),()=>{document.body.removeChild(e)}},[r]),a?(0,o.createPortal)(t,a):null};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7150:function(e,t,r){"use strict";function n(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return n}}),r(5165),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4013:function(e,t,r){"use strict";function n(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return n}}),r(8159),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3329:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},866:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});let n=r(7450),o=r(7809),a=r(3848),i=r(961),u=r(5145),l=r(9988),s=r(9870),c=r(5770);function f(e,t,r){let f;let d="string"==typeof t?t:(0,o.formatWithValidation)(t),p=d.match(/^[a-zA-Z]{1,}:\/\//),h=p?d.slice(p[0].length):d;if((h.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,i.normalizeRepeatedSlashes)(h);d=(p?p[0]:"")+t}if(!(0,l.isLocalURL)(d))return r?[d]:d;try{f=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(d,f);e.pathname=(0,u.normalizePathTrailingSlash)(e.pathname);let t="";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:i,params:u}=(0,c.interpolateAs)(e.pathname,e.pathname,r);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(r,u)}))}let i=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return r?[i,t||i]:i}catch(e){return r?[d]:d}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},725:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RouteAnnouncer:function(){return l},default:function(){return s}});let n=r(2430),o=r(2676),a=n._(r(5271)),i=r(178),u={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",top:0,width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},l=()=>{let{asPath:e}=(0,i.useRouter)(),[t,r]=a.default.useState(""),n=a.default.useRef(e);return a.default.useEffect(()=>{if(n.current!==e){if(n.current=e,document.title)r(document.title);else{var t;let n=document.querySelector("h1");r((null!=(t=null==n?void 0:n.innerText)?t:null==n?void 0:n.textContent)||e)}}},[e]),(0,o.jsx)("p",{"aria-live":"assertive",id:"__next-route-announcer__",role:"alert",style:u,children:t})},s=l;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9962:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createRouteLoader:function(){return m},getClientBuildManifest:function(){return p},isAssetError:function(){return s},markAssetError:function(){return l}}),r(2430),r(3060);let n=r(5941),o=r(3329),a=r(5858);function i(e,t,r){let n,o=t.get(e);if(o)return"future"in o?o.future:Promise.resolve(o);let a=new Promise(e=>{n=e});return t.set(e,o={resolve:n,future:a}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):a}let u=Symbol("ASSET_LOAD_ERROR");function l(e){return Object.defineProperty(e,u,{})}function s(e){return e&&u in e}let c=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),f=()=>(0,a.getDeploymentIdQueryOrEmptyString)();function d(e,t,r){return new Promise((n,a)=>{let i=!1;e.then(e=>{i=!0,n(e)}).catch(a),(0,o.requestIdleCallback)(()=>setTimeout(()=>{i||a(r)},t))})}function p(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):d(new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}}),3800,l(Error("Failed to load client build manifest")))}function h(e,t){return p().then(r=>{if(!(t in r))throw l(Error("Failed to lookup route: "+t));let o=r[t].map(t=>e+"/_next/"+encodeURI(t));return{scripts:o.filter(e=>e.endsWith(".js")).map(e=>(0,n.__unsafeCreateTrustedScriptURL)(e)+f()),css:o.filter(e=>e.endsWith(".css")).map(e=>e+f())}})}function m(e){let t=new Map,r=new Map,n=new Map,a=new Map;function u(e){{var t;let n=r.get(e.toString());return n||(document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(l(Error("Failed to load script: "+e))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n))}}function s(e){let t=n.get(e);return t||n.set(e,t=fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw Error("Failed to load stylesheet: "+e);return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw l(e)})),t}return{whenEntrypoint:e=>i(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),a.delete(e))})},loadRoute(r,n){return i(r,a,()=>{let o;return d(h(e,r).then(e=>{let{scripts:n,css:o}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(u)),Promise.all(o.map(s))])}).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,l(Error("Route did not complete loading: "+r))).then(e=>{let{entrypoint:t,styles:r}=e,n=Object.assign({styles:r},t);return"error"in t?t:n}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>null==o?void 0:o())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():h(e,t).then(e=>Promise.all(c?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,o)=>{if(document.querySelector('\n link[rel="prefetch"][href^="'+t+'"],\n link[rel="preload"][href^="'+t+'"],\n script[src^="'+t+'"]'))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>o(l(Error("Failed to prefetch: "+t))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,o.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},178:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Router:function(){return a.default},createRouter:function(){return m},default:function(){return p},makePublicRouterInstance:function(){return _},useRouter:function(){return h},withRouter:function(){return l.default}});let n=r(2430),o=n._(r(5271)),a=n._(r(8537)),i=r(3816),u=n._(r(1964)),l=n._(r(4285)),s={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],f=["push","replace","reload","back","prefetch","beforePopState"];function d(){if(!s.router)throw Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n');return s.router}Object.defineProperty(s,"events",{get:()=>a.default.events}),c.forEach(e=>{Object.defineProperty(s,e,{get:()=>d()[e]})}),f.forEach(e=>{s[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n{s.ready(()=>{a.default.events.on(e,function(){for(var t=arguments.length,r=Array(t),n=0;ne()),s.readyCallbacks=[],s.router}function _(e){let t={};for(let r of c){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=a.default.events,f.forEach(r=>{t[r]=function(){for(var t=arguments.length,n=Array(t),o=0;o{if(i.default.preinit){e.forEach(e=>{i.default.preinit(e,{as:"style"})});return}{let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}},m=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:o=null,dangerouslySetInnerHTML:a,children:i="",strategy:u="afterInteractive",onError:l,stylesheets:c}=e,m=r||t;if(m&&d.has(m))return;if(f.has(t)){d.add(m),f.get(t).then(n,l);return}let _=()=>{o&&o(),d.add(m)},g=document.createElement("script"),y=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),n&&n.call(this,t),_()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){l&&l(e)});for(let[r,n]of(a?(g.innerHTML=a.__html||"",_()):i?(g.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",_()):t&&(g.src=t,f.set(t,y)),Object.entries(e))){if(void 0===n||p.includes(r))continue;let e=s.DOMAttributeNames[r]||r.toLowerCase();g.setAttribute(e,n)}"worker"===u&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",u),c&&h(c),document.body.appendChild(g)};function _(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>m(e))}):m(e)}function g(e){e.forEach(_),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");d.add(t)})}function y(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:o=null,strategy:s="afterInteractive",onError:f,stylesheets:p,...h}=e,{updateScripts:_,scripts:g,getIsSsr:y,appDir:b,nonce:P}=(0,u.useContext)(l.HeadManagerContext),v=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||r;v.current||(o&&e&&d.has(e)&&o(),v.current=!0)},[o,t,r]);let E=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{!E.current&&("afterInteractive"===s?m(e):"lazyOnload"===s&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>m(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>m(e))})),E.current=!0)},[e,s]),("beforeInteractive"===s||"worker"===s)&&(_?(g[s]=(g[s]||[]).concat([{id:t,src:r,onLoad:n,onReady:o,onError:f,...h}]),_(g)):y&&y()?d.add(t||r):y&&!y()&&m(e)),b){if(p&&p.forEach(e=>{i.default.preinit(e,{as:"style"})}),"beforeInteractive"===s)return r?(i.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:P}:{as:"script",nonce:P}),(0,a.jsx)("script",{nonce:P,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([r,{...h,id:t}])+")"}})):(h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:P,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...h,id:t}])+")"}}));"afterInteractive"===s&&r&&i.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:P}:{as:"script",nonce:P})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let b=y;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2423:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(6289);function o(e){if("ended"!==e.state.state)throw Error("Expected span to be ended");(0,n.sendMessage)(JSON.stringify({event:"span-end",startTime:e.startTime,endTime:e.state.endTime,spanName:e.name,attributes:e.attributes}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1300:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(2430)._(r(4248));class o{end(e){if("ended"===this.state.state)throw Error("Span has already ended");this.state={state:"ended",endTime:null!=e?e:Date.now()},this.onSpanEnd(this)}constructor(e,t,r){var n,o;this.name=e,this.attributes=null!=(n=t.attributes)?n:{},this.startTime=null!=(o=t.startTime)?o:Date.now(),this.onSpanEnd=r,this.state={state:"inprogress"}}}class a{startSpan(e,t){return new o(e,t,this.handleSpanEnd)}onSpanEnd(e){return this._emitter.on("spanend",e),()=>{this._emitter.off("spanend",e)}}constructor(){this._emitter=(0,n.default)(),this.handleSpanEnd=e=>{this._emitter.emit("spanend",e)}}}let i=new a;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5941:function(e,t){"use strict";let r;function n(e){var t;return(null==(t=function(){if(void 0===r){var e;r=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return r}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6851:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(5858),self.__next_set_public_path__=e=>{r.p=e},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4285:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}}),r(2430);let n=r(2676);r(5271);let o=r(178);function a(e){function t(t){return(0,n.jsx)(e,{router:(0,o.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7654:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=r(2430),o=r(2676),a=n._(r(5271)),i=r(961);async function u(e){let{Component:t,ctx:r}=e;return{pageProps:await (0,i.loadGetInitialProps)(t,r)}}class l extends a.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,o.jsx)(e,{...t})}}l.origGetInitialProps=u,l.getInitialProps=u,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2220:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let n=r(2430),o=r(2676),a=n._(r(5271)),i=n._(r(5178)),u={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function l(e){let{res:t,err:r}=e;return{statusCode:t&&t.statusCode?t.statusCode:r?r.statusCode:404}}let s={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{lineHeight:"48px"},h1:{display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top"},h2:{fontSize:14,fontWeight:400,lineHeight:"28px"},wrap:{display:"inline-block"}};class c extends a.default.Component{render(){let{statusCode:e,withDarkMode:t=!0}=this.props,r=this.props.title||u[e]||"An unexpected error has occurred";return(0,o.jsxs)("div",{style:s.error,children:[(0,o.jsx)(i.default,{children:(0,o.jsx)("title",{children:e?e+": "+r:"Application error: a client-side exception has occurred"})}),(0,o.jsxs)("div",{style:s.desc,children:[(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}"+(t?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":"")}}),e?(0,o.jsx)("h1",{className:"next-error-h1",style:s.h1,children:e}):null,(0,o.jsx)("div",{style:s.wrap,children:(0,o.jsxs)("h2",{style:s.h2,children:[this.props.title||e?r:(0,o.jsx)(o.Fragment,{children:"Application error: a client-side exception has occurred (see the browser console for more information)"}),"."]})})]})]})}}c.displayName="ErrorPage",c.getInitialProps=l,c.origGetInitialProps=l,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2290:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(2430)._(r(5271)).default.createContext({})},4388:function(e,t){"use strict";function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},7190:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return i},LayoutRouterContext:function(){return a},MissingSlotContext:function(){return l},TemplateContext:function(){return u}});let n=r(2430)._(r(5271)),o=n.default.createContext(null),a=n.default.createContext(null),i=n.default.createContext(null),u=n.default.createContext(null),l=n.default.createContext(new Set)},3582:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return r}});class r{static from(e,t){void 0===t&&(t=1e-4);let n=new r(e.length,t);for(let t of e)n.add(t);return n}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach(e=>{this.bitArray[e]=1})}contains(e){return this.getHashValues(e).every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let n=function(e){let t=0;for(let r=0;r>>13,t=Math.imul(t,1540483477);return t>>>0}(""+e+r)%this.numBits;t.push(n)}return t}constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},9367:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{APP_BUILD_MANIFEST:function(){return b},APP_CLIENT_INTERNALS:function(){return $},APP_PATHS_MANIFEST:function(){return _},APP_PATH_ROUTES_MANIFEST:function(){return g},AUTOMATIC_FONT_OPTIMIZATION_MANIFEST:function(){return A},BARREL_OPTIMIZATION_PREFIX:function(){return W},BLOCKED_PAGES:function(){return k},BUILD_ID_FILE:function(){return D},BUILD_MANIFEST:function(){return y},CLIENT_PUBLIC_FILES_PATH:function(){return F},CLIENT_REFERENCE_MANIFEST:function(){return q},CLIENT_STATIC_FILES_PATH:function(){return U},CLIENT_STATIC_FILES_RUNTIME_AMP:function(){return Q},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return Y},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return K},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return ee},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return et},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return J},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return Z},COMPILER_INDEXES:function(){return i},COMPILER_NAMES:function(){return o},CONFIG_FILES:function(){return N},DEFAULT_RUNTIME_WEBPACK:function(){return er},DEFAULT_SANS_SERIF_FONT:function(){return es},DEFAULT_SERIF_FONT:function(){return el},DEV_CLIENT_PAGES_MANIFEST:function(){return M},DEV_MIDDLEWARE_MANIFEST:function(){return I},EDGE_RUNTIME_WEBPACK:function(){return en},EDGE_UNSUPPORTED_NODE_APIS:function(){return eh},EXPORT_DETAIL:function(){return O},EXPORT_MARKER:function(){return S},FUNCTIONS_CONFIG_MANIFEST:function(){return P},GOOGLE_FONT_PROVIDER:function(){return ei},IMAGES_MANIFEST:function(){return R},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return X},INTERNAL_HEADERS:function(){return a},MIDDLEWARE_BUILD_MANIFEST:function(){return z},MIDDLEWARE_MANIFEST:function(){return x},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return V},MODERN_BROWSERSLIST_TARGET:function(){return n.default},NEXT_BUILTIN_DOCUMENT:function(){return H},NEXT_FONT_MANIFEST:function(){return E},OPTIMIZED_FONT_PROVIDERS:function(){return eu},PAGES_MANIFEST:function(){return m},PHASE_DEVELOPMENT_SERVER:function(){return d},PHASE_EXPORT:function(){return s},PHASE_INFO:function(){return h},PHASE_PRODUCTION_BUILD:function(){return c},PHASE_PRODUCTION_SERVER:function(){return f},PHASE_TEST:function(){return p},PRERENDER_MANIFEST:function(){return j},REACT_LOADABLE_MANIFEST:function(){return C},ROUTES_MANIFEST:function(){return w},RSC_MODULE_TYPES:function(){return ep},SERVER_DIRECTORY:function(){return L},SERVER_FILES_MANIFEST:function(){return T},SERVER_PROPS_ID:function(){return ea},SERVER_REFERENCE_MANIFEST:function(){return G},STATIC_PROPS_ID:function(){return eo},STATIC_STATUS_PAGES:function(){return ec},STRING_LITERAL_DROP_BUNDLE:function(){return B},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return v},SYSTEM_ENTRYPOINTS:function(){return em},TRACE_OUTPUT_VERSION:function(){return ef},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return ed},UNDERSCORE_NOT_FOUND_ROUTE:function(){return u},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return l}});let n=r(2430)._(r(1116)),o={client:"client",server:"server",edgeServer:"edge-server"},a=["x-invoke-error","x-invoke-output","x-invoke-path","x-invoke-query","x-invoke-status","x-middleware-invoke"],i={[o.client]:0,[o.server]:1,[o.edgeServer]:2},u="/_not-found",l=""+u+"/page",s="phase-export",c="phase-production-build",f="phase-production-server",d="phase-development-server",p="phase-test",h="phase-info",m="pages-manifest.json",_="app-paths-manifest.json",g="app-path-routes-manifest.json",y="build-manifest.json",b="app-build-manifest.json",P="functions-config-manifest.json",v="subresource-integrity-manifest",E="next-font-manifest",S="export-marker.json",O="export-detail.json",j="prerender-manifest.json",w="routes-manifest.json",R="images-manifest.json",T="required-server-files.json",M="_devPagesManifest.json",x="middleware-manifest.json",I="_devMiddlewareManifest.json",C="react-loadable-manifest.json",A="font-manifest.json",L="server",N=["next.config.js","next.config.mjs"],D="BUILD_ID",k=["/_document","/_app","/_error"],F="public",U="static",B="__NEXT_DROP_CLIENT_FILE__",H="__NEXT_BUILTIN_DOCUMENT__",W="__barrel_optimize__",q="client-reference-manifest",G="server-reference-manifest",z="middleware-build-manifest",V="middleware-react-loadable-manifest",X="interception-route-rewrite-manifest",Y="main",K=""+Y+"-app",$="app-pages-internals",J="react-refresh",Q="amp",Z="webpack",ee="polyfills",et=Symbol(ee),er="webpack-runtime",en="edge-runtime-webpack",eo="__N_SSG",ea="__N_SSP",ei="https://fonts.googleapis.com/",eu=[{url:ei,preconnect:"https://fonts.gstatic.com"},{url:"https://use.typekit.net",preconnect:"https://use.typekit.net"}],el={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},es={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},ec=["/500"],ef=1,ed=6e3,ep={client:"client",server:"server"},eh=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],em=new Set([Y,J,Q,K]);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},956:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function o(e){return r.test(e)?e.replace(n,"\\$&"):e}},9107:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=r(2430)._(r(5271)).default.createContext({})},5178:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return m},defaultHead:function(){return f}});let n=r(2430),o=r(1778),a=r(2676),i=o._(r(5271)),u=n._(r(2353)),l=r(2290),s=r(9107),c=r(4388);function f(e){void 0===e&&(e=!1);let t=[(0,a.jsx)("meta",{charSet:"utf-8"})];return e||t.push((0,a.jsx)("meta",{name:"viewport",content:"width=device-width"})),t}function d(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===i.default.Fragment?e.concat(i.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(5081);let p=["name","httpEquiv","charSet","itemProp"];function h(e,t){let{inAmpMode:r}=t;return e.reduce(d,[]).reverse().concat(f(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return o=>{let a=!0,i=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){i=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?a=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?a=!1:t.add(o.type);break;case"meta":for(let e=0,t=p.length;e{let n=e.key||t;if(!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,i.default.cloneElement(e,t)}return i.default.cloneElement(e,{key:n})})}let m=function(e){let{children:t}=e,r=(0,i.useContext)(l.AmpStateContext),n=(0,i.useContext)(s.HeadManagerContext);return(0,a.jsx)(u.default,{reduceComponentsToState:h,headManager:n,inAmpMode:(0,c.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1250:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathParamsContext:function(){return i},PathnameContext:function(){return a},SearchParamsContext:function(){return o}});let n=r(5271),o=(0,n.createContext)(null),a=(0,n.createContext)(null),i=(0,n.createContext)(null)},7765:function(e,t){"use strict";function r(e,t){let r;let n=e.split("/");return(t||[]).some(t=>!!n[1]&&n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0)),{pathname:e,detectedLocale:r}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}})},5260:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let n=r(2430)._(r(5271)),o=r(7096),a=n.default.createContext(o.imageConfigDefault)},7096:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},7081:function(e,t){"use strict";function r(e){return Object.prototype.toString.call(e)}function n(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},6422:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{BailoutToCSRError:function(){return n},isBailoutToCSRError:function(){return o}});let r="BAILOUT_TO_CLIENT_SIDE_RENDERING";class n extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}},4248:function(e,t){"use strict";function r(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o{e(...n)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},1116:function(e){"use strict";e.exports=["chrome 64","edge 79","firefox 67","opera 51","safari 12"]},483:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return a}});let n=r(9870),o=r(9861);function a(e){let t=(0,o.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},9044:function(e,t){"use strict";function r(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return r}})},9861:function(e,t){"use strict";function r(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return r}})},3816:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(2430)._(r(5271)).default.createContext(null)},4573:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathnameContextProviderAdapter:function(){return p},adaptForAppRouterInstance:function(){return c},adaptForPathParams:function(){return d},adaptForSearchParams:function(){return f}});let n=r(1778),o=r(2676),a=n._(r(5271)),i=r(1250),u=r(9870),l=r(5312),s=r(1042);function c(e){return{back(){e.back()},forward(){e.forward()},refresh(){e.reload()},fastRefresh(){},push(t,r){let{scroll:n}=void 0===r?{}:r;e.push(t,void 0,{scroll:n})},replace(t,r){let{scroll:n}=void 0===r?{}:r;e.replace(t,void 0,{scroll:n})},prefetch(t){e.prefetch(t)}}}function f(e){return e.isReady&&e.query?(0,l.asPathToSearchParams)(e.asPath):new URLSearchParams}function d(e){if(!e.isReady||!e.query)return null;let t={};for(let r of Object.keys((0,s.getRouteRegex)(e.pathname).groups))t[r]=e.query[r];return t}function p(e){let{children:t,router:r,...n}=e,l=(0,a.useRef)(n.isAutoExport),s=(0,a.useMemo)(()=>{let e;let t=l.current;if(t&&(l.current=!1),(0,u.isDynamicRoute)(r.pathname)&&(r.isFallback||t&&!r.isReady))return null;try{e=new URL(r.asPath,"http://f")}catch(e){return"/"}return e.pathname},[r.asPath,r.isFallback,r.isReady,r.pathname]);return(0,o.jsx)(i.PathnameContext.Provider,{value:s,children:t})}},8537:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createKey:function(){return q},default:function(){return V},matchesMiddleware:function(){return N}});let n=r(2430),o=r(1778),a=r(1552),i=r(9962),u=r(8990),l=o._(r(1964)),s=r(483),c=r(7765),f=n._(r(4248)),d=r(961),p=r(3104),h=r(6664);r(9240);let m=r(1608),_=r(1042),g=r(7809);r(5379);let y=r(8159),b=r(8409),P=r(4013),v=r(7150),E=r(2385),S=r(5165),O=r(866),j=r(6978),w=r(3783),R=r(9524),T=r(6147),M=r(9988),x=r(5831),I=r(3848),C=r(5770),A=r(1847);function L(){return Object.assign(Error("Route Cancelled"),{cancelled:!0})}async function N(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,y.parsePath)(e.asPath),n=(0,S.hasBasePath)(r)?(0,v.removeBasePath)(r):r,o=(0,E.addBasePath)((0,b.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(o))}function D(e){let t=(0,d.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function k(e,t,r){let[n,o]=(0,O.resolveHref)(e,t,!0),a=(0,d.getLocationOrigin)(),i=n.startsWith(a),u=o&&o.startsWith(a);n=D(n),o=o?D(o):o;let l=i?n:(0,E.addBasePath)(n),s=r?D((0,O.resolveHref)(e,r)):o||n;return{url:l,as:u?s:(0,E.addBasePath)(s)}}function F(e,t){let r=(0,a.removeTrailingSlash)((0,s.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,p.isDynamicRoute)(t)&&(0,_.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,a.removeTrailingSlash)(e))}async function U(e){if(!await N(e)||!e.fetchData)return null;let t=await e.fetchData(),r=await function(e,t,r){let n={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!1},o=t.headers.get("x-nextjs-rewrite"),u=o||t.headers.get("x-nextjs-matched-path"),l=t.headers.get("x-matched-path");if(!l||u||l.includes("__next_data_catchall")||l.includes("/_error")||l.includes("/404")||(u=l),u){if(u.startsWith("/")){let t=(0,h.parseRelativeUrl)(u),l=(0,w.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),s=(0,a.removeTrailingSlash)(l.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,i.getClientBuildManifest)()]).then(a=>{let[i,{__rewrites:u}]=a,f=(0,b.addLocale)(l.pathname,l.locale);if((0,p.isDynamicRoute)(f)||!o&&i.includes((0,c.normalizeLocalePath)((0,v.removeBasePath)(f),r.router.locales).pathname)){let r=(0,w.getNextPathnameInfo)((0,h.parseRelativeUrl)(e).pathname,{nextConfig:n,parseData:!0});f=(0,E.addBasePath)(r.pathname),t.pathname=f}if(!i.includes(s)){let e=F(s,i);e!==s&&(s=e)}let d=i.includes(s)?s:F((0,c.normalizeLocalePath)((0,v.removeBasePath)(t.pathname),r.router.locales).pathname,i);if((0,p.isDynamicRoute)(d)){let e=(0,m.getRouteMatcher)((0,_.getRouteRegex)(d))(f);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:d}})}let t=(0,y.parsePath)(e);return Promise.resolve({type:"redirect-external",destination:""+(0,R.formatNextPathnameInfo)({...(0,w.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""})+t.query+t.hash})}let s=t.headers.get("x-nextjs-redirect");if(s){if(s.startsWith("/")){let e=(0,y.parsePath)(s),t=(0,R.formatNextPathnameInfo)({...(0,w.getNextPathnameInfo)(e.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:s})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}let B=Symbol("SSG_DATA_NOT_FOUND");function H(e){try{return JSON.parse(e)}catch(e){return null}}function W(e){let{dataHref:t,inflightCache:r,isPrefetch:n,hasMiddleware:o,isServerRender:a,parseJSON:u,persistCache:l,isBackground:s,unstable_skipClientCache:c}=e,{href:f}=new URL(t,window.location.href),d=e=>{var s;return(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(o=>!o.ok&&r>1&&o.status>=500?e(t,r-1,n):o)})(t,a?3:1,{headers:Object.assign({},n?{purpose:"prefetch"}:{},n&&o?{"x-middleware-prefetch":"1"}:{}),method:null!=(s=null==e?void 0:e.method)?s:"GET"}).then(r=>r.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:t,response:r,text:"",json:{},cacheKey:f}:r.text().then(e=>{if(!r.ok){if(o&&[301,302,307,308].includes(r.status))return{dataHref:t,response:r,text:e,json:{},cacheKey:f};if(404===r.status){var n;if(null==(n=H(e))?void 0:n.notFound)return{dataHref:t,json:{notFound:B},response:r,text:e,cacheKey:f}}let u=Error("Failed to load static props");throw a||(0,i.markAssetError)(u),u}return{dataHref:t,json:u?H(e):null,response:r,text:e,cacheKey:f}})).then(e=>(l&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete r[f],e)).catch(e=>{throw c||delete r[f],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,i.markAssetError)(e),e})};return c&&l?d({}).then(e=>(r[f]=Promise.resolve(e),e)):void 0!==r[f]?r[f]:r[f]=d(s?{method:"HEAD"}:{})}function q(){return Math.random().toString(36).slice(2,10)}function G(e){let{url:t,router:r}=e;if(t===(0,E.addBasePath)((0,b.addLocale)(r.asPath,r.locale)))throw Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href);window.location.href=t}let z=e=>{let{route:t,router:r}=e,n=!1,o=r.clc=()=>{n=!0};return()=>{if(n){let e=Error('Abort fetching component for route: "'+t+'"');throw e.cancelled=!0,e}o===r.clc&&(r.clc=null)}};class V{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=k(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=k(this,e,t),this.change("replaceState",e,t,r)}async _bfl(e,t,r,n){{let l=!1,s=!1;for(let c of[e,t])if(c){let t=(0,a.removeTrailingSlash)(new URL(c,"http://n").pathname),f=(0,E.addBasePath)((0,b.addLocale)(t,r||this.locale));if(t!==(0,a.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var o,i,u;for(let e of(l=l||!!(null==(o=this._bfl_s)?void 0:o.contains(t))||!!(null==(i=this._bfl_s)?void 0:i.contains(f)),[t,f])){let t=e.split("/");for(let e=0;!s&&e{})}}}}return!1}async change(e,t,r,n,o){var s,c,f,O,j,w,R,x,A;let D,U;if(!(0,M.isLocalURL)(t))return G({url:t,router:this}),!1;let H=1===n._h;H||n.shallow||await this._bfl(r,void 0,n.locale);let W=H||n._shouldResolveHref||(0,y.parsePath)(t).pathname===(0,y.parsePath)(r).pathname,q={...this.state},z=!0!==this.isReady;this.isReady=!0;let X=this.isSsr;if(H||(this.isSsr=!1),H&&this.clc)return!1;let Y=q.locale;d.ST&&performance.mark("routeChange");let{shallow:K=!1,scroll:$=!0}=n,J={shallow:K};this._inFlightRoute&&this.clc&&(X||V.events.emit("routeChangeError",L(),this._inFlightRoute,J),this.clc(),this.clc=null),r=(0,E.addBasePath)((0,b.addLocale)((0,S.hasBasePath)(r)?(0,v.removeBasePath)(r):r,n.locale,this.defaultLocale));let Q=(0,P.removeLocale)((0,S.hasBasePath)(r)?(0,v.removeBasePath)(r):r,q.locale);this._inFlightRoute=r;let Z=Y!==q.locale;if(!H&&this.onlyAHashChange(Q)&&!Z){q.asPath=Q,V.events.emit("hashChangeStart",r,J),this.changeState(e,t,r,{...n,scroll:!1}),$&&this.scrollToHash(Q);try{await this.set(q,this.components[q.route],null)}catch(e){throw(0,l.default)(e)&&e.cancelled&&V.events.emit("routeChangeError",e,Q,J),e}return V.events.emit("hashChangeComplete",r,J),!0}let ee=(0,h.parseRelativeUrl)(t),{pathname:et,query:er}=ee;try{[D,{__rewrites:U}]=await Promise.all([this.pageLoader.getPageList(),(0,i.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return G({url:r,router:this}),!1}this.urlIsNew(Q)||Z||(e="replaceState");let en=r;et=et?(0,a.removeTrailingSlash)((0,v.removeBasePath)(et)):et;let eo=(0,a.removeTrailingSlash)(et),ea=r.startsWith("/")&&(0,h.parseRelativeUrl)(r).pathname;if(null==(s=this.components[et])?void 0:s.__appRouter)return G({url:r,router:this}),new Promise(()=>{});let ei=!!(ea&&eo!==ea&&(!(0,p.isDynamicRoute)(eo)||!(0,m.getRouteMatcher)((0,_.getRouteRegex)(eo))(ea))),eu=!n.shallow&&await N({asPath:r,locale:q.locale,router:this});if(H&&eu&&(W=!1),W&&"/_error"!==et&&(n._shouldResolveHref=!0,ee.pathname=F(et,D),ee.pathname===et||(et=ee.pathname,ee.pathname=(0,E.addBasePath)(et),eu||(t=(0,g.formatWithValidation)(ee)))),!(0,M.isLocalURL)(r))return G({url:r,router:this}),!1;en=(0,P.removeLocale)((0,v.removeBasePath)(en),q.locale),eo=(0,a.removeTrailingSlash)(et);let el=!1;if((0,p.isDynamicRoute)(eo)){let e=(0,h.parseRelativeUrl)(en),n=e.pathname,o=(0,_.getRouteRegex)(eo);el=(0,m.getRouteMatcher)(o)(n);let a=eo===n,i=a?(0,C.interpolateAs)(eo,n,er):{};if(el&&(!a||i.result))a?r=(0,g.formatWithValidation)(Object.assign({},e,{pathname:i.result,query:(0,I.omit)(er,i.params)})):Object.assign(er,el);else{let e=Object.keys(o.groups).filter(e=>!er[e]&&!o.groups[e].optional);if(e.length>0&&!eu)throw Error((a?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+n+") is incompatible with the `href` value ("+eo+"). ")+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as"))}}H||V.events.emit("routeChangeStart",r,J);let es="/404"===this.pathname||"/_error"===this.pathname;try{let a=await this.getRouteInfo({route:eo,pathname:et,query:er,as:r,resolvedAs:en,routeProps:J,locale:q.locale,isPreview:q.isPreview,hasMiddleware:eu,unstable_skipClientCache:n.unstable_skipClientCache,isQueryUpdating:H&&!this.isFallback,isMiddlewareRewrite:ei});if(H||n.shallow||await this._bfl(r,"resolvedAs"in a?a.resolvedAs:void 0,q.locale),"route"in a&&eu){eo=et=a.route||eo,J.shallow||(er=Object.assign({},a.query||{},er));let e=(0,S.hasBasePath)(ee.pathname)?(0,v.removeBasePath)(ee.pathname):ee.pathname;if(el&&et!==e&&Object.keys(el).forEach(e=>{el&&er[e]===el[e]&&delete er[e]}),(0,p.isDynamicRoute)(et)){let e=!J.shallow&&a.resolvedAs?a.resolvedAs:(0,E.addBasePath)((0,b.addLocale)(new URL(r,location.href).pathname,q.locale),!0);(0,S.hasBasePath)(e)&&(e=(0,v.removeBasePath)(e));let t=(0,_.getRouteRegex)(et),n=(0,m.getRouteMatcher)(t)(new URL(e,location.href).pathname);n&&Object.assign(er,n)}}if("type"in a){if("redirect-internal"===a.type)return this.change(e,a.newUrl,a.newAs,n);return G({url:a.destination,router:this}),new Promise(()=>{})}let i=a.Component;if(i&&i.unstable_scriptLoader&&[].concat(i.unstable_scriptLoader()).forEach(e=>{(0,u.handleClientScriptLoad)(e.props)}),(a.__N_SSG||a.__N_SSP)&&a.props){if(a.props.pageProps&&a.props.pageProps.__N_REDIRECT){n.locale=!1;let t=a.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==a.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,h.parseRelativeUrl)(t);r.pathname=F(r.pathname,D);let{url:o,as:a}=k(this,t,t);return this.change(e,o,a,n)}return G({url:t,router:this}),new Promise(()=>{})}if(q.isPreview=!!a.props.__N_PREVIEW,a.props.notFound===B){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(a=await this.getRouteInfo({route:e,pathname:e,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:q.locale,isPreview:q.isPreview,isNotFound:!0}),"type"in a)throw Error("Unexpected middleware effect on /404")}}H&&"/_error"===this.pathname&&(null==(f=self.__NEXT_DATA__.props)?void 0:null==(c=f.pageProps)?void 0:c.statusCode)===500&&(null==(O=a.props)?void 0:O.pageProps)&&(a.props.pageProps.statusCode=500);let s=n.shallow&&q.route===(null!=(j=a.route)?j:eo),d=null!=(w=n.scroll)?w:!H&&!s,g=null!=o?o:d?{x:0,y:0}:null,y={...q,route:eo,pathname:et,query:er,asPath:Q,isFallback:!1};if(H&&es){if(a=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:q.locale,isPreview:q.isPreview,isQueryUpdating:H&&!this.isFallback}),"type"in a)throw Error("Unexpected middleware effect on "+this.pathname);"/_error"===this.pathname&&(null==(x=self.__NEXT_DATA__.props)?void 0:null==(R=x.pageProps)?void 0:R.statusCode)===500&&(null==(A=a.props)?void 0:A.pageProps)&&(a.props.pageProps.statusCode=500);try{await this.set(y,a,g)}catch(e){throw(0,l.default)(e)&&e.cancelled&&V.events.emit("routeChangeError",e,Q,J),e}return!0}if(V.events.emit("beforeHistoryChange",r,J),this.changeState(e,t,r,n),!(H&&!g&&!z&&!Z&&(0,T.compareRouterStates)(y,this.state))){try{await this.set(y,a,g)}catch(e){if(e.cancelled)a.error=a.error||e;else throw e}if(a.error)throw H||V.events.emit("routeChangeError",a.error,Q,J),a.error;H||V.events.emit("routeChangeComplete",r,J),d&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,l.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n){void 0===n&&(n={}),("pushState"!==e||(0,d.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:q()},"",r))}async handleRouteInfoError(e,t,r,n,o,a){if(console.error(e),e.cancelled)throw e;if((0,i.isAssetError)(e)||a)throw V.events.emit("routeChangeError",e,n,o),G({url:n,router:this}),L();try{let n;let{page:o,styleSheets:a}=await this.fetchComponent("/_error"),i={props:n,Component:o,styleSheets:a,err:e,error:e};if(!i.props)try{i.props=await this.getInitialProps(o,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),i.props={}}return i}catch(e){return this.handleRouteInfoError((0,l.default)(e)?e:Error(e+""),t,r,n,o,!0)}}async getRouteInfo(e){let{route:t,pathname:r,query:n,as:o,resolvedAs:i,routeProps:u,locale:s,hasMiddleware:f,isPreview:d,unstable_skipClientCache:p,isQueryUpdating:h,isMiddlewareRewrite:m,isNotFound:_}=e,y=t;try{var b,P,E,S;let e=this.components[y];if(u.shallow&&e&&this.route===y)return e;let t=z({route:y,router:this});f&&(e=void 0);let l=!e||"initial"in e?void 0:e,O={dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:r,query:n}),skipInterpolation:!0,asPath:_?"/404":i,locale:s}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:h?this.sbc:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p,isBackground:h},w=h&&!m?null:await U({fetchData:()=>W(O),asPath:_?"/404":i,locale:s,router:this}).catch(e=>{if(h)return null;throw e});if(w&&("/_error"===r||"/404"===r)&&(w.effect=void 0),h&&(w?w.json=self.__NEXT_DATA__.props:w={json:self.__NEXT_DATA__.props}),t(),(null==w?void 0:null==(b=w.effect)?void 0:b.type)==="redirect-internal"||(null==w?void 0:null==(P=w.effect)?void 0:P.type)==="redirect-external")return w.effect;if((null==w?void 0:null==(E=w.effect)?void 0:E.type)==="rewrite"){let t=(0,a.removeTrailingSlash)(w.effect.resolvedHref),o=await this.pageLoader.getPageList();if((!h||o.includes(t))&&(y=t,r=w.effect.resolvedHref,n={...n,...w.effect.parsedAs.query},i=(0,v.removeBasePath)((0,c.normalizeLocalePath)(w.effect.parsedAs.pathname,this.locales).pathname),e=this.components[y],u.shallow&&e&&this.route===y&&!f))return{...e,route:y}}if((0,j.isAPIRoute)(y))return G({url:o,router:this}),new Promise(()=>{});let R=l||await this.fetchComponent(y).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),T=null==w?void 0:null==(S=w.response)?void 0:S.headers.get("x-middleware-skip"),M=R.__N_SSG||R.__N_SSP;T&&(null==w?void 0:w.dataHref)&&delete this.sdc[w.dataHref];let{props:x,cacheKey:I}=await this._getData(async()=>{if(M){if((null==w?void 0:w.json)&&!T)return{cacheKey:w.cacheKey,props:w.json};let e=(null==w?void 0:w.dataHref)?w.dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:r,query:n}),asPath:i,locale:s}),t=await W({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:T?{}:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(R.Component,{pathname:r,query:n,asPath:o,locale:s,locales:this.locales,defaultLocale:this.defaultLocale})}});return R.__N_SSP&&O.dataHref&&I&&delete this.sdc[I],this.isPreview||!R.__N_SSG||h||W(Object.assign({},O,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),x.pageProps=Object.assign({},x.pageProps),R.props=x,R.route=y,R.query=n,R.resolvedAs=i,this.components[y]=R,R}catch(e){return this.handleRouteInfoError((0,l.getProperError)(e),r,n,o,u)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#",2),[n,o]=e.split("#",2);return!!o&&t===n&&r===o||t===n&&r!==o}scrollToHash(e){let[,t=""]=e.split("#",2);(0,A.handleSmoothScroll)(()=>{if(""===t||"top"===t){window.scrollTo(0,0);return}let e=decodeURIComponent(t),r=document.getElementById(e);if(r){r.scrollIntoView();return}let n=document.getElementsByName(e)[0];n&&n.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,r){if(void 0===t&&(t=e),void 0===r&&(r={}),(0,x.isBot)(window.navigator.userAgent))return;let n=(0,h.parseRelativeUrl)(e),o=n.pathname,{pathname:i,query:u}=n,l=i,s=await this.pageLoader.getPageList(),c=t,f=void 0!==r.locale?r.locale||void 0:this.locale,d=await N({asPath:t,locale:f,router:this});n.pathname=F(n.pathname,s),(0,p.isDynamicRoute)(n.pathname)&&(i=n.pathname,n.pathname=i,Object.assign(u,(0,m.getRouteMatcher)((0,_.getRouteRegex)(n.pathname))((0,y.parsePath)(t).pathname)||{}),d||(e=(0,g.formatWithValidation)(n)));let b=await U({fetchData:()=>W({dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:l,query:u}),skipInterpolation:!0,asPath:c,locale:f}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:f,router:this});if((null==b?void 0:b.effect.type)==="rewrite"&&(n.pathname=b.effect.resolvedHref,i=b.effect.resolvedHref,u={...u,...b.effect.parsedAs.query},c=b.effect.parsedAs.pathname,e=(0,g.formatWithValidation)(n)),(null==b?void 0:b.effect.type)==="redirect-external")return;let P=(0,a.removeTrailingSlash)(i);await this._bfl(t,c,r.locale,!0)&&(this.components[o]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(P).then(t=>!!t&&W({dataHref:(null==b?void 0:b.json)?null==b?void 0:b.dataHref:this.pageLoader.getDataHref({href:e,asPath:c,locale:f}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](P)])}async fetchComponent(e){let t=z({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Error("Loading initial props cancelled");throw e.cancelled=!0,e}return e})}_getFlightData(e){return W({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then(e=>{let{text:t}=e;return{data:t}})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,d.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,n,{initialProps:o,pageLoader:i,App:u,wrapApp:l,Component:s,err:c,subscription:f,isFallback:m,locale:_,locales:y,defaultLocale:b,domainLocales:P,isPreview:v}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=q(),this.onPopState=e=>{let t;let{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,g.formatWithValidation)({pathname:(0,E.addBasePath)(e),query:t}),(0,d.getURL)());return}if(n.__NA){window.location.reload();return}if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:o,as:a,options:i,key:u}=n;this._key=u;let{pathname:l}=(0,h.parseRelativeUrl)(o);(!this.isSsr||a!==(0,E.addBasePath)(this.asPath)||l!==(0,E.addBasePath)(this.pathname))&&(!this._bps||this._bps(n))&&this.change("replaceState",o,a,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale,_h:0}),t)};let S=(0,a.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[S]={Component:s,initial:!0,props:o,err:c,__N_SSG:o&&o.__N_SSG,__N_SSP:o&&o.__N_SSP}),this.components["/_app"]={Component:u,styleSheets:[]};{let{BloomFilter:e}=r(3582),t={numItems:0,errorRate:1e-4,numBits:0,numHashes:null,bitArray:[]},n={numItems:0,errorRate:1e-4,numBits:0,numHashes:null,bitArray:[]};(null==t?void 0:t.numHashes)&&(this._bfl_s=new e(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==n?void 0:n.numHashes)&&(this._bfl_d=new e(n.numItems,n.errorRate),this._bfl_d.import(n))}this.events=V.events,this.pageLoader=i;let O=(0,p.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=f,this.clc=null,this._wrapApp=l,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!O&&!self.location.search),this.state={route:S,pathname:e,query:t,asPath:O?e:n,isPreview:!!v,locale:void 0,isFallback:m},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!n.startsWith("//")){let r={locale:_},o=(0,d.getURL)();this._initialMatchesMiddlewarePromise=N({router:this,locale:_,asPath:o}).then(a=>(r._shouldResolveHref=n!==e,this.changeState("replaceState",a?o:(0,g.formatWithValidation)({pathname:(0,E.addBasePath)(e),query:t}),o,r),a))}window.addEventListener("popstate",this.onPopState)}}V.events=(0,f.default)()},661:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return a}});let n=r(6478),o=r(9635);function a(e,t,r,a){if(!t||t===r)return e;let i=e.toLowerCase();return!a&&((0,o.pathHasPrefix)(i,"/api")||(0,o.pathHasPrefix)(i,"/"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,"/"+t)}},6478:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let n=r(8159);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+t+r+o+a}},6446:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return o}});let n=r(8159);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+r+t+o+a}},1908:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalizeAppPath:function(){return a},normalizeRscURL:function(){return i}});let n=r(9044),o=r(4412);function a(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function i(e){return e.replace(/\.rsc($|\?)/,"$1")}},5312:function(e,t){"use strict";function r(e){return new URL(e,"http://n").searchParams}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"asPathToSearchParams",{enumerable:!0,get:function(){return r}})},6147:function(e,t){"use strict";function r(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let o=r[n];if("query"===o){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let o=r[n];if(!t.query.hasOwnProperty(o)||e.query[o]!==t.query[o])return!1}}else if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return r}})},9524:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return u}});let n=r(1552),o=r(6478),a=r(6446),i=r(661);function u(e){let t=(0,i.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,o.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,o.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},7809:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return a},formatWithValidation:function(){return u},urlObjectKeys:function(){return i}});let n=r(1778)._(r(7450)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,a=e.protocol||"",i=e.pathname||"",u=e.hash||"",l=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(s+=":"+e.port)),l&&"object"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let c=e.search||l&&"?"+l||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||o.test(a))&&!1!==s?(s="//"+(s||""),i&&"/"!==i[0]&&(i="/"+i)):s||(s=""),u&&"#"!==u[0]&&(u="#"+u),c&&"?"!==c[0]&&(c="?"+c),""+a+s+(i=i.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+u}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return a(e)}},3060:function(e,t){"use strict";function r(e,t){return void 0===t&&(t=""),("/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:e)+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},3783:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return i}});let n=r(7765),o=r(641),a=r(9635);function i(e,t){var r,i;let{basePath:u,i18n:l,trailingSlash:s}=null!=(r=t.nextConfig)?r:{},c={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):s};u&&(0,a.pathHasPrefix)(c.pathname,u)&&(c.pathname=(0,o.removePathPrefix)(c.pathname,u),c.basePath=u);let f=c.pathname;if(c.pathname.startsWith("/_next/data/")&&c.pathname.endsWith(".json")){let e=c.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),r=e[0];c.buildId=r,f="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(c.pathname=f)}if(l){let e=t.i18nProvider?t.i18nProvider.analyze(c.pathname):(0,n.normalizeLocalePath)(c.pathname,l.locales);c.locale=e.detectedLocale,c.pathname=null!=(i=e.pathname)?i:c.pathname,!e.detectedLocale&&c.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(f):(0,n.normalizeLocalePath)(f,l.locales)).detectedLocale&&(c.locale=e.detectedLocale)}return c}},1847:function(e,t){"use strict";function r(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let r=document.documentElement,n=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return r}})},9870:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let n=r(271),o=r(3104)},5770:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return a}});let n=r(1608),o=r(1042);function a(e,t,r){let a="",i=(0,o.getRouteRegex)(e),u=i.groups,l=(t!==e?(0,n.getRouteMatcher)(i)(t):"")||r;a=e;let s=Object.keys(u);return s.every(e=>{let t=l[e]||"",{repeat:r,optional:n}=u[e],o="["+(r?"...":"")+e+"]";return n&&(o=(t?"":"/")+"["+o+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in l)&&(a=a.replace(o,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:s,result:a}}},5831:function(e,t){"use strict";function r(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return r}})},3104:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return a}});let n=r(8978),o=/\/\[[^/]+?\](?=\/|$)/;function a(e){return(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},9988:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=r(961),o=r(5165);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},3848:function(e,t){"use strict";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return r}})},8159:function(e,t){"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},6664:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return a}});let n=r(961),o=r(7450);function a(e,t){let r=new URL((0,n.getLocationOrigin)()),a=t?new URL(t,r):e.startsWith(".")?new URL(window.location.href):r,{pathname:i,searchParams:u,search:l,hash:s,href:c,origin:f}=new URL(e,a);if(f!==r.origin)throw Error("invariant: invalid relative URL, router received "+e);return{pathname:i,query:(0,o.searchParamsToUrlQuery)(u),search:l,hash:s,href:c.slice(r.origin.length)}}},9635:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(8159);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},7450:function(e,t){"use strict";function r(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function n(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[r,o]=e;Array.isArray(o)?o.forEach(e=>t.append(r,n(e))):t.set(r,n(o))}),t}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return a},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o}})},641:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return o}});let n=r(9635);function o(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}},1552:function(e,t){"use strict";function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},1608:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let n=r(961);function o(e){let{re:t,groups:r}=e;return e=>{let o=t.exec(e);if(!o)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw new n.DecodeError("failed to decode param")}},i={};return Object.keys(r).forEach(e=>{let t=r[e],n=o[t.pos];void 0!==n&&(i[e]=~n.indexOf("/")?n.split("/").map(e=>a(e)):t.repeat?[a(n)]:a(n))}),i}}},1042:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getNamedMiddlewareRegex:function(){return d},getNamedRouteRegex:function(){return f},getRouteRegex:function(){return l}});let n=r(8978),o=r(956),a=r(1552);function i(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function u(e){let t=(0,a.removeTrailingSlash)(e).slice(1).split("/"),r={},u=1;return{parameterizedRoute:t.map(e=>{let t=n.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&a){let{key:e,optional:n,repeat:l}=i(a[1]);return r[e]={pos:u++,repeat:l,optional:n},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!a)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:n}=i(a[1]);return r[e]={pos:u++,repeat:t,optional:n},t?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:r}}function l(e){let{parameterizedRoute:t,groups:r}=u(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:r}}function s(e){let{interceptionMarker:t,getSafeRouteKey:r,segment:n,routeKeys:a,keyPrefix:u}=e,{key:l,optional:s,repeat:c}=i(n),f=l.replace(/\W/g,"");u&&(f=""+u+f);let d=!1;(0===f.length||f.length>30)&&(d=!0),isNaN(parseInt(f.slice(0,1)))||(d=!0),d&&(f=r()),u?a[f]=""+u+l:a[f]=l;let p=t?(0,o.escapeStringRegexp)(t):"";return c?s?"(?:/"+p+"(?<"+f+">.+?))?":"/"+p+"(?<"+f+">.+?)":"/"+p+"(?<"+f+">[^/]+?)"}function c(e,t){let r;let i=(0,a.removeTrailingSlash)(e).slice(1).split("/"),u=(r=0,()=>{let e="",t=++r;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),l={};return{namedParameterizedRoute:i.map(e=>{let r=n.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);if(r&&a){let[r]=e.split(a[0]);return s({getSafeRouteKey:u,interceptionMarker:r,segment:a[1],routeKeys:l,keyPrefix:t?"nxtI":void 0})}return a?s({getSafeRouteKey:u,segment:a[1],routeKeys:l,keyPrefix:t?"nxtP":void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:l}}function f(e,t){let r=c(e,t);return{...l(e),namedRegex:"^"+r.namedParameterizedRoute+"(?:/)?$",routeKeys:r.routeKeys}}function d(e,t){let{parameterizedRoute:r}=u(e),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:o}=c(e,!1);return{namedRegex:"^"+o+(n?"(?:(/.*)?)":"")+"$"}}},271:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return n}});class r{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let r=o.slice(1,-1),i=!1;if(r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1),i=!0),r.startsWith("...")&&(r=r.substring(3),n=!0),r.startsWith("[")||r.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+r+"').");if(r.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+r+"').");function a(e,r){if(null!==e&&e!==r)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+r+"').");t.forEach(e=>{if(e===r)throw Error('You cannot have the same slug name "'+r+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+r+'" differ only by non-word symbols within a single dynamic path')}),t.push(r)}if(n){if(i){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');a(this.optionalRestSlugName,r),this.optionalRestSlugName=r,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');a(this.restSlugName,r),this.restSlugName=r,o="[...]"}}else{if(i)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');a(this.slugName,r),this.slugName=r,o="[]"}}this.children.has(o)||this.children.set(o,new r),this.children.get(o)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()}},8040:function(e,t){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return n},setConfig:function(){return o}});let n=()=>r;function o(e){r=e}},4412:function(e,t){"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DEFAULT_SEGMENT_KEY:function(){return o},PAGE_SEGMENT_KEY:function(){return n},isGroupSegment:function(){return r}});let n="__PAGE__",o="__DEFAULT__"},2353:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(5271),o=n.useLayoutEffect,a=n.useEffect;function i(e){let{headManager:t,reduceComponentsToState:r}=e;function i(){if(t&&t.mountedInstances){let o=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(o,e))}}return o(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=i),()=>{t&&(t._pendingUpdate=i)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},961:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return y},MissingStaticPage:function(){return g},NormalizeError:function(){return m},PageNotFoundError:function(){return _},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return i},getURL:function(){return u},isAbsoluteUrl:function(){return a},isResSent:function(){return s},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return b}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),a=0;ao.test(e);function i(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function u(){let{href:e}=window.location,t=i();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&s(r))return n;if(!n)throw Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.');return n}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class m extends Error{}class _ extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class g extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},5081:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},9326:function(e){var t,r,n,o,a,i,u,l,s,c,f,d,p,h,m,_,g,y,b,P,v,E,S,O,j,w,R,T,M,x,I,C,A,L,N,D,k,F,U,B,H,W,q,G,z,V;(t={}).d=function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},void 0!==t&&(t.ab="//"),r={},t.r(r),t.d(r,{getCLS:function(){return S},getFCP:function(){return P},getFID:function(){return x},getINP:function(){return W},getLCP:function(){return G},getTTFB:function(){return V},onCLS:function(){return S},onFCP:function(){return P},onFID:function(){return x},onINP:function(){return W},onLCP:function(){return G},onTTFB:function(){return V}}),l=-1,s=function(e){addEventListener("pageshow",function(t){t.persisted&&(l=t.timeStamp,e(t))},!0)},c=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},f=function(){var e=c();return e&&e.activationStart||0},d=function(e,t){var r=c(),n="navigate";return l>=0?n="back-forward-cache":r&&(n=document.prerendering||f()>0?"prerender":r.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},p=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(e){t(e.getEntries())});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(e){}},h=function(e,t){var r=function r(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||(e(n),t&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},m=function(e,t,r,n){var o,a;return function(i){var u;t.value>=0&&(i||n)&&((a=t.value-(o||0))||void 0===o)&&(o=t.value,t.delta=a,t.rating=(u=t.value)>r[1]?"poor":u>r[0]?"needs-improvement":"good",e(t))}},_=-1,g=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},y=function(){h(function(e){_=e.timeStamp},!0)},b=function(){return _<0&&(_=g(),y(),s(function(){setTimeout(function(){_=g(),y()},0)})),{get firstHiddenTime(){return _}}},P=function(e,t){t=t||{};var r,n=[1800,3e3],o=b(),a=d("FCP"),i=function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(l&&l.disconnect(),e.startTime-1&&e(t)},a=d("CLS",0),i=0,u=[],l=function(e){e.forEach(function(e){if(!e.hadRecentInput){var t=u[0],r=u[u.length-1];i&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,u.push(e)):(i=e.value,u=[e]),i>a.value&&(a.value=i,a.entries=u,n())}})},c=p("layout-shift",l);c&&(n=m(o,a,r,t.reportAllChanges),h(function(){l(c.takeRecords()),n(!0)}),s(function(){i=0,E=-1,n=m(o,a=d("CLS",0),r,t.reportAllChanges)}))},O={passive:!0,capture:!0},j=new Date,w=function(e,t){n||(n=t,o=e,a=new Date,M(removeEventListener),R())},R=function(){if(o>=0&&o1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?(t=function(){w(o,e),n()},r=function(){n()},n=function(){removeEventListener("pointerup",t,O),removeEventListener("pointercancel",r,O)},addEventListener("pointerup",t,O),addEventListener("pointercancel",r,O)):w(o,e)}},M=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,T,O)})},x=function(e,t){t=t||{};var r,a=[100,300],u=b(),l=d("FID"),c=function(e){e.startTimet.latency){if(r)r.entries.push(e),r.latency=Math.max(r.latency,e.duration);else{var n={id:e.interactionId,latency:e.duration,entries:[e]};B[n.id]=n,U.push(n)}U.sort(function(e,t){return t.latency-e.latency}),U.splice(10).forEach(function(e){delete B[e.id]})}},W=function(e,t){t=t||{};var r=[200,500];D();var n,o=d("INP"),a=function(e){e.forEach(function(e){e.interactionId&&H(e),"first-input"!==e.entryType||U.some(function(t){return t.entries.some(function(t){return e.duration===t.duration&&e.startTime===t.startTime})})||H(e)});var t,r=(t=Math.min(U.length-1,Math.floor(F()/50)),U[t]);r&&r.latency!==o.value&&(o.value=r.latency,o.entries=r.entries,n())},i=p("event",a,{durationThreshold:t.durationThreshold||40});n=m(e,o,r,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),h(function(){a(i.takeRecords()),o.value<0&&F()>0&&(o.value=0,o.entries=[]),n(!0)}),s(function(){U=[],k=N(),n=m(e,o=d("INP"),r,t.reportAllChanges)}))},q={},G=function(e,t){t=t||{};var r,n=[2500,4e3],o=b(),a=d("LCP"),i=function(e){var t=e[e.length-1];if(t){var n=t.startTime-f();nperformance.now())return;n.entries=[a],o(!0),s(function(){(o=m(e,n=d("TTFB",0),r,t.reportAllChanges))(!0)})}})},e.exports=r},6978:function(e,t){"use strict";function r(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return r}})},1964:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getProperError:function(){return a}});let n=r(7081);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function a(e){return o(e)?e:Error((0,n.isPlainObject)(e)?JSON.stringify(e):e+"")}},8978:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return i},isInterceptionRouteAppPath:function(){return a}});let n=r(1908),o=["(..)(..)","(.)","(..)","(...)"];function a(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function i(e){let t,r,a;for(let n of e.split("/"))if(r=o.find(e=>n.startsWith(e))){[t,a]=e.split(r,2);break}if(!t||!r||!a)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":a="/"===t?`/${a}`:t+"/"+a;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);a=t.split("/").slice(0,-1).concat(a).join("/");break;case"(...)":a="/"+a;break;case"(..)(..)":let i=t.split("/");if(i.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);a=i.slice(0,-2).concat(a).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:a}}},9240:function(){},2430:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:function(){return n},_interop_require_default:function(){return n}})},1778:function(e,t,r){"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}r.r(t),r.d(t,{_:function(){return o},_interop_require_wildcard:function(){return o}})}},function(e){e.O(0,[774],function(){return e(e.s=1695)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dist/_next/static/chunks/main-app-84645346a32b8f2d.js b/dist/_next/static/chunks/main-app-84645346a32b8f2d.js deleted file mode 100644 index 47c0a567..00000000 --- a/dist/_next/static/chunks/main-app-84645346a32b8f2d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[744],{7160:function(e,t){"use strict";function n(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return n}})},5147:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)})},1692:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return l}});let r=n(6561),o=n(7155);function l(e,t){return(0,o.normalizePathTrailingSlash)((0,r.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9879:function(e,t){"use strict";function n(e){var t,n;t=self.__next_s,n=()=>{e()},t&&t.length?t.reduce((e,t)=>{let[n,r]=t;return e.then(()=>new Promise((e,t)=>{let o=document.createElement("script");if(r)for(let e in r)"children"!==e&&o.setAttribute(e,r[e]);n?(o.src=n,o.onload=()=>e(),o.onerror=t):r&&(o.innerHTML=r.children,setTimeout(e)),document.head.appendChild(o)}))},Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{n()}):n()}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appBootstrap",{enumerable:!0,get:function(){return n}}),window.next={version:"14.2.4",appDir:!0},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4777:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"callServer",{enumerable:!0,get:function(){return o}});let r=n(1376);async function o(e,t){let n=(0,r.getServerActionDispatcher)();if(!n)throw Error("Invariant: missing action dispatcher.");return new Promise((r,o)=>{n({actionId:e,actionArgs:t,resolve:r,reject:o})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2320:function(e,t,n){"use strict";let r,o;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return C}});let l=n(7990),u=n(5681),a=n(9730);n(5147);let i=l._(n(750)),c=u._(n(9937)),s=n(4159),f=n(6425),d=l._(n(6059)),p=n(4777),h=n(6107),y=n(3053);n(2324);let _=window.console.error;window.console.error=function(){for(var e=arguments.length,t=Array(e),n=0;n{if((0,h.isNextRouterError)(e.error)){e.preventDefault();return}});let v=document,b=new TextEncoder,g=!1,m=!1,R=null;function P(e){if(0===e[0])r=[];else if(1===e[0]){if(!r)throw Error("Unexpected server data: missing bootstrap script.");o?o.enqueue(b.encode(e[1])):r.push(e[1])}else 2===e[0]&&(R=e[1])}let O=function(){o&&!m&&(o.close(),m=!0,r=void 0),g=!0};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",O,!1):O();let j=self.__next_f=self.__next_f||[];j.forEach(P),j.push=P;let E=new ReadableStream({start(e){r&&(r.forEach(t=>{e.enqueue(b.encode(t))}),g&&!m&&(e.close(),m=!0,r=void 0)),o=e}}),S=(0,s.createFromReadableStream)(E,{callServer:p.callServer});function w(){return(0,c.use)(S)}let T=c.default.StrictMode;function M(e){let{children:t}=e;return t}function C(){let e=(0,y.createMutableActionQueue)(),t=(0,a.jsx)(T,{children:(0,a.jsx)(f.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,a.jsx)(y.ActionQueueContext.Provider,{value:e,children:(0,a.jsx)(M,{children:(0,a.jsx)(w,{})})})})}),n=window.__next_root_layout_missing_tags,r=!!(null==n?void 0:n.length),o={onRecoverableError:d.default};"__next_error__"===document.documentElement.id||r?i.default.createRoot(v,o).render(t):c.default.startTransition(()=>i.default.hydrateRoot(v,t,{...o,formState:R}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8547:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(8503),(0,n(9879).appBootstrap)(()=>{let{hydrate:e}=n(2320);n(1376),n(906),e()}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8503:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(7160);{let e=n.u;n.u=function(){for(var t=arguments.length,n=Array(t),r=0;r(u(function(){var e;let t=document.getElementsByName(l)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(l);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(l)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[a,i]=(0,r.useState)(""),c=(0,r.useRef)();return(0,r.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==c.current&&c.current!==e&&i(e),c.current=e},[t]),n?(0,o.createPortal)(a,n):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2821:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION:function(){return r},FLIGHT_PARAMETERS:function(){return i},NEXT_DID_POSTPONE_HEADER:function(){return s},NEXT_ROUTER_PREFETCH_HEADER:function(){return l},NEXT_ROUTER_STATE_TREE:function(){return o},NEXT_RSC_UNION_QUERY:function(){return c},NEXT_URL:function(){return u},RSC_CONTENT_TYPE_HEADER:function(){return a},RSC_HEADER:function(){return n}});let n="RSC",r="Next-Action",o="Next-Router-State-Tree",l="Next-Router-Prefetch",u="Next-Url",a="text/x-component",i=[[n],[o],[l]],c="_rsc",s="x-nextjs-postponed";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1376:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createEmptyCacheNode:function(){return x},default:function(){return D},getServerActionDispatcher:function(){return S},urlToUrlWithoutFlightMarker:function(){return T}});let r=n(5681),o=n(9730),l=r._(n(9937)),u=n(1878),a=n(8780),i=n(1064),c=n(3103),s=n(9898),f=n(5929),d=n(3729),p=n(7016),h=n(1692),y=n(4844),_=n(5215),v=n(2498),b=n(2086),g=n(2821),m=n(3431),R=n(3363),P=n(8848),O="undefined"==typeof window,j=O?null:new Map,E=null;function S(){return E}let w={};function T(e){let t=new URL(e,location.origin);if(t.searchParams.delete(g.NEXT_RSC_UNION_QUERY),t.pathname.endsWith(".txt")){let{pathname:e}=t,n=e.endsWith("/index.txt")?10:4;t.pathname=e.slice(0,-n)}return t}function M(e){return e.origin!==window.location.origin}function C(e){let{appRouterState:t,sync:n}=e;return(0,l.useInsertionEffect)(()=>{let{tree:e,pushRef:r,canonicalUrl:o}=t,l={...r.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};r.pendingPush&&(0,i.createHrefFromUrl)(new URL(window.location.href))!==o?(r.pendingPush=!1,window.history.pushState(l,"",o)):window.history.replaceState(l,"",o),n(t)},[t,n]),null}function x(){return{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null}}function A(e){null==e&&(e={});let t=window.history.state,n=null==t?void 0:t.__NA;n&&(e.__NA=n);let r=null==t?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;return r&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=r),e}function N(e){let{headCacheNode:t}=e,n=null!==t?t.head:null,r=null!==t?t.prefetchHead:null,o=null!==r?r:n;return(0,l.useDeferredValue)(n,o)}function I(e){let t,{buildId:n,initialHead:r,initialTree:i,initialCanonicalUrl:f,initialSeedData:g,couldBeIntercepted:S,assetPrefix:T,missingSlots:x}=e,I=(0,l.useMemo)(()=>(0,d.createInitialRouterState)({buildId:n,initialSeedData:g,initialCanonicalUrl:f,initialTree:i,initialParallelRoutes:j,location:O?null:window.location,initialHead:r,couldBeIntercepted:S}),[n,g,f,i,r,S]),[D,U,k]=(0,s.useReducerWithReduxDevtools)(I);(0,l.useEffect)(()=>{j=null},[]);let{canonicalUrl:F}=(0,s.useUnwrapState)(D),{searchParams:L,pathname:H}=(0,l.useMemo)(()=>{let e=new URL(F,"undefined"==typeof window?"http://n":window.location.href);return{searchParams:e.searchParams,pathname:(0,R.hasBasePath)(e.pathname)?(0,m.removeBasePath)(e.pathname):e.pathname}},[F]),z=(0,l.useCallback)(e=>{let{previousTree:t,serverResponse:n}=e;(0,l.startTransition)(()=>{U({type:a.ACTION_SERVER_PATCH,previousTree:t,serverResponse:n})})},[U]),G=(0,l.useCallback)((e,t,n)=>{let r=new URL((0,h.addBasePath)(e),location.href);return U({type:a.ACTION_NAVIGATE,url:r,isExternalUrl:M(r),locationSearch:location.search,shouldScroll:null==n||n,navigateType:t})},[U]);E=(0,l.useCallback)(e=>{(0,l.startTransition)(()=>{U({...e,type:a.ACTION_SERVER_ACTION})})},[U]);let $=(0,l.useMemo)(()=>({back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{let n;if(!(0,p.isBot)(window.navigator.userAgent)){try{n=new URL((0,h.addBasePath)(e),window.location.href)}catch(t){throw Error("Cannot prefetch '"+e+"' because it cannot be converted to a URL.")}M(n)||(0,l.startTransition)(()=>{var e;U({type:a.ACTION_PREFETCH,url:n,kind:null!=(e=null==t?void 0:t.kind)?e:a.PrefetchKind.FULL})})}},replace:(e,t)=>{void 0===t&&(t={}),(0,l.startTransition)(()=>{var n;G(e,"replace",null==(n=t.scroll)||n)})},push:(e,t)=>{void 0===t&&(t={}),(0,l.startTransition)(()=>{var n;G(e,"push",null==(n=t.scroll)||n)})},refresh:()=>{(0,l.startTransition)(()=>{U({type:a.ACTION_REFRESH,origin:window.location.origin})})},fastRefresh:()=>{throw Error("fastRefresh can only be used in development mode. Please use refresh instead.")}}),[U,G]);(0,l.useEffect)(()=>{window.next&&(window.next.router=$)},[$]),(0,l.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&(w.pendingMpaPath=void 0,U({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[U]);let{pushRef:B}=(0,s.useUnwrapState)(D);if(B.mpaNavigation){if(w.pendingMpaPath!==F){let e=window.location;B.pendingPush?e.assign(F):e.replace(F),w.pendingMpaPath=F}(0,l.use)(b.unresolvedThenable)}(0,l.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),n=e=>{var t;let n=window.location.href,r=null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,l.startTransition)(()=>{U({type:a.ACTION_RESTORE,url:new URL(null!=e?e:n,n),tree:r})})};window.history.pushState=function(t,r,o){return(null==t?void 0:t.__NA)||(null==t?void 0:t._N)||(t=A(t),o&&n(o)),e(t,r,o)},window.history.replaceState=function(e,r,o){return(null==e?void 0:e.__NA)||(null==e?void 0:e._N)||(e=A(e),o&&n(o)),t(e,r,o)};let r=e=>{let{state:t}=e;if(t){if(!t.__NA){window.location.reload();return}(0,l.startTransition)(()=>{U({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:t.__PRIVATE_NEXTJS_INTERNALS_TREE})})}};return window.addEventListener("popstate",r),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",r)}},[U]);let{cache:W,tree:K,nextUrl:V,focusAndScrollRef:Y}=(0,s.useUnwrapState)(D),X=(0,l.useMemo)(()=>(0,v.findHeadInCache)(W,K[1]),[W,K]),q=(0,l.useMemo)(()=>(function e(t,n){for(let r of(void 0===n&&(n={}),Object.values(t[1]))){let t=r[0],o=Array.isArray(t),l=o?t[1]:t;!l||l.startsWith(P.PAGE_SEGMENT_KEY)||(o&&("c"===t[2]||"oc"===t[2])?n[t[0]]=t[1].split("/"):o&&(n[t[0]]=t[1]),n=e(r,n))}return n})(K),[K]);if(null!==X){let[e,n]=X;t=(0,o.jsx)(N,{headCacheNode:e},n)}else t=null;let J=(0,o.jsxs)(_.RedirectBoundary,{children:[t,W.rsc,(0,o.jsx)(y.AppRouterAnnouncer,{tree:K})]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(C,{appRouterState:(0,s.useUnwrapState)(D),sync:k}),(0,o.jsx)(c.PathParamsContext.Provider,{value:q,children:(0,o.jsx)(c.PathnameContext.Provider,{value:H,children:(0,o.jsx)(c.SearchParamsContext.Provider,{value:L,children:(0,o.jsx)(u.GlobalLayoutRouterContext.Provider,{value:{buildId:n,changeByServerResponse:z,tree:K,focusAndScrollRef:Y,nextUrl:V},children:(0,o.jsx)(u.AppRouterContext.Provider,{value:$,children:(0,o.jsx)(u.LayoutRouterContext.Provider,{value:{childNodes:W.parallelRoutes,tree:K,url:F,loading:W.loading},children:J})})})})})})]})}function D(e){let{globalErrorComponent:t,...n}=e;return(0,o.jsx)(f.ErrorBoundary,{errorComponent:t,children:(0,o.jsx)(I,{...n})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1182:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bailoutToClientRendering",{enumerable:!0,get:function(){return l}});let r=n(2740),o=n(1642);function l(e){let t=o.staticGenerationAsyncStorage.getStore();if((null==t||!t.forceStatic)&&(null==t?void 0:t.isStaticGeneration))throw new r.BailoutToCSRError(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5929:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ErrorBoundary:function(){return h},ErrorBoundaryHandler:function(){return f},GlobalError:function(){return d},default:function(){return p}});let r=n(7990),o=n(9730),l=r._(n(9937)),u=n(2092),a=n(6107),i=n(1642),c={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}};function s(e){let{error:t}=e,n=i.staticGenerationAsyncStorage.getStore();if((null==n?void 0:n.isRevalidate)||(null==n?void 0:n.isStaticGeneration))throw console.error(t),t;return null}class f extends l.default.Component{static getDerivedStateFromError(e){if((0,a.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,(0,o.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset})]}):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function d(e){let{error:t}=e,n=null==t?void 0:t.digest;return(0,o.jsxs)("html",{id:"__next_error__",children:[(0,o.jsx)("head",{}),(0,o.jsxs)("body",{children:[(0,o.jsx)(s,{error:t}),(0,o.jsx)("div",{style:c.error,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{style:c.text,children:"Application error: a "+(n?"server":"client")+"-side exception has occurred (see the "+(n?"server logs":"browser console")+" for more information)."}),n?(0,o.jsx)("p",{style:c.text,children:"Digest: "+n}):null]})})]})]})}let p=d;function h(e){let{errorComponent:t,errorStyles:n,errorScripts:r,children:l}=e,a=(0,u.usePathname)();return t?(0,o.jsx)(f,{pathname:a,errorComponent:t,errorStyles:n,errorScripts:r,children:l}):(0,o.jsx)(o.Fragment,{children:l})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6107:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return l}});let r=n(944),o=n(3258);function l(e){return e&&e.digest&&((0,o.isRedirectError)(e)||(0,r.isNotFoundError)(e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},906:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return E}});let r=n(7990),o=n(5681),l=n(9730),u=o._(n(9937)),a=r._(n(6228)),i=n(1878),c=n(8437),s=n(2086),f=n(5929),d=n(6652),p=n(5421),h=n(5215),y=n(4554),_=n(4517),v=n(2665),b=n(5654),g=["bottom","height","left","right","top","width","x","y"];function m(e,t){let n=e.getBoundingClientRect();return n.top>=0&&n.top<=t}class R extends u.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){var n;if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,n)=>(0,d.matchSegment)(t,e[n]))))return;let r=null,o=e.hashFragment;if(o&&(r="top"===o?document.body:null!=(n=document.getElementById(o))?n:document.getElementsByName(o)[0]),r||(r="undefined"==typeof window?null:a.default.findDOMNode(this)),!(r instanceof Element))return;for(;!(r instanceof HTMLElement)||function(e){if(["sticky","fixed"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return g.every(e=>0===t[e])}(r);){if(null===r.nextElementSibling)return;r=r.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,p.handleSmoothScroll)(()=>{if(o){r.scrollIntoView();return}let e=document.documentElement,t=e.clientHeight;!m(r,t)&&(e.scrollTop=0,m(r,t)||r.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,r.focus()}}}}function P(e){let{segmentPath:t,children:n}=e,r=(0,u.useContext)(i.GlobalLayoutRouterContext);if(!r)throw Error("invariant global layout router not mounted");return(0,l.jsx)(R,{segmentPath:t,focusAndScrollRef:r.focusAndScrollRef,children:n})}function O(e){let{parallelRouterKey:t,url:n,childNodes:r,segmentPath:o,tree:a,cacheKey:f}=e,p=(0,u.useContext)(i.GlobalLayoutRouterContext);if(!p)throw Error("invariant global layout router not mounted");let{buildId:h,changeByServerResponse:y,tree:_}=p,v=r.get(f);if(void 0===v){let e={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null};v=e,r.set(f,e)}let g=null!==v.prefetchRsc?v.prefetchRsc:v.rsc,m=(0,u.useDeferredValue)(v.rsc,g),R="object"==typeof m&&null!==m&&"function"==typeof m.then?(0,u.use)(m):m;if(!R){let e=v.lazyData;if(null===e){let t=function e(t,n){if(t){let[r,o]=t,l=2===t.length;if((0,d.matchSegment)(n[0],r)&&n[1].hasOwnProperty(o)){if(l){let t=e(void 0,n[1][o]);return[n[0],{...n[1],[o]:[t[0],t[1],t[2],"refetch"]}]}return[n[0],{...n[1],[o]:e(t.slice(2),n[1][o])}]}}return n}(["",...o],_),r=(0,b.hasInterceptionRouteInCurrentTree)(_);v.lazyData=e=(0,c.fetchServerResponse)(new URL(n,location.origin),t,r?p.nextUrl:null,h),v.lazyDataResolved=!1}let t=(0,u.use)(e);v.lazyDataResolved||(setTimeout(()=>{(0,u.startTransition)(()=>{y({previousTree:_,serverResponse:t})})}),v.lazyDataResolved=!0),(0,u.use)(s.unresolvedThenable)}return(0,l.jsx)(i.LayoutRouterContext.Provider,{value:{tree:a[1][t],childNodes:v.parallelRoutes,url:n,loading:v.loading},children:R})}function j(e){let{children:t,hasLoading:n,loading:r,loadingStyles:o,loadingScripts:a}=e;return n?(0,l.jsx)(u.Suspense,{fallback:(0,l.jsxs)(l.Fragment,{children:[o,a,r]}),children:t}):(0,l.jsx)(l.Fragment,{children:t})}function E(e){let{parallelRouterKey:t,segmentPath:n,error:r,errorStyles:o,errorScripts:a,templateStyles:c,templateScripts:s,template:d,notFound:p,notFoundStyles:b,styles:g}=e,m=(0,u.useContext)(i.LayoutRouterContext);if(!m)throw Error("invariant expected layout router to be mounted");let{childNodes:R,tree:E,url:S,loading:w}=m,T=R.get(t);T||(T=new Map,R.set(t,T));let M=E[1][t][0],C=(0,_.getSegmentValue)(M),x=[M];return(0,l.jsxs)(l.Fragment,{children:[g,x.map(e=>{let u=(0,_.getSegmentValue)(e),g=(0,v.createRouterCacheKey)(e);return(0,l.jsxs)(i.TemplateContext.Provider,{value:(0,l.jsx)(P,{segmentPath:n,children:(0,l.jsx)(f.ErrorBoundary,{errorComponent:r,errorStyles:o,errorScripts:a,children:(0,l.jsx)(j,{hasLoading:!!w,loading:null==w?void 0:w[0],loadingStyles:null==w?void 0:w[1],loadingScripts:null==w?void 0:w[2],children:(0,l.jsx)(y.NotFoundBoundary,{notFound:p,notFoundStyles:b,children:(0,l.jsx)(h.RedirectBoundary,{children:(0,l.jsx)(O,{parallelRouterKey:t,url:S,tree:E,childNodes:T,segmentPath:n,cacheKey:g,isActive:C===u})})})})})}),children:[c,s,d]},(0,v.createRouterCacheKey)(e,!0))})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6652:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{canSegmentBeOverridden:function(){return l},matchSegment:function(){return o}});let r=n(9104),o=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1],l=(e,t)=>{var n;return!Array.isArray(e)&&!!Array.isArray(t)&&(null==(n=(0,r.getSegmentParam)(e))?void 0:n.param)===t[0]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2092:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return i.ReadonlyURLSearchParams},RedirectType:function(){return i.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},notFound:function(){return i.notFound},permanentRedirect:function(){return i.permanentRedirect},redirect:function(){return i.redirect},useParams:function(){return p},usePathname:function(){return f},useRouter:function(){return d},useSearchParams:function(){return s},useSelectedLayoutSegment:function(){return y},useSelectedLayoutSegments:function(){return h},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});let r=n(9937),o=n(1878),l=n(3103),u=n(4517),a=n(8848),i=n(9078),c=n(8569);function s(){let e=(0,r.useContext)(l.SearchParamsContext),t=(0,r.useMemo)(()=>e?new i.ReadonlyURLSearchParams(e):null,[e]);if("undefined"==typeof window){let{bailoutToClientRendering:e}=n(1182);e("useSearchParams()")}return t}function f(){return(0,r.useContext)(l.PathnameContext)}function d(){let e=(0,r.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function p(){return(0,r.useContext)(l.PathParamsContext)}function h(e){void 0===e&&(e="children");let t=(0,r.useContext)(o.LayoutRouterContext);return t?function e(t,n,r,o){let l;if(void 0===r&&(r=!0),void 0===o&&(o=[]),r)l=t[1][n];else{var i;let e=t[1];l=null!=(i=e.children)?i:Object.values(e)[0]}if(!l)return o;let c=l[0],s=(0,u.getSegmentValue)(c);return!s||s.startsWith(a.PAGE_SEGMENT_KEY)?o:(o.push(s),e(l,n,!1,o))}(t.tree,e):null}function y(e){void 0===e&&(e="children");let t=h(e);if(!t||0===t.length)return null;let n="children"===e?t[0]:t[t.length-1];return n===a.DEFAULT_SEGMENT_KEY?null:n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9078:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return u},RedirectType:function(){return r.RedirectType},notFound:function(){return o.notFound},permanentRedirect:function(){return r.permanentRedirect},redirect:function(){return r.redirect}});let r=n(3258),o=n(944);class l extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class u extends URLSearchParams{append(){throw new l}delete(){throw new l}set(){throw new l}sort(){throw new l}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4554:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NotFoundBoundary",{enumerable:!0,get:function(){return s}});let r=n(5681),o=n(9730),l=r._(n(9937)),u=n(2092),a=n(944);n(1763);let i=n(1878);class c extends l.default.Component{componentDidCatch(){}static getDerivedStateFromError(e){if((0,a.isNotFoundError)(e))return{notFoundTriggered:!0};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.notFoundTriggered?{notFoundTriggered:!1,previousPathname:e.pathname}:{notFoundTriggered:t.notFoundTriggered,previousPathname:e.pathname}}render(){return this.state.notFoundTriggered?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("meta",{name:"robots",content:"noindex"}),!1,this.props.notFoundStyles,this.props.notFound]}):this.props.children}constructor(e){super(e),this.state={notFoundTriggered:!!e.asNotFound,previousPathname:e.pathname}}}function s(e){let{notFound:t,notFoundStyles:n,asNotFound:r,children:a}=e,s=(0,u.usePathname)(),f=(0,l.useContext)(i.MissingSlotContext);return t?(0,o.jsx)(c,{pathname:s,notFound:t,notFoundStyles:n,asNotFound:r,missingSlots:f,children:a}):(0,o.jsx)(o.Fragment,{children:a})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},944:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{isNotFoundError:function(){return o},notFound:function(){return r}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1260:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PromiseQueue",{enumerable:!0,get:function(){return c}});let r=n(6253),o=n(332);var l=o._("_maxConcurrency"),u=o._("_runningCount"),a=o._("_queue"),i=o._("_processNext");class c{enqueue(e){let t,n;let o=new Promise((e,r)=>{t=e,n=r}),l=async()=>{try{r._(this,u)[u]++;let n=await e();t(n)}catch(e){n(e)}finally{r._(this,u)[u]--,r._(this,i)[i]()}};return r._(this,a)[a].push({promiseFn:o,task:l}),r._(this,i)[i](),o}bump(e){let t=r._(this,a)[a].findIndex(t=>t.promiseFn===e);if(t>-1){let e=r._(this,a)[a].splice(t,1)[0];r._(this,a)[a].unshift(e),r._(this,i)[i](!0)}}constructor(e=5){Object.defineProperty(this,i,{value:s}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),r._(this,l)[l]=e,r._(this,u)[u]=0,r._(this,a)[a]=[]}}function s(e){if(void 0===e&&(e=!1),(r._(this,u)[u]0){var t;null==(t=r._(this,a)[a].shift())||t.task()}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5215:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectBoundary:function(){return s},RedirectErrorBoundary:function(){return c}});let r=n(5681),o=n(9730),l=r._(n(9937)),u=n(2092),a=n(3258);function i(e){let{redirect:t,reset:n,redirectType:r}=e,o=(0,u.useRouter)();return(0,l.useEffect)(()=>{l.default.startTransition(()=>{r===a.RedirectType.push?o.push(t,{}):o.replace(t,{}),n()})},[t,r,n,o]),null}class c extends l.default.Component{static getDerivedStateFromError(e){if((0,a.isRedirectError)(e))return{redirect:(0,a.getURLFromRedirectError)(e),redirectType:(0,a.getRedirectTypeFromError)(e)};throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,o.jsx)(i,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function s(e){let{children:t}=e,n=(0,u.useRouter)();return(0,o.jsx)(c,{router:n,children:t})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7069:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return n}}),(r=n||(n={}))[r.SeeOther=303]="SeeOther",r[r.TemporaryRedirect=307]="TemporaryRedirect",r[r.PermanentRedirect=308]="PermanentRedirect",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3258:function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return c},getRedirectStatusCodeFromError:function(){return y},getRedirectTypeFromError:function(){return h},getURLFromRedirectError:function(){return p},isRedirectError:function(){return d},permanentRedirect:function(){return f},redirect:function(){return s}});let l=n(2002),u=n(2783),a=n(7069),i="NEXT_REDIRECT";function c(e,t,n){void 0===n&&(n=a.RedirectStatusCode.TemporaryRedirect);let r=Error(i);r.digest=i+";"+t+";"+e+";"+n+";";let o=l.requestAsyncStorage.getStore();return o&&(r.mutableCookies=o.mutableCookies),r}function s(e,t){void 0===t&&(t="replace");let n=u.actionAsyncStorage.getStore();throw c(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.TemporaryRedirect)}function f(e,t){void 0===t&&(t="replace");let n=u.actionAsyncStorage.getStore();throw c(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.PermanentRedirect)}function d(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,n,r,o]=e.digest.split(";",4),l=Number(o);return t===i&&("replace"===n||"push"===n)&&"string"==typeof r&&!isNaN(l)&&l in a.RedirectStatusCode}function p(e){return d(e)?e.digest.split(";",3)[2]:null}function h(e){if(!d(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function y(e){if(!d(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(o=r||(r={})).push="push",o.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2002:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getExpectedRequestStore:function(){return o},requestAsyncStorage:function(){return r.requestAsyncStorage}});let r=n(9439);function o(e){let t=r.requestAsyncStorage.getStore();if(t)return t;throw Error("`"+e+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3680:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return l}});let r=n(3427),o=n(4030);function l(e,t,n,l){let[u,a,i]=n.slice(-3);if(null===a)return!1;if(3===n.length){let n=a[2],o=a[3];t.loading=o,t.rsc=n,t.prefetchRsc=null,(0,r.fillLazyItemsTillLeafWithHead)(t,e,u,a,i,l)}else t.rsc=e.rsc,t.prefetchRsc=e.prefetchRsc,t.parallelRoutes=new Map(e.parallelRoutes),t.loading=e.loading,(0,o.fillCacheWithNewSubTreeData)(t,e,n,l);return!0}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1054:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyRouterStatePatchToTree",{enumerable:!0,get:function(){return function e(t,n,r,a){let i;let[c,s,f,d,p]=n;if(1===t.length){let e=u(n,r,t);return(0,l.addRefreshMarkerToActiveParallelSegments)(e,a),e}let[h,y]=t;if(!(0,o.matchSegment)(h,c))return null;if(2===t.length)i=u(s[y],r,t);else if(null===(i=e(t.slice(2),s[y],r,a)))return null;let _=[t[0],{...s,[y]:i},f,d];return p&&(_[4]=!0),(0,l.addRefreshMarkerToActiveParallelSegments)(_,a),_}}});let r=n(8848),o=n(6652),l=n(7250);function u(e,t,n){let[l,a]=e,[i,c]=t;if(i===r.DEFAULT_SEGMENT_KEY&&l!==r.DEFAULT_SEGMENT_KEY)return e;if((0,o.matchSegment)(l,i)){let t={};for(let e in a)void 0!==c[e]?t[e]=u(a[e],c[e],n):t[e]=a[e];for(let e in c)t[e]||(t[e]=c[e]);let r=[l,t];return e[2]&&(r[2]=e[2]),e[3]&&(r[3]=e[3]),e[4]&&(r[4]=e[4]),r}return t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3310:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clearCacheNodeDataForSegmentPath",{enumerable:!0,get:function(){return function e(t,n,o){let l=o.length<=2,[u,a]=o,i=(0,r.createRouterCacheKey)(a),c=n.parallelRoutes.get(u),s=t.parallelRoutes.get(u);s&&s!==c||(s=new Map(c),t.parallelRoutes.set(u,s));let f=null==c?void 0:c.get(i),d=s.get(i);if(l){d&&d.lazyData&&d!==f||s.set(i,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null});return}if(!d||!f){d||s.set(i,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null});return}return d===f&&(d={lazyData:d.lazyData,rsc:d.rsc,prefetchRsc:d.prefetchRsc,head:d.head,prefetchHead:d.prefetchHead,parallelRoutes:new Map(d.parallelRoutes),lazyDataResolved:d.lazyDataResolved,loading:d.loading},s.set(i,d)),e(d,f,o.slice(2))}}});let r=n(2665);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4567:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{computeChangedPath:function(){return s},extractPathFromFlightRouterState:function(){return c}});let r=n(5152),o=n(8848),l=n(6652),u=e=>"/"===e[0]?e.slice(1):e,a=e=>"string"==typeof e?"children"===e?"":e:e[1];function i(e){return e.reduce((e,t)=>""===(t=u(t))||(0,o.isGroupSegment)(t)?e:e+"/"+t,"")||"/"}function c(e){var t;let n=Array.isArray(e[0])?e[0][1]:e[0];if(n===o.DEFAULT_SEGMENT_KEY||r.INTERCEPTION_ROUTE_MARKERS.some(e=>n.startsWith(e)))return;if(n.startsWith(o.PAGE_SEGMENT_KEY))return"";let l=[a(n)],u=null!=(t=e[1])?t:{},s=u.children?c(u.children):void 0;if(void 0!==s)l.push(s);else for(let[e,t]of Object.entries(u)){if("children"===e)continue;let n=c(t);void 0!==n&&l.push(n)}return i(l)}function s(e,t){let n=function e(t,n){let[o,u]=t,[i,s]=n,f=a(o),d=a(i);if(r.INTERCEPTION_ROUTE_MARKERS.some(e=>f.startsWith(e)||d.startsWith(e)))return"";if(!(0,l.matchSegment)(o,i)){var p;return null!=(p=c(n))?p:""}for(let t in u)if(s[t]){let n=e(u[t],s[t]);if(null!==n)return a(i)+"/"+n}return null}(e,t);return null==n||"/"===n?n:i(n.split("/"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1064:function(e,t){"use strict";function n(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createHrefFromUrl",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3729:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInitialRouterState",{enumerable:!0,get:function(){return c}});let r=n(1064),o=n(3427),l=n(4567),u=n(7498),a=n(8780),i=n(7250);function c(e){var t;let{buildId:n,initialTree:c,initialSeedData:s,initialCanonicalUrl:f,initialParallelRoutes:d,location:p,initialHead:h,couldBeIntercepted:y}=e,_=!p,v={lazyData:null,rsc:s[2],prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:_?new Map:d,lazyDataResolved:!1,loading:s[3]},b=p?(0,r.createHrefFromUrl)(p):f;(0,i.addRefreshMarkerToActiveParallelSegments)(c,b);let g=new Map;(null===d||0===d.size)&&(0,o.fillLazyItemsTillLeafWithHead)(v,void 0,c,s,h);let m={buildId:n,tree:c,cache:v,prefetchCache:g,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:b,nextUrl:null!=(t=(0,l.extractPathFromFlightRouterState)(c)||(null==p?void 0:p.pathname))?t:null};if(p){let e=new URL(p.pathname,p.origin),t=[["",c,null,null]];(0,u.createPrefetchCacheEntryForInitialLoad)({url:e,kind:a.PrefetchKind.AUTO,data:[t,void 0,!1,y],tree:m.tree,prefetchCache:m.prefetchCache,nextUrl:m.nextUrl})}return m}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2665:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return o}});let r=n(8848);function o(e,t){return(void 0===t&&(t=!1),Array.isArray(e))?e[0]+"|"+e[1]+"|"+e[2]:t&&e.startsWith(r.PAGE_SEGMENT_KEY)?r.PAGE_SEGMENT_KEY:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8437:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fetchServerResponse",{enumerable:!0,get:function(){return s}});let r=n(2821),o=n(1376),l=n(4777),u=n(8780),a=n(957),{createFromFetch:i}=n(4159);function c(e){return[(0,o.urlToUrlWithoutFlightMarker)(e).toString(),void 0,!1,!1]}async function s(e,t,n,s,f){let d={[r.RSC_HEADER]:"1",[r.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(t))};f===u.PrefetchKind.AUTO&&(d[r.NEXT_ROUTER_PREFETCH_HEADER]="1"),n&&(d[r.NEXT_URL]=n);let p=(0,a.hexHash)([d[r.NEXT_ROUTER_PREFETCH_HEADER]||"0",d[r.NEXT_ROUTER_STATE_TREE],d[r.NEXT_URL]].join(","));try{var h;let t=new URL(e);t.pathname.endsWith("/")?t.pathname+="index.txt":t.pathname+=".txt",t.searchParams.set(r.NEXT_RSC_UNION_QUERY,p);let n=await fetch(t,{credentials:"same-origin",headers:d}),u=(0,o.urlToUrlWithoutFlightMarker)(n.url),a=n.redirected?u:void 0,f=n.headers.get("content-type")||"",y=!!n.headers.get(r.NEXT_DID_POSTPONE_HEADER),_=!!(null==(h=n.headers.get("vary"))?void 0:h.includes(r.NEXT_URL)),v=f===r.RSC_CONTENT_TYPE_HEADER;if(v||(v=f.startsWith("text/plain")),!v||!n.ok)return e.hash&&(u.hash=e.hash),c(u.toString());let[b,g]=await i(Promise.resolve(n),{callServer:l.callServer});if(s!==b)return c(n.url);return[g,a,y,_]}catch(t){return console.error("Failed to fetch RSC payload for "+e+". Falling back to browser navigation.",t),[e.toString(),void 0,!1,!1]}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4030:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithNewSubTreeData",{enumerable:!0,get:function(){return function e(t,n,u,a){let i=u.length<=5,[c,s]=u,f=(0,l.createRouterCacheKey)(s),d=n.parallelRoutes.get(c);if(!d)return;let p=t.parallelRoutes.get(c);p&&p!==d||(p=new Map(d),t.parallelRoutes.set(c,p));let h=d.get(f),y=p.get(f);if(i){if(!y||!y.lazyData||y===h){let e=u[3];y={lazyData:null,rsc:e[2],prefetchRsc:null,head:null,prefetchHead:null,loading:e[3],parallelRoutes:h?new Map(h.parallelRoutes):new Map,lazyDataResolved:!1},h&&(0,r.invalidateCacheByRouterState)(y,h,u[2]),(0,o.fillLazyItemsTillLeafWithHead)(y,h,u[2],e,u[4],a),p.set(f,y)}return}y&&h&&(y===h&&(y={lazyData:y.lazyData,rsc:y.rsc,prefetchRsc:y.prefetchRsc,head:y.head,prefetchHead:y.prefetchHead,parallelRoutes:new Map(y.parallelRoutes),lazyDataResolved:!1,loading:y.loading},p.set(f,y)),e(y,h,u.slice(2),a))}}});let r=n(616),o=n(3427),l=n(2665);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3427:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function e(t,n,l,u,a,i){if(0===Object.keys(l[1]).length){t.head=a;return}for(let c in l[1]){let s;let f=l[1][c],d=f[0],p=(0,r.createRouterCacheKey)(d),h=null!==u&&void 0!==u[1][c]?u[1][c]:null;if(n){let r=n.parallelRoutes.get(c);if(r){let n;let l=(null==i?void 0:i.kind)==="auto"&&i.status===o.PrefetchCacheEntryStatus.reusable,u=new Map(r),s=u.get(p);n=null!==h?{lazyData:null,rsc:h[2],prefetchRsc:null,head:null,prefetchHead:null,loading:h[3],parallelRoutes:new Map(null==s?void 0:s.parallelRoutes),lazyDataResolved:!1}:l&&s?{lazyData:s.lazyData,rsc:s.rsc,prefetchRsc:s.prefetchRsc,head:s.head,prefetchHead:s.prefetchHead,parallelRoutes:new Map(s.parallelRoutes),lazyDataResolved:s.lazyDataResolved,loading:s.loading}:{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map(null==s?void 0:s.parallelRoutes),lazyDataResolved:!1,loading:null},u.set(p,n),e(n,s,f,h||null,a,i),t.parallelRoutes.set(c,u);continue}}if(null!==h){let e=h[2],t=h[3];s={lazyData:null,rsc:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:t}}else s={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null};let y=t.parallelRoutes.get(c);y?y.set(p,s):t.parallelRoutes.set(c,new Map([[p,s]])),e(s,void 0,f,h,a,i)}}}});let r=n(2665),o=n(8780);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5423:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleMutable",{enumerable:!0,get:function(){return l}});let r=n(4567);function o(e){return void 0!==e}function l(e,t){var n,l,u;let a=null==(l=t.shouldScroll)||l,i=e.nextUrl;if(o(t.patchedTree)){let n=(0,r.computeChangedPath)(e.tree,t.patchedTree);n?i=n:i||(i=e.canonicalUrl)}return{buildId:e.buildId,canonicalUrl:o(t.canonicalUrl)?t.canonicalUrl===e.canonicalUrl?e.canonicalUrl:t.canonicalUrl:e.canonicalUrl,pushRef:{pendingPush:o(t.pendingPush)?t.pendingPush:e.pushRef.pendingPush,mpaNavigation:o(t.mpaNavigation)?t.mpaNavigation:e.pushRef.mpaNavigation,preserveCustomHistoryState:o(t.preserveCustomHistoryState)?t.preserveCustomHistoryState:e.pushRef.preserveCustomHistoryState},focusAndScrollRef:{apply:!!a&&(!!o(null==t?void 0:t.scrollableSegments)||e.focusAndScrollRef.apply),onlyHashChange:!!t.hashFragment&&e.canonicalUrl.split("#",1)[0]===(null==(n=t.canonicalUrl)?void 0:n.split("#",1)[0]),hashFragment:a?t.hashFragment&&""!==t.hashFragment?decodeURIComponent(t.hashFragment.slice(1)):e.focusAndScrollRef.hashFragment:null,segmentPaths:a?null!=(u=null==t?void 0:t.scrollableSegments)?u:e.focusAndScrollRef.segmentPaths:[]},cache:t.cache?t.cache:e.cache,prefetchCache:t.prefetchCache?t.prefetchCache:e.prefetchCache,tree:o(t.patchedTree)?t.patchedTree:e.tree,nextUrl:i}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3223:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSegmentMismatch",{enumerable:!0,get:function(){return o}});let r=n(3480);function o(e,t,n){return(0,r.handleExternalUrl)(e,{},e.canonicalUrl,!0)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3596:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheBelowFlightSegmentPath",{enumerable:!0,get:function(){return function e(t,n,o){let l=o.length<=2,[u,a]=o,i=(0,r.createRouterCacheKey)(a),c=n.parallelRoutes.get(u);if(!c)return;let s=t.parallelRoutes.get(u);if(s&&s!==c||(s=new Map(c),t.parallelRoutes.set(u,s)),l){s.delete(i);return}let f=c.get(i),d=s.get(i);d&&f&&(d===f&&(d={lazyData:d.lazyData,rsc:d.rsc,prefetchRsc:d.prefetchRsc,head:d.head,prefetchHead:d.prefetchHead,parallelRoutes:new Map(d.parallelRoutes),lazyDataResolved:d.lazyDataResolved},s.set(i,d)),e(d,f,o.slice(2)))}}});let r=n(2665);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},616:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheByRouterState",{enumerable:!0,get:function(){return o}});let r=n(2665);function o(e,t,n){for(let o in n[1]){let l=n[1][o][0],u=(0,r.createRouterCacheKey)(l),a=t.parallelRoutes.get(o);if(a){let t=new Map(a);t.delete(u),e.parallelRoutes.set(o,t)}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2579:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function e(t,n){let r=t[0],o=n[0];if(Array.isArray(r)&&Array.isArray(o)){if(r[0]!==o[0]||r[2]!==o[2])return!0}else if(r!==o)return!0;if(t[4])return!n[4];if(n[4])return!0;let l=Object.values(t[1])[0],u=Object.values(n[1])[0];return!l||!u||e(l,u)}}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6691:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{abortTask:function(){return c},listenForDynamicRequest:function(){return a},updateCacheNodeOnNavigation:function(){return function e(t,n,a,c,s){let f=n[1],d=a[1],p=c[1],h=t.parallelRoutes,y=new Map(h),_={},v=null;for(let t in d){let n;let a=d[t],c=f[t],b=h.get(t),g=p[t],m=a[0],R=(0,l.createRouterCacheKey)(m),P=void 0!==c?c[0]:void 0,O=void 0!==b?b.get(R):void 0;if(null!==(n=m===r.PAGE_SEGMENT_KEY?u(a,void 0!==g?g:null,s):m===r.DEFAULT_SEGMENT_KEY?void 0!==c?{route:c,node:null,children:null}:u(a,void 0!==g?g:null,s):void 0!==P&&(0,o.matchSegment)(m,P)&&void 0!==O&&void 0!==c?null!=g?e(O,c,a,g,s):function(e){let t=i(e,null,null);return{route:e,node:t,children:null}}(a):u(a,void 0!==g?g:null,s))){null===v&&(v=new Map),v.set(t,n);let e=n.node;if(null!==e){let n=new Map(b);n.set(R,e),y.set(t,n)}_[t]=n.route}else _[t]=a}if(null===v)return null;let b={lazyData:null,rsc:t.rsc,prefetchRsc:t.prefetchRsc,head:t.head,prefetchHead:t.prefetchHead,loading:t.loading,parallelRoutes:y,lazyDataResolved:!1};return{route:function(e,t){let n=[e[0],t];return 2 in e&&(n[2]=e[2]),3 in e&&(n[3]=e[3]),4 in e&&(n[4]=e[4]),n}(a,_),node:b,children:v}}},updateCacheNodeOnPopstateRestoration:function(){return function e(t,n){let r=n[1],o=t.parallelRoutes,u=new Map(o);for(let t in r){let n=r[t],a=n[0],i=(0,l.createRouterCacheKey)(a),c=o.get(t);if(void 0!==c){let r=c.get(i);if(void 0!==r){let o=e(r,n),l=new Map(c);l.set(i,o),u.set(t,l)}}}let a=t.rsc,i=d(a)&&"pending"===a.status;return{lazyData:null,rsc:a,head:t.head,prefetchHead:i?t.prefetchHead:null,prefetchRsc:i?t.prefetchRsc:null,loading:i?t.loading:null,parallelRoutes:u,lazyDataResolved:!1}}}});let r=n(8848),o=n(6652),l=n(2665);function u(e,t,n){let r=i(e,t,n);return{route:e,node:r,children:null}}function a(e,t){t.then(t=>{for(let n of t[0]){let t=n.slice(0,-3),r=n[n.length-3],u=n[n.length-2],a=n[n.length-1];"string"!=typeof t&&function(e,t,n,r,u){let a=e;for(let e=0;e{c(e,t)})}function i(e,t,n){let r=e[1],o=null!==t?t[1]:null,u=new Map;for(let e in r){let t=r[e],a=null!==o?o[e]:null,c=t[0],s=(0,l.createRouterCacheKey)(c),f=i(t,void 0===a?null:a,n),d=new Map;d.set(s,f),u.set(e,d)}let a=0===u.size,c=null!==t?t[2]:null,s=null!==t?t[3]:null;return{lazyData:null,parallelRoutes:u,prefetchRsc:void 0!==c?c:null,prefetchHead:a?n:null,loading:void 0!==s?s:null,rsc:p(),head:a?p():null,lazyDataResolved:!1}}function c(e,t){let n=e.node;if(null===n)return;let r=e.children;if(null===r)s(e.route,n,t);else for(let e of r.values())c(e,t);e.node=null}function s(e,t,n){let r=e[1],o=t.parallelRoutes;for(let e in r){let t=r[e],u=o.get(e);if(void 0===u)continue;let a=t[0],i=(0,l.createRouterCacheKey)(a),c=u.get(i);void 0!==c&&s(t,c,n)}let u=t.rsc;d(u)&&(null===n?u.resolve(null):u.reject(n));let a=t.head;d(a)&&a.resolve(null)}let f=Symbol();function d(e){return e&&e.tag===f}function p(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});return n.status="pending",n.resolve=t=>{"pending"===n.status&&(n.status="fulfilled",n.value=t,e(t))},n.reject=e=>{"pending"===n.status&&(n.status="rejected",n.reason=e,t(e))},n.tag=f,n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7498:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createPrefetchCacheEntryForInitialLoad:function(){return c},getOrCreatePrefetchCacheEntry:function(){return i},prunePrefetchCache:function(){return f}});let r=n(1064),o=n(8437),l=n(8780),u=n(514);function a(e,t){let n=(0,r.createHrefFromUrl)(e,!1);return t?t+"%"+n:n}function i(e){let t,{url:n,nextUrl:r,tree:o,buildId:u,prefetchCache:i,kind:c}=e,f=a(n,r),d=i.get(f);if(d)t=d;else{let e=a(n),r=i.get(e);r&&(t=r)}return t?(t.status=h(t),t.kind!==l.PrefetchKind.FULL&&c===l.PrefetchKind.FULL)?s({tree:o,url:n,buildId:u,nextUrl:r,prefetchCache:i,kind:null!=c?c:l.PrefetchKind.TEMPORARY}):(c&&t.kind===l.PrefetchKind.TEMPORARY&&(t.kind=c),t):s({tree:o,url:n,buildId:u,nextUrl:r,prefetchCache:i,kind:c||l.PrefetchKind.TEMPORARY})}function c(e){let{nextUrl:t,tree:n,prefetchCache:r,url:o,kind:u,data:i}=e,[,,,c]=i,s=c?a(o,t):a(o),f={treeAtTimeOfPrefetch:n,data:Promise.resolve(i),kind:u,prefetchTime:Date.now(),lastUsedTime:Date.now(),key:s,status:l.PrefetchCacheEntryStatus.fresh};return r.set(s,f),f}function s(e){let{url:t,kind:n,tree:r,nextUrl:i,buildId:c,prefetchCache:s}=e,f=a(t),d=u.prefetchQueue.enqueue(()=>(0,o.fetchServerResponse)(t,r,i,c,n).then(e=>{let[,,,n]=e;return n&&function(e){let{url:t,nextUrl:n,prefetchCache:r}=e,o=a(t),l=r.get(o);if(!l)return;let u=a(t,n);r.set(u,l),r.delete(o)}({url:t,nextUrl:i,prefetchCache:s}),e})),p={treeAtTimeOfPrefetch:r,data:d,kind:n,prefetchTime:Date.now(),lastUsedTime:null,key:f,status:l.PrefetchCacheEntryStatus.fresh};return s.set(f,p),p}function f(e){for(let[t,n]of e)h(n)===l.PrefetchCacheEntryStatus.expired&&e.delete(t)}let d=1e3*Number("30"),p=1e3*Number("300");function h(e){let{kind:t,prefetchTime:n,lastUsedTime:r}=e;return Date.now()<(null!=r?r:n)+d?r?l.PrefetchCacheEntryStatus.reusable:l.PrefetchCacheEntryStatus.fresh:"auto"===t&&Date.now(){let[n,f]=t,h=!1;if(E.lastUsedTime||(E.lastUsedTime=Date.now(),h=!0),"string"==typeof n)return _(e,R,n,j);if(document.getElementById("__next-page-redirect"))return _(e,R,O,j);let b=e.tree,g=e.cache,w=[];for(let t of n){let n=t.slice(0,-4),r=t.slice(-3)[0],c=["",...n],f=(0,l.applyRouterStatePatchToTree)(c,b,r,O);if(null===f&&(f=(0,l.applyRouterStatePatchToTree)(c,S,r,O)),null!==f){if((0,a.isNavigatingToNewRootLayout)(b,f))return _(e,R,O,j);let l=(0,d.createEmptyCacheNode)(),m=!1;for(let e of(E.status!==i.PrefetchCacheEntryStatus.stale||h?m=(0,s.applyFlightData)(g,l,t,E):(m=function(e,t,n,r){let o=!1;for(let l of(e.rsc=t.rsc,e.prefetchRsc=t.prefetchRsc,e.loading=t.loading,e.parallelRoutes=new Map(t.parallelRoutes),v(r).map(e=>[...n,...e])))(0,y.clearCacheNodeDataForSegmentPath)(e,t,l),o=!0;return o}(l,g,n,r),E.lastUsedTime=Date.now()),(0,u.shouldHardNavigate)(c,b)?(l.rsc=g.rsc,l.prefetchRsc=g.prefetchRsc,(0,o.invalidateCacheBelowFlightSegmentPath)(l,g,n),R.cache=l):m&&(R.cache=l,g=l),b=f,v(r))){let t=[...n,...e];t[t.length-1]!==p.DEFAULT_SEGMENT_KEY&&w.push(t)}}}return R.patchedTree=b,R.canonicalUrl=f?(0,r.createHrefFromUrl)(f):O,R.pendingPush=j,R.scrollableSegments=w,R.hashFragment=P,R.shouldScroll=m,(0,c.handleMutable)(e,R)},()=>e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},514:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{prefetchQueue:function(){return u},prefetchReducer:function(){return a}});let r=n(2821),o=n(1260),l=n(7498),u=new o.PromiseQueue(5);function a(e,t){(0,l.prunePrefetchCache)(e.prefetchCache);let{url:n}=t;return n.searchParams.delete(r.NEXT_RSC_UNION_QUERY),(0,l.getOrCreatePrefetchCacheEntry)({url:n,nextUrl:e.nextUrl,prefetchCache:e.prefetchCache,kind:t.kind,tree:e.tree,buildId:e.buildId}),e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9421:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"refreshReducer",{enumerable:!0,get:function(){return h}});let r=n(8437),o=n(1064),l=n(1054),u=n(2579),a=n(3480),i=n(5423),c=n(3427),s=n(1376),f=n(3223),d=n(5654),p=n(7250);function h(e,t){let{origin:n}=t,h={},y=e.canonicalUrl,_=e.tree;h.preserveCustomHistoryState=!1;let v=(0,s.createEmptyCacheNode)(),b=(0,d.hasInterceptionRouteInCurrentTree)(e.tree);return v.lazyData=(0,r.fetchServerResponse)(new URL(y,n),[_[0],_[1],_[2],"refetch"],b?e.nextUrl:null,e.buildId),v.lazyData.then(async n=>{let[r,s]=n;if("string"==typeof r)return(0,a.handleExternalUrl)(e,h,r,e.pushRef.pendingPush);for(let n of(v.lazyData=null,r)){if(3!==n.length)return console.log("REFRESH FAILED"),e;let[r]=n,i=(0,l.applyRouterStatePatchToTree)([""],_,r,e.canonicalUrl);if(null===i)return(0,f.handleSegmentMismatch)(e,t,r);if((0,u.isNavigatingToNewRootLayout)(_,i))return(0,a.handleExternalUrl)(e,h,y,e.pushRef.pendingPush);let d=s?(0,o.createHrefFromUrl)(s):void 0;s&&(h.canonicalUrl=d);let[g,m]=n.slice(-2);if(null!==g){let e=g[2];v.rsc=e,v.prefetchRsc=null,(0,c.fillLazyItemsTillLeafWithHead)(v,void 0,r,g,m),h.prefetchCache=new Map}await (0,p.refreshInactiveParallelSegments)({state:e,updatedTree:i,updatedCache:v,includeNextUrl:b,canonicalUrl:h.canonicalUrl||e.canonicalUrl}),h.cache=v,h.patchedTree=i,h.canonicalUrl=y,_=i}return(0,i.handleMutable)(e,h)},()=>e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9786:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"restoreReducer",{enumerable:!0,get:function(){return l}});let r=n(1064),o=n(4567);function l(e,t){var n;let{url:l,tree:u}=t,a=(0,r.createHrefFromUrl)(l),i=u||e.tree,c=e.cache;return{buildId:e.buildId,canonicalUrl:a,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:c,prefetchCache:e.prefetchCache,tree:i,nextUrl:null!=(n=(0,o.extractPathFromFlightRouterState)(i))?n:l.pathname}}n(6691),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4304:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverActionReducer",{enumerable:!0,get:function(){return g}});let r=n(4777),o=n(2821),l=n(1692),u=n(1064),a=n(3480),i=n(1054),c=n(2579),s=n(5423),f=n(3427),d=n(1376),p=n(5654),h=n(3223),y=n(7250),{createFromFetch:_,encodeReply:v}=n(4159);async function b(e,t,n){let u,{actionId:a,actionArgs:i}=n,c=await v(i),s=await fetch("",{method:"POST",headers:{Accept:o.RSC_CONTENT_TYPE_HEADER,[o.ACTION]:a,[o.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(e.tree)),...t?{[o.NEXT_URL]:t}:{}},body:c}),f=s.headers.get("x-action-redirect");try{let e=JSON.parse(s.headers.get("x-action-revalidated")||"[[],0,0]");u={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){u={paths:[],tag:!1,cookie:!1}}let d=f?new URL((0,l.addBasePath)(f),new URL(e.canonicalUrl,window.location.href)):void 0;if(s.headers.get("content-type")===o.RSC_CONTENT_TYPE_HEADER){let e=await _(Promise.resolve(s),{callServer:r.callServer});if(f){let[,t]=null!=e?e:[];return{actionFlightData:t,redirectLocation:d,revalidatedParts:u}}let[t,[,n]]=null!=e?e:[];return{actionResult:t,actionFlightData:n,redirectLocation:d,revalidatedParts:u}}return{redirectLocation:d,revalidatedParts:u}}function g(e,t){let{resolve:n,reject:r}=t,o={},l=e.canonicalUrl,_=e.tree;o.preserveCustomHistoryState=!1;let v=e.nextUrl&&(0,p.hasInterceptionRouteInCurrentTree)(e.tree)?e.nextUrl:null;return o.inFlightServerAction=b(e,v,t),o.inFlightServerAction.then(async r=>{let{actionResult:p,actionFlightData:b,redirectLocation:g}=r;if(g&&(e.pushRef.pendingPush=!0,o.pendingPush=!0),!b)return(n(p),g)?(0,a.handleExternalUrl)(e,o,g.href,e.pushRef.pendingPush):e;if("string"==typeof b)return(0,a.handleExternalUrl)(e,o,b,e.pushRef.pendingPush);if(o.inFlightServerAction=null,g){let e=(0,u.createHrefFromUrl)(g,!1);o.canonicalUrl=e}for(let n of b){if(3!==n.length)return console.log("SERVER ACTION APPLY FAILED"),e;let[r]=n,s=(0,i.applyRouterStatePatchToTree)([""],_,r,g?(0,u.createHrefFromUrl)(g):e.canonicalUrl);if(null===s)return(0,h.handleSegmentMismatch)(e,t,r);if((0,c.isNavigatingToNewRootLayout)(_,s))return(0,a.handleExternalUrl)(e,o,l,e.pushRef.pendingPush);let[p,b]=n.slice(-2),m=null!==p?p[2]:null;if(null!==m){let t=(0,d.createEmptyCacheNode)();t.rsc=m,t.prefetchRsc=null,(0,f.fillLazyItemsTillLeafWithHead)(t,void 0,r,p,b),await (0,y.refreshInactiveParallelSegments)({state:e,updatedTree:s,updatedCache:t,includeNextUrl:!!v,canonicalUrl:o.canonicalUrl||e.canonicalUrl}),o.cache=t,o.prefetchCache=new Map}o.patchedTree=s,_=s}return n(p),(0,s.handleMutable)(e,o)},t=>(r(t),e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1391:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverPatchReducer",{enumerable:!0,get:function(){return f}});let r=n(1064),o=n(1054),l=n(2579),u=n(3480),a=n(3680),i=n(5423),c=n(1376),s=n(3223);function f(e,t){let{serverResponse:n}=t,[f,d]=n,p={};if(p.preserveCustomHistoryState=!1,"string"==typeof f)return(0,u.handleExternalUrl)(e,p,f,e.pushRef.pendingPush);let h=e.tree,y=e.cache;for(let n of f){let i=n.slice(0,-4),[f]=n.slice(-3,-2),_=(0,o.applyRouterStatePatchToTree)(["",...i],h,f,e.canonicalUrl);if(null===_)return(0,s.handleSegmentMismatch)(e,t,f);if((0,l.isNavigatingToNewRootLayout)(h,_))return(0,u.handleExternalUrl)(e,p,e.canonicalUrl,e.pushRef.pendingPush);let v=d?(0,r.createHrefFromUrl)(d):void 0;v&&(p.canonicalUrl=v);let b=(0,c.createEmptyCacheNode)();(0,a.applyFlightData)(y,b,n),p.patchedTree=_,p.cache=b,y=b,h=_}return(0,i.handleMutable)(e,p)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7250:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{addRefreshMarkerToActiveParallelSegments:function(){return function e(t,n){let[r,o,,u]=t;for(let a in r.includes(l.PAGE_SEGMENT_KEY)&&"refresh"!==u&&(t[2]=n,t[3]="refresh"),o)e(o[a],n)}},refreshInactiveParallelSegments:function(){return u}});let r=n(3680),o=n(8437),l=n(8848);async function u(e){let t=new Set;await a({...e,rootTree:e.updatedTree,fetchedSegments:t})}async function a(e){let{state:t,updatedTree:n,updatedCache:l,includeNextUrl:u,fetchedSegments:i,rootTree:c=n,canonicalUrl:s}=e,[,f,d,p]=n,h=[];if(d&&d!==s&&"refresh"===p&&!i.has(d)){i.add(d);let e=(0,o.fetchServerResponse)(new URL(d,location.origin),[c[0],c[1],c[2],"refetch"],u?t.nextUrl:null,t.buildId).then(e=>{let t=e[0];if("string"!=typeof t)for(let e of t)(0,r.applyFlightData)(l,l,e)});h.push(e)}for(let e in f){let n=a({state:t,updatedTree:f[e],updatedCache:l,includeNextUrl:u,fetchedSegments:i,rootTree:c,canonicalUrl:s});h.push(n)}await Promise.all(h)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8780:function(e,t){"use strict";var n,r,o,l;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return f},ACTION_NAVIGATE:function(){return a},ACTION_PREFETCH:function(){return s},ACTION_REFRESH:function(){return u},ACTION_RESTORE:function(){return i},ACTION_SERVER_ACTION:function(){return d},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return p}});let u="refresh",a="navigate",i="restore",c="server-patch",s="prefetch",f="fast-refresh",d="server-action";function p(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(o=n||(n={})).AUTO="auto",o.FULL="full",o.TEMPORARY="temporary",(l=r||(r={})).fresh="fresh",l.reusable="reusable",l.expired="expired",l.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3481:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return f}});let r=n(8780),o=n(3480),l=n(1391),u=n(9786),a=n(9421),i=n(514),c=n(5452),s=n(4304),f="undefined"==typeof window?function(e,t){return e}:function(e,t){switch(t.type){case r.ACTION_NAVIGATE:return(0,o.navigateReducer)(e,t);case r.ACTION_SERVER_PATCH:return(0,l.serverPatchReducer)(e,t);case r.ACTION_RESTORE:return(0,u.restoreReducer)(e,t);case r.ACTION_REFRESH:return(0,a.refreshReducer)(e,t);case r.ACTION_FAST_REFRESH:return(0,c.fastRefreshReducer)(e,t);case r.ACTION_PREFETCH:return(0,i.prefetchReducer)(e,t);case r.ACTION_SERVER_ACTION:return(0,s.serverActionReducer)(e,t);default:throw Error("Unknown action")}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},584:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldHardNavigate",{enumerable:!0,get:function(){return function e(t,n){let[o,l]=n,[u,a]=t;return(0,r.matchSegment)(u,o)?!(t.length<=2)&&e(t.slice(2),l[a]):!!Array.isArray(u)}}});let r=n(6652);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1642:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return r.staticGenerationAsyncStorage}});let r=n(699);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2086:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unresolvedThenable",{enumerable:!0,get:function(){return n}});let n={then:()=>{}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9898:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{useReducerWithReduxDevtools:function(){return i},useUnwrapState:function(){return a}});let r=n(5681)._(n(9937)),o=n(8780),l=n(3053);function u(e){if(e instanceof Map){let t={};for(let[n,r]of e.entries()){if("function"==typeof r){t[n]="fn()";continue}if("object"==typeof r&&null!==r){if(r.$$typeof){t[n]=r.$$typeof.toString();continue}if(r._bundlerConfig){t[n]="FlightData";continue}}t[n]=u(r)}return t}if("object"==typeof e&&null!==e){let t={};for(let n in e){let r=e[n];if("function"==typeof r){t[n]="fn()";continue}if("object"==typeof r&&null!==r){if(r.$$typeof){t[n]=r.$$typeof.toString();continue}if(r.hasOwnProperty("_bundlerConfig")){t[n]="FlightData";continue}}t[n]=u(r)}return t}return Array.isArray(e)?e.map(u):e}function a(e){return(0,o.isThenable)(e)?(0,r.use)(e):e}let i="undefined"!=typeof window?function(e){let[t,n]=r.default.useState(e),o=(0,r.useContext)(l.ActionQueueContext);if(!o)throw Error("Invariant: Missing ActionQueueContext");let a=(0,r.useRef)(),i=(0,r.useRef)();return(0,r.useEffect)(()=>{if(!a.current&&!1!==i.current){if(void 0===i.current&&void 0===window.__REDUX_DEVTOOLS_EXTENSION__){i.current=!1;return}return a.current=window.__REDUX_DEVTOOLS_EXTENSION__.connect({instanceId:8e3,name:"next-router"}),a.current&&(a.current.init(u(e)),o&&(o.devToolsInstance=a.current)),()=>{a.current=void 0}}},[e,o]),[t,(0,r.useCallback)(t=>{o.state||(o.state=e),o.dispatch(t,n)},[o,e]),(0,r.useCallback)(e=>{a.current&&a.current.send({type:"RENDER_SYNC"},u(e))},[])]}:function(e){return[e,()=>{},()=>{}]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3363:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let r=n(1786);function o(e){return(0,r.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7155:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return l}});let r=n(7667),o=n(371),l=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:n,hash:l}=(0,o.parsePath)(e);return""+(0,r.removeTrailingSlash)(t)+n+l};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6059:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(2740);function o(e){let t="function"==typeof reportError?reportError:e=>{window.console.error(e)};(0,r.isBailoutToCSRError)(e)||t(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3431:function(e,t,n){"use strict";function r(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return r}}),n(3363),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4889:function(e,t){"use strict";function n(e,t){var n=e.length;for(e.push(t);0>>1,o=e[r];if(0>>1;rl(i,n))cl(s,i)?(e[r]=s,e[c]=n,r=c):(e[r]=i,e[a]=n,r=a);else if(cl(s,n))e[r]=s,e[c]=n,r=c;else break}}return t}function l(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var u,a=performance;t.unstable_now=function(){return a.now()}}else{var i=Date,c=i.now();t.unstable_now=function(){return i.now()-c}}var s=[],f=[],d=1,p=null,h=3,y=!1,_=!1,v=!1,b="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,m="undefined"!=typeof setImmediate?setImmediate:null;function R(e){for(var t=r(f);null!==t;){if(null===t.callback)o(f);else if(t.startTime<=e)o(f),t.sortIndex=t.expirationTime,n(s,t);else break;t=r(f)}}function P(e){if(v=!1,R(e),!_){if(null!==r(s))_=!0,x();else{var t=r(f);null!==t&&A(P,t.startTime-e)}}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var O=!1,j=-1,E=5,S=-1;function w(){return!(t.unstable_now()-Se&&w());){var a=p.callback;if("function"==typeof a){p.callback=null,h=p.priorityLevel;var i=a(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof i){p.callback=i,R(e),n=!0;break t}p===r(s)&&o(s),R(e)}else o(s);p=r(s)}if(null!==p)n=!0;else{var c=r(f);null!==c&&A(P,c.startTime-e),n=!1}}break e}finally{p=null,h=l,y=!1}n=void 0}}finally{n?u():O=!1}}}if("function"==typeof m)u=function(){m(T)};else if("undefined"!=typeof MessageChannel){var M=new MessageChannel,C=M.port2;M.port1.onmessage=T,u=function(){C.postMessage(null)}}else u=function(){b(T,0)};function x(){O||(O=!0,u())}function A(e,n){j=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){_||y||(_=!0,x())},t.unstable_forceFrameRate=function(e){0>e||125u?(e.sortIndex=l,n(f,e),null===r(s)&&e===r(f)&&(v?(g(j),j=-1):v=!0,A(P,l-u))):(e.sortIndex=a,n(s,e),_||y||(_=!0,x())),e},t.unstable_shouldYield=w,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},3479:function(e,t,n){"use strict";e.exports=n(4889)},9104:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentParam",{enumerable:!0,get:function(){return o}});let r=n(5152);function o(e){let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{type:"optional-catchall",param:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{type:t?"catchall-intercepted":"catchall",param:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{type:t?"dynamic-intercepted":"dynamic",param:e.slice(1,-1)}:null}},2324:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HMR_ACTIONS_SENT_TO_BROWSER",{enumerable:!0,get:function(){return n}}),(r=n||(n={})).ADDED_PAGE="addedPage",r.REMOVED_PAGE="removedPage",r.RELOAD_PAGE="reloadPage",r.SERVER_COMPONENT_CHANGES="serverComponentChanges",r.MIDDLEWARE_CHANGES="middlewareChanges",r.CLIENT_CHANGES="clientChanges",r.SERVER_ONLY_CHANGES="serverOnlyChanges",r.SYNC="sync",r.BUILT="built",r.BUILDING="building",r.DEV_PAGES_MANIFEST_UPDATE="devPagesManifestUpdate",r.TURBOPACK_MESSAGE="turbopack-message",r.SERVER_ERROR="serverError",r.TURBOPACK_CONNECTED="turbopack-connected"},5152:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return u},isInterceptionRouteAppPath:function(){return l}});let r=n(251),o=["(..)(..)","(.)","(..)","(...)"];function l(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function u(e){let t,n,l;for(let r of e.split("/"))if(n=o.find(e=>r.startsWith(e))){[t,l]=e.split(n,2);break}if(!t||!n||!l)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,r.normalizeAppPath)(t),n){case"(.)":l="/"===t?`/${l}`:t+"/"+l;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);l=t.split("/").slice(0,-1).concat(l).join("/");break;case"(...)":l="/"+l;break;case"(..)(..)":let u=t.split("/");if(u.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);l=u.slice(0,-2).concat(l).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:l}}},1878:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return u},LayoutRouterContext:function(){return l},MissingSlotContext:function(){return i},TemplateContext:function(){return a}});let r=n(7990)._(n(9937)),o=r.default.createContext(null),l=r.default.createContext(null),u=r.default.createContext(null),a=r.default.createContext(null),i=r.default.createContext(new Set)},957:function(e,t){"use strict";function n(e){let t=5381;for(let n=0;n>>0}function r(e){return n(e).toString(36).slice(0,5)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{djb2Hash:function(){return n},hexHash:function(){return r}})},6425:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return r}});let r=n(7990)._(n(9937)).default.createContext({})},3103:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PathParamsContext:function(){return u},PathnameContext:function(){return l},SearchParamsContext:function(){return o}});let r=n(9937),o=(0,r.createContext)(null),l=(0,r.createContext)(null),u=(0,r.createContext)(null)},2740:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{BailoutToCSRError:function(){return r},isBailoutToCSRError:function(){return o}});let n="BAILOUT_TO_CLIENT_SIDE_RENDERING";class r extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=n}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}},6427:function(e,t){"use strict";function n(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return n}})},3053:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ActionQueueContext:function(){return a},createMutableActionQueue:function(){return s}});let r=n(5681),o=n(8780),l=n(3481),u=r._(n(9937)),a=u.default.createContext(null);function i(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending?c({actionQueue:e,action:e.pending,setState:t}):e.needsRefresh&&(e.needsRefresh=!1,e.dispatch({type:o.ACTION_REFRESH,origin:window.location.origin},t)))}async function c(e){let{actionQueue:t,action:n,setState:r}=e,l=t.state;if(!l)throw Error("Invariant: Router state not initialized");t.pending=n;let u=n.payload,a=t.action(l,u);function c(e){n.discarded||(t.state=e,t.devToolsInstance&&t.devToolsInstance.send(u,e),i(t,r),n.resolve(e))}(0,o.isThenable)(a)?a.then(c,e=>{i(t,r),n.reject(e)}):c(a)}function s(){let e={state:null,dispatch:(t,n)=>(function(e,t,n){let r={resolve:n,reject:()=>{}};if(t.type!==o.ACTION_RESTORE){let e=new Promise((e,t)=>{r={resolve:e,reject:t}});(0,u.startTransition)(()=>{n(e)})}let l={payload:t,next:null,resolve:r.resolve,reject:r.reject};null===e.pending?(e.last=l,c({actionQueue:e,action:l,setState:n})):t.type===o.ACTION_NAVIGATE||t.type===o.ACTION_RESTORE?(e.pending.discarded=!0,e.last=l,e.pending.payload.type===o.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),c({actionQueue:e,action:l,setState:n})):(null!==e.last&&(e.last.next=l),e.last=l)})(e,t,n),action:async(e,t)=>{if(null===e)throw Error("Invariant: Router state not initialized");return(0,l.reducer)(e,t)},pending:null,last:null};return e}},6561:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let r=n(371);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:n,query:o,hash:l}=(0,r.parsePath)(e);return""+t+n+o+l}},251:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{normalizeAppPath:function(){return l},normalizeRscURL:function(){return u}});let r=n(6427),o=n(8848);function l(e){return(0,r.ensureLeadingSlash)(e.split("/").reduce((e,t,n,r)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&n===r.length-1?e:e+"/"+t,""))}function u(e){return e.replace(/\.rsc($|\?)/,"$1")}},5421:function(e,t){"use strict";function n(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let n=document.documentElement,r=n.style.scrollBehavior;n.style.scrollBehavior="auto",t.dontForceLayout||n.getClientRects(),e(),n.style.scrollBehavior=r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return n}})},7016:function(e,t){"use strict";function n(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return n}})},371:function(e,t){"use strict";function n(e){let t=e.indexOf("#"),n=e.indexOf("?"),r=n>-1&&(t<0||n-1?{pathname:e.substring(0,r?n:t),query:r?e.substring(n,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return n}})},1786:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let r=n(371);function o(e,t){if("string"!=typeof e)return!1;let{pathname:n}=(0,r.parsePath)(e);return n===t||n.startsWith(t+"/")}},7667:function(e,t){"use strict";function n(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return n}})},8848:function(e,t){"use strict";function n(e){return"("===e[0]&&e.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DEFAULT_SEGMENT_KEY:function(){return o},PAGE_SEGMENT_KEY:function(){return r},isGroupSegment:function(){return n}});let r="__PAGE__",o="__DEFAULT__"},8569:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return l}});let r=n(5681)._(n(9937)),o=r.default.createContext(null);function l(e){let t=(0,r.useContext)(o);t&&t(e)}},1763:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},660:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(604).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},604:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return l}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let o=globalThis.AsyncLocalStorage;function l(){return o?new o:new r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9439:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(604).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},699:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(604).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},750:function(e,t,n){"use strict";var r=n(6228);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},6228:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(6739)},7194:function(e,t,n){"use strict";var r=n(6228),o={stream:!0},l=new Map;function u(e){var t=n(e);return"function"!=typeof t.then||"fulfilled"===t.status?null:(t.then(function(e){t.status="fulfilled",t.value=e},function(e){t.status="rejected",t.reason=e}),t)}function a(){}var i=new Map,c=n.u;n.u=function(e){var t=i.get(e);return void 0!==t?t:c(e)};var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,f=Symbol.for("react.element"),d=Symbol.for("react.lazy"),p=Symbol.iterator,h=Array.isArray,y=Object.getPrototypeOf,_=Object.prototype,v=new WeakMap;function b(e,t,n,r){this.status=e,this.value=t,this.reason=n,this._response=r}function g(e){switch(e.status){case"resolved_model":S(e);break;case"resolved_module":w(e)}switch(e.status){case"fulfilled":return e.value;case"pending":case"blocked":case"cyclic":throw e;default:throw e.reason}}function m(e,t){for(var n=0;nh?(_=h,h=3,p++):(_=0,h=3);continue;case 2:44===(m=d[p++])?h=4:v=v<<4|(96d.length&&(m=-1)}var j=d.byteOffset+p;if(-11&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)})},8015:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return l}});let r=n(9901),o=n(6393);function l(e,t){return(0,o.normalizePathTrailingSlash)((0,r.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7014:function(e,t){"use strict";function n(e){var t,n;t=self.__next_s,n=()=>{e()},t&&t.length?t.reduce((e,t)=>{let[n,r]=t;return e.then(()=>new Promise((e,t)=>{let o=document.createElement("script");if(r)for(let e in r)"children"!==e&&o.setAttribute(e,r[e]);n?(o.src=n,o.onload=()=>e(),o.onerror=t):r&&(o.innerHTML=r.children,setTimeout(e)),document.head.appendChild(o)}))},Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{n()}):n()}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appBootstrap",{enumerable:!0,get:function(){return n}}),window.next={version:"14.2.4",appDir:!0},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6891:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"callServer",{enumerable:!0,get:function(){return o}});let r=n(4463);async function o(e,t){let n=(0,r.getServerActionDispatcher)();if(!n)throw Error("Invariant: missing action dispatcher.");return new Promise((r,o)=>{n({actionId:e,actionArgs:t,resolve:r,reject:o})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6278:function(e,t,n){"use strict";let r,o;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return C}});let l=n(7591),u=n(1330),a=n(6334);n(8180);let i=l._(n(3148)),c=u._(n(116)),s=n(7881),f=n(5646),d=l._(n(4608)),p=n(6891),h=n(9801),y=n(8262);n(8142);let _=window.console.error;window.console.error=function(){for(var e=arguments.length,t=Array(e),n=0;n{if((0,h.isNextRouterError)(e.error)){e.preventDefault();return}});let v=document,b=new TextEncoder,g=!1,m=!1,R=null;function P(e){if(0===e[0])r=[];else if(1===e[0]){if(!r)throw Error("Unexpected server data: missing bootstrap script.");o?o.enqueue(b.encode(e[1])):r.push(e[1])}else 2===e[0]&&(R=e[1])}let O=function(){o&&!m&&(o.close(),m=!0,r=void 0),g=!0};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",O,!1):O();let j=self.__next_f=self.__next_f||[];j.forEach(P),j.push=P;let E=new ReadableStream({start(e){r&&(r.forEach(t=>{e.enqueue(b.encode(t))}),g&&!m&&(e.close(),m=!0,r=void 0)),o=e}}),S=(0,s.createFromReadableStream)(E,{callServer:p.callServer});function w(){return(0,c.use)(S)}let T=c.default.StrictMode;function M(e){let{children:t}=e;return t}function C(){let e=(0,y.createMutableActionQueue)(),t=(0,a.jsx)(T,{children:(0,a.jsx)(f.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,a.jsx)(y.ActionQueueContext.Provider,{value:e,children:(0,a.jsx)(M,{children:(0,a.jsx)(w,{})})})})}),n=window.__next_root_layout_missing_tags,r=!!(null==n?void 0:n.length),o={onRecoverableError:d.default};"__next_error__"===document.documentElement.id||r?i.default.createRoot(v,o).render(t):c.default.startTransition(()=>i.default.hydrateRoot(v,t,{...o,formState:R}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1677:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(3530),(0,n(7014).appBootstrap)(()=>{let{hydrate:e}=n(6278);n(4463),n(9400),e()}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3530:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(3871);{let e=n.u;n.u=function(){for(var t=arguments.length,n=Array(t),r=0;r(u(function(){var e;let t=document.getElementsByName(l)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(l);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(l)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[a,i]=(0,r.useState)(""),c=(0,r.useRef)();return(0,r.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==c.current&&c.current!==e&&i(e),c.current=e},[t]),n?(0,o.createPortal)(a,n):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3642:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION:function(){return r},FLIGHT_PARAMETERS:function(){return i},NEXT_DID_POSTPONE_HEADER:function(){return s},NEXT_ROUTER_PREFETCH_HEADER:function(){return l},NEXT_ROUTER_STATE_TREE:function(){return o},NEXT_RSC_UNION_QUERY:function(){return c},NEXT_URL:function(){return u},RSC_CONTENT_TYPE_HEADER:function(){return a},RSC_HEADER:function(){return n}});let n="RSC",r="Next-Action",o="Next-Router-State-Tree",l="Next-Router-Prefetch",u="Next-Url",a="text/x-component",i=[[n],[o],[l]],c="_rsc",s="x-nextjs-postponed";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4463:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createEmptyCacheNode:function(){return x},default:function(){return D},getServerActionDispatcher:function(){return S},urlToUrlWithoutFlightMarker:function(){return T}});let r=n(1330),o=n(6334),l=r._(n(116)),u=n(1653),a=n(5701),i=n(8668),c=n(9494),s=n(3128),f=n(7367),d=n(1625),p=n(7926),h=n(8015),y=n(5775),_=n(225),v=n(8020),b=n(6111),g=n(3642),m=n(1582),R=n(7607),P=n(4472),O="undefined"==typeof window,j=O?null:new Map,E=null;function S(){return E}let w={};function T(e){let t=new URL(e,location.origin);if(t.searchParams.delete(g.NEXT_RSC_UNION_QUERY),t.pathname.endsWith(".txt")){let{pathname:e}=t,n=e.endsWith("/index.txt")?10:4;t.pathname=e.slice(0,-n)}return t}function M(e){return e.origin!==window.location.origin}function C(e){let{appRouterState:t,sync:n}=e;return(0,l.useInsertionEffect)(()=>{let{tree:e,pushRef:r,canonicalUrl:o}=t,l={...r.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};r.pendingPush&&(0,i.createHrefFromUrl)(new URL(window.location.href))!==o?(r.pendingPush=!1,window.history.pushState(l,"",o)):window.history.replaceState(l,"",o),n(t)},[t,n]),null}function x(){return{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null}}function A(e){null==e&&(e={});let t=window.history.state,n=null==t?void 0:t.__NA;n&&(e.__NA=n);let r=null==t?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;return r&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=r),e}function N(e){let{headCacheNode:t}=e,n=null!==t?t.head:null,r=null!==t?t.prefetchHead:null,o=null!==r?r:n;return(0,l.useDeferredValue)(n,o)}function I(e){let t,{buildId:n,initialHead:r,initialTree:i,initialCanonicalUrl:f,initialSeedData:g,couldBeIntercepted:S,assetPrefix:T,missingSlots:x}=e,I=(0,l.useMemo)(()=>(0,d.createInitialRouterState)({buildId:n,initialSeedData:g,initialCanonicalUrl:f,initialTree:i,initialParallelRoutes:j,location:O?null:window.location,initialHead:r,couldBeIntercepted:S}),[n,g,f,i,r,S]),[D,U,k]=(0,s.useReducerWithReduxDevtools)(I);(0,l.useEffect)(()=>{j=null},[]);let{canonicalUrl:F}=(0,s.useUnwrapState)(D),{searchParams:L,pathname:H}=(0,l.useMemo)(()=>{let e=new URL(F,"undefined"==typeof window?"http://n":window.location.href);return{searchParams:e.searchParams,pathname:(0,R.hasBasePath)(e.pathname)?(0,m.removeBasePath)(e.pathname):e.pathname}},[F]),z=(0,l.useCallback)(e=>{let{previousTree:t,serverResponse:n}=e;(0,l.startTransition)(()=>{U({type:a.ACTION_SERVER_PATCH,previousTree:t,serverResponse:n})})},[U]),G=(0,l.useCallback)((e,t,n)=>{let r=new URL((0,h.addBasePath)(e),location.href);return U({type:a.ACTION_NAVIGATE,url:r,isExternalUrl:M(r),locationSearch:location.search,shouldScroll:null==n||n,navigateType:t})},[U]);E=(0,l.useCallback)(e=>{(0,l.startTransition)(()=>{U({...e,type:a.ACTION_SERVER_ACTION})})},[U]);let $=(0,l.useMemo)(()=>({back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{let n;if(!(0,p.isBot)(window.navigator.userAgent)){try{n=new URL((0,h.addBasePath)(e),window.location.href)}catch(t){throw Error("Cannot prefetch '"+e+"' because it cannot be converted to a URL.")}M(n)||(0,l.startTransition)(()=>{var e;U({type:a.ACTION_PREFETCH,url:n,kind:null!=(e=null==t?void 0:t.kind)?e:a.PrefetchKind.FULL})})}},replace:(e,t)=>{void 0===t&&(t={}),(0,l.startTransition)(()=>{var n;G(e,"replace",null==(n=t.scroll)||n)})},push:(e,t)=>{void 0===t&&(t={}),(0,l.startTransition)(()=>{var n;G(e,"push",null==(n=t.scroll)||n)})},refresh:()=>{(0,l.startTransition)(()=>{U({type:a.ACTION_REFRESH,origin:window.location.origin})})},fastRefresh:()=>{throw Error("fastRefresh can only be used in development mode. Please use refresh instead.")}}),[U,G]);(0,l.useEffect)(()=>{window.next&&(window.next.router=$)},[$]),(0,l.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&(w.pendingMpaPath=void 0,U({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[U]);let{pushRef:B}=(0,s.useUnwrapState)(D);if(B.mpaNavigation){if(w.pendingMpaPath!==F){let e=window.location;B.pendingPush?e.assign(F):e.replace(F),w.pendingMpaPath=F}(0,l.use)(b.unresolvedThenable)}(0,l.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),n=e=>{var t;let n=window.location.href,r=null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,l.startTransition)(()=>{U({type:a.ACTION_RESTORE,url:new URL(null!=e?e:n,n),tree:r})})};window.history.pushState=function(t,r,o){return(null==t?void 0:t.__NA)||(null==t?void 0:t._N)||(t=A(t),o&&n(o)),e(t,r,o)},window.history.replaceState=function(e,r,o){return(null==e?void 0:e.__NA)||(null==e?void 0:e._N)||(e=A(e),o&&n(o)),t(e,r,o)};let r=e=>{let{state:t}=e;if(t){if(!t.__NA){window.location.reload();return}(0,l.startTransition)(()=>{U({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:t.__PRIVATE_NEXTJS_INTERNALS_TREE})})}};return window.addEventListener("popstate",r),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",r)}},[U]);let{cache:W,tree:K,nextUrl:V,focusAndScrollRef:Y}=(0,s.useUnwrapState)(D),X=(0,l.useMemo)(()=>(0,v.findHeadInCache)(W,K[1]),[W,K]),q=(0,l.useMemo)(()=>(function e(t,n){for(let r of(void 0===n&&(n={}),Object.values(t[1]))){let t=r[0],o=Array.isArray(t),l=o?t[1]:t;!l||l.startsWith(P.PAGE_SEGMENT_KEY)||(o&&("c"===t[2]||"oc"===t[2])?n[t[0]]=t[1].split("/"):o&&(n[t[0]]=t[1]),n=e(r,n))}return n})(K),[K]);if(null!==X){let[e,n]=X;t=(0,o.jsx)(N,{headCacheNode:e},n)}else t=null;let J=(0,o.jsxs)(_.RedirectBoundary,{children:[t,W.rsc,(0,o.jsx)(y.AppRouterAnnouncer,{tree:K})]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(C,{appRouterState:(0,s.useUnwrapState)(D),sync:k}),(0,o.jsx)(c.PathParamsContext.Provider,{value:q,children:(0,o.jsx)(c.PathnameContext.Provider,{value:H,children:(0,o.jsx)(c.SearchParamsContext.Provider,{value:L,children:(0,o.jsx)(u.GlobalLayoutRouterContext.Provider,{value:{buildId:n,changeByServerResponse:z,tree:K,focusAndScrollRef:Y,nextUrl:V},children:(0,o.jsx)(u.AppRouterContext.Provider,{value:$,children:(0,o.jsx)(u.LayoutRouterContext.Provider,{value:{childNodes:W.parallelRoutes,tree:K,url:F,loading:W.loading},children:J})})})})})})]})}function D(e){let{globalErrorComponent:t,...n}=e;return(0,o.jsx)(f.ErrorBoundary,{errorComponent:t,children:(0,o.jsx)(I,{...n})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8468:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bailoutToClientRendering",{enumerable:!0,get:function(){return l}});let r=n(6623),o=n(7929);function l(e){let t=o.staticGenerationAsyncStorage.getStore();if((null==t||!t.forceStatic)&&(null==t?void 0:t.isStaticGeneration))throw new r.BailoutToCSRError(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7367:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ErrorBoundary:function(){return h},ErrorBoundaryHandler:function(){return f},GlobalError:function(){return d},default:function(){return p}});let r=n(7591),o=n(6334),l=r._(n(116)),u=n(9387),a=n(9801),i=n(7929),c={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}};function s(e){let{error:t}=e,n=i.staticGenerationAsyncStorage.getStore();if((null==n?void 0:n.isRevalidate)||(null==n?void 0:n.isStaticGeneration))throw console.error(t),t;return null}class f extends l.default.Component{static getDerivedStateFromError(e){if((0,a.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,(0,o.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset})]}):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function d(e){let{error:t}=e,n=null==t?void 0:t.digest;return(0,o.jsxs)("html",{id:"__next_error__",children:[(0,o.jsx)("head",{}),(0,o.jsxs)("body",{children:[(0,o.jsx)(s,{error:t}),(0,o.jsx)("div",{style:c.error,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{style:c.text,children:"Application error: a "+(n?"server":"client")+"-side exception has occurred (see the "+(n?"server logs":"browser console")+" for more information)."}),n?(0,o.jsx)("p",{style:c.text,children:"Digest: "+n}):null]})})]})]})}let p=d;function h(e){let{errorComponent:t,errorStyles:n,errorScripts:r,children:l}=e,a=(0,u.usePathname)();return t?(0,o.jsx)(f,{pathname:a,errorComponent:t,errorStyles:n,errorScripts:r,children:l}):(0,o.jsx)(o.Fragment,{children:l})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9801:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return l}});let r=n(5196),o=n(8762);function l(e){return e&&e.digest&&((0,o.isRedirectError)(e)||(0,r.isNotFoundError)(e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9400:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return E}});let r=n(7591),o=n(1330),l=n(6334),u=o._(n(116)),a=r._(n(7860)),i=n(1653),c=n(3248),s=n(6111),f=n(7367),d=n(7726),p=n(7760),h=n(225),y=n(8281),_=n(2977),v=n(1205),b=n(1186),g=["bottom","height","left","right","top","width","x","y"];function m(e,t){let n=e.getBoundingClientRect();return n.top>=0&&n.top<=t}class R extends u.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){var n;if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,n)=>(0,d.matchSegment)(t,e[n]))))return;let r=null,o=e.hashFragment;if(o&&(r="top"===o?document.body:null!=(n=document.getElementById(o))?n:document.getElementsByName(o)[0]),r||(r="undefined"==typeof window?null:a.default.findDOMNode(this)),!(r instanceof Element))return;for(;!(r instanceof HTMLElement)||function(e){if(["sticky","fixed"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return g.every(e=>0===t[e])}(r);){if(null===r.nextElementSibling)return;r=r.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,p.handleSmoothScroll)(()=>{if(o){r.scrollIntoView();return}let e=document.documentElement,t=e.clientHeight;!m(r,t)&&(e.scrollTop=0,m(r,t)||r.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,r.focus()}}}}function P(e){let{segmentPath:t,children:n}=e,r=(0,u.useContext)(i.GlobalLayoutRouterContext);if(!r)throw Error("invariant global layout router not mounted");return(0,l.jsx)(R,{segmentPath:t,focusAndScrollRef:r.focusAndScrollRef,children:n})}function O(e){let{parallelRouterKey:t,url:n,childNodes:r,segmentPath:o,tree:a,cacheKey:f}=e,p=(0,u.useContext)(i.GlobalLayoutRouterContext);if(!p)throw Error("invariant global layout router not mounted");let{buildId:h,changeByServerResponse:y,tree:_}=p,v=r.get(f);if(void 0===v){let e={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null};v=e,r.set(f,e)}let g=null!==v.prefetchRsc?v.prefetchRsc:v.rsc,m=(0,u.useDeferredValue)(v.rsc,g),R="object"==typeof m&&null!==m&&"function"==typeof m.then?(0,u.use)(m):m;if(!R){let e=v.lazyData;if(null===e){let t=function e(t,n){if(t){let[r,o]=t,l=2===t.length;if((0,d.matchSegment)(n[0],r)&&n[1].hasOwnProperty(o)){if(l){let t=e(void 0,n[1][o]);return[n[0],{...n[1],[o]:[t[0],t[1],t[2],"refetch"]}]}return[n[0],{...n[1],[o]:e(t.slice(2),n[1][o])}]}}return n}(["",...o],_),r=(0,b.hasInterceptionRouteInCurrentTree)(_);v.lazyData=e=(0,c.fetchServerResponse)(new URL(n,location.origin),t,r?p.nextUrl:null,h),v.lazyDataResolved=!1}let t=(0,u.use)(e);v.lazyDataResolved||(setTimeout(()=>{(0,u.startTransition)(()=>{y({previousTree:_,serverResponse:t})})}),v.lazyDataResolved=!0),(0,u.use)(s.unresolvedThenable)}return(0,l.jsx)(i.LayoutRouterContext.Provider,{value:{tree:a[1][t],childNodes:v.parallelRoutes,url:n,loading:v.loading},children:R})}function j(e){let{children:t,hasLoading:n,loading:r,loadingStyles:o,loadingScripts:a}=e;return n?(0,l.jsx)(u.Suspense,{fallback:(0,l.jsxs)(l.Fragment,{children:[o,a,r]}),children:t}):(0,l.jsx)(l.Fragment,{children:t})}function E(e){let{parallelRouterKey:t,segmentPath:n,error:r,errorStyles:o,errorScripts:a,templateStyles:c,templateScripts:s,template:d,notFound:p,notFoundStyles:b,styles:g}=e,m=(0,u.useContext)(i.LayoutRouterContext);if(!m)throw Error("invariant expected layout router to be mounted");let{childNodes:R,tree:E,url:S,loading:w}=m,T=R.get(t);T||(T=new Map,R.set(t,T));let M=E[1][t][0],C=(0,_.getSegmentValue)(M),x=[M];return(0,l.jsxs)(l.Fragment,{children:[g,x.map(e=>{let u=(0,_.getSegmentValue)(e),g=(0,v.createRouterCacheKey)(e);return(0,l.jsxs)(i.TemplateContext.Provider,{value:(0,l.jsx)(P,{segmentPath:n,children:(0,l.jsx)(f.ErrorBoundary,{errorComponent:r,errorStyles:o,errorScripts:a,children:(0,l.jsx)(j,{hasLoading:!!w,loading:null==w?void 0:w[0],loadingStyles:null==w?void 0:w[1],loadingScripts:null==w?void 0:w[2],children:(0,l.jsx)(y.NotFoundBoundary,{notFound:p,notFoundStyles:b,children:(0,l.jsx)(h.RedirectBoundary,{children:(0,l.jsx)(O,{parallelRouterKey:t,url:S,tree:E,childNodes:T,segmentPath:n,cacheKey:g,isActive:C===u})})})})})}),children:[c,s,d]},(0,v.createRouterCacheKey)(e,!0))})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7726:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{canSegmentBeOverridden:function(){return l},matchSegment:function(){return o}});let r=n(7584),o=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1],l=(e,t)=>{var n;return!Array.isArray(e)&&!!Array.isArray(t)&&(null==(n=(0,r.getSegmentParam)(e))?void 0:n.param)===t[0]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9387:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return i.ReadonlyURLSearchParams},RedirectType:function(){return i.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},notFound:function(){return i.notFound},permanentRedirect:function(){return i.permanentRedirect},redirect:function(){return i.redirect},useParams:function(){return p},usePathname:function(){return f},useRouter:function(){return d},useSearchParams:function(){return s},useSelectedLayoutSegment:function(){return y},useSelectedLayoutSegments:function(){return h},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});let r=n(116),o=n(1653),l=n(9494),u=n(2977),a=n(4472),i=n(4966),c=n(6465);function s(){let e=(0,r.useContext)(l.SearchParamsContext),t=(0,r.useMemo)(()=>e?new i.ReadonlyURLSearchParams(e):null,[e]);if("undefined"==typeof window){let{bailoutToClientRendering:e}=n(8468);e("useSearchParams()")}return t}function f(){return(0,r.useContext)(l.PathnameContext)}function d(){let e=(0,r.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function p(){return(0,r.useContext)(l.PathParamsContext)}function h(e){void 0===e&&(e="children");let t=(0,r.useContext)(o.LayoutRouterContext);return t?function e(t,n,r,o){let l;if(void 0===r&&(r=!0),void 0===o&&(o=[]),r)l=t[1][n];else{var i;let e=t[1];l=null!=(i=e.children)?i:Object.values(e)[0]}if(!l)return o;let c=l[0],s=(0,u.getSegmentValue)(c);return!s||s.startsWith(a.PAGE_SEGMENT_KEY)?o:(o.push(s),e(l,n,!1,o))}(t.tree,e):null}function y(e){void 0===e&&(e="children");let t=h(e);if(!t||0===t.length)return null;let n="children"===e?t[0]:t[t.length-1];return n===a.DEFAULT_SEGMENT_KEY?null:n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4966:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return u},RedirectType:function(){return r.RedirectType},notFound:function(){return o.notFound},permanentRedirect:function(){return r.permanentRedirect},redirect:function(){return r.redirect}});let r=n(8762),o=n(5196);class l extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class u extends URLSearchParams{append(){throw new l}delete(){throw new l}set(){throw new l}sort(){throw new l}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8281:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NotFoundBoundary",{enumerable:!0,get:function(){return s}});let r=n(1330),o=n(6334),l=r._(n(116)),u=n(9387),a=n(5196);n(3867);let i=n(1653);class c extends l.default.Component{componentDidCatch(){}static getDerivedStateFromError(e){if((0,a.isNotFoundError)(e))return{notFoundTriggered:!0};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.notFoundTriggered?{notFoundTriggered:!1,previousPathname:e.pathname}:{notFoundTriggered:t.notFoundTriggered,previousPathname:e.pathname}}render(){return this.state.notFoundTriggered?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("meta",{name:"robots",content:"noindex"}),!1,this.props.notFoundStyles,this.props.notFound]}):this.props.children}constructor(e){super(e),this.state={notFoundTriggered:!!e.asNotFound,previousPathname:e.pathname}}}function s(e){let{notFound:t,notFoundStyles:n,asNotFound:r,children:a}=e,s=(0,u.usePathname)(),f=(0,l.useContext)(i.MissingSlotContext);return t?(0,o.jsx)(c,{pathname:s,notFound:t,notFoundStyles:n,asNotFound:r,missingSlots:f,children:a}):(0,o.jsx)(o.Fragment,{children:a})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5196:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{isNotFoundError:function(){return o},notFound:function(){return r}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7302:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PromiseQueue",{enumerable:!0,get:function(){return c}});let r=n(2033),o=n(1455);var l=o._("_maxConcurrency"),u=o._("_runningCount"),a=o._("_queue"),i=o._("_processNext");class c{enqueue(e){let t,n;let o=new Promise((e,r)=>{t=e,n=r}),l=async()=>{try{r._(this,u)[u]++;let n=await e();t(n)}catch(e){n(e)}finally{r._(this,u)[u]--,r._(this,i)[i]()}};return r._(this,a)[a].push({promiseFn:o,task:l}),r._(this,i)[i](),o}bump(e){let t=r._(this,a)[a].findIndex(t=>t.promiseFn===e);if(t>-1){let e=r._(this,a)[a].splice(t,1)[0];r._(this,a)[a].unshift(e),r._(this,i)[i](!0)}}constructor(e=5){Object.defineProperty(this,i,{value:s}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),r._(this,l)[l]=e,r._(this,u)[u]=0,r._(this,a)[a]=[]}}function s(e){if(void 0===e&&(e=!1),(r._(this,u)[u]0){var t;null==(t=r._(this,a)[a].shift())||t.task()}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},225:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectBoundary:function(){return s},RedirectErrorBoundary:function(){return c}});let r=n(1330),o=n(6334),l=r._(n(116)),u=n(9387),a=n(8762);function i(e){let{redirect:t,reset:n,redirectType:r}=e,o=(0,u.useRouter)();return(0,l.useEffect)(()=>{l.default.startTransition(()=>{r===a.RedirectType.push?o.push(t,{}):o.replace(t,{}),n()})},[t,r,n,o]),null}class c extends l.default.Component{static getDerivedStateFromError(e){if((0,a.isRedirectError)(e))return{redirect:(0,a.getURLFromRedirectError)(e),redirectType:(0,a.getRedirectTypeFromError)(e)};throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,o.jsx)(i,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function s(e){let{children:t}=e,n=(0,u.useRouter)();return(0,o.jsx)(c,{router:n,children:t})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3314:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return n}}),(r=n||(n={}))[r.SeeOther=303]="SeeOther",r[r.TemporaryRedirect=307]="TemporaryRedirect",r[r.PermanentRedirect=308]="PermanentRedirect",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8762:function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return c},getRedirectStatusCodeFromError:function(){return y},getRedirectTypeFromError:function(){return h},getURLFromRedirectError:function(){return p},isRedirectError:function(){return d},permanentRedirect:function(){return f},redirect:function(){return s}});let l=n(7256),u=n(8168),a=n(3314),i="NEXT_REDIRECT";function c(e,t,n){void 0===n&&(n=a.RedirectStatusCode.TemporaryRedirect);let r=Error(i);r.digest=i+";"+t+";"+e+";"+n+";";let o=l.requestAsyncStorage.getStore();return o&&(r.mutableCookies=o.mutableCookies),r}function s(e,t){void 0===t&&(t="replace");let n=u.actionAsyncStorage.getStore();throw c(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.TemporaryRedirect)}function f(e,t){void 0===t&&(t="replace");let n=u.actionAsyncStorage.getStore();throw c(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.PermanentRedirect)}function d(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,n,r,o]=e.digest.split(";",4),l=Number(o);return t===i&&("replace"===n||"push"===n)&&"string"==typeof r&&!isNaN(l)&&l in a.RedirectStatusCode}function p(e){return d(e)?e.digest.split(";",3)[2]:null}function h(e){if(!d(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function y(e){if(!d(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(o=r||(r={})).push="push",o.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7256:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getExpectedRequestStore:function(){return o},requestAsyncStorage:function(){return r.requestAsyncStorage}});let r=n(9523);function o(e){let t=r.requestAsyncStorage.getStore();if(t)return t;throw Error("`"+e+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3940:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return l}});let r=n(9711),o=n(7292);function l(e,t,n,l){let[u,a,i]=n.slice(-3);if(null===a)return!1;if(3===n.length){let n=a[2],o=a[3];t.loading=o,t.rsc=n,t.prefetchRsc=null,(0,r.fillLazyItemsTillLeafWithHead)(t,e,u,a,i,l)}else t.rsc=e.rsc,t.prefetchRsc=e.prefetchRsc,t.parallelRoutes=new Map(e.parallelRoutes),t.loading=e.loading,(0,o.fillCacheWithNewSubTreeData)(t,e,n,l);return!0}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6735:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyRouterStatePatchToTree",{enumerable:!0,get:function(){return function e(t,n,r,a){let i;let[c,s,f,d,p]=n;if(1===t.length){let e=u(n,r,t);return(0,l.addRefreshMarkerToActiveParallelSegments)(e,a),e}let[h,y]=t;if(!(0,o.matchSegment)(h,c))return null;if(2===t.length)i=u(s[y],r,t);else if(null===(i=e(t.slice(2),s[y],r,a)))return null;let _=[t[0],{...s,[y]:i},f,d];return p&&(_[4]=!0),(0,l.addRefreshMarkerToActiveParallelSegments)(_,a),_}}});let r=n(4472),o=n(7726),l=n(7880);function u(e,t,n){let[l,a]=e,[i,c]=t;if(i===r.DEFAULT_SEGMENT_KEY&&l!==r.DEFAULT_SEGMENT_KEY)return e;if((0,o.matchSegment)(l,i)){let t={};for(let e in a)void 0!==c[e]?t[e]=u(a[e],c[e],n):t[e]=a[e];for(let e in c)t[e]||(t[e]=c[e]);let r=[l,t];return e[2]&&(r[2]=e[2]),e[3]&&(r[3]=e[3]),e[4]&&(r[4]=e[4]),r}return t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7674:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clearCacheNodeDataForSegmentPath",{enumerable:!0,get:function(){return function e(t,n,o){let l=o.length<=2,[u,a]=o,i=(0,r.createRouterCacheKey)(a),c=n.parallelRoutes.get(u),s=t.parallelRoutes.get(u);s&&s!==c||(s=new Map(c),t.parallelRoutes.set(u,s));let f=null==c?void 0:c.get(i),d=s.get(i);if(l){d&&d.lazyData&&d!==f||s.set(i,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null});return}if(!d||!f){d||s.set(i,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null});return}return d===f&&(d={lazyData:d.lazyData,rsc:d.rsc,prefetchRsc:d.prefetchRsc,head:d.head,prefetchHead:d.prefetchHead,parallelRoutes:new Map(d.parallelRoutes),lazyDataResolved:d.lazyDataResolved,loading:d.loading},s.set(i,d)),e(d,f,o.slice(2))}}});let r=n(1205);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1889:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{computeChangedPath:function(){return s},extractPathFromFlightRouterState:function(){return c}});let r=n(607),o=n(4472),l=n(7726),u=e=>"/"===e[0]?e.slice(1):e,a=e=>"string"==typeof e?"children"===e?"":e:e[1];function i(e){return e.reduce((e,t)=>""===(t=u(t))||(0,o.isGroupSegment)(t)?e:e+"/"+t,"")||"/"}function c(e){var t;let n=Array.isArray(e[0])?e[0][1]:e[0];if(n===o.DEFAULT_SEGMENT_KEY||r.INTERCEPTION_ROUTE_MARKERS.some(e=>n.startsWith(e)))return;if(n.startsWith(o.PAGE_SEGMENT_KEY))return"";let l=[a(n)],u=null!=(t=e[1])?t:{},s=u.children?c(u.children):void 0;if(void 0!==s)l.push(s);else for(let[e,t]of Object.entries(u)){if("children"===e)continue;let n=c(t);void 0!==n&&l.push(n)}return i(l)}function s(e,t){let n=function e(t,n){let[o,u]=t,[i,s]=n,f=a(o),d=a(i);if(r.INTERCEPTION_ROUTE_MARKERS.some(e=>f.startsWith(e)||d.startsWith(e)))return"";if(!(0,l.matchSegment)(o,i)){var p;return null!=(p=c(n))?p:""}for(let t in u)if(s[t]){let n=e(u[t],s[t]);if(null!==n)return a(i)+"/"+n}return null}(e,t);return null==n||"/"===n?n:i(n.split("/"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8668:function(e,t){"use strict";function n(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createHrefFromUrl",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1625:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInitialRouterState",{enumerable:!0,get:function(){return c}});let r=n(8668),o=n(9711),l=n(1889),u=n(6586),a=n(5701),i=n(7880);function c(e){var t;let{buildId:n,initialTree:c,initialSeedData:s,initialCanonicalUrl:f,initialParallelRoutes:d,location:p,initialHead:h,couldBeIntercepted:y}=e,_=!p,v={lazyData:null,rsc:s[2],prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:_?new Map:d,lazyDataResolved:!1,loading:s[3]},b=p?(0,r.createHrefFromUrl)(p):f;(0,i.addRefreshMarkerToActiveParallelSegments)(c,b);let g=new Map;(null===d||0===d.size)&&(0,o.fillLazyItemsTillLeafWithHead)(v,void 0,c,s,h);let m={buildId:n,tree:c,cache:v,prefetchCache:g,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:b,nextUrl:null!=(t=(0,l.extractPathFromFlightRouterState)(c)||(null==p?void 0:p.pathname))?t:null};if(p){let e=new URL(p.pathname,p.origin),t=[["",c,null,null]];(0,u.createPrefetchCacheEntryForInitialLoad)({url:e,kind:a.PrefetchKind.AUTO,data:[t,void 0,!1,y],tree:m.tree,prefetchCache:m.prefetchCache,nextUrl:m.nextUrl})}return m}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1205:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return o}});let r=n(4472);function o(e,t){return(void 0===t&&(t=!1),Array.isArray(e))?e[0]+"|"+e[1]+"|"+e[2]:t&&e.startsWith(r.PAGE_SEGMENT_KEY)?r.PAGE_SEGMENT_KEY:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3248:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fetchServerResponse",{enumerable:!0,get:function(){return s}});let r=n(3642),o=n(4463),l=n(6891),u=n(5701),a=n(9289),{createFromFetch:i}=n(7881);function c(e){return[(0,o.urlToUrlWithoutFlightMarker)(e).toString(),void 0,!1,!1]}async function s(e,t,n,s,f){let d={[r.RSC_HEADER]:"1",[r.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(t))};f===u.PrefetchKind.AUTO&&(d[r.NEXT_ROUTER_PREFETCH_HEADER]="1"),n&&(d[r.NEXT_URL]=n);let p=(0,a.hexHash)([d[r.NEXT_ROUTER_PREFETCH_HEADER]||"0",d[r.NEXT_ROUTER_STATE_TREE],d[r.NEXT_URL]].join(","));try{var h;let t=new URL(e);t.pathname.endsWith("/")?t.pathname+="index.txt":t.pathname+=".txt",t.searchParams.set(r.NEXT_RSC_UNION_QUERY,p);let n=await fetch(t,{credentials:"same-origin",headers:d}),u=(0,o.urlToUrlWithoutFlightMarker)(n.url),a=n.redirected?u:void 0,f=n.headers.get("content-type")||"",y=!!n.headers.get(r.NEXT_DID_POSTPONE_HEADER),_=!!(null==(h=n.headers.get("vary"))?void 0:h.includes(r.NEXT_URL)),v=f===r.RSC_CONTENT_TYPE_HEADER;if(v||(v=f.startsWith("text/plain")),!v||!n.ok)return e.hash&&(u.hash=e.hash),c(u.toString());let[b,g]=await i(Promise.resolve(n),{callServer:l.callServer});if(s!==b)return c(n.url);return[g,a,y,_]}catch(t){return console.error("Failed to fetch RSC payload for "+e+". Falling back to browser navigation.",t),[e.toString(),void 0,!1,!1]}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7292:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithNewSubTreeData",{enumerable:!0,get:function(){return function e(t,n,u,a){let i=u.length<=5,[c,s]=u,f=(0,l.createRouterCacheKey)(s),d=n.parallelRoutes.get(c);if(!d)return;let p=t.parallelRoutes.get(c);p&&p!==d||(p=new Map(d),t.parallelRoutes.set(c,p));let h=d.get(f),y=p.get(f);if(i){if(!y||!y.lazyData||y===h){let e=u[3];y={lazyData:null,rsc:e[2],prefetchRsc:null,head:null,prefetchHead:null,loading:e[3],parallelRoutes:h?new Map(h.parallelRoutes):new Map,lazyDataResolved:!1},h&&(0,r.invalidateCacheByRouterState)(y,h,u[2]),(0,o.fillLazyItemsTillLeafWithHead)(y,h,u[2],e,u[4],a),p.set(f,y)}return}y&&h&&(y===h&&(y={lazyData:y.lazyData,rsc:y.rsc,prefetchRsc:y.prefetchRsc,head:y.head,prefetchHead:y.prefetchHead,parallelRoutes:new Map(y.parallelRoutes),lazyDataResolved:!1,loading:y.loading},p.set(f,y)),e(y,h,u.slice(2),a))}}});let r=n(3517),o=n(9711),l=n(1205);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9711:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function e(t,n,l,u,a,i){if(0===Object.keys(l[1]).length){t.head=a;return}for(let c in l[1]){let s;let f=l[1][c],d=f[0],p=(0,r.createRouterCacheKey)(d),h=null!==u&&void 0!==u[1][c]?u[1][c]:null;if(n){let r=n.parallelRoutes.get(c);if(r){let n;let l=(null==i?void 0:i.kind)==="auto"&&i.status===o.PrefetchCacheEntryStatus.reusable,u=new Map(r),s=u.get(p);n=null!==h?{lazyData:null,rsc:h[2],prefetchRsc:null,head:null,prefetchHead:null,loading:h[3],parallelRoutes:new Map(null==s?void 0:s.parallelRoutes),lazyDataResolved:!1}:l&&s?{lazyData:s.lazyData,rsc:s.rsc,prefetchRsc:s.prefetchRsc,head:s.head,prefetchHead:s.prefetchHead,parallelRoutes:new Map(s.parallelRoutes),lazyDataResolved:s.lazyDataResolved,loading:s.loading}:{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map(null==s?void 0:s.parallelRoutes),lazyDataResolved:!1,loading:null},u.set(p,n),e(n,s,f,h||null,a,i),t.parallelRoutes.set(c,u);continue}}if(null!==h){let e=h[2],t=h[3];s={lazyData:null,rsc:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:t}}else s={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null};let y=t.parallelRoutes.get(c);y?y.set(p,s):t.parallelRoutes.set(c,new Map([[p,s]])),e(s,void 0,f,h,a,i)}}}});let r=n(1205),o=n(5701);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6861:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleMutable",{enumerable:!0,get:function(){return l}});let r=n(1889);function o(e){return void 0!==e}function l(e,t){var n,l,u;let a=null==(l=t.shouldScroll)||l,i=e.nextUrl;if(o(t.patchedTree)){let n=(0,r.computeChangedPath)(e.tree,t.patchedTree);n?i=n:i||(i=e.canonicalUrl)}return{buildId:e.buildId,canonicalUrl:o(t.canonicalUrl)?t.canonicalUrl===e.canonicalUrl?e.canonicalUrl:t.canonicalUrl:e.canonicalUrl,pushRef:{pendingPush:o(t.pendingPush)?t.pendingPush:e.pushRef.pendingPush,mpaNavigation:o(t.mpaNavigation)?t.mpaNavigation:e.pushRef.mpaNavigation,preserveCustomHistoryState:o(t.preserveCustomHistoryState)?t.preserveCustomHistoryState:e.pushRef.preserveCustomHistoryState},focusAndScrollRef:{apply:!!a&&(!!o(null==t?void 0:t.scrollableSegments)||e.focusAndScrollRef.apply),onlyHashChange:!!t.hashFragment&&e.canonicalUrl.split("#",1)[0]===(null==(n=t.canonicalUrl)?void 0:n.split("#",1)[0]),hashFragment:a?t.hashFragment&&""!==t.hashFragment?decodeURIComponent(t.hashFragment.slice(1)):e.focusAndScrollRef.hashFragment:null,segmentPaths:a?null!=(u=null==t?void 0:t.scrollableSegments)?u:e.focusAndScrollRef.segmentPaths:[]},cache:t.cache?t.cache:e.cache,prefetchCache:t.prefetchCache?t.prefetchCache:e.prefetchCache,tree:o(t.patchedTree)?t.patchedTree:e.tree,nextUrl:i}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6319:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSegmentMismatch",{enumerable:!0,get:function(){return o}});let r=n(7567);function o(e,t,n){return(0,r.handleExternalUrl)(e,{},e.canonicalUrl,!0)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8033:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheBelowFlightSegmentPath",{enumerable:!0,get:function(){return function e(t,n,o){let l=o.length<=2,[u,a]=o,i=(0,r.createRouterCacheKey)(a),c=n.parallelRoutes.get(u);if(!c)return;let s=t.parallelRoutes.get(u);if(s&&s!==c||(s=new Map(c),t.parallelRoutes.set(u,s)),l){s.delete(i);return}let f=c.get(i),d=s.get(i);d&&f&&(d===f&&(d={lazyData:d.lazyData,rsc:d.rsc,prefetchRsc:d.prefetchRsc,head:d.head,prefetchHead:d.prefetchHead,parallelRoutes:new Map(d.parallelRoutes),lazyDataResolved:d.lazyDataResolved},s.set(i,d)),e(d,f,o.slice(2)))}}});let r=n(1205);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3517:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheByRouterState",{enumerable:!0,get:function(){return o}});let r=n(1205);function o(e,t,n){for(let o in n[1]){let l=n[1][o][0],u=(0,r.createRouterCacheKey)(l),a=t.parallelRoutes.get(o);if(a){let t=new Map(a);t.delete(u),e.parallelRoutes.set(o,t)}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8690:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function e(t,n){let r=t[0],o=n[0];if(Array.isArray(r)&&Array.isArray(o)){if(r[0]!==o[0]||r[2]!==o[2])return!0}else if(r!==o)return!0;if(t[4])return!n[4];if(n[4])return!0;let l=Object.values(t[1])[0],u=Object.values(n[1])[0];return!l||!u||e(l,u)}}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3726:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{abortTask:function(){return c},listenForDynamicRequest:function(){return a},updateCacheNodeOnNavigation:function(){return function e(t,n,a,c,s){let f=n[1],d=a[1],p=c[1],h=t.parallelRoutes,y=new Map(h),_={},v=null;for(let t in d){let n;let a=d[t],c=f[t],b=h.get(t),g=p[t],m=a[0],R=(0,l.createRouterCacheKey)(m),P=void 0!==c?c[0]:void 0,O=void 0!==b?b.get(R):void 0;if(null!==(n=m===r.PAGE_SEGMENT_KEY?u(a,void 0!==g?g:null,s):m===r.DEFAULT_SEGMENT_KEY?void 0!==c?{route:c,node:null,children:null}:u(a,void 0!==g?g:null,s):void 0!==P&&(0,o.matchSegment)(m,P)&&void 0!==O&&void 0!==c?null!=g?e(O,c,a,g,s):function(e){let t=i(e,null,null);return{route:e,node:t,children:null}}(a):u(a,void 0!==g?g:null,s))){null===v&&(v=new Map),v.set(t,n);let e=n.node;if(null!==e){let n=new Map(b);n.set(R,e),y.set(t,n)}_[t]=n.route}else _[t]=a}if(null===v)return null;let b={lazyData:null,rsc:t.rsc,prefetchRsc:t.prefetchRsc,head:t.head,prefetchHead:t.prefetchHead,loading:t.loading,parallelRoutes:y,lazyDataResolved:!1};return{route:function(e,t){let n=[e[0],t];return 2 in e&&(n[2]=e[2]),3 in e&&(n[3]=e[3]),4 in e&&(n[4]=e[4]),n}(a,_),node:b,children:v}}},updateCacheNodeOnPopstateRestoration:function(){return function e(t,n){let r=n[1],o=t.parallelRoutes,u=new Map(o);for(let t in r){let n=r[t],a=n[0],i=(0,l.createRouterCacheKey)(a),c=o.get(t);if(void 0!==c){let r=c.get(i);if(void 0!==r){let o=e(r,n),l=new Map(c);l.set(i,o),u.set(t,l)}}}let a=t.rsc,i=d(a)&&"pending"===a.status;return{lazyData:null,rsc:a,head:t.head,prefetchHead:i?t.prefetchHead:null,prefetchRsc:i?t.prefetchRsc:null,loading:i?t.loading:null,parallelRoutes:u,lazyDataResolved:!1}}}});let r=n(4472),o=n(7726),l=n(1205);function u(e,t,n){let r=i(e,t,n);return{route:e,node:r,children:null}}function a(e,t){t.then(t=>{for(let n of t[0]){let t=n.slice(0,-3),r=n[n.length-3],u=n[n.length-2],a=n[n.length-1];"string"!=typeof t&&function(e,t,n,r,u){let a=e;for(let e=0;e{c(e,t)})}function i(e,t,n){let r=e[1],o=null!==t?t[1]:null,u=new Map;for(let e in r){let t=r[e],a=null!==o?o[e]:null,c=t[0],s=(0,l.createRouterCacheKey)(c),f=i(t,void 0===a?null:a,n),d=new Map;d.set(s,f),u.set(e,d)}let a=0===u.size,c=null!==t?t[2]:null,s=null!==t?t[3]:null;return{lazyData:null,parallelRoutes:u,prefetchRsc:void 0!==c?c:null,prefetchHead:a?n:null,loading:void 0!==s?s:null,rsc:p(),head:a?p():null,lazyDataResolved:!1}}function c(e,t){let n=e.node;if(null===n)return;let r=e.children;if(null===r)s(e.route,n,t);else for(let e of r.values())c(e,t);e.node=null}function s(e,t,n){let r=e[1],o=t.parallelRoutes;for(let e in r){let t=r[e],u=o.get(e);if(void 0===u)continue;let a=t[0],i=(0,l.createRouterCacheKey)(a),c=u.get(i);void 0!==c&&s(t,c,n)}let u=t.rsc;d(u)&&(null===n?u.resolve(null):u.reject(n));let a=t.head;d(a)&&a.resolve(null)}let f=Symbol();function d(e){return e&&e.tag===f}function p(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});return n.status="pending",n.resolve=t=>{"pending"===n.status&&(n.status="fulfilled",n.value=t,e(t))},n.reject=e=>{"pending"===n.status&&(n.status="rejected",n.reason=e,t(e))},n.tag=f,n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6586:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createPrefetchCacheEntryForInitialLoad:function(){return c},getOrCreatePrefetchCacheEntry:function(){return i},prunePrefetchCache:function(){return f}});let r=n(8668),o=n(3248),l=n(5701),u=n(4684);function a(e,t){let n=(0,r.createHrefFromUrl)(e,!1);return t?t+"%"+n:n}function i(e){let t,{url:n,nextUrl:r,tree:o,buildId:u,prefetchCache:i,kind:c}=e,f=a(n,r),d=i.get(f);if(d)t=d;else{let e=a(n),r=i.get(e);r&&(t=r)}return t?(t.status=h(t),t.kind!==l.PrefetchKind.FULL&&c===l.PrefetchKind.FULL)?s({tree:o,url:n,buildId:u,nextUrl:r,prefetchCache:i,kind:null!=c?c:l.PrefetchKind.TEMPORARY}):(c&&t.kind===l.PrefetchKind.TEMPORARY&&(t.kind=c),t):s({tree:o,url:n,buildId:u,nextUrl:r,prefetchCache:i,kind:c||l.PrefetchKind.TEMPORARY})}function c(e){let{nextUrl:t,tree:n,prefetchCache:r,url:o,kind:u,data:i}=e,[,,,c]=i,s=c?a(o,t):a(o),f={treeAtTimeOfPrefetch:n,data:Promise.resolve(i),kind:u,prefetchTime:Date.now(),lastUsedTime:Date.now(),key:s,status:l.PrefetchCacheEntryStatus.fresh};return r.set(s,f),f}function s(e){let{url:t,kind:n,tree:r,nextUrl:i,buildId:c,prefetchCache:s}=e,f=a(t),d=u.prefetchQueue.enqueue(()=>(0,o.fetchServerResponse)(t,r,i,c,n).then(e=>{let[,,,n]=e;return n&&function(e){let{url:t,nextUrl:n,prefetchCache:r}=e,o=a(t),l=r.get(o);if(!l)return;let u=a(t,n);r.set(u,l),r.delete(o)}({url:t,nextUrl:i,prefetchCache:s}),e})),p={treeAtTimeOfPrefetch:r,data:d,kind:n,prefetchTime:Date.now(),lastUsedTime:null,key:f,status:l.PrefetchCacheEntryStatus.fresh};return s.set(f,p),p}function f(e){for(let[t,n]of e)h(n)===l.PrefetchCacheEntryStatus.expired&&e.delete(t)}let d=1e3*Number("30"),p=1e3*Number("300");function h(e){let{kind:t,prefetchTime:n,lastUsedTime:r}=e;return Date.now()<(null!=r?r:n)+d?r?l.PrefetchCacheEntryStatus.reusable:l.PrefetchCacheEntryStatus.fresh:"auto"===t&&Date.now(){let[n,f]=t,h=!1;if(E.lastUsedTime||(E.lastUsedTime=Date.now(),h=!0),"string"==typeof n)return _(e,R,n,j);if(document.getElementById("__next-page-redirect"))return _(e,R,O,j);let b=e.tree,g=e.cache,w=[];for(let t of n){let n=t.slice(0,-4),r=t.slice(-3)[0],c=["",...n],f=(0,l.applyRouterStatePatchToTree)(c,b,r,O);if(null===f&&(f=(0,l.applyRouterStatePatchToTree)(c,S,r,O)),null!==f){if((0,a.isNavigatingToNewRootLayout)(b,f))return _(e,R,O,j);let l=(0,d.createEmptyCacheNode)(),m=!1;for(let e of(E.status!==i.PrefetchCacheEntryStatus.stale||h?m=(0,s.applyFlightData)(g,l,t,E):(m=function(e,t,n,r){let o=!1;for(let l of(e.rsc=t.rsc,e.prefetchRsc=t.prefetchRsc,e.loading=t.loading,e.parallelRoutes=new Map(t.parallelRoutes),v(r).map(e=>[...n,...e])))(0,y.clearCacheNodeDataForSegmentPath)(e,t,l),o=!0;return o}(l,g,n,r),E.lastUsedTime=Date.now()),(0,u.shouldHardNavigate)(c,b)?(l.rsc=g.rsc,l.prefetchRsc=g.prefetchRsc,(0,o.invalidateCacheBelowFlightSegmentPath)(l,g,n),R.cache=l):m&&(R.cache=l,g=l),b=f,v(r))){let t=[...n,...e];t[t.length-1]!==p.DEFAULT_SEGMENT_KEY&&w.push(t)}}}return R.patchedTree=b,R.canonicalUrl=f?(0,r.createHrefFromUrl)(f):O,R.pendingPush=j,R.scrollableSegments=w,R.hashFragment=P,R.shouldScroll=m,(0,c.handleMutable)(e,R)},()=>e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4684:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{prefetchQueue:function(){return u},prefetchReducer:function(){return a}});let r=n(3642),o=n(7302),l=n(6586),u=new o.PromiseQueue(5);function a(e,t){(0,l.prunePrefetchCache)(e.prefetchCache);let{url:n}=t;return n.searchParams.delete(r.NEXT_RSC_UNION_QUERY),(0,l.getOrCreatePrefetchCacheEntry)({url:n,nextUrl:e.nextUrl,prefetchCache:e.prefetchCache,kind:t.kind,tree:e.tree,buildId:e.buildId}),e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3070:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"refreshReducer",{enumerable:!0,get:function(){return h}});let r=n(3248),o=n(8668),l=n(6735),u=n(8690),a=n(7567),i=n(6861),c=n(9711),s=n(4463),f=n(6319),d=n(1186),p=n(7880);function h(e,t){let{origin:n}=t,h={},y=e.canonicalUrl,_=e.tree;h.preserveCustomHistoryState=!1;let v=(0,s.createEmptyCacheNode)(),b=(0,d.hasInterceptionRouteInCurrentTree)(e.tree);return v.lazyData=(0,r.fetchServerResponse)(new URL(y,n),[_[0],_[1],_[2],"refetch"],b?e.nextUrl:null,e.buildId),v.lazyData.then(async n=>{let[r,s]=n;if("string"==typeof r)return(0,a.handleExternalUrl)(e,h,r,e.pushRef.pendingPush);for(let n of(v.lazyData=null,r)){if(3!==n.length)return console.log("REFRESH FAILED"),e;let[r]=n,i=(0,l.applyRouterStatePatchToTree)([""],_,r,e.canonicalUrl);if(null===i)return(0,f.handleSegmentMismatch)(e,t,r);if((0,u.isNavigatingToNewRootLayout)(_,i))return(0,a.handleExternalUrl)(e,h,y,e.pushRef.pendingPush);let d=s?(0,o.createHrefFromUrl)(s):void 0;s&&(h.canonicalUrl=d);let[g,m]=n.slice(-2);if(null!==g){let e=g[2];v.rsc=e,v.prefetchRsc=null,(0,c.fillLazyItemsTillLeafWithHead)(v,void 0,r,g,m),h.prefetchCache=new Map}await (0,p.refreshInactiveParallelSegments)({state:e,updatedTree:i,updatedCache:v,includeNextUrl:b,canonicalUrl:h.canonicalUrl||e.canonicalUrl}),h.cache=v,h.patchedTree=i,h.canonicalUrl=y,_=i}return(0,i.handleMutable)(e,h)},()=>e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2467:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"restoreReducer",{enumerable:!0,get:function(){return l}});let r=n(8668),o=n(1889);function l(e,t){var n;let{url:l,tree:u}=t,a=(0,r.createHrefFromUrl)(l),i=u||e.tree,c=e.cache;return{buildId:e.buildId,canonicalUrl:a,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:c,prefetchCache:e.prefetchCache,tree:i,nextUrl:null!=(n=(0,o.extractPathFromFlightRouterState)(i))?n:l.pathname}}n(3726),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2951:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverActionReducer",{enumerable:!0,get:function(){return g}});let r=n(6891),o=n(3642),l=n(8015),u=n(8668),a=n(7567),i=n(6735),c=n(8690),s=n(6861),f=n(9711),d=n(4463),p=n(1186),h=n(6319),y=n(7880),{createFromFetch:_,encodeReply:v}=n(7881);async function b(e,t,n){let u,{actionId:a,actionArgs:i}=n,c=await v(i),s=await fetch("",{method:"POST",headers:{Accept:o.RSC_CONTENT_TYPE_HEADER,[o.ACTION]:a,[o.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(e.tree)),...t?{[o.NEXT_URL]:t}:{}},body:c}),f=s.headers.get("x-action-redirect");try{let e=JSON.parse(s.headers.get("x-action-revalidated")||"[[],0,0]");u={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){u={paths:[],tag:!1,cookie:!1}}let d=f?new URL((0,l.addBasePath)(f),new URL(e.canonicalUrl,window.location.href)):void 0;if(s.headers.get("content-type")===o.RSC_CONTENT_TYPE_HEADER){let e=await _(Promise.resolve(s),{callServer:r.callServer});if(f){let[,t]=null!=e?e:[];return{actionFlightData:t,redirectLocation:d,revalidatedParts:u}}let[t,[,n]]=null!=e?e:[];return{actionResult:t,actionFlightData:n,redirectLocation:d,revalidatedParts:u}}return{redirectLocation:d,revalidatedParts:u}}function g(e,t){let{resolve:n,reject:r}=t,o={},l=e.canonicalUrl,_=e.tree;o.preserveCustomHistoryState=!1;let v=e.nextUrl&&(0,p.hasInterceptionRouteInCurrentTree)(e.tree)?e.nextUrl:null;return o.inFlightServerAction=b(e,v,t),o.inFlightServerAction.then(async r=>{let{actionResult:p,actionFlightData:b,redirectLocation:g}=r;if(g&&(e.pushRef.pendingPush=!0,o.pendingPush=!0),!b)return(n(p),g)?(0,a.handleExternalUrl)(e,o,g.href,e.pushRef.pendingPush):e;if("string"==typeof b)return(0,a.handleExternalUrl)(e,o,b,e.pushRef.pendingPush);if(o.inFlightServerAction=null,g){let e=(0,u.createHrefFromUrl)(g,!1);o.canonicalUrl=e}for(let n of b){if(3!==n.length)return console.log("SERVER ACTION APPLY FAILED"),e;let[r]=n,s=(0,i.applyRouterStatePatchToTree)([""],_,r,g?(0,u.createHrefFromUrl)(g):e.canonicalUrl);if(null===s)return(0,h.handleSegmentMismatch)(e,t,r);if((0,c.isNavigatingToNewRootLayout)(_,s))return(0,a.handleExternalUrl)(e,o,l,e.pushRef.pendingPush);let[p,b]=n.slice(-2),m=null!==p?p[2]:null;if(null!==m){let t=(0,d.createEmptyCacheNode)();t.rsc=m,t.prefetchRsc=null,(0,f.fillLazyItemsTillLeafWithHead)(t,void 0,r,p,b),await (0,y.refreshInactiveParallelSegments)({state:e,updatedTree:s,updatedCache:t,includeNextUrl:!!v,canonicalUrl:o.canonicalUrl||e.canonicalUrl}),o.cache=t,o.prefetchCache=new Map}o.patchedTree=s,_=s}return n(p),(0,s.handleMutable)(e,o)},t=>(r(t),e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3278:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverPatchReducer",{enumerable:!0,get:function(){return f}});let r=n(8668),o=n(6735),l=n(8690),u=n(7567),a=n(3940),i=n(6861),c=n(4463),s=n(6319);function f(e,t){let{serverResponse:n}=t,[f,d]=n,p={};if(p.preserveCustomHistoryState=!1,"string"==typeof f)return(0,u.handleExternalUrl)(e,p,f,e.pushRef.pendingPush);let h=e.tree,y=e.cache;for(let n of f){let i=n.slice(0,-4),[f]=n.slice(-3,-2),_=(0,o.applyRouterStatePatchToTree)(["",...i],h,f,e.canonicalUrl);if(null===_)return(0,s.handleSegmentMismatch)(e,t,f);if((0,l.isNavigatingToNewRootLayout)(h,_))return(0,u.handleExternalUrl)(e,p,e.canonicalUrl,e.pushRef.pendingPush);let v=d?(0,r.createHrefFromUrl)(d):void 0;v&&(p.canonicalUrl=v);let b=(0,c.createEmptyCacheNode)();(0,a.applyFlightData)(y,b,n),p.patchedTree=_,p.cache=b,y=b,h=_}return(0,i.handleMutable)(e,p)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7880:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{addRefreshMarkerToActiveParallelSegments:function(){return function e(t,n){let[r,o,,u]=t;for(let a in r.includes(l.PAGE_SEGMENT_KEY)&&"refresh"!==u&&(t[2]=n,t[3]="refresh"),o)e(o[a],n)}},refreshInactiveParallelSegments:function(){return u}});let r=n(3940),o=n(3248),l=n(4472);async function u(e){let t=new Set;await a({...e,rootTree:e.updatedTree,fetchedSegments:t})}async function a(e){let{state:t,updatedTree:n,updatedCache:l,includeNextUrl:u,fetchedSegments:i,rootTree:c=n,canonicalUrl:s}=e,[,f,d,p]=n,h=[];if(d&&d!==s&&"refresh"===p&&!i.has(d)){i.add(d);let e=(0,o.fetchServerResponse)(new URL(d,location.origin),[c[0],c[1],c[2],"refetch"],u?t.nextUrl:null,t.buildId).then(e=>{let t=e[0];if("string"!=typeof t)for(let e of t)(0,r.applyFlightData)(l,l,e)});h.push(e)}for(let e in f){let n=a({state:t,updatedTree:f[e],updatedCache:l,includeNextUrl:u,fetchedSegments:i,rootTree:c,canonicalUrl:s});h.push(n)}await Promise.all(h)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5701:function(e,t){"use strict";var n,r,o,l;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return f},ACTION_NAVIGATE:function(){return a},ACTION_PREFETCH:function(){return s},ACTION_REFRESH:function(){return u},ACTION_RESTORE:function(){return i},ACTION_SERVER_ACTION:function(){return d},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return p}});let u="refresh",a="navigate",i="restore",c="server-patch",s="prefetch",f="fast-refresh",d="server-action";function p(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(o=n||(n={})).AUTO="auto",o.FULL="full",o.TEMPORARY="temporary",(l=r||(r={})).fresh="fresh",l.reusable="reusable",l.expired="expired",l.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2071:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return f}});let r=n(5701),o=n(7567),l=n(3278),u=n(2467),a=n(3070),i=n(4684),c=n(5142),s=n(2951),f="undefined"==typeof window?function(e,t){return e}:function(e,t){switch(t.type){case r.ACTION_NAVIGATE:return(0,o.navigateReducer)(e,t);case r.ACTION_SERVER_PATCH:return(0,l.serverPatchReducer)(e,t);case r.ACTION_RESTORE:return(0,u.restoreReducer)(e,t);case r.ACTION_REFRESH:return(0,a.refreshReducer)(e,t);case r.ACTION_FAST_REFRESH:return(0,c.fastRefreshReducer)(e,t);case r.ACTION_PREFETCH:return(0,i.prefetchReducer)(e,t);case r.ACTION_SERVER_ACTION:return(0,s.serverActionReducer)(e,t);default:throw Error("Unknown action")}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5221:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldHardNavigate",{enumerable:!0,get:function(){return function e(t,n){let[o,l]=n,[u,a]=t;return(0,r.matchSegment)(u,o)?!(t.length<=2)&&e(t.slice(2),l[a]):!!Array.isArray(u)}}});let r=n(7726);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7929:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return r.staticGenerationAsyncStorage}});let r=n(1486);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6111:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unresolvedThenable",{enumerable:!0,get:function(){return n}});let n={then:()=>{}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3128:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{useReducerWithReduxDevtools:function(){return i},useUnwrapState:function(){return a}});let r=n(1330)._(n(116)),o=n(5701),l=n(8262);function u(e){if(e instanceof Map){let t={};for(let[n,r]of e.entries()){if("function"==typeof r){t[n]="fn()";continue}if("object"==typeof r&&null!==r){if(r.$$typeof){t[n]=r.$$typeof.toString();continue}if(r._bundlerConfig){t[n]="FlightData";continue}}t[n]=u(r)}return t}if("object"==typeof e&&null!==e){let t={};for(let n in e){let r=e[n];if("function"==typeof r){t[n]="fn()";continue}if("object"==typeof r&&null!==r){if(r.$$typeof){t[n]=r.$$typeof.toString();continue}if(r.hasOwnProperty("_bundlerConfig")){t[n]="FlightData";continue}}t[n]=u(r)}return t}return Array.isArray(e)?e.map(u):e}function a(e){return(0,o.isThenable)(e)?(0,r.use)(e):e}let i="undefined"!=typeof window?function(e){let[t,n]=r.default.useState(e),o=(0,r.useContext)(l.ActionQueueContext);if(!o)throw Error("Invariant: Missing ActionQueueContext");let a=(0,r.useRef)(),i=(0,r.useRef)();return(0,r.useEffect)(()=>{if(!a.current&&!1!==i.current){if(void 0===i.current&&void 0===window.__REDUX_DEVTOOLS_EXTENSION__){i.current=!1;return}return a.current=window.__REDUX_DEVTOOLS_EXTENSION__.connect({instanceId:8e3,name:"next-router"}),a.current&&(a.current.init(u(e)),o&&(o.devToolsInstance=a.current)),()=>{a.current=void 0}}},[e,o]),[t,(0,r.useCallback)(t=>{o.state||(o.state=e),o.dispatch(t,n)},[o,e]),(0,r.useCallback)(e=>{a.current&&a.current.send({type:"RENDER_SYNC"},u(e))},[])]}:function(e){return[e,()=>{},()=>{}]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7607:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let r=n(405);function o(e){return(0,r.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6393:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return l}});let r=n(2632),o=n(1531),l=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:n,hash:l}=(0,o.parsePath)(e);return""+(0,r.removeTrailingSlash)(t)+n+l};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4608:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(6623);function o(e){let t="function"==typeof reportError?reportError:e=>{window.console.error(e)};(0,r.isBailoutToCSRError)(e)||t(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1582:function(e,t,n){"use strict";function r(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return r}}),n(7607),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4123:function(e,t){"use strict";function n(e,t){var n=e.length;for(e.push(t);0>>1,o=e[r];if(0>>1;rl(i,n))cl(s,i)?(e[r]=s,e[c]=n,r=c):(e[r]=i,e[a]=n,r=a);else if(cl(s,n))e[r]=s,e[c]=n,r=c;else break}}return t}function l(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var u,a=performance;t.unstable_now=function(){return a.now()}}else{var i=Date,c=i.now();t.unstable_now=function(){return i.now()-c}}var s=[],f=[],d=1,p=null,h=3,y=!1,_=!1,v=!1,b="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,m="undefined"!=typeof setImmediate?setImmediate:null;function R(e){for(var t=r(f);null!==t;){if(null===t.callback)o(f);else if(t.startTime<=e)o(f),t.sortIndex=t.expirationTime,n(s,t);else break;t=r(f)}}function P(e){if(v=!1,R(e),!_){if(null!==r(s))_=!0,x();else{var t=r(f);null!==t&&A(P,t.startTime-e)}}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var O=!1,j=-1,E=5,S=-1;function w(){return!(t.unstable_now()-Se&&w());){var a=p.callback;if("function"==typeof a){p.callback=null,h=p.priorityLevel;var i=a(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof i){p.callback=i,R(e),n=!0;break t}p===r(s)&&o(s),R(e)}else o(s);p=r(s)}if(null!==p)n=!0;else{var c=r(f);null!==c&&A(P,c.startTime-e),n=!1}}break e}finally{p=null,h=l,y=!1}n=void 0}}finally{n?u():O=!1}}}if("function"==typeof m)u=function(){m(T)};else if("undefined"!=typeof MessageChannel){var M=new MessageChannel,C=M.port2;M.port1.onmessage=T,u=function(){C.postMessage(null)}}else u=function(){b(T,0)};function x(){O||(O=!0,u())}function A(e,n){j=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){_||y||(_=!0,x())},t.unstable_forceFrameRate=function(e){0>e||125u?(e.sortIndex=l,n(f,e),null===r(s)&&e===r(f)&&(v?(g(j),j=-1):v=!0,A(P,l-u))):(e.sortIndex=a,n(s,e),_||y||(_=!0,x())),e},t.unstable_shouldYield=w,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},6947:function(e,t,n){"use strict";e.exports=n(4123)},7584:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentParam",{enumerable:!0,get:function(){return o}});let r=n(607);function o(e){let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{type:"optional-catchall",param:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{type:t?"catchall-intercepted":"catchall",param:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{type:t?"dynamic-intercepted":"dynamic",param:e.slice(1,-1)}:null}},8142:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HMR_ACTIONS_SENT_TO_BROWSER",{enumerable:!0,get:function(){return n}}),(r=n||(n={})).ADDED_PAGE="addedPage",r.REMOVED_PAGE="removedPage",r.RELOAD_PAGE="reloadPage",r.SERVER_COMPONENT_CHANGES="serverComponentChanges",r.MIDDLEWARE_CHANGES="middlewareChanges",r.CLIENT_CHANGES="clientChanges",r.SERVER_ONLY_CHANGES="serverOnlyChanges",r.SYNC="sync",r.BUILT="built",r.BUILDING="building",r.DEV_PAGES_MANIFEST_UPDATE="devPagesManifestUpdate",r.TURBOPACK_MESSAGE="turbopack-message",r.SERVER_ERROR="serverError",r.TURBOPACK_CONNECTED="turbopack-connected"},607:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return u},isInterceptionRouteAppPath:function(){return l}});let r=n(9704),o=["(..)(..)","(.)","(..)","(...)"];function l(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function u(e){let t,n,l;for(let r of e.split("/"))if(n=o.find(e=>r.startsWith(e))){[t,l]=e.split(n,2);break}if(!t||!n||!l)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,r.normalizeAppPath)(t),n){case"(.)":l="/"===t?`/${l}`:t+"/"+l;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);l=t.split("/").slice(0,-1).concat(l).join("/");break;case"(...)":l="/"+l;break;case"(..)(..)":let u=t.split("/");if(u.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);l=u.slice(0,-2).concat(l).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:l}}},1653:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return u},LayoutRouterContext:function(){return l},MissingSlotContext:function(){return i},TemplateContext:function(){return a}});let r=n(7591)._(n(116)),o=r.default.createContext(null),l=r.default.createContext(null),u=r.default.createContext(null),a=r.default.createContext(null),i=r.default.createContext(new Set)},9289:function(e,t){"use strict";function n(e){let t=5381;for(let n=0;n>>0}function r(e){return n(e).toString(36).slice(0,5)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{djb2Hash:function(){return n},hexHash:function(){return r}})},5646:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return r}});let r=n(7591)._(n(116)).default.createContext({})},9494:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PathParamsContext:function(){return u},PathnameContext:function(){return l},SearchParamsContext:function(){return o}});let r=n(116),o=(0,r.createContext)(null),l=(0,r.createContext)(null),u=(0,r.createContext)(null)},6623:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{BailoutToCSRError:function(){return r},isBailoutToCSRError:function(){return o}});let n="BAILOUT_TO_CLIENT_SIDE_RENDERING";class r extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=n}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}},6551:function(e,t){"use strict";function n(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return n}})},8262:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ActionQueueContext:function(){return a},createMutableActionQueue:function(){return s}});let r=n(1330),o=n(5701),l=n(2071),u=r._(n(116)),a=u.default.createContext(null);function i(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending?c({actionQueue:e,action:e.pending,setState:t}):e.needsRefresh&&(e.needsRefresh=!1,e.dispatch({type:o.ACTION_REFRESH,origin:window.location.origin},t)))}async function c(e){let{actionQueue:t,action:n,setState:r}=e,l=t.state;if(!l)throw Error("Invariant: Router state not initialized");t.pending=n;let u=n.payload,a=t.action(l,u);function c(e){n.discarded||(t.state=e,t.devToolsInstance&&t.devToolsInstance.send(u,e),i(t,r),n.resolve(e))}(0,o.isThenable)(a)?a.then(c,e=>{i(t,r),n.reject(e)}):c(a)}function s(){let e={state:null,dispatch:(t,n)=>(function(e,t,n){let r={resolve:n,reject:()=>{}};if(t.type!==o.ACTION_RESTORE){let e=new Promise((e,t)=>{r={resolve:e,reject:t}});(0,u.startTransition)(()=>{n(e)})}let l={payload:t,next:null,resolve:r.resolve,reject:r.reject};null===e.pending?(e.last=l,c({actionQueue:e,action:l,setState:n})):t.type===o.ACTION_NAVIGATE||t.type===o.ACTION_RESTORE?(e.pending.discarded=!0,e.last=l,e.pending.payload.type===o.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),c({actionQueue:e,action:l,setState:n})):(null!==e.last&&(e.last.next=l),e.last=l)})(e,t,n),action:async(e,t)=>{if(null===e)throw Error("Invariant: Router state not initialized");return(0,l.reducer)(e,t)},pending:null,last:null};return e}},9901:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let r=n(1531);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:n,query:o,hash:l}=(0,r.parsePath)(e);return""+t+n+o+l}},9704:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{normalizeAppPath:function(){return l},normalizeRscURL:function(){return u}});let r=n(6551),o=n(4472);function l(e){return(0,r.ensureLeadingSlash)(e.split("/").reduce((e,t,n,r)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&n===r.length-1?e:e+"/"+t,""))}function u(e){return e.replace(/\.rsc($|\?)/,"$1")}},7760:function(e,t){"use strict";function n(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let n=document.documentElement,r=n.style.scrollBehavior;n.style.scrollBehavior="auto",t.dontForceLayout||n.getClientRects(),e(),n.style.scrollBehavior=r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return n}})},7926:function(e,t){"use strict";function n(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return n}})},1531:function(e,t){"use strict";function n(e){let t=e.indexOf("#"),n=e.indexOf("?"),r=n>-1&&(t<0||n-1?{pathname:e.substring(0,r?n:t),query:r?e.substring(n,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return n}})},405:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let r=n(1531);function o(e,t){if("string"!=typeof e)return!1;let{pathname:n}=(0,r.parsePath)(e);return n===t||n.startsWith(t+"/")}},2632:function(e,t){"use strict";function n(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return n}})},4472:function(e,t){"use strict";function n(e){return"("===e[0]&&e.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DEFAULT_SEGMENT_KEY:function(){return o},PAGE_SEGMENT_KEY:function(){return r},isGroupSegment:function(){return n}});let r="__PAGE__",o="__DEFAULT__"},6465:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return l}});let r=n(1330)._(n(116)),o=r.default.createContext(null);function l(e){let t=(0,r.useContext)(o);t&&t(e)}},3867:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},7558:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(4802).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4802:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return l}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let o=globalThis.AsyncLocalStorage;function l(){return o?new o:new r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9523:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(4802).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1486:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(4802).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3148:function(e,t,n){"use strict";var r=n(7860);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},7860:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(756)},682:function(e,t,n){"use strict";var r=n(7860),o={stream:!0},l=new Map;function u(e){var t=n(e);return"function"!=typeof t.then||"fulfilled"===t.status?null:(t.then(function(e){t.status="fulfilled",t.value=e},function(e){t.status="rejected",t.reason=e}),t)}function a(){}var i=new Map,c=n.u;n.u=function(e){var t=i.get(e);return void 0!==t?t:c(e)};var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,f=Symbol.for("react.element"),d=Symbol.for("react.lazy"),p=Symbol.iterator,h=Array.isArray,y=Object.getPrototypeOf,_=Object.prototype,v=new WeakMap;function b(e,t,n,r){this.status=e,this.value=t,this.reason=n,this._response=r}function g(e){switch(e.status){case"resolved_model":S(e);break;case"resolved_module":w(e)}switch(e.status){case"fulfilled":return e.value;case"pending":case"blocked":case"cyclic":throw e;default:throw e.reason}}function m(e,t){for(var n=0;nh?(_=h,h=3,p++):(_=0,h=3);continue;case 2:44===(m=d[p++])?h=4:v=v<<4|(96d.length&&(m=-1)}var j=d.byteOffset+p;if(-1{Object.assign(A,s)},setAudio:(A,e)=>{A.audio=e.payload},setAudioInput:(A,e)=>{A.audioInput=e.payload},setAudioOutput:(A,e)=>{A.audioOutput=e.payload},setAudioBitRate:(A,e)=>{A.audioBitRate=e.payload},setAudioCodecType:(A,e)=>{A.audioCodecType=e.payload},setAudioContentHint:(A,e)=>{if(A.audioContentHint=e.payload,A.soraContents.localMediaStream)for(let e of A.soraContents.localMediaStream.getAudioTracks())e.contentHint=A.audioContentHint},setAutoGainControl:(A,e)=>{A.autoGainControl=e.payload},setClientId:(A,e)=>{A.clientId=e.payload},setChannelId:(A,e)=>{A.channelId=e.payload},setTimelineMessage:(A,e)=>{A.timelineMessages.push(e.payload)},setDataChannelSignaling:(A,e)=>{A.dataChannelSignaling=e.payload},setDataChannels:(A,e)=>{A.dataChannels=e.payload},setDataChannelMessage:(A,e)=>{A.dataChannelMessages.push(e.payload)},setGoogCpuOveruseDetection:(A,e)=>{A.googCpuOveruseDetection=e.payload},setDisplayResolution:(A,e)=>{A.displayResolution=e.payload},setE2EE:(A,e)=>{A.e2ee=e.payload},setEchoCancellation:(A,e)=>{A.echoCancellation=e.payload},setEchoCancellationType:(A,e)=>{A.echoCancellationType=e.payload},setEnabledClientId:(A,e)=>{A.enabledClientId=e.payload},setEnabledDataChannels:(A,e)=>{A.enabledDataChannels=e.payload},setEnabledDataChannel:(A,e)=>{A.enabledDataChannel=e.payload},setEnabledMetadata:(A,e)=>{A.enabledMetadata=e.payload},setIgnoreDisconnectWebSocket:(A,e)=>{A.ignoreDisconnectWebSocket=e.payload},setSignalingMessage:(A,e)=>{A.signalingMessages.push(e.payload)},setEnabledForwardingFilter:(A,e)=>{A.enabledForwardingFilter=e.payload},setEnabledSignalingNotifyMetadata:(A,e)=>{A.enabledSignalingNotifyMetadata=e.payload},setEnabledSignalingUrlCandidates:(A,e)=>{A.enabledSignalingUrlCandidates=e.payload},setEnabledVideoVP9Params:(A,e)=>{A.enabledVideoVP9Params=e.payload},setEnabledVideoH264Params:(A,e)=>{A.enabledVideoH264Params=e.payload},setEnabledVideoH265Params:(A,e)=>{A.enabledVideoH265Params=e.payload},setEnabledVideoAV1Params:(A,e)=>{A.enabledVideoAV1Params=e.payload},setFakeVolume:(A,e)=>{let t=Number.parseFloat(e.payload);Number.isNaN(t)?A.fakeVolume="0":1{A.fakeContents.gainNode=e.payload},setInitialFakeContents:A=>{if(A.fakeContents.colorCode=Math.floor(16777215*Math.random()),URL.createObjectURL){let e=URL.createObjectURL(new Blob([a.lt],{type:"application/javascript"}));A.fakeContents.worker=new Worker(e)}},setFrameRate:(A,e)=>{A.frameRate=e.payload},setMute:(A,e)=>{A.mute=e.payload},setMediaStats:(A,e)=>{A.mediaStats=e.payload},setNoiseSuppression:(A,e)=>{A.noiseSuppression=e.payload},setMediaType:(A,e)=>{"mediacaptureRegion"===e.payload&&void 0===window.CropTarget?A.mediaType="getUserMedia":A.mediaType=e.payload},setMetadata:(A,e)=>{A.metadata=e.payload},setResolution:(A,e)=>{A.resolution=e.payload},setSignalingNotifyMetadata:(A,e)=>{A.signalingNotifyMetadata=e.payload},setSignalingUrlCandidates:(A,e)=>{A.signalingUrlCandidates=e.payload},setForwardingFilter:(A,e)=>{A.forwardingFilter=e.payload},setSimulcastRid:(A,e)=>{A.simulcastRid=e.payload},setSpotlightNumber:(A,e)=>{A.spotlightNumber=e.payload},setSpotlightFocusRid:(A,e)=>{A.spotlightFocusRid=e.payload},setSpotlightUnfocusRid:(A,e)=>{A.spotlightUnfocusRid=e.payload},setVideo:(A,e)=>{A.video=e.payload},setVideoInput:(A,e)=>{A.videoInput=e.payload},setVideoBitRate:(A,e)=>{A.videoBitRate=e.payload},setVideoCodecType:(A,e)=>{A.videoCodecType=e.payload},setVideoContentHint:(A,e)=>{if(A.videoContentHint=e.payload,A.soraContents.localMediaStream)for(let e of A.soraContents.localMediaStream.getVideoTracks())e.contentHint=A.videoContentHint},setVideoVP9Params:(A,e)=>{A.videoVP9Params=e.payload},setVideoH264Params:(A,e)=>{A.videoH264Params=e.payload},setVideoH265Params:(A,e)=>{A.videoH265Params=e.payload},setVideoAV1Params:(A,e)=>{A.videoAV1Params=e.payload},setSora:(A,e)=>{A.soraContents.sora=e.payload,A.soraContents.sora||(A.soraContents.datachannels=[])},setSoraSessionId:(A,e)=>{A.soraContents.sessionId=e.payload},setSoraConnectionId:(A,e)=>{A.soraContents.connectionId=e.payload},setSoraClientId:(A,e)=>{A.soraContents.clientId=e.payload},setSoraTurnUrl:(A,e)=>{A.soraContents.turnUrl=e.payload},setSoraConnectionStatus:(A,e)=>{A.soraContents.connectionStatus=e.payload},setSoraReconnecting:(A,e)=>{A.soraContents.reconnecting=e.payload,!1===A.soraContents.reconnecting&&(A.soraContents.reconnectingTrials=0)},setSoraReconnectingTrials:(A,e)=>{A.soraContents.reconnectingTrials=e.payload},setSoraDataChannels:(A,e)=>{A.soraContents.datachannels.push(e.payload)},setLocalMediaStream:(A,e)=>{A.soraContents.localMediaStream&&A.soraContents.localMediaStream.getTracks().filter(A=>{A.stop()}),A.soraContents.localMediaStream=e.payload},setRemoteClient:(A,e)=>{A.soraContents.remoteClients.push(e.payload)},setSoraRemoteClientId:(A,e)=>{for(let t of A.soraContents.remoteClients)t.connectionId===e.payload.connectionId&&(t.clientId=e.payload.clientId)},setStatsReport:(A,e)=>{A.soraContents.prevStatsReport=A.soraContents.statsReport,A.soraContents.statsReport=e.payload},removeRemoteClient:(A,e)=>{let t=A.soraContents.remoteClients.filter(A=>A.connectionId!==e.payload);A.soraContents.remoteClients=t},removeAllRemoteClients:A=>{A.soraContents.remoteClients=[]},setAudioInputDevices:(A,e)=>{A.audioInputDevices=e.payload},setVideoInputDevices:(A,e)=>{A.videoInputDevices=e.payload},setAudioOutputDevices:(A,e)=>{A.audioOutputDevices=e.payload},setSoraInfoAlertMessage:(A,e)=>{let t={title:"Sora info",type:"info",message:e.payload,timestamp:new Date().getTime()};l(A.alertMessages,A.logMessages,t)},setSoraErrorAlertMessage:(A,e)=>{let t={title:"Sora error",type:"error",message:e.payload,timestamp:new Date().getTime()};l(A.alertMessages,A.logMessages,t)},setAPIInfoAlertMessage:(A,e)=>{let t={title:"API info",type:"info",message:e.payload,timestamp:new Date().getTime()};l(A.alertMessages,A.logMessages,t)},setAPIErrorAlertMessage:(A,e)=>{let t={title:"API error",type:"error",message:e.payload,timestamp:new Date().getTime()};l(A.alertMessages,A.logMessages,t)},deleteAlertMessage:(A,e)=>{let t=A.alertMessages.filter(A=>A.timestamp!==e.payload);A.alertMessages=t},setDebug:(A,e)=>{A.debug=e.payload},setDebugFilterText:(A,e)=>{A.debugFilterText=e.payload},setDebugType:(A,e)=>{A.debugFilterText="",A.debugType=e.payload},setLogMessages:(A,e)=>{A.logMessages.push({timestamp:new Date().getTime(),message:{title:e.payload.title,description:e.payload.description}})},setNotifyMessages:(A,e)=>{A.notifyMessages.push(e.payload)},setPushMessages:(A,e)=>{A.pushMessages.push(e.payload)},setFocusedSpotlightConnectionId:(A,e)=>{A.focusedSpotlightConnectionIds[e.payload]=!0},setUnFocusedSpotlightConnectionId:(A,e)=>{A.focusedSpotlightConnectionIds[e.payload]=!1},deleteFocusedSpotlightConnectionId:(A,e)=>{delete A.focusedSpotlightConnectionIds[e.payload]},setShowStats:(A,e)=>{A.showStats=e.payload},setCameraDevice:(A,e)=>{A.cameraDevice=e.payload},setMicDevice:(A,e)=>{A.micDevice=e.payload},setAudioTrack:(A,e)=>{if(A.audioTrack=e.payload,A.soraContents.localMediaStream)for(let e of A.soraContents.localMediaStream.getAudioTracks())e.enabled=A.audioTrack},setVideoTrack:(A,e)=>{if(A.videoTrack=e.payload,A.soraContents.localMediaStream)for(let e of A.soraContents.localMediaStream.getVideoTracks())e.enabled=A.videoTrack},setRole:(A,e)=>{A.role=e.payload},setMultistream:(A,e)=>{A.multistream=e.payload},setSimulcast:(A,e)=>{A.simulcast=e.payload},setSpotlight:(A,e)=>{A.spotlight=e.payload},setReconnect:(A,e)=>{A.reconnect=e.payload},setApiUrl:(A,e)=>{A.apiUrl=e.payload},clearDataChannelMessages:A=>{A.dataChannelMessages=[]},setAspectRatio:(A,e)=>{A.aspectRatio=e.payload},setResizeMode:(A,e)=>{A.resizeMode=e.payload},setLightAdjustment:(A,e)=>{if(""!==e.payload&&null===A.lightAdjustmentProcessor){let e=new r.jA;A.lightAdjustmentProcessor=e}A.lightAdjustment=e.payload},setBlurRadius:(A,e)=>{if(""!==e.payload&&null===A.virtualBackgroundProcessor){let e=new i.sz("https://cdn.jsdelivr.net/npm/@shiguredo/virtual-background@latest/dist");A.virtualBackgroundProcessor=e}A.blurRadius=e.payload},setMediaProcessorsNoiseSuppression:(A,e)=>{if(e.payload&&null===A.noiseSuppressionProcessor){let e=new o.b("https://cdn.jsdelivr.net/npm/@shiguredo/noise-suppression@latest/dist");A.noiseSuppressionProcessor=e}A.mediaProcessorsNoiseSuppression=e.payload},setBundleId:(A,e)=>{A.bundleId=e.payload},setEnabledBundleId:(A,e)=>{A.enabledBundleId=e.payload},setFacingMode:(A,e)=>{A.facingMode=e.payload},setAudioStreamingLanguageCode:(A,e)=>{A.audioStreamingLanguageCode=e.payload},setEnabledAudioStreamingLanguageCode:(A,e)=>{A.enabledAudioStreamingLanguageCode=e.payload}}});function l(A,e,t){if(10<=A.length)for(let e=0;e<=A.length-5;e++)A.pop();A.unshift(t),e.push({timestamp:t.timestamp,message:{title:"ALERT MESSAGE ".concat(t.title),description:JSON.stringify({title:t.title,type:t.type,message:t.message})}})}},8154:function(A,e,t){"use strict";t.d(e,{h:function(){return o}});var n=t(5810);t(3054);var r=t(2838);let o=(0,n.xC)({reducer:r.slice.reducer,middleware:A=>A({serializableCheck:{ignoredActions:["soraDevtools/setSora","soraDevtools/setLocalMediaStream","soraDevtools/setRemoteClient","soraDevtools/setFakeContentsGainNode","soraDevtools/setDataChannelMessage"],ignoredPaths:["soraContents","fakeContents","dataChannelMessages","logMessages","notifyMessages","pushMessages","signalingMessages","lightAdjustmentProcessor","virtualBackgroundProcessor","noiseSuppressionProcessor"]},immutableCheck:{ignoredPaths:["soraContents","fakeContents","dataChannelMessages","logMessages","notifyMessages","pushMessages","signalingMessages","noiseSuppressionProcessor"]}})})},983:function(A,e,t){"use strict";t.d(e,{Ii:function(){return y},xR:function(){return s},o1:function(){return a},nT:function(){return I},iN:function(){return g},G_:function(){return m},l9:function(){return w},aF:function(){return C},PS:function(){return d},cJ:function(){return f},pT:function(){return O},kt:function(){return Q},x$:function(){return T},Xv:function(){return v},w_:function(){return h},u9:function(){return r},ad:function(){return u},L4:function(){return b},K$:function(){return M},VE:function(){return o},WJ:function(){return B},VJ:function(){return i},I7:function(){return p},Xr:function(){return E},Q5:function(){return l},Sh:function(){return c},QO:function(){return D},lt:function(){return F}});var n=JSON.parse('{"channelId":{"description":"接続するチャネルの ID を指定します。\\n1-255 文字までの文字列を指定できます。"},"role":{"description":"クライアントの役割を指定します。"},"multistream":{"description":"マルチストリームを使用するかどうかを指定します。Sora は未指定の場合、マルチストリームを使用します。"},"simulcast":{"description":"サイマルキャストを使用するかどうかを指定します。"},"simulcastRid":{"description":"サイマルキャストで配信されている映像を受信する際のエンコードの初期値を指定します。"},"spotlight":{"description":"スポットライトを使用するかどうかを指定します。"},"spotlightNumber":{"description":"スポットライトでフォーカスする配信数の最大値を指定します。"},"spotlightFocusRid":{"description":"スポットライトでフォーカスした場合の映像を受信する際のエンコードの初期値を指定します。"},"spotlightUnfocusRid":{"description":"スポットライトでフォーカスが外れた場合の映像を受信する際のエンコードの初期値を指定します。"},"audio":{"description":"音声配信をするかどうかを指定します。"},"audioCodecType":{"description":"音声のコーデックタイプを指定します。"},"audioBitRate":{"description":"音声のビットレートを指定します。"},"video":{"description":"映像配信をするかどうかを指定します。"},"videoCodecType":{"description":"映像のコーデックタイプを指定します。"},"videoBitRate":{"description":"映像のビットレートを指定します。"},"videoVP9Params":{"description":"映像のコーデックタイプに VP9 を指定した場合の設定を指定します。"},"videoH264Params":{"description":"映像のコーデックタイプに H264 を指定した場合の設定を指定します。"},"videoH265Params":{"description":"映像のコーデックタイプに H265 を指定した場合の設定を指定します。"},"videoAV1Params":{"description":"映像のコーデックタイプに AV1 を指定した場合の設定を指定します。"},"e2ee":{"description":"E2EE(End-to-End Encryption) を使用するかどうかを指定します。"},"reconnect":{"description":"一度接続に成功したあとに意図しない切断があった場合に再接続するかどうかを指定します。"},"clientId":{"description":"接続時に任意のクライアント ID を指定できます。"},"metadata":{"description":"認証するための判断材料としてのメタデータを指定します。"},"bundleId":{"description":"複数接続時に同一の bundle_id を指定すると、同一 bundle_id の接続から音声や映像やメッセージングを受信しなくなります。"},"signalingNotifyMetadata":{"description":"クライアントが参加や離脱したときに送られるシグナリング通知に含まれるメタデータを指定します。"},"signalingUrlCandidates":{"description":"シグナリングをするURLを改行区切りで複数指定します。"},"forwardingFilter":{"description":"デフォルトの転送フィルターを指定します。"},"audioStreamingLanguageCode":{"description":"音声解析用の言語コードを指定します。"},"dataChannels":{"description":"メッセージング用の DataChannel を指定します。"},"dataChannelSignaling":{"description":"シグナリングを DataChannel 経由に切り替えるかどうかを指定します。"},"ignoreDisconnectWebSocket":{"description":"シグナリングを DataChannel 経由に切り替えた際に、 WebSocket が閉じても、接続が切断しないようにするかどうかを指定します。"},"mediaType":{"description":"メディアタイプを指定します。\\ngetUserMedia: デバイスのカメラ/マイクをメディアとして使用します。\\ngetDisplayMedia: ディスプレイまたはその一部(ウィンドウ等)をメディアとして使用します。\\nfakeMedia: ダミーの映像と音声をメディアとして使用します\\nmediacaptureRegion: 現在開いているタブの一部をメディアとして使用します。"},"fakeVolume":{"description":"mediaType に fakeMedia を選択した際の音量を指定します。"},"audioContentHint":{"description":"MediaStreamTrack audio の contentHint を指定します。"},"autoGainControl":{"description":"MediaTrackConstraints の autoGainControl を指定します。"},"noiseSuppression":{"description":"MediaTrackConstraints の noiseSuppression を指定します。"},"echoCancellation":{"description":"MediaTrackConstraints の echoCancellation を指定します。"},"echoCancellationType":{"description":"MediaTrackConstraints の echoCancellationType を指定します。"},"mediaProcessorsNoiseSuppression":{"description":"shiguredo Media Processors のノイズ抑制を使用するかどうか指定します。"},"videoContentHint":{"description":"MediaStreamTrack video の contentHint を指定します。"},"resolution":{"description":"解像度を指定します。任意の解像度を指定する場合は、幅と高さを x 区切りで指定します。 (例: 640x480)"},"mediaStats":{"description":"映像の統計情報を映像に重ねて表示します。"},"frameRate":{"description":"MediaTrackConstraints の frameRate を指定します。"},"aspectRatio":{"description":"MediaTrackConstraints の aspectRatio を指定します。"},"resizeMode":{"description":"MediaTrackConstraints の resizeMode を指定します。"},"blurRadius":{"description":"shiguredo Media Processors の背景ぼかしを使用するかどうか指定します。"},"lightAdjustment":{"description":"shiguredo Media Processors のライト調整を使用するかどうか指定します。"},"audioInput":{"description":"音声入力を指定します。"},"videoInput":{"description":"映像入力を指定します。"},"audioOutput":{"description":"音声出力を指定します。"},"displayResolution":{"description":"画面に表示する際の解像度を指定します。任意の解像度を指定する場合は、幅と高さを x 区切りで指定します。 (例: 640x480)"},"micDevice":{"description":"Audio MediaStreamTrack を生成するかどうかを切り替えます。"},"cameraDevice":{"description":"Video MediaStreamTrack を生成するかどうかを切り替えます。"},"audioTrack":{"description":"Audio MediaStreamTrack の enabled 属性を切り替えます。"},"videoTrack":{"description":"video MediaStreamTrack の enabled 属性を切り替えます。"},"facingMode":{"description":"モバイルカメラのフロント/バックを切り替えます。"},"changeAllRecvStream":{"description":"サイマルキャストで受信中の全てのストリームの rid を操作します。"}}');let r=["","true","false"],o=["","true","false"],i=["","true","false"],a=["","OPUS"],s=["","8","16","24","32","64","96","128","256"],c=["","VP8","VP9","AV1","H264","H265"],l=["","10","30","50","100","300","500","800","1000","1500","2000","2500","3000","5000","10000","15000","20000","30000","50000"],g=["","true","false"],u=["","true","false"],d=["","true","false"],f=["","browser","system"],h=["getUserMedia","getDisplayMedia","fakeMedia","mediacaptureRegion"],E=["","1","2","3","4","5","6","7","8"],p=["","none","r0","r1","r2"],B=["","r0","r1","r2"],w=["","true","false"],Q=["","true","false"],C=["log","notify","push","stats","timeline","signaling","messaging","codec"],I=["","speech","speech-recognition","music"],D=["","motion","detail","text"],y=["","4:3","16:9","21:9"],b=["","none","crop-and-scale"],m=["","weak","medium","strong"],v=["","weak","medium","strong"],M=["sendrecv","sendonly","recvonly"],O=["","front","back"],F='\nself.onmessage = (event) => {\n const data = event.data;\n if (data.type === "start") {\n const interval = data.interval;\n self.counter = 0;\n const intervalId = setInterval(() => {\n const message = { type: "update", counter: self.counter };\n self.postMessage(message);\n self.counter++;\n }, interval);\n self.intervalId = intervalId;\n } else if (data.type === "stop") {\n if (self.intervalId) {\n clearInterval(self.intervalId);\n }\n const message = { type: "stop" };\n self.postMessage(message);\n }\n};\n',T=n},3632:function(A,e,t){"use strict";t.r(e);var n=t(2676);t(9377),t(8772);var r=t(4690),o=t(8154);e.default=A=>{let{Component:e,pageProps:t}=A;return(0,n.jsx)(r.zt,{store:o.h,children:(0,n.jsx)(e,{...t})})}},9377:function(){},8772:function(){},5021:function(A){!function(){var e={229:function(A){var e,t,n,r=A.exports={};function o(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function a(A){if(e===setTimeout)return setTimeout(A,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(A,0);try{return e(A,0)}catch(t){try{return e.call(null,A,0)}catch(t){return e.call(this,A,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(A){e=o}try{t="function"==typeof clearTimeout?clearTimeout:i}catch(A){t=i}}();var s=[],c=!1,l=-1;function g(){c&&n&&(c=!1,n.length?s=n.concat(s):l=-1,s.length&&u())}function u(){if(!c){var A=a(g);c=!0;for(var e=s.length;e;){for(n=s,s=[];++l1)for(var t=1;t=e.length?t(new a(h,f,new i(void 0,A[f]))):l(A[f],e[f],t,n,h,f,d);for(;f=0?(l(A[r],e[r],t,n,h,r,d),D=s(D,i)):l(A[r],void 0,t,n,h,r,d)}),D.forEach(function(A){l(void 0,e[A],t,n,h,A,d)})}d.length=d.length-1}}else A!==e&&("number"===p&&isNaN(A)&&isNaN(e)||t(new r(h,A,e)))}function g(A,e,t,n){return n=n||[],l(A,e,function(A){A&&n.push(A)},t),n.length?n:void 0}function u(A,e,t){if(A&&e&&t&&t.kind){for(var n=A,r=-1,o=t.path?t.path.length-1:0;++r0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({},y,A),t=e.logger,n=e.stateTransformer,r=e.errorTransformer,o=e.predicate,i=e.logErrors,a=e.diffPredicate;if(void 0===t)return function(){return function(A){return function(e){return A(e)}}};if(A.getState&&A.dispatch)return console.error("[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware:\n// Logger with default options\nimport { logger } from 'redux-logger'\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n// Or you can create your own logger with custom options http://bit.ly/redux-logger-options\nimport createLogger from 'redux-logger'\nconst logger = createLogger({\n // ...options\n});\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n"),function(){return function(A){return function(e){return A(e)}}};var s=[];return function(A){var t=A.getState;return function(A){return function(c){if("function"==typeof o&&!o(t,c))return A(c);var l={};s.push(l),l.started=w.now(),l.startedTime=new Date,l.prevState=n(t()),l.action=c;var u=void 0;if(i)try{u=A(c)}catch(A){l.error=r(A)}else u=A(c);l.took=w.now()-l.started,l.nextState=n(t());var f=e.diff&&"function"==typeof a?a(t,c):e.diff;if(function(A,e){var t,n,r=e.logger,o=e.actionTransformer,i=e.titleFormatter,a=void 0===i?(t=e.timestamp,n=e.duration,function(A,e,r){var o=["action"];return o.push("%c"+String(A.type)),t&&o.push("%c@ "+e),n&&o.push("%c(in "+r.toFixed(2)+" ms)"),o.join(" ")}):i,s=e.collapsed,c=e.colors,l=e.level,u=e.diff,f=void 0===e.titleFormatter;A.forEach(function(t,n){var i=t.started,h=t.startedTime,E=t.action,p=t.prevState,w=t.error,Q=t.took,I=t.nextState,y=A[n+1];y&&(I=y.prevState,Q=y.started-i);var b=o(E),m="function"==typeof s?s(function(){return I},E,t):s,v=B(h),M=c.title?"color: "+c.title(b)+";":"",O=["color: gray; font-weight: lighter;"];O.push(M),e.timestamp&&O.push("color: gray; font-weight: lighter;"),e.duration&&O.push("color: gray; font-weight: lighter;");var F=a(b,v,Q);try{m?c.title&&f?r.groupCollapsed.apply(r,["%c "+F].concat(O)):r.groupCollapsed(F):c.title&&f?r.group.apply(r,["%c "+F].concat(O)):r.group(F)}catch(A){r.log(F)}var T=d(l,b,[p],"prevState"),R=d(l,b,[b],"action"),S=d(l,b,[w,p],"error"),k=d(l,b,[I],"nextState");if(T){if(c.prevState){var P="color: "+c.prevState(p)+"; font-weight: bold";r[T]("%c prev state",P,p)}else r[T]("prev state",p)}if(R){if(c.action){var G="color: "+c.action(b)+"; font-weight: bold";r[R]("%c action ",G,b)}else r[R]("action ",b)}if(w&&S){if(c.error){var U="color: "+c.error(w,p)+"; font-weight: bold;";r[S]("%c error ",U,w)}else r[S]("error ",w)}if(k){if(c.nextState){var Y="color: "+c.nextState(I)+"; font-weight: bold";r[k]("%c next state",Y,I)}else r[k]("next state",I)}u&&function(A,e,t,n){var r=g(A,e);try{n?t.groupCollapsed("diff"):t.group("diff")}catch(A){t.log("diff")}r?r.forEach(function(A){var e=A.kind,n=function(A){var e=A.kind,t=A.path,n=A.lhs,r=A.rhs,o=A.index,i=A.item;switch(e){case"E":return[t.join("."),n,"→",r];case"N":return[t.join("."),r];case"D":return[t.join(".")];case"A":return[t.join(".")+"["+o+"]",i];default:return[]}}(A);t.log.apply(t,["%c "+D[e].text,"color: "+D[e].color+"; font-weight: bold"].concat(C(n)))}):t.log("—— no diff ——");try{t.groupEnd()}catch(A){t.log("—— diff end —— ")}}(p,I,r,m);try{r.groupEnd()}catch(A){r.log("—— log end ——")}})}(s,Object.assign({},e,{diff:f})),s.length=0,l.error)throw l.error;return u}}}}var h,E,p=function(A,e){return Array(e-A.toString().length+1).join("0")+A},B=function(A){return p(A.getHours(),2)+":"+p(A.getMinutes(),2)+":"+p(A.getSeconds(),2)+"."+p(A.getMilliseconds(),3)},w="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance:Date,Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},C=function(A){if(Array.isArray(A)){for(var e=0,t=Array(A.length);e0&&void 0!==arguments[0]?arguments[0]:{},e=A.dispatch,t=A.getState;return"function"==typeof e||"function"==typeof t?f()({dispatch:e,getState:t}):void console.error("\n[redux-logger v3] BREAKING CHANGE\n[redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.\n[redux-logger v3] Change\n[redux-logger v3] import createLogger from 'redux-logger'\n[redux-logger v3] to\n[redux-logger v3] import { createLogger } from 'redux-logger'\n")};A.defaults=y,A.createLogger=f,A.logger=b,A.default=b,Object.defineProperty(A,"__esModule",{value:!0})}(e)},6393:function(A,e,t){"use strict";/** +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{7716:function(A,e,t){"use strict";var n,r;A.exports=(null==(n=t.g.process)?void 0:n.env)&&"object"==typeof(null==(r=t.g.process)?void 0:r.env)?t.g.process:t(4374)},5207:function(A,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return t(7824)}])},6432:function(A,e,t){"use strict";t.d(e,{slice:function(){return c}});var n=t(1595),r=t(4517),o=t(8426),i=t(4029),a=t(6007);let s={alertMessages:[],audio:!0,audioBitRate:"",audioCodecType:"",audioContentHint:"",audioInput:"",audioInputDevices:[],audioOutput:"",audioOutputDevices:[],autoGainControl:"",blurRadius:"",bundleId:"",enabledBundleId:!1,clientId:"",channelId:"sora",googCpuOveruseDetection:null,timelineMessages:[],debug:!1,debugFilterText:"",debugType:"timeline",dataChannelSignaling:"",dataChannels:"",dataChannelMessages:[],displayResolution:"",e2ee:!1,echoCancellation:"",echoCancellationType:"",enabledClientId:!1,enabledDataChannel:!1,enabledDataChannels:!1,enabledForwardingFilter:!1,enabledMetadata:!1,enabledSignalingNotifyMetadata:!1,enabledSignalingUrlCandidates:!1,enabledVideoVP9Params:!1,enabledVideoH264Params:!1,enabledVideoH265Params:!1,enabledVideoAV1Params:!1,audioStreamingLanguageCode:"",enabledAudioStreamingLanguageCode:!1,fakeVolume:"0",fakeContents:{worker:null,colorCode:0,gainNode:null},frameRate:"",soraContents:{connectionStatus:"initializing",reconnecting:!1,reconnectingTrials:0,sora:null,connectionId:null,clientId:null,sessionId:null,localMediaStream:null,remoteClients:[],prevStatsReport:[],statsReport:[],datachannels:[],turnUrl:null},ignoreDisconnectWebSocket:"",logMessages:[],mediaProcessorsNoiseSuppression:!1,mediaStats:!1,mediaType:"getUserMedia",metadata:"",multistream:"",mute:!1,noiseSuppression:"",notifyMessages:[],pushMessages:[],resolution:"",showStats:!1,simulcast:"",spotlight:"",signalingMessages:[],signalingNotifyMetadata:"",signalingUrlCandidates:[],forwardingFilter:"",simulcastRid:"",spotlightNumber:"",spotlightFocusRid:"",spotlightUnfocusRid:"",focusedSpotlightConnectionIds:{},video:!0,videoBitRate:"",videoCodecType:"",videoContentHint:"",videoInput:"",videoInputDevices:[],videoVP9Params:"",videoH264Params:"",videoH265Params:"",videoAV1Params:"",version:"2024.1.6",cameraDevice:!0,videoTrack:!0,micDevice:!0,audioTrack:!0,role:"sendrecv",reconnect:!1,apiUrl:null,aspectRatio:"",resizeMode:"",lightAdjustment:"",lightAdjustmentProcessor:null,noiseSuppressionProcessor:null,virtualBackgroundProcessor:null,facingMode:""},c=(0,n.oM)({name:"soraDevtools",initialState:s,reducers:{resetState:A=>{Object.assign(A,s)},setAudio:(A,e)=>{A.audio=e.payload},setAudioInput:(A,e)=>{A.audioInput=e.payload},setAudioOutput:(A,e)=>{A.audioOutput=e.payload},setAudioBitRate:(A,e)=>{A.audioBitRate=e.payload},setAudioCodecType:(A,e)=>{A.audioCodecType=e.payload},setAudioContentHint:(A,e)=>{if(A.audioContentHint=e.payload,A.soraContents.localMediaStream)for(let e of A.soraContents.localMediaStream.getAudioTracks())e.contentHint=A.audioContentHint},setAutoGainControl:(A,e)=>{A.autoGainControl=e.payload},setClientId:(A,e)=>{A.clientId=e.payload},setChannelId:(A,e)=>{A.channelId=e.payload},setTimelineMessage:(A,e)=>{A.timelineMessages.push(e.payload)},setDataChannelSignaling:(A,e)=>{A.dataChannelSignaling=e.payload},setDataChannels:(A,e)=>{A.dataChannels=e.payload},setDataChannelMessage:(A,e)=>{A.dataChannelMessages.push(e.payload)},setGoogCpuOveruseDetection:(A,e)=>{A.googCpuOveruseDetection=e.payload},setDisplayResolution:(A,e)=>{A.displayResolution=e.payload},setE2EE:(A,e)=>{A.e2ee=e.payload},setEchoCancellation:(A,e)=>{A.echoCancellation=e.payload},setEchoCancellationType:(A,e)=>{A.echoCancellationType=e.payload},setEnabledClientId:(A,e)=>{A.enabledClientId=e.payload},setEnabledDataChannels:(A,e)=>{A.enabledDataChannels=e.payload},setEnabledDataChannel:(A,e)=>{A.enabledDataChannel=e.payload},setEnabledMetadata:(A,e)=>{A.enabledMetadata=e.payload},setIgnoreDisconnectWebSocket:(A,e)=>{A.ignoreDisconnectWebSocket=e.payload},setSignalingMessage:(A,e)=>{A.signalingMessages.push(e.payload)},setEnabledForwardingFilter:(A,e)=>{A.enabledForwardingFilter=e.payload},setEnabledSignalingNotifyMetadata:(A,e)=>{A.enabledSignalingNotifyMetadata=e.payload},setEnabledSignalingUrlCandidates:(A,e)=>{A.enabledSignalingUrlCandidates=e.payload},setEnabledVideoVP9Params:(A,e)=>{A.enabledVideoVP9Params=e.payload},setEnabledVideoH264Params:(A,e)=>{A.enabledVideoH264Params=e.payload},setEnabledVideoH265Params:(A,e)=>{A.enabledVideoH265Params=e.payload},setEnabledVideoAV1Params:(A,e)=>{A.enabledVideoAV1Params=e.payload},setFakeVolume:(A,e)=>{let t=Number.parseFloat(e.payload);Number.isNaN(t)?A.fakeVolume="0":1{A.fakeContents.gainNode=e.payload},setInitialFakeContents:A=>{if(A.fakeContents.colorCode=Math.floor(16777215*Math.random()),URL.createObjectURL){let e=URL.createObjectURL(new Blob([a.lt],{type:"application/javascript"}));A.fakeContents.worker=new Worker(e)}},setFrameRate:(A,e)=>{A.frameRate=e.payload},setMute:(A,e)=>{A.mute=e.payload},setMediaStats:(A,e)=>{A.mediaStats=e.payload},setNoiseSuppression:(A,e)=>{A.noiseSuppression=e.payload},setMediaType:(A,e)=>{"mediacaptureRegion"===e.payload&&void 0===window.CropTarget?A.mediaType="getUserMedia":A.mediaType=e.payload},setMetadata:(A,e)=>{A.metadata=e.payload},setResolution:(A,e)=>{A.resolution=e.payload},setSignalingNotifyMetadata:(A,e)=>{A.signalingNotifyMetadata=e.payload},setSignalingUrlCandidates:(A,e)=>{A.signalingUrlCandidates=e.payload},setForwardingFilter:(A,e)=>{A.forwardingFilter=e.payload},setSimulcastRid:(A,e)=>{A.simulcastRid=e.payload},setSpotlightNumber:(A,e)=>{A.spotlightNumber=e.payload},setSpotlightFocusRid:(A,e)=>{A.spotlightFocusRid=e.payload},setSpotlightUnfocusRid:(A,e)=>{A.spotlightUnfocusRid=e.payload},setVideo:(A,e)=>{A.video=e.payload},setVideoInput:(A,e)=>{A.videoInput=e.payload},setVideoBitRate:(A,e)=>{A.videoBitRate=e.payload},setVideoCodecType:(A,e)=>{A.videoCodecType=e.payload},setVideoContentHint:(A,e)=>{if(A.videoContentHint=e.payload,A.soraContents.localMediaStream)for(let e of A.soraContents.localMediaStream.getVideoTracks())e.contentHint=A.videoContentHint},setVideoVP9Params:(A,e)=>{A.videoVP9Params=e.payload},setVideoH264Params:(A,e)=>{A.videoH264Params=e.payload},setVideoH265Params:(A,e)=>{A.videoH265Params=e.payload},setVideoAV1Params:(A,e)=>{A.videoAV1Params=e.payload},setSora:(A,e)=>{A.soraContents.sora=e.payload,A.soraContents.sora||(A.soraContents.datachannels=[])},setSoraSessionId:(A,e)=>{A.soraContents.sessionId=e.payload},setSoraConnectionId:(A,e)=>{A.soraContents.connectionId=e.payload},setSoraClientId:(A,e)=>{A.soraContents.clientId=e.payload},setSoraTurnUrl:(A,e)=>{A.soraContents.turnUrl=e.payload},setSoraConnectionStatus:(A,e)=>{A.soraContents.connectionStatus=e.payload},setSoraReconnecting:(A,e)=>{A.soraContents.reconnecting=e.payload,!1===A.soraContents.reconnecting&&(A.soraContents.reconnectingTrials=0)},setSoraReconnectingTrials:(A,e)=>{A.soraContents.reconnectingTrials=e.payload},setSoraDataChannels:(A,e)=>{A.soraContents.datachannels.push(e.payload)},setLocalMediaStream:(A,e)=>{A.soraContents.localMediaStream&&A.soraContents.localMediaStream.getTracks().filter(A=>{A.stop()}),A.soraContents.localMediaStream=e.payload},setRemoteClient:(A,e)=>{A.soraContents.remoteClients.push(e.payload)},setSoraRemoteClientId:(A,e)=>{for(let t of A.soraContents.remoteClients)t.connectionId===e.payload.connectionId&&(t.clientId=e.payload.clientId)},setStatsReport:(A,e)=>{A.soraContents.prevStatsReport=A.soraContents.statsReport,A.soraContents.statsReport=e.payload},removeRemoteClient:(A,e)=>{let t=A.soraContents.remoteClients.filter(A=>A.connectionId!==e.payload);A.soraContents.remoteClients=t},removeAllRemoteClients:A=>{A.soraContents.remoteClients=[]},setAudioInputDevices:(A,e)=>{A.audioInputDevices=e.payload},setVideoInputDevices:(A,e)=>{A.videoInputDevices=e.payload},setAudioOutputDevices:(A,e)=>{A.audioOutputDevices=e.payload},setSoraInfoAlertMessage:(A,e)=>{let t={title:"Sora info",type:"info",message:e.payload,timestamp:new Date().getTime()};l(A.alertMessages,A.logMessages,t)},setSoraErrorAlertMessage:(A,e)=>{let t={title:"Sora error",type:"error",message:e.payload,timestamp:new Date().getTime()};l(A.alertMessages,A.logMessages,t)},setAPIInfoAlertMessage:(A,e)=>{let t={title:"API info",type:"info",message:e.payload,timestamp:new Date().getTime()};l(A.alertMessages,A.logMessages,t)},setAPIErrorAlertMessage:(A,e)=>{let t={title:"API error",type:"error",message:e.payload,timestamp:new Date().getTime()};l(A.alertMessages,A.logMessages,t)},deleteAlertMessage:(A,e)=>{let t=A.alertMessages.filter(A=>A.timestamp!==e.payload);A.alertMessages=t},setDebug:(A,e)=>{A.debug=e.payload},setDebugFilterText:(A,e)=>{A.debugFilterText=e.payload},setDebugType:(A,e)=>{A.debugFilterText="",A.debugType=e.payload},setLogMessages:(A,e)=>{A.logMessages.push({timestamp:new Date().getTime(),message:{title:e.payload.title,description:e.payload.description}})},setNotifyMessages:(A,e)=>{A.notifyMessages.push(e.payload)},setPushMessages:(A,e)=>{A.pushMessages.push(e.payload)},setFocusedSpotlightConnectionId:(A,e)=>{A.focusedSpotlightConnectionIds[e.payload]=!0},setUnFocusedSpotlightConnectionId:(A,e)=>{A.focusedSpotlightConnectionIds[e.payload]=!1},deleteFocusedSpotlightConnectionId:(A,e)=>{delete A.focusedSpotlightConnectionIds[e.payload]},setShowStats:(A,e)=>{A.showStats=e.payload},setCameraDevice:(A,e)=>{A.cameraDevice=e.payload},setMicDevice:(A,e)=>{A.micDevice=e.payload},setAudioTrack:(A,e)=>{if(A.audioTrack=e.payload,A.soraContents.localMediaStream)for(let e of A.soraContents.localMediaStream.getAudioTracks())e.enabled=A.audioTrack},setVideoTrack:(A,e)=>{if(A.videoTrack=e.payload,A.soraContents.localMediaStream)for(let e of A.soraContents.localMediaStream.getVideoTracks())e.enabled=A.videoTrack},setRole:(A,e)=>{A.role=e.payload},setMultistream:(A,e)=>{A.multistream=e.payload},setSimulcast:(A,e)=>{A.simulcast=e.payload},setSpotlight:(A,e)=>{A.spotlight=e.payload},setReconnect:(A,e)=>{A.reconnect=e.payload},setApiUrl:(A,e)=>{A.apiUrl=e.payload},clearDataChannelMessages:A=>{A.dataChannelMessages=[]},setAspectRatio:(A,e)=>{A.aspectRatio=e.payload},setResizeMode:(A,e)=>{A.resizeMode=e.payload},setLightAdjustment:(A,e)=>{if(""!==e.payload&&null===A.lightAdjustmentProcessor){let e=new r.jA;A.lightAdjustmentProcessor=e}A.lightAdjustment=e.payload},setBlurRadius:(A,e)=>{if(""!==e.payload&&null===A.virtualBackgroundProcessor){let e=new i.sz("https://cdn.jsdelivr.net/npm/@shiguredo/virtual-background@latest/dist");A.virtualBackgroundProcessor=e}A.blurRadius=e.payload},setMediaProcessorsNoiseSuppression:(A,e)=>{if(e.payload&&null===A.noiseSuppressionProcessor){let e=new o.b("https://cdn.jsdelivr.net/npm/@shiguredo/noise-suppression@latest/dist");A.noiseSuppressionProcessor=e}A.mediaProcessorsNoiseSuppression=e.payload},setBundleId:(A,e)=>{A.bundleId=e.payload},setEnabledBundleId:(A,e)=>{A.enabledBundleId=e.payload},setFacingMode:(A,e)=>{A.facingMode=e.payload},setAudioStreamingLanguageCode:(A,e)=>{A.audioStreamingLanguageCode=e.payload},setEnabledAudioStreamingLanguageCode:(A,e)=>{A.enabledAudioStreamingLanguageCode=e.payload}}});function l(A,e,t){if(10<=A.length)for(let e=0;e<=A.length-5;e++)A.pop();A.unshift(t),e.push({timestamp:t.timestamp,message:{title:"ALERT MESSAGE ".concat(t.title),description:JSON.stringify({title:t.title,type:t.type,message:t.message})}})}},6618:function(A,e,t){"use strict";t.d(e,{h:function(){return o}});var n=t(1595);t(3054);var r=t(6432);let o=(0,n.xC)({reducer:r.slice.reducer,middleware:A=>A({serializableCheck:{ignoredActions:["soraDevtools/setSora","soraDevtools/setLocalMediaStream","soraDevtools/setRemoteClient","soraDevtools/setFakeContentsGainNode","soraDevtools/setDataChannelMessage"],ignoredPaths:["soraContents","fakeContents","dataChannelMessages","logMessages","notifyMessages","pushMessages","signalingMessages","lightAdjustmentProcessor","virtualBackgroundProcessor","noiseSuppressionProcessor"]},immutableCheck:{ignoredPaths:["soraContents","fakeContents","dataChannelMessages","logMessages","notifyMessages","pushMessages","signalingMessages","noiseSuppressionProcessor"]}})})},6007:function(A,e,t){"use strict";t.d(e,{Ii:function(){return y},xR:function(){return s},o1:function(){return a},nT:function(){return I},iN:function(){return g},G_:function(){return m},l9:function(){return w},aF:function(){return C},PS:function(){return d},cJ:function(){return f},pT:function(){return O},kt:function(){return Q},x$:function(){return T},Xv:function(){return v},w_:function(){return h},u9:function(){return r},ad:function(){return u},L4:function(){return b},K$:function(){return M},VE:function(){return o},WJ:function(){return B},VJ:function(){return i},I7:function(){return p},Xr:function(){return E},Q5:function(){return l},Sh:function(){return c},QO:function(){return D},lt:function(){return F}});var n=JSON.parse('{"channelId":{"description":"接続するチャネルの ID を指定します。\\n1-255 文字までの文字列を指定できます。"},"role":{"description":"クライアントの役割を指定します。"},"multistream":{"description":"マルチストリームを使用するかどうかを指定します。Sora は未指定の場合、マルチストリームを使用します。"},"simulcast":{"description":"サイマルキャストを使用するかどうかを指定します。"},"simulcastRid":{"description":"サイマルキャストで配信されている映像を受信する際のエンコードの初期値を指定します。"},"spotlight":{"description":"スポットライトを使用するかどうかを指定します。"},"spotlightNumber":{"description":"スポットライトでフォーカスする配信数の最大値を指定します。"},"spotlightFocusRid":{"description":"スポットライトでフォーカスした場合の映像を受信する際のエンコードの初期値を指定します。"},"spotlightUnfocusRid":{"description":"スポットライトでフォーカスが外れた場合の映像を受信する際のエンコードの初期値を指定します。"},"audio":{"description":"音声配信をするかどうかを指定します。"},"audioCodecType":{"description":"音声のコーデックタイプを指定します。"},"audioBitRate":{"description":"音声のビットレートを指定します。"},"video":{"description":"映像配信をするかどうかを指定します。"},"videoCodecType":{"description":"映像のコーデックタイプを指定します。"},"videoBitRate":{"description":"映像のビットレートを指定します。"},"videoVP9Params":{"description":"映像のコーデックタイプに VP9 を指定した場合の設定を指定します。"},"videoH264Params":{"description":"映像のコーデックタイプに H264 を指定した場合の設定を指定します。"},"videoH265Params":{"description":"映像のコーデックタイプに H265 を指定した場合の設定を指定します。"},"videoAV1Params":{"description":"映像のコーデックタイプに AV1 を指定した場合の設定を指定します。"},"e2ee":{"description":"E2EE(End-to-End Encryption) を使用するかどうかを指定します。"},"reconnect":{"description":"一度接続に成功したあとに意図しない切断があった場合に再接続するかどうかを指定します。"},"clientId":{"description":"接続時に任意のクライアント ID を指定できます。"},"metadata":{"description":"認証するための判断材料としてのメタデータを指定します。"},"bundleId":{"description":"複数接続時に同一の bundle_id を指定すると、同一 bundle_id の接続から音声や映像やメッセージングを受信しなくなります。"},"signalingNotifyMetadata":{"description":"クライアントが参加や離脱したときに送られるシグナリング通知に含まれるメタデータを指定します。"},"signalingUrlCandidates":{"description":"シグナリングをするURLを改行区切りで複数指定します。"},"forwardingFilter":{"description":"デフォルトの転送フィルターを指定します。"},"audioStreamingLanguageCode":{"description":"音声解析用の言語コードを指定します。"},"dataChannels":{"description":"メッセージング用の DataChannel を指定します。"},"dataChannelSignaling":{"description":"シグナリングを DataChannel 経由に切り替えるかどうかを指定します。"},"ignoreDisconnectWebSocket":{"description":"シグナリングを DataChannel 経由に切り替えた際に、 WebSocket が閉じても、接続が切断しないようにするかどうかを指定します。"},"mediaType":{"description":"メディアタイプを指定します。\\ngetUserMedia: デバイスのカメラ/マイクをメディアとして使用します。\\ngetDisplayMedia: ディスプレイまたはその一部(ウィンドウ等)をメディアとして使用します。\\nfakeMedia: ダミーの映像と音声をメディアとして使用します\\nmediacaptureRegion: 現在開いているタブの一部をメディアとして使用します。"},"fakeVolume":{"description":"mediaType に fakeMedia を選択した際の音量を指定します。"},"audioContentHint":{"description":"MediaStreamTrack audio の contentHint を指定します。"},"autoGainControl":{"description":"MediaTrackConstraints の autoGainControl を指定します。"},"noiseSuppression":{"description":"MediaTrackConstraints の noiseSuppression を指定します。"},"echoCancellation":{"description":"MediaTrackConstraints の echoCancellation を指定します。"},"echoCancellationType":{"description":"MediaTrackConstraints の echoCancellationType を指定します。"},"mediaProcessorsNoiseSuppression":{"description":"shiguredo Media Processors のノイズ抑制を使用するかどうか指定します。"},"videoContentHint":{"description":"MediaStreamTrack video の contentHint を指定します。"},"resolution":{"description":"解像度を指定します。任意の解像度を指定する場合は、幅と高さを x 区切りで指定します。 (例: 640x480)"},"mediaStats":{"description":"映像の統計情報を映像に重ねて表示します。"},"frameRate":{"description":"MediaTrackConstraints の frameRate を指定します。"},"aspectRatio":{"description":"MediaTrackConstraints の aspectRatio を指定します。"},"resizeMode":{"description":"MediaTrackConstraints の resizeMode を指定します。"},"blurRadius":{"description":"shiguredo Media Processors の背景ぼかしを使用するかどうか指定します。"},"lightAdjustment":{"description":"shiguredo Media Processors のライト調整を使用するかどうか指定します。"},"audioInput":{"description":"音声入力を指定します。"},"videoInput":{"description":"映像入力を指定します。"},"audioOutput":{"description":"音声出力を指定します。"},"displayResolution":{"description":"画面に表示する際の解像度を指定します。任意の解像度を指定する場合は、幅と高さを x 区切りで指定します。 (例: 640x480)"},"micDevice":{"description":"Audio MediaStreamTrack を生成するかどうかを切り替えます。"},"cameraDevice":{"description":"Video MediaStreamTrack を生成するかどうかを切り替えます。"},"audioTrack":{"description":"Audio MediaStreamTrack の enabled 属性を切り替えます。"},"videoTrack":{"description":"video MediaStreamTrack の enabled 属性を切り替えます。"},"facingMode":{"description":"モバイルカメラのフロント/バックを切り替えます。"},"changeAllRecvStream":{"description":"サイマルキャストで受信中の全てのストリームの rid を操作します。"}}');let r=["","true","false"],o=["","true","false"],i=["","true","false"],a=["","OPUS"],s=["","8","16","24","32","64","96","128","256"],c=["","VP8","VP9","AV1","H264","H265"],l=["","10","30","50","100","300","500","800","1000","1500","2000","2500","3000","5000","10000","15000","20000","30000","50000"],g=["","true","false"],u=["","true","false"],d=["","true","false"],f=["","browser","system"],h=["getUserMedia","getDisplayMedia","fakeMedia","mediacaptureRegion"],E=["","1","2","3","4","5","6","7","8"],p=["","none","r0","r1","r2"],B=["","r0","r1","r2"],w=["","true","false"],Q=["","true","false"],C=["log","notify","push","stats","timeline","signaling","messaging","codec"],I=["","speech","speech-recognition","music"],D=["","motion","detail","text"],y=["","4:3","16:9","21:9"],b=["","none","crop-and-scale"],m=["","weak","medium","strong"],v=["","weak","medium","strong"],M=["sendrecv","sendonly","recvonly"],O=["","front","back"],F='\nself.onmessage = (event) => {\n const data = event.data;\n if (data.type === "start") {\n const interval = data.interval;\n self.counter = 0;\n const intervalId = setInterval(() => {\n const message = { type: "update", counter: self.counter };\n self.postMessage(message);\n self.counter++;\n }, interval);\n self.intervalId = intervalId;\n } else if (data.type === "stop") {\n if (self.intervalId) {\n clearInterval(self.intervalId);\n }\n const message = { type: "stop" };\n self.postMessage(message);\n }\n};\n',T=n},7824:function(A,e,t){"use strict";t.r(e);var n=t(2676);t(8227),t(8083);var r=t(4690),o=t(6618);e.default=A=>{let{Component:e,pageProps:t}=A;return(0,n.jsx)(r.zt,{store:o.h,children:(0,n.jsx)(e,{...t})})}},8227:function(){},8083:function(){},4374:function(A){!function(){var e={229:function(A){var e,t,n,r=A.exports={};function o(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function a(A){if(e===setTimeout)return setTimeout(A,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(A,0);try{return e(A,0)}catch(t){try{return e.call(null,A,0)}catch(t){return e.call(this,A,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(A){e=o}try{t="function"==typeof clearTimeout?clearTimeout:i}catch(A){t=i}}();var s=[],c=!1,l=-1;function g(){c&&n&&(c=!1,n.length?s=n.concat(s):l=-1,s.length&&u())}function u(){if(!c){var A=a(g);c=!0;for(var e=s.length;e;){for(n=s,s=[];++l1)for(var t=1;t=e.length?t(new a(h,f,new i(void 0,A[f]))):l(A[f],e[f],t,n,h,f,d);for(;f=0?(l(A[r],e[r],t,n,h,r,d),D=s(D,i)):l(A[r],void 0,t,n,h,r,d)}),D.forEach(function(A){l(void 0,e[A],t,n,h,A,d)})}d.length=d.length-1}}else A!==e&&("number"===p&&isNaN(A)&&isNaN(e)||t(new r(h,A,e)))}function g(A,e,t,n){return n=n||[],l(A,e,function(A){A&&n.push(A)},t),n.length?n:void 0}function u(A,e,t){if(A&&e&&t&&t.kind){for(var n=A,r=-1,o=t.path?t.path.length-1:0;++r0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({},y,A),t=e.logger,n=e.stateTransformer,r=e.errorTransformer,o=e.predicate,i=e.logErrors,a=e.diffPredicate;if(void 0===t)return function(){return function(A){return function(e){return A(e)}}};if(A.getState&&A.dispatch)return console.error("[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware:\n// Logger with default options\nimport { logger } from 'redux-logger'\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n// Or you can create your own logger with custom options http://bit.ly/redux-logger-options\nimport createLogger from 'redux-logger'\nconst logger = createLogger({\n // ...options\n});\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n"),function(){return function(A){return function(e){return A(e)}}};var s=[];return function(A){var t=A.getState;return function(A){return function(c){if("function"==typeof o&&!o(t,c))return A(c);var l={};s.push(l),l.started=w.now(),l.startedTime=new Date,l.prevState=n(t()),l.action=c;var u=void 0;if(i)try{u=A(c)}catch(A){l.error=r(A)}else u=A(c);l.took=w.now()-l.started,l.nextState=n(t());var f=e.diff&&"function"==typeof a?a(t,c):e.diff;if(function(A,e){var t,n,r=e.logger,o=e.actionTransformer,i=e.titleFormatter,a=void 0===i?(t=e.timestamp,n=e.duration,function(A,e,r){var o=["action"];return o.push("%c"+String(A.type)),t&&o.push("%c@ "+e),n&&o.push("%c(in "+r.toFixed(2)+" ms)"),o.join(" ")}):i,s=e.collapsed,c=e.colors,l=e.level,u=e.diff,f=void 0===e.titleFormatter;A.forEach(function(t,n){var i=t.started,h=t.startedTime,E=t.action,p=t.prevState,w=t.error,Q=t.took,I=t.nextState,y=A[n+1];y&&(I=y.prevState,Q=y.started-i);var b=o(E),m="function"==typeof s?s(function(){return I},E,t):s,v=B(h),M=c.title?"color: "+c.title(b)+";":"",O=["color: gray; font-weight: lighter;"];O.push(M),e.timestamp&&O.push("color: gray; font-weight: lighter;"),e.duration&&O.push("color: gray; font-weight: lighter;");var F=a(b,v,Q);try{m?c.title&&f?r.groupCollapsed.apply(r,["%c "+F].concat(O)):r.groupCollapsed(F):c.title&&f?r.group.apply(r,["%c "+F].concat(O)):r.group(F)}catch(A){r.log(F)}var T=d(l,b,[p],"prevState"),R=d(l,b,[b],"action"),S=d(l,b,[w,p],"error"),k=d(l,b,[I],"nextState");if(T){if(c.prevState){var P="color: "+c.prevState(p)+"; font-weight: bold";r[T]("%c prev state",P,p)}else r[T]("prev state",p)}if(R){if(c.action){var G="color: "+c.action(b)+"; font-weight: bold";r[R]("%c action ",G,b)}else r[R]("action ",b)}if(w&&S){if(c.error){var U="color: "+c.error(w,p)+"; font-weight: bold;";r[S]("%c error ",U,w)}else r[S]("error ",w)}if(k){if(c.nextState){var Y="color: "+c.nextState(I)+"; font-weight: bold";r[k]("%c next state",Y,I)}else r[k]("next state",I)}u&&function(A,e,t,n){var r=g(A,e);try{n?t.groupCollapsed("diff"):t.group("diff")}catch(A){t.log("diff")}r?r.forEach(function(A){var e=A.kind,n=function(A){var e=A.kind,t=A.path,n=A.lhs,r=A.rhs,o=A.index,i=A.item;switch(e){case"E":return[t.join("."),n,"→",r];case"N":return[t.join("."),r];case"D":return[t.join(".")];case"A":return[t.join(".")+"["+o+"]",i];default:return[]}}(A);t.log.apply(t,["%c "+D[e].text,"color: "+D[e].color+"; font-weight: bold"].concat(C(n)))}):t.log("—— no diff ——");try{t.groupEnd()}catch(A){t.log("—— diff end —— ")}}(p,I,r,m);try{r.groupEnd()}catch(A){r.log("—— log end ——")}})}(s,Object.assign({},e,{diff:f})),s.length=0,l.error)throw l.error;return u}}}}var h,E,p=function(A,e){return Array(e-A.toString().length+1).join("0")+A},B=function(A){return p(A.getHours(),2)+":"+p(A.getMinutes(),2)+":"+p(A.getSeconds(),2)+"."+p(A.getMilliseconds(),3)},w="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance:Date,Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},C=function(A){if(Array.isArray(A)){for(var e=0,t=Array(A.length);e0&&void 0!==arguments[0]?arguments[0]:{},e=A.dispatch,t=A.getState;return"function"==typeof e||"function"==typeof t?f()({dispatch:e,getState:t}):void console.error("\n[redux-logger v3] BREAKING CHANGE\n[redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.\n[redux-logger v3] Change\n[redux-logger v3] import createLogger from 'redux-logger'\n[redux-logger v3] to\n[redux-logger v3] import { createLogger } from 'redux-logger'\n")};A.defaults=y,A.createLogger=f,A.logger=b,A.default=b,Object.defineProperty(A,"__esModule",{value:!0})}(e)},5514:function(A,e,t){"use strict";/** * @license React * use-sync-external-store-with-selector.production.min.js * @@ -6,7 +6,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var n=t(5271),r="function"==typeof Object.is?Object.is:function(A,e){return A===e&&(0!==A||1/A==1/e)||A!=A&&e!=e},o=n.useSyncExternalStore,i=n.useRef,a=n.useEffect,s=n.useMemo,c=n.useDebugValue;e.useSyncExternalStoreWithSelector=function(A,e,t,n,l){var g=i(null);if(null===g.current){var u={hasValue:!1,value:null};g.current=u}else u=g.current;var d=o(A,(g=s(function(){function A(A){if(!a){if(a=!0,o=A,A=n(A),void 0!==l&&u.hasValue){var e=u.value;if(l(e,A))return i=e}return i=A}if(e=i,r(o,A))return e;var t=n(A);return void 0!==l&&l(e,t)?e:(o=A,i=t)}var o,i,a=!1,s=void 0===t?null:t;return[function(){return A(e())},null===s?void 0:function(){return A(s())}]},[e,t,n,l]))[0],g[1]);return a(function(){u.hasValue=!0,u.value=d},[d]),c(d),d}},5626:function(A,e,t){"use strict";A.exports=t(6393)},1444:function(A,e,t){"use strict";A.exports=t.p+"static/media/rnnoise.48f53c0d.wasm"},5810:function(A,e,t){"use strict";t.d(e,{xC:function(){return AF},oM:function(){return AP}});var n,r,o=Symbol.for("immer-nothing"),i=Symbol.for("immer-draftable"),a=Symbol.for("immer-state");function s(A,...e){throw Error(`[Immer] minified error nr: ${A}. Full error at: https://bit.ly/3cXEKWf`)}var c=Object.getPrototypeOf;function l(A){return!!A&&!!A[a]}function g(A){return!!A&&(d(A)||Array.isArray(A)||!!A[i]||!!A.constructor?.[i]||B(A)||w(A))}var u=Object.prototype.constructor.toString();function d(A){if(!A||"object"!=typeof A)return!1;let e=c(A);if(null===e)return!0;let t=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return t===Object||"function"==typeof t&&Function.toString.call(t)===u}function f(A,e){0===h(A)?Reflect.ownKeys(A).forEach(t=>{e(t,A[t],A)}):A.forEach((t,n)=>e(n,t,A))}function h(A){let e=A[a];return e?e.type_:Array.isArray(A)?1:B(A)?2:w(A)?3:0}function E(A,e){return 2===h(A)?A.has(e):Object.prototype.hasOwnProperty.call(A,e)}function p(A,e,t){let n=h(A);2===n?A.set(e,t):3===n?A.add(t):A[e]=t}function B(A){return A instanceof Map}function w(A){return A instanceof Set}function Q(A){return A.copy_||A.base_}function C(A,e){if(B(A))return new Map(A);if(w(A))return new Set(A);if(Array.isArray(A))return Array.prototype.slice.call(A);let t=d(A);if(!0!==e&&("class_only"!==e||t)){let e=c(A);return null!==e&&t?{...A}:Object.assign(Object.create(e),A)}{let e=Object.getOwnPropertyDescriptors(A);delete e[a];let t=Reflect.ownKeys(e);for(let n=0;n1&&(A.set=A.add=A.clear=A.delete=D),Object.freeze(A),e&&Object.entries(A).forEach(([A,e])=>I(e,!0))),A}function D(){s(2)}function y(A){return Object.isFrozen(A)}var b={};function m(A){let e=b[A];return e||s(0,A),e}function v(A,e){e&&(m("Patches"),A.patches_=[],A.inversePatches_=[],A.patchListener_=e)}function M(A){O(A),A.drafts_.forEach(T),A.drafts_=null}function O(A){A===r&&(r=A.parent_)}function F(A){return r={drafts_:[],parent_:r,immer_:A,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function T(A){let e=A[a];0===e.type_||1===e.type_?e.revoke_():e.revoked_=!0}function R(A,e){e.unfinalizedDrafts_=e.drafts_.length;let t=e.drafts_[0];return void 0!==A&&A!==t?(t[a].modified_&&(M(e),s(4)),g(A)&&(A=S(e,A),e.parent_||P(e,A)),e.patches_&&m("Patches").generateReplacementPatches_(t[a].base_,A,e.patches_,e.inversePatches_)):A=S(e,t,[]),M(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),A!==o?A:void 0}function S(A,e,t){if(y(e))return e;let n=e[a];if(!n)return f(e,(r,o)=>k(A,n,e,r,o,t)),e;if(n.scope_!==A)return e;if(!n.modified_)return P(A,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;let e=n.copy_,r=e,o=!1;3===n.type_&&(r=new Set(e),e.clear(),o=!0),f(r,(r,i)=>k(A,n,e,r,i,t,o)),P(A,e,!1),t&&A.patches_&&m("Patches").generatePatches_(n,t,A.patches_,A.inversePatches_)}return n.copy_}function k(A,e,t,n,r,o,i){if(l(r)){let i=S(A,r,o&&e&&3!==e.type_&&!E(e.assigned_,n)?o.concat(n):void 0);if(p(t,n,i),!l(i))return;A.canAutoFreeze_=!1}else i&&t.add(r);if(g(r)&&!y(r)){if(!A.immer_.autoFreeze_&&A.unfinalizedDrafts_<1)return;S(A,r),(!e||!e.scope_.parent_)&&"symbol"!=typeof n&&Object.prototype.propertyIsEnumerable.call(t,n)&&P(A,r)}}function P(A,e,t=!1){!A.parent_&&A.immer_.autoFreeze_&&A.canAutoFreeze_&&I(e,t)}var G={get(A,e){if(e===a)return A;let t=Q(A);if(!E(t,e))return function(A,e,t){let n=N(e,t);return n?"value"in n?n.value:n.get?.call(A.draft_):void 0}(A,t,e);let n=t[e];return A.finalized_||!g(n)?n:n===Y(A.base_,e)?(_(A),A.copy_[e]=H(n,A)):n},has:(A,e)=>e in Q(A),ownKeys:A=>Reflect.ownKeys(Q(A)),set(A,e,t){let n=N(Q(A),e);if(n?.set)return n.set.call(A.draft_,t),!0;if(!A.modified_){let n=Y(Q(A),e),r=n?.[a];if(r&&r.base_===t)return A.copy_[e]=t,A.assigned_[e]=!1,!0;if((t===n?0!==t||1/t==1/n:t!=t&&n!=n)&&(void 0!==t||E(A.base_,e)))return!0;_(A),x(A)}return!!(A.copy_[e]===t&&(void 0!==t||e in A.copy_)||Number.isNaN(t)&&Number.isNaN(A.copy_[e]))||(A.copy_[e]=t,A.assigned_[e]=!0,!0)},deleteProperty:(A,e)=>(void 0!==Y(A.base_,e)||e in A.base_?(A.assigned_[e]=!1,_(A),x(A)):delete A.assigned_[e],A.copy_&&delete A.copy_[e],!0),getOwnPropertyDescriptor(A,e){let t=Q(A),n=Reflect.getOwnPropertyDescriptor(t,e);return n?{writable:!0,configurable:1!==A.type_||"length"!==e,enumerable:n.enumerable,value:t[e]}:n},defineProperty(){s(11)},getPrototypeOf:A=>c(A.base_),setPrototypeOf(){s(12)}},U={};function Y(A,e){let t=A[a];return(t?Q(t):A)[e]}function N(A,e){if(!(e in A))return;let t=c(A);for(;t;){let A=Object.getOwnPropertyDescriptor(t,e);if(A)return A;t=c(t)}}function x(A){!A.modified_&&(A.modified_=!0,A.parent_&&x(A.parent_))}function _(A){A.copy_||(A.copy_=C(A.base_,A.scope_.immer_.useStrictShallowCopy_))}function H(A,e){let t=B(A)?m("MapSet").proxyMap_(A,e):w(A)?m("MapSet").proxySet_(A,e):function(A,e){let t=Array.isArray(A),n={type_:t?1:0,scope_:e?e.scope_:r,modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:A,draft_:null,copy_:null,revoke_:null,isManual_:!1},o=n,i=G;t&&(o=[n],i=U);let{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,s}(A,e);return(e?e.scope_:r).drafts_.push(t),t}function j(A){return l(A)||s(10,A),function A(e){let t;if(!g(e)||y(e))return e;let n=e[a];if(n){if(!n.modified_)return n.base_;n.finalized_=!0,t=C(e,n.scope_.immer_.useStrictShallowCopy_)}else t=C(e,!0);return f(t,(e,n)=>{p(t,e,A(n))}),n&&(n.finalized_=!1),t}(A)}f(G,(A,e)=>{U[A]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),U.deleteProperty=function(A,e){return U.set.call(this,A,e,void 0)},U.set=function(A,e,t){return G.set.call(this,A[0],e,t,A[0])};var W=new class{constructor(A){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(A,e,t)=>{let n;if("function"==typeof A&&"function"!=typeof e){let t=e;e=A;let n=this;return function(A=t,...r){return n.produce(A,A=>e.call(this,A,...r))}}if("function"!=typeof e&&s(6),void 0!==t&&"function"!=typeof t&&s(7),g(A)){let r=F(this),o=H(A,void 0),i=!0;try{n=e(o),i=!1}finally{i?M(r):O(r)}return v(r,t),R(n,r)}if(A&&"object"==typeof A)s(1,A);else{if(void 0===(n=e(A))&&(n=A),n===o&&(n=void 0),this.autoFreeze_&&I(n,!0),t){let e=[],r=[];m("Patches").generateReplacementPatches_(A,n,e,r),t(e,r)}return n}},this.produceWithPatches=(A,e)=>{let t,n;return"function"==typeof A?(e,...t)=>this.produceWithPatches(e,e=>A(e,...t)):[this.produce(A,e,(A,e)=>{t=A,n=e}),t,n]},"boolean"==typeof A?.autoFreeze&&this.setAutoFreeze(A.autoFreeze),"boolean"==typeof A?.useStrictShallowCopy&&this.setUseStrictShallowCopy(A.useStrictShallowCopy)}createDraft(A){g(A)||s(8),l(A)&&(A=j(A));let e=F(this),t=H(A,void 0);return t[a].isManual_=!0,O(e),t}finishDraft(A,e){let t=A&&A[a];t&&t.isManual_||s(9);let{scope_:n}=t;return v(n,e),R(void 0,n)}setAutoFreeze(A){this.autoFreeze_=A}setUseStrictShallowCopy(A){this.useStrictShallowCopy_=A}applyPatches(A,e){let t;for(t=e.length-1;t>=0;t--){let n=e[t];if(0===n.path.length&&"replace"===n.op){A=n.value;break}}t>-1&&(e=e.slice(t+1));let n=m("Patches").applyPatches_;return l(A)?n(A,e):this.produce(A,A=>n(A,e))}},X=W.produce;W.produceWithPatches.bind(W),W.setAutoFreeze.bind(W),W.setUseStrictShallowCopy.bind(W),W.applyPatches.bind(W),W.createDraft.bind(W),W.finishDraft.bind(W);var L=A=>Array.isArray(A)?A:[A],J=0,Z=class{revision=J;_value;_lastValue;_isEqual=V;constructor(A,e=V){this._value=this._lastValue=A,this._isEqual=e}get value(){return this._value}set value(A){this.value!==A&&(this._value=A,this.revision=++J)}};function V(A,e){return A===e}function K(A){return A instanceof Z||console.warn("Not a valid cell! ",A),A.value}var z=(A,e)=>!1;function q(){return function(A,e=V){return new Z(null,e)}(0,z)}var $=A=>{let e=A.collectionTag;null===e&&(e=A.collectionTag=q()),K(e)};Symbol();var AA=0,Ae=Object.getPrototypeOf({}),At=class{constructor(A){this.value=A,this.value=A,this.tag.value=A}proxy=new Proxy(this,An);tag=q();tags={};children={};collectionTag=null;id=AA++},An={get:(A,e)=>(function(){let{value:t}=A,n=Reflect.get(t,e);if("symbol"==typeof e||e in Ae)return n;if("object"==typeof n&&null!==n){let t=A.children[e];return void 0===t&&(t=A.children[e]=Array.isArray(n)?new Ar(n):new At(n)),t.tag&&K(t.tag),t.proxy}{let t=A.tags[e];return void 0===t&&((t=A.tags[e]=q()).value=n),K(t),n}})(),ownKeys:A=>($(A),Reflect.ownKeys(A.value)),getOwnPropertyDescriptor:(A,e)=>Reflect.getOwnPropertyDescriptor(A.value,e),has:(A,e)=>Reflect.has(A.value,e)},Ar=class{constructor(A){this.value=A,this.value=A,this.tag.value=A}proxy=new Proxy([this],Ao);tag=q();tags={};children={};collectionTag=null;id=AA++},Ao={get:([A],e)=>("length"===e&&$(A),An.get(A,e)),ownKeys:([A])=>An.ownKeys(A),getOwnPropertyDescriptor:([A],e)=>An.getOwnPropertyDescriptor(A,e),has:([A],e)=>An.has(A,e)},Ai="undefined"!=typeof WeakRef?WeakRef:class{constructor(A){this.value=A}deref(){return this.value}};function Aa(){return{s:0,v:void 0,o:null,p:null}}function As(A,e={}){let t,n=Aa(),{resultEqualityCheck:r}=e,o=0;function i(){let e,i=n,{length:a}=arguments;for(let A=0;A{n=Aa(),i.resetResultsCount()},i.resultsCount=()=>o,i.resetResultsCount=()=>{o=0},i}function Ac(A,...e){let t="function"==typeof A?{memoize:A,memoizeOptions:e}:A,n=(...A)=>{let e,n=0,r=0,o={},i=A.pop();"object"==typeof i&&(o=i,i=A.pop()),function(A,e=`expected a function, instead received ${typeof A}`){if("function"!=typeof A)throw TypeError(e)}(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);let{memoize:a,memoizeOptions:s=[],argsMemoize:c=As,argsMemoizeOptions:l=[],devModeChecks:g={}}={...t,...o},u=L(s),d=L(l),f=function(A){let e=Array.isArray(A[0])?A[0]:A;return!function(A,e="expected all items to be functions, instead received the following types: "){if(!A.every(A=>"function"==typeof A)){let t=A.map(A=>"function"==typeof A?`function ${A.name||"unnamed"}()`:typeof A).join(", ");throw TypeError(`${e}[${t}]`)}}(e,"createSelector expects all input-selectors to be functions, but received the following types: "),e}(A),h=a(function(){return n++,i.apply(null,arguments)},...u);return Object.assign(c(function(){r++;let A=function(A,e){let t=[],{length:n}=A;for(let r=0;rr,resetDependencyRecomputations:()=>{r=0},lastResult:()=>e,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:a,argsMemoize:c})};return Object.assign(n,{withTypes:()=>n}),n}var Al=Ac(As),Ag=Object.assign((A,e=Al)=>{!function(A,e=`expected an object, instead received ${typeof A}`){if("object"!=typeof A)throw TypeError(e)}(A,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof A}`);let t=Object.keys(A);return e(t.map(e=>A[e]),(...A)=>A.reduce((A,e,n)=>(A[t[n]]=e,A),{}))},{withTypes:()=>Ag});function Au(A){return`Minified Redux error #${A}; visit https://redux.js.org/Errors?code=${A} for the full message or use the non-minified dev environment for full errors. `}var Ad="function"==typeof Symbol&&Symbol.observable||"@@observable",Af=()=>Math.random().toString(36).substring(7).split("").join("."),Ah={INIT:`@@redux/INIT${Af()}`,REPLACE:`@@redux/REPLACE${Af()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Af()}`};function AE(A){if("object"!=typeof A||null===A)return!1;let e=A;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(A)===e||null===Object.getPrototypeOf(A)}function Ap(...A){return 0===A.length?A=>A:1===A.length?A[0]:A.reduce((A,e)=>(...t)=>A(e(...t)))}function AB(A){return({dispatch:e,getState:t})=>n=>r=>"function"==typeof r?r(e,t,A):n(r)}var Aw=AB();t(6689),((...A)=>{let e=Ac(...A),t=Object.assign((...A)=>{let t=e(...A),n=(A,...e)=>t(l(A)?j(A):A,...e);return Object.assign(n,t),n},{withTypes:()=>t})})(As);var AQ="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?Ap:Ap.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function AC(A,e){function t(...n){if(e){let t=e(...n);if(!t)throw Error(AW(0));return{type:A,payload:t.payload,..."meta"in t&&{meta:t.meta},..."error"in t&&{error:t.error}}}return{type:A,payload:n[0]}}return t.toString=()=>`${A}`,t.type=A,t.match=e=>AE(e)&&"type"in e&&"string"==typeof e.type&&e.type===A,t}var AI=class A extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,A.prototype)}static get[Symbol.species](){return A}concat(...A){return super.concat.apply(this,A)}prepend(...e){return 1===e.length&&Array.isArray(e[0])?new A(...e[0].concat(this)):new A(...e.concat(this))}};function AD(A){return g(A)?X(A,()=>{}):A}function Ay(A,e,t){if(A.has(e)){let n=A.get(e);return t.update&&(n=t.update(n,e,A),A.set(e,n)),n}if(!t.insert)throw Error(AW(10));let n=t.insert(e,A);return A.set(e,n),n}var Ab=()=>function(A){let{thunk:e=!0,immutableCheck:t=!0,serializableCheck:n=!0,actionCreatorCheck:r=!0}=A??{},o=new AI;return e&&("boolean"==typeof e?o.push(Aw):o.push(AB(e.extraArgument))),o},Am=A=>e=>{setTimeout(e,A)},Av="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:Am(10),AM=(A={type:"raf"})=>e=>(...t)=>{let n=e(...t),r=!0,o=!1,i=!1,a=new Set,s="tick"===A.type?queueMicrotask:"raf"===A.type?Av:"callback"===A.type?A.queueNotification:Am(A.timeout),c=()=>{i=!1,o&&(o=!1,a.forEach(A=>A()))};return Object.assign({},n,{subscribe(A){let e=n.subscribe(()=>r&&A());return a.add(A),()=>{e(),a.delete(A)}},dispatch(A){try{return(o=!(r=!A?.meta?.RTK_autoBatch))&&!i&&(i=!0,s(c)),n.dispatch(A)}finally{r=!0}}})},AO=A=>function(e){let{autoBatch:t=!0}=e??{},n=new AI(A);return t&&n.push(AM("object"==typeof t?t:void 0)),n};function AF(A){let e,t;let n=Ab(),{reducer:r,middleware:o,devTools:i=!0,preloadedState:a,enhancers:s}=A||{};if("function"==typeof r)e=r;else if(AE(r))e=function(A){let e;let t=Object.keys(A),n={};for(let e=0;e{let t=A[e];if(void 0===t(void 0,{type:Ah.INIT}))throw Error(Au(12));if(void 0===t(void 0,{type:Ah.PROBE_UNKNOWN_ACTION()}))throw Error(Au(13))})}(n)}catch(A){e=A}return function(A={},t){if(e)throw e;let o=!1,i={};for(let e=0;e(t,n)=>{let r=e(t,n),o=()=>{throw Error(Au(15))},i={getState:r.getState,dispatch:(A,...e)=>o(A,...e)};return o=Ap(...A.map(A=>A(i)))(r.dispatch),{...r,dispatch:o}}}(...t));return function A(e,t,n){if("function"!=typeof e)throw Error(Au(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw Error(Au(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw Error(Au(1));return n(A)(e,t)}let r=e,o=t,i=new Map,a=i,s=0,c=!1;function l(){a===i&&(a=new Map,i.forEach((A,e)=>{a.set(e,A)}))}function g(){if(c)throw Error(Au(3));return o}function u(A){if("function"!=typeof A)throw Error(Au(4));if(c)throw Error(Au(5));let e=!0;l();let t=s++;return a.set(t,A),function(){if(e){if(c)throw Error(Au(6));e=!1,l(),a.delete(t),i=null}}}function d(A){if(!AE(A))throw Error(Au(7));if(void 0===A.type)throw Error(Au(8));if("string"!=typeof A.type)throw Error(Au(17));if(c)throw Error(Au(9));try{c=!0,o=r(o,A)}finally{c=!1}return(i=a).forEach(A=>{A()}),A}return d({type:Ah.INIT}),{dispatch:d,subscribe:u,getState:g,replaceReducer:function(A){if("function"!=typeof A)throw Error(Au(10));r=A,d({type:Ah.REPLACE})},[Ad]:function(){return{subscribe(A){if("object"!=typeof A||null===A)throw Error(Au(11));function e(){A.next&&A.next(g())}return e(),{unsubscribe:u(e)}},[Ad](){return this}}}}}(e,a,c(..."function"==typeof s?s(l):l()))}function AT(A){let e;let t={},n=[],r={addCase(A,e){let n="string"==typeof A?A:A.type;if(!n)throw Error(AW(28));if(n in t)throw Error(AW(29));return t[n]=e,r},addMatcher:(A,e)=>(n.push({matcher:A,reducer:e}),r),addDefaultCase:A=>(e=A,r)};return A(r),[t,n,e]}var AR=(A=21)=>{let e="",t=A;for(;t--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e},AS=Symbol.for("rtk-slice-createasyncthunk"),Ak=((n=Ak||{}).reducer="reducer",n.reducerWithPrepare="reducerWithPrepare",n.asyncThunk="asyncThunk",n),AP=function({creators:A}={}){let e=A?.asyncThunk?.[AS];return function(A){let t;let{name:n,reducerPath:r=n}=A;if(!n)throw Error(AW(11));let o=("function"==typeof A.reducers?A.reducers(function(){function A(A,e){return{_reducerDefinitionType:"asyncThunk",payloadCreator:A,...e}}return A.withTypes=()=>A,{reducer:A=>Object.assign({[A.name]:(...e)=>A(...e)}[A.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(A,e)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:A,reducer:e}),asyncThunk:A}}()):A.reducers)||{},i=Object.keys(o),a={},s={},c={},u=[],d={addCase(A,e){let t="string"==typeof A?A:A.type;if(!t)throw Error(AW(12));if(t in s)throw Error(AW(13));return s[t]=e,d},addMatcher:(A,e)=>(u.push({matcher:A,reducer:e}),d),exposeAction:(A,e)=>(c[A]=e,d),exposeCaseReducer:(A,e)=>(a[A]=e,d)};function f(){let[e={},t=[],n]="function"==typeof A.extraReducers?AT(A.extraReducers):[A.extraReducers],r={...e,...s};return function(A,e){let t;let[n,r,o]=AT(e);if("function"==typeof A)t=()=>AD(A());else{let e=AD(A);t=()=>e}function i(A=t(),e){let i=[n[e.type],...r.filter(({matcher:A})=>A(e)).map(({reducer:A})=>A)];return 0===i.filter(A=>!!A).length&&(i=[o]),i.reduce((A,t)=>{if(t){if(l(A)){let n=t(A,e);return void 0===n?A:n}if(g(A))return X(A,A=>t(A,e));{let n=t(A,e);if(void 0===n){if(null===A)return A;throw Error(AW(9))}return n}}return A},A)}return i.getInitialState=t,i}(A.initialState,A=>{for(let e in r)A.addCase(e,r[e]);for(let e of u)A.addMatcher(e.matcher,e.reducer);for(let e of t)A.addMatcher(e.matcher,e.reducer);n&&A.addDefaultCase(n)})}i.forEach(t=>{let r=o[t],i={reducerName:t,type:`${n}/${t}`,createNotation:"function"==typeof A.reducers};"asyncThunk"===r._reducerDefinitionType?function({type:A,reducerName:e},t,n,r){if(!r)throw Error(AW(18));let{payloadCreator:o,fulfilled:i,pending:a,rejected:s,settled:c,options:l}=t,g=r(A,o,l);n.exposeAction(e,g),i&&n.addCase(g.fulfilled,i),a&&n.addCase(g.pending,a),s&&n.addCase(g.rejected,s),c&&n.addMatcher(g.settled,c),n.exposeCaseReducer(e,{fulfilled:i||AG,pending:a||AG,rejected:s||AG,settled:c||AG})}(i,r,d,e):function({type:A,reducerName:e,createNotation:t},n,r){let o,i;if("reducer"in n){if(t&&"reducerWithPrepare"!==n._reducerDefinitionType)throw Error(AW(17));o=n.reducer,i=n.prepare}else o=n;r.addCase(A,o).exposeCaseReducer(e,o).exposeAction(e,i?AC(A,i):AC(A))}(i,r,d)});let h=A=>A,E=new Map;function p(A,e){return t||(t=f()),t(A,e)}function B(){return t||(t=f()),t.getInitialState()}function w(e,t=!1){function n(A){let n=A[e];return void 0===n&&t&&(n=B()),n}function r(e=h){let n=Ay(E,t,{insert:()=>new WeakMap});return Ay(n,e,{insert:()=>{let n={};for(let[r,o]of Object.entries(A.selectors??{}))n[r]=function(A,e,t,n){function r(o,...i){let a=e(o);return void 0===a&&n&&(a=t()),A(a,...i)}return r.unwrapped=A,r}(o,e,B,t);return n}})}return{reducerPath:e,getSelectors:r,get selectors(){return r(n)},selectSlice:n}}let Q={name:n,reducer:p,actions:c,caseReducers:a,getInitialState:B,...w(r),injectInto(A,{reducerPath:e,...t}={}){let n=e??r;return A.inject({reducerPath:n,reducer:p},t),{...Q,...w(n,!0)}}};return Q}}();function AG(){}var AU=(A,e)=>{if("function"!=typeof A)throw Error(AW(32))},{assign:AY}=Object,AN="listenerMiddleware",Ax=A=>{let{type:e,actionCreator:t,matcher:n,predicate:r,effect:o}=A;if(e)r=AC(e).match;else if(t)e=t.type,r=t.match;else if(n)r=n;else if(r);else throw Error(AW(21));return AU(o,"options.listener"),{predicate:r,type:e,effect:o}},A_=Object.assign(A=>{let{type:e,predicate:t,effect:n}=Ax(A);return{id:AR(),effect:n,type:e,predicate:t,pending:new Set,unsubscribe:()=>{throw Error(AW(22))}}},{withTypes:()=>A_}),AH=Object.assign(AC(`${AN}/add`),{withTypes:()=>AH});AC(`${AN}/removeAll`);var Aj=Object.assign(AC(`${AN}/remove`),{withTypes:()=>Aj});function AW(A){return`Minified Redux Toolkit error #${A}; visit https://redux-toolkit.js.org/Errors?code=${A} for the full message or use the non-minified dev environment for full errors. `}Symbol.for("rtk-state-proxy-original")},7124:function(A,e,t){"use strict";t.d(e,{MH:function(){return f},jA:function(){return l}});/** + */var n=t(5271),r="function"==typeof Object.is?Object.is:function(A,e){return A===e&&(0!==A||1/A==1/e)||A!=A&&e!=e},o=n.useSyncExternalStore,i=n.useRef,a=n.useEffect,s=n.useMemo,c=n.useDebugValue;e.useSyncExternalStoreWithSelector=function(A,e,t,n,l){var g=i(null);if(null===g.current){var u={hasValue:!1,value:null};g.current=u}else u=g.current;var d=o(A,(g=s(function(){function A(A){if(!a){if(a=!0,o=A,A=n(A),void 0!==l&&u.hasValue){var e=u.value;if(l(e,A))return i=e}return i=A}if(e=i,r(o,A))return e;var t=n(A);return void 0!==l&&l(e,t)?e:(o=A,i=t)}var o,i,a=!1,s=void 0===t?null:t;return[function(){return A(e())},null===s?void 0:function(){return A(s())}]},[e,t,n,l]))[0],g[1]);return a(function(){u.hasValue=!0,u.value=d},[d]),c(d),d}},5626:function(A,e,t){"use strict";A.exports=t(5514)},1444:function(A,e,t){"use strict";A.exports=t.p+"static/media/rnnoise.48f53c0d.wasm"},1595:function(A,e,t){"use strict";t.d(e,{xC:function(){return AF},oM:function(){return AP}});var n,r,o=Symbol.for("immer-nothing"),i=Symbol.for("immer-draftable"),a=Symbol.for("immer-state");function s(A,...e){throw Error(`[Immer] minified error nr: ${A}. Full error at: https://bit.ly/3cXEKWf`)}var c=Object.getPrototypeOf;function l(A){return!!A&&!!A[a]}function g(A){return!!A&&(d(A)||Array.isArray(A)||!!A[i]||!!A.constructor?.[i]||B(A)||w(A))}var u=Object.prototype.constructor.toString();function d(A){if(!A||"object"!=typeof A)return!1;let e=c(A);if(null===e)return!0;let t=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return t===Object||"function"==typeof t&&Function.toString.call(t)===u}function f(A,e){0===h(A)?Reflect.ownKeys(A).forEach(t=>{e(t,A[t],A)}):A.forEach((t,n)=>e(n,t,A))}function h(A){let e=A[a];return e?e.type_:Array.isArray(A)?1:B(A)?2:w(A)?3:0}function E(A,e){return 2===h(A)?A.has(e):Object.prototype.hasOwnProperty.call(A,e)}function p(A,e,t){let n=h(A);2===n?A.set(e,t):3===n?A.add(t):A[e]=t}function B(A){return A instanceof Map}function w(A){return A instanceof Set}function Q(A){return A.copy_||A.base_}function C(A,e){if(B(A))return new Map(A);if(w(A))return new Set(A);if(Array.isArray(A))return Array.prototype.slice.call(A);let t=d(A);if(!0!==e&&("class_only"!==e||t)){let e=c(A);return null!==e&&t?{...A}:Object.assign(Object.create(e),A)}{let e=Object.getOwnPropertyDescriptors(A);delete e[a];let t=Reflect.ownKeys(e);for(let n=0;n1&&(A.set=A.add=A.clear=A.delete=D),Object.freeze(A),e&&Object.entries(A).forEach(([A,e])=>I(e,!0))),A}function D(){s(2)}function y(A){return Object.isFrozen(A)}var b={};function m(A){let e=b[A];return e||s(0,A),e}function v(A,e){e&&(m("Patches"),A.patches_=[],A.inversePatches_=[],A.patchListener_=e)}function M(A){O(A),A.drafts_.forEach(T),A.drafts_=null}function O(A){A===r&&(r=A.parent_)}function F(A){return r={drafts_:[],parent_:r,immer_:A,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function T(A){let e=A[a];0===e.type_||1===e.type_?e.revoke_():e.revoked_=!0}function R(A,e){e.unfinalizedDrafts_=e.drafts_.length;let t=e.drafts_[0];return void 0!==A&&A!==t?(t[a].modified_&&(M(e),s(4)),g(A)&&(A=S(e,A),e.parent_||P(e,A)),e.patches_&&m("Patches").generateReplacementPatches_(t[a].base_,A,e.patches_,e.inversePatches_)):A=S(e,t,[]),M(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),A!==o?A:void 0}function S(A,e,t){if(y(e))return e;let n=e[a];if(!n)return f(e,(r,o)=>k(A,n,e,r,o,t)),e;if(n.scope_!==A)return e;if(!n.modified_)return P(A,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;let e=n.copy_,r=e,o=!1;3===n.type_&&(r=new Set(e),e.clear(),o=!0),f(r,(r,i)=>k(A,n,e,r,i,t,o)),P(A,e,!1),t&&A.patches_&&m("Patches").generatePatches_(n,t,A.patches_,A.inversePatches_)}return n.copy_}function k(A,e,t,n,r,o,i){if(l(r)){let i=S(A,r,o&&e&&3!==e.type_&&!E(e.assigned_,n)?o.concat(n):void 0);if(p(t,n,i),!l(i))return;A.canAutoFreeze_=!1}else i&&t.add(r);if(g(r)&&!y(r)){if(!A.immer_.autoFreeze_&&A.unfinalizedDrafts_<1)return;S(A,r),(!e||!e.scope_.parent_)&&"symbol"!=typeof n&&Object.prototype.propertyIsEnumerable.call(t,n)&&P(A,r)}}function P(A,e,t=!1){!A.parent_&&A.immer_.autoFreeze_&&A.canAutoFreeze_&&I(e,t)}var G={get(A,e){if(e===a)return A;let t=Q(A);if(!E(t,e))return function(A,e,t){let n=N(e,t);return n?"value"in n?n.value:n.get?.call(A.draft_):void 0}(A,t,e);let n=t[e];return A.finalized_||!g(n)?n:n===Y(A.base_,e)?(_(A),A.copy_[e]=H(n,A)):n},has:(A,e)=>e in Q(A),ownKeys:A=>Reflect.ownKeys(Q(A)),set(A,e,t){let n=N(Q(A),e);if(n?.set)return n.set.call(A.draft_,t),!0;if(!A.modified_){let n=Y(Q(A),e),r=n?.[a];if(r&&r.base_===t)return A.copy_[e]=t,A.assigned_[e]=!1,!0;if((t===n?0!==t||1/t==1/n:t!=t&&n!=n)&&(void 0!==t||E(A.base_,e)))return!0;_(A),x(A)}return!!(A.copy_[e]===t&&(void 0!==t||e in A.copy_)||Number.isNaN(t)&&Number.isNaN(A.copy_[e]))||(A.copy_[e]=t,A.assigned_[e]=!0,!0)},deleteProperty:(A,e)=>(void 0!==Y(A.base_,e)||e in A.base_?(A.assigned_[e]=!1,_(A),x(A)):delete A.assigned_[e],A.copy_&&delete A.copy_[e],!0),getOwnPropertyDescriptor(A,e){let t=Q(A),n=Reflect.getOwnPropertyDescriptor(t,e);return n?{writable:!0,configurable:1!==A.type_||"length"!==e,enumerable:n.enumerable,value:t[e]}:n},defineProperty(){s(11)},getPrototypeOf:A=>c(A.base_),setPrototypeOf(){s(12)}},U={};function Y(A,e){let t=A[a];return(t?Q(t):A)[e]}function N(A,e){if(!(e in A))return;let t=c(A);for(;t;){let A=Object.getOwnPropertyDescriptor(t,e);if(A)return A;t=c(t)}}function x(A){!A.modified_&&(A.modified_=!0,A.parent_&&x(A.parent_))}function _(A){A.copy_||(A.copy_=C(A.base_,A.scope_.immer_.useStrictShallowCopy_))}function H(A,e){let t=B(A)?m("MapSet").proxyMap_(A,e):w(A)?m("MapSet").proxySet_(A,e):function(A,e){let t=Array.isArray(A),n={type_:t?1:0,scope_:e?e.scope_:r,modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:A,draft_:null,copy_:null,revoke_:null,isManual_:!1},o=n,i=G;t&&(o=[n],i=U);let{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,s}(A,e);return(e?e.scope_:r).drafts_.push(t),t}function j(A){return l(A)||s(10,A),function A(e){let t;if(!g(e)||y(e))return e;let n=e[a];if(n){if(!n.modified_)return n.base_;n.finalized_=!0,t=C(e,n.scope_.immer_.useStrictShallowCopy_)}else t=C(e,!0);return f(t,(e,n)=>{p(t,e,A(n))}),n&&(n.finalized_=!1),t}(A)}f(G,(A,e)=>{U[A]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),U.deleteProperty=function(A,e){return U.set.call(this,A,e,void 0)},U.set=function(A,e,t){return G.set.call(this,A[0],e,t,A[0])};var W=new class{constructor(A){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(A,e,t)=>{let n;if("function"==typeof A&&"function"!=typeof e){let t=e;e=A;let n=this;return function(A=t,...r){return n.produce(A,A=>e.call(this,A,...r))}}if("function"!=typeof e&&s(6),void 0!==t&&"function"!=typeof t&&s(7),g(A)){let r=F(this),o=H(A,void 0),i=!0;try{n=e(o),i=!1}finally{i?M(r):O(r)}return v(r,t),R(n,r)}if(A&&"object"==typeof A)s(1,A);else{if(void 0===(n=e(A))&&(n=A),n===o&&(n=void 0),this.autoFreeze_&&I(n,!0),t){let e=[],r=[];m("Patches").generateReplacementPatches_(A,n,e,r),t(e,r)}return n}},this.produceWithPatches=(A,e)=>{let t,n;return"function"==typeof A?(e,...t)=>this.produceWithPatches(e,e=>A(e,...t)):[this.produce(A,e,(A,e)=>{t=A,n=e}),t,n]},"boolean"==typeof A?.autoFreeze&&this.setAutoFreeze(A.autoFreeze),"boolean"==typeof A?.useStrictShallowCopy&&this.setUseStrictShallowCopy(A.useStrictShallowCopy)}createDraft(A){g(A)||s(8),l(A)&&(A=j(A));let e=F(this),t=H(A,void 0);return t[a].isManual_=!0,O(e),t}finishDraft(A,e){let t=A&&A[a];t&&t.isManual_||s(9);let{scope_:n}=t;return v(n,e),R(void 0,n)}setAutoFreeze(A){this.autoFreeze_=A}setUseStrictShallowCopy(A){this.useStrictShallowCopy_=A}applyPatches(A,e){let t;for(t=e.length-1;t>=0;t--){let n=e[t];if(0===n.path.length&&"replace"===n.op){A=n.value;break}}t>-1&&(e=e.slice(t+1));let n=m("Patches").applyPatches_;return l(A)?n(A,e):this.produce(A,A=>n(A,e))}},X=W.produce;W.produceWithPatches.bind(W),W.setAutoFreeze.bind(W),W.setUseStrictShallowCopy.bind(W),W.applyPatches.bind(W),W.createDraft.bind(W),W.finishDraft.bind(W);var L=A=>Array.isArray(A)?A:[A],J=0,Z=class{revision=J;_value;_lastValue;_isEqual=V;constructor(A,e=V){this._value=this._lastValue=A,this._isEqual=e}get value(){return this._value}set value(A){this.value!==A&&(this._value=A,this.revision=++J)}};function V(A,e){return A===e}function K(A){return A instanceof Z||console.warn("Not a valid cell! ",A),A.value}var z=(A,e)=>!1;function q(){return function(A,e=V){return new Z(null,e)}(0,z)}var $=A=>{let e=A.collectionTag;null===e&&(e=A.collectionTag=q()),K(e)};Symbol();var AA=0,Ae=Object.getPrototypeOf({}),At=class{constructor(A){this.value=A,this.value=A,this.tag.value=A}proxy=new Proxy(this,An);tag=q();tags={};children={};collectionTag=null;id=AA++},An={get:(A,e)=>(function(){let{value:t}=A,n=Reflect.get(t,e);if("symbol"==typeof e||e in Ae)return n;if("object"==typeof n&&null!==n){let t=A.children[e];return void 0===t&&(t=A.children[e]=Array.isArray(n)?new Ar(n):new At(n)),t.tag&&K(t.tag),t.proxy}{let t=A.tags[e];return void 0===t&&((t=A.tags[e]=q()).value=n),K(t),n}})(),ownKeys:A=>($(A),Reflect.ownKeys(A.value)),getOwnPropertyDescriptor:(A,e)=>Reflect.getOwnPropertyDescriptor(A.value,e),has:(A,e)=>Reflect.has(A.value,e)},Ar=class{constructor(A){this.value=A,this.value=A,this.tag.value=A}proxy=new Proxy([this],Ao);tag=q();tags={};children={};collectionTag=null;id=AA++},Ao={get:([A],e)=>("length"===e&&$(A),An.get(A,e)),ownKeys:([A])=>An.ownKeys(A),getOwnPropertyDescriptor:([A],e)=>An.getOwnPropertyDescriptor(A,e),has:([A],e)=>An.has(A,e)},Ai="undefined"!=typeof WeakRef?WeakRef:class{constructor(A){this.value=A}deref(){return this.value}};function Aa(){return{s:0,v:void 0,o:null,p:null}}function As(A,e={}){let t,n=Aa(),{resultEqualityCheck:r}=e,o=0;function i(){let e,i=n,{length:a}=arguments;for(let A=0;A{n=Aa(),i.resetResultsCount()},i.resultsCount=()=>o,i.resetResultsCount=()=>{o=0},i}function Ac(A,...e){let t="function"==typeof A?{memoize:A,memoizeOptions:e}:A,n=(...A)=>{let e,n=0,r=0,o={},i=A.pop();"object"==typeof i&&(o=i,i=A.pop()),function(A,e=`expected a function, instead received ${typeof A}`){if("function"!=typeof A)throw TypeError(e)}(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);let{memoize:a,memoizeOptions:s=[],argsMemoize:c=As,argsMemoizeOptions:l=[],devModeChecks:g={}}={...t,...o},u=L(s),d=L(l),f=function(A){let e=Array.isArray(A[0])?A[0]:A;return!function(A,e="expected all items to be functions, instead received the following types: "){if(!A.every(A=>"function"==typeof A)){let t=A.map(A=>"function"==typeof A?`function ${A.name||"unnamed"}()`:typeof A).join(", ");throw TypeError(`${e}[${t}]`)}}(e,"createSelector expects all input-selectors to be functions, but received the following types: "),e}(A),h=a(function(){return n++,i.apply(null,arguments)},...u);return Object.assign(c(function(){r++;let A=function(A,e){let t=[],{length:n}=A;for(let r=0;rr,resetDependencyRecomputations:()=>{r=0},lastResult:()=>e,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:a,argsMemoize:c})};return Object.assign(n,{withTypes:()=>n}),n}var Al=Ac(As),Ag=Object.assign((A,e=Al)=>{!function(A,e=`expected an object, instead received ${typeof A}`){if("object"!=typeof A)throw TypeError(e)}(A,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof A}`);let t=Object.keys(A);return e(t.map(e=>A[e]),(...A)=>A.reduce((A,e,n)=>(A[t[n]]=e,A),{}))},{withTypes:()=>Ag});function Au(A){return`Minified Redux error #${A}; visit https://redux.js.org/Errors?code=${A} for the full message or use the non-minified dev environment for full errors. `}var Ad="function"==typeof Symbol&&Symbol.observable||"@@observable",Af=()=>Math.random().toString(36).substring(7).split("").join("."),Ah={INIT:`@@redux/INIT${Af()}`,REPLACE:`@@redux/REPLACE${Af()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Af()}`};function AE(A){if("object"!=typeof A||null===A)return!1;let e=A;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(A)===e||null===Object.getPrototypeOf(A)}function Ap(...A){return 0===A.length?A=>A:1===A.length?A[0]:A.reduce((A,e)=>(...t)=>A(e(...t)))}function AB(A){return({dispatch:e,getState:t})=>n=>r=>"function"==typeof r?r(e,t,A):n(r)}var Aw=AB();t(7716),((...A)=>{let e=Ac(...A),t=Object.assign((...A)=>{let t=e(...A),n=(A,...e)=>t(l(A)?j(A):A,...e);return Object.assign(n,t),n},{withTypes:()=>t})})(As);var AQ="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?Ap:Ap.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function AC(A,e){function t(...n){if(e){let t=e(...n);if(!t)throw Error(AW(0));return{type:A,payload:t.payload,..."meta"in t&&{meta:t.meta},..."error"in t&&{error:t.error}}}return{type:A,payload:n[0]}}return t.toString=()=>`${A}`,t.type=A,t.match=e=>AE(e)&&"type"in e&&"string"==typeof e.type&&e.type===A,t}var AI=class A extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,A.prototype)}static get[Symbol.species](){return A}concat(...A){return super.concat.apply(this,A)}prepend(...e){return 1===e.length&&Array.isArray(e[0])?new A(...e[0].concat(this)):new A(...e.concat(this))}};function AD(A){return g(A)?X(A,()=>{}):A}function Ay(A,e,t){if(A.has(e)){let n=A.get(e);return t.update&&(n=t.update(n,e,A),A.set(e,n)),n}if(!t.insert)throw Error(AW(10));let n=t.insert(e,A);return A.set(e,n),n}var Ab=()=>function(A){let{thunk:e=!0,immutableCheck:t=!0,serializableCheck:n=!0,actionCreatorCheck:r=!0}=A??{},o=new AI;return e&&("boolean"==typeof e?o.push(Aw):o.push(AB(e.extraArgument))),o},Am=A=>e=>{setTimeout(e,A)},Av="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:Am(10),AM=(A={type:"raf"})=>e=>(...t)=>{let n=e(...t),r=!0,o=!1,i=!1,a=new Set,s="tick"===A.type?queueMicrotask:"raf"===A.type?Av:"callback"===A.type?A.queueNotification:Am(A.timeout),c=()=>{i=!1,o&&(o=!1,a.forEach(A=>A()))};return Object.assign({},n,{subscribe(A){let e=n.subscribe(()=>r&&A());return a.add(A),()=>{e(),a.delete(A)}},dispatch(A){try{return(o=!(r=!A?.meta?.RTK_autoBatch))&&!i&&(i=!0,s(c)),n.dispatch(A)}finally{r=!0}}})},AO=A=>function(e){let{autoBatch:t=!0}=e??{},n=new AI(A);return t&&n.push(AM("object"==typeof t?t:void 0)),n};function AF(A){let e,t;let n=Ab(),{reducer:r,middleware:o,devTools:i=!0,preloadedState:a,enhancers:s}=A||{};if("function"==typeof r)e=r;else if(AE(r))e=function(A){let e;let t=Object.keys(A),n={};for(let e=0;e{let t=A[e];if(void 0===t(void 0,{type:Ah.INIT}))throw Error(Au(12));if(void 0===t(void 0,{type:Ah.PROBE_UNKNOWN_ACTION()}))throw Error(Au(13))})}(n)}catch(A){e=A}return function(A={},t){if(e)throw e;let o=!1,i={};for(let e=0;e(t,n)=>{let r=e(t,n),o=()=>{throw Error(Au(15))},i={getState:r.getState,dispatch:(A,...e)=>o(A,...e)};return o=Ap(...A.map(A=>A(i)))(r.dispatch),{...r,dispatch:o}}}(...t));return function A(e,t,n){if("function"!=typeof e)throw Error(Au(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw Error(Au(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw Error(Au(1));return n(A)(e,t)}let r=e,o=t,i=new Map,a=i,s=0,c=!1;function l(){a===i&&(a=new Map,i.forEach((A,e)=>{a.set(e,A)}))}function g(){if(c)throw Error(Au(3));return o}function u(A){if("function"!=typeof A)throw Error(Au(4));if(c)throw Error(Au(5));let e=!0;l();let t=s++;return a.set(t,A),function(){if(e){if(c)throw Error(Au(6));e=!1,l(),a.delete(t),i=null}}}function d(A){if(!AE(A))throw Error(Au(7));if(void 0===A.type)throw Error(Au(8));if("string"!=typeof A.type)throw Error(Au(17));if(c)throw Error(Au(9));try{c=!0,o=r(o,A)}finally{c=!1}return(i=a).forEach(A=>{A()}),A}return d({type:Ah.INIT}),{dispatch:d,subscribe:u,getState:g,replaceReducer:function(A){if("function"!=typeof A)throw Error(Au(10));r=A,d({type:Ah.REPLACE})},[Ad]:function(){return{subscribe(A){if("object"!=typeof A||null===A)throw Error(Au(11));function e(){A.next&&A.next(g())}return e(),{unsubscribe:u(e)}},[Ad](){return this}}}}}(e,a,c(..."function"==typeof s?s(l):l()))}function AT(A){let e;let t={},n=[],r={addCase(A,e){let n="string"==typeof A?A:A.type;if(!n)throw Error(AW(28));if(n in t)throw Error(AW(29));return t[n]=e,r},addMatcher:(A,e)=>(n.push({matcher:A,reducer:e}),r),addDefaultCase:A=>(e=A,r)};return A(r),[t,n,e]}var AR=(A=21)=>{let e="",t=A;for(;t--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e},AS=Symbol.for("rtk-slice-createasyncthunk"),Ak=((n=Ak||{}).reducer="reducer",n.reducerWithPrepare="reducerWithPrepare",n.asyncThunk="asyncThunk",n),AP=function({creators:A}={}){let e=A?.asyncThunk?.[AS];return function(A){let t;let{name:n,reducerPath:r=n}=A;if(!n)throw Error(AW(11));let o=("function"==typeof A.reducers?A.reducers(function(){function A(A,e){return{_reducerDefinitionType:"asyncThunk",payloadCreator:A,...e}}return A.withTypes=()=>A,{reducer:A=>Object.assign({[A.name]:(...e)=>A(...e)}[A.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(A,e)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:A,reducer:e}),asyncThunk:A}}()):A.reducers)||{},i=Object.keys(o),a={},s={},c={},u=[],d={addCase(A,e){let t="string"==typeof A?A:A.type;if(!t)throw Error(AW(12));if(t in s)throw Error(AW(13));return s[t]=e,d},addMatcher:(A,e)=>(u.push({matcher:A,reducer:e}),d),exposeAction:(A,e)=>(c[A]=e,d),exposeCaseReducer:(A,e)=>(a[A]=e,d)};function f(){let[e={},t=[],n]="function"==typeof A.extraReducers?AT(A.extraReducers):[A.extraReducers],r={...e,...s};return function(A,e){let t;let[n,r,o]=AT(e);if("function"==typeof A)t=()=>AD(A());else{let e=AD(A);t=()=>e}function i(A=t(),e){let i=[n[e.type],...r.filter(({matcher:A})=>A(e)).map(({reducer:A})=>A)];return 0===i.filter(A=>!!A).length&&(i=[o]),i.reduce((A,t)=>{if(t){if(l(A)){let n=t(A,e);return void 0===n?A:n}if(g(A))return X(A,A=>t(A,e));{let n=t(A,e);if(void 0===n){if(null===A)return A;throw Error(AW(9))}return n}}return A},A)}return i.getInitialState=t,i}(A.initialState,A=>{for(let e in r)A.addCase(e,r[e]);for(let e of u)A.addMatcher(e.matcher,e.reducer);for(let e of t)A.addMatcher(e.matcher,e.reducer);n&&A.addDefaultCase(n)})}i.forEach(t=>{let r=o[t],i={reducerName:t,type:`${n}/${t}`,createNotation:"function"==typeof A.reducers};"asyncThunk"===r._reducerDefinitionType?function({type:A,reducerName:e},t,n,r){if(!r)throw Error(AW(18));let{payloadCreator:o,fulfilled:i,pending:a,rejected:s,settled:c,options:l}=t,g=r(A,o,l);n.exposeAction(e,g),i&&n.addCase(g.fulfilled,i),a&&n.addCase(g.pending,a),s&&n.addCase(g.rejected,s),c&&n.addMatcher(g.settled,c),n.exposeCaseReducer(e,{fulfilled:i||AG,pending:a||AG,rejected:s||AG,settled:c||AG})}(i,r,d,e):function({type:A,reducerName:e,createNotation:t},n,r){let o,i;if("reducer"in n){if(t&&"reducerWithPrepare"!==n._reducerDefinitionType)throw Error(AW(17));o=n.reducer,i=n.prepare}else o=n;r.addCase(A,o).exposeCaseReducer(e,o).exposeAction(e,i?AC(A,i):AC(A))}(i,r,d)});let h=A=>A,E=new Map;function p(A,e){return t||(t=f()),t(A,e)}function B(){return t||(t=f()),t.getInitialState()}function w(e,t=!1){function n(A){let n=A[e];return void 0===n&&t&&(n=B()),n}function r(e=h){let n=Ay(E,t,{insert:()=>new WeakMap});return Ay(n,e,{insert:()=>{let n={};for(let[r,o]of Object.entries(A.selectors??{}))n[r]=function(A,e,t,n){function r(o,...i){let a=e(o);return void 0===a&&n&&(a=t()),A(a,...i)}return r.unwrapped=A,r}(o,e,B,t);return n}})}return{reducerPath:e,getSelectors:r,get selectors(){return r(n)},selectSlice:n}}let Q={name:n,reducer:p,actions:c,caseReducers:a,getInitialState:B,...w(r),injectInto(A,{reducerPath:e,...t}={}){let n=e??r;return A.inject({reducerPath:n,reducer:p},t),{...Q,...w(n,!0)}}};return Q}}();function AG(){}var AU=(A,e)=>{if("function"!=typeof A)throw Error(AW(32))},{assign:AY}=Object,AN="listenerMiddleware",Ax=A=>{let{type:e,actionCreator:t,matcher:n,predicate:r,effect:o}=A;if(e)r=AC(e).match;else if(t)e=t.type,r=t.match;else if(n)r=n;else if(r);else throw Error(AW(21));return AU(o,"options.listener"),{predicate:r,type:e,effect:o}},A_=Object.assign(A=>{let{type:e,predicate:t,effect:n}=Ax(A);return{id:AR(),effect:n,type:e,predicate:t,pending:new Set,unsubscribe:()=>{throw Error(AW(22))}}},{withTypes:()=>A_}),AH=Object.assign(AC(`${AN}/add`),{withTypes:()=>AH});AC(`${AN}/removeAll`);var Aj=Object.assign(AC(`${AN}/remove`),{withTypes:()=>Aj});function AW(A){return`Minified Redux Toolkit error #${A}; visit https://redux-toolkit.js.org/Errors?code=${A} for the full message or use the non-minified dev environment for full errors. `}Symbol.for("rtk-state-proxy-original")},4517:function(A,e,t){"use strict";t.d(e,{MH:function(){return f},jA:function(){return l}});/** * @shiguredo/light-adjustment * Light Adjustment Library * @version: 2023.2.0 @@ -18,7 +18,7 @@ * @version: 0.0.0 * @author: Shiguredo Inc. * @license: Apache-2.0 - **/class n{trackProcessor;processedTrack;originalTrack;static isSupported(){return o.isSupported()||i.isSupported()}async startProcessing(A,e){if(this.isProcessing())throw Error("Video track processing has already started.");if(o.isSupported())this.trackProcessor=new o(A,e);else if(i.isSupported())this.trackProcessor=new i(A,e);else throw Error("Unsupported browser");return this.originalTrack=A,this.processedTrack=await this.trackProcessor.startProcessing(),this.processedTrack}stopProcessing(){void 0!==this.trackProcessor&&(this.trackProcessor.stopProcessing(),this.trackProcessor=void 0,this.originalTrack=void 0,this.processedTrack=void 0)}isProcessing(){return void 0!==this.trackProcessor}getOriginalTrack(){return this.originalTrack}getProcessedTrack(){return this.processedTrack}}class r{track;callback;constructor(A,e){this.track=A,this.callback=e}}class o extends r{abortController;generator;processor;canvas;canvasCtx;constructor(A,e){super(A,e),this.abortController=new AbortController,this.generator=new MediaStreamTrackGenerator({kind:"video"}),this.processor=new MediaStreamTrackProcessor({track:this.track});let t=A.getSettings().width||0,n=A.getSettings().height||0;this.canvas=new OffscreenCanvas(t,n);let r=this.canvas.getContext("2d",{desynchronized:!0,willReadFrequently:!0});if(null===r)throw Error("Failed to get the 2D context of an offscreen canvas");this.canvasCtx=r}static isSupported(){return!("undefined"==typeof MediaStreamTrackProcessor||"undefined"==typeof MediaStreamTrackGenerator)}startProcessing(){let A=this.abortController.signal;return this.processor.readable.pipeThrough(new TransformStream({transform:async(A,e)=>{let{displayWidth:t,displayHeight:n,timestamp:r,duration:o}=A;a(t,n,this.canvas),this.canvasCtx.drawImage(A,0,0),A.close();let i=this.canvasCtx.getImageData(0,0,t,n),s=await this.callback(i);if("ended"===this.generator.readyState){this.stopProcessing();return}let c=await createImageBitmap(s);e.enqueue(new VideoFrame(c,{timestamp:r,duration:o}))}}),{signal:A}).pipeTo(this.generator.writable).catch(e=>{A.aborted?console.debug("Shutting down streams after abort."):console.warn("Error from stream transform:",e),this.processor.readable.cancel(e).catch(A=>{console.warn("Failed to cancel `MediaStreamTrackProcessor`:",A)}),this.generator.writable.abort(e).catch(A=>{console.warn("Failed to abort `MediaStreamTrackGenerator`:",A)})}),Promise.resolve(this.generator)}stopProcessing(){this.abortController.abort()}}class i extends r{video;requestVideoFrameCallbackHandle;canvas;canvasCtx;tmpCanvas;tmpCanvasCtx;constructor(A,e){super(A,e),this.video=document.createElement("video"),this.video.muted=!0,this.video.playsInline=!0,this.video.srcObject=new MediaStream([A]);let t=A.getSettings().width||0,n=A.getSettings().height||0;this.canvas=document.createElement("canvas"),this.canvas.width=t,this.canvas.height=n;let r=this.canvas.getContext("2d");if(null===r)throw Error("Failed to create 2D canvas context");this.canvasCtx=r,this.tmpCanvas=function(A,e){if("undefined"!=typeof OffscreenCanvas)return new OffscreenCanvas(A,e);{let t=document.createElement("canvas");return t.width=A,t.height=e,t}}(t,n);let o=this.tmpCanvas.getContext("2d");if(null===o)throw Error("Failed to create 2D canvas context");this.tmpCanvasCtx=o}static isSupported(){return"requestVideoFrameCallback"in HTMLVideoElement.prototype}async startProcessing(){return this.requestVideoFrameCallbackHandle=this.video.requestVideoFrameCallback(()=>{this.onFrame().catch(A=>console.warn("Error: ",A))}),await this.video.play(),Promise.resolve(this.canvas.captureStream().getVideoTracks()[0])}stopProcessing(){void 0!==this.requestVideoFrameCallbackHandle&&(this.video.pause(),this.video.cancelVideoFrameCallback(this.requestVideoFrameCallbackHandle),this.requestVideoFrameCallbackHandle=void 0)}async onFrame(){let{videoWidth:A,videoHeight:e}=this.video;a(A,e,this.canvas),a(A,e,this.tmpCanvas),this.tmpCanvasCtx.drawImage(this.video,0,0);let t=this.tmpCanvasCtx.getImageData(0,0,A,e),n=await this.callback(t);this.canvasCtx.putImageData(n,0,0),this.requestVideoFrameCallbackHandle=this.video.requestVideoFrameCallback(()=>{this.onFrame().catch(A=>console.warn("Error: ",A))})}}function a(A,e,t){(t.width!==A||t.height!==e)&&(t.width=A,t.height=e)}var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};(function(){function A(A){var e=0;return function(){return e>>0)+"_",r=0;return function A(t){if(this instanceof A)throw TypeError("Symbol is not a constructor");return new e(n+(t||"")+"_"+r++,t)}}),r("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var r="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),o=0;oe&&(e=Math.max(0,n+e)),(null==t||t>n)&&(t=n),0>(t=Number(t))&&(t=Math.max(0,n+t)),e=Number(e||0);e(e=e||0)&&(e=Math.max(e+n,0));et;t++){var n=A.concat(e[t].split(""));O[t]=n;for(var r=0;r>2];i=e[(3&i)<<4|a>>4],a=e[(15&a)<<2|s>>6],s=e[63&s],t[o++]=c+i+a+s}switch(c=0,s=n,A.length-r){case 2:s=e[(15&(c=A[r+1]))<<2]||n;case 1:A=A[r],t[o]=e[A>>2]+e[(3&A)<<4|c>>4]+s+n}return t.join("")}for(e="";10240>4),64!=i&&(e(o<<4&240|i>>2),64!=a&&e(i<<6&192|a))}}(e,function(A){r[o++]=A}),o!==n?r.subarray(0,o):r}P.test(A)&&(A=A.replace(P,G)),A=atob(A);for(var i=new Uint8Array(A.length),a=0;aA,t=(A=Math.abs(A))>>>0;A=Math.floor((A-t)/4294967296),e&&(e=(t=o(X(t,A))).next().value,A=t.next().value,t=e),_=t>>>0,H=A>>>0}var W="function"==typeof BigInt;function X(A,e){return e=~e,A?A=~A+1:e+=1,[A,e]}function L(A,e){this.i=A>>>0,this.h=e>>>0}function J(A){if(!A)return Ae||(Ae=new L(0,0));if(!/^-?\d+$/.test(A))return null;if(16>A.length)j(Number(A));else if(W)_=Number((A=BigInt(A))&BigInt(4294967295))>>>0,H=Number(A>>BigInt(32)&BigInt(4294967295));else{var e=+("-"===A[0]);H=_=0;for(var t=A.length,n=e,r=(t-e)%6+e;r<=t;n=r,r+=6)n=Number(A.slice(n,r)),H*=1e6,4294967296<=(_=1e6*_+n)&&(H+=_/4294967296|0,_%=4294967296);e&&(A=(e=o(X(_,H))).next().value,e=e.next().value,_=A,H=e)}return new L(_,H)}function Z(A,e){return Error("Invalid wire type: "+A+" (at position "+e+")")}function V(){return Error("Failed to read varint, encoding is invalid.")}function K(A,e){return Error("Tried to read past the end of the data "+e+" > "+A)}function z(){throw Error("Invalid UTF8")}function q(A,e){return e=String.fromCharCode.apply(null,e),null==A?e:A+e}var $,AA,Ae,At,An,Ar=void 0,Ao="undefined"!=typeof TextDecoder,Ai="undefined"!=typeof TextEncoder;function Aa(A){if(A!==N)throw Error("illegal external caller")}function As(A,e){if(Aa(e),this.V=A,null!=A&&0===A.length)throw Error("ByteString should be constructed with non-empty values")}function Ac(){return Ak||(Ak=new As(null,N))}function Al(A){Aa(N);var e=A.V;return null==(e=null==e||R&&null!=e&&e instanceof Uint8Array?e:"string"==typeof e?U(e):null)?e:A.V=e}function Ag(A,e){this.i=null,this.m=!1,this.h=this.j=this.l=0,Au(this,A,e)}function Au(A,e,t){t=void 0===t?{}:t,A.S=void 0!==t.S&&t.S,e&&(e=function(A){if("string"==typeof A)return{buffer:U(A),C:!1};if(Array.isArray(A))return{buffer:new Uint8Array(A),C:!1};if(A.constructor===Uint8Array)return{buffer:A,C:!1};if(A.constructor===ArrayBuffer)return{buffer:new Uint8Array(A),C:!1};if(A.constructor===As)return{buffer:Al(A)||Y(),C:!0};if(A instanceof Uint8Array)return{buffer:new Uint8Array(A.buffer,A.byteOffset,A.byteLength),C:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers")}(e),A.i=e.buffer,A.m=e.C,A.l=0,A.j=A.i.length,A.h=A.l)}function Ad(A,e){if(A.h=e,e>A.j)throw K(A.j,e)}function Af(A){var e=A.i,t=A.h,n=e[t++],r=127&n;if(128&n&&(r|=(127&(n=e[t++]))<<7,128&n&&(r|=(127&(n=e[t++]))<<14,128&n&&(r|=(127&(n=e[t++]))<<21,128&n&&(r|=(n=e[t++])<<28,128&n&&128&e[t++]&&128&e[t++]&&128&e[t++]&&128&e[t++]&&128&e[t++])))))throw V();return Ad(A,t),r}function Ah(A,e){if(0>e)throw Error("Tried to read a negative byte length: "+e);var t=A.h,n=t+e;if(n>A.j)throw K(e,A.j-t);return A.h=n,t}Ag.prototype.reset=function(){this.h=this.l};var AE=[];function Ap(){this.h=[]}function AB(A,e,t){for(;0>>7|t<<25)>>>0,t>>>=7;A.h.push(e)}function Aw(A,e){for(;127>>=7;A.h.push(e)}function AQ(A,e){if(AE.length){var t=AE.pop();Au(t,A,e),A=t}else A=new Ag(A,e);this.h=A,this.j=this.h.h,this.i=this.l=-1,this.setOptions(e)}function AC(A){var e=A.h;if(e.h==e.j)return!1;A.j=A.h.h;var t=Af(A.h)>>>0;if(e=t>>>3,!(0<=(t&=7)&&5>=t))throw Z(t,A.j);if(1>e)throw Error("Invalid field number: "+e+" (at position "+A.j+")");return A.l=e,A.i=t,!0}Ap.prototype.length=function(){return this.h.length},Ap.prototype.end=function(){var A=this.h;return this.h=[],A},AQ.prototype.setOptions=function(A){A=void 0===A?{}:A,this.ca=void 0!==A.ca&&A.ca},AQ.prototype.reset=function(){this.h.reset(),this.j=this.h.h,this.i=this.l=-1};var AI=[];function AD(){this.j=[],this.i=0,this.h=new Ap}function Ay(A,e){0!==e.length&&(A.j.push(e),A.i+=e.length)}var Ab="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():void 0;function Am(A,e){return Ab?A[Ab]|=e:void 0!==A.A?A.A|=e:(Object.defineProperties(A,{A:{value:e,configurable:!0,writable:!0,enumerable:!1}}),e)}function Av(A,e){Ab?A[Ab]&&(A[Ab]&=~e):void 0!==A.A&&(A.A&=~e)}function AM(A){var e;return null==(e=Ab?A[Ab]:A.A)?0:e}function AO(A,e){Ab?A[Ab]=e:void 0!==A.A?A.A=e:Object.defineProperties(A,{A:{value:e,configurable:!0,writable:!0,enumerable:!1}})}function AF(A,e){AO(e,(0|A)&-51)}function AT(A,e){AO(e,(18|A)&-41)}var AR={};function AS(A){return null!==A&&"object"==typeof A&&!Array.isArray(A)&&A.constructor===Object}var Ak,AP,AG=[];function AU(A){if(2&AM(A.o))throw Error("Cannot mutate an immutable Message")}function AY(A){var e=A.length;(e=e?A[e-1]:void 0)&&AS(e)?e.g=1:(e={},A.push((e.g=1,e)))}function AN(A){var e=A.i+A.G;return A.B||(A.B=A.o[e]={})}function Ax(A,e){return -1===e?null:e>=A.i?A.B?A.B[e]:void 0:A.o[e+A.G]}function A_(A,e,t,n){AU(A),AH(A,e,t,n)}function AH(A,e,t,n){A.j&&(A.j=void 0),e>=A.i||n?AN(A)[e]=t:(A.o[e+A.G]=t,(A=A.B)&&e in A&&delete A[e])}function Aj(A,e,t,n){var r=Ax(A,e);Array.isArray(r)||(r=AP);var o=AM(r);if(1&o||Am(r,1),n)2&o||Am(r,2),1&t||Object.freeze(r);else{n=!(2&t);var i,a=2&o;1&t||!a?n&&16&o&&!a&&Av(r,16):(Am(i=Array.prototype.slice.call(r),1),AH(A,e,r=i))}return r}function AW(A,e){var t=Ax(A,e),n=null==t?t:"number"==typeof t||"NaN"===t||"Infinity"===t||"-Infinity"===t?Number(t):void 0;return null!=n&&n!==t&&AH(A,e,n),n}function AX(A,e,t,n,r){A.h||(A.h={});var o=A.h[t],i=Aj(A,t,3,r);if(!o){var a=i;o=[];var s=!!(16&AM(A.o));i=!!(2&AM(a));var c=a;!r&&i&&(a=Array.prototype.slice.call(a));for(var l=i,g=0;gi&&"number"!=typeof A[i]){var a=A[i++];t(e,a)}for(;i>>0,Ad(e=e.h,e.h+t));break;case 5:Ad(e=e.h,e.h+4);break;case 3:for(t=e.l;;){if(!AC(e))throw Error("Unmatched start-group tag: stream EOF");if(4==e.i){if(e.l!=t)throw Error("Unmatched end-group tag");break}A(e)}break;default:throw Z(e.i,e.j)}}(r);var i=r;if(!i.ca){if(r=i.h.h-o,i.h.h=o,i=i.h,0==r)r=Ac();else{if(o=Ah(i,r),i.S&&i.m)r=i.i.subarray(o,o+r);else{i=i.i;var a=o;r=a===(r=o+r)?Y():x?i.slice(a,r):new Uint8Array(i.subarray(a,r))}r=0==r.length?Ac():new As(r,N)}(o=n.R)?o.push(r):n.R=[r]}}}return A}function ep(A,e,t){for(var n=t.length,r=1==n%2,o=r?1:0;o>>0)>>31)+1,o=i>>>23&255,i&=8388607,A_(e,t,255==o?i?NaN:1/0*A:0==o?1401298464324817e-60*A*i:A*Math.pow(2,o-150)*(i+8388608)),!0},function(A,e,t){if(null!=(e=AW(e,t))){Aw(A.h,8*t+5),A=A.h;var n=+e;0===n?0<1/n?_=H=0:(H=0,_=2147483648):isNaN(n)?(H=0,_=2147483647):34028234663852886e22<(n=(t=0>n?-2147483648:0)?-n:n)?(H=0,_=(2139095040|t)>>>0):11754943508222875e-54>n?(H=0,_=(t|(n=Math.round(n/1401298464324817e-60)))>>>0):(e=Math.floor(Math.log(n)/Math.LN2),n*=Math.pow(2,-e),16777216<=(n=Math.round(8388608*n))&&++e,H=0,_=(t|e+127<<23|8388607&n)>>>0),t=_,A.h.push(t>>>0&255),A.h.push(t>>>8&255),A.h.push(t>>>16&255),A.h.push(t>>>24&255)}}),eQ=eB(function(A,e,t){if(0!==A.i)return!1;var n=A.h,r=0,o=A=0,i=n.i,a=n.h;do{var s=i[a++];r|=(127&s)<o&&128&s);for(32>4),o=3;32>o&&128&s;o+=7)A|=(127&(s=i[a++]))<s)n=r>>>0,(A=2147483648&(s=A>>>0))&&(s=~s>>>0,0==(n=~n+1>>>0)&&(s=s+1>>>0)),n=4294967296*s+(n>>>0);else throw V();return A_(e,t,A?-n:n),!0},function(A,e,t){null!=(e=Ax(e,t))&&("string"==typeof e&&J(e),null!=e&&(Aw(A.h,8*t),"number"==typeof e?(A=A.h,j(e),AB(A,_,H)):(t=J(e),AB(A.h,t.i,t.h))))}),eC=eB(function(A,e,t){return 0===A.i&&(A_(e,t,Af(A.h)),!0)},function(A,e,t){if(null!=(e=Ax(e,t))&&null!=e){if(Aw(A.h,8*t),A=A.h,0<=(t=e))Aw(A,t);else{for(e=0;9>e;e++)A.h.push(127&t|128),t>>=7;A.h.push(1)}}}),eI=eB(function(A,e,t){if(2!==A.i)return!1;var n=Af(A.h)>>>0,r=Ah(A=A.h,n);if(A=A.i,Ao){var o,i=A;(o=At)||(o=At=new TextDecoder("utf-8",{fatal:!0})),A=r+n,i=0===r&&A===i.length?i:i.subarray(r,A);try{var a=o.decode(i)}catch(A){if(void 0===Ar){try{o.decode(new Uint8Array([128]))}catch(A){}try{o.decode(new Uint8Array([97])),Ar=!0}catch(A){Ar=!1}}throw Ar||(At=void 0),A}}else{n=(a=r)+n,r=[];for(var s,c,l=null;a(s=A[a++])?r.push(s):224>s?a>=n?z():(c=A[a++],194>s||128!=(192&c)?(a--,z()):r.push((31&s)<<6|63&c)):240>s?a>=n-1?z():128!=(192&(c=A[a++]))||224===s&&160>c||237===s&&160<=c||128!=(192&(i=A[a++]))?(a--,z()):r.push((15&s)<<12|(63&c)<<6|63&i):244>=s?a>=n-2?z():128!=(192&(c=A[a++]))||0!=(s<<28)+(c-144)>>30||128!=(192&(i=A[a++]))||128!=(192&(o=A[a++]))?(a--,z()):(s=((7&s)<<18|(63&c)<<12|(63&i)<<6|63&o)-65536,r.push((s>>10&1023)+55296,(1023&s)+56320)):z(),8192<=r.length&&(l=q(l,r),r.length=0);a=q(l,r)}return A_(e,t,a),!0},function(A,e,t){if(null!=(e=Ax(e,t))){if(Ai)e=(An||(An=new TextEncoder)).encode(e);else{for(var n=0,r=new Uint8Array(3*e.length),o=0;oi)r[n++]=i;else{if(2048>i)r[n++]=i>>6|192;else{if(55296<=i&&57343>=i){if(56319>=i&&o=a){i=1024*(i-55296)+a-56320+65536,r[n++]=i>>18|240,r[n++]=i>>12&63|128,r[n++]=i>>6&63|128,r[n++]=63&i|128;continue}o--}i=65533}r[n++]=i>>12|224,r[n++]=i>>6&63|128}r[n++]=63&i|128}}e=n===r.length?r:r.subarray(0,n)}Aw(A.h,8*t+2),Aw(A.h,e.length),Ay(A,A.h.end()),Ay(A,e)}}),eD=eB(function(A,e,t,n,r){if(2!==A.i)return!1;e=AZ(e,t,n),t=A.h.j,n=Af(A.h)>>>0;var o=A.h.h+n,i=o-t;if(0>=i&&(A.h.j=o,r(e,A,void 0,void 0,void 0),i=o-A.h.h),i)throw Error("Message parsing ended unexpectedly. Expected to read "+n+" bytes, instead read "+(n-i)+" bytes, either the data ended unexpectedly or the message misreported its own length");return A.h.h=o,A.h.j=t,!0},function(A,e,t,n,r){if(null!=(e=AL(e,n,t)))for(n=0;n>>=7,i.i++;o.push(a),i.i++}});function ey(A){return function(e,t){A:{if(AI.length){var n=AI.pop();n.setOptions(t),Au(n.h,e,t),e=n}else e=new AQ(e,t);try{var r=eh(A),o=eE(new r.P,e,r);break A}finally{(r=e.h).i=null,r.m=!1,r.l=0,r.j=0,r.h=0,r.S=!1,e.l=-1,e.i=-1,100>AI.length&&AI.push(e)}o=void 0}return o}}function eb(A){return function(){var e=new AD;ep(this,e,ec(A)),Ay(e,e.h.end());for(var t=new Uint8Array(e.i),n=e.j,r=n.length,o=0,i=0;i(await this.processImage(A),A))}async processImage(A){if(void 0===this.wasm)return;let e=performance.now();if(this.wasm.setImageData(A),this.isOptionsUpdated||this.wasm.isStateObsolete()){let e=await this.focusMask.getFocusMask(A);this.wasm.setFocusMaskData(e),this.wasm.updateState(),this.stats.totalUpdateStateCount+=1,this.isOptionsUpdated=!1}this.wasm.processImage(),this.wasm.copyProcessedImageData(A);let t=performance.now()-e;this.stats.totalProcessedTimeMs+=t,this.stats.totalProcessedFrames+=1}stopProcessing(){this.trackProcessor.stopProcessing(),void 0!==this.wasm&&(this.wasm.destroy(),this.wasm=void 0)}isProcessing(){return this.trackProcessor.isProcessing()}getOriginalTrack(){return this.trackProcessor.getOriginalTrack()}getProcessedTrack(){return this.trackProcessor.getProcessedTrack()}updateOptions(A){void 0!==this.wasm&&(this.wasm.updateOptions(A),void 0!==A.focusMask&&(this.focusMask=A.focusMask),this.isOptionsUpdated=!0)}getStats(){return this.stats}resetStats(){this.stats.reset()}}class g{totalProcessedFrames=0;totalProcessedTimeMs=0;totalUpdateStateCount=0;getAverageProcessedTimeMs(){return 0===this.totalProcessedFrames?0:this.totalProcessedTimeMs/this.totalProcessedFrames}reset(){this.totalProcessedFrames=0,this.totalProcessedTimeMs=0,this.totalUpdateStateCount=0}}class u{wasm;memory;lightAdjustmentPtr;imageDataPtr;maskDataPtr;imageWidth;imageHeight;constructor(A,e){this.wasm=A,this.memory=A.exports.memory;let t=e.getSettings().width||0,n=e.getSettings().height||0;this.imageWidth=t,this.imageHeight=n;let r=A.exports.new(t,n);if(0===r)throw Error("Failed to create WebAssembly LightAdjustment instance.");this.lightAdjustmentPtr=r,this.imageDataPtr=A.exports.getImageData(r),this.maskDataPtr=A.exports.getFocusMaskData(r)}destroy(){this.wasm.exports.free(this.lightAdjustmentPtr)}setImageData(A){this.resizeIfNeed(A),new Uint8Array(this.memory.buffer,this.imageDataPtr,this.imageWidth*this.imageHeight*4).set(A.data)}copyProcessedImageData(A){A.data.set(new Uint8Array(this.memory.buffer,this.imageDataPtr,this.imageWidth*this.imageHeight*4))}setFocusMaskData(A){new Uint8Array(this.memory.buffer,this.maskDataPtr,this.imageWidth*this.imageHeight).set(A)}isStateObsolete(){return this.wasm.exports.isStateObsolete(this.lightAdjustmentPtr)}updateState(){return this.wasm.exports.updateState(this.lightAdjustmentPtr)}processImage(){return this.wasm.exports.processImage(this.lightAdjustmentPtr)}updateOptions(A){if(void 0!==A.alpha){if(A.alpha<0||!isFinite(A.alpha))throw Error(`Invaild alpha value: ${A.alpha} (must be a non-negative number)`);this.wasm.exports.setAlpha(this.lightAdjustmentPtr,A.alpha)}if(void 0!==A.adjustmentLevel){if(!(0<=A.adjustmentLevel&&A.adjustmentLevel<=100))throw Error(`Invaild fusion value: ${A.adjustmentLevel} (must be an integer between 0 and 100)`);this.wasm.exports.setAdjustmentLevel(this.lightAdjustmentPtr,A.adjustmentLevel)}if(void 0!==A.sharpnessLevel){if(!(0<=A.sharpnessLevel&&A.sharpnessLevel<=100))throw Error(`Invaild sharpen level value: ${A.sharpnessLevel} (must be an integer between 0 and 100)`);this.wasm.exports.setSharpnessLevel(this.lightAdjustmentPtr,A.sharpnessLevel)}if(void 0!==A.entropyThreshold){if(!(0<=A.entropyThreshold&&A.entropyThreshold<=1))throw Error(`Invaild entropyThreshold value: ${A.entropyThreshold} (must be a number between 0.0 and 1.0)`);this.wasm.exports.setEntropyThreshold(this.lightAdjustmentPtr,A.entropyThreshold)}if(void 0!==A.minIntensity){if(!(0<=A.minIntensity&&A.minIntensity<=255))throw Error(`Invaild minIntensity value: ${A.minIntensity} (must be an integer between 0 and 255)`);this.wasm.exports.setMinIntensity(this.lightAdjustmentPtr,A.minIntensity)}if(void 0!==A.maxIntensity){if(!(0<=A.maxIntensity&&A.maxIntensity<=255))throw Error(`Invaild maxIntensity value: ${A.maxIntensity} (must be an integer between 0 and 255)`);this.wasm.exports.setMaxIntensity(this.lightAdjustmentPtr,A.maxIntensity)}}resizeIfNeed(A){if(A.width!==this.imageWidth||A.height!==this.imageHeight){if(!this.wasm.exports.resize(this.lightAdjustmentPtr,A.width,A.height))throw Error("Failed to resize WebAssembly image data.");this.imageDataPtr=this.wasm.exports.getImageData(this.lightAdjustmentPtr),this.maskDataPtr=this.wasm.exports.getFocusMaskData(this.lightAdjustmentPtr),this.imageWidth=A.width,this.imageHeight=A.height}}}class d{mask=new Uint8Array;getFocusMask(A){let{width:e,height:t}=A;return this.mask.byteLength!==e*t&&(this.mask=new Uint8Array(e*t),this.mask.fill(255)),Promise.resolve(this.mask)}}class f{segmentation;mask;canvas;canvasCtx;constructor(A){var e;this.mask=new Uint8Array,this.canvas=function(A,e){if("undefined"!=typeof OffscreenCanvas)return new OffscreenCanvas(0,0);{let A=document.createElement("canvas");return A.width=0,A.height=0,A}}(0,0);let t=this.canvas.getContext("2d",{desynchronized:!0,willReadFrequently:!0});if(null===t)throw Error("Failed to create 2D canvas context");this.canvasCtx=t;let n={};A="/"===(e=A).slice(-1)?e.slice(0,-1):e,n.locateFile=e=>`${A}/${e}`,this.segmentation=new c(n),this.segmentation.setOptions({modelSelection:1}),this.segmentation.onResults(A=>{this.processSegmentationResults(A)})}async getFocusMask(A){return await this.segmentation.send({image:A}),this.mask}processSegmentationResults(A){let{width:e,height:t}=A.segmentationMask;(this.canvas.width!==e||this.canvas.height!==t)&&(this.canvas.width=e,this.canvas.height=t,this.mask=new Uint8Array(e*t)),this.canvasCtx.drawImage(A.segmentationMask,0,0);let n=this.canvasCtx.getImageData(0,0,e,t);for(let A=0;A{let{displayWidth:t,displayHeight:n,timestamp:r,duration:o}=A;a(t,n,this.canvas),this.canvasCtx.drawImage(A,0,0),A.close();let i=this.canvasCtx.getImageData(0,0,t,n),s=await this.callback(i);if("ended"===this.generator.readyState){this.stopProcessing();return}let c=await createImageBitmap(s);e.enqueue(new VideoFrame(c,{timestamp:r,duration:o}))}}),{signal:A}).pipeTo(this.generator.writable).catch(e=>{A.aborted?console.debug("Shutting down streams after abort."):console.warn("Error from stream transform:",e),this.processor.readable.cancel(e).catch(A=>{console.warn("Failed to cancel `MediaStreamTrackProcessor`:",A)}),this.generator.writable.abort(e).catch(A=>{console.warn("Failed to abort `MediaStreamTrackGenerator`:",A)})}),Promise.resolve(this.generator)}stopProcessing(){this.abortController.abort()}}class i extends r{video;requestVideoFrameCallbackHandle;canvas;canvasCtx;tmpCanvas;tmpCanvasCtx;constructor(A,e){super(A,e),this.video=document.createElement("video"),this.video.muted=!0,this.video.playsInline=!0,this.video.srcObject=new MediaStream([A]);let t=A.getSettings().width||0,n=A.getSettings().height||0;this.canvas=document.createElement("canvas"),this.canvas.width=t,this.canvas.height=n;let r=this.canvas.getContext("2d");if(null===r)throw Error("Failed to create 2D canvas context");this.canvasCtx=r,this.tmpCanvas=function(A,e){if("undefined"!=typeof OffscreenCanvas)return new OffscreenCanvas(A,e);{let t=document.createElement("canvas");return t.width=A,t.height=e,t}}(t,n);let o=this.tmpCanvas.getContext("2d");if(null===o)throw Error("Failed to create 2D canvas context");this.tmpCanvasCtx=o}static isSupported(){return"requestVideoFrameCallback"in HTMLVideoElement.prototype}async startProcessing(){return this.requestVideoFrameCallbackHandle=this.video.requestVideoFrameCallback(()=>{this.onFrame().catch(A=>console.warn("Error: ",A))}),await this.video.play(),Promise.resolve(this.canvas.captureStream().getVideoTracks()[0])}stopProcessing(){void 0!==this.requestVideoFrameCallbackHandle&&(this.video.pause(),this.video.cancelVideoFrameCallback(this.requestVideoFrameCallbackHandle),this.requestVideoFrameCallbackHandle=void 0)}async onFrame(){let{videoWidth:A,videoHeight:e}=this.video;a(A,e,this.canvas),a(A,e,this.tmpCanvas),this.tmpCanvasCtx.drawImage(this.video,0,0);let t=this.tmpCanvasCtx.getImageData(0,0,A,e),n=await this.callback(t);this.canvasCtx.putImageData(n,0,0),this.requestVideoFrameCallbackHandle=this.video.requestVideoFrameCallback(()=>{this.onFrame().catch(A=>console.warn("Error: ",A))})}}function a(A,e,t){(t.width!==A||t.height!==e)&&(t.width=A,t.height=e)}var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};(function(){function A(A){var e=0;return function(){return e>>0)+"_",r=0;return function A(t){if(this instanceof A)throw TypeError("Symbol is not a constructor");return new e(n+(t||"")+"_"+r++,t)}}),r("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var r="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),o=0;oe&&(e=Math.max(0,n+e)),(null==t||t>n)&&(t=n),0>(t=Number(t))&&(t=Math.max(0,n+t)),e=Number(e||0);e(e=e||0)&&(e=Math.max(e+n,0));et;t++){var n=A.concat(e[t].split(""));O[t]=n;for(var r=0;r>2];i=e[(3&i)<<4|a>>4],a=e[(15&a)<<2|s>>6],s=e[63&s],t[o++]=c+i+a+s}switch(c=0,s=n,A.length-r){case 2:s=e[(15&(c=A[r+1]))<<2]||n;case 1:A=A[r],t[o]=e[A>>2]+e[(3&A)<<4|c>>4]+s+n}return t.join("")}for(e="";10240>4),64!=i&&(e(o<<4&240|i>>2),64!=a&&e(i<<6&192|a))}}(e,function(A){r[o++]=A}),o!==n?r.subarray(0,o):r}P.test(A)&&(A=A.replace(P,G)),A=atob(A);for(var i=new Uint8Array(A.length),a=0;aA,t=(A=Math.abs(A))>>>0;A=Math.floor((A-t)/4294967296),e&&(e=(t=o(X(t,A))).next().value,A=t.next().value,t=e),_=t>>>0,H=A>>>0}var W="function"==typeof BigInt;function X(A,e){return e=~e,A?A=~A+1:e+=1,[A,e]}function L(A,e){this.i=A>>>0,this.h=e>>>0}function J(A){if(!A)return Ae||(Ae=new L(0,0));if(!/^-?\d+$/.test(A))return null;if(16>A.length)j(Number(A));else if(W)_=Number((A=BigInt(A))&BigInt(4294967295))>>>0,H=Number(A>>BigInt(32)&BigInt(4294967295));else{var e=+("-"===A[0]);H=_=0;for(var t=A.length,n=e,r=(t-e)%6+e;r<=t;n=r,r+=6)n=Number(A.slice(n,r)),H*=1e6,4294967296<=(_=1e6*_+n)&&(H+=_/4294967296|0,_%=4294967296);e&&(A=(e=o(X(_,H))).next().value,e=e.next().value,_=A,H=e)}return new L(_,H)}function Z(A,e){return Error("Invalid wire type: "+A+" (at position "+e+")")}function V(){return Error("Failed to read varint, encoding is invalid.")}function K(A,e){return Error("Tried to read past the end of the data "+e+" > "+A)}function z(){throw Error("Invalid UTF8")}function q(A,e){return e=String.fromCharCode.apply(null,e),null==A?e:A+e}var $,AA,Ae,At,An,Ar=void 0,Ao="undefined"!=typeof TextDecoder,Ai="undefined"!=typeof TextEncoder;function Aa(A){if(A!==N)throw Error("illegal external caller")}function As(A,e){if(Aa(e),this.V=A,null!=A&&0===A.length)throw Error("ByteString should be constructed with non-empty values")}function Ac(){return Ak||(Ak=new As(null,N))}function Al(A){Aa(N);var e=A.V;return null==(e=null==e||R&&null!=e&&e instanceof Uint8Array?e:"string"==typeof e?U(e):null)?e:A.V=e}function Ag(A,e){this.i=null,this.m=!1,this.h=this.j=this.l=0,Au(this,A,e)}function Au(A,e,t){t=void 0===t?{}:t,A.S=void 0!==t.S&&t.S,e&&(e=function(A){if("string"==typeof A)return{buffer:U(A),C:!1};if(Array.isArray(A))return{buffer:new Uint8Array(A),C:!1};if(A.constructor===Uint8Array)return{buffer:A,C:!1};if(A.constructor===ArrayBuffer)return{buffer:new Uint8Array(A),C:!1};if(A.constructor===As)return{buffer:Al(A)||Y(),C:!0};if(A instanceof Uint8Array)return{buffer:new Uint8Array(A.buffer,A.byteOffset,A.byteLength),C:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers")}(e),A.i=e.buffer,A.m=e.C,A.l=0,A.j=A.i.length,A.h=A.l)}function Ad(A,e){if(A.h=e,e>A.j)throw K(A.j,e)}function Af(A){var e=A.i,t=A.h,n=e[t++],r=127&n;if(128&n&&(r|=(127&(n=e[t++]))<<7,128&n&&(r|=(127&(n=e[t++]))<<14,128&n&&(r|=(127&(n=e[t++]))<<21,128&n&&(r|=(n=e[t++])<<28,128&n&&128&e[t++]&&128&e[t++]&&128&e[t++]&&128&e[t++]&&128&e[t++])))))throw V();return Ad(A,t),r}function Ah(A,e){if(0>e)throw Error("Tried to read a negative byte length: "+e);var t=A.h,n=t+e;if(n>A.j)throw K(e,A.j-t);return A.h=n,t}Ag.prototype.reset=function(){this.h=this.l};var AE=[];function Ap(){this.h=[]}function AB(A,e,t){for(;0>>7|t<<25)>>>0,t>>>=7;A.h.push(e)}function Aw(A,e){for(;127>>=7;A.h.push(e)}function AQ(A,e){if(AE.length){var t=AE.pop();Au(t,A,e),A=t}else A=new Ag(A,e);this.h=A,this.j=this.h.h,this.i=this.l=-1,this.setOptions(e)}function AC(A){var e=A.h;if(e.h==e.j)return!1;A.j=A.h.h;var t=Af(A.h)>>>0;if(e=t>>>3,!(0<=(t&=7)&&5>=t))throw Z(t,A.j);if(1>e)throw Error("Invalid field number: "+e+" (at position "+A.j+")");return A.l=e,A.i=t,!0}Ap.prototype.length=function(){return this.h.length},Ap.prototype.end=function(){var A=this.h;return this.h=[],A},AQ.prototype.setOptions=function(A){A=void 0===A?{}:A,this.ca=void 0!==A.ca&&A.ca},AQ.prototype.reset=function(){this.h.reset(),this.j=this.h.h,this.i=this.l=-1};var AI=[];function AD(){this.j=[],this.i=0,this.h=new Ap}function Ay(A,e){0!==e.length&&(A.j.push(e),A.i+=e.length)}var Ab="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():void 0;function Am(A,e){return Ab?A[Ab]|=e:void 0!==A.A?A.A|=e:(Object.defineProperties(A,{A:{value:e,configurable:!0,writable:!0,enumerable:!1}}),e)}function Av(A,e){Ab?A[Ab]&&(A[Ab]&=~e):void 0!==A.A&&(A.A&=~e)}function AM(A){var e;return null==(e=Ab?A[Ab]:A.A)?0:e}function AO(A,e){Ab?A[Ab]=e:void 0!==A.A?A.A=e:Object.defineProperties(A,{A:{value:e,configurable:!0,writable:!0,enumerable:!1}})}function AF(A,e){AO(e,(0|A)&-51)}function AT(A,e){AO(e,(18|A)&-41)}var AR={};function AS(A){return null!==A&&"object"==typeof A&&!Array.isArray(A)&&A.constructor===Object}var Ak,AP,AG=[];function AU(A){if(2&AM(A.o))throw Error("Cannot mutate an immutable Message")}function AY(A){var e=A.length;(e=e?A[e-1]:void 0)&&AS(e)?e.g=1:(e={},A.push((e.g=1,e)))}function AN(A){var e=A.i+A.G;return A.B||(A.B=A.o[e]={})}function Ax(A,e){return -1===e?null:e>=A.i?A.B?A.B[e]:void 0:A.o[e+A.G]}function A_(A,e,t,n){AU(A),AH(A,e,t,n)}function AH(A,e,t,n){A.j&&(A.j=void 0),e>=A.i||n?AN(A)[e]=t:(A.o[e+A.G]=t,(A=A.B)&&e in A&&delete A[e])}function Aj(A,e,t,n){var r=Ax(A,e);Array.isArray(r)||(r=AP);var o=AM(r);if(1&o||Am(r,1),n)2&o||Am(r,2),1&t||Object.freeze(r);else{n=!(2&t);var i,a=2&o;1&t||!a?n&&16&o&&!a&&Av(r,16):(Am(i=Array.prototype.slice.call(r),1),AH(A,e,r=i))}return r}function AW(A,e){var t=Ax(A,e),n=null==t?t:"number"==typeof t||"NaN"===t||"Infinity"===t||"-Infinity"===t?Number(t):void 0;return null!=n&&n!==t&&AH(A,e,n),n}function AX(A,e,t,n,r){A.h||(A.h={});var o=A.h[t],i=Aj(A,t,3,r);if(!o){var a=i;o=[];var s=!!(16&AM(A.o));i=!!(2&AM(a));var c=a;!r&&i&&(a=Array.prototype.slice.call(a));for(var l=i,g=0;gi&&"number"!=typeof A[i]){var a=A[i++];t(e,a)}for(;i>>0,Ad(e=e.h,e.h+t));break;case 5:Ad(e=e.h,e.h+4);break;case 3:for(t=e.l;;){if(!AC(e))throw Error("Unmatched start-group tag: stream EOF");if(4==e.i){if(e.l!=t)throw Error("Unmatched end-group tag");break}A(e)}break;default:throw Z(e.i,e.j)}}(r);var i=r;if(!i.ca){if(r=i.h.h-o,i.h.h=o,i=i.h,0==r)r=Ac();else{if(o=Ah(i,r),i.S&&i.m)r=i.i.subarray(o,o+r);else{i=i.i;var a=o;r=a===(r=o+r)?Y():x?i.slice(a,r):new Uint8Array(i.subarray(a,r))}r=0==r.length?Ac():new As(r,N)}(o=n.R)?o.push(r):n.R=[r]}}}return A}function ep(A,e,t){for(var n=t.length,r=1==n%2,o=r?1:0;o>>0)>>31)+1,o=i>>>23&255,i&=8388607,A_(e,t,255==o?i?NaN:1/0*A:0==o?1401298464324817e-60*A*i:A*Math.pow(2,o-150)*(i+8388608)),!0},function(A,e,t){if(null!=(e=AW(e,t))){Aw(A.h,8*t+5),A=A.h;var n=+e;0===n?0<1/n?_=H=0:(H=0,_=2147483648):isNaN(n)?(H=0,_=2147483647):34028234663852886e22<(n=(t=0>n?-2147483648:0)?-n:n)?(H=0,_=(2139095040|t)>>>0):11754943508222875e-54>n?(H=0,_=(t|(n=Math.round(n/1401298464324817e-60)))>>>0):(e=Math.floor(Math.log(n)/Math.LN2),n*=Math.pow(2,-e),16777216<=(n=Math.round(8388608*n))&&++e,H=0,_=(t|e+127<<23|8388607&n)>>>0),t=_,A.h.push(t>>>0&255),A.h.push(t>>>8&255),A.h.push(t>>>16&255),A.h.push(t>>>24&255)}}),eQ=eB(function(A,e,t){if(0!==A.i)return!1;var n=A.h,r=0,o=A=0,i=n.i,a=n.h;do{var s=i[a++];r|=(127&s)<o&&128&s);for(32>4),o=3;32>o&&128&s;o+=7)A|=(127&(s=i[a++]))<s)n=r>>>0,(A=2147483648&(s=A>>>0))&&(s=~s>>>0,0==(n=~n+1>>>0)&&(s=s+1>>>0)),n=4294967296*s+(n>>>0);else throw V();return A_(e,t,A?-n:n),!0},function(A,e,t){null!=(e=Ax(e,t))&&("string"==typeof e&&J(e),null!=e&&(Aw(A.h,8*t),"number"==typeof e?(A=A.h,j(e),AB(A,_,H)):(t=J(e),AB(A.h,t.i,t.h))))}),eC=eB(function(A,e,t){return 0===A.i&&(A_(e,t,Af(A.h)),!0)},function(A,e,t){if(null!=(e=Ax(e,t))&&null!=e){if(Aw(A.h,8*t),A=A.h,0<=(t=e))Aw(A,t);else{for(e=0;9>e;e++)A.h.push(127&t|128),t>>=7;A.h.push(1)}}}),eI=eB(function(A,e,t){if(2!==A.i)return!1;var n=Af(A.h)>>>0,r=Ah(A=A.h,n);if(A=A.i,Ao){var o,i=A;(o=At)||(o=At=new TextDecoder("utf-8",{fatal:!0})),A=r+n,i=0===r&&A===i.length?i:i.subarray(r,A);try{var a=o.decode(i)}catch(A){if(void 0===Ar){try{o.decode(new Uint8Array([128]))}catch(A){}try{o.decode(new Uint8Array([97])),Ar=!0}catch(A){Ar=!1}}throw Ar||(At=void 0),A}}else{n=(a=r)+n,r=[];for(var s,c,l=null;a(s=A[a++])?r.push(s):224>s?a>=n?z():(c=A[a++],194>s||128!=(192&c)?(a--,z()):r.push((31&s)<<6|63&c)):240>s?a>=n-1?z():128!=(192&(c=A[a++]))||224===s&&160>c||237===s&&160<=c||128!=(192&(i=A[a++]))?(a--,z()):r.push((15&s)<<12|(63&c)<<6|63&i):244>=s?a>=n-2?z():128!=(192&(c=A[a++]))||0!=(s<<28)+(c-144)>>30||128!=(192&(i=A[a++]))||128!=(192&(o=A[a++]))?(a--,z()):(s=((7&s)<<18|(63&c)<<12|(63&i)<<6|63&o)-65536,r.push((s>>10&1023)+55296,(1023&s)+56320)):z(),8192<=r.length&&(l=q(l,r),r.length=0);a=q(l,r)}return A_(e,t,a),!0},function(A,e,t){if(null!=(e=Ax(e,t))){if(Ai)e=(An||(An=new TextEncoder)).encode(e);else{for(var n=0,r=new Uint8Array(3*e.length),o=0;oi)r[n++]=i;else{if(2048>i)r[n++]=i>>6|192;else{if(55296<=i&&57343>=i){if(56319>=i&&o=a){i=1024*(i-55296)+a-56320+65536,r[n++]=i>>18|240,r[n++]=i>>12&63|128,r[n++]=i>>6&63|128,r[n++]=63&i|128;continue}o--}i=65533}r[n++]=i>>12|224,r[n++]=i>>6&63|128}r[n++]=63&i|128}}e=n===r.length?r:r.subarray(0,n)}Aw(A.h,8*t+2),Aw(A.h,e.length),Ay(A,A.h.end()),Ay(A,e)}}),eD=eB(function(A,e,t,n,r){if(2!==A.i)return!1;e=AZ(e,t,n),t=A.h.j,n=Af(A.h)>>>0;var o=A.h.h+n,i=o-t;if(0>=i&&(A.h.j=o,r(e,A,void 0,void 0,void 0),i=o-A.h.h),i)throw Error("Message parsing ended unexpectedly. Expected to read "+n+" bytes, instead read "+(n-i)+" bytes, either the data ended unexpectedly or the message misreported its own length");return A.h.h=o,A.h.j=t,!0},function(A,e,t,n,r){if(null!=(e=AL(e,n,t)))for(n=0;n>>=7,i.i++;o.push(a),i.i++}});function ey(A){return function(e,t){A:{if(AI.length){var n=AI.pop();n.setOptions(t),Au(n.h,e,t),e=n}else e=new AQ(e,t);try{var r=eh(A),o=eE(new r.P,e,r);break A}finally{(r=e.h).i=null,r.m=!1,r.l=0,r.j=0,r.h=0,r.S=!1,e.l=-1,e.i=-1,100>AI.length&&AI.push(e)}o=void 0}return o}}function eb(A){return function(){var e=new AD;ep(this,e,ec(A)),Ay(e,e.h.end());for(var t=new Uint8Array(e.i),n=e.j,r=n.length,o=0,i=0;i(await this.processImage(A),A))}async processImage(A){if(void 0===this.wasm)return;let e=performance.now();if(this.wasm.setImageData(A),this.isOptionsUpdated||this.wasm.isStateObsolete()){let e=await this.focusMask.getFocusMask(A);this.wasm.setFocusMaskData(e),this.wasm.updateState(),this.stats.totalUpdateStateCount+=1,this.isOptionsUpdated=!1}this.wasm.processImage(),this.wasm.copyProcessedImageData(A);let t=performance.now()-e;this.stats.totalProcessedTimeMs+=t,this.stats.totalProcessedFrames+=1}stopProcessing(){this.trackProcessor.stopProcessing(),void 0!==this.wasm&&(this.wasm.destroy(),this.wasm=void 0)}isProcessing(){return this.trackProcessor.isProcessing()}getOriginalTrack(){return this.trackProcessor.getOriginalTrack()}getProcessedTrack(){return this.trackProcessor.getProcessedTrack()}updateOptions(A){void 0!==this.wasm&&(this.wasm.updateOptions(A),void 0!==A.focusMask&&(this.focusMask=A.focusMask),this.isOptionsUpdated=!0)}getStats(){return this.stats}resetStats(){this.stats.reset()}}class g{totalProcessedFrames=0;totalProcessedTimeMs=0;totalUpdateStateCount=0;getAverageProcessedTimeMs(){return 0===this.totalProcessedFrames?0:this.totalProcessedTimeMs/this.totalProcessedFrames}reset(){this.totalProcessedFrames=0,this.totalProcessedTimeMs=0,this.totalUpdateStateCount=0}}class u{wasm;memory;lightAdjustmentPtr;imageDataPtr;maskDataPtr;imageWidth;imageHeight;constructor(A,e){this.wasm=A,this.memory=A.exports.memory;let t=e.getSettings().width||0,n=e.getSettings().height||0;this.imageWidth=t,this.imageHeight=n;let r=A.exports.new(t,n);if(0===r)throw Error("Failed to create WebAssembly LightAdjustment instance.");this.lightAdjustmentPtr=r,this.imageDataPtr=A.exports.getImageData(r),this.maskDataPtr=A.exports.getFocusMaskData(r)}destroy(){this.wasm.exports.free(this.lightAdjustmentPtr)}setImageData(A){this.resizeIfNeed(A),new Uint8Array(this.memory.buffer,this.imageDataPtr,this.imageWidth*this.imageHeight*4).set(A.data)}copyProcessedImageData(A){A.data.set(new Uint8Array(this.memory.buffer,this.imageDataPtr,this.imageWidth*this.imageHeight*4))}setFocusMaskData(A){new Uint8Array(this.memory.buffer,this.maskDataPtr,this.imageWidth*this.imageHeight).set(A)}isStateObsolete(){return this.wasm.exports.isStateObsolete(this.lightAdjustmentPtr)}updateState(){return this.wasm.exports.updateState(this.lightAdjustmentPtr)}processImage(){return this.wasm.exports.processImage(this.lightAdjustmentPtr)}updateOptions(A){if(void 0!==A.alpha){if(A.alpha<0||!isFinite(A.alpha))throw Error(`Invaild alpha value: ${A.alpha} (must be a non-negative number)`);this.wasm.exports.setAlpha(this.lightAdjustmentPtr,A.alpha)}if(void 0!==A.adjustmentLevel){if(!(0<=A.adjustmentLevel&&A.adjustmentLevel<=100))throw Error(`Invaild fusion value: ${A.adjustmentLevel} (must be an integer between 0 and 100)`);this.wasm.exports.setAdjustmentLevel(this.lightAdjustmentPtr,A.adjustmentLevel)}if(void 0!==A.sharpnessLevel){if(!(0<=A.sharpnessLevel&&A.sharpnessLevel<=100))throw Error(`Invaild sharpen level value: ${A.sharpnessLevel} (must be an integer between 0 and 100)`);this.wasm.exports.setSharpnessLevel(this.lightAdjustmentPtr,A.sharpnessLevel)}if(void 0!==A.entropyThreshold){if(!(0<=A.entropyThreshold&&A.entropyThreshold<=1))throw Error(`Invaild entropyThreshold value: ${A.entropyThreshold} (must be a number between 0.0 and 1.0)`);this.wasm.exports.setEntropyThreshold(this.lightAdjustmentPtr,A.entropyThreshold)}if(void 0!==A.minIntensity){if(!(0<=A.minIntensity&&A.minIntensity<=255))throw Error(`Invaild minIntensity value: ${A.minIntensity} (must be an integer between 0 and 255)`);this.wasm.exports.setMinIntensity(this.lightAdjustmentPtr,A.minIntensity)}if(void 0!==A.maxIntensity){if(!(0<=A.maxIntensity&&A.maxIntensity<=255))throw Error(`Invaild maxIntensity value: ${A.maxIntensity} (must be an integer between 0 and 255)`);this.wasm.exports.setMaxIntensity(this.lightAdjustmentPtr,A.maxIntensity)}}resizeIfNeed(A){if(A.width!==this.imageWidth||A.height!==this.imageHeight){if(!this.wasm.exports.resize(this.lightAdjustmentPtr,A.width,A.height))throw Error("Failed to resize WebAssembly image data.");this.imageDataPtr=this.wasm.exports.getImageData(this.lightAdjustmentPtr),this.maskDataPtr=this.wasm.exports.getFocusMaskData(this.lightAdjustmentPtr),this.imageWidth=A.width,this.imageHeight=A.height}}}class d{mask=new Uint8Array;getFocusMask(A){let{width:e,height:t}=A;return this.mask.byteLength!==e*t&&(this.mask=new Uint8Array(e*t),this.mask.fill(255)),Promise.resolve(this.mask)}}class f{segmentation;mask;canvas;canvasCtx;constructor(A){var e;this.mask=new Uint8Array,this.canvas=function(A,e){if("undefined"!=typeof OffscreenCanvas)return new OffscreenCanvas(0,0);{let A=document.createElement("canvas");return A.width=0,A.height=0,A}}(0,0);let t=this.canvas.getContext("2d",{desynchronized:!0,willReadFrequently:!0});if(null===t)throw Error("Failed to create 2D canvas context");this.canvasCtx=t;let n={};A="/"===(e=A).slice(-1)?e.slice(0,-1):e,n.locateFile=e=>`${A}/${e}`,this.segmentation=new c(n),this.segmentation.setOptions({modelSelection:1}),this.segmentation.onResults(A=>{this.processSegmentationResults(A)})}async getFocusMask(A){return await this.segmentation.send({image:A}),this.mask}processSegmentationResults(A){let{width:e,height:t}=A.segmentationMask;(this.canvas.width!==e||this.canvas.height!==t)&&(this.canvas.width=e,this.canvas.height=t,this.mask=new Uint8Array(e*t)),this.canvasCtx.drawImage(A.segmentationMask,0,0);let n=this.canvasCtx.getImageData(0,0,e,t);for(let A=0;A`${A}/${e}`,this.segmentation=new s(t)}static isSupported(){return n.isSupported()}async startProcessing(A,e={}){let t;let n=A.getSettings().width||0,r=A.getSettings().height||0,o=h(n,r),i=o.getContext("2d",{desynchronized:!0,willReadFrequently:!1});if(null===i)throw Error("Failed to create 2D canvas context");if(void 0!==e.blurRadius&&"safari"===function(){let A=window.navigator.userAgent.toLocaleLowerCase();return -1!==A.indexOf("edge")?"edge":-1!==A.indexOf("chrome")&&-1===A.indexOf("edge")?"chrome":-1!==A.indexOf("safari")&&-1===A.indexOf("chrome")?"safari":-1!==A.indexOf("opera")?"opera":-1!==A.indexOf("firefox")?"firefox":"unknown"}()){let A=h(n,r).getContext("2d",{desynchronized:!0,willReadFrequently:!0});if(null===A)throw Error("Failed to create 2D canvas context");t=A}await this.segmentation.initialize();let a=1;return e.segmentationModel&&"selfie-general"===e.segmentationModel&&(a=0),this.segmentation.setOptions({modelSelection:a}),this.segmentation.onResults(A=>{let{width:n,height:r}=A.segmentationMask;f(n,r,o),void 0!==t&&f(n,r,t.canvas),this.updateOffscreenCanvas(A,i,t,e)}),this.trackProcessor.startProcessing(A,async A=>(await this.segmentation.send({image:A}),o))}stopProcessing(){this.trackProcessor.stopProcessing(),this.segmentation.onResults(()=>{})}isProcessing(){return this.trackProcessor.isProcessing()}getOriginalTrack(){return this.trackProcessor.getOriginalTrack()}getProcessedTrack(){return this.trackProcessor.getProcessedTrack()}updateOffscreenCanvas(A,e,t,n){let{width:r,height:o}=A.image;e.save(),e.clearRect(0,0,r,o),e.drawImage(A.segmentationMask,0,0,r,o),e.globalCompositeOperation="source-in",e.drawImage(A.image,0,0,r,o),e.globalCompositeOperation="destination-over";let i=e;if(void 0!==n.blurRadius&&(void 0!==t?i=t:i.filter=`blur(${n.blurRadius}px)`),void 0!==n.backgroundImage){let A=(n.backgroundImageRegion||function(A,e){let t=0,n=0,r=e.width,o=e.height,i=A.width/A.height,a=e.width/e.height;if(ai){let n=A.width*(e.height/A.height);t=Math.round((r-n)/2),r=Math.round(n)}return{x:t,y:n,width:r,height:o}})({width:r,height:o},n.backgroundImage);i.drawImage(n.backgroundImage,A.x,A.y,A.width,A.height,0,0,r,o)}else i.drawImage(A.image,0,0);void 0!==t&&(function(A,e,t,n,r,o){if(!isNaN(o)&&!(o<1)){o|=0;var i=function(A,e,t,n,r){if("string"==typeof A&&(A=document.getElementById(A)),!A||"object"!==c(A)||!("getContext"in A))throw TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var o=A.getContext("2d");try{return o.getImageData(0,0,n,r)}catch(A){throw Error("unable to access image data: "+A)}}(A,0,0,n,r);i=function(A,e,t,n,r,o){for(var i,a,s,c=A.data,d=2*o+1,f=n-1,h=r-1,E=o+1,p=E*(E+1)/2,B=new u,w=B,Q=1;Q>y,c[m+1]=P*D>>y,c[m+2]=G*D>>y,k-=T,P-=R,G-=S,T-=C.r,R-=C.g,S-=C.b,a=b+((a=H+o+1)>y,c[a+1]=z*D>>y,c[a+2]=q*D>>y,K-=J,z-=Z,q-=V,J-=C.r,Z-=C.g,V-=C.b,a=j+((a=Ao+E){throw Error("uSES not initialized!")},g=(A,e)=>A===e,u=function(A=a){let e=A===a?c:s(A),t=(A,t={})=>{let{equalityFn:r=g,devModeChecks:o={}}="function"==typeof t?{equalityFn:t}:t,{store:i,subscription:a,getServerState:s,stabilityCheck:c,identityFunctionCheck:u}=e();n.useRef(!0);let d=n.useCallback({[A.name]:e=>A(e)}[A.name],[A,c,o.stabilityCheck]),f=l(a.addNestedSub,i.getState,s||i.getState,d,r);return n.useDebugValue(f),f};return Object.assign(t,{withTypes:()=>t}),t}();Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.client.reference");var d={notify(){},get:()=>[]},f=!!("undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement),h="undefined"!=typeof navigator&&"ReactNative"===navigator.product,E=f||h?n.useLayoutEffect:n.useEffect,p=function({store:A,context:e,children:t,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){let s=n.useMemo(()=>{let e=function(A,e){let t;let n=d,r=0,o=!1;function i(){c.onStateChange&&c.onStateChange()}function a(){if(r++,!t){let e,r;t=A.subscribe(i),e=null,r=null,n={clear(){e=null,r=null},notify(){(()=>{let A=e;for(;A;)A.callback(),A=A.next})()},get(){let A=[],t=e;for(;t;)A.push(t),t=t.next;return A},subscribe(A){let t=!0,n=r={callback:A,next:null,prev:r};return n.prev?n.prev.next=n:e=n,function(){t&&null!==e&&(t=!1,n.next?n.next.prev=n.prev:r=n.prev,n.prev?n.prev.next=n.next:e=n.next)}}}}}function s(){r--,t&&0===r&&(t(),t=void 0,n.clear(),n=d)}let c={addNestedSub:function(A){a();let e=n.subscribe(A),t=!1;return()=>{t||(t=!0,e(),s())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:i,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,a())},tryUnsubscribe:function(){o&&(o=!1,s())},getListeners:()=>n};return c}(A);return{store:A,subscription:e,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}},[A,r,o,i]),c=n.useMemo(()=>A.getState(),[A]);return E(()=>{let{subscription:e}=s;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==A.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[s,c]),n.createElement((e||a).Provider,{value:s},t)};function B(A=a){let e=A===a?c:s(A),t=()=>{let{store:A}=e();return A};return Object.assign(t,{withTypes:()=>t}),t}var w=B(),Q=function(A=a){let e=A===a?w:B(A),t=()=>e().dispatch;return Object.assign(t,{withTypes:()=>t}),t}();l=r.useSyncExternalStoreWithSelector,n.useSyncExternalStore}},function(A){var e=function(e){return A(A.s=e)};A.O(0,[774,179],function(){return e(8085),e(178)}),_N_E=A.O()}]); \ No newline at end of file +*/var l=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],g=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24],u=function A(){!function(A,e){if(!(A instanceof e))throw TypeError("Cannot call a class as a function")}(this,A),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};class d{trackProcessor;segmentation;constructor(A){var e;this.trackProcessor=new n;let t={};A="/"===(e=A).slice(-1)?e.slice(0,-1):e,t.locateFile=e=>`${A}/${e}`,this.segmentation=new s(t)}static isSupported(){return n.isSupported()}async startProcessing(A,e={}){let t;let n=A.getSettings().width||0,r=A.getSettings().height||0,o=h(n,r),i=o.getContext("2d",{desynchronized:!0,willReadFrequently:!1});if(null===i)throw Error("Failed to create 2D canvas context");if(void 0!==e.blurRadius&&"safari"===function(){let A=window.navigator.userAgent.toLocaleLowerCase();return -1!==A.indexOf("edge")?"edge":-1!==A.indexOf("chrome")&&-1===A.indexOf("edge")?"chrome":-1!==A.indexOf("safari")&&-1===A.indexOf("chrome")?"safari":-1!==A.indexOf("opera")?"opera":-1!==A.indexOf("firefox")?"firefox":"unknown"}()){let A=h(n,r).getContext("2d",{desynchronized:!0,willReadFrequently:!0});if(null===A)throw Error("Failed to create 2D canvas context");t=A}await this.segmentation.initialize();let a=1;return e.segmentationModel&&"selfie-general"===e.segmentationModel&&(a=0),this.segmentation.setOptions({modelSelection:a}),this.segmentation.onResults(A=>{let{width:n,height:r}=A.segmentationMask;f(n,r,o),void 0!==t&&f(n,r,t.canvas),this.updateOffscreenCanvas(A,i,t,e)}),this.trackProcessor.startProcessing(A,async A=>(await this.segmentation.send({image:A}),o))}stopProcessing(){this.trackProcessor.stopProcessing(),this.segmentation.onResults(()=>{})}isProcessing(){return this.trackProcessor.isProcessing()}getOriginalTrack(){return this.trackProcessor.getOriginalTrack()}getProcessedTrack(){return this.trackProcessor.getProcessedTrack()}updateOffscreenCanvas(A,e,t,n){let{width:r,height:o}=A.image;e.save(),e.clearRect(0,0,r,o),e.drawImage(A.segmentationMask,0,0,r,o),e.globalCompositeOperation="source-in",e.drawImage(A.image,0,0,r,o),e.globalCompositeOperation="destination-over";let i=e;if(void 0!==n.blurRadius&&(void 0!==t?i=t:i.filter=`blur(${n.blurRadius}px)`),void 0!==n.backgroundImage){let A=(n.backgroundImageRegion||function(A,e){let t=0,n=0,r=e.width,o=e.height,i=A.width/A.height,a=e.width/e.height;if(ai){let n=A.width*(e.height/A.height);t=Math.round((r-n)/2),r=Math.round(n)}return{x:t,y:n,width:r,height:o}})({width:r,height:o},n.backgroundImage);i.drawImage(n.backgroundImage,A.x,A.y,A.width,A.height,0,0,r,o)}else i.drawImage(A.image,0,0);void 0!==t&&(function(A,e,t,n,r,o){if(!isNaN(o)&&!(o<1)){o|=0;var i=function(A,e,t,n,r){if("string"==typeof A&&(A=document.getElementById(A)),!A||"object"!==c(A)||!("getContext"in A))throw TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var o=A.getContext("2d");try{return o.getImageData(0,0,n,r)}catch(A){throw Error("unable to access image data: "+A)}}(A,0,0,n,r);i=function(A,e,t,n,r,o){for(var i,a,s,c=A.data,d=2*o+1,f=n-1,h=r-1,E=o+1,p=E*(E+1)/2,B=new u,w=B,Q=1;Q>y,c[m+1]=P*D>>y,c[m+2]=G*D>>y,k-=T,P-=R,G-=S,T-=C.r,R-=C.g,S-=C.b,a=b+((a=H+o+1)>y,c[a+1]=z*D>>y,c[a+2]=q*D>>y,K-=J,z-=Z,q-=V,J-=C.r,Z-=C.g,V-=C.b,a=j+((a=Ao+E){throw Error("uSES not initialized!")},g=(A,e)=>A===e,u=function(A=a){let e=A===a?c:s(A),t=(A,t={})=>{let{equalityFn:r=g,devModeChecks:o={}}="function"==typeof t?{equalityFn:t}:t,{store:i,subscription:a,getServerState:s,stabilityCheck:c,identityFunctionCheck:u}=e();n.useRef(!0);let d=n.useCallback({[A.name]:e=>A(e)}[A.name],[A,c,o.stabilityCheck]),f=l(a.addNestedSub,i.getState,s||i.getState,d,r);return n.useDebugValue(f),f};return Object.assign(t,{withTypes:()=>t}),t}();Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.client.reference");var d={notify(){},get:()=>[]},f=!!("undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement),h="undefined"!=typeof navigator&&"ReactNative"===navigator.product,E=f||h?n.useLayoutEffect:n.useEffect,p=function({store:A,context:e,children:t,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){let s=n.useMemo(()=>{let e=function(A,e){let t;let n=d,r=0,o=!1;function i(){c.onStateChange&&c.onStateChange()}function a(){if(r++,!t){let e,r;t=A.subscribe(i),e=null,r=null,n={clear(){e=null,r=null},notify(){(()=>{let A=e;for(;A;)A.callback(),A=A.next})()},get(){let A=[],t=e;for(;t;)A.push(t),t=t.next;return A},subscribe(A){let t=!0,n=r={callback:A,next:null,prev:r};return n.prev?n.prev.next=n:e=n,function(){t&&null!==e&&(t=!1,n.next?n.next.prev=n.prev:r=n.prev,n.prev?n.prev.next=n.next:e=n.next)}}}}}function s(){r--,t&&0===r&&(t(),t=void 0,n.clear(),n=d)}let c={addNestedSub:function(A){a();let e=n.subscribe(A),t=!1;return()=>{t||(t=!0,e(),s())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:i,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,a())},tryUnsubscribe:function(){o&&(o=!1,s())},getListeners:()=>n};return c}(A);return{store:A,subscription:e,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}},[A,r,o,i]),c=n.useMemo(()=>A.getState(),[A]);return E(()=>{let{subscription:e}=s;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==A.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[s,c]),n.createElement((e||a).Provider,{value:s},t)};function B(A=a){let e=A===a?c:s(A),t=()=>{let{store:A}=e();return A};return Object.assign(t,{withTypes:()=>t}),t}var w=B(),Q=function(A=a){let e=A===a?w:B(A),t=()=>e().dispatch;return Object.assign(t,{withTypes:()=>t}),t}();l=r.useSyncExternalStoreWithSelector,n.useSyncExternalStore}},function(A){var e=function(e){return A(A.s=e)};A.O(0,[774,179],function(){return e(5207),e(9291)}),_N_E=A.O()}]); \ No newline at end of file diff --git a/dist/_next/static/chunks/pages/_error-0e8428b30c6c0304.js b/dist/_next/static/chunks/pages/_error-0e8428b30c6c0304.js new file mode 100644 index 00000000..fc597965 --- /dev/null +++ b/dist/_next/static/chunks/pages/_error-0e8428b30c6c0304.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[820],{7485:function(n,_,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_error",function(){return u(5268)}])}},function(n){n.O(0,[888,774,179],function(){return n(n.s=7485)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/dist/_next/static/chunks/pages/_error-d2a2433779266cd3.js b/dist/_next/static/chunks/pages/_error-d2a2433779266cd3.js deleted file mode 100644 index fd8473b0..00000000 --- a/dist/_next/static/chunks/pages/_error-d2a2433779266cd3.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[820],{2708:function(n,_,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_error",function(){return u(2220)}])}},function(n){n.O(0,[888,774,179],function(){return n(n.s=2708)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/dist/_next/static/chunks/pages/devtools-199bb388d8c28fda.js b/dist/_next/static/chunks/pages/devtools-199bb388d8c28fda.js new file mode 100644 index 00000000..4be411a5 --- /dev/null +++ b/dist/_next/static/chunks/pages/devtools-199bb388d8c28fda.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[893],{32:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/devtools",function(){return a(9136)}])},9136:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return iR}});var n=a(2676),i=a(5271),s=a(4517),o=a(8426),l=a(4029),r=a(4974),c=a(8039),d=a(6007);function u(e){let t=new Date(e),a=t.getFullYear(),n=t.getMonth()+1,i=t.getDate(),s=t.getHours().toString().padStart(2,"0"),o=t.getMinutes().toString().padStart(2,"0"),l=t.getSeconds().toString().padStart(2,"0"),r=t.getMilliseconds().toString().padStart(3,"0");return"".concat(a,"-").concat(n,"-").concat(i," ").concat(s,":").concat(o,":").concat(l,".").concat(r)}function m(e){return navigator.clipboard?navigator.clipboard.writeText(e):Promise.resolve()}function g(e,t){return"string"==typeof e&&t.indexOf(e)>=0}function h(e,t){if(e)return t.filter(e=>""!==e);let a="https:"===window.location.protocol?"wss://":"ws://",n=window.location.port?":".concat(window.location.port):"";return"".concat(a+window.location.hostname+n,"/signaling")}let p=/^(\d+)x(\d+)$/;function v(e){if(p.test(e)){let t=e.match(p);if(t)return{width:Number.parseInt(t[1],10),height:Number.parseInt(t[2],10)}}return{width:0,height:0}}function x(e){switch(e){case"4:3":return 4/3;case"16:9":return 16/9;case"21:9":return 20/9;default:return Number.NaN}}function j(e){let{audio:t,autoGainControl:a,noiseSuppression:n,echoCancellation:i,echoCancellationType:s}=e;if(!t)return!1;if(!a&&!n&&!i&&!s)return!0;let o={},l=C(a);void 0!==l&&(o.autoGainControl=l);let r=C(n);void 0!==r&&(o.noiseSuppression=r);let c=C(i);return void 0!==c&&(o.echoCancellation=c),s&&(o.echoCancellationType=s),o}function f(e){let{aspectRatio:t,frameRate:a,resizeMode:n,resolution:i}=e;if(!a&&!i&&!t&&!n)return!0;let s={};if(a){let e=Number.parseInt(a,10);Number.isNaN(e)||(s.frameRate=e)}if(i){let{width:e,height:t}=v(i);0async(e,t)=>{e(T.slice.actions.resetState());let a=function(){let e;let t=e=>{if("string"==typeof e)return e},a=e=>{if("string"==typeof e)return C(e)},n=(e,t)=>{if(g(e,t))return e},i=c.Z.parse(location.search);if("string"==typeof i.signalingUrlCandidates)try{e=JSON.parse(i.signalingUrlCandidates)}catch(e){}let s={apiUrl:t(i.apiUrl),audio:a(i.audio),audioBitRate:n(i.audioBitRate,d.xR),audioCodecType:n(i.audioCodecType,d.o1),audioStreamingLanguageCode:t(i.audioStreamingLanguageCode),autoGainControl:n(i.autoGainControl,d.iN),bundleId:t(i.bundleId),channelId:t(i.channelId),clientId:t(i.clientId),googCpuOveruseDetection:a(i.googCpuOveruseDetection),debug:a(i.debug),debugType:n(i.debugType,d.aF),displayResolution:t(i.displayResolution),e2ee:a(i.e2ee),echoCancellation:n(i.echoCancellation,d.PS),echoCancellationType:n(i.echoCancellationType,d.cJ),noiseSuppression:n(i.noiseSuppression,d.ad),facingMode:n(i.facingMode,d.pT),fakeVolume:t(i.fakeVolume),frameRate:t(i.frameRate),mediaStats:a(i.mediaStats),mediaType:n(i.mediaType,d.w_),metadata:t(i.metadata),showStats:a(i.showStats),signalingNotifyMetadata:t(i.signalingNotifyMetadata),signalingUrlCandidates:Array.isArray(e)?e:void 0,forwardingFilter:t(i.forwardingFilter),simulcast:n(i.simulcast,d.VE),simulcastRid:n(i.simulcastRid,d.WJ),spotlight:n(i.spotlight,d.VJ),spotlightNumber:n(i.spotlightNumber,d.Xr),spotlightFocusRid:n(i.spotlightFocusRid,d.I7),spotlightUnfocusRid:n(i.spotlightUnfocusRid,d.I7),resolution:t(i.resolution),video:a(i.video),videoBitRate:n(i.videoBitRate,d.Q5),videoCodecType:n(i.videoCodecType,d.Sh),videoVP9Params:t(i.videoVP9Params),videoH264Params:t(i.videoH264Params),videoH265Params:t(i.videoH265Params),videoAV1Params:t(i.videoAV1Params),audioInput:t(i.audioInput),videoInput:t(i.videoInput),audioOutput:t(i.audioOutput),mute:a(i.mute),dataChannelSignaling:n(i.dataChannelSignaling,d.l9),ignoreDisconnectWebSocket:n(i.ignoreDisconnectWebSocket,d.kt),micDevice:a(i.micDevice),cameraDevice:a(i.cameraDevice),audioTrack:a(i.audioTrack),videoTrack:a(i.videoTrack),dataChannels:t(i.dataChannels),reconnect:a(i.reconnect),audioContentHint:n(i.audioContentHint,d.nT),videoContentHint:n(i.videoContentHint,d.QO),aspectRatio:n(i.aspectRatio,d.Ii),resizeMode:n(i.resizeMode,d.L4),blurRadius:n(i.blurRadius,d.G_),lightAdjustment:n(i.lightAdjustment,d.Xv),mediaProcessorsNoiseSuppression:a(i.mediaProcessorsNoiseSuppression),multistream:n(i.multistream,d.u9),role:n(i.role,d.K$)};return Object.keys(s).map(e=>{void 0===s[e]&&delete s[e]}),s}();void 0!==a.audio&&e(T.slice.actions.setAudio(a.audio)),void 0!==a.audioBitRate&&e(T.slice.actions.setAudioBitRate(a.audioBitRate)),void 0!==a.audioCodecType&&e(T.slice.actions.setAudioCodecType(a.audioCodecType));let n=await S(),i=n.find(e=>"audioinput"===e.kind&&e.deviceId===a.audioInput);void 0!==i&&e(T.slice.actions.setAudioInput(i.deviceId));let s=n.find(e=>"audiooutput"===e.kind&&e.deviceId===a.audioOutput);void 0!==s&&e(T.slice.actions.setAudioOutput(s.deviceId));let o=n.find(e=>"videoinput"===e.kind&&e.deviceId===a.videoInput);void 0!==o&&e(T.slice.actions.setVideoInput(o.deviceId)),void 0!==a.autoGainControl&&e(T.slice.actions.setAutoGainControl(a.autoGainControl)),void 0!==a.channelId&&e(T.slice.actions.setChannelId(a.channelId)),void 0!==a.displayResolution&&e(T.slice.actions.setDisplayResolution(a.displayResolution)),void 0!==a.e2ee&&e(T.slice.actions.setE2EE(a.e2ee)),void 0!==a.echoCancellation&&e(T.slice.actions.setEchoCancellation(a.echoCancellation)),void 0!==a.echoCancellationType&&e(T.slice.actions.setEchoCancellationType(a.echoCancellationType)),void 0!==a.mediaStats&&e(T.slice.actions.setMediaStats(a.mediaStats)),void 0!==a.mediaType&&e(T.slice.actions.setMediaType(a.mediaType)),void 0!==a.facingMode&&e(T.slice.actions.setFacingMode(a.facingMode)),void 0!==a.fakeVolume&&e(T.slice.actions.setFakeVolume(a.fakeVolume)),void 0!==a.frameRate&&e(T.slice.actions.setFrameRate(a.frameRate)),void 0!==a.multistream&&e(T.slice.actions.setMultistream(a.multistream)),void 0!==a.noiseSuppression&&e(T.slice.actions.setNoiseSuppression(a.noiseSuppression)),void 0!==a.resolution&&e(T.slice.actions.setResolution(a.resolution)),void 0!==a.showStats&&e(T.slice.actions.setShowStats(a.showStats)),void 0!==a.simulcast&&e(T.slice.actions.setSimulcast(a.simulcast)),void 0!==a.simulcastRid&&e(T.slice.actions.setSimulcastRid(a.simulcastRid)),void 0!==a.spotlight&&e(T.slice.actions.setSpotlight(a.spotlight)),void 0!==a.spotlightNumber&&e(T.slice.actions.setSpotlightNumber(a.spotlightNumber)),void 0!==a.spotlightFocusRid&&e(T.slice.actions.setSpotlightFocusRid(a.spotlightFocusRid)),void 0!==a.spotlightUnfocusRid&&e(T.slice.actions.setSpotlightUnfocusRid(a.spotlightUnfocusRid)),void 0!==a.video&&e(T.slice.actions.setVideo(a.video)),void 0!==a.videoBitRate&&e(T.slice.actions.setVideoBitRate(a.videoBitRate)),void 0!==a.videoCodecType&&e(T.slice.actions.setVideoCodecType(a.videoCodecType)),void 0!==a.videoVP9Params&&e(T.slice.actions.setVideoVP9Params(a.videoVP9Params)),void 0!==a.videoH264Params&&e(T.slice.actions.setVideoH264Params(a.videoH264Params)),void 0!==a.videoH265Params&&e(T.slice.actions.setVideoH265Params(a.videoH265Params)),void 0!==a.videoAV1Params&&e(T.slice.actions.setVideoAV1Params(a.videoAV1Params)),void 0!==a.debug&&e(T.slice.actions.setDebug(a.debug)),void 0!==a.debugType&&e(T.slice.actions.setDebugType(a.debugType)),void 0!==a.mute&&e(T.slice.actions.setMute(a.mute)),void 0!==a.dataChannelSignaling&&e(T.slice.actions.setDataChannelSignaling(a.dataChannelSignaling)),void 0!==a.ignoreDisconnectWebSocket&&e(T.slice.actions.setIgnoreDisconnectWebSocket(a.ignoreDisconnectWebSocket)),void 0!==a.micDevice&&e(T.slice.actions.setMicDevice(a.micDevice)),void 0!==a.cameraDevice&&e(T.slice.actions.setCameraDevice(a.cameraDevice)),void 0!==a.audioTrack&&e(T.slice.actions.setAudioTrack(a.audioTrack)),void 0!==a.videoTrack&&e(T.slice.actions.setVideoTrack(a.videoTrack)),void 0!==a.googCpuOveruseDetection&&null!==a.googCpuOveruseDetection&&e(T.slice.actions.setGoogCpuOveruseDetection(a.googCpuOveruseDetection)),void 0!==a.bundleId&&e(T.slice.actions.setBundleId(a.bundleId)),void 0!==a.clientId&&e(T.slice.actions.setClientId(a.clientId)),void 0!==a.metadata&&e(T.slice.actions.setMetadata(a.metadata)),void 0!==a.signalingNotifyMetadata&&e(T.slice.actions.setSignalingNotifyMetadata(a.signalingNotifyMetadata)),void 0!==a.signalingUrlCandidates&&e(T.slice.actions.setSignalingUrlCandidates(a.signalingUrlCandidates)),void 0!==a.forwardingFilter&&e(T.slice.actions.setForwardingFilter(a.forwardingFilter)),void 0!==a.dataChannels&&e(T.slice.actions.setDataChannels(a.dataChannels)),void 0!==a.audioContentHint&&e(T.slice.actions.setAudioContentHint(a.audioContentHint)),void 0!==a.videoContentHint&&e(T.slice.actions.setVideoContentHint(a.videoContentHint)),void 0!==a.reconnect&&e(T.slice.actions.setReconnect(a.reconnect)),void 0!==a.aspectRatio&&e(T.slice.actions.setAspectRatio(a.aspectRatio)),void 0!==a.resizeMode&&e(T.slice.actions.setResizeMode(a.resizeMode)),void 0!==a.blurRadius&&e(T.slice.actions.setBlurRadius(a.blurRadius)),void 0!==a.lightAdjustment&&e(T.slice.actions.setLightAdjustment(a.lightAdjustment)),void 0!==a.mediaProcessorsNoiseSuppression&&e(T.slice.actions.setMediaProcessorsNoiseSuppression(a.mediaProcessorsNoiseSuppression)),void 0!==a.apiUrl&&null!==a.apiUrl&&e(T.slice.actions.setApiUrl(a.apiUrl)),void 0!==a.role&&e(T.slice.actions.setRole(a.role)),void 0!==a.audioStreamingLanguageCode&&e(T.slice.actions.setAudioStreamingLanguageCode(a.audioStreamingLanguageCode)),e(T.slice.actions.setInitialFakeContents());let{audioStreamingLanguageCode:l,bundleId:u,clientId:m,dataChannelSignaling:h,dataChannels:p,e2ee:v,ignoreDisconnectWebSocket:x,metadata:j,signalingNotifyMetadata:f,signalingUrlCandidates:b,forwardingFilter:y,videoVP9Params:N,videoH264Params:k,videoH265Params:w,videoAV1Params:I}=t();if(v)try{await r.Z.initE2EE("https://sora-e2ee-wasm.shiguredo.app/2020.2/wasm.wasm")}catch(t){e(T.slice.actions.setSoraErrorAlertMessage("Faild to execute WebAssembly '".concat("https://sora-e2ee-wasm.shiguredo.app/2020.2/wasm.wasm","'.")));return}""!==u&&e(T.slice.actions.setEnabledBundleId(!0)),""!==m&&e(T.slice.actions.setEnabledClientId(!0)),""!==j&&e(T.slice.actions.setEnabledMetadata(!0)),""!==f&&e(T.slice.actions.setEnabledSignalingNotifyMetadata(!0)),0(e,t)=>{let a=t(),n=!("recvonly"===a.role&&("true"===a.multistream||""===a.multistream)),i={channelId:a.channelId,role:a.role,audio:a.audio,video:a.video,debug:a.debug,mediaType:"getUserMedia"!==a.mediaType?a.mediaType:void 0,audioBitRate:n&&""!==a.audioBitRate?a.audioBitRate:void 0,audioCodecType:n&&""!==a.audioCodecType?a.audioCodecType:void 0,videoBitRate:n&&""!==a.videoBitRate?a.videoBitRate:void 0,videoCodecType:n&&""!==a.videoCodecType?a.videoCodecType:void 0,videoVP9Params:n&&""!==a.videoVP9Params&&a.enabledVideoVP9Params?a.videoVP9Params:void 0,videoH264Params:n&&""!==a.videoH264Params&&a.enabledVideoH264Params?a.videoH264Params:void 0,videoH265Params:n&&""!==a.videoH265Params&&a.enabledVideoH265Params?a.videoH265Params:void 0,videoAV1Params:n&&""!==a.videoAV1Params&&a.enabledVideoAV1Params?a.videoAV1Params:void 0,audioContentHint:""!==a.audioContentHint?a.audioContentHint:void 0,autoGainControl:""!==a.autoGainControl?a.autoGainControl:void 0,noiseSuppression:""!==a.noiseSuppression?a.noiseSuppression:void 0,echoCancellation:""!==a.echoCancellation?a.echoCancellation:void 0,echoCancellationType:""!==a.echoCancellationType?a.echoCancellationType:void 0,videoContentHint:""!==a.videoContentHint?a.videoContentHint:void 0,resolution:""!==a.resolution?a.resolution:void 0,facingMode:""!==a.facingMode?a.facingMode:void 0,frameRate:""!==a.frameRate?a.frameRate:void 0,aspectRatio:""!==a.aspectRatio?a.aspectRatio:void 0,resizeMode:""!==a.resizeMode?a.resizeMode:void 0,blurRadius:""!==a.blurRadius?a.blurRadius:void 0,lightAdjustment:""!==a.lightAdjustment?a.lightAdjustment:void 0,multistream:""!==a.multistream?a.multistream:void 0,simulcast:""!==a.simulcast?a.simulcast:void 0,simulcastRid:""!==a.simulcastRid?a.simulcastRid:void 0,spotlight:""!==a.spotlight?a.spotlight:void 0,spotlightNumber:""!==a.spotlightNumber?a.spotlightNumber:void 0,spotlightFocusRid:""!==a.spotlightFocusRid?a.spotlightFocusRid:void 0,spotlightUnfocusRid:""!==a.spotlightUnfocusRid?a.spotlightUnfocusRid:void 0,audioInput:"getUserMedia"===a.mediaType&&""!==a.audioInput?a.audioInput:void 0,audioOutput:""!==a.audioOutput?a.audioOutput:void 0,videoInput:"getUserMedia"===a.mediaType&&""!==a.videoInput?a.videoInput:void 0,displayResolution:""!==a.displayResolution?a.displayResolution:void 0,mediaStats:!0===a.mediaStats||void 0,bundleId:""!==a.bundleId&&a.enabledBundleId?a.bundleId:void 0,clientId:""!==a.clientId&&a.enabledClientId?a.clientId:void 0,metadata:""!==a.metadata&&a.enabledMetadata?a.metadata:void 0,signalingNotifyMetadata:""!==a.signalingNotifyMetadata&&a.enabledSignalingNotifyMetadata?a.signalingNotifyMetadata:void 0,forwardingFilter:""!==a.forwardingFilter&&a.enabledForwardingFilter?a.forwardingFilter:void 0,dataChannelSignaling:""!==a.dataChannelSignaling&&a.enabledDataChannel?a.dataChannelSignaling:void 0,ignoreDisconnectWebSocket:""!==a.ignoreDisconnectWebSocket&&a.enabledDataChannel?a.ignoreDisconnectWebSocket:void 0,dataChannels:""!==a.dataChannels&&a.enabledDataChannels?a.dataChannels:void 0,reconnect:!0===a.reconnect||void 0,e2ee:!0===a.e2ee||void 0,mediaProcessorsNoiseSuppression:!0===a.mediaProcessorsNoiseSuppression||void 0,micDevice:!1!==a.micDevice&&void 0,cameraDevice:!1!==a.cameraDevice&&void 0,audioTrack:!1!==a.audioTrack&&void 0,videoTrack:!1!==a.videoTrack&&void 0,signalingUrlCandidates:0{let t=i[e];return void 0===t?void 0:"signalingUrlCandidates"===e?"".concat(e,"=").concat(encodeURIComponent(JSON.stringify(t))):"".concat(e,"=").concat(encodeURIComponent(t))}).filter(e=>void 0!==e);m("".concat(location.origin).concat(location.pathname,"?").concat(s.join("&"))),window.history.replaceState(null,"","".concat(location.pathname,"?").concat(s.join("&")))};async function R(e,t){let a="MEDIA_CONSTRAINTS";if("getDisplayMedia"===t.mediaType){if(!t.video||!t.cameraDevice)return[new MediaStream,null];if(void 0===navigator.mediaDevices)throw Error("Failed to call getUserMedia. Make sure domain is secure");let n={audio:j({audio:t.audio,autoGainControl:t.autoGainControl,noiseSuppression:t.noiseSuppression,echoCancellation:t.echoCancellation,echoCancellationType:t.echoCancellationType}),video:f({frameRate:t.frameRate,resolution:t.resolution,aspectRatio:t.aspectRatio,resizeMode:t.resizeMode})};e(T.slice.actions.setLogMessages({title:a,description:JSON.stringify(n)})),e(T.slice.actions.setTimelineMessage(P("media-constraints",n)));let i=await navigator.mediaDevices.getDisplayMedia(n);for(let a of(e(T.slice.actions.setTimelineMessage(P("succeed-get-display-media"))),i.getVideoTracks()))void 0!==a.contentHint&&(a.contentHint=t.videoContentHint),a.enabled=t.videoTrack,e(T.slice.actions.setTimelineMessage(V("start",a)));return[i,null]}if("mediacaptureRegion"===t.mediaType){if(!t.video||!t.cameraDevice)return[new MediaStream,null];if(void 0===window.CropTarget)throw Error("Failed to call CropTarget");if(void 0===navigator.mediaDevices)throw Error("Failed to call getDisplayMedia. Make sure domain is secure");let n={audio:j({audio:t.audio,autoGainControl:t.autoGainControl,noiseSuppression:t.noiseSuppression,echoCancellation:t.echoCancellation,echoCancellationType:t.echoCancellationType}),video:f({frameRate:t.frameRate,resolution:t.resolution,aspectRatio:t.aspectRatio,resizeMode:t.resizeMode})};n.preferCurrentTab=!0,e(T.slice.actions.setLogMessages({title:a,description:JSON.stringify(n)})),e(T.slice.actions.setTimelineMessage(P("media-constraints",n)));let i=await navigator.mediaDevices.getDisplayMedia(n),s=document.querySelector("#cropArea");if(null===s)throw Error("Failed to get CropTraget Element");let o=await window.CropTarget.fromElement(s);for(let a of(e(T.slice.actions.setTimelineMessage(P("succeed-get-display-media"))),i.getVideoTracks()))void 0!==a.contentHint&&(a.contentHint=t.videoContentHint),a.enabled=t.videoTrack,await a.cropTo(o),e(T.slice.actions.setTimelineMessage(V("start",a)));return[i,null]}if("fakeMedia"===t.mediaType&&t.fakeContents.worker){let n=function(e){let{audio:t,video:a,frameRate:n,resolution:i,volume:s,aspectRatio:o,resizeMode:l}=e,r=Number.parseInt(n,10),c=Number.isNaN(r)?30:r,d=v(i),u=d.width||240,m={audio:t,video:a,frameRate:c,width:u,height:d.height||160,fontSize:Math.floor(u/5),volume:Number.parseFloat(s)};return a&&(o||l)&&(m.videoTrackConstraints={},o&&(m.videoTrackConstraints.aspectRatio=x(o)),l&&(m.videoTrackConstraints.resizeMode=l)),m}({audio:t.audio&&t.micDevice,video:t.video&&t.cameraDevice,frameRate:t.frameRate,resolution:t.resolution,volume:t.fakeVolume,aspectRatio:t.aspectRatio,resizeMode:t.resizeMode});e(T.slice.actions.setLogMessages({title:a,description:JSON.stringify(n)})),e(T.slice.actions.setTimelineMessage(P("media-constraints",n)));let{canvas:i,mediaStream:s,gainNode:o}=function(e){let t=new MediaStream,a=null;if(e.video){(a=document.createElement("canvas")).getContext("2d"),a.width=e.width,a.height=e.height;let n=a.captureStream(e.frameRate).getTracks()[0];e.videoTrackConstraints&&n.applyConstraints(e.videoTrackConstraints),t.addTrack(n)}let n=null;if(e.audio){let a=new(window.AudioContext||window.webkitAudioContext),i=a.createOscillator();i.type="sine",n=a.createGain(),i.connect(n),i.start(0);let s=a.createMediaStreamDestination();n.connect(s);let o=s.stream.getTracks();t.addTrack(o[0]),n.gain.setValueAtTime(e.volume,0)}return{canvas:a,mediaStream:t,gainNode:n}}(n);for(let a of(null!==i&&(t.fakeContents.worker.onmessage=e=>{let a=e.data;"update"===a.type&&function(e,t,a,n){if(null===e)return;let i=e.getContext("2d");if(!i)return;i.globalCompositeOperation="source-over",i.clearRect(0,0,e.width,e.height),i.fillStyle="#".concat(("0".repeat(6)+t.toString(16)).slice(-6)),i.fillRect(0,0,e.width,e.height),i.fillStyle="#".concat(("0".repeat(6)+(16777215-t).toString(16)).slice(-6)),i.font="".concat(a,"px Arial");let s=e.width/2-a/2,o=a/4*(n.length-1),l=e.height/2+a/2.5;i.fillText(n,s-o,l)}(i,t.fakeContents.colorCode,n.fontSize,a.counter.toString())},t.fakeContents.worker.postMessage({type:"stop"}),t.fakeContents.worker.postMessage({type:"start",interval:1e3/n.frameRate})),s.getVideoTracks()))void 0!==a.contentHint&&(a.contentHint=t.videoContentHint),a.enabled=t.videoTrack,e(T.slice.actions.setTimelineMessage(V("start",a)));for(let a of s.getAudioTracks())void 0!==a.contentHint&&(a.contentHint=t.audioContentHint),a.enabled=t.audioTrack,e(T.slice.actions.setTimelineMessage(V("start",a)));return e(T.slice.actions.setTimelineMessage(P("succeed-create-fake-media"))),[s,o]}if(void 0===navigator.mediaDevices)throw Error("Failed to call getUserMedia. Make sure domain is secure");let n=new MediaStream,i=function(e){let{audio:t,autoGainControl:a,noiseSuppression:n,echoCancellation:i,echoCancellationType:s,audioInput:o}=e;if(!t)return!1;if(!a&&!n&&!i&&!s&&!o)return t;let l={};o&&(l.deviceId={exact:o});let r=C(a);void 0!==r&&(l.autoGainControl=r);let c=C(n);void 0!==c&&(l.noiseSuppression=c);let d=C(i);return void 0!==d&&(l.echoCancellation=d),s&&(l.echoCancellationType=s),l}({audio:t.audio&&t.micDevice,autoGainControl:t.autoGainControl,noiseSuppression:t.noiseSuppression,echoCancellation:t.echoCancellation,echoCancellationType:t.echoCancellationType,audioInput:t.audioInput}),r=function(e){let{video:t,frameRate:a,resolution:n,videoInput:i,aspectRatio:s,resizeMode:o,facingMode:l}=e;if(!t)return!1;if(!a&&!n&&!i&&!s&&!o&&!l)return t;let r={};if(a){let e=Number.parseInt(a,10);Number.isNaN(e)||(r.frameRate={min:e,max:e})}if(n){let{width:e,height:t}=v(n);0{throw n.getTracks().filter(e=>{e.stop()}),e});if(i){let a=d.getAudioTracks()[0];if(e(T.slice.actions.setTimelineMessage(V("start",a))),t.mediaProcessorsNoiseSuppression&&o.b.isSupported()){if(null===t.noiseSuppressionProcessor)throw Error("Failed to start NoiseSuppressionProcessor. NoiseSuppressionProcessor is 'null'");t.noiseSuppressionProcessor.stopProcessing(),a=await t.noiseSuppressionProcessor.startProcessing(a)}e(T.slice.actions.setTimelineMessage(P("succeed-audio-get-user-media"))),n.addTrack(a)}if(r){let a=d.getVideoTracks()[0];if(e(T.slice.actions.setTimelineMessage(V("start",a))),""!==t.lightAdjustment&&s.jA.isSupported()){if(null===t.lightAdjustmentProcessor)throw Error("Failed to start LightAdjustmentProcessor. LightAdjustmentProcessor is 'null'");let e=function(e){switch(e){case"weak":return{adjustmentLevel:30,sharpnessLevel:0};case"medium":return{adjustmentLevel:50,sharpnessLevel:10,focusMask:new s.MH("https://cdn.jsdelivr.net/npm/@shiguredo/light-adjustment@latest/dist")};case"strong":return{adjustmentLevel:70,sharpnessLevel:20,minIntensity:10,focusMask:new s.MH("https://cdn.jsdelivr.net/npm/@shiguredo/light-adjustment@latest/dist")};default:return{}}}(t.lightAdjustment);t.lightAdjustmentProcessor.stopProcessing(),a=await t.lightAdjustmentProcessor.startProcessing(a,e)}if(""!==t.blurRadius&&l.sz.isSupported()){if(null===t.virtualBackgroundProcessor)throw Error("Failed to start VirtualBackgroundProcessor. VirtualBackgroundProcessor is 'null'");let e={blurRadius:function(e){switch(e){case"weak":return 5;case"medium":return 10;case"strong":return 15;default:return 0}}(t.blurRadius)};t.virtualBackgroundProcessor.stopProcessing(),a=await t.virtualBackgroundProcessor.startProcessing(a,e)}e(T.slice.actions.setTimelineMessage(P("succeed-video-get-user-media"))),n.addTrack(a)}}for(let e of n.getVideoTracks())void 0!==e.contentHint&&(e.contentHint=t.videoContentHint),e.enabled=t.videoTrack;for(let e of n.getAudioTracks())void 0!==e.contentHint&&(e.contentHint=t.audioContentHint),e.enabled=t.audioTrack;return[n,null]}function Z(e,t,a){a.on("log",(t,a)=>{e(T.slice.actions.setLogMessages({title:t,description:JSON.stringify(a)}))}),a.on("notify",(a,n)=>{var i;"spotlight.focused"===a.event_type&&"string"==typeof a.connection_id&&e(T.slice.actions.setFocusedSpotlightConnectionId(a.connection_id)),"spotlight.unfocused"===a.event_type&&"string"==typeof a.connection_id&&e(T.slice.actions.setUnFocusedSpotlightConnectionId(a.connection_id)),"connection.destroyed"===a.event_type&&"string"==typeof a.connection_id&&e(T.slice.actions.deleteFocusedSpotlightConnectionId(a.connection_id));let{soraContents:s}=t();if("connection.created"===a.event_type&&"string"==typeof a.connection_id&&a.connection_id===(null===(i=s.sora)||void 0===i?void 0:i.connectionId)){if("string"==typeof a.session_id&&e(T.slice.actions.setSoraSessionId(a.session_id)),"string"==typeof a.connection_id&&e(T.slice.actions.setSoraConnectionId(a.connection_id)),"string"==typeof a.client_id&&e(T.slice.actions.setSoraClientId(a.client_id)),Array.isArray(a.data))for(let t of a.data)"string"==typeof t.connection_id&&"string"==typeof t.client_id&&e(T.slice.actions.setSoraRemoteClientId({connectionId:t.connection_id,clientId:t.client_id}))}else"connection.created"===a.event_type&&"string"==typeof a.connection_id&&"string"==typeof a.client_id&&e(T.slice.actions.setSoraRemoteClientId({connectionId:a.connection_id,clientId:a.client_id}));e(T.slice.actions.setNotifyMessages({timestamp:new Date().getTime(),message:a,transportType:n}))}),a.on("push",(t,a)=>{e(T.slice.actions.setPushMessages({timestamp:new Date().getTime(),message:t,transportType:a}))}),a.on("track",a=>{e(T.slice.actions.setTimelineMessage(P("event-on-track")));let{soraContents:n}=t();if(!n.remoteClients.find(e=>e.connectionId===a.streams[0].id)){for(let t of a.streams[0].getTracks())e(T.slice.actions.setTimelineMessage(P("remote-".concat(t.kind,"-mediastream-track"),N(t))));e(T.slice.actions.setRemoteClient({mediaStream:a.streams[0],connectionId:a.streams[0].id,clientId:null}))}}),a.on("removetrack",a=>{e(T.slice.actions.setTimelineMessage(P("event-on-removetrack")));let{soraContents:n}=t(),i=n.remoteClients.find(e=>{if(null==a?void 0:a.target)return e.connectionId===a.target.id});i&&e(T.slice.actions.removeRemoteClient(i.connectionId))}),a.on("disconnect",a=>{let n={type:a.type,title:a.title};void 0!==a.code&&(n.code=a.code),void 0!==a.reason&&(n.reason=a.reason),void 0!==a.params&&(n.params=a.params),e(T.slice.actions.setTimelineMessage(P("event-on-disconnect",n)));let{fakeContents:i,soraContents:s,reconnect:o,lightAdjustmentProcessor:l,virtualBackgroundProcessor:r,noiseSuppressionProcessor:c}=t(),{localMediaStream:d,remoteClients:u}=s,m=z(l,r);(async()=>{await G(e,d,m)})(),W(e,d,c),u.filter(e=>{e.mediaStream.getTracks().filter(e=>{e.stop()})}),i.worker&&i.worker.postMessage({type:"stop"}),e(T.slice.actions.setSora(null)),e(T.slice.actions.setSoraSessionId(null)),e(T.slice.actions.setSoraConnectionId(null)),e(T.slice.actions.setSoraClientId(null)),e(T.slice.actions.setSoraTurnUrl(null)),e(T.slice.actions.setSoraConnectionStatus("disconnected")),e(T.slice.actions.setLocalMediaStream(null)),e(T.slice.actions.removeAllRemoteClients()),e(T.slice.actions.setSoraInfoAlertMessage("Disconnect Sora.")),e(T.slice.actions.setTimelineMessage(P("disconnected"))),"abend"===a.type&&o&&e(T.slice.actions.setSoraReconnecting(!0))}),a.on("timeline",t=>{let a={timestamp:new Date().getTime(),type:t.type,data:t.data,dataChannelId:t.dataChannelId,dataChannelLabel:t.dataChannelLabel,logType:t.logType};e(T.slice.actions.setTimelineMessage(a)),t.data&&"object"==typeof t.data&&"sdp"in t.data&&e(T.slice.actions.setTimelineMessage(P("".concat(t.type,"-sdp"),t.data.sdp)))}),a.on("signaling",t=>{let a={timestamp:new Date().getTime(),transportType:t.transportType,type:t.type,data:t.data};e(T.slice.actions.setSignalingMessage(a))}),a.on("message",t=>{e(T.slice.actions.setDataChannelMessage({timestamp:new Date().getTime(),label:t.label,data:t.data}))}),a.on("datachannel",t=>{e(T.slice.actions.setSoraDataChannels(t.datachannel))})}function M(e){return{audio:e.audio,audioBitRate:e.audioBitRate,audioCodecType:e.audioCodecType,audioStreamingLanguageCode:e.audioStreamingLanguageCode,bundleId:e.bundleId,clientId:e.clientId,dataChannelSignaling:e.dataChannelSignaling,dataChannels:e.enabledDataChannels?e.dataChannels:"",e2ee:e.e2ee,enabledAudioStreamingLanguageCode:e.enabledAudioStreamingLanguageCode,enabledBundleId:e.enabledBundleId,enabledClientId:e.enabledClientId,enabledDataChannel:e.enabledDataChannel,enabledSignalingNotifyMetadata:e.enabledSignalingNotifyMetadata,enabledForwardingFilter:e.enabledForwardingFilter,enabledVideoVP9Params:e.enabledVideoVP9Params,enabledVideoH264Params:e.enabledVideoH264Params,enabledVideoH265Params:e.enabledVideoH265Params,enabledVideoAV1Params:e.enabledVideoAV1Params,ignoreDisconnectWebSocket:e.ignoreDisconnectWebSocket,multistream:e.multistream,signalingNotifyMetadata:e.signalingNotifyMetadata,forwardingFilter:e.forwardingFilter,simulcast:e.simulcast,simulcastRid:e.simulcastRid,spotlight:e.spotlight,spotlightFocusRid:e.spotlightFocusRid,spotlightNumber:e.spotlightNumber,spotlightUnfocusRid:e.spotlightUnfocusRid,video:e.video,videoBitRate:e.videoBitRate,videoCodecType:e.videoCodecType,videoVP9Params:e.videoVP9Params,videoH264Params:e.videoH264Params,videoH265Params:e.videoH265Params,videoAV1Params:e.videoAV1Params,role:e.role}}function P(e,t){return{type:e,logType:"sora-devtools",timestamp:new Date().getTime(),data:t}}function V(e,t){let a=N(t);return P("".concat(e,"-").concat(t.kind,"-mediastream-track"),a)}async function D(e,t){var a;if(t.pc&&(null===(a=t.pc)||void 0===a?void 0:a.iceConnectionState)!=="closed"){let a=await t.pc.getStats(),n=[],i=[];for(let t of(a.forEach(e=>{n.push(e),"local-candidate"===e.type&&i.push(e)}),e(T.slice.actions.setStatsReport(n)),i))if(void 0!==t.url){e(T.slice.actions.setSoraTurnUrl(t.url));break}}}let A=()=>async(e,t)=>{let a,n;let i=t();try{[a,n]=await R(e,i).catch(e=>{throw e})}catch(n){var s,o,l;let t;if(n instanceof Error&&(e(T.slice.actions.setLogMessages({title:"REQUEST_MEDIA",description:JSON.stringify(n.message)})),e(T.slice.actions.setAPIErrorAlertMessage("Failed to get user devices. ".concat(n.message)))),(null===(s=i.lightAdjustmentProcessor)||void 0===s?void 0:s.isProcessing())&&(t=i.lightAdjustmentProcessor.getOriginalTrack(),i.lightAdjustmentProcessor.stopProcessing()),(null===(o=i.virtualBackgroundProcessor)||void 0===o?void 0:o.isProcessing())&&(void 0===t&&(t=i.virtualBackgroundProcessor.getOriginalTrack()),i.virtualBackgroundProcessor.stopProcessing()),t?(t.stop(),e(T.slice.actions.setTimelineMessage(V("stop",t)))):a&&a.getVideoTracks().filter(t=>{t.stop(),e(T.slice.actions.setTimelineMessage(V("stop",t)))}),null===(l=i.noiseSuppressionProcessor)||void 0===l?void 0:l.isProcessing()){let t=i.noiseSuppressionProcessor.getOriginalTrack();t&&(t.stop(),e(T.slice.actions.setTimelineMessage(V("stop",t)))),i.noiseSuppressionProcessor.stopProcessing()}else a&&a.getAudioTracks().filter(t=>{t.stop(),e(T.slice.actions.setTimelineMessage(V("stop",t)))});throw n}n&&e(T.slice.actions.setFakeContentsGainNode(n)),e(T.slice.actions.setLocalMediaStream(a))},F=()=>async(e,t)=>{let a;let{fakeContents:n,soraContents:i,lightAdjustmentProcessor:s,noiseSuppressionProcessor:o,virtualBackgroundProcessor:l}=t(),{localMediaStream:r}=i;if((null==s?void 0:s.isProcessing())&&(a=s.getOriginalTrack(),s.stopProcessing()),(null==l?void 0:l.isProcessing())&&(void 0===a&&(a=l.getOriginalTrack()),l.stopProcessing()),void 0!==a?(a.stop(),null==r||r.removeTrack(a),e(T.slice.actions.setTimelineMessage(V("stop",a)))):r&&r.getVideoTracks().filter(t=>{t.stop(),r.removeTrack(t),e(T.slice.actions.setTimelineMessage(V("stop",t)))}),null==o?void 0:o.isProcessing()){let t=o.getOriginalTrack();t&&(t.stop(),null==r||r.removeTrack(t),e(T.slice.actions.setTimelineMessage(V("stop",t)))),o.stopProcessing()}else r&&r.getAudioTracks().filter(t=>{t.stop(),r.removeTrack(t),e(T.slice.actions.setTimelineMessage(V("stop",t)))});n.worker&&n.worker.postMessage({type:"stop"}),e(T.slice.actions.setLocalMediaStream(null))},O=()=>async(e,t)=>{let a,n,i;e(T.slice.actions.setTimelineMessage(P("start-connection"))),e(T.slice.actions.setSoraConnectionStatus("preparing"));let s=t(),o=!1;s.soraContents.sora&&(await s.soraContents.sora.disconnect(),o=!0);let l=h(s.enabledSignalingUrlCandidates,s.signalingUrlCandidates);e(T.slice.actions.setLogMessages({title:"SIGNALING_URL",description:JSON.stringify(l)}));let c=r.Z.connection(l,s.debug),d=k(M(s)),u=b(s.enabledMetadata,s.metadata);try{"sendonly"===s.role?((a=c.sendonly(s.channelId,null,d)).metadata=u,"boolean"==typeof s.googCpuOveruseDetection&&(a.constraints={optional:[{googCpuOveruseDetection:s.googCpuOveruseDetection}]}),Z(e,t,a),!o&&s.soraContents.localMediaStream?n=s.soraContents.localMediaStream:[n,i]=await R(e,s).catch(t=>{throw e(T.slice.actions.setSoraErrorAlertMessage(t.toString())),e(T.slice.actions.setSoraConnectionStatus("disconnected")),t}),e(T.slice.actions.setSoraConnectionStatus("connecting")),e(T.slice.actions.setSora(a)),await a.connect(n)):"sendrecv"===s.role?((a=c.sendrecv(s.channelId,null,d)).metadata=u,"boolean"==typeof s.googCpuOveruseDetection&&(a.constraints={optional:[{googCpuOveruseDetection:s.googCpuOveruseDetection}]}),Z(e,t,a),!o&&s.soraContents.localMediaStream?n=s.soraContents.localMediaStream:[n,i]=await R(e,s).catch(t=>{throw e(T.slice.actions.setSoraErrorAlertMessage(t.toString())),e(T.slice.actions.setSoraConnectionStatus("disconnected")),t}),e(T.slice.actions.setSora(a)),await a.connect(n)):"recvonly"===s.role&&((a=c.recvonly(s.channelId,null,d)).metadata=u,Z(e,t,a),e(T.slice.actions.setSoraConnectionStatus("connecting")),e(T.slice.actions.setSora(a)),await a.connect())}catch(a){var m,g,p;let t;if(e(T.slice.actions.setSora(null)),a instanceof Error&&e(T.slice.actions.setSoraErrorAlertMessage("Failed to connect Sora. ".concat(a.message))),(null===(m=s.lightAdjustmentProcessor)||void 0===m?void 0:m.isProcessing())&&(t=s.lightAdjustmentProcessor.getOriginalTrack(),s.lightAdjustmentProcessor.stopProcessing()),(null===(g=s.virtualBackgroundProcessor)||void 0===g?void 0:g.isProcessing())&&(void 0===t&&(t=s.virtualBackgroundProcessor.getOriginalTrack()),s.virtualBackgroundProcessor.stopProcessing()),t?(t.stop(),e(T.slice.actions.setTimelineMessage(V("stop",t)))):n&&n.getVideoTracks().filter(t=>{t.stop(),e(T.slice.actions.setTimelineMessage(V("stop",t)))}),null===(p=s.noiseSuppressionProcessor)||void 0===p?void 0:p.isProcessing()){let t=s.noiseSuppressionProcessor.getOriginalTrack();t&&(t.stop(),e(T.slice.actions.setTimelineMessage(V("stop",t)))),s.noiseSuppressionProcessor.stopProcessing()}else n&&n.getAudioTracks().filter(t=>{t.stop(),e(T.slice.actions.setTimelineMessage(V("stop",t)))});throw e(T.slice.actions.setSoraConnectionStatus("disconnected")),a}if(void 0===a)throw Error("Failed to connect Sora. Connection object is 'undefined'");e(T.slice.actions.setSoraInfoAlertMessage("Succeeded to connect Sora.")),await D(e,a);let v=setInterval(async()=>{let{soraContents:a}=t();a.sora?await D(e,a.sora):clearInterval(v)},1e3);a.stream=null,n&&(null===s.soraContents.localMediaStream||o)&&e(T.slice.actions.setLocalMediaStream(n)),i&&e(T.slice.actions.setFakeContentsGainNode(i)),e(T.slice.actions.setSoraConnectionStatus("connected")),e(T.slice.actions.setTimelineMessage(P("connected")))},H=()=>async(e,t)=>{let a,n,i;e(T.slice.actions.setTimelineMessage(P("start-reconnect"))),e(T.slice.actions.setSoraConnectionStatus("connecting"));let s=t();s.soraContents.sora&&"connected"===s.soraContents.connectionStatus&&await s.soraContents.sora.disconnect();let o=h(s.enabledSignalingUrlCandidates,s.signalingUrlCandidates);e(T.slice.actions.setLogMessages({title:"SIGNALING_URL",description:JSON.stringify(o)}));let l=r.Z.connection(o,s.debug),c=k(M(s)),d=b(s.enabledMetadata,s.metadata);("sendonly"===s.role||"sendrecv"===s.role)&&([n,i]=await R(e,s).catch(t=>{throw e(T.slice.actions.setSoraErrorAlertMessage(t.toString())),e(T.slice.actions.setSoraConnectionStatus("disconnected")),t}));for(let i=1;i<=10;i++){let{soraContents:o}=t();if(!1===o.reconnecting)break;e(T.slice.actions.setSoraReconnectingTrials(i));try{"sendonly"===s.role?((a=l.sendonly(s.channelId,null,c)).metadata=d,"boolean"==typeof s.googCpuOveruseDetection&&(a.constraints={optional:[{googCpuOveruseDetection:s.googCpuOveruseDetection}]}),Z(e,t,a),n&&await a.connect(n)):"sendrecv"===s.role?((a=l.sendrecv(s.channelId,null,c)).metadata=d,"boolean"==typeof s.googCpuOveruseDetection&&(a.constraints={optional:[{googCpuOveruseDetection:s.googCpuOveruseDetection}]}),Z(e,t,a),n&&await a.connect(n)):"recvonly"===s.role&&((a=l.recvonly(s.channelId,null,c)).metadata=d,Z(e,t,a),await a.connect())}catch(t){t instanceof Error&&e(T.slice.actions.setSoraErrorAlertMessage("(trials ".concat(i,") Failed to connect Sora. ").concat(t.message))),a=void 0}if(void 0!==a)break;await new Promise(e=>setTimeout(e,500*i+500))}if(void 0===a){e(T.slice.actions.setSoraErrorAlertMessage("Failed to reconnect Sora.")),e(T.slice.actions.setSoraConnectionStatus("disconnected")),e(T.slice.actions.setSoraReconnecting(!1));return}e(T.slice.actions.setSoraInfoAlertMessage("Succeeded to reconnect Sora.")),await D(e,a);let u=setInterval(async()=>{let{soraContents:a}=t();a.sora?await D(e,a.sora):clearInterval(u)},1e3);e(T.slice.actions.setSora(a)),n&&e(T.slice.actions.setLocalMediaStream(n)),i&&e(T.slice.actions.setFakeContentsGainNode(i)),e(T.slice.actions.setSoraConnectionStatus("connected")),e(T.slice.actions.setTimelineMessage(P("connected"))),e(T.slice.actions.setSoraReconnecting(!1))},U=()=>async(e,t)=>{let{soraContents:a}=t();a.sora&&"connected"===a.connectionStatus&&(e(T.slice.actions.setSoraConnectionStatus("disconnecting")),await a.sora.disconnect(),e(T.slice.actions.setSoraConnectionStatus("disconnected")))},B=()=>async(e,t)=>{let a=await S(),n=[],i=[],s=[];a.filter(e=>{""!==e.deviceId&&("audioinput"===e.kind?n.push(e.toJSON()):"audiooutput"===e.kind?s.push(e.toJSON()):"videoinput"===e.kind&&i.push(e.toJSON()))}),e(T.slice.actions.setAudioInputDevices(n)),e(T.slice.actions.setVideoInputDevices(i)),e(T.slice.actions.setAudioOutputDevices(s))},E=()=>async(e,t)=>{var a,n;let i=t();if(!i.soraContents.localMediaStream)return;if(null===(a=i.virtualBackgroundProcessor)||void 0===a?void 0:a.isProcessing()){let t=i.virtualBackgroundProcessor.getOriginalTrack();t&&(t.stop(),e(T.slice.actions.setTimelineMessage(V("stop",t)))),i.virtualBackgroundProcessor.stopProcessing()}else i.soraContents.localMediaStream&&i.soraContents.localMediaStream.getVideoTracks().filter(t=>{t.stop(),e(T.slice.actions.setTimelineMessage(V("stop",t)))});if(null===(n=i.noiseSuppressionProcessor)||void 0===n?void 0:n.isProcessing()){let t=i.noiseSuppressionProcessor.getOriginalTrack();t&&(t.stop(),e(T.slice.actions.setTimelineMessage(V("stop",t)))),i.noiseSuppressionProcessor.stopProcessing()}else i.soraContents.localMediaStream&&i.soraContents.localMediaStream.getAudioTracks().filter(t=>{t.stop(),e(T.slice.actions.setTimelineMessage(V("stop",t)))});let[s,o]=await R(e,i).catch(t=>{throw e(T.slice.actions.setSoraErrorAlertMessage(t.toString())),e(T.slice.actions.setSoraConnectionStatus("disconnected")),t});s.getTracks().filter(e=>{if(!i.soraContents.sora||!i.soraContents.sora.pc)return;let t=i.soraContents.sora.pc.getSenders().find(t=>!!t.track&&t.track.kind===e.kind);t&&t.replaceTrack(e)}),e(T.slice.actions.setLocalMediaStream(s)),e(T.slice.actions.setFakeContentsGainNode(o))},_=e=>async(t,a)=>{if(e)try{await r.Z.initE2EE("https://sora-e2ee-wasm.shiguredo.app/2020.2/wasm.wasm")}catch(e){t(T.slice.actions.setSoraErrorAlertMessage("Faild to execute WebAssembly '".concat("https://sora-e2ee-wasm.shiguredo.app/2020.2/wasm.wasm","'.")));return}t(T.slice.actions.setE2EE(e))},L=e=>async(t,a)=>{let n=a();if(!n.soraContents.localMediaStream||!n.soraContents.sora){t(T.slice.actions.setMicDevice(e));return}if(e){let a={aspectRatio:n.aspectRatio,audio:n.audio,audioContentHint:n.audioContentHint,audioInput:n.audioInput,audioTrack:n.audioTrack,autoGainControl:n.autoGainControl,blurRadius:n.blurRadius,cameraDevice:n.cameraDevice,echoCancellation:n.echoCancellation,echoCancellationType:n.echoCancellationType,facingMode:n.facingMode,fakeContents:n.fakeContents,fakeVolume:n.fakeVolume,frameRate:n.frameRate,lightAdjustment:n.lightAdjustment,lightAdjustmentProcessor:n.lightAdjustmentProcessor,mediaProcessorsNoiseSuppression:n.mediaProcessorsNoiseSuppression,mediaType:n.mediaType,micDevice:e,noiseSuppression:n.noiseSuppression,noiseSuppressionProcessor:n.noiseSuppressionProcessor,resizeMode:n.resizeMode,resolution:n.resolution,video:!1,videoContentHint:n.videoContentHint,videoInput:n.videoInput,videoTrack:n.videoTrack,virtualBackgroundProcessor:n.virtualBackgroundProcessor},[i,s]=await R(t,a).catch(e=>{throw t(T.slice.actions.setSoraErrorAlertMessage(e.toString())),e});0{var t;e.enabled=!1,e.stop(),null===(t=n.soraContents.localMediaStream)||void 0===t||t.removeTrack(e)}),n.soraContents.localMediaStream.addTrack(i.getAudioTracks()[0])),t(T.slice.actions.setFakeContentsGainNode(s)))}else n.soraContents.sora&&"connected"===n.soraContents.connectionStatus&&n.soraContents.localMediaStream?(W(t,n.soraContents.localMediaStream,n.noiseSuppressionProcessor),n.soraContents.sora.stopAudioTrack(n.soraContents.localMediaStream)):n.soraContents.localMediaStream&&W(t,n.soraContents.localMediaStream,n.noiseSuppressionProcessor);t(T.slice.actions.setMicDevice(e))},J=e=>async(t,a)=>{let n=a();if(!n.soraContents.localMediaStream&&!n.soraContents.sora&&"connected"!==n.soraContents.connectionStatus){t(T.slice.actions.setCameraDevice(e));return}if(e){let a={aspectRatio:n.aspectRatio,audio:!1,audioContentHint:n.audioContentHint,audioInput:n.audioInput,audioTrack:n.audioTrack,autoGainControl:n.autoGainControl,blurRadius:n.blurRadius,cameraDevice:e,echoCancellation:n.echoCancellation,echoCancellationType:n.echoCancellationType,facingMode:n.facingMode,fakeContents:n.fakeContents,fakeVolume:n.fakeVolume,frameRate:n.frameRate,lightAdjustment:n.lightAdjustment,lightAdjustmentProcessor:n.lightAdjustmentProcessor,mediaProcessorsNoiseSuppression:n.mediaProcessorsNoiseSuppression,mediaType:n.mediaType,micDevice:n.micDevice,noiseSuppression:n.noiseSuppression,noiseSuppressionProcessor:n.noiseSuppressionProcessor,resizeMode:n.resizeMode,resolution:n.resolution,video:n.video,videoContentHint:n.videoContentHint,videoInput:n.videoInput,videoTrack:n.videoTrack,virtualBackgroundProcessor:n.virtualBackgroundProcessor},[i,s]=await R(t,a).catch(e=>{throw t(T.slice.actions.setSoraErrorAlertMessage(e.toString())),e});0{var t;e.enabled=!1,e.stop(),null===(t=n.soraContents.localMediaStream)||void 0===t||t.removeTrack(e)}),n.soraContents.localMediaStream.addTrack(i.getVideoTracks()[0])),t(T.slice.actions.setFakeContentsGainNode(s)))}else if(n.soraContents.sora&&"connected"===n.soraContents.connectionStatus&&n.soraContents.localMediaStream){let e=z(n.lightAdjustmentProcessor,n.virtualBackgroundProcessor);await G(t,n.soraContents.localMediaStream,e),n.soraContents.sora.stopVideoTrack(n.soraContents.localMediaStream)}else if(n.soraContents.localMediaStream){let e=z(n.lightAdjustmentProcessor,n.virtualBackgroundProcessor);await G(t,n.soraContents.localMediaStream,e)}t(T.slice.actions.setCameraDevice(e))},z=(e,t)=>{let a;return(null==e?void 0:e.isProcessing())&&(a=e.getOriginalTrack(),e.stopProcessing()),(null==t?void 0:t.isProcessing())&&(void 0===a&&(a=t.getOriginalTrack()),t.stopProcessing()),a},G=async(e,t,a)=>{if(void 0!==a)a.enabled=!1,await new Promise(e=>setTimeout(e,100)),a.stop(),null==t||t.removeTrack(a),e(T.slice.actions.setTimelineMessage(V("stop",a)));else{if(!t)return;t.getVideoTracks().filter(e=>{e.enabled=!1}),await new Promise(e=>setTimeout(e,100)),t.getVideoTracks().filter(a=>{a.stop(),t.removeTrack(a),e(T.slice.actions.setTimelineMessage(V("stop",a)))})}},W=(e,t,a)=>{if(null==a?void 0:a.isProcessing()){let n=a.getOriginalTrack();n&&(n.stop(),null==t||t.removeTrack(n),e(T.slice.actions.setTimelineMessage(V("stop",n)))),a.stopProcessing()}else t&&t.getAudioTracks().filter(a=>{a.stop(),t.removeTrack(a),e(T.slice.actions.setTimelineMessage(V("stop",a)))})},{clearDataChannelMessages:K,deleteAlertMessage:q,setAPIErrorAlertMessage:Q,setAPIInfoAlertMessage:X,setAspectRatio:$,setAudio:Y,setAudioBitRate:ee,setAudioCodecType:et,setAudioContentHint:ea,setAudioInput:en,setAudioOutput:ei,setAudioTrack:es,setAutoGainControl:eo,setBlurRadius:el,setBundleId:er,setChannelId:ec,setClientId:ed,setDataChannels:eu,setDataChannelSignaling:em,setDebug:eg,setDebugFilterText:eh,setDebugType:ep,setDisplayResolution:ev,setEchoCancellation:ex,setEchoCancellationType:ej,setEnabledBundleId:ef,setEnabledClientId:eC,setEnabledDataChannels:eb,setEnabledDataChannel:eS,setEnabledForwardingFilter:ey,setEnabledMetadata:eN,setEnabledSignalingNotifyMetadata:ek,setEnabledSignalingUrlCandidates:eT,setEnabledVideoVP9Params:ew,setEnabledVideoH264Params:eI,setEnabledVideoH265Params:eR,setEnabledVideoAV1Params:eZ,setAudioStreamingLanguageCode:eM,setEnabledAudioStreamingLanguageCode:eP,setFakeVolume:eV,setFacingMode:eD,setFrameRate:eA,setIgnoreDisconnectWebSocket:eF,setLightAdjustment:eO,setLocalMediaStream:eH,setLogMessages:eU,setMediaProcessorsNoiseSuppression:eB,setMediaStats:eE,setMediaType:e_,setMetadata:eL,setMultistream:eJ,setNoiseSuppression:ez,setNotifyMessages:eG,setReconnect:eW,setResizeMode:eK,setRole:eq,setResolution:eQ,setSignalingNotifyMetadata:eX,setSignalingUrlCandidates:e$,setForwardingFilter:eY,setSimulcast:e0,setSimulcastRid:e1,setSora:e2,setSoraReconnecting:e5,setSoraErrorAlertMessage:e6,setSoraInfoAlertMessage:e4,setSpotlight:e9,setSpotlightFocusRid:e3,setSpotlightNumber:e8,setSpotlightUnfocusRid:e7,setVideo:te,setVideoBitRate:tt,setVideoCodecType:ta,setVideoContentHint:tn,setVideoInput:ti,setVideoTrack:ts,setVideoVP9Params:to,setVideoH264Params:tl,setVideoH265Params:tr,setVideoAV1Params:tc}=T.slice.actions;var td=a(4690);let tu=()=>(0,td.I0)(),tm=td.v9;var tg=a(9051),th=a(8854),tp=a(5580);let tv=()=>(0,n.jsxs)("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",className:"bi bi-clipboard",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("title",{children:"ClipboardIcon"}),(0,n.jsx)("path",{fillRule:"evenodd",d:"M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1v-1z"}),(0,n.jsx)("path",{fillRule:"evenodd",d:"M9.5 1h-3a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3z"})]}),tx=e=>e.disabled?(0,n.jsx)("div",{style:{height:"31px"}}):(0,n.jsx)("button",{type:"button",className:"btn btn-sm btn-dark",onClick:t=>{m(e.text),t.currentTarget.blur()},children:(0,n.jsx)(tv,{})}),tj=e=>{let{description:t}=e;return void 0===t?null:"object"!=typeof t?(0,n.jsx)("div",{className:"debug-message",children:(0,n.jsx)("div",{className:"col-sm-12",children:(0,n.jsx)("pre",{className:e.wordBreak?"word-break":"",children:t})})}):(0,n.jsx)("div",{className:"debug-message",children:(0,n.jsx)("div",{className:"col-sm-12",children:(0,n.jsx)("pre",{className:e.wordBreak?"word-break":"",children:JSON.stringify(t,null,2)})})})},tf=e=>{let{defaultShow:t,description:a,title:s,timestamp:o,label:l}=e,[r,c]=(0,i.useState)(void 0!==t&&t),d=o?s+o:s,m=void 0===a;return(0,n.jsxs)("div",{className:"border border-light rounded mb-1 bg-dark","data-title":s,children:[(0,n.jsxs)("div",{className:"d-flex justify-content-between align-items-center text-break",children:[(0,n.jsxs)("a",{className:"debug-title ".concat(m?"disabled":""),onClick:()=>c(!r),"aria-controls":d,"aria-expanded":r,children:[(0,n.jsx)("i",{className:"".concat(r?"arrow-bottom":"arrow-right"," ").concat(m?"disabled":"")})," ",o?(0,n.jsxs)("span",{className:"text-white-50 me-1",children:["[",u(o),"]"]}):null,l,(0,n.jsx)("span",{children:s})]}),(0,n.jsx)("div",{className:"border-left",children:(0,n.jsx)(tx,{text:"string"==typeof a?a:JSON.stringify(a,null,2),disabled:m})})]}),(0,n.jsx)(tp.Z,{in:r,children:(0,n.jsx)("div",{className:"border-top",children:(0,n.jsx)(tj,{description:a,wordBreak:e.wordBreak})})})]})},tC=e=>{let{title:t,codecs:a}=e;return(0,n.jsx)(tf,{title:t,timestamp:null,description:JSON.stringify(a,null,2)})},tb=i.memo(e=>(0,n.jsx)(tC,{...e})),tS=(e,t)=>{if(!e)return[];let a=e(t);return a&&a.codecs?a.codecs:[]},ty=()=>{let e=tS(RTCRtpSender.getCapabilities,"audio"),t=tS(RTCRtpSender.getCapabilities,"video"),a=tS(RTCRtpReceiver.getCapabilities,"audio"),i=tS(RTCRtpReceiver.getCapabilities,"video");return(0,n.jsxs)("div",{className:"capabilities-codec",children:[(0,n.jsx)(tb,{title:"Audio RTCRtpSender CapabilitiesCodec",codecs:e}),(0,n.jsx)(tb,{title:"Video RTCRtpSender CapabilitiesCodec",codecs:t}),(0,n.jsx)(tb,{title:"Audio RTCRtpReceiver CapabilitiesCodec",codecs:a}),(0,n.jsx)(tb,{title:"Video RTCRtpReceiver CapabilitiesCodec",codecs:i})]})},tN=()=>{let e=tu();return(0,n.jsx)("input",{className:"btn btn-secondary",type:"button",name:"clear",defaultValue:"clear",onClick:()=>{e(K())}})},tk=e=>{let{data:t,label:a,timestamp:i}=e;if("ZAKURO"===new TextDecoder().decode(t.slice(0,6))){let e=new TextDecoder().decode(t.slice(22,48)),s=new DataView(t),o=s.getBigInt64(6),l=s.getBigInt64(14),r=t.byteLength,c="connectionId: ".concat(e,"\nUnixTimeMicro: ").concat(o,"\nCounter: ").concat(l,"\nByteLength: ").concat(r);return(0,n.jsx)(tf,{title:"".concat(a," ZAKURO"),timestamp:i,description:c,defaultShow:!0,wordBreak:!0})}let s=new Uint8Array(t),o="".concat(s.toString(),"\n(").concat(new TextDecoder().decode(t),")");return(0,n.jsx)(tf,{title:a,timestamp:i,description:o,defaultShow:!0,wordBreak:!0})},tT=i.memo(e=>(0,n.jsx)(tk,{...e})),tw=()=>{let e=tm(e=>e.dataChannelMessages);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"py-1",children:(0,n.jsx)(tN,{})}),(0,n.jsx)("div",{className:"debug-messages",children:e.map(e=>{let t=e.label+e.timestamp;return(0,n.jsx)(tT,{...e},t)})})]})};var tI=a(3590),tR=a(8650),tZ=a(1106);let tM=()=>{let e=tm(e=>e.debugFilterText),t=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline debug-filter",controlId:"channelId",children:[(0,n.jsx)(tR.Z,{className:"text-white",children:"Filter:"}),(0,n.jsx)(tZ.Z,{type:"text",placeholder:"Filter",value:e,onChange:e=>{t(eh(e.target.value))},autoComplete:"off"})]})},tP=e=>{let{message:t,timestamp:a}=e;return(0,n.jsx)(tf,{title:t.title,timestamp:a,description:JSON.parse(t.description)})},tV=i.memo(e=>(0,n.jsx)(tP,{...e})),tD=()=>{let e=tm(e=>e.logMessages),t=tm(e=>e.debugFilterText),a=e.filter(e=>t.split(" ").every(t=>""===t||0<=JSON.stringify(e).indexOf(t)));return(0,n.jsx)("div",{className:"debug-messages",children:a.map((e,t)=>(0,n.jsx)(tV,{...e},e.message.title+String(t)+e.timestamp))})},tA={websocket:"#00ff00",datachannel:"#ff00ff"},tF=e=>{let{text:t}=e,a=Object.keys(tA).includes(t)?tA[t]:void 0;return(0,n.jsxs)("span",{className:"me-1",style:a?{color:a}:{},children:["[",t,"]"]})},tO=e=>{let{notify:t}=e,a=t.transportType?(0,n.jsx)(tF,{text:t.transportType}):null;return(0,n.jsx)(tf,{title:t.message.event_type,timestamp:t.timestamp,description:t.message,label:a})},tH=i.memo(e=>(0,n.jsx)(tO,{...e})),tU=()=>{let e=tm(e=>e.notifyMessages),t=tm(e=>e.debugFilterText),a=e.filter(e=>t.split(" ").every(t=>""===t||0<=JSON.stringify(e).indexOf(t)));return(0,n.jsx)("div",{className:"debug-messages",children:a.map(e=>(0,n.jsx)(tH,{notify:e},e.message.type+e.timestamp))})},tB={websocket:"#00ff00",datachannel:"#ff00ff"},tE=e=>{let{text:t}=e,a=Object.keys(tB).includes(t)?tB[t]:void 0;return(0,n.jsxs)("span",{style:a?{color:a}:{},children:["[",t,"]"]})},t_=e=>{let{push:t}=e,a=t.transportType?(0,n.jsx)(tE,{text:t.transportType}):null;return(0,n.jsx)(tf,{title:t.message.type,timestamp:t.timestamp,description:t.message,label:a})},tL=i.memo(e=>(0,n.jsx)(t_,{...e})),tJ=()=>{let e=tm(e=>e.pushMessages),t=tm(e=>e.debugFilterText),a=e.filter(e=>t.split(" ").every(t=>""===t||0<=JSON.stringify(e).indexOf(t)));return(0,n.jsx)("div",{className:"debug-messages",children:a.map((e,t)=>{let a="".concat(e.timestamp,"-").concat(t);return(0,n.jsx)(tL,{ariaControls:a,push:e},a)})})};var tz=a(2775),tG=a(8312);let tW=()=>{let e=(0,i.useRef)(null),t=(0,i.useRef)(null),a=tm(e=>e.soraContents.sora),s=tm(e=>e.soraContents.connectionStatus),o=tm(e=>e.soraContents.datachannels);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"d-flex mt-2",children:[(0,n.jsx)(tI.Z,{className:"me-1",controlId:"sendDataChannelMessageLabel",children:(0,n.jsx)(tz.Z,{name:"sendDataChannelMessageLabel",ref:e,children:o.map(e=>(0,n.jsx)("option",{value:e.label,children:e.label},e.label))})}),(0,n.jsx)(tI.Z,{className:"flex-grow-1 me-1",controlId:"sendDataChannelMessage",children:(0,n.jsx)(tZ.Z,{className:"flex-fill",placeholder:"sendDataChannelMessageを指定",type:"text",ref:t})}),(0,n.jsx)(tG.Z,{variant:"secondary",onClick:()=>{if(null===e.current||null===t.current)return;let n=e.current.value;a&&"connected"===s&&a.sendMessage(n,new TextEncoder().encode(t.current.value))},disabled:0===o.length,children:"send"})]}),0{let{text:t}=e,a=Object.keys(tK).includes(t)?tK[t]:void 0;return(0,n.jsxs)("span",{className:"me-1",style:a?{color:a}:{},children:["[",t,"]"]})},tQ=e=>{let{data:t,type:a,timestamp:i,transportType:s}=e,o=s?(0,n.jsx)(tq,{text:s}):null;return(0,n.jsx)(tf,{title:a,timestamp:i,description:t,label:o})},tX=i.memo(e=>(0,n.jsx)(tQ,{...e})),t$=()=>{let e=tm(e=>e.signalingMessages),t=tm(e=>e.debugFilterText),a=e.filter(e=>t.split(" ").every(t=>""===t||0<=JSON.stringify(e).indexOf(t)));return(0,n.jsx)("div",{className:"debug-messages",children:a.map(e=>{let t=e.type+e.timestamp;return(0,n.jsx)(tX,{...e},t)})})},tY=e=>(0,n.jsx)(tf,{title:"".concat(e.id,"(").concat(e.type,")"),timestamp:null,description:e}),t0=i.memo(e=>(0,n.jsx)(tY,{...e})),t1=()=>{let e=tm(e=>e.soraContents.statsReport),t=tm(e=>e.debugFilterText),a=e.filter(e=>t.split(" ").every(t=>""===t||0<=JSON.stringify(e).indexOf(t)));return(0,n.jsx)("div",{className:"debug-messages",children:a.map(e=>(0,n.jsx)(t0,{...e},e.id))})},t2={signaling:"#ff00ff",notify:"#ffff00",push:"#98fb98",e2ee:"#00ffff",stats:"#ffc0cb"},t5=()=>(0,n.jsx)("span",{className:"me-1",style:{color:"#00ff00"},children:"[websocket]"}),t6=()=>(0,n.jsx)("span",{className:"me-1",style:{color:"#ff8c00"},children:"[peerconnection]"}),t4=()=>(0,n.jsx)("span",{className:"me-1",style:{color:"#bce2e8"},children:"[sora]"}),t9=()=>(0,n.jsx)("span",{className:"me-1",style:{color:"#73b8e2"},children:"[sora-devtools]"}),t3=e=>{let{label:t,id:a}=e,i=t&&Object.keys(t2).includes(t)?t2[t]:void 0;return(0,n.jsxs)("span",{className:"me-1",style:i?{color:i}:{},children:["[datachannel]",t?"[".concat(t,"]"):"","number"==typeof a?"[".concat(a,"]"):""]})},t8=e=>{let t;let{timestamp:a,logType:i,dataChannelId:s,dataChannelLabel:o,type:l,data:r}=e;return"websocket"===i?t=(0,n.jsx)(t5,{}):"datachannel"===i?t=(0,n.jsx)(t3,{id:s,label:o}):"peerconnection"===i?t=(0,n.jsx)(t6,{}):"sora"===i?t=(0,n.jsx)(t4,{}):"sora-devtools"===i&&(t=(0,n.jsx)(t9,{})),(0,n.jsx)(tf,{title:"".concat(l),timestamp:a,description:r,label:t})},t7=i.memo(e=>(0,n.jsx)(t8,{...e})),ae=()=>{let e=tm(e=>e.timelineMessages),t=tm(e=>e.debugFilterText),a=e.filter(e=>t.split(" ").every(t=>""===t||0<=JSON.stringify(e).indexOf(t)));return(0,n.jsx)("div",{className:"debug-messages",children:a.map(e=>{let t="".concat(e.timestamp,"-").concat(e.type);return e.dataChannelLabel&&(t+="-".concat(e.dataChannelLabel)),(0,n.jsx)(t7,{...e},t)})})},at=()=>{let e=tm(e=>e.debug),t=tm(e=>e.debugType),a=tu();return e?(0,n.jsx)("div",{className:"col-debug col-6",children:(0,n.jsxs)(tg.Z,{id:"debug-tab",activeKey:t,defaultActiveKey:"timeline",onSelect:e=>{("log"===e||"notify"===e||"push"===e||"stats"===e||"timeline"===e||"signaling"===e||"messaging"===e||"codec"===e)&&a(ep(e))},children:[(0,n.jsxs)(th.Z,{eventKey:"timeline",title:"Timeline",children:[(0,n.jsx)(tM,{}),(0,n.jsx)(ae,{})]}),(0,n.jsxs)(th.Z,{eventKey:"signaling",title:"Signaling",children:[(0,n.jsx)(tM,{}),(0,n.jsx)(t$,{})]}),(0,n.jsxs)(th.Z,{eventKey:"notify",title:"Notfiy",children:[(0,n.jsx)(tM,{}),(0,n.jsx)(tU,{})]}),(0,n.jsxs)(th.Z,{eventKey:"push",title:"Push",children:[(0,n.jsx)(tM,{}),(0,n.jsx)(tJ,{})]}),(0,n.jsxs)(th.Z,{eventKey:"stats",title:"Stats",children:[(0,n.jsx)(tM,{}),(0,n.jsx)(t1,{})]}),(0,n.jsxs)(th.Z,{eventKey:"log",title:"Log",children:[(0,n.jsx)(tM,{}),(0,n.jsx)(tD,{})]}),(0,n.jsxs)(th.Z,{eventKey:"messaging",title:"Messaging",children:[(0,n.jsx)(tW,{}),(0,n.jsx)(tw,{})]}),(0,n.jsx)(th.Z,{eventKey:"codec",title:"Codec",children:(0,n.jsx)(ty,{})})]})}):null};var aa=a(1358),an=a(2286),ai=a(2542);let as=()=>{let e=tu(),t=tm(e=>e.soraContents.reconnectingTrials);return(0,i.useEffect)(()=>{e(H())},[e]),(0,n.jsxs)(ai.Z,{delay:2e4,onClose:()=>{e(e5(!1))},children:[(0,n.jsx)(ai.Z.Header,{className:"bg-warning text-white",children:(0,n.jsx)("strong",{className:"me-auto",children:"Reconnect"})}),(0,n.jsx)(ai.Z.Body,{className:"bg-light",children:(0,n.jsxs)("p",{className:"text-break font-weight-bold mb-0",children:["Reconnecting... (trials ",t,")"]})})]})},ao=e=>{let t=tu(),a="error"===e.type?"bg-danger":"bg-info";return(0,n.jsxs)(ai.Z,{autohide:!0,delay:2e4,onClose:()=>{t(q(e.timestamp))},children:[(0,n.jsxs)(ai.Z.Header,{className:"".concat(a," text-white"),children:[(0,n.jsx)("strong",{className:"me-auto",children:e.title}),(0,n.jsx)("span",{children:u(e.timestamp)})]}),(0,n.jsx)(ai.Z.Body,{className:"bg-light",children:(0,n.jsx)("p",{className:"text-break font-weight-bold mb-0",children:e.message})})]})},al=()=>{let e=tm(e=>e.alertMessages),t=tm(e=>e.soraContents.reconnecting);return(0,n.jsxs)("div",{className:"alert-messages",children:[t?(0,n.jsx)(as,{}):null,e.map(e=>(0,n.jsx)(ao,{...e},e.timestamp))]})};var ar=a(1080),ac=a(368);let ad=e=>{let t=d.x$[e.kind];return t?(0,n.jsx)(ar.Z,{placement:"top",overlay:(0,n.jsx)(ac.Z,{id:"popover-basic",children:(0,n.jsx)(ac.Z.Body,{style:{whiteSpace:"pre-wrap"},children:t.description})}),children:(0,n.jsx)(tR.Z,{children:e.children})}):(console.warn('Could not load description "'.concat(e.kind,'"')),(0,n.jsx)(tR.Z,{children:e.children}))},au=e=>(0,n.jsxs)("div",{className:"d-flex align-items-center",children:[e.label?(0,n.jsx)("p",{children:e.label}):null,(0,n.jsxs)("div",{className:"d-flex align-items-center border border-secondary rounded mx-1",children:[(0,n.jsx)("p",{id:e.id,className:"mx-2 p-1",children:e.text}),(0,n.jsx)("div",{className:"border-left border-secondary",children:(0,n.jsx)("button",{type:"button",className:"btn btn-sm btn-light",onClick:t=>{m(e.text),t.currentTarget.blur()},children:(0,n.jsx)(tv,{})})})]})]}),am=e=>{let{localVideo:t,connectionId:a,clientId:i}=e;return(0,n.jsxs)(n.Fragment,{children:[a?(0,n.jsx)(au,{id:t?"local-video-connection-id":void 0,label:"connectionID:",text:a}):null,null!=i&&a!==i?(0,n.jsx)(au,{id:t?"local-video-client-id":void 0,label:"clientID:",text:i}):null]})},ag=e=>{let t=tm(e=>e.soraContents.statsReport),[a,n]=(0,i.useState)([]),[s,o]=(0,i.useState)(null);return(0,i.useEffect)(()=>{(async()=>{if(void 0===e.getVideoTracks().find(e=>e))return;let a=t.filter(e=>{if("outbound-rtp"===e.type&&"video"===e.kind)return!0});if(0===a.length)return;let i=a.map(e=>{let a=t.find(t=>{if("codec"===t.type)return t.id===e.codecId});return void 0===a?{outboundRtpStats:e}:{codec:a,outboundRtpStats:e}});if(n(i.sort((e,t)=>void 0===e.outboundRtpStats.rid?1:void 0===t.outboundRtpStats.rid?-1:e.outboundRtpStats.rid.localeCompare(t.outboundRtpStats.rid))),null===s){let e=i.filter(e=>void 0!==e.outboundRtpStats.frameWidth).sort((e,t)=>void 0===e.outboundRtpStats.frameWidth?1:void 0===t.outboundRtpStats.frameWidth?-1:t.outboundRtpStats.frameWidth-e.outboundRtpStats.frameWidth);e.length>0&&o(e[0])}else{let e=i.find(e=>e.outboundRtpStats.rid===s.outboundRtpStats.rid);void 0!==e&&o(e)}})()},[t,e,s]),{trackStats:a,selected:s,setSelected:o}},ah=e=>{var t,a,i;let{stream:s}=e,{trackStats:o,selected:l,setSelected:r}=ag(s);return(0,n.jsx)("div",{className:"video-overlay",children:0===o.length?(0,n.jsx)("p",{children:"loading..."}):(0,n.jsxs)(n.Fragment,{children:[o.length>1&&(0,n.jsx)("div",{className:"d-flex gap-2",children:o.map(e=>(0,n.jsxs)("div",{className:e.outboundRtpStats.rid===(null==l?void 0:l.outboundRtpStats.rid)?"rid-selected":"rid",onClick:()=>r(e),onKeyDown:()=>r(e),children:["[",e.outboundRtpStats.rid,"]"]},e.outboundRtpStats.rid))}),l&&(0,n.jsxs)("table",{className:"table-video-capabilities",children:[(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"mimeType"}),(0,n.jsx)("td",{children:null===(t=l.codec)||void 0===t?void 0:t.mimeType})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"payloadType"}),(0,n.jsx)("td",{children:null===(a=l.codec)||void 0===a?void 0:a.payloadType})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"sdpFmtpLine"}),(0,n.jsx)("td",{children:null===(i=l.codec)||void 0===i?void 0:i.sdpFmtpLine})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"resolution"}),(0,n.jsxs)("td",{children:[l.outboundRtpStats.frameWidth,"x",l.outboundRtpStats.frameHeight]})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"fps"}),(0,n.jsx)("td",{children:void 0!==l.outboundRtpStats.framesPerSecond?Math.floor(l.outboundRtpStats.framesPerSecond):void 0})]})]})]})})};async function ap(e,t,a,n){let i=window.location.protocol,s="".concat(i,"//").concat(window.location.hostname,":").concat("https:"===i?"443":"3000","/").concat("https:"===i?"api":"");null!==e&&(s=e);let o="Sora_".concat(t,".").concat(a),l=await fetch(s,{method:"POST",body:JSON.stringify(n),headers:{Accept:"application/json","Content-Type":"application/json","x-sora-target":o},mode:"cors"}),r=await l.json();if(!l.ok){let e="POST ".concat(s," ").concat(l.status," (").concat(l.statusText,") target:").concat(o);throw r.error_type&&(e+=" error_type: ".concat(r.error_type)),Error(e)}return r}function av(e,t,a,n,i){let s={channel_id:t,recv_connection_id:a,rid:n};return i&&(s.send_connection_id=i),ap(e,"20201005","RequestRtpStream",s)}function ax(e,t,a,n){let i={channel_id:t,recv_connection_id:a};return n&&(i.send_connection_id=n),ap(e,"20201005","ResetRtpStream",i)}function aj(e,t,a,n,i,s){let o={channel_id:t,recv_connection_id:a,spotlight_focus_rid:n,spotlight_unfocus_rid:i};return s&&(o.send_connection_id=s),ap(e,"20211215","RequestSpotlightRid",o)}function af(e,t,a,n){let i={channel_id:t,recv_connection_id:a};return n&&(i.send_connection_id=n),ap(e,"20211215","ResetSpotlightRid",i)}let aC=e=>{let t=tm(e=>e.soraContents.sora),a=tm(e=>e.apiUrl),i=tm(e=>e.channelId),s=tu(),o=async()=>{if(null==t?void 0:t.connectionId)try{let n=await av(a,i,t.connectionId,e.rid);s(X("POST successed. response: ".concat(JSON.stringify(n))))}catch(e){e instanceof Error&&s(Q(e.message))}};return(0,n.jsx)("div",{className:"mx-1",children:(0,n.jsx)("input",{className:"btn btn-secondary",type:"button",name:"requestSimulcastRidTo".concat(e.rid.charAt(0).toUpperCase()+e.rid.slice(1)),defaultValue:"".concat(e.rid," rid"),onClick:o})})},ab=()=>{let e=(0,i.useRef)(null),t=(0,i.useRef)(null),a=tm(e=>e.soraContents.sora),s=tm(e=>e.channelId),o=tm(e=>e.apiUrl),l=tu();if(!(null==a?void 0:a.connectionId))return null;let r=async()=>{if(!(null==a?void 0:a.connectionId)||null===e.current||null===t.current)return;let n=e.current.value,i=t.current.value;try{let e=await aj(o,s,a.connectionId,n,i);l(X("POST successed. response: ".concat(JSON.stringify(e))))}catch(e){e instanceof Error&&l(Q(e.message))}};return(0,n.jsx)("div",{className:"mx-1",children:(0,n.jsxs)(tI.Z,{className:"form-inline",children:[(0,n.jsx)(tz.Z,{ref:e,children:d.I7.map(e=>""===e?null:(0,n.jsxs)("option",{value:e,children:["SpotlightFocusRid: ",e]},e))}),(0,n.jsx)(tz.Z,{ref:t,children:d.I7.map(e=>""===e?null:(0,n.jsxs)("option",{value:e,children:["SpotlightUnfocusRid: ",e,"\xa0\xa0\xa0"]},e))}),(0,n.jsx)("input",{className:"btn btn-secondary",type:"button",name:"requestSpotlightRid",defaultValue:"requestSpotlightRid",onClick:r})]})})},aS=()=>{let e=tm(e=>e.soraContents.sora),t=tm(e=>e.channelId),a=tm(e=>e.apiUrl),i=tu(),s=async()=>{if(null==e?void 0:e.connectionId)try{let n=await ax(a,t,e.connectionId);i(X("POST successed. response: ".concat(JSON.stringify(n))))}catch(e){e instanceof Error&&i(Q(e.message))}};return(0,n.jsx)("div",{className:"mx-1",children:(0,n.jsx)("input",{className:"btn btn-secondary",type:"button",name:"resetAllSimulcastRid",defaultValue:"reset rid",onClick:s})})},ay=()=>{let e=tm(e=>e.soraContents.sora),t=tm(e=>e.channelId),a=tm(e=>e.apiUrl),i=tu(),s=async()=>{if(null==e?void 0:e.connectionId)try{let n=await af(a,t,e.connectionId);i(X("POST successed. response: ".concat(JSON.stringify(n))))}catch(e){e instanceof Error&&i(Q(e.message))}};return(0,n.jsx)("div",{className:"mx-1",children:(0,n.jsx)("input",{className:"btn btn-secondary",type:"button",name:"resetAllSpotlightRid",defaultValue:"resetSpotlightRid",onClick:s})})},aN=e=>(0,n.jsxs)("div",{className:"d-flex align-items-center",children:[(0,n.jsx)("p",{children:"sessionID:"}),(0,n.jsxs)("div",{className:"d-flex align-items-center border border-secondary rounded mx-1",children:[(0,n.jsx)("p",{id:e.id,className:"mx-2 p-1",children:e.text}),(0,n.jsx)("div",{className:"border-left border-secondary",children:(0,n.jsx)("button",{type:"button",className:"btn btn-sm btn-light",onClick:t=>{m(e.text),t.currentTarget.blur()},children:(0,n.jsx)(tv,{})})})]})]}),ak=e=>{let{sessionId:t}=e;return(0,n.jsx)(aN,{id:"session-id",text:t})},aT=e=>{var t;let{displayResolution:a,stream:s,mute:o,audioOutput:l,setHeight:r}=e,c=(0,i.useRef)(null),d=v(a);return(0,i.useEffect)(()=>{let e=new ResizeObserver(e=>{e.filter(e=>{r(e.contentRect.height)})});return c.current&&(l&&s&&s.getAudioTracks().length>0&&c.current.setSinkId(l),e.observe(c.current)),()=>{e.disconnect()}},[r,l,s]),(0,i.useEffect)(()=>{c.current&&o&&(c.current.muted=!0)},[o]),(0,i.useEffect)(()=>{if(c.current&&s){let e;s.getVideoTracks().filter(t=>{e=t.enabled,t.enabled=!1}),c.current.onloadedmetadata=t=>{s.getVideoTracks().filter(t=>{void 0!==e&&(t.enabled=e)})},c.current.srcObject=s,l&&s.getAudioTracks().length>0&&c.current.setSinkId(l)}else c.current&&null===s&&(c.current.srcObject=null)},[s,l]),l&&(null===(t=c.current)||void 0===t?void 0:t.setSinkId)&&s&&s.getAudioTracks().length>0&&c.current.setSinkId(l),(0,n.jsx)("video",{id:e.localVideo?"local-video":void 0,autoPlay:!0,playsInline:!0,controls:!0,muted:o,ref:c,width:0(0,n.jsx)(aT,{...e})),aI="#CCCCCC";function aR(e,t,a){e.beginPath(),e.fillStyle=t,e.fillRect(0,a,25,10),e.closePath()}function aZ(e,t){let a=Math.ceil(t/12.5),n=t-10;aR(e,aI,n);for(let t=0;t{let t=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(0===e.stream.getAudioTracks().length)return;let a=new(window.AudioContext||window.webkitAudioContext),n=a.createMediaStreamSource(e.stream),i=a.createAnalyser();i.fftSize=2048;let s=new Uint8Array(i.frequencyBinCount);n.connect(i);let o=null;return function e(){o=requestAnimationFrame(e),i.getByteTimeDomainData(s);let a=Array.from(s),n=Math.max.apply(null,a)-128,l=t.current;if(null===l)return;let r=l.getContext("2d");null!==r&&(r.clearRect(0,0,25,l.height),r.save(),aZ(r,l.height),function(e,t,a){let n=Math.ceil(t*a/12.5);for(let a=0;a{a&&a.close(),o&&cancelAnimationFrame(o)}},[e.stream]),(0,n.jsx)("canvas",{width:25,height:e.height,className:"volume-visualizer",ref:t})},aP=e=>{let t=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=t.current;if(null===e)return;let a=e.getContext("2d");null!==a&&(a.clearRect(0,0,25,e.height),a.save(),aZ(a,e.height),a.restore())},[]),(0,n.jsx)("canvas",{width:25,height:e.height,className:"volume-visualizer",ref:t})},aV=i.memo(e=>e.micDevice&&0{let[e,t]=(0,i.useState)(0),a=tm(e=>e.audio),s=tm(e=>e.video),o=tm(e=>e.audioOutput),l=tm(e=>e.displayResolution),r=tm(e=>e.focusedSpotlightConnectionIds),c=tm(e=>e.soraContents.connectionId),d=tm(e=>e.soraContents.localMediaStream),u=tm(e=>e.micDevice),m=c&&r[c],g=tm(e=>e.mediaStats);return!1===a&&!1===s?null:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"d-flex",children:(0,n.jsxs)("div",{className:"position-relative d-flex flex-nowrap align-items-start video-wrapper overflow-y-hidden".concat(m?" spotlight-focused":""),children:[g&&d&&d.getVideoTracks().length>0&&(0,n.jsx)(ah,{stream:d}),(0,n.jsx)(aw,{stream:d,setHeight:t,audioOutput:o,displayResolution:l,localVideo:!0,mute:!0}),null!==d?(0,n.jsx)(aV,{micDevice:u,stream:d,height:e}):null]})})})},aA=()=>{let e=tm(e=>e.soraContents.connectionId),t=tm(e=>e.soraContents.clientId),a=tm(e=>e.soraContents.sessionId),i=tm(e=>e.simulcast),s=tm(e=>e.spotlight),o=tm(e=>e.role),l=tm(e=>e.soraContents.localMediaStream);return(0,n.jsx)("div",{className:"row my-1",children:(0,n.jsxs)("div",{className:"col-auto",children:[(0,n.jsxs)("div",{className:"video-status mb-1",children:[null!==a?(0,n.jsx)("div",{className:"d-flex align-items-center mb-1 video-status-inner",children:(0,n.jsx)(ak,{sessionId:a})}):null,null!==e||null!==t?(0,n.jsx)("div",{className:"d-flex align-items-center mb-1 video-status-inner",children:(0,n.jsx)(am,{connectionId:e,clientId:t,localVideo:!0})}):null,null!==e&&"true"!==s&&"true"===i&&"sendonly"!==o?(0,n.jsxs)("div",{className:"d-flex align-items-center mb-1 video-status-inner",children:[(0,n.jsx)(ad,{kind:"changeAllRecvStream",children:"change all:"}),(0,n.jsx)(aC,{rid:"r0"}),(0,n.jsx)(aC,{rid:"r1"}),(0,n.jsx)(aC,{rid:"r2"}),(0,n.jsx)(aS,{})]}):null,null!==e&&"true"===s?(0,n.jsxs)("div",{className:"d-flex align-items-center mb-1 video-status-inner",children:[(0,n.jsx)(ab,{}),(0,n.jsx)(ay,{})]}):null]}),null!==l&&"recvonly"!==o?(0,n.jsx)(aD,{}):null]})})};function aF(e,t,a){if(null===t)return;let n=[];return"video"===a?n=t.getVideoTracks().map(e=>e.id):"audio"===a&&(n=t.getAudioTracks().map(e=>e.id)),e.find(e=>"inbound-rtp"===e.type&&"kind"in e&&"trackIdentifier"in e&&!!(e.kind===a&&n.includes(e.trackIdentifier)))}let aO=e=>{let t=tm(e=>e.soraContents.statsReport),a=tm(e=>e.soraContents.prevStatsReport),i=aF(t,e.stream,e.type),s=aF(a,e.stream,e.type);if(void 0===i||void 0===i.jitterBufferDelay||void 0===i.jitterBufferEmittedCount)return null;let o=i.jitterBufferDelay,l=i.jitterBufferEmittedCount;void 0!==s&&void 0!==s.jitterBufferDelay&&void 0!==s.jitterBufferEmittedCount&&(o=i.jitterBufferDelay-s.jitterBufferDelay,l=i.jitterBufferEmittedCount-s.jitterBufferEmittedCount);let r=Math.floor(o/l*1e3),c="normal-jitter-buffer";return 500{let t=tm(e=>e.soraContents.statsReport),a=tm(e=>e.soraContents),[n,s]=(0,i.useState)(null);return(0,i.useEffect)(()=>{(async()=>{var n;let i,o;if(!(null===(n=a.sora)||void 0===n?void 0:n.pc))return;let l=e.getVideoTracks().find(e=>e);if(void 0===l)return;let r=await a.sora.pc.getReceivers().find(e=>e.track.id===l.id);if(void 0!==r){for(let e of(await r.getStats())){let[t,a]=e;if(a.codecId){i=a.codecId;break}}if(void 0!==i){for(let e of t)"codec"===e.type&&i===e.id&&(o=e);o&&s({codec:o,videoTrackStats:{width:l.getSettings().width,height:l.getSettings().height,frameRate:void 0!==l.getSettings().frameRate?Math.floor(l.getSettings().frameRate||0):void 0}})}}})()},[t,e,a]),{trackStats:n}},aU=e=>{let{stream:t}=e,{trackStats:a}=aH(t);return(0,n.jsx)("div",{className:"video-overlay",children:null===a?(0,n.jsx)("p",{children:"loading..."}):(0,n.jsxs)("table",{className:"table-video-capabilities",children:[(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"mimeType"}),(0,n.jsx)("td",{children:a.codec.mimeType})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"payloadType"}),(0,n.jsx)("td",{children:a.codec.payloadType})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"sdpFmtpLine"}),(0,n.jsx)("td",{children:a.codec.sdpFmtpLine})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"resolution"}),(0,n.jsx)("td",{children:void 0===a.videoTrackStats.width||void 0===a.videoTrackStats.height?"undefined":"".concat(a.videoTrackStats.width,"x").concat(a.videoTrackStats.height)})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"fps"}),(0,n.jsx)("td",{children:void 0===a.videoTrackStats.frameRate?"undefined":a.videoTrackStats.frameRate})]})]})})},aB=e=>{let t=tm(e=>e.soraContents.sora),a=tm(e=>e.apiUrl),i=tm(e=>e.channelId),s=tu(),o=async()=>{if(null==t?void 0:t.connectionId)try{let n=await av(a,i,t.connectionId,e.rid,e.sendConnectionId);s(X("POST successed. response: ".concat(JSON.stringify(n))))}catch(e){e instanceof Error&&s(Q(e.message))}};return(0,n.jsx)("input",{className:"btn btn-secondary btn-sm mx-1",type:"button",name:"requestSimulcastRidTo".concat(e.rid.charAt(0).toUpperCase()+e.rid.slice(1)),defaultValue:"".concat(e.rid," rid"),onClick:o})},aE=e=>{let t=(0,i.useRef)(null),a=(0,i.useRef)(null),s=tm(e=>e.soraContents.sora),o=tm(e=>e.channelId),l=tm(e=>e.apiUrl),r=tu();if(!(null==s?void 0:s.connectionId))return null;let c=async()=>{if(!(null==s?void 0:s.connectionId)||null===t.current||null===a.current)return;let n=t.current.value,i=a.current.value;try{let t=await aj(l,o,s.connectionId,n,i,e.sendConnectionId);r(X("POST successed. response: ".concat(JSON.stringify(t))))}catch(e){e instanceof Error&&r(Q(e.message))}};return(0,n.jsx)("div",{className:"mx-1",children:(0,n.jsxs)(tI.Z,{className:"form-inline",children:[(0,n.jsx)(tz.Z,{ref:t,children:d.I7.map(e=>""===e?null:(0,n.jsxs)("option",{value:e,children:["SpotlightFocusRid: ",e]},e))}),(0,n.jsx)(tz.Z,{ref:a,children:d.I7.map(e=>""===e?null:(0,n.jsxs)("option",{value:e,children:["SpotlightUnfocusRid: ",e,"\xa0\xa0\xa0"]},e))}),(0,n.jsx)("input",{className:"btn btn-secondary",type:"button",name:"requestSpotlightRidBySendConnectionId",defaultValue:"requestSpotlightRid",onClick:c})]})})},a_=e=>{let t=tm(e=>e.soraContents.sora),a=tm(e=>e.channelId),i=tm(e=>e.apiUrl),s=tu(),o=async()=>{if(null==t?void 0:t.connectionId)try{let n=await ax(i,a,t.connectionId,e.sendConnectionId);s(X("POST successed. response: ".concat(JSON.stringify(n))))}catch(e){e instanceof Error&&s(Q(e.message))}};return(0,n.jsx)("input",{className:"btn btn-secondary btn-sm mx-1",type:"button",name:"resetRtpStream",defaultValue:"reset rid",onClick:o})},aL=e=>{let t=tm(e=>e.soraContents.sora),a=tm(e=>e.channelId),i=tm(e=>e.apiUrl),s=tu(),o=async()=>{if(null==t?void 0:t.connectionId)try{let n=await af(i,a,t.connectionId,e.sendConnectionId);s(X("POST successed. response: ".concat(JSON.stringify(n))))}catch(e){e instanceof Error&&s(Q(e.message))}};return(0,n.jsx)("input",{className:"btn btn-secondary mx-1",type:"button",name:"resetSpotlightRid",defaultValue:"resetSpotlightRid",onClick:o})};function aJ(e,t){if(null===t)return[];let a=t.getTracks().map(e=>e.id),n=[];for(let t of e)(!t.id||t.id.match(/^RTCMediaStreamTrack/))&&"trackIdentifier"in t&&t.trackIdentifier&&a.includes(t.trackIdentifier)&&n.push(t);return n}let az=e=>{let t=tm(e=>e.showStats),a=tm(e=>e.soraContents.statsReport),i=tm(e=>e.soraContents.prevStatsReport);if(!t)return null;let s=aJ(a,e.stream),o=aJ(i,e.stream);return(0,n.jsx)(n.Fragment,{children:s.map(e=>{let t=0,a=0,i=o.find(t=>e.id===t.id);return i&&(t=e.jitterBufferDelay-i.jitterBufferDelay,a=e.jitterBufferEmittedCount-i.jitterBufferEmittedCount),(0,n.jsx)("div",{children:(0,n.jsxs)("ul",{className:"mediastream-stats-report",children:[Object.entries(e).map(e=>{let[t,a]=e;return(0,n.jsxs)("li",{children:[(0,n.jsxs)("strong",{children:[t,":"]})," ",a]},t)}),(0,n.jsxs)("li",{children:[(0,n.jsx)("strong",{children:"[jitterBufferDelay/jitterBufferEmittedCount_in_ms]"})," ",Math.floor(t/a*1e3)]})]})},e.id)})})},aG=e=>{let{client:t}=e,{mediaStream:a,connectionId:s,clientId:o}=t,[l,r]=(0,i.useState)(0),c=tm(e=>e.audioOutput),d=tm(e=>e.displayResolution),u=tm(e=>e.focusedSpotlightConnectionIds),m=tm(e=>e.multistream),g=tm(e=>e.mute),h=tm(e=>e.simulcast),p=tm(e=>e.spotlight),v=s&&u[s],x=tm(e=>e.mediaStats);return(0,n.jsxs)("div",{className:"col-auto",children:[(0,n.jsxs)("div",{className:"video-status",children:[(0,n.jsxs)("div",{className:"d-flex align-items-center mb-1 video-status-inner",children:[(0,n.jsx)(am,{connectionId:s,clientId:o}),(0,n.jsx)(aO,{type:"audio",stream:a}),(0,n.jsx)(aO,{type:"video",stream:a})]}),(0,n.jsxs)("div",{className:"d-flex align-items-center mb-1 video-status-inner",children:["true"!==p&&"true"===m&&"true"===h?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aB,{rid:"r0",sendConnectionId:s}),(0,n.jsx)(aB,{rid:"r1",sendConnectionId:s}),(0,n.jsx)(aB,{rid:"r2",sendConnectionId:s}),(0,n.jsx)(a_,{sendConnectionId:s})]}):null,"true"===p&&"true"===m&&"true"===h?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aE,{sendConnectionId:s}),(0,n.jsx)(aL,{sendConnectionId:s})]}):null]})]}),(0,n.jsxs)("div",{className:"d-flex flex-wrap align-items-start overflow-y-hidden",children:[(0,n.jsxs)("div",{className:"position-relative d-flex flex-nowrap align-items-start video-wrapper".concat(v?" spotlight-focused":""),children:[x&&a.getVideoTracks().length>0&&(0,n.jsx)(aU,{stream:a}),(0,n.jsx)(aw,{stream:a,setHeight:r,mute:g,audioOutput:c,displayResolution:d}),(0,n.jsx)(aV,{micDevice:!0,stream:a,height:l})]}),(0,n.jsx)(az,{stream:a})]})]})},aW=()=>{let e=tm(e=>e.soraContents.remoteClients);return(0,n.jsx)("div",{className:"row my-2",children:e.map(e=>(0,n.jsx)(aG,{client:e},e.connectionId))})},aK=()=>{let e=tm(e=>e.aspectRatio),t=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"aspectRatio",children:[(0,n.jsx)(ad,{kind:"aspectRatio",children:"aspectRatio:"}),(0,n.jsx)(tz.Z,{name:"aspectRatio",value:e,onChange:e=>{g(e.target.value,d.Ii)&&t($(e.target.value))},children:d.Ii.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},aq=()=>{let e=tm(e=>e.audioBitRate),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"audioBitRate",children:[(0,n.jsx)(ad,{kind:"audioBitRate",children:"audioBitRate:"}),(0,n.jsx)(tz.Z,{name:"audioBitRate",value:e,onChange:e=>{g(e.target.value,d.xR)&&a(ee(e.target.value))},disabled:t,children:d.xR.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},aQ=()=>{let e=tm(e=>e.audioCodecType),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"audioCodecType",children:[(0,n.jsx)(ad,{kind:"audioCodecType",children:"audioCodecType:"}),(0,n.jsx)(tz.Z,{name:"audioCodecType",value:e,onChange:e=>{g(e.target.value,d.o1)&&a(et(e.target.value))},disabled:t,children:d.o1.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},aX=()=>{let e=tm(e=>e.audioContentHint),t=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"audioContentHint",children:[(0,n.jsx)(ad,{kind:"audioContentHint",children:"audioContentHint:"}),(0,n.jsx)(tz.Z,{name:"audioContentHint",value:e,onChange:e=>{g(e.target.value,d.nT)&&t(ea(e.target.value))},children:d.nT.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})};var a$=a(6050);let aY=e=>{let{children:t,kind:a,checked:i,onChange:s,disabled:o}=e,l=d.x$[a];return l?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a$.Z,{type:"switch",checked:i,onChange:s,disabled:o}),(0,n.jsx)(ar.Z,{placement:"top",overlay:(0,n.jsx)(ac.Z,{id:"popover-basic",children:(0,n.jsx)(ac.Z.Body,{style:{whiteSpace:"pre-wrap"},children:l.description})}),children:(0,n.jsx)(tR.Z,{children:t})})]}):(console.warn('Could not load description "'.concat(a,'"')),(0,n.jsx)(tR.Z,{children:t}))},a0=()=>{let e=tm(e=>e.audio),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"audio",children:(0,n.jsx)(aY,{kind:"audio",checked:e,onChange:e=>{a(Y(e.target.checked))},disabled:t,children:"audio"})})},a1=()=>{let e=tm(e=>e.audioInput),t=tm(e=>e.audioInputDevices),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"audioInput",children:[(0,n.jsx)(ad,{kind:"audioInput",children:"audioInput:"}),(0,n.jsxs)(tz.Z,{name:"audioInput",value:e,onChange:e=>{a(en(e.target.value)),a(E())},disabled:0===t.length,children:[(0,n.jsx)("option",{value:"",children:"未指定"}),t.map(e=>(0,n.jsx)("option",{value:e.deviceId,children:e.label},e.deviceId))]})]})},a2=()=>{let e=tm(e=>e.audioOutput),t=tm(e=>e.audioOutputDevices),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"audioOutput",children:[(0,n.jsx)(ad,{kind:"audioOutput",children:"audioOutput:"}),(0,n.jsxs)(tz.Z,{name:"audioOutput",value:e,onChange:e=>{a(ei(e.target.value))},disabled:0===t.length,children:[(0,n.jsx)("option",{value:"",children:"未指定"}),t.map(e=>(0,n.jsx)("option",{value:e.deviceId,children:e.label},e.deviceId))]})]})},a5=()=>{let e=tm(e=>e.enabledAudioStreamingLanguageCode),t=tm(e=>e.audioStreamingLanguageCode),a=y(tm(e=>e.soraContents.connectionStatus)),i=tu();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledAudioStreamingLanguageCode",children:(0,n.jsx)(aY,{kind:"audioStreamingLanguageCode",checked:e,onChange:e=>{i(eP(e.target.checked))},disabled:a,children:"audioStreamingLanguageCode"})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"audioStreamingLanguageCode",children:(0,n.jsx)(tZ.Z,{className:"flex-fill w-500",type:"text",placeholder:"audioStreamingLanguageCodeを指定",value:t,onChange:e=>{i(eM(e.target.value))},disabled:a})})})}):null]})},a6=()=>{let e=tm(e=>e.audioTrack),t=tu();return(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"audioTrack",children:(0,n.jsx)(aY,{kind:"audioTrack",checked:e,onChange:e=>{t(es(e.target.checked))},disabled:!1,children:"Enable audio track"})})},a4=()=>{let e=tm(e=>e.autoGainControl),t=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"autoGainControl",children:[(0,n.jsx)(ad,{kind:"autoGainControl",children:"autoGainControl:"}),(0,n.jsx)(tz.Z,{name:"autoGainControl",value:e,onChange:e=>{g(e.target.value,d.iN)&&t(eo(e.target.value))},children:d.iN.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},a9=()=>{let e=tm(e=>e.blurRadius),t=tm(e=>e.mediaType),a=tu(),i="getUserMedia"!==t;return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"blurRadius",children:[(0,n.jsx)(ad,{kind:"blurRadius",children:"blurRadius:"}),(0,n.jsx)(tz.Z,{value:e,onChange:e=>{g(e.target.value,d.G_)&&a(el(e.target.value))},disabled:i,children:d.G_.map(e=>(0,n.jsx)("option",{suppressHydrationWarning:!0,value:e,children:""===e||i?"未指定":e},e))})]})},a3=()=>{let e=tm(e=>e.enabledBundleId),t=tm(e=>e.bundleId),a=y(tm(e=>e.soraContents.connectionStatus)),i=tu();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledBundleId",children:(0,n.jsx)(aY,{kind:"bundleId",checked:e,onChange:e=>{i(ef(e.target.checked))},disabled:a,children:"bundleId"})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"bundleId",children:(0,n.jsx)(tZ.Z,{className:"flex-fill w-500",type:"text",placeholder:"bundleIdを指定",value:t,onChange:e=>{i(er(e.target.value))},disabled:a})})})}):null]})},a8=()=>{let e=tm(e=>e.cameraDevice),t=tm(e=>e.soraContents.connectionStatus),a=tm(e=>e.soraContents.sora),i=tm(e=>e.video),s=!(a&&"connected"===t?a.video:i),o=tu();return(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"cameraDevice",children:(0,n.jsx)(aY,{kind:"cameraDevice",checked:e,onChange:e=>{o(J(e.target.checked))},disabled:s,children:"Enable camera device"})})},a7=()=>{let e=tm(e=>e.channelId),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"channelId",children:[(0,n.jsx)(ad,{kind:"channelId",children:"channelId:"}),(0,n.jsx)(tZ.Z,{type:"text",placeholder:"ChannelIdを指定",value:e,onChange:e=>{a(ec(e.target.value))},disabled:t})]})},ne=()=>{let e=tm(e=>e.enabledClientId),t=tm(e=>e.clientId),a=y(tm(e=>e.soraContents.connectionStatus)),i=tu();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledClientId",children:(0,n.jsx)(aY,{kind:"clientId",checked:e,onChange:e=>{i(eC(e.target.checked))},disabled:a,children:"clientId"})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"clientId",children:(0,n.jsx)(tZ.Z,{className:"flex-fill w-500",type:"text",placeholder:"ClientIdを指定",value:t,onChange:e=>{i(ed(e.target.value))},disabled:a})})})}):null]})},nt=()=>{let e=tm(e=>e.soraContents.connectionStatus),t=tu();return(0,n.jsx)("div",{className:"col-auto mb-1",children:(0,n.jsx)("input",{className:"btn btn-secondary",type:"button",name:"connect",defaultValue:"connect",onClick:()=>{t(O())},disabled:"disconnecting"===e||"connecting"===e||"initializing"===e})})},na=e=>{let t=tm(e=>e.ignoreDisconnectWebSocket),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"ignoreDisconnectWebSocket",children:[(0,n.jsx)(ad,{kind:"ignoreDisconnectWebSocket",children:"ignoreDisconnectWebSocket:"}),(0,n.jsx)(tz.Z,{name:"ignoreDisconnectWebSocket",value:t,onChange:e=>{g(e.target.value,d.kt)&&a(eF(e.target.value))},disabled:e.disabled,children:d.kt.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nn=e=>{let t=tm(e=>e.dataChannelSignaling),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"dataChannelSignaling",children:[(0,n.jsx)(ad,{kind:"dataChannelSignaling",children:"dataChannelSignaling:"}),(0,n.jsx)(tz.Z,{name:"dataChannelSignaling",value:t,onChange:e=>{g(e.target.value,d.l9)&&a(em(e.target.value))},disabled:e.disabled,children:d.l9.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},ni=()=>{let e=tm(e=>e.enabledDataChannel),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledDataChannel",children:(0,n.jsx)(a$.Z,{type:"switch",name:"enabledDataChannel",label:"dataChannel",checked:e,onChange:e=>{a(eS(e.target.checked))},disabled:t})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsxs)(aa.Z,{xs:"auto",children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)(nn,{disabled:t})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(na,{disabled:t})})]})})}):null]})},ns=()=>{let e=tm(e=>e.enabledDataChannels),t=tm(e=>e.dataChannels),a=y(tm(e=>e.soraContents.connectionStatus)),i=tu(),s=JSON.stringify([{label:"#devtools",maxPacketLifeTime:10,ordered:!0,compress:!1,direction:"sendrecv"}],null,2);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledDataChannels",children:(0,n.jsx)(aY,{kind:"dataChannels",checked:e,onChange:e=>{i(eb(e.target.checked))},disabled:a,children:"dataChannels"})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsxs)(tI.Z,{className:"form-inline position-relative",controlId:"dataChannels",children:[(0,n.jsx)(tZ.Z,{className:"flex-fill",as:"textarea",placeholder:"dataChannelsを指定\n(例)\n".concat(s),value:t,onChange:e=>{i(eu(e.target.value))},rows:12,cols:100,disabled:a}),(0,n.jsx)(tG.Z,{className:"btn-load-template",type:"button",variant:"outline-secondary",size:"sm",onClick:()=>i(eu(s)),children:"load template"})]})})}):null]})},no=()=>{let e=tm(e=>e.soraContents.connectionStatus),t=tu();return(0,n.jsx)("div",{className:"col-auto mb-1",children:(0,n.jsx)("input",{className:"btn btn-secondary",type:"button",name:"disconnect",defaultValue:"disconnect",onClick:()=>{t(U())},disabled:"disconnecting"===e||"connecting"===e||"initializing"===e})})};var nl=a(9449),nr=a(2536),nc=a(9293),nd=a(7908);let nu=[{label:"未指定",value:""},{label:"144p",value:"256x144"},{label:"240p",value:"320x240"},{label:"360p",value:"640x360"},{label:"480p",value:"720x480"},{label:"540p",value:"960x540"},{label:"720p",value:"1280x720"},{label:"1080p",value:"1920x1080"},{label:"1440p",value:"2560x1440"},{label:"2160p",value:"3840x2160"}],nm=e=>{let{label:t,value:a}=e,i=tu();return(0,n.jsxs)(nl.Z.Item,{as:"button",onClick:()=>i(ev(a)),children:[t," ",""!==a&&"(".concat(a,")")]})},ng=()=>{let e=tm(e=>e.displayResolution),t=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"displayResolution",children:[(0,n.jsx)(ad,{kind:"displayResolution",children:"displayResolution:"}),(0,n.jsxs)(nr.Z,{children:[(0,n.jsx)(nc.Z.Control,{className:"form-display-resolution",type:"text",value:e,onChange:e=>{t(ev(e.target.value))},placeholder:"未指定"}),(0,n.jsx)(nd.Z,{variant:"outline-secondary form-template-dropdown",title:"",align:"end",children:nu.map(e=>{let{label:t,value:a}=e;return(0,n.jsx)(nm,{label:t,value:a},a)})})]})]})},nh=()=>{let e=tu(),t=tm(e=>e.soraContents.connectionStatus),a=tm(e=>e.soraContents.sora),i="recvonly"===tm(e=>e.role)||null!==a||y(t);return(0,n.jsx)("div",{className:"col-auto mb-1",children:(0,n.jsx)("input",{className:"btn btn-outline-secondary",type:"button",name:"media_access",defaultValue:"dispose media",onClick:()=>{e(F())},disabled:i})})};var np=a(8736);let nv=()=>{let[e,t]=(0,i.useState)(!1),a=tm(e=>e.e2ee),s=y(tm(e=>e.soraContents.connectionStatus)),o=tu();return(0,i.useEffect)(()=>{a&&t(!1)},[a]),(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"e2ee",children:[(0,n.jsx)(aY,{kind:"e2ee",checked:a,onChange:e=>{e.target.checked&&t(!0),o(_(e.target.checked))},disabled:s,children:"e2ee"}),e?(0,n.jsx)(np.Z,{className:"spinner-status",variant:"primary",animation:"border",role:"status"}):null]})})})},nx=()=>{let e=tm(e=>e.echoCancellation),t=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"echoCancellation",children:[(0,n.jsx)(ad,{kind:"echoCancellation",children:"echoCancellation:"}),(0,n.jsx)(tz.Z,{name:"echoCancellation",value:e,onChange:e=>{g(e.target.value,d.PS)&&t(ex(e.target.value))},children:d.PS.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nj=()=>{let e=tm(e=>e.echoCancellationType),t=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"echoCancellationType",children:[(0,n.jsx)(ad,{kind:"echoCancellationType",children:"echoCancellationType:"}),(0,n.jsx)(tz.Z,{name:"echoCancellationType",value:e,onChange:e=>{g(e.target.value,d.cJ)&&t(ej(e.target.value))},children:d.cJ.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nf=()=>{let e=tm(e=>e.facingMode),t=tm(e=>e.mediaType),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"facingMode",children:[(0,n.jsx)(ad,{kind:"facingMode",children:"facingMode:"}),(0,n.jsx)(tz.Z,{name:"facingMode",value:e,onChange:e=>{g(e.target.value,d.pT)&&a(eD(e.target.value))},disabled:"getUserMedia"!==t,children:d.pT.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nC=()=>{let e=tm(e=>e.mediaType),t=tm(e=>e.fakeVolume),a=tu();return"fakeMedia"!==e?null:(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"fakeVolume",children:[(0,n.jsx)(ad,{kind:"fakeVolume",children:"fakeVolume:"}),(0,n.jsx)(nc.Z.Range,{min:"0",max:"1",step:"0.25",value:t,onChange:e=>{a(eV(e.target.value))}})]})},nb=()=>{let e=tm(e=>e.enabledForwardingFilter),t=tm(e=>e.forwardingFilter),a=y(tm(e=>e.soraContents.connectionStatus)),i=tu();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledForwardingFilter",children:(0,n.jsx)(aY,{kind:"forwardingFilter",checked:e,onChange:e=>{i(ey(e.target.checked))},disabled:a,children:"forwardingFilter"})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"forwardingFilter",children:(0,n.jsx)(tZ.Z,{className:"flex-fill",as:"textarea",placeholder:"forwardingFilterを指定",value:t,onChange:e=>{i(eY(e.target.value))},rows:10,cols:100,disabled:a})})})}):null]})},nS=[{label:"未指定",value:""},{label:"60",value:"60"},{label:"30",value:"30"},{label:"24",value:"24"},{label:"20",value:"20"},{label:"15",value:"15"},{label:"10",value:"10"},{label:"5",value:"5"}],ny=e=>{let{label:t,value:a}=e,i=tu();return(0,n.jsx)(nl.Z.Item,{as:"button",onClick:()=>i(eA(a)),children:t})},nN=()=>{let e=tm(e=>e.frameRate),t=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"frameRate",children:[(0,n.jsx)(ad,{kind:"frameRate",children:"frameRate:"}),(0,n.jsxs)(nr.Z,{children:[(0,n.jsx)(nc.Z.Control,{className:"form-frame-rate",type:"text",value:e,onChange:e=>{t(eA(e.target.value))},placeholder:"未指定"}),(0,n.jsx)(nd.Z,{variant:"outline-secondary form-template-dropdown",title:"",align:"end",children:nS.map(e=>{let{label:t,value:a}=e;return(0,n.jsx)(ny,{label:t,value:a},a)})})]})]})},nk=()=>{let e=tm(e=>e.lightAdjustment),t=tm(e=>e.mediaType),a=tu(),i="getUserMedia"!==t;return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"lightAdjustment",children:[(0,n.jsx)(ad,{kind:"lightAdjustment",children:"lightAdjustment:"}),(0,n.jsx)(tz.Z,{value:e,onChange:e=>{g(e.target.value,d.Xv)&&a(eO(e.target.value))},disabled:i,children:d.Xv.map(e=>(0,n.jsx)("option",{suppressHydrationWarning:!0,value:e,children:""===e||i?"未指定":e},e))})]})},nT=()=>{let e=tm(e=>e.mediaProcessorsNoiseSuppression),t=tm(e=>e.mediaType),a=tu();return(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"mediaProcessorsNoiseSuppression",children:(0,n.jsx)(aY,{kind:"mediaProcessorsNoiseSuppression",checked:e,onChange:e=>{a(eB(e.target.checked))},disabled:"getUserMedia"!==t,children:"mediaProcessorsNoiseSuppression"})})},nw=()=>{let e=tm(e=>e.mediaStats),t=tu();return(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"mediaStats",children:(0,n.jsx)(aY,{kind:"mediaStats",checked:e,onChange:e=>{t(eE(e.target.checked))},disabled:!1,children:"Show media stats"})})},nI=e=>{let{label:t,disabled:a,onChange:i,mediaType:s}=e;return(0,n.jsx)(a$.Z,{type:"radio",inline:!0,id:t,label:t,value:t,checked:s===t,onChange:i,disabled:a})},nR=()=>{let[e,t]=(0,i.useState)(!1),a=void 0!==window.CropTarget,s=tm(e=>e.soraContents.connectionStatus),o=tm(e=>e.soraContents.localMediaStream),l=tm(e=>e.mediaType),r=null!==o||y(s),c=tu(),u=e=>{g(e.target.value,d.w_)&&c(e_(e.target.value))};return(0,i.useEffect)(()=>{t(!0)},[]),(0,n.jsxs)(tI.Z,{className:"form-inline flex-wrap",children:[(0,n.jsx)(ad,{kind:"mediaType",children:"mediaType:"}),(0,n.jsx)(nI,{label:"getUserMedia",mediaType:l,disabled:r,onChange:u}),(0,n.jsx)(nI,{label:"getDisplayMedia",mediaType:l,disabled:r,onChange:u}),(0,n.jsx)(nI,{label:"fakeMedia",mediaType:l,disabled:r,onChange:u}),e&&(0,n.jsx)(nI,{label:"mediacaptureRegion",mediaType:l,disabled:r||!a,onChange:u})]})},nZ=()=>{let e=tm(e=>e.enabledMetadata),t=tm(e=>e.metadata),a=y(tm(e=>e.soraContents.connectionStatus)),i=tu();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledMetadata",children:(0,n.jsx)(aY,{kind:"metadata",checked:e,onChange:e=>{i(eN(e.target.checked))},disabled:a,children:"metadata"})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"metadata",children:(0,n.jsx)(tZ.Z,{className:"flex-fill",as:"textarea",placeholder:"Metadataを指定",value:t,onChange:e=>{i(eL(e.target.value))},rows:10,cols:100,disabled:a})})})}):null]})},nM=()=>{let e=tm(e=>e.micDevice),t=tm(e=>e.soraContents.connectionStatus),a=tm(e=>e.soraContents.sora),i=tm(e=>e.audio),s=!(a&&"connected"===t?a.audio:i),o=tu();return(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"micDevice",children:(0,n.jsx)(aY,{kind:"micDevice",checked:e,onChange:e=>{o(L(e.target.checked))},disabled:s,children:"Enable mic device"})})},nP=()=>{let e=tm(e=>e.multistream),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"multistream",children:[(0,n.jsx)(ad,{kind:"multistream",children:"multistream:"}),(0,n.jsx)(tz.Z,{name:"multistream",value:e,onChange:e=>{g(e.target.value,d.u9)&&a(eJ(e.target.value))},disabled:t,children:d.u9.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nV=()=>{let e=tm(e=>e.noiseSuppression),t=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"noiseSuppression",children:[(0,n.jsx)(ad,{kind:"noiseSuppression",children:"noiseSuppression:"}),(0,n.jsx)(tz.Z,{name:"noiseSuppression",value:e,onChange:e=>{g(e.target.value,d.ad)&&t(ez(e.target.value))},children:d.ad.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nD=()=>{let e=tm(e=>e.reconnect),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"reconnect",children:(0,n.jsx)(aY,{kind:"reconnect",checked:e,onChange:e=>{a(eW(e.target.checked))},disabled:t,children:"reconnect"})})})})},nA=()=>{let e=tu();return(0,n.jsx)("div",{className:"col-auto mb-1",children:(0,n.jsx)("input",{className:"btn btn-outline-secondary",type:"button",name:"update-devices",defaultValue:"update-devices",onClick:()=>{e(B())}})})},nF=()=>{let e=tu(),t=tm(e=>e.soraContents.connectionStatus),a=tm(e=>e.soraContents.sora),i="recvonly"===tm(e=>e.role)||null!==a||y(t);return(0,n.jsx)("div",{className:"col-auto mb-1",children:(0,n.jsx)("input",{className:"btn btn-outline-secondary",type:"button",name:"media_access",defaultValue:"request media",onClick:()=>{e(A())},disabled:i})})},nO=()=>{let e=tm(e=>e.resizeMode),t=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"resizeMode",children:[(0,n.jsx)(ad,{kind:"resizeMode",children:"resizeMode:"}),(0,n.jsx)(tz.Z,{name:"resizeMode",value:e,onChange:e=>{g(e.target.value,d.L4)&&t(eK(e.target.value))},children:d.L4.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nH=[{label:"未指定",value:""},{label:"144p",value:"256x144"},{label:"240p",value:"320x240"},{label:"360p",value:"640x360"},{label:"480p",value:"720x480"},{label:"540p",value:"960x540"},{label:"720p",value:"1280x720"},{label:"1080p",value:"1920x1080"},{label:"1440p",value:"2560x1440"},{label:"2160p",value:"3840x2160"}],nU=e=>{let{label:t,value:a}=e,i=tu();return(0,n.jsxs)(nl.Z.Item,{as:"button",onClick:()=>i(eQ(a)),children:[t," ",""!==a&&"(".concat(a,")")]})},nB=()=>{let e=tm(e=>e.resolution),t=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"resolution",children:[(0,n.jsx)(ad,{kind:"resolution",children:"resolution:"}),(0,n.jsxs)(nr.Z,{children:[(0,n.jsx)(nc.Z.Control,{className:"form-resolution",type:"text",value:e,onChange:e=>{t(eQ(e.target.value))},placeholder:"未指定"}),(0,n.jsx)(nd.Z,{variant:"outline-secondary form-template-dropdown",title:"",align:"end",children:nH.map(e=>{let{label:t,value:a}=e;return(0,n.jsx)(nU,{label:t,value:a},a)})})]})]})},nE=()=>{let e=tm(e=>e.role),t=tm(e=>e.soraContents.connectionStatus),a=null!==tm(e=>e.soraContents.localMediaStream)||y(t),i=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"role",children:[(0,n.jsx)(ad,{kind:"role",children:"role:"}),(0,n.jsx)(tz.Z,{name:"role",value:e,onChange:e=>{g(e.target.value,d.K$)&&i(eq(e.target.value))},disabled:a,children:d.K$.map(e=>(0,n.jsx)("option",{value:e,children:e},e))})]})},n_=()=>{let e=tm(e=>e.enabledSignalingNotifyMetadata),t=tm(e=>e.signalingNotifyMetadata),a=y(tm(e=>e.soraContents.connectionStatus)),i=tu();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledSignalingNotifyMetadata",children:(0,n.jsx)(aY,{kind:"signalingNotifyMetadata",checked:e,onChange:e=>{i(ek(e.target.checked))},disabled:a,children:"signalingNotifyMetadata"})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"signalingNotifyMetadata",children:(0,n.jsx)(tZ.Z,{className:"flex-fill",as:"textarea",placeholder:"signalingNotifyMetadataを指定",value:t,onChange:e=>{i(eX(e.target.value))},rows:10,cols:100,disabled:a})})})}):null]})},nL=()=>{let e=tm(e=>e.enabledSignalingUrlCandidates),t=tm(e=>e.signalingUrlCandidates),a=y(tm(e=>e.soraContents.connectionStatus)),i=tu();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",xs:"auto",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledSignalingUrlCandidates",children:(0,n.jsx)(aY,{kind:"signalingUrlCandidates",checked:e,onChange:e=>{i(eT(e.target.checked))},disabled:a,children:"signalingUrlCandidates"})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",xs:"auto",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"signalingNotifyMetadata",children:(0,n.jsx)(tZ.Z,{className:"flex-fill",as:"textarea",placeholder:"signalingUrlCandidatesを指定\n(例)\nwss://sora0.example.com/signaling\nwss://sora1.example.com/signaling\n",value:t.join("\n"),onChange:e=>{i(e$(e.target.value.split("\n")))},rows:5,cols:100,disabled:a})})})}):null]})},nJ=()=>{let e=tm(e=>e.simulcast),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"simulcast",children:[(0,n.jsx)(ad,{kind:"simulcast",children:"simulcast:"}),(0,n.jsx)(tz.Z,{name:"simulcast",value:e,onChange:e=>{g(e.target.value,d.VE)&&a(e0(e.target.value))},disabled:t,children:d.VE.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nz=()=>{let e=tm(e=>e.simulcastRid),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"simulcastRid",children:[(0,n.jsx)(ad,{kind:"simulcastRid",children:"simulcastRid:"}),(0,n.jsx)(tz.Z,{name:"simulcastRid",value:e,onChange:e=>{g(e.target.value,d.WJ)&&a(e1(e.target.value))},disabled:t,children:d.WJ.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nG=()=>{let e=tm(e=>e.spotlightFocusRid),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"spotlightFocusRid",children:[(0,n.jsx)(ad,{kind:"spotlightFocusRid",children:"spotlightFocusRid:"}),(0,n.jsx)(tz.Z,{value:e,onChange:e=>{g(e.target.value,d.I7)&&a(e3(e.target.value))},disabled:t,children:d.I7.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nW=()=>{let e=tm(e=>e.spotlight),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"spotlight",children:[(0,n.jsx)(ad,{kind:"spotlight",children:"spotlight:"}),(0,n.jsx)(tz.Z,{name:"spotlight",value:e,onChange:e=>{g(e.target.value,d.VJ)&&a(e9(e.target.value))},disabled:t,children:d.VJ.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nK=()=>{let e=tm(e=>e.spotlightNumber),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"spotlightNumber",children:[(0,n.jsx)(ad,{kind:"spotlightNumber",children:"spotlightNumber:"}),(0,n.jsx)(tz.Z,{value:e,onChange:e=>{g(e.target.value,d.Xr)&&a(e8(e.target.value))},disabled:t,children:d.Xr.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nq=()=>{let e=tm(e=>e.spotlightUnfocusRid),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"spotlightUnfocusRid",children:[(0,n.jsx)(ad,{kind:"spotlightUnfocusRid",children:"spotlightUnfocusRid:"}),(0,n.jsx)(tz.Z,{value:e,onChange:e=>{g(e.target.value,d.I7)&&a(e7(e.target.value))},disabled:t,children:d.I7.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nQ=()=>{let e=tm(e=>e.channelId),t=tm(e=>e.soraContents.connectionStatus),a=tm(e=>e.apiUrl),i=tu(),s=async()=>{try{let t=await ap(a,"20231220","StartRecording",{channel_id:e,expire_time:3600});i(X("POST successed. response: ".concat(JSON.stringify(t))))}catch(e){e instanceof Error&&i(Q(e.message))}};return(0,n.jsx)("div",{className:"col-auto mb-1",children:(0,n.jsx)("input",{className:"btn btn-secondary",type:"button",name:"startRec",defaultValue:"start rec",onClick:s,disabled:"initializing"===t})})},nX=()=>{let e=tm(e=>e.channelId),t=tm(e=>e.soraContents.connectionStatus),a=tm(e=>e.apiUrl),i=tu(),s=async()=>{try{let t=await ap(a,"20231220","StopRecording",{channel_id:e});i(X("POST successed. response: ".concat(JSON.stringify(t))))}catch(e){e instanceof Error&&i(Q(e.message))}};return(0,n.jsx)("div",{className:"col-auto mb-1",children:(0,n.jsx)("input",{className:"btn btn-secondary",type:"button",name:"stopRec",defaultValue:"stop rec",onClick:s,disabled:"initializing"===t})})},n$=()=>{let e=tu();return(0,n.jsx)("div",{className:"col-auto mb-1",children:(0,n.jsx)("input",{className:"btn btn-outline-secondary",type:"button",name:"update-mediastream",defaultValue:"update-mediastream",onClick:()=>{e(E())}})})},nY=()=>{let e=tm(e=>e.enabledVideoAV1Params),t=tm(e=>e.videoAV1Params),a=y(tm(e=>e.soraContents.connectionStatus)),i=tu();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledVideoAV1Params",children:(0,n.jsx)(aY,{kind:"videoAV1Params",checked:e,onChange:e=>{i(eZ(e.target.checked))},disabled:a,children:"videoAV1Params"})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"videoAV1Params",children:(0,n.jsx)(tZ.Z,{className:"flex-fill",as:"textarea",placeholder:"videoAV1Paramsを指定",value:t,onChange:e=>{i(tc(e.target.value))},rows:10,cols:100,disabled:a})})})}):null]})},n0=d.Q5.slice();n0.splice(d.Q5.indexOf("15000")+1,0,"support-message");let n1=()=>{let e=tm(e=>e.videoBitRate),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"videoBitRate",children:[(0,n.jsx)(ad,{kind:"videoBitRate",children:"videoBitRate:"}),(0,n.jsx)(tz.Z,{name:"videoBitRate",value:e,onChange:e=>{g(e.target.value,d.Q5)&&a(tt(e.target.value))},disabled:t,children:n0.map(e=>{let t=e;return""===e?t="未指定":"support-message"===e&&(t="以下はサポート外です"),(0,n.jsx)("option",{value:e,disabled:"support-message"===e,children:t},e)})})]})},n2=()=>{let e=tm(e=>e.videoCodecType),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"videoCodecType",children:[(0,n.jsx)(ad,{kind:"videoCodecType",children:"videoCodecType:"}),(0,n.jsx)(tz.Z,{name:"videoCodecType",value:e,onChange:e=>{g(e.target.value,d.Sh)&&a(ta(e.target.value))},disabled:t,children:d.Sh.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},n5=()=>{let e=tm(e=>e.videoContentHint),t=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"videoContentHint",children:[(0,n.jsx)(ad,{kind:"videoContentHint",children:"videoContentHint:"}),(0,n.jsx)(tz.Z,{name:"videoContentHint",value:e,onChange:e=>{g(e.target.value,d.QO)&&t(tn(e.target.value))},children:d.QO.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},n6=()=>{let e=tm(e=>e.video),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"video",children:(0,n.jsx)(aY,{kind:"video",checked:e,onChange:e=>{a(te(e.target.checked))},disabled:t,children:"video"})})},n4=()=>{let e=tm(e=>e.enabledVideoH264Params),t=tm(e=>e.videoH264Params),a=y(tm(e=>e.soraContents.connectionStatus)),i=tu();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledVideoH264Params",children:(0,n.jsx)(aY,{kind:"videoH264Params",checked:e,onChange:e=>{i(eI(e.target.checked))},disabled:a,children:"videoH264Params"})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"videoH264Params",children:(0,n.jsx)(tZ.Z,{className:"flex-fill",as:"textarea",placeholder:"videoH264Paramsを指定",value:t,onChange:e=>{i(tl(e.target.value))},rows:10,cols:100,disabled:a})})})}):null]})},n9=()=>{let e=tm(e=>e.enabledVideoH265Params),t=tm(e=>e.videoH265Params),a=y(tm(e=>e.soraContents.connectionStatus)),i=tu();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledVideoH265Params",children:(0,n.jsx)(aY,{kind:"videoH265Params",checked:e,onChange:e=>{i(eR(e.target.checked))},disabled:a,children:"videoH265Params"})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"videoH265Params",children:(0,n.jsx)(tZ.Z,{className:"flex-fill",as:"textarea",placeholder:"videoH265Paramsを指定",value:t,onChange:e=>{i(tr(e.target.value))},rows:10,cols:100,disabled:a})})})}):null]})},n3=()=>{let e=tm(e=>e.videoInput),t=tm(e=>e.videoInputDevices),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"videoInput",children:[(0,n.jsx)(ad,{kind:"videoInput",children:"videoInput:"}),(0,n.jsxs)(tz.Z,{name:"videoInput",value:e,onChange:e=>{a(ti(e.target.value)),a(E())},disabled:0===t.length,children:[(0,n.jsx)("option",{value:"",children:"未指定"}),t.map(e=>(0,n.jsx)("option",{value:e.deviceId,children:e.label},e.deviceId))]})]})},n8=()=>{let e=tm(e=>e.videoTrack),t=tu();return(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"videoTrack",children:(0,n.jsx)(aY,{kind:"videoTrack",checked:e,onChange:e=>{t(ts(e.target.checked))},disabled:!1,children:"Enable video track"})})},n7=()=>{let e=tm(e=>e.enabledVideoVP9Params),t=tm(e=>e.videoVP9Params),a=y(tm(e=>e.soraContents.connectionStatus)),i=tu();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledVideoVP9Params",children:(0,n.jsx)(aY,{kind:"videoVP9Params",checked:e,onChange:e=>{i(ew(e.target.checked))},disabled:a,children:"videoVP9Params"})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"videoVP9Params",children:(0,n.jsx)(tZ.Z,{className:"flex-fill",as:"textarea",placeholder:"videoVP9Paramsを指定",value:t,onChange:e=>{i(to(e.target.value))},rows:10,cols:100,disabled:a})})})}):null]})},ie=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",xs:"auto",children:(0,n.jsx)(an.Z,{xs:"12",sm:"12",className:"form-channel-id",children:(0,n.jsx)(a7,{})})}),(0,n.jsxs)(aa.Z,{className:"form-row",xs:"auto",children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)(nE,{})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(nP,{})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(nJ,{})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(nW,{})})]})]}),it=()=>{let e=tm(e=>e.role),t=tm(e=>e.multistream),a=!("recvonly"===e&&("true"===t||""===t));return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(aa.Z,{className:"form-row",xs:"auto",children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)(a0,{})}),a&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)(aQ,{})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(aq,{})})]})]}),(0,n.jsxs)(aa.Z,{className:"form-row",xs:"auto",children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)(n6,{})}),a&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)(n2,{})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(n1,{})})]})]})]})},ia=()=>"true"!==tm(e=>e.simulcast)?null:(0,n.jsx)(aa.Z,{className:"form-row",xs:"auto",children:(0,n.jsx)(an.Z,{children:(0,n.jsx)(nz,{})})}),ii=()=>"true"!==tm(e=>e.spotlight)?null:(0,n.jsxs)(aa.Z,{className:"form-row",xs:"auto",children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)(nK,{})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(nG,{})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(nq,{})})]}),is=()=>{let[e,t]=(0,i.useState)(!0),a=tm(e=>e.e2ee),s=tm(e=>e.enabledBundleId),o=tm(e=>e.enabledClientId),l=tm(e=>e.enabledDataChannel),r=tm(e=>e.enabledDataChannels),c=tm(e=>e.enabledForwardingFilter),d=tm(e=>e.enabledMetadata),u=[a,s,o,l,r,c,d,tm(e=>e.enabledSignalingNotifyMetadata),tm(e=>e.enabledSignalingUrlCandidates),tm(e=>e.reconnect)].some(e=>e),m=["btn-collapse-options"];return e&&m.push("collapsed"),u&&m.push("fw-bold"),(0,n.jsxs)(aa.Z,{className:"form-row",children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)("a",{href:"#",className:m.join(" "),onClick:a=>{a.preventDefault(),t(!e)},children:"Signaling options"})}),(0,n.jsx)(tp.Z,{in:!e,children:(0,n.jsxs)("div",{children:[(0,n.jsx)(nv,{}),(0,n.jsx)(nD,{}),(0,n.jsx)(ne,{}),(0,n.jsx)(nZ,{}),(0,n.jsx)(a3,{}),(0,n.jsx)(n_,{}),(0,n.jsx)(nL,{}),(0,n.jsx)(nb,{}),(0,n.jsx)(ns,{}),(0,n.jsx)(ni,{})]})})]})},io=()=>{let[e,t]=(0,i.useState)(!0),a=tm(e=>e.enabledAudioStreamingLanguageCode),s=tm(e=>e.enabledVideoVP9Params),o=[a,s,tm(e=>e.enabledVideoH264Params),tm(e=>e.enabledVideoH265Params),tm(e=>e.enabledVideoAV1Params)].some(e=>e),l=["btn-collapse-options"];return e&&l.push("collapsed"),o&&l.push("fw-bold"),(0,n.jsxs)(aa.Z,{className:"form-row",children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)("a",{href:"#",className:l.join(" "),onClick:a=>{a.preventDefault(),t(!e)},children:"Advanced signaling options"})}),(0,n.jsx)(tp.Z,{in:!e,children:(0,n.jsxs)("div",{children:[(0,n.jsx)(a5,{}),(0,n.jsx)(n7,{}),(0,n.jsx)(nY,{}),(0,n.jsx)(n4,{}),(0,n.jsx)(n9,{})]})})]})},il=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{xs:"auto",className:"form-row",children:(0,n.jsx)(an.Z,{children:(0,n.jsx)(nR,{})})}),(0,n.jsx)(aa.Z,{xs:"auto",className:"form-row",children:(0,n.jsx)(an.Z,{children:(0,n.jsx)(nC,{})})})]}),ir=()=>{let[e,t]=(0,i.useState)(!0),a=tm(e=>e.audioContentHint),s=tm(e=>e.autoGainControl),o=tm(e=>e.noiseSuppression),l=tm(e=>e.echoCancellation),r=tm(e=>e.echoCancellationType),c=tm(e=>e.videoContentHint),d=tm(e=>e.resolution),u=tm(e=>e.frameRate),m=[""!==a,""!==s,""!==o,""!==l,""!==r,""!==c,""!==d,""!==u,""!==tm(e=>e.blurRadius),""!==tm(e=>e.lightAdjustment),tm(e=>e.mediaProcessorsNoiseSuppression)].some(e=>e),g=["btn-collapse-options"];return e&&g.push("collapsed"),m&&g.push("fw-bold"),(0,n.jsxs)(aa.Z,{className:"form-row",children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)("a",{href:"#",className:g.join(" "),onClick:a=>{a.preventDefault(),t(!e)},children:"Media options"})}),(0,n.jsx)(tp.Z,{in:!e,children:(0,n.jsxs)("div",{children:[(0,n.jsxs)(aa.Z,{className:"form-row",children:[(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(aX,{})}),(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(a4,{})}),(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(nV,{})}),(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(nx,{})}),(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(nj,{})}),(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(nT,{})})]}),(0,n.jsxs)(aa.Z,{className:"form-row",children:[(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(n5,{})}),(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(nB,{})}),(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(nN,{})}),(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(aK,{})}),(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(nO,{})}),(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(a9,{})}),(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(nk,{})}),(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(nf,{})})]}),(0,n.jsx)(n$,{})]})})]})},ic=()=>{let e=tm(e=>e.role),t=tm(e=>e.mediaType);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",xs:"auto",children:"recvonly"!==e&&"getUserMedia"===t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)(a1,{})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(n3,{})})]}):null}),(0,n.jsxs)(aa.Z,{className:"form-row",xs:"auto",children:["sendonly"!==e?(0,n.jsx)(an.Z,{children:(0,n.jsx)(a2,{})}):null,(0,n.jsx)(nA,{}),"recvonly"!==e?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(nF,{}),(0,n.jsx)(nh,{})]}):null]})]})},id=()=>{let e=tm(e=>e.role);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(aa.Z,{className:"form-row",xs:"auto",children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)(ng,{})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(nw,{})})]}),"recvonly"!==e&&(0,n.jsxs)(aa.Z,{className:"form-row",xs:"auto",children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)(nM,{})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(a8,{})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(a6,{})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(n8,{})})]})]})},iu=()=>{let e=tm(e=>e.debug),t=tm(e=>e.role),a=tm(e=>e.multistream);return(0,n.jsxs)("div",{className:e?"col-devtools col-6":"col-devtools col-12",children:[(0,n.jsx)(al,{}),(0,n.jsx)(ie,{}),(0,n.jsx)(ia,{}),(0,n.jsx)(ii,{}),(0,n.jsx)("hr",{className:"hr-form"}),(0,n.jsx)(it,{}),(0,n.jsx)(is,{}),!("recvonly"===t&&("true"===a||""===a))&&(0,n.jsx)(io,{}),(0,n.jsx)("hr",{className:"hr-form"}),"recvonly"!==t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(il,{}),(0,n.jsx)(ir,{}),(0,n.jsx)("hr",{className:"hr-form"})]}):null,(0,n.jsx)(ic,{}),(0,n.jsx)(id,{}),(0,n.jsx)("hr",{className:"hr-form"}),(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)(nt,{}),(0,n.jsx)(no,{}),(0,n.jsx)(nQ,{}),(0,n.jsx)(nX,{})]}),(0,n.jsx)("hr",{className:"hr-form"}),(0,n.jsx)(aA,{}),"recvonly"===t||"sendrecv"===t?(0,n.jsx)(aW,{}):null]})};var im=a(7072),ig=a(8200);let ih=()=>{let e=tm(e=>e.debug),t=tu();return(0,n.jsx)("div",{children:(0,n.jsx)("button",{type:"button",className:e?"btn btn-footer-debug-mode active":"btn btn-footer-debug-mode",onClick:()=>{t(eg(!e))},children:"debug"})})},ip=()=>{let e=tm(e=>e.version);return(0,n.jsxs)("footer",{children:[(0,n.jsxs)(im.Z,{variant:"dark",bg:"sora",expand:"md",fixed:"bottom",children:[(0,n.jsx)(ig.Z,{className:"me-auto"}),(0,n.jsx)(ig.Z,{children:(0,n.jsxs)(im.Z.Collapse,{id:"navbar-collapse",children:[(0,n.jsxs)("a",{href:"https://github.com/shiguredo/sora-devtools",className:"btn btn-outline-light m-1",children:["GitHub: shiguredo/sora-devtools: ",e]}),(0,n.jsxs)("a",{href:"https://github.com/shiguredo/sora-js-sdk",className:"btn btn-outline-light m-1",children:["GitHub: shiguredo/sora-js-sdk: ",r.Z.version()]})]})})]}),(0,n.jsx)(ih,{})]})};var iv=a(4700),ix=a.n(iv);let ij=()=>(0,n.jsx)(ix(),{children:(0,n.jsx)("title",{children:"Sora DevTools"})});var iC=a(7411);let ib=()=>{let e=tu();return(0,n.jsx)("input",{className:"btn btn-light btn-sm ms-1",type:"button",name:"copyUrl",defaultValue:"copy URL",onClick:()=>{e(I())}})},iS=()=>{let e=tm(e=>e.debug),t=tu(),a=["btn","btn-header-debug-mode","btn-sm","ms-1"];return e&&a.push("active"),(0,n.jsx)("input",{className:a.join(" "),type:"button",name:"debug",defaultValue:"debug",onClick:()=>{t(eg(!e))}})};var iy=a(6618);let iN=()=>{let e=(0,i.useRef)(null);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("input",{className:"btn btn-light btn-sm ms-1",type:"button",name:"downloadReport",defaultValue:"Download report",onClick:()=>{let t=new Blob([JSON.stringify(function(){let e=iy.h.getState(),t={aspectRatio:e.aspectRatio,audio:e.audio,audioBitRate:e.audioBitRate,audioCodecType:e.audioCodecType,audioContentHint:e.audioContentHint,audioInput:e.audioInput,audioInputDevices:e.audioInputDevices,audioOutput:e.audioOutput,audioOutputDevices:e.audioOutputDevices,audioStreamingLanguageCode:e.audioStreamingLanguageCode,audioTrack:e.audioTrack,autoGainControl:e.autoGainControl,bundleId:e.bundleId,cameraDevice:e.cameraDevice,channelId:e.channelId,clientId:e.clientId,dataChannelSignaling:e.dataChannelSignaling,dataChannels:e.dataChannels,debug:e.debug,displayResolution:e.displayResolution,e2ee:e.e2ee,echoCancellation:e.echoCancellation,echoCancellationType:e.echoCancellationType,enabledAudioStreamingLanguageCode:e.enabledAudioStreamingLanguageCode,enabledBundleId:e.enabledBundleId,enabledClientId:e.enabledClientId,enabledDataChannel:e.enabledDataChannel,enabledDataChannels:e.enabledDataChannels,enabledForwardingFilter:e.enabledForwardingFilter,enabledMetadata:e.enabledMetadata,enabledSignalingNotifyMetadata:e.enabledSignalingNotifyMetadata,enabledSignalingUrlCandidates:e.enabledSignalingUrlCandidates,enabledVideoVP9Params:e.enabledVideoVP9Params,enabledVideoH264Params:e.enabledVideoH264Params,enabledVideoH265Params:e.enabledVideoH265Params,enabledVideoAV1Params:e.enabledVideoAV1Params,facingMode:e.facingMode,fakeVolume:e.fakeVolume,forwardingFilter:e.forwardingFilter,frameRate:e.frameRate,googCpuOveruseDetection:e.googCpuOveruseDetection,ignoreDisconnectWebSocket:e.ignoreDisconnectWebSocket,mediaType:e.mediaType,metadata:e.metadata,micDevice:e.micDevice,multistream:e.multistream,noiseSuppression:e.noiseSuppression,reconnect:e.reconnect,resizeMode:e.resizeMode,resolution:e.resolution,mediaStats:e.mediaStats,role:e.role,signalingNotifyMetadata:e.signalingNotifyMetadata,signalingUrlCandidates:e.signalingUrlCandidates,simulcast:e.simulcast,simulcastRid:e.simulcastRid,spotlight:e.spotlight,spotlightFocusRid:e.spotlightFocusRid,spotlightNumber:e.spotlightNumber,spotlightUnfocusRid:e.spotlightUnfocusRid,video:e.video,videoBitRate:e.videoBitRate,videoCodecType:e.videoCodecType,videoContentHint:e.videoContentHint,videoInput:e.videoInput,videoInputDevices:e.videoInputDevices,videoTrack:e.videoTrack,videoVP9Params:e.videoVP9Params,videoH264Params:e.videoH264Params,videoH265Params:e.videoH265Params,videoAV1Params:e.videoAV1Params};return{userAgent:navigator.userAgent,"sora-devtools":e.version,"sora-js-sdk":r.Z.version(),parameters:t,timeline:e.timelineMessages.map(e=>({timestamp:e.timestamp,message:e})),notify:e.notifyMessages,stats:e.soraContents.statsReport}}())],{type:"text/plain"});if(window.URL=window.URL||window.webkitURL,e.current){let a=new Date().toISOString().replaceAll(":","_").replaceAll(".","_");e.current.download="sora-devtools-report-".concat(a,".json"),e.current.href=window.URL.createObjectURL(t),e.current.click()}}}),(0,n.jsx)("a",{ref:e,style:{display:"none"}})]})},ik=()=>{let e=tm(e=>e.soraContents.connectionStatus),t=tm(e=>e.soraContents.turnUrl),a=tm(e=>e.soraContents.sora);return(0,n.jsx)("header",{children:(0,n.jsx)(im.Z,{variant:"dark",bg:"sora",expand:"lg",fixed:"top",children:(0,n.jsxs)(iC.Z,{children:[(0,n.jsx)(im.Z.Brand,{href:"/",children:"Sora DevTools"}),(0,n.jsx)(im.Z.Toggle,{"aria-controls":"navbar-collapse"}),(0,n.jsxs)(im.Z.Collapse,{id:"navbar-collapse",children:[(0,n.jsx)(ig.Z,{className:"me-auto"}),(0,n.jsxs)(ig.Z,{children:[(0,n.jsx)(im.Z.Text,{className:"py-0 my-1 mx-1",children:(0,n.jsx)("p",{className:"navbar-signaling-url border rounded",children:a&&"connected"===e?a.connectedSignalingUrl:"Signaling URL"})}),(0,n.jsx)(im.Z.Text,{className:"py-0 my-1 mx-1",children:(0,n.jsx)("p",{className:"navbar-turn-url border rounded",children:a&&"connected"===e?null!==t?t:"不明":"TURN URL"})}),(0,n.jsx)(im.Z.Text,{className:"py-0 my-1 mx-1",children:(0,n.jsx)(iS,{})}),(0,n.jsx)(im.Z.Text,{className:"py-0 my-1 mx-1",children:(0,n.jsx)(iN,{})}),(0,n.jsx)(im.Z.Text,{className:"py-0 my-1 ms-1",children:(0,n.jsx)(ib,{})})]})]})]})})})};var iT=a(4569),iw=a.n(iT);let iI=()=>{let e=tm(e=>e.mediaType),t={x:100,y:100},[a,s]=(0,i.useState)(t),[o,l]=(0,i.useState)(0);return((0,i.useEffect)(()=>{let e=()=>{if(void 0!==window){var e;l((e=window.innerWidth)<680?e-40:640)}};return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}},[]),"mediacaptureRegion"!==e)?null:(0,n.jsx)(iw(),{position:a,onDrag:(e,t)=>{s({x:t.x,y:t.y})},defaultPosition:t,children:(0,n.jsx)("div",{id:"cropArea",className:"cropArea",style:{width:"".concat(o,"px"),height:"".concat(Math.floor(o/4*3),"px")}})})};var iR=()=>{let e=tu();return(0,i.useEffect)(()=>(e(w()),e(B()),()=>{e(U())}),[e]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(iI,{}),(0,n.jsx)(ij,{}),(0,n.jsx)(ik,{}),(0,n.jsx)("main",{children:(0,n.jsx)("div",{className:"container",children:(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)(iu,{}),(0,n.jsx)(at,{})]})})}),(0,n.jsx)(ip,{})]})}}},function(e){e.O(0,[834,724,764,888,774,179],function(){return e(e.s=32)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dist/_next/static/chunks/pages/devtools-9cc4b1fc459d3c89.js b/dist/_next/static/chunks/pages/devtools-9cc4b1fc459d3c89.js deleted file mode 100644 index b48a1240..00000000 --- a/dist/_next/static/chunks/pages/devtools-9cc4b1fc459d3c89.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[893],{4047:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/devtools",function(){return a(7034)}])},7034:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return iR}});var n=a(2676),i=a(5271),s=a(7124),o=a(8426),l=a(4029),r=a(511),c=a(8039),d=a(983);function u(e){let t=new Date(e),a=t.getFullYear(),n=t.getMonth()+1,i=t.getDate(),s=t.getHours().toString().padStart(2,"0"),o=t.getMinutes().toString().padStart(2,"0"),l=t.getSeconds().toString().padStart(2,"0"),r=t.getMilliseconds().toString().padStart(3,"0");return"".concat(a,"-").concat(n,"-").concat(i," ").concat(s,":").concat(o,":").concat(l,".").concat(r)}function m(e){return navigator.clipboard?navigator.clipboard.writeText(e):Promise.resolve()}function g(e,t){return"string"==typeof e&&t.indexOf(e)>=0}function h(e,t){if(e)return t.filter(e=>""!==e);let a="https:"===window.location.protocol?"wss://":"ws://",n=window.location.port?":".concat(window.location.port):"";return"".concat(a+window.location.hostname+n,"/signaling")}let p=/^(\d+)x(\d+)$/;function v(e){if(p.test(e)){let t=e.match(p);if(t)return{width:Number.parseInt(t[1],10),height:Number.parseInt(t[2],10)}}return{width:0,height:0}}function x(e){switch(e){case"4:3":return 4/3;case"16:9":return 16/9;case"21:9":return 20/9;default:return Number.NaN}}function j(e){let{audio:t,autoGainControl:a,noiseSuppression:n,echoCancellation:i,echoCancellationType:s}=e;if(!t)return!1;if(!a&&!n&&!i&&!s)return!0;let o={},l=C(a);void 0!==l&&(o.autoGainControl=l);let r=C(n);void 0!==r&&(o.noiseSuppression=r);let c=C(i);return void 0!==c&&(o.echoCancellation=c),s&&(o.echoCancellationType=s),o}function f(e){let{aspectRatio:t,frameRate:a,resizeMode:n,resolution:i}=e;if(!a&&!i&&!t&&!n)return!0;let s={};if(a){let e=Number.parseInt(a,10);Number.isNaN(e)||(s.frameRate=e)}if(i){let{width:e,height:t}=v(i);0async(e,t)=>{e(T.slice.actions.resetState());let a=function(){let e;let t=e=>{if("string"==typeof e)return e},a=e=>{if("string"==typeof e)return C(e)},n=(e,t)=>{if(g(e,t))return e},i=c.Z.parse(location.search);if("string"==typeof i.signalingUrlCandidates)try{e=JSON.parse(i.signalingUrlCandidates)}catch(e){}let s={apiUrl:t(i.apiUrl),audio:a(i.audio),audioBitRate:n(i.audioBitRate,d.xR),audioCodecType:n(i.audioCodecType,d.o1),audioStreamingLanguageCode:t(i.audioStreamingLanguageCode),autoGainControl:n(i.autoGainControl,d.iN),bundleId:t(i.bundleId),channelId:t(i.channelId),clientId:t(i.clientId),googCpuOveruseDetection:a(i.googCpuOveruseDetection),debug:a(i.debug),debugType:n(i.debugType,d.aF),displayResolution:t(i.displayResolution),e2ee:a(i.e2ee),echoCancellation:n(i.echoCancellation,d.PS),echoCancellationType:n(i.echoCancellationType,d.cJ),noiseSuppression:n(i.noiseSuppression,d.ad),facingMode:n(i.facingMode,d.pT),fakeVolume:t(i.fakeVolume),frameRate:t(i.frameRate),mediaStats:a(i.mediaStats),mediaType:n(i.mediaType,d.w_),metadata:t(i.metadata),showStats:a(i.showStats),signalingNotifyMetadata:t(i.signalingNotifyMetadata),signalingUrlCandidates:Array.isArray(e)?e:void 0,forwardingFilter:t(i.forwardingFilter),simulcast:n(i.simulcast,d.VE),simulcastRid:n(i.simulcastRid,d.WJ),spotlight:n(i.spotlight,d.VJ),spotlightNumber:n(i.spotlightNumber,d.Xr),spotlightFocusRid:n(i.spotlightFocusRid,d.I7),spotlightUnfocusRid:n(i.spotlightUnfocusRid,d.I7),resolution:t(i.resolution),video:a(i.video),videoBitRate:n(i.videoBitRate,d.Q5),videoCodecType:n(i.videoCodecType,d.Sh),videoVP9Params:t(i.videoVP9Params),videoH264Params:t(i.videoH264Params),videoH265Params:t(i.videoH265Params),videoAV1Params:t(i.videoAV1Params),audioInput:t(i.audioInput),videoInput:t(i.videoInput),audioOutput:t(i.audioOutput),mute:a(i.mute),dataChannelSignaling:n(i.dataChannelSignaling,d.l9),ignoreDisconnectWebSocket:n(i.ignoreDisconnectWebSocket,d.kt),micDevice:a(i.micDevice),cameraDevice:a(i.cameraDevice),audioTrack:a(i.audioTrack),videoTrack:a(i.videoTrack),dataChannels:t(i.dataChannels),reconnect:a(i.reconnect),audioContentHint:n(i.audioContentHint,d.nT),videoContentHint:n(i.videoContentHint,d.QO),aspectRatio:n(i.aspectRatio,d.Ii),resizeMode:n(i.resizeMode,d.L4),blurRadius:n(i.blurRadius,d.G_),lightAdjustment:n(i.lightAdjustment,d.Xv),mediaProcessorsNoiseSuppression:a(i.mediaProcessorsNoiseSuppression),multistream:n(i.multistream,d.u9),role:n(i.role,d.K$)};return Object.keys(s).map(e=>{void 0===s[e]&&delete s[e]}),s}();void 0!==a.audio&&e(T.slice.actions.setAudio(a.audio)),void 0!==a.audioBitRate&&e(T.slice.actions.setAudioBitRate(a.audioBitRate)),void 0!==a.audioCodecType&&e(T.slice.actions.setAudioCodecType(a.audioCodecType));let n=await S(),i=n.find(e=>"audioinput"===e.kind&&e.deviceId===a.audioInput);void 0!==i&&e(T.slice.actions.setAudioInput(i.deviceId));let s=n.find(e=>"audiooutput"===e.kind&&e.deviceId===a.audioOutput);void 0!==s&&e(T.slice.actions.setAudioOutput(s.deviceId));let o=n.find(e=>"videoinput"===e.kind&&e.deviceId===a.videoInput);void 0!==o&&e(T.slice.actions.setVideoInput(o.deviceId)),void 0!==a.autoGainControl&&e(T.slice.actions.setAutoGainControl(a.autoGainControl)),void 0!==a.channelId&&e(T.slice.actions.setChannelId(a.channelId)),void 0!==a.displayResolution&&e(T.slice.actions.setDisplayResolution(a.displayResolution)),void 0!==a.e2ee&&e(T.slice.actions.setE2EE(a.e2ee)),void 0!==a.echoCancellation&&e(T.slice.actions.setEchoCancellation(a.echoCancellation)),void 0!==a.echoCancellationType&&e(T.slice.actions.setEchoCancellationType(a.echoCancellationType)),void 0!==a.mediaStats&&e(T.slice.actions.setMediaStats(a.mediaStats)),void 0!==a.mediaType&&e(T.slice.actions.setMediaType(a.mediaType)),void 0!==a.facingMode&&e(T.slice.actions.setFacingMode(a.facingMode)),void 0!==a.fakeVolume&&e(T.slice.actions.setFakeVolume(a.fakeVolume)),void 0!==a.frameRate&&e(T.slice.actions.setFrameRate(a.frameRate)),void 0!==a.multistream&&e(T.slice.actions.setMultistream(a.multistream)),void 0!==a.noiseSuppression&&e(T.slice.actions.setNoiseSuppression(a.noiseSuppression)),void 0!==a.resolution&&e(T.slice.actions.setResolution(a.resolution)),void 0!==a.showStats&&e(T.slice.actions.setShowStats(a.showStats)),void 0!==a.simulcast&&e(T.slice.actions.setSimulcast(a.simulcast)),void 0!==a.simulcastRid&&e(T.slice.actions.setSimulcastRid(a.simulcastRid)),void 0!==a.spotlight&&e(T.slice.actions.setSpotlight(a.spotlight)),void 0!==a.spotlightNumber&&e(T.slice.actions.setSpotlightNumber(a.spotlightNumber)),void 0!==a.spotlightFocusRid&&e(T.slice.actions.setSpotlightFocusRid(a.spotlightFocusRid)),void 0!==a.spotlightUnfocusRid&&e(T.slice.actions.setSpotlightUnfocusRid(a.spotlightUnfocusRid)),void 0!==a.video&&e(T.slice.actions.setVideo(a.video)),void 0!==a.videoBitRate&&e(T.slice.actions.setVideoBitRate(a.videoBitRate)),void 0!==a.videoCodecType&&e(T.slice.actions.setVideoCodecType(a.videoCodecType)),void 0!==a.videoVP9Params&&e(T.slice.actions.setVideoVP9Params(a.videoVP9Params)),void 0!==a.videoH264Params&&e(T.slice.actions.setVideoH264Params(a.videoH264Params)),void 0!==a.videoH265Params&&e(T.slice.actions.setVideoH265Params(a.videoH265Params)),void 0!==a.videoAV1Params&&e(T.slice.actions.setVideoAV1Params(a.videoAV1Params)),void 0!==a.debug&&e(T.slice.actions.setDebug(a.debug)),void 0!==a.debugType&&e(T.slice.actions.setDebugType(a.debugType)),void 0!==a.mute&&e(T.slice.actions.setMute(a.mute)),void 0!==a.dataChannelSignaling&&e(T.slice.actions.setDataChannelSignaling(a.dataChannelSignaling)),void 0!==a.ignoreDisconnectWebSocket&&e(T.slice.actions.setIgnoreDisconnectWebSocket(a.ignoreDisconnectWebSocket)),void 0!==a.micDevice&&e(T.slice.actions.setMicDevice(a.micDevice)),void 0!==a.cameraDevice&&e(T.slice.actions.setCameraDevice(a.cameraDevice)),void 0!==a.audioTrack&&e(T.slice.actions.setAudioTrack(a.audioTrack)),void 0!==a.videoTrack&&e(T.slice.actions.setVideoTrack(a.videoTrack)),void 0!==a.googCpuOveruseDetection&&null!==a.googCpuOveruseDetection&&e(T.slice.actions.setGoogCpuOveruseDetection(a.googCpuOveruseDetection)),void 0!==a.bundleId&&e(T.slice.actions.setBundleId(a.bundleId)),void 0!==a.clientId&&e(T.slice.actions.setClientId(a.clientId)),void 0!==a.metadata&&e(T.slice.actions.setMetadata(a.metadata)),void 0!==a.signalingNotifyMetadata&&e(T.slice.actions.setSignalingNotifyMetadata(a.signalingNotifyMetadata)),void 0!==a.signalingUrlCandidates&&e(T.slice.actions.setSignalingUrlCandidates(a.signalingUrlCandidates)),void 0!==a.forwardingFilter&&e(T.slice.actions.setForwardingFilter(a.forwardingFilter)),void 0!==a.dataChannels&&e(T.slice.actions.setDataChannels(a.dataChannels)),void 0!==a.audioContentHint&&e(T.slice.actions.setAudioContentHint(a.audioContentHint)),void 0!==a.videoContentHint&&e(T.slice.actions.setVideoContentHint(a.videoContentHint)),void 0!==a.reconnect&&e(T.slice.actions.setReconnect(a.reconnect)),void 0!==a.aspectRatio&&e(T.slice.actions.setAspectRatio(a.aspectRatio)),void 0!==a.resizeMode&&e(T.slice.actions.setResizeMode(a.resizeMode)),void 0!==a.blurRadius&&e(T.slice.actions.setBlurRadius(a.blurRadius)),void 0!==a.lightAdjustment&&e(T.slice.actions.setLightAdjustment(a.lightAdjustment)),void 0!==a.mediaProcessorsNoiseSuppression&&e(T.slice.actions.setMediaProcessorsNoiseSuppression(a.mediaProcessorsNoiseSuppression)),void 0!==a.apiUrl&&null!==a.apiUrl&&e(T.slice.actions.setApiUrl(a.apiUrl)),void 0!==a.role&&e(T.slice.actions.setRole(a.role)),void 0!==a.audioStreamingLanguageCode&&e(T.slice.actions.setAudioStreamingLanguageCode(a.audioStreamingLanguageCode)),e(T.slice.actions.setInitialFakeContents());let{audioStreamingLanguageCode:l,bundleId:u,clientId:m,dataChannelSignaling:h,dataChannels:p,e2ee:v,ignoreDisconnectWebSocket:x,metadata:j,signalingNotifyMetadata:f,signalingUrlCandidates:b,forwardingFilter:y,videoVP9Params:N,videoH264Params:k,videoH265Params:w,videoAV1Params:I}=t();if(v)try{await r.Z.initE2EE("https://sora-e2ee-wasm.shiguredo.app/2020.2/wasm.wasm")}catch(t){e(T.slice.actions.setSoraErrorAlertMessage("Faild to execute WebAssembly '".concat("https://sora-e2ee-wasm.shiguredo.app/2020.2/wasm.wasm","'.")));return}""!==u&&e(T.slice.actions.setEnabledBundleId(!0)),""!==m&&e(T.slice.actions.setEnabledClientId(!0)),""!==j&&e(T.slice.actions.setEnabledMetadata(!0)),""!==f&&e(T.slice.actions.setEnabledSignalingNotifyMetadata(!0)),0(e,t)=>{let a=t(),n=!("recvonly"===a.role&&("true"===a.multistream||""===a.multistream)),i={channelId:a.channelId,role:a.role,audio:a.audio,video:a.video,debug:a.debug,mediaType:"getUserMedia"!==a.mediaType?a.mediaType:void 0,audioBitRate:n&&""!==a.audioBitRate?a.audioBitRate:void 0,audioCodecType:n&&""!==a.audioCodecType?a.audioCodecType:void 0,videoBitRate:n&&""!==a.videoBitRate?a.videoBitRate:void 0,videoCodecType:n&&""!==a.videoCodecType?a.videoCodecType:void 0,videoVP9Params:n&&""!==a.videoVP9Params&&a.enabledVideoVP9Params?a.videoVP9Params:void 0,videoH264Params:n&&""!==a.videoH264Params&&a.enabledVideoH264Params?a.videoH264Params:void 0,videoH265Params:n&&""!==a.videoH265Params&&a.enabledVideoH265Params?a.videoH265Params:void 0,videoAV1Params:n&&""!==a.videoAV1Params&&a.enabledVideoAV1Params?a.videoAV1Params:void 0,audioContentHint:""!==a.audioContentHint?a.audioContentHint:void 0,autoGainControl:""!==a.autoGainControl?a.autoGainControl:void 0,noiseSuppression:""!==a.noiseSuppression?a.noiseSuppression:void 0,echoCancellation:""!==a.echoCancellation?a.echoCancellation:void 0,echoCancellationType:""!==a.echoCancellationType?a.echoCancellationType:void 0,videoContentHint:""!==a.videoContentHint?a.videoContentHint:void 0,resolution:""!==a.resolution?a.resolution:void 0,facingMode:""!==a.facingMode?a.facingMode:void 0,frameRate:""!==a.frameRate?a.frameRate:void 0,aspectRatio:""!==a.aspectRatio?a.aspectRatio:void 0,resizeMode:""!==a.resizeMode?a.resizeMode:void 0,blurRadius:""!==a.blurRadius?a.blurRadius:void 0,lightAdjustment:""!==a.lightAdjustment?a.lightAdjustment:void 0,multistream:""!==a.multistream?a.multistream:void 0,simulcast:""!==a.simulcast?a.simulcast:void 0,simulcastRid:""!==a.simulcastRid?a.simulcastRid:void 0,spotlight:""!==a.spotlight?a.spotlight:void 0,spotlightNumber:""!==a.spotlightNumber?a.spotlightNumber:void 0,spotlightFocusRid:""!==a.spotlightFocusRid?a.spotlightFocusRid:void 0,spotlightUnfocusRid:""!==a.spotlightUnfocusRid?a.spotlightUnfocusRid:void 0,audioInput:"getUserMedia"===a.mediaType&&""!==a.audioInput?a.audioInput:void 0,audioOutput:""!==a.audioOutput?a.audioOutput:void 0,videoInput:"getUserMedia"===a.mediaType&&""!==a.videoInput?a.videoInput:void 0,displayResolution:""!==a.displayResolution?a.displayResolution:void 0,mediaStats:!0===a.mediaStats||void 0,bundleId:""!==a.bundleId&&a.enabledBundleId?a.bundleId:void 0,clientId:""!==a.clientId&&a.enabledClientId?a.clientId:void 0,metadata:""!==a.metadata&&a.enabledMetadata?a.metadata:void 0,signalingNotifyMetadata:""!==a.signalingNotifyMetadata&&a.enabledSignalingNotifyMetadata?a.signalingNotifyMetadata:void 0,forwardingFilter:""!==a.forwardingFilter&&a.enabledForwardingFilter?a.forwardingFilter:void 0,dataChannelSignaling:""!==a.dataChannelSignaling&&a.enabledDataChannel?a.dataChannelSignaling:void 0,ignoreDisconnectWebSocket:""!==a.ignoreDisconnectWebSocket&&a.enabledDataChannel?a.ignoreDisconnectWebSocket:void 0,dataChannels:""!==a.dataChannels&&a.enabledDataChannels?a.dataChannels:void 0,reconnect:!0===a.reconnect||void 0,e2ee:!0===a.e2ee||void 0,mediaProcessorsNoiseSuppression:!0===a.mediaProcessorsNoiseSuppression||void 0,micDevice:!1!==a.micDevice&&void 0,cameraDevice:!1!==a.cameraDevice&&void 0,audioTrack:!1!==a.audioTrack&&void 0,videoTrack:!1!==a.videoTrack&&void 0,signalingUrlCandidates:0{let t=i[e];return void 0===t?void 0:"signalingUrlCandidates"===e?"".concat(e,"=").concat(encodeURIComponent(JSON.stringify(t))):"".concat(e,"=").concat(encodeURIComponent(t))}).filter(e=>void 0!==e);m("".concat(location.origin).concat(location.pathname,"?").concat(s.join("&"))),window.history.replaceState(null,"","".concat(location.pathname,"?").concat(s.join("&")))};async function R(e,t){let a="MEDIA_CONSTRAINTS";if("getDisplayMedia"===t.mediaType){if(!t.video||!t.cameraDevice)return[new MediaStream,null];if(void 0===navigator.mediaDevices)throw Error("Failed to call getUserMedia. Make sure domain is secure");let n={audio:j({audio:t.audio,autoGainControl:t.autoGainControl,noiseSuppression:t.noiseSuppression,echoCancellation:t.echoCancellation,echoCancellationType:t.echoCancellationType}),video:f({frameRate:t.frameRate,resolution:t.resolution,aspectRatio:t.aspectRatio,resizeMode:t.resizeMode})};e(T.slice.actions.setLogMessages({title:a,description:JSON.stringify(n)})),e(T.slice.actions.setTimelineMessage(P("media-constraints",n)));let i=await navigator.mediaDevices.getDisplayMedia(n);for(let a of(e(T.slice.actions.setTimelineMessage(P("succeed-get-display-media"))),i.getVideoTracks()))void 0!==a.contentHint&&(a.contentHint=t.videoContentHint),a.enabled=t.videoTrack,e(T.slice.actions.setTimelineMessage(V("start",a)));return[i,null]}if("mediacaptureRegion"===t.mediaType){if(!t.video||!t.cameraDevice)return[new MediaStream,null];if(void 0===window.CropTarget)throw Error("Failed to call CropTarget");if(void 0===navigator.mediaDevices)throw Error("Failed to call getDisplayMedia. Make sure domain is secure");let n={audio:j({audio:t.audio,autoGainControl:t.autoGainControl,noiseSuppression:t.noiseSuppression,echoCancellation:t.echoCancellation,echoCancellationType:t.echoCancellationType}),video:f({frameRate:t.frameRate,resolution:t.resolution,aspectRatio:t.aspectRatio,resizeMode:t.resizeMode})};n.preferCurrentTab=!0,e(T.slice.actions.setLogMessages({title:a,description:JSON.stringify(n)})),e(T.slice.actions.setTimelineMessage(P("media-constraints",n)));let i=await navigator.mediaDevices.getDisplayMedia(n),s=document.querySelector("#cropArea");if(null===s)throw Error("Failed to get CropTraget Element");let o=await window.CropTarget.fromElement(s);for(let a of(e(T.slice.actions.setTimelineMessage(P("succeed-get-display-media"))),i.getVideoTracks()))void 0!==a.contentHint&&(a.contentHint=t.videoContentHint),a.enabled=t.videoTrack,await a.cropTo(o),e(T.slice.actions.setTimelineMessage(V("start",a)));return[i,null]}if("fakeMedia"===t.mediaType&&t.fakeContents.worker){let n=function(e){let{audio:t,video:a,frameRate:n,resolution:i,volume:s,aspectRatio:o,resizeMode:l}=e,r=Number.parseInt(n,10),c=Number.isNaN(r)?30:r,d=v(i),u=d.width||240,m={audio:t,video:a,frameRate:c,width:u,height:d.height||160,fontSize:Math.floor(u/5),volume:Number.parseFloat(s)};return a&&(o||l)&&(m.videoTrackConstraints={},o&&(m.videoTrackConstraints.aspectRatio=x(o)),l&&(m.videoTrackConstraints.resizeMode=l)),m}({audio:t.audio&&t.micDevice,video:t.video&&t.cameraDevice,frameRate:t.frameRate,resolution:t.resolution,volume:t.fakeVolume,aspectRatio:t.aspectRatio,resizeMode:t.resizeMode});e(T.slice.actions.setLogMessages({title:a,description:JSON.stringify(n)})),e(T.slice.actions.setTimelineMessage(P("media-constraints",n)));let{canvas:i,mediaStream:s,gainNode:o}=function(e){let t=new MediaStream,a=null;if(e.video){(a=document.createElement("canvas")).getContext("2d"),a.width=e.width,a.height=e.height;let n=a.captureStream(e.frameRate).getTracks()[0];e.videoTrackConstraints&&n.applyConstraints(e.videoTrackConstraints),t.addTrack(n)}let n=null;if(e.audio){let a=new(window.AudioContext||window.webkitAudioContext),i=a.createOscillator();i.type="sine",n=a.createGain(),i.connect(n),i.start(0);let s=a.createMediaStreamDestination();n.connect(s);let o=s.stream.getTracks();t.addTrack(o[0]),n.gain.setValueAtTime(e.volume,0)}return{canvas:a,mediaStream:t,gainNode:n}}(n);for(let a of(null!==i&&(t.fakeContents.worker.onmessage=e=>{let a=e.data;"update"===a.type&&function(e,t,a,n){if(null===e)return;let i=e.getContext("2d");if(!i)return;i.globalCompositeOperation="source-over",i.clearRect(0,0,e.width,e.height),i.fillStyle="#".concat(("0".repeat(6)+t.toString(16)).slice(-6)),i.fillRect(0,0,e.width,e.height),i.fillStyle="#".concat(("0".repeat(6)+(16777215-t).toString(16)).slice(-6)),i.font="".concat(a,"px Arial");let s=e.width/2-a/2,o=a/4*(n.length-1),l=e.height/2+a/2.5;i.fillText(n,s-o,l)}(i,t.fakeContents.colorCode,n.fontSize,a.counter.toString())},t.fakeContents.worker.postMessage({type:"stop"}),t.fakeContents.worker.postMessage({type:"start",interval:1e3/n.frameRate})),s.getVideoTracks()))void 0!==a.contentHint&&(a.contentHint=t.videoContentHint),a.enabled=t.videoTrack,e(T.slice.actions.setTimelineMessage(V("start",a)));for(let a of s.getAudioTracks())void 0!==a.contentHint&&(a.contentHint=t.audioContentHint),a.enabled=t.audioTrack,e(T.slice.actions.setTimelineMessage(V("start",a)));return e(T.slice.actions.setTimelineMessage(P("succeed-create-fake-media"))),[s,o]}if(void 0===navigator.mediaDevices)throw Error("Failed to call getUserMedia. Make sure domain is secure");let n=new MediaStream,i=function(e){let{audio:t,autoGainControl:a,noiseSuppression:n,echoCancellation:i,echoCancellationType:s,audioInput:o}=e;if(!t)return!1;if(!a&&!n&&!i&&!s&&!o)return t;let l={};o&&(l.deviceId={exact:o});let r=C(a);void 0!==r&&(l.autoGainControl=r);let c=C(n);void 0!==c&&(l.noiseSuppression=c);let d=C(i);return void 0!==d&&(l.echoCancellation=d),s&&(l.echoCancellationType=s),l}({audio:t.audio&&t.micDevice,autoGainControl:t.autoGainControl,noiseSuppression:t.noiseSuppression,echoCancellation:t.echoCancellation,echoCancellationType:t.echoCancellationType,audioInput:t.audioInput}),r=function(e){let{video:t,frameRate:a,resolution:n,videoInput:i,aspectRatio:s,resizeMode:o,facingMode:l}=e;if(!t)return!1;if(!a&&!n&&!i&&!s&&!o&&!l)return t;let r={};if(a){let e=Number.parseInt(a,10);Number.isNaN(e)||(r.frameRate={min:e,max:e})}if(n){let{width:e,height:t}=v(n);0{throw n.getTracks().filter(e=>{e.stop()}),e});if(i){let a=d.getAudioTracks()[0];if(e(T.slice.actions.setTimelineMessage(V("start",a))),t.mediaProcessorsNoiseSuppression&&o.b.isSupported()){if(null===t.noiseSuppressionProcessor)throw Error("Failed to start NoiseSuppressionProcessor. NoiseSuppressionProcessor is 'null'");t.noiseSuppressionProcessor.stopProcessing(),a=await t.noiseSuppressionProcessor.startProcessing(a)}e(T.slice.actions.setTimelineMessage(P("succeed-audio-get-user-media"))),n.addTrack(a)}if(r){let a=d.getVideoTracks()[0];if(e(T.slice.actions.setTimelineMessage(V("start",a))),""!==t.lightAdjustment&&s.jA.isSupported()){if(null===t.lightAdjustmentProcessor)throw Error("Failed to start LightAdjustmentProcessor. LightAdjustmentProcessor is 'null'");let e=function(e){switch(e){case"weak":return{adjustmentLevel:30,sharpnessLevel:0};case"medium":return{adjustmentLevel:50,sharpnessLevel:10,focusMask:new s.MH("https://cdn.jsdelivr.net/npm/@shiguredo/light-adjustment@latest/dist")};case"strong":return{adjustmentLevel:70,sharpnessLevel:20,minIntensity:10,focusMask:new s.MH("https://cdn.jsdelivr.net/npm/@shiguredo/light-adjustment@latest/dist")};default:return{}}}(t.lightAdjustment);t.lightAdjustmentProcessor.stopProcessing(),a=await t.lightAdjustmentProcessor.startProcessing(a,e)}if(""!==t.blurRadius&&l.sz.isSupported()){if(null===t.virtualBackgroundProcessor)throw Error("Failed to start VirtualBackgroundProcessor. VirtualBackgroundProcessor is 'null'");let e={blurRadius:function(e){switch(e){case"weak":return 5;case"medium":return 10;case"strong":return 15;default:return 0}}(t.blurRadius)};t.virtualBackgroundProcessor.stopProcessing(),a=await t.virtualBackgroundProcessor.startProcessing(a,e)}e(T.slice.actions.setTimelineMessage(P("succeed-video-get-user-media"))),n.addTrack(a)}}for(let e of n.getVideoTracks())void 0!==e.contentHint&&(e.contentHint=t.videoContentHint),e.enabled=t.videoTrack;for(let e of n.getAudioTracks())void 0!==e.contentHint&&(e.contentHint=t.audioContentHint),e.enabled=t.audioTrack;return[n,null]}function Z(e,t,a){a.on("log",(t,a)=>{e(T.slice.actions.setLogMessages({title:t,description:JSON.stringify(a)}))}),a.on("notify",(a,n)=>{var i;"spotlight.focused"===a.event_type&&"string"==typeof a.connection_id&&e(T.slice.actions.setFocusedSpotlightConnectionId(a.connection_id)),"spotlight.unfocused"===a.event_type&&"string"==typeof a.connection_id&&e(T.slice.actions.setUnFocusedSpotlightConnectionId(a.connection_id)),"connection.destroyed"===a.event_type&&"string"==typeof a.connection_id&&e(T.slice.actions.deleteFocusedSpotlightConnectionId(a.connection_id));let{soraContents:s}=t();if("connection.created"===a.event_type&&"string"==typeof a.connection_id&&a.connection_id===(null===(i=s.sora)||void 0===i?void 0:i.connectionId)){if("string"==typeof a.session_id&&e(T.slice.actions.setSoraSessionId(a.session_id)),"string"==typeof a.connection_id&&e(T.slice.actions.setSoraConnectionId(a.connection_id)),"string"==typeof a.client_id&&e(T.slice.actions.setSoraClientId(a.client_id)),Array.isArray(a.data))for(let t of a.data)"string"==typeof t.connection_id&&"string"==typeof t.client_id&&e(T.slice.actions.setSoraRemoteClientId({connectionId:t.connection_id,clientId:t.client_id}))}else"connection.created"===a.event_type&&"string"==typeof a.connection_id&&"string"==typeof a.client_id&&e(T.slice.actions.setSoraRemoteClientId({connectionId:a.connection_id,clientId:a.client_id}));e(T.slice.actions.setNotifyMessages({timestamp:new Date().getTime(),message:a,transportType:n}))}),a.on("push",(t,a)=>{e(T.slice.actions.setPushMessages({timestamp:new Date().getTime(),message:t,transportType:a}))}),a.on("track",a=>{e(T.slice.actions.setTimelineMessage(P("event-on-track")));let{soraContents:n}=t();if(!n.remoteClients.find(e=>e.connectionId===a.streams[0].id)){for(let t of a.streams[0].getTracks())e(T.slice.actions.setTimelineMessage(P("remote-".concat(t.kind,"-mediastream-track"),N(t))));e(T.slice.actions.setRemoteClient({mediaStream:a.streams[0],connectionId:a.streams[0].id,clientId:null}))}}),a.on("removetrack",a=>{e(T.slice.actions.setTimelineMessage(P("event-on-removetrack")));let{soraContents:n}=t(),i=n.remoteClients.find(e=>{if(null==a?void 0:a.target)return e.connectionId===a.target.id});i&&e(T.slice.actions.removeRemoteClient(i.connectionId))}),a.on("disconnect",a=>{let n={type:a.type,title:a.title};void 0!==a.code&&(n.code=a.code),void 0!==a.reason&&(n.reason=a.reason),void 0!==a.params&&(n.params=a.params),e(T.slice.actions.setTimelineMessage(P("event-on-disconnect",n)));let{fakeContents:i,soraContents:s,reconnect:o,lightAdjustmentProcessor:l,virtualBackgroundProcessor:r,noiseSuppressionProcessor:c}=t(),{localMediaStream:d,remoteClients:u}=s,m=z(l,r);(async()=>{await G(e,d,m)})(),W(e,d,c),u.filter(e=>{e.mediaStream.getTracks().filter(e=>{e.stop()})}),i.worker&&i.worker.postMessage({type:"stop"}),e(T.slice.actions.setSora(null)),e(T.slice.actions.setSoraSessionId(null)),e(T.slice.actions.setSoraConnectionId(null)),e(T.slice.actions.setSoraClientId(null)),e(T.slice.actions.setSoraTurnUrl(null)),e(T.slice.actions.setSoraConnectionStatus("disconnected")),e(T.slice.actions.setLocalMediaStream(null)),e(T.slice.actions.removeAllRemoteClients()),e(T.slice.actions.setSoraInfoAlertMessage("Disconnect Sora.")),e(T.slice.actions.setTimelineMessage(P("disconnected"))),"abend"===a.type&&o&&e(T.slice.actions.setSoraReconnecting(!0))}),a.on("timeline",t=>{let a={timestamp:new Date().getTime(),type:t.type,data:t.data,dataChannelId:t.dataChannelId,dataChannelLabel:t.dataChannelLabel,logType:t.logType};e(T.slice.actions.setTimelineMessage(a)),t.data&&"object"==typeof t.data&&"sdp"in t.data&&e(T.slice.actions.setTimelineMessage(P("".concat(t.type,"-sdp"),t.data.sdp)))}),a.on("signaling",t=>{let a={timestamp:new Date().getTime(),transportType:t.transportType,type:t.type,data:t.data};e(T.slice.actions.setSignalingMessage(a))}),a.on("message",t=>{e(T.slice.actions.setDataChannelMessage({timestamp:new Date().getTime(),label:t.label,data:t.data}))}),a.on("datachannel",t=>{e(T.slice.actions.setSoraDataChannels(t.datachannel))})}function M(e){return{audio:e.audio,audioBitRate:e.audioBitRate,audioCodecType:e.audioCodecType,audioStreamingLanguageCode:e.audioStreamingLanguageCode,bundleId:e.bundleId,clientId:e.clientId,dataChannelSignaling:e.dataChannelSignaling,dataChannels:e.enabledDataChannels?e.dataChannels:"",e2ee:e.e2ee,enabledAudioStreamingLanguageCode:e.enabledAudioStreamingLanguageCode,enabledBundleId:e.enabledBundleId,enabledClientId:e.enabledClientId,enabledDataChannel:e.enabledDataChannel,enabledSignalingNotifyMetadata:e.enabledSignalingNotifyMetadata,enabledForwardingFilter:e.enabledForwardingFilter,enabledVideoVP9Params:e.enabledVideoVP9Params,enabledVideoH264Params:e.enabledVideoH264Params,enabledVideoH265Params:e.enabledVideoH265Params,enabledVideoAV1Params:e.enabledVideoAV1Params,ignoreDisconnectWebSocket:e.ignoreDisconnectWebSocket,multistream:e.multistream,signalingNotifyMetadata:e.signalingNotifyMetadata,forwardingFilter:e.forwardingFilter,simulcast:e.simulcast,simulcastRid:e.simulcastRid,spotlight:e.spotlight,spotlightFocusRid:e.spotlightFocusRid,spotlightNumber:e.spotlightNumber,spotlightUnfocusRid:e.spotlightUnfocusRid,video:e.video,videoBitRate:e.videoBitRate,videoCodecType:e.videoCodecType,videoVP9Params:e.videoVP9Params,videoH264Params:e.videoH264Params,videoH265Params:e.videoH265Params,videoAV1Params:e.videoAV1Params,role:e.role}}function P(e,t){return{type:e,logType:"sora-devtools",timestamp:new Date().getTime(),data:t}}function V(e,t){let a=N(t);return P("".concat(e,"-").concat(t.kind,"-mediastream-track"),a)}async function D(e,t){var a;if(t.pc&&(null===(a=t.pc)||void 0===a?void 0:a.iceConnectionState)!=="closed"){let a=await t.pc.getStats(),n=[],i=[];for(let t of(a.forEach(e=>{n.push(e),"local-candidate"===e.type&&i.push(e)}),e(T.slice.actions.setStatsReport(n)),i))if(void 0!==t.url){e(T.slice.actions.setSoraTurnUrl(t.url));break}}}let A=()=>async(e,t)=>{let a,n;let i=t();try{[a,n]=await R(e,i).catch(e=>{throw e})}catch(n){var s,o,l;let t;if(n instanceof Error&&(e(T.slice.actions.setLogMessages({title:"REQUEST_MEDIA",description:JSON.stringify(n.message)})),e(T.slice.actions.setAPIErrorAlertMessage("Failed to get user devices. ".concat(n.message)))),(null===(s=i.lightAdjustmentProcessor)||void 0===s?void 0:s.isProcessing())&&(t=i.lightAdjustmentProcessor.getOriginalTrack(),i.lightAdjustmentProcessor.stopProcessing()),(null===(o=i.virtualBackgroundProcessor)||void 0===o?void 0:o.isProcessing())&&(void 0===t&&(t=i.virtualBackgroundProcessor.getOriginalTrack()),i.virtualBackgroundProcessor.stopProcessing()),t?(t.stop(),e(T.slice.actions.setTimelineMessage(V("stop",t)))):a&&a.getVideoTracks().filter(t=>{t.stop(),e(T.slice.actions.setTimelineMessage(V("stop",t)))}),null===(l=i.noiseSuppressionProcessor)||void 0===l?void 0:l.isProcessing()){let t=i.noiseSuppressionProcessor.getOriginalTrack();t&&(t.stop(),e(T.slice.actions.setTimelineMessage(V("stop",t)))),i.noiseSuppressionProcessor.stopProcessing()}else a&&a.getAudioTracks().filter(t=>{t.stop(),e(T.slice.actions.setTimelineMessage(V("stop",t)))});throw n}n&&e(T.slice.actions.setFakeContentsGainNode(n)),e(T.slice.actions.setLocalMediaStream(a))},F=()=>async(e,t)=>{let a;let{fakeContents:n,soraContents:i,lightAdjustmentProcessor:s,noiseSuppressionProcessor:o,virtualBackgroundProcessor:l}=t(),{localMediaStream:r}=i;if((null==s?void 0:s.isProcessing())&&(a=s.getOriginalTrack(),s.stopProcessing()),(null==l?void 0:l.isProcessing())&&(void 0===a&&(a=l.getOriginalTrack()),l.stopProcessing()),void 0!==a?(a.stop(),null==r||r.removeTrack(a),e(T.slice.actions.setTimelineMessage(V("stop",a)))):r&&r.getVideoTracks().filter(t=>{t.stop(),r.removeTrack(t),e(T.slice.actions.setTimelineMessage(V("stop",t)))}),null==o?void 0:o.isProcessing()){let t=o.getOriginalTrack();t&&(t.stop(),null==r||r.removeTrack(t),e(T.slice.actions.setTimelineMessage(V("stop",t)))),o.stopProcessing()}else r&&r.getAudioTracks().filter(t=>{t.stop(),r.removeTrack(t),e(T.slice.actions.setTimelineMessage(V("stop",t)))});n.worker&&n.worker.postMessage({type:"stop"}),e(T.slice.actions.setLocalMediaStream(null))},O=()=>async(e,t)=>{let a,n,i;e(T.slice.actions.setTimelineMessage(P("start-connection"))),e(T.slice.actions.setSoraConnectionStatus("preparing"));let s=t(),o=!1;s.soraContents.sora&&(await s.soraContents.sora.disconnect(),o=!0);let l=h(s.enabledSignalingUrlCandidates,s.signalingUrlCandidates);e(T.slice.actions.setLogMessages({title:"SIGNALING_URL",description:JSON.stringify(l)}));let c=r.Z.connection(l,s.debug),d=k(M(s)),u=b(s.enabledMetadata,s.metadata);try{"sendonly"===s.role?((a=c.sendonly(s.channelId,null,d)).metadata=u,"boolean"==typeof s.googCpuOveruseDetection&&(a.constraints={optional:[{googCpuOveruseDetection:s.googCpuOveruseDetection}]}),Z(e,t,a),!o&&s.soraContents.localMediaStream?n=s.soraContents.localMediaStream:[n,i]=await R(e,s).catch(t=>{throw e(T.slice.actions.setSoraErrorAlertMessage(t.toString())),e(T.slice.actions.setSoraConnectionStatus("disconnected")),t}),e(T.slice.actions.setSoraConnectionStatus("connecting")),e(T.slice.actions.setSora(a)),await a.connect(n)):"sendrecv"===s.role?((a=c.sendrecv(s.channelId,null,d)).metadata=u,"boolean"==typeof s.googCpuOveruseDetection&&(a.constraints={optional:[{googCpuOveruseDetection:s.googCpuOveruseDetection}]}),Z(e,t,a),!o&&s.soraContents.localMediaStream?n=s.soraContents.localMediaStream:[n,i]=await R(e,s).catch(t=>{throw e(T.slice.actions.setSoraErrorAlertMessage(t.toString())),e(T.slice.actions.setSoraConnectionStatus("disconnected")),t}),e(T.slice.actions.setSora(a)),await a.connect(n)):"recvonly"===s.role&&((a=c.recvonly(s.channelId,null,d)).metadata=u,Z(e,t,a),e(T.slice.actions.setSoraConnectionStatus("connecting")),e(T.slice.actions.setSora(a)),await a.connect())}catch(a){var m,g,p;let t;if(e(T.slice.actions.setSora(null)),a instanceof Error&&e(T.slice.actions.setSoraErrorAlertMessage("Failed to connect Sora. ".concat(a.message))),(null===(m=s.lightAdjustmentProcessor)||void 0===m?void 0:m.isProcessing())&&(t=s.lightAdjustmentProcessor.getOriginalTrack(),s.lightAdjustmentProcessor.stopProcessing()),(null===(g=s.virtualBackgroundProcessor)||void 0===g?void 0:g.isProcessing())&&(void 0===t&&(t=s.virtualBackgroundProcessor.getOriginalTrack()),s.virtualBackgroundProcessor.stopProcessing()),t?(t.stop(),e(T.slice.actions.setTimelineMessage(V("stop",t)))):n&&n.getVideoTracks().filter(t=>{t.stop(),e(T.slice.actions.setTimelineMessage(V("stop",t)))}),null===(p=s.noiseSuppressionProcessor)||void 0===p?void 0:p.isProcessing()){let t=s.noiseSuppressionProcessor.getOriginalTrack();t&&(t.stop(),e(T.slice.actions.setTimelineMessage(V("stop",t)))),s.noiseSuppressionProcessor.stopProcessing()}else n&&n.getAudioTracks().filter(t=>{t.stop(),e(T.slice.actions.setTimelineMessage(V("stop",t)))});throw e(T.slice.actions.setSoraConnectionStatus("disconnected")),a}if(void 0===a)throw Error("Failed to connect Sora. Connection object is 'undefined'");e(T.slice.actions.setSoraInfoAlertMessage("Succeeded to connect Sora.")),await D(e,a);let v=setInterval(async()=>{let{soraContents:a}=t();a.sora?await D(e,a.sora):clearInterval(v)},1e3);a.stream=null,n&&(null===s.soraContents.localMediaStream||o)&&e(T.slice.actions.setLocalMediaStream(n)),i&&e(T.slice.actions.setFakeContentsGainNode(i)),e(T.slice.actions.setSoraConnectionStatus("connected")),e(T.slice.actions.setTimelineMessage(P("connected")))},H=()=>async(e,t)=>{let a,n,i;e(T.slice.actions.setTimelineMessage(P("start-reconnect"))),e(T.slice.actions.setSoraConnectionStatus("connecting"));let s=t();s.soraContents.sora&&"connected"===s.soraContents.connectionStatus&&await s.soraContents.sora.disconnect();let o=h(s.enabledSignalingUrlCandidates,s.signalingUrlCandidates);e(T.slice.actions.setLogMessages({title:"SIGNALING_URL",description:JSON.stringify(o)}));let l=r.Z.connection(o,s.debug),c=k(M(s)),d=b(s.enabledMetadata,s.metadata);("sendonly"===s.role||"sendrecv"===s.role)&&([n,i]=await R(e,s).catch(t=>{throw e(T.slice.actions.setSoraErrorAlertMessage(t.toString())),e(T.slice.actions.setSoraConnectionStatus("disconnected")),t}));for(let i=1;i<=10;i++){let{soraContents:o}=t();if(!1===o.reconnecting)break;e(T.slice.actions.setSoraReconnectingTrials(i));try{"sendonly"===s.role?((a=l.sendonly(s.channelId,null,c)).metadata=d,"boolean"==typeof s.googCpuOveruseDetection&&(a.constraints={optional:[{googCpuOveruseDetection:s.googCpuOveruseDetection}]}),Z(e,t,a),n&&await a.connect(n)):"sendrecv"===s.role?((a=l.sendrecv(s.channelId,null,c)).metadata=d,"boolean"==typeof s.googCpuOveruseDetection&&(a.constraints={optional:[{googCpuOveruseDetection:s.googCpuOveruseDetection}]}),Z(e,t,a),n&&await a.connect(n)):"recvonly"===s.role&&((a=l.recvonly(s.channelId,null,c)).metadata=d,Z(e,t,a),await a.connect())}catch(t){t instanceof Error&&e(T.slice.actions.setSoraErrorAlertMessage("(trials ".concat(i,") Failed to connect Sora. ").concat(t.message))),a=void 0}if(void 0!==a)break;await new Promise(e=>setTimeout(e,500*i+500))}if(void 0===a){e(T.slice.actions.setSoraErrorAlertMessage("Failed to reconnect Sora.")),e(T.slice.actions.setSoraConnectionStatus("disconnected")),e(T.slice.actions.setSoraReconnecting(!1));return}e(T.slice.actions.setSoraInfoAlertMessage("Succeeded to reconnect Sora.")),await D(e,a);let u=setInterval(async()=>{let{soraContents:a}=t();a.sora?await D(e,a.sora):clearInterval(u)},1e3);e(T.slice.actions.setSora(a)),n&&e(T.slice.actions.setLocalMediaStream(n)),i&&e(T.slice.actions.setFakeContentsGainNode(i)),e(T.slice.actions.setSoraConnectionStatus("connected")),e(T.slice.actions.setTimelineMessage(P("connected"))),e(T.slice.actions.setSoraReconnecting(!1))},B=()=>async(e,t)=>{let{soraContents:a}=t();a.sora&&"connected"===a.connectionStatus&&(e(T.slice.actions.setSoraConnectionStatus("disconnecting")),await a.sora.disconnect(),e(T.slice.actions.setSoraConnectionStatus("disconnected")))},U=()=>async(e,t)=>{let a=await S(),n=[],i=[],s=[];a.filter(e=>{""!==e.deviceId&&("audioinput"===e.kind?n.push(e.toJSON()):"audiooutput"===e.kind?s.push(e.toJSON()):"videoinput"===e.kind&&i.push(e.toJSON()))}),e(T.slice.actions.setAudioInputDevices(n)),e(T.slice.actions.setVideoInputDevices(i)),e(T.slice.actions.setAudioOutputDevices(s))},E=()=>async(e,t)=>{var a,n;let i=t();if(!i.soraContents.localMediaStream)return;if(null===(a=i.virtualBackgroundProcessor)||void 0===a?void 0:a.isProcessing()){let t=i.virtualBackgroundProcessor.getOriginalTrack();t&&(t.stop(),e(T.slice.actions.setTimelineMessage(V("stop",t)))),i.virtualBackgroundProcessor.stopProcessing()}else i.soraContents.localMediaStream&&i.soraContents.localMediaStream.getVideoTracks().filter(t=>{t.stop(),e(T.slice.actions.setTimelineMessage(V("stop",t)))});if(null===(n=i.noiseSuppressionProcessor)||void 0===n?void 0:n.isProcessing()){let t=i.noiseSuppressionProcessor.getOriginalTrack();t&&(t.stop(),e(T.slice.actions.setTimelineMessage(V("stop",t)))),i.noiseSuppressionProcessor.stopProcessing()}else i.soraContents.localMediaStream&&i.soraContents.localMediaStream.getAudioTracks().filter(t=>{t.stop(),e(T.slice.actions.setTimelineMessage(V("stop",t)))});let[s,o]=await R(e,i).catch(t=>{throw e(T.slice.actions.setSoraErrorAlertMessage(t.toString())),e(T.slice.actions.setSoraConnectionStatus("disconnected")),t});s.getTracks().filter(e=>{if(!i.soraContents.sora||!i.soraContents.sora.pc)return;let t=i.soraContents.sora.pc.getSenders().find(t=>!!t.track&&t.track.kind===e.kind);t&&t.replaceTrack(e)}),e(T.slice.actions.setLocalMediaStream(s)),e(T.slice.actions.setFakeContentsGainNode(o))},_=e=>async(t,a)=>{if(e)try{await r.Z.initE2EE("https://sora-e2ee-wasm.shiguredo.app/2020.2/wasm.wasm")}catch(e){t(T.slice.actions.setSoraErrorAlertMessage("Faild to execute WebAssembly '".concat("https://sora-e2ee-wasm.shiguredo.app/2020.2/wasm.wasm","'.")));return}t(T.slice.actions.setE2EE(e))},L=e=>async(t,a)=>{let n=a();if(!n.soraContents.localMediaStream||!n.soraContents.sora){t(T.slice.actions.setMicDevice(e));return}if(e){let a={aspectRatio:n.aspectRatio,audio:n.audio,audioContentHint:n.audioContentHint,audioInput:n.audioInput,audioTrack:n.audioTrack,autoGainControl:n.autoGainControl,blurRadius:n.blurRadius,cameraDevice:n.cameraDevice,echoCancellation:n.echoCancellation,echoCancellationType:n.echoCancellationType,facingMode:n.facingMode,fakeContents:n.fakeContents,fakeVolume:n.fakeVolume,frameRate:n.frameRate,lightAdjustment:n.lightAdjustment,lightAdjustmentProcessor:n.lightAdjustmentProcessor,mediaProcessorsNoiseSuppression:n.mediaProcessorsNoiseSuppression,mediaType:n.mediaType,micDevice:e,noiseSuppression:n.noiseSuppression,noiseSuppressionProcessor:n.noiseSuppressionProcessor,resizeMode:n.resizeMode,resolution:n.resolution,video:!1,videoContentHint:n.videoContentHint,videoInput:n.videoInput,videoTrack:n.videoTrack,virtualBackgroundProcessor:n.virtualBackgroundProcessor},[i,s]=await R(t,a).catch(e=>{throw t(T.slice.actions.setSoraErrorAlertMessage(e.toString())),e});0{var t;e.enabled=!1,e.stop(),null===(t=n.soraContents.localMediaStream)||void 0===t||t.removeTrack(e)}),n.soraContents.localMediaStream.addTrack(i.getAudioTracks()[0])),t(T.slice.actions.setFakeContentsGainNode(s)))}else n.soraContents.sora&&"connected"===n.soraContents.connectionStatus&&n.soraContents.localMediaStream?(W(t,n.soraContents.localMediaStream,n.noiseSuppressionProcessor),n.soraContents.sora.stopAudioTrack(n.soraContents.localMediaStream)):n.soraContents.localMediaStream&&W(t,n.soraContents.localMediaStream,n.noiseSuppressionProcessor);t(T.slice.actions.setMicDevice(e))},J=e=>async(t,a)=>{let n=a();if(!n.soraContents.localMediaStream&&!n.soraContents.sora&&"connected"!==n.soraContents.connectionStatus){t(T.slice.actions.setCameraDevice(e));return}if(e){let a={aspectRatio:n.aspectRatio,audio:!1,audioContentHint:n.audioContentHint,audioInput:n.audioInput,audioTrack:n.audioTrack,autoGainControl:n.autoGainControl,blurRadius:n.blurRadius,cameraDevice:e,echoCancellation:n.echoCancellation,echoCancellationType:n.echoCancellationType,facingMode:n.facingMode,fakeContents:n.fakeContents,fakeVolume:n.fakeVolume,frameRate:n.frameRate,lightAdjustment:n.lightAdjustment,lightAdjustmentProcessor:n.lightAdjustmentProcessor,mediaProcessorsNoiseSuppression:n.mediaProcessorsNoiseSuppression,mediaType:n.mediaType,micDevice:n.micDevice,noiseSuppression:n.noiseSuppression,noiseSuppressionProcessor:n.noiseSuppressionProcessor,resizeMode:n.resizeMode,resolution:n.resolution,video:n.video,videoContentHint:n.videoContentHint,videoInput:n.videoInput,videoTrack:n.videoTrack,virtualBackgroundProcessor:n.virtualBackgroundProcessor},[i,s]=await R(t,a).catch(e=>{throw t(T.slice.actions.setSoraErrorAlertMessage(e.toString())),e});0{var t;e.enabled=!1,e.stop(),null===(t=n.soraContents.localMediaStream)||void 0===t||t.removeTrack(e)}),n.soraContents.localMediaStream.addTrack(i.getVideoTracks()[0])),t(T.slice.actions.setFakeContentsGainNode(s)))}else if(n.soraContents.sora&&"connected"===n.soraContents.connectionStatus&&n.soraContents.localMediaStream){let e=z(n.lightAdjustmentProcessor,n.virtualBackgroundProcessor);await G(t,n.soraContents.localMediaStream,e),n.soraContents.sora.stopVideoTrack(n.soraContents.localMediaStream)}else if(n.soraContents.localMediaStream){let e=z(n.lightAdjustmentProcessor,n.virtualBackgroundProcessor);await G(t,n.soraContents.localMediaStream,e)}t(T.slice.actions.setCameraDevice(e))},z=(e,t)=>{let a;return(null==e?void 0:e.isProcessing())&&(a=e.getOriginalTrack(),e.stopProcessing()),(null==t?void 0:t.isProcessing())&&(void 0===a&&(a=t.getOriginalTrack()),t.stopProcessing()),a},G=async(e,t,a)=>{if(void 0!==a)a.enabled=!1,await new Promise(e=>setTimeout(e,100)),a.stop(),null==t||t.removeTrack(a),e(T.slice.actions.setTimelineMessage(V("stop",a)));else{if(!t)return;t.getVideoTracks().filter(e=>{e.enabled=!1}),await new Promise(e=>setTimeout(e,100)),t.getVideoTracks().filter(a=>{a.stop(),t.removeTrack(a),e(T.slice.actions.setTimelineMessage(V("stop",a)))})}},W=(e,t,a)=>{if(null==a?void 0:a.isProcessing()){let n=a.getOriginalTrack();n&&(n.stop(),null==t||t.removeTrack(n),e(T.slice.actions.setTimelineMessage(V("stop",n)))),a.stopProcessing()}else t&&t.getAudioTracks().filter(a=>{a.stop(),t.removeTrack(a),e(T.slice.actions.setTimelineMessage(V("stop",a)))})},{clearDataChannelMessages:K,deleteAlertMessage:q,setAPIErrorAlertMessage:Q,setAPIInfoAlertMessage:X,setAspectRatio:$,setAudio:Y,setAudioBitRate:ee,setAudioCodecType:et,setAudioContentHint:ea,setAudioInput:en,setAudioOutput:ei,setAudioTrack:es,setAutoGainControl:eo,setBlurRadius:el,setBundleId:er,setChannelId:ec,setClientId:ed,setDataChannels:eu,setDataChannelSignaling:em,setDebug:eg,setDebugFilterText:eh,setDebugType:ep,setDisplayResolution:ev,setEchoCancellation:ex,setEchoCancellationType:ej,setEnabledBundleId:ef,setEnabledClientId:eC,setEnabledDataChannels:eb,setEnabledDataChannel:eS,setEnabledForwardingFilter:ey,setEnabledMetadata:eN,setEnabledSignalingNotifyMetadata:ek,setEnabledSignalingUrlCandidates:eT,setEnabledVideoVP9Params:ew,setEnabledVideoH264Params:eI,setEnabledVideoH265Params:eR,setEnabledVideoAV1Params:eZ,setAudioStreamingLanguageCode:eM,setEnabledAudioStreamingLanguageCode:eP,setFakeVolume:eV,setFacingMode:eD,setFrameRate:eA,setIgnoreDisconnectWebSocket:eF,setLightAdjustment:eO,setLocalMediaStream:eH,setLogMessages:eB,setMediaProcessorsNoiseSuppression:eU,setMediaStats:eE,setMediaType:e_,setMetadata:eL,setMultistream:eJ,setNoiseSuppression:ez,setNotifyMessages:eG,setReconnect:eW,setResizeMode:eK,setRole:eq,setResolution:eQ,setSignalingNotifyMetadata:eX,setSignalingUrlCandidates:e$,setForwardingFilter:eY,setSimulcast:e0,setSimulcastRid:e1,setSora:e2,setSoraReconnecting:e5,setSoraErrorAlertMessage:e6,setSoraInfoAlertMessage:e4,setSpotlight:e9,setSpotlightFocusRid:e3,setSpotlightNumber:e8,setSpotlightUnfocusRid:e7,setVideo:te,setVideoBitRate:tt,setVideoCodecType:ta,setVideoContentHint:tn,setVideoInput:ti,setVideoTrack:ts,setVideoVP9Params:to,setVideoH264Params:tl,setVideoH265Params:tr,setVideoAV1Params:tc}=T.slice.actions;var td=a(4690);let tu=()=>(0,td.I0)(),tm=td.v9;var tg=a(219),th=a(2596),tp=a(1138);let tv=()=>(0,n.jsxs)("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",className:"bi bi-clipboard",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("title",{children:"ClipboardIcon"}),(0,n.jsx)("path",{fillRule:"evenodd",d:"M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1v-1z"}),(0,n.jsx)("path",{fillRule:"evenodd",d:"M9.5 1h-3a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3z"})]}),tx=e=>e.disabled?(0,n.jsx)("div",{style:{height:"31px"}}):(0,n.jsx)("button",{type:"button",className:"btn btn-sm btn-dark",onClick:t=>{m(e.text),t.currentTarget.blur()},children:(0,n.jsx)(tv,{})}),tj=e=>{let{description:t}=e;return void 0===t?null:"object"!=typeof t?(0,n.jsx)("div",{className:"debug-message",children:(0,n.jsx)("div",{className:"col-sm-12",children:(0,n.jsx)("pre",{className:e.wordBreak?"word-break":"",children:t})})}):(0,n.jsx)("div",{className:"debug-message",children:(0,n.jsx)("div",{className:"col-sm-12",children:(0,n.jsx)("pre",{className:e.wordBreak?"word-break":"",children:JSON.stringify(t,null,2)})})})},tf=e=>{let{defaultShow:t,description:a,title:s,timestamp:o,label:l}=e,[r,c]=(0,i.useState)(void 0!==t&&t),d=o?s+o:s,m=void 0===a;return(0,n.jsxs)("div",{className:"border border-light rounded mb-1 bg-dark","data-title":s,children:[(0,n.jsxs)("div",{className:"d-flex justify-content-between align-items-center text-break",children:[(0,n.jsxs)("a",{className:"debug-title ".concat(m?"disabled":""),onClick:()=>c(!r),"aria-controls":d,"aria-expanded":r,children:[(0,n.jsx)("i",{className:"".concat(r?"arrow-bottom":"arrow-right"," ").concat(m?"disabled":"")})," ",o?(0,n.jsxs)("span",{className:"text-white-50 me-1",children:["[",u(o),"]"]}):null,l,(0,n.jsx)("span",{children:s})]}),(0,n.jsx)("div",{className:"border-left",children:(0,n.jsx)(tx,{text:"string"==typeof a?a:JSON.stringify(a,null,2),disabled:m})})]}),(0,n.jsx)(tp.Z,{in:r,children:(0,n.jsx)("div",{className:"border-top",children:(0,n.jsx)(tj,{description:a,wordBreak:e.wordBreak})})})]})},tC=e=>{let{title:t,codecs:a}=e;return(0,n.jsx)(tf,{title:t,timestamp:null,description:JSON.stringify(a,null,2)})},tb=i.memo(e=>(0,n.jsx)(tC,{...e})),tS=(e,t)=>{if(!e)return[];let a=e(t);return a&&a.codecs?a.codecs:[]},ty=()=>{let e=tS(RTCRtpSender.getCapabilities,"audio"),t=tS(RTCRtpSender.getCapabilities,"video"),a=tS(RTCRtpReceiver.getCapabilities,"audio"),i=tS(RTCRtpReceiver.getCapabilities,"video");return(0,n.jsxs)("div",{className:"capabilities-codec",children:[(0,n.jsx)(tb,{title:"Audio RTCRtpSender CapabilitiesCodec",codecs:e}),(0,n.jsx)(tb,{title:"Video RTCRtpSender CapabilitiesCodec",codecs:t}),(0,n.jsx)(tb,{title:"Audio RTCRtpReceiver CapabilitiesCodec",codecs:a}),(0,n.jsx)(tb,{title:"Video RTCRtpReceiver CapabilitiesCodec",codecs:i})]})},tN=()=>{let e=tu();return(0,n.jsx)("input",{className:"btn btn-secondary",type:"button",name:"clear",defaultValue:"clear",onClick:()=>{e(K())}})},tk=e=>{let{data:t,label:a,timestamp:i}=e;if("ZAKURO"===new TextDecoder().decode(t.slice(0,6))){let e=new TextDecoder().decode(t.slice(22,48)),s=new DataView(t),o=s.getBigInt64(6),l=s.getBigInt64(14),r=t.byteLength,c="connectionId: ".concat(e,"\nUnixTimeMicro: ").concat(o,"\nCounter: ").concat(l,"\nByteLength: ").concat(r);return(0,n.jsx)(tf,{title:"".concat(a," ZAKURO"),timestamp:i,description:c,defaultShow:!0,wordBreak:!0})}let s=new Uint8Array(t),o="".concat(s.toString(),"\n(").concat(new TextDecoder().decode(t),")");return(0,n.jsx)(tf,{title:a,timestamp:i,description:o,defaultShow:!0,wordBreak:!0})},tT=i.memo(e=>(0,n.jsx)(tk,{...e})),tw=()=>{let e=tm(e=>e.dataChannelMessages);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"py-1",children:(0,n.jsx)(tN,{})}),(0,n.jsx)("div",{className:"debug-messages",children:e.map(e=>{let t=e.label+e.timestamp;return(0,n.jsx)(tT,{...e},t)})})]})};var tI=a(162),tR=a(2933),tZ=a(3524);let tM=()=>{let e=tm(e=>e.debugFilterText),t=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline debug-filter",controlId:"channelId",children:[(0,n.jsx)(tR.Z,{className:"text-white",children:"Filter:"}),(0,n.jsx)(tZ.Z,{type:"text",placeholder:"Filter",value:e,onChange:e=>{t(eh(e.target.value))},autoComplete:"off"})]})},tP=e=>{let{message:t,timestamp:a}=e;return(0,n.jsx)(tf,{title:t.title,timestamp:a,description:JSON.parse(t.description)})},tV=i.memo(e=>(0,n.jsx)(tP,{...e})),tD=()=>{let e=tm(e=>e.logMessages),t=tm(e=>e.debugFilterText),a=e.filter(e=>t.split(" ").every(t=>""===t||0<=JSON.stringify(e).indexOf(t)));return(0,n.jsx)("div",{className:"debug-messages",children:a.map((e,t)=>(0,n.jsx)(tV,{...e},e.message.title+String(t)+e.timestamp))})},tA={websocket:"#00ff00",datachannel:"#ff00ff"},tF=e=>{let{text:t}=e,a=Object.keys(tA).includes(t)?tA[t]:void 0;return(0,n.jsxs)("span",{className:"me-1",style:a?{color:a}:{},children:["[",t,"]"]})},tO=e=>{let{notify:t}=e,a=t.transportType?(0,n.jsx)(tF,{text:t.transportType}):null;return(0,n.jsx)(tf,{title:t.message.event_type,timestamp:t.timestamp,description:t.message,label:a})},tH=i.memo(e=>(0,n.jsx)(tO,{...e})),tB=()=>{let e=tm(e=>e.notifyMessages),t=tm(e=>e.debugFilterText),a=e.filter(e=>t.split(" ").every(t=>""===t||0<=JSON.stringify(e).indexOf(t)));return(0,n.jsx)("div",{className:"debug-messages",children:a.map(e=>(0,n.jsx)(tH,{notify:e},e.message.type+e.timestamp))})},tU={websocket:"#00ff00",datachannel:"#ff00ff"},tE=e=>{let{text:t}=e,a=Object.keys(tU).includes(t)?tU[t]:void 0;return(0,n.jsxs)("span",{style:a?{color:a}:{},children:["[",t,"]"]})},t_=e=>{let{push:t}=e,a=t.transportType?(0,n.jsx)(tE,{text:t.transportType}):null;return(0,n.jsx)(tf,{title:t.message.type,timestamp:t.timestamp,description:t.message,label:a})},tL=i.memo(e=>(0,n.jsx)(t_,{...e})),tJ=()=>{let e=tm(e=>e.pushMessages),t=tm(e=>e.debugFilterText),a=e.filter(e=>t.split(" ").every(t=>""===t||0<=JSON.stringify(e).indexOf(t)));return(0,n.jsx)("div",{className:"debug-messages",children:a.map((e,t)=>{let a="".concat(e.timestamp,"-").concat(t);return(0,n.jsx)(tL,{ariaControls:a,push:e},a)})})};var tz=a(1992),tG=a(6271);let tW=()=>{let e=(0,i.useRef)(null),t=(0,i.useRef)(null),a=tm(e=>e.soraContents.sora),s=tm(e=>e.soraContents.connectionStatus),o=tm(e=>e.soraContents.datachannels);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"d-flex mt-2",children:[(0,n.jsx)(tI.Z,{className:"me-1",controlId:"sendDataChannelMessageLabel",children:(0,n.jsx)(tz.Z,{name:"sendDataChannelMessageLabel",ref:e,children:o.map(e=>(0,n.jsx)("option",{value:e.label,children:e.label},e.label))})}),(0,n.jsx)(tI.Z,{className:"flex-grow-1 me-1",controlId:"sendDataChannelMessage",children:(0,n.jsx)(tZ.Z,{className:"flex-fill",placeholder:"sendDataChannelMessageを指定",type:"text",ref:t})}),(0,n.jsx)(tG.Z,{variant:"secondary",onClick:()=>{if(null===e.current||null===t.current)return;let n=e.current.value;a&&"connected"===s&&a.sendMessage(n,new TextEncoder().encode(t.current.value))},disabled:0===o.length,children:"send"})]}),0{let{text:t}=e,a=Object.keys(tK).includes(t)?tK[t]:void 0;return(0,n.jsxs)("span",{className:"me-1",style:a?{color:a}:{},children:["[",t,"]"]})},tQ=e=>{let{data:t,type:a,timestamp:i,transportType:s}=e,o=s?(0,n.jsx)(tq,{text:s}):null;return(0,n.jsx)(tf,{title:a,timestamp:i,description:t,label:o})},tX=i.memo(e=>(0,n.jsx)(tQ,{...e})),t$=()=>{let e=tm(e=>e.signalingMessages),t=tm(e=>e.debugFilterText),a=e.filter(e=>t.split(" ").every(t=>""===t||0<=JSON.stringify(e).indexOf(t)));return(0,n.jsx)("div",{className:"debug-messages",children:a.map(e=>{let t=e.type+e.timestamp;return(0,n.jsx)(tX,{...e},t)})})},tY=e=>(0,n.jsx)(tf,{title:"".concat(e.id,"(").concat(e.type,")"),timestamp:null,description:e}),t0=i.memo(e=>(0,n.jsx)(tY,{...e})),t1=()=>{let e=tm(e=>e.soraContents.statsReport),t=tm(e=>e.debugFilterText),a=e.filter(e=>t.split(" ").every(t=>""===t||0<=JSON.stringify(e).indexOf(t)));return(0,n.jsx)("div",{className:"debug-messages",children:a.map(e=>(0,n.jsx)(t0,{...e},e.id))})},t2={signaling:"#ff00ff",notify:"#ffff00",push:"#98fb98",e2ee:"#00ffff",stats:"#ffc0cb"},t5=()=>(0,n.jsx)("span",{className:"me-1",style:{color:"#00ff00"},children:"[websocket]"}),t6=()=>(0,n.jsx)("span",{className:"me-1",style:{color:"#ff8c00"},children:"[peerconnection]"}),t4=()=>(0,n.jsx)("span",{className:"me-1",style:{color:"#bce2e8"},children:"[sora]"}),t9=()=>(0,n.jsx)("span",{className:"me-1",style:{color:"#73b8e2"},children:"[sora-devtools]"}),t3=e=>{let{label:t,id:a}=e,i=t&&Object.keys(t2).includes(t)?t2[t]:void 0;return(0,n.jsxs)("span",{className:"me-1",style:i?{color:i}:{},children:["[datachannel]",t?"[".concat(t,"]"):"","number"==typeof a?"[".concat(a,"]"):""]})},t8=e=>{let t;let{timestamp:a,logType:i,dataChannelId:s,dataChannelLabel:o,type:l,data:r}=e;return"websocket"===i?t=(0,n.jsx)(t5,{}):"datachannel"===i?t=(0,n.jsx)(t3,{id:s,label:o}):"peerconnection"===i?t=(0,n.jsx)(t6,{}):"sora"===i?t=(0,n.jsx)(t4,{}):"sora-devtools"===i&&(t=(0,n.jsx)(t9,{})),(0,n.jsx)(tf,{title:"".concat(l),timestamp:a,description:r,label:t})},t7=i.memo(e=>(0,n.jsx)(t8,{...e})),ae=()=>{let e=tm(e=>e.timelineMessages),t=tm(e=>e.debugFilterText),a=e.filter(e=>t.split(" ").every(t=>""===t||0<=JSON.stringify(e).indexOf(t)));return(0,n.jsx)("div",{className:"debug-messages",children:a.map(e=>{let t="".concat(e.timestamp,"-").concat(e.type);return e.dataChannelLabel&&(t+="-".concat(e.dataChannelLabel)),(0,n.jsx)(t7,{...e},t)})})},at=()=>{let e=tm(e=>e.debug),t=tm(e=>e.debugType),a=tu();return e?(0,n.jsx)("div",{className:"col-debug col-6",children:(0,n.jsxs)(tg.Z,{id:"debug-tab",activeKey:t,defaultActiveKey:"timeline",onSelect:e=>{("log"===e||"notify"===e||"push"===e||"stats"===e||"timeline"===e||"signaling"===e||"messaging"===e||"codec"===e)&&a(ep(e))},children:[(0,n.jsxs)(th.Z,{eventKey:"timeline",title:"Timeline",children:[(0,n.jsx)(tM,{}),(0,n.jsx)(ae,{})]}),(0,n.jsxs)(th.Z,{eventKey:"signaling",title:"Signaling",children:[(0,n.jsx)(tM,{}),(0,n.jsx)(t$,{})]}),(0,n.jsxs)(th.Z,{eventKey:"notify",title:"Notfiy",children:[(0,n.jsx)(tM,{}),(0,n.jsx)(tB,{})]}),(0,n.jsxs)(th.Z,{eventKey:"push",title:"Push",children:[(0,n.jsx)(tM,{}),(0,n.jsx)(tJ,{})]}),(0,n.jsxs)(th.Z,{eventKey:"stats",title:"Stats",children:[(0,n.jsx)(tM,{}),(0,n.jsx)(t1,{})]}),(0,n.jsxs)(th.Z,{eventKey:"log",title:"Log",children:[(0,n.jsx)(tM,{}),(0,n.jsx)(tD,{})]}),(0,n.jsxs)(th.Z,{eventKey:"messaging",title:"Messaging",children:[(0,n.jsx)(tW,{}),(0,n.jsx)(tw,{})]}),(0,n.jsx)(th.Z,{eventKey:"codec",title:"Codec",children:(0,n.jsx)(ty,{})})]})}):null};var aa=a(7978),an=a(4090),ai=a(5537);let as=()=>{let e=tu(),t=tm(e=>e.soraContents.reconnectingTrials);return(0,i.useEffect)(()=>{e(H())},[e]),(0,n.jsxs)(ai.Z,{delay:2e4,onClose:()=>{e(e5(!1))},children:[(0,n.jsx)(ai.Z.Header,{className:"bg-warning text-white",children:(0,n.jsx)("strong",{className:"me-auto",children:"Reconnect"})}),(0,n.jsx)(ai.Z.Body,{className:"bg-light",children:(0,n.jsxs)("p",{className:"text-break font-weight-bold mb-0",children:["Reconnecting... (trials ",t,")"]})})]})},ao=e=>{let t=tu(),a="error"===e.type?"bg-danger":"bg-info";return(0,n.jsxs)(ai.Z,{autohide:!0,delay:2e4,onClose:()=>{t(q(e.timestamp))},children:[(0,n.jsxs)(ai.Z.Header,{className:"".concat(a," text-white"),children:[(0,n.jsx)("strong",{className:"me-auto",children:e.title}),(0,n.jsx)("span",{children:u(e.timestamp)})]}),(0,n.jsx)(ai.Z.Body,{className:"bg-light",children:(0,n.jsx)("p",{className:"text-break font-weight-bold mb-0",children:e.message})})]})},al=()=>{let e=tm(e=>e.alertMessages),t=tm(e=>e.soraContents.reconnecting);return(0,n.jsxs)("div",{className:"alert-messages",children:[t?(0,n.jsx)(as,{}):null,e.map(e=>(0,n.jsx)(ao,{...e},e.timestamp))]})};var ar=a(8877),ac=a(5285);let ad=e=>{let t=d.x$[e.kind];return t?(0,n.jsx)(ar.Z,{placement:"top",overlay:(0,n.jsx)(ac.Z,{id:"popover-basic",children:(0,n.jsx)(ac.Z.Body,{style:{whiteSpace:"pre-wrap"},children:t.description})}),children:(0,n.jsx)(tR.Z,{children:e.children})}):(console.warn('Could not load description "'.concat(e.kind,'"')),(0,n.jsx)(tR.Z,{children:e.children}))},au=e=>(0,n.jsxs)("div",{className:"d-flex align-items-center",children:[e.label?(0,n.jsx)("p",{children:e.label}):null,(0,n.jsxs)("div",{className:"d-flex align-items-center border border-secondary rounded mx-1",children:[(0,n.jsx)("p",{id:e.id,className:"mx-2 p-1",children:e.text}),(0,n.jsx)("div",{className:"border-left border-secondary",children:(0,n.jsx)("button",{type:"button",className:"btn btn-sm btn-light",onClick:t=>{m(e.text),t.currentTarget.blur()},children:(0,n.jsx)(tv,{})})})]})]}),am=e=>{let{localVideo:t,connectionId:a,clientId:i}=e;return(0,n.jsxs)(n.Fragment,{children:[a?(0,n.jsx)(au,{id:t?"local-video-connection-id":void 0,label:"connectionID:",text:a}):null,null!=i&&a!==i?(0,n.jsx)(au,{id:t?"local-video-client-id":void 0,label:"clientID:",text:i}):null]})},ag=e=>{let t=tm(e=>e.soraContents.statsReport),[a,n]=(0,i.useState)([]),[s,o]=(0,i.useState)(null);return(0,i.useEffect)(()=>{(async()=>{if(void 0===e.getVideoTracks().find(e=>e))return;let a=t.filter(e=>{if("outbound-rtp"===e.type&&"video"===e.kind)return!0});if(0===a.length)return;let i=a.map(e=>{let a=t.find(t=>{if("codec"===t.type)return t.id===e.codecId});return void 0===a?{outboundRtpStats:e}:{codec:a,outboundRtpStats:e}});if(n(i.sort((e,t)=>void 0===e.outboundRtpStats.rid?1:void 0===t.outboundRtpStats.rid?-1:e.outboundRtpStats.rid.localeCompare(t.outboundRtpStats.rid))),null===s){let e=i.filter(e=>void 0!==e.outboundRtpStats.frameWidth).sort((e,t)=>void 0===e.outboundRtpStats.frameWidth?1:void 0===t.outboundRtpStats.frameWidth?-1:t.outboundRtpStats.frameWidth-e.outboundRtpStats.frameWidth);e.length>0&&o(e[0])}else{let e=i.find(e=>e.outboundRtpStats.rid===s.outboundRtpStats.rid);void 0!==e&&o(e)}})()},[t,e,s]),{trackStats:a,selected:s,setSelected:o}},ah=e=>{var t,a,i;let{stream:s}=e,{trackStats:o,selected:l,setSelected:r}=ag(s);return(0,n.jsx)("div",{className:"video-overlay",children:0===o.length?(0,n.jsx)("p",{children:"loading..."}):(0,n.jsxs)(n.Fragment,{children:[o.length>1&&(0,n.jsx)("div",{className:"d-flex gap-2",children:o.map(e=>(0,n.jsxs)("div",{className:e.outboundRtpStats.rid===(null==l?void 0:l.outboundRtpStats.rid)?"rid-selected":"rid",onClick:()=>r(e),onKeyDown:()=>r(e),children:["[",e.outboundRtpStats.rid,"]"]},e.outboundRtpStats.rid))}),l&&(0,n.jsxs)("table",{className:"table-video-capabilities",children:[(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"mimeType"}),(0,n.jsx)("td",{children:null===(t=l.codec)||void 0===t?void 0:t.mimeType})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"payloadType"}),(0,n.jsx)("td",{children:null===(a=l.codec)||void 0===a?void 0:a.payloadType})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"sdpFmtpLine"}),(0,n.jsx)("td",{children:null===(i=l.codec)||void 0===i?void 0:i.sdpFmtpLine})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"resolution"}),(0,n.jsxs)("td",{children:[l.outboundRtpStats.frameWidth,"x",l.outboundRtpStats.frameHeight]})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"fps"}),(0,n.jsx)("td",{children:void 0!==l.outboundRtpStats.framesPerSecond?Math.floor(l.outboundRtpStats.framesPerSecond):void 0})]})]})]})})};async function ap(e,t,a,n){let i=window.location.protocol,s="".concat(i,"//").concat(window.location.hostname,":").concat("https:"===i?"443":"3000","/").concat("https:"===i?"api":"");null!==e&&(s=e);let o="Sora_".concat(t,".").concat(a),l=await fetch(s,{method:"POST",body:JSON.stringify(n),headers:{Accept:"application/json","Content-Type":"application/json","x-sora-target":o},mode:"cors"}),r=await l.json();if(!l.ok){let e="POST ".concat(s," ").concat(l.status," (").concat(l.statusText,") target:").concat(o);throw r.error_type&&(e+=" error_type: ".concat(r.error_type)),Error(e)}return r}function av(e,t,a,n,i){let s={channel_id:t,recv_connection_id:a,rid:n};return i&&(s.send_connection_id=i),ap(e,"20201005","RequestRtpStream",s)}function ax(e,t,a,n){let i={channel_id:t,recv_connection_id:a};return n&&(i.send_connection_id=n),ap(e,"20201005","ResetRtpStream",i)}function aj(e,t,a,n,i,s){let o={channel_id:t,recv_connection_id:a,spotlight_focus_rid:n,spotlight_unfocus_rid:i};return s&&(o.send_connection_id=s),ap(e,"20211215","RequestSpotlightRid",o)}function af(e,t,a,n){let i={channel_id:t,recv_connection_id:a};return n&&(i.send_connection_id=n),ap(e,"20211215","ResetSpotlightRid",i)}let aC=e=>{let t=tm(e=>e.soraContents.sora),a=tm(e=>e.apiUrl),i=tm(e=>e.channelId),s=tu(),o=async()=>{if(null==t?void 0:t.connectionId)try{let n=await av(a,i,t.connectionId,e.rid);s(X("POST successed. response: ".concat(JSON.stringify(n))))}catch(e){e instanceof Error&&s(Q(e.message))}};return(0,n.jsx)("div",{className:"mx-1",children:(0,n.jsx)("input",{className:"btn btn-secondary",type:"button",name:"requestSimulcastRidTo".concat(e.rid.charAt(0).toUpperCase()+e.rid.slice(1)),defaultValue:"".concat(e.rid," rid"),onClick:o})})},ab=()=>{let e=(0,i.useRef)(null),t=(0,i.useRef)(null),a=tm(e=>e.soraContents.sora),s=tm(e=>e.channelId),o=tm(e=>e.apiUrl),l=tu();if(!(null==a?void 0:a.connectionId))return null;let r=async()=>{if(!(null==a?void 0:a.connectionId)||null===e.current||null===t.current)return;let n=e.current.value,i=t.current.value;try{let e=await aj(o,s,a.connectionId,n,i);l(X("POST successed. response: ".concat(JSON.stringify(e))))}catch(e){e instanceof Error&&l(Q(e.message))}};return(0,n.jsx)("div",{className:"mx-1",children:(0,n.jsxs)(tI.Z,{className:"form-inline",children:[(0,n.jsx)(tz.Z,{ref:e,children:d.I7.map(e=>""===e?null:(0,n.jsxs)("option",{value:e,children:["SpotlightFocusRid: ",e]},e))}),(0,n.jsx)(tz.Z,{ref:t,children:d.I7.map(e=>""===e?null:(0,n.jsxs)("option",{value:e,children:["SpotlightUnfocusRid: ",e,"\xa0\xa0\xa0"]},e))}),(0,n.jsx)("input",{className:"btn btn-secondary",type:"button",name:"requestSpotlightRid",defaultValue:"requestSpotlightRid",onClick:r})]})})},aS=()=>{let e=tm(e=>e.soraContents.sora),t=tm(e=>e.channelId),a=tm(e=>e.apiUrl),i=tu(),s=async()=>{if(null==e?void 0:e.connectionId)try{let n=await ax(a,t,e.connectionId);i(X("POST successed. response: ".concat(JSON.stringify(n))))}catch(e){e instanceof Error&&i(Q(e.message))}};return(0,n.jsx)("div",{className:"mx-1",children:(0,n.jsx)("input",{className:"btn btn-secondary",type:"button",name:"resetAllSimulcastRid",defaultValue:"reset rid",onClick:s})})},ay=()=>{let e=tm(e=>e.soraContents.sora),t=tm(e=>e.channelId),a=tm(e=>e.apiUrl),i=tu(),s=async()=>{if(null==e?void 0:e.connectionId)try{let n=await af(a,t,e.connectionId);i(X("POST successed. response: ".concat(JSON.stringify(n))))}catch(e){e instanceof Error&&i(Q(e.message))}};return(0,n.jsx)("div",{className:"mx-1",children:(0,n.jsx)("input",{className:"btn btn-secondary",type:"button",name:"resetAllSpotlightRid",defaultValue:"resetSpotlightRid",onClick:s})})},aN=e=>(0,n.jsxs)("div",{className:"d-flex align-items-center",children:[(0,n.jsx)("p",{children:"sessionID:"}),(0,n.jsxs)("div",{className:"d-flex align-items-center border border-secondary rounded mx-1",children:[(0,n.jsx)("p",{id:e.id,className:"mx-2 p-1",children:e.text}),(0,n.jsx)("div",{className:"border-left border-secondary",children:(0,n.jsx)("button",{type:"button",className:"btn btn-sm btn-light",onClick:t=>{m(e.text),t.currentTarget.blur()},children:(0,n.jsx)(tv,{})})})]})]}),ak=e=>{let{sessionId:t}=e;return(0,n.jsx)(aN,{id:"session-id",text:t})},aT=e=>{var t;let{displayResolution:a,stream:s,mute:o,audioOutput:l,setHeight:r}=e,c=(0,i.useRef)(null),d=v(a);return(0,i.useEffect)(()=>{let e=new ResizeObserver(e=>{e.filter(e=>{r(e.contentRect.height)})});return c.current&&(l&&s&&s.getAudioTracks().length>0&&c.current.setSinkId(l),e.observe(c.current)),()=>{e.disconnect()}},[r,l,s]),(0,i.useEffect)(()=>{c.current&&o&&(c.current.muted=!0)},[o]),(0,i.useEffect)(()=>{if(c.current&&s){let e;s.getVideoTracks().filter(t=>{e=t.enabled,t.enabled=!1}),c.current.onloadedmetadata=t=>{s.getVideoTracks().filter(t=>{void 0!==e&&(t.enabled=e)})},c.current.srcObject=s,l&&s.getAudioTracks().length>0&&c.current.setSinkId(l)}else c.current&&null===s&&(c.current.srcObject=null)},[s,l]),l&&(null===(t=c.current)||void 0===t?void 0:t.setSinkId)&&s&&s.getAudioTracks().length>0&&c.current.setSinkId(l),(0,n.jsx)("video",{id:e.localVideo?"local-video":void 0,autoPlay:!0,playsInline:!0,controls:!0,muted:o,ref:c,width:0(0,n.jsx)(aT,{...e})),aI="#CCCCCC";function aR(e,t,a){e.beginPath(),e.fillStyle=t,e.fillRect(0,a,25,10),e.closePath()}function aZ(e,t){let a=Math.ceil(t/12.5),n=t-10;aR(e,aI,n);for(let t=0;t{let t=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(0===e.stream.getAudioTracks().length)return;let a=new(window.AudioContext||window.webkitAudioContext),n=a.createMediaStreamSource(e.stream),i=a.createAnalyser();i.fftSize=2048;let s=new Uint8Array(i.frequencyBinCount);n.connect(i);let o=null;return function e(){o=requestAnimationFrame(e),i.getByteTimeDomainData(s);let a=Array.from(s),n=Math.max.apply(null,a)-128,l=t.current;if(null===l)return;let r=l.getContext("2d");null!==r&&(r.clearRect(0,0,25,l.height),r.save(),aZ(r,l.height),function(e,t,a){let n=Math.ceil(t*a/12.5);for(let a=0;a{a&&a.close(),o&&cancelAnimationFrame(o)}},[e.stream]),(0,n.jsx)("canvas",{width:25,height:e.height,className:"volume-visualizer",ref:t})},aP=e=>{let t=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=t.current;if(null===e)return;let a=e.getContext("2d");null!==a&&(a.clearRect(0,0,25,e.height),a.save(),aZ(a,e.height),a.restore())},[]),(0,n.jsx)("canvas",{width:25,height:e.height,className:"volume-visualizer",ref:t})},aV=i.memo(e=>e.micDevice&&0{let[e,t]=(0,i.useState)(0),a=tm(e=>e.audio),s=tm(e=>e.video),o=tm(e=>e.audioOutput),l=tm(e=>e.displayResolution),r=tm(e=>e.focusedSpotlightConnectionIds),c=tm(e=>e.soraContents.connectionId),d=tm(e=>e.soraContents.localMediaStream),u=tm(e=>e.micDevice),m=c&&r[c],g=tm(e=>e.mediaStats);return!1===a&&!1===s?null:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"d-flex",children:(0,n.jsxs)("div",{className:"position-relative d-flex flex-nowrap align-items-start video-wrapper overflow-y-hidden".concat(m?" spotlight-focused":""),children:[g&&d&&d.getVideoTracks().length>0&&(0,n.jsx)(ah,{stream:d}),(0,n.jsx)(aw,{stream:d,setHeight:t,audioOutput:o,displayResolution:l,localVideo:!0,mute:!0}),null!==d?(0,n.jsx)(aV,{micDevice:u,stream:d,height:e}):null]})})})},aA=()=>{let e=tm(e=>e.soraContents.connectionId),t=tm(e=>e.soraContents.clientId),a=tm(e=>e.soraContents.sessionId),i=tm(e=>e.simulcast),s=tm(e=>e.spotlight),o=tm(e=>e.role),l=tm(e=>e.soraContents.localMediaStream);return(0,n.jsx)("div",{className:"row my-1",children:(0,n.jsxs)("div",{className:"col-auto",children:[(0,n.jsxs)("div",{className:"video-status mb-1",children:[null!==a?(0,n.jsx)("div",{className:"d-flex align-items-center mb-1 video-status-inner",children:(0,n.jsx)(ak,{sessionId:a})}):null,null!==e||null!==t?(0,n.jsx)("div",{className:"d-flex align-items-center mb-1 video-status-inner",children:(0,n.jsx)(am,{connectionId:e,clientId:t,localVideo:!0})}):null,null!==e&&"true"!==s&&"true"===i&&"sendonly"!==o?(0,n.jsxs)("div",{className:"d-flex align-items-center mb-1 video-status-inner",children:[(0,n.jsx)(ad,{kind:"changeAllRecvStream",children:"change all:"}),(0,n.jsx)(aC,{rid:"r0"}),(0,n.jsx)(aC,{rid:"r1"}),(0,n.jsx)(aC,{rid:"r2"}),(0,n.jsx)(aS,{})]}):null,null!==e&&"true"===s?(0,n.jsxs)("div",{className:"d-flex align-items-center mb-1 video-status-inner",children:[(0,n.jsx)(ab,{}),(0,n.jsx)(ay,{})]}):null]}),null!==l&&"recvonly"!==o?(0,n.jsx)(aD,{}):null]})})};function aF(e,t,a){if(null===t)return;let n=[];return"video"===a?n=t.getVideoTracks().map(e=>e.id):"audio"===a&&(n=t.getAudioTracks().map(e=>e.id)),e.find(e=>"inbound-rtp"===e.type&&"kind"in e&&"trackIdentifier"in e&&!!(e.kind===a&&n.includes(e.trackIdentifier)))}let aO=e=>{let t=tm(e=>e.soraContents.statsReport),a=tm(e=>e.soraContents.prevStatsReport),i=aF(t,e.stream,e.type),s=aF(a,e.stream,e.type);if(void 0===i||void 0===i.jitterBufferDelay||void 0===i.jitterBufferEmittedCount)return null;let o=i.jitterBufferDelay,l=i.jitterBufferEmittedCount;void 0!==s&&void 0!==s.jitterBufferDelay&&void 0!==s.jitterBufferEmittedCount&&(o=i.jitterBufferDelay-s.jitterBufferDelay,l=i.jitterBufferEmittedCount-s.jitterBufferEmittedCount);let r=Math.floor(o/l*1e3),c="normal-jitter-buffer";return 500{let t=tm(e=>e.soraContents.statsReport),a=tm(e=>e.soraContents),[n,s]=(0,i.useState)(null);return(0,i.useEffect)(()=>{(async()=>{var n;let i,o;if(!(null===(n=a.sora)||void 0===n?void 0:n.pc))return;let l=e.getVideoTracks().find(e=>e);if(void 0===l)return;let r=await a.sora.pc.getReceivers().find(e=>e.track.id===l.id);if(void 0!==r){for(let e of(await r.getStats())){let[t,a]=e;if(a.codecId){i=a.codecId;break}}if(void 0!==i){for(let e of t)"codec"===e.type&&i===e.id&&(o=e);o&&s({codec:o,videoTrackStats:{width:l.getSettings().width,height:l.getSettings().height,frameRate:void 0!==l.getSettings().frameRate?Math.floor(l.getSettings().frameRate||0):void 0}})}}})()},[t,e,a]),{trackStats:n}},aB=e=>{let{stream:t}=e,{trackStats:a}=aH(t);return(0,n.jsx)("div",{className:"video-overlay",children:null===a?(0,n.jsx)("p",{children:"loading..."}):(0,n.jsxs)("table",{className:"table-video-capabilities",children:[(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"mimeType"}),(0,n.jsx)("td",{children:a.codec.mimeType})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"payloadType"}),(0,n.jsx)("td",{children:a.codec.payloadType})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"sdpFmtpLine"}),(0,n.jsx)("td",{children:a.codec.sdpFmtpLine})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"resolution"}),(0,n.jsx)("td",{children:void 0===a.videoTrackStats.width||void 0===a.videoTrackStats.height?"undefined":"".concat(a.videoTrackStats.width,"x").concat(a.videoTrackStats.height)})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"fps"}),(0,n.jsx)("td",{children:void 0===a.videoTrackStats.frameRate?"undefined":a.videoTrackStats.frameRate})]})]})})},aU=e=>{let t=tm(e=>e.soraContents.sora),a=tm(e=>e.apiUrl),i=tm(e=>e.channelId),s=tu(),o=async()=>{if(null==t?void 0:t.connectionId)try{let n=await av(a,i,t.connectionId,e.rid,e.sendConnectionId);s(X("POST successed. response: ".concat(JSON.stringify(n))))}catch(e){e instanceof Error&&s(Q(e.message))}};return(0,n.jsx)("input",{className:"btn btn-secondary btn-sm mx-1",type:"button",name:"requestSimulcastRidTo".concat(e.rid.charAt(0).toUpperCase()+e.rid.slice(1)),defaultValue:"".concat(e.rid," rid"),onClick:o})},aE=e=>{let t=(0,i.useRef)(null),a=(0,i.useRef)(null),s=tm(e=>e.soraContents.sora),o=tm(e=>e.channelId),l=tm(e=>e.apiUrl),r=tu();if(!(null==s?void 0:s.connectionId))return null;let c=async()=>{if(!(null==s?void 0:s.connectionId)||null===t.current||null===a.current)return;let n=t.current.value,i=a.current.value;try{let t=await aj(l,o,s.connectionId,n,i,e.sendConnectionId);r(X("POST successed. response: ".concat(JSON.stringify(t))))}catch(e){e instanceof Error&&r(Q(e.message))}};return(0,n.jsx)("div",{className:"mx-1",children:(0,n.jsxs)(tI.Z,{className:"form-inline",children:[(0,n.jsx)(tz.Z,{ref:t,children:d.I7.map(e=>""===e?null:(0,n.jsxs)("option",{value:e,children:["SpotlightFocusRid: ",e]},e))}),(0,n.jsx)(tz.Z,{ref:a,children:d.I7.map(e=>""===e?null:(0,n.jsxs)("option",{value:e,children:["SpotlightUnfocusRid: ",e,"\xa0\xa0\xa0"]},e))}),(0,n.jsx)("input",{className:"btn btn-secondary",type:"button",name:"requestSpotlightRidBySendConnectionId",defaultValue:"requestSpotlightRid",onClick:c})]})})},a_=e=>{let t=tm(e=>e.soraContents.sora),a=tm(e=>e.channelId),i=tm(e=>e.apiUrl),s=tu(),o=async()=>{if(null==t?void 0:t.connectionId)try{let n=await ax(i,a,t.connectionId,e.sendConnectionId);s(X("POST successed. response: ".concat(JSON.stringify(n))))}catch(e){e instanceof Error&&s(Q(e.message))}};return(0,n.jsx)("input",{className:"btn btn-secondary btn-sm mx-1",type:"button",name:"resetRtpStream",defaultValue:"reset rid",onClick:o})},aL=e=>{let t=tm(e=>e.soraContents.sora),a=tm(e=>e.channelId),i=tm(e=>e.apiUrl),s=tu(),o=async()=>{if(null==t?void 0:t.connectionId)try{let n=await af(i,a,t.connectionId,e.sendConnectionId);s(X("POST successed. response: ".concat(JSON.stringify(n))))}catch(e){e instanceof Error&&s(Q(e.message))}};return(0,n.jsx)("input",{className:"btn btn-secondary mx-1",type:"button",name:"resetSpotlightRid",defaultValue:"resetSpotlightRid",onClick:o})};function aJ(e,t){if(null===t)return[];let a=t.getTracks().map(e=>e.id),n=[];for(let t of e)(!t.id||t.id.match(/^RTCMediaStreamTrack/))&&"trackIdentifier"in t&&t.trackIdentifier&&a.includes(t.trackIdentifier)&&n.push(t);return n}let az=e=>{let t=tm(e=>e.showStats),a=tm(e=>e.soraContents.statsReport),i=tm(e=>e.soraContents.prevStatsReport);if(!t)return null;let s=aJ(a,e.stream),o=aJ(i,e.stream);return(0,n.jsx)(n.Fragment,{children:s.map(e=>{let t=0,a=0,i=o.find(t=>e.id===t.id);return i&&(t=e.jitterBufferDelay-i.jitterBufferDelay,a=e.jitterBufferEmittedCount-i.jitterBufferEmittedCount),(0,n.jsx)("div",{children:(0,n.jsxs)("ul",{className:"mediastream-stats-report",children:[Object.entries(e).map(e=>{let[t,a]=e;return(0,n.jsxs)("li",{children:[(0,n.jsxs)("strong",{children:[t,":"]})," ",a]},t)}),(0,n.jsxs)("li",{children:[(0,n.jsx)("strong",{children:"[jitterBufferDelay/jitterBufferEmittedCount_in_ms]"})," ",Math.floor(t/a*1e3)]})]})},e.id)})})},aG=e=>{let{client:t}=e,{mediaStream:a,connectionId:s,clientId:o}=t,[l,r]=(0,i.useState)(0),c=tm(e=>e.audioOutput),d=tm(e=>e.displayResolution),u=tm(e=>e.focusedSpotlightConnectionIds),m=tm(e=>e.multistream),g=tm(e=>e.mute),h=tm(e=>e.simulcast),p=tm(e=>e.spotlight),v=s&&u[s],x=tm(e=>e.mediaStats);return(0,n.jsxs)("div",{className:"col-auto",children:[(0,n.jsxs)("div",{className:"video-status",children:[(0,n.jsxs)("div",{className:"d-flex align-items-center mb-1 video-status-inner",children:[(0,n.jsx)(am,{connectionId:s,clientId:o}),(0,n.jsx)(aO,{type:"audio",stream:a}),(0,n.jsx)(aO,{type:"video",stream:a})]}),(0,n.jsxs)("div",{className:"d-flex align-items-center mb-1 video-status-inner",children:["true"!==p&&"true"===m&&"true"===h?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aU,{rid:"r0",sendConnectionId:s}),(0,n.jsx)(aU,{rid:"r1",sendConnectionId:s}),(0,n.jsx)(aU,{rid:"r2",sendConnectionId:s}),(0,n.jsx)(a_,{sendConnectionId:s})]}):null,"true"===p&&"true"===m&&"true"===h?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aE,{sendConnectionId:s}),(0,n.jsx)(aL,{sendConnectionId:s})]}):null]})]}),(0,n.jsxs)("div",{className:"d-flex flex-wrap align-items-start overflow-y-hidden",children:[(0,n.jsxs)("div",{className:"position-relative d-flex flex-nowrap align-items-start video-wrapper".concat(v?" spotlight-focused":""),children:[x&&a.getVideoTracks().length>0&&(0,n.jsx)(aB,{stream:a}),(0,n.jsx)(aw,{stream:a,setHeight:r,mute:g,audioOutput:c,displayResolution:d}),(0,n.jsx)(aV,{micDevice:!0,stream:a,height:l})]}),(0,n.jsx)(az,{stream:a})]})]})},aW=()=>{let e=tm(e=>e.soraContents.remoteClients);return(0,n.jsx)("div",{className:"row my-2",children:e.map(e=>(0,n.jsx)(aG,{client:e},e.connectionId))})},aK=()=>{let e=tm(e=>e.aspectRatio),t=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"aspectRatio",children:[(0,n.jsx)(ad,{kind:"aspectRatio",children:"aspectRatio:"}),(0,n.jsx)(tz.Z,{name:"aspectRatio",value:e,onChange:e=>{g(e.target.value,d.Ii)&&t($(e.target.value))},children:d.Ii.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},aq=()=>{let e=tm(e=>e.audioBitRate),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"audioBitRate",children:[(0,n.jsx)(ad,{kind:"audioBitRate",children:"audioBitRate:"}),(0,n.jsx)(tz.Z,{name:"audioBitRate",value:e,onChange:e=>{g(e.target.value,d.xR)&&a(ee(e.target.value))},disabled:t,children:d.xR.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},aQ=()=>{let e=tm(e=>e.audioCodecType),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"audioBitRate",children:[(0,n.jsx)(ad,{kind:"audioCodecType",children:"audioCodecType:"}),(0,n.jsx)(tz.Z,{name:"audioCodecType",value:e,onChange:e=>{g(e.target.value,d.o1)&&a(et(e.target.value))},disabled:t,children:d.o1.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},aX=()=>{let e=tm(e=>e.audioContentHint),t=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"audioContentHint",children:[(0,n.jsx)(ad,{kind:"audioContentHint",children:"audioContentHint:"}),(0,n.jsx)(tz.Z,{name:"audioContentHint",value:e,onChange:e=>{g(e.target.value,d.nT)&&t(ea(e.target.value))},children:d.nT.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})};var a$=a(8765);let aY=e=>{let{children:t,kind:a,checked:i,onChange:s,disabled:o}=e,l=d.x$[a];return l?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a$.Z,{type:"switch",checked:i,onChange:s,disabled:o}),(0,n.jsx)(ar.Z,{placement:"top",overlay:(0,n.jsx)(ac.Z,{id:"popover-basic",children:(0,n.jsx)(ac.Z.Body,{style:{whiteSpace:"pre-wrap"},children:l.description})}),children:(0,n.jsx)(tR.Z,{children:t})})]}):(console.warn('Could not load description "'.concat(a,'"')),(0,n.jsx)(tR.Z,{children:t}))},a0=()=>{let e=tm(e=>e.audio),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"audio",children:(0,n.jsx)(aY,{kind:"audio",checked:e,onChange:e=>{a(Y(e.target.checked))},disabled:t,children:"audio"})})},a1=()=>{let e=tm(e=>e.audioInput),t=tm(e=>e.audioInputDevices),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"audioInput",children:[(0,n.jsx)(ad,{kind:"audioInput",children:"audioInput:"}),(0,n.jsxs)(tz.Z,{name:"audioInput",value:e,onChange:e=>{a(en(e.target.value)),a(E())},disabled:0===t.length,children:[(0,n.jsx)("option",{value:"",children:"未指定"}),t.map(e=>(0,n.jsx)("option",{value:e.deviceId,children:e.label},e.deviceId))]})]})},a2=()=>{let e=tm(e=>e.audioOutput),t=tm(e=>e.audioOutputDevices),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"audioOutput",children:[(0,n.jsx)(ad,{kind:"audioOutput",children:"audioOutput:"}),(0,n.jsxs)(tz.Z,{name:"audioOutput",value:e,onChange:e=>{a(ei(e.target.value))},disabled:0===t.length,children:[(0,n.jsx)("option",{value:"",children:"未指定"}),t.map(e=>(0,n.jsx)("option",{value:e.deviceId,children:e.label},e.deviceId))]})]})},a5=()=>{let e=tm(e=>e.enabledAudioStreamingLanguageCode),t=tm(e=>e.audioStreamingLanguageCode),a=y(tm(e=>e.soraContents.connectionStatus)),i=tu();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledAudioStreamingLanguageCode",children:(0,n.jsx)(aY,{kind:"audioStreamingLanguageCode",checked:e,onChange:e=>{i(eP(e.target.checked))},disabled:a,children:"audioStreamingLanguageCode"})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"audioStreamingLanguageCode",children:(0,n.jsx)(tZ.Z,{className:"flex-fill w-500",type:"text",placeholder:"audioStreamingLanguageCodeを指定",value:t,onChange:e=>{i(eM(e.target.value))},disabled:a})})})}):null]})},a6=()=>{let e=tm(e=>e.audioTrack),t=tu();return(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"audioTrack",children:(0,n.jsx)(aY,{kind:"audioTrack",checked:e,onChange:e=>{t(es(e.target.checked))},disabled:!1,children:"Enable audio track"})})},a4=()=>{let e=tm(e=>e.autoGainControl),t=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"autoGainControl",children:[(0,n.jsx)(ad,{kind:"autoGainControl",children:"autoGainControl:"}),(0,n.jsx)(tz.Z,{name:"autoGainControl",value:e,onChange:e=>{g(e.target.value,d.iN)&&t(eo(e.target.value))},children:d.iN.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},a9=()=>{let e=tm(e=>e.blurRadius),t=tm(e=>e.mediaType),a=tu(),i="getUserMedia"!==t;return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"blurRadius",children:[(0,n.jsx)(ad,{kind:"blurRadius",children:"blurRadius:"}),(0,n.jsx)(tz.Z,{value:e,onChange:e=>{g(e.target.value,d.G_)&&a(el(e.target.value))},disabled:i,children:d.G_.map(e=>(0,n.jsx)("option",{suppressHydrationWarning:!0,value:e,children:""===e||i?"未指定":e},e))})]})},a3=()=>{let e=tm(e=>e.enabledBundleId),t=tm(e=>e.bundleId),a=y(tm(e=>e.soraContents.connectionStatus)),i=tu();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledBundleId",children:(0,n.jsx)(aY,{kind:"bundleId",checked:e,onChange:e=>{i(ef(e.target.checked))},disabled:a,children:"bundleId"})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"bundleId",children:(0,n.jsx)(tZ.Z,{className:"flex-fill w-500",type:"text",placeholder:"bundleIdを指定",value:t,onChange:e=>{i(er(e.target.value))},disabled:a})})})}):null]})},a8=()=>{let e=tm(e=>e.cameraDevice),t=tm(e=>e.soraContents.connectionStatus),a=tm(e=>e.soraContents.sora),i=tm(e=>e.video),s=!(a&&"connected"===t?a.video:i),o=tu();return(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"cameraDevice",children:(0,n.jsx)(aY,{kind:"cameraDevice",checked:e,onChange:e=>{o(J(e.target.checked))},disabled:s,children:"Enable camera device"})})},a7=()=>{let e=tm(e=>e.channelId),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"channelId",children:[(0,n.jsx)(ad,{kind:"channelId",children:"channelId:"}),(0,n.jsx)(tZ.Z,{type:"text",placeholder:"ChannelIdを指定",value:e,onChange:e=>{a(ec(e.target.value))},disabled:t})]})},ne=()=>{let e=tm(e=>e.enabledClientId),t=tm(e=>e.clientId),a=y(tm(e=>e.soraContents.connectionStatus)),i=tu();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledClientId",children:(0,n.jsx)(aY,{kind:"clientId",checked:e,onChange:e=>{i(eC(e.target.checked))},disabled:a,children:"clientId"})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"clientId",children:(0,n.jsx)(tZ.Z,{className:"flex-fill w-500",type:"text",placeholder:"ClientIdを指定",value:t,onChange:e=>{i(ed(e.target.value))},disabled:a})})})}):null]})},nt=()=>{let e=tm(e=>e.soraContents.connectionStatus),t=tu();return(0,n.jsx)("div",{className:"col-auto mb-1",children:(0,n.jsx)("input",{className:"btn btn-secondary",type:"button",name:"connect",defaultValue:"connect",onClick:()=>{t(O())},disabled:"disconnecting"===e||"connecting"===e||"initializing"===e})})},na=e=>{let t=tm(e=>e.ignoreDisconnectWebSocket),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"ignoreDisconnectWebSocket",children:[(0,n.jsx)(ad,{kind:"ignoreDisconnectWebSocket",children:"ignoreDisconnectWebSocket:"}),(0,n.jsx)(tz.Z,{name:"ignoreDisconnectWebSocket",value:t,onChange:e=>{g(e.target.value,d.kt)&&a(eF(e.target.value))},disabled:e.disabled,children:d.kt.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nn=e=>{let t=tm(e=>e.dataChannelSignaling),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"dataChannelSignaling",children:[(0,n.jsx)(ad,{kind:"dataChannelSignaling",children:"dataChannelSignaling:"}),(0,n.jsx)(tz.Z,{name:"dataChannelSignaling",value:t,onChange:e=>{g(e.target.value,d.l9)&&a(em(e.target.value))},disabled:e.disabled,children:d.l9.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},ni=()=>{let e=tm(e=>e.enabledDataChannel),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledDataChannel",children:(0,n.jsx)(a$.Z,{type:"switch",name:"enabledDataChannel",label:"dataChannel",checked:e,onChange:e=>{a(eS(e.target.checked))},disabled:t})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsxs)(aa.Z,{xs:"auto",children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)(nn,{disabled:t})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(na,{disabled:t})})]})})}):null]})},ns=()=>{let e=tm(e=>e.enabledDataChannels),t=tm(e=>e.dataChannels),a=y(tm(e=>e.soraContents.connectionStatus)),i=tu(),s=JSON.stringify([{label:"#devtools",maxPacketLifeTime:10,ordered:!0,compress:!1,direction:"sendrecv"}],null,2);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledDataChannels",children:(0,n.jsx)(aY,{kind:"dataChannels",checked:e,onChange:e=>{i(eb(e.target.checked))},disabled:a,children:"dataChannels"})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsxs)(tI.Z,{className:"form-inline position-relative",controlId:"dataChannels",children:[(0,n.jsx)(tZ.Z,{className:"flex-fill",as:"textarea",placeholder:"dataChannelsを指定\n(例)\n".concat(s),value:t,onChange:e=>{i(eu(e.target.value))},rows:12,cols:100,disabled:a}),(0,n.jsx)(tG.Z,{className:"btn-load-template",type:"button",variant:"outline-secondary",size:"sm",onClick:()=>i(eu(s)),children:"load template"})]})})}):null]})},no=()=>{let e=tm(e=>e.soraContents.connectionStatus),t=tu();return(0,n.jsx)("div",{className:"col-auto mb-1",children:(0,n.jsx)("input",{className:"btn btn-secondary",type:"button",name:"disconnect",defaultValue:"disconnect",onClick:()=>{t(B())},disabled:"disconnecting"===e||"connecting"===e||"initializing"===e})})};var nl=a(9383),nr=a(5053),nc=a(2103),nd=a(8305);let nu=[{label:"未指定",value:""},{label:"144p",value:"256x144"},{label:"240p",value:"320x240"},{label:"360p",value:"640x360"},{label:"480p",value:"720x480"},{label:"540p",value:"960x540"},{label:"720p",value:"1280x720"},{label:"1080p",value:"1920x1080"},{label:"1440p",value:"2560x1440"},{label:"2160p",value:"3840x2160"}],nm=e=>{let{label:t,value:a}=e,i=tu();return(0,n.jsxs)(nl.Z.Item,{as:"button",onClick:()=>i(ev(a)),children:[t," ",""!==a&&"(".concat(a,")")]})},ng=()=>{let e=tm(e=>e.displayResolution),t=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"displayResolution",children:[(0,n.jsx)(ad,{kind:"displayResolution",children:"displayResolution:"}),(0,n.jsxs)(nr.Z,{children:[(0,n.jsx)(nc.Z.Control,{className:"form-display-resolution",type:"text",value:e,onChange:e=>{t(ev(e.target.value))},placeholder:"未指定"}),(0,n.jsx)(nd.Z,{variant:"outline-secondary form-template-dropdown",title:"",align:"end",children:nu.map(e=>{let{label:t,value:a}=e;return(0,n.jsx)(nm,{label:t,value:a},a)})})]})]})},nh=()=>{let e=tu(),t=tm(e=>e.soraContents.connectionStatus),a=tm(e=>e.soraContents.sora),i="recvonly"===tm(e=>e.role)||null!==a||y(t);return(0,n.jsx)("div",{className:"col-auto mb-1",children:(0,n.jsx)("input",{className:"btn btn-outline-secondary",type:"button",name:"media_access",defaultValue:"dispose media",onClick:()=>{e(F())},disabled:i})})};var np=a(9461);let nv=()=>{let[e,t]=(0,i.useState)(!1),a=tm(e=>e.e2ee),s=y(tm(e=>e.soraContents.connectionStatus)),o=tu();return(0,i.useEffect)(()=>{a&&t(!1)},[a]),(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"e2ee",children:[(0,n.jsx)(aY,{kind:"e2ee",checked:a,onChange:e=>{e.target.checked&&t(!0),o(_(e.target.checked))},disabled:s,children:"e2ee"}),e?(0,n.jsx)(np.Z,{className:"spinner-status",variant:"primary",animation:"border",role:"status"}):null]})})})},nx=()=>{let e=tm(e=>e.echoCancellation),t=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"echoCancellation",children:[(0,n.jsx)(ad,{kind:"echoCancellation",children:"echoCancellation:"}),(0,n.jsx)(tz.Z,{name:"echoCancellation",value:e,onChange:e=>{g(e.target.value,d.PS)&&t(ex(e.target.value))},children:d.PS.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nj=()=>{let e=tm(e=>e.echoCancellationType),t=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"echoCancellationType",children:[(0,n.jsx)(ad,{kind:"echoCancellationType",children:"echoCancellationType:"}),(0,n.jsx)(tz.Z,{name:"echoCancellationType",value:e,onChange:e=>{g(e.target.value,d.cJ)&&t(ej(e.target.value))},children:d.cJ.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nf=()=>{let e=tm(e=>e.facingMode),t=tm(e=>e.mediaType),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"facingMode",children:[(0,n.jsx)(ad,{kind:"facingMode",children:"facingMode:"}),(0,n.jsx)(tz.Z,{name:"facingMode",value:e,onChange:e=>{g(e.target.value,d.pT)&&a(eD(e.target.value))},disabled:"getUserMedia"!==t,children:d.pT.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nC=()=>{let e=tm(e=>e.mediaType),t=tm(e=>e.fakeVolume),a=tu();return"fakeMedia"!==e?null:(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"fakeVolume",children:[(0,n.jsx)(ad,{kind:"fakeVolume",children:"fakeVolume:"}),(0,n.jsx)(nc.Z.Range,{min:"0",max:"1",step:"0.25",value:t,onChange:e=>{a(eV(e.target.value))}})]})},nb=()=>{let e=tm(e=>e.enabledForwardingFilter),t=tm(e=>e.forwardingFilter),a=y(tm(e=>e.soraContents.connectionStatus)),i=tu();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledForwardingFilter",children:(0,n.jsx)(aY,{kind:"forwardingFilter",checked:e,onChange:e=>{i(ey(e.target.checked))},disabled:a,children:"forwardingFilter"})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"forwardingFilter",children:(0,n.jsx)(tZ.Z,{className:"flex-fill",as:"textarea",placeholder:"forwardingFilterを指定",value:t,onChange:e=>{i(eY(e.target.value))},rows:10,cols:100,disabled:a})})})}):null]})},nS=[{label:"未指定",value:""},{label:"60",value:"60"},{label:"30",value:"30"},{label:"24",value:"24"},{label:"20",value:"20"},{label:"15",value:"15"},{label:"10",value:"10"},{label:"5",value:"5"}],ny=e=>{let{label:t,value:a}=e,i=tu();return(0,n.jsx)(nl.Z.Item,{as:"button",onClick:()=>i(eA(a)),children:t})},nN=()=>{let e=tm(e=>e.frameRate),t=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"frameRate",children:[(0,n.jsx)(ad,{kind:"frameRate",children:"frameRate:"}),(0,n.jsxs)(nr.Z,{children:[(0,n.jsx)(nc.Z.Control,{className:"form-frame-rate",type:"text",value:e,onChange:e=>{t(eA(e.target.value))},placeholder:"未指定"}),(0,n.jsx)(nd.Z,{variant:"outline-secondary form-template-dropdown",title:"",align:"end",children:nS.map(e=>{let{label:t,value:a}=e;return(0,n.jsx)(ny,{label:t,value:a},a)})})]})]})},nk=()=>{let e=tm(e=>e.lightAdjustment),t=tm(e=>e.mediaType),a=tu(),i="getUserMedia"!==t;return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"lightAdjustment",children:[(0,n.jsx)(ad,{kind:"lightAdjustment",children:"lightAdjustment:"}),(0,n.jsx)(tz.Z,{value:e,onChange:e=>{g(e.target.value,d.Xv)&&a(eO(e.target.value))},disabled:i,children:d.Xv.map(e=>(0,n.jsx)("option",{suppressHydrationWarning:!0,value:e,children:""===e||i?"未指定":e},e))})]})},nT=()=>{let e=tm(e=>e.mediaProcessorsNoiseSuppression),t=tm(e=>e.mediaType),a=tu();return(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"mediaProcessorsNoiseSuppression",children:(0,n.jsx)(aY,{kind:"mediaProcessorsNoiseSuppression",checked:e,onChange:e=>{a(eU(e.target.checked))},disabled:"getUserMedia"!==t,children:"mediaProcessorsNoiseSuppression"})})},nw=()=>{let e=tm(e=>e.mediaStats),t=tu();return(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"mediaStats",children:(0,n.jsx)(aY,{kind:"mediaStats",checked:e,onChange:e=>{t(eE(e.target.checked))},disabled:!1,children:"Show media stats"})})},nI=e=>{let{label:t,disabled:a,onChange:i,mediaType:s}=e;return(0,n.jsx)(a$.Z,{type:"radio",inline:!0,id:t,label:t,value:t,checked:s===t,onChange:i,disabled:a})},nR=()=>{let[e,t]=(0,i.useState)(!1),a=void 0!==window.CropTarget,s=tm(e=>e.soraContents.connectionStatus),o=tm(e=>e.soraContents.localMediaStream),l=tm(e=>e.mediaType),r=null!==o||y(s),c=tu(),u=e=>{g(e.target.value,d.w_)&&c(e_(e.target.value))};return(0,i.useEffect)(()=>{t(!0)},[]),(0,n.jsxs)(tI.Z,{className:"form-inline flex-wrap",children:[(0,n.jsx)(ad,{kind:"mediaType",children:"mediaType:"}),(0,n.jsx)(nI,{label:"getUserMedia",mediaType:l,disabled:r,onChange:u}),(0,n.jsx)(nI,{label:"getDisplayMedia",mediaType:l,disabled:r,onChange:u}),(0,n.jsx)(nI,{label:"fakeMedia",mediaType:l,disabled:r,onChange:u}),e&&(0,n.jsx)(nI,{label:"mediacaptureRegion",mediaType:l,disabled:r||!a,onChange:u})]})},nZ=()=>{let e=tm(e=>e.enabledMetadata),t=tm(e=>e.metadata),a=y(tm(e=>e.soraContents.connectionStatus)),i=tu();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledMetadata",children:(0,n.jsx)(aY,{kind:"metadata",checked:e,onChange:e=>{i(eN(e.target.checked))},disabled:a,children:"metadata"})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"metadata",children:(0,n.jsx)(tZ.Z,{className:"flex-fill",as:"textarea",placeholder:"Metadataを指定",value:t,onChange:e=>{i(eL(e.target.value))},rows:10,cols:100,disabled:a})})})}):null]})},nM=()=>{let e=tm(e=>e.micDevice),t=tm(e=>e.soraContents.connectionStatus),a=tm(e=>e.soraContents.sora),i=tm(e=>e.audio),s=!(a&&"connected"===t?a.audio:i),o=tu();return(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"micDevice",children:(0,n.jsx)(aY,{kind:"micDevice",checked:e,onChange:e=>{o(L(e.target.checked))},disabled:s,children:"Enable mic device"})})},nP=()=>{let e=tm(e=>e.multistream),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"multistream",children:[(0,n.jsx)(ad,{kind:"multistream",children:"multistream:"}),(0,n.jsx)(tz.Z,{name:"multistream",value:e,onChange:e=>{g(e.target.value,d.u9)&&a(eJ(e.target.value))},disabled:t,children:d.u9.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nV=()=>{let e=tm(e=>e.noiseSuppression),t=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"noiseSuppression",children:[(0,n.jsx)(ad,{kind:"noiseSuppression",children:"noiseSuppression:"}),(0,n.jsx)(tz.Z,{name:"noiseSuppression",value:e,onChange:e=>{g(e.target.value,d.ad)&&t(ez(e.target.value))},children:d.ad.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nD=()=>{let e=tm(e=>e.reconnect),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"reconnect",children:(0,n.jsx)(aY,{kind:"reconnect",checked:e,onChange:e=>{a(eW(e.target.checked))},disabled:t,children:"reconnect"})})})})},nA=()=>{let e=tu();return(0,n.jsx)("div",{className:"col-auto mb-1",children:(0,n.jsx)("input",{className:"btn btn-outline-secondary",type:"button",name:"update-devices",defaultValue:"update-devices",onClick:()=>{e(U())}})})},nF=()=>{let e=tu(),t=tm(e=>e.soraContents.connectionStatus),a=tm(e=>e.soraContents.sora),i="recvonly"===tm(e=>e.role)||null!==a||y(t);return(0,n.jsx)("div",{className:"col-auto mb-1",children:(0,n.jsx)("input",{className:"btn btn-outline-secondary",type:"button",name:"media_access",defaultValue:"request media",onClick:()=>{e(A())},disabled:i})})},nO=()=>{let e=tm(e=>e.resizeMode),t=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"resizeMode",children:[(0,n.jsx)(ad,{kind:"resizeMode",children:"resizeMode:"}),(0,n.jsx)(tz.Z,{name:"resizeMode",value:e,onChange:e=>{g(e.target.value,d.L4)&&t(eK(e.target.value))},children:d.L4.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nH=[{label:"未指定",value:""},{label:"144p",value:"256x144"},{label:"240p",value:"320x240"},{label:"360p",value:"640x360"},{label:"480p",value:"720x480"},{label:"540p",value:"960x540"},{label:"720p",value:"1280x720"},{label:"1080p",value:"1920x1080"},{label:"1440p",value:"2560x1440"},{label:"2160p",value:"3840x2160"}],nB=e=>{let{label:t,value:a}=e,i=tu();return(0,n.jsxs)(nl.Z.Item,{as:"button",onClick:()=>i(eQ(a)),children:[t," ",""!==a&&"(".concat(a,")")]})},nU=()=>{let e=tm(e=>e.resolution),t=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"resolution",children:[(0,n.jsx)(ad,{kind:"resolution",children:"resolution:"}),(0,n.jsxs)(nr.Z,{children:[(0,n.jsx)(nc.Z.Control,{className:"form-resolution",type:"text",value:e,onChange:e=>{t(eQ(e.target.value))},placeholder:"未指定"}),(0,n.jsx)(nd.Z,{variant:"outline-secondary form-template-dropdown",title:"",align:"end",children:nH.map(e=>{let{label:t,value:a}=e;return(0,n.jsx)(nB,{label:t,value:a},a)})})]})]})},nE=()=>{let e=tm(e=>e.role),t=tm(e=>e.soraContents.connectionStatus),a=null!==tm(e=>e.soraContents.localMediaStream)||y(t),i=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"role",children:[(0,n.jsx)(ad,{kind:"role",children:"role:"}),(0,n.jsx)(tz.Z,{name:"role",value:e,onChange:e=>{g(e.target.value,d.K$)&&i(eq(e.target.value))},disabled:a,children:d.K$.map(e=>(0,n.jsx)("option",{value:e,children:e},e))})]})},n_=()=>{let e=tm(e=>e.enabledSignalingNotifyMetadata),t=tm(e=>e.signalingNotifyMetadata),a=y(tm(e=>e.soraContents.connectionStatus)),i=tu();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledSignalingNotifyMetadata",children:(0,n.jsx)(aY,{kind:"signalingNotifyMetadata",checked:e,onChange:e=>{i(ek(e.target.checked))},disabled:a,children:"signalingNotifyMetadata"})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"signalingNotifyMetadata",children:(0,n.jsx)(tZ.Z,{className:"flex-fill",as:"textarea",placeholder:"signalingNotifyMetadataを指定",value:t,onChange:e=>{i(eX(e.target.value))},rows:10,cols:100,disabled:a})})})}):null]})},nL=()=>{let e=tm(e=>e.enabledSignalingUrlCandidates),t=tm(e=>e.signalingUrlCandidates),a=y(tm(e=>e.soraContents.connectionStatus)),i=tu();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",xs:"auto",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledSignalingUrlCandidates",children:(0,n.jsx)(aY,{kind:"signalingUrlCandidates",checked:e,onChange:e=>{i(eT(e.target.checked))},disabled:a,children:"signalingUrlCandidates"})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",xs:"auto",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"signalingNotifyMetadata",children:(0,n.jsx)(tZ.Z,{className:"flex-fill",as:"textarea",placeholder:"signalingUrlCandidatesを指定\n(例)\nwss://sora0.example.com/signaling\nwss://sora1.example.com/signaling\n",value:t.join("\n"),onChange:e=>{i(e$(e.target.value.split("\n")))},rows:5,cols:100,disabled:a})})})}):null]})},nJ=()=>{let e=tm(e=>e.simulcast),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"simulcast",children:[(0,n.jsx)(ad,{kind:"simulcast",children:"simulcast:"}),(0,n.jsx)(tz.Z,{name:"simulcast",value:e,onChange:e=>{g(e.target.value,d.VE)&&a(e0(e.target.value))},disabled:t,children:d.VE.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nz=()=>{let e=tm(e=>e.simulcastRid),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"simulcastRid",children:[(0,n.jsx)(ad,{kind:"simulcastRid",children:"simulcastRid:"}),(0,n.jsx)(tz.Z,{name:"simulcastRid",value:e,onChange:e=>{g(e.target.value,d.WJ)&&a(e1(e.target.value))},disabled:t,children:d.WJ.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nG=()=>{let e=tm(e=>e.spotlightFocusRid),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"spotlightFocusRid",children:[(0,n.jsx)(ad,{kind:"spotlightFocusRid",children:"spotlightFocusRid:"}),(0,n.jsx)(tz.Z,{value:e,onChange:e=>{g(e.target.value,d.I7)&&a(e3(e.target.value))},disabled:t,children:d.I7.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nW=()=>{let e=tm(e=>e.spotlight),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"spotlight",children:[(0,n.jsx)(ad,{kind:"spotlight",children:"spotlight:"}),(0,n.jsx)(tz.Z,{name:"spotlight",value:e,onChange:e=>{g(e.target.value,d.VJ)&&a(e9(e.target.value))},disabled:t,children:d.VJ.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nK=()=>{let e=tm(e=>e.spotlightNumber),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"spotlightNumber",children:[(0,n.jsx)(ad,{kind:"spotlightNumber",children:"spotlightNumber:"}),(0,n.jsx)(tz.Z,{value:e,onChange:e=>{g(e.target.value,d.Xr)&&a(e8(e.target.value))},disabled:t,children:d.Xr.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nq=()=>{let e=tm(e=>e.spotlightUnfocusRid),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"spotlightUnfocusRid",children:[(0,n.jsx)(ad,{kind:"spotlightUnfocusRid",children:"spotlightUnfocusRid:"}),(0,n.jsx)(tz.Z,{value:e,onChange:e=>{g(e.target.value,d.I7)&&a(e7(e.target.value))},disabled:t,children:d.I7.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},nQ=()=>{let e=tm(e=>e.channelId),t=tm(e=>e.soraContents.connectionStatus),a=tm(e=>e.apiUrl),i=tu(),s=async()=>{try{let t=await ap(a,"20231220","StartRecording",{channel_id:e,expire_time:3600});i(X("POST successed. response: ".concat(JSON.stringify(t))))}catch(e){e instanceof Error&&i(Q(e.message))}};return(0,n.jsx)("div",{className:"col-auto mb-1",children:(0,n.jsx)("input",{className:"btn btn-secondary",type:"button",name:"startRec",defaultValue:"start rec",onClick:s,disabled:"initializing"===t})})},nX=()=>{let e=tm(e=>e.channelId),t=tm(e=>e.soraContents.connectionStatus),a=tm(e=>e.apiUrl),i=tu(),s=async()=>{try{let t=await ap(a,"20231220","StopRecording",{channel_id:e});i(X("POST successed. response: ".concat(JSON.stringify(t))))}catch(e){e instanceof Error&&i(Q(e.message))}};return(0,n.jsx)("div",{className:"col-auto mb-1",children:(0,n.jsx)("input",{className:"btn btn-secondary",type:"button",name:"stopRec",defaultValue:"stop rec",onClick:s,disabled:"initializing"===t})})},n$=()=>{let e=tu();return(0,n.jsx)("div",{className:"col-auto mb-1",children:(0,n.jsx)("input",{className:"btn btn-outline-secondary",type:"button",name:"update-mediastream",defaultValue:"update-mediastream",onClick:()=>{e(E())}})})},nY=()=>{let e=tm(e=>e.enabledVideoAV1Params),t=tm(e=>e.videoAV1Params),a=y(tm(e=>e.soraContents.connectionStatus)),i=tu();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledVideoAV1Params",children:(0,n.jsx)(aY,{kind:"videoAV1Params",checked:e,onChange:e=>{i(eZ(e.target.checked))},disabled:a,children:"videoAV1Params"})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"videoAV1Params",children:(0,n.jsx)(tZ.Z,{className:"flex-fill",as:"textarea",placeholder:"videoAV1Paramsを指定",value:t,onChange:e=>{i(tc(e.target.value))},rows:10,cols:100,disabled:a})})})}):null]})},n0=d.Q5.slice();n0.splice(d.Q5.indexOf("15000")+1,0,"support-message");let n1=()=>{let e=tm(e=>e.videoBitRate),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"videoBitRate",children:[(0,n.jsx)(ad,{kind:"videoBitRate",children:"videoBitRate:"}),(0,n.jsx)(tz.Z,{name:"videoBitRate",value:e,onChange:e=>{g(e.target.value,d.Q5)&&a(tt(e.target.value))},disabled:t,children:n0.map(e=>{let t=e;return""===e?t="未指定":"support-message"===e&&(t="以下はサポート外です"),(0,n.jsx)("option",{value:e,disabled:"support-message"===e,children:t},e)})})]})},n2=()=>{let e=tm(e=>e.videoCodecType),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"videoCodecType",children:[(0,n.jsx)(ad,{kind:"videoCodecType",children:"videoCodecType:"}),(0,n.jsx)(tz.Z,{name:"videoCodecType",value:e,onChange:e=>{g(e.target.value,d.Sh)&&a(ta(e.target.value))},disabled:t,children:d.Sh.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},n5=()=>{let e=tm(e=>e.videoContentHint),t=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"videoContentHint",children:[(0,n.jsx)(ad,{kind:"videoContentHint",children:"videoContentHint:"}),(0,n.jsx)(tz.Z,{name:"videoContentHint",value:e,onChange:e=>{g(e.target.value,d.QO)&&t(tn(e.target.value))},children:d.QO.map(e=>(0,n.jsx)("option",{value:e,children:""===e?"未指定":e},e))})]})},n6=()=>{let e=tm(e=>e.video),t=y(tm(e=>e.soraContents.connectionStatus)),a=tu();return(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"video",children:(0,n.jsx)(aY,{kind:"video",checked:e,onChange:e=>{a(te(e.target.checked))},disabled:t,children:"video"})})},n4=()=>{let e=tm(e=>e.enabledVideoH264Params),t=tm(e=>e.videoH264Params),a=y(tm(e=>e.soraContents.connectionStatus)),i=tu();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledVideoH264Params",children:(0,n.jsx)(aY,{kind:"videoH264Params",checked:e,onChange:e=>{i(eI(e.target.checked))},disabled:a,children:"videoH264Params"})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"videoH264Params",children:(0,n.jsx)(tZ.Z,{className:"flex-fill",as:"textarea",placeholder:"videoH264Paramsを指定",value:t,onChange:e=>{i(tl(e.target.value))},rows:10,cols:100,disabled:a})})})}):null]})},n9=()=>{let e=tm(e=>e.enabledVideoH265Params),t=tm(e=>e.videoH265Params),a=y(tm(e=>e.soraContents.connectionStatus)),i=tu();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledVideoH265Params",children:(0,n.jsx)(aY,{kind:"videoH265Params",checked:e,onChange:e=>{i(eR(e.target.checked))},disabled:a,children:"videoH265Params"})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"videoH265Params",children:(0,n.jsx)(tZ.Z,{className:"flex-fill",as:"textarea",placeholder:"videoH265Paramsを指定",value:t,onChange:e=>{i(tr(e.target.value))},rows:10,cols:100,disabled:a})})})}):null]})},n3=()=>{let e=tm(e=>e.videoInput),t=tm(e=>e.videoInputDevices),a=tu();return(0,n.jsxs)(tI.Z,{className:"form-inline",controlId:"videoInput",children:[(0,n.jsx)(ad,{kind:"videoInput",children:"videoInput:"}),(0,n.jsxs)(tz.Z,{name:"videoInput",value:e,onChange:e=>{a(ti(e.target.value)),a(E())},disabled:0===t.length,children:[(0,n.jsx)("option",{value:"",children:"未指定"}),t.map(e=>(0,n.jsx)("option",{value:e.deviceId,children:e.label},e.deviceId))]})]})},n8=()=>{let e=tm(e=>e.videoTrack),t=tu();return(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"videoTrack",children:(0,n.jsx)(aY,{kind:"videoTrack",checked:e,onChange:e=>{t(ts(e.target.checked))},disabled:!1,children:"Enable video track"})})},n7=()=>{let e=tm(e=>e.enabledVideoVP9Params),t=tm(e=>e.videoVP9Params),a=y(tm(e=>e.soraContents.connectionStatus)),i=tu();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"enabledVideoVP9Params",children:(0,n.jsx)(aY,{kind:"videoVP9Params",checked:e,onChange:e=>{i(ew(e.target.checked))},disabled:a,children:"videoVP9Params"})})})}),e?(0,n.jsx)(aa.Z,{className:"form-row",children:(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(tI.Z,{className:"form-inline",controlId:"videoVP9Params",children:(0,n.jsx)(tZ.Z,{className:"flex-fill",as:"textarea",placeholder:"videoVP9Paramsを指定",value:t,onChange:e=>{i(to(e.target.value))},rows:10,cols:100,disabled:a})})})}):null]})},ie=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",xs:"auto",children:(0,n.jsx)(an.Z,{xs:"12",sm:"12",className:"form-channel-id",children:(0,n.jsx)(a7,{})})}),(0,n.jsxs)(aa.Z,{className:"form-row",xs:"auto",children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)(nE,{})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(nP,{})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(nJ,{})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(nW,{})})]})]}),it=()=>{let e=tm(e=>e.role),t=tm(e=>e.multistream),a=!("recvonly"===e&&("true"===t||""===t));return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(aa.Z,{className:"form-row",xs:"auto",children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)(a0,{})}),a&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)(aQ,{})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(aq,{})})]})]}),(0,n.jsxs)(aa.Z,{className:"form-row",xs:"auto",children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)(n6,{})}),a&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)(n2,{})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(n1,{})})]})]})]})},ia=()=>"true"!==tm(e=>e.simulcast)?null:(0,n.jsx)(aa.Z,{className:"form-row",xs:"auto",children:(0,n.jsx)(an.Z,{children:(0,n.jsx)(nz,{})})}),ii=()=>"true"!==tm(e=>e.spotlight)?null:(0,n.jsxs)(aa.Z,{className:"form-row",xs:"auto",children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)(nK,{})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(nG,{})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(nq,{})})]}),is=()=>{let[e,t]=(0,i.useState)(!0),a=tm(e=>e.e2ee),s=tm(e=>e.enabledBundleId),o=tm(e=>e.enabledClientId),l=tm(e=>e.enabledDataChannel),r=tm(e=>e.enabledDataChannels),c=tm(e=>e.enabledForwardingFilter),d=tm(e=>e.enabledMetadata),u=[a,s,o,l,r,c,d,tm(e=>e.enabledSignalingNotifyMetadata),tm(e=>e.enabledSignalingUrlCandidates),tm(e=>e.reconnect)].some(e=>e),m=["btn-collapse-options"];return e&&m.push("collapsed"),u&&m.push("fw-bold"),(0,n.jsxs)(aa.Z,{className:"form-row",children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)("a",{href:"#",className:m.join(" "),onClick:a=>{a.preventDefault(),t(!e)},children:"Signaling options"})}),(0,n.jsx)(tp.Z,{in:!e,children:(0,n.jsxs)("div",{children:[(0,n.jsx)(nv,{}),(0,n.jsx)(nD,{}),(0,n.jsx)(ne,{}),(0,n.jsx)(nZ,{}),(0,n.jsx)(a3,{}),(0,n.jsx)(n_,{}),(0,n.jsx)(nL,{}),(0,n.jsx)(nb,{}),(0,n.jsx)(ns,{}),(0,n.jsx)(ni,{})]})})]})},io=()=>{let[e,t]=(0,i.useState)(!0),a=tm(e=>e.enabledAudioStreamingLanguageCode),s=tm(e=>e.enabledVideoVP9Params),o=[a,s,tm(e=>e.enabledVideoH264Params),tm(e=>e.enabledVideoH265Params),tm(e=>e.enabledVideoAV1Params)].some(e=>e),l=["btn-collapse-options"];return e&&l.push("collapsed"),o&&l.push("fw-bold"),(0,n.jsxs)(aa.Z,{className:"form-row",children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)("a",{href:"#",className:l.join(" "),onClick:a=>{a.preventDefault(),t(!e)},children:"Advanced signaling options"})}),(0,n.jsx)(tp.Z,{in:!e,children:(0,n.jsxs)("div",{children:[(0,n.jsx)(a5,{}),(0,n.jsx)(n7,{}),(0,n.jsx)(nY,{}),(0,n.jsx)(n4,{}),(0,n.jsx)(n9,{})]})})]})},il=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{xs:"auto",className:"form-row",children:(0,n.jsx)(an.Z,{children:(0,n.jsx)(nR,{})})}),(0,n.jsx)(aa.Z,{xs:"auto",className:"form-row",children:(0,n.jsx)(an.Z,{children:(0,n.jsx)(nC,{})})})]}),ir=()=>{let[e,t]=(0,i.useState)(!0),a=tm(e=>e.audioContentHint),s=tm(e=>e.autoGainControl),o=tm(e=>e.noiseSuppression),l=tm(e=>e.echoCancellation),r=tm(e=>e.echoCancellationType),c=tm(e=>e.videoContentHint),d=tm(e=>e.resolution),u=tm(e=>e.frameRate),m=[""!==a,""!==s,""!==o,""!==l,""!==r,""!==c,""!==d,""!==u,""!==tm(e=>e.blurRadius),""!==tm(e=>e.lightAdjustment),tm(e=>e.mediaProcessorsNoiseSuppression)].some(e=>e),g=["btn-collapse-options"];return e&&g.push("collapsed"),m&&g.push("fw-bold"),(0,n.jsxs)(aa.Z,{className:"form-row",children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)("a",{href:"#",className:g.join(" "),onClick:a=>{a.preventDefault(),t(!e)},children:"Media options"})}),(0,n.jsx)(tp.Z,{in:!e,children:(0,n.jsxs)("div",{children:[(0,n.jsxs)(aa.Z,{className:"form-row",children:[(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(aX,{})}),(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(a4,{})}),(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(nV,{})}),(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(nx,{})}),(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(nj,{})}),(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(nT,{})})]}),(0,n.jsxs)(aa.Z,{className:"form-row",children:[(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(n5,{})}),(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(nU,{})}),(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(nN,{})}),(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(aK,{})}),(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(nO,{})}),(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(a9,{})}),(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(nk,{})}),(0,n.jsx)(an.Z,{className:"col-auto",children:(0,n.jsx)(nf,{})})]}),(0,n.jsx)(n$,{})]})})]})},ic=()=>{let e=tm(e=>e.role),t=tm(e=>e.mediaType);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aa.Z,{className:"form-row",xs:"auto",children:"recvonly"!==e&&"getUserMedia"===t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)(a1,{})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(n3,{})})]}):null}),(0,n.jsxs)(aa.Z,{className:"form-row",xs:"auto",children:["sendonly"!==e?(0,n.jsx)(an.Z,{children:(0,n.jsx)(a2,{})}):null,(0,n.jsx)(nA,{}),"recvonly"!==e?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(nF,{}),(0,n.jsx)(nh,{})]}):null]})]})},id=()=>{let e=tm(e=>e.role);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(aa.Z,{className:"form-row",xs:"auto",children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)(ng,{})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(nw,{})})]}),"recvonly"!==e&&(0,n.jsxs)(aa.Z,{className:"form-row",xs:"auto",children:[(0,n.jsx)(an.Z,{children:(0,n.jsx)(nM,{})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(a8,{})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(a6,{})}),(0,n.jsx)(an.Z,{children:(0,n.jsx)(n8,{})})]})]})},iu=()=>{let e=tm(e=>e.debug),t=tm(e=>e.role),a=tm(e=>e.multistream);return(0,n.jsxs)("div",{className:e?"col-devtools col-6":"col-devtools col-12",children:[(0,n.jsx)(al,{}),(0,n.jsx)(ie,{}),(0,n.jsx)(ia,{}),(0,n.jsx)(ii,{}),(0,n.jsx)("hr",{className:"hr-form"}),(0,n.jsx)(it,{}),(0,n.jsx)(is,{}),!("recvonly"===t&&("true"===a||""===a))&&(0,n.jsx)(io,{}),(0,n.jsx)("hr",{className:"hr-form"}),"recvonly"!==t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(il,{}),(0,n.jsx)(ir,{}),(0,n.jsx)("hr",{className:"hr-form"})]}):null,(0,n.jsx)(ic,{}),(0,n.jsx)(id,{}),(0,n.jsx)("hr",{className:"hr-form"}),(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)(nt,{}),(0,n.jsx)(no,{}),(0,n.jsx)(nQ,{}),(0,n.jsx)(nX,{})]}),(0,n.jsx)("hr",{className:"hr-form"}),(0,n.jsx)(aA,{}),"recvonly"===t||"sendrecv"===t?(0,n.jsx)(aW,{}):null]})};var im=a(847),ig=a(4522);let ih=()=>{let e=tm(e=>e.debug),t=tu();return(0,n.jsx)("div",{children:(0,n.jsx)("button",{type:"button",className:e?"btn btn-footer-debug-mode active":"btn btn-footer-debug-mode",onClick:()=>{t(eg(!e))},children:"debug"})})},ip=()=>{let e=tm(e=>e.version);return(0,n.jsxs)("footer",{children:[(0,n.jsxs)(im.Z,{variant:"dark",bg:"sora",expand:"md",fixed:"bottom",children:[(0,n.jsx)(ig.Z,{className:"me-auto"}),(0,n.jsx)(ig.Z,{children:(0,n.jsxs)(im.Z.Collapse,{id:"navbar-collapse",children:[(0,n.jsxs)("a",{href:"https://github.com/shiguredo/sora-devtools",className:"btn btn-outline-light m-1",children:["GitHub: shiguredo/sora-devtools: ",e]}),(0,n.jsxs)("a",{href:"https://github.com/shiguredo/sora-js-sdk",className:"btn btn-outline-light m-1",children:["GitHub: shiguredo/sora-js-sdk: ",r.Z.version()]})]})})]}),(0,n.jsx)(ih,{})]})};var iv=a(13),ix=a.n(iv);let ij=()=>(0,n.jsx)(ix(),{children:(0,n.jsx)("title",{children:"Sora DevTools"})});var iC=a(5636);let ib=()=>{let e=tu();return(0,n.jsx)("input",{className:"btn btn-light btn-sm ms-1",type:"button",name:"copyUrl",defaultValue:"copy URL",onClick:()=>{e(I())}})},iS=()=>{let e=tm(e=>e.debug),t=tu(),a=["btn","btn-header-debug-mode","btn-sm","ms-1"];return e&&a.push("active"),(0,n.jsx)("input",{className:a.join(" "),type:"button",name:"debug",defaultValue:"debug",onClick:()=>{t(eg(!e))}})};var iy=a(8154);let iN=()=>{let e=(0,i.useRef)(null);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("input",{className:"btn btn-light btn-sm ms-1",type:"button",name:"downloadReport",defaultValue:"Download report",onClick:()=>{let t=new Blob([JSON.stringify(function(){let e=iy.h.getState(),t={aspectRatio:e.aspectRatio,audio:e.audio,audioBitRate:e.audioBitRate,audioCodecType:e.audioCodecType,audioContentHint:e.audioContentHint,audioInput:e.audioInput,audioInputDevices:e.audioInputDevices,audioOutput:e.audioOutput,audioOutputDevices:e.audioOutputDevices,audioStreamingLanguageCode:e.audioStreamingLanguageCode,audioTrack:e.audioTrack,autoGainControl:e.autoGainControl,bundleId:e.bundleId,cameraDevice:e.cameraDevice,channelId:e.channelId,clientId:e.clientId,dataChannelSignaling:e.dataChannelSignaling,dataChannels:e.dataChannels,debug:e.debug,displayResolution:e.displayResolution,e2ee:e.e2ee,echoCancellation:e.echoCancellation,echoCancellationType:e.echoCancellationType,enabledAudioStreamingLanguageCode:e.enabledAudioStreamingLanguageCode,enabledBundleId:e.enabledBundleId,enabledClientId:e.enabledClientId,enabledDataChannel:e.enabledDataChannel,enabledDataChannels:e.enabledDataChannels,enabledForwardingFilter:e.enabledForwardingFilter,enabledMetadata:e.enabledMetadata,enabledSignalingNotifyMetadata:e.enabledSignalingNotifyMetadata,enabledSignalingUrlCandidates:e.enabledSignalingUrlCandidates,enabledVideoVP9Params:e.enabledVideoVP9Params,enabledVideoH264Params:e.enabledVideoH264Params,enabledVideoH265Params:e.enabledVideoH265Params,enabledVideoAV1Params:e.enabledVideoAV1Params,facingMode:e.facingMode,fakeVolume:e.fakeVolume,forwardingFilter:e.forwardingFilter,frameRate:e.frameRate,googCpuOveruseDetection:e.googCpuOveruseDetection,ignoreDisconnectWebSocket:e.ignoreDisconnectWebSocket,mediaType:e.mediaType,metadata:e.metadata,micDevice:e.micDevice,multistream:e.multistream,noiseSuppression:e.noiseSuppression,reconnect:e.reconnect,resizeMode:e.resizeMode,resolution:e.resolution,mediaStats:e.mediaStats,role:e.role,signalingNotifyMetadata:e.signalingNotifyMetadata,signalingUrlCandidates:e.signalingUrlCandidates,simulcast:e.simulcast,simulcastRid:e.simulcastRid,spotlight:e.spotlight,spotlightFocusRid:e.spotlightFocusRid,spotlightNumber:e.spotlightNumber,spotlightUnfocusRid:e.spotlightUnfocusRid,video:e.video,videoBitRate:e.videoBitRate,videoCodecType:e.videoCodecType,videoContentHint:e.videoContentHint,videoInput:e.videoInput,videoInputDevices:e.videoInputDevices,videoTrack:e.videoTrack,videoVP9Params:e.videoVP9Params,videoH264Params:e.videoH264Params,videoH265Params:e.videoH265Params,videoAV1Params:e.videoAV1Params};return{userAgent:navigator.userAgent,"sora-devtools":e.version,"sora-js-sdk":r.Z.version(),parameters:t,timeline:e.timelineMessages.map(e=>({timestamp:e.timestamp,message:e})),notify:e.notifyMessages,stats:e.soraContents.statsReport}}())],{type:"text/plain"});if(window.URL=window.URL||window.webkitURL,e.current){let a=new Date().toISOString().replaceAll(":","_").replaceAll(".","_");e.current.download="sora-devtools-report-".concat(a,".json"),e.current.href=window.URL.createObjectURL(t),e.current.click()}}}),(0,n.jsx)("a",{ref:e,style:{display:"none"}})]})},ik=()=>{let e=tm(e=>e.soraContents.connectionStatus),t=tm(e=>e.soraContents.turnUrl),a=tm(e=>e.soraContents.sora);return(0,n.jsx)("header",{children:(0,n.jsx)(im.Z,{variant:"dark",bg:"sora",expand:"lg",fixed:"top",children:(0,n.jsxs)(iC.Z,{children:[(0,n.jsx)(im.Z.Brand,{href:"/",children:"Sora DevTools"}),(0,n.jsx)(im.Z.Toggle,{"aria-controls":"navbar-collapse"}),(0,n.jsxs)(im.Z.Collapse,{id:"navbar-collapse",children:[(0,n.jsx)(ig.Z,{className:"me-auto"}),(0,n.jsxs)(ig.Z,{children:[(0,n.jsx)(im.Z.Text,{className:"py-0 my-1 mx-1",children:(0,n.jsx)("p",{className:"navbar-signaling-url border rounded",children:a&&"connected"===e?a.connectedSignalingUrl:"Signaling URL"})}),(0,n.jsx)(im.Z.Text,{className:"py-0 my-1 mx-1",children:(0,n.jsx)("p",{className:"navbar-turn-url border rounded",children:a&&"connected"===e?null!==t?t:"不明":"TURN URL"})}),(0,n.jsx)(im.Z.Text,{className:"py-0 my-1 mx-1",children:(0,n.jsx)(iS,{})}),(0,n.jsx)(im.Z.Text,{className:"py-0 my-1 mx-1",children:(0,n.jsx)(iN,{})}),(0,n.jsx)(im.Z.Text,{className:"py-0 my-1 ms-1",children:(0,n.jsx)(ib,{})})]})]})]})})})};var iT=a(4569),iw=a.n(iT);let iI=()=>{let e=tm(e=>e.mediaType),t={x:100,y:100},[a,s]=(0,i.useState)(t),[o,l]=(0,i.useState)(0);return((0,i.useEffect)(()=>{let e=()=>{if(void 0!==window){var e;l((e=window.innerWidth)<680?e-40:640)}};return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}},[]),"mediacaptureRegion"!==e)?null:(0,n.jsx)(iw(),{position:a,onDrag:(e,t)=>{s({x:t.x,y:t.y})},defaultPosition:t,children:(0,n.jsx)("div",{id:"cropArea",className:"cropArea",style:{width:"".concat(o,"px"),height:"".concat(Math.floor(o/4*3),"px")}})})};var iR=()=>{let e=tu();return(0,i.useEffect)(()=>(e(w()),e(U()),()=>{e(B())}),[e]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(iI,{}),(0,n.jsx)(ij,{}),(0,n.jsx)(ik,{}),(0,n.jsx)("main",{children:(0,n.jsx)("div",{className:"container",children:(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)(iu,{}),(0,n.jsx)(at,{})]})})}),(0,n.jsx)(ip,{})]})}}},function(e){e.O(0,[84,510,285,888,774,179],function(){return e(e.s=4047)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dist/_next/static/chunks/pages/index-53d9c8fada56c387.js b/dist/_next/static/chunks/pages/index-53d9c8fada56c387.js deleted file mode 100644 index 023c7bbb..00000000 --- a/dist/_next/static/chunks/pages/index-53d9c8fada56c387.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{8103:function(e,a,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return s(6111)}])},6111:function(e,a,s){"use strict";s.r(a);var r=s(2676),o=s(13),l=s.n(o),i=s(8039),n=s(847),d=s(5636);let t=e=>{let a=e.params?"?".concat(i.Z.stringify(e.params)):"";return(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"".concat("/devtools.html").concat(a),children:e.pageName})})};a.default=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l(),{children:(0,r.jsx)("title",{children:"Sora DevTools"})}),(0,r.jsx)("header",{children:(0,r.jsx)(n.Z,{variant:"dark",bg:"sora",expand:"md",fixed:"top",children:(0,r.jsxs)(d.Z,{children:[(0,r.jsx)(n.Z.Brand,{href:"/",children:"Sora DevTools"}),(0,r.jsx)(n.Z.Toggle,{"aria-controls":"navbar-collapse"})]})})}),(0,r.jsx)("div",{className:"container",children:(0,r.jsx)("div",{className:"row",children:(0,r.jsxs)("ul",{className:"list-url",children:[(0,r.jsx)("li",{className:"separator",children:"マルチストリーム"}),(0,r.jsx)(t,{pageName:"マルチストリーム送受信",params:{role:"sendrecv",videoCodecType:"VP9"}}),(0,r.jsx)(t,{pageName:"マルチストリーム送信のみ",params:{role:"sendonly",videoCodecType:"VP9"}}),(0,r.jsx)(t,{pageName:"マルチストリーム受信のみ",params:{role:"recvonly"}}),(0,r.jsx)(t,{pageName:"マルチストリーム送受信 (サイマルキャスト有効)",params:{role:"sendrecv",simulcast:!0,videoBitRate:"3000",videoCodecType:"VP8",resolution:"720p (1280x720)"}}),(0,r.jsx)(t,{pageName:"マルチストリーム送信のみ (サイマルキャスト有効)",params:{role:"sendonly",simulcast:!0,videoBitRate:"3000",videoCodecType:"VP8",resolution:"720p (1280x720)"}}),(0,r.jsx)(t,{pageName:"マルチストリーム受信のみ (サイマルキャスト有効)",params:{role:"recvonly",simulcast:!0}}),(0,r.jsx)("li",{className:"separator",children:"スポットライト"}),(0,r.jsx)(t,{pageName:"スポットライト送受信",params:{role:"sendrecv",simulcast:!0,spotlight:!0,videoCodecType:"VP8",videoBitRate:"500"}}),(0,r.jsx)(t,{pageName:"スポットライト送信のみ",params:{role:"sendonly",simulcast:!0,spotlight:!0,videoCodecType:"VP8",videoBitRate:"500"}}),(0,r.jsx)(t,{pageName:"スポットライト受信のみ",params:{role:"recvonly",simulcast:!0,spotlight:!0}}),(0,r.jsx)(t,{pageName:"スポットライト送受信 (サイマルキャスト無効)",params:{role:"sendrecv",spotlight:!0,videoCodecType:"VP8",videoBitRate:"500"}}),(0,r.jsx)(t,{pageName:"スポットライト送信のみ (サイマルキャスト無効)",params:{role:"sendonly",spotlight:!0,videoCodecType:"VP8",videoBitRate:"500"}}),(0,r.jsx)(t,{pageName:"スポットライト受信のみ (サイマルキャスト無効)",params:{role:"recvonly",spotlight:!0}}),(0,r.jsx)("li",{className:"separator",children:"データチャネルメッセージング"}),(0,r.jsx)(t,{pageName:"メッセージングのみ",params:{role:"sendrecv",dataChannelSignaling:!0,debug:!0,debugType:"messaging",audio:!1,video:!1,dataChannels:JSON.stringify([{label:"#devtools",maxPacketLifeTime:10,ordered:!0,compress:!1,direction:"sendrecv"}],null,2)}})]})})})]})}},function(e){e.O(0,[510,888,774,179],function(){return e(e.s=8103)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dist/_next/static/chunks/pages/index-9f9e2ecd00a2d7b5.js b/dist/_next/static/chunks/pages/index-9f9e2ecd00a2d7b5.js new file mode 100644 index 00000000..5db99f85 --- /dev/null +++ b/dist/_next/static/chunks/pages/index-9f9e2ecd00a2d7b5.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{9023:function(e,a,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return s(7081)}])},7081:function(e,a,s){"use strict";s.r(a);var r=s(2676),o=s(4700),l=s.n(o),i=s(8039),n=s(7072),d=s(7411);let t=e=>{let a=e.params?"?".concat(i.Z.stringify(e.params)):"";return(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"".concat("/devtools.html").concat(a),children:e.pageName})})};a.default=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l(),{children:(0,r.jsx)("title",{children:"Sora DevTools"})}),(0,r.jsx)("header",{children:(0,r.jsx)(n.Z,{variant:"dark",bg:"sora",expand:"md",fixed:"top",children:(0,r.jsxs)(d.Z,{children:[(0,r.jsx)(n.Z.Brand,{href:"/",children:"Sora DevTools"}),(0,r.jsx)(n.Z.Toggle,{"aria-controls":"navbar-collapse"})]})})}),(0,r.jsx)("div",{className:"container",children:(0,r.jsx)("div",{className:"row",children:(0,r.jsxs)("ul",{className:"list-url",children:[(0,r.jsx)("li",{className:"separator",children:"マルチストリーム"}),(0,r.jsx)(t,{pageName:"マルチストリーム送受信",params:{role:"sendrecv",videoCodecType:"VP9"}}),(0,r.jsx)(t,{pageName:"マルチストリーム送信のみ",params:{role:"sendonly",videoCodecType:"VP9"}}),(0,r.jsx)(t,{pageName:"マルチストリーム受信のみ",params:{role:"recvonly"}}),(0,r.jsx)(t,{pageName:"マルチストリーム送受信 (サイマルキャスト有効)",params:{role:"sendrecv",simulcast:!0,videoBitRate:"3000",videoCodecType:"VP8",resolution:"720p (1280x720)"}}),(0,r.jsx)(t,{pageName:"マルチストリーム送信のみ (サイマルキャスト有効)",params:{role:"sendonly",simulcast:!0,videoBitRate:"3000",videoCodecType:"VP8",resolution:"720p (1280x720)"}}),(0,r.jsx)(t,{pageName:"マルチストリーム受信のみ (サイマルキャスト有効)",params:{role:"recvonly",simulcast:!0}}),(0,r.jsx)("li",{className:"separator",children:"スポットライト"}),(0,r.jsx)(t,{pageName:"スポットライト送受信",params:{role:"sendrecv",simulcast:!0,spotlight:!0,videoCodecType:"VP8",videoBitRate:"500"}}),(0,r.jsx)(t,{pageName:"スポットライト送信のみ",params:{role:"sendonly",simulcast:!0,spotlight:!0,videoCodecType:"VP8",videoBitRate:"500"}}),(0,r.jsx)(t,{pageName:"スポットライト受信のみ",params:{role:"recvonly",simulcast:!0,spotlight:!0}}),(0,r.jsx)(t,{pageName:"スポットライト送受信 (サイマルキャスト無効)",params:{role:"sendrecv",spotlight:!0,videoCodecType:"VP8",videoBitRate:"500"}}),(0,r.jsx)(t,{pageName:"スポットライト送信のみ (サイマルキャスト無効)",params:{role:"sendonly",spotlight:!0,videoCodecType:"VP8",videoBitRate:"500"}}),(0,r.jsx)(t,{pageName:"スポットライト受信のみ (サイマルキャスト無効)",params:{role:"recvonly",spotlight:!0}}),(0,r.jsx)("li",{className:"separator",children:"データチャネルメッセージング"}),(0,r.jsx)(t,{pageName:"メッセージングのみ",params:{role:"sendrecv",dataChannelSignaling:!0,debug:!0,debugType:"messaging",audio:!1,video:!1,dataChannels:JSON.stringify([{label:"#devtools",maxPacketLifeTime:10,ordered:!0,compress:!1,direction:"sendrecv"}],null,2)}})]})})})]})}},function(e){e.O(0,[724,888,774,179],function(){return e(e.s=9023)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dist/_next/static/sora_devtools/_buildManifest.js b/dist/_next/static/sora_devtools/_buildManifest.js index a7a82fa3..d626236f 100644 --- a/dist/_next/static/sora_devtools/_buildManifest.js +++ b/dist/_next/static/sora_devtools/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(s){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[s,"static/chunks/pages/index-53d9c8fada56c387.js"],"/_error":["static/chunks/pages/_error-d2a2433779266cd3.js"],"/devtools":["static/chunks/bbf08e97-e92398dc34f2ada8.js",s,"static/chunks/285-eb176e5e2c5aed66.js","static/chunks/pages/devtools-9cc4b1fc459d3c89.js"],sortedPages:["/","/_app","/_error","/devtools"]}}("static/chunks/510-be8461ad20d7575b.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file +self.__BUILD_MANIFEST=function(e){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[e,"static/chunks/pages/index-9f9e2ecd00a2d7b5.js"],"/_error":["static/chunks/pages/_error-0e8428b30c6c0304.js"],"/devtools":["static/chunks/a9b156ee-ea1fe3ff0dd2e9c3.js",e,"static/chunks/764-e923497c56bbf81a.js","static/chunks/pages/devtools-199bb388d8c28fda.js"],sortedPages:["/","/_app","/_error","/devtools"]}}("static/chunks/724-8c8e5c7dff506555.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/dist/devtools.html b/dist/devtools.html index 0abcb7b8..1037694a 100644 --- a/dist/devtools.html +++ b/dist/devtools.html @@ -1 +1 @@ -Sora DevTools





\ No newline at end of file +Sora DevTools





\ No newline at end of file diff --git a/dist/index.html b/dist/index.html index 017a74da..538c6742 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1 +1 @@ -Sora DevTools \ No newline at end of file +Sora DevTools \ No newline at end of file