diff --git a/Changelog.md b/Changelog.md index 7626193dab5a2e9b62ecde4e12e2f4423bbc85d4..346243aab507b4fb3f7da6f9cea7d02bb7b56b26 100644 --- a/Changelog.md +++ b/Changelog.md @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file. +## [0.22] - 2023-08-01 +- COMP-232: Changed styling of the survey frontend +- Added simple admin user management page +- Added landing page for the survey +- Changed webpack setup to use webpack5 features for asset handling + ## [0.21] - 2023-07-26 - Include missing frontend build artifact diff --git a/compendium-frontend/package-lock.json b/compendium-frontend/package-lock.json index 1901207eec9044cf1859c3675133def2ce774fe5..eefafd075d5d5e94a7d26faae97146e5a4d26b73 100644 --- a/compendium-frontend/package-lock.json +++ b/compendium-frontend/package-lock.json @@ -14,7 +14,6 @@ "chart.js": "^4.2.1", "chartjs-plugin-datalabels": "^2.2.0", "core-js": "^3.26.1", - "file-loader": "^6.2.0", "install": "^0.13.0", "npm": "^9.2.0", "react": "^18.2.0", @@ -1952,6 +1951,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true, "engines": { "node": ">=6.0.0" } @@ -1960,6 +1960,7 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true, "engines": { "node": ">=6.0.0" } @@ -1968,6 +1969,7 @@ "version": "0.3.2", "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", + "dev": true, "dependencies": { "@jridgewell/gen-mapping": "^0.3.0", "@jridgewell/trace-mapping": "^0.3.9" @@ -1977,6 +1979,7 @@ "version": "0.3.2", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "dev": true, "dependencies": { "@jridgewell/set-array": "^1.0.1", "@jridgewell/sourcemap-codec": "^1.4.10", @@ -1989,12 +1992,14 @@ "node_modules/@jridgewell/sourcemap-codec": { "version": "1.4.14", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true }, "node_modules/@jridgewell/trace-mapping": { "version": "0.3.17", "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz", "integrity": "sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==", + "dev": true, "dependencies": { "@jridgewell/resolve-uri": "3.1.0", "@jridgewell/sourcemap-codec": "1.4.14" @@ -2191,6 +2196,7 @@ "version": "8.4.10", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.10.tgz", "integrity": "sha512-Sl/HOqN8NKPmhWo2VBEPm0nvHnu2LL3v9vKo8MEq0EtbJ4eVzGPl41VNPvn5E1i5poMk4/XD8UriLHpJvEP/Nw==", + "dev": true, "dependencies": { "@types/estree": "*", "@types/json-schema": "*" @@ -2200,6 +2206,7 @@ "version": "3.7.4", "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", + "dev": true, "dependencies": { "@types/eslint": "*", "@types/estree": "*" @@ -2208,7 +2215,8 @@ "node_modules/@types/estree": { "version": "0.0.51", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.51.tgz", - "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==" + "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==", + "dev": true }, "node_modules/@types/express": { "version": "4.17.15", @@ -2261,7 +2269,8 @@ "node_modules/@types/json-schema": { "version": "7.0.11", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==" + "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", + "dev": true }, "node_modules/@types/mime": { "version": "3.0.1", @@ -2278,7 +2287,8 @@ "node_modules/@types/node": { "version": "18.11.9", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.9.tgz", - "integrity": "sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==" + "integrity": "sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==", + "dev": true }, "node_modules/@types/parse-json": { "version": "4.0.0", @@ -2657,6 +2667,7 @@ "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", + "dev": true, "dependencies": { "@webassemblyjs/helper-numbers": "1.11.1", "@webassemblyjs/helper-wasm-bytecode": "1.11.1" @@ -2665,22 +2676,26 @@ "node_modules/@webassemblyjs/floating-point-hex-parser": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", - "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==" + "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==", + "dev": true }, "node_modules/@webassemblyjs/helper-api-error": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", - "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==" + "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==", + "dev": true }, "node_modules/@webassemblyjs/helper-buffer": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", - "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==" + "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==", + "dev": true }, "node_modules/@webassemblyjs/helper-numbers": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", + "dev": true, "dependencies": { "@webassemblyjs/floating-point-hex-parser": "1.11.1", "@webassemblyjs/helper-api-error": "1.11.1", @@ -2690,12 +2705,14 @@ "node_modules/@webassemblyjs/helper-wasm-bytecode": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", - "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==" + "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==", + "dev": true }, "node_modules/@webassemblyjs/helper-wasm-section": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", + "dev": true, "dependencies": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-buffer": "1.11.1", @@ -2707,6 +2724,7 @@ "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", + "dev": true, "dependencies": { "@xtuc/ieee754": "^1.2.0" } @@ -2715,6 +2733,7 @@ "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", + "dev": true, "dependencies": { "@xtuc/long": "4.2.2" } @@ -2722,12 +2741,14 @@ "node_modules/@webassemblyjs/utf8": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", - "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==" + "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==", + "dev": true }, "node_modules/@webassemblyjs/wasm-edit": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", + "dev": true, "dependencies": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-buffer": "1.11.1", @@ -2743,6 +2764,7 @@ "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", + "dev": true, "dependencies": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-wasm-bytecode": "1.11.1", @@ -2755,6 +2777,7 @@ "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", + "dev": true, "dependencies": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-buffer": "1.11.1", @@ -2766,6 +2789,7 @@ "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", + "dev": true, "dependencies": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-api-error": "1.11.1", @@ -2779,6 +2803,7 @@ "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", + "dev": true, "dependencies": { "@webassemblyjs/ast": "1.11.1", "@xtuc/long": "4.2.2" @@ -2831,12 +2856,14 @@ "node_modules/@xtuc/ieee754": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==" + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true }, "node_modules/@xtuc/long": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==" + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true }, "node_modules/accepts": { "version": "1.3.8", @@ -2855,6 +2882,7 @@ "version": "8.8.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz", "integrity": "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==", + "dev": true, "bin": { "acorn": "bin/acorn" }, @@ -2884,6 +2912,7 @@ "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -2938,6 +2967,7 @@ "version": "3.5.2", "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, "peerDependencies": { "ajv": "^6.9.1" } @@ -3485,6 +3515,7 @@ "version": "5.2.2", "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "dev": true, "engines": { "node": "*" } @@ -4073,6 +4104,7 @@ "version": "4.21.4", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.4.tgz", "integrity": "sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==", + "dev": true, "funding": [ { "type": "opencollective", @@ -4159,7 +4191,8 @@ "node_modules/buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true }, "node_modules/bytes": { "version": "3.0.0", @@ -4232,6 +4265,7 @@ "version": "1.0.30001434", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001434.tgz", "integrity": "sha512-aOBHrLmTQw//WFa2rcF1If9fa3ypkC1wzqqiKHgfdrXTWcU8C4gKVZT77eQAPWN1APys3+uQ0Df07rKauXGEYA==", + "dev": true, "funding": [ { "type": "opencollective", @@ -4328,6 +4362,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "dev": true, "engines": { "node": ">=6.0" } @@ -4385,7 +4420,8 @@ "node_modules/commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true }, "node_modules/commondir": { "version": "1.0.1", @@ -5291,12 +5327,14 @@ "node_modules/electron-to-chromium": { "version": "1.4.284", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz", - "integrity": "sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA==" + "integrity": "sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA==", + "dev": true }, "node_modules/emojis-list": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", + "dev": true, "engines": { "node": ">= 4" } @@ -5324,6 +5362,7 @@ "version": "5.12.0", "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.12.0.tgz", "integrity": "sha512-QHTXI/sZQmko1cbDoNAa3mJ5qhWUUNAq3vR0/YiD379fWQrcfuoX1+HW2S0MTt7XmoPLapdaDKUtelUSPic7hQ==", + "dev": true, "dependencies": { "graceful-fs": "^4.2.4", "tapable": "^2.2.0" @@ -5404,7 +5443,8 @@ "node_modules/es-module-lexer": { "version": "0.9.3", "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", - "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==" + "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==", + "dev": true }, "node_modules/es-shim-unscopables": { "version": "1.0.0", @@ -5436,6 +5476,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true, "engines": { "node": ">=6" } @@ -5585,6 +5626,7 @@ "version": "5.1.1", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^4.1.1" @@ -5597,6 +5639,7 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, "engines": { "node": ">=4.0" } @@ -5865,6 +5908,7 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, "dependencies": { "estraverse": "^5.2.0" }, @@ -5876,6 +5920,7 @@ "version": "5.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, "engines": { "node": ">=4.0" } @@ -5908,6 +5953,7 @@ "version": "3.3.0", "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true, "engines": { "node": ">=0.8.x" } @@ -6261,7 +6307,8 @@ "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true }, "node_modules/fast-glob": { "version": "3.2.12", @@ -6282,7 +6329,8 @@ "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true }, "node_modules/fast-levenshtein": { "version": "2.0.6", @@ -6363,6 +6411,9 @@ "version": "6.2.0", "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-6.2.0.tgz", "integrity": "sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==", + "dev": true, + "optional": true, + "peer": true, "dependencies": { "loader-utils": "^2.0.0", "schema-utils": "^3.0.0" @@ -6382,6 +6433,9 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "optional": true, + "peer": true, "dependencies": { "@types/json-schema": "^7.0.8", "ajv": "^6.12.5", @@ -6987,7 +7041,8 @@ "node_modules/glob-to-regexp": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==" + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true }, "node_modules/globals": { "version": "11.12.0", @@ -7067,7 +7122,8 @@ "node_modules/graceful-fs": { "version": "4.2.10", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", + "dev": true }, "node_modules/grapheme-splitter": { "version": "1.0.4", @@ -8220,6 +8276,7 @@ "version": "27.5.1", "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, "dependencies": { "@types/node": "*", "merge-stream": "^2.0.0", @@ -8233,6 +8290,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, "engines": { "node": ">=8" } @@ -8241,6 +8299,7 @@ "version": "8.1.1", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, "dependencies": { "has-flag": "^4.0.0" }, @@ -8300,12 +8359,14 @@ "node_modules/json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true }, "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", @@ -8317,6 +8378,7 @@ "version": "2.2.1", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==", + "dev": true, "bin": { "json5": "lib/cli.js" }, @@ -8409,6 +8471,7 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", + "dev": true, "engines": { "node": ">=6.11.5" } @@ -8417,6 +8480,7 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dev": true, "dependencies": { "big.js": "^5.2.2", "emojis-list": "^3.0.0", @@ -8547,7 +8611,8 @@ "node_modules/merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true }, "node_modules/merge2": { "version": "1.4.1", @@ -8596,6 +8661,7 @@ "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, "engines": { "node": ">= 0.6" } @@ -8604,6 +8670,7 @@ "version": "2.1.35", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, "dependencies": { "mime-db": "1.52.0" }, @@ -8721,7 +8788,8 @@ "node_modules/neo-async": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true }, "node_modules/nice-try": { "version": "1.0.5", @@ -8748,7 +8816,8 @@ "node_modules/node-releases": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", - "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==" + "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==", + "dev": true }, "node_modules/normalize-path": { "version": "3.0.0", @@ -11984,7 +12053,8 @@ "node_modules/picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true }, "node_modules/picomatch": { "version": "2.3.1", @@ -12329,6 +12399,7 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true, "engines": { "node": ">=6" } @@ -12387,6 +12458,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, "dependencies": { "safe-buffer": "^5.1.0" } @@ -12846,6 +12918,7 @@ "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, "funding": [ { "type": "github", @@ -13085,6 +13158,7 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", + "dev": true, "dependencies": { "randombytes": "^2.1.0" } @@ -13310,6 +13384,7 @@ "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, "engines": { "node": ">=0.10.0" } @@ -13327,6 +13402,7 @@ "version": "0.5.21", "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" @@ -13614,6 +13690,7 @@ "version": "2.2.1", "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true, "engines": { "node": ">=6" } @@ -13665,6 +13742,7 @@ "version": "5.15.1", "resolved": "https://registry.npmjs.org/terser/-/terser-5.15.1.tgz", "integrity": "sha512-K1faMUvpm/FBxjBXud0LWVAGxmvoPbZbfTCYbSgaaYQaIXI3/TdI7a7ZGA73Zrou6Q8Zmz3oeUTsp/dj+ag2Xw==", + "dev": true, "dependencies": { "@jridgewell/source-map": "^0.3.2", "acorn": "^8.5.0", @@ -13682,6 +13760,7 @@ "version": "5.3.6", "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.6.tgz", "integrity": "sha512-kfLFk+PoLUQIbLmB1+PZDMRSZS99Mp+/MHqDNmMA6tOItzRt+Npe3E+fsMs5mfcM0wCtrrdU387UnV+vnSffXQ==", + "dev": true, "dependencies": { "@jridgewell/trace-mapping": "^0.3.14", "jest-worker": "^27.4.5", @@ -13715,6 +13794,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, "dependencies": { "@types/json-schema": "^7.0.8", "ajv": "^6.12.5", @@ -14037,6 +14117,7 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz", "integrity": "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==", + "dev": true, "funding": [ { "type": "opencollective", @@ -14062,6 +14143,7 @@ "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, "dependencies": { "punycode": "^2.1.0" } @@ -14187,6 +14269,7 @@ "version": "2.4.0", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "dev": true, "dependencies": { "glob-to-regexp": "^0.4.1", "graceful-fs": "^4.1.2" @@ -14208,6 +14291,7 @@ "version": "5.75.0", "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.75.0.tgz", "integrity": "sha512-piaIaoVJlqMsPtX/+3KTTO6jfvrSYgauFVdt8cr9LTHKmcq/AMd4mhzsiP7ZF/PGRNPGA8336jldh9l2Kt2ogQ==", + "dev": true, "dependencies": { "@types/eslint-scope": "^3.7.3", "@types/estree": "^0.0.51", @@ -14514,6 +14598,7 @@ "version": "3.2.3", "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "dev": true, "engines": { "node": ">=10.13.0" } @@ -14522,6 +14607,7 @@ "version": "1.8.0", "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", + "dev": true, "peerDependencies": { "acorn": "^8" } @@ -14530,6 +14616,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, "dependencies": { "@types/json-schema": "^7.0.8", "ajv": "^6.12.5", @@ -16011,17 +16098,20 @@ "@jridgewell/resolve-uri": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==" + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true }, "@jridgewell/set-array": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==" + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true }, "@jridgewell/source-map": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", + "dev": true, "requires": { "@jridgewell/gen-mapping": "^0.3.0", "@jridgewell/trace-mapping": "^0.3.9" @@ -16031,6 +16121,7 @@ "version": "0.3.2", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "dev": true, "requires": { "@jridgewell/set-array": "^1.0.1", "@jridgewell/sourcemap-codec": "^1.4.10", @@ -16042,12 +16133,14 @@ "@jridgewell/sourcemap-codec": { "version": "1.4.14", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true }, "@jridgewell/trace-mapping": { "version": "0.3.17", "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz", "integrity": "sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==", + "dev": true, "requires": { "@jridgewell/resolve-uri": "3.1.0", "@jridgewell/sourcemap-codec": "1.4.14" @@ -16212,6 +16305,7 @@ "version": "8.4.10", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.10.tgz", "integrity": "sha512-Sl/HOqN8NKPmhWo2VBEPm0nvHnu2LL3v9vKo8MEq0EtbJ4eVzGPl41VNPvn5E1i5poMk4/XD8UriLHpJvEP/Nw==", + "dev": true, "requires": { "@types/estree": "*", "@types/json-schema": "*" @@ -16221,6 +16315,7 @@ "version": "3.7.4", "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", + "dev": true, "requires": { "@types/eslint": "*", "@types/estree": "*" @@ -16229,7 +16324,8 @@ "@types/estree": { "version": "0.0.51", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.51.tgz", - "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==" + "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==", + "dev": true }, "@types/express": { "version": "4.17.15", @@ -16282,7 +16378,8 @@ "@types/json-schema": { "version": "7.0.11", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==" + "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", + "dev": true }, "@types/mime": { "version": "3.0.1", @@ -16299,7 +16396,8 @@ "@types/node": { "version": "18.11.9", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.9.tgz", - "integrity": "sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==" + "integrity": "sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==", + "dev": true }, "@types/parse-json": { "version": "4.0.0", @@ -16577,6 +16675,7 @@ "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", + "dev": true, "requires": { "@webassemblyjs/helper-numbers": "1.11.1", "@webassemblyjs/helper-wasm-bytecode": "1.11.1" @@ -16585,22 +16684,26 @@ "@webassemblyjs/floating-point-hex-parser": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", - "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==" + "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==", + "dev": true }, "@webassemblyjs/helper-api-error": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", - "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==" + "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==", + "dev": true }, "@webassemblyjs/helper-buffer": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", - "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==" + "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==", + "dev": true }, "@webassemblyjs/helper-numbers": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", + "dev": true, "requires": { "@webassemblyjs/floating-point-hex-parser": "1.11.1", "@webassemblyjs/helper-api-error": "1.11.1", @@ -16610,12 +16713,14 @@ "@webassemblyjs/helper-wasm-bytecode": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", - "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==" + "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==", + "dev": true }, "@webassemblyjs/helper-wasm-section": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", + "dev": true, "requires": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-buffer": "1.11.1", @@ -16627,6 +16732,7 @@ "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", + "dev": true, "requires": { "@xtuc/ieee754": "^1.2.0" } @@ -16635,6 +16741,7 @@ "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", + "dev": true, "requires": { "@xtuc/long": "4.2.2" } @@ -16642,12 +16749,14 @@ "@webassemblyjs/utf8": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", - "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==" + "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==", + "dev": true }, "@webassemblyjs/wasm-edit": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", + "dev": true, "requires": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-buffer": "1.11.1", @@ -16663,6 +16772,7 @@ "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", + "dev": true, "requires": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-wasm-bytecode": "1.11.1", @@ -16675,6 +16785,7 @@ "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", + "dev": true, "requires": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-buffer": "1.11.1", @@ -16686,6 +16797,7 @@ "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", + "dev": true, "requires": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-api-error": "1.11.1", @@ -16699,6 +16811,7 @@ "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", + "dev": true, "requires": { "@webassemblyjs/ast": "1.11.1", "@xtuc/long": "4.2.2" @@ -16728,12 +16841,14 @@ "@xtuc/ieee754": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==" + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true }, "@xtuc/long": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==" + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true }, "accepts": { "version": "1.3.8", @@ -16748,7 +16863,8 @@ "acorn": { "version": "8.8.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz", - "integrity": "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==" + "integrity": "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==", + "dev": true }, "acorn-jsx": { "version": "5.3.2", @@ -16767,6 +16883,7 @@ "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, "requires": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -16807,6 +16924,7 @@ "version": "3.5.2", "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, "requires": {} }, "ansi-html-community": { @@ -17243,7 +17361,8 @@ "big.js": { "version": "5.2.2", "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", - "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==" + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "dev": true }, "bin-build": { "version": "3.0.0", @@ -17733,6 +17852,7 @@ "version": "4.21.4", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.4.tgz", "integrity": "sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==", + "dev": true, "requires": { "caniuse-lite": "^1.0.30001400", "electron-to-chromium": "^1.4.251", @@ -17786,7 +17906,8 @@ "buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true }, "bytes": { "version": "3.0.0", @@ -17845,7 +17966,8 @@ "caniuse-lite": { "version": "1.0.30001434", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001434.tgz", - "integrity": "sha512-aOBHrLmTQw//WFa2rcF1If9fa3ypkC1wzqqiKHgfdrXTWcU8C4gKVZT77eQAPWN1APys3+uQ0Df07rKauXGEYA==" + "integrity": "sha512-aOBHrLmTQw//WFa2rcF1If9fa3ypkC1wzqqiKHgfdrXTWcU8C4gKVZT77eQAPWN1APys3+uQ0Df07rKauXGEYA==", + "dev": true }, "cartesian-product-multiple-arrays": { "version": "1.0.9", @@ -17909,7 +18031,8 @@ "chrome-trace-event": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", - "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==" + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "dev": true }, "classnames": { "version": "2.3.2", @@ -17961,7 +18084,8 @@ "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true }, "commondir": { "version": "1.0.1", @@ -18653,12 +18777,14 @@ "electron-to-chromium": { "version": "1.4.284", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz", - "integrity": "sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA==" + "integrity": "sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA==", + "dev": true }, "emojis-list": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", - "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==" + "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", + "dev": true }, "encodeurl": { "version": "1.0.2", @@ -18680,6 +18806,7 @@ "version": "5.12.0", "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.12.0.tgz", "integrity": "sha512-QHTXI/sZQmko1cbDoNAa3mJ5qhWUUNAq3vR0/YiD379fWQrcfuoX1+HW2S0MTt7XmoPLapdaDKUtelUSPic7hQ==", + "dev": true, "requires": { "graceful-fs": "^4.2.4", "tapable": "^2.2.0" @@ -18742,7 +18869,8 @@ "es-module-lexer": { "version": "0.9.3", "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", - "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==" + "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==", + "dev": true }, "es-shim-unscopables": { "version": "1.0.0", @@ -18767,7 +18895,8 @@ "escalade": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true }, "escape-html": { "version": "1.0.3", @@ -19012,6 +19141,7 @@ "version": "5.1.1", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, "requires": { "esrecurse": "^4.3.0", "estraverse": "^4.1.1" @@ -19020,7 +19150,8 @@ "estraverse": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==" + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true } } }, @@ -19071,6 +19202,7 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, "requires": { "estraverse": "^5.2.0" } @@ -19078,7 +19210,8 @@ "estraverse": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==" + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true }, "esutils": { "version": "2.0.3", @@ -19101,7 +19234,8 @@ "events": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==" + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true }, "exec-buffer": { "version": "3.2.0", @@ -19400,7 +19534,8 @@ "fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true }, "fast-glob": { "version": "3.2.12", @@ -19418,7 +19553,8 @@ "fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true }, "fast-levenshtein": { "version": "2.0.6", @@ -19483,6 +19619,9 @@ "version": "6.2.0", "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-6.2.0.tgz", "integrity": "sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==", + "dev": true, + "optional": true, + "peer": true, "requires": { "loader-utils": "^2.0.0", "schema-utils": "^3.0.0" @@ -19492,6 +19631,9 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "optional": true, + "peer": true, "requires": { "@types/json-schema": "^7.0.8", "ajv": "^6.12.5", @@ -19923,7 +20065,8 @@ "glob-to-regexp": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==" + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true }, "globals": { "version": "11.12.0", @@ -19987,7 +20130,8 @@ "graceful-fs": { "version": "4.2.10", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", + "dev": true }, "grapheme-splitter": { "version": "1.0.4", @@ -20823,6 +20967,7 @@ "version": "27.5.1", "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, "requires": { "@types/node": "*", "merge-stream": "^2.0.0", @@ -20832,12 +20977,14 @@ "has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true }, "supports-color": { "version": "8.1.1", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, "requires": { "has-flag": "^4.0.0" } @@ -20880,12 +21027,14 @@ "json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true }, "json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true }, "json-stable-stringify-without-jsonify": { "version": "1.0.1", @@ -20896,7 +21045,8 @@ "json5": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", - "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==" + "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==", + "dev": true }, "jsonfile": { "version": "6.1.0", @@ -20965,12 +21115,14 @@ "loader-runner": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", - "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==" + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", + "dev": true }, "loader-utils": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dev": true, "requires": { "big.js": "^5.2.2", "emojis-list": "^3.0.0", @@ -21074,7 +21226,8 @@ "merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true }, "merge2": { "version": "1.4.1", @@ -21107,12 +21260,14 @@ "mime-db": { "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true }, "mime-types": { "version": "2.1.35", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, "requires": { "mime-db": "1.52.0" } @@ -21199,7 +21354,8 @@ "neo-async": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true }, "nice-try": { "version": "1.0.5", @@ -21223,7 +21379,8 @@ "node-releases": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", - "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==" + "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==", + "dev": true }, "normalize-path": { "version": "3.0.0", @@ -23399,7 +23556,8 @@ "picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true }, "picomatch": { "version": "2.3.1", @@ -23645,7 +23803,8 @@ "punycode": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true }, "qs": { "version": "6.11.0", @@ -23678,6 +23837,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, "requires": { "safe-buffer": "^5.1.0" } @@ -24019,7 +24179,8 @@ "safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true }, "safe-regex-test": { "version": "1.0.0", @@ -24185,6 +24346,7 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", + "dev": true, "requires": { "randombytes": "^2.1.0" } @@ -24373,7 +24535,8 @@ "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true }, "source-map-js": { "version": "1.0.2", @@ -24385,6 +24548,7 @@ "version": "0.5.21", "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, "requires": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" @@ -24610,7 +24774,8 @@ "tapable": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", - "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==" + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true }, "tar-stream": { "version": "1.6.2", @@ -24650,6 +24815,7 @@ "version": "5.15.1", "resolved": "https://registry.npmjs.org/terser/-/terser-5.15.1.tgz", "integrity": "sha512-K1faMUvpm/FBxjBXud0LWVAGxmvoPbZbfTCYbSgaaYQaIXI3/TdI7a7ZGA73Zrou6Q8Zmz3oeUTsp/dj+ag2Xw==", + "dev": true, "requires": { "@jridgewell/source-map": "^0.3.2", "acorn": "^8.5.0", @@ -24661,6 +24827,7 @@ "version": "5.3.6", "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.6.tgz", "integrity": "sha512-kfLFk+PoLUQIbLmB1+PZDMRSZS99Mp+/MHqDNmMA6tOItzRt+Npe3E+fsMs5mfcM0wCtrrdU387UnV+vnSffXQ==", + "dev": true, "requires": { "@jridgewell/trace-mapping": "^0.3.14", "jest-worker": "^27.4.5", @@ -24673,6 +24840,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, "requires": { "@types/json-schema": "^7.0.8", "ajv": "^6.12.5", @@ -24901,6 +25069,7 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz", "integrity": "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==", + "dev": true, "requires": { "escalade": "^3.1.1", "picocolors": "^1.0.0" @@ -24910,6 +25079,7 @@ "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, "requires": { "punycode": "^2.1.0" } @@ -24998,6 +25168,7 @@ "version": "2.4.0", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "dev": true, "requires": { "glob-to-regexp": "^0.4.1", "graceful-fs": "^4.1.2" @@ -25016,6 +25187,7 @@ "version": "5.75.0", "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.75.0.tgz", "integrity": "sha512-piaIaoVJlqMsPtX/+3KTTO6jfvrSYgauFVdt8cr9LTHKmcq/AMd4mhzsiP7ZF/PGRNPGA8336jldh9l2Kt2ogQ==", + "dev": true, "requires": { "@types/eslint-scope": "^3.7.3", "@types/estree": "^0.0.51", @@ -25047,12 +25219,14 @@ "version": "1.8.0", "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", + "dev": true, "requires": {} }, "schema-utils": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, "requires": { "@types/json-schema": "^7.0.8", "ajv": "^6.12.5", @@ -25241,7 +25415,8 @@ "webpack-sources": { "version": "3.2.3", "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", - "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==" + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "dev": true }, "websocket-driver": { "version": "0.7.4", diff --git a/compendium-frontend/package.json b/compendium-frontend/package.json index fa7bb6d1e0d5d172dcdb8261f5ad4f371eeb7165..ea8d38a6e8eb5eb8bc45345d37b34d58493b149e 100644 --- a/compendium-frontend/package.json +++ b/compendium-frontend/package.json @@ -47,7 +47,6 @@ "chart.js": "^4.2.1", "chartjs-plugin-datalabels": "^2.2.0", "core-js": "^3.26.1", - "file-loader": "^6.2.0", "install": "^0.13.0", "npm": "^9.2.0", "react": "^18.2.0", diff --git a/compendium-frontend/src/App.tsx b/compendium-frontend/src/App.tsx index 8c8fbe33d95e382fe5b1e8ad93b7967553e0f201..0102a5debfb70b62e38be6b8bcb188a8e775eefa 100644 --- a/compendium-frontend/src/App.tsx +++ b/compendium-frontend/src/App.tsx @@ -1,7 +1,7 @@ import React, { ReactElement, useState } from "react"; import { BrowserRouter as Router, Routes, Route } from "react-router-dom"; import Landing from "./pages/Landing"; -import ExternalPageNavBar from "./components/global/ExternalPageNavBar"; +import ExternalPageNavBar from "./shared/ExternalPageNavBar"; import GeantFooter from "./components/global/GeantFooter"; import BudgetPage from "./pages/Budget"; import CompendiumData from "./pages/CompendiumData"; diff --git a/compendium-frontend/src/main.scss b/compendium-frontend/src/main.scss index dff9a81ce01d7523498dd0c2d67f4e2ba283feeb..363e3d3090024602cad4e0c3dc2f4c46e9eaa155 100644 --- a/compendium-frontend/src/main.scss +++ b/compendium-frontend/src/main.scss @@ -85,7 +85,7 @@ } .app { - // display: flex; + display: flex; flex-direction: column; min-height: 100vh; } \ No newline at end of file diff --git a/compendium-frontend/src/pages/Landing.tsx b/compendium-frontend/src/pages/Landing.tsx index d09aadfbf08053d24bd72baa02a22748a2ba0cc4..b794a8e3e3957c661333f913d4955630167b6a01 100644 --- a/compendium-frontend/src/pages/Landing.tsx +++ b/compendium-frontend/src/pages/Landing.tsx @@ -12,13 +12,13 @@ function Landing(): ReactElement { <h1 className="geant-header">THE GÉANT COMPENDIUM OF NRENS</h1> <div className="wordwrap pt-4"> - <p> + <p style={{ textAlign: "center" }}> The GÉANT Compendium provides an authoritative reference source for anyone with an interest in the development of research and education networking in Europe and beyond. Published since 2001, the Compendium provides information on key areas such as users, services, traffic, budget and staffing. </p> - <p> + <p style={{ textAlign: "center" }}> This site captures the responses from the National Research and Education Networks themselves. </p> diff --git a/compendium-frontend/src/components/global/ExternalPageNavBar.tsx b/compendium-frontend/src/shared/ExternalPageNavBar.tsx similarity index 85% rename from compendium-frontend/src/components/global/ExternalPageNavBar.tsx rename to compendium-frontend/src/shared/ExternalPageNavBar.tsx index bb2ac21e3fd13657665c3016ff103f321c8f649a..f1372aa35a2972a632bc9bb6a561b62cc22ee688 100644 --- a/compendium-frontend/src/components/global/ExternalPageNavBar.tsx +++ b/compendium-frontend/src/shared/ExternalPageNavBar.tsx @@ -1,14 +1,8 @@ import React, { ReactElement } from "react"; import { Col, Container, Row } from "react-bootstrap"; -import Login from "../../shared/Login"; -import GeantLogo from "../../images/geant_logo_f2020_new.svg"; +import GeantLogo from "../images/geant_logo_f2020_new.svg"; + -/** - * NavBar - * - * This NavBar is only to be used when doing development, as the main site will run inside an iframe with - * the correct menu around it - */ function ExternalPageNavBar(): ReactElement { return ( <div className={'external-page-nav-bar'}> @@ -38,10 +32,6 @@ function ExternalPageNavBar(): ReactElement { </div> </Col> - - <Col align="right"> - <Login /> - </Col> </Row> </Container> </div > diff --git a/compendium-frontend/src/types/images.d.ts b/compendium-frontend/src/types/images.d.ts index 28764f8fb2d81da027a78890e03fb6cd32aeb6fd..1a6a03f450bc6b85f3cf7d5643592fa48df7558d 100644 --- a/compendium-frontend/src/types/images.d.ts +++ b/compendium-frontend/src/types/images.d.ts @@ -1,2 +1,6 @@ declare module '*png'; -declare module '*svg'; \ No newline at end of file +declare module '*svg'; +declare module '*jpg'; +declare module '*jpeg'; +declare module '*gif'; +declare module '*webp'; diff --git a/compendium-frontend/webpack.config.ts b/compendium-frontend/webpack.config.ts index 73cfd59a07fc374ff23f10dafdd3924d1fffdb9a..0a9f0691dc20f0ff1d8694fd97b0af1cb276c038 100644 --- a/compendium-frontend/webpack.config.ts +++ b/compendium-frontend/webpack.config.ts @@ -41,32 +41,7 @@ const config: Configuration = { }, { test: /\.(png|svg|jpe?g|gif)$/, - include: /images/, - use: [ - { - loader: "file-loader", - options: { - name: "[name].[ext]", - outputPath: "images/" - }, - }, - { - loader: "image-webpack-loader", - options: { - query: { - mozjpeg: { - progressive: true, - }, - gifsicle: { - interlaced: true, - }, - optipng: { - optimizationLevel: 7, - }, - }, - }, - }, - ], + type: "asset/resource" }, ], }, diff --git a/compendium_v2/auth/session_management.py b/compendium_v2/auth/session_management.py index eed857ee9adf0e1160b7387e43d0abe96ccafd6b..37be02d952405c8005ddb21cedd9d7f63f8dba4b 100644 --- a/compendium_v2/auth/session_management.py +++ b/compendium_v2/auth/session_management.py @@ -1,6 +1,6 @@ from functools import wraps from sqlalchemy import select -from flask import jsonify +from flask import jsonify, current_app from datetime import datetime from flask_login import LoginManager, current_user # type: ignore from compendium_v2.db import session_scope @@ -16,15 +16,16 @@ def admin_required(func): """ def wrapper(*args, **kwargs): - if not current_user.is_authenticated: - return jsonify(success=False, - data={'login_required': True}, - message='Authorize to access this page.'), 401 - role = current_user.roles - if role != ROLES.admin: - return jsonify(success=False, - data={'admin_required': True}, - message='Admin privileges required to access this page.'), 401 + if not current_app.config.get('LOGIN_DISABLED'): + if not current_user.is_authenticated: + return jsonify(success=False, + data={'login_required': True}, + message='Authorize to access this page.'), 401 + role = current_user.roles + if role != ROLES.admin: + return jsonify(success=False, + data={'admin_required': True}, + message='Admin privileges required to access this page.'), 401 return func(*args, **kwargs) diff --git a/compendium_v2/conversion/conversion.py b/compendium_v2/conversion/conversion.py index d400f1282c408c820dceff4169efa4dc0c42ff32..f28b69fdf40e85824262518e0e2ee8bf45efadd5 100644 --- a/compendium_v2/conversion/conversion.py +++ b/compendium_v2/conversion/conversion.py @@ -76,7 +76,7 @@ def convert_answers(answers): else: subdict = subdict.setdefault(name, {}) - if type(subdict) == list: # special case where json list is mapped to a list of dicts (part 2) + if isinstance(subdict, list): # special case where json list is mapped to a list of dicts (part 2) for answer_entry in answer: subdict.append({question_names[-1]: answer_entry}) elif question_names[-1] == "available": # special case because we changed the policies questions a bit diff --git a/compendium_v2/db/auth_model.py b/compendium_v2/db/auth_model.py index 36f354d6c5b699e3554a7e6f70b28fe19ba1bd20..c8bf55411715d1dfd6e817ca6799871b3fcfc52d 100644 --- a/compendium_v2/db/auth_model.py +++ b/compendium_v2/db/auth_model.py @@ -25,7 +25,7 @@ class ROLES(Enum): user = "user" -uuid_pk = Annotated[UUID, mapped_column(primary_key=True, default=lambda _: str(uuid4()))] +uuid_pk = Annotated[UUID, mapped_column(primary_key=True, default=lambda _: uuid4())] int_pk_fkNREN = Annotated[int, mapped_column(ForeignKey("nren.id"), primary_key=True)] # TODO: active should be default False and require admin approval @@ -71,3 +71,13 @@ class User(UserMixin, db.Model): @property def is_active(self): return self.active + + @property + def is_admin(self): + return self.roles == ROLES.admin + + @property + def nren(self): + if len(self.nrens) == 0: + return None + return self.nrens[0] diff --git a/compendium_v2/migrations/surveymodels/survey_model_2022.json b/compendium_v2/migrations/surveymodels/survey_model_2022.json index 29dd191ecf064c4440a9854735e903b2fea9bbd2..28845ad8ef26e272ac743aa695480c3f381ee30d 100644 --- a/compendium_v2/migrations/surveymodels/survey_model_2022.json +++ b/compendium_v2/migrations/surveymodels/survey_model_2022.json @@ -157,7 +157,7 @@ { "type": "multipletext", "name": "staff_roles", - "title": "5. Which of the following functional areas does your NREN have and how much FTE is dedicated to each? ", + "title": "Which of the following functional areas does your NREN have and how much FTE is dedicated to each? ", "items": [ { "name": "technical_fte", diff --git a/compendium_v2/migrations/versions/b3e1c5149181_insert_survey_model_2022.py b/compendium_v2/migrations/versions/b3e1c5149181_insert_survey_model_2022.py index b10941b1d44cd95dc17299ecd13c05ef20dcf1b1..00cbc03027a596034d1296f7ca9aa7dc78a1756f 100644 --- a/compendium_v2/migrations/versions/b3e1c5149181_insert_survey_model_2022.py +++ b/compendium_v2/migrations/versions/b3e1c5149181_insert_survey_model_2022.py @@ -178,7 +178,7 @@ new_survey_model = """ { "type": "multipletext", "name": "staff_roles", - "title": "5. Which of the following functional areas does your NREN have and how much FTE is dedicated to each? ", + "title": "Which of the following functional areas does your NREN have and how much FTE is dedicated to each? ", "items": [ { "name": "technical_fte", diff --git a/compendium_v2/routes/api.py b/compendium_v2/routes/api.py index 76ed727e5aa9a3162e9a51cc2ee4dd196dde345b..85681a24d6c79512eae0cd3be60017138223cee0 100644 --- a/compendium_v2/routes/api.py +++ b/compendium_v2/routes/api.py @@ -12,6 +12,7 @@ from compendium_v2.routes.ec_projects import routes as ec_routes from compendium_v2.routes.policy import routes as policy from compendium_v2.routes.survey import routes as survey from compendium_v2.routes.user import routes as user_routes +from compendium_v2.routes.nren import routes as nren_routes routes = Blueprint('compendium-v2-api', __name__) routes.register_blueprint(budget_routes, url_prefix='/budget') @@ -23,7 +24,7 @@ routes.register_blueprint(ec_routes, url_prefix='/ec-project') routes.register_blueprint(policy, url_prefix='/policy') routes.register_blueprint(survey, url_prefix='/survey') routes.register_blueprint(user_routes, url_prefix='/user') - +routes.register_blueprint(nren_routes, url_prefix='/nren') logger = logging.getLogger(__name__) diff --git a/compendium_v2/routes/nren.py b/compendium_v2/routes/nren.py new file mode 100644 index 0000000000000000000000000000000000000000..dc1c075c53913f2782b51b910edd14c73244f558 --- /dev/null +++ b/compendium_v2/routes/nren.py @@ -0,0 +1,46 @@ +import logging +from typing import Any + +from flask import Blueprint, jsonify + +from compendium_v2.routes import common +from compendium_v2.db.auth_model import NREN +from sqlalchemy import select + +from compendium_v2.db import db + +routes = Blueprint('nren', __name__) +logger = logging.getLogger(__name__) + +NREN_RESPONSE_SCHEMA = { + '$schema': 'http://json-schema.org/draft-07/schema#', + + 'definitions': { + 'nren': { + 'type': 'object', + 'properties': { + 'id': {'type': 'integer'}, + 'name': {'type': 'string'}, + 'country': {'type': 'string'}, + }, + 'additionalProperties': False + } + }, + + 'type': 'array', + 'items': {'$ref': '#/definitions/nren'} +} + + +@routes.route('/list', methods=['GET']) +@common.require_accepts_json +def all_nrens_view() -> Any: + def _extract_nren_data(entry: NREN): + return { + 'id': entry.id, + 'name': entry.name, + 'country': entry.country + } + + nren_entries = [_extract_nren_data(nren) for nren in db.session.scalars(select(NREN))] + return jsonify(nren_entries) diff --git a/compendium_v2/routes/survey.py b/compendium_v2/routes/survey.py index 7920a581d77c56240ccdbeab8c9348f57bb3890d..898a6b9ea527636934438190b0b41e739ddd16d8 100644 --- a/compendium_v2/routes/survey.py +++ b/compendium_v2/routes/survey.py @@ -3,6 +3,7 @@ from enum import Enum from typing import Any, TypedDict, List, Dict from flask import Blueprint, jsonify, request +from flask_login import login_required, current_user # type: ignore from sqlalchemy import select from sqlalchemy.orm import joinedload, load_only @@ -10,6 +11,7 @@ from compendium_v2.db import db from compendium_v2.db.model import NREN from compendium_v2.db.survey_model import Survey, SurveyResponse, SurveyStatus, ResponseStatus from compendium_v2.routes import common +from compendium_v2.auth.session_management import admin_required, User routes = Blueprint('survey', __name__) @@ -66,9 +68,19 @@ class VerificationStatus(str, Enum): Edited = "edited" # a question for which last years answer was edited -# TODO admin only +def check_access_nren(user: User, nren: str) -> bool: + if user.is_anonymous: + return False + if user.is_admin: + return True + if nren == user.nren: + return True + return False + + @routes.route('/list', methods=['GET']) @common.require_accepts_json +@admin_required def list_surveys() -> Any: """ retrieve a list of surveys and responses, including their status @@ -119,9 +131,9 @@ def list_surveys() -> Any: return jsonify(entries) -# TODO admin only @routes.route('/new', methods=['POST']) @common.require_accepts_json +@admin_required def start_new_survey() -> Any: """ endpoint to initiate a new survey @@ -130,14 +142,17 @@ def start_new_survey() -> Any: """ all_surveys = db.session.scalars(select(Survey).options(load_only(Survey.status))) if any([survey.status != SurveyStatus.published for survey in all_surveys]): - return "All earlier surveys should be published before starting a new one", 400 + return jsonify({ + 'success': False, + 'message': 'All earlier surveys should be published before starting a new one' + }), 400 last_survey = db.session.scalar( select(Survey).order_by(Survey.year.desc()).limit(1) ) if not last_survey: - return "No survey found", 404 + return jsonify({'success': False, 'message': 'No surveys found'}), 404 new_year = last_survey.year + 1 new_survey = last_survey.survey @@ -148,9 +163,9 @@ def start_new_survey() -> Any: return {'success': True} -# TODO admin only @routes.route('/open/<int:year>', methods=['POST']) @common.require_accepts_json +@admin_required def open_survey(year) -> Any: """ endpoint to open a survey to the nrens @@ -159,14 +174,14 @@ def open_survey(year) -> Any: """ survey = db.session.scalar(select(Survey).where(Survey.year == year)) if not survey: - return "Survey not found", 404 + return jsonify({'success': False, 'message': 'Survey not found'}), 404 if survey.status != SurveyStatus.closed: - return "Survey is not closed and can therefore not be opened", 400 + return jsonify({'success': False, 'message': 'Survey is not closed and can therefore not be opened'}), 400 all_surveys = db.session.scalars(select(Survey)) if any([s.status == SurveyStatus.open for s in all_surveys]): - return "There already is an open survey", 400 + return jsonify({'success': False, 'message': 'There already is an open survey'}), 400 survey.status = SurveyStatus.open db.session.commit() @@ -174,9 +189,9 @@ def open_survey(year) -> Any: return {'success': True} -# TODO admin only @routes.route('/close/<int:year>', methods=['POST']) @common.require_accepts_json +@admin_required def close_survey(year) -> Any: """ endpoint to close a survey to the nrens @@ -185,10 +200,10 @@ def close_survey(year) -> Any: """ survey = db.session.scalar(select(Survey).where(Survey.year == year)) if not survey: - return "Survey not found", 404 + return jsonify({'success': False, 'message': 'Survey not found'}), 404 if survey.status != SurveyStatus.open: - return "Survey is not open and can therefore not be closed", 400 + return jsonify({'success': False, 'message': 'Survey is not open and can therefore not be closed'}), 400 survey.status = SurveyStatus.closed db.session.commit() @@ -196,9 +211,9 @@ def close_survey(year) -> Any: return {'success': True} -# TODO admin only @routes.route('/publish/<int:year>', methods=['POST']) @common.require_accepts_json +@admin_required def publish_survey(year) -> Any: """ endpoint to publish a survey to the compendium website @@ -207,13 +222,16 @@ def publish_survey(year) -> Any: """ survey = db.session.scalar(select(Survey).where(Survey.year == year)) if not survey: - return "Survey not found", 404 + return jsonify({'success': False, 'message': 'Survey not found'}), 404 if survey.status not in [SurveyStatus.closed, SurveyStatus.published]: - return "Survey is not closed or published and can therefore not be published", 400 + return jsonify({ + 'success': False, + 'message': 'Survey is not closed or published and can therefore not be published' + }), 400 if any([response.status != ResponseStatus.checked for response in survey.responses]): - return "There are responses that arent checked yet", 400 + return jsonify({'success': False, 'message': 'There are responses that arent checked yet'}), 400 # TODO call new survey_publisher with all responses and the year @@ -223,9 +241,9 @@ def publish_survey(year) -> Any: return {'success': True} -# TODO admin only @routes.route('/try/<int:year>', methods=['GET']) @common.require_accepts_json +@admin_required def try_survey(year) -> Any: """ Get a survey without any associated nren for trying out the survey. @@ -249,9 +267,9 @@ def try_survey(year) -> Any: }) -# TODO admin only @routes.route('/inspect/<int:year>', methods=['GET']) @common.require_accepts_json +@admin_required def inspect_survey(year) -> Any: """ Get a survey without any associated nren for inspecting all questions. @@ -269,9 +287,9 @@ def inspect_survey(year) -> Any: def visible_visitor(object, items): for key, value in items: - if type(value) == dict: + if isinstance(value, dict): visible_visitor(value, value.items()) - elif type(value) == list: + elif isinstance(value, list): visible_visitor(value, enumerate(value)) elif key == 'visibleIf': object['title'] = object['title'] + ' (visibleif: [' + value.replace('{', '#').replace('}', '#') + '])' @@ -289,6 +307,7 @@ def inspect_survey(year) -> Any: @routes.route('/load/<int:year>/<string:nren_name>', methods=['GET']) @common.require_accepts_json +@login_required def load_survey(year, nren_name) -> Any: """ Get a survey for an nren. @@ -310,7 +329,8 @@ def load_survey(year, nren_name) -> Any: if not survey: return "Survey not found", 404 - # TODO validation (if not admin) on year (is survey open?) and nren (logged in user is part of nren?) + if not check_access_nren(current_user, nren): + return jsonify({'success': False, 'message': 'You do not have permissions to access this survey.'}), 403 data = {} page = 0 @@ -343,6 +363,7 @@ def load_survey(year, nren_name) -> Any: @routes.route('/save/<int:year>/<string:nren_name>', methods=['POST']) @common.require_accepts_json +@login_required def save_survey(year, nren_name) -> Any: """ endpoint to save a survey response @@ -358,7 +379,11 @@ def save_survey(year, nren_name) -> Any: if survey is None: return "Survey not found", 404 - # TODO validation (if not admin) on year (is survey open?) and nren (logged in user is part of nren?) + if not check_access_nren(current_user, nren): + return jsonify({'success': False, 'message': 'You do not have permission to edit this survey.'}), 403 + + if survey.status != SurveyStatus.open and not current_user.is_admin: + return jsonify({'success': False, 'message': 'Survey is closed'}), 400 response = db.session.scalar( select(SurveyResponse).where(SurveyResponse.survey_year == year).where(SurveyResponse.nren_id == nren.id) @@ -369,7 +394,7 @@ def save_survey(year, nren_name) -> Any: save_survey = request.json if not save_survey: - raise Exception("Invalid format") + return jsonify({'success': False, 'message': 'Invalid Survey Format'}), 400 response.answers = { "data": save_survey["data"], diff --git a/compendium_v2/routes/user.py b/compendium_v2/routes/user.py index 96dca333afa6fb0b873a1b4a4ca4fabf51dd5c38..d3326ec2ef2181c9d7cd0576f8be2265aeb73171 100644 --- a/compendium_v2/routes/user.py +++ b/compendium_v2/routes/user.py @@ -1,15 +1,16 @@ import logging from typing import Any, Union -from flask import Blueprint, jsonify -from flask_login import current_user, AnonymousUserMixin # type: ignore +from flask import Blueprint, jsonify, request +from flask_login import current_user, AnonymousUserMixin, login_required # type: ignore from sqlalchemy import select +from compendium_v2.auth.session_management import admin_required from compendium_v2.db import db from compendium_v2.db.auth_model import User, ROLES +from compendium_v2.db.model import NREN from compendium_v2.routes import common - routes = Blueprint('user', __name__) logger = logging.getLogger(__name__) @@ -29,11 +30,18 @@ USER_RESPONSE_SCHEMA = { 'user': { 'type': 'object', 'properties': { - 'name': {'type': 'string'}, + 'name': {'type': ['string', 'null']}, 'email': {'type': ['string', 'null']}, 'permissions': {'$ref': '#/definitions/permissions'}, + 'id': {'type': 'uuid'}, + 'role': {'type': 'string'}, + 'oidc_sub': {'type': 'string'}, + 'nrens': { + 'type': 'array', + 'items': {'type': 'string'} + } }, - 'required': ['name', 'email', 'permissions'], + 'required': ['permissions'], 'additionalProperties': False } }, @@ -43,6 +51,28 @@ USER_RESPONSE_SCHEMA = { } +def _extract_user(user: Union[User, AnonymousUserMixin]): + if isinstance(user, AnonymousUserMixin): + return { + 'permissions': { + 'admin': False, + 'active': False, + } + } + return { + 'name': user.fullname, + 'email': user.email, + 'permissions': { + 'admin': user.roles == ROLES.admin, + 'active': user.active, + }, + 'id': user.id, + 'role': user.roles.value, + 'oidc_sub': user.oidc_sub, + 'nrens': [nren.name for nren in user.nrens] + } + + @routes.route('/', methods=['GET']) @common.require_accepts_json def current_user_view() -> Any: @@ -57,42 +87,84 @@ def current_user_view() -> Any: :return: """ - def _extract_data(entry: Union[User, AnonymousUserMixin]): - if isinstance(entry, AnonymousUserMixin): - return { - 'name': '', - 'email': None, - 'permissions': { - 'admin': False, - 'active': False, - } - } - return { - 'name': entry.fullname, - 'email': entry.email, - 'permissions': { - 'admin': entry.roles == ROLES.admin, - 'active': entry.active, - } - } - - return jsonify(_extract_data(current_user)) + return jsonify(_extract_user(current_user)) @routes.route('/list', methods=['GET']) @common.require_accepts_json +@login_required +@admin_required def all_users_view() -> Any: # TODO schema and docstring - def _extract_data(entry: User): - return { - 'id': entry.id, - 'email': entry.email, - 'roles': entry.roles.value, - 'active': entry.active, - 'nrens': [nren.name for nren in entry.nrens] - } - - entries = [_extract_data(entry) for entry in db.session.scalars( + entries = [_extract_user(user) for user in db.session.scalars( select(User).order_by(User.email)).unique()] return jsonify(entries) + + +@routes.route('/', methods=['PUT']) +@common.require_accepts_json +@login_required +@admin_required +def update_user_view() -> Any: + """ + Handler for updating user information via PUT request. + + Request data should be in JSON format with the fields you want to update. + The response will be formatted the same way as in the current_user_view. + + Example JSON request data: + { + "name": "Updated Name", + "email": "updated@example.com", + "roles": ["role1", "role2"], + "active": False + } + + :return: + """ + + def _update_user_data(user: User, update_data: dict): + + new_roles = update_data.get('roles', user.roles.value) + + if new_roles != user.roles.value: + if user == current_user: + return jsonify({'success': False, 'message': 'Cannot change your own role.'}), 400 + + user.roles = new_roles + + if 'active' in update_data: + _active = bool(update_data['active']) + if _active != user.active: + if user == current_user: + return jsonify({'success': False, 'message': 'Cannot deactivate yourself.'}), 400 + + user.active = _active + + nrens = update_data.get('nrens', None) + if nrens is not None: + new_nrens = None + try: + new_nrens = db.session.scalars(select(NREN).filter(NREN.id.in_(update_data['nrens']))).all() + user.nrens = [nren for nren in new_nrens] + db.session.commit() + except Exception: + return jsonify({'success': False, 'message': 'No valid NREN IDs provided.'}), 400 + + return jsonify({'success': True, 'message': 'User updated successfully'}) + + body = request.get_json() + if not body: + return jsonify({"success": False, 'message': 'Invalid request'}), 400 + + user_id = body.get("id") + if not user_id: + return jsonify({"success": False, 'message': 'No user ID provided in the request data.'}), 400 + + user = db.session.execute(select(User).filter_by(id=user_id)).scalar() + + if not user: + return jsonify({"success": False, 'message': 'User not found.'}), 404 + + return _update_user_data(user, body) diff --git a/compendium_v2/static/4b5816823ff8fb2eb238.svg b/compendium_v2/static/4b5816823ff8fb2eb238.svg new file mode 100644 index 0000000000000000000000000000000000000000..ffc9ed1f0c93c3bc1eebc0c31992731725f55f66 --- /dev/null +++ b/compendium_v2/static/4b5816823ff8fb2eb238.svg @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Generator: Adobe Illustrator 27.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> +<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" + viewBox="0 0 207.17 207.08" style="enable-background:new 0 0 207.17 207.08;" xml:space="preserve"> +<style type="text/css"> + .st0{fill:#FFFFFF;stroke:#C5CAD1;stroke-miterlimit:10;} + .st1{fill:#BBBDBF;} + .st2{fill:#F69320;} +</style> +<g> + <path class="st0" d="M171.3,190.6H36.7c-10.11,0-18.39-8.27-18.39-18.39V37.62c0-10.11,8.27-18.39,18.39-18.39h134.6 + c10.11,0,18.39,8.27,18.39,18.39v134.6C189.69,182.33,181.41,190.6,171.3,190.6z"/> + <g> + <path class="st1" d="M103.91,133.71H93.13c-15.04,0-27.57-11.96-27.77-27c-0.2-15.28,12.13-27.72,27.36-27.72h11.03 + c1.35,0,2.45-1.09,2.45-2.45v-6.08c0-0.9-0.58-1.69-1.43-1.97c-0.54-0.18-1.09-0.35-1.65-0.5c-2.06-0.58-3.68-2.16-4.4-4.17 + l-0.93-2.62c-0.52-1.45-1.87-2.44-3.41-2.5c-0.69-0.03-1.39-0.05-2.09-0.05c-0.73,0-1.46,0.02-2.18,0.05 + c-1.49,0.07-2.79,1.01-3.29,2.41l-1.05,2.95c-0.68,1.92-2.26,3.36-4.22,3.91c-2.88,0.8-5.62,1.92-8.2,3.31 + c-2.22,1.2-4.88,1.27-7.16,0.18l-2.62-1.24c-0.96-0.45-2.1-0.3-2.89,0.41c-1.46,1.29-2.84,2.67-4.13,4.13 + c-0.7,0.79-0.86,1.93-0.41,2.89l1.37,2.89c1,2.11,0.96,4.57-0.17,6.62c-1.41,2.57-2.55,5.31-3.38,8.19 + c-0.62,2.18-2.3,3.9-4.44,4.66l-3.15,1.12c-0.98,0.35-1.65,1.24-1.72,2.28c-0.06,0.98-0.09,1.97-0.09,2.96 + c0,0.99,0.03,1.98,0.09,2.96c0.06,1.03,0.74,1.93,1.72,2.28l2.8,1c2.35,0.84,4.18,2.74,4.89,5.13c0.8,2.7,1.88,5.29,3.21,7.72 + c1.16,2.12,1.21,4.68,0.18,6.86l-1.13,2.39c-0.57,1.19-0.38,2.61,0.51,3.59c1.12,1.24,2.29,2.42,3.53,3.53 + c0.98,0.88,2.4,1.07,3.59,0.51l2.87-1.36c1.94-0.92,4.2-0.81,6.08,0.24c2.43,1.35,5.01,2.46,7.72,3.28 + c2.58,0.79,4.64,2.74,5.54,5.27l0.8,2.26c0.4,1.13,1.43,1.91,2.63,1.98c0.89,0.05,1.79,0.08,2.7,0.08c0.9,0,1.8-0.03,2.7-0.08 + c1.19-0.07,2.23-0.86,2.63-1.98l0.84-2.36c0.89-2.5,2.94-4.39,5.48-5.16c0.2-0.06,0.41-0.13,0.61-0.19 + c0.98-0.32,1.65-1.23,1.65-2.26V136C106.2,134.73,105.18,133.71,103.91,133.71z"/> + <g> + <path class="st2" d="M92.73,91.39h20.14c1.86,0,3.65-0.79,4.9-2.17l7.52-8.26c1.15,0.54,2.43,0.85,3.79,0.85 + c4.93,0,8.94-4.01,8.94-8.94c0-4.93-4.01-8.94-8.94-8.94c-4.93,0-8.94,4.01-8.94,8.94c0,1.78,0.53,3.43,1.42,4.82l-7.46,8.18 + c-0.32,0.35-0.77,0.55-1.24,0.55H92.73c-1.37,0-2.48,1.11-2.48,2.48S91.36,91.39,92.73,91.39z M129.09,68.9 + c2.2,0,3.98,1.79,3.98,3.98c0,2.2-1.79,3.98-3.98,3.98c-2.2,0-3.98-1.79-3.98-3.98C125.11,70.69,126.89,68.9,129.09,68.9z"/> + <path class="st2" d="M159.99,80.63c-4.19,0-7.7,2.9-8.67,6.79h-10.55c-2.09,0-4.09,0.78-5.63,2.19l-8.12,7.43 + c-0.67,0.62-1.55,0.96-2.46,0.96H92.73c-1.37,0-2.48,1.11-2.48,2.48c0,1.37,1.11,2.48,2.48,2.48h31.83c2.16,0,4.22-0.8,5.81-2.26 + l8.12-7.43c0.62-0.57,1.43-0.89,2.28-0.89h10.74c1.18,3.56,4.53,6.13,8.48,6.13c4.93,0,8.94-4.01,8.94-8.94 + C168.93,84.64,164.92,80.63,159.99,80.63z M159.99,93.56c-2.2,0-3.98-1.79-3.98-3.98c0-2.2,1.79-3.98,3.98-3.98 + c2.2,0,3.98,1.79,3.98,3.98C163.98,91.77,162.19,93.56,159.99,93.56z"/> + <path class="st2" d="M142.43,104.38c-4.07,0-7.51,2.74-8.58,6.46H92.4c-1.37,0-2.48,1.11-2.48,2.48c0,1.37,1.11,2.48,2.48,2.48 + h41.44c1.08,3.73,4.51,6.46,8.58,6.46c4.93,0,8.94-4.01,8.94-8.94C151.37,108.39,147.36,104.38,142.43,104.38z M142.43,117.3 + c-2.2,0-3.98-1.79-3.98-3.98c0-2.2,1.79-3.98,3.98-3.98c2.2,0,3.98,1.79,3.98,3.98C146.41,115.52,144.62,117.3,142.43,117.3z"/> + <path class="st2" d="M128.94,130.87c-1.47,0-2.86,0.36-4.08,1l-6.59-7.34c-1.56-1.73-3.78-2.73-6.11-2.73H92.73 + c-1.37,0-2.48,1.11-2.48,2.48s1.11,2.48,2.48,2.48h19.42c0.92,0,1.8,0.39,2.42,1.08l6.67,7.44c-0.79,1.33-1.25,2.88-1.25,4.54 + c0,4.93,4.01,8.94,8.94,8.94c4.93,0,8.94-4.01,8.94-8.94C137.88,134.88,133.87,130.87,128.94,130.87z M128.94,143.8 + c-2.2,0-3.98-1.79-3.98-3.98c0-2.2,1.79-3.98,3.98-3.98c2.2,0,3.98,1.79,3.98,3.98C132.92,142.01,131.13,143.8,128.94,143.8z"/> + </g> + </g> +</g> +</svg> diff --git a/compendium_v2/static/67fa101547c0e32181b3.png b/compendium_v2/static/67fa101547c0e32181b3.png new file mode 100644 index 0000000000000000000000000000000000000000..fe13dc7afb560eaafda8498d75c3102869833e84 Binary files /dev/null and b/compendium_v2/static/67fa101547c0e32181b3.png differ diff --git a/compendium_v2/static/9ab20ac1d835b50b2e01.svg b/compendium_v2/static/9ab20ac1d835b50b2e01.svg new file mode 100644 index 0000000000000000000000000000000000000000..31bfead62b052812096b5a9c79cf782ce330a87c --- /dev/null +++ b/compendium_v2/static/9ab20ac1d835b50b2e01.svg @@ -0,0 +1,16 @@ +<svg width="79" height="35" viewBox="0 0 79 35" fill="none" xmlns="http://www.w3.org/2000/svg"> +<g clip-path="url(#clip0_101_15)"> +<path d="M15.9 17.8C16.5 17.3 17 17.1 17.4 17.1C18.4 17.1 18.7 17.8 18.7 18.2C18.5 18.3 14.2 19.7 14 19.8C13.9 19.7 13.9 19.6 13.8 19.6C14 19.4 15.9 17.8 15.9 17.8Z" fill="white" fill-opacity="0.85"/> +<path d="M0 27C0 31.8 2.1 34.3 6.3 34.3C9.1 34.3 10.8 33.1 10.8 33L10.9 32.9V26.2H5.2V28.1C5.2 28.1 8.1 28.1 8.6 28.1C8.6 28.6 8.6 31.6 8.6 31.9C8.3 32.1 7.4 32.4 6.2 32.4C3.7 32.4 2.5 30.6 2.5 27C2.5 24.9 3.1 22.4 5.9 22.4C7.8 22.4 8.5 23.5 8.5 24.5V24.8H11.1V24.5C11.1 22.1 9 20.5 5.9 20.5C2.2 20.5 0 22.9 0 27Z" fill="white" fill-opacity="0.85"/> +<path d="M20.2 20.7H12.6V34.1H20.7V32.2C20.7 32.2 15.5 32.2 14.9 32.2C14.9 31.7 14.9 28.5 14.9 28C15.5 28 20.2 28 20.2 28V26.1C20.2 26.1 15.5 26.1 14.9 26.1C14.9 25.6 14.9 23 14.9 22.5C15.5 22.5 20.5 22.5 20.5 22.5V20.6H20.2V20.7Z" fill="white" fill-opacity="0.85"/> +<path d="M54.5 20.7H42.9C42.9 20.7 42.9 28.7 42.9 30.6C42 29 37.2 20.7 37.2 20.7H34.5V34.1H36.8C36.8 34.1 36.8 26.1 36.8 24.2C37.7 25.8 42.5 34.1 42.5 34.1H45.2C45.2 34.1 45.2 23.2 45.2 22.6C45.7 22.6 48.4 22.6 48.9 22.6C48.9 23.2 48.9 34.1 48.9 34.1H51.3C51.3 34.1 51.3 23.2 51.3 22.6C51.8 22.6 54.9 22.6 54.9 22.6V20.7H54.5V20.7Z" fill="white" fill-opacity="0.85"/> +<path d="M28.9 20.7H28.7H26.4L21.4 34.1H23.8C23.8 34.1 25.1 30.6 25.3 30.2C25.7 30.2 29.8 30.2 30.2 30.2C30.3 30.6 31.7 34.1 31.7 34.1H34L28.9 20.7ZM25.9 28.3C26.1 27.6 27.3 24.4 27.7 23.3C28.1 24.4 29.2 27.6 29.5 28.3C28.7 28.3 26.6 28.3 25.9 28.3Z" fill="white" fill-opacity="0.85"/> +<path d="M77 8C68.2 -2.9 32.6 12.5 23 16.5C22.3 16.8 21.4 16.7 20.9 15.7C21.3 16.7 22.1 17.1 23.1 16.7C35.8 11.6 66.5 0.600002 74.2 10.7C77.7 15.3 76.7 20.9 72.9 28.8C72.7 29.1 72.6 29.4 72.6 29.4C72.6 29.4 72.6 29.4 72.6 29.5C72.6 29.5 72.6 29.5 72.6 29.6C72.3 30.1 71.9 30.3 71.6 30.4C72 30.4 72.5 30.2 72.9 29.6C73 29.5 73.1 29.3 73.3 29C78.7 19.5 80.7 12.5 77 8Z" fill="white" fill-opacity="0.85"/> +<path d="M70.3 29.9C70.2 29.8 68.6 28.4 67 26.9C58.7 19 33.4 -5.3 22.4 1.1C19.3 2.9 18.8 8.2 20.7 15.2C20.7 15.3 20.8 15.4 20.8 15.5C21 16.2 21.5 16.7 22.2 16.7C21.7 16.6 21.3 16.2 21.1 15.7C21.1 15.6 21 15.5 21 15.5C21 15.4 20.9 15.3 20.9 15.1C20.9 15 20.9 14.9 20.8 14.9C19.8 9 21 5.1 23.4 3.5C32.3 -2.5 53.5 15.8 64.2 25C66.6 27.1 69.4 29.5 70.2 30.1C71.4 31 72.4 30 72.7 29.5C72.3 30.1 71.3 30.7 70.3 29.9Z" fill="white" fill-opacity="0.85"/> +</g> +<defs> +<clipPath id="clip0_101_15"> +<rect width="78.9" height="34.3" fill="white"/> +</clipPath> +</defs> +</svg> diff --git a/compendium_v2/static/a0a202b04b5c8b9d1b93.svg b/compendium_v2/static/a0a202b04b5c8b9d1b93.svg new file mode 100644 index 0000000000000000000000000000000000000000..fe20f727fe39aee9a99d4808264a092c86adce17 --- /dev/null +++ b/compendium_v2/static/a0a202b04b5c8b9d1b93.svg @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Generator: Adobe Illustrator 24.3.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> +<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" + viewBox="0 0 140 61" style="enable-background:new 0 0 140 61;" xml:space="preserve"> +<style type="text/css"> + .st0{fill:#FFFFFF;} + .st1{fill:#E5004B;} +</style> +<g> + <g> + <g> + <path class="st0" d="M28.9,31.6c1-0.8,1.9-1.2,2.7-1.2c1.7,0.1,2.2,1.2,2.3,1.9c-0.4,0.1-7.8,2.6-8.2,2.7 + c-0.1-0.1-0.2-0.3-0.4-0.4C25.8,34.4,28.9,31.6,28.9,31.6z"/> + <path class="st0" d="M1.5,47.5c0,8.4,3.7,12.7,11,12.7c4.8,0,7.7-2.1,7.8-2.2l0.2-0.2V46.2H10.5v3.2c0,0,5,0,6,0c0,0.9,0,6,0,6.5 + c-0.6,0.3-2.1,1-4.2,1c-4.3,0-6.4-3.1-6.4-9.4c0-3.6,1-8,6-8c3.3,0,4.4,1.9,4.4,3.7v0.6h4.5v-0.6c0-4.1-3.6-6.9-8.9-6.9 + C5.2,36.3,1.5,40.4,1.5,47.5z"/> + <path class="st0" d="M36.4,36.7H23.2v23.1h14.1v-3.2c0,0-9,0-10,0c0-0.9,0-6.3,0-7.3c1,0,9.2,0,9.2,0v-3.2c0,0-8.2,0-9.2,0 + c0-0.9,0-5.3,0-6.2c1,0,9.7,0,9.7,0v-3.2H36.4z"/> + <g> + <path class="st0" d="M95.8,36.7h-20c0,0,0,13.9,0,17.1c-1.6-2.8-9.9-17.1-9.9-17.1h-4.7v23.1h3.9c0,0,0-13.9,0-17.1 + c1.6,2.8,9.9,17.1,9.9,17.1h4.7c0,0,0-18.8,0-19.9c0.9,0,5.5,0,6.4,0c0,1.1,0,19.9,0,19.9h4.1c0,0,0-18.8,0-19.9 + c0.9,0,6.2,0,6.2,0v-3.2H95.8z"/> + </g> + <path class="st0" d="M51.5,36.7h-0.4h-4l-8.7,23.1h4.2c0,0,2.3-6.1,2.5-6.8c0.7,0,7.8,0,8.5,0c0.3,0.7,2.6,6.8,2.6,6.8h4.2 + L51.5,36.7z M46.3,49.8c0.4-1.1,2.3-6.7,3-8.7c0.7,2,2.6,7.5,3,8.7C51.2,49.8,47.4,49.8,46.3,49.8z"/> + </g> + <g> + <path class="st0" d="M134.7,14.7c-15.2-18.8-76.9,7.8-93.4,14.8c-1.2,0.5-2.7,0.4-3.6-1.3c0.7,1.7,2,2.3,3.7,1.7 + c22-8.8,75.2-27.9,88.5-10.5c6,7.9,4.3,17.6-2.3,31.3c-0.3,0.6-0.5,1-0.6,1.1c0,0,0,0.1-0.1,0.1c0,0,0,0.1-0.1,0.1 + c-0.5,0.8-1.2,1.3-1.8,1.5c0.8,0,1.6-0.4,2.2-1.4c0.2-0.3,0.4-0.6,0.6-1l0,0C137.7,34.7,141.1,22.5,134.7,14.7z"/> + </g> + <g> + <path class="st1" d="M123.2,52.6c-0.2-0.2-3-2.6-5.7-5.2C103,33.8,59.4-8.4,40.3,2.7c-5.4,3.1-6.3,12.2-3,24.3c0,0,0,0,0,0.1v0 + c0,0.2,0.1,0.3,0.1,0.5c0.4,1.3,1.3,2.1,2.4,2.1c-0.8-0.2-1.5-0.8-1.9-1.8c-0.1-0.1-0.1-0.3-0.1-0.4c-0.1-0.2-0.1-0.4-0.2-0.7 + l0,0c0-0.1-0.1-0.3-0.1-0.4c-1.8-10.3,0.4-17,4.5-19.8c15.3-10,52,21.6,70.4,37.5c4.2,3.7,9,7.7,10.5,8.8c2.1,1.6,3.8-0.2,4.3-1 + C126.6,53,124.8,54,123.2,52.6z"/> + </g> + </g> +</g> +</svg> diff --git a/compendium_v2/static/b604b5dd99b466fbf823.svg b/compendium_v2/static/b604b5dd99b466fbf823.svg new file mode 100644 index 0000000000000000000000000000000000000000..b6eb1074967ea724618ec96b4a65b0225df33594 --- /dev/null +++ b/compendium_v2/static/b604b5dd99b466fbf823.svg @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Generator: Adobe Illustrator 27.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> +<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" + viewBox="0 0 207.17 207.08" style="enable-background:new 0 0 207.17 207.08;" xml:space="preserve"> +<style type="text/css"> + .st0{fill:#FFFFFF;stroke:#C5CAD1;stroke-miterlimit:10;} + .st1{fill:#00A79C;} + .st2{fill:#BBBDBF;} +</style> +<g> + <path class="st0" d="M171.94,189.03H33.75c-9.12,0-16.59-7.47-16.59-16.59V34.25c0-9.12,7.47-16.59,16.59-16.59h138.19 + c9.12,0,16.59,7.47,16.59,16.59v138.19C188.53,181.57,181.07,189.03,171.94,189.03z"/> + <g> + <g> + <g> + <path class="st1" d="M115.35,119.12c-8.38-8.38-8.38-22.01,0-30.39c8.38-8.38,22.01-8.38,30.39,0c8.38,8.38,8.38,22.01,0,30.39 + C137.36,127.5,123.73,127.5,115.35,119.12z M118.55,115.92c6.62,6.61,17.38,6.61,23.99,0c6.61-6.61,6.62-17.38,0-23.99 + c-6.61-6.62-17.38-6.62-23.99,0C111.94,98.54,111.94,109.3,118.55,115.92z"/> + </g> + <g> + <path class="st1" d="M148.09,121.47c1.15-1.15,2.19-2.36,3.14-3.63l15.79,15.79c1.91,1.92,1.91,5.02,0,6.93 + c-1.92,1.92-5.02,1.92-6.93,0l-15.81-15.81C145.61,123.77,146.89,122.68,148.09,121.47z"/> + </g> + <g> + <path class="st1" d="M120.95,103.07c0-2.31,0.9-4.47,2.53-6.1c1.43-1.43,3.33-2.32,5.34-2.49l-0.3-3.36 + c-2.8,0.25-5.44,1.48-7.43,3.47c-2.27,2.27-3.51,5.28-3.51,8.48H120.95z"/> + </g> + </g> + <g> + <path class="st2" d="M83.46,124.61c-1.11,0-2.01,0.91-2.01,2.01c0,1.11,0.91,2.01,2.01,2.01h32.76c0.19,0,0.38-0.04,0.55-0.09 + c-2.04-1.08-3.94-2.41-5.64-3.94H83.46z"/> + <path class="st2" d="M129.75,131.77c-0.48,0-0.95-0.01-1.43-0.04v11.15c0,3.57-2.9,6.47-6.47,6.47H63.06 + c-3.57,0-6.47-2.9-6.47-6.47V66.71c0-3.57,2.9-6.47,6.47-6.47h58.79c3.57,0,6.47,2.9,6.47,6.47v9.53 + c0.47-0.02,0.95-0.04,1.43-0.04c0.53,0,1.05,0.02,1.57,0.05v-9.55c0-5.22-4.25-9.47-9.47-9.47h-6.45l-0.24-1.1 + c-0.75-3.5-4.22-5.73-7.71-4.98l-4.67,1.01l-2.98-5.15c-1.55-2.68-4.98-3.6-7.66-2.05L70.63,57.24h-7.57 + c-3.73,0-6.95,2.17-8.5,5.31l-6.84,1.47c-3.5,0.75-5.73,4.21-4.98,7.71l0.34,1.57l-5.37,3.1c-2.68,1.55-3.6,4.98-2.05,7.66 + l15.52,26.88l2.41,11.18v20.76c0,5.22,4.25,9.47,9.47,9.47h58.79c5.22,0,9.47-4.25,9.47-9.47v-11.16 + C130.8,131.76,130.28,131.77,129.75,131.77z M108.09,54.1c1.88-0.4,3.74,0.8,4.14,2.68l0.1,0.47H92.73L108.09,54.1z M93.66,47.56 + c1.25-0.72,2.84-0.29,3.56,0.96l2.49,4.32l-20.44,4.41h-2.38L93.66,47.56z M38.26,82.56c-0.72-1.25-0.29-2.84,0.96-3.56 + l4.53-2.62l5.38,25L38.26,82.56z M53.59,66.71v42.11L45.68,71.1c-0.41-1.88,0.79-3.74,2.67-4.14l5.28-1.14 + C53.6,66.11,53.59,66.41,53.59,66.71z"/> + <path class="st2" d="M83.46,132.46c-1.11,0-2.01,0.91-2.01,2.01s0.91,2.01,2.01,2.01h32.76c1.11,0,2.01-0.91,2.01-2.01 + s-0.91-2.01-2.01-2.01H83.46z"/> + <path class="st2" d="M70.44,123.01c-4.24,0-7.68,3.45-7.68,7.68c0,4.24,3.45,7.68,7.68,7.68s7.68-3.45,7.68-7.68 + C78.12,126.46,74.68,123.01,70.44,123.01z M70.44,135.18c-2.47,0-4.48-2.01-4.48-4.48s2.01-4.48,4.48-4.48s4.48,2.01,4.48,4.48 + S72.91,135.18,70.44,135.18z"/> + <path class="st2" d="M81.45,100.27c0,1.11,0.91,2.01,2.01,2.01h18.57c0.08-1.37,0.26-2.72,0.54-4.03H83.46 + C82.35,98.25,81.45,99.16,81.45,100.27z"/> + <path class="st2" d="M70.44,71.16c-4.24,0-7.68,3.45-7.68,7.68c0,4.24,3.45,7.68,7.68,7.68s7.68-3.45,7.68-7.68 + C78.12,74.61,74.68,71.16,70.44,71.16z M70.44,83.33c-2.47,0-4.48-2.01-4.48-4.48s2.01-4.48,4.48-4.48s4.48,2.01,4.48,4.48 + S72.91,83.33,70.44,83.33z"/> + <path class="st2" d="M70.44,96.65c-4.24,0-7.68,3.45-7.68,7.68c0,4.24,3.45,7.68,7.68,7.68s7.68-3.45,7.68-7.68 + C78.12,100.1,74.68,96.65,70.44,96.65z M70.44,108.82c-2.47,0-4.48-2.01-4.48-4.48s2.01-4.48,4.48-4.48s4.48,2.01,4.48,4.48 + S72.91,108.82,70.44,108.82z"/> + <path class="st2" d="M81.45,108.12c0,1.11,0.91,2.01,2.01,2.01h19.2c-0.3-1.31-0.5-2.66-0.6-4.03h-18.6 + C82.35,106.1,81.45,107.01,81.45,108.12L81.45,108.12z"/> + <path class="st2" d="M83.46,76.79h32.76c1.11,0,2.01-0.91,2.01-2.01s-0.91-2.01-2.01-2.01H83.46c-1.11,0-2.01,0.91-2.01,2.01 + S82.35,76.79,83.46,76.79z"/> + <path class="st2" d="M81.45,82.62L81.45,82.62c0,1.11,0.91,2.01,2.01,2.01h26.37c1.48-1.52,3.14-2.88,4.93-4.03h-31.3 + C82.35,80.61,81.45,81.51,81.45,82.62z"/> + </g> + </g> +</g> +</svg> diff --git a/compendium_v2/static/bundle.js b/compendium_v2/static/bundle.js index efae12a548165b49cc87afd32c311c2799d37192..3ebfbad64c5dace18bf4d6a9a6c5a3a8e7d11cb5 100644 --- a/compendium_v2/static/bundle.js +++ b/compendium_v2/static/bundle.js @@ -1,2 +1,2 @@ /*! For license information please see bundle.js.LICENSE.txt */ -(()=>{var t,e,r={844:(t,e)=>{"use strict";e.gr=void 0,e.gr=function t(...e){if(!Array.isArray(e))throw new TypeError("Please, send an array.");const[r,n,...o]=e,a=function(t,e){const r=[];for(let n=0;n<t.length;n++)if(e)for(let o=0;o<e.length;o++)Array.isArray(t[n])?r.push([...t[n],e[o]]):r.push([t[n],e[o]]);else r.push([t[n]]);return r}(r,n);return o.length?t(a,...o):a}},184:(t,e)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var a=typeof r;if("string"===a||"number"===a)t.push(r);else if(Array.isArray(r)){if(r.length){var i=o.apply(null,r);i&&t.push(i)}}else if("object"===a){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){t.push(r.toString());continue}for(var s in r)n.call(r,s)&&r[s]&&t.push(s)}}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(r=function(){return o}.apply(e,[]))||(t.exports=r)}()},666:(t,e,r)=>{"use strict";r.d(e,{Z:()=>W});var n=r(81),o=r.n(n),a=r(645),i=r.n(a),s=r(667),l=r.n(s),c=new URL(r(770),r.b),d=new URL(r(199),r.b),u=new URL(r(204),r.b),p=new URL(r(931),r.b),f=new URL(r(486),r.b),m=new URL(r(609),r.b),h=new URL(r(469),r.b),b=new URL(r(122),r.b),g=new URL(r(144),r.b),v=new URL(r(217),r.b),x=new URL(r(956),r.b),y=new URL(r(460),r.b),w=new URL(r(740),r.b),k=new URL(r(254),r.b),_=new URL(r(647),r.b),E=new URL(r(692),r.b),S=i()(o()),C=l()(c),M=l()(d),N=l()(u),P=l()(p),O=l()(f),z=l()(m),T=l()(h),R=l()(b),L=l()(g),A=l()(v),D=l()(x),j=l()(y),I=l()(w),F=l()(k),B=l()(_),U=l()(E);S.push([t.id,'@charset "UTF-8";/*!\n * Bootstrap v5.2.3 (https://getbootstrap.com/)\n * Copyright 2011-2022 The Bootstrap Authors\n * Copyright 2011-2022 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n */:root{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13,110,253;--bs-secondary-rgb:108,117,125;--bs-success-rgb:25,135,84;--bs-info-rgb:13,202,240;--bs-warning-rgb:255,193,7;--bs-danger-rgb:220,53,69;--bs-light-rgb:248,249,250;--bs-dark-rgb:33,37,41;--bs-white-rgb:255,255,255;--bs-black-rgb:0,0,0;--bs-body-color-rgb:33,37,41;--bs-body-bg-rgb:255,255,255;--bs-font-sans-serif:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--bs-font-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, 0.175);--bs-border-radius:0.375rem;--bs-border-radius-sm:0.25rem;--bs-border-radius-lg:0.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-2xl:2rem;--bs-border-radius-pill:50rem;--bs-link-color:#0d6efd;--bs-link-hover-color:#0a58ca;--bs-code-color:#d63384;--bs-highlight-bg:#fff3cd}*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}hr{margin:1rem 0;color:inherit;border:0;border-top:1px solid;opacity:.25}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2}.h1,h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){.h1,h1{font-size:2.5rem}}.h2,h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){.h2,h2{font-size:2rem}}.h3,h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){.h3,h3{font-size:1.75rem}}.h4,h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){.h4,h4{font-size:1.5rem}}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}.small,small{font-size:.875em}.mark,mark{padding:.1875em;background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:var(--bs-link-color);text-decoration:underline}a:hover{color:var(--bs-link-hover-color)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:calc(1.625rem + 4.5vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-1{font-size:5rem}}.display-2{font-size:calc(1.575rem + 3.9vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-2{font-size:4.5rem}}.display-3{font-size:calc(1.525rem + 3.3vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-3{font-size:4rem}}.display-4{font-size:calc(1.475rem + 2.7vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-4{font-size:3.5rem}}.display-5{font-size:calc(1.425rem + 2.1vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-5{font-size:3rem}}.display-6{font-size:calc(1.375rem + 1.5vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-6{font-size:2.5rem}}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer::before{content:"— "}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#fff;border:1px solid var(--bs-border-color);border-radius:.375rem;max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:.875em;color:#6c757d}.container,.container-fluid,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{--bs-gutter-x:1.5rem;--bs-gutter-y:0;width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-right:auto;margin-left:auto}@media (min-width:576px){.container,.container-sm{max-width:540px}}@media (min-width:768px){.container,.container-md,.container-sm{max-width:720px}}@media (min-width:992px){.container,.container-lg,.container-md,.container-sm{max-width:960px}}@media (min-width:1200px){.container,.container-lg,.container-md,.container-sm,.container-xl{max-width:1140px}}@media (min-width:1400px){.container,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{max-width:1320px}}.row{--bs-gutter-x:1.5rem;--bs-gutter-y:0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.6666666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--bs-gutter-x:0}.g-0,.gy-0{--bs-gutter-y:0}.g-1,.gx-1{--bs-gutter-x:0.25rem}.g-1,.gy-1{--bs-gutter-y:0.25rem}.g-2,.gx-2{--bs-gutter-x:0.5rem}.g-2,.gy-2{--bs-gutter-y:0.5rem}.g-3,.gx-3{--bs-gutter-x:1rem}.g-3,.gy-3{--bs-gutter-y:1rem}.g-4,.gx-4{--bs-gutter-x:1.5rem}.g-4,.gy-4{--bs-gutter-y:1.5rem}.g-5,.gx-5{--bs-gutter-x:3rem}.g-5,.gy-5{--bs-gutter-y:3rem}@media (min-width:576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.6666666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--bs-gutter-x:0}.g-sm-0,.gy-sm-0{--bs-gutter-y:0}.g-sm-1,.gx-sm-1{--bs-gutter-x:0.25rem}.g-sm-1,.gy-sm-1{--bs-gutter-y:0.25rem}.g-sm-2,.gx-sm-2{--bs-gutter-x:0.5rem}.g-sm-2,.gy-sm-2{--bs-gutter-y:0.5rem}.g-sm-3,.gx-sm-3{--bs-gutter-x:1rem}.g-sm-3,.gy-sm-3{--bs-gutter-y:1rem}.g-sm-4,.gx-sm-4{--bs-gutter-x:1.5rem}.g-sm-4,.gy-sm-4{--bs-gutter-y:1.5rem}.g-sm-5,.gx-sm-5{--bs-gutter-x:3rem}.g-sm-5,.gy-sm-5{--bs-gutter-y:3rem}}@media (min-width:768px){.col-md{flex:1 0 0%}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.6666666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--bs-gutter-x:0}.g-md-0,.gy-md-0{--bs-gutter-y:0}.g-md-1,.gx-md-1{--bs-gutter-x:0.25rem}.g-md-1,.gy-md-1{--bs-gutter-y:0.25rem}.g-md-2,.gx-md-2{--bs-gutter-x:0.5rem}.g-md-2,.gy-md-2{--bs-gutter-y:0.5rem}.g-md-3,.gx-md-3{--bs-gutter-x:1rem}.g-md-3,.gy-md-3{--bs-gutter-y:1rem}.g-md-4,.gx-md-4{--bs-gutter-x:1.5rem}.g-md-4,.gy-md-4{--bs-gutter-y:1.5rem}.g-md-5,.gx-md-5{--bs-gutter-x:3rem}.g-md-5,.gy-md-5{--bs-gutter-y:3rem}}@media (min-width:992px){.col-lg{flex:1 0 0%}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.6666666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--bs-gutter-x:0}.g-lg-0,.gy-lg-0{--bs-gutter-y:0}.g-lg-1,.gx-lg-1{--bs-gutter-x:0.25rem}.g-lg-1,.gy-lg-1{--bs-gutter-y:0.25rem}.g-lg-2,.gx-lg-2{--bs-gutter-x:0.5rem}.g-lg-2,.gy-lg-2{--bs-gutter-y:0.5rem}.g-lg-3,.gx-lg-3{--bs-gutter-x:1rem}.g-lg-3,.gy-lg-3{--bs-gutter-y:1rem}.g-lg-4,.gx-lg-4{--bs-gutter-x:1.5rem}.g-lg-4,.gy-lg-4{--bs-gutter-y:1.5rem}.g-lg-5,.gx-lg-5{--bs-gutter-x:3rem}.g-lg-5,.gy-lg-5{--bs-gutter-y:3rem}}@media (min-width:1200px){.col-xl{flex:1 0 0%}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.6666666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--bs-gutter-x:0}.g-xl-0,.gy-xl-0{--bs-gutter-y:0}.g-xl-1,.gx-xl-1{--bs-gutter-x:0.25rem}.g-xl-1,.gy-xl-1{--bs-gutter-y:0.25rem}.g-xl-2,.gx-xl-2{--bs-gutter-x:0.5rem}.g-xl-2,.gy-xl-2{--bs-gutter-y:0.5rem}.g-xl-3,.gx-xl-3{--bs-gutter-x:1rem}.g-xl-3,.gy-xl-3{--bs-gutter-y:1rem}.g-xl-4,.gx-xl-4{--bs-gutter-x:1.5rem}.g-xl-4,.gy-xl-4{--bs-gutter-y:1.5rem}.g-xl-5,.gx-xl-5{--bs-gutter-x:3rem}.g-xl-5,.gy-xl-5{--bs-gutter-y:3rem}}@media (min-width:1400px){.col-xxl{flex:1 0 0%}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.6666666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--bs-gutter-x:0}.g-xxl-0,.gy-xxl-0{--bs-gutter-y:0}.g-xxl-1,.gx-xxl-1{--bs-gutter-x:0.25rem}.g-xxl-1,.gy-xxl-1{--bs-gutter-y:0.25rem}.g-xxl-2,.gx-xxl-2{--bs-gutter-x:0.5rem}.g-xxl-2,.gy-xxl-2{--bs-gutter-y:0.5rem}.g-xxl-3,.gx-xxl-3{--bs-gutter-x:1rem}.g-xxl-3,.gy-xxl-3{--bs-gutter-y:1rem}.g-xxl-4,.gx-xxl-4{--bs-gutter-x:1.5rem}.g-xxl-4,.gy-xxl-4{--bs-gutter-y:1.5rem}.g-xxl-5,.gx-xxl-5{--bs-gutter-x:3rem}.g-xxl-5,.gy-xxl-5{--bs-gutter-y:3rem}}.table{--bs-table-color:var(--bs-body-color);--bs-table-bg:transparent;--bs-table-border-color:var(--bs-border-color);--bs-table-accent-bg:transparent;--bs-table-striped-color:var(--bs-body-color);--bs-table-striped-bg:rgba(0, 0, 0, 0.05);--bs-table-active-color:var(--bs-body-color);--bs-table-active-bg:rgba(0, 0, 0, 0.1);--bs-table-hover-color:var(--bs-body-color);--bs-table-hover-bg:rgba(0, 0, 0, 0.075);width:100%;margin-bottom:1rem;color:var(--bs-table-color);vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:.5rem .5rem;background-color:var(--bs-table-bg);border-bottom-width:1px;box-shadow:inset 0 0 0 9999px var(--bs-table-accent-bg)}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table-group-divider{border-top:2px solid currentcolor}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem .25rem}.table-bordered>:not(caption)>*{border-width:1px 0}.table-bordered>:not(caption)>*>*{border-width:0 1px}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-accent-bg:var(--bs-table-striped-bg);color:var(--bs-table-striped-color)}.table-striped-columns>:not(caption)>tr>:nth-child(2n){--bs-table-accent-bg:var(--bs-table-striped-bg);color:var(--bs-table-striped-color)}.table-active{--bs-table-accent-bg:var(--bs-table-active-bg);color:var(--bs-table-active-color)}.table-hover>tbody>tr:hover>*{--bs-table-accent-bg:var(--bs-table-hover-bg);color:var(--bs-table-hover-color)}.table-primary{--bs-table-color:#000;--bs-table-bg:#cfe2ff;--bs-table-border-color:#bacbe6;--bs-table-striped-bg:#c5d7f2;--bs-table-striped-color:#000;--bs-table-active-bg:#bacbe6;--bs-table-active-color:#000;--bs-table-hover-bg:#bfd1ec;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-secondary{--bs-table-color:#000;--bs-table-bg:#e2e3e5;--bs-table-border-color:#cbccce;--bs-table-striped-bg:#d7d8da;--bs-table-striped-color:#000;--bs-table-active-bg:#cbccce;--bs-table-active-color:#000;--bs-table-hover-bg:#d1d2d4;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-success{--bs-table-color:#000;--bs-table-bg:#d1e7dd;--bs-table-border-color:#bcd0c7;--bs-table-striped-bg:#c7dbd2;--bs-table-striped-color:#000;--bs-table-active-bg:#bcd0c7;--bs-table-active-color:#000;--bs-table-hover-bg:#c1d6cc;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-info{--bs-table-color:#000;--bs-table-bg:#cff4fc;--bs-table-border-color:#badce3;--bs-table-striped-bg:#c5e8ef;--bs-table-striped-color:#000;--bs-table-active-bg:#badce3;--bs-table-active-color:#000;--bs-table-hover-bg:#bfe2e9;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-warning{--bs-table-color:#000;--bs-table-bg:#fff3cd;--bs-table-border-color:#e6dbb9;--bs-table-striped-bg:#f2e7c3;--bs-table-striped-color:#000;--bs-table-active-bg:#e6dbb9;--bs-table-active-color:#000;--bs-table-hover-bg:#ece1be;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-danger{--bs-table-color:#000;--bs-table-bg:#f8d7da;--bs-table-border-color:#dfc2c4;--bs-table-striped-bg:#eccccf;--bs-table-striped-color:#000;--bs-table-active-bg:#dfc2c4;--bs-table-active-color:#000;--bs-table-hover-bg:#e5c7ca;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-light{--bs-table-color:#000;--bs-table-bg:#f8f9fa;--bs-table-border-color:#dfe0e1;--bs-table-striped-bg:#ecedee;--bs-table-striped-color:#000;--bs-table-active-bg:#dfe0e1;--bs-table-active-color:#000;--bs-table-hover-bg:#e5e6e7;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-dark{--bs-table-color:#fff;--bs-table-bg:#212529;--bs-table-border-color:#373b3e;--bs-table-striped-bg:#2c3034;--bs-table-striped-color:#fff;--bs-table-active-bg:#373b3e;--bs-table-active-color:#fff;--bs-table-hover-bg:#323539;--bs-table-hover-color:#fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width:575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.form-label{margin-bottom:.5rem}.col-form-label{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem + 1px);font-size:1.25rem}.col-form-label-sm{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem + 1px);font-size:.875rem}.form-text{margin-top:.25rem;font-size:.875em;color:#6c757d}.form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.375rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:#212529;background-color:#fff;border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.form-control::-webkit-date-and-time-value{height:1.5em}.form-control::-moz-placeholder{color:#6c757d;opacity:1}.form-control::placeholder{color:#6c757d;opacity:1}.form-control:disabled{background-color:#e9ecef;opacity:1}.form-control::-webkit-file-upload-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;-webkit-transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control::-webkit-file-upload-button{-webkit-transition:none;transition:none}.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button{background-color:#dde0e3}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:#dde0e3}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;line-height:1.5;color:#212529;background-color:transparent;border:solid transparent;border-width:1px 0}.form-control-plaintext:focus{outline:0}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm{padding-right:0;padding-left:0}.form-control-sm{min-height:calc(1.5em + .5rem + 2px);padding:.25rem .5rem;font-size:.875rem;border-radius:.25rem}.form-control-sm::-webkit-file-upload-button{padding:.25rem .5rem;margin:-.25rem -.5rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}.form-control-sm::file-selector-button{padding:.25rem .5rem;margin:-.25rem -.5rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}.form-control-lg{min-height:calc(1.5em + 1rem + 2px);padding:.5rem 1rem;font-size:1.25rem;border-radius:.5rem}.form-control-lg::-webkit-file-upload-button{padding:.5rem 1rem;margin:-.5rem -1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.form-control-lg::file-selector-button{padding:.5rem 1rem;margin:-.5rem -1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}textarea.form-control{min-height:calc(1.5em + .75rem + 2px)}textarea.form-control-sm{min-height:calc(1.5em + .5rem + 2px)}textarea.form-control-lg{min-height:calc(1.5em + 1rem + 2px)}.form-control-color{width:3rem;height:calc(1.5em + .75rem + 2px);padding:.375rem}.form-control-color:not(:disabled):not([readonly]){cursor:pointer}.form-control-color::-moz-color-swatch{border:0!important;border-radius:.375rem}.form-control-color::-webkit-color-swatch{border-radius:.375rem}.form-control-color.form-control-sm{height:calc(1.5em + .5rem + 2px)}.form-control-color.form-control-lg{height:calc(1.5em + 1rem + 2px)}.form-select{display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;-moz-padding-start:calc(0.75rem - 3px);font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-image:url('+C+');background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:1px solid #ced4da;border-radius:.375rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.form-select{transition:none}}.form-select:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.form-select[multiple],.form-select[size]:not([size="1"]){padding-right:.75rem;background-image:none}.form-select:disabled{background-color:#e9ecef}.form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 #212529}.form-select-sm{padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem;border-radius:.25rem}.form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem;border-radius:.5rem}.form-check{display:block;min-height:1.5rem;padding-left:1.5em;margin-bottom:.125rem}.form-check .form-check-input{float:left;margin-left:-1.5em}.form-check-reverse{padding-right:1.5em;padding-left:0;text-align:right}.form-check-reverse .form-check-input{float:right;margin-right:-1.5em;margin-left:0}.form-check-input{width:1em;height:1em;margin-top:.25em;vertical-align:top;background-color:#fff;background-repeat:no-repeat;background-position:center;background-size:contain;border:1px solid rgba(0,0,0,.25);-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}.form-check-input[type=checkbox]{border-radius:.25em}.form-check-input[type=radio]{border-radius:50%}.form-check-input:active{filter:brightness(90%)}.form-check-input:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.form-check-input:checked{background-color:#0d6efd;border-color:#0d6efd}.form-check-input:checked[type=checkbox]{background-image:url('+M+")}.form-check-input:checked[type=radio]{background-image:url("+N+")}.form-check-input[type=checkbox]:indeterminate{background-color:#0d6efd;border-color:#0d6efd;background-image:url("+P+")}.form-check-input:disabled{pointer-events:none;filter:none;opacity:.5}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{cursor:default;opacity:.5}.form-switch{padding-left:2.5em}.form-switch .form-check-input{width:2em;margin-left:-2.5em;background-image:url("+O+");background-position:left center;border-radius:2em;transition:background-position .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-switch .form-check-input{transition:none}}.form-switch .form-check-input:focus{background-image:url("+z+")}.form-switch .form-check-input:checked{background-position:right center;background-image:url("+T+")}.form-switch.form-check-reverse{padding-right:2.5em;padding-left:0}.form-switch.form-check-reverse .form-check-input{margin-right:-2.5em;margin-left:0}.form-check-inline{display:inline-block;margin-right:1rem}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check:disabled+.btn,.btn-check[disabled]+.btn{pointer-events:none;filter:none;opacity:.65}.form-range{width:100%;height:1.5rem;padding:0;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.form-range:focus{outline:0}.form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem rgba(13,110,253,.25)}.form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem rgba(13,110,253,.25)}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#0d6efd;border:0;border-radius:1rem;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.form-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.form-range::-webkit-slider-thumb:active{background-color:#b6d4fe}.form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.form-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#0d6efd;border:0;border-radius:1rem;-moz-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.form-range::-moz-range-thumb{-moz-transition:none;transition:none}}.form-range::-moz-range-thumb:active{background-color:#b6d4fe}.form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.form-range:disabled{pointer-events:none}.form-range:disabled::-webkit-slider-thumb{background-color:#adb5bd}.form-range:disabled::-moz-range-thumb{background-color:#adb5bd}.form-floating{position:relative}.form-floating>.form-control,.form-floating>.form-control-plaintext,.form-floating>.form-select{height:calc(3.5rem + 2px);line-height:1.25}.form-floating>label{position:absolute;top:0;left:0;width:100%;height:100%;padding:1rem .75rem;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border:1px solid transparent;transform-origin:0 0;transition:opacity .1s ease-in-out,transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.form-floating>label{transition:none}}.form-floating>.form-control,.form-floating>.form-control-plaintext{padding:1rem .75rem}.form-floating>.form-control-plaintext::-moz-placeholder,.form-floating>.form-control::-moz-placeholder{color:transparent}.form-floating>.form-control-plaintext::placeholder,.form-floating>.form-control::placeholder{color:transparent}.form-floating>.form-control-plaintext:not(:-moz-placeholder-shown),.form-floating>.form-control:not(:-moz-placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control-plaintext:focus,.form-floating>.form-control-plaintext:not(:placeholder-shown),.form-floating>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control-plaintext:-webkit-autofill,.form-floating>.form-control:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-select{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:not(:-moz-placeholder-shown)~label{opacity:.65;transform:scale(.85) translateY(-.5rem) translateX(.15rem)}.form-floating>.form-control-plaintext~label,.form-floating>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-floating>.form-select~label{opacity:.65;transform:scale(.85) translateY(-.5rem) translateX(.15rem)}.form-floating>.form-control:-webkit-autofill~label{opacity:.65;transform:scale(.85) translateY(-.5rem) translateX(.15rem)}.form-floating>.form-control-plaintext~label{border-width:1px 0}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-floating,.input-group>.form-select{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus,.input-group>.form-floating:focus-within,.input-group>.form-select:focus{z-index:5}.input-group .btn{position:relative;z-index:2}.input-group .btn:focus{z-index:5}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.375rem}.input-group-lg>.btn,.input-group-lg>.form-control,.input-group-lg>.form-select,.input-group-lg>.input-group-text{padding:.5rem 1rem;font-size:1.25rem;border-radius:.5rem}.input-group-sm>.btn,.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text{padding:.25rem .5rem;font-size:.875rem;border-radius:.25rem}.input-group-lg>.form-select,.input-group-sm>.form-select{padding-right:3rem}.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select,.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select,.input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.form-floating:not(:first-child)>.form-control,.input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:#198754}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:rgba(25,135,84,.9);border-radius:.375rem}.is-valid~.valid-feedback,.is-valid~.valid-tooltip,.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip{display:block}.form-control.is-valid,.was-validated .form-control:valid{border-color:#198754;padding-right:calc(1.5em + .75rem);background-image:url("+R+');background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-valid:focus,.was-validated .form-control:valid:focus{border-color:#198754;box-shadow:0 0 0 .25rem rgba(25,135,84,.25)}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.form-select.is-valid,.was-validated .form-select:valid{border-color:#198754}.form-select.is-valid:not([multiple]):not([size]),.form-select.is-valid:not([multiple])[size="1"],.was-validated .form-select:valid:not([multiple]):not([size]),.was-validated .form-select:valid:not([multiple])[size="1"]{padding-right:4.125rem;background-image:url('+C+"),url("+R+");background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.form-select.is-valid:focus,.was-validated .form-select:valid:focus{border-color:#198754;box-shadow:0 0 0 .25rem rgba(25,135,84,.25)}.form-control-color.is-valid,.was-validated .form-control-color:valid{width:calc(3rem + calc(1.5em + .75rem))}.form-check-input.is-valid,.was-validated .form-check-input:valid{border-color:#198754}.form-check-input.is-valid:checked,.was-validated .form-check-input:valid:checked{background-color:#198754}.form-check-input.is-valid:focus,.was-validated .form-check-input:valid:focus{box-shadow:0 0 0 .25rem rgba(25,135,84,.25)}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:#198754}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.input-group>.form-control:not(:focus).is-valid,.input-group>.form-floating:not(:focus-within).is-valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-control:not(:focus):valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.was-validated .input-group>.form-select:not(:focus):valid{z-index:3}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:#dc3545}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:rgba(220,53,69,.9);border-radius:.375rem}.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip,.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip{display:block}.form-control.is-invalid,.was-validated .form-control:invalid{border-color:#dc3545;padding-right:calc(1.5em + .75rem);background-image:url("+L+');background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-invalid:focus,.was-validated .form-control:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .25rem rgba(220,53,69,.25)}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.form-select.is-invalid,.was-validated .form-select:invalid{border-color:#dc3545}.form-select.is-invalid:not([multiple]):not([size]),.form-select.is-invalid:not([multiple])[size="1"],.was-validated .form-select:invalid:not([multiple]):not([size]),.was-validated .form-select:invalid:not([multiple])[size="1"]{padding-right:4.125rem;background-image:url('+C+"),url("+L+');background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.form-select.is-invalid:focus,.was-validated .form-select:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .25rem rgba(220,53,69,.25)}.form-control-color.is-invalid,.was-validated .form-control-color:invalid{width:calc(3rem + calc(1.5em + .75rem))}.form-check-input.is-invalid,.was-validated .form-check-input:invalid{border-color:#dc3545}.form-check-input.is-invalid:checked,.was-validated .form-check-input:invalid:checked{background-color:#dc3545}.form-check-input.is-invalid:focus,.was-validated .form-check-input:invalid:focus{box-shadow:0 0 0 .25rem rgba(220,53,69,.25)}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:#dc3545}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.input-group>.form-control:not(:focus).is-invalid,.input-group>.form-floating:not(:focus-within).is-invalid,.input-group>.form-select:not(:focus).is-invalid,.was-validated .input-group>.form-control:not(:focus):invalid,.was-validated .input-group>.form-floating:not(:focus-within):invalid,.was-validated .input-group>.form-select:not(:focus):invalid{z-index:4}.btn{--bs-btn-padding-x:0.75rem;--bs-btn-padding-y:0.375rem;--bs-btn-font-family: ;--bs-btn-font-size:1rem;--bs-btn-font-weight:400;--bs-btn-line-height:1.5;--bs-btn-color:#212529;--bs-btn-bg:transparent;--bs-btn-border-width:1px;--bs-btn-border-color:transparent;--bs-btn-border-radius:0.375rem;--bs-btn-hover-border-color:transparent;--bs-btn-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.15),0 1px 1px rgba(0, 0, 0, 0.075);--bs-btn-disabled-opacity:0.65;--bs-btn-focus-box-shadow:0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,.btn.active,.btn.show,.btn:first-child:active,:not(.btn-check)+.btn:active{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible,.btn:first-child:active:focus-visible,:not(.btn-check)+.btn:active:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn.disabled,.btn:disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color:#fff;--bs-btn-bg:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0b5ed7;--bs-btn-hover-border-color:#0a58ca;--bs-btn-focus-shadow-rgb:49,132,253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#0a58ca;--bs-btn-active-border-color:#0a53be;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#0d6efd;--bs-btn-disabled-border-color:#0d6efd}.btn-secondary{--bs-btn-color:#fff;--bs-btn-bg:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#5c636a;--bs-btn-hover-border-color:#565e64;--bs-btn-focus-shadow-rgb:130,138,145;--bs-btn-active-color:#fff;--bs-btn-active-bg:#565e64;--bs-btn-active-border-color:#51585e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#6c757d;--bs-btn-disabled-border-color:#6c757d}.btn-success{--bs-btn-color:#fff;--bs-btn-bg:#198754;--bs-btn-border-color:#198754;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#157347;--bs-btn-hover-border-color:#146c43;--bs-btn-focus-shadow-rgb:60,153,110;--bs-btn-active-color:#fff;--bs-btn-active-bg:#146c43;--bs-btn-active-border-color:#13653f;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#198754;--bs-btn-disabled-border-color:#198754}.btn-info{--bs-btn-color:#000;--bs-btn-bg:#0dcaf0;--bs-btn-border-color:#0dcaf0;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#31d2f2;--bs-btn-hover-border-color:#25cff2;--bs-btn-focus-shadow-rgb:11,172,204;--bs-btn-active-color:#000;--bs-btn-active-bg:#3dd5f3;--bs-btn-active-border-color:#25cff2;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#0dcaf0;--bs-btn-disabled-border-color:#0dcaf0}.btn-warning{--bs-btn-color:#000;--bs-btn-bg:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#ffca2c;--bs-btn-hover-border-color:#ffc720;--bs-btn-focus-shadow-rgb:217,164,6;--bs-btn-active-color:#000;--bs-btn-active-bg:#ffcd39;--bs-btn-active-border-color:#ffc720;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#ffc107;--bs-btn-disabled-border-color:#ffc107}.btn-danger{--bs-btn-color:#fff;--bs-btn-bg:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#bb2d3b;--bs-btn-hover-border-color:#b02a37;--bs-btn-focus-shadow-rgb:225,83,97;--bs-btn-active-color:#fff;--bs-btn-active-bg:#b02a37;--bs-btn-active-border-color:#a52834;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#dc3545;--bs-btn-disabled-border-color:#dc3545}.btn-light{--bs-btn-color:#000;--bs-btn-bg:#f8f9fa;--bs-btn-border-color:#f8f9fa;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#d3d4d5;--bs-btn-hover-border-color:#c6c7c8;--bs-btn-focus-shadow-rgb:211,212,213;--bs-btn-active-color:#000;--bs-btn-active-bg:#c6c7c8;--bs-btn-active-border-color:#babbbc;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#f8f9fa;--bs-btn-disabled-border-color:#f8f9fa}.btn-dark{--bs-btn-color:#fff;--bs-btn-bg:#212529;--bs-btn-border-color:#212529;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#424649;--bs-btn-hover-border-color:#373b3e;--bs-btn-focus-shadow-rgb:66,70,73;--bs-btn-active-color:#fff;--bs-btn-active-bg:#4d5154;--bs-btn-active-border-color:#373b3e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#212529;--bs-btn-disabled-border-color:#212529}.btn-outline-primary{--bs-btn-color:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0d6efd;--bs-btn-hover-border-color:#0d6efd;--bs-btn-focus-shadow-rgb:13,110,253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#0d6efd;--bs-btn-active-border-color:#0d6efd;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#0d6efd;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#0d6efd;--bs-gradient:none}.btn-outline-secondary{--bs-btn-color:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#6c757d;--bs-btn-hover-border-color:#6c757d;--bs-btn-focus-shadow-rgb:108,117,125;--bs-btn-active-color:#fff;--bs-btn-active-bg:#6c757d;--bs-btn-active-border-color:#6c757d;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#6c757d;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#6c757d;--bs-gradient:none}.btn-outline-success{--bs-btn-color:#198754;--bs-btn-border-color:#198754;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#198754;--bs-btn-hover-border-color:#198754;--bs-btn-focus-shadow-rgb:25,135,84;--bs-btn-active-color:#fff;--bs-btn-active-bg:#198754;--bs-btn-active-border-color:#198754;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#198754;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#198754;--bs-gradient:none}.btn-outline-info{--bs-btn-color:#0dcaf0;--bs-btn-border-color:#0dcaf0;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#0dcaf0;--bs-btn-hover-border-color:#0dcaf0;--bs-btn-focus-shadow-rgb:13,202,240;--bs-btn-active-color:#000;--bs-btn-active-bg:#0dcaf0;--bs-btn-active-border-color:#0dcaf0;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#0dcaf0;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#0dcaf0;--bs-gradient:none}.btn-outline-warning{--bs-btn-color:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#ffc107;--bs-btn-hover-border-color:#ffc107;--bs-btn-focus-shadow-rgb:255,193,7;--bs-btn-active-color:#000;--bs-btn-active-bg:#ffc107;--bs-btn-active-border-color:#ffc107;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#ffc107;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#ffc107;--bs-gradient:none}.btn-outline-danger{--bs-btn-color:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#dc3545;--bs-btn-hover-border-color:#dc3545;--bs-btn-focus-shadow-rgb:220,53,69;--bs-btn-active-color:#fff;--bs-btn-active-bg:#dc3545;--bs-btn-active-border-color:#dc3545;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#dc3545;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#dc3545;--bs-gradient:none}.btn-outline-light{--bs-btn-color:#f8f9fa;--bs-btn-border-color:#f8f9fa;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#f8f9fa;--bs-btn-hover-border-color:#f8f9fa;--bs-btn-focus-shadow-rgb:248,249,250;--bs-btn-active-color:#000;--bs-btn-active-bg:#f8f9fa;--bs-btn-active-border-color:#f8f9fa;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#f8f9fa;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#f8f9fa;--bs-gradient:none}.btn-outline-dark{--bs-btn-color:#212529;--bs-btn-border-color:#212529;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#212529;--bs-btn-hover-border-color:#212529;--bs-btn-focus-shadow-rgb:33,37,41;--bs-btn-active-color:#fff;--bs-btn-active-bg:#212529;--bs-btn-active-border-color:#212529;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#212529;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#212529;--bs-gradient:none}.btn-link{--bs-btn-font-weight:400;--bs-btn-color:var(--bs-link-color);--bs-btn-bg:transparent;--bs-btn-border-color:transparent;--bs-btn-hover-color:var(--bs-link-hover-color);--bs-btn-hover-border-color:transparent;--bs-btn-active-color:var(--bs-link-hover-color);--bs-btn-active-border-color:transparent;--bs-btn-disabled-color:#6c757d;--bs-btn-disabled-border-color:transparent;--bs-btn-box-shadow:none;--bs-btn-focus-shadow-rgb:49,132,253;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-group-lg>.btn,.btn-lg{--bs-btn-padding-y:0.5rem;--bs-btn-padding-x:1rem;--bs-btn-font-size:1.25rem;--bs-btn-border-radius:0.5rem}.btn-group-sm>.btn,.btn-sm{--bs-btn-padding-y:0.25rem;--bs-btn-padding-x:0.5rem;--bs-btn-font-size:0.875rem;--bs-btn-border-radius:0.25rem}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion:reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media (prefers-reduced-motion:reduce){.collapsing.collapse-horizontal{transition:none}}.dropdown,.dropdown-center,.dropend,.dropstart,.dropup,.dropup-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty::after{margin-left:0}.dropdown-menu{--bs-dropdown-zindex:1000;--bs-dropdown-min-width:10rem;--bs-dropdown-padding-x:0;--bs-dropdown-padding-y:0.5rem;--bs-dropdown-spacer:0.125rem;--bs-dropdown-font-size:1rem;--bs-dropdown-color:#212529;--bs-dropdown-bg:#fff;--bs-dropdown-border-color:var(--bs-border-color-translucent);--bs-dropdown-border-radius:0.375rem;--bs-dropdown-border-width:1px;--bs-dropdown-inner-border-radius:calc(0.375rem - 1px);--bs-dropdown-divider-bg:var(--bs-border-color-translucent);--bs-dropdown-divider-margin-y:0.5rem;--bs-dropdown-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-dropdown-link-color:#212529;--bs-dropdown-link-hover-color:#1e2125;--bs-dropdown-link-hover-bg:#e9ecef;--bs-dropdown-link-active-color:#fff;--bs-dropdown-link-active-bg:#0d6efd;--bs-dropdown-link-disabled-color:#adb5bd;--bs-dropdown-item-padding-x:1rem;--bs-dropdown-item-padding-y:0.25rem;--bs-dropdown-header-color:#6c757d;--bs-dropdown-header-padding-x:1rem;--bs-dropdown-header-padding-y:0.5rem;position:absolute;z-index:var(--bs-dropdown-zindex);display:none;min-width:var(--bs-dropdown-min-width);padding:var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);margin:0;font-size:var(--bs-dropdown-font-size);color:var(--bs-dropdown-color);text-align:left;list-style:none;background-color:var(--bs-dropdown-bg);background-clip:padding-box;border:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);border-radius:var(--bs-dropdown-border-radius)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--bs-dropdown-spacer)}.dropdown-menu-start{--bs-position:start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position:end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width:576px){.dropdown-menu-sm-start{--bs-position:start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position:end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width:768px){.dropdown-menu-md-start{--bs-position:start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position:end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width:992px){.dropdown-menu-lg-start{--bs-position:start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position:end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width:1200px){.dropdown-menu-xl-start{--bs-position:start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position:end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width:1400px){.dropdown-menu-xxl-start{--bs-position:start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position:end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--bs-dropdown-spacer)}.dropup .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty::after{margin-left:0}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--bs-dropdown-spacer)}.dropend .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropend .dropdown-toggle:empty::after{margin-left:0}.dropend .dropdown-toggle::after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--bs-dropdown-spacer)}.dropstart .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropstart .dropdown-toggle::after{display:none}.dropstart .dropdown-toggle::before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropstart .dropdown-toggle:empty::after{margin-left:0}.dropstart .dropdown-toggle::before{vertical-align:0}.dropdown-divider{height:0;margin:var(--bs-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--bs-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--bs-dropdown-link-color);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:focus,.dropdown-item:hover{color:var(--bs-dropdown-link-hover-color);background-color:var(--bs-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--bs-dropdown-link-active-color);text-decoration:none;background-color:var(--bs-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--bs-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--bs-dropdown-header-padding-y) var(--bs-dropdown-header-padding-x);margin-bottom:0;font-size:.875rem;color:var(--bs-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);color:var(--bs-dropdown-link-color)}.dropdown-menu-dark{--bs-dropdown-color:#dee2e6;--bs-dropdown-bg:#343a40;--bs-dropdown-border-color:var(--bs-border-color-translucent);--bs-dropdown-box-shadow: ;--bs-dropdown-link-color:#dee2e6;--bs-dropdown-link-hover-color:#fff;--bs-dropdown-divider-bg:var(--bs-border-color-translucent);--bs-dropdown-link-hover-bg:rgba(255, 255, 255, 0.15);--bs-dropdown-link-active-color:#fff;--bs-dropdown-link-active-bg:#0d6efd;--bs-dropdown-link-disabled-color:#adb5bd;--bs-dropdown-header-color:#adb5bd}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;flex:1 1 auto}.btn-group-vertical>.btn-check:checked+.btn,.btn-group-vertical>.btn-check:focus+.btn,.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn-check:checked+.btn,.btn-group>.btn-check:focus+.btn,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group{border-radius:.375rem}.btn-group>.btn-group:not(:first-child),.btn-group>:not(.btn-check:first-child)+.btn{margin-left:-1px}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn.dropdown-toggle-split:first-child,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:nth-child(n+3),.btn-group>:not(.btn-check)+.btn{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split::after,.dropend .dropdown-toggle-split::after,.dropup .dropdown-toggle-split::after{margin-left:0}.dropstart .dropdown-toggle-split::before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn-group:not(:first-child),.btn-group-vertical>.btn:not(:first-child){margin-top:-1px}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn~.btn{border-top-left-radius:0;border-top-right-radius:0}.nav{--bs-nav-link-padding-x:1rem;--bs-nav-link-padding-y:0.5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color:var(--bs-link-color);--bs-nav-link-hover-color:var(--bs-link-hover-color);--bs-nav-link-disabled-color:#6c757d;display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);font-size:var(--bs-nav-link-font-size);font-weight:var(--bs-nav-link-font-weight);color:var(--bs-nav-link-color);text-decoration:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}@media (prefers-reduced-motion:reduce){.nav-link{transition:none}}.nav-link:focus,.nav-link:hover{color:var(--bs-nav-link-hover-color)}.nav-link.disabled{color:var(--bs-nav-link-disabled-color);pointer-events:none;cursor:default}.nav-tabs{--bs-nav-tabs-border-width:1px;--bs-nav-tabs-border-color:#dee2e6;--bs-nav-tabs-border-radius:0.375rem;--bs-nav-tabs-link-hover-border-color:#e9ecef #e9ecef #dee2e6;--bs-nav-tabs-link-active-color:#495057;--bs-nav-tabs-link-active-bg:#fff;--bs-nav-tabs-link-active-border-color:#dee2e6 #dee2e6 #fff;border-bottom:var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color)}.nav-tabs .nav-link{margin-bottom:calc(-1 * var(--bs-nav-tabs-border-width));background:0 0;border:var(--bs-nav-tabs-border-width) solid transparent;border-top-left-radius:var(--bs-nav-tabs-border-radius);border-top-right-radius:var(--bs-nav-tabs-border-radius)}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{isolation:isolate;border-color:var(--bs-nav-tabs-link-hover-border-color)}.nav-tabs .nav-link.disabled,.nav-tabs .nav-link:disabled{color:var(--bs-nav-link-disabled-color);background-color:transparent;border-color:transparent}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}.nav-tabs .dropdown-menu{margin-top:calc(-1 * var(--bs-nav-tabs-border-width));border-top-left-radius:0;border-top-right-radius:0}.nav-pills{--bs-nav-pills-border-radius:0.375rem;--bs-nav-pills-link-active-color:#fff;--bs-nav-pills-link-active-bg:#0d6efd}.nav-pills .nav-link{background:0 0;border:0;border-radius:var(--bs-nav-pills-border-radius)}.nav-pills .nav-link:disabled{color:var(--bs-nav-link-disabled-color);background-color:transparent;border-color:transparent}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:var(--bs-nav-pills-link-active-color);background-color:var(--bs-nav-pills-link-active-bg)}.nav-fill .nav-item,.nav-fill>.nav-link{flex:1 1 auto;text-align:center}.nav-justified .nav-item,.nav-justified>.nav-link{flex-basis:0;flex-grow:1;text-align:center}.nav-fill .nav-item .nav-link,.nav-justified .nav-item .nav-link{width:100%}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{--bs-navbar-padding-x:0;--bs-navbar-padding-y:0.5rem;--bs-navbar-color:rgba(0, 0, 0, 0.55);--bs-navbar-hover-color:rgba(0, 0, 0, 0.7);--bs-navbar-disabled-color:rgba(0, 0, 0, 0.3);--bs-navbar-active-color:rgba(0, 0, 0, 0.9);--bs-navbar-brand-padding-y:0.3125rem;--bs-navbar-brand-margin-end:1rem;--bs-navbar-brand-font-size:1.25rem;--bs-navbar-brand-color:rgba(0, 0, 0, 0.9);--bs-navbar-brand-hover-color:rgba(0, 0, 0, 0.9);--bs-navbar-nav-link-padding-x:0.5rem;--bs-navbar-toggler-padding-y:0.25rem;--bs-navbar-toggler-padding-x:0.75rem;--bs-navbar-toggler-font-size:1.25rem;--bs-navbar-toggler-icon-bg:url('+A+");--bs-navbar-toggler-border-color:rgba(0, 0, 0, 0.1);--bs-navbar-toggler-border-radius:0.375rem;--bs-navbar-toggler-focus-width:0.25rem;--bs-navbar-toggler-transition:box-shadow 0.15s ease-in-out;position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:var(--bs-navbar-padding-y) var(--bs-navbar-padding-x)}.navbar>.container,.navbar>.container-fluid,.navbar>.container-lg,.navbar>.container-md,.navbar>.container-sm,.navbar>.container-xl,.navbar>.container-xxl{display:flex;flex-wrap:inherit;align-items:center;justify-content:space-between}.navbar-brand{padding-top:var(--bs-navbar-brand-padding-y);padding-bottom:var(--bs-navbar-brand-padding-y);margin-right:var(--bs-navbar-brand-margin-end);font-size:var(--bs-navbar-brand-font-size);color:var(--bs-navbar-brand-color);text-decoration:none;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{color:var(--bs-navbar-brand-hover-color)}.navbar-nav{--bs-nav-link-padding-x:0;--bs-nav-link-padding-y:0.5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color:var(--bs-navbar-color);--bs-nav-link-hover-color:var(--bs-navbar-hover-color);--bs-nav-link-disabled-color:var(--bs-navbar-disabled-color);display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link.active,.navbar-nav .show>.nav-link{color:var(--bs-navbar-active-color)}.navbar-nav .dropdown-menu{position:static}.navbar-text{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-navbar-color)}.navbar-text a,.navbar-text a:focus,.navbar-text a:hover{color:var(--bs-navbar-active-color)}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);font-size:var(--bs-navbar-toggler-font-size);line-height:1;color:var(--bs-navbar-color);background-color:transparent;border:var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);border-radius:var(--bs-navbar-toggler-border-radius);transition:var(--bs-navbar-toggler-transition)}@media (prefers-reduced-motion:reduce){.navbar-toggler{transition:none}}.navbar-toggler:hover{text-decoration:none}.navbar-toggler:focus{text-decoration:none;outline:0;box-shadow:0 0 0 var(--bs-navbar-toggler-focus-width)}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;background-image:var(--bs-navbar-toggler-icon-bg);background-repeat:no-repeat;background-position:center;background-size:100%}.navbar-nav-scroll{max-height:var(--bs-scroll-height,75vh);overflow-y:auto}@media (min-width:576px){.navbar-expand-sm{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}.navbar-expand-sm .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-sm .offcanvas .offcanvas-header{display:none}.navbar-expand-sm .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:768px){.navbar-expand-md{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}.navbar-expand-md .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-md .offcanvas .offcanvas-header{display:none}.navbar-expand-md .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:992px){.navbar-expand-lg{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}.navbar-expand-lg .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-lg .offcanvas .offcanvas-header{display:none}.navbar-expand-lg .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:1200px){.navbar-expand-xl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}.navbar-expand-xl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xl .offcanvas .offcanvas-header{display:none}.navbar-expand-xl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:1400px){.navbar-expand-xxl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xxl .navbar-nav{flex-direction:row}.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xxl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xxl .navbar-nav-scroll{overflow:visible}.navbar-expand-xxl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xxl .navbar-toggler{display:none}.navbar-expand-xxl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xxl .offcanvas .offcanvas-header{display:none}.navbar-expand-xxl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}.navbar-expand{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-expand .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand .offcanvas .offcanvas-header{display:none}.navbar-expand .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}.navbar-dark{--bs-navbar-color:rgba(255, 255, 255, 0.55);--bs-navbar-hover-color:rgba(255, 255, 255, 0.75);--bs-navbar-disabled-color:rgba(255, 255, 255, 0.25);--bs-navbar-active-color:#fff;--bs-navbar-brand-color:#fff;--bs-navbar-brand-hover-color:#fff;--bs-navbar-toggler-border-color:rgba(255, 255, 255, 0.1);--bs-navbar-toggler-icon-bg:url("+D+")}.card{--bs-card-spacer-y:1rem;--bs-card-spacer-x:1rem;--bs-card-title-spacer-y:0.5rem;--bs-card-border-width:1px;--bs-card-border-color:var(--bs-border-color-translucent);--bs-card-border-radius:0.375rem;--bs-card-box-shadow: ;--bs-card-inner-border-radius:calc(0.375rem - 1px);--bs-card-cap-padding-y:0.5rem;--bs-card-cap-padding-x:1rem;--bs-card-cap-bg:rgba(0, 0, 0, 0.03);--bs-card-cap-color: ;--bs-card-height: ;--bs-card-color: ;--bs-card-bg:#fff;--bs-card-img-overlay-padding:1rem;--bs-card-group-margin:0.75rem;position:relative;display:flex;flex-direction:column;min-width:0;height:var(--bs-card-height);word-wrap:break-word;background-color:var(--bs-card-bg);background-clip:border-box;border:var(--bs-card-border-width) solid var(--bs-card-border-color);border-radius:var(--bs-card-border-radius)}.card>hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0;border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{flex:1 1 auto;padding:var(--bs-card-spacer-y) var(--bs-card-spacer-x);color:var(--bs-card-color)}.card-title{margin-bottom:var(--bs-card-title-spacer-y)}.card-subtitle{margin-top:calc(-.5 * var(--bs-card-title-spacer-y));margin-bottom:0}.card-text:last-child{margin-bottom:0}.card-link+.card-link{margin-left:var(--bs-card-spacer-x)}.card-header{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);margin-bottom:0;color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-bottom:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-header:first-child{border-radius:var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0}.card-footer{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-top:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-footer:last-child{border-radius:0 0 var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius)}.card-header-tabs{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-bottom:calc(-1 * var(--bs-card-cap-padding-y));margin-left:calc(-.5 * var(--bs-card-cap-padding-x));border-bottom:0}.card-header-tabs .nav-link.active{background-color:var(--bs-card-bg);border-bottom-color:var(--bs-card-bg)}.card-header-pills{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-left:calc(-.5 * var(--bs-card-cap-padding-x))}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:var(--bs-card-img-overlay-padding);border-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom,.card-img-top{width:100%}.card-img,.card-img-top{border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom{border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card-group>.card{margin-bottom:var(--bs-card-group-margin)}@media (min-width:576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-header,.card-group>.card:not(:last-child) .card-img-top{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-footer,.card-group>.card:not(:last-child) .card-img-bottom{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-header,.card-group>.card:not(:first-child) .card-img-top{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-footer,.card-group>.card:not(:first-child) .card-img-bottom{border-bottom-left-radius:0}}.accordion{--bs-accordion-color:#212529;--bs-accordion-bg:#fff;--bs-accordion-transition:color 0.15s ease-in-out,background-color 0.15s ease-in-out,border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out,border-radius 0.15s ease;--bs-accordion-border-color:var(--bs-border-color);--bs-accordion-border-width:1px;--bs-accordion-border-radius:0.375rem;--bs-accordion-inner-border-radius:calc(0.375rem - 1px);--bs-accordion-btn-padding-x:1.25rem;--bs-accordion-btn-padding-y:1rem;--bs-accordion-btn-color:#212529;--bs-accordion-btn-bg:var(--bs-accordion-bg);--bs-accordion-btn-icon:url("+j+");--bs-accordion-btn-icon-width:1.25rem;--bs-accordion-btn-icon-transform:rotate(-180deg);--bs-accordion-btn-icon-transition:transform 0.2s ease-in-out;--bs-accordion-btn-active-icon:url("+I+');--bs-accordion-btn-focus-border-color:#86b7fe;--bs-accordion-btn-focus-box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);--bs-accordion-body-padding-x:1.25rem;--bs-accordion-body-padding-y:1rem;--bs-accordion-active-color:#0c63e4;--bs-accordion-active-bg:#e7f1ff}.accordion-button{position:relative;display:flex;align-items:center;width:100%;padding:var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);font-size:1rem;color:var(--bs-accordion-btn-color);text-align:left;background-color:var(--bs-accordion-btn-bg);border:0;border-radius:0;overflow-anchor:none;transition:var(--bs-accordion-transition)}@media (prefers-reduced-motion:reduce){.accordion-button{transition:none}}.accordion-button:not(.collapsed){color:var(--bs-accordion-active-color);background-color:var(--bs-accordion-active-bg);box-shadow:inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color)}.accordion-button:not(.collapsed)::after{background-image:var(--bs-accordion-btn-active-icon);transform:var(--bs-accordion-btn-icon-transform)}.accordion-button::after{flex-shrink:0;width:var(--bs-accordion-btn-icon-width);height:var(--bs-accordion-btn-icon-width);margin-left:auto;content:"";background-image:var(--bs-accordion-btn-icon);background-repeat:no-repeat;background-size:var(--bs-accordion-btn-icon-width);transition:var(--bs-accordion-btn-icon-transition)}@media (prefers-reduced-motion:reduce){.accordion-button::after{transition:none}}.accordion-button:hover{z-index:2}.accordion-button:focus{z-index:3;border-color:var(--bs-accordion-btn-focus-border-color);outline:0;box-shadow:var(--bs-accordion-btn-focus-box-shadow)}.accordion-header{margin-bottom:0}.accordion-item{color:var(--bs-accordion-color);background-color:var(--bs-accordion-bg);border:var(--bs-accordion-border-width) solid var(--bs-accordion-border-color)}.accordion-item:first-of-type{border-top-left-radius:var(--bs-accordion-border-radius);border-top-right-radius:var(--bs-accordion-border-radius)}.accordion-item:first-of-type .accordion-button{border-top-left-radius:var(--bs-accordion-inner-border-radius);border-top-right-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:not(:first-of-type){border-top:0}.accordion-item:last-of-type{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-item:last-of-type .accordion-button.collapsed{border-bottom-right-radius:var(--bs-accordion-inner-border-radius);border-bottom-left-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:last-of-type .accordion-collapse{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-body{padding:var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x)}.accordion-flush .accordion-collapse{border-width:0}.accordion-flush .accordion-item{border-right:0;border-left:0;border-radius:0}.accordion-flush .accordion-item:first-child{border-top:0}.accordion-flush .accordion-item:last-child{border-bottom:0}.accordion-flush .accordion-item .accordion-button,.accordion-flush .accordion-item .accordion-button.collapsed{border-radius:0}.breadcrumb{--bs-breadcrumb-padding-x:0;--bs-breadcrumb-padding-y:0;--bs-breadcrumb-margin-bottom:1rem;--bs-breadcrumb-bg: ;--bs-breadcrumb-border-radius: ;--bs-breadcrumb-divider-color:#6c757d;--bs-breadcrumb-item-padding-x:0.5rem;--bs-breadcrumb-item-active-color:#6c757d;display:flex;flex-wrap:wrap;padding:var(--bs-breadcrumb-padding-y) var(--bs-breadcrumb-padding-x);margin-bottom:var(--bs-breadcrumb-margin-bottom);font-size:var(--bs-breadcrumb-font-size);list-style:none;background-color:var(--bs-breadcrumb-bg);border-radius:var(--bs-breadcrumb-border-radius)}.breadcrumb-item+.breadcrumb-item{padding-left:var(--bs-breadcrumb-item-padding-x)}.breadcrumb-item+.breadcrumb-item::before{float:left;padding-right:var(--bs-breadcrumb-item-padding-x);color:var(--bs-breadcrumb-divider-color);content:var(--bs-breadcrumb-divider, "/")}.breadcrumb-item.active{color:var(--bs-breadcrumb-item-active-color)}.pagination{--bs-pagination-padding-x:0.75rem;--bs-pagination-padding-y:0.375rem;--bs-pagination-font-size:1rem;--bs-pagination-color:var(--bs-link-color);--bs-pagination-bg:#fff;--bs-pagination-border-width:1px;--bs-pagination-border-color:#dee2e6;--bs-pagination-border-radius:0.375rem;--bs-pagination-hover-color:var(--bs-link-hover-color);--bs-pagination-hover-bg:#e9ecef;--bs-pagination-hover-border-color:#dee2e6;--bs-pagination-focus-color:var(--bs-link-hover-color);--bs-pagination-focus-bg:#e9ecef;--bs-pagination-focus-box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);--bs-pagination-active-color:#fff;--bs-pagination-active-bg:#0d6efd;--bs-pagination-active-border-color:#0d6efd;--bs-pagination-disabled-color:#6c757d;--bs-pagination-disabled-bg:#fff;--bs-pagination-disabled-border-color:#dee2e6;display:flex;padding-left:0;list-style:none}.page-link{position:relative;display:block;padding:var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);font-size:var(--bs-pagination-font-size);color:var(--bs-pagination-color);text-decoration:none;background-color:var(--bs-pagination-bg);border:var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.page-link{transition:none}}.page-link:hover{z-index:2;color:var(--bs-pagination-hover-color);background-color:var(--bs-pagination-hover-bg);border-color:var(--bs-pagination-hover-border-color)}.page-link:focus{z-index:3;color:var(--bs-pagination-focus-color);background-color:var(--bs-pagination-focus-bg);outline:0;box-shadow:var(--bs-pagination-focus-box-shadow)}.active>.page-link,.page-link.active{z-index:3;color:var(--bs-pagination-active-color);background-color:var(--bs-pagination-active-bg);border-color:var(--bs-pagination-active-border-color)}.disabled>.page-link,.page-link.disabled{color:var(--bs-pagination-disabled-color);pointer-events:none;background-color:var(--bs-pagination-disabled-bg);border-color:var(--bs-pagination-disabled-border-color)}.page-item:not(:first-child) .page-link{margin-left:-1px}.page-item:first-child .page-link{border-top-left-radius:var(--bs-pagination-border-radius);border-bottom-left-radius:var(--bs-pagination-border-radius)}.page-item:last-child .page-link{border-top-right-radius:var(--bs-pagination-border-radius);border-bottom-right-radius:var(--bs-pagination-border-radius)}.pagination-lg{--bs-pagination-padding-x:1.5rem;--bs-pagination-padding-y:0.75rem;--bs-pagination-font-size:1.25rem;--bs-pagination-border-radius:0.5rem}.pagination-sm{--bs-pagination-padding-x:0.5rem;--bs-pagination-padding-y:0.25rem;--bs-pagination-font-size:0.875rem;--bs-pagination-border-radius:0.25rem}.badge{--bs-badge-padding-x:0.65em;--bs-badge-padding-y:0.35em;--bs-badge-font-size:0.75em;--bs-badge-font-weight:700;--bs-badge-color:#fff;--bs-badge-border-radius:0.375rem;display:inline-block;padding:var(--bs-badge-padding-y) var(--bs-badge-padding-x);font-size:var(--bs-badge-font-size);font-weight:var(--bs-badge-font-weight);line-height:1;color:var(--bs-badge-color);text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:var(--bs-badge-border-radius)}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.alert{--bs-alert-bg:transparent;--bs-alert-padding-x:1rem;--bs-alert-padding-y:1rem;--bs-alert-margin-bottom:1rem;--bs-alert-color:inherit;--bs-alert-border-color:transparent;--bs-alert-border:1px solid var(--bs-alert-border-color);--bs-alert-border-radius:0.375rem;position:relative;padding:var(--bs-alert-padding-y) var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius)}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:3rem}.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:1.25rem 1rem}.alert-primary{--bs-alert-color:#084298;--bs-alert-bg:#cfe2ff;--bs-alert-border-color:#b6d4fe}.alert-primary .alert-link{color:#06357a}.alert-secondary{--bs-alert-color:#41464b;--bs-alert-bg:#e2e3e5;--bs-alert-border-color:#d3d6d8}.alert-secondary .alert-link{color:#34383c}.alert-success{--bs-alert-color:#0f5132;--bs-alert-bg:#d1e7dd;--bs-alert-border-color:#badbcc}.alert-success .alert-link{color:#0c4128}.alert-info{--bs-alert-color:#055160;--bs-alert-bg:#cff4fc;--bs-alert-border-color:#b6effb}.alert-info .alert-link{color:#04414d}.alert-warning{--bs-alert-color:#664d03;--bs-alert-bg:#fff3cd;--bs-alert-border-color:#ffecb5}.alert-warning .alert-link{color:#523e02}.alert-danger{--bs-alert-color:#842029;--bs-alert-bg:#f8d7da;--bs-alert-border-color:#f5c2c7}.alert-danger .alert-link{color:#6a1a21}.alert-light{--bs-alert-color:#636464;--bs-alert-bg:#fefefe;--bs-alert-border-color:#fdfdfe}.alert-light .alert-link{color:#4f5050}.alert-dark{--bs-alert-color:#141619;--bs-alert-bg:#d3d3d4;--bs-alert-border-color:#bcbebf}.alert-dark .alert-link{color:#101214}@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.progress{--bs-progress-height:1rem;--bs-progress-font-size:0.75rem;--bs-progress-bg:#e9ecef;--bs-progress-border-radius:0.375rem;--bs-progress-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-progress-bar-color:#fff;--bs-progress-bar-bg:#0d6efd;--bs-progress-bar-transition:width 0.6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}.progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media (prefers-reduced-motion:reduce){.progress-bar-animated{animation:none}}.list-group{--bs-list-group-color:#212529;--bs-list-group-bg:#fff;--bs-list-group-border-color:rgba(0, 0, 0, 0.125);--bs-list-group-border-width:1px;--bs-list-group-border-radius:0.375rem;--bs-list-group-item-padding-x:1rem;--bs-list-group-item-padding-y:0.5rem;--bs-list-group-action-color:#495057;--bs-list-group-action-hover-color:#495057;--bs-list-group-action-hover-bg:#f8f9fa;--bs-list-group-action-active-color:#212529;--bs-list-group-action-active-bg:#e9ecef;--bs-list-group-disabled-color:#6c757d;--bs-list-group-disabled-bg:#fff;--bs-list-group-active-color:#fff;--bs-list-group-active-bg:#0d6efd;--bs-list-group-active-border-color:#0d6efd;display:flex;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:var(--bs-list-group-border-radius)}.list-group-numbered{list-style-type:none;counter-reset:section}.list-group-numbered>.list-group-item::before{content:counters(section, ".") ". ";counter-increment:section}.list-group-item-action{width:100%;color:var(--bs-list-group-action-color);text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{z-index:1;color:var(--bs-list-group-action-hover-color);text-decoration:none;background-color:var(--bs-list-group-action-hover-bg)}.list-group-item-action:active{color:var(--bs-list-group-action-active-color);background-color:var(--bs-list-group-action-active-bg)}.list-group-item{position:relative;display:block;padding:var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);color:var(--bs-list-group-color);text-decoration:none;background-color:var(--bs-list-group-bg);border:var(--bs-list-group-border-width) solid var(--bs-list-group-border-color)}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{color:var(--bs-list-group-disabled-color);pointer-events:none;background-color:var(--bs-list-group-disabled-bg)}.list-group-item.active{z-index:2;color:var(--bs-list-group-active-color);background-color:var(--bs-list-group-active-bg);border-color:var(--bs-list-group-active-border-color)}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:calc(-1 * var(--bs-list-group-border-width));border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}@media (min-width:576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1400px){.list-group-horizontal-xxl{flex-direction:row}.list-group-horizontal-xxl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xxl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xxl>.list-group-item.active{margin-top:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 var(--bs-list-group-border-width)}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{color:#084298;background-color:#cfe2ff}.list-group-item-primary.list-group-item-action:focus,.list-group-item-primary.list-group-item-action:hover{color:#084298;background-color:#bacbe6}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#084298;border-color:#084298}.list-group-item-secondary{color:#41464b;background-color:#e2e3e5}.list-group-item-secondary.list-group-item-action:focus,.list-group-item-secondary.list-group-item-action:hover{color:#41464b;background-color:#cbccce}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#41464b;border-color:#41464b}.list-group-item-success{color:#0f5132;background-color:#d1e7dd}.list-group-item-success.list-group-item-action:focus,.list-group-item-success.list-group-item-action:hover{color:#0f5132;background-color:#bcd0c7}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#0f5132;border-color:#0f5132}.list-group-item-info{color:#055160;background-color:#cff4fc}.list-group-item-info.list-group-item-action:focus,.list-group-item-info.list-group-item-action:hover{color:#055160;background-color:#badce3}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#055160;border-color:#055160}.list-group-item-warning{color:#664d03;background-color:#fff3cd}.list-group-item-warning.list-group-item-action:focus,.list-group-item-warning.list-group-item-action:hover{color:#664d03;background-color:#e6dbb9}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#664d03;border-color:#664d03}.list-group-item-danger{color:#842029;background-color:#f8d7da}.list-group-item-danger.list-group-item-action:focus,.list-group-item-danger.list-group-item-action:hover{color:#842029;background-color:#dfc2c4}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#842029;border-color:#842029}.list-group-item-light{color:#636464;background-color:#fefefe}.list-group-item-light.list-group-item-action:focus,.list-group-item-light.list-group-item-action:hover{color:#636464;background-color:#e5e5e5}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#636464;border-color:#636464}.list-group-item-dark{color:#141619;background-color:#d3d3d4}.list-group-item-dark.list-group-item-action:focus,.list-group-item-dark.list-group-item-action:hover{color:#141619;background-color:#bebebf}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#141619;border-color:#141619}.btn-close{box-sizing:content-box;width:1em;height:1em;padding:.25em .25em;color:#000;background:transparent url('+F+') center/1em auto no-repeat;border:0;border-radius:.375rem;opacity:.5}.btn-close:hover{color:#000;text-decoration:none;opacity:.75}.btn-close:focus{outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25);opacity:1}.btn-close.disabled,.btn-close:disabled{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:.25}.btn-close-white{filter:invert(1) grayscale(100%) brightness(200%)}.toast{--bs-toast-zindex:1090;--bs-toast-padding-x:0.75rem;--bs-toast-padding-y:0.5rem;--bs-toast-spacing:1.5rem;--bs-toast-max-width:350px;--bs-toast-font-size:0.875rem;--bs-toast-color: ;--bs-toast-bg:rgba(255, 255, 255, 0.85);--bs-toast-border-width:1px;--bs-toast-border-color:var(--bs-border-color-translucent);--bs-toast-border-radius:0.375rem;--bs-toast-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-toast-header-color:#6c757d;--bs-toast-header-bg:rgba(255, 255, 255, 0.85);--bs-toast-header-border-color:rgba(0, 0, 0, 0.05);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}.toast.showing{opacity:0}.toast:not(.show){display:none}.toast-container{--bs-toast-zindex:1090;position:absolute;z-index:var(--bs-toast-zindex);width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:100%;pointer-events:none}.toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}.toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}.toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}.toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}.modal{--bs-modal-zindex:1055;--bs-modal-width:500px;--bs-modal-padding:1rem;--bs-modal-margin:0.5rem;--bs-modal-color: ;--bs-modal-bg:#fff;--bs-modal-border-color:var(--bs-border-color-translucent);--bs-modal-border-width:1px;--bs-modal-border-radius:0.5rem;--bs-modal-box-shadow:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-modal-inner-border-radius:calc(0.5rem - 1px);--bs-modal-header-padding-x:1rem;--bs-modal-header-padding-y:1rem;--bs-modal-header-padding:1rem 1rem;--bs-modal-header-border-color:var(--bs-border-color);--bs-modal-header-border-width:1px;--bs-modal-title-line-height:1.5;--bs-modal-footer-gap:0.5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color:var(--bs-border-color);--bs-modal-footer-border-width:1px;position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translate(0,-50px)}@media (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}.modal-backdrop{--bs-backdrop-zindex:1050;--bs-backdrop-bg:#000;--bs-backdrop-opacity:0.5;position:fixed;top:0;left:0;z-index:var(--bs-backdrop-zindex);width:100vw;height:100vh;background-color:var(--bs-backdrop-bg)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--bs-backdrop-opacity)}.modal-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin:calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto}.modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media (min-width:576px){.modal{--bs-modal-margin:1.75rem;--bs-modal-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}.modal-sm{--bs-modal-width:300px}}@media (min-width:992px){.modal-lg,.modal-xl{--bs-modal-width:800px}}@media (min-width:1200px){.modal-xl{--bs-modal-width:1140px}}.modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen .modal-footer,.modal-fullscreen .modal-header{border-radius:0}.modal-fullscreen .modal-body{overflow-y:auto}@media (max-width:575.98px){.modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-sm-down .modal-footer,.modal-fullscreen-sm-down .modal-header{border-radius:0}.modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media (max-width:767.98px){.modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-md-down .modal-footer,.modal-fullscreen-md-down .modal-header{border-radius:0}.modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media (max-width:991.98px){.modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-lg-down .modal-footer,.modal-fullscreen-lg-down .modal-header{border-radius:0}.modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media (max-width:1199.98px){.modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xl-down .modal-footer,.modal-fullscreen-xl-down .modal-header{border-radius:0}.modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media (max-width:1399.98px){.modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xxl-down .modal-footer,.modal-fullscreen-xxl-down .modal-header{border-radius:0}.modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}.tooltip{--bs-tooltip-zindex:1080;--bs-tooltip-max-width:200px;--bs-tooltip-padding-x:0.5rem;--bs-tooltip-padding-y:0.25rem;--bs-tooltip-margin: ;--bs-tooltip-font-size:0.875rem;--bs-tooltip-color:#fff;--bs-tooltip-bg:#000;--bs-tooltip-border-radius:0.375rem;--bs-tooltip-opacity:0.9;--bs-tooltip-arrow-width:0.8rem;--bs-tooltip-arrow-height:0.4rem;z-index:var(--bs-tooltip-zindex);display:block;padding:var(--bs-tooltip-arrow-height);margin:var(--bs-tooltip-margin);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--bs-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--bs-tooltip-arrow-width);height:var(--bs-tooltip-arrow-height)}.tooltip .tooltip-arrow::before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow,.bs-tooltip-top .tooltip-arrow{bottom:0}.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,.bs-tooltip-top .tooltip-arrow::before{top:-1px;border-width:var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-top-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow,.bs-tooltip-end .tooltip-arrow{left:0;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before,.bs-tooltip-end .tooltip-arrow::before{right:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-right-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow,.bs-tooltip-bottom .tooltip-arrow{top:0}.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before,.bs-tooltip-bottom .tooltip-arrow::before{bottom:-1px;border-width:0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-bottom-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow,.bs-tooltip-start .tooltip-arrow{right:0;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before,.bs-tooltip-start .tooltip-arrow::before{left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-left-color:var(--bs-tooltip-bg)}.tooltip-inner{max-width:var(--bs-tooltip-max-width);padding:var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);color:var(--bs-tooltip-color);text-align:center;background-color:var(--bs-tooltip-bg);border-radius:var(--bs-tooltip-border-radius)}.popover{--bs-popover-zindex:1070;--bs-popover-max-width:276px;--bs-popover-font-size:0.875rem;--bs-popover-bg:#fff;--bs-popover-border-width:1px;--bs-popover-border-color:var(--bs-border-color-translucent);--bs-popover-border-radius:0.5rem;--bs-popover-inner-border-radius:calc(0.5rem - 1px);--bs-popover-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-popover-header-padding-x:1rem;--bs-popover-header-padding-y:0.5rem;--bs-popover-header-font-size:1rem;--bs-popover-header-color: ;--bs-popover-header-bg:#f0f0f0;--bs-popover-body-padding-x:1rem;--bs-popover-body-padding-y:1rem;--bs-popover-body-color:#212529;--bs-popover-arrow-width:1rem;--bs-popover-arrow-height:0.5rem;--bs-popover-arrow-border:var(--bs-popover-border-color);z-index:var(--bs-popover-zindex);display:block;max-width:var(--bs-popover-max-width);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-popover-font-size);word-wrap:break-word;background-color:var(--bs-popover-bg);background-clip:padding-box;border:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-radius:var(--bs-popover-border-radius)}.popover .popover-arrow{display:block;width:var(--bs-popover-arrow-width);height:var(--bs-popover-arrow-height)}.popover .popover-arrow::after,.popover .popover-arrow::before{position:absolute;display:block;content:"";border-color:transparent;border-style:solid;border-width:0}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow,.bs-popover-top>.popover-arrow{bottom:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::before,.bs-popover-top>.popover-arrow::after,.bs-popover-top>.popover-arrow::before{border-width:var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::before,.bs-popover-top>.popover-arrow::before{bottom:0;border-top-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::after,.bs-popover-top>.popover-arrow::after{bottom:var(--bs-popover-border-width);border-top-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow,.bs-popover-end>.popover-arrow{left:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::before,.bs-popover-end>.popover-arrow::after,.bs-popover-end>.popover-arrow::before{border-width:calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::before,.bs-popover-end>.popover-arrow::before{left:0;border-right-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::after,.bs-popover-end>.popover-arrow::after{left:var(--bs-popover-border-width);border-right-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow,.bs-popover-bottom>.popover-arrow{top:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::before,.bs-popover-bottom>.popover-arrow::after,.bs-popover-bottom>.popover-arrow::before{border-width:0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::before,.bs-popover-bottom>.popover-arrow::before{top:0;border-bottom-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::after,.bs-popover-bottom>.popover-arrow::after{top:var(--bs-popover-border-width);border-bottom-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=bottom] .popover-header::before,.bs-popover-bottom .popover-header::before{position:absolute;top:0;left:50%;display:block;width:var(--bs-popover-arrow-width);margin-left:calc(-.5 * var(--bs-popover-arrow-width));content:"";border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-header-bg)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow,.bs-popover-start>.popover-arrow{right:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::before,.bs-popover-start>.popover-arrow::after,.bs-popover-start>.popover-arrow::before{border-width:calc(var(--bs-popover-arrow-width) * .5) 0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::before,.bs-popover-start>.popover-arrow::before{right:0;border-left-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::after,.bs-popover-start>.popover-arrow::after{right:var(--bs-popover-border-width);border-left-color:var(--bs-popover-bg)}.popover-header{padding:var(--bs-popover-header-padding-y) var(--bs-popover-header-padding-x);margin-bottom:0;font-size:var(--bs-popover-header-font-size);color:var(--bs-popover-header-color);background-color:var(--bs-popover-header-bg);border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-top-left-radius:var(--bs-popover-inner-border-radius);border-top-right-radius:var(--bs-popover-inner-border-radius)}.popover-header:empty{display:none}.popover-body{padding:var(--bs-popover-body-padding-y) var(--bs-popover-body-padding-x);color:var(--bs-popover-body-color)}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner::after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion:reduce){.carousel-item{transition:none}}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block}.active.carousel-item-end,.carousel-item-next:not(.carousel-item-start){transform:translateX(100%)}.active.carousel-item-start,.carousel-item-prev:not(.carousel-item-end){transform:translateX(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item-next.carousel-item-start,.carousel-fade .carousel-item-prev.carousel-item-end,.carousel-fade .carousel-item.active{z-index:1;opacity:1}.carousel-fade .active.carousel-item-end,.carousel-fade .active.carousel-item-start{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion:reduce){.carousel-fade .active.carousel-item-end,.carousel-fade .active.carousel-item-start{transition:none}}.carousel-control-next,.carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;padding:0;color:#fff;text-align:center;background:0 0;border:0;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion:reduce){.carousel-control-next,.carousel-control-prev{transition:none}}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{display:inline-block;width:2rem;height:2rem;background-repeat:no-repeat;background-position:50%;background-size:100% 100%}.carousel-control-prev-icon{background-image:url('+B+")}.carousel-control-next-icon{background-image:url("+U+')}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:2;display:flex;justify-content:center;padding:0;margin-right:15%;margin-bottom:1rem;margin-left:15%;list-style:none}.carousel-indicators [data-bs-target]{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;padding:0;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border:0;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion:reduce){.carousel-indicators [data-bs-target]{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:1.25rem;left:15%;padding-top:1.25rem;padding-bottom:1.25rem;color:#fff;text-align:center}.carousel-dark .carousel-control-next-icon,.carousel-dark .carousel-control-prev-icon{filter:invert(1) grayscale(100)}.carousel-dark .carousel-indicators [data-bs-target]{background-color:#000}.carousel-dark .carousel-caption{color:#000}.spinner-border,.spinner-grow{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-border-width:0.25em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem;--bs-spinner-border-width:0.2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem}@media (prefers-reduced-motion:reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed:1.5s}}.offcanvas,.offcanvas-lg,.offcanvas-md,.offcanvas-sm,.offcanvas-xl,.offcanvas-xxl{--bs-offcanvas-zindex:1045;--bs-offcanvas-width:400px;--bs-offcanvas-height:30vh;--bs-offcanvas-padding-x:1rem;--bs-offcanvas-padding-y:1rem;--bs-offcanvas-color: ;--bs-offcanvas-bg:#fff;--bs-offcanvas-border-width:1px;--bs-offcanvas-border-color:var(--bs-border-color-translucent);--bs-offcanvas-box-shadow:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075)}@media (max-width:575.98px){.offcanvas-sm{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width:575.98px) and (prefers-reduced-motion:reduce){.offcanvas-sm{transition:none}}@media (max-width:575.98px){.offcanvas-sm.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}}@media (max-width:575.98px){.offcanvas-sm.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}}@media (max-width:575.98px){.offcanvas-sm.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width:575.98px){.offcanvas-sm.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width:575.98px){.offcanvas-sm.show:not(.hiding),.offcanvas-sm.showing{transform:none}}@media (max-width:575.98px){.offcanvas-sm.hiding,.offcanvas-sm.show,.offcanvas-sm.showing{visibility:visible}}@media (min-width:576px){.offcanvas-sm{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-sm .offcanvas-header{display:none}.offcanvas-sm .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:767.98px){.offcanvas-md{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width:767.98px) and (prefers-reduced-motion:reduce){.offcanvas-md{transition:none}}@media (max-width:767.98px){.offcanvas-md.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}}@media (max-width:767.98px){.offcanvas-md.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}}@media (max-width:767.98px){.offcanvas-md.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width:767.98px){.offcanvas-md.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width:767.98px){.offcanvas-md.show:not(.hiding),.offcanvas-md.showing{transform:none}}@media (max-width:767.98px){.offcanvas-md.hiding,.offcanvas-md.show,.offcanvas-md.showing{visibility:visible}}@media (min-width:768px){.offcanvas-md{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-md .offcanvas-header{display:none}.offcanvas-md .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:991.98px){.offcanvas-lg{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width:991.98px) and (prefers-reduced-motion:reduce){.offcanvas-lg{transition:none}}@media (max-width:991.98px){.offcanvas-lg.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}}@media (max-width:991.98px){.offcanvas-lg.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}}@media (max-width:991.98px){.offcanvas-lg.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width:991.98px){.offcanvas-lg.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width:991.98px){.offcanvas-lg.show:not(.hiding),.offcanvas-lg.showing{transform:none}}@media (max-width:991.98px){.offcanvas-lg.hiding,.offcanvas-lg.show,.offcanvas-lg.showing{visibility:visible}}@media (min-width:992px){.offcanvas-lg{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-lg .offcanvas-header{display:none}.offcanvas-lg .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:1199.98px){.offcanvas-xl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width:1199.98px) and (prefers-reduced-motion:reduce){.offcanvas-xl{transition:none}}@media (max-width:1199.98px){.offcanvas-xl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}}@media (max-width:1199.98px){.offcanvas-xl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}}@media (max-width:1199.98px){.offcanvas-xl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width:1199.98px){.offcanvas-xl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width:1199.98px){.offcanvas-xl.show:not(.hiding),.offcanvas-xl.showing{transform:none}}@media (max-width:1199.98px){.offcanvas-xl.hiding,.offcanvas-xl.show,.offcanvas-xl.showing{visibility:visible}}@media (min-width:1200px){.offcanvas-xl{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-xl .offcanvas-header{display:none}.offcanvas-xl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:1399.98px){.offcanvas-xxl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width:1399.98px) and (prefers-reduced-motion:reduce){.offcanvas-xxl{transition:none}}@media (max-width:1399.98px){.offcanvas-xxl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}}@media (max-width:1399.98px){.offcanvas-xxl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}}@media (max-width:1399.98px){.offcanvas-xxl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width:1399.98px){.offcanvas-xxl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width:1399.98px){.offcanvas-xxl.show:not(.hiding),.offcanvas-xxl.showing{transform:none}}@media (max-width:1399.98px){.offcanvas-xxl.hiding,.offcanvas-xxl.show,.offcanvas-xxl.showing{visibility:visible}}@media (min-width:1400px){.offcanvas-xxl{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-xxl .offcanvas-header{display:none}.offcanvas-xxl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}.offcanvas{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}@media (prefers-reduced-motion:reduce){.offcanvas{transition:none}}.offcanvas.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas.show:not(.hiding),.offcanvas.showing{transform:none}.offcanvas.hiding,.offcanvas.show,.offcanvas.showing{visibility:visible}.offcanvas-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.offcanvas-backdrop.fade{opacity:0}.offcanvas-backdrop.show{opacity:.5}.offcanvas-header{display:flex;align-items:center;justify-content:space-between;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x)}.offcanvas-header .btn-close{padding:calc(var(--bs-offcanvas-padding-y) * .5) calc(var(--bs-offcanvas-padding-x) * .5);margin-top:calc(-.5 * var(--bs-offcanvas-padding-y));margin-right:calc(-.5 * var(--bs-offcanvas-padding-x));margin-bottom:calc(-.5 * var(--bs-offcanvas-padding-y))}.offcanvas-title{margin-bottom:0;line-height:1.5}.offcanvas-body{flex-grow:1;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);overflow-y:auto}.placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.5}.placeholder.btn::before{display:inline-block;content:""}.placeholder-xs{min-height:.6em}.placeholder-sm{min-height:.8em}.placeholder-lg{min-height:1.2em}.placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.2}}.placeholder-wave{-webkit-mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,0.8) 75%,#000 95%);mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,0.8) 75%,#000 95%);-webkit-mask-size:200% 100%;mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{100%{-webkit-mask-position:-200% 0%;mask-position:-200% 0%}}.clearfix::after{display:block;clear:both;content:""}.text-bg-primary{color:#fff!important;background-color:RGBA(13,110,253,var(--bs-bg-opacity,1))!important}.text-bg-secondary{color:#fff!important;background-color:RGBA(108,117,125,var(--bs-bg-opacity,1))!important}.text-bg-success{color:#fff!important;background-color:RGBA(25,135,84,var(--bs-bg-opacity,1))!important}.text-bg-info{color:#000!important;background-color:RGBA(13,202,240,var(--bs-bg-opacity,1))!important}.text-bg-warning{color:#000!important;background-color:RGBA(255,193,7,var(--bs-bg-opacity,1))!important}.text-bg-danger{color:#fff!important;background-color:RGBA(220,53,69,var(--bs-bg-opacity,1))!important}.text-bg-light{color:#000!important;background-color:RGBA(248,249,250,var(--bs-bg-opacity,1))!important}.text-bg-dark{color:#fff!important;background-color:RGBA(33,37,41,var(--bs-bg-opacity,1))!important}.link-primary{color:#0d6efd!important}.link-primary:focus,.link-primary:hover{color:#0a58ca!important}.link-secondary{color:#6c757d!important}.link-secondary:focus,.link-secondary:hover{color:#565e64!important}.link-success{color:#198754!important}.link-success:focus,.link-success:hover{color:#146c43!important}.link-info{color:#0dcaf0!important}.link-info:focus,.link-info:hover{color:#3dd5f3!important}.link-warning{color:#ffc107!important}.link-warning:focus,.link-warning:hover{color:#ffcd39!important}.link-danger{color:#dc3545!important}.link-danger:focus,.link-danger:hover{color:#b02a37!important}.link-light{color:#f8f9fa!important}.link-light:focus,.link-light:hover{color:#f9fafb!important}.link-dark{color:#212529!important}.link-dark:focus,.link-dark:hover{color:#1a1e21!important}.ratio{position:relative;width:100%}.ratio::before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio:100%}.ratio-4x3{--bs-aspect-ratio:75%}.ratio-16x9{--bs-aspect-ratio:56.25%}.ratio-21x9{--bs-aspect-ratio:42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}@media (min-width:576px){.sticky-sm-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:768px){.sticky-md-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:992px){.sticky-lg-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:1200px){.sticky-xl-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:1400px){.sticky-xxl-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.stretched-link::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:""}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:1px;min-height:1em;background-color:currentcolor;opacity:.25}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.opacity-0{opacity:0!important}.opacity-25{opacity:.25!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.opacity-100{opacity:1!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:0 .5rem 1rem rgba(0,0,0,.15)!important}.shadow-sm{box-shadow:0 .125rem .25rem rgba(0,0,0,.075)!important}.shadow-lg{box-shadow:0 1rem 3rem rgba(0,0,0,.175)!important}.shadow-none{box-shadow:none!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:-webkit-sticky!important;position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translateX(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-0{border:0!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-start-0{border-left:0!important}.border-primary{--bs-border-opacity:1;border-color:rgba(var(--bs-primary-rgb),var(--bs-border-opacity))!important}.border-secondary{--bs-border-opacity:1;border-color:rgba(var(--bs-secondary-rgb),var(--bs-border-opacity))!important}.border-success{--bs-border-opacity:1;border-color:rgba(var(--bs-success-rgb),var(--bs-border-opacity))!important}.border-info{--bs-border-opacity:1;border-color:rgba(var(--bs-info-rgb),var(--bs-border-opacity))!important}.border-warning{--bs-border-opacity:1;border-color:rgba(var(--bs-warning-rgb),var(--bs-border-opacity))!important}.border-danger{--bs-border-opacity:1;border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity))!important}.border-light{--bs-border-opacity:1;border-color:rgba(var(--bs-light-rgb),var(--bs-border-opacity))!important}.border-dark{--bs-border-opacity:1;border-color:rgba(var(--bs-dark-rgb),var(--bs-border-opacity))!important}.border-white{--bs-border-opacity:1;border-color:rgba(var(--bs-white-rgb),var(--bs-border-opacity))!important}.border-1{--bs-border-width:1px}.border-2{--bs-border-width:2px}.border-3{--bs-border-width:3px}.border-4{--bs-border-width:4px}.border-5{--bs-border-width:5px}.border-opacity-10{--bs-border-opacity:0.1}.border-opacity-25{--bs-border-opacity:0.25}.border-opacity-50{--bs-border-opacity:0.5}.border-opacity-75{--bs-border-opacity:0.75}.border-opacity-100{--bs-border-opacity:1}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:3rem!important;margin-left:3rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:3rem!important;padding-left:3rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:3rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:3rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}.font-monospace{font-family:var(--bs-font-monospace)!important}.fs-1{font-size:calc(1.375rem + 1.5vw)!important}.fs-2{font-size:calc(1.325rem + .9vw)!important}.fs-3{font-size:calc(1.3rem + .6vw)!important}.fs-4{font-size:calc(1.275rem + .3vw)!important}.fs-5{font-size:1.25rem!important}.fs-6{font-size:1rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-light{font-weight:300!important}.fw-lighter{font-weight:lighter!important}.fw-normal{font-weight:400!important}.fw-bold{font-weight:700!important}.fw-semibold{font-weight:600!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.5!important}.lh-lg{line-height:2!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-primary{--bs-text-opacity:1;color:rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important}.text-secondary{--bs-text-opacity:1;color:rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important}.text-success{--bs-text-opacity:1;color:rgba(var(--bs-success-rgb),var(--bs-text-opacity))!important}.text-info{--bs-text-opacity:1;color:rgba(var(--bs-info-rgb),var(--bs-text-opacity))!important}.text-warning{--bs-text-opacity:1;color:rgba(var(--bs-warning-rgb),var(--bs-text-opacity))!important}.text-danger{--bs-text-opacity:1;color:rgba(var(--bs-danger-rgb),var(--bs-text-opacity))!important}.text-light{--bs-text-opacity:1;color:rgba(var(--bs-light-rgb),var(--bs-text-opacity))!important}.text-dark{--bs-text-opacity:1;color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important}.text-black{--bs-text-opacity:1;color:rgba(var(--bs-black-rgb),var(--bs-text-opacity))!important}.text-white{--bs-text-opacity:1;color:rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important}.text-body{--bs-text-opacity:1;color:rgba(var(--bs-body-color-rgb),var(--bs-text-opacity))!important}.text-muted{--bs-text-opacity:1;color:#6c757d!important}.text-black-50{--bs-text-opacity:1;color:rgba(0,0,0,.5)!important}.text-white-50{--bs-text-opacity:1;color:rgba(255,255,255,.5)!important}.text-reset{--bs-text-opacity:1;color:inherit!important}.text-opacity-25{--bs-text-opacity:0.25}.text-opacity-50{--bs-text-opacity:0.5}.text-opacity-75{--bs-text-opacity:0.75}.text-opacity-100{--bs-text-opacity:1}.bg-primary{--bs-bg-opacity:1;background-color:rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important}.bg-secondary{--bs-bg-opacity:1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important}.bg-success{--bs-bg-opacity:1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important}.bg-info{--bs-bg-opacity:1;background-color:rgba(var(--bs-info-rgb),var(--bs-bg-opacity))!important}.bg-warning{--bs-bg-opacity:1;background-color:rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important}.bg-danger{--bs-bg-opacity:1;background-color:rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important}.bg-light{--bs-bg-opacity:1;background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important}.bg-dark{--bs-bg-opacity:1;background-color:rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important}.bg-black{--bs-bg-opacity:1;background-color:rgba(var(--bs-black-rgb),var(--bs-bg-opacity))!important}.bg-white{--bs-bg-opacity:1;background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important}.bg-body{--bs-bg-opacity:1;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important}.bg-transparent{--bs-bg-opacity:1;background-color:transparent!important}.bg-opacity-10{--bs-bg-opacity:0.1}.bg-opacity-25{--bs-bg-opacity:0.25}.bg-opacity-50{--bs-bg-opacity:0.5}.bg-opacity-75{--bs-bg-opacity:0.75}.bg-opacity-100{--bs-bg-opacity:1}.bg-gradient{background-image:var(--bs-gradient)!important}.user-select-all{-webkit-user-select:all!important;-moz-user-select:all!important;user-select:all!important}.user-select-auto{-webkit-user-select:auto!important;-moz-user-select:auto!important;user-select:auto!important}.user-select-none{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--bs-border-radius-sm)!important}.rounded-2{border-radius:var(--bs-border-radius)!important}.rounded-3{border-radius:var(--bs-border-radius-lg)!important}.rounded-4{border-radius:var(--bs-border-radius-xl)!important}.rounded-5{border-radius:var(--bs-border-radius-2xl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--bs-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-end{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}@media (min-width:576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:3rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:3rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:3rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:3rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:3rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:3rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:3rem!important;padding-left:3rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:3rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:3rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:3rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:3rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:3rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:3rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:3rem!important;margin-left:3rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:3rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:3rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:3rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:3rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:3rem!important;padding-left:3rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:3rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:3rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:3rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:3rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:3rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:3rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:3rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:3rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:3rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:3rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:3rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:3rem!important;padding-left:3rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:3rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:3rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:3rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:3rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:3rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:3rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:3rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:3rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:3rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:3rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:3rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:3rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:3rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:3rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:3rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:3rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}}@media (min-width:1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:3rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:3rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:3rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:3rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:3rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:3rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:3rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:3rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:3rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:3rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:3rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}}@media (min-width:1200px){.fs-1{font-size:2.5rem!important}.fs-2{font-size:2rem!important}.fs-3{font-size:1.75rem!important}.fs-4{font-size:1.5rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}}',""]);const W=S},169:(t,e,r)=>{"use strict";r.d(e,{Z:()=>s});var n=r(81),o=r.n(n),a=r(645),i=r.n(a)()(o());i.push([t.id,'@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.regular-17pt{font-family:"Open Sans",sans-serif;font-size:17pt;font-weight:normal}.bold-20pt{font-family:"Open Sans",sans-serif;font-size:20pt;font-weight:bold}.bold-caps-16pt,.toggle-btn{font-family:"Open Sans",sans-serif;font-size:16pt;font-weight:bold;text-transform:uppercase}.bold-caps-17pt{font-family:"Open Sans",sans-serif;font-size:17pt;font-weight:bold;text-transform:uppercase}.bold-caps-20pt,.geant-header{font-family:"Open Sans",sans-serif;font-size:20pt;font-weight:bold;text-transform:uppercase}.bold-caps-30pt{font-family:"Open Sans",sans-serif;font-size:30pt;font-weight:bold;text-transform:uppercase}.dark-teal{color:#003f5f}.geant-header{color:#003f5f}.bold-grey-12pt{font-family:"Open Sans",sans-serif;font-size:12pt;font-weight:bold;color:#666}.sidebar-wrapper{display:flex;position:fixed;z-index:1;top:calc(50vh - 10%);pointer-events:none}.sidebar-wrapper .menu-items{padding:10px}.sidebar-wrapper>nav{visibility:visible;opacity:1;transition-property:margin-left,opacity;transition:.25s;margin-left:0;background-color:#fff;box-shadow:0 2px 10px rgba(0,0,0,.25);border:#f79e3b 2px solid;pointer-events:auto;width:28rem}.sidebar-wrapper>nav a{padding-top:.3rem;padding-left:1.5rem;text-decoration:none}.sidebar-wrapper>nav a:hover{color:#f79e3b;text-decoration:none}nav.no-sidebar{margin-left:-80%;visibility:hidden;opacity:0}.toggle-btn{background-color:#f79e3b;color:#fff;height:3.5rem;cursor:pointer;padding-left:1rem;pointer-events:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.toggle-btn-wrapper{padding:.5rem;padding-top:.7rem}.btn-nav-box{--bs-btn-color: rgb(0, 63, 95);--bs-btn-border-color: #6c757d;--bs-btn-border-radius: none;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(247, 158, 59);--bs-btn-active-border-color: rgb(247, 158, 59);--bs-btn-hover-color: rgb(0, 63, 95);--bs-btn-hover-bg: rgb(247, 158, 59);--bs-btn-hover-border-color: rgb(247, 158, 59);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;border:2px solid #f79e3b}.btn-login{--bs-btn-color: #fff;--bs-btn-border-color: #6c757d;--bs-btn-border-radius: none;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(247, 158, 59);--bs-btn-active-border-color: rgb(247, 158, 59);--bs-btn-hover-color: rgb(0, 63, 95);--bs-btn-hover-bg: rgb(247, 158, 59);--bs-btn-hover-border-color: rgb(247, 158, 59);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;border:2px solid #f79e3b}.rounded-border{border-radius:25px;border:1px solid #b9bec5}.card{--bs-card-border-color: ""}.grow,.grey-container{display:flex;flex-direction:column;flex:1;padding-bottom:4%}.grey-container{max-width:100vw;background-color:#eaedf3}.wordwrap{max-width:60rem;word-wrap:break-word}.center{display:flex;align-items:center;justify-content:center;flex-direction:column}.center-text{display:flex;align-items:center;justify-content:center;padding-bottom:2%;flex-direction:column}.compendium-data-header{background-color:#fabe66;color:#fff;padding:10px}.compendium-data-banner{background-color:#fce7c9;color:#003f5f;padding:5px;padding-top:25px}.collapsible-box{margin:1rem;border:2px solid #f79e3b;padding:10px;width:80rem;max-width:50vw}.collapsible-content{display:flex}.collapsible-column{flex-basis:100%;padding:1rem}.link-text,.link-text-underline{text-decoration:none;color:#003753}.link-text:hover,.link-text-underline:hover{color:#003753}.link-text-underline:hover{text-decoration:underline}.page-footer{min-height:100px;background-color:#3b536b;color:#fff}.footer-link{color:#fff;text-decoration:none}.footer-link:hover{color:#fff;text-decoration:underline}.filter-dropdown-item{padding-left:1rem;cursor:pointer}.filter-dropdown-item:hover{background-color:var(--bs-dropdown-link-hover-bg)}.nren-checkbox[type=checkbox]{border-radius:0;cursor:pointer}.nren-checkbox:checked{background-color:#3b536b;border-color:#3b536b}.nren-checkbox:focus:not(:focus-visible){box-shadow:none;border-color:rgba(0,0,0,.25)}.nren-checkbox-label{cursor:pointer}.btn-compendium{--bs-btn-color: #fff;--bs-btn-bg: #003753;--bs-btn-border-color: #003753;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #3b536b;--bs-btn-hover-border-color: #3b536b;--bs-btn-focus-shadow-rgb: 49, 132, 253;--bs-btn-active-color: #f5f5f5;--bs-btn-active-bg: #3b536b;--bs-btn-active-border-color: #003753;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #0d6efd;--bs-btn-disabled-border-color: #0d6efd;--bs-btn-border-radius: none}.btn-compendium-year,.btn-compendium-year-8,.btn-compendium-year-7,.btn-compendium-year-6,.btn-compendium-year-5,.btn-compendium-year-4,.btn-compendium-year-3,.btn-compendium-year-2,.btn-compendium-year-1,.btn-compendium-year-0{--bs-btn-color: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #6c757d;--bs-btn-hover-border-color: #6c757d;--bs-btn-focus-shadow-rgb: 108, 117, 125;--bs-btn-active-color: #fff;--bs-btn-active-bg: #6c757d;--bs-btn-active-border-color: #6c757d;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #6c757d;--bs-gradient: none;--bs-btn-border-radius: none}.color-of-the-year-0{background-color:#fd7f6f}.btn-compendium-year-0{--bs-btn-active-bg: #fd7f6f}.color-of-the-year-1{background-color:#7eb0d5}.btn-compendium-year-1{--bs-btn-active-bg: #7eb0d5}.color-of-the-year-2{background-color:#ffee65}.btn-compendium-year-2{--bs-btn-active-bg: #ffee65}.color-of-the-year-3{background-color:#bd7ebe}.btn-compendium-year-3{--bs-btn-active-bg: #bd7ebe}.color-of-the-year-4{background-color:#beb9db}.btn-compendium-year-4{--bs-btn-active-bg: #beb9db}.color-of-the-year-5{background-color:#b2e061}.btn-compendium-year-5{--bs-btn-active-bg: #b2e061}.color-of-the-year-6{background-color:#ffb55a}.btn-compendium-year-6{--bs-btn-active-bg: #ffb55a}.color-of-the-year-7{background-color:#fdcce5}.btn-compendium-year-7{--bs-btn-active-bg: #fdcce5}.color-of-the-year-8{background-color:#8bd3c7}.btn-compendium-year-8{--bs-btn-active-bg: #8bd3c7}.color-of-the-year-blank{background-color:rgba(0,0,0,0)}.charging-struct-table td{text-align:center}.charging-struct-table td{text-align:center}.fit-max-content{min-width:max-content}.table-bg-highlighted tr:nth-child(even){background-color:rgba(102,121,139,.178)}.table-bg-highlighted tr:hover{background-color:rgba(102,121,139,.521)}.table-bg-highlighted li{list-style-type:square;list-style-position:inside}.compendium-table{border-collapse:separate;border-spacing:1.2em 0px}.table .blue-column,.table .nren-column{background-color:#e5f4f9}.table .orange-column,.table .year-column{background-color:#fdf2df}.nren-column{min-width:15%}.year-column{min-width:10%}.dotted-border{position:relative}.dotted-border::after{pointer-events:none;display:block;position:absolute;content:"";left:-20px;right:-10px;top:0;bottom:0;border-top:4px dotted #a7a7a7}.section-container{display:flex;margin-right:2.8em;float:right}.color-of-badge-0{background-color:rgb(157, 40, 114)}.color-of-badge-1{background-color:rgb(241, 224, 79)}.color-of-badge-2{background-color:rgb(219, 42, 76)}.color-of-badge-3{background-color:rgb(237, 141, 24)}.color-of-badge-4{background-color:rgb(137, 166, 121)}.color-of-badge-blank{background-color:rgba(0,0,0,0)}.nav-link-entry{border-radius:2px;font-family:"Open Sans",sans-serif;font-size:.9rem;font-weight:600;text-decoration:none;color:#b0cde1;padding:10px}.nav-link{display:flex;-webkit-box-align:center;align-items:center;height:60px}.nav-link .nav-link-entry:hover{color:#003753;background-color:#b0cde1}.nav-link ul{line-height:1.3;text-transform:uppercase;list-style:none}.nav-link ul li{float:left}.nav-wrapper{display:flex;-webkit-box-align:center;align-items:center;height:60px}.header-nav{width:100%}.header-nav img{float:left;margin-right:15px}.header-nav ul{line-height:1.3;text-transform:uppercase;list-style:none}.header-nav ul li{float:left}.header-nav ul li a{border-radius:2px;float:left;font-family:"Open Sans",sans-serif;font-size:.9rem;font-weight:600;text-decoration:none;color:#b0cde1;padding:10px}.header-nav ul li a:hover{color:#003753;background-color:#b0cde1}.external-page-nav-bar{background-color:#003753;color:#b0cde1;height:60px}.app{flex-direction:column;min-height:100vh}',""]);const s=i},645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r="",n=void 0!==e[5];return e[4]&&(r+="@supports (".concat(e[4],") {")),e[2]&&(r+="@media ".concat(e[2]," {")),n&&(r+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),r+=t(e),n&&(r+="}"),e[2]&&(r+="}"),e[4]&&(r+="}"),r})).join("")},e.i=function(t,r,n,o,a){"string"==typeof t&&(t=[[null,t,void 0]]);var i={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(i[l]=!0)}for(var c=0;c<t.length;c++){var d=[].concat(t[c]);n&&i[d[0]]||(void 0!==a&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=a),r&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=r):d[2]=r),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),e.push(d))}},e}},667:t=>{"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},81:t=>{"use strict";t.exports=function(t){return t[1]}},143:t=>{"use strict";t.exports=function(t,e,r,n,o,a,i,s){if(!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,o,a,i,s],d=0;(l=new Error(e.replace(/%s/g,(function(){return c[d++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},703:(t,e,r)=>{"use strict";var n=r(414);function o(){}function a(){}a.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,a,i){if(i!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},697:(t,e,r)=>{t.exports=r(703)()},414:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},448:(t,e,r)=>{"use strict";var n=r(294),o=r(840);function a(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function l(t,e){c(t,e),c(t+"Capture",e)}function c(t,e){for(s[t]=e,t=0;t<e.length;t++)i.add(e[t])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),u=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},m={};function h(t,e,r,n,o,a,i){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=a,this.removeEmptyString=i}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){b[t]=new h(t,0,!1,t,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];b[e]=new h(e,1,!1,t[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){b[t]=new h(t,2,!1,t.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){b[t]=new h(t,2,!1,t,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){b[t]=new h(t,3,!1,t.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(t){b[t]=new h(t,3,!0,t,null,!1,!1)})),["capture","download"].forEach((function(t){b[t]=new h(t,4,!1,t,null,!1,!1)})),["cols","rows","size","span"].forEach((function(t){b[t]=new h(t,6,!1,t,null,!1,!1)})),["rowSpan","start"].forEach((function(t){b[t]=new h(t,5,!1,t.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function v(t){return t[1].toUpperCase()}function x(t,e,r,n){var o=b.hasOwnProperty(e)?b[e]:null;(null!==o?0!==o.type:n||!(2<e.length)||"o"!==e[0]&&"O"!==e[0]||"n"!==e[1]&&"N"!==e[1])&&(function(t,e,r,n){if(null==e||function(t,e,r,n){if(null!==r&&0===r.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,r,o,n)&&(r=null),n||null===o?function(t){return!!u.call(m,t)||!u.call(f,t)&&(p.test(t)?m[t]=!0:(f[t]=!0,!1))}(e)&&(null===r?t.removeAttribute(e):t.setAttribute(e,""+r)):o.mustUseProperty?t[o.propertyName]=null===r?3!==o.type&&"":r:(e=o.attributeName,n=o.attributeNamespace,null===r?t.removeAttribute(e):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?t.setAttributeNS(n,e,r):t.setAttribute(e,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(g,v);b[e]=new h(e,1,!1,t,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(g,v);b[e]=new h(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(g,v);b[e]=new h(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(t){b[t]=new h(t,1,!1,t.toLowerCase(),null,!1,!1)})),b.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(t){b[t]=new h(t,1,!1,t.toLowerCase(),null,!0,!0)}));var y=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),M=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),T=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var R=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function A(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=L&&t[L]||t["@@iterator"])?t:null}var D,j=Object.assign;function I(t){if(void 0===D)try{throw Error()}catch(t){var e=t.stack.trim().match(/\n( *(at )?)/);D=e&&e[1]||""}return"\n"+D+t}var F=!1;function B(t,e){if(!t||F)return"";F=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(e,[])}catch(t){var n=t}Reflect.construct(t,[],e)}else{try{e.call()}catch(t){n=t}t.call(e.prototype)}else{try{throw Error()}catch(t){n=t}t()}}catch(e){if(e&&n&&"string"==typeof e.stack){for(var o=e.stack.split("\n"),a=n.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s]){var l="\n"+o[i].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}}while(1<=i&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?I(t):""}function U(t){switch(t.tag){case 5:return I(t.type);case 16:return I("Lazy");case 13:return I("Suspense");case 19:return I("SuspenseList");case 0:case 2:case 15:return B(t.type,!1);case 11:return B(t.type.render,!1);case 1:return B(t.type,!0);default:return""}}function W(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case _:return"Fragment";case k:return"Portal";case S:return"Profiler";case E:return"StrictMode";case P:return"Suspense";case O:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case M:return(t.displayName||"Context")+".Consumer";case C:return(t._context.displayName||"Context")+".Provider";case N:var e=t.render;return(t=t.displayName)||(t=""!==(t=e.displayName||e.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case z:return null!==(e=t.displayName||null)?e:W(t.type)||"Memo";case T:e=t._payload,t=t._init;try{return W(t(e))}catch(t){}}return null}function $(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=(t=e.render).displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(e);case 8:return e===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e}return null}function V(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":case"object":return t;default:return""}}function H(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function Y(t){t._valueTracker||(t._valueTracker=function(t){var e=H(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,a=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(t){n=""+t,a.call(this,t)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(t){n=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function X(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=H(t)?t.checked?"true":"false":t.value),(t=n)!==r&&(e.setValue(t),!0)}function q(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function K(t,e){var r=e.checked;return j({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:t._wrapperState.initialChecked})}function Q(t,e){var r=null==e.defaultValue?"":e.defaultValue,n=null!=e.checked?e.checked:e.defaultChecked;r=V(null!=e.value?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function G(t,e){null!=(e=e.checked)&&x(t,"checked",e,!1)}function Z(t,e){G(t,e);var r=V(e.value),n=e.type;if(null!=r)"number"===n?(0===r&&""===t.value||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if("submit"===n||"reset"===n)return void t.removeAttribute("value");e.hasOwnProperty("value")?tt(t,e.type,r):e.hasOwnProperty("defaultValue")&&tt(t,e.type,V(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function J(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!("submit"!==n&&"reset"!==n||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}""!==(r=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==r&&(t.name=r)}function tt(t,e,r){"number"===e&&q(t.ownerDocument)===t||(null==r?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var et=Array.isArray;function rt(t,e,r,n){if(t=t.options,e){e={};for(var o=0;o<r.length;o++)e["$"+r[o]]=!0;for(r=0;r<t.length;r++)o=e.hasOwnProperty("$"+t[r].value),t[r].selected!==o&&(t[r].selected=o),o&&n&&(t[r].defaultSelected=!0)}else{for(r=""+V(r),e=null,o=0;o<t.length;o++){if(t[o].value===r)return t[o].selected=!0,void(n&&(t[o].defaultSelected=!0));null!==e||t[o].disabled||(e=t[o])}null!==e&&(e.selected=!0)}}function nt(t,e){if(null!=e.dangerouslySetInnerHTML)throw Error(a(91));return j({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function ot(t,e){var r=e.value;if(null==r){if(r=e.children,e=e.defaultValue,null!=r){if(null!=e)throw Error(a(92));if(et(r)){if(1<r.length)throw Error(a(93));r=r[0]}e=r}null==e&&(e=""),r=e}t._wrapperState={initialValue:V(r)}}function at(t,e){var r=V(e.value),n=V(e.defaultValue);null!=r&&((r=""+r)!==t.value&&(t.value=r),null==e.defaultValue&&t.defaultValue!==r&&(t.defaultValue=r)),null!=n&&(t.defaultValue=""+n)}function it(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}function st(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lt(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?st(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var ct,dt,ut=(dt=function(t,e){if("http://www.w3.org/2000/svg"!==t.namespaceURI||"innerHTML"in t)t.innerHTML=e;else{for((ct=ct||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=ct.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,e,r,n){MSApp.execUnsafeLocalFunction((function(){return dt(t,e)}))}:dt);function pt(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&3===r.nodeType)return void(r.nodeValue=e)}t.textContent=e}var ft={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},mt=["Webkit","ms","Moz","O"];function ht(t,e,r){return null==e||"boolean"==typeof e||""===e?"":r||"number"!=typeof e||0===e||ft.hasOwnProperty(t)&&ft[t]?(""+e).trim():e+"px"}function bt(t,e){for(var r in t=t.style,e)if(e.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=ht(r,e[r],n);"float"===r&&(r="cssFloat"),n?t.setProperty(r,o):t[r]=o}}Object.keys(ft).forEach((function(t){mt.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),ft[e]=ft[t]}))}));var gt=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vt(t,e){if(e){if(gt[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(a(137,t));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(a(60));if("object"!=typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=e.style&&"object"!=typeof e.style)throw Error(a(62))}}function xt(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){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 yt=null;function wt(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}var kt=null,_t=null,Et=null;function St(t){if(t=yo(t)){if("function"!=typeof kt)throw Error(a(280));var e=t.stateNode;e&&(e=ko(e),kt(t.stateNode,t.type,e))}}function Ct(t){_t?Et?Et.push(t):Et=[t]:_t=t}function Mt(){if(_t){var t=_t,e=Et;if(Et=_t=null,St(t),e)for(t=0;t<e.length;t++)St(e[t])}}function Nt(t,e){return t(e)}function Pt(){}var Ot=!1;function zt(t,e,r){if(Ot)return t(e,r);Ot=!0;try{return Nt(t,e,r)}finally{Ot=!1,(null!==_t||null!==Et)&&(Pt(),Mt())}}function Tt(t,e){var r=t.stateNode;if(null===r)return null;var n=ko(r);if(null===n)return null;r=n[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!n;break t;default:t=!1}if(t)return null;if(r&&"function"!=typeof r)throw Error(a(231,e,typeof r));return r}var Rt=!1;if(d)try{var Lt={};Object.defineProperty(Lt,"passive",{get:function(){Rt=!0}}),window.addEventListener("test",Lt,Lt),window.removeEventListener("test",Lt,Lt)}catch(dt){Rt=!1}function At(t,e,r,n,o,a,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{e.apply(r,c)}catch(t){this.onError(t)}}var Dt=!1,jt=null,It=!1,Ft=null,Bt={onError:function(t){Dt=!0,jt=t}};function Ut(t,e,r,n,o,a,i,s,l){Dt=!1,jt=null,At.apply(Bt,arguments)}function Wt(t){var e=t,r=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{0!=(4098&(e=t).flags)&&(r=e.return),t=e.return}while(t)}return 3===e.tag?r:null}function $t(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&null!==(t=t.alternate)&&(e=t.memoizedState),null!==e)return e.dehydrated}return null}function Vt(t){if(Wt(t)!==t)throw Error(a(188))}function Ht(t){return null!==(t=function(t){var e=t.alternate;if(!e){if(null===(e=Wt(t)))throw Error(a(188));return e!==t?null:t}for(var r=t,n=e;;){var o=r.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(n=o.return)){r=n;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return Vt(o),t;if(i===n)return Vt(o),e;i=i.sibling}throw Error(a(188))}if(r.return!==n.return)r=o,n=i;else{for(var s=!1,l=o.child;l;){if(l===r){s=!0,r=o,n=i;break}if(l===n){s=!0,n=o,r=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===r){s=!0,r=i,n=o;break}if(l===n){s=!0,n=i,r=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(r.alternate!==n)throw Error(a(190))}if(3!==r.tag)throw Error(a(188));return r.stateNode.current===r?t:e}(t))?Yt(t):null}function Yt(t){if(5===t.tag||6===t.tag)return t;for(t=t.child;null!==t;){var e=Yt(t);if(null!==e)return e;t=t.sibling}return null}var Xt=o.unstable_scheduleCallback,qt=o.unstable_cancelCallback,Kt=o.unstable_shouldYield,Qt=o.unstable_requestPaint,Gt=o.unstable_now,Zt=o.unstable_getCurrentPriorityLevel,Jt=o.unstable_ImmediatePriority,te=o.unstable_UserBlockingPriority,ee=o.unstable_NormalPriority,re=o.unstable_LowPriority,ne=o.unstable_IdlePriority,oe=null,ae=null,ie=Math.clz32?Math.clz32:function(t){return 0==(t>>>=0)?32:31-(se(t)/le|0)|0},se=Math.log,le=Math.LN2,ce=64,de=4194304;function ue(t){switch(t&-t){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: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 4194240&t;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&t;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function pe(t,e){var r=t.pendingLanes;if(0===r)return 0;var n=0,o=t.suspendedLanes,a=t.pingedLanes,i=268435455&r;if(0!==i){var s=i&~o;0!==s?n=ue(s):0!=(a&=i)&&(n=ue(a))}else 0!=(i=r&~o)?n=ue(i):0!==a&&(n=ue(a));if(0===n)return 0;if(0!==e&&e!==n&&0==(e&o)&&((o=n&-n)>=(a=e&-e)||16===o&&0!=(4194240&a)))return e;if(0!=(4&n)&&(n|=16&r),0!==(e=t.entangledLanes))for(t=t.entanglements,e&=n;0<e;)o=1<<(r=31-ie(e)),n|=t[r],e&=~o;return n}function fe(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 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 e+5e3;default:return-1}}function me(t){return 0!=(t=-1073741825&t.pendingLanes)?t:1073741824&t?1073741824:0}function he(){var t=ce;return 0==(4194240&(ce<<=1))&&(ce=64),t}function be(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function ge(t,e,r){t.pendingLanes|=e,536870912!==e&&(t.suspendedLanes=0,t.pingedLanes=0),(t=t.eventTimes)[e=31-ie(e)]=r}function ve(t,e){var r=t.entangledLanes|=e;for(t=t.entanglements;r;){var n=31-ie(r),o=1<<n;o&e|t[n]&e&&(t[n]|=e),r&=~o}}var xe=0;function ye(t){return 1<(t&=-t)?4<t?0!=(268435455&t)?16:536870912:4:1}var we,ke,_e,Ee,Se,Ce=!1,Me=[],Ne=null,Pe=null,Oe=null,ze=new Map,Te=new Map,Re=[],Le="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ae(t,e){switch(t){case"focusin":case"focusout":Ne=null;break;case"dragenter":case"dragleave":Pe=null;break;case"mouseover":case"mouseout":Oe=null;break;case"pointerover":case"pointerout":ze.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Te.delete(e.pointerId)}}function De(t,e,r,n,o,a){return null===t||t.nativeEvent!==a?(t={blockedOn:e,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[o]},null!==e&&null!==(e=yo(e))&&ke(e),t):(t.eventSystemFlags|=n,e=t.targetContainers,null!==o&&-1===e.indexOf(o)&&e.push(o),t)}function je(t){var e=xo(t.target);if(null!==e){var r=Wt(e);if(null!==r)if(13===(e=r.tag)){if(null!==(e=$t(r)))return t.blockedOn=e,void Se(t.priority,(function(){_e(r)}))}else if(3===e&&r.stateNode.current.memoizedState.isDehydrated)return void(t.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}t.blockedOn=null}function Ie(t){if(null!==t.blockedOn)return!1;for(var e=t.targetContainers;0<e.length;){var r=Ke(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(null!==r)return null!==(e=yo(r))&&ke(e),t.blockedOn=r,!1;var n=new(r=t.nativeEvent).constructor(r.type,r);yt=n,r.target.dispatchEvent(n),yt=null,e.shift()}return!0}function Fe(t,e,r){Ie(t)&&r.delete(e)}function Be(){Ce=!1,null!==Ne&&Ie(Ne)&&(Ne=null),null!==Pe&&Ie(Pe)&&(Pe=null),null!==Oe&&Ie(Oe)&&(Oe=null),ze.forEach(Fe),Te.forEach(Fe)}function Ue(t,e){t.blockedOn===e&&(t.blockedOn=null,Ce||(Ce=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Be)))}function We(t){function e(e){return Ue(e,t)}if(0<Me.length){Ue(Me[0],t);for(var r=1;r<Me.length;r++){var n=Me[r];n.blockedOn===t&&(n.blockedOn=null)}}for(null!==Ne&&Ue(Ne,t),null!==Pe&&Ue(Pe,t),null!==Oe&&Ue(Oe,t),ze.forEach(e),Te.forEach(e),r=0;r<Re.length;r++)(n=Re[r]).blockedOn===t&&(n.blockedOn=null);for(;0<Re.length&&null===(r=Re[0]).blockedOn;)je(r),null===r.blockedOn&&Re.shift()}var $e=y.ReactCurrentBatchConfig,Ve=!0;function He(t,e,r,n){var o=xe,a=$e.transition;$e.transition=null;try{xe=1,Xe(t,e,r,n)}finally{xe=o,$e.transition=a}}function Ye(t,e,r,n){var o=xe,a=$e.transition;$e.transition=null;try{xe=4,Xe(t,e,r,n)}finally{xe=o,$e.transition=a}}function Xe(t,e,r,n){if(Ve){var o=Ke(t,e,r,n);if(null===o)Vn(t,e,n,qe,r),Ae(t,n);else if(function(t,e,r,n,o){switch(e){case"focusin":return Ne=De(Ne,t,e,r,n,o),!0;case"dragenter":return Pe=De(Pe,t,e,r,n,o),!0;case"mouseover":return Oe=De(Oe,t,e,r,n,o),!0;case"pointerover":var a=o.pointerId;return ze.set(a,De(ze.get(a)||null,t,e,r,n,o)),!0;case"gotpointercapture":return a=o.pointerId,Te.set(a,De(Te.get(a)||null,t,e,r,n,o)),!0}return!1}(o,t,e,r,n))n.stopPropagation();else if(Ae(t,n),4&e&&-1<Le.indexOf(t)){for(;null!==o;){var a=yo(o);if(null!==a&&we(a),null===(a=Ke(t,e,r,n))&&Vn(t,e,n,qe,r),a===o)break;o=a}null!==o&&n.stopPropagation()}else Vn(t,e,n,null,r)}}var qe=null;function Ke(t,e,r,n){if(qe=null,null!==(t=xo(t=wt(n))))if(null===(e=Wt(t)))t=null;else if(13===(r=e.tag)){if(null!==(t=$t(e)))return t;t=null}else if(3===r){if(e.stateNode.current.memoizedState.isDehydrated)return 3===e.tag?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return qe=t,null}function Qe(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Zt()){case Jt:return 1;case te:return 4;case ee:case re:return 16;case ne:return 536870912;default:return 16}default:return 16}}var Ge=null,Ze=null,Je=null;function tr(){if(Je)return Je;var t,e,r=Ze,n=r.length,o="value"in Ge?Ge.value:Ge.textContent,a=o.length;for(t=0;t<n&&r[t]===o[t];t++);var i=n-t;for(e=1;e<=i&&r[n-e]===o[a-e];e++);return Je=o.slice(t,1<e?1-e:void 0)}function er(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}function rr(){return!0}function nr(){return!1}function or(t){function e(e,r,n,o,a){for(var i in this._reactName=e,this._targetInst=n,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null,t)t.hasOwnProperty(i)&&(e=t[i],this[i]=e?e(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?rr:nr,this.isPropagationStopped=nr,this}return j(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=rr)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),e}var ar,ir,sr,lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cr=or(lr),dr=j({},lr,{view:0,detail:0}),ur=or(dr),pr=j({},dr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Er,button:0,buttons:0,relatedTarget:function(t){return void 0===t.relatedTarget?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==sr&&(sr&&"mousemove"===t.type?(ar=t.screenX-sr.screenX,ir=t.screenY-sr.screenY):ir=ar=0,sr=t),ar)},movementY:function(t){return"movementY"in t?t.movementY:ir}}),fr=or(pr),mr=or(j({},pr,{dataTransfer:0})),hr=or(j({},dr,{relatedTarget:0})),br=or(j({},lr,{animationName:0,elapsedTime:0,pseudoElement:0})),gr=j({},lr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),vr=or(gr),xr=or(j({},lr,{data:0})),yr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _r(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=kr[t])&&!!e[t]}function Er(){return _r}var Sr=j({},dr,{key:function(t){if(t.key){var e=yr[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=er(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?wr[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Er,charCode:function(t){return"keypress"===t.type?er(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?er(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),Cr=or(Sr),Mr=or(j({},pr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nr=or(j({},dr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Er})),Pr=or(j({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Or=j({},pr,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),zr=or(Or),Tr=[9,13,27,32],Rr=d&&"CompositionEvent"in window,Lr=null;d&&"documentMode"in document&&(Lr=document.documentMode);var Ar=d&&"TextEvent"in window&&!Lr,Dr=d&&(!Rr||Lr&&8<Lr&&11>=Lr),jr=String.fromCharCode(32),Ir=!1;function Fr(t,e){switch(t){case"keyup":return-1!==Tr.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Br(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var Ur=!1,Wr={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 $r(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!Wr[t.type]:"textarea"===e}function Vr(t,e,r,n){Ct(n),0<(e=Yn(e,"onChange")).length&&(r=new cr("onChange","change",null,r,n),t.push({event:r,listeners:e}))}var Hr=null,Yr=null;function Xr(t){In(t,0)}function qr(t){if(X(wo(t)))return t}function Kr(t,e){if("change"===t)return e}var Qr=!1;if(d){var Gr;if(d){var Zr="oninput"in document;if(!Zr){var Jr=document.createElement("div");Jr.setAttribute("oninput","return;"),Zr="function"==typeof Jr.oninput}Gr=Zr}else Gr=!1;Qr=Gr&&(!document.documentMode||9<document.documentMode)}function tn(){Hr&&(Hr.detachEvent("onpropertychange",en),Yr=Hr=null)}function en(t){if("value"===t.propertyName&&qr(Yr)){var e=[];Vr(e,Yr,t,wt(t)),zt(Xr,e)}}function rn(t,e,r){"focusin"===t?(tn(),Yr=r,(Hr=e).attachEvent("onpropertychange",en)):"focusout"===t&&tn()}function nn(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return qr(Yr)}function on(t,e){if("click"===t)return qr(e)}function an(t,e){if("input"===t||"change"===t)return qr(e)}var sn="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e};function ln(t,e){if(sn(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!u.call(e,o)||!sn(t[o],e[o]))return!1}return!0}function cn(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function dn(t,e){var r,n=cn(t);for(t=0;n;){if(3===n.nodeType){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=cn(n)}}function un(t,e){return!(!t||!e)&&(t===e||(!t||3!==t.nodeType)&&(e&&3===e.nodeType?un(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}function pn(){for(var t=window,e=q();e instanceof t.HTMLIFrameElement;){try{var r="string"==typeof e.contentWindow.location.href}catch(t){r=!1}if(!r)break;e=q((t=e.contentWindow).document)}return e}function fn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}function mn(t){var e=pn(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&un(r.ownerDocument.documentElement,r)){if(null!==n&&fn(r))if(e=n.start,void 0===(t=n.end)&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if((t=(e=r.ownerDocument||document)&&e.defaultView||window).getSelection){t=t.getSelection();var o=r.textContent.length,a=Math.min(n.start,o);n=void 0===n.end?a:Math.min(n.end,o),!t.extend&&a>n&&(o=n,n=a,a=o),o=dn(r,a);var i=dn(r,n);o&&i&&(1!==t.rangeCount||t.anchorNode!==o.node||t.anchorOffset!==o.offset||t.focusNode!==i.node||t.focusOffset!==i.offset)&&((e=e.createRange()).setStart(o.node,o.offset),t.removeAllRanges(),a>n?(t.addRange(e),t.extend(i.node,i.offset)):(e.setEnd(i.node,i.offset),t.addRange(e)))}for(e=[],t=r;t=t.parentNode;)1===t.nodeType&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<e.length;r++)(t=e[r]).element.scrollLeft=t.left,t.element.scrollTop=t.top}}var hn=d&&"documentMode"in document&&11>=document.documentMode,bn=null,gn=null,vn=null,xn=!1;function yn(t,e,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;xn||null==bn||bn!==q(n)||(n="selectionStart"in(n=bn)&&fn(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},vn&&ln(vn,n)||(vn=n,0<(n=Yn(gn,"onSelect")).length&&(e=new cr("onSelect","select",null,e,r),t.push({event:e,listeners:n}),e.target=bn)))}function wn(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r}var kn={animationend:wn("Animation","AnimationEnd"),animationiteration:wn("Animation","AnimationIteration"),animationstart:wn("Animation","AnimationStart"),transitionend:wn("Transition","TransitionEnd")},_n={},En={};function Sn(t){if(_n[t])return _n[t];if(!kn[t])return t;var e,r=kn[t];for(e in r)if(r.hasOwnProperty(e)&&e in En)return _n[t]=r[e];return t}d&&(En=document.createElement("div").style,"AnimationEvent"in window||(delete kn.animationend.animation,delete kn.animationiteration.animation,delete kn.animationstart.animation),"TransitionEvent"in window||delete kn.transitionend.transition);var Cn=Sn("animationend"),Mn=Sn("animationiteration"),Nn=Sn("animationstart"),Pn=Sn("transitionend"),On=new Map,zn="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 toggle touchMove waiting wheel".split(" ");function Tn(t,e){On.set(t,e),l(e,[t])}for(var Rn=0;Rn<zn.length;Rn++){var Ln=zn[Rn];Tn(Ln.toLowerCase(),"on"+(Ln[0].toUpperCase()+Ln.slice(1)))}Tn(Cn,"onAnimationEnd"),Tn(Mn,"onAnimationIteration"),Tn(Nn,"onAnimationStart"),Tn("dblclick","onDoubleClick"),Tn("focusin","onFocus"),Tn("focusout","onBlur"),Tn(Pn,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var An="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dn=new Set("cancel close invalid load scroll toggle".split(" ").concat(An));function jn(t,e,r){var n=t.type||"unknown-event";t.currentTarget=r,function(t,e,r,n,o,i,s,l,c){if(Ut.apply(this,arguments),Dt){if(!Dt)throw Error(a(198));var d=jt;Dt=!1,jt=null,It||(It=!0,Ft=d)}}(n,e,void 0,t),t.currentTarget=null}function In(t,e){e=0!=(4&e);for(var r=0;r<t.length;r++){var n=t[r],o=n.event;n=n.listeners;t:{var a=void 0;if(e)for(var i=n.length-1;0<=i;i--){var s=n[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break t;jn(o,s,c),a=l}else for(i=0;i<n.length;i++){if(l=(s=n[i]).instance,c=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break t;jn(o,s,c),a=l}}}if(It)throw t=Ft,It=!1,Ft=null,t}function Fn(t,e){var r=e[bo];void 0===r&&(r=e[bo]=new Set);var n=t+"__bubble";r.has(n)||($n(e,t,2,!1),r.add(n))}function Bn(t,e,r){var n=0;e&&(n|=4),$n(r,t,n,e)}var Un="_reactListening"+Math.random().toString(36).slice(2);function Wn(t){if(!t[Un]){t[Un]=!0,i.forEach((function(e){"selectionchange"!==e&&(Dn.has(e)||Bn(e,!1,t),Bn(e,!0,t))}));var e=9===t.nodeType?t:t.ownerDocument;null===e||e[Un]||(e[Un]=!0,Bn("selectionchange",!1,e))}}function $n(t,e,r,n){switch(Qe(e)){case 1:var o=He;break;case 4:o=Ye;break;default:o=Xe}r=o.bind(null,e,r,t),o=void 0,!Rt||"touchstart"!==e&&"touchmove"!==e&&"wheel"!==e||(o=!0),n?void 0!==o?t.addEventListener(e,r,{capture:!0,passive:o}):t.addEventListener(e,r,!0):void 0!==o?t.addEventListener(e,r,{passive:o}):t.addEventListener(e,r,!1)}function Vn(t,e,r,n,o){var a=n;if(0==(1&e)&&0==(2&e)&&null!==n)t:for(;;){if(null===n)return;var i=n.tag;if(3===i||4===i){var s=n.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===i)for(i=n.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;i=i.return}for(;null!==s;){if(null===(i=xo(s)))return;if(5===(l=i.tag)||6===l){n=a=i;continue t}s=s.parentNode}}n=n.return}zt((function(){var n=a,o=wt(r),i=[];t:{var s=On.get(t);if(void 0!==s){var l=cr,c=t;switch(t){case"keypress":if(0===er(r))break t;case"keydown":case"keyup":l=Cr;break;case"focusin":c="focus",l=hr;break;case"focusout":c="blur",l=hr;break;case"beforeblur":case"afterblur":l=hr;break;case"click":if(2===r.button)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Nr;break;case Cn:case Mn:case Nn:l=br;break;case Pn:l=Pr;break;case"scroll":l=ur;break;case"wheel":l=zr;break;case"copy":case"cut":case"paste":l=vr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Mr}var d=0!=(4&e),u=!d&&"scroll"===t,p=d?null!==s?s+"Capture":null:s;d=[];for(var f,m=n;null!==m;){var h=(f=m).stateNode;if(5===f.tag&&null!==h&&(f=h,null!==p&&null!=(h=Tt(m,p))&&d.push(Hn(m,h,f))),u)break;m=m.return}0<d.length&&(s=new l(s,c,null,r,o),i.push({event:s,listeners:d}))}}if(0==(7&e)){if(l="mouseout"===t||"pointerout"===t,(!(s="mouseover"===t||"pointerover"===t)||r===yt||!(c=r.relatedTarget||r.fromElement)||!xo(c)&&!c[ho])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(c=(c=r.relatedTarget||r.toElement)?xo(c):null)&&(c!==(u=Wt(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=n),l!==c)){if(d=fr,h="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==t&&"pointerover"!==t||(d=Mr,h="onPointerLeave",p="onPointerEnter",m="pointer"),u=null==l?s:wo(l),f=null==c?s:wo(c),(s=new d(h,m+"leave",l,r,o)).target=u,s.relatedTarget=f,h=null,xo(o)===n&&((d=new d(p,m+"enter",c,r,o)).target=f,d.relatedTarget=u,h=d),u=h,l&&c)t:{for(p=c,m=0,f=d=l;f;f=Xn(f))m++;for(f=0,h=p;h;h=Xn(h))f++;for(;0<m-f;)d=Xn(d),m--;for(;0<f-m;)p=Xn(p),f--;for(;m--;){if(d===p||null!==p&&d===p.alternate)break t;d=Xn(d),p=Xn(p)}d=null}else d=null;null!==l&&qn(i,s,l,d,!1),null!==c&&null!==u&&qn(i,u,c,d,!0)}if("select"===(l=(s=n?wo(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var b=Kr;else if($r(s))if(Qr)b=an;else{b=nn;var g=rn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(b=on);switch(b&&(b=b(t,n))?Vr(i,b,r,o):(g&&g(t,s,n),"focusout"===t&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&tt(s,"number",s.value)),g=n?wo(n):window,t){case"focusin":($r(g)||"true"===g.contentEditable)&&(bn=g,gn=n,vn=null);break;case"focusout":vn=gn=bn=null;break;case"mousedown":xn=!0;break;case"contextmenu":case"mouseup":case"dragend":xn=!1,yn(i,r,o);break;case"selectionchange":if(hn)break;case"keydown":case"keyup":yn(i,r,o)}var v;if(Rr)t:{switch(t){case"compositionstart":var x="onCompositionStart";break t;case"compositionend":x="onCompositionEnd";break t;case"compositionupdate":x="onCompositionUpdate";break t}x=void 0}else Ur?Fr(t,r)&&(x="onCompositionEnd"):"keydown"===t&&229===r.keyCode&&(x="onCompositionStart");x&&(Dr&&"ko"!==r.locale&&(Ur||"onCompositionStart"!==x?"onCompositionEnd"===x&&Ur&&(v=tr()):(Ze="value"in(Ge=o)?Ge.value:Ge.textContent,Ur=!0)),0<(g=Yn(n,x)).length&&(x=new xr(x,t,null,r,o),i.push({event:x,listeners:g}),(v||null!==(v=Br(r)))&&(x.data=v))),(v=Ar?function(t,e){switch(t){case"compositionend":return Br(e);case"keypress":return 32!==e.which?null:(Ir=!0,jr);case"textInput":return(t=e.data)===jr&&Ir?null:t;default:return null}}(t,r):function(t,e){if(Ur)return"compositionend"===t||!Rr&&Fr(t,e)?(t=tr(),Je=Ze=Ge=null,Ur=!1,t):null;switch(t){case"paste":default:return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Dr&&"ko"!==e.locale?null:e.data}}(t,r))&&0<(n=Yn(n,"onBeforeInput")).length&&(o=new xr("onBeforeInput","beforeinput",null,r,o),i.push({event:o,listeners:n}),o.data=v)}In(i,e)}))}function Hn(t,e,r){return{instance:t,listener:e,currentTarget:r}}function Yn(t,e){for(var r=e+"Capture",n=[];null!==t;){var o=t,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Tt(t,r))&&n.unshift(Hn(t,a,o)),null!=(a=Tt(t,e))&&n.push(Hn(t,a,o))),t=t.return}return n}function Xn(t){if(null===t)return null;do{t=t.return}while(t&&5!==t.tag);return t||null}function qn(t,e,r,n,o){for(var a=e._reactName,i=[];null!==r&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Tt(r,a))&&i.unshift(Hn(r,l,s)):o||null!=(l=Tt(r,a))&&i.push(Hn(r,l,s))),r=r.return}0!==i.length&&t.push({event:e,listeners:i})}var Kn=/\r\n?/g,Qn=/\u0000|\uFFFD/g;function Gn(t){return("string"==typeof t?t:""+t).replace(Kn,"\n").replace(Qn,"")}function Zn(t,e,r){if(e=Gn(e),Gn(t)!==e&&r)throw Error(a(425))}function Jn(){}var to=null,eo=null;function ro(t,e){return"textarea"===t||"noscript"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var no="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,io="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(t){return ao.resolve(null).then(t).catch(so)}:no;function so(t){setTimeout((function(){throw t}))}function lo(t,e){var r=e,n=0;do{var o=r.nextSibling;if(t.removeChild(r),o&&8===o.nodeType)if("/$"===(r=o.data)){if(0===n)return t.removeChild(o),void We(e);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=o}while(r);We(e)}function co(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break;if(8===e){if("$"===(e=t.data)||"$!"===e||"$?"===e)break;if("/$"===e)return null}}return t}function uo(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var r=t.data;if("$"===r||"$!"===r||"$?"===r){if(0===e)return t;e--}else"/$"===r&&e++}t=t.previousSibling}return null}var po=Math.random().toString(36).slice(2),fo="__reactFiber$"+po,mo="__reactProps$"+po,ho="__reactContainer$"+po,bo="__reactEvents$"+po,go="__reactListeners$"+po,vo="__reactHandles$"+po;function xo(t){var e=t[fo];if(e)return e;for(var r=t.parentNode;r;){if(e=r[ho]||r[fo]){if(r=e.alternate,null!==e.child||null!==r&&null!==r.child)for(t=uo(t);null!==t;){if(r=t[fo])return r;t=uo(t)}return e}r=(t=r).parentNode}return null}function yo(t){return!(t=t[fo]||t[ho])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function wo(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(a(33))}function ko(t){return t[mo]||null}var _o=[],Eo=-1;function So(t){return{current:t}}function Co(t){0>Eo||(t.current=_o[Eo],_o[Eo]=null,Eo--)}function Mo(t,e){Eo++,_o[Eo]=t.current,t.current=e}var No={},Po=So(No),Oo=So(!1),zo=No;function To(t,e){var r=t.type.contextTypes;if(!r)return No;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in r)a[o]=e[o];return n&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=a),a}function Ro(t){return null!=t.childContextTypes}function Lo(){Co(Oo),Co(Po)}function Ao(t,e,r){if(Po.current!==No)throw Error(a(168));Mo(Po,e),Mo(Oo,r)}function Do(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in e))throw Error(a(108,$(t)||"Unknown",o));return j({},r,n)}function jo(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||No,zo=Po.current,Mo(Po,t),Mo(Oo,Oo.current),!0}function Io(t,e,r){var n=t.stateNode;if(!n)throw Error(a(169));r?(t=Do(t,e,zo),n.__reactInternalMemoizedMergedChildContext=t,Co(Oo),Co(Po),Mo(Po,t)):Co(Oo),Mo(Oo,r)}var Fo=null,Bo=!1,Uo=!1;function Wo(t){null===Fo?Fo=[t]:Fo.push(t)}function $o(){if(!Uo&&null!==Fo){Uo=!0;var t=0,e=xe;try{var r=Fo;for(xe=1;t<r.length;t++){var n=r[t];do{n=n(!0)}while(null!==n)}Fo=null,Bo=!1}catch(e){throw null!==Fo&&(Fo=Fo.slice(t+1)),Xt(Jt,$o),e}finally{xe=e,Uo=!1}}return null}var Vo=[],Ho=0,Yo=null,Xo=0,qo=[],Ko=0,Qo=null,Go=1,Zo="";function Jo(t,e){Vo[Ho++]=Xo,Vo[Ho++]=Yo,Yo=t,Xo=e}function ta(t,e,r){qo[Ko++]=Go,qo[Ko++]=Zo,qo[Ko++]=Qo,Qo=t;var n=Go;t=Zo;var o=32-ie(n)-1;n&=~(1<<o),r+=1;var a=32-ie(e)+o;if(30<a){var i=o-o%5;a=(n&(1<<i)-1).toString(32),n>>=i,o-=i,Go=1<<32-ie(e)+o|r<<o|n,Zo=a+t}else Go=1<<a|r<<o|n,Zo=t}function ea(t){null!==t.return&&(Jo(t,1),ta(t,1,0))}function ra(t){for(;t===Yo;)Yo=Vo[--Ho],Vo[Ho]=null,Xo=Vo[--Ho],Vo[Ho]=null;for(;t===Qo;)Qo=qo[--Ko],qo[Ko]=null,Zo=qo[--Ko],qo[Ko]=null,Go=qo[--Ko],qo[Ko]=null}var na=null,oa=null,aa=!1,ia=null;function sa(t,e){var r=zc(5,null,null,0);r.elementType="DELETED",r.stateNode=e,r.return=t,null===(e=t.deletions)?(t.deletions=[r],t.flags|=16):e.push(r)}function la(t,e){switch(t.tag){case 5:var r=t.type;return null!==(e=1!==e.nodeType||r.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,na=t,oa=co(e.firstChild),!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,na=t,oa=null,!0);case 13:return null!==(e=8!==e.nodeType?null:e)&&(r=null!==Qo?{id:Go,overflow:Zo}:null,t.memoizedState={dehydrated:e,treeContext:r,retryLane:1073741824},(r=zc(18,null,null,0)).stateNode=e,r.return=t,t.child=r,na=t,oa=null,!0);default:return!1}}function ca(t){return 0!=(1&t.mode)&&0==(128&t.flags)}function da(t){if(aa){var e=oa;if(e){var r=e;if(!la(t,e)){if(ca(t))throw Error(a(418));e=co(r.nextSibling);var n=na;e&&la(t,e)?sa(n,r):(t.flags=-4097&t.flags|2,aa=!1,na=t)}}else{if(ca(t))throw Error(a(418));t.flags=-4097&t.flags|2,aa=!1,na=t}}}function ua(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;na=t}function pa(t){if(t!==na)return!1;if(!aa)return ua(t),aa=!0,!1;var e;if((e=3!==t.tag)&&!(e=5!==t.tag)&&(e="head"!==(e=t.type)&&"body"!==e&&!ro(t.type,t.memoizedProps)),e&&(e=oa)){if(ca(t))throw fa(),Error(a(418));for(;e;)sa(t,e),e=co(e.nextSibling)}if(ua(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(a(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var r=t.data;if("/$"===r){if(0===e){oa=co(t.nextSibling);break t}e--}else"$"!==r&&"$!"!==r&&"$?"!==r||e++}t=t.nextSibling}oa=null}}else oa=na?co(t.stateNode.nextSibling):null;return!0}function fa(){for(var t=oa;t;)t=co(t.nextSibling)}function ma(){oa=na=null,aa=!1}function ha(t){null===ia?ia=[t]:ia.push(t)}var ba=y.ReactCurrentBatchConfig;function ga(t,e){if(t&&t.defaultProps){for(var r in e=j({},e),t=t.defaultProps)void 0===e[r]&&(e[r]=t[r]);return e}return e}var va=So(null),xa=null,ya=null,wa=null;function ka(){wa=ya=xa=null}function _a(t){var e=va.current;Co(va),t._currentValue=e}function Ea(t,e,r){for(;null!==t;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,null!==n&&(n.childLanes|=e)):null!==n&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function Sa(t,e){xa=t,wa=ya=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(0!=(t.lanes&e)&&(ys=!0),t.firstContext=null)}function Ca(t){var e=t._currentValue;if(wa!==t)if(t={context:t,memoizedValue:e,next:null},null===ya){if(null===xa)throw Error(a(308));ya=t,xa.dependencies={lanes:0,firstContext:t}}else ya=ya.next=t;return e}var Ma=null;function Na(t){null===Ma?Ma=[t]:Ma.push(t)}function Pa(t,e,r,n){var o=e.interleaved;return null===o?(r.next=r,Na(e)):(r.next=o.next,o.next=r),e.interleaved=r,Oa(t,n)}function Oa(t,e){t.lanes|=e;var r=t.alternate;for(null!==r&&(r.lanes|=e),r=t,t=t.return;null!==t;)t.childLanes|=e,null!==(r=t.alternate)&&(r.childLanes|=e),r=t,t=t.return;return 3===r.tag?r.stateNode:null}var za=!1;function Ta(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ra(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function La(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Aa(t,e,r){var n=t.updateQueue;if(null===n)return null;if(n=n.shared,0!=(2&Nl)){var o=n.pending;return null===o?e.next=e:(e.next=o.next,o.next=e),n.pending=e,Oa(t,r)}return null===(o=n.interleaved)?(e.next=e,Na(n)):(e.next=o.next,o.next=e),n.interleaved=e,Oa(t,r)}function Da(t,e,r){if(null!==(e=e.updateQueue)&&(e=e.shared,0!=(4194240&r))){var n=e.lanes;r|=n&=t.pendingLanes,e.lanes=r,ve(t,r)}}function ja(t,e){var r=t.updateQueue,n=t.alternate;if(null!==n&&r===(n=n.updateQueue)){var o=null,a=null;if(null!==(r=r.firstBaseUpdate)){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===a?o=a=i:a=a.next=i,r=r.next}while(null!==r);null===a?o=a=e:a=a.next=e}else o=a=e;return r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:n.shared,effects:n.effects},void(t.updateQueue=r)}null===(t=r.lastBaseUpdate)?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function Ia(t,e,r,n){var o=t.updateQueue;za=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?a=c:i.next=c,i=l;var d=t.alternate;null!==d&&(s=(d=d.updateQueue).lastBaseUpdate)!==i&&(null===s?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l)}if(null!==a){var u=o.baseState;for(i=0,d=c=l=null,s=a;;){var p=s.lane,f=s.eventTime;if((n&p)===p){null!==d&&(d=d.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});t:{var m=t,h=s;switch(p=e,f=r,h.tag){case 1:if("function"==typeof(m=h.payload)){u=m.call(f,u,p);break t}u=m;break t;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=h.payload)?m.call(f,u,p):m))break t;u=j({},u,p);break t;case 2:za=!0}}null!==s.callback&&0!==s.lane&&(t.flags|=64,null===(p=o.effects)?o.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(c=d=f,l=u):d=d.next=f,i|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(p=s).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===d&&(l=u),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,null!==(e=o.shared.interleaved)){o=e;do{i|=o.lane,o=o.next}while(o!==e)}else null===a&&(o.shared.lanes=0);Dl|=i,t.lanes=i,t.memoizedState=u}}function Fa(t,e,r){if(t=e.effects,e.effects=null,null!==t)for(e=0;e<t.length;e++){var n=t[e],o=n.callback;if(null!==o){if(n.callback=null,n=r,"function"!=typeof o)throw Error(a(191,o));o.call(n)}}}var Ba=(new n.Component).refs;function Ua(t,e,r,n){r=null==(r=r(n,e=t.memoizedState))?e:j({},e,r),t.memoizedState=r,0===t.lanes&&(t.updateQueue.baseState=r)}var Wa={isMounted:function(t){return!!(t=t._reactInternals)&&Wt(t)===t},enqueueSetState:function(t,e,r){t=t._reactInternals;var n=tc(),o=ec(t),a=La(n,o);a.payload=e,null!=r&&(a.callback=r),null!==(e=Aa(t,a,o))&&(rc(e,t,o,n),Da(e,t,o))},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=tc(),o=ec(t),a=La(n,o);a.tag=1,a.payload=e,null!=r&&(a.callback=r),null!==(e=Aa(t,a,o))&&(rc(e,t,o,n),Da(e,t,o))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=tc(),n=ec(t),o=La(r,n);o.tag=2,null!=e&&(o.callback=e),null!==(e=Aa(t,o,n))&&(rc(e,t,n,r),Da(e,t,n))}};function $a(t,e,r,n,o,a,i){return"function"==typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(n,a,i):!(e.prototype&&e.prototype.isPureReactComponent&&ln(r,n)&&ln(o,a))}function Va(t,e,r){var n=!1,o=No,a=e.contextType;return"object"==typeof a&&null!==a?a=Ca(a):(o=Ro(e)?zo:Po.current,a=(n=null!=(n=e.contextTypes))?To(t,o):No),e=new e(r,a),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=Wa,t.stateNode=e,e._reactInternals=t,n&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,t.__reactInternalMemoizedMaskedChildContext=a),e}function Ha(t,e,r,n){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(r,n),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(r,n),e.state!==t&&Wa.enqueueReplaceState(e,e.state,null)}function Ya(t,e,r,n){var o=t.stateNode;o.props=r,o.state=t.memoizedState,o.refs=Ba,Ta(t);var a=e.contextType;"object"==typeof a&&null!==a?o.context=Ca(a):(a=Ro(e)?zo:Po.current,o.context=To(t,a)),o.state=t.memoizedState,"function"==typeof(a=e.getDerivedStateFromProps)&&(Ua(t,e,a,r),o.state=t.memoizedState),"function"==typeof e.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(e=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),e!==o.state&&Wa.enqueueReplaceState(o,o.state,null),Ia(t,r,o,n),o.state=t.memoizedState),"function"==typeof o.componentDidMount&&(t.flags|=4194308)}function Xa(t,e,r){if(null!==(t=r.ref)&&"function"!=typeof t&&"object"!=typeof t){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(a(309));var n=r.stateNode}if(!n)throw Error(a(147,t));var o=n,i=""+t;return null!==e&&null!==e.ref&&"function"==typeof e.ref&&e.ref._stringRef===i?e.ref:(e=function(t){var e=o.refs;e===Ba&&(e=o.refs={}),null===t?delete e[i]:e[i]=t},e._stringRef=i,e)}if("string"!=typeof t)throw Error(a(284));if(!r._owner)throw Error(a(290,t))}return t}function qa(t,e){throw t=Object.prototype.toString.call(e),Error(a(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Ka(t){return(0,t._init)(t._payload)}function Qa(t){function e(e,r){if(t){var n=e.deletions;null===n?(e.deletions=[r],e.flags|=16):n.push(r)}}function r(r,n){if(!t)return null;for(;null!==n;)e(r,n),n=n.sibling;return null}function n(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(t,e){return(t=Rc(t,e)).index=0,t.sibling=null,t}function i(e,r,n){return e.index=n,t?null!==(n=e.alternate)?(n=n.index)<r?(e.flags|=2,r):n:(e.flags|=2,r):(e.flags|=1048576,r)}function s(e){return t&&null===e.alternate&&(e.flags|=2),e}function l(t,e,r,n){return null===e||6!==e.tag?((e=jc(r,t.mode,n)).return=t,e):((e=o(e,r)).return=t,e)}function c(t,e,r,n){var a=r.type;return a===_?u(t,e,r.props.children,n,r.key):null!==e&&(e.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===T&&Ka(a)===e.type)?((n=o(e,r.props)).ref=Xa(t,e,r),n.return=t,n):((n=Lc(r.type,r.key,r.props,null,t.mode,n)).ref=Xa(t,e,r),n.return=t,n)}function d(t,e,r,n){return null===e||4!==e.tag||e.stateNode.containerInfo!==r.containerInfo||e.stateNode.implementation!==r.implementation?((e=Ic(r,t.mode,n)).return=t,e):((e=o(e,r.children||[])).return=t,e)}function u(t,e,r,n,a){return null===e||7!==e.tag?((e=Ac(r,t.mode,n,a)).return=t,e):((e=o(e,r)).return=t,e)}function p(t,e,r){if("string"==typeof e&&""!==e||"number"==typeof e)return(e=jc(""+e,t.mode,r)).return=t,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case w:return(r=Lc(e.type,e.key,e.props,null,t.mode,r)).ref=Xa(t,null,e),r.return=t,r;case k:return(e=Ic(e,t.mode,r)).return=t,e;case T:return p(t,(0,e._init)(e._payload),r)}if(et(e)||A(e))return(e=Ac(e,t.mode,r,null)).return=t,e;qa(t,e)}return null}function f(t,e,r,n){var o=null!==e?e.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==o?null:l(t,e,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return r.key===o?c(t,e,r,n):null;case k:return r.key===o?d(t,e,r,n):null;case T:return f(t,e,(o=r._init)(r._payload),n)}if(et(r)||A(r))return null!==o?null:u(t,e,r,n,null);qa(t,r)}return null}function m(t,e,r,n,o){if("string"==typeof n&&""!==n||"number"==typeof n)return l(e,t=t.get(r)||null,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return c(e,t=t.get(null===n.key?r:n.key)||null,n,o);case k:return d(e,t=t.get(null===n.key?r:n.key)||null,n,o);case T:return m(t,e,r,(0,n._init)(n._payload),o)}if(et(n)||A(n))return u(e,t=t.get(r)||null,n,o,null);qa(e,n)}return null}function h(o,a,s,l){for(var c=null,d=null,u=a,h=a=0,b=null;null!==u&&h<s.length;h++){u.index>h?(b=u,u=null):b=u.sibling;var g=f(o,u,s[h],l);if(null===g){null===u&&(u=b);break}t&&u&&null===g.alternate&&e(o,u),a=i(g,a,h),null===d?c=g:d.sibling=g,d=g,u=b}if(h===s.length)return r(o,u),aa&&Jo(o,h),c;if(null===u){for(;h<s.length;h++)null!==(u=p(o,s[h],l))&&(a=i(u,a,h),null===d?c=u:d.sibling=u,d=u);return aa&&Jo(o,h),c}for(u=n(o,u);h<s.length;h++)null!==(b=m(u,o,h,s[h],l))&&(t&&null!==b.alternate&&u.delete(null===b.key?h:b.key),a=i(b,a,h),null===d?c=b:d.sibling=b,d=b);return t&&u.forEach((function(t){return e(o,t)})),aa&&Jo(o,h),c}function b(o,s,l,c){var d=A(l);if("function"!=typeof d)throw Error(a(150));if(null==(l=d.call(l)))throw Error(a(151));for(var u=d=null,h=s,b=s=0,g=null,v=l.next();null!==h&&!v.done;b++,v=l.next()){h.index>b?(g=h,h=null):g=h.sibling;var x=f(o,h,v.value,c);if(null===x){null===h&&(h=g);break}t&&h&&null===x.alternate&&e(o,h),s=i(x,s,b),null===u?d=x:u.sibling=x,u=x,h=g}if(v.done)return r(o,h),aa&&Jo(o,b),d;if(null===h){for(;!v.done;b++,v=l.next())null!==(v=p(o,v.value,c))&&(s=i(v,s,b),null===u?d=v:u.sibling=v,u=v);return aa&&Jo(o,b),d}for(h=n(o,h);!v.done;b++,v=l.next())null!==(v=m(h,o,b,v.value,c))&&(t&&null!==v.alternate&&h.delete(null===v.key?b:v.key),s=i(v,s,b),null===u?d=v:u.sibling=v,u=v);return t&&h.forEach((function(t){return e(o,t)})),aa&&Jo(o,b),d}return function t(n,a,i,l){if("object"==typeof i&&null!==i&&i.type===_&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case w:t:{for(var c=i.key,d=a;null!==d;){if(d.key===c){if((c=i.type)===_){if(7===d.tag){r(n,d.sibling),(a=o(d,i.props.children)).return=n,n=a;break t}}else if(d.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===T&&Ka(c)===d.type){r(n,d.sibling),(a=o(d,i.props)).ref=Xa(n,d,i),a.return=n,n=a;break t}r(n,d);break}e(n,d),d=d.sibling}i.type===_?((a=Ac(i.props.children,n.mode,l,i.key)).return=n,n=a):((l=Lc(i.type,i.key,i.props,null,n.mode,l)).ref=Xa(n,a,i),l.return=n,n=l)}return s(n);case k:t:{for(d=i.key;null!==a;){if(a.key===d){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){r(n,a.sibling),(a=o(a,i.children||[])).return=n,n=a;break t}r(n,a);break}e(n,a),a=a.sibling}(a=Ic(i,n.mode,l)).return=n,n=a}return s(n);case T:return t(n,a,(d=i._init)(i._payload),l)}if(et(i))return h(n,a,i,l);if(A(i))return b(n,a,i,l);qa(n,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==a&&6===a.tag?(r(n,a.sibling),(a=o(a,i)).return=n,n=a):(r(n,a),(a=jc(i,n.mode,l)).return=n,n=a),s(n)):r(n,a)}}var Ga=Qa(!0),Za=Qa(!1),Ja={},ti=So(Ja),ei=So(Ja),ri=So(Ja);function ni(t){if(t===Ja)throw Error(a(174));return t}function oi(t,e){switch(Mo(ri,e),Mo(ei,t),Mo(ti,Ja),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:lt(null,"");break;default:e=lt(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}Co(ti),Mo(ti,e)}function ai(){Co(ti),Co(ei),Co(ri)}function ii(t){ni(ri.current);var e=ni(ti.current),r=lt(e,t.type);e!==r&&(Mo(ei,t),Mo(ti,r))}function si(t){ei.current===t&&(Co(ti),Co(ei))}var li=So(0);function ci(t){for(var e=t;null!==e;){if(13===e.tag){var r=e.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!=(128&e.flags))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var di=[];function ui(){for(var t=0;t<di.length;t++)di[t]._workInProgressVersionPrimary=null;di.length=0}var pi=y.ReactCurrentDispatcher,fi=y.ReactCurrentBatchConfig,mi=0,hi=null,bi=null,gi=null,vi=!1,xi=!1,yi=0,wi=0;function ki(){throw Error(a(321))}function _i(t,e){if(null===e)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!sn(t[r],e[r]))return!1;return!0}function Ei(t,e,r,n,o,i){if(mi=i,hi=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,pi.current=null===t||null===t.memoizedState?ss:ls,t=r(n,o),xi){i=0;do{if(xi=!1,yi=0,25<=i)throw Error(a(301));i+=1,gi=bi=null,e.updateQueue=null,pi.current=cs,t=r(n,o)}while(xi)}if(pi.current=is,e=null!==bi&&null!==bi.next,mi=0,gi=bi=hi=null,vi=!1,e)throw Error(a(300));return t}function Si(){var t=0!==yi;return yi=0,t}function Ci(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===gi?hi.memoizedState=gi=t:gi=gi.next=t,gi}function Mi(){if(null===bi){var t=hi.alternate;t=null!==t?t.memoizedState:null}else t=bi.next;var e=null===gi?hi.memoizedState:gi.next;if(null!==e)gi=e,bi=t;else{if(null===t)throw Error(a(310));t={memoizedState:(bi=t).memoizedState,baseState:bi.baseState,baseQueue:bi.baseQueue,queue:bi.queue,next:null},null===gi?hi.memoizedState=gi=t:gi=gi.next=t}return gi}function Ni(t,e){return"function"==typeof e?e(t):e}function Pi(t){var e=Mi(),r=e.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=t;var n=bi,o=n.baseQueue,i=r.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}n.baseQueue=o=i,r.pending=null}if(null!==o){i=o.next,n=n.baseState;var l=s=null,c=null,d=i;do{var u=d.lane;if((mi&u)===u)null!==c&&(c=c.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),n=d.hasEagerState?d.eagerState:t(n,d.action);else{var p={lane:u,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};null===c?(l=c=p,s=n):c=c.next=p,hi.lanes|=u,Dl|=u}d=d.next}while(null!==d&&d!==i);null===c?s=n:c.next=l,sn(n,e.memoizedState)||(ys=!0),e.memoizedState=n,e.baseState=s,e.baseQueue=c,r.lastRenderedState=n}if(null!==(t=r.interleaved)){o=t;do{i=o.lane,hi.lanes|=i,Dl|=i,o=o.next}while(o!==t)}else null===o&&(r.lanes=0);return[e.memoizedState,r.dispatch]}function Oi(t){var e=Mi(),r=e.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=t;var n=r.dispatch,o=r.pending,i=e.memoizedState;if(null!==o){r.pending=null;var s=o=o.next;do{i=t(i,s.action),s=s.next}while(s!==o);sn(i,e.memoizedState)||(ys=!0),e.memoizedState=i,null===e.baseQueue&&(e.baseState=i),r.lastRenderedState=i}return[i,n]}function zi(){}function Ti(t,e){var r=hi,n=Mi(),o=e(),i=!sn(n.memoizedState,o);if(i&&(n.memoizedState=o,ys=!0),n=n.queue,Vi(Ai.bind(null,r,n,t),[t]),n.getSnapshot!==e||i||null!==gi&&1&gi.memoizedState.tag){if(r.flags|=2048,Fi(9,Li.bind(null,r,n,o,e),void 0,null),null===Pl)throw Error(a(349));0!=(30&mi)||Ri(r,e,o)}return o}function Ri(t,e,r){t.flags|=16384,t={getSnapshot:e,value:r},null===(e=hi.updateQueue)?(e={lastEffect:null,stores:null},hi.updateQueue=e,e.stores=[t]):null===(r=e.stores)?e.stores=[t]:r.push(t)}function Li(t,e,r,n){e.value=r,e.getSnapshot=n,Di(e)&&ji(t)}function Ai(t,e,r){return r((function(){Di(e)&&ji(t)}))}function Di(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!sn(t,r)}catch(t){return!0}}function ji(t){var e=Oa(t,1);null!==e&&rc(e,t,1,-1)}function Ii(t){var e=Ci();return"function"==typeof t&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ni,lastRenderedState:t},e.queue=t,t=t.dispatch=rs.bind(null,hi,t),[e.memoizedState,t]}function Fi(t,e,r,n){return t={tag:t,create:e,destroy:r,deps:n,next:null},null===(e=hi.updateQueue)?(e={lastEffect:null,stores:null},hi.updateQueue=e,e.lastEffect=t.next=t):null===(r=e.lastEffect)?e.lastEffect=t.next=t:(n=r.next,r.next=t,t.next=n,e.lastEffect=t),t}function Bi(){return Mi().memoizedState}function Ui(t,e,r,n){var o=Ci();hi.flags|=t,o.memoizedState=Fi(1|e,r,void 0,void 0===n?null:n)}function Wi(t,e,r,n){var o=Mi();n=void 0===n?null:n;var a=void 0;if(null!==bi){var i=bi.memoizedState;if(a=i.destroy,null!==n&&_i(n,i.deps))return void(o.memoizedState=Fi(e,r,a,n))}hi.flags|=t,o.memoizedState=Fi(1|e,r,a,n)}function $i(t,e){return Ui(8390656,8,t,e)}function Vi(t,e){return Wi(2048,8,t,e)}function Hi(t,e){return Wi(4,2,t,e)}function Yi(t,e){return Wi(4,4,t,e)}function Xi(t,e){return"function"==typeof e?(t=t(),e(t),function(){e(null)}):null!=e?(t=t(),e.current=t,function(){e.current=null}):void 0}function qi(t,e,r){return r=null!=r?r.concat([t]):null,Wi(4,4,Xi.bind(null,e,t),r)}function Ki(){}function Qi(t,e){var r=Mi();e=void 0===e?null:e;var n=r.memoizedState;return null!==n&&null!==e&&_i(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function Gi(t,e){var r=Mi();e=void 0===e?null:e;var n=r.memoizedState;return null!==n&&null!==e&&_i(e,n[1])?n[0]:(t=t(),r.memoizedState=[t,e],t)}function Zi(t,e,r){return 0==(21&mi)?(t.baseState&&(t.baseState=!1,ys=!0),t.memoizedState=r):(sn(r,e)||(r=he(),hi.lanes|=r,Dl|=r,t.baseState=!0),e)}function Ji(t,e){var r=xe;xe=0!==r&&4>r?r:4,t(!0);var n=fi.transition;fi.transition={};try{t(!1),e()}finally{xe=r,fi.transition=n}}function ts(){return Mi().memoizedState}function es(t,e,r){var n=ec(t);r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},ns(t)?os(e,r):null!==(r=Pa(t,e,r,n))&&(rc(r,t,n,tc()),as(r,e,n))}function rs(t,e,r){var n=ec(t),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(ns(t))os(e,o);else{var a=t.alternate;if(0===t.lanes&&(null===a||0===a.lanes)&&null!==(a=e.lastRenderedReducer))try{var i=e.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,sn(s,i)){var l=e.interleaved;return null===l?(o.next=o,Na(e)):(o.next=l.next,l.next=o),void(e.interleaved=o)}}catch(t){}null!==(r=Pa(t,e,o,n))&&(rc(r,t,n,o=tc()),as(r,e,n))}}function ns(t){var e=t.alternate;return t===hi||null!==e&&e===hi}function os(t,e){xi=vi=!0;var r=t.pending;null===r?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function as(t,e,r){if(0!=(4194240&r)){var n=e.lanes;r|=n&=t.pendingLanes,e.lanes=r,ve(t,r)}}var is={readContext:Ca,useCallback:ki,useContext:ki,useEffect:ki,useImperativeHandle:ki,useInsertionEffect:ki,useLayoutEffect:ki,useMemo:ki,useReducer:ki,useRef:ki,useState:ki,useDebugValue:ki,useDeferredValue:ki,useTransition:ki,useMutableSource:ki,useSyncExternalStore:ki,useId:ki,unstable_isNewReconciler:!1},ss={readContext:Ca,useCallback:function(t,e){return Ci().memoizedState=[t,void 0===e?null:e],t},useContext:Ca,useEffect:$i,useImperativeHandle:function(t,e,r){return r=null!=r?r.concat([t]):null,Ui(4194308,4,Xi.bind(null,e,t),r)},useLayoutEffect:function(t,e){return Ui(4194308,4,t,e)},useInsertionEffect:function(t,e){return Ui(4,2,t,e)},useMemo:function(t,e){var r=Ci();return e=void 0===e?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=Ci();return e=void 0!==r?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=es.bind(null,hi,t),[n.memoizedState,t]},useRef:function(t){return t={current:t},Ci().memoizedState=t},useState:Ii,useDebugValue:Ki,useDeferredValue:function(t){return Ci().memoizedState=t},useTransition:function(){var t=Ii(!1),e=t[0];return t=Ji.bind(null,t[1]),Ci().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=hi,o=Ci();if(aa){if(void 0===r)throw Error(a(407));r=r()}else{if(r=e(),null===Pl)throw Error(a(349));0!=(30&mi)||Ri(n,e,r)}o.memoizedState=r;var i={value:r,getSnapshot:e};return o.queue=i,$i(Ai.bind(null,n,i,t),[t]),n.flags|=2048,Fi(9,Li.bind(null,n,i,r,e),void 0,null),r},useId:function(){var t=Ci(),e=Pl.identifierPrefix;if(aa){var r=Zo;e=":"+e+"R"+(r=(Go&~(1<<32-ie(Go)-1)).toString(32)+r),0<(r=yi++)&&(e+="H"+r.toString(32)),e+=":"}else e=":"+e+"r"+(r=wi++).toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},ls={readContext:Ca,useCallback:Qi,useContext:Ca,useEffect:Vi,useImperativeHandle:qi,useInsertionEffect:Hi,useLayoutEffect:Yi,useMemo:Gi,useReducer:Pi,useRef:Bi,useState:function(){return Pi(Ni)},useDebugValue:Ki,useDeferredValue:function(t){return Zi(Mi(),bi.memoizedState,t)},useTransition:function(){return[Pi(Ni)[0],Mi().memoizedState]},useMutableSource:zi,useSyncExternalStore:Ti,useId:ts,unstable_isNewReconciler:!1},cs={readContext:Ca,useCallback:Qi,useContext:Ca,useEffect:Vi,useImperativeHandle:qi,useInsertionEffect:Hi,useLayoutEffect:Yi,useMemo:Gi,useReducer:Oi,useRef:Bi,useState:function(){return Oi(Ni)},useDebugValue:Ki,useDeferredValue:function(t){var e=Mi();return null===bi?e.memoizedState=t:Zi(e,bi.memoizedState,t)},useTransition:function(){return[Oi(Ni)[0],Mi().memoizedState]},useMutableSource:zi,useSyncExternalStore:Ti,useId:ts,unstable_isNewReconciler:!1};function ds(t,e){try{var r="",n=e;do{r+=U(n),n=n.return}while(n);var o=r}catch(t){o="\nError generating stack: "+t.message+"\n"+t.stack}return{value:t,source:e,stack:o,digest:null}}function us(t,e,r){return{value:t,source:null,stack:null!=r?r:null,digest:null!=e?e:null}}function ps(t,e){try{console.error(e.value)}catch(t){setTimeout((function(){throw t}))}}var fs="function"==typeof WeakMap?WeakMap:Map;function ms(t,e,r){(r=La(-1,r)).tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){Vl||(Vl=!0,Hl=n),ps(0,e)},r}function hs(t,e,r){(r=La(-1,r)).tag=3;var n=t.type.getDerivedStateFromError;if("function"==typeof n){var o=e.value;r.payload=function(){return n(o)},r.callback=function(){ps(0,e)}}var a=t.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(r.callback=function(){ps(0,e),"function"!=typeof n&&(null===Yl?Yl=new Set([this]):Yl.add(this));var t=e.stack;this.componentDidCatch(e.value,{componentStack:null!==t?t:""})}),r}function bs(t,e,r){var n=t.pingCache;if(null===n){n=t.pingCache=new fs;var o=new Set;n.set(e,o)}else void 0===(o=n.get(e))&&(o=new Set,n.set(e,o));o.has(r)||(o.add(r),t=Sc.bind(null,t,e,r),e.then(t,t))}function gs(t){do{var e;if((e=13===t.tag)&&(e=null===(e=t.memoizedState)||null!==e.dehydrated),e)return t;t=t.return}while(null!==t);return null}function vs(t,e,r,n,o){return 0==(1&t.mode)?(t===e?t.flags|=65536:(t.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((e=La(-1,1)).tag=2,Aa(r,e,1))),r.lanes|=1),t):(t.flags|=65536,t.lanes=o,t)}var xs=y.ReactCurrentOwner,ys=!1;function ws(t,e,r,n){e.child=null===t?Za(e,null,r,n):Ga(e,t.child,r,n)}function ks(t,e,r,n,o){r=r.render;var a=e.ref;return Sa(e,o),n=Ei(t,e,r,n,a,o),r=Si(),null===t||ys?(aa&&r&&ea(e),e.flags|=1,ws(t,e,n,o),e.child):(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~o,Vs(t,e,o))}function _s(t,e,r,n,o){if(null===t){var a=r.type;return"function"!=typeof a||Tc(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((t=Lc(r.type,null,n,e,e.mode,o)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=a,Es(t,e,a,n,o))}if(a=t.child,0==(t.lanes&o)){var i=a.memoizedProps;if((r=null!==(r=r.compare)?r:ln)(i,n)&&t.ref===e.ref)return Vs(t,e,o)}return e.flags|=1,(t=Rc(a,n)).ref=e.ref,t.return=e,e.child=t}function Es(t,e,r,n,o){if(null!==t){var a=t.memoizedProps;if(ln(a,n)&&t.ref===e.ref){if(ys=!1,e.pendingProps=n=a,0==(t.lanes&o))return e.lanes=t.lanes,Vs(t,e,o);0!=(131072&t.flags)&&(ys=!0)}}return Ms(t,e,r,n,o)}function Ss(t,e,r){var n=e.pendingProps,o=n.children,a=null!==t?t.memoizedState:null;if("hidden"===n.mode)if(0==(1&e.mode))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Mo(Rl,Tl),Tl|=r;else{if(0==(1073741824&r))return t=null!==a?a.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Mo(Rl,Tl),Tl|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==a?a.baseLanes:r,Mo(Rl,Tl),Tl|=n}else null!==a?(n=a.baseLanes|r,e.memoizedState=null):n=r,Mo(Rl,Tl),Tl|=n;return ws(t,e,o,r),e.child}function Cs(t,e){var r=e.ref;(null===t&&null!==r||null!==t&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function Ms(t,e,r,n,o){var a=Ro(r)?zo:Po.current;return a=To(e,a),Sa(e,o),r=Ei(t,e,r,n,a,o),n=Si(),null===t||ys?(aa&&n&&ea(e),e.flags|=1,ws(t,e,r,o),e.child):(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~o,Vs(t,e,o))}function Ns(t,e,r,n,o){if(Ro(r)){var a=!0;jo(e)}else a=!1;if(Sa(e,o),null===e.stateNode)$s(t,e),Va(e,r,n),Ya(e,r,n,o),n=!0;else if(null===t){var i=e.stateNode,s=e.memoizedProps;i.props=s;var l=i.context,c=r.contextType;c="object"==typeof c&&null!==c?Ca(c):To(e,c=Ro(r)?zo:Po.current);var d=r.getDerivedStateFromProps,u="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate;u||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==n||l!==c)&&Ha(e,i,n,c),za=!1;var p=e.memoizedState;i.state=p,Ia(e,n,i,o),l=e.memoizedState,s!==n||p!==l||Oo.current||za?("function"==typeof d&&(Ua(e,r,d,n),l=e.memoizedState),(s=za||$a(e,r,s,n,p,l,c))?(u||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(e.flags|=4194308)):("function"==typeof i.componentDidMount&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=l),i.props=n,i.state=l,i.context=c,n=s):("function"==typeof i.componentDidMount&&(e.flags|=4194308),n=!1)}else{i=e.stateNode,Ra(t,e),s=e.memoizedProps,c=e.type===e.elementType?s:ga(e.type,s),i.props=c,u=e.pendingProps,p=i.context,l="object"==typeof(l=r.contextType)&&null!==l?Ca(l):To(e,l=Ro(r)?zo:Po.current);var f=r.getDerivedStateFromProps;(d="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==u||p!==l)&&Ha(e,i,n,l),za=!1,p=e.memoizedState,i.state=p,Ia(e,n,i,o);var m=e.memoizedState;s!==u||p!==m||Oo.current||za?("function"==typeof f&&(Ua(e,r,f,n),m=e.memoizedState),(c=za||$a(e,r,c,n,p,m,l)||!1)?(d||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(n,m,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(n,m,l)),"function"==typeof i.componentDidUpdate&&(e.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(e.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=m),i.props=n,i.state=m,i.context=l,n=c):("function"!=typeof i.componentDidUpdate||s===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),n=!1)}return Ps(t,e,r,n,a,o)}function Ps(t,e,r,n,o,a){Cs(t,e);var i=0!=(128&e.flags);if(!n&&!i)return o&&Io(e,r,!1),Vs(t,e,a);n=e.stateNode,xs.current=e;var s=i&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return e.flags|=1,null!==t&&i?(e.child=Ga(e,t.child,null,a),e.child=Ga(e,null,s,a)):ws(t,e,s,a),e.memoizedState=n.state,o&&Io(e,r,!0),e.child}function Os(t){var e=t.stateNode;e.pendingContext?Ao(0,e.pendingContext,e.pendingContext!==e.context):e.context&&Ao(0,e.context,!1),oi(t,e.containerInfo)}function zs(t,e,r,n,o){return ma(),ha(o),e.flags|=256,ws(t,e,r,n),e.child}var Ts,Rs,Ls,As={dehydrated:null,treeContext:null,retryLane:0};function Ds(t){return{baseLanes:t,cachePool:null,transitions:null}}function js(t,e,r){var n,o=e.pendingProps,i=li.current,s=!1,l=0!=(128&e.flags);if((n=l)||(n=(null===t||null!==t.memoizedState)&&0!=(2&i)),n?(s=!0,e.flags&=-129):null!==t&&null===t.memoizedState||(i|=1),Mo(li,1&i),null===t)return da(e),null!==(t=e.memoizedState)&&null!==(t=t.dehydrated)?(0==(1&e.mode)?e.lanes=1:"$!"===t.data?e.lanes=8:e.lanes=1073741824,null):(l=o.children,t=o.fallback,s?(o=e.mode,s=e.child,l={mode:"hidden",children:l},0==(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Dc(l,o,0,null),t=Ac(t,o,r,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=Ds(r),e.memoizedState=As,t):Is(e,l));if(null!==(i=t.memoizedState)&&null!==(n=i.dehydrated))return function(t,e,r,n,o,i,s){if(r)return 256&e.flags?(e.flags&=-257,Fs(t,e,s,n=us(Error(a(422))))):null!==e.memoizedState?(e.child=t.child,e.flags|=128,null):(i=n.fallback,o=e.mode,n=Dc({mode:"visible",children:n.children},o,0,null),(i=Ac(i,o,s,null)).flags|=2,n.return=e,i.return=e,n.sibling=i,e.child=n,0!=(1&e.mode)&&Ga(e,t.child,null,s),e.child.memoizedState=Ds(s),e.memoizedState=As,i);if(0==(1&e.mode))return Fs(t,e,s,null);if("$!"===o.data){if(n=o.nextSibling&&o.nextSibling.dataset)var l=n.dgst;return n=l,Fs(t,e,s,n=us(i=Error(a(419)),n,void 0))}if(l=0!=(s&t.childLanes),ys||l){if(null!==(n=Pl)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(n.suspendedLanes|s))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Oa(t,o),rc(n,t,o,-1))}return hc(),Fs(t,e,s,n=us(Error(a(421))))}return"$?"===o.data?(e.flags|=128,e.child=t.child,e=Mc.bind(null,t),o._reactRetry=e,null):(t=i.treeContext,oa=co(o.nextSibling),na=e,aa=!0,ia=null,null!==t&&(qo[Ko++]=Go,qo[Ko++]=Zo,qo[Ko++]=Qo,Go=t.id,Zo=t.overflow,Qo=e),(e=Is(e,n.children)).flags|=4096,e)}(t,e,l,o,n,i,r);if(s){s=o.fallback,l=e.mode,n=(i=t.child).sibling;var c={mode:"hidden",children:o.children};return 0==(1&l)&&e.child!==i?((o=e.child).childLanes=0,o.pendingProps=c,e.deletions=null):(o=Rc(i,c)).subtreeFlags=14680064&i.subtreeFlags,null!==n?s=Rc(n,s):(s=Ac(s,l,r,null)).flags|=2,s.return=e,o.return=e,o.sibling=s,e.child=o,o=s,s=e.child,l=null===(l=t.child.memoizedState)?Ds(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=t.childLanes&~r,e.memoizedState=As,o}return t=(s=t.child).sibling,o=Rc(s,{mode:"visible",children:o.children}),0==(1&e.mode)&&(o.lanes=r),o.return=e,o.sibling=null,null!==t&&(null===(r=e.deletions)?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=o,e.memoizedState=null,o}function Is(t,e){return(e=Dc({mode:"visible",children:e},t.mode,0,null)).return=t,t.child=e}function Fs(t,e,r,n){return null!==n&&ha(n),Ga(e,t.child,null,r),(t=Is(e,e.pendingProps.children)).flags|=2,e.memoizedState=null,t}function Bs(t,e,r){t.lanes|=e;var n=t.alternate;null!==n&&(n.lanes|=e),Ea(t.return,e,r)}function Us(t,e,r,n,o){var a=t.memoizedState;null===a?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(a.isBackwards=e,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=o)}function Ws(t,e,r){var n=e.pendingProps,o=n.revealOrder,a=n.tail;if(ws(t,e,n.children,r),0!=(2&(n=li.current)))n=1&n|2,e.flags|=128;else{if(null!==t&&0!=(128&t.flags))t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&Bs(t,r,e);else if(19===t.tag)Bs(t,r,e);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}if(Mo(li,n),0==(1&e.mode))e.memoizedState=null;else switch(o){case"forwards":for(r=e.child,o=null;null!==r;)null!==(t=r.alternate)&&null===ci(t)&&(o=r),r=r.sibling;null===(r=o)?(o=e.child,e.child=null):(o=r.sibling,r.sibling=null),Us(e,!1,o,r,a);break;case"backwards":for(r=null,o=e.child,e.child=null;null!==o;){if(null!==(t=o.alternate)&&null===ci(t)){e.child=o;break}t=o.sibling,o.sibling=r,r=o,o=t}Us(e,!0,r,null,a);break;case"together":Us(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function $s(t,e){0==(1&e.mode)&&null!==t&&(t.alternate=null,e.alternate=null,e.flags|=2)}function Vs(t,e,r){if(null!==t&&(e.dependencies=t.dependencies),Dl|=e.lanes,0==(r&e.childLanes))return null;if(null!==t&&e.child!==t.child)throw Error(a(153));if(null!==e.child){for(r=Rc(t=e.child,t.pendingProps),e.child=r,r.return=e;null!==t.sibling;)t=t.sibling,(r=r.sibling=Rc(t,t.pendingProps)).return=e;r.sibling=null}return e.child}function Hs(t,e){if(!aa)switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;null!==e;)null!==e.alternate&&(r=e),e=e.sibling;null===r?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?e||null===t.tail?t.tail=null:t.tail.sibling=null:n.sibling=null}}function Ys(t){var e=null!==t.alternate&&t.alternate.child===t.child,r=0,n=0;if(e)for(var o=t.child;null!==o;)r|=o.lanes|o.childLanes,n|=14680064&o.subtreeFlags,n|=14680064&o.flags,o.return=t,o=o.sibling;else for(o=t.child;null!==o;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=n,t.childLanes=r,e}function Xs(t,e,r){var n=e.pendingProps;switch(ra(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ys(e),null;case 1:case 17:return Ro(e.type)&&Lo(),Ys(e),null;case 3:return n=e.stateNode,ai(),Co(Oo),Co(Po),ui(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==t&&null!==t.child||(pa(e)?e.flags|=4:null===t||t.memoizedState.isDehydrated&&0==(256&e.flags)||(e.flags|=1024,null!==ia&&(ic(ia),ia=null))),Ys(e),null;case 5:si(e);var o=ni(ri.current);if(r=e.type,null!==t&&null!=e.stateNode)Rs(t,e,r,n),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(null===e.stateNode)throw Error(a(166));return Ys(e),null}if(t=ni(ti.current),pa(e)){n=e.stateNode,r=e.type;var i=e.memoizedProps;switch(n[fo]=e,n[mo]=i,t=0!=(1&e.mode),r){case"dialog":Fn("cancel",n),Fn("close",n);break;case"iframe":case"object":case"embed":Fn("load",n);break;case"video":case"audio":for(o=0;o<An.length;o++)Fn(An[o],n);break;case"source":Fn("error",n);break;case"img":case"image":case"link":Fn("error",n),Fn("load",n);break;case"details":Fn("toggle",n);break;case"input":Q(n,i),Fn("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},Fn("invalid",n);break;case"textarea":ot(n,i),Fn("invalid",n)}for(var l in vt(r,i),o=null,i)if(i.hasOwnProperty(l)){var c=i[l];"children"===l?"string"==typeof c?n.textContent!==c&&(!0!==i.suppressHydrationWarning&&Zn(n.textContent,c,t),o=["children",c]):"number"==typeof c&&n.textContent!==""+c&&(!0!==i.suppressHydrationWarning&&Zn(n.textContent,c,t),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Fn("scroll",n)}switch(r){case"input":Y(n),J(n,i,!0);break;case"textarea":Y(n),it(n);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(n.onclick=Jn)}n=o,e.updateQueue=n,null!==n&&(e.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===t&&(t=st(r)),"http://www.w3.org/1999/xhtml"===t?"script"===r?((t=l.createElement("div")).innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):"string"==typeof n.is?t=l.createElement(r,{is:n.is}):(t=l.createElement(r),"select"===r&&(l=t,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):t=l.createElementNS(t,r),t[fo]=e,t[mo]=n,Ts(t,e),e.stateNode=t;t:{switch(l=xt(r,n),r){case"dialog":Fn("cancel",t),Fn("close",t),o=n;break;case"iframe":case"object":case"embed":Fn("load",t),o=n;break;case"video":case"audio":for(o=0;o<An.length;o++)Fn(An[o],t);o=n;break;case"source":Fn("error",t),o=n;break;case"img":case"image":case"link":Fn("error",t),Fn("load",t),o=n;break;case"details":Fn("toggle",t),o=n;break;case"input":Q(t,n),o=K(t,n),Fn("invalid",t);break;case"option":default:o=n;break;case"select":t._wrapperState={wasMultiple:!!n.multiple},o=j({},n,{value:void 0}),Fn("invalid",t);break;case"textarea":ot(t,n),o=nt(t,n),Fn("invalid",t)}for(i in vt(r,o),c=o)if(c.hasOwnProperty(i)){var d=c[i];"style"===i?bt(t,d):"dangerouslySetInnerHTML"===i?null!=(d=d?d.__html:void 0)&&ut(t,d):"children"===i?"string"==typeof d?("textarea"!==r||""!==d)&&pt(t,d):"number"==typeof d&&pt(t,""+d):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(s.hasOwnProperty(i)?null!=d&&"onScroll"===i&&Fn("scroll",t):null!=d&&x(t,i,d,l))}switch(r){case"input":Y(t),J(t,n,!1);break;case"textarea":Y(t),it(t);break;case"option":null!=n.value&&t.setAttribute("value",""+V(n.value));break;case"select":t.multiple=!!n.multiple,null!=(i=n.value)?rt(t,!!n.multiple,i,!1):null!=n.defaultValue&&rt(t,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&(t.onclick=Jn)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}}n&&(e.flags|=4)}null!==e.ref&&(e.flags|=512,e.flags|=2097152)}return Ys(e),null;case 6:if(t&&null!=e.stateNode)Ls(0,e,t.memoizedProps,n);else{if("string"!=typeof n&&null===e.stateNode)throw Error(a(166));if(r=ni(ri.current),ni(ti.current),pa(e)){if(n=e.stateNode,r=e.memoizedProps,n[fo]=e,(i=n.nodeValue!==r)&&null!==(t=na))switch(t.tag){case 3:Zn(n.nodeValue,r,0!=(1&t.mode));break;case 5:!0!==t.memoizedProps.suppressHydrationWarning&&Zn(n.nodeValue,r,0!=(1&t.mode))}i&&(e.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[fo]=e,e.stateNode=n}return Ys(e),null;case 13:if(Co(li),n=e.memoizedState,null===t||null!==t.memoizedState&&null!==t.memoizedState.dehydrated){if(aa&&null!==oa&&0!=(1&e.mode)&&0==(128&e.flags))fa(),ma(),e.flags|=98560,i=!1;else if(i=pa(e),null!==n&&null!==n.dehydrated){if(null===t){if(!i)throw Error(a(318));if(!(i=null!==(i=e.memoizedState)?i.dehydrated:null))throw Error(a(317));i[fo]=e}else ma(),0==(128&e.flags)&&(e.memoizedState=null),e.flags|=4;Ys(e),i=!1}else null!==ia&&(ic(ia),ia=null),i=!0;if(!i)return 65536&e.flags?e:null}return 0!=(128&e.flags)?(e.lanes=r,e):((n=null!==n)!=(null!==t&&null!==t.memoizedState)&&n&&(e.child.flags|=8192,0!=(1&e.mode)&&(null===t||0!=(1&li.current)?0===Ll&&(Ll=3):hc())),null!==e.updateQueue&&(e.flags|=4),Ys(e),null);case 4:return ai(),null===t&&Wn(e.stateNode.containerInfo),Ys(e),null;case 10:return _a(e.type._context),Ys(e),null;case 19:if(Co(li),null===(i=e.memoizedState))return Ys(e),null;if(n=0!=(128&e.flags),null===(l=i.rendering))if(n)Hs(i,!1);else{if(0!==Ll||null!==t&&0!=(128&t.flags))for(t=e.child;null!==t;){if(null!==(l=ci(t))){for(e.flags|=128,Hs(i,!1),null!==(n=l.updateQueue)&&(e.updateQueue=n,e.flags|=4),e.subtreeFlags=0,n=r,r=e.child;null!==r;)t=n,(i=r).flags&=14680066,null===(l=i.alternate)?(i.childLanes=0,i.lanes=t,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,t=l.dependencies,i.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),r=r.sibling;return Mo(li,1&li.current|2),e.child}t=t.sibling}null!==i.tail&&Gt()>Wl&&(e.flags|=128,n=!0,Hs(i,!1),e.lanes=4194304)}else{if(!n)if(null!==(t=ci(l))){if(e.flags|=128,n=!0,null!==(r=t.updateQueue)&&(e.updateQueue=r,e.flags|=4),Hs(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!aa)return Ys(e),null}else 2*Gt()-i.renderingStartTime>Wl&&1073741824!==r&&(e.flags|=128,n=!0,Hs(i,!1),e.lanes=4194304);i.isBackwards?(l.sibling=e.child,e.child=l):(null!==(r=i.last)?r.sibling=l:e.child=l,i.last=l)}return null!==i.tail?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Gt(),e.sibling=null,r=li.current,Mo(li,n?1&r|2:1&r),e):(Ys(e),null);case 22:case 23:return uc(),n=null!==e.memoizedState,null!==t&&null!==t.memoizedState!==n&&(e.flags|=8192),n&&0!=(1&e.mode)?0!=(1073741824&Tl)&&(Ys(e),6&e.subtreeFlags&&(e.flags|=8192)):Ys(e),null;case 24:case 25:return null}throw Error(a(156,e.tag))}function qs(t,e){switch(ra(e),e.tag){case 1:return Ro(e.type)&&Lo(),65536&(t=e.flags)?(e.flags=-65537&t|128,e):null;case 3:return ai(),Co(Oo),Co(Po),ui(),0!=(65536&(t=e.flags))&&0==(128&t)?(e.flags=-65537&t|128,e):null;case 5:return si(e),null;case 13:if(Co(li),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(a(340));ma()}return 65536&(t=e.flags)?(e.flags=-65537&t|128,e):null;case 19:return Co(li),null;case 4:return ai(),null;case 10:return _a(e.type._context),null;case 22:case 23:return uc(),null;default:return null}}Ts=function(t,e){for(var r=e.child;null!==r;){if(5===r.tag||6===r.tag)t.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Rs=function(t,e,r,n){var o=t.memoizedProps;if(o!==n){t=e.stateNode,ni(ti.current);var a,i=null;switch(r){case"input":o=K(t,o),n=K(t,n),i=[];break;case"select":o=j({},o,{value:void 0}),n=j({},n,{value:void 0}),i=[];break;case"textarea":o=nt(t,o),n=nt(t,n),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof n.onClick&&(t.onclick=Jn)}for(d in vt(r,n),r=null,o)if(!n.hasOwnProperty(d)&&o.hasOwnProperty(d)&&null!=o[d])if("style"===d){var l=o[d];for(a in l)l.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(s.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in n){var c=n[d];if(l=null!=o?o[d]:void 0,n.hasOwnProperty(d)&&c!==l&&(null!=c||null!=l))if("style"===d)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(r||(r={}),r[a]=c[a])}else r||(i||(i=[]),i.push(d,r)),r=c;else"dangerouslySetInnerHTML"===d?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(i=i||[]).push(d,c)):"children"===d?"string"!=typeof c&&"number"!=typeof c||(i=i||[]).push(d,""+c):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(s.hasOwnProperty(d)?(null!=c&&"onScroll"===d&&Fn("scroll",t),i||l===c||(i=[])):(i=i||[]).push(d,c))}r&&(i=i||[]).push("style",r);var d=i;(e.updateQueue=d)&&(e.flags|=4)}},Ls=function(t,e,r,n){r!==n&&(e.flags|=4)};var Ks=!1,Qs=!1,Gs="function"==typeof WeakSet?WeakSet:Set,Zs=null;function Js(t,e){var r=t.ref;if(null!==r)if("function"==typeof r)try{r(null)}catch(r){Ec(t,e,r)}else r.current=null}function tl(t,e,r){try{r()}catch(r){Ec(t,e,r)}}var el=!1;function rl(t,e,r){var n=e.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{if((o.tag&t)===t){var a=o.destroy;o.destroy=void 0,void 0!==a&&tl(e,r,a)}o=o.next}while(o!==n)}}function nl(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function ol(t){var e=t.ref;if(null!==e){var r=t.stateNode;t.tag,t=r,"function"==typeof e?e(t):e.current=t}}function al(t){var e=t.alternate;null!==e&&(t.alternate=null,al(e)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&null!==(e=t.stateNode)&&(delete e[fo],delete e[mo],delete e[bo],delete e[go],delete e[vo]),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function il(t){return 5===t.tag||3===t.tag||4===t.tag}function sl(t){t:for(;;){for(;null===t.sibling;){if(null===t.return||il(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&18!==t.tag;){if(2&t.flags)continue t;if(null===t.child||4===t.tag)continue t;t.child.return=t,t=t.child}if(!(2&t.flags))return t.stateNode}}function ll(t,e,r){var n=t.tag;if(5===n||6===n)t=t.stateNode,e?8===r.nodeType?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(8===r.nodeType?(e=r.parentNode).insertBefore(t,r):(e=r).appendChild(t),null!=(r=r._reactRootContainer)||null!==e.onclick||(e.onclick=Jn));else if(4!==n&&null!==(t=t.child))for(ll(t,e,r),t=t.sibling;null!==t;)ll(t,e,r),t=t.sibling}function cl(t,e,r){var n=t.tag;if(5===n||6===n)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(4!==n&&null!==(t=t.child))for(cl(t,e,r),t=t.sibling;null!==t;)cl(t,e,r),t=t.sibling}var dl=null,ul=!1;function pl(t,e,r){for(r=r.child;null!==r;)fl(t,e,r),r=r.sibling}function fl(t,e,r){if(ae&&"function"==typeof ae.onCommitFiberUnmount)try{ae.onCommitFiberUnmount(oe,r)}catch(t){}switch(r.tag){case 5:Qs||Js(r,e);case 6:var n=dl,o=ul;dl=null,pl(t,e,r),ul=o,null!==(dl=n)&&(ul?(t=dl,r=r.stateNode,8===t.nodeType?t.parentNode.removeChild(r):t.removeChild(r)):dl.removeChild(r.stateNode));break;case 18:null!==dl&&(ul?(t=dl,r=r.stateNode,8===t.nodeType?lo(t.parentNode,r):1===t.nodeType&&lo(t,r),We(t)):lo(dl,r.stateNode));break;case 4:n=dl,o=ul,dl=r.stateNode.containerInfo,ul=!0,pl(t,e,r),dl=n,ul=o;break;case 0:case 11:case 14:case 15:if(!Qs&&null!==(n=r.updateQueue)&&null!==(n=n.lastEffect)){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&tl(r,e,i),o=o.next}while(o!==n)}pl(t,e,r);break;case 1:if(!Qs&&(Js(r,e),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(t){Ec(r,e,t)}pl(t,e,r);break;case 21:pl(t,e,r);break;case 22:1&r.mode?(Qs=(n=Qs)||null!==r.memoizedState,pl(t,e,r),Qs=n):pl(t,e,r);break;default:pl(t,e,r)}}function ml(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var r=t.stateNode;null===r&&(r=t.stateNode=new Gs),e.forEach((function(e){var n=Nc.bind(null,t,e);r.has(e)||(r.add(e),e.then(n,n))}))}}function hl(t,e){var r=e.deletions;if(null!==r)for(var n=0;n<r.length;n++){var o=r[n];try{var i=t,s=e,l=s;t:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,ul=!1;break t;case 3:case 4:dl=l.stateNode.containerInfo,ul=!0;break t}l=l.return}if(null===dl)throw Error(a(160));fl(i,s,o),dl=null,ul=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(t){Ec(o,e,t)}}if(12854&e.subtreeFlags)for(e=e.child;null!==e;)bl(e,t),e=e.sibling}function bl(t,e){var r=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(hl(e,t),gl(t),4&n){try{rl(3,t,t.return),nl(3,t)}catch(e){Ec(t,t.return,e)}try{rl(5,t,t.return)}catch(e){Ec(t,t.return,e)}}break;case 1:hl(e,t),gl(t),512&n&&null!==r&&Js(r,r.return);break;case 5:if(hl(e,t),gl(t),512&n&&null!==r&&Js(r,r.return),32&t.flags){var o=t.stateNode;try{pt(o,"")}catch(e){Ec(t,t.return,e)}}if(4&n&&null!=(o=t.stateNode)){var i=t.memoizedProps,s=null!==r?r.memoizedProps:i,l=t.type,c=t.updateQueue;if(t.updateQueue=null,null!==c)try{"input"===l&&"radio"===i.type&&null!=i.name&&G(o,i),xt(l,s);var d=xt(l,i);for(s=0;s<c.length;s+=2){var u=c[s],p=c[s+1];"style"===u?bt(o,p):"dangerouslySetInnerHTML"===u?ut(o,p):"children"===u?pt(o,p):x(o,u,p,d)}switch(l){case"input":Z(o,i);break;case"textarea":at(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var m=i.value;null!=m?rt(o,!!i.multiple,m,!1):f!==!!i.multiple&&(null!=i.defaultValue?rt(o,!!i.multiple,i.defaultValue,!0):rt(o,!!i.multiple,i.multiple?[]:"",!1))}o[mo]=i}catch(e){Ec(t,t.return,e)}}break;case 6:if(hl(e,t),gl(t),4&n){if(null===t.stateNode)throw Error(a(162));o=t.stateNode,i=t.memoizedProps;try{o.nodeValue=i}catch(e){Ec(t,t.return,e)}}break;case 3:if(hl(e,t),gl(t),4&n&&null!==r&&r.memoizedState.isDehydrated)try{We(e.containerInfo)}catch(e){Ec(t,t.return,e)}break;case 4:default:hl(e,t),gl(t);break;case 13:hl(e,t),gl(t),8192&(o=t.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Ul=Gt())),4&n&&ml(t);break;case 22:if(u=null!==r&&null!==r.memoizedState,1&t.mode?(Qs=(d=Qs)||u,hl(e,t),Qs=d):hl(e,t),gl(t),8192&n){if(d=null!==t.memoizedState,(t.stateNode.isHidden=d)&&!u&&0!=(1&t.mode))for(Zs=t,u=t.child;null!==u;){for(p=Zs=u;null!==Zs;){switch(m=(f=Zs).child,f.tag){case 0:case 11:case 14:case 15:rl(4,f,f.return);break;case 1:Js(f,f.return);var h=f.stateNode;if("function"==typeof h.componentWillUnmount){n=f,r=f.return;try{e=n,h.props=e.memoizedProps,h.state=e.memoizedState,h.componentWillUnmount()}catch(t){Ec(n,r,t)}}break;case 5:Js(f,f.return);break;case 22:if(null!==f.memoizedState){wl(p);continue}}null!==m?(m.return=f,Zs=m):wl(p)}u=u.sibling}t:for(u=null,p=t;;){if(5===p.tag){if(null===u){u=p;try{o=p.stateNode,d?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=p.stateNode,s=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=ht("display",s))}catch(e){Ec(t,t.return,e)}}}else if(6===p.tag){if(null===u)try{p.stateNode.nodeValue=d?"":p.memoizedProps}catch(e){Ec(t,t.return,e)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===t)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===t)break t;for(;null===p.sibling;){if(null===p.return||p.return===t)break t;u===p&&(u=null),p=p.return}u===p&&(u=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:hl(e,t),gl(t),4&n&&ml(t);case 21:}}function gl(t){var e=t.flags;if(2&e){try{t:{for(var r=t.return;null!==r;){if(il(r)){var n=r;break t}r=r.return}throw Error(a(160))}switch(n.tag){case 5:var o=n.stateNode;32&n.flags&&(pt(o,""),n.flags&=-33),cl(t,sl(t),o);break;case 3:case 4:var i=n.stateNode.containerInfo;ll(t,sl(t),i);break;default:throw Error(a(161))}}catch(e){Ec(t,t.return,e)}t.flags&=-3}4096&e&&(t.flags&=-4097)}function vl(t,e,r){Zs=t,xl(t,e,r)}function xl(t,e,r){for(var n=0!=(1&t.mode);null!==Zs;){var o=Zs,a=o.child;if(22===o.tag&&n){var i=null!==o.memoizedState||Ks;if(!i){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Qs;s=Ks;var c=Qs;if(Ks=i,(Qs=l)&&!c)for(Zs=o;null!==Zs;)l=(i=Zs).child,22===i.tag&&null!==i.memoizedState?kl(o):null!==l?(l.return=i,Zs=l):kl(o);for(;null!==a;)Zs=a,xl(a,e,r),a=a.sibling;Zs=o,Ks=s,Qs=c}yl(t)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,Zs=a):yl(t)}}function yl(t){for(;null!==Zs;){var e=Zs;if(0!=(8772&e.flags)){var r=e.alternate;try{if(0!=(8772&e.flags))switch(e.tag){case 0:case 11:case 15:Qs||nl(5,e);break;case 1:var n=e.stateNode;if(4&e.flags&&!Qs)if(null===r)n.componentDidMount();else{var o=e.elementType===e.type?r.memoizedProps:ga(e.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;null!==i&&Fa(e,i,n);break;case 3:var s=e.updateQueue;if(null!==s){if(r=null,null!==e.child)switch(e.child.tag){case 5:case 1:r=e.child.stateNode}Fa(e,s,r)}break;case 5:var l=e.stateNode;if(null===r&&4&e.flags){r=l;var c=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===e.memoizedState){var d=e.alternate;if(null!==d){var u=d.memoizedState;if(null!==u){var p=u.dehydrated;null!==p&&We(p)}}}break;default:throw Error(a(163))}Qs||512&e.flags&&ol(e)}catch(t){Ec(e,e.return,t)}}if(e===t){Zs=null;break}if(null!==(r=e.sibling)){r.return=e.return,Zs=r;break}Zs=e.return}}function wl(t){for(;null!==Zs;){var e=Zs;if(e===t){Zs=null;break}var r=e.sibling;if(null!==r){r.return=e.return,Zs=r;break}Zs=e.return}}function kl(t){for(;null!==Zs;){var e=Zs;try{switch(e.tag){case 0:case 11:case 15:var r=e.return;try{nl(4,e)}catch(t){Ec(e,r,t)}break;case 1:var n=e.stateNode;if("function"==typeof n.componentDidMount){var o=e.return;try{n.componentDidMount()}catch(t){Ec(e,o,t)}}var a=e.return;try{ol(e)}catch(t){Ec(e,a,t)}break;case 5:var i=e.return;try{ol(e)}catch(t){Ec(e,i,t)}}}catch(t){Ec(e,e.return,t)}if(e===t){Zs=null;break}var s=e.sibling;if(null!==s){s.return=e.return,Zs=s;break}Zs=e.return}}var _l,El=Math.ceil,Sl=y.ReactCurrentDispatcher,Cl=y.ReactCurrentOwner,Ml=y.ReactCurrentBatchConfig,Nl=0,Pl=null,Ol=null,zl=0,Tl=0,Rl=So(0),Ll=0,Al=null,Dl=0,jl=0,Il=0,Fl=null,Bl=null,Ul=0,Wl=1/0,$l=null,Vl=!1,Hl=null,Yl=null,Xl=!1,ql=null,Kl=0,Ql=0,Gl=null,Zl=-1,Jl=0;function tc(){return 0!=(6&Nl)?Gt():-1!==Zl?Zl:Zl=Gt()}function ec(t){return 0==(1&t.mode)?1:0!=(2&Nl)&&0!==zl?zl&-zl:null!==ba.transition?(0===Jl&&(Jl=he()),Jl):0!==(t=xe)?t:t=void 0===(t=window.event)?16:Qe(t.type)}function rc(t,e,r,n){if(50<Ql)throw Ql=0,Gl=null,Error(a(185));ge(t,r,n),0!=(2&Nl)&&t===Pl||(t===Pl&&(0==(2&Nl)&&(jl|=r),4===Ll&&sc(t,zl)),nc(t,n),1===r&&0===Nl&&0==(1&e.mode)&&(Wl=Gt()+500,Bo&&$o()))}function nc(t,e){var r=t.callbackNode;!function(t,e){for(var r=t.suspendedLanes,n=t.pingedLanes,o=t.expirationTimes,a=t.pendingLanes;0<a;){var i=31-ie(a),s=1<<i,l=o[i];-1===l?0!=(s&r)&&0==(s&n)||(o[i]=fe(s,e)):l<=e&&(t.expiredLanes|=s),a&=~s}}(t,e);var n=pe(t,t===Pl?zl:0);if(0===n)null!==r&&qt(r),t.callbackNode=null,t.callbackPriority=0;else if(e=n&-n,t.callbackPriority!==e){if(null!=r&&qt(r),1===e)0===t.tag?function(t){Bo=!0,Wo(t)}(lc.bind(null,t)):Wo(lc.bind(null,t)),io((function(){0==(6&Nl)&&$o()})),r=null;else{switch(ye(n)){case 1:r=Jt;break;case 4:r=te;break;case 16:default:r=ee;break;case 536870912:r=ne}r=Pc(r,oc.bind(null,t))}t.callbackPriority=e,t.callbackNode=r}}function oc(t,e){if(Zl=-1,Jl=0,0!=(6&Nl))throw Error(a(327));var r=t.callbackNode;if(kc()&&t.callbackNode!==r)return null;var n=pe(t,t===Pl?zl:0);if(0===n)return null;if(0!=(30&n)||0!=(n&t.expiredLanes)||e)e=bc(t,n);else{e=n;var o=Nl;Nl|=2;var i=mc();for(Pl===t&&zl===e||($l=null,Wl=Gt()+500,pc(t,e));;)try{vc();break}catch(e){fc(t,e)}ka(),Sl.current=i,Nl=o,null!==Ol?e=0:(Pl=null,zl=0,e=Ll)}if(0!==e){if(2===e&&0!==(o=me(t))&&(n=o,e=ac(t,o)),1===e)throw r=Al,pc(t,0),sc(t,n),nc(t,Gt()),r;if(6===e)sc(t,n);else{if(o=t.current.alternate,0==(30&n)&&!function(t){for(var e=t;;){if(16384&e.flags){var r=e.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var o=r[n],a=o.getSnapshot;o=o.value;try{if(!sn(a(),o))return!1}catch(t){return!1}}}if(r=e.child,16384&e.subtreeFlags&&null!==r)r.return=e,e=r;else{if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}(o)&&(2===(e=bc(t,n))&&0!==(i=me(t))&&(n=i,e=ac(t,i)),1===e))throw r=Al,pc(t,0),sc(t,n),nc(t,Gt()),r;switch(t.finishedWork=o,t.finishedLanes=n,e){case 0:case 1:throw Error(a(345));case 2:case 5:wc(t,Bl,$l);break;case 3:if(sc(t,n),(130023424&n)===n&&10<(e=Ul+500-Gt())){if(0!==pe(t,0))break;if(((o=t.suspendedLanes)&n)!==n){tc(),t.pingedLanes|=t.suspendedLanes&o;break}t.timeoutHandle=no(wc.bind(null,t,Bl,$l),e);break}wc(t,Bl,$l);break;case 4:if(sc(t,n),(4194240&n)===n)break;for(e=t.eventTimes,o=-1;0<n;){var s=31-ie(n);i=1<<s,(s=e[s])>o&&(o=s),n&=~i}if(n=o,10<(n=(120>(n=Gt()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*El(n/1960))-n)){t.timeoutHandle=no(wc.bind(null,t,Bl,$l),n);break}wc(t,Bl,$l);break;default:throw Error(a(329))}}}return nc(t,Gt()),t.callbackNode===r?oc.bind(null,t):null}function ac(t,e){var r=Fl;return t.current.memoizedState.isDehydrated&&(pc(t,e).flags|=256),2!==(t=bc(t,e))&&(e=Bl,Bl=r,null!==e&&ic(e)),t}function ic(t){null===Bl?Bl=t:Bl.push.apply(Bl,t)}function sc(t,e){for(e&=~Il,e&=~jl,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var r=31-ie(e),n=1<<r;t[r]=-1,e&=~n}}function lc(t){if(0!=(6&Nl))throw Error(a(327));kc();var e=pe(t,0);if(0==(1&e))return nc(t,Gt()),null;var r=bc(t,e);if(0!==t.tag&&2===r){var n=me(t);0!==n&&(e=n,r=ac(t,n))}if(1===r)throw r=Al,pc(t,0),sc(t,e),nc(t,Gt()),r;if(6===r)throw Error(a(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,wc(t,Bl,$l),nc(t,Gt()),null}function cc(t,e){var r=Nl;Nl|=1;try{return t(e)}finally{0===(Nl=r)&&(Wl=Gt()+500,Bo&&$o())}}function dc(t){null!==ql&&0===ql.tag&&0==(6&Nl)&&kc();var e=Nl;Nl|=1;var r=Ml.transition,n=xe;try{if(Ml.transition=null,xe=1,t)return t()}finally{xe=n,Ml.transition=r,0==(6&(Nl=e))&&$o()}}function uc(){Tl=Rl.current,Co(Rl)}function pc(t,e){t.finishedWork=null,t.finishedLanes=0;var r=t.timeoutHandle;if(-1!==r&&(t.timeoutHandle=-1,oo(r)),null!==Ol)for(r=Ol.return;null!==r;){var n=r;switch(ra(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&Lo();break;case 3:ai(),Co(Oo),Co(Po),ui();break;case 5:si(n);break;case 4:ai();break;case 13:case 19:Co(li);break;case 10:_a(n.type._context);break;case 22:case 23:uc()}r=r.return}if(Pl=t,Ol=t=Rc(t.current,null),zl=Tl=e,Ll=0,Al=null,Il=jl=Dl=0,Bl=Fl=null,null!==Ma){for(e=0;e<Ma.length;e++)if(null!==(n=(r=Ma[e]).interleaved)){r.interleaved=null;var o=n.next,a=r.pending;if(null!==a){var i=a.next;a.next=o,n.next=i}r.pending=n}Ma=null}return t}function fc(t,e){for(;;){var r=Ol;try{if(ka(),pi.current=is,vi){for(var n=hi.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}vi=!1}if(mi=0,gi=bi=hi=null,xi=!1,yi=0,Cl.current=null,null===r||null===r.return){Ll=1,Al=e,Ol=null;break}t:{var i=t,s=r.return,l=r,c=e;if(e=zl,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var d=c,u=l,p=u.tag;if(0==(1&u.mode)&&(0===p||11===p||15===p)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var m=gs(s);if(null!==m){m.flags&=-257,vs(m,s,l,0,e),1&m.mode&&bs(i,d,e),c=d;var h=(e=m).updateQueue;if(null===h){var b=new Set;b.add(c),e.updateQueue=b}else h.add(c);break t}if(0==(1&e)){bs(i,d,e),hc();break t}c=Error(a(426))}else if(aa&&1&l.mode){var g=gs(s);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),vs(g,s,l,0,e),ha(ds(c,l));break t}}i=c=ds(c,l),4!==Ll&&(Ll=2),null===Fl?Fl=[i]:Fl.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e,ja(i,ms(0,c,e));break t;case 1:l=c;var v=i.type,x=i.stateNode;if(0==(128&i.flags)&&("function"==typeof v.getDerivedStateFromError||null!==x&&"function"==typeof x.componentDidCatch&&(null===Yl||!Yl.has(x)))){i.flags|=65536,e&=-e,i.lanes|=e,ja(i,hs(i,l,e));break t}}i=i.return}while(null!==i)}yc(r)}catch(t){e=t,Ol===r&&null!==r&&(Ol=r=r.return);continue}break}}function mc(){var t=Sl.current;return Sl.current=is,null===t?is:t}function hc(){0!==Ll&&3!==Ll&&2!==Ll||(Ll=4),null===Pl||0==(268435455&Dl)&&0==(268435455&jl)||sc(Pl,zl)}function bc(t,e){var r=Nl;Nl|=2;var n=mc();for(Pl===t&&zl===e||($l=null,pc(t,e));;)try{gc();break}catch(e){fc(t,e)}if(ka(),Nl=r,Sl.current=n,null!==Ol)throw Error(a(261));return Pl=null,zl=0,Ll}function gc(){for(;null!==Ol;)xc(Ol)}function vc(){for(;null!==Ol&&!Kt();)xc(Ol)}function xc(t){var e=_l(t.alternate,t,Tl);t.memoizedProps=t.pendingProps,null===e?yc(t):Ol=e,Cl.current=null}function yc(t){var e=t;do{var r=e.alternate;if(t=e.return,0==(32768&e.flags)){if(null!==(r=Xs(r,e,Tl)))return void(Ol=r)}else{if(null!==(r=qs(r,e)))return r.flags&=32767,void(Ol=r);if(null===t)return Ll=6,void(Ol=null);t.flags|=32768,t.subtreeFlags=0,t.deletions=null}if(null!==(e=e.sibling))return void(Ol=e);Ol=e=t}while(null!==e);0===Ll&&(Ll=5)}function wc(t,e,r){var n=xe,o=Ml.transition;try{Ml.transition=null,xe=1,function(t,e,r,n){do{kc()}while(null!==ql);if(0!=(6&Nl))throw Error(a(327));r=t.finishedWork;var o=t.finishedLanes;if(null===r)return null;if(t.finishedWork=null,t.finishedLanes=0,r===t.current)throw Error(a(177));t.callbackNode=null,t.callbackPriority=0;var i=r.lanes|r.childLanes;if(function(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0<r;){var o=31-ie(r),a=1<<o;e[o]=0,n[o]=-1,t[o]=-1,r&=~a}}(t,i),t===Pl&&(Ol=Pl=null,zl=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||Xl||(Xl=!0,Pc(ee,(function(){return kc(),null}))),i=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||i){i=Ml.transition,Ml.transition=null;var s=xe;xe=1;var l=Nl;Nl|=4,Cl.current=null,function(t,e){if(to=Ve,fn(t=pn())){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else t:{var n=(r=(r=t.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch(t){r=null;break t}var s=0,l=-1,c=-1,d=0,u=0,p=t,f=null;e:for(;;){for(var m;p!==r||0!==o&&3!==p.nodeType||(l=s+o),p!==i||0!==n&&3!==p.nodeType||(c=s+n),3===p.nodeType&&(s+=p.nodeValue.length),null!==(m=p.firstChild);)f=p,p=m;for(;;){if(p===t)break e;if(f===r&&++d===o&&(l=s),f===i&&++u===n&&(c=s),null!==(m=p.nextSibling))break;f=(p=f).parentNode}p=m}r=-1===l||-1===c?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(eo={focusedElem:t,selectionRange:r},Ve=!1,Zs=e;null!==Zs;)if(t=(e=Zs).child,0!=(1028&e.subtreeFlags)&&null!==t)t.return=e,Zs=t;else for(;null!==Zs;){e=Zs;try{var h=e.alternate;if(0!=(1024&e.flags))switch(e.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var b=h.memoizedProps,g=h.memoizedState,v=e.stateNode,x=v.getSnapshotBeforeUpdate(e.elementType===e.type?b:ga(e.type,b),g);v.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var y=e.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(a(163))}}catch(t){Ec(e,e.return,t)}if(null!==(t=e.sibling)){t.return=e.return,Zs=t;break}Zs=e.return}h=el,el=!1}(t,r),bl(r,t),mn(eo),Ve=!!to,eo=to=null,t.current=r,vl(r,t,o),Qt(),Nl=l,xe=s,Ml.transition=i}else t.current=r;if(Xl&&(Xl=!1,ql=t,Kl=o),0===(i=t.pendingLanes)&&(Yl=null),function(t){if(ae&&"function"==typeof ae.onCommitFiberRoot)try{ae.onCommitFiberRoot(oe,t,void 0,128==(128&t.current.flags))}catch(t){}}(r.stateNode),nc(t,Gt()),null!==e)for(n=t.onRecoverableError,r=0;r<e.length;r++)n((o=e[r]).value,{componentStack:o.stack,digest:o.digest});if(Vl)throw Vl=!1,t=Hl,Hl=null,t;0!=(1&Kl)&&0!==t.tag&&kc(),0!=(1&(i=t.pendingLanes))?t===Gl?Ql++:(Ql=0,Gl=t):Ql=0,$o()}(t,e,r,n)}finally{Ml.transition=o,xe=n}return null}function kc(){if(null!==ql){var t=ye(Kl),e=Ml.transition,r=xe;try{if(Ml.transition=null,xe=16>t?16:t,null===ql)var n=!1;else{if(t=ql,ql=null,Kl=0,0!=(6&Nl))throw Error(a(331));var o=Nl;for(Nl|=4,Zs=t.current;null!==Zs;){var i=Zs,s=i.child;if(0!=(16&Zs.flags)){var l=i.deletions;if(null!==l){for(var c=0;c<l.length;c++){var d=l[c];for(Zs=d;null!==Zs;){var u=Zs;switch(u.tag){case 0:case 11:case 15:rl(8,u,i)}var p=u.child;if(null!==p)p.return=u,Zs=p;else for(;null!==Zs;){var f=(u=Zs).sibling,m=u.return;if(al(u),u===d){Zs=null;break}if(null!==f){f.return=m,Zs=f;break}Zs=m}}}var h=i.alternate;if(null!==h){var b=h.child;if(null!==b){h.child=null;do{var g=b.sibling;b.sibling=null,b=g}while(null!==b)}}Zs=i}}if(0!=(2064&i.subtreeFlags)&&null!==s)s.return=i,Zs=s;else t:for(;null!==Zs;){if(0!=(2048&(i=Zs).flags))switch(i.tag){case 0:case 11:case 15:rl(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,Zs=v;break t}Zs=i.return}}var x=t.current;for(Zs=x;null!==Zs;){var y=(s=Zs).child;if(0!=(2064&s.subtreeFlags)&&null!==y)y.return=s,Zs=y;else t:for(s=x;null!==Zs;){if(0!=(2048&(l=Zs).flags))try{switch(l.tag){case 0:case 11:case 15:nl(9,l)}}catch(t){Ec(l,l.return,t)}if(l===s){Zs=null;break t}var w=l.sibling;if(null!==w){w.return=l.return,Zs=w;break t}Zs=l.return}}if(Nl=o,$o(),ae&&"function"==typeof ae.onPostCommitFiberRoot)try{ae.onPostCommitFiberRoot(oe,t)}catch(t){}n=!0}return n}finally{xe=r,Ml.transition=e}}return!1}function _c(t,e,r){t=Aa(t,e=ms(0,e=ds(r,e),1),1),e=tc(),null!==t&&(ge(t,1,e),nc(t,e))}function Ec(t,e,r){if(3===t.tag)_c(t,t,r);else for(;null!==e;){if(3===e.tag){_c(e,t,r);break}if(1===e.tag){var n=e.stateNode;if("function"==typeof e.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Yl||!Yl.has(n))){e=Aa(e,t=hs(e,t=ds(r,t),1),1),t=tc(),null!==e&&(ge(e,1,t),nc(e,t));break}}e=e.return}}function Sc(t,e,r){var n=t.pingCache;null!==n&&n.delete(e),e=tc(),t.pingedLanes|=t.suspendedLanes&r,Pl===t&&(zl&r)===r&&(4===Ll||3===Ll&&(130023424&zl)===zl&&500>Gt()-Ul?pc(t,0):Il|=r),nc(t,e)}function Cc(t,e){0===e&&(0==(1&t.mode)?e=1:(e=de,0==(130023424&(de<<=1))&&(de=4194304)));var r=tc();null!==(t=Oa(t,e))&&(ge(t,e,r),nc(t,r))}function Mc(t){var e=t.memoizedState,r=0;null!==e&&(r=e.retryLane),Cc(t,r)}function Nc(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,o=t.memoizedState;null!==o&&(r=o.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(a(314))}null!==n&&n.delete(e),Cc(t,r)}function Pc(t,e){return Xt(t,e)}function Oc(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zc(t,e,r,n){return new Oc(t,e,r,n)}function Tc(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Rc(t,e){var r=t.alternate;return null===r?((r=zc(t.tag,e,t.key,t.mode)).elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&t.flags,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function Lc(t,e,r,n,o,i){var s=2;if(n=t,"function"==typeof t)Tc(t)&&(s=1);else if("string"==typeof t)s=5;else t:switch(t){case _:return Ac(r.children,o,i,e);case E:s=8,o|=8;break;case S:return(t=zc(12,r,e,2|o)).elementType=S,t.lanes=i,t;case P:return(t=zc(13,r,e,o)).elementType=P,t.lanes=i,t;case O:return(t=zc(19,r,e,o)).elementType=O,t.lanes=i,t;case R:return Dc(r,o,i,e);default:if("object"==typeof t&&null!==t)switch(t.$$typeof){case C:s=10;break t;case M:s=9;break t;case N:s=11;break t;case z:s=14;break t;case T:s=16,n=null;break t}throw Error(a(130,null==t?t:typeof t,""))}return(e=zc(s,r,e,o)).elementType=t,e.type=n,e.lanes=i,e}function Ac(t,e,r,n){return(t=zc(7,t,n,e)).lanes=r,t}function Dc(t,e,r,n){return(t=zc(22,t,n,e)).elementType=R,t.lanes=r,t.stateNode={isHidden:!1},t}function jc(t,e,r){return(t=zc(6,t,null,e)).lanes=r,t}function Ic(t,e,r){return(e=zc(4,null!==t.children?t.children:[],t.key,e)).lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Fc(t,e,r,n,o){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=be(0),this.expirationTimes=be(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=be(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bc(t,e,r,n,o,a,i,s,l){return t=new Fc(t,e,r,s,l),1===e?(e=1,!0===a&&(e|=8)):e=0,a=zc(3,null,null,e),t.current=a,a.stateNode=t,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ta(a),t}function Uc(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==n?null:""+n,children:t,containerInfo:e,implementation:r}}function Wc(t){if(!t)return No;t:{if(Wt(t=t._reactInternals)!==t||1!==t.tag)throw Error(a(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break t;case 1:if(Ro(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break t}}e=e.return}while(null!==e);throw Error(a(171))}if(1===t.tag){var r=t.type;if(Ro(r))return Do(t,r,e)}return e}function $c(t,e,r,n,o,a,i,s,l){return(t=Bc(r,n,!0,t,0,a,0,s,l)).context=Wc(null),r=t.current,(a=La(n=tc(),o=ec(r))).callback=null!=e?e:null,Aa(r,a,o),t.current.lanes=o,ge(t,o,n),nc(t,n),t}function Vc(t,e,r,n){var o=e.current,a=tc(),i=ec(o);return r=Wc(r),null===e.context?e.context=r:e.pendingContext=r,(e=La(a,i)).payload={element:t},null!==(n=void 0===n?null:n)&&(e.callback=n),null!==(t=Aa(o,e,i))&&(rc(t,o,i,a),Da(t,o,i)),i}function Hc(t){return(t=t.current).child?(t.child.tag,t.child.stateNode):null}function Yc(t,e){if(null!==(t=t.memoizedState)&&null!==t.dehydrated){var r=t.retryLane;t.retryLane=0!==r&&r<e?r:e}}function Xc(t,e){Yc(t,e),(t=t.alternate)&&Yc(t,e)}_l=function(t,e,r){if(null!==t)if(t.memoizedProps!==e.pendingProps||Oo.current)ys=!0;else{if(0==(t.lanes&r)&&0==(128&e.flags))return ys=!1,function(t,e,r){switch(e.tag){case 3:Os(e),ma();break;case 5:ii(e);break;case 1:Ro(e.type)&&jo(e);break;case 4:oi(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,o=e.memoizedProps.value;Mo(va,n._currentValue),n._currentValue=o;break;case 13:if(null!==(n=e.memoizedState))return null!==n.dehydrated?(Mo(li,1&li.current),e.flags|=128,null):0!=(r&e.child.childLanes)?js(t,e,r):(Mo(li,1&li.current),null!==(t=Vs(t,e,r))?t.sibling:null);Mo(li,1&li.current);break;case 19:if(n=0!=(r&e.childLanes),0!=(128&t.flags)){if(n)return Ws(t,e,r);e.flags|=128}if(null!==(o=e.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Mo(li,li.current),n)break;return null;case 22:case 23:return e.lanes=0,Ss(t,e,r)}return Vs(t,e,r)}(t,e,r);ys=0!=(131072&t.flags)}else ys=!1,aa&&0!=(1048576&e.flags)&&ta(e,Xo,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;$s(t,e),t=e.pendingProps;var o=To(e,Po.current);Sa(e,r),o=Ei(null,e,n,t,o,r);var i=Si();return e.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Ro(n)?(i=!0,jo(e)):i=!1,e.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ta(e),o.updater=Wa,e.stateNode=o,o._reactInternals=e,Ya(e,n,t,r),e=Ps(null,e,n,!0,i,r)):(e.tag=0,aa&&i&&ea(e),ws(null,e,o,r),e=e.child),e;case 16:n=e.elementType;t:{switch($s(t,e),t=e.pendingProps,n=(o=n._init)(n._payload),e.type=n,o=e.tag=function(t){if("function"==typeof t)return Tc(t)?1:0;if(null!=t){if((t=t.$$typeof)===N)return 11;if(t===z)return 14}return 2}(n),t=ga(n,t),o){case 0:e=Ms(null,e,n,t,r);break t;case 1:e=Ns(null,e,n,t,r);break t;case 11:e=ks(null,e,n,t,r);break t;case 14:e=_s(null,e,n,ga(n.type,t),r);break t}throw Error(a(306,n,""))}return e;case 0:return n=e.type,o=e.pendingProps,Ms(t,e,n,o=e.elementType===n?o:ga(n,o),r);case 1:return n=e.type,o=e.pendingProps,Ns(t,e,n,o=e.elementType===n?o:ga(n,o),r);case 3:t:{if(Os(e),null===t)throw Error(a(387));n=e.pendingProps,o=(i=e.memoizedState).element,Ra(t,e),Ia(e,n,null,r);var s=e.memoizedState;if(n=s.element,i.isDehydrated){if(i={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=i,e.memoizedState=i,256&e.flags){e=zs(t,e,n,r,o=ds(Error(a(423)),e));break t}if(n!==o){e=zs(t,e,n,r,o=ds(Error(a(424)),e));break t}for(oa=co(e.stateNode.containerInfo.firstChild),na=e,aa=!0,ia=null,r=Za(e,null,n,r),e.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(ma(),n===o){e=Vs(t,e,r);break t}ws(t,e,n,r)}e=e.child}return e;case 5:return ii(e),null===t&&da(e),n=e.type,o=e.pendingProps,i=null!==t?t.memoizedProps:null,s=o.children,ro(n,o)?s=null:null!==i&&ro(n,i)&&(e.flags|=32),Cs(t,e),ws(t,e,s,r),e.child;case 6:return null===t&&da(e),null;case 13:return js(t,e,r);case 4:return oi(e,e.stateNode.containerInfo),n=e.pendingProps,null===t?e.child=Ga(e,null,n,r):ws(t,e,n,r),e.child;case 11:return n=e.type,o=e.pendingProps,ks(t,e,n,o=e.elementType===n?o:ga(n,o),r);case 7:return ws(t,e,e.pendingProps,r),e.child;case 8:case 12:return ws(t,e,e.pendingProps.children,r),e.child;case 10:t:{if(n=e.type._context,o=e.pendingProps,i=e.memoizedProps,s=o.value,Mo(va,n._currentValue),n._currentValue=s,null!==i)if(sn(i.value,s)){if(i.children===o.children&&!Oo.current){e=Vs(t,e,r);break t}}else for(null!==(i=e.child)&&(i.return=e);null!==i;){var l=i.dependencies;if(null!==l){s=i.child;for(var c=l.firstContext;null!==c;){if(c.context===n){if(1===i.tag){(c=La(-1,r&-r)).tag=2;var d=i.updateQueue;if(null!==d){var u=(d=d.shared).pending;null===u?c.next=c:(c.next=u.next,u.next=c),d.pending=c}}i.lanes|=r,null!==(c=i.alternate)&&(c.lanes|=r),Ea(i.return,r,e),l.lanes|=r;break}c=c.next}}else if(10===i.tag)s=i.type===e.type?null:i.child;else if(18===i.tag){if(null===(s=i.return))throw Error(a(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Ea(s,r,e),s=i.sibling}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===e){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}ws(t,e,o.children,r),e=e.child}return e;case 9:return o=e.type,n=e.pendingProps.children,Sa(e,r),n=n(o=Ca(o)),e.flags|=1,ws(t,e,n,r),e.child;case 14:return o=ga(n=e.type,e.pendingProps),_s(t,e,n,o=ga(n.type,o),r);case 15:return Es(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:ga(n,o),$s(t,e),e.tag=1,Ro(n)?(t=!0,jo(e)):t=!1,Sa(e,r),Va(e,n,o),Ya(e,n,o,r),Ps(null,e,n,!0,t,r);case 19:return Ws(t,e,r);case 22:return Ss(t,e,r)}throw Error(a(156,e.tag))};var qc="function"==typeof reportError?reportError:function(t){console.error(t)};function Kc(t){this._internalRoot=t}function Qc(t){this._internalRoot=t}function Gc(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)}function Zc(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function Jc(){}function td(t,e,r,n,o){var a=r._reactRootContainer;if(a){var i=a;if("function"==typeof o){var s=o;o=function(){var t=Hc(i);s.call(t)}}Vc(e,i,t,o)}else i=function(t,e,r,n,o){if(o){if("function"==typeof n){var a=n;n=function(){var t=Hc(i);a.call(t)}}var i=$c(e,n,t,0,null,!1,0,"",Jc);return t._reactRootContainer=i,t[ho]=i.current,Wn(8===t.nodeType?t.parentNode:t),dc(),i}for(;o=t.lastChild;)t.removeChild(o);if("function"==typeof n){var s=n;n=function(){var t=Hc(l);s.call(t)}}var l=Bc(t,0,!1,null,0,!1,0,"",Jc);return t._reactRootContainer=l,t[ho]=l.current,Wn(8===t.nodeType?t.parentNode:t),dc((function(){Vc(e,l,r,n)})),l}(r,e,t,o,n);return Hc(i)}Qc.prototype.render=Kc.prototype.render=function(t){var e=this._internalRoot;if(null===e)throw Error(a(409));Vc(t,e,null,null)},Qc.prototype.unmount=Kc.prototype.unmount=function(){var t=this._internalRoot;if(null!==t){this._internalRoot=null;var e=t.containerInfo;dc((function(){Vc(null,t,null,null)})),e[ho]=null}},Qc.prototype.unstable_scheduleHydration=function(t){if(t){var e=Ee();t={blockedOn:null,target:t,priority:e};for(var r=0;r<Re.length&&0!==e&&e<Re[r].priority;r++);Re.splice(r,0,t),0===r&&je(t)}},we=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var r=ue(e.pendingLanes);0!==r&&(ve(e,1|r),nc(e,Gt()),0==(6&Nl)&&(Wl=Gt()+500,$o()))}break;case 13:dc((function(){var e=Oa(t,1);if(null!==e){var r=tc();rc(e,t,1,r)}})),Xc(t,1)}},ke=function(t){if(13===t.tag){var e=Oa(t,134217728);null!==e&&rc(e,t,134217728,tc()),Xc(t,134217728)}},_e=function(t){if(13===t.tag){var e=ec(t),r=Oa(t,e);null!==r&&rc(r,t,e,tc()),Xc(t,e)}},Ee=function(){return xe},Se=function(t,e){var r=xe;try{return xe=t,e()}finally{xe=r}},kt=function(t,e,r){switch(e){case"input":if(Z(t,r),e=r.name,"radio"===r.type&&null!=e){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<r.length;e++){var n=r[e];if(n!==t&&n.form===t.form){var o=ko(n);if(!o)throw Error(a(90));X(n),Z(n,o)}}}break;case"textarea":at(t,r);break;case"select":null!=(e=r.value)&&rt(t,!!r.multiple,e,!1)}},Nt=cc,Pt=dc;var ed={usingClientEntryPoint:!1,Events:[yo,wo,ko,Ct,Mt,cc]},rd={findFiberByHostInstance:xo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nd={bundleType:rd.bundleType,version:rd.version,rendererPackageName:rd.rendererPackageName,rendererConfig:rd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:y.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return null===(t=Ht(t))?null:t.stateNode},findFiberByHostInstance:rd.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var od=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!od.isDisabled&&od.supportsFiber)try{oe=od.inject(nd),ae=od}catch(dt){}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ed,e.createPortal=function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Gc(e))throw Error(a(200));return Uc(t,e,null,r)},e.createRoot=function(t,e){if(!Gc(t))throw Error(a(299));var r=!1,n="",o=qc;return null!=e&&(!0===e.unstable_strictMode&&(r=!0),void 0!==e.identifierPrefix&&(n=e.identifierPrefix),void 0!==e.onRecoverableError&&(o=e.onRecoverableError)),e=Bc(t,1,!1,null,0,r,0,n,o),t[ho]=e.current,Wn(8===t.nodeType?t.parentNode:t),new Kc(e)},e.findDOMNode=function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternals;if(void 0===e){if("function"==typeof t.render)throw Error(a(188));throw t=Object.keys(t).join(","),Error(a(268,t))}return null===(t=Ht(e))?null:t.stateNode},e.flushSync=function(t){return dc(t)},e.hydrate=function(t,e,r){if(!Zc(e))throw Error(a(200));return td(null,t,e,!0,r)},e.hydrateRoot=function(t,e,r){if(!Gc(t))throw Error(a(405));var n=null!=r&&r.hydratedSources||null,o=!1,i="",s=qc;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(i=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),e=$c(e,null,t,1,null!=r?r:null,o,0,i,s),t[ho]=e.current,Wn(t),n)for(t=0;t<n.length;t++)o=(o=(r=n[t])._getVersion)(r._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[r,o]:e.mutableSourceEagerHydrationData.push(r,o);return new Qc(e)},e.render=function(t,e,r){if(!Zc(e))throw Error(a(200));return td(null,t,e,!1,r)},e.unmountComponentAtNode=function(t){if(!Zc(t))throw Error(a(40));return!!t._reactRootContainer&&(dc((function(){td(null,null,t,!1,(function(){t._reactRootContainer=null,t[ho]=null}))})),!0)},e.unstable_batchedUpdates=cc,e.unstable_renderSubtreeIntoContainer=function(t,e,r,n){if(!Zc(r))throw Error(a(200));if(null==t||void 0===t._reactInternals)throw Error(a(38));return td(t,e,r,!1,n)},e.version="18.2.0-next-9e3b772b8-20220608"},745:(t,e,r)=>{"use strict";var n=r(935);e.s=n.createRoot,n.hydrateRoot},935:(t,e,r)=>{"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}(),t.exports=r(448)},251:(t,e,r)=>{"use strict";var n=r(294),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,r){var n,a={},c=null,d=null;for(n in void 0!==r&&(c=""+r),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(d=e.ref),e)i.call(e,n)&&!l.hasOwnProperty(n)&&(a[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps)void 0===a[n]&&(a[n]=e[n]);return{$$typeof:o,type:t,key:c,ref:d,props:a,_owner:s.current}}e.Fragment=a,e.jsx=c,e.jsxs=c},408:(t,e)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,b={};function g(t,e,r){this.props=t,this.context=e,this.refs=b,this.updater=r||m}function v(){}function x(t,e,r){this.props=t,this.context=e,this.refs=b,this.updater=r||m}g.prototype.isReactComponent={},g.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},g.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},v.prototype=g.prototype;var y=x.prototype=new v;y.constructor=x,h(y,g.prototype),y.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,_={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function S(t,e,n){var o,a={},i=null,s=null;if(null!=e)for(o in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(i=""+e.key),e)k.call(e,o)&&!E.hasOwnProperty(o)&&(a[o]=e[o]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var c=Array(l),d=0;d<l;d++)c[d]=arguments[d+2];a.children=c}if(t&&t.defaultProps)for(o in l=t.defaultProps)void 0===a[o]&&(a[o]=l[o]);return{$$typeof:r,type:t,key:i,ref:s,props:a,_owner:_.current}}function C(t){return"object"==typeof t&&null!==t&&t.$$typeof===r}var M=/\/+/g;function N(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(t){return e[t]}))}(""+t.key):e.toString(36)}function P(t,e,o,a,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case r:case n:l=!0}}if(l)return i=i(l=t),t=""===a?"."+N(l,0):a,w(i)?(o="",null!=t&&(o=t.replace(M,"$&/")+"/"),P(i,e,o,"",(function(t){return t}))):null!=i&&(C(i)&&(i=function(t,e){return{$$typeof:r,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(i,o+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(M,"$&/")+"/")+t)),e.push(i)),1;if(l=0,a=""===a?".":a+":",w(t))for(var c=0;c<t.length;c++){var d=a+N(s=t[c],c);l+=P(s,e,o,d,i)}else if(d=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=f&&t[f]||t["@@iterator"])?t:null}(t),"function"==typeof d)for(t=d.call(t),c=0;!(s=t.next()).done;)l+=P(s=s.value,e,o,d=a+N(s,c++),i);else if("object"===s)throw e=String(t),Error("Objects are not valid as a React child (found: "+("[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return l}function O(t,e,r){if(null==t)return t;var n=[],o=0;return P(t,n,"","",(function(t){return e.call(r,t,o++)})),n}function z(t){if(-1===t._status){var e=t._result;(e=e()).then((function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)}),(function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)})),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var T={current:null},R={transition:null},L={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:R,ReactCurrentOwner:_};e.Children={map:O,forEach:function(t,e,r){O(t,(function(){e.apply(this,arguments)}),r)},count:function(t){var e=0;return O(t,(function(){e++})),e},toArray:function(t){return O(t,(function(t){return t}))||[]},only:function(t){if(!C(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},e.Component=g,e.Fragment=o,e.Profiler=i,e.PureComponent=x,e.StrictMode=a,e.Suspense=d,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,e.cloneElement=function(t,e,n){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=h({},t.props),a=t.key,i=t.ref,s=t._owner;if(null!=e){if(void 0!==e.ref&&(i=e.ref,s=_.current),void 0!==e.key&&(a=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in e)k.call(e,c)&&!E.hasOwnProperty(c)&&(o[c]=void 0===e[c]&&void 0!==l?l[c]:e[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){l=Array(c);for(var d=0;d<c;d++)l[d]=arguments[d+2];o.children=l}return{$$typeof:r,type:t.type,key:a,ref:i,props:o,_owner:s}},e.createContext=function(t){return(t={$$typeof:l,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:t},t.Consumer=t},e.createElement=S,e.createFactory=function(t){var e=S.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:c,render:t}},e.isValidElement=C,e.lazy=function(t){return{$$typeof:p,_payload:{_status:-1,_result:t},_init:z}},e.memo=function(t,e){return{$$typeof:u,type:t,compare:void 0===e?null:e}},e.startTransition=function(t){var e=R.transition;R.transition={};try{t()}finally{R.transition=e}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function(t,e){return T.current.useCallback(t,e)},e.useContext=function(t){return T.current.useContext(t)},e.useDebugValue=function(){},e.useDeferredValue=function(t){return T.current.useDeferredValue(t)},e.useEffect=function(t,e){return T.current.useEffect(t,e)},e.useId=function(){return T.current.useId()},e.useImperativeHandle=function(t,e,r){return T.current.useImperativeHandle(t,e,r)},e.useInsertionEffect=function(t,e){return T.current.useInsertionEffect(t,e)},e.useLayoutEffect=function(t,e){return T.current.useLayoutEffect(t,e)},e.useMemo=function(t,e){return T.current.useMemo(t,e)},e.useReducer=function(t,e,r){return T.current.useReducer(t,e,r)},e.useRef=function(t){return T.current.useRef(t)},e.useState=function(t){return T.current.useState(t)},e.useSyncExternalStore=function(t,e,r){return T.current.useSyncExternalStore(t,e,r)},e.useTransition=function(){return T.current.useTransition()},e.version="18.2.0"},294:(t,e,r)=>{"use strict";t.exports=r(408)},893:(t,e,r)=>{"use strict";t.exports=r(251)},53:(t,e)=>{"use strict";function r(t,e){var r=t.length;t.push(e);t:for(;0<r;){var n=r-1>>>1,o=t[n];if(!(0<a(o,e)))break t;t[n]=e,t[r]=o,r=n}}function n(t){return 0===t.length?null:t[0]}function o(t){if(0===t.length)return null;var e=t[0],r=t.pop();if(r!==e){t[0]=r;t:for(var n=0,o=t.length,i=o>>>1;n<i;){var s=2*(n+1)-1,l=t[s],c=s+1,d=t[c];if(0>a(l,r))c<o&&0>a(d,l)?(t[n]=d,t[c]=r,n=c):(t[n]=l,t[s]=r,n=s);else{if(!(c<o&&0>a(d,r)))break t;t[n]=d,t[c]=r,n=c}}}return e}function a(t,e){var r=t.sortIndex-e.sortIndex;return 0!==r?r:t.id-e.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var c=[],d=[],u=1,p=null,f=3,m=!1,h=!1,b=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,x="undefined"!=typeof setImmediate?setImmediate:null;function y(t){for(var e=n(d);null!==e;){if(null===e.callback)o(d);else{if(!(e.startTime<=t))break;o(d),e.sortIndex=e.expirationTime,r(c,e)}e=n(d)}}function w(t){if(b=!1,y(t),!h)if(null!==n(c))h=!0,R(k);else{var e=n(d);null!==e&&L(w,e.startTime-t)}}function k(t,r){h=!1,b&&(b=!1,v(C),C=-1),m=!0;var a=f;try{for(y(r),p=n(c);null!==p&&(!(p.expirationTime>r)||t&&!P());){var i=p.callback;if("function"==typeof i){p.callback=null,f=p.priorityLevel;var s=i(p.expirationTime<=r);r=e.unstable_now(),"function"==typeof s?p.callback=s:p===n(c)&&o(c),y(r)}else o(c);p=n(c)}if(null!==p)var l=!0;else{var u=n(d);null!==u&&L(w,u.startTime-r),l=!1}return l}finally{p=null,f=a,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,E=!1,S=null,C=-1,M=5,N=-1;function P(){return!(e.unstable_now()-N<M)}function O(){if(null!==S){var t=e.unstable_now();N=t;var r=!0;try{r=S(!0,t)}finally{r?_():(E=!1,S=null)}}else E=!1}if("function"==typeof x)_=function(){x(O)};else if("undefined"!=typeof MessageChannel){var z=new MessageChannel,T=z.port2;z.port1.onmessage=O,_=function(){T.postMessage(null)}}else _=function(){g(O,0)};function R(t){S=t,E||(E=!0,_())}function L(t,r){C=g((function(){t(e.unstable_now())}),r)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){h||m||(h=!0,R(k))},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<t?Math.floor(1e3/t):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(t){switch(f){case 1:case 2:case 3:var e=3;break;default:e=f}var r=f;f=e;try{return t()}finally{f=r}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var r=f;f=t;try{return e()}finally{f=r}},e.unstable_scheduleCallback=function(t,o,a){var i=e.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?i+a:i,t){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return t={id:u++,callback:o,priorityLevel:t,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>i?(t.sortIndex=a,r(d,t),null===n(c)&&t===n(d)&&(b?(v(C),C=-1):b=!0,L(w,a-i))):(t.sortIndex=s,r(c,t),h||m||(h=!0,R(k))),t},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(t){var e=f;return function(){var r=f;f=e;try{return t.apply(this,arguments)}finally{f=r}}}},840:(t,e,r)=>{"use strict";t.exports=r(53)},379:t=>{"use strict";var e=[];function r(t){for(var r=-1,n=0;n<e.length;n++)if(e[n].identifier===t){r=n;break}return r}function n(t,n){for(var a={},i=[],s=0;s<t.length;s++){var l=t[s],c=n.base?l[0]+n.base:l[0],d=a[c]||0,u="".concat(c," ").concat(d);a[c]=d+1;var p=r(u),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)e[p].references++,e[p].updater(f);else{var m=o(f,n);n.byIndex=s,e.splice(s,0,{identifier:u,updater:m,references:1})}i.push(u)}return i}function o(t,e){var r=e.domAPI(e);return r.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;r.update(t=e)}else r.remove()}}t.exports=function(t,o){var a=n(t=t||[],o=o||{});return function(t){t=t||[];for(var i=0;i<a.length;i++){var s=r(a[i]);e[s].references--}for(var l=n(t,o),c=0;c<a.length;c++){var d=r(a[c]);0===e[d].references&&(e[d].updater(),e.splice(d,1))}a=l}}},569:t=>{"use strict";var e={};t.exports=function(t,r){var n=function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},216:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},565:(t,e,r)=>{"use strict";t.exports=function(t){var e=r.nc;e&&t.setAttribute("nonce",e)}},795:t=>{"use strict";t.exports=function(t){var e=t.insertStyleElement(t);return{update:function(r){!function(t,e,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,o&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var a=r.sourceMap;a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleTagTransform(n,t,e.options)}(e,t,r)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},589:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},473:t=>{"use strict";t.exports=function(){}},204:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%272%27 fill=%27%23fff%27/%3e%3c/svg%3e"},609:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27%2386b7fe%27/%3e%3c/svg%3e"},469:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27%23fff%27/%3e%3c/svg%3e"},486:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27rgba%280, 0, 0, 0.25%29%27/%3e%3c/svg%3e"},144:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 12%27 width=%2712%27 height=%2712%27 fill=%27none%27 stroke=%27%23dc3545%27%3e%3ccircle cx=%276%27 cy=%276%27 r=%274.5%27/%3e%3cpath stroke-linejoin=%27round%27 d=%27M5.8 3.6h.4L6 6.5z%27/%3e%3ccircle cx=%276%27 cy=%278.2%27 r=%27.6%27 fill=%27%23dc3545%27 stroke=%27none%27/%3e%3c/svg%3e"},254:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23000%27%3e%3cpath d=%27M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z%27/%3e%3c/svg%3e"},740:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%230c63e4%27%3e%3cpath fill-rule=%27evenodd%27 d=%27M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z%27/%3e%3c/svg%3e"},460:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23212529%27%3e%3cpath fill-rule=%27evenodd%27 d=%27M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z%27/%3e%3c/svg%3e"},647:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23fff%27%3e%3cpath d=%27M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z%27/%3e%3c/svg%3e"},692:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23fff%27%3e%3cpath d=%27M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z%27/%3e%3c/svg%3e"},770:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3e%3cpath fill=%27none%27 stroke=%27%23343a40%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27m2 5 6 6 6-6%27/%3e%3c/svg%3e"},931:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3e%3cpath fill=%27none%27 stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%273%27 d=%27M6 10h8%27/%3e%3c/svg%3e"},199:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3e%3cpath fill=%27none%27 stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%273%27 d=%27m6 10 3 3 6-6%27/%3e%3c/svg%3e"},217:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 30 30%27%3e%3cpath stroke=%27rgba%280, 0, 0, 0.55%29%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 stroke-width=%272%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e"},956:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 30 30%27%3e%3cpath stroke=%27rgba%28255, 255, 255, 0.55%29%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 stroke-width=%272%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e"},122:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 8 8%27%3e%3cpath fill=%27%23198754%27 d=%27M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z%27/%3e%3c/svg%3e"},61:(t,e,r)=>{var n=r(698).default;function o(){"use strict";t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,a=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",d=s.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new N(n||[]);return i(a,"_invoke",{value:E(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var m={};function h(){}function b(){}function g(){}var v={};u(v,l,(function(){return this}));var x=Object.getPrototypeOf,y=x&&x(x(P([])));y&&y!==r&&a.call(y,l)&&(v=y);var w=g.prototype=h.prototype=Object.create(v);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(o,i,s,l){var c=f(t[o],t,i);if("throw"!==c.type){var d=c.arg,u=d.value;return u&&"object"==n(u)&&a.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,s,l)}),(function(t){r("throw",t,s,l)})):e.resolve(u).then((function(t){d.value=t,s(d)}),(function(t){return r("throw",t,s,l)}))}l(c.arg)}var o;i(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(a,a):a()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var s=S(i,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=f(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function S(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,m;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,m):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function P(t){if(t){var e=t[l];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(a.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:O}}function O(){return{value:void 0,done:!0}}return b.prototype=g,i(w,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:b,configurable:!0}),b.displayName=u(g,d,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,d,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},k(_.prototype),u(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new _(p(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(w),u(w,d,"Generator"),u(w,l,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(M),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=a.call(o,"catchLoc"),l=a.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),M(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;M(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),m}},e}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},698:t=>{function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},687:(t,e,r)=>{var n=r(61)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;var a=n[t]={id:t,exports:{}};return r[t](a,a.exports,o),a.exports}o.m=r,o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var a=Object.create(null);o.r(a);var i={};t=t||[null,e({}),e([]),e(e)];for(var s=2&n&&r;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((t=>i[t]=()=>r[t]));return i.default=()=>r,o.d(a,i),a},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;o.g.importScripts&&(t=o.g.location+"");var e=o.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");r.length&&(t=r[r.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t})(),o.b=document.baseURI||self.location.href,o.nc=void 0,(()=>{"use strict";var t,e=o(294),r=o.t(e,2),n=o(745);function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t,e){if(t){if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(t,e)||i(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l.apply(this,arguments)}!function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(t||(t={}));const c="popstate";function d(t,e){if(!1===t||null==t)throw new Error(e)}function u(t){return{usr:t.state,key:t.key}}function p(t,e,r,n){return void 0===r&&(r=null),l({pathname:"string"==typeof t?t:t.pathname,search:"",hash:""},"string"==typeof e?m(e):e,{state:r,key:e&&e.key||n||Math.random().toString(36).substr(2,8)})}function f(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&"?"!==r&&(e+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function m(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function h(t){let e="undefined"!=typeof window&&void 0!==window.location&&"null"!==window.location.origin?window.location.origin:window.location.href,r="string"==typeof t?t:f(t);return d(e,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,e)}var b;function g(t,e,r){void 0===r&&(r="/");let n=C(("string"==typeof e?m(e):e).pathname||"/",r);if(null==n)return null;let o=v(t);!function(t){t.sort(((t,e)=>t.score!==e.score?e.score-t.score:function(t,e){return t.length===e.length&&t.slice(0,-1).every(((t,r)=>t===e[r]))?t[t.length-1]-e[e.length-1]:0}(t.routesMeta.map((t=>t.childrenIndex)),e.routesMeta.map((t=>t.childrenIndex)))))}(o);let a=null;for(let t=0;null==a&&t<o.length;++t)a=_(o[t],S(n));return a}function v(t,e,r,n){void 0===e&&(e=[]),void 0===r&&(r=[]),void 0===n&&(n="");let o=(t,o,a)=>{let i={relativePath:void 0===a?t.path||"":a,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};i.relativePath.startsWith("/")&&(d(i.relativePath.startsWith(n),'Absolute route path "'+i.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(n.length));let s=z([n,i.relativePath]),l=r.concat(i);t.children&&t.children.length>0&&(d(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),v(t.children,e,l,s)),(null!=t.path||t.index)&&e.push({path:s,score:k(s,t.index),routesMeta:l})};return t.forEach(((t,e)=>{var r;if(""!==t.path&&null!=(r=t.path)&&r.includes("?"))for(let r of x(t.path))o(t,e,r);else o(t,e)})),e}function x(t){let e=t.split("/");if(0===e.length)return[];let[r,...n]=e,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(0===n.length)return o?[a,""]:[a];let i=x(n.join("/")),s=[];return s.push(...i.map((t=>""===t?a:[a,t].join("/")))),o&&s.push(...i),s.map((e=>t.startsWith("/")&&""===e?"/":e))}!function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"}(b||(b={}));const y=/^:\w+$/,w=t=>"*"===t;function k(t,e){let r=t.split("/"),n=r.length;return r.some(w)&&(n+=-2),e&&(n+=2),r.filter((t=>!w(t))).reduce(((t,e)=>t+(y.test(e)?3:""===e?1:10)),n)}function _(t,e){let{routesMeta:r}=t,n={},o="/",a=[];for(let t=0;t<r.length;++t){let i=r[t],s=t===r.length-1,l="/"===o?e:e.slice(o.length)||"/",c=E({path:i.relativePath,caseSensitive:i.caseSensitive,end:s},l);if(!c)return null;Object.assign(n,c.params);let d=i.route;a.push({params:n,pathname:z([o,c.pathname]),pathnameBase:T(z([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=z([o,c.pathnameBase]))}return a}function E(t,e){"string"==typeof t&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=function(t,e,r){void 0===e&&(e=!1),void 0===r&&(r=!0),M("*"===t||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were "'+t.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+t.replace(/\*$/,"/*")+'".');let n=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,((t,e)=>(n.push(e),"/([^\\/]+)")));return t.endsWith("*")?(n.push("*"),o+="*"===t||"/*"===t?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":""!==t&&"/"!==t&&(o+="(?:(?=\\/|$))"),[new RegExp(o,e?void 0:"i"),n]}(t.path,t.caseSensitive,t.end),o=e.match(r);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:n.reduce(((t,e,r)=>{if("*"===e){let t=s[r]||"";i=a.slice(0,a.length-t.length).replace(/(.)\/+$/,"$1")}return t[e]=function(t,e){try{return decodeURIComponent(t)}catch(r){return M(!1,'The value for the URL param "'+e+'" will not be decoded because the string "'+t+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+r+")."),t}}(s[r]||"",e),t}),{}),pathname:a,pathnameBase:i,pattern:t}}function S(t){try{return decodeURI(t)}catch(e){return M(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+e+")."),t}}function C(t,e){if("/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&"/"!==n?null:t.slice(r)||"/"}function M(t,e){if(!t){"undefined"!=typeof console&&console.warn(e);try{throw new Error(e)}catch(t){}}}function N(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified `to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function P(t){return t.filter(((t,e)=>0===e||t.route.path&&t.route.path.length>0))}function O(t,e,r,n){let o;void 0===n&&(n=!1),"string"==typeof t?o=m(t):(o=l({},t),d(!o.pathname||!o.pathname.includes("?"),N("?","pathname","search",o)),d(!o.pathname||!o.pathname.includes("#"),N("#","pathname","hash",o)),d(!o.search||!o.search.includes("#"),N("#","search","hash",o)));let a,i=""===t||""===o.pathname,s=i?"/":o.pathname;if(n||null==s)a=r;else{let t=e.length-1;if(s.startsWith("..")){let e=s.split("/");for(;".."===e[0];)e.shift(),t-=1;o.pathname=e.join("/")}a=t>=0?e[t]:"/"}let c=function(t,e){void 0===e&&(e="/");let{pathname:r,search:n="",hash:o=""}="string"==typeof t?m(t):t,a=r?r.startsWith("/")?r:function(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach((t=>{".."===t?r.length>1&&r.pop():"."!==t&&r.push(t)})),r.length>1?r.join("/"):"/"}(r,e):e;return{pathname:a,search:R(n),hash:L(o)}}(o,a),u=s&&"/"!==s&&s.endsWith("/"),p=(i||"."===s)&&r.endsWith("/");return c.pathname.endsWith("/")||!u&&!p||(c.pathname+="/"),c}const z=t=>t.join("/").replace(/\/\/+/g,"/"),T=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),R=t=>t&&"?"!==t?t.startsWith("?")?t:"?"+t:"",L=t=>t&&"#"!==t?t.startsWith("#")?t:"#"+t:"";class A extends Error{}class D{constructor(t,e,r,n){void 0===n&&(n=!1),this.status=t,this.statusText=e||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function j(t){return t instanceof D}const I=["post","put","patch","delete"],F=(new Set(I),["get",...I]);function B(){return B=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},B.apply(this,arguments)}new Set(F),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;"function"==typeof Object.is&&Object.is;const{useState:U,useEffect:W,useLayoutEffect:$,useDebugValue:V}=r;"undefined"==typeof window||void 0===window.document||window.document.createElement,r.useSyncExternalStore;const H=e.createContext(null),Y=e.createContext(null),X=e.createContext(null),q=e.createContext(null),K=e.createContext(null),Q=e.createContext({outlet:null,matches:[]}),G=e.createContext(null);function Z(){return null!=e.useContext(K)}function J(){return Z()||d(!1),e.useContext(K).location}function tt(t,r){let{relative:n}=void 0===r?{}:r,{matches:o}=e.useContext(Q),{pathname:a}=J(),i=JSON.stringify(P(o).map((t=>t.pathnameBase)));return e.useMemo((()=>O(t,JSON.parse(i),a,"path"===n)),[t,i,a,n])}function et(){let t=function(){var t;let r=e.useContext(G),n=function(t){let r=e.useContext(X);return r||d(!1),r}(at.UseRouteError),o=e.useContext(Q),a=o.matches[o.matches.length-1];return r||(o||d(!1),!a.route.id&&d(!1),null==(t=n.errors)?void 0:t[a.route.id])}(),r=j(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,o="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:o},i={padding:"2px 4px",backgroundColor:o};return e.createElement(e.Fragment,null,e.createElement("h2",null,"Unhandled Thrown Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},r),n?e.createElement("pre",{style:a},n):null,e.createElement("p",null,"💿 Hey developer 👋"),e.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",e.createElement("code",{style:i},"errorElement")," props on ",e.createElement("code",{style:i},"<Route>")))}class rt extends e.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location?{error:t.error,location:t.location}:{error:t.error||e.error,location:e.location}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return this.state.error?e.createElement(G.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}function nt(t){let{routeContext:r,match:n,children:o}=t,a=e.useContext(H);return a&&n.route.errorElement&&(a._deepestRenderedBoundaryId=n.route.id),e.createElement(Q.Provider,{value:r},o)}var ot,at,it;function st(t){d(!1)}function lt(r){let{basename:n="/",children:o=null,location:a,navigationType:i=t.Pop,navigator:s,static:l=!1}=r;Z()&&d(!1);let c=n.replace(/^\/*/,"/"),u=e.useMemo((()=>({basename:c,navigator:s,static:l})),[c,s,l]);"string"==typeof a&&(a=m(a));let{pathname:p="/",search:f="",hash:h="",state:b=null,key:g="default"}=a,v=e.useMemo((()=>{let t=C(p,c);return null==t?null:{pathname:t,search:f,hash:h,state:b,key:g}}),[c,p,f,h,b,g]);return null==v?null:e.createElement(q.Provider,{value:u},e.createElement(K.Provider,{children:o,value:{location:v,navigationType:i}}))}function ct(r){let{children:n,location:o}=r,a=e.useContext(Y);return function(r,n){Z()||d(!1);let{navigator:o}=e.useContext(q),a=e.useContext(X),{matches:i}=e.useContext(Q),s=i[i.length-1],l=s?s.params:{},c=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let u,p=J();if(n){var f;let t="string"==typeof n?m(n):n;"/"===c||(null==(f=t.pathname)?void 0:f.startsWith(c))||d(!1),u=t}else u=p;let h=u.pathname||"/",b=g(r,{pathname:"/"===c?h:h.slice(c.length)||"/"}),v=function(t,r,n){if(void 0===r&&(r=[]),null==t){if(null==n||!n.errors)return null;t=n.matches}let o=t,a=null==n?void 0:n.errors;if(null!=a){let t=o.findIndex((t=>t.route.id&&(null==a?void 0:a[t.route.id])));t>=0||d(!1),o=o.slice(0,Math.min(o.length,t+1))}return o.reduceRight(((t,i,s)=>{let l=i.route.id?null==a?void 0:a[i.route.id]:null,c=n?i.route.errorElement||e.createElement(et,null):null,d=()=>e.createElement(nt,{match:i,routeContext:{outlet:t,matches:r.concat(o.slice(0,s+1))}},l?c:void 0!==i.route.element?i.route.element:t);return n&&(i.route.errorElement||0===s)?e.createElement(rt,{location:n.location,component:c,error:l,children:d()}):d()}),null)}(b&&b.map((t=>Object.assign({},t,{params:Object.assign({},l,t.params),pathname:z([c,o.encodeLocation?o.encodeLocation(t.pathname).pathname:t.pathname]),pathnameBase:"/"===t.pathnameBase?c:z([c,o.encodeLocation?o.encodeLocation(t.pathnameBase).pathname:t.pathnameBase])}))),i,a||void 0);return n&&v?e.createElement(K.Provider,{value:{location:B({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:t.Pop}},v):v}(a&&!n?a.router.routes:ut(n),o)}!function(t){t.UseRevalidator="useRevalidator"}(ot||(ot={})),function(t){t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator"}(at||(at={})),function(t){t[t.pending=0]="pending",t[t.success=1]="success",t[t.error=2]="error"}(it||(it={})),new Promise((()=>{}));class dt extends e.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,e){console.error("<Await> caught the following error during render",t,e)}render(){let{children:t,errorElement:e,resolve:r}=this.props,n=null,o=it.pending;if(r instanceof Promise)if(this.state.error){it.error;let t=this.state.error;Promise.reject().catch((()=>{})),Object.defineProperty(n,"_tracked",{get:()=>!0}),Object.defineProperty(n,"_error",{get:()=>t})}else r._tracked?void 0!==n._error?it.error:void 0!==n._data?it.success:it.pending:(it.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),r.then((t=>Object.defineProperty(r,"_data",{get:()=>t})),(t=>Object.defineProperty(r,"_error",{get:()=>t}))));else it.success,Promise.resolve(),Object.defineProperty(n,"_tracked",{get:()=>!0}),Object.defineProperty(n,"_data",{get:()=>r});if(o===it.error&&n._error instanceof AbortedDeferredError)throw neverSettledPromise;if(o===it.error&&!e)throw n._error;if(o===it.error)return React.createElement(AwaitContext.Provider,{value:n,children:e});if(o===it.success)return React.createElement(AwaitContext.Provider,{value:n,children:t});throw n}}function ut(t,r){void 0===r&&(r=[]);let n=[];return e.Children.forEach(t,((t,o)=>{if(!e.isValidElement(t))return;if(t.type===e.Fragment)return void n.push.apply(n,ut(t.props.children,r));t.type!==st&&d(!1),t.props.index&&t.props.children&&d(!1);let a=[...r,o],i={id:t.props.id||a.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,hasErrorBoundary:null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle};t.props.children&&(i.children=ut(t.props.children,a)),n.push(i)})),n}function pt(){return pt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},pt.apply(this,arguments)}const ft=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function mt(r){let{basename:n,children:o,window:a}=r,i=e.useRef();null==i.current&&(i.current=function(e){return void 0===e&&(e={}),function(e,r,n,o){void 0===o&&(o={});let{window:a=document.defaultView,v5Compat:i=!1}=o,s=a.history,l=t.Pop,d=null;function m(){l=t.Pop,d&&d({action:l,location:b.location})}let b={get action(){return l},get location(){return e(a,s)},listen(t){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(c,m),d=t,()=>{a.removeEventListener(c,m),d=null}},createHref:t=>r(a,t),encodeLocation(t){let e=h("string"==typeof t?t:f(t));return{pathname:e.pathname,search:e.search,hash:e.hash}},push:function(e,r){l=t.Push;let o=p(b.location,e,r);n&&n(o,e);let c=u(o),f=b.createHref(o);try{s.pushState(c,"",f)}catch(t){a.location.assign(f)}i&&d&&d({action:l,location:b.location})},replace:function(e,r){l=t.Replace;let o=p(b.location,e,r);n&&n(o,e);let a=u(o),c=b.createHref(o);s.replaceState(a,"",c),i&&d&&d({action:l,location:b.location})},go:t=>s.go(t)};return b}((function(t,e){let{pathname:r,search:n,hash:o}=t.location;return p("",{pathname:r,search:n,hash:o},e.state&&e.state.usr||null,e.state&&e.state.key||"default")}),(function(t,e){return"string"==typeof e?e:f(e)}),null,e)}({window:a,v5Compat:!0}));let s=i.current,[l,d]=e.useState({action:s.action,location:s.location});return e.useLayoutEffect((()=>s.listen(d)),[s]),e.createElement(lt,{basename:n,children:o,location:l.location,navigationType:l.action,navigator:s})}const ht=e.forwardRef((function(t,r){let{onClick:n,relative:o,reloadDocument:a,replace:i,state:s,target:l,to:c,preventScrollReset:u}=t,p=function(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,ft),m=function(t,r){let{relative:n}=void 0===r?{}:r;Z()||d(!1);let{basename:o,navigator:a}=e.useContext(q),{hash:i,pathname:s,search:l}=tt(t,{relative:n}),c=s;return"/"!==o&&(c="/"===s?o:z([o,s])),a.createHref({pathname:c,search:l,hash:i})}(c,{relative:o}),h=function(t,r){let{target:n,replace:o,state:a,preventScrollReset:i,relative:s}=void 0===r?{}:r,l=function(){Z()||d(!1);let{basename:t,navigator:r}=e.useContext(q),{matches:n}=e.useContext(Q),{pathname:o}=J(),a=JSON.stringify(P(n).map((t=>t.pathnameBase))),i=e.useRef(!1);e.useEffect((()=>{i.current=!0}));let s=e.useCallback((function(e,n){if(void 0===n&&(n={}),!i.current)return;if("number"==typeof e)return void r.go(e);let s=O(e,JSON.parse(a),o,"path"===n.relative);"/"!==t&&(s.pathname="/"===s.pathname?t:z([t,s.pathname])),(n.replace?r.replace:r.push)(s,n.state,n)}),[t,r,a,o]);return s}(),c=J(),u=tt(t,{relative:s});return e.useCallback((e=>{if(function(t,e){return!(0!==t.button||e&&"_self"!==e||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t))}(e,n)){e.preventDefault();let r=void 0!==o?o:f(c)===f(u);l(t,{replace:r,state:a,preventScrollReset:i,relative:s})}}),[c,l,u,o,a,n,t,i,s])}(c,{replace:i,state:s,target:l,preventScrollReset:u,relative:o});return e.createElement("a",pt({},p,{href:m,onClick:a?n:function(t){n&&n(t),t.defaultPrevented||h(t)},ref:r,target:l}))}));var bt,gt;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmitImpl="useSubmitImpl",t.UseFetcher="useFetcher"})(bt||(bt={})),function(t){t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"}(gt||(gt={}));var vt=o(184),xt=o.n(vt),yt=o(893);const wt=e.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:kt,Provider:_t}=wt;function Et(t,r){const{prefixes:n}=(0,e.useContext)(wt);return t||n[r]||r}function St(){const{breakpoints:t}=(0,e.useContext)(wt);return t}function Ct(){const{minBreakpoint:t}=(0,e.useContext)(wt);return t}const Mt=e.forwardRef((({bsPrefix:t,fluid:e,as:r="div",className:n,...o},a)=>{const i=Et(t,"container"),s="string"==typeof e?`-${e}`:"-fluid";return(0,yt.jsx)(r,{ref:a,...o,className:xt()(n,e?`${i}${s}`:i)})}));Mt.displayName="Container",Mt.defaultProps={fluid:!1};const Nt=Mt,Pt=e.forwardRef((({bsPrefix:t,className:e,as:r="div",...n},o)=>{const a=Et(t,"row"),i=St(),s=Ct(),l=`${a}-cols`,c=[];return i.forEach((t=>{const e=n[t];let r;delete n[t],null!=e&&"object"==typeof e?({cols:r}=e):r=e;const o=t!==s?`-${t}`:"";null!=r&&c.push(`${l}${o}-${r}`)})),(0,yt.jsx)(r,{ref:o,...n,className:xt()(e,a,...c)})}));Pt.displayName="Row";const Ot=Pt,zt=e.forwardRef(((t,e)=>{const[{className:r,...n},{as:o="div",bsPrefix:a,spans:i}]=function({as:t,bsPrefix:e,className:r,...n}){e=Et(e,"col");const o=St(),a=Ct(),i=[],s=[];return o.forEach((t=>{const r=n[t];let o,l,c;delete n[t],"object"==typeof r&&null!=r?({span:o,offset:l,order:c}=r):o=r;const d=t!==a?`-${t}`:"";o&&i.push(!0===o?`${e}${d}`:`${e}${d}-${o}`),null!=c&&s.push(`order${d}-${c}`),null!=l&&s.push(`offset${d}-${l}`)})),[{...n,className:xt()(r,...i,...s)},{as:t,bsPrefix:e,spans:i}]}(t);return(0,yt.jsx)(o,{...n,ref:e,className:xt()(r,!i.length&&a)})}));zt.displayName="Col";const Tt=zt;var Rt=/-(.)/g;const Lt=t=>{return t[0].toUpperCase()+(e=t,e.replace(Rt,(function(t,e){return e.toUpperCase()}))).slice(1);var e};function At(t,{displayName:r=Lt(t),Component:n,defaultProps:o}={}){const a=e.forwardRef((({className:e,bsPrefix:r,as:o=n||"div",...a},i)=>{const s=Et(r,t);return(0,yt.jsx)(o,{ref:i,className:xt()(e,s),...a})}));return a.defaultProps=o,a.displayName=r,a}const Dt=t=>e.forwardRef(((e,r)=>(0,yt.jsx)("div",{...e,ref:r,className:xt()(e.className,t)}))),jt=e.forwardRef((({bsPrefix:t,className:e,variant:r,as:n="img",...o},a)=>{const i=Et(t,"card-img");return(0,yt.jsx)(n,{ref:a,className:xt()(r?`${i}-${r}`:i,e),...o})}));jt.displayName="CardImg";const It=jt,Ft=e.createContext(null);Ft.displayName="CardHeaderContext";const Bt=Ft,Ut=e.forwardRef((({bsPrefix:t,className:r,as:n="div",...o},a)=>{const i=Et(t,"card-header"),s=(0,e.useMemo)((()=>({cardHeaderBsPrefix:i})),[i]);return(0,yt.jsx)(Bt.Provider,{value:s,children:(0,yt.jsx)(n,{ref:a,...o,className:xt()(r,i)})})}));Ut.displayName="CardHeader";const Wt=Ut,$t=Dt("h5"),Vt=Dt("h6"),Ht=At("card-body"),Yt=At("card-title",{Component:$t}),Xt=At("card-subtitle",{Component:Vt}),qt=At("card-link",{Component:"a"}),Kt=At("card-text",{Component:"p"}),Qt=At("card-footer"),Gt=At("card-img-overlay"),Zt=e.forwardRef((({bsPrefix:t,className:e,bg:r,text:n,border:o,body:a,children:i,as:s="div",...l},c)=>{const d=Et(t,"card");return(0,yt.jsx)(s,{ref:c,...l,className:xt()(e,d,r&&`bg-${r}`,n&&`text-${n}`,o&&`border-${o}`),children:a?(0,yt.jsx)(Ht,{children:i}):i})}));Zt.displayName="Card",Zt.defaultProps={body:!1};const Jt=Object.assign(Zt,{Img:It,Title:Yt,Subtitle:Xt,Body:Ht,Link:qt,Text:Kt,Header:Wt,Footer:Qt,ImgOverlay:Gt}),te=o.p+"images/home_data_icon.svg",ee=o.p+"images/home_reports_icon.svg",re=function(){return e.createElement(Nt,{className:"py-5 grey-container"},e.createElement(Ot,null,e.createElement("div",{className:"center-text"},e.createElement("h1",{className:"geant-header"},"THE GÉANT COMPENDIUM OF NRENS"),e.createElement("div",{className:"wordwrap pt-4"},e.createElement("p",null,"The GÉANT Compendium provides an authoritative reference source for anyone with an interest in the development of research and education networking in Europe and beyond. Published since 2001, the Compendium provides information on key areas such as users, services, traffic, budget and staffing."),e.createElement("p",null,"This site captures the responses from the National Research and Education Networks themselves.")))),e.createElement(Ot,null,e.createElement(Tt,null,e.createElement(Nt,{style:{backgroundColor:"white"},className:"rounded-border"},e.createElement(Ot,{className:"justify-content-md-center"},e.createElement(Tt,{align:"center"},e.createElement(Jt,{border:"light",style:{width:"18rem"}},e.createElement(ht,{to:"/data",className:"link-text"},e.createElement(Jt.Img,{src:te}),e.createElement(Jt.Body,null,e.createElement(Jt.Title,null,"Compendium Data"),e.createElement(Jt.Text,null,"The results of the Compendium Surveys data given annually by NRENs. Statical represetation of the data is available here."))))),e.createElement(Tt,{align:"center"},e.createElement(Jt,{border:"light",style:{width:"18rem"}},e.createElement("a",{href:"https://resources.geant.org/geant-compendia/",className:"link-text",target:"_blank",rel:"noreferrer"},e.createElement(Jt.Img,{src:ee}),e.createElement(Jt.Body,null,e.createElement(Jt.Title,null,"Compendium Reports"),e.createElement(Jt.Text,null,"A GÉANT Compendium Report is published annually, drawing on data from the Compendium Survey lled in by NRENs, complemented by information from other surveys"))))))))))},ne=["as","disabled"];function oe({tagName:t,disabled:e,href:r,target:n,rel:o,role:a,onClick:i,tabIndex:s=0,type:l}){t||(t=null!=r||null!=n||null!=o?"a":"button");const c={tagName:t};if("button"===t)return[{type:l||"button",disabled:e},c];const d=n=>{(e||"a"===t&&function(t){return!t||"#"===t.trim()}(r))&&n.preventDefault(),e?n.stopPropagation():null==i||i(n)};return"a"===t&&(r||(r="#"),e&&(r=void 0)),[{role:null!=a?a:"button",disabled:void 0,tabIndex:e?void 0:s,href:r,target:"a"===t?n:void 0,"aria-disabled":e||void 0,rel:"a"===t?o:void 0,onClick:d,onKeyDown:t=>{" "===t.key&&(t.preventDefault(),d(t))}},c]}const ae=e.forwardRef(((t,e)=>{let{as:r,disabled:n}=t,o=function(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,ne);const[a,{tagName:i}]=oe(Object.assign({tagName:r,disabled:n},o));return(0,yt.jsx)(i,Object.assign({},o,a,{ref:e}))}));ae.displayName="Button";const ie=ae,se=e.forwardRef((({as:t,bsPrefix:e,variant:r,size:n,active:o,className:a,...i},s)=>{const l=Et(e,"btn"),[c,{tagName:d}]=oe({tagName:t,...i}),u=d;return(0,yt.jsx)(u,{...c,...i,ref:s,className:xt()(a,l,o&&"active",r&&`${l}-${r}`,n&&`${l}-${n}`,i.href&&i.disabled&&"disabled")})}));se.displayName="Button",se.defaultProps={variant:"primary",active:!1,disabled:!1};const le=se;function ce(t,e,r,n,o,a,i){try{var s=t[a](i),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,o)}function de(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){ce(a,n,o,i,s,"next",t)}function s(t){ce(a,n,o,i,s,"throw",t)}i(void 0)}))}}var ue=o(687),pe=o.n(ue);function fe(){return(fe=de(pe().mark((function t(){var e,r;return pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("/api/user");case 2:return e=t.sent,t.next=5,e.json();case 5:return r=t.sent,t.abrupt("return",r);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var me={name:"",email:"",permissions:{admin:!1,active:!1}},he=(0,e.createContext)({user:me,logout:function(){}});const be=function(t){var r=t.children,n=s((0,e.useState)(me),2),o=n[0],a=n[1];function i(){return(i=de(pe().mark((function t(){return pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("/logout");case 2:a(me);case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return(0,e.useEffect)((function(){(function(){return fe.apply(this,arguments)})().then((function(t){a(t)}))}),[]),e.createElement(he.Provider,{value:{user:o,logout:function(){return i.apply(this,arguments)}}},r)},ge=function(){var t=(0,e.useContext)(he),r=t.user;return t.logout,r.name?r.permissions.active?e.createElement("div",{className:"nav-link",style:{float:"right"}},e.createElement("a",{className:"nav-link-entry",href:"/survey"},"Go to Survey")):e.createElement("div",{className:"nav-link",style:{float:"right"}},e.createElement("span",null,"<",r.name,">")):e.createElement("a",{href:"/login"},e.createElement(le,{variant:"login",active:!1,style:{maxWidth:"6rem"}},e.createElement("span",null,"Login")))},ve=o.p+"images/geant_logo_f2020_new.svg",xe=function(){return e.createElement("div",{className:"external-page-nav-bar"},e.createElement(Nt,null,e.createElement(Ot,null,e.createElement(Tt,{xs:10},e.createElement("div",{className:"nav-wrapper"},e.createElement("nav",{className:"header-nav"},e.createElement("a",{href:"https://geant.org/"},e.createElement("img",{src:ve})),e.createElement("ul",null,e.createElement("li",null,e.createElement("a",{className:"nav-link-entry",href:"https://network.geant.org/"},"NETWORK")),e.createElement("li",null,e.createElement("a",{className:"nav-link-entry",href:"https://geant.org/services/"},"SERVICES")),e.createElement("li",null,e.createElement("a",{className:"nav-link-entry",href:"https://community.geant.org/"},"COMMUNITY")),e.createElement("li",null,e.createElement("a",{className:"nav-link-entry",href:"https://tnc23.geant.org/"},"TNC")),e.createElement("li",null,e.createElement("a",{className:"nav-link-entry",href:"https://geant.org/projects/"},"PROJECTS")),e.createElement("li",null,e.createElement("a",{className:"nav-link-entry",href:"https://connect.geant.org/"},"CONNECT")),e.createElement("li",null,e.createElement("a",{className:"nav-link-entry",href:"https://impact.geant.org/"},"IMPACT")),e.createElement("li",null,e.createElement("a",{className:"nav-link-entry",href:"https://careers.geant.org/"},"CAREERS")),e.createElement("li",null,e.createElement("a",{className:"nav-link-entry",href:"https://about.geant.org/"},"ABOUT")),e.createElement("li",null,e.createElement("a",{className:"nav-link-entry",href:"https://connect.geant.org/community-news"},"NEWS")),e.createElement("li",null,e.createElement("a",{className:"nav-link-entry",href:"https://resources.geant.org/"},"RESOURCES")))))),e.createElement(Tt,{align:"right"},e.createElement(ge,null)))))},ye=o.p+"images/geant_logo_colored.svg",we=o.p+"images/eu_logo.png",ke=function(){return e.createElement("footer",{className:"page-footer pt-3"},e.createElement(Nt,null,e.createElement(Ot,null,e.createElement(Tt,null,e.createElement("a",{href:"https://geant.org"},e.createElement("img",{src:ye,className:"m-3",style:{maxWidth:"100px"}})),e.createElement("img",{src:we,className:"m-3",style:{maxWidth:"200px"}})),e.createElement(Tt,{className:"mt-4 text-end"},e.createElement("span",null,e.createElement("a",{className:"mx-3 footer-link",href:"https://geant.org/Policies/"},"Cookies"),e.createElement("wbr",null),"|",e.createElement("a",{className:"mx-3 footer-link",href:"https://geant.org/Disclaimer/"},"Disclaimer"),e.createElement("wbr",null),"|",e.createElement("a",{className:"mx-3 footer-link",href:"https://geant.org/geant-anti-slavery-policy/"},"GEANT Anti‑Slavery Policy"),e.createElement("wbr",null),"|",e.createElement("a",{className:"mx-3 footer-link",href:"https://geant.org/Privacy-Notice/"},"Privacy Policy"))))))};function _e(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||i(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ee=o(844);function Se(t){var e=new Set,r=new Map;return t.forEach((function(t){e.add(t.year),r.set(t.nren,{name:t.nren,country:t.nren_country})})),{years:e,nrens:r}}function Ce(t,e,r){return Me.apply(this,arguments)}function Me(){return(Me=de(pe().mark((function t(e,r,n){var o,a,i,s,l;return pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(e);case 2:return o=t.sent,t.next=5,o.json();case 5:a=t.sent,r(a),i=Se(a),s=i.years,l=i.nrens,n((function(t){return{selectedYears:t.selectedYears.filter((function(t){return s.has(t)})).length?t.selectedYears:[Math.max.apply(Math,_e(s))],selectedNrens:t.selectedNrens.filter((function(t){return l.has(t)})).length?t.selectedNrens:_e(l.keys())}}));case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Ne(){return(Ne=de(pe().mark((function t(e,r,n){var o,a,i,s;return pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(e);case 2:return o=t.sent,t.next=5,o.json();case 5:a=t.sent,r(a),i=Se(a),s=i.nrens,n((function(t){var e=t.selectedNrens.filter((function(t){return s.has(t)})).length?t.selectedNrens:_e(s.keys());return{selectedYears:t.selectedYears,selectedNrens:e}}));case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Pe(t){var e=new Map;return t.forEach((function(t){var r=e.get(t.nren);r||(r=new Map);var n=r.get(t.year);n||(n=[]),n.push(t),r.set(t.year,n),e.set(t.nren,r)})),e}var Oe={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ze=e.createContext&&e.createContext(Oe),Te=function(){return Te=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Te.apply(this,arguments)};function Re(t){return t&&t.map((function(t,r){return e.createElement(t.tag,Te({key:r},t.attr),Re(t.child))}))}function Le(t){return function(r){return e.createElement(Ae,Te({attr:Te({},t.attr)},r),Re(t.child))}}function Ae(t){var r=function(r){var n,o=t.attr,a=t.size,i=t.title,s=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["attr","size","title"]),l=a||r.size||"1em";return r.className&&(n=r.className),t.className&&(n=(n?n+" ":"")+t.className),e.createElement("svg",Te({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,o,s,{className:n,style:Te(Te({color:t.color||r.color},r.style),t.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&e.createElement("title",null,i),t.children)};return void 0!==ze?e.createElement(ze.Consumer,null,(function(t){return r(t)})):r(Oe)}function De(t){return Le({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]})(t)}function je(t){return Le({tag:"svg",attr:{t:"1551322312294",style:"",viewBox:"0 0 1024 1024",version:"1.1"},child:[{tag:"defs",attr:{},child:[]},{tag:"path",attr:{d:"M474 152m8 0l60 0q8 0 8 8l0 704q0 8-8 8l-60 0q-8 0-8-8l0-704q0-8 8-8Z"}},{tag:"path",attr:{d:"M168 474m8 0l672 0q8 0 8 8l0 60q0 8-8 8l-672 0q-8 0-8-8l0-60q0-8 8-8Z"}}]})(t)}const Ie=function(t){var r=t.children,n=s((0,e.useState)(!1),2),o=n[0],a=n[1];return e.createElement("div",{className:"sidebar-wrapper"},e.createElement("nav",{className:o?"":"no-sidebar",id:"sidebar"},e.createElement("div",{className:"menu-items"},r)),e.createElement("div",{className:"toggle-btn",onClick:function(){a(!o)}},e.createElement("div",{className:"toggle-btn-wrapper"},e.createElement("span",null,"MENU")," ",o?e.createElement(De,{style:{color:"white",paddingBottom:"3px",scale:"1.3"}}):e.createElement(je,{style:{color:"white",paddingBottom:"3px",scale:"1.3"}}))))},Fe=function(){return e.createElement(Ie,null,e.createElement("h5",null,"Organisation"),e.createElement(Ot,null,e.createElement(ht,{to:"/budget",className:"link-text-underline"},e.createElement("span",null,"Budget of NRENs per Year"))),e.createElement(Ot,null,e.createElement(ht,{to:"/funding",className:"link-text-underline"},e.createElement("span",null,"Income Source of NRENs per Year"))),e.createElement(Ot,null,e.createElement(ht,{to:"/charging",className:"link-text-underline"},e.createElement("span",null,"Charging Mechanism of NRENs per Year"))),e.createElement(Ot,null,e.createElement(ht,{to:"/data/roles",className:"link-text-underline"},e.createElement("span",null,"Roles of NREN employees"))),e.createElement(Ot,null,e.createElement(ht,{to:"/data/employment",className:"link-text-underline"},e.createElement("span",null,"Types of employment for NRENs"))),e.createElement(Ot,null,e.createElement(ht,{to:"/suborganisations",className:"link-text-underline"},e.createElement("span",null,"NREN Suborganisations"))),e.createElement(Ot,null,e.createElement(ht,{to:"/parentorganisation",className:"link-text-underline"},e.createElement("span",null,"NREN Parent Organisations"))),e.createElement(Ot,null,e.createElement(ht,{to:"/ec-projects",className:"link-text-underline"},e.createElement("span",null,"NREN Involvement in European Commission Projects"))))},Be=function(t){var r=t.section;return e.createElement("div",{className:"bold-caps-17pt section-container"},e.createElement("div",{style:{display:"flex",alignSelf:"right",lineHeight:"1.5rem",marginTop:"0.5rem"}},e.createElement("span",null,"Compendium ",e.createElement("br",null),e.createElement("span",{style:{float:"right"}},r))),e.createElement("img",{src:ee,style:{maxWidth:"4rem"}}))},Ue=function(t){var r=t.type,n="";return"data"==r?n+=" compendium-data-header":"reports"==r&&(n=" compendium-reports-header"),e.createElement("div",{className:n},e.createElement(Nt,null,e.createElement(Ot,null,e.createElement(Tt,{sm:8},e.createElement("h1",{className:"bold-caps-30pt",style:{marginTop:"0.5rem"}},e.createElement(ht,{to:"data"===r?"/data":"/",style:{textDecoration:"none",color:"white"}},e.createElement("span",null,"Compendium ","data"===r?"Data":"Reports")))),e.createElement(Tt,{sm:4},e.createElement("a",{style:{color:"inherit"},href:"https://resources.geant.org/geant-compendia/",target:"_blank",rel:"noreferrer"},e.createElement(Be,{section:"Reports"}))))))},We=e.forwardRef((({bsPrefix:t,className:e,...r},n)=>{const o=Et(t,"btn-toolbar");return(0,yt.jsx)("div",{...r,ref:n,className:xt()(e,o)})}));We.displayName="ButtonToolbar",We.defaultProps={role:"toolbar"};const $e=We;var Ve;!function(t){t.Organisation="ORGANISATION",t.Policy="STANDARDS AND POLICIES",t.ConnectedUsers="CONNECTED USERS",t.Network="NETWORK",t.Services="SERVICES"}(Ve||(Ve={}));const He=function(t){var r=t.activeCategory;return e.createElement(Nt,null,e.createElement(Ot,null,e.createElement($e,{className:"navbox-bar gap-2 m-3"},e.createElement(ht,{to:r===Ve.Organisation?".":"/funding"},e.createElement(le,{variant:"nav-box",active:r===Ve.Organisation},e.createElement("span",null,Ve.Organisation))),e.createElement(ht,{to:r===Ve.Policy?".":"/policy"},e.createElement(le,{variant:"nav-box",active:r===Ve.Policy},e.createElement("span",null,Ve.Policy))),e.createElement(ht,{to:(Ve.ConnectedUsers,".")},e.createElement(le,{variant:"nav-box",active:r===Ve.ConnectedUsers,disabled:!0},e.createElement("span",null,Ve.ConnectedUsers))),e.createElement(ht,{to:(Ve.Network,".")},e.createElement(le,{variant:"nav-box",active:r===Ve.Network,disabled:!0},e.createElement("span",null,Ve.Network))),e.createElement(ht,{to:(Ve.Services,".")},e.createElement(le,{variant:"nav-box",active:r===Ve.Services,disabled:!0},e.createElement("span",null,Ve.Services))))))},Ye=function(){return e.createElement(Ie,null,e.createElement("h5",null,"Standards and Policies"),e.createElement(Ot,null,e.createElement(ht,{to:"/policy",className:"link-text-underline"},e.createElement("span",null,"NREN Policies"))))};function Xe(t){return t+.5|0}const qe=(t,e,r)=>Math.max(Math.min(t,r),e);function Ke(t){return qe(Xe(2.55*t),0,255)}function Qe(t){return qe(Xe(255*t),0,255)}function Ge(t){return qe(Xe(t/2.55)/100,0,1)}function Ze(t){return qe(Xe(100*t),0,100)}const Je={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},tr=[..."0123456789ABCDEF"],er=t=>tr[15&t],rr=t=>tr[(240&t)>>4]+tr[15&t],nr=t=>(240&t)>>4==(15&t);const or=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function ar(t,e,r){const n=e*Math.min(r,1-r),o=(e,o=(e+t/30)%12)=>r-n*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function ir(t,e,r){const n=(n,o=(n+t/60)%6)=>r-r*e*Math.max(Math.min(o,4-o,1),0);return[n(5),n(3),n(1)]}function sr(t,e,r){const n=ar(t,1,.5);let o;for(e+r>1&&(o=1/(e+r),e*=o,r*=o),o=0;o<3;o++)n[o]*=1-e-r,n[o]+=e;return n}function lr(t){const e=t.r/255,r=t.g/255,n=t.b/255,o=Math.max(e,r,n),a=Math.min(e,r,n),i=(o+a)/2;let s,l,c;return o!==a&&(c=o-a,l=i>.5?c/(2-o-a):c/(o+a),s=function(t,e,r,n,o){return t===o?(e-r)/n+(e<r?6:0):e===o?(r-t)/n+2:(t-e)/n+4}(e,r,n,c,o),s=60*s+.5),[0|s,l||0,i]}function cr(t,e,r,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,r,n)).map(Qe)}function dr(t,e,r){return cr(ar,t,e,r)}function ur(t){return(t%360+360)%360}const pr={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},fr={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let mr;const hr=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,br=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,gr=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function vr(t,e,r){if(t){let n=lr(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*r,0===e?360:1)),n=dr(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function xr(t,e){return t?Object.assign(e||{},t):t}function yr(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Qe(t[3]))):(e=xr(t,{r:0,g:0,b:0,a:1})).a=Qe(e.a),e}function wr(t){return"r"===t.charAt(0)?function(t){const e=hr.exec(t);let r,n,o,a=255;if(e){if(e[7]!==r){const t=+e[7];a=e[8]?Ke(t):qe(255*t,0,255)}return r=+e[1],n=+e[3],o=+e[5],r=255&(e[2]?Ke(r):qe(r,0,255)),n=255&(e[4]?Ke(n):qe(n,0,255)),o=255&(e[6]?Ke(o):qe(o,0,255)),{r,g:n,b:o,a}}}(t):function(t){const e=or.exec(t);let r,n=255;if(!e)return;e[5]!==r&&(n=e[6]?Ke(+e[5]):Qe(+e[5]));const o=ur(+e[2]),a=+e[3]/100,i=+e[4]/100;return r="hwb"===e[1]?function(t,e,r){return cr(sr,t,e,r)}(o,a,i):"hsv"===e[1]?function(t,e,r){return cr(ir,t,e,r)}(o,a,i):dr(o,a,i),{r:r[0],g:r[1],b:r[2],a:n}}(t)}class kr{constructor(t){if(t instanceof kr)return t;const e=typeof t;let r;var n,o,a;"object"===e?r=yr(t):"string"===e&&(a=(n=t).length,"#"===n[0]&&(4===a||5===a?o={r:255&17*Je[n[1]],g:255&17*Je[n[2]],b:255&17*Je[n[3]],a:5===a?17*Je[n[4]]:255}:7!==a&&9!==a||(o={r:Je[n[1]]<<4|Je[n[2]],g:Je[n[3]]<<4|Je[n[4]],b:Je[n[5]]<<4|Je[n[6]],a:9===a?Je[n[7]]<<4|Je[n[8]]:255})),r=o||function(t){mr||(mr=function(){const t={},e=Object.keys(fr),r=Object.keys(pr);let n,o,a,i,s;for(n=0;n<e.length;n++){for(i=s=e[n],o=0;o<r.length;o++)a=r[o],s=s.replace(a,pr[a]);a=parseInt(fr[i],16),t[s]=[a>>16&255,a>>8&255,255&a]}return t}(),mr.transparent=[0,0,0,0]);const e=mr[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||wr(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=xr(this._rgb);return t&&(t.a=Ge(t.a)),t}set rgb(t){this._rgb=yr(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Ge(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?(t=this._rgb,e=(t=>nr(t.r)&&nr(t.g)&&nr(t.b)&&nr(t.a))(t)?er:rr,t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0):void 0;var t,e}hslString(){return this._valid?function(t){if(!t)return;const e=lr(t),r=e[0],n=Ze(e[1]),o=Ze(e[2]);return t.a<255?`hsla(${r}, ${n}%, ${o}%, ${Ge(t.a)})`:`hsl(${r}, ${n}%, ${o}%)`}(this._rgb):void 0}mix(t,e){if(t){const r=this.rgb,n=t.rgb;let o;const a=e===o?.5:e,i=2*a-1,s=r.a-n.a,l=((i*s==-1?i:(i+s)/(1+i*s))+1)/2;o=1-l,r.r=255&l*r.r+o*n.r+.5,r.g=255&l*r.g+o*n.g+.5,r.b=255&l*r.b+o*n.b+.5,r.a=a*r.a+(1-a)*n.a,this.rgb=r}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,r){const n=gr(Ge(t.r)),o=gr(Ge(t.g)),a=gr(Ge(t.b));return{r:Qe(br(n+r*(gr(Ge(e.r))-n))),g:Qe(br(o+r*(gr(Ge(e.g))-o))),b:Qe(br(a+r*(gr(Ge(e.b))-a))),a:t.a+r*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new kr(this.rgb)}alpha(t){return this._rgb.a=Qe(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=Xe(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return vr(this._rgb,2,t),this}darken(t){return vr(this._rgb,2,-t),this}saturate(t){return vr(this._rgb,1,t),this}desaturate(t){return vr(this._rgb,1,-t),this}rotate(t){return function(t,e){var r=lr(t);r[0]=ur(r[0]+e),r=dr(r),t.r=r[0],t.g=r[1],t.b=r[2]}(this._rgb,t),this}}function _r(){}const Er=(()=>{let t=0;return()=>t++})();function Sr(t){return null==t}function Cr(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function Mr(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function Nr(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function Pr(t,e){return Nr(t)?t:e}function Or(t,e){return void 0===t?e:t}function zr(t,e,r){if(t&&"function"==typeof t.call)return t.apply(r,e)}function Tr(t,e,r,n){let o,a,i;if(Cr(t))if(a=t.length,n)for(o=a-1;o>=0;o--)e.call(r,t[o],o);else for(o=0;o<a;o++)e.call(r,t[o],o);else if(Mr(t))for(i=Object.keys(t),a=i.length,o=0;o<a;o++)e.call(r,t[i[o]],i[o])}function Rr(t,e){let r,n,o,a;if(!t||!e||t.length!==e.length)return!1;for(r=0,n=t.length;r<n;++r)if(o=t[r],a=e[r],o.datasetIndex!==a.datasetIndex||o.index!==a.index)return!1;return!0}function Lr(t){if(Cr(t))return t.map(Lr);if(Mr(t)){const e=Object.create(null),r=Object.keys(t),n=r.length;let o=0;for(;o<n;++o)e[r[o]]=Lr(t[r[o]]);return e}return t}function Ar(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function Dr(t,e,r,n){if(!Ar(t))return;const o=e[t],a=r[t];Mr(o)&&Mr(a)?jr(o,a,n):e[t]=Lr(a)}function jr(t,e,r){const n=Cr(e)?e:[e],o=n.length;if(!Mr(t))return t;const a=(r=r||{}).merger||Dr;let i;for(let e=0;e<o;++e){if(i=n[e],!Mr(i))continue;const o=Object.keys(i);for(let e=0,n=o.length;e<n;++e)a(o[e],t,i,r)}return t}function Ir(t,e){return jr(t,e,{merger:Fr})}function Fr(t,e,r){if(!Ar(t))return;const n=e[t],o=r[t];Mr(n)&&Mr(o)?Ir(n,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Lr(o))}const Br={"":t=>t,x:t=>t.x,y:t=>t.y};function Ur(t,e){const r=Br[e]||(Br[e]=function(t){const e=function(t){const e=t.split("."),r=[];let n="";for(const t of e)n+=t,n.endsWith("\\")?n=n.slice(0,-1)+".":(r.push(n),n="");return r}(t);return t=>{for(const r of e){if(""===r)break;t=t&&t[r]}return t}}(e));return r(t)}function Wr(t){return t.charAt(0).toUpperCase()+t.slice(1)}const $r=t=>void 0!==t,Vr=t=>"function"==typeof t,Hr=(t,e)=>{if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0},Yr=Math.PI,Xr=2*Yr,qr=Xr+Yr,Kr=Number.POSITIVE_INFINITY,Qr=Yr/180,Gr=Yr/2,Zr=Yr/4,Jr=2*Yr/3,tn=Math.log10,en=Math.sign;function rn(t,e,r){return Math.abs(t-e)<r}function nn(t){const e=Math.round(t);t=rn(t,e,t/1e3)?e:t;const r=Math.pow(10,Math.floor(tn(t))),n=t/r;return(n<=1?1:n<=2?2:n<=5?5:10)*r}function on(t){return!isNaN(parseFloat(t))&&isFinite(t)}function an(t,e,r){let n,o,a;for(n=0,o=t.length;n<o;n++)a=t[n][r],isNaN(a)||(e.min=Math.min(e.min,a),e.max=Math.max(e.max,a))}function sn(t){return t*(Yr/180)}function ln(t){if(!Nr(t))return;let e=1,r=0;for(;Math.round(t*e)/e!==t;)e*=10,r++;return r}function cn(t,e){const r=e.x-t.x,n=e.y-t.y,o=Math.sqrt(r*r+n*n);let a=Math.atan2(n,r);return a<-.5*Yr&&(a+=Xr),{angle:a,distance:o}}function dn(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function un(t,e){return(t-e+qr)%Xr-Yr}function pn(t){return(t%Xr+Xr)%Xr}function fn(t,e,r,n){const o=pn(t),a=pn(e),i=pn(r),s=pn(a-o),l=pn(i-o),c=pn(o-a),d=pn(o-i);return o===a||o===i||n&&a===i||s>l&&c<d}function mn(t,e,r){return Math.max(e,Math.min(r,t))}function hn(t,e,r,n=1e-6){return t>=Math.min(e,r)-n&&t<=Math.max(e,r)+n}function bn(t,e,r){r=r||(r=>t[r]<e);let n,o=t.length-1,a=0;for(;o-a>1;)n=a+o>>1,r(n)?a=n:o=n;return{lo:a,hi:o}}const gn=(t,e,r,n)=>bn(t,r,n?n=>{const o=t[n][e];return o<r||o===r&&t[n+1][e]===r}:n=>t[n][e]<r),vn=(t,e,r)=>bn(t,r,(n=>t[n][e]>=r)),xn=["push","pop","shift","splice","unshift"];function yn(t,e){const r=t._chartjs;if(!r)return;const n=r.listeners,o=n.indexOf(e);-1!==o&&n.splice(o,1),n.length>0||(xn.forEach((e=>{delete t[e]})),delete t._chartjs)}const wn="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function kn(t,e){let r=[],n=!1;return function(...o){r=o,n||(n=!0,wn.call(window,(()=>{n=!1,t.apply(e,r)})))}}const _n=t=>"start"===t?"left":"end"===t?"right":"center",En=(t,e,r)=>"start"===t?e:"end"===t?r:(e+r)/2;const Sn=t=>0===t||1===t,Cn=(t,e,r)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*Xr/r),Mn=(t,e,r)=>Math.pow(2,-10*t)*Math.sin((t-e)*Xr/r)+1,Nn={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*Gr),easeOutSine:t=>Math.sin(t*Gr),easeInOutSine:t=>-.5*(Math.cos(Yr*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>Sn(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Sn(t)?t:Cn(t,.075,.3),easeOutElastic:t=>Sn(t)?t:Mn(t,.075,.3),easeInOutElastic(t){const e=.1125;return Sn(t)?t:t<.5?.5*Cn(2*t,e,.45):.5+.5*Mn(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-Nn.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,r=2.75;return t<1/r?e*t*t:t<2/r?e*(t-=1.5/r)*t+.75:t<2.5/r?e*(t-=2.25/r)*t+.9375:e*(t-=2.625/r)*t+.984375},easeInOutBounce:t=>t<.5?.5*Nn.easeInBounce(2*t):.5*Nn.easeOutBounce(2*t-1)+.5};function Pn(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function On(t){return Pn(t)?t:new kr(t)}function zn(t){return Pn(t)?t:new kr(t).saturate(.5).darken(.1).hexString()}const Tn=["x","y","borderWidth","radius","tension"],Rn=["color","borderColor","backgroundColor"],Ln=new Map;function An(t,e,r){return function(t,e){e=e||{};const r=t+JSON.stringify(e);let n=Ln.get(r);return n||(n=new Intl.NumberFormat(t,e),Ln.set(r,n)),n}(e,r).format(t)}const Dn={values:t=>Cr(t)?t:""+t,numeric(t,e,r){if(0===t)return"0";const n=this.chart.options.locale;let o,a=t;if(r.length>1){const e=Math.max(Math.abs(r[0].value),Math.abs(r[r.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),a=function(t,e){let r=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(r)>=1&&t!==Math.floor(t)&&(r=t-Math.floor(t)),r}(t,r)}const i=tn(Math.abs(a)),s=Math.max(Math.min(-1*Math.floor(i),20),0),l={notation:o,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),An(t,n,l)},logarithmic(t,e,r){if(0===t)return"0";const n=r[e].significand||t/Math.pow(10,Math.floor(tn(t)));return[1,2,3,5,10,15].includes(n)||e>.8*r.length?Dn.numeric.call(this,t,e,r):""}};var jn={formatters:Dn};const In=Object.create(null),Fn=Object.create(null);function Bn(t,e){if(!e)return t;const r=e.split(".");for(let e=0,n=r.length;e<n;++e){const n=r[e];t=t[n]||(t[n]=Object.create(null))}return t}function Un(t,e,r){return"string"==typeof e?jr(Bn(t,e),r):jr(Bn(t,""),e)}class Wn{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>zn(e.backgroundColor),this.hoverBorderColor=(t,e)=>zn(e.borderColor),this.hoverColor=(t,e)=>zn(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return Un(this,t,e)}get(t){return Bn(this,t)}describe(t,e){return Un(Fn,t,e)}override(t,e){return Un(In,t,e)}route(t,e,r,n){const o=Bn(this,t),a=Bn(this,r),i="_"+e;Object.defineProperties(o,{[i]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[i],e=a[n];return Mr(t)?Object.assign({},e,t):Or(t,e)},set(t){this[i]=t}}})}apply(t){t.forEach((t=>t(this)))}}var $n=new Wn({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:Rn},numbers:{type:"number",properties:Tn}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:jn.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function Vn(t,e,r,n,o){let a=e[o];return a||(a=e[o]=t.measureText(o).width,r.push(o)),a>n&&(n=a),n}function Hn(t,e,r){const n=t.currentDevicePixelRatio,o=0!==r?Math.max(r/2,.5):0;return Math.round((e-o)*n)/n+o}function Yn(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function Xn(t,e,r,n){qn(t,e,r,n,null)}function qn(t,e,r,n,o){let a,i,s,l,c,d,u,p;const f=e.pointStyle,m=e.rotation,h=e.radius;let b=(m||0)*Qr;if(f&&"object"==typeof f&&(a=f.toString(),"[object HTMLImageElement]"===a||"[object HTMLCanvasElement]"===a))return t.save(),t.translate(r,n),t.rotate(b),t.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),void t.restore();if(!(isNaN(h)||h<=0)){switch(t.beginPath(),f){default:o?t.ellipse(r,n,o/2,h,0,0,Xr):t.arc(r,n,h,0,Xr),t.closePath();break;case"triangle":d=o?o/2:h,t.moveTo(r+Math.sin(b)*d,n-Math.cos(b)*h),b+=Jr,t.lineTo(r+Math.sin(b)*d,n-Math.cos(b)*h),b+=Jr,t.lineTo(r+Math.sin(b)*d,n-Math.cos(b)*h),t.closePath();break;case"rectRounded":c=.516*h,l=h-c,i=Math.cos(b+Zr)*l,u=Math.cos(b+Zr)*(o?o/2-c:l),s=Math.sin(b+Zr)*l,p=Math.sin(b+Zr)*(o?o/2-c:l),t.arc(r-u,n-s,c,b-Yr,b-Gr),t.arc(r+p,n-i,c,b-Gr,b),t.arc(r+u,n+s,c,b,b+Gr),t.arc(r-p,n+i,c,b+Gr,b+Yr),t.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*h,d=o?o/2:l,t.rect(r-d,n-l,2*d,2*l);break}b+=Zr;case"rectRot":u=Math.cos(b)*(o?o/2:h),i=Math.cos(b)*h,s=Math.sin(b)*h,p=Math.sin(b)*(o?o/2:h),t.moveTo(r-u,n-s),t.lineTo(r+p,n-i),t.lineTo(r+u,n+s),t.lineTo(r-p,n+i),t.closePath();break;case"crossRot":b+=Zr;case"cross":u=Math.cos(b)*(o?o/2:h),i=Math.cos(b)*h,s=Math.sin(b)*h,p=Math.sin(b)*(o?o/2:h),t.moveTo(r-u,n-s),t.lineTo(r+u,n+s),t.moveTo(r+p,n-i),t.lineTo(r-p,n+i);break;case"star":u=Math.cos(b)*(o?o/2:h),i=Math.cos(b)*h,s=Math.sin(b)*h,p=Math.sin(b)*(o?o/2:h),t.moveTo(r-u,n-s),t.lineTo(r+u,n+s),t.moveTo(r+p,n-i),t.lineTo(r-p,n+i),b+=Zr,u=Math.cos(b)*(o?o/2:h),i=Math.cos(b)*h,s=Math.sin(b)*h,p=Math.sin(b)*(o?o/2:h),t.moveTo(r-u,n-s),t.lineTo(r+u,n+s),t.moveTo(r+p,n-i),t.lineTo(r-p,n+i);break;case"line":i=o?o/2:Math.cos(b)*h,s=Math.sin(b)*h,t.moveTo(r-i,n-s),t.lineTo(r+i,n+s);break;case"dash":t.moveTo(r,n),t.lineTo(r+Math.cos(b)*(o?o/2:h),n+Math.sin(b)*h);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function Kn(t,e,r){return r=r||.5,!e||t&&t.x>e.left-r&&t.x<e.right+r&&t.y>e.top-r&&t.y<e.bottom+r}function Qn(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Gn(t){t.restore()}function Zn(t,e,r,n,o){if(!e)return t.lineTo(r.x,r.y);if("middle"===o){const n=(e.x+r.x)/2;t.lineTo(n,e.y),t.lineTo(n,r.y)}else"after"===o!=!!n?t.lineTo(e.x,r.y):t.lineTo(r.x,e.y);t.lineTo(r.x,r.y)}function Jn(t,e,r,n){if(!e)return t.lineTo(r.x,r.y);t.bezierCurveTo(n?e.cp1x:e.cp2x,n?e.cp1y:e.cp2y,n?r.cp2x:r.cp1x,n?r.cp2y:r.cp1y,r.x,r.y)}function to(t,e,r,n,o,a={}){const i=Cr(e)?e:[e],s=a.strokeWidth>0&&""!==a.strokeColor;let l,c;for(t.save(),t.font=o.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),Sr(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,a),l=0;l<i.length;++l)c=i[l],a.backdrop&&ro(t,a.backdrop),s&&(a.strokeColor&&(t.strokeStyle=a.strokeColor),Sr(a.strokeWidth)||(t.lineWidth=a.strokeWidth),t.strokeText(c,r,n,a.maxWidth)),t.fillText(c,r,n,a.maxWidth),eo(t,r,n,c,a),n+=o.lineHeight;t.restore()}function eo(t,e,r,n,o){if(o.strikethrough||o.underline){const a=t.measureText(n),i=e-a.actualBoundingBoxLeft,s=e+a.actualBoundingBoxRight,l=r-a.actualBoundingBoxAscent,c=r+a.actualBoundingBoxDescent,d=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(i,d),t.lineTo(s,d),t.stroke()}}function ro(t,e){const r=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=r}function no(t,e){const{x:r,y:n,w:o,h:a,radius:i}=e;t.arc(r+i.topLeft,n+i.topLeft,i.topLeft,-Gr,Yr,!0),t.lineTo(r,n+a-i.bottomLeft),t.arc(r+i.bottomLeft,n+a-i.bottomLeft,i.bottomLeft,Yr,Gr,!0),t.lineTo(r+o-i.bottomRight,n+a),t.arc(r+o-i.bottomRight,n+a-i.bottomRight,i.bottomRight,Gr,0,!0),t.lineTo(r+o,n+i.topRight),t.arc(r+o-i.topRight,n+i.topRight,i.topRight,0,-Gr,!0),t.lineTo(r+i.topLeft,n)}const oo=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,ao=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function io(t,e){const r=(""+t).match(oo);if(!r||"normal"===r[1])return 1.2*e;switch(t=+r[2],r[3]){case"px":return t;case"%":t/=100}return e*t}function so(t,e){const r={},n=Mr(e),o=n?Object.keys(e):e,a=Mr(t)?n?r=>Or(t[r],t[e[r]]):e=>t[e]:()=>t;for(const t of o)r[t]=+a(t)||0;return r}function lo(t){return so(t,{top:"y",right:"x",bottom:"y",left:"x"})}function co(t){return so(t,["topLeft","topRight","bottomLeft","bottomRight"])}function uo(t){const e=lo(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function po(t,e){t=t||{},e=e||$n.font;let r=Or(t.size,e.size);"string"==typeof r&&(r=parseInt(r,10));let n=Or(t.style,e.style);n&&!(""+n).match(ao)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const o={family:Or(t.family,e.family),lineHeight:io(Or(t.lineHeight,e.lineHeight),r),size:r,style:n,weight:Or(t.weight,e.weight),string:""};return o.string=function(t){return!t||Sr(t.size)||Sr(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function fo(t,e,r,n){let o,a,i,s=!0;for(o=0,a=t.length;o<a;++o)if(i=t[o],void 0!==i&&(void 0!==e&&"function"==typeof i&&(i=i(e),s=!1),void 0!==r&&Cr(i)&&(i=i[r%i.length],s=!1),void 0!==i))return n&&!s&&(n.cacheable=!1),i}function mo(t,e){return Object.assign(Object.create(t),e)}function ho(t,e=[""],r=t,n,o=(()=>t[0])){$r(n)||(n=Co("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:r,_fallback:n,_getTarget:o,override:o=>ho([o,...t],e,r,n)};return new Proxy(a,{deleteProperty:(e,r)=>(delete e[r],delete e._keys,delete t[0][r],!0),get:(r,n)=>yo(r,n,(()=>function(t,e,r,n){let o;for(const a of e)if(o=Co(vo(a,t),r),$r(o))return xo(t,o)?Eo(r,n,t,o):o}(n,e,t,r))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Mo(t).includes(e),ownKeys:t=>Mo(t),set(t,e,r){const n=t._storage||(t._storage=o());return t[e]=n[e]=r,delete t._keys,!0}})}function bo(t,e,r,n){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:r,_stack:new Set,_descriptors:go(t,n),setContext:e=>bo(t,e,r,n),override:o=>bo(t.override(o),e,r,n)};return new Proxy(o,{deleteProperty:(e,r)=>(delete e[r],delete t[r],!0),get:(t,e,r)=>yo(t,e,(()=>function(t,e,r){const{_proxy:n,_context:o,_subProxy:a,_descriptors:i}=t;let s=n[e];return Vr(s)&&i.isScriptable(e)&&(s=function(t,e,r,n){const{_proxy:o,_context:a,_subProxy:i,_stack:s}=r;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);return s.add(t),e=e(a,i||n),s.delete(t),xo(t,e)&&(e=Eo(o._scopes,o,t,e)),e}(e,s,t,r)),Cr(s)&&s.length&&(s=function(t,e,r,n){const{_proxy:o,_context:a,_subProxy:i,_descriptors:s}=r;if($r(a.index)&&n(t))e=e[a.index%e.length];else if(Mr(e[0])){const r=e,n=o._scopes.filter((t=>t!==r));e=[];for(const l of r){const r=Eo(n,o,t,l);e.push(bo(r,a,i&&i[t],s))}}return e}(e,s,t,i.isIndexable)),xo(e,s)&&(s=bo(s,o,a&&a[e],i)),s}(t,e,r))),getOwnPropertyDescriptor:(e,r)=>e._descriptors.allKeys?Reflect.has(t,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,r),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,r)=>Reflect.has(t,r),ownKeys:()=>Reflect.ownKeys(t),set:(e,r,n)=>(t[r]=n,delete e[r],!0)})}function go(t,e={scriptable:!0,indexable:!0}){const{_scriptable:r=e.scriptable,_indexable:n=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:r,indexable:n,isScriptable:Vr(r)?r:()=>r,isIndexable:Vr(n)?n:()=>n}}const vo=(t,e)=>t?t+Wr(e):e,xo=(t,e)=>Mr(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function yo(t,e,r){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const n=r();return t[e]=n,n}function wo(t,e,r){return Vr(t)?t(e,r):t}const ko=(t,e)=>!0===t?e:"string"==typeof t?Ur(e,t):void 0;function _o(t,e,r,n,o){for(const a of e){const e=ko(r,a);if(e){t.add(e);const a=wo(e._fallback,r,o);if($r(a)&&a!==r&&a!==n)return a}else if(!1===e&&$r(n)&&r!==n)return null}return!1}function Eo(t,e,r,n){const o=e._rootScopes,a=wo(e._fallback,r,n),i=[...t,...o],s=new Set;s.add(n);let l=So(s,i,r,a||r,n);return null!==l&&(!$r(a)||a===r||(l=So(s,i,a,l,n),null!==l))&&ho(Array.from(s),[""],o,a,(()=>function(t,e,r){const n=t._getTarget();e in n||(n[e]={});const o=n[e];return Cr(o)&&Mr(r)?r:o||{}}(e,r,n)))}function So(t,e,r,n,o){for(;r;)r=_o(t,e,r,n,o);return r}function Co(t,e){for(const r of e){if(!r)continue;const e=r[t];if($r(e))return e}}function Mo(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const r of t)for(const t of Object.keys(r).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}const No=Number.EPSILON||1e-14,Po=(t,e)=>e<t.length&&!t[e].skip&&t[e],Oo=t=>"x"===t?"y":"x";function zo(t,e,r,n){const o=t.skip?e:t,a=e,i=r.skip?e:r,s=dn(a,o),l=dn(i,a);let c=s/(s+l),d=l/(s+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const u=n*c,p=n*d;return{previous:{x:a.x-u*(i.x-o.x),y:a.y-u*(i.y-o.y)},next:{x:a.x+p*(i.x-o.x),y:a.y+p*(i.y-o.y)}}}function To(t,e,r){return Math.max(Math.min(t,r),e)}function Ro(t,e,r,n,o){let a,i,s,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){const r=Oo(e),n=t.length,o=Array(n).fill(0),a=Array(n);let i,s,l,c=Po(t,0);for(i=0;i<n;++i)if(s=l,l=c,c=Po(t,i+1),l){if(c){const t=c[e]-l[e];o[i]=0!==t?(c[r]-l[r])/t:0}a[i]=s?c?en(o[i-1])!==en(o[i])?0:(o[i-1]+o[i])/2:o[i-1]:o[i]}!function(t,e,r){const n=t.length;let o,a,i,s,l,c=Po(t,0);for(let d=0;d<n-1;++d)l=c,c=Po(t,d+1),l&&c&&(rn(e[d],0,No)?r[d]=r[d+1]=0:(o=r[d]/e[d],a=r[d+1]/e[d],s=Math.pow(o,2)+Math.pow(a,2),s<=9||(i=3/Math.sqrt(s),r[d]=o*i*e[d],r[d+1]=a*i*e[d])))}(t,o,a),function(t,e,r="x"){const n=Oo(r),o=t.length;let a,i,s,l=Po(t,0);for(let c=0;c<o;++c){if(i=s,s=l,l=Po(t,c+1),!s)continue;const o=s[r],d=s[n];i&&(a=(o-i[r])/3,s[`cp1${r}`]=o-a,s[`cp1${n}`]=d-a*e[c]),l&&(a=(l[r]-o)/3,s[`cp2${r}`]=o+a,s[`cp2${n}`]=d+a*e[c])}}(t,a,e)}(t,o);else{let r=n?t[t.length-1]:t[0];for(a=0,i=t.length;a<i;++a)s=t[a],l=zo(r,s,t[Math.min(a+1,i-(n?0:1))%i],e.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,r=s}e.capBezierPoints&&function(t,e){let r,n,o,a,i,s=Kn(t[0],e);for(r=0,n=t.length;r<n;++r)i=a,a=s,s=r<n-1&&Kn(t[r+1],e),a&&(o=t[r],i&&(o.cp1x=To(o.cp1x,e.left,e.right),o.cp1y=To(o.cp1y,e.top,e.bottom)),s&&(o.cp2x=To(o.cp2x,e.left,e.right),o.cp2y=To(o.cp2y,e.top,e.bottom)))}(t,r)}function Lo(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Ao(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Do(t,e,r){let n;return"string"==typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[r])):n=t,n}const jo=t=>t.ownerDocument.defaultView.getComputedStyle(t,null),Io=["top","right","bottom","left"];function Fo(t,e,r){const n={};r=r?"-"+r:"";for(let o=0;o<4;o++){const a=Io[o];n[a]=parseFloat(t[e+"-"+a+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function Bo(t,e){if("native"in t)return t;const{canvas:r,currentDevicePixelRatio:n}=e,o=jo(r),a="border-box"===o.boxSizing,i=Fo(o,"padding"),s=Fo(o,"border","width"),{x:l,y:c,box:d}=function(t,e){const r=t.touches,n=r&&r.length?r[0]:t,{offsetX:o,offsetY:a}=n;let i,s,l=!1;if(((t,e,r)=>(t>0||e>0)&&(!r||!r.shadowRoot))(o,a,t.target))i=o,s=a;else{const t=e.getBoundingClientRect();i=n.clientX-t.left,s=n.clientY-t.top,l=!0}return{x:i,y:s,box:l}}(t,r),u=i.left+(d&&s.left),p=i.top+(d&&s.top);let{width:f,height:m}=e;return a&&(f-=i.width+s.width,m-=i.height+s.height),{x:Math.round((l-u)/f*r.width/n),y:Math.round((c-p)/m*r.height/n)}}const Uo=t=>Math.round(10*t)/10;function Wo(t,e,r){const n=e||1,o=Math.floor(t.height*n),a=Math.floor(t.width*n);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const i=t.canvas;return i.style&&(r||!i.style.height&&!i.style.width)&&(i.style.height=`${t.height}px`,i.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||i.height!==o||i.width!==a)&&(t.currentDevicePixelRatio=n,i.height=o,i.width=a,t.ctx.setTransform(n,0,0,n,0,0),!0)}const $o=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function Vo(t,e){const r=function(t,e){return jo(t).getPropertyValue(e)}(t,e),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function Ho(t,e,r,n){return{x:t.x+r*(e.x-t.x),y:t.y+r*(e.y-t.y)}}function Yo(t,e,r,n){return{x:t.x+r*(e.x-t.x),y:"middle"===n?r<.5?t.y:e.y:"after"===n?r<1?t.y:e.y:r>0?e.y:t.y}}function Xo(t,e,r,n){const o={x:t.cp2x,y:t.cp2y},a={x:e.cp1x,y:e.cp1y},i=Ho(t,o,r),s=Ho(o,a,r),l=Ho(a,e,r),c=Ho(i,s,r),d=Ho(s,l,r);return Ho(c,d,r)}function qo(t,e,r){return t?function(t,e){return{x:r=>t+t+e-r,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,r):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function Ko(t,e){let r,n;"ltr"!==e&&"rtl"!==e||(r=t.canvas.style,n=[r.getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",e,"important"),t.prevTextDirection=n)}function Qo(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Go(t){return"angle"===t?{between:fn,compare:un,normalize:pn}:{between:hn,compare:(t,e)=>t-e,normalize:t=>t}}function Zo({start:t,end:e,count:r,loop:n,style:o}){return{start:t%r,end:e%r,loop:n&&(e-t+1)%r==0,style:o}}function Jo(t,e,r){if(!r)return[t];const{property:n,start:o,end:a}=r,i=e.length,{compare:s,between:l,normalize:c}=Go(n),{start:d,end:u,loop:p,style:f}=function(t,e,r){const{property:n,start:o,end:a}=r,{between:i,normalize:s}=Go(n),l=e.length;let c,d,{start:u,end:p,loop:f}=t;if(f){for(u+=l,p+=l,c=0,d=l;c<d&&i(s(e[u%l][n]),o,a);++c)u--,p--;u%=l,p%=l}return p<u&&(p+=l),{start:u,end:p,loop:f,style:t.style}}(t,e,r),m=[];let h,b,g,v=!1,x=null;for(let t=d,r=d;t<=u;++t)b=e[t%i],b.skip||(h=c(b[n]),h!==g&&(v=l(h,o,a),null===x&&(v||l(o,g,h)&&0!==s(o,g))&&(x=0===s(h,o)?t:r),null!==x&&(!v||0===s(a,h)||l(a,g,h))&&(m.push(Zo({start:x,end:t,loop:p,count:i,style:f})),x=null),r=t,g=h));return null!==x&&m.push(Zo({start:x,end:u,loop:p,count:i,style:f})),m}function ta(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function ea(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}class ra{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,r,n){const o=e.listeners[n],a=e.duration;o.forEach((n=>n({chart:t,initial:e.initial,numSteps:a,currentStep:Math.min(r-e.start,a)})))}_refresh(){this._request||(this._running=!0,this._request=wn.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((r,n)=>{if(!r.running||!r.items.length)return;const o=r.items;let a,i=o.length-1,s=!1;for(;i>=0;--i)a=o[i],a._active?(a._total>r.duration&&(r.duration=a._total),a.tick(t),s=!0):(o[i]=o[o.length-1],o.pop());s&&(n.draw(),this._notify(n,r,t,"progress")),o.length||(r.running=!1,this._notify(n,r,t,"complete"),r.initial=!1),e+=o.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let r=e.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,r)),r}listen(t,e,r){this._getAnims(t).listeners[e].push(r)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const r=e.items;let n=r.length-1;for(;n>=0;--n)r[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var na=new ra;const oa="transparent",aa={boolean:(t,e,r)=>r>.5?e:t,color(t,e,r){const n=On(t||oa),o=n.valid&&On(e||oa);return o&&o.valid?o.mix(n,r).hexString():e},number:(t,e,r)=>t+(e-t)*r};class ia{constructor(t,e,r,n){const o=e[r];n=fo([t.to,n,o,t.from]);const a=fo([t.from,o,n]);this._active=!0,this._fn=t.fn||aa[t.type||typeof a],this._easing=Nn[t.easing]||Nn.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=r,this._from=a,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,r){if(this._active){this._notify(!1);const n=this._target[this._prop],o=r-this._start,a=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=fo([t.to,e,n,t.from]),this._from=fo([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,r=this._duration,n=this._prop,o=this._from,a=this._loop,i=this._to;let s;if(this._active=o!==i&&(a||e<r),!this._active)return this._target[n]=i,void this._notify(!0);e<0?this._target[n]=o:(s=e/r%2,s=a&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[n]=this._fn(o,i,s))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,r)=>{t.push({res:e,rej:r})}))}_notify(t){const e=t?"res":"rej",r=this._promises||[];for(let t=0;t<r.length;t++)r[t][e]()}}class sa{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Mr(t))return;const e=Object.keys($n.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach((n=>{const o=t[n];if(!Mr(o))return;const a={};for(const t of e)a[t]=o[t];(Cr(o.properties)&&o.properties||[n]).forEach((t=>{t!==n&&r.has(t)||r.set(t,a)}))}))}_animateOptions(t,e){const r=e.options,n=function(t,e){if(!e)return;let r=t.options;if(r)return r.$shared&&(t.options=r=Object.assign({},r,{$shared:!1,$animations:{}})),r;t.options=e}(t,r);if(!n)return[];const o=this._createAnimations(n,r);return r.$shared&&function(t,e){const r=[],n=Object.keys(e);for(let e=0;e<n.length;e++){const o=t[n[e]];o&&o.active()&&r.push(o.wait())}return Promise.all(r)}(t.options.$animations,r).then((()=>{t.options=r}),(()=>{})),o}_createAnimations(t,e){const r=this._properties,n=[],o=t.$animations||(t.$animations={}),a=Object.keys(e),i=Date.now();let s;for(s=a.length-1;s>=0;--s){const l=a[s];if("$"===l.charAt(0))continue;if("options"===l){n.push(...this._animateOptions(t,e));continue}const c=e[l];let d=o[l];const u=r.get(l);if(d){if(u&&d.active()){d.update(u,c,i);continue}d.cancel()}u&&u.duration?(o[l]=d=new ia(u,t,l,c),n.push(d)):t[l]=c}return n}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const r=this._createAnimations(t,e);return r.length?(na.add(this._chart,r),!0):void 0}}function la(t,e){const r=t&&t.options||{},n=r.reverse,o=void 0===r.min?e:0,a=void 0===r.max?e:0;return{start:n?a:o,end:n?o:a}}function ca(t,e){const r=[],n=t._getSortedDatasetMetas(e);let o,a;for(o=0,a=n.length;o<a;++o)r.push(n[o].index);return r}function da(t,e,r,n={}){const o=t.keys,a="single"===n.mode;let i,s,l,c;if(null!==e){for(i=0,s=o.length;i<s;++i){if(l=+o[i],l===r){if(n.all)continue;break}c=t.values[l],Nr(c)&&(a||0===e||en(e)===en(c))&&(e+=c)}return e}}function ua(t,e){const r=t&&t.options.stacked;return r||void 0===r&&void 0!==e.stack}function pa(t,e,r){const n=t[e]||(t[e]={});return n[r]||(n[r]={})}function fa(t,e,r,n){for(const o of e.getMatchingVisibleMetas(n).reverse()){const e=t[o.index];if(r&&e>0||!r&&e<0)return o.index}return null}function ma(t,e){const{chart:r,_cachedMeta:n}=t,o=r._stacks||(r._stacks={}),{iScale:a,vScale:i,index:s}=n,l=a.axis,c=i.axis,d=function(t,e,r){return`${t.id}.${e.id}.${r.stack||r.type}`}(a,i,n),u=e.length;let p;for(let t=0;t<u;++t){const r=e[t],{[l]:a,[c]:u}=r;p=(r._stacks||(r._stacks={}))[c]=pa(o,d,a),p[s]=u,p._top=fa(p,i,!0,n.type),p._bottom=fa(p,i,!1,n.type),(p._visualValues||(p._visualValues={}))[s]=u}}function ha(t,e){const r=t.scales;return Object.keys(r).filter((t=>r[t].axis===e)).shift()}function ba(t,e){const r=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[n]||void 0===e[n][r])return;delete e[n][r],void 0!==e[n]._visualValues&&void 0!==e[n]._visualValues[r]&&delete e[n]._visualValues[r]}}}const ga=t=>"reset"===t||"none"===t,va=(t,e)=>e?t:Object.assign({},t);class xa{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=ua(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&ba(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,r=this.getDataset(),n=(t,e,r,n)=>"x"===t?e:"r"===t?n:r,o=e.xAxisID=Or(r.xAxisID,ha(t,"x")),a=e.yAxisID=Or(r.yAxisID,ha(t,"y")),i=e.rAxisID=Or(r.rAxisID,ha(t,"r")),s=e.indexAxis,l=e.iAxisID=n(s,o,a,i),c=e.vAxisID=n(s,a,o,i);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(i),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&yn(this._data,this),t._stacked&&ba(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),r=this._data;if(Mr(e))this._data=function(t){const e=Object.keys(t),r=new Array(e.length);let n,o,a;for(n=0,o=e.length;n<o;++n)a=e[n],r[n]={x:a,y:t[a]};return r}(e);else if(r!==e){if(r){yn(r,this);const t=this._cachedMeta;ba(t),t._parsed=[]}e&&Object.isExtensible(e)&&(this,(n=e)._chartjs?n._chartjs.listeners.push(this):(Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),xn.forEach((t=>{const e="_onData"+Wr(t),r=n[t];Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value(...t){const o=r.apply(this,t);return n._chartjs.listeners.forEach((r=>{"function"==typeof r[e]&&r[e](...t)})),o}})})))),this._syncList=[],this._data=e}var n}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,r=this.getDataset();let n=!1;this._dataCheck();const o=e._stacked;e._stacked=ua(e.vScale,e),e.stack!==r.stack&&(n=!0,ba(e),e.stack=r.stack),this._resyncElements(t),(n||o!==e._stacked)&&ma(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:r,_data:n}=this,{iScale:o,_stacked:a}=r,i=o.axis;let s,l,c,d=0===t&&e===n.length||r._sorted,u=t>0&&r._parsed[t-1];if(!1===this._parsing)r._parsed=n,r._sorted=!0,c=n;else{c=Cr(n[t])?this.parseArrayData(r,n,t,e):Mr(n[t])?this.parseObjectData(r,n,t,e):this.parsePrimitiveData(r,n,t,e);const o=()=>null===l[i]||u&&l[i]<u[i];for(s=0;s<e;++s)r._parsed[s+t]=l=c[s],d&&(o()&&(d=!1),u=l);r._sorted=d}a&&ma(this,c)}parsePrimitiveData(t,e,r,n){const{iScale:o,vScale:a}=t,i=o.axis,s=a.axis,l=o.getLabels(),c=o===a,d=new Array(n);let u,p,f;for(u=0,p=n;u<p;++u)f=u+r,d[u]={[i]:c||o.parse(l[f],f),[s]:a.parse(e[f],f)};return d}parseArrayData(t,e,r,n){const{xScale:o,yScale:a}=t,i=new Array(n);let s,l,c,d;for(s=0,l=n;s<l;++s)c=s+r,d=e[c],i[s]={x:o.parse(d[0],c),y:a.parse(d[1],c)};return i}parseObjectData(t,e,r,n){const{xScale:o,yScale:a}=t,{xAxisKey:i="x",yAxisKey:s="y"}=this._parsing,l=new Array(n);let c,d,u,p;for(c=0,d=n;c<d;++c)u=c+r,p=e[u],l[c]={x:o.parse(Ur(p,i),u),y:a.parse(Ur(p,s),u)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,r){const n=this.chart,o=this._cachedMeta,a=e[t.axis];return da({keys:ca(n,!0),values:e._stacks[t.axis]._visualValues},a,o.index,{mode:r})}updateRangeFromParsed(t,e,r,n){const o=r[e.axis];let a=null===o?NaN:o;const i=n&&r._stacks[e.axis];n&&i&&(n.values=i,a=da(n,o,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,e){const r=this._cachedMeta,n=r._parsed,o=r._sorted&&t===r.iScale,a=n.length,i=this._getOtherScale(t),s=((t,e,r)=>t&&!e.hidden&&e._stacked&&{keys:ca(r,!0),values:null})(e,r,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=function(t){const{min:e,max:r,minDefined:n,maxDefined:o}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:o?r:Number.POSITIVE_INFINITY}}(i);let u,p;function f(){p=n[u];const e=p[i.axis];return!Nr(p[t.axis])||c>e||d<e}for(u=0;u<a&&(f()||(this.updateRangeFromParsed(l,t,p,s),!o));++u);if(o)for(u=a-1;u>=0;--u)if(!f()){this.updateRangeFromParsed(l,t,p,s);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,r=[];let n,o,a;for(n=0,o=e.length;n<o;++n)a=e[n][t.axis],Nr(a)&&r.push(a);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,r=e.iScale,n=e.vScale,o=this.getParsed(t);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:n?""+n.getLabelForValue(o[n.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,r,n,o;return Mr(t)?(e=t.top,r=t.right,n=t.bottom,o=t.left):e=r=n=o=t,{top:e,right:r,bottom:n,left:o,disabled:!1===t}}(Or(this.options.clip,function(t,e,r){if(!1===r)return!1;const n=la(t,r),o=la(e,r);return{top:o.end,right:n.end,bottom:o.start,left:n.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,r=this._cachedMeta,n=r.data||[],o=e.chartArea,a=[],i=this._drawStart||0,s=this._drawCount||n.length-i,l=this.options.drawActiveElementsOnTop;let c;for(r.dataset&&r.dataset.draw(t,o,i,s),c=i;c<i+s;++c){const e=n[c];e.hidden||(e.active&&l?a.push(e):e.draw(t,o))}for(c=0;c<a.length;++c)a[c].draw(t,o)}getStyle(t,e){const r=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,e,r){const n=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];o=e.$context||(e.$context=function(t,e,r){return mo(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:r,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=n.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=function(t,e){return mo(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=n,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=r,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",r){const n="active"===e,o=this._cachedDataOpts,a=t+"-"+e,i=o[a],s=this.enableOptionSharing&&$r(r);if(i)return va(i,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),d=n?[`${t}Hover`,"hover",t,""]:[t,""],u=l.getOptionScopes(this.getDataset(),c),p=Object.keys($n.elements[t]),f=l.resolveNamedOptions(u,p,(()=>this.getContext(r,n,e)),d);return f.$shared&&(f.$shared=s,o[a]=Object.freeze(va(f,s))),f}_resolveAnimations(t,e,r){const n=this.chart,o=this._cachedDataOpts,a=`animation-${e}`,i=o[a];if(i)return i;let s;if(!1!==n.options.animation){const n=this.chart.config,o=n.datasetAnimationScopeKeys(this._type,e),a=n.getOptionScopes(this.getDataset(),o);s=n.createResolver(a,this.getContext(t,r,e))}const l=new sa(n,s&&s.animations);return s&&s._cacheable&&(o[a]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||ga(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const r=this.resolveDataElementOptions(t,e),n=this._sharedOptions,o=this.getSharedOptions(r),a=this.includeOptions(e,o)||o!==n;return this.updateSharedOptions(o,e,r),{sharedOptions:o,includeOptions:a}}updateElement(t,e,r,n){ga(n)?Object.assign(t,r):this._resolveAnimations(e,n).update(t,r)}updateSharedOptions(t,e,r){t&&!ga(e)&&this._resolveAnimations(void 0,e).update(t,r)}_setStyle(t,e,r,n){t.active=n;const o=this.getStyle(e,n);this._resolveAnimations(e,r,n).update(t,{options:!n&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,e,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,r=this._cachedMeta.data;for(const[t,e,r]of this._syncList)this[t](e,r);this._syncList=[];const n=r.length,o=e.length,a=Math.min(o,n);a&&this.parse(0,a),o>n?this._insertElements(n,o-n,t):o<n&&this._removeElements(o,n-o)}_insertElements(t,e,r=!0){const n=this._cachedMeta,o=n.data,a=t+e;let i;const s=t=>{for(t.length+=e,i=t.length-1;i>=a;i--)t[i]=t[i-e]};for(s(o),i=t;i<a;++i)o[i]=new this.dataElementType;this._parsing&&s(n._parsed),this.parse(t,e),r&&this.updateElements(o,t,e,"reset")}updateElements(t,e,r,n){}_removeElements(t,e){const r=this._cachedMeta;if(this._parsing){const n=r._parsed.splice(t,e);r._stacked&&ba(r,n)}r.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,r,n]=t;this[e](r,n)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function ya(t){const e=t.iScale,r=function(t,e){if(!t._cache.$bar){const r=t.getMatchingVisibleMetas(e);let n=[];for(let e=0,o=r.length;e<o;e++)n=n.concat(r[e].controller.getAllParsedValues(t));t._cache.$bar=function(t){const e=new Set;let r,n;for(r=0,n=t.length;r<n;++r)e.add(t[r]);return e.size===n?t:Array.from(e)}(n.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let n,o,a,i,s=e._length;const l=()=>{32767!==a&&-32768!==a&&($r(i)&&(s=Math.min(s,Math.abs(a-i)||s)),i=a)};for(n=0,o=r.length;n<o;++n)a=e.getPixelForValue(r[n]),l();for(i=void 0,n=0,o=e.ticks.length;n<o;++n)a=e.getPixelForTick(n),l();return s}function wa(t,e,r,n){return Cr(t)?function(t,e,r,n){const o=r.parse(t[0],n),a=r.parse(t[1],n),i=Math.min(o,a),s=Math.max(o,a);let l=i,c=s;Math.abs(i)>Math.abs(s)&&(l=s,c=i),e[r.axis]=c,e._custom={barStart:l,barEnd:c,start:o,end:a,min:i,max:s}}(t,e,r,n):e[r.axis]=r.parse(t,n),e}function ka(t,e,r,n){const o=t.iScale,a=t.vScale,i=o.getLabels(),s=o===a,l=[];let c,d,u,p;for(c=r,d=r+n;c<d;++c)p=e[c],u={},u[o.axis]=s||o.parse(i[c],c),l.push(wa(p,u,a,c));return l}function _a(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Ea(t,e,r,n){let o=e.borderSkipped;const a={};if(!o)return void(t.borderSkipped=a);if(!0===o)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:i,end:s,reverse:l,top:c,bottom:d}=function(t){let e,r,n,o,a;return t.horizontal?(e=t.base>t.x,r="left",n="right"):(e=t.base<t.y,r="bottom",n="top"),e?(o="end",a="start"):(o="start",a="end"),{start:r,end:n,reverse:e,top:o,bottom:a}}(t);"middle"===o&&r&&(t.enableBorderRadius=!0,(r._top||0)===n?o=c:(r._bottom||0)===n?o=d:(a[Sa(d,i,s,l)]=!0,o=c)),a[Sa(o,i,s,l)]=!0,t.borderSkipped=a}function Sa(t,e,r,n){var o,a,i;return n?(i=r,t=Ca(t=(o=t)===(a=e)?i:o===i?a:o,r,e)):t=Ca(t,e,r),t}function Ca(t,e,r){return"start"===t?e:"end"===t?r:t}function Ma(t,{inflateAmount:e},r){t.inflateAmount="auto"===e?1===r?.33:0:e}class Na extends xa{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,r,n){return ka(t,e,r,n)}parseArrayData(t,e,r,n){return ka(t,e,r,n)}parseObjectData(t,e,r,n){const{iScale:o,vScale:a}=t,{xAxisKey:i="x",yAxisKey:s="y"}=this._parsing,l="x"===o.axis?i:s,c="x"===a.axis?i:s,d=[];let u,p,f,m;for(u=r,p=r+n;u<p;++u)m=e[u],f={},f[o.axis]=o.parse(Ur(m,l),u),d.push(wa(Ur(m,c),f,a,u));return d}updateRangeFromParsed(t,e,r,n){super.updateRangeFromParsed(t,e,r,n);const o=r._custom;o&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:r,vScale:n}=e,o=this.getParsed(t),a=o._custom,i=_a(a)?"["+a.start+", "+a.end+"]":""+n.getLabelForValue(o[n.axis]);return{label:""+r.getLabelForValue(o[r.axis]),value:i}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,r,n){const o="reset"===n,{index:a,_cachedMeta:{vScale:i}}=this,s=i.getBasePixel(),l=i.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:u}=this._getSharedOptions(e,n);for(let p=e;p<e+r;p++){const e=this.getParsed(p),r=o||Sr(e[i.axis])?{base:s,head:s}:this._calculateBarValuePixels(p),f=this._calculateBarIndexPixels(p,c),m=(e._stacks||{})[i.axis],h={horizontal:l,base:r.base,enableBorderRadius:!m||_a(e._custom)||a===m._top||a===m._bottom,x:l?r.head:f.center,y:l?f.center:r.head,height:l?f.size:Math.abs(r.size),width:l?Math.abs(r.size):f.size};u&&(h.options=d||this.resolveDataElementOptions(p,t[p].active?"active":n));const b=h.options||t[p].options;Ea(h,b,m,a),Ma(h,b,c.ratio),this.updateElement(t[p],p,h,n)}}_getStacks(t,e){const{iScale:r}=this._cachedMeta,n=r.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),o=r.options.stacked,a=[],i=t=>{const r=t.controller.getParsed(e),n=r&&r[t.vScale.axis];if(Sr(n)||isNaN(n))return!0};for(const r of n)if((void 0===e||!i(r))&&((!1===o||-1===a.indexOf(r.stack)||void 0===o&&void 0===r.stack)&&a.push(r.stack),r.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,r){const n=this._getStacks(t,r),o=void 0!==e?n.indexOf(e):-1;return-1===o?n.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,r=e.iScale,n=[];let o,a;for(o=0,a=e.data.length;o<a;++o)n.push(r.getPixelForValue(this.getParsed(o)[r.axis],o));const i=t.barThickness;return{min:i||ya(e),pixels:n,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:i?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:r,index:n},options:{base:o,minBarLength:a}}=this,i=o||0,s=this.getParsed(t),l=s._custom,c=_a(l);let d,u,p=s[e.axis],f=0,m=r?this.applyStack(e,s,r):p;m!==p&&(f=m-p,m=p),c&&(p=l.barStart,m=l.barEnd-l.barStart,0!==p&&en(p)!==en(l.barEnd)&&(f=0),f+=p);const h=Sr(o)||c?f:o;let b=e.getPixelForValue(h);if(d=this.chart.getDataVisibility(t)?e.getPixelForValue(f+m):b,u=d-b,Math.abs(u)<a){u=function(t,e,r){return 0!==t?en(t):(e.isHorizontal()?1:-1)*(e.min>=r?1:-1)}(u,e,i)*a,p===i&&(b-=u/2);const t=e.getPixelForDecimal(0),o=e.getPixelForDecimal(1),l=Math.min(t,o),f=Math.max(t,o);b=Math.max(Math.min(b,f),l),d=b+u,r&&!c&&(s._stacks[e.axis]._visualValues[n]=e.getValueForPixel(d)-e.getValueForPixel(b))}if(b===e.getPixelForValue(i)){const t=en(u)*e.getLineWidthForValue(i)/2;b+=t,u-=t}return{size:u,base:b,head:d,center:d+u/2}}_calculateBarIndexPixels(t,e){const r=e.scale,n=this.options,o=n.skipNull,a=Or(n.maxBarThickness,1/0);let i,s;if(e.grouped){const r=o?this._getStackCount(t):e.stackCount,l="flex"===n.barThickness?function(t,e,r,n){const o=e.pixels,a=o[t];let i=t>0?o[t-1]:null,s=t<o.length-1?o[t+1]:null;const l=r.categoryPercentage;null===i&&(i=a-(null===s?e.end-e.start:s-a)),null===s&&(s=a+a-i);const c=a-(a-Math.min(i,s))/2*l;return{chunk:Math.abs(s-i)/2*l/n,ratio:r.barPercentage,start:c}}(t,e,n,r):function(t,e,r,n){const o=r.barThickness;let a,i;return Sr(o)?(a=e.min*r.categoryPercentage,i=r.barPercentage):(a=o*n,i=1),{chunk:a/n,ratio:i,start:e.pixels[t]-a/2}}(t,e,n,r),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);i=l.start+l.chunk*c+l.chunk/2,s=Math.min(a,l.chunk*l.ratio)}else i=r.getPixelForValue(this.getParsed(t)[r.axis],t),s=Math.min(a,e.min*e.ratio);return{base:i-s/2,head:i+s/2,center:i,size:s}}draw(){const t=this._cachedMeta,e=t.vScale,r=t.data,n=r.length;let o=0;for(;o<n;++o)null!==this.getParsed(o)[e.axis]&&r[o].draw(this._ctx)}}class Pa extends xa{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:r,data:n=[],_dataset:o}=e,a=this.chart._animationsDisabled;let{start:i,count:s}=function(t,e,r){const n=e.length;let o=0,a=n;if(t._sorted){const{iScale:i,_parsed:s}=t,l=i.axis,{min:c,max:d,minDefined:u,maxDefined:p}=i.getUserBounds();u&&(o=mn(Math.min(gn(s,i.axis,c).lo,r?n:gn(e,l,i.getPixelForValue(c)).lo),0,n-1)),a=p?mn(Math.max(gn(s,i.axis,d,!0).hi+1,r?0:gn(e,l,i.getPixelForValue(d),!0).hi+1),o,n)-o:n-o}return{start:o,count:a}}(e,n,a);this._drawStart=i,this._drawCount=s,function(t){const{xScale:e,yScale:r,_scaleRanges:n}=t,o={xmin:e.min,xmax:e.max,ymin:r.min,ymax:r.max};if(!n)return t._scaleRanges=o,!0;const a=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==r.min||n.ymax!==r.max;return Object.assign(n,o),a}(e)&&(i=0,s=n.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=n;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(r,void 0,{animated:!a,options:l},t),this.updateElements(n,i,s,t)}updateElements(t,e,r,n){const o="reset"===n,{iScale:a,vScale:i,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(e,n),u=a.axis,p=i.axis,{spanGaps:f,segment:m}=this.options,h=on(f)?f:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||"none"===n,g=e+r,v=t.length;let x=e>0&&this.getParsed(e-1);for(let r=0;r<v;++r){const f=t[r],v=b?f:{};if(r<e||r>=g){v.skip=!0;continue}const y=this.getParsed(r),w=Sr(y[p]),k=v[u]=a.getPixelForValue(y[u],r),_=v[p]=o||w?i.getBasePixel():i.getPixelForValue(s?this.applyStack(i,y,s):y[p],r);v.skip=isNaN(k)||isNaN(_)||w,v.stop=r>0&&Math.abs(y[u]-x[u])>h,m&&(v.parsed=y,v.raw=l.data[r]),d&&(v.options=c||this.resolveDataElementOptions(r,f.active?"active":n)),b||this.updateElement(f,r,v,n),x=y}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,r=e.options&&e.options.borderWidth||0,n=t.data||[];if(!n.length)return r;const o=n[0].size(this.resolveDataElementOptions(0)),a=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(r,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}function Oa(t,e,r,n){const{controller:o,data:a,_sorted:i}=t,s=o._cachedMeta.iScale;if(s&&e===s.axis&&"r"!==e&&i&&a.length){const t=s._reversePixels?vn:gn;if(!n)return t(a,e,r);if(o._sharedOptions){const n=a[0],o="function"==typeof n.getRange&&n.getRange(e);if(o){const n=t(a,e,r-o),i=t(a,e,r+o);return{lo:n.lo,hi:i.hi}}}}return{lo:0,hi:a.length-1}}function za(t,e,r,n,o){const a=t.getSortedVisibleDatasetMetas(),i=r[e];for(let t=0,r=a.length;t<r;++t){const{index:r,data:s}=a[t],{lo:l,hi:c}=Oa(a[t],e,i,o);for(let t=l;t<=c;++t){const e=s[t];e.skip||n(e,r,t)}}}function Ta(t,e,r,n,o){const a=[];return o||t.isPointInArea(e)?(za(t,r,e,(function(r,i,s){(o||Kn(r,t.chartArea,0))&&r.inRange(e.x,e.y,n)&&a.push({element:r,datasetIndex:i,index:s})}),!0),a):a}function Ra(t,e,r,n,o,a){return a||t.isPointInArea(e)?"r"!==r||n?function(t,e,r,n,o,a){let i=[];const s=function(t){const e=-1!==t.indexOf("x"),r=-1!==t.indexOf("y");return function(t,n){const o=e?Math.abs(t.x-n.x):0,a=r?Math.abs(t.y-n.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(a,2))}}(r);let l=Number.POSITIVE_INFINITY;return za(t,r,e,(function(r,c,d){const u=r.inRange(e.x,e.y,o);if(n&&!u)return;const p=r.getCenterPoint(o);if(!a&&!t.isPointInArea(p)&&!u)return;const f=s(e,p);f<l?(i=[{element:r,datasetIndex:c,index:d}],l=f):f===l&&i.push({element:r,datasetIndex:c,index:d})})),i}(t,e,r,n,o,a):function(t,e,r,n){let o=[];return za(t,r,e,(function(t,r,a){const{startAngle:i,endAngle:s}=t.getProps(["startAngle","endAngle"],n),{angle:l}=cn(t,{x:e.x,y:e.y});fn(l,i,s)&&o.push({element:t,datasetIndex:r,index:a})})),o}(t,e,r,o):[]}function La(t,e,r,n,o){const a=[],i="x"===r?"inXRange":"inYRange";let s=!1;return za(t,r,e,((t,n,l)=>{t[i](e[r],o)&&(a.push({element:t,datasetIndex:n,index:l}),s=s||t.inRange(e.x,e.y,o))})),n&&!s?[]:a}var Aa={evaluateInteractionItems:za,modes:{index(t,e,r,n){const o=Bo(e,t),a=r.axis||"x",i=r.includeInvisible||!1,s=r.intersect?Ta(t,o,a,n,i):Ra(t,o,a,!1,n,i),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=s[0].index,r=t.data[e];r&&!r.skip&&l.push({element:r,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,r,n){const o=Bo(e,t),a=r.axis||"xy",i=r.includeInvisible||!1;let s=r.intersect?Ta(t,o,a,n,i):Ra(t,o,a,!1,n,i);if(s.length>0){const e=s[0].datasetIndex,r=t.getDatasetMeta(e).data;s=[];for(let t=0;t<r.length;++t)s.push({element:r[t],datasetIndex:e,index:t})}return s},point:(t,e,r,n)=>Ta(t,Bo(e,t),r.axis||"xy",n,r.includeInvisible||!1),nearest(t,e,r,n){const o=Bo(e,t),a=r.axis||"xy",i=r.includeInvisible||!1;return Ra(t,o,a,r.intersect,n,i)},x:(t,e,r,n)=>La(t,Bo(e,t),"x",r.intersect,n),y:(t,e,r,n)=>La(t,Bo(e,t),"y",r.intersect,n)}};const Da=["left","top","right","bottom"];function ja(t,e){return t.filter((t=>t.pos===e))}function Ia(t,e){return t.filter((t=>-1===Da.indexOf(t.pos)&&t.box.axis===e))}function Fa(t,e){return t.sort(((t,r)=>{const n=e?r:t,o=e?t:r;return n.weight===o.weight?n.index-o.index:n.weight-o.weight}))}function Ba(t,e,r,n){return Math.max(t[r],e[r])+Math.max(t[n],e[n])}function Ua(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Wa(t,e,r,n){const{pos:o,box:a}=r,i=t.maxPadding;if(!Mr(o)){r.size&&(t[o]-=r.size);const e=n[r.stack]||{size:0,count:1};e.size=Math.max(e.size,r.horizontal?a.height:a.width),r.size=e.size/e.count,t[o]+=r.size}a.getPadding&&Ua(i,a.getPadding());const s=Math.max(0,e.outerWidth-Ba(i,t,"left","right")),l=Math.max(0,e.outerHeight-Ba(i,t,"top","bottom")),c=s!==t.w,d=l!==t.h;return t.w=s,t.h=l,r.horizontal?{same:c,other:d}:{same:d,other:c}}function $a(t,e){const r=e.maxPadding;return function(t){const n={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{n[t]=Math.max(e[t],r[t])})),n}(t?["left","right"]:["top","bottom"])}function Va(t,e,r,n){const o=[];let a,i,s,l,c,d;for(a=0,i=t.length,c=0;a<i;++a){s=t[a],l=s.box,l.update(s.width||e.w,s.height||e.h,$a(s.horizontal,e));const{same:i,other:u}=Wa(e,r,s,n);c|=i&&o.length,d=d||u,l.fullSize||o.push(s)}return c&&Va(o,e,r,n)||d}function Ha(t,e,r,n,o){t.top=r,t.left=e,t.right=e+n,t.bottom=r+o,t.width=n,t.height=o}function Ya(t,e,r,n){const o=r.padding;let{x:a,y:i}=e;for(const s of t){const t=s.box,l=n[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const n=e.w*c,a=l.size||t.height;$r(l.start)&&(i=l.start),t.fullSize?Ha(t,o.left,i,r.outerWidth-o.right-o.left,a):Ha(t,e.left+l.placed,i,n,a),l.start=i,l.placed+=n,i=t.bottom}else{const n=e.h*c,i=l.size||t.width;$r(l.start)&&(a=l.start),t.fullSize?Ha(t,a,o.top,i,r.outerHeight-o.bottom-o.top):Ha(t,a,e.top+l.placed,i,n),l.start=a,l.placed+=n,a=t.right}}e.x=a,e.y=i}var Xa={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const r=t.boxes?t.boxes.indexOf(e):-1;-1!==r&&t.boxes.splice(r,1)},configure(t,e,r){e.fullSize=r.fullSize,e.position=r.position,e.weight=r.weight},update(t,e,r,n){if(!t)return;const o=uo(t.options.layout.padding),a=Math.max(e-o.width,0),i=Math.max(r-o.height,0),s=function(t){const e=function(t){const e=[];let r,n,o,a,i,s;for(r=0,n=(t||[]).length;r<n;++r)o=t[r],({position:a,options:{stack:i,stackWeight:s=1}}=o),e.push({index:r,box:o,pos:a,horizontal:o.isHorizontal(),weight:o.weight,stack:i&&a+i,stackWeight:s});return e}(t),r=Fa(e.filter((t=>t.box.fullSize)),!0),n=Fa(ja(e,"left"),!0),o=Fa(ja(e,"right")),a=Fa(ja(e,"top"),!0),i=Fa(ja(e,"bottom")),s=Ia(e,"x"),l=Ia(e,"y");return{fullSize:r,leftAndTop:n.concat(a),rightAndBottom:o.concat(l).concat(i).concat(s),chartArea:ja(e,"chartArea"),vertical:n.concat(o).concat(l),horizontal:a.concat(i).concat(s)}}(t.boxes),l=s.vertical,c=s.horizontal;Tr(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const d=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,u=Object.freeze({outerWidth:e,outerHeight:r,padding:o,availableWidth:a,availableHeight:i,vBoxMaxWidth:a/2/d,hBoxMaxHeight:i/2}),p=Object.assign({},o);Ua(p,uo(n));const f=Object.assign({maxPadding:p,w:a,h:i,x:o.left,y:o.top},o),m=function(t,e){const r=function(t){const e={};for(const r of t){const{stack:t,pos:n,stackWeight:o}=r;if(!t||!Da.includes(n))continue;const a=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=o}return e}(t),{vBoxMaxWidth:n,hBoxMaxHeight:o}=e;let a,i,s;for(a=0,i=t.length;a<i;++a){s=t[a];const{fullSize:i}=s.box,l=r[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*n:i&&e.availableWidth,s.height=o):(s.width=n,s.height=c?c*o:i&&e.availableHeight)}return r}(l.concat(c),u);Va(s.fullSize,f,u,m),Va(l,f,u,m),Va(c,f,u,m)&&Va(l,f,u,m),function(t){const e=t.maxPadding;function r(r){const n=Math.max(e[r]-t[r],0);return t[r]+=n,n}t.y+=r("top"),t.x+=r("left"),r("right"),r("bottom")}(f),Ya(s.leftAndTop,f,u,m),f.x+=f.w,f.y+=f.h,Ya(s.rightAndBottom,f,u,m),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Tr(s.chartArea,(e=>{const r=e.box;Object.assign(r,t.chartArea),r.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class qa{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,r){}removeEventListener(t,e,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,r,n){return e=Math.max(0,e||t.width),r=r||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):r)}}isAttached(t){return!0}updateConfig(t){}}class Ka extends qa{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Qa={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Ga=t=>null===t||""===t,Za=!!$o&&{passive:!0};function Ja(t,e,r){t.canvas.removeEventListener(e,r,Za)}function ti(t,e){for(const r of t)if(r===e||r.contains(e))return!0}function ei(t,e,r){const n=t.canvas,o=new MutationObserver((t=>{let e=!1;for(const r of t)e=e||ti(r.addedNodes,n),e=e&&!ti(r.removedNodes,n);e&&r()}));return o.observe(document,{childList:!0,subtree:!0}),o}function ri(t,e,r){const n=t.canvas,o=new MutationObserver((t=>{let e=!1;for(const r of t)e=e||ti(r.removedNodes,n),e=e&&!ti(r.addedNodes,n);e&&r()}));return o.observe(document,{childList:!0,subtree:!0}),o}const ni=new Map;let oi=0;function ai(){const t=window.devicePixelRatio;t!==oi&&(oi=t,ni.forEach(((e,r)=>{r.currentDevicePixelRatio!==t&&e()})))}function ii(t,e,r){const n=t.canvas,o=n&&Ao(n);if(!o)return;const a=kn(((t,e)=>{const n=o.clientWidth;r(t,e),n<o.clientWidth&&r()}),window),i=new ResizeObserver((t=>{const e=t[0],r=e.contentRect.width,n=e.contentRect.height;0===r&&0===n||a(r,n)}));return i.observe(o),function(t,e){ni.size||window.addEventListener("resize",ai),ni.set(t,e)}(t,a),i}function si(t,e,r){r&&r.disconnect(),"resize"===e&&function(t){ni.delete(t),ni.size||window.removeEventListener("resize",ai)}(t)}function li(t,e,r){const n=t.canvas,o=kn((e=>{null!==t.ctx&&r(function(t,e){const r=Qa[t.type]||t.type,{x:n,y:o}=Bo(t,e);return{type:r,chart:e,native:t,x:void 0!==n?n:null,y:void 0!==o?o:null}}(e,t))}),t);return function(t,e,r){t.addEventListener(e,r,Za)}(n,e,o),o}class ci extends qa{acquireContext(t,e){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(function(t,e){const r=t.style,n=t.getAttribute("height"),o=t.getAttribute("width");if(t.$chartjs={initial:{height:n,width:o,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",r.boxSizing=r.boxSizing||"border-box",Ga(o)){const e=Vo(t,"width");void 0!==e&&(t.width=e)}if(Ga(n))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Vo(t,"height");void 0!==e&&(t.height=e)}}(t,e),r):null}releaseContext(t){const e=t.canvas;if(!e.$chartjs)return!1;const r=e.$chartjs.initial;["height","width"].forEach((t=>{const n=r[t];Sr(n)?e.removeAttribute(t):e.setAttribute(t,n)}));const n=r.style||{};return Object.keys(n).forEach((t=>{e.style[t]=n[t]})),e.width=e.width,delete e.$chartjs,!0}addEventListener(t,e,r){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),o={attach:ei,detach:ri,resize:ii}[e]||li;n[e]=o(t,e,r)}removeEventListener(t,e){const r=t.$proxies||(t.$proxies={}),n=r[e];n&&(({attach:si,detach:si,resize:si}[e]||Ja)(t,e,n),r[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,r,n){return function(t,e,r,n){const o=jo(t),a=Fo(o,"margin"),i=Do(o.maxWidth,t,"clientWidth")||Kr,s=Do(o.maxHeight,t,"clientHeight")||Kr,l=function(t,e,r){let n,o;if(void 0===e||void 0===r){const a=Ao(t);if(a){const t=a.getBoundingClientRect(),i=jo(a),s=Fo(i,"border","width"),l=Fo(i,"padding");e=t.width-l.width-s.width,r=t.height-l.height-s.height,n=Do(i.maxWidth,a,"clientWidth"),o=Do(i.maxHeight,a,"clientHeight")}else e=t.clientWidth,r=t.clientHeight}return{width:e,height:r,maxWidth:n||Kr,maxHeight:o||Kr}}(t,e,r);let{width:c,height:d}=l;if("content-box"===o.boxSizing){const t=Fo(o,"border","width"),e=Fo(o,"padding");c-=e.width+t.width,d-=e.height+t.height}return c=Math.max(0,c-a.width),d=Math.max(0,n?c/n:d-a.height),c=Uo(Math.min(c,i,l.maxWidth)),d=Uo(Math.min(d,s,l.maxHeight)),c&&!d&&(d=Uo(c/2)),(void 0!==e||void 0!==r)&&n&&l.height&&d>l.height&&(d=l.height,c=Uo(Math.floor(d*n))),{width:c,height:d}}(t,e,r,n)}isAttached(t){const e=Ao(t);return!(!e||!e.isConnected)}}class di{static defaults={};static defaultRoutes=void 0;active=!1;tooltipPosition(t){const{x:e,y:r}=this.getProps(["x","y"],t);return{x:e,y:r}}hasValue(){return on(this.x)&&on(this.y)}getProps(t,e){const r=this.$animations;if(!e||!r)return this;const n={};return t.forEach((t=>{n[t]=r[t]&&r[t].active()?r[t]._to:this[t]})),n}}function ui(t,e,r,n,o){const a=Or(n,0),i=Math.min(Or(o,t.length),t.length);let s,l,c,d=0;for(r=Math.ceil(r),o&&(s=o-n,r=s/Math.floor(s/r)),c=a;c<0;)d++,c=Math.round(a+d*r);for(l=Math.max(a,0);l<i;l++)l===c&&(e.push(t[l]),d++,c=Math.round(a+d*r))}const pi=(t,e,r)=>"top"===e||"left"===e?t[e]+r:t[e]-r,fi=(t,e)=>Math.min(e||t,t);function mi(t,e){const r=[],n=t.length/e,o=t.length;let a=0;for(;a<o;a+=n)r.push(t[Math.floor(a)]);return r}function hi(t,e,r){const n=t.ticks.length,o=Math.min(e,n-1),a=t._startPixel,i=t._endPixel,s=1e-6;let l,c=t.getPixelForTick(o);if(!(r&&(l=1===n?Math.max(c-a,i-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(o-1))/2,c+=o<e?l:-l,c<a-s||c>i+s)))return c}function bi(t){return t.drawTicks?t.tickLength:0}function gi(t,e){if(!t.display)return 0;const r=po(t.font,e),n=uo(t.padding);return(Cr(t.text)?t.text.length:1)*r.lineHeight+n.height}function vi(t,e,r){let n=_n(t);return(r&&"right"!==e||!r&&"right"===e)&&(n=(t=>"left"===t?"right":"right"===t?"left":t)(n)),n}class xi extends di{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:r,_suggestedMax:n}=this;return t=Pr(t,Number.POSITIVE_INFINITY),e=Pr(e,Number.NEGATIVE_INFINITY),r=Pr(r,Number.POSITIVE_INFINITY),n=Pr(n,Number.NEGATIVE_INFINITY),{min:Pr(t,r),max:Pr(e,n),minDefined:Nr(t),maxDefined:Nr(e)}}getMinMax(t){let e,{min:r,max:n,minDefined:o,maxDefined:a}=this.getUserBounds();if(o&&a)return{min:r,max:n};const i=this.getMatchingVisibleMetas();for(let s=0,l=i.length;s<l;++s)e=i[s].controller.getMinMax(this,t),o||(r=Math.min(r,e.min)),a||(n=Math.max(n,e.max));return r=a&&r>n?n:r,n=o&&r>n?r:n,{min:Pr(r,Pr(n,r)),max:Pr(n,Pr(r,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){zr(this.options.beforeUpdate,[this])}update(t,e,r){const{beginAtZero:n,grace:o,ticks:a}=this.options,i=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,r){const{min:n,max:o}=t,a=(l=(o-n)/2,"string"==typeof(s=e)&&s.endsWith("%")?parseFloat(s)/100*l:+s),i=(t,e)=>r&&0===t?0:t+e;var s,l;return{min:i(n,-Math.abs(a)),max:i(o,a)}}(this,o,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=i<this.ticks.length;this._convertTicksToLabels(s?mi(this.ticks,i):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||"auto"===a.source)&&(this.ticks=function(t,e){const r=t.options.ticks,n=function(t){const e=t.options.offset,r=t._tickSize(),n=t._length/r+(e?0:1),o=t._maxLength/r;return Math.floor(Math.min(n,o))}(t),o=Math.min(r.maxTicksLimit||n,n),a=r.major.enabled?function(t){const e=[];let r,n;for(r=0,n=t.length;r<n;r++)t[r].major&&e.push(r);return e}(e):[],i=a.length,s=a[0],l=a[i-1],c=[];if(i>o)return function(t,e,r,n){let o,a=0,i=r[0];for(n=Math.ceil(n),o=0;o<t.length;o++)o===i&&(e.push(t[o]),a++,i=r[a*n])}(e,c,a,i/o),c;const d=function(t,e,r){const n=function(t){const e=t.length;let r,n;if(e<2)return!1;for(n=t[0],r=1;r<e;++r)if(t[r]-t[r-1]!==n)return!1;return n}(t),o=e.length/r;if(!n)return Math.max(o,1);const a=function(t){const e=[],r=Math.sqrt(t);let n;for(n=1;n<r;n++)t%n==0&&(e.push(n),e.push(t/n));return r===(0|r)&&e.push(r),e.sort(((t,e)=>t-e)).pop(),e}(n);for(let t=0,e=a.length-1;t<e;t++){const e=a[t];if(e>o)return e}return Math.max(o,1)}(a,e,o);if(i>0){let t,r;const n=i>1?Math.round((l-s)/(i-1)):null;for(ui(e,c,d,Sr(n)?0:s-n,s),t=0,r=i-1;t<r;t++)ui(e,c,d,a[t],a[t+1]);return ui(e,c,d,l,Sr(n)?e.length:l+n),c}return ui(e,c,d),c}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,r=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,r=!r),this._startPixel=t,this._endPixel=e,this._reversePixels=r,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){zr(this.options.afterUpdate,[this])}beforeSetDimensions(){zr(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){zr(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),zr(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){zr(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let r,n,o;for(r=0,n=t.length;r<n;r++)o=t[r],o.label=zr(e.callback,[o.value,r,t],this)}afterTickToLabelConversion(){zr(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){zr(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,r=fi(this.ticks.length,t.ticks.maxTicksLimit),n=e.minRotation||0,o=e.maxRotation;let a,i,s,l=n;if(!this._isVisible()||!e.display||n>=o||r<=1||!this.isHorizontal())return void(this.labelRotation=n);const c=this._getLabelSizes(),d=c.widest.width,u=c.highest.height,p=mn(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/r:p/(r-1),d+6>a&&(a=p/(r-(t.offset?.5:1)),i=this.maxHeight-bi(t.grid)-e.padding-gi(t.title,this.chart.options.font),s=Math.sqrt(d*d+u*u),l=Math.min(Math.asin(mn((c.highest.height+6)/a,-1,1)),Math.asin(mn(i/s,-1,1))-Math.asin(mn(u/s,-1,1)))*(180/Yr),l=Math.max(n,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){zr(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){zr(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:r,title:n,grid:o}}=this,a=this._isVisible(),i=this.isHorizontal();if(a){const a=gi(n,e.options.font);if(i?(t.width=this.maxWidth,t.height=bi(o)+a):(t.height=this.maxHeight,t.width=bi(o)+a),r.display&&this.ticks.length){const{first:e,last:n,widest:o,highest:a}=this._getLabelSizes(),s=2*r.padding,l=sn(this.labelRotation),c=Math.cos(l),d=Math.sin(l);if(i){const e=r.mirror?0:d*o.width+c*a.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=r.mirror?0:c*o.width+d*a.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,n,d,c)}}this._handleMargins(),i?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,r,n){const{ticks:{align:o,padding:a},position:i}=this.options,s=0!==this.labelRotation,l="top"!==i&&"x"===this.axis;if(this.isHorizontal()){const i=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,u=0;s?l?(d=n*t.width,u=r*e.height):(d=r*t.height,u=n*e.width):"start"===o?u=e.width:"end"===o?d=t.width:"inner"!==o&&(d=t.width/2,u=e.width/2),this.paddingLeft=Math.max((d-i+a)*this.width/(this.width-i),0),this.paddingRight=Math.max((u-c+a)*this.width/(this.width-c),0)}else{let r=e.height/2,n=t.height/2;"start"===o?(r=0,n=t.height):"end"===o&&(r=e.height,n=0),this.paddingTop=r+a,this.paddingBottom=n+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){zr(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,r;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,r=t.length;e<r;e++)Sr(t[e].label)&&(t.splice(e,1),r--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let r=this.ticks;e<r.length&&(r=mi(r,e)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,r){const{ctx:n,_longestTextCache:o}=this,a=[],i=[],s=Math.floor(e/fi(e,r));let l,c,d,u,p,f,m,h,b,g,v,x=0,y=0;for(l=0;l<e;l+=s){if(u=t[l].label,p=this._resolveTickFontOptions(l),n.font=f=p.string,m=o[f]=o[f]||{data:{},gc:[]},h=p.lineHeight,b=g=0,Sr(u)||Cr(u)){if(Cr(u))for(c=0,d=u.length;c<d;++c)v=u[c],Sr(v)||Cr(v)||(b=Vn(n,m.data,m.gc,b,v),g+=h)}else b=Vn(n,m.data,m.gc,b,u),g=h;a.push(b),i.push(g),x=Math.max(b,x),y=Math.max(g,y)}!function(t,e){Tr(t,(t=>{const r=t.gc,n=r.length/2;let o;if(n>e){for(o=0;o<n;++o)delete t.data[r[o]];r.splice(0,n)}}))}(o,e);const w=a.indexOf(x),k=i.indexOf(y),_=t=>({width:a[t]||0,height:i[t]||0});return{first:_(0),last:_(e-1),widest:_(w),highest:_(k),widths:a,heights:i}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return mn(this._alignToPixels?Hn(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const r=e[t];return r.$context||(r.$context=function(t,e,r){return mo(t,{tick:r,index:e,type:"tick"})}(this.getContext(),t,r))}return this.$context||(this.$context=mo(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=sn(this.labelRotation),r=Math.abs(Math.cos(e)),n=Math.abs(Math.sin(e)),o=this._getLabelSizes(),a=t.autoSkipPadding||0,i=o?o.widest.width+a:0,s=o?o.highest.height+a:0;return this.isHorizontal()?s*r>i*n?i/r:s/n:s*n<i*r?s/r:i/n}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,r=this.chart,n=this.options,{grid:o,position:a,border:i}=n,s=o.offset,l=this.isHorizontal(),c=this.ticks.length+(s?1:0),d=bi(o),u=[],p=i.setContext(this.getContext()),f=p.display?p.width:0,m=f/2,h=function(t){return Hn(r,t,f)};let b,g,v,x,y,w,k,_,E,S,C,M;if("top"===a)b=h(this.bottom),w=this.bottom-d,_=b-m,S=h(t.top)+m,M=t.bottom;else if("bottom"===a)b=h(this.top),S=t.top,M=h(t.bottom)-m,w=b+m,_=this.top+d;else if("left"===a)b=h(this.right),y=this.right-d,k=b-m,E=h(t.left)+m,C=t.right;else if("right"===a)b=h(this.left),E=t.left,C=h(t.right)-m,y=b+m,k=this.left+d;else if("x"===e){if("center"===a)b=h((t.top+t.bottom)/2+.5);else if(Mr(a)){const t=Object.keys(a)[0],e=a[t];b=h(this.chart.scales[t].getPixelForValue(e))}S=t.top,M=t.bottom,w=b+m,_=w+d}else if("y"===e){if("center"===a)b=h((t.left+t.right)/2);else if(Mr(a)){const t=Object.keys(a)[0],e=a[t];b=h(this.chart.scales[t].getPixelForValue(e))}y=b-m,k=y-d,E=t.left,C=t.right}const N=Or(n.ticks.maxTicksLimit,c),P=Math.max(1,Math.ceil(c/N));for(g=0;g<c;g+=P){const t=this.getContext(g),e=o.setContext(t),n=i.setContext(t),a=e.lineWidth,c=e.color,d=n.dash||[],p=n.dashOffset,f=e.tickWidth,m=e.tickColor,h=e.tickBorderDash||[],b=e.tickBorderDashOffset;v=hi(this,g,s),void 0!==v&&(x=Hn(r,v,a),l?y=k=E=C=x:w=_=S=M=x,u.push({tx1:y,ty1:w,tx2:k,ty2:_,x1:E,y1:S,x2:C,y2:M,width:a,color:c,borderDash:d,borderDashOffset:p,tickWidth:f,tickColor:m,tickBorderDash:h,tickBorderDashOffset:b}))}return this._ticksLength=c,this._borderValue=b,u}_computeLabelItems(t){const e=this.axis,r=this.options,{position:n,ticks:o}=r,a=this.isHorizontal(),i=this.ticks,{align:s,crossAlign:l,padding:c,mirror:d}=o,u=bi(r.grid),p=u+c,f=d?-c:p,m=-sn(this.labelRotation),h=[];let b,g,v,x,y,w,k,_,E,S,C,M,N="middle";if("top"===n)w=this.bottom-f,k=this._getXAxisLabelAlignment();else if("bottom"===n)w=this.top+f,k=this._getXAxisLabelAlignment();else if("left"===n){const t=this._getYAxisLabelAlignment(u);k=t.textAlign,y=t.x}else if("right"===n){const t=this._getYAxisLabelAlignment(u);k=t.textAlign,y=t.x}else if("x"===e){if("center"===n)w=(t.top+t.bottom)/2+p;else if(Mr(n)){const t=Object.keys(n)[0],e=n[t];w=this.chart.scales[t].getPixelForValue(e)+p}k=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===n)y=(t.left+t.right)/2-p;else if(Mr(n)){const t=Object.keys(n)[0],e=n[t];y=this.chart.scales[t].getPixelForValue(e)}k=this._getYAxisLabelAlignment(u).textAlign}"y"===e&&("start"===s?N="top":"end"===s&&(N="bottom"));const P=this._getLabelSizes();for(b=0,g=i.length;b<g;++b){v=i[b],x=v.label;const t=o.setContext(this.getContext(b));_=this.getPixelForTick(b)+o.labelOffset,E=this._resolveTickFontOptions(b),S=E.lineHeight,C=Cr(x)?x.length:1;const e=C/2,r=t.color,s=t.textStrokeColor,c=t.textStrokeWidth;let u,p=k;if(a?(y=_,"inner"===k&&(p=b===g-1?this.options.reverse?"left":"right":0===b?this.options.reverse?"right":"left":"center"),M="top"===n?"near"===l||0!==m?-C*S+S/2:"center"===l?-P.highest.height/2-e*S+S:-P.highest.height+S/2:"near"===l||0!==m?S/2:"center"===l?P.highest.height/2-e*S:P.highest.height-C*S,d&&(M*=-1),0===m||t.showLabelBackdrop||(y+=S/2*Math.sin(m))):(w=_,M=(1-C)*S/2),t.showLabelBackdrop){const e=uo(t.backdropPadding),r=P.heights[b],n=P.widths[b];let o=M-e.top,a=0-e.left;switch(N){case"middle":o-=r/2;break;case"bottom":o-=r}switch(k){case"center":a-=n/2;break;case"right":a-=n}u={left:a,top:o,width:n+e.width,height:r+e.height,color:t.backdropColor}}h.push({label:x,font:E,textOffset:M,options:{rotation:m,color:r,strokeColor:s,strokeWidth:c,textAlign:p,textBaseline:N,translation:[y,w],backdrop:u}})}return h}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-sn(this.labelRotation))return"top"===t?"left":"right";let r="center";return"start"===e.align?r="left":"end"===e.align?r="right":"inner"===e.align&&(r="inner"),r}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:r,mirror:n,padding:o}}=this.options,a=t+o,i=this._getLabelSizes().widest.width;let s,l;return"left"===e?n?(l=this.right+o,"near"===r?s="left":"center"===r?(s="center",l+=i/2):(s="right",l+=i)):(l=this.right-a,"near"===r?s="right":"center"===r?(s="center",l-=i/2):(s="left",l=this.left)):"right"===e?n?(l=this.left+o,"near"===r?s="right":"center"===r?(s="center",l-=i/2):(s="left",l-=i)):(l=this.left+a,"near"===r?s="left":"center"===r?(s="center",l+=i/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:r,top:n,width:o,height:a}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(r,n,o,a),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const r=this.ticks.findIndex((e=>e.value===t));return r>=0?e.setContext(this.getContext(r)).lineWidth:0}drawGrid(t){const e=this.options.grid,r=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const i=(t,e,n)=>{n.width&&n.color&&(r.save(),r.lineWidth=n.width,r.strokeStyle=n.color,r.setLineDash(n.borderDash||[]),r.lineDashOffset=n.borderDashOffset,r.beginPath(),r.moveTo(t.x,t.y),r.lineTo(e.x,e.y),r.stroke(),r.restore())};if(e.display)for(o=0,a=n.length;o<a;++o){const t=n[o];e.drawOnChartArea&&i({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&i({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:r,grid:n}}=this,o=r.setContext(this.getContext()),a=r.display?o.width:0;if(!a)return;const i=n.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let l,c,d,u;this.isHorizontal()?(l=Hn(t,this.left,a)-a/2,c=Hn(t,this.right,i)+i/2,d=u=s):(d=Hn(t,this.top,a)-a/2,u=Hn(t,this.bottom,i)+i/2,l=c=s),e.save(),e.lineWidth=o.width,e.strokeStyle=o.color,e.beginPath(),e.moveTo(l,d),e.lineTo(c,u),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,r=this._computeLabelArea();r&&Qn(e,r);const n=this.getLabelItems(t);for(const t of n){const r=t.options,n=t.font;to(e,t.label,0,t.textOffset,n,r)}r&&Gn(e)}drawTitle(){const{ctx:t,options:{position:e,title:r,reverse:n}}=this;if(!r.display)return;const o=po(r.font),a=uo(r.padding),i=r.align;let s=o.lineHeight/2;"bottom"===e||"center"===e||Mr(e)?(s+=a.bottom,Cr(r.text)&&(s+=o.lineHeight*(r.text.length-1))):s+=a.top;const{titleX:l,titleY:c,maxWidth:d,rotation:u}=function(t,e,r,n){const{top:o,left:a,bottom:i,right:s,chart:l}=t,{chartArea:c,scales:d}=l;let u,p,f,m=0;const h=i-o,b=s-a;if(t.isHorizontal()){if(p=En(n,a,s),Mr(r)){const t=Object.keys(r)[0],n=r[t];f=d[t].getPixelForValue(n)+h-e}else f="center"===r?(c.bottom+c.top)/2+h-e:pi(t,r,e);u=s-a}else{if(Mr(r)){const t=Object.keys(r)[0],n=r[t];p=d[t].getPixelForValue(n)-b+e}else p="center"===r?(c.left+c.right)/2-b+e:pi(t,r,e);f=En(n,i,o),m="left"===r?-Gr:Gr}return{titleX:p,titleY:f,maxWidth:u,rotation:m}}(this,s,e,i);to(t,r.text,0,0,o,{color:r.color,maxWidth:d,rotation:u,textAlign:vi(i,e,n),textBaseline:"middle",translation:[l,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,r=Or(t.grid&&t.grid.z,-1),n=Or(t.border&&t.border.z,0);return this._isVisible()&&this.draw===xi.prototype.draw?[{z:r,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",n=[];let o,a;for(o=0,a=e.length;o<a;++o){const a=e[o];a[r]!==this.id||t&&a.type!==t||n.push(a)}return n}_resolveTickFontOptions(t){return po(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class yi{constructor(t,e,r){this.type=t,this.scope=e,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let r;(function(t){return"id"in t&&"defaults"in t})(e)&&(r=this.register(e));const n=this.items,o=t.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in n||(n[o]=t,function(t,e,r){const n=jr(Object.create(null),[r?$n.get(r):{},$n.get(e),t.defaults]);$n.set(e,n),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((r=>{const n=r.split("."),o=n.pop(),a=[t].concat(n).join("."),i=e[r].split("."),s=i.pop(),l=i.join(".");$n.route(a,o,l,s)}))}(e,t.defaultRoutes),t.descriptors&&$n.describe(e,t.descriptors)}(t,a,r),this.override&&$n.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const e=this.items,r=t.id,n=this.scope;r in e&&delete e[r],n&&r in $n[n]&&(delete $n[n][r],this.override&&delete In[r])}}class wi{constructor(){this.controllers=new yi(xa,"datasets",!0),this.elements=new yi(di,"elements"),this.plugins=new yi(Object,"plugins"),this.scales=new yi(xi,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,r){[...e].forEach((e=>{const n=r||this._getRegistryForType(e);r||n.isForType(e)||n===this.plugins&&e.id?this._exec(t,n,e):Tr(e,(e=>{const n=r||this._getRegistryForType(e);this._exec(t,n,e)}))}))}_exec(t,e,r){const n=Wr(t);zr(r["before"+n],[],r),e[t](r),zr(r["after"+n],[],r)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const r=this._typedRegistries[e];if(r.isForType(t))return r}return this.plugins}_get(t,e,r){const n=e.get(t);if(void 0===n)throw new Error('"'+t+'" is not a registered '+r+".");return n}}var ki=new wi;class _i{constructor(){this._init=[]}notify(t,e,r,n){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=n?this._descriptors(t).filter(n):this._descriptors(t),a=this._notify(o,t,e,r);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,e,r,n){n=n||{};for(const o of t){const t=o.plugin;if(!1===zr(t[r],[e,n,o.options],t)&&n.cancelable)return!1}return!0}invalidate(){Sr(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const r=t&&t.config,n=Or(r.options&&r.options.plugins,{}),o=function(t){const e={},r=[],n=Object.keys(ki.plugins.items);for(let t=0;t<n.length;t++)r.push(ki.getPlugin(n[t]));const o=t.plugins||[];for(let t=0;t<o.length;t++){const n=o[t];-1===r.indexOf(n)&&(r.push(n),e[n.id]=!0)}return{plugins:r,localIds:e}}(r);return!1!==n||e?function(t,{plugins:e,localIds:r},n,o){const a=[],i=t.getContext();for(const s of e){const e=s.id,l=Ei(n[e],o);null!==l&&a.push({plugin:s,options:Si(t.config,{plugin:s,local:r[e]},l,i)})}return a}(t,o,n,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],r=this._cache,n=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(n(e,r),t,"stop"),this._notify(n(r,e),t,"start")}}function Ei(t,e){return e||!1!==t?!0===t?{}:t:null}function Si(t,{plugin:e,local:r},n,o){const a=t.pluginScopeKeys(e),i=t.getOptionScopes(n,a);return r&&e.defaults&&i.push(e.defaults),t.createResolver(i,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Ci(t,e){const r=$n.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||r.indexAxis||"x"}function Mi(t,e){if("x"===t||"y"===t||"r"===t)return t;var r;if(t=e.axis||("top"===(r=e.position)||"bottom"===r?"x":"left"===r||"right"===r?"y":void 0)||t.length>1&&Mi(t[0].toLowerCase(),e))return t;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function Ni(t){const e=t.options||(t.options={});e.plugins=Or(e.plugins,{}),e.scales=function(t,e){const r=In[t.type]||{scales:{}},n=e.scales||{},o=Ci(t.type,e),a=Object.create(null);return Object.keys(n).forEach((t=>{const e=n[t];if(!Mr(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const i=Mi(t,e),s=function(t,e){return t===e?"_index_":"_value_"}(i,o),l=r.scales||{};a[t]=Ir(Object.create(null),[{axis:i},e,l[i],l[s]])})),t.data.datasets.forEach((r=>{const o=r.type||t.type,i=r.indexAxis||Ci(o,e),s=(In[o]||{}).scales||{};Object.keys(s).forEach((t=>{const e=function(t,e){let r=t;return"_index_"===t?r=e:"_value_"===t&&(r="x"===e?"y":"x"),r}(t,i),o=r[e+"AxisID"]||e;a[o]=a[o]||Object.create(null),Ir(a[o],[{axis:e},n[o],s[t]])}))})),Object.keys(a).forEach((t=>{const e=a[t];Ir(e,[$n.scales[e.type],$n.scale])})),a}(t,e)}function Pi(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Oi=new Map,zi=new Set;function Ti(t,e){let r=Oi.get(t);return r||(r=e(),Oi.set(t,r),zi.add(r)),r}const Ri=(t,e,r)=>{const n=Ur(e,r);void 0!==n&&t.add(n)};class Li{constructor(t){this._config=function(t){return(t=t||{}).data=Pi(t.data),Ni(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Pi(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Ni(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Ti(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Ti(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Ti(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Ti(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const r=this._scopeCache;let n=r.get(t);return n&&!e||(n=new Map,r.set(t,n)),n}getOptionScopes(t,e,r){const{options:n,type:o}=this,a=this._cachedScopes(t,r),i=a.get(e);if(i)return i;const s=new Set;e.forEach((e=>{t&&(s.add(t),e.forEach((e=>Ri(s,t,e)))),e.forEach((t=>Ri(s,n,t))),e.forEach((t=>Ri(s,In[o]||{},t))),e.forEach((t=>Ri(s,$n,t))),e.forEach((t=>Ri(s,Fn,t)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),zi.has(e)&&a.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,In[e]||{},$n.datasets[e]||{},{type:e},$n,Fn]}resolveNamedOptions(t,e,r,n=[""]){const o={$shared:!0},{resolver:a,subPrefixes:i}=Ai(this._resolverCache,t,n);let s=a;(function(t,e){const{isScriptable:r,isIndexable:n}=go(t);for(const o of e){const e=r(o),a=n(o),i=(a||e)&&t[o];if(e&&(Vr(i)||Di(i))||a&&Cr(i))return!0}return!1})(a,e)&&(o.$shared=!1,s=bo(a,r=Vr(r)?r():r,this.createResolver(t,r,i)));for(const t of e)o[t]=s[t];return o}createResolver(t,e,r=[""],n){const{resolver:o}=Ai(this._resolverCache,t,r);return Mr(e)?bo(o,e,void 0,n):o}}function Ai(t,e,r){let n=t.get(e);n||(n=new Map,t.set(e,n));const o=r.join();let a=n.get(o);return a||(a={resolver:ho(e,r),subPrefixes:r.filter((t=>!t.toLowerCase().includes("hover")))},n.set(o,a)),a}const Di=t=>Mr(t)&&Object.getOwnPropertyNames(t).reduce(((e,r)=>e||Vr(t[r])),!1),ji=["top","bottom","left","right","chartArea"];function Ii(t,e){return"top"===t||"bottom"===t||-1===ji.indexOf(t)&&"x"===e}function Fi(t,e){return function(r,n){return r[t]===n[t]?r[e]-n[e]:r[t]-n[t]}}function Bi(t){const e=t.chart,r=e.options.animation;e.notifyPlugins("afterRender"),zr(r&&r.onComplete,[t],e)}function Ui(t){const e=t.chart,r=e.options.animation;zr(r&&r.onProgress,[t],e)}function Wi(t){return Lo()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const $i={},Vi=t=>{const e=Wi(t);return Object.values($i).filter((t=>t.canvas===e)).pop()};function Hi(t,e,r){const n=Object.keys(t);for(const o of n){const n=+o;if(n>=e){const a=t[o];delete t[o],(r>0||n>e)&&(t[n+r]=a)}}}class Yi{static defaults=$n;static instances=$i;static overrides=In;static registry=ki;static version="4.2.1";static getChart=Vi;static register(...t){ki.add(...t),Xi()}static unregister(...t){ki.remove(...t),Xi()}constructor(t,e){const r=this.config=new Li(e),n=Wi(t),o=Vi(n);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||function(t){return!Lo()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Ka:ci}(n)),this.platform.updateConfig(r);const i=this.platform.acquireContext(n,a.aspectRatio),s=i&&i.canvas,l=s&&s.height,c=s&&s.width;this.id=Er(),this.ctx=i,this.canvas=s,this.width=c,this.height=l,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new _i,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let r;return function(...n){return e?(clearTimeout(r),r=setTimeout(t,e,n)):t.apply(this,n),e}}((t=>this.update(t)),a.resizeDelay||0),this._dataChanges=[],$i[this.id]=this,i&&s?(na.listen(this,"complete",Bi),na.listen(this,"progress",Ui),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:r,height:n,_aspectRatio:o}=this;return Sr(t)?e&&o?o:n?r/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return ki}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Wo(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Yn(this.canvas,this.ctx),this}stop(){return na.stop(this),this}resize(t,e){na.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const r=this.options,n=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(n,t,e,o),i=r.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Wo(this,i,!0)&&(this.notifyPlugins("resize",{size:a}),zr(r.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){Tr(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,r=this.scales,n=Object.keys(r).reduce(((t,e)=>(t[e]=!1,t)),{});let o=[];e&&(o=o.concat(Object.keys(e).map((t=>{const r=e[t],n=Mi(t,r),o="r"===n,a="x"===n;return{options:r,dposition:o?"chartArea":a?"bottom":"left",dtype:o?"radialLinear":a?"category":"linear"}})))),Tr(o,(e=>{const o=e.options,a=o.id,i=Mi(a,o),s=Or(o.type,e.dtype);void 0!==o.position&&Ii(o.position,i)===Ii(e.dposition)||(o.position=e.dposition),n[a]=!0;let l=null;a in r&&r[a].type===s?l=r[a]:(l=new(ki.getScale(s))({id:a,type:s,ctx:this.ctx,chart:this}),r[l.id]=l),l.init(o,t)})),Tr(n,((t,e)=>{t||delete r[e]})),Tr(r,(t=>{Xa.configure(this,t,t.options),Xa.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,r=t.length;if(t.sort(((t,e)=>t.index-e.index)),r>e){for(let t=e;t<r;++t)this._destroyDatasetMeta(t);t.splice(e,r-e)}this._sortedMetasets=t.slice(0).sort(Fi("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,r)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(r)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let r,n;for(this._removeUnreferencedMetasets(),r=0,n=e.length;r<n;r++){const n=e[r];let o=this.getDatasetMeta(r);const a=n.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=a,o.indexAxis=n.indexAxis||Ci(a,this.options),o.order=n.order||0,o.index=r,o.label=""+n.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const e=ki.getController(a),{datasetElementType:n,dataElementType:i}=$n.datasets[a];Object.assign(e,{dataElementType:ki.getElement(i),datasetElementType:n&&ki.getElement(n)}),o.controller=new e(this,r),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){Tr(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const r=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),r=!n&&-1===o.indexOf(e);e.buildOrUpdateElements(r),a=Math.max(+e.getMaxOverflow(),a)}a=this._minPadding=r.layout.autoPadding?a:0,this._updateLayout(a),n||Tr(o,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Fi("z","_idx"));const{_active:i,_lastEvent:s}=this;s?this._eventHandler(s,!0):i.length&&this._updateHoverStyles(i,i,!0),this.render()}_updateScales(){Tr(this.scales,(t=>{Xa.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),r=new Set(t.events);Hr(e,r)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:r,start:n,count:o}of e)Hi(t,n,"_removeElements"===r?-o:o)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,r=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),n=r(0);for(let t=1;t<e;t++)if(!Hr(n,r(t)))return;return Array.from(n).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Xa.update(this,this.width,this.height,t);const e=this.chartArea,r=e.width<=0||e.height<=0;this._layers=[],Tr(this.boxes,(t=>{r&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,r=this.data.datasets.length;e<r;++e)this._updateDataset(e,Vr(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const r=this.getDatasetMeta(t),n={meta:r,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",n)&&(r.controller._update(e),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(na.has(this)?this.attached&&!na.running(this)&&na.start(this):(this.draw(),Bi({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,r=[];let n,o;for(n=0,o=e.length;n<o;++n){const o=e[n];t&&!o.visible||r.push(o)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,r=t._clip,n=!r.disabled,o=function(t){const{xScale:e,yScale:r}=t;if(e&&r)return{left:e.left,right:e.right,top:r.top,bottom:r.bottom}}(t)||this.chartArea,a={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(n&&Qn(e,{left:!1===r.left?0:o.left-r.left,right:!1===r.right?this.width:o.right+r.right,top:!1===r.top?0:o.top-r.top,bottom:!1===r.bottom?this.height:o.bottom+r.bottom}),t.controller.draw(),n&&Gn(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return Kn(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,r,n){const o=Aa.modes[e];return"function"==typeof o?o(this,t,r,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],r=this._metasets;let n=r.filter((t=>t&&t._dataset===e)).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},r.push(n)),n}getContext(){return this.$context||(this.$context=mo(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const r=this.getDatasetMeta(t);return"boolean"==typeof r.hidden?!r.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,r){const n=r?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,n);$r(e)?(o.data[e].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(o,{visible:r}),this.update((e=>e.datasetIndex===t?n:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),na.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Yn(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete $i[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,r=(r,n)=>{e.addEventListener(this,r,n),t[r]=n},n=(t,e,r)=>{t.offsetX=e,t.offsetY=r,this._eventHandler(t)};Tr(this.options.events,(t=>r(t,n)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,r=(r,n)=>{e.addEventListener(this,r,n),t[r]=n},n=(r,n)=>{t[r]&&(e.removeEventListener(this,r,n),delete t[r])},o=(t,e)=>{this.canvas&&this.resize(t,e)};let a;const i=()=>{n("attach",i),this.attached=!0,this.resize(),r("resize",o),r("detach",a)};a=()=>{this.attached=!1,n("resize",o),this._stop(),this._resize(0,0),r("attach",i)},e.isAttached(this.canvas)?i():a()}unbindEvents(){Tr(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},Tr(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,r){const n=r?"set":"remove";let o,a,i,s;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+n+"DatasetHoverStyle"]()),i=0,s=t.length;i<s;++i){a=t[i];const e=a&&this.getDatasetMeta(a.datasetIndex).controller;e&&e[n+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],r=t.map((({datasetIndex:t,index:e})=>{const r=this.getDatasetMeta(t);if(!r)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:r.data[e],index:e}}));!Rr(r,e)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,e))}notifyPlugins(t,e,r){return this._plugins.notify(this,t,e,r)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,r){const n=this.options.hover,o=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),a=o(e,t),i=r?t:o(t,e);a.length&&this.updateHoverStyle(a,n.mode,!1),i.length&&n.mode&&this.updateHoverStyle(i,n.mode,!0)}_eventHandler(t,e){const r={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},n=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",r,n))return;const o=this._handleEvent(t,e,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,n),(o||r.changed)&&this.render(),this}_handleEvent(t,e,r){const{_active:n=[],options:o}=this,a=e,i=this._getActiveElements(t,n,r,a),s=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,r,n){return r&&"mouseout"!==t.type?n?e:t:null}(t,this._lastEvent,r,s);r&&(this._lastEvent=null,zr(o.onHover,[t,i,this],this),s&&zr(o.onClick,[t,i,this],this));const c=!Rr(i,n);return(c||e)&&(this._active=i,this._updateHoverStyles(i,n,e)),this._lastEvent=l,c}_getActiveElements(t,e,r,n){if("mouseout"===t.type)return[];if(!r)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,n)}}function Xi(){return Tr(Yi.instances,(t=>t._plugins.invalidate()))}function qi(t,e,r,n){return{x:r+t*Math.cos(e),y:n+t*Math.sin(e)}}function Ki(t,e,r,n,o,a){const{x:i,y:s,startAngle:l,pixelMargin:c,innerRadius:d}=e,u=Math.max(e.outerRadius+n+r-c,0),p=d>0?d+n+r+c:0;let f=0;const m=o-l;if(n){const t=((d>0?d-n:0)+(u>0?u-n:0))/2;f=(m-(0!==t?m*t/(t+n):m))/2}const h=(m-Math.max(.001,m*u-r/Yr)/u)/2,b=l+h+f,g=o-h-f,{outerStart:v,outerEnd:x,innerStart:y,innerEnd:w}=function(t,e,r,n){const o=so(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),a=(r-e)/2,i=Math.min(a,n*e/2),s=t=>{const e=(r-Math.min(a,t))*n/2;return mn(t,0,Math.min(a,e))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:mn(o.innerStart,0,i),innerEnd:mn(o.innerEnd,0,i)}}(e,p,u,g-b),k=u-v,_=u-x,E=b+v/k,S=g-x/_,C=p+y,M=p+w,N=b+y/C,P=g-w/M;if(t.beginPath(),a){const e=(E+S)/2;if(t.arc(i,s,u,E,e),t.arc(i,s,u,e,S),x>0){const e=qi(_,S,i,s);t.arc(e.x,e.y,x,S,g+Gr)}const r=qi(M,g,i,s);if(t.lineTo(r.x,r.y),w>0){const e=qi(M,P,i,s);t.arc(e.x,e.y,w,g+Gr,P+Math.PI)}const n=(g-w/p+(b+y/p))/2;if(t.arc(i,s,p,g-w/p,n,!0),t.arc(i,s,p,n,b+y/p,!0),y>0){const e=qi(C,N,i,s);t.arc(e.x,e.y,y,N+Math.PI,b-Gr)}const o=qi(k,b,i,s);if(t.lineTo(o.x,o.y),v>0){const e=qi(k,E,i,s);t.arc(e.x,e.y,v,b-Gr,E)}}else{t.moveTo(i,s);const e=Math.cos(E)*u+i,r=Math.sin(E)*u+s;t.lineTo(e,r);const n=Math.cos(S)*u+i,o=Math.sin(S)*u+s;t.lineTo(n,o)}t.closePath()}class Qi extends di{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,r){const n=this.getProps(["x","y"],r),{angle:o,distance:a}=cn(n,{x:t,y:e}),{startAngle:i,endAngle:s,innerRadius:l,outerRadius:c,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),u=this.options.spacing/2,p=Or(d,s-i)>=Xr||fn(o,i,s),f=hn(a,l+u,c+u);return p&&f}getCenterPoint(t){const{x:e,y:r,startAngle:n,endAngle:o,innerRadius:a,outerRadius:i}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:s,spacing:l}=this.options,c=(n+o)/2,d=(a+i+l+s)/2;return{x:e+Math.cos(c)*d,y:r+Math.sin(c)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:r}=this,n=(e.offset||0)/4,o=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=r>Xr?Math.floor(r/Xr):0,0===r||this.innerRadius<0||this.outerRadius<0)return;t.save();const i=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(i)*n,Math.sin(i)*n);const s=n*(1-Math.sin(Math.min(Yr,r||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,r,n,o){const{fullCircles:a,startAngle:i,circumference:s}=e;let l=e.endAngle;if(a){Ki(t,e,r,n,l,o);for(let e=0;e<a;++e)t.fill();isNaN(s)||(l=i+(s%Xr||Xr))}Ki(t,e,r,n,l,o),t.fill()}(t,this,s,o,a),function(t,e,r,n,o){const{fullCircles:a,startAngle:i,circumference:s,options:l}=e,{borderWidth:c,borderJoinStyle:d}=l,u="inner"===l.borderAlign;if(!c)return;u?(t.lineWidth=2*c,t.lineJoin=d||"round"):(t.lineWidth=c,t.lineJoin=d||"bevel");let p=e.endAngle;if(a){Ki(t,e,r,n,p,o);for(let e=0;e<a;++e)t.stroke();isNaN(s)||(p=i+(s%Xr||Xr))}u&&function(t,e,r){const{startAngle:n,pixelMargin:o,x:a,y:i,outerRadius:s,innerRadius:l}=e;let c=o/s;t.beginPath(),t.arc(a,i,s,n-c,r+c),l>o?(c=o/l,t.arc(a,i,l,r+c,n-c,!0)):t.arc(a,i,o,r+Gr,n-Gr),t.closePath(),t.clip()}(t,e,p),a||(Ki(t,e,r,n,p,o),t.stroke())}(t,this,s,o,a),t.restore()}}function Gi(t,e,r=e){t.lineCap=Or(r.borderCapStyle,e.borderCapStyle),t.setLineDash(Or(r.borderDash,e.borderDash)),t.lineDashOffset=Or(r.borderDashOffset,e.borderDashOffset),t.lineJoin=Or(r.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Or(r.borderWidth,e.borderWidth),t.strokeStyle=Or(r.borderColor,e.borderColor)}function Zi(t,e,r){t.lineTo(r.x,r.y)}function Ji(t,e,r={}){const n=t.length,{start:o=0,end:a=n-1}=r,{start:i,end:s}=e,l=Math.max(o,i),c=Math.min(a,s),d=o<i&&a<i||o>s&&a>s;return{count:n,start:l,loop:e.loop,ilen:c<l&&!d?n+c-l:c-l}}function ts(t,e,r,n){const{points:o,options:a}=e,{count:i,start:s,loop:l,ilen:c}=Ji(o,r,n),d=function(t){return t.stepped?Zn:t.tension||"monotone"===t.cubicInterpolationMode?Jn:Zi}(a);let u,p,f,{move:m=!0,reverse:h}=n||{};for(u=0;u<=c;++u)p=o[(s+(h?c-u:u))%i],p.skip||(m?(t.moveTo(p.x,p.y),m=!1):d(t,f,p,h,a.stepped),f=p);return l&&(p=o[(s+(h?c:0))%i],d(t,f,p,h,a.stepped)),!!l}function es(t,e,r,n){const o=e.points,{count:a,start:i,ilen:s}=Ji(o,r,n),{move:l=!0,reverse:c}=n||{};let d,u,p,f,m,h,b=0,g=0;const v=t=>(i+(c?s-t:t))%a,x=()=>{f!==m&&(t.lineTo(b,m),t.lineTo(b,f),t.lineTo(b,h))};for(l&&(u=o[v(0)],t.moveTo(u.x,u.y)),d=0;d<=s;++d){if(u=o[v(d)],u.skip)continue;const e=u.x,r=u.y,n=0|e;n===p?(r<f?f=r:r>m&&(m=r),b=(g*b+e)/++g):(x(),t.lineTo(e,r),p=n,g=0,f=m=r),h=r}x()}function rs(t){const e=t.options,r=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||r?ts:es}const ns="function"==typeof Path2D;function os(t,e,r,n){const o=t.options,{[r]:a}=t.getProps([r],n);return Math.abs(e-a)<o.radius+o.hitRadius}class as extends di{static id="point";static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,r){const n=this.options,{x:o,y:a}=this.getProps(["x","y"],r);return Math.pow(t-o,2)+Math.pow(e-a,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(t,e){return os(this,t,"x",e)}inYRange(t,e){return os(this,t,"y",e)}getCenterPoint(t){const{x:e,y:r}=this.getProps(["x","y"],t);return{x:e,y:r}}size(t){let e=(t=t||this.options||{}).radius||0;return e=Math.max(e,e&&t.hoverRadius||0),2*(e+(e&&t.borderWidth||0))}draw(t,e){const r=this.options;this.skip||r.radius<.1||!Kn(this,e,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,Xn(t,r,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function is(t,e){const{x:r,y:n,base:o,width:a,height:i}=t.getProps(["x","y","base","width","height"],e);let s,l,c,d,u;return t.horizontal?(u=i/2,s=Math.min(r,o),l=Math.max(r,o),c=n-u,d=n+u):(u=a/2,s=r-u,l=r+u,c=Math.min(n,o),d=Math.max(n,o)),{left:s,top:c,right:l,bottom:d}}function ss(t,e,r,n){return t?0:mn(e,r,n)}function ls(t,e,r,n){const o=null===e,a=null===r,i=t&&!(o&&a)&&is(t,n);return i&&(o||hn(e,i.left,i.right))&&(a||hn(r,i.top,i.bottom))}function cs(t,e){t.rect(e.x,e.y,e.w,e.h)}function ds(t,e,r={}){const n=t.x!==r.x?-e:0,o=t.y!==r.y?-e:0,a=(t.x+t.w!==r.x+r.w?e:0)-n,i=(t.y+t.h!==r.y+r.h?e:0)-o;return{x:t.x+n,y:t.y+o,w:t.w+a,h:t.h+i,radius:t.radius}}class us extends di{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:r,backgroundColor:n}}=this,{inner:o,outer:a}=function(t){const e=is(t),r=e.right-e.left,n=e.bottom-e.top,o=function(t,e,r){const n=t.options.borderWidth,o=t.borderSkipped,a=lo(n);return{t:ss(o.top,a.top,0,r),r:ss(o.right,a.right,0,e),b:ss(o.bottom,a.bottom,0,r),l:ss(o.left,a.left,0,e)}}(t,r/2,n/2),a=function(t,e,r){const{enableBorderRadius:n}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,a=co(o),i=Math.min(e,r),s=t.borderSkipped,l=n||Mr(o);return{topLeft:ss(!l||s.top||s.left,a.topLeft,0,i),topRight:ss(!l||s.top||s.right,a.topRight,0,i),bottomLeft:ss(!l||s.bottom||s.left,a.bottomLeft,0,i),bottomRight:ss(!l||s.bottom||s.right,a.bottomRight,0,i)}}(t,r/2,n/2);return{outer:{x:e.left,y:e.top,w:r,h:n,radius:a},inner:{x:e.left+o.l,y:e.top+o.t,w:r-o.l-o.r,h:n-o.t-o.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,a.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(o.b,o.r))}}}}(this),i=(s=a.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?no:cs;var s;t.save(),a.w===o.w&&a.h===o.h||(t.beginPath(),i(t,ds(a,e,o)),t.clip(),i(t,ds(o,-e,a)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),i(t,ds(o,e)),t.fillStyle=n,t.fill(),t.restore()}inRange(t,e,r){return ls(this,t,e,r)}inXRange(t,e){return ls(this,t,null,e)}inYRange(t,e){return ls(this,null,t,e)}getCenterPoint(t){const{x:e,y:r,base:n,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+n)/2:e,y:o?r:(r+n)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}const ps=(t,e)=>{let{boxHeight:r=e,boxWidth:n=e}=t;return t.usePointStyle&&(r=Math.min(r,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:r,itemHeight:Math.max(e,r)}};class fs extends di{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,r){this.maxWidth=t,this.maxHeight=e,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=zr(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,r)=>t.sort(e,r,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const r=t.labels,n=po(r.font),o=n.size,a=this._computeTitleHeight(),{boxWidth:i,itemHeight:s}=ps(r,o);let l,c;e.font=n.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(a,o,i,s)+10):(c=this.maxHeight,l=this._fitCols(a,n,i,s)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,r,n){const{ctx:o,maxWidth:a,options:{labels:{padding:i}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=n+i;let d=t;o.textAlign="left",o.textBaseline="middle";let u=-1,p=-c;return this.legendItems.forEach(((t,f)=>{const m=r+e/2+o.measureText(t.text).width;(0===f||l[l.length-1]+m+2*i>a)&&(d+=c,l[l.length-(f>0?0:1)]=0,p+=c,u++),s[f]={left:0,top:p,row:u,width:m,height:n},l[l.length-1]+=m+i})),d}_fitCols(t,e,r,n){const{ctx:o,maxHeight:a,options:{labels:{padding:i}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=a-t;let d=i,u=0,p=0,f=0,m=0;return this.legendItems.forEach(((t,a)=>{const{itemWidth:h,itemHeight:b}=function(t,e,r,n,o){const a=function(t,e,r,n){let o=t.text;return o&&"string"!=typeof o&&(o=o.reduce(((t,e)=>t.length>e.length?t:e))),e+r.size/2+n.measureText(o).width}(n,t,e,r),i=function(t,e,r){let n=t;return"string"!=typeof e.text&&(n=ms(e,r)),n}(o,n,e.lineHeight);return{itemWidth:a,itemHeight:i}}(r,e,o,t,n);a>0&&p+b+2*i>c&&(d+=u+i,l.push({width:u,height:p}),f+=u+i,m++,u=p=0),s[a]={left:f,top:p,col:m,width:h,height:b},u=Math.max(u,h),p+=b+i})),d+=u,l.push({width:u,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:r,labels:{padding:n},rtl:o}}=this,a=qo(o,this.left,this.width);if(this.isHorizontal()){let o=0,i=En(r,this.left+n,this.right-this.lineWidths[o]);for(const s of e)o!==s.row&&(o=s.row,i=En(r,this.left+n,this.right-this.lineWidths[o])),s.top+=this.top+t+n,s.left=a.leftForLtr(a.x(i),s.width),i+=s.width+n}else{let o=0,i=En(r,this.top+t+n,this.bottom-this.columnSizes[o].height);for(const s of e)s.col!==o&&(o=s.col,i=En(r,this.top+t+n,this.bottom-this.columnSizes[o].height)),s.top=i,s.left+=this.left+n,s.left=a.leftForLtr(a.x(s.left),s.width),i+=s.height+n}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Qn(t,this),this._draw(),Gn(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:r,ctx:n}=this,{align:o,labels:a}=t,i=$n.color,s=qo(t.rtl,this.left,this.width),l=po(a.font),{padding:c}=a,d=l.size,u=d/2;let p;this.drawTitle(),n.textAlign=s.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=l.string;const{boxWidth:f,boxHeight:m,itemHeight:h}=ps(a,d),b=this.isHorizontal(),g=this._computeTitleHeight();p=b?{x:En(o,this.left+c,this.right-r[0]),y:this.top+c+g,line:0}:{x:this.left+c,y:En(o,this.top+g+c,this.bottom-e[0].height),line:0},Ko(this.ctx,t.textDirection);const v=h+c;this.legendItems.forEach(((x,y)=>{n.strokeStyle=x.fontColor,n.fillStyle=x.fontColor;const w=n.measureText(x.text).width,k=s.textAlign(x.textAlign||(x.textAlign=a.textAlign)),_=f+u+w;let E=p.x,S=p.y;if(s.setWidth(this.width),b?y>0&&E+_+c>this.right&&(S=p.y+=v,p.line++,E=p.x=En(o,this.left+c,this.right-r[p.line])):y>0&&S+v>this.bottom&&(E=p.x=E+e[p.line].width+c,p.line++,S=p.y=En(o,this.top+g+c,this.bottom-e[p.line].height)),function(t,e,r){if(isNaN(f)||f<=0||isNaN(m)||m<0)return;n.save();const o=Or(r.lineWidth,1);if(n.fillStyle=Or(r.fillStyle,i),n.lineCap=Or(r.lineCap,"butt"),n.lineDashOffset=Or(r.lineDashOffset,0),n.lineJoin=Or(r.lineJoin,"miter"),n.lineWidth=o,n.strokeStyle=Or(r.strokeStyle,i),n.setLineDash(Or(r.lineDash,[])),a.usePointStyle){const i={radius:m*Math.SQRT2/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:o},l=s.xPlus(t,f/2);qn(n,i,l,e+u,a.pointStyleWidth&&f)}else{const a=e+Math.max((d-m)/2,0),i=s.leftForLtr(t,f),l=co(r.borderRadius);n.beginPath(),Object.values(l).some((t=>0!==t))?no(n,{x:i,y:a,w:f,h:m,radius:l}):n.rect(i,a,f,m),n.fill(),0!==o&&n.stroke()}n.restore()}(s.x(E),S,x),E=((t,e,r,n)=>t===(n?"left":"right")?r:"center"===t?(e+r)/2:e)(k,E+f+u,b?E+_:this.right,t.rtl),function(t,e,r){to(n,r.text,t,e+h/2,l,{strikethrough:r.hidden,textAlign:s.textAlign(r.textAlign)})}(s.x(E),S,x),b)p.x+=_+c;else if("string"!=typeof x.text){const t=l.lineHeight;p.y+=ms(x,t)}else p.y+=v})),Qo(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,r=po(e.font),n=uo(e.padding);if(!e.display)return;const o=qo(t.rtl,this.left,this.width),a=this.ctx,i=e.position,s=r.size/2,l=n.top+s;let c,d=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),c=this.top+l,d=En(t.align,d,this.right-u);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);c=l+En(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const p=En(i,d,d+u);a.textAlign=o.textAlign(_n(i)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=r.string,to(a,e.text,p,c,r)}_computeTitleHeight(){const t=this.options.title,e=po(t.font),r=uo(t.padding);return t.display?e.lineHeight+r.height:0}_getLegendItemAt(t,e){let r,n,o;if(hn(t,this.left,this.right)&&hn(e,this.top,this.bottom))for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(n=o[r],hn(t,n.left,n.left+n.width)&&hn(e,n.top,n.top+n.height))return this.legendItems[r];return null}handleEvent(t){const e=this.options;if(!function(t,e){return!("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}(t.type,e))return;const r=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const a=this._hoveredItem,i=(o=r,null!==(n=a)&&null!==o&&n.datasetIndex===o.datasetIndex&&n.index===o.index);a&&!i&&zr(e.onLeave,[t,a,this],this),this._hoveredItem=r,r&&!i&&zr(e.onHover,[t,r,this],this)}else r&&zr(e.onClick,[t,r,this],this);var n,o}}function ms(t,e){return e*(t.text?t.text.length+.5:0)}var hs={id:"legend",_element:fs,start(t,e,r){const n=t.legend=new fs({ctx:t.ctx,options:r,chart:t});Xa.configure(t,n,r),Xa.addBox(t,n)},stop(t){Xa.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,r){const n=t.legend;Xa.configure(t,n,r),n.options=r},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,r){const n=e.datasetIndex,o=r.chart;o.isDatasetVisible(n)?(o.hide(n),e.hidden=!0):(o.show(n),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:r,pointStyle:n,textAlign:o,color:a,useBorderRadius:i,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const l=t.controller.getStyle(r?0:void 0),c=uo(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:a,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:n||l.pointStyle,rotation:l.rotation,textAlign:o||l.textAlign,borderRadius:i&&(s||l.borderRadius),datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class bs extends di{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const r=this.options;if(this.left=0,this.top=0,!r.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const n=Cr(r.text)?r.text.length:1;this._padding=uo(r.padding);const o=n*po(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:r,bottom:n,right:o,options:a}=this,i=a.align;let s,l,c,d=0;return this.isHorizontal()?(l=En(i,r,o),c=e+t,s=o-r):("left"===a.position?(l=r+t,c=En(i,n,e),d=-.5*Yr):(l=o-t,c=En(i,e,n),d=.5*Yr),s=n-e),{titleX:l,titleY:c,maxWidth:s,rotation:d}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const r=po(e.font),n=r.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:i,rotation:s}=this._drawArgs(n);to(t,e.text,0,0,r,{color:e.color,maxWidth:i,rotation:s,textAlign:_n(e.align),textBaseline:"middle",translation:[o,a]})}}var gs={id:"title",_element:bs,start(t,e,r){!function(t,e){const r=new bs({ctx:t.ctx,options:e,chart:t});Xa.configure(t,r,e),Xa.addBox(t,r),t.titleBlock=r}(t,r)},stop(t){const e=t.titleBlock;Xa.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,r){const n=t.titleBlock;Xa.configure(t,n,r),n.options=r},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};new WeakMap;const vs={average(t){if(!t.length)return!1;let e,r,n=0,o=0,a=0;for(e=0,r=t.length;e<r;++e){const r=t[e].element;if(r&&r.hasValue()){const t=r.tooltipPosition();n+=t.x,o+=t.y,++a}}return{x:n/a,y:o/a}},nearest(t,e){if(!t.length)return!1;let r,n,o,a=e.x,i=e.y,s=Number.POSITIVE_INFINITY;for(r=0,n=t.length;r<n;++r){const n=t[r].element;if(n&&n.hasValue()){const t=dn(e,n.getCenterPoint());t<s&&(s=t,o=n)}}if(o){const t=o.tooltipPosition();a=t.x,i=t.y}return{x:a,y:i}}};function xs(t,e){return e&&(Cr(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function ys(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function ws(t,e){const{element:r,datasetIndex:n,index:o}=e,a=t.getDatasetMeta(n).controller,{label:i,value:s}=a.getLabelAndValue(o);return{chart:t,label:i,parsed:a.getParsed(o),raw:t.data.datasets[n].data[o],formattedValue:s,dataset:a.getDataset(),dataIndex:o,datasetIndex:n,element:r}}function ks(t,e){const r=t.chart.ctx,{body:n,footer:o,title:a}=t,{boxWidth:i,boxHeight:s}=e,l=po(e.bodyFont),c=po(e.titleFont),d=po(e.footerFont),u=a.length,p=o.length,f=n.length,m=uo(e.padding);let h=m.height,b=0,g=n.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);g+=t.beforeBody.length+t.afterBody.length,u&&(h+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),g&&(h+=f*(e.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(g-f)*l.lineHeight+(g-1)*e.bodySpacing),p&&(h+=e.footerMarginTop+p*d.lineHeight+(p-1)*e.footerSpacing);let v=0;const x=function(t){b=Math.max(b,r.measureText(t).width+v)};return r.save(),r.font=c.string,Tr(t.title,x),r.font=l.string,Tr(t.beforeBody.concat(t.afterBody),x),v=e.displayColors?i+2+e.boxPadding:0,Tr(n,(t=>{Tr(t.before,x),Tr(t.lines,x),Tr(t.after,x)})),v=0,r.font=d.string,Tr(t.footer,x),r.restore(),b+=m.width,{width:b,height:h}}function _s(t,e,r,n){const{x:o,width:a}=r,{width:i,chartArea:{left:s,right:l}}=t;let c="center";return"center"===n?c=o<=(s+l)/2?"left":"right":o<=a/2?c="left":o>=i-a/2&&(c="right"),function(t,e,r,n){const{x:o,width:a}=n,i=r.caretSize+r.caretPadding;return"left"===t&&o+a+i>e.width||"right"===t&&o-a-i<0||void 0}(c,t,e,r)&&(c="center"),c}function Es(t,e,r){const n=r.yAlign||e.yAlign||function(t,e){const{y:r,height:n}=e;return r<n/2?"top":r>t.height-n/2?"bottom":"center"}(t,r);return{xAlign:r.xAlign||e.xAlign||_s(t,e,r,n),yAlign:n}}function Ss(t,e,r,n){const{caretSize:o,caretPadding:a,cornerRadius:i}=t,{xAlign:s,yAlign:l}=r,c=o+a,{topLeft:d,topRight:u,bottomLeft:p,bottomRight:f}=co(i);let m=function(t,e){let{x:r,width:n}=t;return"right"===e?r-=n:"center"===e&&(r-=n/2),r}(e,s);const h=function(t,e,r){let{y:n,height:o}=t;return"top"===e?n+=r:n-="bottom"===e?o+r:o/2,n}(e,l,c);return"center"===l?"left"===s?m+=c:"right"===s&&(m-=c):"left"===s?m-=Math.max(d,p)+o:"right"===s&&(m+=Math.max(u,f)+o),{x:mn(m,0,n.width-e.width),y:mn(h,0,n.height-e.height)}}function Cs(t,e,r){const n=uo(r.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-n.right:t.x+n.left}function Ms(t){return xs([],ys(t))}function Ns(t,e){const r=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return r?t.override(r):t}const Ps={beforeTitle:_r,title(t){if(t.length>0){const e=t[0],r=e.chart.data.labels,n=r?r.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex<n)return r[e.dataIndex]}return""},afterTitle:_r,beforeBody:_r,beforeLabel:_r,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const r=t.formattedValue;return Sr(r)||(e+=r),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:_r,afterBody:_r,beforeFooter:_r,footer:_r,afterFooter:_r};function Os(t,e,r,n){const o=t[e].call(r,n);return void 0===o?Ps[e].call(r,n):o}class zs extends di{static positioners=vs;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,r=this.options.setContext(this.getContext()),n=r.enabled&&e.options.animation&&r.animations,o=new sa(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=(this,mo(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"})))}getTitle(t,e){const{callbacks:r}=e,n=Os(r,"beforeTitle",this,t),o=Os(r,"title",this,t),a=Os(r,"afterTitle",this,t);let i=[];return i=xs(i,ys(n)),i=xs(i,ys(o)),i=xs(i,ys(a)),i}getBeforeBody(t,e){return Ms(Os(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:r}=e,n=[];return Tr(t,(t=>{const e={before:[],lines:[],after:[]},o=Ns(r,t);xs(e.before,ys(Os(o,"beforeLabel",this,t))),xs(e.lines,Os(o,"label",this,t)),xs(e.after,ys(Os(o,"afterLabel",this,t))),n.push(e)})),n}getAfterBody(t,e){return Ms(Os(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:r}=e,n=Os(r,"beforeFooter",this,t),o=Os(r,"footer",this,t),a=Os(r,"afterFooter",this,t);let i=[];return i=xs(i,ys(n)),i=xs(i,ys(o)),i=xs(i,ys(a)),i}_createItems(t){const e=this._active,r=this.chart.data,n=[],o=[],a=[];let i,s,l=[];for(i=0,s=e.length;i<s;++i)l.push(ws(this.chart,e[i]));return t.filter&&(l=l.filter(((e,n,o)=>t.filter(e,n,o,r)))),t.itemSort&&(l=l.sort(((e,n)=>t.itemSort(e,n,r)))),Tr(l,(e=>{const r=Ns(t.callbacks,e);n.push(Os(r,"labelColor",this,e)),o.push(Os(r,"labelPointStyle",this,e)),a.push(Os(r,"labelTextColor",this,e))})),this.labelColors=n,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=l,l}update(t,e){const r=this.options.setContext(this.getContext()),n=this._active;let o,a=[];if(n.length){const t=vs[r.position].call(this,n,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const e=this._size=ks(this,r),i=Object.assign({},t,e),s=Es(this.chart,r,i),l=Ss(r,i,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,o={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,r,n){const o=this.getCaretPosition(t,r,n);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,r){const{xAlign:n,yAlign:o}=this,{caretSize:a,cornerRadius:i}=r,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:d}=co(i),{x:u,y:p}=t,{width:f,height:m}=e;let h,b,g,v,x,y;return"center"===o?(x=p+m/2,"left"===n?(h=u,b=h-a,v=x+a,y=x-a):(h=u+f,b=h+a,v=x-a,y=x+a),g=h):(b="left"===n?u+Math.max(s,c)+a:"right"===n?u+f-Math.max(l,d)-a:this.caretX,"top"===o?(v=p,x=v-a,h=b-a,g=b+a):(v=p+m,x=v+a,h=b+a,g=b-a),y=v),{x1:h,x2:b,x3:g,y1:v,y2:x,y3:y}}drawTitle(t,e,r){const n=this.title,o=n.length;let a,i,s;if(o){const l=qo(r.rtl,this.x,this.width);for(t.x=Cs(this,r.titleAlign,r),e.textAlign=l.textAlign(r.titleAlign),e.textBaseline="middle",a=po(r.titleFont),i=r.titleSpacing,e.fillStyle=r.titleColor,e.font=a.string,s=0;s<o;++s)e.fillText(n[s],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+i,s+1===o&&(t.y+=r.titleMarginBottom-i)}}_drawColorBox(t,e,r,n,o){const a=this.labelColors[r],i=this.labelPointStyles[r],{boxHeight:s,boxWidth:l,boxPadding:c}=o,d=po(o.bodyFont),u=Cs(this,"left",o),p=n.x(u),f=s<d.lineHeight?(d.lineHeight-s)/2:0,m=e.y+f;if(o.usePointStyle){const e={radius:Math.min(l,s)/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:1},r=n.leftForLtr(p,l)+l/2,c=m+s/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Xn(t,e,r,c),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,Xn(t,e,r,c)}else{t.lineWidth=Mr(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const e=n.leftForLtr(p,l-c),r=n.leftForLtr(n.xPlus(p,1),l-c-2),i=co(a.borderRadius);Object.values(i).some((t=>0!==t))?(t.beginPath(),t.fillStyle=o.multiKeyBackground,no(t,{x:e,y:m,w:l,h:s,radius:i}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),no(t,{x:r,y:m+1,w:l-2,h:s-2,radius:i}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,m,l,s),t.strokeRect(e,m,l,s),t.fillStyle=a.backgroundColor,t.fillRect(r,m+1,l-2,s-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,e,r){const{body:n}=this,{bodySpacing:o,bodyAlign:a,displayColors:i,boxHeight:s,boxWidth:l,boxPadding:c}=r,d=po(r.bodyFont);let u=d.lineHeight,p=0;const f=qo(r.rtl,this.x,this.width),m=function(r){e.fillText(r,f.x(t.x+p),t.y+u/2),t.y+=u+o},h=f.textAlign(a);let b,g,v,x,y,w,k;for(e.textAlign=a,e.textBaseline="middle",e.font=d.string,t.x=Cs(this,h,r),e.fillStyle=r.bodyColor,Tr(this.beforeBody,m),p=i&&"right"!==h?"center"===a?l/2+c:l+2+c:0,x=0,w=n.length;x<w;++x){for(b=n[x],g=this.labelTextColors[x],e.fillStyle=g,Tr(b.before,m),v=b.lines,i&&v.length&&(this._drawColorBox(e,t,x,f,r),u=Math.max(d.lineHeight,s)),y=0,k=v.length;y<k;++y)m(v[y]),u=d.lineHeight;Tr(b.after,m)}p=0,u=d.lineHeight,Tr(this.afterBody,m),t.y-=o}drawFooter(t,e,r){const n=this.footer,o=n.length;let a,i;if(o){const s=qo(r.rtl,this.x,this.width);for(t.x=Cs(this,r.footerAlign,r),t.y+=r.footerMarginTop,e.textAlign=s.textAlign(r.footerAlign),e.textBaseline="middle",a=po(r.footerFont),e.fillStyle=r.footerColor,e.font=a.string,i=0;i<o;++i)e.fillText(n[i],s.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r.footerSpacing}}drawBackground(t,e,r,n){const{xAlign:o,yAlign:a}=this,{x:i,y:s}=t,{width:l,height:c}=r,{topLeft:d,topRight:u,bottomLeft:p,bottomRight:f}=co(n.cornerRadius);e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.beginPath(),e.moveTo(i+d,s),"top"===a&&this.drawCaret(t,e,r,n),e.lineTo(i+l-u,s),e.quadraticCurveTo(i+l,s,i+l,s+u),"center"===a&&"right"===o&&this.drawCaret(t,e,r,n),e.lineTo(i+l,s+c-f),e.quadraticCurveTo(i+l,s+c,i+l-f,s+c),"bottom"===a&&this.drawCaret(t,e,r,n),e.lineTo(i+p,s+c),e.quadraticCurveTo(i,s+c,i,s+c-p),"center"===a&&"left"===o&&this.drawCaret(t,e,r,n),e.lineTo(i,s+d),e.quadraticCurveTo(i,s,i+d,s),e.closePath(),e.fill(),n.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,r=this.$animations,n=r&&r.x,o=r&&r.y;if(n||o){const r=vs[t.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=ks(this,t),i=Object.assign({},r,this._size),s=Es(e,t,i),l=Ss(t,i,s,e);n._to===l.x&&o._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=uo(e.padding),i=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&i&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,n,e),Ko(t,e.textDirection),o.y+=a.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),Qo(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const r=this._active,n=t.map((({datasetIndex:t,index:e})=>{const r=this.chart.getDatasetMeta(t);if(!r)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:r.data[e],index:e}})),o=!Rr(r,n),a=this._positionChanged(n,e);(o||a)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,r=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,o=this._active||[],a=this._getActiveElements(t,o,e,r),i=this._positionChanged(a,t),s=e||!Rr(a,o)||i;return s&&(this._active=a,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_getActiveElements(t,e,r,n){const o=this.options;if("mouseout"===t.type)return[];if(!n)return e;const a=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&a.reverse(),a}_positionChanged(t,e){const{caretX:r,caretY:n,options:o}=this,a=vs[o.position].call(this,t,e);return!1!==a&&(r!==a.x||n!==a.y)}}var Ts={id:"tooltip",_element:zs,positioners:vs,afterInit(t,e,r){r&&(t.tooltip=new zs({chart:t,options:r}))},beforeUpdate(t,e,r){t.tooltip&&t.tooltip.initialize(r)},reset(t,e,r){t.tooltip&&t.tooltip.initialize(r)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const r={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...r,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",r)}},afterEvent(t,e){if(t.tooltip){const r=e.replay;t.tooltip.handleEvent(e.event,r,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Ps},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function Rs(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class Ls extends xi{static id="category";static defaults={ticks:{callback:Rs}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:r,label:n}of e)t[r]===n&&t.splice(r,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Sr(t))return null;const r=this.getLabels();return((t,e)=>null===t?null:mn(Math.round(t),0,e))(e=isFinite(e)&&r[e]===t?e:function(t,e,r,n){const o=t.indexOf(e);return-1===o?((t,e,r,n)=>("string"==typeof e?(r=t.push(e)-1,n.unshift({index:r,label:e})):isNaN(e)&&(r=null),r))(t,e,r,n):o!==t.lastIndexOf(e)?r:o}(r,t,Or(e,t),this._addedLabels),r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:r,max:n}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(r=0),e||(n=this.getLabels().length-1)),this.min=r,this.max=n}buildTicks(){const t=this.min,e=this.max,r=this.options.offset,n=[];let o=this.getLabels();o=0===t&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let r=t;r<=e;r++)n.push({value:r});return n}getLabelForValue(t){return Rs.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function As(t,e,{horizontal:r,minRotation:n}){const o=sn(n),a=(r?Math.sin(o):Math.cos(o))||.001,i=.75*e*(""+t).length;return Math.min(e/a,i)}class Ds extends xi{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return Sr(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:r}=this.getUserBounds();let{min:n,max:o}=this;const a=t=>n=e?n:t,i=t=>o=r?o:t;if(t){const t=en(n),e=en(o);t<0&&e<0?i(0):t>0&&e>0&&a(0)}if(n===o){let e=0===o?1:Math.abs(.05*o);i(o+e),t||a(n-e)}this.min=n,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:r,stepSize:n}=t;return n?(e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),r=r||11),r&&(e=Math.min(r,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const n=function(t,e){const r=[],{bounds:n,step:o,min:a,max:i,precision:s,count:l,maxTicks:c,maxDigits:d,includeBounds:u}=t,p=o||1,f=c-1,{min:m,max:h}=e,b=!Sr(a),g=!Sr(i),v=!Sr(l),x=(h-m)/(d+1);let y,w,k,_,E=nn((h-m)/f/p)*p;if(E<1e-14&&!b&&!g)return[{value:m},{value:h}];_=Math.ceil(h/E)-Math.floor(m/E),_>f&&(E=nn(_*E/f/p)*p),Sr(s)||(y=Math.pow(10,s),E=Math.ceil(E*y)/y),"ticks"===n?(w=Math.floor(m/E)*E,k=Math.ceil(h/E)*E):(w=m,k=h),b&&g&&o&&function(t,e){const r=Math.round(t);return r-e<=t&&r+e>=t}((i-a)/o,E/1e3)?(_=Math.round(Math.min((i-a)/E,c)),E=(i-a)/_,w=a,k=i):v?(w=b?a:w,k=g?i:k,_=l-1,E=(k-w)/_):(_=(k-w)/E,_=rn(_,Math.round(_),E/1e3)?Math.round(_):Math.ceil(_));const S=Math.max(ln(E),ln(w));y=Math.pow(10,Sr(s)?S:s),w=Math.round(w*y)/y,k=Math.round(k*y)/y;let C=0;for(b&&(u&&w!==a?(r.push({value:a}),w<a&&C++,rn(Math.round((w+C*E)*y)/y,a,As(a,x,t))&&C++):w<a&&C++);C<_;++C)r.push({value:Math.round((w+C*E)*y)/y});return g&&u&&k!==i?r.length&&rn(r[r.length-1].value,i,As(i,x,t))?r[r.length-1].value=i:r.push({value:i}):g&&k!==i||r.push({value:k}),r}({maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&an(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}configure(){const t=this.ticks;let e=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const n=(r-e)/Math.max(t.length-1,1)/2;e-=n,r+=n}this._startValue=e,this._endValue=r,this._valueRange=r-e}getLabelForValue(t){return An(t,this.chart.options.locale,this.options.ticks.format)}}class js extends Ds{static id="linear";static defaults={ticks:{callback:jn.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Nr(t)?t:0,this.max=Nr(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,r=sn(this.options.ticks.minRotation),n=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/n))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}class Is extends xi{static id="logarithmic";static defaults={ticks:{callback:jn.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const r=Ds.prototype.parse.apply(this,[t,e]);if(0!==r)return Nr(r)&&r>0?r:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Nr(t)?Math.max(0,t):null,this.max=Nr(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Nr(this._userMin)&&(this.min=t===changeExponent(this.min,0)?changeExponent(this.min,-1):changeExponent(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let r=this.min,n=this.max;const o=e=>t?r:e,a=t=>e?n:t;r===n&&(r<=0?(o(1),a(10)):(o(changeExponent(r,-1)),a(changeExponent(n,1)))),r<=0&&o(changeExponent(n,-1)),n<=0&&a(changeExponent(r,1)),this.min=r,this.max=n}buildTicks(){const t=this.options,e=generateTicks({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&an(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":An(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=tn(t),this._valueRange=tn(this.max)-tn(t)}getPixelForValue(t){return void 0!==t&&0!==t||this.min,null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(tn(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}class Fs extends Ds{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:jn.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=uo(getTickBackdropHeight(this.options)/2),e=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(e,r)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=Nr(t)&&!isNaN(t)?t:0,this.max=Nr(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/getTickBackdropHeight(this.options))}generateTickLabels(t){Ds.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const r=zr(this.options.pointLabels.callback,[t,e],this);return r||0===r?r:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?fitWithPointLabels(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,r,n){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((r-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,r,n))}getIndexAngle(t){return pn(t*(Xr/(this._pointLabels.length||1))+sn(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(Sr(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(Sr(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const r=e[t];return function(t,e,r){return mo(t,{label:r,index:e,type:"pointLabel"})}(this.getContext(),t,r)}}getPointPosition(t,e,r=0){const n=this.getIndexAngle(t)-Gr+r;return{x:Math.cos(n)*e+this.xCenter,y:Math.sin(n)*e+this.yCenter,angle:n}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:r,right:n,bottom:o}=this._pointLabelItems[t];return{left:e,top:r,right:n,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),pathRadiusLine(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:r,grid:n,border:o}=e,a=this._pointLabels.length;let i,s,l;if(e.pointLabels.display&&function(t,e){const{ctx:r,options:{pointLabels:n}}=t;for(let o=e-1;o>=0;o--){const e=n.setContext(t.getPointLabelContext(o)),a=po(e.font),{x:i,y:s,textAlign:l,left:c,top:d,right:u,bottom:p}=t._pointLabelItems[o],{backdropColor:f}=e;if(!Sr(f)){const t=co(e.borderRadius),n=uo(e.backdropPadding);r.fillStyle=f;const o=c-n.left,a=d-n.top,i=u-c+n.width,s=p-d+n.height;Object.values(t).some((t=>0!==t))?(r.beginPath(),no(r,{x:o,y:a,w:i,h:s,radius:t}),r.fill()):r.fillRect(o,a,i,s)}to(r,t._pointLabels[o],i,s+a.lineHeight/2,a,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,a),n.display&&this.ticks.forEach(((t,e)=>{if(0!==e){this.getDistanceFromCenterForValue(t.value);const r=this.getContext(e),i=n.setContext(r),l=o.setContext(r);!function(t,e,r,n,o){const a=t.ctx,i=e.circular,{color:s,lineWidth:l}=e;!i&&!n||!s||!l||(a.save(),a.strokeStyle=s,a.lineWidth=l,a.setLineDash(o.dash),a.lineDashOffset=o.dashOffset,a.beginPath(),pathRadiusLine(t,r,i,n),a.closePath(),a.stroke(),a.restore())}(this,i,s,a,l)}})),r.display){for(t.save();i>=0;i--){const n=r.setContext(this.getPointLabelContext(i)),{color:o,lineWidth:a}=n;a&&o&&(t.lineWidth=a,t.strokeStyle=o,t.setLineDash(n.borderDash),t.lineDashOffset=n.borderDashOffset,this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),this.getPointPosition(i,s),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,r=e.ticks;if(!r.display)return;const n=this.getIndexAngle(0);let o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((n,a)=>{if(0===a&&!e.reverse)return;const i=r.setContext(this.getContext(a)),s=po(i.font);if(this.getDistanceFromCenterForValue(this.ticks[a].value),i.showLabelBackdrop){t.font=s.string,t.measureText(n.label).width,t.fillStyle=i.backdropColor;const e=uo(i.backdropPadding);t.fillRect(NaN-e.left,NaN-s.size/2-e.top,o+e.width,s.size+e.height)}to(t,n.label,0,NaN,s,{color:i.color})})),t.restore()}drawTitle(){}}Yi.defaults.font.size=16,Yi.defaults.font.family="Open Sans",Yi.defaults.font.weight="700";const Bs=function(t){var r=t.title,n=t.description,o=t.filter,a=t.children,i=t.category;return e.createElement(e.Fragment,null,i===Ve.Organisation&&e.createElement(Fe,null),i===Ve.Policy&&e.createElement(Ye,null),e.createElement(Ue,{type:"data"}),e.createElement(He,{activeCategory:i}),e.createElement(Nt,{className:"grow"},e.createElement(Ot,null,e.createElement("h3",{className:"m-4"},r)),e.createElement(Ot,null,e.createElement("p",{className:"p-md-4"},n)),e.createElement(Ot,null,o),e.createElement(Ot,null,a)))};var Us=Function.prototype.bind.call(Function.prototype.call,[].slice);function Ws(t,e){return Us(t.querySelectorAll(e))}const $s=!("undefined"==typeof window||!window.document||!window.document.createElement);var Vs=!1,Hs=!1;try{var Ys={get passive(){return Vs=!0},get once(){return Hs=Vs=!0}};$s&&(window.addEventListener("test",Ys,Ys),window.removeEventListener("test",Ys,!0))}catch(t){}const Xs=function(t,e,r,n){if(n&&"boolean"!=typeof n&&!Hs){var o=n.once,a=n.capture,i=r;!Hs&&o&&(i=r.__once||function t(n){this.removeEventListener(e,t,a),r.call(this,n)},r.__once=i),t.addEventListener(e,i,Vs?n:a)}t.addEventListener(e,r,n)};function qs(){return qs=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},qs.apply(this,arguments)}function Ks(t){return"default"+t.charAt(0).toUpperCase()+t.substr(1)}function Qs(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function Gs(t,r,n){var o=(0,e.useRef)(void 0!==t),a=(0,e.useState)(r),i=a[0],s=a[1],l=void 0!==t,c=o.current;return o.current=l,!l&&c&&i!==r&&s(r),[l?t:i,(0,e.useCallback)((function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];n&&n.apply(void 0,[t].concat(r)),s(t)}),[n])]}o(143);function Zs(t){var r=function(t){var r=(0,e.useRef)(t);return(0,e.useEffect)((function(){r.current=t}),[t]),r}(t);return(0,e.useCallback)((function(){return r.current&&r.current.apply(r,arguments)}),[r])}const Js=e.createContext(null);var tl=Object.prototype.hasOwnProperty;function el(t,e,r){for(r of t.keys())if(rl(r,e))return r}function rl(t,e){var r,n,o;if(t===e)return!0;if(t&&e&&(r=t.constructor)===e.constructor){if(r===Date)return t.getTime()===e.getTime();if(r===RegExp)return t.toString()===e.toString();if(r===Array){if((n=t.length)===e.length)for(;n--&&rl(t[n],e[n]););return-1===n}if(r===Set){if(t.size!==e.size)return!1;for(n of t){if((o=n)&&"object"==typeof o&&!(o=el(e,o)))return!1;if(!e.has(o))return!1}return!0}if(r===Map){if(t.size!==e.size)return!1;for(n of t){if((o=n[0])&&"object"==typeof o&&!(o=el(e,o)))return!1;if(!rl(n[1],e.get(o)))return!1}return!0}if(r===ArrayBuffer)t=new Uint8Array(t),e=new Uint8Array(e);else if(r===DataView){if((n=t.byteLength)===e.byteLength)for(;n--&&t.getInt8(n)===e.getInt8(n););return-1===n}if(ArrayBuffer.isView(t)){if((n=t.byteLength)===e.byteLength)for(;n--&&t[n]===e[n];);return-1===n}if(!r||"object"==typeof t){for(r in n=0,t){if(tl.call(t,r)&&++n&&!tl.call(e,r))return!1;if(!(r in e)||!rl(t[r],e[r]))return!1}return Object.keys(e).length===n}}return t!=t&&e!=e}function nl(t){return t.split("-")[0]}function ol(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function al(t){return t instanceof ol(t).Element||t instanceof Element}function il(t){return t instanceof ol(t).HTMLElement||t instanceof HTMLElement}function sl(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ol(t).ShadowRoot||t instanceof ShadowRoot)}var ll=Math.max,cl=Math.min,dl=Math.round;function ul(){var t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function pl(){return!/^((?!chrome|android).)*safari/i.test(ul())}function fl(t,e,r){void 0===e&&(e=!1),void 0===r&&(r=!1);var n=t.getBoundingClientRect(),o=1,a=1;e&&il(t)&&(o=t.offsetWidth>0&&dl(n.width)/t.offsetWidth||1,a=t.offsetHeight>0&&dl(n.height)/t.offsetHeight||1);var i=(al(t)?ol(t):window).visualViewport,s=!pl()&&r,l=(n.left+(s&&i?i.offsetLeft:0))/o,c=(n.top+(s&&i?i.offsetTop:0))/a,d=n.width/o,u=n.height/a;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function ml(t){var e=fl(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function hl(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&sl(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function bl(t){return t?(t.nodeName||"").toLowerCase():null}function gl(t){return ol(t).getComputedStyle(t)}function vl(t){return["table","td","th"].indexOf(bl(t))>=0}function xl(t){return((al(t)?t.ownerDocument:t.document)||window.document).documentElement}function yl(t){return"html"===bl(t)?t:t.assignedSlot||t.parentNode||(sl(t)?t.host:null)||xl(t)}function wl(t){return il(t)&&"fixed"!==gl(t).position?t.offsetParent:null}function kl(t){for(var e=ol(t),r=wl(t);r&&vl(r)&&"static"===gl(r).position;)r=wl(r);return r&&("html"===bl(r)||"body"===bl(r)&&"static"===gl(r).position)?e:r||function(t){var e=/firefox/i.test(ul());if(/Trident/i.test(ul())&&il(t)&&"fixed"===gl(t).position)return null;var r=yl(t);for(sl(r)&&(r=r.host);il(r)&&["html","body"].indexOf(bl(r))<0;){var n=gl(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(t)||e}function _l(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function El(t,e,r){return ll(t,cl(e,r))}function Sl(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Cl(t,e){return e.reduce((function(e,r){return e[r]=t,e}),{})}var Ml="top",Nl="bottom",Pl="right",Ol="left",zl="auto",Tl=[Ml,Nl,Pl,Ol],Rl="start",Ll="end",Al="viewport",Dl="popper",jl=Tl.reduce((function(t,e){return t.concat([e+"-"+Rl,e+"-"+Ll])}),[]),Il=[].concat(Tl,[zl]).reduce((function(t,e){return t.concat([e,e+"-"+Rl,e+"-"+Ll])}),[]),Fl=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const Bl={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,r=t.state,n=t.name,o=t.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=nl(r.placement),l=_l(s),c=[Ol,Pl].indexOf(s)>=0?"height":"width";if(a&&i){var d=function(t,e){return Sl("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Cl(t,Tl))}(o.padding,r),u=ml(a),p="y"===l?Ml:Ol,f="y"===l?Nl:Pl,m=r.rects.reference[c]+r.rects.reference[l]-i[l]-r.rects.popper[c],h=i[l]-r.rects.reference[l],b=kl(a),g=b?"y"===l?b.clientHeight||0:b.clientWidth||0:0,v=m/2-h/2,x=d[p],y=g-u[c]-d[f],w=g/2-u[c]/2+v,k=El(x,w,y),_=l;r.modifiersData[n]=((e={})[_]=k,e.centerOffset=k-w,e)}},effect:function(t){var e=t.state,r=t.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&hl(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ul(t){return t.split("-")[1]}var Wl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $l(t){var e,r=t.popper,n=t.popperRect,o=t.placement,a=t.variation,i=t.offsets,s=t.position,l=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,u=t.isFixed,p=i.x,f=void 0===p?0:p,m=i.y,h=void 0===m?0:m,b="function"==typeof d?d({x:f,y:h}):{x:f,y:h};f=b.x,h=b.y;var g=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),x=Ol,y=Ml,w=window;if(c){var k=kl(r),_="clientHeight",E="clientWidth";k===ol(r)&&"static"!==gl(k=xl(r)).position&&"absolute"===s&&(_="scrollHeight",E="scrollWidth"),(o===Ml||(o===Ol||o===Pl)&&a===Ll)&&(y=Nl,h-=(u&&k===w&&w.visualViewport?w.visualViewport.height:k[_])-n.height,h*=l?1:-1),o!==Ol&&(o!==Ml&&o!==Nl||a!==Ll)||(x=Pl,f-=(u&&k===w&&w.visualViewport?w.visualViewport.width:k[E])-n.width,f*=l?1:-1)}var S,C=Object.assign({position:s},c&&Wl),M=!0===d?function(t){var e=t.x,r=t.y,n=window.devicePixelRatio||1;return{x:dl(e*n)/n||0,y:dl(r*n)/n||0}}({x:f,y:h}):{x:f,y:h};return f=M.x,h=M.y,l?Object.assign({},C,((S={})[y]=v?"0":"",S[x]=g?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",S)):Object.assign({},C,((e={})[y]=v?h+"px":"",e[x]=g?f+"px":"",e.transform="",e))}const Vl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,r=t.options,n=r.gpuAcceleration,o=void 0===n||n,a=r.adaptive,i=void 0===a||a,s=r.roundOffsets,l=void 0===s||s,c={placement:nl(e.placement),variation:Ul(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,$l(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,$l(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var Hl={passive:!0};const Yl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,r=t.instance,n=t.options,o=n.scroll,a=void 0===o||o,i=n.resize,s=void 0===i||i,l=ol(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&c.forEach((function(t){t.addEventListener("scroll",r.update,Hl)})),s&&l.addEventListener("resize",r.update,Hl),function(){a&&c.forEach((function(t){t.removeEventListener("scroll",r.update,Hl)})),s&&l.removeEventListener("resize",r.update,Hl)}},data:{}};var Xl={left:"right",right:"left",bottom:"top",top:"bottom"};function ql(t){return t.replace(/left|right|bottom|top/g,(function(t){return Xl[t]}))}var Kl={start:"end",end:"start"};function Ql(t){return t.replace(/start|end/g,(function(t){return Kl[t]}))}function Gl(t){var e=ol(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Zl(t){return fl(xl(t)).left+Gl(t).scrollLeft}function Jl(t){var e=gl(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function tc(t){return["html","body","#document"].indexOf(bl(t))>=0?t.ownerDocument.body:il(t)&&Jl(t)?t:tc(yl(t))}function ec(t,e){var r;void 0===e&&(e=[]);var n=tc(t),o=n===(null==(r=t.ownerDocument)?void 0:r.body),a=ol(n),i=o?[a].concat(a.visualViewport||[],Jl(n)?n:[]):n,s=e.concat(i);return o?s:s.concat(ec(yl(i)))}function rc(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function nc(t,e,r){return e===Al?rc(function(t,e){var r=ol(t),n=xl(t),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=pl();(c||!c&&"fixed"===e)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+Zl(t),y:l}}(t,r)):al(e)?function(t,e){var r=fl(t,!1,"fixed"===e);return r.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}(e,r):rc(function(t){var e,r=xl(t),n=Gl(t),o=null==(e=t.ownerDocument)?void 0:e.body,a=ll(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=ll(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+Zl(t),l=-n.scrollTop;return"rtl"===gl(o||r).direction&&(s+=ll(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(xl(t)))}function oc(t){var e,r=t.reference,n=t.element,o=t.placement,a=o?nl(o):null,i=o?Ul(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(a){case Ml:e={x:s,y:r.y-n.height};break;case Nl:e={x:s,y:r.y+r.height};break;case Pl:e={x:r.x+r.width,y:l};break;case Ol:e={x:r.x-n.width,y:l};break;default:e={x:r.x,y:r.y}}var c=a?_l(a):null;if(null!=c){var d="y"===c?"height":"width";switch(i){case Rl:e[c]=e[c]-(r[d]/2-n[d]/2);break;case Ll:e[c]=e[c]+(r[d]/2-n[d]/2)}}return e}function ac(t,e){void 0===e&&(e={});var r=e,n=r.placement,o=void 0===n?t.placement:n,a=r.strategy,i=void 0===a?t.strategy:a,s=r.boundary,l=void 0===s?"clippingParents":s,c=r.rootBoundary,d=void 0===c?Al:c,u=r.elementContext,p=void 0===u?Dl:u,f=r.altBoundary,m=void 0!==f&&f,h=r.padding,b=void 0===h?0:h,g=Sl("number"!=typeof b?b:Cl(b,Tl)),v=p===Dl?"reference":Dl,x=t.rects.popper,y=t.elements[m?v:p],w=function(t,e,r,n){var o="clippingParents"===e?function(t){var e=ec(yl(t)),r=["absolute","fixed"].indexOf(gl(t).position)>=0&&il(t)?kl(t):t;return al(r)?e.filter((function(t){return al(t)&&hl(t,r)&&"body"!==bl(t)})):[]}(t):[].concat(e),a=[].concat(o,[r]),i=a[0],s=a.reduce((function(e,r){var o=nc(t,r,n);return e.top=ll(o.top,e.top),e.right=cl(o.right,e.right),e.bottom=cl(o.bottom,e.bottom),e.left=ll(o.left,e.left),e}),nc(t,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(al(y)?y:y.contextElement||xl(t.elements.popper),l,d,i),k=fl(t.elements.reference),_=oc({reference:k,element:x,strategy:"absolute",placement:o}),E=rc(Object.assign({},x,_)),S=p===Dl?E:k,C={top:w.top-S.top+g.top,bottom:S.bottom-w.bottom+g.bottom,left:w.left-S.left+g.left,right:S.right-w.right+g.right},M=t.modifiersData.offset;if(p===Dl&&M){var N=M[o];Object.keys(C).forEach((function(t){var e=[Pl,Nl].indexOf(t)>=0?1:-1,r=[Ml,Nl].indexOf(t)>=0?"y":"x";C[t]+=N[r]*e}))}return C}const ic={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,a=void 0===o||o,i=r.altAxis,s=void 0===i||i,l=r.fallbackPlacements,c=r.padding,d=r.boundary,u=r.rootBoundary,p=r.altBoundary,f=r.flipVariations,m=void 0===f||f,h=r.allowedAutoPlacements,b=e.options.placement,g=nl(b),v=l||(g!==b&&m?function(t){if(nl(t)===zl)return[];var e=ql(t);return[Ql(t),e,Ql(e)]}(b):[ql(b)]),x=[b].concat(v).reduce((function(t,r){return t.concat(nl(r)===zl?function(t,e){void 0===e&&(e={});var r=e,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?Il:l,d=Ul(n),u=d?s?jl:jl.filter((function(t){return Ul(t)===d})):Tl,p=u.filter((function(t){return c.indexOf(t)>=0}));0===p.length&&(p=u);var f=p.reduce((function(e,r){return e[r]=ac(t,{placement:r,boundary:o,rootBoundary:a,padding:i})[nl(r)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}(e,{placement:r,boundary:d,rootBoundary:u,padding:c,flipVariations:m,allowedAutoPlacements:h}):r)}),[]),y=e.rects.reference,w=e.rects.popper,k=new Map,_=!0,E=x[0],S=0;S<x.length;S++){var C=x[S],M=nl(C),N=Ul(C)===Rl,P=[Ml,Nl].indexOf(M)>=0,O=P?"width":"height",z=ac(e,{placement:C,boundary:d,rootBoundary:u,altBoundary:p,padding:c}),T=P?N?Pl:Ol:N?Nl:Ml;y[O]>w[O]&&(T=ql(T));var R=ql(T),L=[];if(a&&L.push(z[M]<=0),s&&L.push(z[T]<=0,z[R]<=0),L.every((function(t){return t}))){E=C,_=!1;break}k.set(C,L)}if(_)for(var A=function(t){var e=x.find((function(e){var r=k.get(e);if(r)return r.slice(0,t).every((function(t){return t}))}));if(e)return E=e,"break"},D=m?3:1;D>0&&"break"!==A(D);D--);e.placement!==E&&(e.modifiersData[n]._skip=!0,e.placement=E,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function sc(t,e,r){return void 0===r&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function lc(t){return[Ml,Pl,Nl,Ol].some((function(e){return t[e]>=0}))}const cc={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,r=t.options,n=t.name,o=r.offset,a=void 0===o?[0,0]:o,i=Il.reduce((function(t,r){return t[r]=function(t,e,r){var n=nl(t),o=[Ol,Ml].indexOf(n)>=0?-1:1,a="function"==typeof r?r(Object.assign({},e,{placement:t})):r,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[Ol,Pl].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}(r,e.rects,a),t}),{}),s=i[e.placement],l=s.x,c=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=i}},dc={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,a=void 0===o||o,i=r.altAxis,s=void 0!==i&&i,l=r.boundary,c=r.rootBoundary,d=r.altBoundary,u=r.padding,p=r.tether,f=void 0===p||p,m=r.tetherOffset,h=void 0===m?0:m,b=ac(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),g=nl(e.placement),v=Ul(e.placement),x=!v,y=_l(g),w="x"===y?"y":"x",k=e.modifiersData.popperOffsets,_=e.rects.reference,E=e.rects.popper,S="function"==typeof h?h(Object.assign({},e.rects,{placement:e.placement})):h,C="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),M=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,N={x:0,y:0};if(k){if(a){var P,O="y"===y?Ml:Ol,z="y"===y?Nl:Pl,T="y"===y?"height":"width",R=k[y],L=R+b[O],A=R-b[z],D=f?-E[T]/2:0,j=v===Rl?_[T]:E[T],I=v===Rl?-E[T]:-_[T],F=e.elements.arrow,B=f&&F?ml(F):{width:0,height:0},U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=U[O],$=U[z],V=El(0,_[T],B[T]),H=x?_[T]/2-D-V-W-C.mainAxis:j-V-W-C.mainAxis,Y=x?-_[T]/2+D+V+$+C.mainAxis:I+V+$+C.mainAxis,X=e.elements.arrow&&kl(e.elements.arrow),q=X?"y"===y?X.clientTop||0:X.clientLeft||0:0,K=null!=(P=null==M?void 0:M[y])?P:0,Q=R+Y-K,G=El(f?cl(L,R+H-K-q):L,R,f?ll(A,Q):A);k[y]=G,N[y]=G-R}if(s){var Z,J="x"===y?Ml:Ol,tt="x"===y?Nl:Pl,et=k[w],rt="y"===w?"height":"width",nt=et+b[J],ot=et-b[tt],at=-1!==[Ml,Ol].indexOf(g),it=null!=(Z=null==M?void 0:M[w])?Z:0,st=at?nt:et-_[rt]-E[rt]-it+C.altAxis,lt=at?et+_[rt]+E[rt]-it-C.altAxis:ot,ct=f&&at?function(t,e,r){var n=El(t,e,r);return n>r?r:n}(st,et,lt):El(f?st:nt,et,f?lt:ot);k[w]=ct,N[w]=ct-et}e.modifiersData[n]=N}},requiresIfExists:["offset"]};function uc(t,e,r){void 0===r&&(r=!1);var n,o,a=il(e),i=il(e)&&function(t){var e=t.getBoundingClientRect(),r=dl(e.width)/t.offsetWidth||1,n=dl(e.height)/t.offsetHeight||1;return 1!==r||1!==n}(e),s=xl(e),l=fl(t,i,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(a||!a&&!r)&&(("body"!==bl(e)||Jl(s))&&(c=(n=e)!==ol(n)&&il(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:Gl(n)),il(e)?((d=fl(e,!0)).x+=e.clientLeft,d.y+=e.clientTop):s&&(d.x=Zl(s))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function pc(t){var e=new Map,r=new Set,n=[];function o(t){r.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!r.has(t)){var n=e.get(t);n&&o(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){r.has(t.name)||o(t)})),n}var fc={placement:"bottom",modifiers:[],strategy:"absolute"};function mc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}const hc=function(t){void 0===t&&(t={});var e=t,r=e.defaultModifiers,n=void 0===r?[]:r,o=e.defaultOptions,a=void 0===o?fc:o;return function(t,e,r){void 0===r&&(r=a);var o,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},fc,a),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,d={state:s,setOptions:function(r){var o="function"==typeof r?r(s.options):r;u(),s.options=Object.assign({},a,s.options,o),s.scrollParents={reference:al(t)?ec(t):t.contextElement?ec(t.contextElement):[],popper:ec(e)};var i,c,p=function(t){var e=pc(t);return Fl.reduce((function(t,r){return t.concat(e.filter((function(t){return t.phase===r})))}),[])}((i=[].concat(n,s.options.modifiers),c=i.reduce((function(t,e){var r=t[e.name];return t[e.name]=r?Object.assign({},r,e,{options:Object.assign({},r.options,e.options),data:Object.assign({},r.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return s.orderedModifiers=p.filter((function(t){return t.enabled})),s.orderedModifiers.forEach((function(t){var e=t.name,r=t.options,n=void 0===r?{}:r,o=t.effect;if("function"==typeof o){var a=o({state:s,name:e,instance:d,options:n});l.push(a||function(){})}})),d.update()},forceUpdate:function(){if(!c){var t=s.elements,e=t.reference,r=t.popper;if(mc(e,r)){s.rects={reference:uc(e,kl(r),"fixed"===s.options.strategy),popper:ml(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(t){return s.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var o=s.orderedModifiers[n],a=o.fn,i=o.options,l=void 0===i?{}:i,u=o.name;"function"==typeof a&&(s=a({state:s,options:l,name:u,instance:d})||s)}else s.reset=!1,n=-1}}},update:(o=function(){return new Promise((function(t){d.forceUpdate(),t(s)}))},function(){return i||(i=new Promise((function(t){Promise.resolve().then((function(){i=void 0,t(o())}))}))),i}),destroy:function(){u(),c=!0}};if(!mc(t,e))return d;function u(){l.forEach((function(t){return t()})),l=[]}return d.setOptions(r).then((function(t){!c&&r.onFirstUpdate&&r.onFirstUpdate(t)})),d}}({defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,a=e.modifiersData.preventOverflow,i=ac(e,{elementContext:"reference"}),s=ac(e,{altBoundary:!0}),l=sc(i,n),c=sc(s,o,a),d=lc(l),u=lc(c);e.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,r=t.name;e.modifiersData[r]=oc({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},Vl,Yl,cc,ic,dc,Bl]}),bc=["enabled","placement","strategy","modifiers"],gc={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},vc={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:t})=>()=>{const{reference:e,popper:r}=t.elements;if("removeAttribute"in e){const t=(e.getAttribute("aria-describedby")||"").split(",").filter((t=>t.trim()!==r.id));t.length?e.setAttribute("aria-describedby",t.join(",")):e.removeAttribute("aria-describedby")}},fn:({state:t})=>{var e;const{popper:r,reference:n}=t.elements,o=null==(e=r.getAttribute("role"))?void 0:e.toLowerCase();if(r.id&&"tooltip"===o&&"setAttribute"in n){const t=n.getAttribute("aria-describedby");if(t&&-1!==t.split(",").indexOf(r.id))return;n.setAttribute("aria-describedby",t?`${t},${r.id}`:r.id)}}},xc=[],yc=function(t,r,n={}){let{enabled:o=!0,placement:a="bottom",strategy:i="absolute",modifiers:s=xc}=n,l=function(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(n,bc);const c=(0,e.useRef)(s),d=(0,e.useRef)(),u=(0,e.useCallback)((()=>{var t;null==(t=d.current)||t.update()}),[]),p=(0,e.useCallback)((()=>{var t;null==(t=d.current)||t.forceUpdate()}),[]),[f,m]=(g=(0,e.useState)({placement:a,update:u,forceUpdate:p,attributes:{},styles:{popper:{},arrow:{}}}),v=function(){var t=(0,e.useRef)(!0),r=(0,e.useRef)((function(){return t.current}));return(0,e.useEffect)((function(){return t.current=!0,function(){t.current=!1}}),[]),r.current}(),[g[0],(0,e.useCallback)((function(t){if(v())return g[1](t)}),[v,g[1]])]),h=(0,e.useMemo)((()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:t})=>{const e={},r={};Object.keys(t.elements).forEach((n=>{e[n]=t.styles[n],r[n]=t.attributes[n]})),m({state:t,styles:e,attributes:r,update:u,forceUpdate:p,placement:t.placement})}})),[u,p,m]),b=(0,e.useMemo)((()=>(rl(c.current,s)||(c.current=s),c.current)),[s]);var g,v;return(0,e.useEffect)((()=>{d.current&&o&&d.current.setOptions({placement:a,strategy:i,modifiers:[...b,h,gc]})}),[i,a,h,o,b]),(0,e.useEffect)((()=>{if(o&&null!=t&&null!=r)return d.current=hc(t,r,Object.assign({},l,{placement:a,strategy:i,modifiers:[...b,vc,h]})),()=>{null!=d.current&&(d.current.destroy(),d.current=void 0,m((t=>Object.assign({},t,{attributes:{},styles:{popper:{}}}))))}}),[o,t,r]),f};function wc(t,e){return t.contains?t.contains(e):t.compareDocumentPosition?t===e||!!(16&t.compareDocumentPosition(e)):void 0}const kc=function(t,e,r,n){return Xs(t,e,r,n),function(){!function(t,e,r,n){var o=n&&"boolean"!=typeof n?n.capture:n;t.removeEventListener(e,r,o),r.__once&&t.removeEventListener(e,r.__once,o)}(t,e,r,n)}};var _c=o(473),Ec=o.n(_c);const Sc=()=>{},Cc=t=>t&&("current"in t?t.current:t),Mc={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Nc(t={}){return Array.isArray(t)?t:Object.keys(t).map((e=>(t[e].name=e,t[e])))}const Pc=["children"],Oc=()=>{};function zc(t={}){const r=(0,e.useContext)(Js),[n,o]=(0,e.useState)(null),a=(0,e.useRef)(!1),{flip:i,offset:s,rootCloseEvent:l,fixed:c=!1,placement:d,popperConfig:u={},enableEventListeners:p=!0,usePopper:f=!!r}=t,m=null==(null==r?void 0:r.show)?!!t.show:r.show;m&&!a.current&&(a.current=!0);const{placement:h,setMenu:b,menuElement:g,toggleElement:v}=r||{},x=yc(v,g,function({enabled:t,enableEvents:e,placement:r,flip:n,offset:o,fixed:a,containerPadding:i,arrowElement:s,popperConfig:l={}}){var c,d,u,p,f;const m=function(t){const e={};return Array.isArray(t)?(null==t||t.forEach((t=>{e[t.name]=t})),e):t||e}(l.modifiers);return Object.assign({},l,{placement:r,enabled:t,strategy:a?"fixed":l.strategy,modifiers:Nc(Object.assign({},m,{eventListeners:{enabled:e,options:null==(c=m.eventListeners)?void 0:c.options},preventOverflow:Object.assign({},m.preventOverflow,{options:i?Object.assign({padding:i},null==(d=m.preventOverflow)?void 0:d.options):null==(u=m.preventOverflow)?void 0:u.options}),offset:{options:Object.assign({offset:o},null==(p=m.offset)?void 0:p.options)},arrow:Object.assign({},m.arrow,{enabled:!!s,options:Object.assign({},null==(f=m.arrow)?void 0:f.options,{element:s})}),flip:Object.assign({enabled:!!n},m.flip)}))})}({placement:d||h||"bottom-start",enabled:f,enableEvents:null==p?m:p,offset:s,flip:i,fixed:c,arrowElement:n,popperConfig:u})),y=Object.assign({ref:b||Oc,"aria-labelledby":null==v?void 0:v.id},x.attributes.popper,{style:x.styles.popper}),w={show:m,placement:h,hasShown:a.current,toggle:null==r?void 0:r.toggle,popper:f?x:null,arrowProps:f?Object.assign({ref:o},x.attributes.arrow,{style:x.styles.arrow}):{}};return function(t,r=Sc,{disabled:n,clickTrigger:o="click"}={}){const a=(0,e.useRef)(!1),i=(0,e.useRef)(!1),s=(0,e.useCallback)((e=>{const r=Cc(t);var n;Ec()(!!r,"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"),a.current=!r||!!((n=e).metaKey||n.altKey||n.ctrlKey||n.shiftKey)||!function(t){return 0===t.button}(e)||!!wc(r,e.target)||i.current,i.current=!1}),[t]),l=Zs((e=>{const r=Cc(t);r&&wc(r,e.target)&&(i.current=!0)})),c=Zs((t=>{a.current||r(t)}));(0,e.useEffect)((()=>{if(n||null==t)return;const e=(r=Cc(t))&&r.ownerDocument||document;var r;let a=(e.defaultView||window).event,i=null;Mc[o]&&(i=kc(e,Mc[o],l,!0));const d=kc(e,o,s,!0),u=kc(e,o,(t=>{t!==a?c(t):a=void 0}));let p=[];return"ontouchstart"in e.documentElement&&(p=[].slice.call(e.body.children).map((t=>kc(t,"mousemove",Sc)))),()=>{null==i||i(),d(),u(),p.forEach((t=>t()))}}),[t,n,o,s,l,c])}(g,(t=>{null==r||r.toggle(!1,t)}),{clickTrigger:l,disabled:!m}),[y,w]}function Tc(t){let{children:e}=t,r=function(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,Pc);const[n,o]=zc(r);return(0,yt.jsx)(yt.Fragment,{children:e(n,o)})}Tc.displayName="DropdownMenu",Tc.defaultProps={usePopper:!0};const Rc=Tc,Lc={prefix:String(Math.round(1e10*Math.random())),current:0},Ac=e.createContext(Lc);let Dc=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);const jc=t=>{var e;return"menu"===(null==(e=t.getAttribute("role"))?void 0:e.toLowerCase())},Ic=()=>{};function Fc(){const t=function(t){let r=(0,e.useContext)(Ac);return r!==Lc||Dc||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),(0,e.useMemo)((()=>`react-aria${r.prefix}-${++r.current}`),[t])}(),{show:r=!1,toggle:n=Ic,setToggle:o,menuElement:a}=(0,e.useContext)(Js)||{},i=(0,e.useCallback)((t=>{n(!r,t)}),[r,n]),s={id:t,ref:o||Ic,onClick:i,"aria-expanded":!!r};return a&&jc(a)&&(s["aria-haspopup"]=!0),[s,{show:r,toggle:n}]}function Bc({children:t}){const[e,r]=Fc();return(0,yt.jsx)(yt.Fragment,{children:t(e,r)})}Bc.displayName="DropdownToggle";const Uc=Bc,Wc=(t,e=null)=>null!=t?String(t):e||null,$c=e.createContext(null),Vc=e.createContext(null);Vc.displayName="NavContext";const Hc=Vc;function Yc(t){return`data-rr-ui-${t}`}const Xc=["eventKey","disabled","onClick","active","as"];function qc({key:t,href:r,active:n,disabled:o,onClick:a}){const i=(0,e.useContext)($c),s=(0,e.useContext)(Hc),{activeKey:l}=s||{},c=Wc(t,r),d=null==n&&null!=t?Wc(l)===c:n;return[{onClick:Zs((t=>{o||(null==a||a(t),i&&!t.isPropagationStopped()&&i(c,t))})),"aria-disabled":o||void 0,"aria-selected":d,[Yc("dropdown-item")]:""},{isActive:d}]}const Kc=e.forwardRef(((t,e)=>{let{eventKey:r,disabled:n,onClick:o,active:a,as:i=ie}=t,s=function(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,Xc);const[l]=qc({key:r,href:s.href,disabled:n,onClick:o,active:a});return(0,yt.jsx)(i,Object.assign({},s,{ref:e},l))}));Kc.displayName="DropdownItem";const Qc=Kc,Gc=(0,e.createContext)($s?window:void 0);function Zc(){const t=(0,e.useReducer)((function(t){return!t}),!1)[1],r=(0,e.useRef)(null),n=(0,e.useCallback)((e=>{r.current=e,t()}),[t]);return[r,n]}function Jc({defaultShow:t,show:r,onSelect:n,onToggle:o,itemSelector:a=`* [${Yc("dropdown-item")}]`,focusFirstItemOnShow:i,placement:s="bottom-start",children:l}){const c=(0,e.useContext)(Gc),[d,u]=Gs(r,t,o),[p,f]=Zc(),m=p.current,[h,b]=Zc(),g=h.current,v=(x=d,y=(0,e.useRef)(null),(0,e.useEffect)((function(){y.current=x})),y.current);var x,y;const w=(0,e.useRef)(null),k=(0,e.useRef)(!1),_=(0,e.useContext)($c),E=(0,e.useCallback)(((t,e,r=(null==e?void 0:e.type))=>{u(t,{originalEvent:e,source:r})}),[u]),S=Zs(((t,e)=>{null==n||n(t,e),E(!1,e,"select"),e.isPropagationStopped()||null==_||_(t,e)})),C=(0,e.useMemo)((()=>({toggle:E,placement:s,show:d,menuElement:m,toggleElement:g,setMenu:f,setToggle:b})),[E,s,d,m,g,f,b]);m&&v&&!d&&(k.current=m.contains(m.ownerDocument.activeElement));const M=Zs((()=>{g&&g.focus&&g.focus()})),N=Zs((()=>{const t=w.current;let e=i;if(null==e&&(e=!(!p.current||!jc(p.current))&&"keyboard"),!1===e||"keyboard"===e&&!/^key.+$/.test(t))return;const r=Ws(p.current,a)[0];r&&r.focus&&r.focus()}));(0,e.useEffect)((()=>{d?N():k.current&&(k.current=!1,M())}),[d,k,M,N]),(0,e.useEffect)((()=>{w.current=null}));const P=(t,e)=>{if(!p.current)return null;const r=Ws(p.current,a);let n=r.indexOf(t)+e;return n=Math.max(0,Math.min(n,r.length)),r[n]};return function(t,r,n,o){void 0===o&&(o=!1);var a=Zs((t=>{var e,r;const{key:n}=t,o=t.target,a=null==(e=p.current)?void 0:e.contains(o),i=null==(r=h.current)?void 0:r.contains(o);if(/input|textarea/i.test(o.tagName)&&(" "===n||"Escape"!==n&&a||"Escape"===n&&"search"===o.type))return;if(!a&&!i)return;if(!("Tab"!==n||p.current&&d))return;w.current=t.type;const s={originalEvent:t,source:t.type};switch(n){case"ArrowUp":{const e=P(o,-1);return e&&e.focus&&e.focus(),void t.preventDefault()}case"ArrowDown":if(t.preventDefault(),d){const t=P(o,1);t&&t.focus&&t.focus()}else u(!0,s);return;case"Tab":Xs(o.ownerDocument,"keyup",(t=>{var e;("Tab"!==t.key||t.target)&&null!=(e=p.current)&&e.contains(t.target)||u(!1,s)}),{once:!0});break;case"Escape":"Escape"===n&&(t.preventDefault(),t.stopPropagation()),u(!1,s)}}));(0,e.useEffect)((function(){var e="function"==typeof t?t():t;return e.addEventListener(r,a,o),function(){return e.removeEventListener(r,a,o)}}),[t])}((0,e.useCallback)((()=>c.document),[c]),"keydown"),(0,yt.jsx)($c.Provider,{value:S,children:(0,yt.jsx)(Js.Provider,{value:C,children:l})})}Gc.Provider,Jc.displayName="Dropdown",Jc.Menu=Rc,Jc.Toggle=Uc,Jc.Item=Qc;const td=Jc,ed=e.createContext({});ed.displayName="DropdownContext";const rd=ed;var nd=void 0!==o.g&&o.g.navigator&&"ReactNative"===o.g.navigator.product;const od="undefined"!=typeof document||nd?e.useLayoutEffect:e.useEffect;new WeakMap;const ad=["onKeyDown"],id=e.forwardRef(((t,e)=>{let{onKeyDown:r}=t,n=function(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,ad);const[o]=oe(Object.assign({tagName:"a"},n)),a=Zs((t=>{o.onKeyDown(t),null==r||r(t)}));return(i=n.href)&&"#"!==i.trim()&&"button"!==n.role?(0,yt.jsx)("a",Object.assign({ref:e},n,{onKeyDown:r})):(0,yt.jsx)("a",Object.assign({ref:e},n,o,{onKeyDown:a}));var i}));id.displayName="Anchor";const sd=id,ld=e.forwardRef((({bsPrefix:t,className:e,eventKey:r,disabled:n=!1,onClick:o,active:a,as:i=sd,...s},l)=>{const c=Et(t,"dropdown-item"),[d,u]=qc({key:r,href:s.href,disabled:n,onClick:o,active:a});return(0,yt.jsx)(i,{...s,...d,ref:l,className:xt()(e,c,u.isActive&&"active",n&&"disabled")})}));ld.displayName="DropdownItem";const cd=ld;var dd=function(t){return t&&"function"!=typeof t?function(e){t.current=e}:t};const ud=function(t,r){return(0,e.useMemo)((function(){return function(t,e){var r=dd(t),n=dd(e);return function(t){r&&r(t),n&&n(t)}}(t,r)}),[t,r])},pd=e.createContext(null);pd.displayName="InputGroupContext";const fd=pd,md=e.createContext(null);md.displayName="NavbarContext";const hd=md;function bd(t,e){return t}function gd(t,e,r){let n=t?r?"bottom-start":"bottom-end":r?"bottom-end":"bottom-start";return"up"===e?n=t?r?"top-start":"top-end":r?"top-end":"top-start":"end"===e?n=t?r?"left-end":"right-end":r?"left-start":"right-start":"start"===e?n=t?r?"right-end":"left-end":r?"right-start":"left-start":"down-centered"===e?n="bottom":"up-centered"===e&&(n="top"),n}const vd=e.forwardRef((({bsPrefix:t,className:r,align:n,rootCloseEvent:o,flip:a,show:i,renderOnMount:s,as:l="div",popperConfig:c,variant:d,...u},p)=>{let f=!1;const m=(0,e.useContext)(hd),h=Et(t,"dropdown-menu"),{align:b,drop:g,isRTL:v}=(0,e.useContext)(rd);n=n||b;const x=(0,e.useContext)(fd),y=[];if(n)if("object"==typeof n){const t=Object.keys(n);if(t.length){const e=t[0],r=n[e];f="start"===r,y.push(`${h}-${e}-${r}`)}}else"end"===n&&(f=!0);const w=gd(f,g,v),[k,{hasShown:_,popper:E,show:S,toggle:C}]=zc({flip:a,rootCloseEvent:o,show:i,usePopper:!m&&0===y.length,offset:[0,2],popperConfig:c,placement:w});if(k.ref=ud(bd(p),k.ref),od((()=>{S&&(null==E||E.update())}),[S]),!_&&!s&&!x)return null;"string"!=typeof l&&(k.show=S,k.close=()=>null==C?void 0:C(!1),k.align=n);let M=u.style;return null!=E&&E.placement&&(M={...u.style,...k.style},u["x-placement"]=E.placement),(0,yt.jsx)(l,{...u,...k,style:M,...(y.length||m)&&{"data-bs-popper":"static"},className:xt()(r,h,S&&"show",f&&`${h}-end`,d&&`${h}-${d}`,...y)})}));vd.displayName="DropdownMenu",vd.defaultProps={flip:!0};const xd=vd,yd=e.forwardRef((({bsPrefix:t,split:r,className:n,childBsPrefix:o,as:a=le,...i},s)=>{const l=Et(t,"dropdown-toggle"),c=(0,e.useContext)(Js);void 0!==o&&(i.bsPrefix=o);const[d]=Fc();return d.ref=ud(d.ref,bd(s)),(0,yt.jsx)(a,{className:xt()(n,l,r&&`${l}-split`,(null==c?void 0:c.show)&&"show"),...d,...i})}));yd.displayName="DropdownToggle";const wd=yd,kd=At("dropdown-header",{defaultProps:{role:"heading"}}),_d=At("dropdown-divider",{Component:"hr",defaultProps:{role:"separator"}}),Ed=At("dropdown-item-text",{Component:"span"}),Sd=e.forwardRef(((t,r)=>{const{bsPrefix:n,drop:o,show:a,className:i,align:s,onSelect:l,onToggle:c,focusFirstItemOnShow:d,as:u="div",navbar:p,autoClose:f,...m}=function(t,e){return Object.keys(e).reduce((function(r,n){var o,a=r,i=a[Ks(n)],s=a[n],l=function(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(a,[Ks(n),n].map(Qs)),c=e[n],d=Gs(s,i,t[c]),u=d[0],p=d[1];return qs({},l,((o={})[n]=u,o[c]=p,o))}),t)}(t,{show:"onToggle"}),h=(0,e.useContext)(fd),b=Et(n,"dropdown"),g=function(){const{dir:t}=(0,e.useContext)(wt);return"rtl"===t}(),v=Zs(((t,e)=>{var r;e.originalEvent.currentTarget!==document||"keydown"===e.source&&"Escape"!==e.originalEvent.key||(e.source="rootClose"),r=e.source,(!1===f?"click"===r:"inside"===f?"rootClose"!==r:"outside"!==f||"select"!==r)&&(null==c||c(t,e))})),x=gd("end"===s,o,g),y=(0,e.useMemo)((()=>({align:s,drop:o,isRTL:g})),[s,o,g]),w={down:b,"down-centered":`${b}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return(0,yt.jsx)(rd.Provider,{value:y,children:(0,yt.jsx)(td,{placement:x,show:a,onSelect:l,onToggle:v,focusFirstItemOnShow:d,itemSelector:`.${b}-item:not(.disabled):not(:disabled)`,children:h?m.children:(0,yt.jsx)(u,{...m,ref:r,className:xt()(i,a&&"show",w[o])})})})}));Sd.displayName="Dropdown",Sd.defaultProps={navbar:!1,align:"start",autoClose:!0,drop:"down"};const Cd=Object.assign(Sd,{Toggle:wd,Menu:xd,Item:cd,ItemText:Ed,Divider:_d,Header:kd});var Md=o(697),Nd=o.n(Md);const Pd={type:Nd().string,tooltip:Nd().bool,as:Nd().elementType},Od=e.forwardRef((({as:t="div",className:e,type:r="valid",tooltip:n=!1,...o},a)=>(0,yt.jsx)(t,{...o,ref:a,className:xt()(e,`${r}-${n?"tooltip":"feedback"}`)})));Od.displayName="Feedback",Od.propTypes=Pd;const zd=Od,Td=e.createContext({}),Rd=e.forwardRef((({id:t,bsPrefix:r,className:n,type:o="checkbox",isValid:a=!1,isInvalid:i=!1,as:s="input",...l},c)=>{const{controlId:d}=(0,e.useContext)(Td);return r=Et(r,"form-check-input"),(0,yt.jsx)(s,{...l,ref:c,type:o,id:t||d,className:xt()(n,r,a&&"is-valid",i&&"is-invalid")})}));Rd.displayName="FormCheckInput";const Ld=Rd,Ad=e.forwardRef((({bsPrefix:t,className:r,htmlFor:n,...o},a)=>{const{controlId:i}=(0,e.useContext)(Td);return t=Et(t,"form-check-label"),(0,yt.jsx)("label",{...o,ref:a,htmlFor:n||i,className:xt()(r,t)})}));Ad.displayName="FormCheckLabel";const Dd=Ad,jd=e.forwardRef((({id:t,bsPrefix:r,bsSwitchPrefix:n,inline:o=!1,reverse:a=!1,disabled:i=!1,isValid:s=!1,isInvalid:l=!1,feedbackTooltip:c=!1,feedback:d,feedbackType:u,className:p,style:f,title:m="",type:h="checkbox",label:b,children:g,as:v="input",...x},y)=>{r=Et(r,"form-check"),n=Et(n,"form-switch");const{controlId:w}=(0,e.useContext)(Td),k=(0,e.useMemo)((()=>({controlId:t||w})),[w,t]),_=!g&&null!=b&&!1!==b||function(t,r){return e.Children.toArray(t).some((t=>e.isValidElement(t)&&t.type===r))}(g,Dd),E=(0,yt.jsx)(Ld,{...x,type:"switch"===h?"checkbox":h,ref:y,isValid:s,isInvalid:l,disabled:i,as:v});return(0,yt.jsx)(Td.Provider,{value:k,children:(0,yt.jsx)("div",{style:f,className:xt()(p,_&&r,o&&`${r}-inline`,a&&`${r}-reverse`,"switch"===h&&n),children:g||(0,yt.jsxs)(yt.Fragment,{children:[E,_&&(0,yt.jsx)(Dd,{title:m,children:b}),d&&(0,yt.jsx)(zd,{type:u,tooltip:c,children:d})]})})})}));jd.displayName="FormCheck";const Id=Object.assign(jd,{Input:Ld,Label:Dd}),Fd=e.forwardRef((({bsPrefix:t,type:r,size:n,htmlSize:o,id:a,className:i,isValid:s=!1,isInvalid:l=!1,plaintext:c,readOnly:d,as:u="input",...p},f)=>{const{controlId:m}=(0,e.useContext)(Td);let h;return t=Et(t,"form-control"),h=c?{[`${t}-plaintext`]:!0}:{[t]:!0,[`${t}-${n}`]:n},(0,yt.jsx)(u,{...p,type:r,size:o,ref:f,readOnly:d,id:a||m,className:xt()(i,h,s&&"is-valid",l&&"is-invalid","color"===r&&`${t}-color`)})}));Fd.displayName="FormControl";const Bd=Object.assign(Fd,{Feedback:zd}),Ud=At("form-floating"),Wd=e.forwardRef((({controlId:t,as:r="div",...n},o)=>{const a=(0,e.useMemo)((()=>({controlId:t})),[t]);return(0,yt.jsx)(Td.Provider,{value:a,children:(0,yt.jsx)(r,{...n,ref:o})})}));Wd.displayName="FormGroup";const $d=Wd,Vd=e.forwardRef((({as:t="label",bsPrefix:r,column:n,visuallyHidden:o,className:a,htmlFor:i,...s},l)=>{const{controlId:c}=(0,e.useContext)(Td);r=Et(r,"form-label");let d="col-form-label";"string"==typeof n&&(d=`${d} ${d}-${n}`);const u=xt()(a,r,o&&"visually-hidden",n&&d);return i=i||c,n?(0,yt.jsx)(Tt,{ref:l,as:"label",className:u,htmlFor:i,...s}):(0,yt.jsx)(t,{ref:l,className:u,htmlFor:i,...s})}));Vd.displayName="FormLabel",Vd.defaultProps={column:!1,visuallyHidden:!1};const Hd=Vd,Yd=e.forwardRef((({bsPrefix:t,className:r,id:n,...o},a)=>{const{controlId:i}=(0,e.useContext)(Td);return t=Et(t,"form-range"),(0,yt.jsx)("input",{...o,type:"range",ref:a,className:xt()(r,t),id:n||i})}));Yd.displayName="FormRange";const Xd=Yd,qd=e.forwardRef((({bsPrefix:t,size:r,htmlSize:n,className:o,isValid:a=!1,isInvalid:i=!1,id:s,...l},c)=>{const{controlId:d}=(0,e.useContext)(Td);return t=Et(t,"form-select"),(0,yt.jsx)("select",{...l,size:n,ref:c,className:xt()(o,t,r&&`${t}-${r}`,a&&"is-valid",i&&"is-invalid"),id:s||d})}));qd.displayName="FormSelect";const Kd=qd,Qd=e.forwardRef((({bsPrefix:t,className:e,as:r="small",muted:n,...o},a)=>(t=Et(t,"form-text"),(0,yt.jsx)(r,{...o,ref:a,className:xt()(e,t,n&&"text-muted")}))));Qd.displayName="FormText";const Gd=Qd,Zd=e.forwardRef(((t,e)=>(0,yt.jsx)(Id,{...t,ref:e,type:"switch"})));Zd.displayName="Switch";const Jd=Object.assign(Zd,{Input:Id.Input,Label:Id.Label}),tu=e.forwardRef((({bsPrefix:t,className:e,children:r,controlId:n,label:o,...a},i)=>(t=Et(t,"form-floating"),(0,yt.jsxs)($d,{ref:i,className:xt()(e,t),controlId:n,...a,children:[r,(0,yt.jsx)("label",{htmlFor:n,children:o})]}))));tu.displayName="FloatingLabel";const eu=tu,ru={_ref:Nd().any,validated:Nd().bool,as:Nd().elementType},nu=e.forwardRef((({className:t,validated:e,as:r="form",...n},o)=>(0,yt.jsx)(r,{...n,ref:o,className:xt()(t,e&&"was-validated")})));nu.displayName="Form",nu.propTypes=ru;const ou=Object.assign(nu,{Group:$d,Control:Bd,Floating:Ud,Check:Id,Switch:Jd,Label:Hd,Text:Gd,Range:Xd,Select:Kd,FloatingLabel:eu}),au=function(t){var r=t.filterOptions,n=t.filterSelection,o=t.setFilterSelection,a=t.max1year,i=void 0!==a&&a,l=t.coloredYears,c=void 0!==l&&l,d=s(e.useState(!0),2),u=d[0],p=d[1];if((0,e.useEffect)((function(){var t=function(){return p(window.innerWidth>=992)};return window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)}}),[]),i&&n.selectedYears.length>1){var f=Math.max.apply(Math,_e(n.selectedYears));o({selectedYears:[f],selectedNrens:_e(n.selectedNrens)})}var m=u?3:2,h=Math.ceil(r.availableNrens.length/m),b=Array.from(Array(m),(function(){return[]}));return r.availableNrens.sort().forEach((function(t,e){var r=Math.floor(e/h);b[r].push(t)})),e.createElement(e.Fragment,null,e.createElement(Tt,{xs:3},e.createElement(Cd,{autoClose:"outside",className:"m-3"},e.createElement(Cd.Toggle,{id:"nren-dropdown-toggle",variant:"compendium"},"Select NRENs "),e.createElement(Cd.Menu,{style:{borderRadius:0}},e.createElement("div",{className:"d-flex fit-max-content mt-4 mx-3"},b.map((function(t,r){return e.createElement("div",{key:r,className:"flex-fill"},t.map((function(t){return e.createElement("div",{className:"filter-dropdown-item flex-fill py-1 px-3",key:t.name,onClick:function(){return function(t){n.selectedNrens.includes(t)?o({selectedYears:_e(n.selectedYears),selectedNrens:n.selectedNrens.filter((function(e){return e!==t}))}):o({selectedYears:_e(n.selectedYears),selectedNrens:[].concat(_e(n.selectedNrens),[t])})}(t.name)}},e.createElement(ou.Check,{type:"checkbox"},e.createElement(ou.Check.Input,{readOnly:!0,type:"checkbox",checked:n.selectedNrens.includes(t.name),className:"nren-checkbox"}),e.createElement(ou.Check.Label,{className:"nren-checkbox-label"},t.name," ",e.createElement("span",{style:{fontWeight:"lighter"}},"(",t.country,")"))))})))}))),e.createElement("div",{className:"d-flex fit-max-content gap-2 mx-4 my-3"},e.createElement(le,{variant:"compendium",className:"flex-fill",onClick:function(){o({selectedYears:_e(n.selectedYears),selectedNrens:r.availableNrens.map((function(t){return t.name}))})}},"Select all NRENs"),e.createElement(le,{variant:"compendium",className:"flex-fill",onClick:function(){o({selectedYears:_e(n.selectedYears),selectedNrens:[]})}},"Unselect all NRENs"))))),e.createElement(Tt,null,e.createElement($e,{className:"d-flex justify-content-end gap-2 m-3"},r.availableYears.sort().map((function(t){return e.createElement(le,{variant:c?"compendium-year-"+t%9:"compendium-year",key:t,active:n.selectedYears.includes(t),onClick:function(){return function(t){n.selectedYears.includes(t)?o({selectedYears:n.selectedYears.filter((function(e){return e!==t})),selectedNrens:_e(n.selectedNrens)}):o({selectedYears:i?[t]:[].concat(_e(n.selectedYears),[t]),selectedNrens:_e(n.selectedNrens)})}(t)}},t)})))))},iu="label";function su(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function lu(t,e){t.labels=e}function cu(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:iu;const n=[];t.datasets=e.map((e=>{const o=t.datasets.find((t=>t[r]===e[r]));return o&&e.data&&!n.includes(o)?(n.push(o),Object.assign(o,e),o):{...e}}))}function du(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:iu;const r={labels:[],datasets:[]};return lu(r,t.labels),cu(r,t.datasets,e),r}function uu(t,r){const{height:n=150,width:o=300,redraw:a=!1,datasetIdKey:i,type:s,data:l,options:c,plugins:d=[],fallbackContent:u,updateMode:p,...f}=t,m=(0,e.useRef)(null),h=(0,e.useRef)(),b=()=>{m.current&&(h.current=new Yi(m.current,{type:s,data:du(l,i),options:c&&{...c},plugins:d}),su(r,h.current))},g=()=>{su(r,null),h.current&&(h.current.destroy(),h.current=null)};return(0,e.useEffect)((()=>{!a&&h.current&&c&&function(t,e){const r=t.options;r&&e&&Object.assign(r,e)}(h.current,c)}),[a,c]),(0,e.useEffect)((()=>{!a&&h.current&&lu(h.current.config.data,l.labels)}),[a,l.labels]),(0,e.useEffect)((()=>{!a&&h.current&&l.datasets&&cu(h.current.config.data,l.datasets,i)}),[a,l.datasets]),(0,e.useEffect)((()=>{h.current&&(a?(g(),setTimeout(b)):h.current.update(p))}),[a,c,l.labels,l.datasets,p]),(0,e.useEffect)((()=>{h.current&&(g(),setTimeout(b))}),[s]),(0,e.useEffect)((()=>(b(),()=>g())),[]),e.createElement("canvas",Object.assign({ref:m,role:"img",height:n,width:o},f),u)}const pu=(0,e.forwardRef)(uu);function fu(t,r){return Yi.register(r),(0,e.forwardRef)(((r,n)=>e.createElement(pu,Object.assign({},r,{ref:n,type:t}))))}const mu=fu("line",Pa),hu=fu("bar",Na);Yi.register(Ls,js,as,class extends di{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const r=this.options;if((r.tension||"monotone"===r.cubicInterpolationMode)&&!r.stepped&&!this._pointsUpdated){const n=r.spanGaps?this._loop:this._fullLoop;Ro(this._points,r,t,n,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const r=t.points,n=t.options.spanGaps,o=r.length;if(!o)return[];const a=!!t._loop,{start:i,end:s}=function(t,e,r,n){let o=0,a=e-1;if(r&&!n)for(;o<e&&!t[o].skip;)o++;for(;o<e&&t[o].skip;)o++;for(o%=e,r&&(a+=o);a>o&&t[a%e].skip;)a--;return a%=e,{start:o,end:a}}(r,o,a,n);return function(t,e,r,n){return n&&n.setContext&&r?function(t,e,r,n){const o=t._chart.getContext(),a=ta(t.options),{_datasetIndex:i,options:{spanGaps:s}}=t,l=r.length,c=[];let d=a,u=e[0].start,p=u;function f(t,e,n,o){const a=s?-1:1;if(t!==e){for(t+=l;r[t%l].skip;)t-=a;for(;r[e%l].skip;)e+=a;t%l!=e%l&&(c.push({start:t%l,end:e%l,loop:n,style:o}),d=o,u=e%l)}}for(const t of e){u=s?u:t.start;let e,a=r[u%l];for(p=u+1;p<=t.end;p++){const s=r[p%l];e=ta(n.setContext(mo(o,{type:"segment",p0:a,p1:s,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:i}))),ea(e,d)&&f(u,p-1,t.loop,d),a=s,d=e}u<p-1&&f(u,p-1,t.loop,d)}return c}(t,e,r,n):e}(t,!0===n?[{start:i,end:s,loop:a}]:function(t,e,r,n){const o=t.length,a=[];let i,s=e,l=t[e];for(i=e+1;i<=r;++i){const r=t[i%o];r.skip||r.stop?l.skip||(n=!1,a.push({start:e%o,end:(i-1)%o,loop:n}),e=s=r.stop?i:null):(s=i,l.skip&&(e=i)),l=r}return null!==s&&a.push({start:e%o,end:s%o,loop:n}),a}(r,i,s<i?s+o:s,!!t._fullLoop&&0===i&&s===o-1),r,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,r=t.length;return r&&e[t[r-1].end]}interpolate(t,e){const r=this.options,n=t[e],o=this.points,a=function(t,e){const r=[],n=t.segments;for(let o=0;o<n.length;o++){const a=Jo(n[o],t.points,e);a.length&&r.push(...a)}return r}(this,{property:e,start:n,end:n});if(!a.length)return;const i=[],s=function(t){return t.stepped?Yo:t.tension||"monotone"===t.cubicInterpolationMode?Xo:Ho}(r);let l,c;for(l=0,c=a.length;l<c;++l){const{start:c,end:d}=a[l],u=o[c],p=o[d];if(u===p){i.push(u);continue}const f=s(u,p,Math.abs((n-u[e])/(p[e]-u[e])),r.stepped);f[e]=t[e],i.push(f)}return 1===i.length?i[0]:i}pathSegment(t,e,r){return rs(this)(t,this,e,r)}path(t,e,r){const n=this.segments,o=rs(this);let a=this._loop;e=e||0,r=r||this.points.length-e;for(const i of n)a&=o(t,this,i,{start:e,end:e+r-1});return!!a}draw(t,e,r,n){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),function(t,e,r,n){ns&&!e.options.segment?function(t,e,r,n){let o=e._path;o||(o=e._path=new Path2D,e.path(o,r,n)&&o.closePath()),Gi(t,e.options),t.stroke(o)}(t,e,r,n):function(t,e,r,n){const{segments:o,options:a}=e,i=rs(e);for(const s of o)Gi(t,a,s.style),t.beginPath(),i(t,e,s,{start:r,end:r+n-1})&&t.closePath(),t.stroke()}(t,e,r,n)}(t,this,r,n),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}},gs,Ts,hs);var bu={responsive:!0,animation:{duration:0},plugins:{legend:{position:"top",onClick:function(){}},title:{display:!0,text:""}}};const gu=function(t){var r=t.data;return e.createElement(mu,{data:r,options:bu})},vu=function(t){var r,n,o,a,i,l=t.filterSelection,c=t.setFilterSelection,d=s((0,e.useState)([]),2),u=d[0],p=d[1],f=(0,e.useMemo)((function(){return Se(u)}),[u]).nrens,m=(r=u,n=_e(new Set(r.map((function(t){return t.year})))).sort(),o=_e(new Set(r.map((function(t){return t.nren})))).sort(),a=function(t){var e=new Map;return t.forEach((function(t){var r="".concat(t.nren,"/").concat(t.year);e.set(r,Number(t.budget))})),e}(r),i=o.map((function(t){var e=function(t){for(var e=0,r=0;r<t.length;r++)e=t.charCodeAt(r)+((e<<5)-e);for(var n="#",o=0;o<3;o++){var a="00"+(e>>8*o&255).toString(16);n+=a.substring(a.length-2)}return n}(t);return{backgroundColor:e,borderColor:e,data:n.map((function(e){var r;return null!==(r=a.get("".concat(t,"/").concat(e)))&&void 0!==r?r:null})),label:t,hidden:!1}})),{datasets:i,labels:n.map((function(t){return t.toString()}))});m.datasets.forEach((function(t){t.hidden=!l.selectedNrens.includes(t.label)})),(0,e.useEffect)((function(){!function(t,e,r){Ne.apply(this,arguments)}("/api/budget/",p,c)}),[c]);var h=e.createElement(au,{filterOptions:{availableYears:[],availableNrens:_e(f.values())},filterSelection:l,setFilterSelection:c});return e.createElement(Bs,{title:"Budget of NRENs per Year",description:"The graph shows the NRENs budget capita (in Million €) per year . On hovering over the graphs data points will give NRENs budget share in that year. This graph can be used to compare, selecting multiple NRENs to see the fluctuation of budget over years and with other NRENs.",category:Ve.Organisation,filter:h},e.createElement(e.Fragment,null,e.createElement(Ot,null,e.createElement(gu,{data:m}))))},xu=function(t){var r=t.title,n=t.children,o=t.startCollapsed,a=s((0,e.useState)(!!o),2),i=a[0],l=a[1];return e.createElement("div",{className:"collapsible-box p-0"},e.createElement(Ot,null,e.createElement(Tt,null,e.createElement("h1",{className:"bold-caps-16pt dark-teal pt-3 ps-3"},r)),e.createElement(Tt,{className:"flex-grow-0 flex-shrink-0"},e.createElement("div",{className:"toggle-btn p-2",onClick:function(){return l(!i)}},i?e.createElement(je,{style:{color:"white",paddingBottom:"3px",marginTop:"3px",marginLeft:"3px",scale:"1.3"}}):e.createElement(De,{style:{color:"white",paddingBottom:"3px",marginTop:"3px",marginLeft:"3px",scale:"1.3"}})))),!i&&e.createElement("div",{className:"collapsible-content"},n))},yu=function(t){var r=t.children,n=t.type,o="";return"data"==n?o+=" compendium-data-banner":"reports"==n&&(o=" compendium-reports-banner"),e.createElement("div",{className:o},e.createElement(Nt,null,e.createElement(Ot,null,e.createElement(Ot,null,e.createElement("div",{className:"section-container"},e.createElement("img",{src:te,style:{maxWidth:"7rem",marginBottom:"1rem"}}),e.createElement("div",{style:{display:"flex",alignSelf:"right"}},e.createElement("div",{className:"center-text",style:{paddingTop:"1rem"}},r)))))))},wu=function(){return e.createElement("main",{className:"grow"},e.createElement(Ue,{type:"data"}),e.createElement(yu,{type:"data"},e.createElement("p",{className:"wordwrap"},"The GÉANT Compendium provides an authoritative reference source for anyone with an interest in the development of research and education networking in Europe and beyond. Published since 2001, the Compendium provides information on key areas such as users, services, traffic, budget and staffing.")),e.createElement(Nt,{className:"pt-5"},e.createElement(Ot,null,e.createElement("div",{className:"center"},e.createElement(xu,{title:Ve.Organisation},e.createElement("div",{className:"collapsible-column"},e.createElement(Ot,null,e.createElement(ht,{to:"/budget",className:"link-text-underline"},e.createElement("span",null,"Budget of NRENs per Year"))),e.createElement(Ot,null,e.createElement(ht,{to:"/funding",className:"link-text-underline"},e.createElement("span",null,"Income Source of NRENs per Year"))),e.createElement(Ot,null,e.createElement(ht,{to:"/charging",className:"link-text-underline"},e.createElement("span",null,"Charging Mechanism of NRENs per Year"))),e.createElement(Ot,null,e.createElement(ht,{to:"/data/roles",className:"link-text-underline"},e.createElement("span",null,"Roles of NREN employees"))),e.createElement(Ot,null,e.createElement(ht,{to:"/data/employment",className:"link-text-underline"},e.createElement("span",null,"Types of employment for NRENs"))),e.createElement(Ot,null,e.createElement(ht,{to:"/suborganisations",className:"link-text-underline"},e.createElement("span",null,"NREN Suborganisations"))),e.createElement(Ot,null,e.createElement(ht,{to:"/parentorganisation",className:"link-text-underline"},e.createElement("span",null,"NREN Parent Organisations"))),e.createElement(Ot,null,e.createElement(ht,{to:"/ec-projects",className:"link-text-underline"},e.createElement("span",null,"NREN Involvement in European Commission Projects"))))),e.createElement(xu,{title:Ve.Policy,startCollapsed:!0},e.createElement("div",{className:"collapsible-column"},e.createElement(Ot,null,e.createElement(ht,{to:"/policy",className:"link-text-underline"},e.createElement("span",null,"NREN Policies"))))),e.createElement(xu,{title:Ve.ConnectedUsers,startCollapsed:!0},e.createElement("div",{className:"collapsible-column"},e.createElement("h5",null,"Coming Soon"))),e.createElement(xu,{title:Ve.Network,startCollapsed:!0},e.createElement("div",{className:"collapsible-column"},e.createElement("h5",null,"Coming Soon"))),e.createElement(xu,{title:Ve.Services,startCollapsed:!0},e.createElement("div",{className:"collapsible-column"},e.createElement("h5",null,"Coming Soon")))))))};var ku=function(){if("undefined"!=typeof window){if(window.devicePixelRatio)return window.devicePixelRatio;var t=window.screen;if(t)return(t.deviceXDPI||1)/(t.logicalXDPI||1)}return 1}(),_u=function(t,e,r){var n,o=[].concat(e),a=o.length,i=t.font,s=0;for(t.font=r.string,n=0;n<a;++n)s=Math.max(t.measureText(o[n]).width,s);return t.font=i,{height:a*r.lineHeight,width:s}};function Eu(t,e){var r=e.x,n=e.y;if(null===r)return{x:0,y:-1};if(null===n)return{x:1,y:0};var o=t.x-r,a=t.y-n,i=Math.sqrt(o*o+a*a);return{x:i?o/i:0,y:i?a/i:-1}}function Su(t,e,r){var n=0;return t<r.left?n|=1:t>r.right&&(n|=2),e<r.top?n|=8:e>r.bottom&&(n|=4),n}function Cu(t,e){var r,n,o=e.anchor,a=t;return e.clamp&&(a=function(t,e){for(var r,n,o,a=t.x0,i=t.y0,s=t.x1,l=t.y1,c=Su(a,i,e),d=Su(s,l,e);c|d&&!(c&d);)8&(r=c||d)?(n=a+(s-a)*(e.top-i)/(l-i),o=e.top):4&r?(n=a+(s-a)*(e.bottom-i)/(l-i),o=e.bottom):2&r?(o=i+(l-i)*(e.right-a)/(s-a),n=e.right):1&r&&(o=i+(l-i)*(e.left-a)/(s-a),n=e.left),r===c?c=Su(a=n,i=o,e):d=Su(s=n,l=o,e);return{x0:a,x1:s,y0:i,y1:l}}(a,e.area)),"start"===o?(r=a.x0,n=a.y0):"end"===o?(r=a.x1,n=a.y1):(r=(a.x0+a.x1)/2,n=(a.y0+a.y1)/2),function(t,e,r,n,o){switch(o){case"center":r=n=0;break;case"bottom":r=0,n=1;break;case"right":r=1,n=0;break;case"left":r=-1,n=0;break;case"top":r=0,n=-1;break;case"start":r=-r,n=-n;break;case"end":break;default:o*=Math.PI/180,r=Math.cos(o),n=Math.sin(o)}return{x:t,y:e,vx:r,vy:n}}(r,n,t.vx,t.vy,e.align)}var Mu=function(t,e){var r=(t.startAngle+t.endAngle)/2,n=Math.cos(r),o=Math.sin(r),a=t.innerRadius,i=t.outerRadius;return Cu({x0:t.x+n*a,y0:t.y+o*a,x1:t.x+n*i,y1:t.y+o*i,vx:n,vy:o},e)},Nu=function(t,e){var r=Eu(t,e.origin),n=r.x*t.options.radius,o=r.y*t.options.radius;return Cu({x0:t.x-n,y0:t.y-o,x1:t.x+n,y1:t.y+o,vx:r.x,vy:r.y},e)},Pu=function(t,e){var r=Eu(t,e.origin),n=t.x,o=t.y,a=0,i=0;return t.horizontal?(n=Math.min(t.x,t.base),a=Math.abs(t.base-t.x)):(o=Math.min(t.y,t.base),i=Math.abs(t.base-t.y)),Cu({x0:n,y0:o+i,x1:n+a,y1:o,vx:r.x,vy:r.y},e)},Ou=function(t,e){var r=Eu(t,e.origin);return Cu({x0:t.x,y0:t.y,x1:t.x+(t.width||0),y1:t.y+(t.height||0),vx:r.x,vy:r.y},e)},zu=function(t){return Math.round(t*ku)/ku};function Tu(t,e){var r=e.chart.getDatasetMeta(e.datasetIndex).vScale;if(!r)return null;if(void 0!==r.xCenter&&void 0!==r.yCenter)return{x:r.xCenter,y:r.yCenter};var n=r.getBasePixel();return t.horizontal?{x:n,y:null}:{x:null,y:n}}function Ru(t,e,r){var n=t.shadowBlur,o=r.stroked,a=zu(r.x),i=zu(r.y),s=zu(r.w);o&&t.strokeText(e,a,i,s),r.filled&&(n&&o&&(t.shadowBlur=0),t.fillText(e,a,i,s),n&&o&&(t.shadowBlur=n))}var Lu=function(t,e,r,n){var o=this;o._config=t,o._index=n,o._model=null,o._rects=null,o._ctx=e,o._el=r};jr(Lu.prototype,{_modelize:function(t,e,r,n){var o,a=this,i=a._index,s=po(fo([r.font,{}],n,i)),l=fo([r.color,$n.color],n,i);return{align:fo([r.align,"center"],n,i),anchor:fo([r.anchor,"center"],n,i),area:n.chart.chartArea,backgroundColor:fo([r.backgroundColor,null],n,i),borderColor:fo([r.borderColor,null],n,i),borderRadius:fo([r.borderRadius,0],n,i),borderWidth:fo([r.borderWidth,0],n,i),clamp:fo([r.clamp,!1],n,i),clip:fo([r.clip,!1],n,i),color:l,display:t,font:s,lines:e,offset:fo([r.offset,4],n,i),opacity:fo([r.opacity,1],n,i),origin:Tu(a._el,n),padding:uo(fo([r.padding,4],n,i)),positioner:(o=a._el,o instanceof Qi?Mu:o instanceof as?Nu:o instanceof us?Pu:Ou),rotation:fo([r.rotation,0],n,i)*(Math.PI/180),size:_u(a._ctx,e,s),textAlign:fo([r.textAlign,"start"],n,i),textShadowBlur:fo([r.textShadowBlur,0],n,i),textShadowColor:fo([r.textShadowColor,l],n,i),textStrokeColor:fo([r.textStrokeColor,l],n,i),textStrokeWidth:fo([r.textStrokeWidth,0],n,i)}},update:function(t){var e,r,n,o=this,a=null,i=null,s=o._index,l=o._config,c=fo([l.display,!0],t,s);c&&(e=t.dataset.data[s],(n=Sr(r=Or(zr(l.formatter,[e,t]),e))?[]:function(t){var e,r=[];for(t=[].concat(t);t.length;)"string"==typeof(e=t.pop())?r.unshift.apply(r,e.split("\n")):Array.isArray(e)?t.push.apply(t,e):Sr(t)||r.unshift(""+e);return r}(r)).length&&(i=function(t){var e=t.borderWidth||0,r=t.padding,n=t.size.height,o=t.size.width,a=-o/2,i=-n/2;return{frame:{x:a-r.left-e,y:i-r.top-e,w:o+r.width+2*e,h:n+r.height+2*e},text:{x:a,y:i,w:o,h:n}}}(a=o._modelize(c,n,l,t)))),o._model=a,o._rects=i},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(t,e){var r,n,o,a,i=t.ctx,s=this._model,l=this._rects;this.visible()&&(i.save(),s.clip&&(r=s.area,i.beginPath(),i.rect(r.left,r.top,r.right-r.left,r.bottom-r.top),i.clip()),i.globalAlpha=(n=0,o=s.opacity,a=1,Math.max(n,Math.min(o,a))),i.translate(zu(e.x),zu(e.y)),i.rotate(s.rotation),function(t,e,r){var n=r.backgroundColor,o=r.borderColor,a=r.borderWidth;(n||o&&a)&&(t.beginPath(),function(t,e,r,n,o,a){var i=Math.PI/2;if(a){var s=Math.min(a,o/2,n/2),l=e+s,c=r+s,d=e+n-s,u=r+o-s;t.moveTo(e,c),l<d&&c<u?(t.arc(l,c,s,-Math.PI,-i),t.arc(d,c,s,-i,0),t.arc(d,u,s,0,i),t.arc(l,u,s,i,Math.PI)):l<d?(t.moveTo(l,r),t.arc(d,c,s,-i,i),t.arc(l,c,s,i,Math.PI+i)):c<u?(t.arc(l,c,s,-Math.PI,0),t.arc(l,u,s,0,Math.PI)):t.arc(l,c,s,-Math.PI,Math.PI),t.closePath(),t.moveTo(e,r)}else t.rect(e,r,n,o)}(t,zu(e.x)+a/2,zu(e.y)+a/2,zu(e.w)-a,zu(e.h)-a,r.borderRadius),t.closePath(),n&&(t.fillStyle=n,t.fill()),o&&a&&(t.strokeStyle=o,t.lineWidth=a,t.lineJoin="miter",t.stroke()))}(i,l.frame,s),function(t,e,r,n){var o,a=n.textAlign,i=n.color,s=!!i,l=n.font,c=e.length,d=n.textStrokeColor,u=n.textStrokeWidth,p=d&&u;if(c&&(s||p))for(r=function(t,e,r){var n=r.lineHeight,o=t.w,a=t.x;return"center"===e?a+=o/2:"end"!==e&&"right"!==e||(a+=o),{h:n,w:o,x:a,y:t.y+n/2}}(r,a,l),t.font=l.string,t.textAlign=a,t.textBaseline="middle",t.shadowBlur=n.textShadowBlur,t.shadowColor=n.textShadowColor,s&&(t.fillStyle=i),p&&(t.lineJoin="round",t.lineWidth=u,t.strokeStyle=d),o=0,c=e.length;o<c;++o)Ru(t,e[o],{stroked:p,filled:s,w:r.w,x:r.x,y:r.y+r.h*o})}(i,s.lines,l.text,s),i.restore())}});var Au=Number.MIN_SAFE_INTEGER||-9007199254740991,Du=Number.MAX_SAFE_INTEGER||9007199254740991;function ju(t,e,r){var n=Math.cos(r),o=Math.sin(r),a=e.x,i=e.y;return{x:a+n*(t.x-a)-o*(t.y-i),y:i+o*(t.x-a)+n*(t.y-i)}}function Iu(t,e){var r,n,o,a,i,s=Du,l=Au,c=e.origin;for(r=0;r<t.length;++r)o=(n=t[r]).x-c.x,a=n.y-c.y,i=e.vx*o+e.vy*a,s=Math.min(s,i),l=Math.max(l,i);return{min:s,max:l}}function Fu(t,e){var r=e.x-t.x,n=e.y-t.y,o=Math.sqrt(r*r+n*n);return{vx:(e.x-t.x)/o,vy:(e.y-t.y)/o,origin:t,ln:o}}var Bu=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};function Uu(t,e,r){var n=e.positioner(t,e),o=n.vx,a=n.vy;if(!o&&!a)return{x:n.x,y:n.y};var i=r.w,s=r.h,l=e.rotation,c=Math.abs(i/2*Math.cos(l))+Math.abs(s/2*Math.sin(l)),d=Math.abs(i/2*Math.sin(l))+Math.abs(s/2*Math.cos(l)),u=1/Math.max(Math.abs(o),Math.abs(a));return c*=o*u,d*=a*u,c+=e.offset*o,d+=e.offset*a,{x:n.x+c,y:n.y+d}}jr(Bu.prototype,{center:function(){var t=this._rect;return{x:t.x+t.w/2,y:t.y+t.h/2}},update:function(t,e,r){this._rotation=r,this._rect={x:e.x+t.x,y:e.y+t.y,w:e.w,h:e.h}},contains:function(t){var e=this,r=e._rect;return!((t=ju(t,e.center(),-e._rotation)).x<r.x-1||t.y<r.y-1||t.x>r.x+r.w+2||t.y>r.y+r.h+2)},intersects:function(t){var e,r,n,o=this._points(),a=t._points(),i=[Fu(o[0],o[1]),Fu(o[0],o[3])];for(this._rotation!==t._rotation&&i.push(Fu(a[0],a[1]),Fu(a[0],a[3])),e=0;e<i.length;++e)if(r=Iu(o,i[e]),n=Iu(a,i[e]),r.max<n.min||n.max<r.min)return!1;return!0},_points:function(){var t=this,e=t._rect,r=t._rotation,n=t.center();return[ju({x:e.x,y:e.y},n,r),ju({x:e.x+e.w,y:e.y},n,r),ju({x:e.x+e.w,y:e.y+e.h},n,r),ju({x:e.x,y:e.y+e.h},n,r)]}});var Wu={prepare:function(t){var e,r,n,o,a,i=[];for(e=0,n=t.length;e<n;++e)for(r=0,o=t[e].length;r<o;++r)a=t[e][r],i.push(a),a.$layout={_box:new Bu,_hidable:!1,_visible:!0,_set:e,_idx:a._index};return i.sort((function(t,e){var r=t.$layout,n=e.$layout;return r._idx===n._idx?n._set-r._set:n._idx-r._idx})),this.update(i),i},update:function(t){var e,r,n,o,a,i=!1;for(e=0,r=t.length;e<r;++e)o=(n=t[e]).model(),(a=n.$layout)._hidable=o&&"auto"===o.display,a._visible=n.visible(),i|=a._hidable;i&&function(t){var e,r,n,o,a,i,s;for(e=0,r=t.length;e<r;++e)(o=(n=t[e]).$layout)._visible&&(s=new Proxy(n._el,{get:(t,e)=>t.getProps([e],!0)[e]}),a=n.geometry(),i=Uu(s,n.model(),a),o._box.update(i,a,n.rotation()));!function(t,e){var r,n,o,a;for(r=t.length-1;r>=0;--r)for(o=t[r].$layout,n=r-1;n>=0&&o._visible;--n)(a=t[n].$layout)._visible&&o._box.intersects(a._box)&&e(o,a)}(t,(function(t,e){var r=t._hidable,n=e._hidable;r&&n||n?e._visible=!1:r&&(t._visible=!1)}))}(t)},lookup:function(t,e){var r,n;for(r=t.length-1;r>=0;--r)if((n=t[r].$layout)&&n._visible&&n._box.contains(e))return t[r];return null},draw:function(t,e){var r,n,o,a,i,s;for(r=0,n=e.length;r<n;++r)(a=(o=e[r]).$layout)._visible&&(i=o.geometry(),s=Uu(o._el,o.model(),i),a._box.update(s,i,o.rotation()),o.draw(t,s))}},$u="$default";function Vu(t,e,r,n){if(e){var o,a=r.$context,i=r.$groups;e[i._set]&&(o=e[i._set][i._key])&&!0===zr(o,[a,n])&&(t.$datalabels._dirty=!0,r.update(a))}}var Hu={id:"datalabels",defaults:{align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:function(t){if(Sr(t))return null;var e,r,n,o=t;if(Mr(t))if(Sr(t.label))if(Sr(t.r))for(o="",n=0,r=(e=Object.keys(t)).length;n<r;++n)o+=(0!==n?", ":"")+e[n]+": "+t[e[n]];else o=t.r;else o=t.label;return""+o},labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},beforeInit:function(t){t.$datalabels={_actives:[]}},beforeUpdate:function(t){var e=t.$datalabels;e._listened=!1,e._listeners={},e._datasets=[],e._labels=[]},afterDatasetUpdate:function(t,e,r){var n,o,a,i,s,l,c,d,u=e.index,p=t.$datalabels,f=p._datasets[u]=[],m=t.isDatasetVisible(u),h=t.data.datasets[u],b=function(t,e){var r,n,o,a=t.datalabels,i=[];return!1===a?null:(!0===a&&(a={}),e=jr({},[e,a]),n=e.labels||{},o=Object.keys(n),delete e.labels,o.length?o.forEach((function(t){n[t]&&i.push(jr({},[e,n[t],{_key:t}]))})):i.push(e),r=i.reduce((function(t,e){return Tr(e.listeners||{},(function(r,n){t[n]=t[n]||{},t[n][e._key||$u]=r})),delete e.listeners,t}),{}),{labels:i,listeners:r})}(h,r),g=e.meta.data||[],v=t.ctx;for(v.save(),n=0,a=g.length;n<a;++n)if((c=g[n]).$datalabels=[],m&&c&&t.getDataVisibility(n)&&!c.skip)for(o=0,i=b.labels.length;o<i;++o)l=(s=b.labels[o])._key,(d=new Lu(s,v,c,n)).$groups={_set:u,_key:l||$u},d.$context={active:!1,chart:t,dataIndex:n,dataset:h,datasetIndex:u},d.update(d.$context),c.$datalabels.push(d),f.push(d);v.restore(),jr(p._listeners,b.listeners,{merger:function(t,r,n){r[t]=r[t]||{},r[t][e.index]=n[t],p._listened=!0}})},afterUpdate:function(t){t.$datalabels._labels=Wu.prepare(t.$datalabels._datasets)},afterDatasetsDraw:function(t){Wu.draw(t,t.$datalabels._labels)},beforeEvent:function(t,e){if(t.$datalabels._listened){var r=e.event;switch(r.type){case"mousemove":case"mouseout":!function(t,e){var r,n,o=t.$datalabels,a=o._listeners;if(a.enter||a.leave){if("mousemove"===e.type)n=Wu.lookup(o._labels,e);else if("mouseout"!==e.type)return;r=o._hovered,o._hovered=n,function(t,e,r,n,o){var a,i;(r||n)&&(r?n?r!==n&&(i=a=!0):i=!0:a=!0,i&&Vu(t,e.leave,r,o),a&&Vu(t,e.enter,n,o))}(t,a,r,n,e)}}(t,r);break;case"click":!function(t,e){var r=t.$datalabels,n=r._listeners.click,o=n&&Wu.lookup(r._labels,e);o&&Vu(t,n,o,e)}(t,r)}}},afterEvent:function(t){var e,r,n,o,a,i,s,l=t.$datalabels,c=function(t,e){var r,n,o,a,i=t.slice(),s=[];for(r=0,o=e.length;r<o;++r)a=e[r],-1===(n=i.indexOf(a))?s.push([a,1]):i.splice(n,1);for(r=0,o=i.length;r<o;++r)s.push([i[r],-1]);return s}(l._actives,l._actives=t.getActiveElements());for(e=0,r=c.length;e<r;++e)if((a=c[e])[1])for(n=0,o=(s=a[0].element.$datalabels||[]).length;n<o;++n)(i=s[n]).$context.active=1===a[1],i.update(i.$context);(l._dirty||c.length)&&(Wu.update(l._labels),t.render()),delete l._dirty}};const Yu=function(t){var r=t.index,n=t.active,o=void 0===n||n;return e.createElement("div",{className:"d-inline-block m-2",key:r},o?e.createElement("div",{className:"color-of-badge-".concat(r%5),style:{width:"20px",height:"35px",margin:"2px"}}):e.createElement("div",{className:"color-of-badge-blank",style:{width:"15px",height:"30px",margin:"2px"}}))};var Xu={maintainAspectRatio:!1,layout:{padding:{right:60}},animation:{duration:0},plugins:{legend:{display:!1}},scales:{x:{position:"top",ticks:{callback:function(t){return"number"==typeof t?"".concat(t,"%"):t}}},xBottom:{ticks:{callback:function(t){return"number"==typeof t?"".concat(t,"%"):t}},grid:{drawOnChartArea:!1},afterDataLimits:function(t){for(var e=-999999,r=999999,n=0,o=Object.keys(Yi.instances);n<o.length;n++){var a=o[n];Yi.instances[a]&&t.chart.scales.xBottom&&(r=Math.min(Yi.instances[a].scales.x.min,r),e=Math.max(Yi.instances[a].scales.x.max,e))}t.chart.scales.xBottom.options.min=r,t.chart.scales.xBottom.options.max=e,t.chart.scales.xBottom.min=r,t.chart.scales.xBottom.max=e}},y:{ticks:{autoSkip:!1}}},indexAxis:"y"};function qu(){return e.createElement("div",{className:"d-flex justify-content-center bold-grey-12pt"},e.createElement(Ot,{xs:"auto",className:"border rounded-3 border-1 my-5 justify-content-center"},e.createElement(Tt,{className:"d-flex align-items-center"},e.createElement(Yu,{key:0,index:0}),"Client Institutions"),e.createElement(Tt,{className:"d-flex align-items-center"},e.createElement(Yu,{key:1,index:1}),"Commercial"),e.createElement(Tt,{className:"d-flex align-items-center"},e.createElement(Yu,{key:2,index:2}),"European Funding"),e.createElement(Tt,{className:"d-flex align-items-center"},e.createElement(Yu,{key:3,index:3}),"Gov/Public Bodies"),e.createElement(Tt,{className:"d-flex align-items-center"},e.createElement(Yu,{key:4,index:4}),"Other")))}const Ku=function(t){var r=t.filterSelection,n=t.setFilterSelection,o=s((0,e.useState)([]),2),a=o[0],i=o[1],l=(0,e.useMemo)((function(){return Se(a)}),[a]),c=l.years,d=l.nrens,u=function(t){var e=t,r=function(t){var e=new Map;return t.forEach((function(t){var r="".concat(t.nren,"/").concat(t.year),n=e.get(r);n||(n=new Map),n.set("CLIENT INSTITUTIONS",t.client_institutions),n.set("COMMERCIAL",t.commercial),n.set("EUROPEAN FUNDING",t.european_funding),n.set("GOV/PUBLIC_BODIES",t.gov_public_bodies),n.set("OTHER",t.other),e.set(r,n)})),e}(e),n=_e(new Set(e.map((function(t){return t.year})))),o=_e(new Set(e.map((function(t){return t.nren})))),a=["CLIENT INSTITUTIONS","COMMERCIAL","EUROPEAN FUNDING","GOV/PUBLIC_BODIES","OTHER"],i=(0,Ee.gr)(a,n),l=function(){var t=function(t,e,r){return"#"+[t,e,r].map((function(t){var e=t.toString(16);return 1===e.length?"0"+e:e})).join("")},e=new Map;return e.set("CLIENT INSTITUTIONS",t(157,40,114)),e.set("COMMERCIAL",t(241,224,79)),e.set("EUROPEAN FUNDING",t(219,42,76)),e.set("GOV/PUBLIC_BODIES",t(237,141,24)),e.set("OTHER",t(137,166,121)),e}(),c=i.map((function(t){var e=s(t,2),n=e[0],i=e[1];return{backgroundColor:l.get(n),label:n+"("+i+")",data:o.map((function(t){var e,o="".concat(t,"/").concat(i),a=r.get(o);return a&&null!==(e=a.get(n))&&void 0!==e?e:0})),stack:i,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:n==a[0],color:"grey",formatter:function(t,e){return e.dataset.stack},anchor:"start",align:"end",offset:function(t){return t.chart.chartArea.width}}}}));return{datasets:c,labels:o.map((function(t){return t.toString()}))}}(a);u.datasets.forEach((function(t){t.hidden=!r.selectedYears.includes(parseInt(t.stack))})),u.datasets.forEach((function(t){t.data=t.data.filter((function(t,e){return r.selectedNrens.includes(u.labels[e])}))})),u.labels=u.labels.filter((function(t){return r.selectedNrens.includes(t)})),(0,e.useEffect)((function(){Ce("/api/funding/",i,n)}),[n]);var p=e.createElement(au,{filterOptions:{availableYears:_e(c),availableNrens:_e(d.values())},filterSelection:r,setFilterSelection:n}),f=r.selectedNrens.length*r.selectedYears.length*2+5;return e.createElement(Bs,{title:"Income Source Of NRENs per Year",description:"The graph shows the percentage share of their income that individual NRENs derived from different sources. On hovering over the graphs will give income share in that year. This can be used to compare selecting multiple years to see how the share has changed between the years.",category:Ve.Organisation,filter:p},e.createElement("div",null,e.createElement(qu,null),e.createElement("div",{className:"chart-container",style:{height:"".concat(f,"rem")}},e.createElement(hu,{plugins:[Hu],data:u,options:Xu})),e.createElement(qu,null)))},Qu=e.forwardRef((({bsPrefix:t,className:e,striped:r,bordered:n,borderless:o,hover:a,size:i,variant:s,responsive:l,...c},d)=>{const u=Et(t,"table"),p=xt()(e,u,s&&`${u}-${s}`,i&&`${u}-${i}`,r&&`${u}-${"string"==typeof r?`striped-${r}`:"striped"}`,n&&`${u}-bordered`,o&&`${u}-borderless`,a&&`${u}-hover`),f=(0,yt.jsx)("table",{...c,className:p,ref:d});if(l){let t=`${u}-responsive`;return"string"==typeof l&&(t=`${t}-${l}`),(0,yt.jsx)("div",{className:t,children:f})}return f})),Gu=function(t){var r=t.year,n=t.active;return e.createElement("div",{className:"d-inline-block",key:r},n?e.createElement("div",{className:"rounded-pill color-of-the-year-".concat(r%9),style:{width:"75px",height:"30px",margin:"2px"}}):e.createElement("div",{className:"rounded-pill color-of-the-year-blank",style:{width:"75px",height:"30px",margin:"2px"}}))};Yi.register(Ls,js,us,gs,Ts,hs);const Zu=function(t){var r=t.filterSelection,n=t.setFilterSelection,o=s((0,e.useState)([]),2),a=o[0],i=o[1],l=(0,e.useMemo)((function(){return Se(a)}),[a]),c=l.years,d=l.nrens,u=function(t){var e=new Map;return t.forEach((function(t){var r=e.get(t.nren);r||(r=new Map),r.set(t.year,t.fee_type||""),e.set(t.nren,r)})),e}(a.filter((function(t){return r.selectedYears.includes(t.year)&&r.selectedNrens.includes(t.nren)})));e.useEffect((function(){Ce("/api/charging/",i,n)}),[n]);var p=e.createElement(au,{filterOptions:{availableYears:_e(c),availableNrens:_e(d.values())},filterSelection:r,setFilterSelection:n,coloredYears:!0});return e.createElement(Bs,{title:"Charging Mechanism of NRENs per Year",description:"The charging structure is the way in which NRENs charge their customers for the services they provide. The charging structure can be based on a flat fee, usage based fee, a combination of both, or no direct charge. By selecting multiple years and NRENs, the table can be used to compare the charging structure of NRENs.",category:Ve.Organisation,filter:p},e.createElement(Qu,{className:"charging-struct-table",striped:!0,bordered:!0,responsive:!0},e.createElement("colgroup",null,e.createElement("col",{span:1,style:{width:"10%"}}),e.createElement("col",{span:1,style:{width:"18%"}}),e.createElement("col",{span:1,style:{width:"18%"}}),e.createElement("col",{span:1,style:{width:"18%"}}),e.createElement("col",{span:1,style:{width:"18%"}}),e.createElement("col",{span:1,style:{width:"18%"}})),e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null),e.createElement("th",null,"Flat fee based on bandwidth"),e.createElement("th",null,"Usage based fee"),e.createElement("th",null,"Combination flat fee & usage basedfee "),e.createElement("th",null,"No Direct Charge"),e.createElement("th",null,"Other"))),e.createElement("tbody",null,Array.from(u.entries()).map((function(t){var r=s(t,2),n=r[0],o=r[1];return e.createElement("tr",{key:n},e.createElement("td",null,n),["flat_fee","usage_based_fee","combination","no_charge","other"].map((function(t){return e.createElement("td",{key:t},Array.from(o.entries()).map((function(r){var n=s(r,2),o=n[0],a=n[1];return e.createElement(Gu,{key:o,year:o,active:a==t})})))})))})))))},Ju=function(t){var r=t.children,n=t.location;n||(n="both");var o="top"===n||"both"===n,a="bottom"===n||"both"===n;return e.createElement(e.Fragment,null,o&&e.createElement("div",{style:{paddingLeft:"33%",paddingTop:"2.5rem",paddingBottom:"1.5rem"},id:"legendtop"}),r,a&&e.createElement("div",{style:{paddingLeft:"33%",paddingTop:"1.5rem"},id:"legendbottom"}))};function tp(t){return tp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tp(t)}function ep(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var rp={id:"htmlLegend",afterUpdate:function(t,e,r){var n,o=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return ep(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ep(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){s=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw a}}}}(r.containerIDs);try{var a=function(){var e=function(t,e){var r=document.getElementById(e);if(!r)return null;var n=r.querySelector("ul");return n||((n=document.createElement("ul")).style.display="flex",n.style.flexDirection="row",n.style.margin="0",n.style.padding="0",r.appendChild(n)),n}(0,n.value);if(!e)return{v:void 0};for(;e.firstChild;)e.firstChild.remove();t.options.plugins.legend.labels.generateLabels(t).forEach((function(r){var n=document.createElement("li");n.style.alignItems="center",n.style.cursor="pointer",n.style.display="flex",n.style.flexDirection="row",n.style.marginLeft="10px",n.onclick=function(){var e=t.config.type;"pie"===e||"doughnut"===e?t.toggleDataVisibility(r.index):t.setDatasetVisibility(r.datasetIndex,!t.isDatasetVisible(r.datasetIndex)),t.update()};var o=document.createElement("span");o.style.background=r.fillStyle,o.style.borderColor=r.strokeStyle,o.style.borderWidth=r.lineWidth+"px",o.style.display="inline-block",o.style.height="1rem",o.style.marginRight="10px",o.style.width="2.5rem";var a=document.createElement("p");a.style.color=r.fontColor,a.style.margin="0",a.style.padding="0",a.style.textDecoration=r.hidden?"line-through":"",a.style.fontSize="".concat(Yi.defaults.font.size,"px"),a.style.fontFamily="".concat(Yi.defaults.font.family),a.style.fontWeight="".concat(Yi.defaults.font.weight);var i=document.createTextNode(r.text);a.appendChild(i),n.appendChild(o),n.appendChild(a),e.appendChild(n)}))};for(o.s();!(n=o.n()).done;){var i=a();if("object"===tp(i))return i.v}}catch(t){o.e(t)}finally{o.f()}}};const np=rp;Yi.register(Ls,js,us,gs,Ts,hs);var op={maintainAspectRatio:!1,animation:{duration:0},plugins:{htmlLegend:{containerIDs:["legendtop","legendbottom"]},legend:{display:!1},tooltip:{callbacks:{label:function(t){var e=t.dataset.label||"";return null!==t.parsed.x&&(e+=": ".concat(t.parsed.x,"%")),e}}}},scales:{x:{position:"top",stacked:!0,ticks:{callback:function(t,e){return"".concat(10*e,"%")}}},x2:{ticks:{callback:function(t){return"number"==typeof t?"".concat(t,"%"):t}},grid:{drawOnChartArea:!1},afterDataLimits:function(t){for(var e=-999999,r=999999,n=0,o=Object.keys(Yi.instances);n<o.length;n++){var a=o[n];Yi.instances[a]&&t.chart.scales.x2&&(r=Math.min(Yi.instances[a].scales.x.min,r),e=Math.max(Yi.instances[a].scales.x.max,e))}t.chart.scales.x2.options.min=r,t.chart.scales.x2.options.max=e,t.chart.scales.x2.min=r,t.chart.scales.x2.max=e}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"};const ap=function(t){var r=t.filterSelection,n=t.setFilterSelection,o=t.roles,a=void 0!==o&&o,i=s((0,e.useState)([]),2),l=i[0],c=i[1],d=(0,e.useMemo)((function(){return Se(l)}),[l]),u=d.years,p=d.nrens,f=function(t,e,r){var n;n=e?["Technical FTE","Non-technical FTE"]:["Permanent FTE","Subcontracted FTE"];var o=function(t){var e={"Technical FTE":"technical_fte","Non-technical FTE":"non_technical_fte","Permanent FTE":"permanent_fte","Subcontracted FTE":"subcontracted_fte"},o=new Map;return t.forEach((function(t){if(r===t.year){var a=t.nren,i=o.get(a);i||(i=new Map);var l=s(n,2),c=l[0],d=l[1],u=[e[c],e[d]],p=u[1],f=t[u[0]],m=t[p],h=f+m,b=100*(f/h||0),g=100*(m/h||0);b=Math.round(Math.floor(100*b))/100,g=Math.round(Math.floor(100*g))/100,i.set(c,b),i.set(d,g),o.set(a,i)}})),o}(t),a=[r],i=_e(new Set(t.map((function(t){return t.nren})))).sort((function(t,e){var r=o.get(t),a=o.get(e);if(r&&a){var i=s(n,2),l=i[0],c=i[1],d={category1:r.get(l),category2:r.get(c)},u={category1:a.get(l),category2:a.get(c)};return d.category1===u.category1?u.category2-d.category1:u.category1-d.category1}return r?-1:a?1:0})),l=(0,Ee.gr)(n,a).map((function(t){var e=s(t,2),r=e[0],n=e[1],a="";return"Technical FTE"===r?a="rgba(40, 40, 250, 0.8)":"Permanent FTE"===r?a="rgba(159, 129, 235, 1)":"Subcontracted FTE"===r?a="rgba(173, 216, 229, 1)":"Non-technical FTE"===r&&(a="rgba(116, 216, 242, 0.54)"),{backgroundColor:a,label:"".concat(r," (").concat(n,")"),data:i.map((function(t){var e,n=o.get(t);return n&&null!==(e=n.get(r))&&void 0!==e?e:0})),stack:n,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1}}));return{datasets:l,labels:i}}(l,a,r.selectedYears[0]);f.datasets.forEach((function(t){t.hidden=!r.selectedYears.includes(parseInt(t.stack))})),f.datasets.forEach((function(t){t.data=t.data.filter((function(t,e){return r.selectedNrens.includes(f.labels[e])}))})),f.labels=f.labels.filter((function(t){return r.selectedNrens.includes(t)})),(0,e.useEffect)((function(){Ce("/api/staff/",c,n)}),[n]);var m=e.createElement(au,{max1year:!0,filterOptions:{availableYears:_e(u),availableNrens:_e(p.values())},filterSelection:r,setFilterSelection:n}),h=r.selectedNrens.length,b=Math.max(1.5*h,20),g=a?"Roles of NREN employees":"Types of employment for NRENs",v=a?"The graph shows the roles of NREN employees. On hovering over the graph will give the percentage of employees in that role. This graph can be used to compare, selecting multiple NRENs to see the fluctuation of roles over selected year and with other NRENs.":"The graph shows the types of employment for NREN employees. On hovering over the graphs will give the percentage of employees in that type of employment. This graph can be used to compare, selecting multiple NRENs to see the fluctuation of types of employment over selected year and with other NRENs.";return e.createElement(Bs,{title:g,description:v,category:Ve.Organisation,filter:m},e.createElement(Ju,null,e.createElement("div",{className:"chart-container",style:{height:"".concat(b,"rem")}},e.createElement(hu,{data:f,options:op,plugins:[np]}))))},ip=function(t){var r=t.filterSelection,n=t.setFilterSelection,o=s((0,e.useState)([]),2),a=o[0],i=o[1],l=(0,e.useMemo)((function(){return Se(a)}),[a]),c=l.years,d=l.nrens,u=a.filter((function(t){return r.selectedYears.includes(t.year)&&r.selectedNrens.includes(t.nren)})),p=Pe(u);(0,e.useEffect)((function(){Ce("/api/organization/sub",i,n)}),[n]);var f,m=e.createElement(au,{filterOptions:{availableYears:_e(c),availableNrens:_e(d.values())},filterSelection:r,setFilterSelection:n});return e.createElement(Bs,{title:"NREN Suborganisations",description:"The table shows the NRENs suborganisations. You can select multiple years and NRENs to get a tabular view of NRENs suborganisations over the years.",category:Ve.Organisation,filter:m},e.createElement(Qu,{borderless:!0,className:"compendium-table"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",{className:"nren-column"},"NREN"),e.createElement("th",{className:"year-column"},"Year"),e.createElement("th",{className:"blue-column"},"Suborganisation and Role"))),e.createElement("tbody",null,(f=p,Array.from(f.entries()).map((function(t){var r=s(t,2),n=r[0],o=r[1];return Array.from(o.entries()).map((function(t,r){var o=s(t,2),a=o[0],i=o[1];return e.createElement("tr",{key:n+a,className:"dotted-border"},e.createElement("td",{className:"pt-3 nren-column text-nowrap"},0==r&&n),e.createElement("td",{className:"pt-3 year-column"},a),e.createElement("td",{className:"pt-3 blue-column"},e.createElement("ul",null,i.map((function(t){return e.createElement("li",{key:t.name},t.name," (",t.role,")")})))))}))}))))))},sp=function(t){var r=t.filterSelection,n=t.setFilterSelection,o=s((0,e.useState)([]),2),a=o[0],i=o[1],l=(0,e.useMemo)((function(){return Se(a)}),[a]),c=l.years,d=l.nrens,u=a.filter((function(t){return r.selectedYears.includes(t.year)&&r.selectedNrens.includes(t.nren)})),p=Pe(u);(0,e.useEffect)((function(){Ce("/api/organization/parent",i,n)}),[n]);var f,m=e.createElement(au,{filterOptions:{availableYears:_e(c),availableNrens:_e(d.values())},filterSelection:r,setFilterSelection:n,max1year:!0});return e.createElement(Bs,{title:"NREN Parent Organisations",description:"The table shows the NRENs parent organisation. You can select only one year at a time and multiple NRENs. This table can be used to compare the parent organisation of NRENs.",category:Ve.Organisation,filter:m},e.createElement(Qu,{borderless:!0,className:"compendium-table"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",{className:"nren-column"},"NREN"),e.createElement("th",{className:"year-column"},"Year"),e.createElement("th",{className:"blue-column"},"Parent Organisation"))),e.createElement("tbody",null,(f=p,Array.from(f.entries()).map((function(t){var r=s(t,2),n=r[0],o=r[1];return Array.from(o.entries()).map((function(t,r){var o=s(t,2),a=o[0],i=o[1];return e.createElement("tr",{key:n+a,className:"dotted-border"},e.createElement("td",{className:"pt-3 nren-column text-nowrap"},0==r&&n),e.createElement("td",{className:"pt-3 year-column"},a),e.createElement("td",{className:"pt-3 blue-column"},i[0].name))}))}))))))},lp=function(t){var r,n,o=t.filterSelection,a=t.setFilterSelection,i=s((0,e.useState)([]),2),l=i[0],c=i[1],d=(0,e.useMemo)((function(){return Se(l)}),[l]),u=d.years,p=d.nrens,f=(r=l.filter((function(t){return o.selectedYears.includes(t.year)&&o.selectedNrens.includes(t.nren)})),n=new Map,r.forEach((function(t){var e=n.get(t.nren);e||(e=new Map);var r=e.get(t.year);r||(r=[]),r.push(t),e.set(t.year,r),n.set(t.nren,e)})),n);(0,e.useEffect)((function(){Ce("/api/ec-project/",c,a)}),[a]);var m,h=e.createElement(au,{filterOptions:{availableYears:_e(u),availableNrens:_e(p.values())},filterSelection:o,setFilterSelection:a});return e.createElement(Bs,{title:"NREN Involvement in European Commission Projects",description:"The table shows the NRENs involvement in European Commission Projects Membership. By selecting multiple year and NRENs, the table can be used to compare the NRENs involvement in European Commission Projects Membership",category:Ve.Organisation,filter:h},e.createElement(Qu,{borderless:!0,className:"compendium-table"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",{className:"nren-column"},"NREN"),e.createElement("th",{className:"year-column"},"Year"),e.createElement("th",{className:"blue-column"},"EC Project Membership"))),e.createElement("tbody",null,(m=f,Array.from(m.entries()).map((function(t){var r=s(t,2),n=r[0],o=r[1];return Array.from(o.entries()).map((function(t,r){var o=s(t,2),a=o[0],i=o[1];return e.createElement("tr",{key:n+a,className:"dotted-border"},e.createElement("td",{className:"pt-3 nren-column text-nowrap"},0==r&&n),e.createElement("td",{className:"pt-3 year-column"},a),e.createElement("td",{className:"pt-3 blue-column"},e.createElement("ul",null,i.map((function(t){return e.createElement("li",{key:t.project},t.project)})))))}))}))))))};var cp=(0,e.createContext)({show:!1,toggle:function(){}});const dp=function(t){var r=t.children,n=s((0,e.useState)(!1),2),o=n[0],a=n[1];return e.createElement(cp.Provider,{value:{show:o,toggle:function(){a(!o)}}},r)},up=function(t){var r=t.children;return e.createElement(dp,null,e.createElement(be,null,r))},pp=function(t){var r,n,o=t.filterSelection,a=t.setFilterSelection,i=s((0,e.useState)([]),2),l=i[0],c=i[1],d=(0,e.useMemo)((function(){return Se(l)}),[l]),u=d.years,p=d.nrens,f=(r=l.filter((function(t){return o.selectedYears.includes(t.year)&&o.selectedNrens.includes(t.nren)})),n=new Map,r.forEach((function(t){var e=n.get(t.nren);e||(e=new Map),e.set(t.year,t),n.set(t.nren,e)})),n);(0,e.useEffect)((function(){Ce("/api/policy/",c,a)}),[a]);var m,h,b=e.createElement(au,{filterOptions:{availableYears:_e(u),availableNrens:_e(p.values())},filterSelection:o,setFilterSelection:a});return e.createElement(Bs,{title:"NREN Policies",description:"The table shows the NRENs policies. By selecting multiple year and NRENs, the table can be used to compare the NRENs policies over years of selected NRENs.",category:Ve.Policy,filter:b},e.createElement(Qu,{borderless:!0,className:"compendium-table"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",{className:"nren-column"},"NREN"),e.createElement("th",{className:"year-column"},"Year"),e.createElement("th",{className:"blue-column"},"Policies"))),e.createElement("tbody",null,(m=f,h=[["acceptable_use","Acceptable Use Policy"],["connectivity","Connectivity Policy"],["data_protection","Data Protection Policy"],["environmental","Environmental Policy"],["equal_opportunity","Equal Opportunity Policy"],["privacy_notice","Privacy Notice"],["strategic_plan","Strategic Plan"]],Array.from(m.entries()).map((function(t){var r=s(t,2),n=r[0],o=r[1];return Array.from(o.entries()).map((function(t,r){var o=s(t,2),a=o[0],i=o[1];return e.createElement("tr",{key:n+a,className:"dotted-border"},e.createElement("td",{className:"pt-3 nren-column text-nowrap"},0==r&&n),e.createElement("td",{className:"pt-3 year-column"},a),e.createElement("td",{className:"pt-3 blue-column"},e.createElement("ul",null,h.map((function(t){var r=s(t,2),n=r[0],o=r[1];return!!i[n]&&e.createElement("li",{key:n},e.createElement("a",{href:i[n],target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"}},o))})))))}))}))))))},fp=function(){var t=s((0,e.useState)({selectedYears:[],selectedNrens:[]}),2),r=t[0],n=t[1];return e.createElement("div",{className:"app"},e.createElement(mt,null,e.createElement(up,null,e.createElement(xe,null),e.createElement(ct,null,e.createElement(st,{path:"/budget",element:e.createElement(vu,{filterSelection:r,setFilterSelection:n})}),e.createElement(st,{path:"/funding",element:e.createElement(Ku,{filterSelection:r,setFilterSelection:n})}),e.createElement(st,{path:"/data/employment",element:e.createElement(ap,{filterSelection:r,setFilterSelection:n})}),e.createElement(st,{path:"/data/roles",element:e.createElement(ap,{roles:!0,filterSelection:r,setFilterSelection:n})}),e.createElement(st,{path:"/charging",element:e.createElement(Zu,{filterSelection:r,setFilterSelection:n})}),e.createElement(st,{path:"/suborganisations",element:e.createElement(ip,{filterSelection:r,setFilterSelection:n})}),e.createElement(st,{path:"/parentorganisation",element:e.createElement(sp,{filterSelection:r,setFilterSelection:n})}),e.createElement(st,{path:"/ec-projects",element:e.createElement(lp,{filterSelection:r,setFilterSelection:n})}),e.createElement(st,{path:"/policy",element:e.createElement(pp,{filterSelection:r,setFilterSelection:n})}),e.createElement(st,{path:"/data",element:e.createElement(wu,null)}),e.createElement(st,{path:"*",element:e.createElement(re,null)}))),e.createElement(ke,null)))};var mp=o(379),hp=o.n(mp),bp=o(795),gp=o.n(bp),vp=o(569),xp=o.n(vp),yp=o(565),wp=o.n(yp),kp=o(216),_p=o.n(kp),Ep=o(589),Sp=o.n(Ep),Cp=o(666),Mp={};Mp.styleTagTransform=Sp(),Mp.setAttributes=wp(),Mp.insert=xp().bind(null,"head"),Mp.domAPI=gp(),Mp.insertStyleElement=_p(),hp()(Cp.Z,Mp),Cp.Z&&Cp.Z.locals&&Cp.Z.locals;var Np=o(169),Pp={};Pp.styleTagTransform=Sp(),Pp.setAttributes=wp(),Pp.insert=xp().bind(null,"head"),Pp.domAPI=gp(),Pp.insertStyleElement=_p(),hp()(Np.Z,Pp),Np.Z&&Np.Z.locals&&Np.Z.locals;var Op=document.getElementById("root");(0,n.s)(Op).render(e.createElement(e.StrictMode,null,e.createElement(fp,null)))})()})(); \ No newline at end of file +(()=>{var t,e,r={1844:(t,e)=>{"use strict";e.gr=void 0,e.gr=function t(...e){if(!Array.isArray(e))throw new TypeError("Please, send an array.");const[r,n,...o]=e,a=function(t,e){const r=[];for(let n=0;n<t.length;n++)if(e)for(let o=0;o<e.length;o++)Array.isArray(t[n])?r.push([...t[n],e[o]]):r.push([t[n],e[o]]);else r.push([t[n]]);return r}(r,n);return o.length?t(a,...o):a}},4184:(t,e)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var a=typeof r;if("string"===a||"number"===a)t.push(r);else if(Array.isArray(r)){if(r.length){var i=o.apply(null,r);i&&t.push(i)}}else if("object"===a){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){t.push(r.toString());continue}for(var s in r)n.call(r,s)&&r[s]&&t.push(s)}}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(r=function(){return o}.apply(e,[]))||(t.exports=r)}()},4666:(t,e,r)=>{"use strict";r.d(e,{Z:()=>W});var n=r(8081),o=r.n(n),a=r(3645),i=r.n(a),s=r(1667),l=r.n(s),c=new URL(r(6770),r.b),d=new URL(r(6199),r.b),u=new URL(r(2204),r.b),p=new URL(r(8931),r.b),f=new URL(r(7486),r.b),m=new URL(r(9609),r.b),h=new URL(r(2469),r.b),b=new URL(r(5122),r.b),g=new URL(r(4144),r.b),v=new URL(r(1217),r.b),x=new URL(r(2956),r.b),y=new URL(r(3460),r.b),w=new URL(r(2740),r.b),k=new URL(r(6254),r.b),_=new URL(r(5647),r.b),E=new URL(r(1692),r.b),S=i()(o()),C=l()(c),M=l()(d),N=l()(u),P=l()(p),O=l()(f),z=l()(m),T=l()(h),R=l()(b),L=l()(g),A=l()(v),D=l()(x),j=l()(y),I=l()(w),F=l()(k),B=l()(_),U=l()(E);S.push([t.id,'@charset "UTF-8";/*!\n * Bootstrap v5.2.3 (https://getbootstrap.com/)\n * Copyright 2011-2022 The Bootstrap Authors\n * Copyright 2011-2022 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n */:root{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13,110,253;--bs-secondary-rgb:108,117,125;--bs-success-rgb:25,135,84;--bs-info-rgb:13,202,240;--bs-warning-rgb:255,193,7;--bs-danger-rgb:220,53,69;--bs-light-rgb:248,249,250;--bs-dark-rgb:33,37,41;--bs-white-rgb:255,255,255;--bs-black-rgb:0,0,0;--bs-body-color-rgb:33,37,41;--bs-body-bg-rgb:255,255,255;--bs-font-sans-serif:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--bs-font-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, 0.175);--bs-border-radius:0.375rem;--bs-border-radius-sm:0.25rem;--bs-border-radius-lg:0.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-2xl:2rem;--bs-border-radius-pill:50rem;--bs-link-color:#0d6efd;--bs-link-hover-color:#0a58ca;--bs-code-color:#d63384;--bs-highlight-bg:#fff3cd}*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}hr{margin:1rem 0;color:inherit;border:0;border-top:1px solid;opacity:.25}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2}.h1,h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){.h1,h1{font-size:2.5rem}}.h2,h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){.h2,h2{font-size:2rem}}.h3,h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){.h3,h3{font-size:1.75rem}}.h4,h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){.h4,h4{font-size:1.5rem}}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}.small,small{font-size:.875em}.mark,mark{padding:.1875em;background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:var(--bs-link-color);text-decoration:underline}a:hover{color:var(--bs-link-hover-color)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:calc(1.625rem + 4.5vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-1{font-size:5rem}}.display-2{font-size:calc(1.575rem + 3.9vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-2{font-size:4.5rem}}.display-3{font-size:calc(1.525rem + 3.3vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-3{font-size:4rem}}.display-4{font-size:calc(1.475rem + 2.7vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-4{font-size:3.5rem}}.display-5{font-size:calc(1.425rem + 2.1vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-5{font-size:3rem}}.display-6{font-size:calc(1.375rem + 1.5vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-6{font-size:2.5rem}}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer::before{content:"— "}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#fff;border:1px solid var(--bs-border-color);border-radius:.375rem;max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:.875em;color:#6c757d}.container,.container-fluid,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{--bs-gutter-x:1.5rem;--bs-gutter-y:0;width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-right:auto;margin-left:auto}@media (min-width:576px){.container,.container-sm{max-width:540px}}@media (min-width:768px){.container,.container-md,.container-sm{max-width:720px}}@media (min-width:992px){.container,.container-lg,.container-md,.container-sm{max-width:960px}}@media (min-width:1200px){.container,.container-lg,.container-md,.container-sm,.container-xl{max-width:1140px}}@media (min-width:1400px){.container,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{max-width:1320px}}.row{--bs-gutter-x:1.5rem;--bs-gutter-y:0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.6666666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--bs-gutter-x:0}.g-0,.gy-0{--bs-gutter-y:0}.g-1,.gx-1{--bs-gutter-x:0.25rem}.g-1,.gy-1{--bs-gutter-y:0.25rem}.g-2,.gx-2{--bs-gutter-x:0.5rem}.g-2,.gy-2{--bs-gutter-y:0.5rem}.g-3,.gx-3{--bs-gutter-x:1rem}.g-3,.gy-3{--bs-gutter-y:1rem}.g-4,.gx-4{--bs-gutter-x:1.5rem}.g-4,.gy-4{--bs-gutter-y:1.5rem}.g-5,.gx-5{--bs-gutter-x:3rem}.g-5,.gy-5{--bs-gutter-y:3rem}@media (min-width:576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.6666666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--bs-gutter-x:0}.g-sm-0,.gy-sm-0{--bs-gutter-y:0}.g-sm-1,.gx-sm-1{--bs-gutter-x:0.25rem}.g-sm-1,.gy-sm-1{--bs-gutter-y:0.25rem}.g-sm-2,.gx-sm-2{--bs-gutter-x:0.5rem}.g-sm-2,.gy-sm-2{--bs-gutter-y:0.5rem}.g-sm-3,.gx-sm-3{--bs-gutter-x:1rem}.g-sm-3,.gy-sm-3{--bs-gutter-y:1rem}.g-sm-4,.gx-sm-4{--bs-gutter-x:1.5rem}.g-sm-4,.gy-sm-4{--bs-gutter-y:1.5rem}.g-sm-5,.gx-sm-5{--bs-gutter-x:3rem}.g-sm-5,.gy-sm-5{--bs-gutter-y:3rem}}@media (min-width:768px){.col-md{flex:1 0 0%}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.6666666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--bs-gutter-x:0}.g-md-0,.gy-md-0{--bs-gutter-y:0}.g-md-1,.gx-md-1{--bs-gutter-x:0.25rem}.g-md-1,.gy-md-1{--bs-gutter-y:0.25rem}.g-md-2,.gx-md-2{--bs-gutter-x:0.5rem}.g-md-2,.gy-md-2{--bs-gutter-y:0.5rem}.g-md-3,.gx-md-3{--bs-gutter-x:1rem}.g-md-3,.gy-md-3{--bs-gutter-y:1rem}.g-md-4,.gx-md-4{--bs-gutter-x:1.5rem}.g-md-4,.gy-md-4{--bs-gutter-y:1.5rem}.g-md-5,.gx-md-5{--bs-gutter-x:3rem}.g-md-5,.gy-md-5{--bs-gutter-y:3rem}}@media (min-width:992px){.col-lg{flex:1 0 0%}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.6666666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--bs-gutter-x:0}.g-lg-0,.gy-lg-0{--bs-gutter-y:0}.g-lg-1,.gx-lg-1{--bs-gutter-x:0.25rem}.g-lg-1,.gy-lg-1{--bs-gutter-y:0.25rem}.g-lg-2,.gx-lg-2{--bs-gutter-x:0.5rem}.g-lg-2,.gy-lg-2{--bs-gutter-y:0.5rem}.g-lg-3,.gx-lg-3{--bs-gutter-x:1rem}.g-lg-3,.gy-lg-3{--bs-gutter-y:1rem}.g-lg-4,.gx-lg-4{--bs-gutter-x:1.5rem}.g-lg-4,.gy-lg-4{--bs-gutter-y:1.5rem}.g-lg-5,.gx-lg-5{--bs-gutter-x:3rem}.g-lg-5,.gy-lg-5{--bs-gutter-y:3rem}}@media (min-width:1200px){.col-xl{flex:1 0 0%}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.6666666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--bs-gutter-x:0}.g-xl-0,.gy-xl-0{--bs-gutter-y:0}.g-xl-1,.gx-xl-1{--bs-gutter-x:0.25rem}.g-xl-1,.gy-xl-1{--bs-gutter-y:0.25rem}.g-xl-2,.gx-xl-2{--bs-gutter-x:0.5rem}.g-xl-2,.gy-xl-2{--bs-gutter-y:0.5rem}.g-xl-3,.gx-xl-3{--bs-gutter-x:1rem}.g-xl-3,.gy-xl-3{--bs-gutter-y:1rem}.g-xl-4,.gx-xl-4{--bs-gutter-x:1.5rem}.g-xl-4,.gy-xl-4{--bs-gutter-y:1.5rem}.g-xl-5,.gx-xl-5{--bs-gutter-x:3rem}.g-xl-5,.gy-xl-5{--bs-gutter-y:3rem}}@media (min-width:1400px){.col-xxl{flex:1 0 0%}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.6666666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--bs-gutter-x:0}.g-xxl-0,.gy-xxl-0{--bs-gutter-y:0}.g-xxl-1,.gx-xxl-1{--bs-gutter-x:0.25rem}.g-xxl-1,.gy-xxl-1{--bs-gutter-y:0.25rem}.g-xxl-2,.gx-xxl-2{--bs-gutter-x:0.5rem}.g-xxl-2,.gy-xxl-2{--bs-gutter-y:0.5rem}.g-xxl-3,.gx-xxl-3{--bs-gutter-x:1rem}.g-xxl-3,.gy-xxl-3{--bs-gutter-y:1rem}.g-xxl-4,.gx-xxl-4{--bs-gutter-x:1.5rem}.g-xxl-4,.gy-xxl-4{--bs-gutter-y:1.5rem}.g-xxl-5,.gx-xxl-5{--bs-gutter-x:3rem}.g-xxl-5,.gy-xxl-5{--bs-gutter-y:3rem}}.table{--bs-table-color:var(--bs-body-color);--bs-table-bg:transparent;--bs-table-border-color:var(--bs-border-color);--bs-table-accent-bg:transparent;--bs-table-striped-color:var(--bs-body-color);--bs-table-striped-bg:rgba(0, 0, 0, 0.05);--bs-table-active-color:var(--bs-body-color);--bs-table-active-bg:rgba(0, 0, 0, 0.1);--bs-table-hover-color:var(--bs-body-color);--bs-table-hover-bg:rgba(0, 0, 0, 0.075);width:100%;margin-bottom:1rem;color:var(--bs-table-color);vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:.5rem .5rem;background-color:var(--bs-table-bg);border-bottom-width:1px;box-shadow:inset 0 0 0 9999px var(--bs-table-accent-bg)}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table-group-divider{border-top:2px solid currentcolor}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem .25rem}.table-bordered>:not(caption)>*{border-width:1px 0}.table-bordered>:not(caption)>*>*{border-width:0 1px}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-accent-bg:var(--bs-table-striped-bg);color:var(--bs-table-striped-color)}.table-striped-columns>:not(caption)>tr>:nth-child(2n){--bs-table-accent-bg:var(--bs-table-striped-bg);color:var(--bs-table-striped-color)}.table-active{--bs-table-accent-bg:var(--bs-table-active-bg);color:var(--bs-table-active-color)}.table-hover>tbody>tr:hover>*{--bs-table-accent-bg:var(--bs-table-hover-bg);color:var(--bs-table-hover-color)}.table-primary{--bs-table-color:#000;--bs-table-bg:#cfe2ff;--bs-table-border-color:#bacbe6;--bs-table-striped-bg:#c5d7f2;--bs-table-striped-color:#000;--bs-table-active-bg:#bacbe6;--bs-table-active-color:#000;--bs-table-hover-bg:#bfd1ec;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-secondary{--bs-table-color:#000;--bs-table-bg:#e2e3e5;--bs-table-border-color:#cbccce;--bs-table-striped-bg:#d7d8da;--bs-table-striped-color:#000;--bs-table-active-bg:#cbccce;--bs-table-active-color:#000;--bs-table-hover-bg:#d1d2d4;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-success{--bs-table-color:#000;--bs-table-bg:#d1e7dd;--bs-table-border-color:#bcd0c7;--bs-table-striped-bg:#c7dbd2;--bs-table-striped-color:#000;--bs-table-active-bg:#bcd0c7;--bs-table-active-color:#000;--bs-table-hover-bg:#c1d6cc;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-info{--bs-table-color:#000;--bs-table-bg:#cff4fc;--bs-table-border-color:#badce3;--bs-table-striped-bg:#c5e8ef;--bs-table-striped-color:#000;--bs-table-active-bg:#badce3;--bs-table-active-color:#000;--bs-table-hover-bg:#bfe2e9;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-warning{--bs-table-color:#000;--bs-table-bg:#fff3cd;--bs-table-border-color:#e6dbb9;--bs-table-striped-bg:#f2e7c3;--bs-table-striped-color:#000;--bs-table-active-bg:#e6dbb9;--bs-table-active-color:#000;--bs-table-hover-bg:#ece1be;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-danger{--bs-table-color:#000;--bs-table-bg:#f8d7da;--bs-table-border-color:#dfc2c4;--bs-table-striped-bg:#eccccf;--bs-table-striped-color:#000;--bs-table-active-bg:#dfc2c4;--bs-table-active-color:#000;--bs-table-hover-bg:#e5c7ca;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-light{--bs-table-color:#000;--bs-table-bg:#f8f9fa;--bs-table-border-color:#dfe0e1;--bs-table-striped-bg:#ecedee;--bs-table-striped-color:#000;--bs-table-active-bg:#dfe0e1;--bs-table-active-color:#000;--bs-table-hover-bg:#e5e6e7;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-dark{--bs-table-color:#fff;--bs-table-bg:#212529;--bs-table-border-color:#373b3e;--bs-table-striped-bg:#2c3034;--bs-table-striped-color:#fff;--bs-table-active-bg:#373b3e;--bs-table-active-color:#fff;--bs-table-hover-bg:#323539;--bs-table-hover-color:#fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width:575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.form-label{margin-bottom:.5rem}.col-form-label{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem + 1px);font-size:1.25rem}.col-form-label-sm{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem + 1px);font-size:.875rem}.form-text{margin-top:.25rem;font-size:.875em;color:#6c757d}.form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.375rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:#212529;background-color:#fff;border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.form-control::-webkit-date-and-time-value{height:1.5em}.form-control::-moz-placeholder{color:#6c757d;opacity:1}.form-control::placeholder{color:#6c757d;opacity:1}.form-control:disabled{background-color:#e9ecef;opacity:1}.form-control::-webkit-file-upload-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;-webkit-transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control::-webkit-file-upload-button{-webkit-transition:none;transition:none}.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button{background-color:#dde0e3}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:#dde0e3}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;line-height:1.5;color:#212529;background-color:transparent;border:solid transparent;border-width:1px 0}.form-control-plaintext:focus{outline:0}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm{padding-right:0;padding-left:0}.form-control-sm{min-height:calc(1.5em + .5rem + 2px);padding:.25rem .5rem;font-size:.875rem;border-radius:.25rem}.form-control-sm::-webkit-file-upload-button{padding:.25rem .5rem;margin:-.25rem -.5rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}.form-control-sm::file-selector-button{padding:.25rem .5rem;margin:-.25rem -.5rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}.form-control-lg{min-height:calc(1.5em + 1rem + 2px);padding:.5rem 1rem;font-size:1.25rem;border-radius:.5rem}.form-control-lg::-webkit-file-upload-button{padding:.5rem 1rem;margin:-.5rem -1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.form-control-lg::file-selector-button{padding:.5rem 1rem;margin:-.5rem -1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}textarea.form-control{min-height:calc(1.5em + .75rem + 2px)}textarea.form-control-sm{min-height:calc(1.5em + .5rem + 2px)}textarea.form-control-lg{min-height:calc(1.5em + 1rem + 2px)}.form-control-color{width:3rem;height:calc(1.5em + .75rem + 2px);padding:.375rem}.form-control-color:not(:disabled):not([readonly]){cursor:pointer}.form-control-color::-moz-color-swatch{border:0!important;border-radius:.375rem}.form-control-color::-webkit-color-swatch{border-radius:.375rem}.form-control-color.form-control-sm{height:calc(1.5em + .5rem + 2px)}.form-control-color.form-control-lg{height:calc(1.5em + 1rem + 2px)}.form-select{display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;-moz-padding-start:calc(0.75rem - 3px);font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-image:url('+C+');background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:1px solid #ced4da;border-radius:.375rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.form-select{transition:none}}.form-select:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.form-select[multiple],.form-select[size]:not([size="1"]){padding-right:.75rem;background-image:none}.form-select:disabled{background-color:#e9ecef}.form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 #212529}.form-select-sm{padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem;border-radius:.25rem}.form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem;border-radius:.5rem}.form-check{display:block;min-height:1.5rem;padding-left:1.5em;margin-bottom:.125rem}.form-check .form-check-input{float:left;margin-left:-1.5em}.form-check-reverse{padding-right:1.5em;padding-left:0;text-align:right}.form-check-reverse .form-check-input{float:right;margin-right:-1.5em;margin-left:0}.form-check-input{width:1em;height:1em;margin-top:.25em;vertical-align:top;background-color:#fff;background-repeat:no-repeat;background-position:center;background-size:contain;border:1px solid rgba(0,0,0,.25);-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}.form-check-input[type=checkbox]{border-radius:.25em}.form-check-input[type=radio]{border-radius:50%}.form-check-input:active{filter:brightness(90%)}.form-check-input:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.form-check-input:checked{background-color:#0d6efd;border-color:#0d6efd}.form-check-input:checked[type=checkbox]{background-image:url('+M+")}.form-check-input:checked[type=radio]{background-image:url("+N+")}.form-check-input[type=checkbox]:indeterminate{background-color:#0d6efd;border-color:#0d6efd;background-image:url("+P+")}.form-check-input:disabled{pointer-events:none;filter:none;opacity:.5}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{cursor:default;opacity:.5}.form-switch{padding-left:2.5em}.form-switch .form-check-input{width:2em;margin-left:-2.5em;background-image:url("+O+");background-position:left center;border-radius:2em;transition:background-position .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-switch .form-check-input{transition:none}}.form-switch .form-check-input:focus{background-image:url("+z+")}.form-switch .form-check-input:checked{background-position:right center;background-image:url("+T+")}.form-switch.form-check-reverse{padding-right:2.5em;padding-left:0}.form-switch.form-check-reverse .form-check-input{margin-right:-2.5em;margin-left:0}.form-check-inline{display:inline-block;margin-right:1rem}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check:disabled+.btn,.btn-check[disabled]+.btn{pointer-events:none;filter:none;opacity:.65}.form-range{width:100%;height:1.5rem;padding:0;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.form-range:focus{outline:0}.form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem rgba(13,110,253,.25)}.form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem rgba(13,110,253,.25)}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#0d6efd;border:0;border-radius:1rem;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.form-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.form-range::-webkit-slider-thumb:active{background-color:#b6d4fe}.form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.form-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#0d6efd;border:0;border-radius:1rem;-moz-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.form-range::-moz-range-thumb{-moz-transition:none;transition:none}}.form-range::-moz-range-thumb:active{background-color:#b6d4fe}.form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.form-range:disabled{pointer-events:none}.form-range:disabled::-webkit-slider-thumb{background-color:#adb5bd}.form-range:disabled::-moz-range-thumb{background-color:#adb5bd}.form-floating{position:relative}.form-floating>.form-control,.form-floating>.form-control-plaintext,.form-floating>.form-select{height:calc(3.5rem + 2px);line-height:1.25}.form-floating>label{position:absolute;top:0;left:0;width:100%;height:100%;padding:1rem .75rem;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border:1px solid transparent;transform-origin:0 0;transition:opacity .1s ease-in-out,transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.form-floating>label{transition:none}}.form-floating>.form-control,.form-floating>.form-control-plaintext{padding:1rem .75rem}.form-floating>.form-control-plaintext::-moz-placeholder,.form-floating>.form-control::-moz-placeholder{color:transparent}.form-floating>.form-control-plaintext::placeholder,.form-floating>.form-control::placeholder{color:transparent}.form-floating>.form-control-plaintext:not(:-moz-placeholder-shown),.form-floating>.form-control:not(:-moz-placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control-plaintext:focus,.form-floating>.form-control-plaintext:not(:placeholder-shown),.form-floating>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control-plaintext:-webkit-autofill,.form-floating>.form-control:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-select{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:not(:-moz-placeholder-shown)~label{opacity:.65;transform:scale(.85) translateY(-.5rem) translateX(.15rem)}.form-floating>.form-control-plaintext~label,.form-floating>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-floating>.form-select~label{opacity:.65;transform:scale(.85) translateY(-.5rem) translateX(.15rem)}.form-floating>.form-control:-webkit-autofill~label{opacity:.65;transform:scale(.85) translateY(-.5rem) translateX(.15rem)}.form-floating>.form-control-plaintext~label{border-width:1px 0}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-floating,.input-group>.form-select{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus,.input-group>.form-floating:focus-within,.input-group>.form-select:focus{z-index:5}.input-group .btn{position:relative;z-index:2}.input-group .btn:focus{z-index:5}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.375rem}.input-group-lg>.btn,.input-group-lg>.form-control,.input-group-lg>.form-select,.input-group-lg>.input-group-text{padding:.5rem 1rem;font-size:1.25rem;border-radius:.5rem}.input-group-sm>.btn,.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text{padding:.25rem .5rem;font-size:.875rem;border-radius:.25rem}.input-group-lg>.form-select,.input-group-sm>.form-select{padding-right:3rem}.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select,.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select,.input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.form-floating:not(:first-child)>.form-control,.input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:#198754}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:rgba(25,135,84,.9);border-radius:.375rem}.is-valid~.valid-feedback,.is-valid~.valid-tooltip,.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip{display:block}.form-control.is-valid,.was-validated .form-control:valid{border-color:#198754;padding-right:calc(1.5em + .75rem);background-image:url("+R+');background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-valid:focus,.was-validated .form-control:valid:focus{border-color:#198754;box-shadow:0 0 0 .25rem rgba(25,135,84,.25)}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.form-select.is-valid,.was-validated .form-select:valid{border-color:#198754}.form-select.is-valid:not([multiple]):not([size]),.form-select.is-valid:not([multiple])[size="1"],.was-validated .form-select:valid:not([multiple]):not([size]),.was-validated .form-select:valid:not([multiple])[size="1"]{padding-right:4.125rem;background-image:url('+C+"),url("+R+");background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.form-select.is-valid:focus,.was-validated .form-select:valid:focus{border-color:#198754;box-shadow:0 0 0 .25rem rgba(25,135,84,.25)}.form-control-color.is-valid,.was-validated .form-control-color:valid{width:calc(3rem + calc(1.5em + .75rem))}.form-check-input.is-valid,.was-validated .form-check-input:valid{border-color:#198754}.form-check-input.is-valid:checked,.was-validated .form-check-input:valid:checked{background-color:#198754}.form-check-input.is-valid:focus,.was-validated .form-check-input:valid:focus{box-shadow:0 0 0 .25rem rgba(25,135,84,.25)}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:#198754}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.input-group>.form-control:not(:focus).is-valid,.input-group>.form-floating:not(:focus-within).is-valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-control:not(:focus):valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.was-validated .input-group>.form-select:not(:focus):valid{z-index:3}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:#dc3545}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:rgba(220,53,69,.9);border-radius:.375rem}.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip,.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip{display:block}.form-control.is-invalid,.was-validated .form-control:invalid{border-color:#dc3545;padding-right:calc(1.5em + .75rem);background-image:url("+L+');background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-invalid:focus,.was-validated .form-control:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .25rem rgba(220,53,69,.25)}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.form-select.is-invalid,.was-validated .form-select:invalid{border-color:#dc3545}.form-select.is-invalid:not([multiple]):not([size]),.form-select.is-invalid:not([multiple])[size="1"],.was-validated .form-select:invalid:not([multiple]):not([size]),.was-validated .form-select:invalid:not([multiple])[size="1"]{padding-right:4.125rem;background-image:url('+C+"),url("+L+');background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.form-select.is-invalid:focus,.was-validated .form-select:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .25rem rgba(220,53,69,.25)}.form-control-color.is-invalid,.was-validated .form-control-color:invalid{width:calc(3rem + calc(1.5em + .75rem))}.form-check-input.is-invalid,.was-validated .form-check-input:invalid{border-color:#dc3545}.form-check-input.is-invalid:checked,.was-validated .form-check-input:invalid:checked{background-color:#dc3545}.form-check-input.is-invalid:focus,.was-validated .form-check-input:invalid:focus{box-shadow:0 0 0 .25rem rgba(220,53,69,.25)}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:#dc3545}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.input-group>.form-control:not(:focus).is-invalid,.input-group>.form-floating:not(:focus-within).is-invalid,.input-group>.form-select:not(:focus).is-invalid,.was-validated .input-group>.form-control:not(:focus):invalid,.was-validated .input-group>.form-floating:not(:focus-within):invalid,.was-validated .input-group>.form-select:not(:focus):invalid{z-index:4}.btn{--bs-btn-padding-x:0.75rem;--bs-btn-padding-y:0.375rem;--bs-btn-font-family: ;--bs-btn-font-size:1rem;--bs-btn-font-weight:400;--bs-btn-line-height:1.5;--bs-btn-color:#212529;--bs-btn-bg:transparent;--bs-btn-border-width:1px;--bs-btn-border-color:transparent;--bs-btn-border-radius:0.375rem;--bs-btn-hover-border-color:transparent;--bs-btn-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.15),0 1px 1px rgba(0, 0, 0, 0.075);--bs-btn-disabled-opacity:0.65;--bs-btn-focus-box-shadow:0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,.btn.active,.btn.show,.btn:first-child:active,:not(.btn-check)+.btn:active{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible,.btn:first-child:active:focus-visible,:not(.btn-check)+.btn:active:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn.disabled,.btn:disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color:#fff;--bs-btn-bg:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0b5ed7;--bs-btn-hover-border-color:#0a58ca;--bs-btn-focus-shadow-rgb:49,132,253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#0a58ca;--bs-btn-active-border-color:#0a53be;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#0d6efd;--bs-btn-disabled-border-color:#0d6efd}.btn-secondary{--bs-btn-color:#fff;--bs-btn-bg:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#5c636a;--bs-btn-hover-border-color:#565e64;--bs-btn-focus-shadow-rgb:130,138,145;--bs-btn-active-color:#fff;--bs-btn-active-bg:#565e64;--bs-btn-active-border-color:#51585e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#6c757d;--bs-btn-disabled-border-color:#6c757d}.btn-success{--bs-btn-color:#fff;--bs-btn-bg:#198754;--bs-btn-border-color:#198754;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#157347;--bs-btn-hover-border-color:#146c43;--bs-btn-focus-shadow-rgb:60,153,110;--bs-btn-active-color:#fff;--bs-btn-active-bg:#146c43;--bs-btn-active-border-color:#13653f;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#198754;--bs-btn-disabled-border-color:#198754}.btn-info{--bs-btn-color:#000;--bs-btn-bg:#0dcaf0;--bs-btn-border-color:#0dcaf0;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#31d2f2;--bs-btn-hover-border-color:#25cff2;--bs-btn-focus-shadow-rgb:11,172,204;--bs-btn-active-color:#000;--bs-btn-active-bg:#3dd5f3;--bs-btn-active-border-color:#25cff2;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#0dcaf0;--bs-btn-disabled-border-color:#0dcaf0}.btn-warning{--bs-btn-color:#000;--bs-btn-bg:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#ffca2c;--bs-btn-hover-border-color:#ffc720;--bs-btn-focus-shadow-rgb:217,164,6;--bs-btn-active-color:#000;--bs-btn-active-bg:#ffcd39;--bs-btn-active-border-color:#ffc720;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#ffc107;--bs-btn-disabled-border-color:#ffc107}.btn-danger{--bs-btn-color:#fff;--bs-btn-bg:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#bb2d3b;--bs-btn-hover-border-color:#b02a37;--bs-btn-focus-shadow-rgb:225,83,97;--bs-btn-active-color:#fff;--bs-btn-active-bg:#b02a37;--bs-btn-active-border-color:#a52834;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#dc3545;--bs-btn-disabled-border-color:#dc3545}.btn-light{--bs-btn-color:#000;--bs-btn-bg:#f8f9fa;--bs-btn-border-color:#f8f9fa;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#d3d4d5;--bs-btn-hover-border-color:#c6c7c8;--bs-btn-focus-shadow-rgb:211,212,213;--bs-btn-active-color:#000;--bs-btn-active-bg:#c6c7c8;--bs-btn-active-border-color:#babbbc;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#f8f9fa;--bs-btn-disabled-border-color:#f8f9fa}.btn-dark{--bs-btn-color:#fff;--bs-btn-bg:#212529;--bs-btn-border-color:#212529;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#424649;--bs-btn-hover-border-color:#373b3e;--bs-btn-focus-shadow-rgb:66,70,73;--bs-btn-active-color:#fff;--bs-btn-active-bg:#4d5154;--bs-btn-active-border-color:#373b3e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#212529;--bs-btn-disabled-border-color:#212529}.btn-outline-primary{--bs-btn-color:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0d6efd;--bs-btn-hover-border-color:#0d6efd;--bs-btn-focus-shadow-rgb:13,110,253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#0d6efd;--bs-btn-active-border-color:#0d6efd;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#0d6efd;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#0d6efd;--bs-gradient:none}.btn-outline-secondary{--bs-btn-color:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#6c757d;--bs-btn-hover-border-color:#6c757d;--bs-btn-focus-shadow-rgb:108,117,125;--bs-btn-active-color:#fff;--bs-btn-active-bg:#6c757d;--bs-btn-active-border-color:#6c757d;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#6c757d;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#6c757d;--bs-gradient:none}.btn-outline-success{--bs-btn-color:#198754;--bs-btn-border-color:#198754;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#198754;--bs-btn-hover-border-color:#198754;--bs-btn-focus-shadow-rgb:25,135,84;--bs-btn-active-color:#fff;--bs-btn-active-bg:#198754;--bs-btn-active-border-color:#198754;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#198754;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#198754;--bs-gradient:none}.btn-outline-info{--bs-btn-color:#0dcaf0;--bs-btn-border-color:#0dcaf0;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#0dcaf0;--bs-btn-hover-border-color:#0dcaf0;--bs-btn-focus-shadow-rgb:13,202,240;--bs-btn-active-color:#000;--bs-btn-active-bg:#0dcaf0;--bs-btn-active-border-color:#0dcaf0;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#0dcaf0;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#0dcaf0;--bs-gradient:none}.btn-outline-warning{--bs-btn-color:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#ffc107;--bs-btn-hover-border-color:#ffc107;--bs-btn-focus-shadow-rgb:255,193,7;--bs-btn-active-color:#000;--bs-btn-active-bg:#ffc107;--bs-btn-active-border-color:#ffc107;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#ffc107;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#ffc107;--bs-gradient:none}.btn-outline-danger{--bs-btn-color:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#dc3545;--bs-btn-hover-border-color:#dc3545;--bs-btn-focus-shadow-rgb:220,53,69;--bs-btn-active-color:#fff;--bs-btn-active-bg:#dc3545;--bs-btn-active-border-color:#dc3545;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#dc3545;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#dc3545;--bs-gradient:none}.btn-outline-light{--bs-btn-color:#f8f9fa;--bs-btn-border-color:#f8f9fa;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#f8f9fa;--bs-btn-hover-border-color:#f8f9fa;--bs-btn-focus-shadow-rgb:248,249,250;--bs-btn-active-color:#000;--bs-btn-active-bg:#f8f9fa;--bs-btn-active-border-color:#f8f9fa;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#f8f9fa;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#f8f9fa;--bs-gradient:none}.btn-outline-dark{--bs-btn-color:#212529;--bs-btn-border-color:#212529;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#212529;--bs-btn-hover-border-color:#212529;--bs-btn-focus-shadow-rgb:33,37,41;--bs-btn-active-color:#fff;--bs-btn-active-bg:#212529;--bs-btn-active-border-color:#212529;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#212529;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#212529;--bs-gradient:none}.btn-link{--bs-btn-font-weight:400;--bs-btn-color:var(--bs-link-color);--bs-btn-bg:transparent;--bs-btn-border-color:transparent;--bs-btn-hover-color:var(--bs-link-hover-color);--bs-btn-hover-border-color:transparent;--bs-btn-active-color:var(--bs-link-hover-color);--bs-btn-active-border-color:transparent;--bs-btn-disabled-color:#6c757d;--bs-btn-disabled-border-color:transparent;--bs-btn-box-shadow:none;--bs-btn-focus-shadow-rgb:49,132,253;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-group-lg>.btn,.btn-lg{--bs-btn-padding-y:0.5rem;--bs-btn-padding-x:1rem;--bs-btn-font-size:1.25rem;--bs-btn-border-radius:0.5rem}.btn-group-sm>.btn,.btn-sm{--bs-btn-padding-y:0.25rem;--bs-btn-padding-x:0.5rem;--bs-btn-font-size:0.875rem;--bs-btn-border-radius:0.25rem}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion:reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media (prefers-reduced-motion:reduce){.collapsing.collapse-horizontal{transition:none}}.dropdown,.dropdown-center,.dropend,.dropstart,.dropup,.dropup-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty::after{margin-left:0}.dropdown-menu{--bs-dropdown-zindex:1000;--bs-dropdown-min-width:10rem;--bs-dropdown-padding-x:0;--bs-dropdown-padding-y:0.5rem;--bs-dropdown-spacer:0.125rem;--bs-dropdown-font-size:1rem;--bs-dropdown-color:#212529;--bs-dropdown-bg:#fff;--bs-dropdown-border-color:var(--bs-border-color-translucent);--bs-dropdown-border-radius:0.375rem;--bs-dropdown-border-width:1px;--bs-dropdown-inner-border-radius:calc(0.375rem - 1px);--bs-dropdown-divider-bg:var(--bs-border-color-translucent);--bs-dropdown-divider-margin-y:0.5rem;--bs-dropdown-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-dropdown-link-color:#212529;--bs-dropdown-link-hover-color:#1e2125;--bs-dropdown-link-hover-bg:#e9ecef;--bs-dropdown-link-active-color:#fff;--bs-dropdown-link-active-bg:#0d6efd;--bs-dropdown-link-disabled-color:#adb5bd;--bs-dropdown-item-padding-x:1rem;--bs-dropdown-item-padding-y:0.25rem;--bs-dropdown-header-color:#6c757d;--bs-dropdown-header-padding-x:1rem;--bs-dropdown-header-padding-y:0.5rem;position:absolute;z-index:var(--bs-dropdown-zindex);display:none;min-width:var(--bs-dropdown-min-width);padding:var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);margin:0;font-size:var(--bs-dropdown-font-size);color:var(--bs-dropdown-color);text-align:left;list-style:none;background-color:var(--bs-dropdown-bg);background-clip:padding-box;border:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);border-radius:var(--bs-dropdown-border-radius)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--bs-dropdown-spacer)}.dropdown-menu-start{--bs-position:start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position:end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width:576px){.dropdown-menu-sm-start{--bs-position:start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position:end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width:768px){.dropdown-menu-md-start{--bs-position:start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position:end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width:992px){.dropdown-menu-lg-start{--bs-position:start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position:end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width:1200px){.dropdown-menu-xl-start{--bs-position:start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position:end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width:1400px){.dropdown-menu-xxl-start{--bs-position:start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position:end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--bs-dropdown-spacer)}.dropup .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty::after{margin-left:0}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--bs-dropdown-spacer)}.dropend .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropend .dropdown-toggle:empty::after{margin-left:0}.dropend .dropdown-toggle::after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--bs-dropdown-spacer)}.dropstart .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropstart .dropdown-toggle::after{display:none}.dropstart .dropdown-toggle::before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropstart .dropdown-toggle:empty::after{margin-left:0}.dropstart .dropdown-toggle::before{vertical-align:0}.dropdown-divider{height:0;margin:var(--bs-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--bs-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--bs-dropdown-link-color);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:focus,.dropdown-item:hover{color:var(--bs-dropdown-link-hover-color);background-color:var(--bs-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--bs-dropdown-link-active-color);text-decoration:none;background-color:var(--bs-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--bs-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--bs-dropdown-header-padding-y) var(--bs-dropdown-header-padding-x);margin-bottom:0;font-size:.875rem;color:var(--bs-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);color:var(--bs-dropdown-link-color)}.dropdown-menu-dark{--bs-dropdown-color:#dee2e6;--bs-dropdown-bg:#343a40;--bs-dropdown-border-color:var(--bs-border-color-translucent);--bs-dropdown-box-shadow: ;--bs-dropdown-link-color:#dee2e6;--bs-dropdown-link-hover-color:#fff;--bs-dropdown-divider-bg:var(--bs-border-color-translucent);--bs-dropdown-link-hover-bg:rgba(255, 255, 255, 0.15);--bs-dropdown-link-active-color:#fff;--bs-dropdown-link-active-bg:#0d6efd;--bs-dropdown-link-disabled-color:#adb5bd;--bs-dropdown-header-color:#adb5bd}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;flex:1 1 auto}.btn-group-vertical>.btn-check:checked+.btn,.btn-group-vertical>.btn-check:focus+.btn,.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn-check:checked+.btn,.btn-group>.btn-check:focus+.btn,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group{border-radius:.375rem}.btn-group>.btn-group:not(:first-child),.btn-group>:not(.btn-check:first-child)+.btn{margin-left:-1px}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn.dropdown-toggle-split:first-child,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:nth-child(n+3),.btn-group>:not(.btn-check)+.btn{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split::after,.dropend .dropdown-toggle-split::after,.dropup .dropdown-toggle-split::after{margin-left:0}.dropstart .dropdown-toggle-split::before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn-group:not(:first-child),.btn-group-vertical>.btn:not(:first-child){margin-top:-1px}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn~.btn{border-top-left-radius:0;border-top-right-radius:0}.nav{--bs-nav-link-padding-x:1rem;--bs-nav-link-padding-y:0.5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color:var(--bs-link-color);--bs-nav-link-hover-color:var(--bs-link-hover-color);--bs-nav-link-disabled-color:#6c757d;display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);font-size:var(--bs-nav-link-font-size);font-weight:var(--bs-nav-link-font-weight);color:var(--bs-nav-link-color);text-decoration:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}@media (prefers-reduced-motion:reduce){.nav-link{transition:none}}.nav-link:focus,.nav-link:hover{color:var(--bs-nav-link-hover-color)}.nav-link.disabled{color:var(--bs-nav-link-disabled-color);pointer-events:none;cursor:default}.nav-tabs{--bs-nav-tabs-border-width:1px;--bs-nav-tabs-border-color:#dee2e6;--bs-nav-tabs-border-radius:0.375rem;--bs-nav-tabs-link-hover-border-color:#e9ecef #e9ecef #dee2e6;--bs-nav-tabs-link-active-color:#495057;--bs-nav-tabs-link-active-bg:#fff;--bs-nav-tabs-link-active-border-color:#dee2e6 #dee2e6 #fff;border-bottom:var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color)}.nav-tabs .nav-link{margin-bottom:calc(-1 * var(--bs-nav-tabs-border-width));background:0 0;border:var(--bs-nav-tabs-border-width) solid transparent;border-top-left-radius:var(--bs-nav-tabs-border-radius);border-top-right-radius:var(--bs-nav-tabs-border-radius)}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{isolation:isolate;border-color:var(--bs-nav-tabs-link-hover-border-color)}.nav-tabs .nav-link.disabled,.nav-tabs .nav-link:disabled{color:var(--bs-nav-link-disabled-color);background-color:transparent;border-color:transparent}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}.nav-tabs .dropdown-menu{margin-top:calc(-1 * var(--bs-nav-tabs-border-width));border-top-left-radius:0;border-top-right-radius:0}.nav-pills{--bs-nav-pills-border-radius:0.375rem;--bs-nav-pills-link-active-color:#fff;--bs-nav-pills-link-active-bg:#0d6efd}.nav-pills .nav-link{background:0 0;border:0;border-radius:var(--bs-nav-pills-border-radius)}.nav-pills .nav-link:disabled{color:var(--bs-nav-link-disabled-color);background-color:transparent;border-color:transparent}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:var(--bs-nav-pills-link-active-color);background-color:var(--bs-nav-pills-link-active-bg)}.nav-fill .nav-item,.nav-fill>.nav-link{flex:1 1 auto;text-align:center}.nav-justified .nav-item,.nav-justified>.nav-link{flex-basis:0;flex-grow:1;text-align:center}.nav-fill .nav-item .nav-link,.nav-justified .nav-item .nav-link{width:100%}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{--bs-navbar-padding-x:0;--bs-navbar-padding-y:0.5rem;--bs-navbar-color:rgba(0, 0, 0, 0.55);--bs-navbar-hover-color:rgba(0, 0, 0, 0.7);--bs-navbar-disabled-color:rgba(0, 0, 0, 0.3);--bs-navbar-active-color:rgba(0, 0, 0, 0.9);--bs-navbar-brand-padding-y:0.3125rem;--bs-navbar-brand-margin-end:1rem;--bs-navbar-brand-font-size:1.25rem;--bs-navbar-brand-color:rgba(0, 0, 0, 0.9);--bs-navbar-brand-hover-color:rgba(0, 0, 0, 0.9);--bs-navbar-nav-link-padding-x:0.5rem;--bs-navbar-toggler-padding-y:0.25rem;--bs-navbar-toggler-padding-x:0.75rem;--bs-navbar-toggler-font-size:1.25rem;--bs-navbar-toggler-icon-bg:url('+A+");--bs-navbar-toggler-border-color:rgba(0, 0, 0, 0.1);--bs-navbar-toggler-border-radius:0.375rem;--bs-navbar-toggler-focus-width:0.25rem;--bs-navbar-toggler-transition:box-shadow 0.15s ease-in-out;position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:var(--bs-navbar-padding-y) var(--bs-navbar-padding-x)}.navbar>.container,.navbar>.container-fluid,.navbar>.container-lg,.navbar>.container-md,.navbar>.container-sm,.navbar>.container-xl,.navbar>.container-xxl{display:flex;flex-wrap:inherit;align-items:center;justify-content:space-between}.navbar-brand{padding-top:var(--bs-navbar-brand-padding-y);padding-bottom:var(--bs-navbar-brand-padding-y);margin-right:var(--bs-navbar-brand-margin-end);font-size:var(--bs-navbar-brand-font-size);color:var(--bs-navbar-brand-color);text-decoration:none;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{color:var(--bs-navbar-brand-hover-color)}.navbar-nav{--bs-nav-link-padding-x:0;--bs-nav-link-padding-y:0.5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color:var(--bs-navbar-color);--bs-nav-link-hover-color:var(--bs-navbar-hover-color);--bs-nav-link-disabled-color:var(--bs-navbar-disabled-color);display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link.active,.navbar-nav .show>.nav-link{color:var(--bs-navbar-active-color)}.navbar-nav .dropdown-menu{position:static}.navbar-text{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-navbar-color)}.navbar-text a,.navbar-text a:focus,.navbar-text a:hover{color:var(--bs-navbar-active-color)}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);font-size:var(--bs-navbar-toggler-font-size);line-height:1;color:var(--bs-navbar-color);background-color:transparent;border:var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);border-radius:var(--bs-navbar-toggler-border-radius);transition:var(--bs-navbar-toggler-transition)}@media (prefers-reduced-motion:reduce){.navbar-toggler{transition:none}}.navbar-toggler:hover{text-decoration:none}.navbar-toggler:focus{text-decoration:none;outline:0;box-shadow:0 0 0 var(--bs-navbar-toggler-focus-width)}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;background-image:var(--bs-navbar-toggler-icon-bg);background-repeat:no-repeat;background-position:center;background-size:100%}.navbar-nav-scroll{max-height:var(--bs-scroll-height,75vh);overflow-y:auto}@media (min-width:576px){.navbar-expand-sm{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}.navbar-expand-sm .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-sm .offcanvas .offcanvas-header{display:none}.navbar-expand-sm .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:768px){.navbar-expand-md{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}.navbar-expand-md .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-md .offcanvas .offcanvas-header{display:none}.navbar-expand-md .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:992px){.navbar-expand-lg{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}.navbar-expand-lg .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-lg .offcanvas .offcanvas-header{display:none}.navbar-expand-lg .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:1200px){.navbar-expand-xl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}.navbar-expand-xl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xl .offcanvas .offcanvas-header{display:none}.navbar-expand-xl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:1400px){.navbar-expand-xxl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xxl .navbar-nav{flex-direction:row}.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xxl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xxl .navbar-nav-scroll{overflow:visible}.navbar-expand-xxl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xxl .navbar-toggler{display:none}.navbar-expand-xxl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xxl .offcanvas .offcanvas-header{display:none}.navbar-expand-xxl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}.navbar-expand{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-expand .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand .offcanvas .offcanvas-header{display:none}.navbar-expand .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}.navbar-dark{--bs-navbar-color:rgba(255, 255, 255, 0.55);--bs-navbar-hover-color:rgba(255, 255, 255, 0.75);--bs-navbar-disabled-color:rgba(255, 255, 255, 0.25);--bs-navbar-active-color:#fff;--bs-navbar-brand-color:#fff;--bs-navbar-brand-hover-color:#fff;--bs-navbar-toggler-border-color:rgba(255, 255, 255, 0.1);--bs-navbar-toggler-icon-bg:url("+D+")}.card{--bs-card-spacer-y:1rem;--bs-card-spacer-x:1rem;--bs-card-title-spacer-y:0.5rem;--bs-card-border-width:1px;--bs-card-border-color:var(--bs-border-color-translucent);--bs-card-border-radius:0.375rem;--bs-card-box-shadow: ;--bs-card-inner-border-radius:calc(0.375rem - 1px);--bs-card-cap-padding-y:0.5rem;--bs-card-cap-padding-x:1rem;--bs-card-cap-bg:rgba(0, 0, 0, 0.03);--bs-card-cap-color: ;--bs-card-height: ;--bs-card-color: ;--bs-card-bg:#fff;--bs-card-img-overlay-padding:1rem;--bs-card-group-margin:0.75rem;position:relative;display:flex;flex-direction:column;min-width:0;height:var(--bs-card-height);word-wrap:break-word;background-color:var(--bs-card-bg);background-clip:border-box;border:var(--bs-card-border-width) solid var(--bs-card-border-color);border-radius:var(--bs-card-border-radius)}.card>hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0;border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{flex:1 1 auto;padding:var(--bs-card-spacer-y) var(--bs-card-spacer-x);color:var(--bs-card-color)}.card-title{margin-bottom:var(--bs-card-title-spacer-y)}.card-subtitle{margin-top:calc(-.5 * var(--bs-card-title-spacer-y));margin-bottom:0}.card-text:last-child{margin-bottom:0}.card-link+.card-link{margin-left:var(--bs-card-spacer-x)}.card-header{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);margin-bottom:0;color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-bottom:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-header:first-child{border-radius:var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0}.card-footer{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-top:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-footer:last-child{border-radius:0 0 var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius)}.card-header-tabs{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-bottom:calc(-1 * var(--bs-card-cap-padding-y));margin-left:calc(-.5 * var(--bs-card-cap-padding-x));border-bottom:0}.card-header-tabs .nav-link.active{background-color:var(--bs-card-bg);border-bottom-color:var(--bs-card-bg)}.card-header-pills{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-left:calc(-.5 * var(--bs-card-cap-padding-x))}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:var(--bs-card-img-overlay-padding);border-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom,.card-img-top{width:100%}.card-img,.card-img-top{border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom{border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card-group>.card{margin-bottom:var(--bs-card-group-margin)}@media (min-width:576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-header,.card-group>.card:not(:last-child) .card-img-top{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-footer,.card-group>.card:not(:last-child) .card-img-bottom{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-header,.card-group>.card:not(:first-child) .card-img-top{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-footer,.card-group>.card:not(:first-child) .card-img-bottom{border-bottom-left-radius:0}}.accordion{--bs-accordion-color:#212529;--bs-accordion-bg:#fff;--bs-accordion-transition:color 0.15s ease-in-out,background-color 0.15s ease-in-out,border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out,border-radius 0.15s ease;--bs-accordion-border-color:var(--bs-border-color);--bs-accordion-border-width:1px;--bs-accordion-border-radius:0.375rem;--bs-accordion-inner-border-radius:calc(0.375rem - 1px);--bs-accordion-btn-padding-x:1.25rem;--bs-accordion-btn-padding-y:1rem;--bs-accordion-btn-color:#212529;--bs-accordion-btn-bg:var(--bs-accordion-bg);--bs-accordion-btn-icon:url("+j+");--bs-accordion-btn-icon-width:1.25rem;--bs-accordion-btn-icon-transform:rotate(-180deg);--bs-accordion-btn-icon-transition:transform 0.2s ease-in-out;--bs-accordion-btn-active-icon:url("+I+');--bs-accordion-btn-focus-border-color:#86b7fe;--bs-accordion-btn-focus-box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);--bs-accordion-body-padding-x:1.25rem;--bs-accordion-body-padding-y:1rem;--bs-accordion-active-color:#0c63e4;--bs-accordion-active-bg:#e7f1ff}.accordion-button{position:relative;display:flex;align-items:center;width:100%;padding:var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);font-size:1rem;color:var(--bs-accordion-btn-color);text-align:left;background-color:var(--bs-accordion-btn-bg);border:0;border-radius:0;overflow-anchor:none;transition:var(--bs-accordion-transition)}@media (prefers-reduced-motion:reduce){.accordion-button{transition:none}}.accordion-button:not(.collapsed){color:var(--bs-accordion-active-color);background-color:var(--bs-accordion-active-bg);box-shadow:inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color)}.accordion-button:not(.collapsed)::after{background-image:var(--bs-accordion-btn-active-icon);transform:var(--bs-accordion-btn-icon-transform)}.accordion-button::after{flex-shrink:0;width:var(--bs-accordion-btn-icon-width);height:var(--bs-accordion-btn-icon-width);margin-left:auto;content:"";background-image:var(--bs-accordion-btn-icon);background-repeat:no-repeat;background-size:var(--bs-accordion-btn-icon-width);transition:var(--bs-accordion-btn-icon-transition)}@media (prefers-reduced-motion:reduce){.accordion-button::after{transition:none}}.accordion-button:hover{z-index:2}.accordion-button:focus{z-index:3;border-color:var(--bs-accordion-btn-focus-border-color);outline:0;box-shadow:var(--bs-accordion-btn-focus-box-shadow)}.accordion-header{margin-bottom:0}.accordion-item{color:var(--bs-accordion-color);background-color:var(--bs-accordion-bg);border:var(--bs-accordion-border-width) solid var(--bs-accordion-border-color)}.accordion-item:first-of-type{border-top-left-radius:var(--bs-accordion-border-radius);border-top-right-radius:var(--bs-accordion-border-radius)}.accordion-item:first-of-type .accordion-button{border-top-left-radius:var(--bs-accordion-inner-border-radius);border-top-right-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:not(:first-of-type){border-top:0}.accordion-item:last-of-type{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-item:last-of-type .accordion-button.collapsed{border-bottom-right-radius:var(--bs-accordion-inner-border-radius);border-bottom-left-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:last-of-type .accordion-collapse{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-body{padding:var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x)}.accordion-flush .accordion-collapse{border-width:0}.accordion-flush .accordion-item{border-right:0;border-left:0;border-radius:0}.accordion-flush .accordion-item:first-child{border-top:0}.accordion-flush .accordion-item:last-child{border-bottom:0}.accordion-flush .accordion-item .accordion-button,.accordion-flush .accordion-item .accordion-button.collapsed{border-radius:0}.breadcrumb{--bs-breadcrumb-padding-x:0;--bs-breadcrumb-padding-y:0;--bs-breadcrumb-margin-bottom:1rem;--bs-breadcrumb-bg: ;--bs-breadcrumb-border-radius: ;--bs-breadcrumb-divider-color:#6c757d;--bs-breadcrumb-item-padding-x:0.5rem;--bs-breadcrumb-item-active-color:#6c757d;display:flex;flex-wrap:wrap;padding:var(--bs-breadcrumb-padding-y) var(--bs-breadcrumb-padding-x);margin-bottom:var(--bs-breadcrumb-margin-bottom);font-size:var(--bs-breadcrumb-font-size);list-style:none;background-color:var(--bs-breadcrumb-bg);border-radius:var(--bs-breadcrumb-border-radius)}.breadcrumb-item+.breadcrumb-item{padding-left:var(--bs-breadcrumb-item-padding-x)}.breadcrumb-item+.breadcrumb-item::before{float:left;padding-right:var(--bs-breadcrumb-item-padding-x);color:var(--bs-breadcrumb-divider-color);content:var(--bs-breadcrumb-divider, "/")}.breadcrumb-item.active{color:var(--bs-breadcrumb-item-active-color)}.pagination{--bs-pagination-padding-x:0.75rem;--bs-pagination-padding-y:0.375rem;--bs-pagination-font-size:1rem;--bs-pagination-color:var(--bs-link-color);--bs-pagination-bg:#fff;--bs-pagination-border-width:1px;--bs-pagination-border-color:#dee2e6;--bs-pagination-border-radius:0.375rem;--bs-pagination-hover-color:var(--bs-link-hover-color);--bs-pagination-hover-bg:#e9ecef;--bs-pagination-hover-border-color:#dee2e6;--bs-pagination-focus-color:var(--bs-link-hover-color);--bs-pagination-focus-bg:#e9ecef;--bs-pagination-focus-box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);--bs-pagination-active-color:#fff;--bs-pagination-active-bg:#0d6efd;--bs-pagination-active-border-color:#0d6efd;--bs-pagination-disabled-color:#6c757d;--bs-pagination-disabled-bg:#fff;--bs-pagination-disabled-border-color:#dee2e6;display:flex;padding-left:0;list-style:none}.page-link{position:relative;display:block;padding:var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);font-size:var(--bs-pagination-font-size);color:var(--bs-pagination-color);text-decoration:none;background-color:var(--bs-pagination-bg);border:var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.page-link{transition:none}}.page-link:hover{z-index:2;color:var(--bs-pagination-hover-color);background-color:var(--bs-pagination-hover-bg);border-color:var(--bs-pagination-hover-border-color)}.page-link:focus{z-index:3;color:var(--bs-pagination-focus-color);background-color:var(--bs-pagination-focus-bg);outline:0;box-shadow:var(--bs-pagination-focus-box-shadow)}.active>.page-link,.page-link.active{z-index:3;color:var(--bs-pagination-active-color);background-color:var(--bs-pagination-active-bg);border-color:var(--bs-pagination-active-border-color)}.disabled>.page-link,.page-link.disabled{color:var(--bs-pagination-disabled-color);pointer-events:none;background-color:var(--bs-pagination-disabled-bg);border-color:var(--bs-pagination-disabled-border-color)}.page-item:not(:first-child) .page-link{margin-left:-1px}.page-item:first-child .page-link{border-top-left-radius:var(--bs-pagination-border-radius);border-bottom-left-radius:var(--bs-pagination-border-radius)}.page-item:last-child .page-link{border-top-right-radius:var(--bs-pagination-border-radius);border-bottom-right-radius:var(--bs-pagination-border-radius)}.pagination-lg{--bs-pagination-padding-x:1.5rem;--bs-pagination-padding-y:0.75rem;--bs-pagination-font-size:1.25rem;--bs-pagination-border-radius:0.5rem}.pagination-sm{--bs-pagination-padding-x:0.5rem;--bs-pagination-padding-y:0.25rem;--bs-pagination-font-size:0.875rem;--bs-pagination-border-radius:0.25rem}.badge{--bs-badge-padding-x:0.65em;--bs-badge-padding-y:0.35em;--bs-badge-font-size:0.75em;--bs-badge-font-weight:700;--bs-badge-color:#fff;--bs-badge-border-radius:0.375rem;display:inline-block;padding:var(--bs-badge-padding-y) var(--bs-badge-padding-x);font-size:var(--bs-badge-font-size);font-weight:var(--bs-badge-font-weight);line-height:1;color:var(--bs-badge-color);text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:var(--bs-badge-border-radius)}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.alert{--bs-alert-bg:transparent;--bs-alert-padding-x:1rem;--bs-alert-padding-y:1rem;--bs-alert-margin-bottom:1rem;--bs-alert-color:inherit;--bs-alert-border-color:transparent;--bs-alert-border:1px solid var(--bs-alert-border-color);--bs-alert-border-radius:0.375rem;position:relative;padding:var(--bs-alert-padding-y) var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius)}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:3rem}.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:1.25rem 1rem}.alert-primary{--bs-alert-color:#084298;--bs-alert-bg:#cfe2ff;--bs-alert-border-color:#b6d4fe}.alert-primary .alert-link{color:#06357a}.alert-secondary{--bs-alert-color:#41464b;--bs-alert-bg:#e2e3e5;--bs-alert-border-color:#d3d6d8}.alert-secondary .alert-link{color:#34383c}.alert-success{--bs-alert-color:#0f5132;--bs-alert-bg:#d1e7dd;--bs-alert-border-color:#badbcc}.alert-success .alert-link{color:#0c4128}.alert-info{--bs-alert-color:#055160;--bs-alert-bg:#cff4fc;--bs-alert-border-color:#b6effb}.alert-info .alert-link{color:#04414d}.alert-warning{--bs-alert-color:#664d03;--bs-alert-bg:#fff3cd;--bs-alert-border-color:#ffecb5}.alert-warning .alert-link{color:#523e02}.alert-danger{--bs-alert-color:#842029;--bs-alert-bg:#f8d7da;--bs-alert-border-color:#f5c2c7}.alert-danger .alert-link{color:#6a1a21}.alert-light{--bs-alert-color:#636464;--bs-alert-bg:#fefefe;--bs-alert-border-color:#fdfdfe}.alert-light .alert-link{color:#4f5050}.alert-dark{--bs-alert-color:#141619;--bs-alert-bg:#d3d3d4;--bs-alert-border-color:#bcbebf}.alert-dark .alert-link{color:#101214}@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.progress{--bs-progress-height:1rem;--bs-progress-font-size:0.75rem;--bs-progress-bg:#e9ecef;--bs-progress-border-radius:0.375rem;--bs-progress-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-progress-bar-color:#fff;--bs-progress-bar-bg:#0d6efd;--bs-progress-bar-transition:width 0.6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}.progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media (prefers-reduced-motion:reduce){.progress-bar-animated{animation:none}}.list-group{--bs-list-group-color:#212529;--bs-list-group-bg:#fff;--bs-list-group-border-color:rgba(0, 0, 0, 0.125);--bs-list-group-border-width:1px;--bs-list-group-border-radius:0.375rem;--bs-list-group-item-padding-x:1rem;--bs-list-group-item-padding-y:0.5rem;--bs-list-group-action-color:#495057;--bs-list-group-action-hover-color:#495057;--bs-list-group-action-hover-bg:#f8f9fa;--bs-list-group-action-active-color:#212529;--bs-list-group-action-active-bg:#e9ecef;--bs-list-group-disabled-color:#6c757d;--bs-list-group-disabled-bg:#fff;--bs-list-group-active-color:#fff;--bs-list-group-active-bg:#0d6efd;--bs-list-group-active-border-color:#0d6efd;display:flex;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:var(--bs-list-group-border-radius)}.list-group-numbered{list-style-type:none;counter-reset:section}.list-group-numbered>.list-group-item::before{content:counters(section, ".") ". ";counter-increment:section}.list-group-item-action{width:100%;color:var(--bs-list-group-action-color);text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{z-index:1;color:var(--bs-list-group-action-hover-color);text-decoration:none;background-color:var(--bs-list-group-action-hover-bg)}.list-group-item-action:active{color:var(--bs-list-group-action-active-color);background-color:var(--bs-list-group-action-active-bg)}.list-group-item{position:relative;display:block;padding:var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);color:var(--bs-list-group-color);text-decoration:none;background-color:var(--bs-list-group-bg);border:var(--bs-list-group-border-width) solid var(--bs-list-group-border-color)}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{color:var(--bs-list-group-disabled-color);pointer-events:none;background-color:var(--bs-list-group-disabled-bg)}.list-group-item.active{z-index:2;color:var(--bs-list-group-active-color);background-color:var(--bs-list-group-active-bg);border-color:var(--bs-list-group-active-border-color)}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:calc(-1 * var(--bs-list-group-border-width));border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}@media (min-width:576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1400px){.list-group-horizontal-xxl{flex-direction:row}.list-group-horizontal-xxl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xxl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xxl>.list-group-item.active{margin-top:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 var(--bs-list-group-border-width)}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{color:#084298;background-color:#cfe2ff}.list-group-item-primary.list-group-item-action:focus,.list-group-item-primary.list-group-item-action:hover{color:#084298;background-color:#bacbe6}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#084298;border-color:#084298}.list-group-item-secondary{color:#41464b;background-color:#e2e3e5}.list-group-item-secondary.list-group-item-action:focus,.list-group-item-secondary.list-group-item-action:hover{color:#41464b;background-color:#cbccce}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#41464b;border-color:#41464b}.list-group-item-success{color:#0f5132;background-color:#d1e7dd}.list-group-item-success.list-group-item-action:focus,.list-group-item-success.list-group-item-action:hover{color:#0f5132;background-color:#bcd0c7}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#0f5132;border-color:#0f5132}.list-group-item-info{color:#055160;background-color:#cff4fc}.list-group-item-info.list-group-item-action:focus,.list-group-item-info.list-group-item-action:hover{color:#055160;background-color:#badce3}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#055160;border-color:#055160}.list-group-item-warning{color:#664d03;background-color:#fff3cd}.list-group-item-warning.list-group-item-action:focus,.list-group-item-warning.list-group-item-action:hover{color:#664d03;background-color:#e6dbb9}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#664d03;border-color:#664d03}.list-group-item-danger{color:#842029;background-color:#f8d7da}.list-group-item-danger.list-group-item-action:focus,.list-group-item-danger.list-group-item-action:hover{color:#842029;background-color:#dfc2c4}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#842029;border-color:#842029}.list-group-item-light{color:#636464;background-color:#fefefe}.list-group-item-light.list-group-item-action:focus,.list-group-item-light.list-group-item-action:hover{color:#636464;background-color:#e5e5e5}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#636464;border-color:#636464}.list-group-item-dark{color:#141619;background-color:#d3d3d4}.list-group-item-dark.list-group-item-action:focus,.list-group-item-dark.list-group-item-action:hover{color:#141619;background-color:#bebebf}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#141619;border-color:#141619}.btn-close{box-sizing:content-box;width:1em;height:1em;padding:.25em .25em;color:#000;background:transparent url('+F+') center/1em auto no-repeat;border:0;border-radius:.375rem;opacity:.5}.btn-close:hover{color:#000;text-decoration:none;opacity:.75}.btn-close:focus{outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25);opacity:1}.btn-close.disabled,.btn-close:disabled{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:.25}.btn-close-white{filter:invert(1) grayscale(100%) brightness(200%)}.toast{--bs-toast-zindex:1090;--bs-toast-padding-x:0.75rem;--bs-toast-padding-y:0.5rem;--bs-toast-spacing:1.5rem;--bs-toast-max-width:350px;--bs-toast-font-size:0.875rem;--bs-toast-color: ;--bs-toast-bg:rgba(255, 255, 255, 0.85);--bs-toast-border-width:1px;--bs-toast-border-color:var(--bs-border-color-translucent);--bs-toast-border-radius:0.375rem;--bs-toast-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-toast-header-color:#6c757d;--bs-toast-header-bg:rgba(255, 255, 255, 0.85);--bs-toast-header-border-color:rgba(0, 0, 0, 0.05);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}.toast.showing{opacity:0}.toast:not(.show){display:none}.toast-container{--bs-toast-zindex:1090;position:absolute;z-index:var(--bs-toast-zindex);width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:100%;pointer-events:none}.toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}.toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}.toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}.toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}.modal{--bs-modal-zindex:1055;--bs-modal-width:500px;--bs-modal-padding:1rem;--bs-modal-margin:0.5rem;--bs-modal-color: ;--bs-modal-bg:#fff;--bs-modal-border-color:var(--bs-border-color-translucent);--bs-modal-border-width:1px;--bs-modal-border-radius:0.5rem;--bs-modal-box-shadow:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-modal-inner-border-radius:calc(0.5rem - 1px);--bs-modal-header-padding-x:1rem;--bs-modal-header-padding-y:1rem;--bs-modal-header-padding:1rem 1rem;--bs-modal-header-border-color:var(--bs-border-color);--bs-modal-header-border-width:1px;--bs-modal-title-line-height:1.5;--bs-modal-footer-gap:0.5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color:var(--bs-border-color);--bs-modal-footer-border-width:1px;position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translate(0,-50px)}@media (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}.modal-backdrop{--bs-backdrop-zindex:1050;--bs-backdrop-bg:#000;--bs-backdrop-opacity:0.5;position:fixed;top:0;left:0;z-index:var(--bs-backdrop-zindex);width:100vw;height:100vh;background-color:var(--bs-backdrop-bg)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--bs-backdrop-opacity)}.modal-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin:calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto}.modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media (min-width:576px){.modal{--bs-modal-margin:1.75rem;--bs-modal-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}.modal-sm{--bs-modal-width:300px}}@media (min-width:992px){.modal-lg,.modal-xl{--bs-modal-width:800px}}@media (min-width:1200px){.modal-xl{--bs-modal-width:1140px}}.modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen .modal-footer,.modal-fullscreen .modal-header{border-radius:0}.modal-fullscreen .modal-body{overflow-y:auto}@media (max-width:575.98px){.modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-sm-down .modal-footer,.modal-fullscreen-sm-down .modal-header{border-radius:0}.modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media (max-width:767.98px){.modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-md-down .modal-footer,.modal-fullscreen-md-down .modal-header{border-radius:0}.modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media (max-width:991.98px){.modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-lg-down .modal-footer,.modal-fullscreen-lg-down .modal-header{border-radius:0}.modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media (max-width:1199.98px){.modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xl-down .modal-footer,.modal-fullscreen-xl-down .modal-header{border-radius:0}.modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media (max-width:1399.98px){.modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xxl-down .modal-footer,.modal-fullscreen-xxl-down .modal-header{border-radius:0}.modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}.tooltip{--bs-tooltip-zindex:1080;--bs-tooltip-max-width:200px;--bs-tooltip-padding-x:0.5rem;--bs-tooltip-padding-y:0.25rem;--bs-tooltip-margin: ;--bs-tooltip-font-size:0.875rem;--bs-tooltip-color:#fff;--bs-tooltip-bg:#000;--bs-tooltip-border-radius:0.375rem;--bs-tooltip-opacity:0.9;--bs-tooltip-arrow-width:0.8rem;--bs-tooltip-arrow-height:0.4rem;z-index:var(--bs-tooltip-zindex);display:block;padding:var(--bs-tooltip-arrow-height);margin:var(--bs-tooltip-margin);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--bs-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--bs-tooltip-arrow-width);height:var(--bs-tooltip-arrow-height)}.tooltip .tooltip-arrow::before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow,.bs-tooltip-top .tooltip-arrow{bottom:0}.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,.bs-tooltip-top .tooltip-arrow::before{top:-1px;border-width:var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-top-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow,.bs-tooltip-end .tooltip-arrow{left:0;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before,.bs-tooltip-end .tooltip-arrow::before{right:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-right-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow,.bs-tooltip-bottom .tooltip-arrow{top:0}.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before,.bs-tooltip-bottom .tooltip-arrow::before{bottom:-1px;border-width:0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-bottom-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow,.bs-tooltip-start .tooltip-arrow{right:0;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before,.bs-tooltip-start .tooltip-arrow::before{left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-left-color:var(--bs-tooltip-bg)}.tooltip-inner{max-width:var(--bs-tooltip-max-width);padding:var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);color:var(--bs-tooltip-color);text-align:center;background-color:var(--bs-tooltip-bg);border-radius:var(--bs-tooltip-border-radius)}.popover{--bs-popover-zindex:1070;--bs-popover-max-width:276px;--bs-popover-font-size:0.875rem;--bs-popover-bg:#fff;--bs-popover-border-width:1px;--bs-popover-border-color:var(--bs-border-color-translucent);--bs-popover-border-radius:0.5rem;--bs-popover-inner-border-radius:calc(0.5rem - 1px);--bs-popover-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-popover-header-padding-x:1rem;--bs-popover-header-padding-y:0.5rem;--bs-popover-header-font-size:1rem;--bs-popover-header-color: ;--bs-popover-header-bg:#f0f0f0;--bs-popover-body-padding-x:1rem;--bs-popover-body-padding-y:1rem;--bs-popover-body-color:#212529;--bs-popover-arrow-width:1rem;--bs-popover-arrow-height:0.5rem;--bs-popover-arrow-border:var(--bs-popover-border-color);z-index:var(--bs-popover-zindex);display:block;max-width:var(--bs-popover-max-width);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-popover-font-size);word-wrap:break-word;background-color:var(--bs-popover-bg);background-clip:padding-box;border:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-radius:var(--bs-popover-border-radius)}.popover .popover-arrow{display:block;width:var(--bs-popover-arrow-width);height:var(--bs-popover-arrow-height)}.popover .popover-arrow::after,.popover .popover-arrow::before{position:absolute;display:block;content:"";border-color:transparent;border-style:solid;border-width:0}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow,.bs-popover-top>.popover-arrow{bottom:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::before,.bs-popover-top>.popover-arrow::after,.bs-popover-top>.popover-arrow::before{border-width:var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::before,.bs-popover-top>.popover-arrow::before{bottom:0;border-top-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::after,.bs-popover-top>.popover-arrow::after{bottom:var(--bs-popover-border-width);border-top-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow,.bs-popover-end>.popover-arrow{left:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::before,.bs-popover-end>.popover-arrow::after,.bs-popover-end>.popover-arrow::before{border-width:calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::before,.bs-popover-end>.popover-arrow::before{left:0;border-right-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::after,.bs-popover-end>.popover-arrow::after{left:var(--bs-popover-border-width);border-right-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow,.bs-popover-bottom>.popover-arrow{top:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::before,.bs-popover-bottom>.popover-arrow::after,.bs-popover-bottom>.popover-arrow::before{border-width:0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::before,.bs-popover-bottom>.popover-arrow::before{top:0;border-bottom-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::after,.bs-popover-bottom>.popover-arrow::after{top:var(--bs-popover-border-width);border-bottom-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=bottom] .popover-header::before,.bs-popover-bottom .popover-header::before{position:absolute;top:0;left:50%;display:block;width:var(--bs-popover-arrow-width);margin-left:calc(-.5 * var(--bs-popover-arrow-width));content:"";border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-header-bg)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow,.bs-popover-start>.popover-arrow{right:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::before,.bs-popover-start>.popover-arrow::after,.bs-popover-start>.popover-arrow::before{border-width:calc(var(--bs-popover-arrow-width) * .5) 0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::before,.bs-popover-start>.popover-arrow::before{right:0;border-left-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::after,.bs-popover-start>.popover-arrow::after{right:var(--bs-popover-border-width);border-left-color:var(--bs-popover-bg)}.popover-header{padding:var(--bs-popover-header-padding-y) var(--bs-popover-header-padding-x);margin-bottom:0;font-size:var(--bs-popover-header-font-size);color:var(--bs-popover-header-color);background-color:var(--bs-popover-header-bg);border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-top-left-radius:var(--bs-popover-inner-border-radius);border-top-right-radius:var(--bs-popover-inner-border-radius)}.popover-header:empty{display:none}.popover-body{padding:var(--bs-popover-body-padding-y) var(--bs-popover-body-padding-x);color:var(--bs-popover-body-color)}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner::after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion:reduce){.carousel-item{transition:none}}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block}.active.carousel-item-end,.carousel-item-next:not(.carousel-item-start){transform:translateX(100%)}.active.carousel-item-start,.carousel-item-prev:not(.carousel-item-end){transform:translateX(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item-next.carousel-item-start,.carousel-fade .carousel-item-prev.carousel-item-end,.carousel-fade .carousel-item.active{z-index:1;opacity:1}.carousel-fade .active.carousel-item-end,.carousel-fade .active.carousel-item-start{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion:reduce){.carousel-fade .active.carousel-item-end,.carousel-fade .active.carousel-item-start{transition:none}}.carousel-control-next,.carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;padding:0;color:#fff;text-align:center;background:0 0;border:0;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion:reduce){.carousel-control-next,.carousel-control-prev{transition:none}}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{display:inline-block;width:2rem;height:2rem;background-repeat:no-repeat;background-position:50%;background-size:100% 100%}.carousel-control-prev-icon{background-image:url('+B+")}.carousel-control-next-icon{background-image:url("+U+')}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:2;display:flex;justify-content:center;padding:0;margin-right:15%;margin-bottom:1rem;margin-left:15%;list-style:none}.carousel-indicators [data-bs-target]{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;padding:0;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border:0;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion:reduce){.carousel-indicators [data-bs-target]{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:1.25rem;left:15%;padding-top:1.25rem;padding-bottom:1.25rem;color:#fff;text-align:center}.carousel-dark .carousel-control-next-icon,.carousel-dark .carousel-control-prev-icon{filter:invert(1) grayscale(100)}.carousel-dark .carousel-indicators [data-bs-target]{background-color:#000}.carousel-dark .carousel-caption{color:#000}.spinner-border,.spinner-grow{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-border-width:0.25em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem;--bs-spinner-border-width:0.2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem}@media (prefers-reduced-motion:reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed:1.5s}}.offcanvas,.offcanvas-lg,.offcanvas-md,.offcanvas-sm,.offcanvas-xl,.offcanvas-xxl{--bs-offcanvas-zindex:1045;--bs-offcanvas-width:400px;--bs-offcanvas-height:30vh;--bs-offcanvas-padding-x:1rem;--bs-offcanvas-padding-y:1rem;--bs-offcanvas-color: ;--bs-offcanvas-bg:#fff;--bs-offcanvas-border-width:1px;--bs-offcanvas-border-color:var(--bs-border-color-translucent);--bs-offcanvas-box-shadow:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075)}@media (max-width:575.98px){.offcanvas-sm{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width:575.98px) and (prefers-reduced-motion:reduce){.offcanvas-sm{transition:none}}@media (max-width:575.98px){.offcanvas-sm.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}}@media (max-width:575.98px){.offcanvas-sm.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}}@media (max-width:575.98px){.offcanvas-sm.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width:575.98px){.offcanvas-sm.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width:575.98px){.offcanvas-sm.show:not(.hiding),.offcanvas-sm.showing{transform:none}}@media (max-width:575.98px){.offcanvas-sm.hiding,.offcanvas-sm.show,.offcanvas-sm.showing{visibility:visible}}@media (min-width:576px){.offcanvas-sm{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-sm .offcanvas-header{display:none}.offcanvas-sm .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:767.98px){.offcanvas-md{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width:767.98px) and (prefers-reduced-motion:reduce){.offcanvas-md{transition:none}}@media (max-width:767.98px){.offcanvas-md.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}}@media (max-width:767.98px){.offcanvas-md.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}}@media (max-width:767.98px){.offcanvas-md.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width:767.98px){.offcanvas-md.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width:767.98px){.offcanvas-md.show:not(.hiding),.offcanvas-md.showing{transform:none}}@media (max-width:767.98px){.offcanvas-md.hiding,.offcanvas-md.show,.offcanvas-md.showing{visibility:visible}}@media (min-width:768px){.offcanvas-md{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-md .offcanvas-header{display:none}.offcanvas-md .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:991.98px){.offcanvas-lg{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width:991.98px) and (prefers-reduced-motion:reduce){.offcanvas-lg{transition:none}}@media (max-width:991.98px){.offcanvas-lg.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}}@media (max-width:991.98px){.offcanvas-lg.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}}@media (max-width:991.98px){.offcanvas-lg.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width:991.98px){.offcanvas-lg.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width:991.98px){.offcanvas-lg.show:not(.hiding),.offcanvas-lg.showing{transform:none}}@media (max-width:991.98px){.offcanvas-lg.hiding,.offcanvas-lg.show,.offcanvas-lg.showing{visibility:visible}}@media (min-width:992px){.offcanvas-lg{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-lg .offcanvas-header{display:none}.offcanvas-lg .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:1199.98px){.offcanvas-xl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width:1199.98px) and (prefers-reduced-motion:reduce){.offcanvas-xl{transition:none}}@media (max-width:1199.98px){.offcanvas-xl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}}@media (max-width:1199.98px){.offcanvas-xl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}}@media (max-width:1199.98px){.offcanvas-xl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width:1199.98px){.offcanvas-xl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width:1199.98px){.offcanvas-xl.show:not(.hiding),.offcanvas-xl.showing{transform:none}}@media (max-width:1199.98px){.offcanvas-xl.hiding,.offcanvas-xl.show,.offcanvas-xl.showing{visibility:visible}}@media (min-width:1200px){.offcanvas-xl{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-xl .offcanvas-header{display:none}.offcanvas-xl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:1399.98px){.offcanvas-xxl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width:1399.98px) and (prefers-reduced-motion:reduce){.offcanvas-xxl{transition:none}}@media (max-width:1399.98px){.offcanvas-xxl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}}@media (max-width:1399.98px){.offcanvas-xxl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}}@media (max-width:1399.98px){.offcanvas-xxl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width:1399.98px){.offcanvas-xxl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width:1399.98px){.offcanvas-xxl.show:not(.hiding),.offcanvas-xxl.showing{transform:none}}@media (max-width:1399.98px){.offcanvas-xxl.hiding,.offcanvas-xxl.show,.offcanvas-xxl.showing{visibility:visible}}@media (min-width:1400px){.offcanvas-xxl{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-xxl .offcanvas-header{display:none}.offcanvas-xxl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}.offcanvas{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}@media (prefers-reduced-motion:reduce){.offcanvas{transition:none}}.offcanvas.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas.show:not(.hiding),.offcanvas.showing{transform:none}.offcanvas.hiding,.offcanvas.show,.offcanvas.showing{visibility:visible}.offcanvas-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.offcanvas-backdrop.fade{opacity:0}.offcanvas-backdrop.show{opacity:.5}.offcanvas-header{display:flex;align-items:center;justify-content:space-between;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x)}.offcanvas-header .btn-close{padding:calc(var(--bs-offcanvas-padding-y) * .5) calc(var(--bs-offcanvas-padding-x) * .5);margin-top:calc(-.5 * var(--bs-offcanvas-padding-y));margin-right:calc(-.5 * var(--bs-offcanvas-padding-x));margin-bottom:calc(-.5 * var(--bs-offcanvas-padding-y))}.offcanvas-title{margin-bottom:0;line-height:1.5}.offcanvas-body{flex-grow:1;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);overflow-y:auto}.placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.5}.placeholder.btn::before{display:inline-block;content:""}.placeholder-xs{min-height:.6em}.placeholder-sm{min-height:.8em}.placeholder-lg{min-height:1.2em}.placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.2}}.placeholder-wave{-webkit-mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,0.8) 75%,#000 95%);mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,0.8) 75%,#000 95%);-webkit-mask-size:200% 100%;mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{100%{-webkit-mask-position:-200% 0%;mask-position:-200% 0%}}.clearfix::after{display:block;clear:both;content:""}.text-bg-primary{color:#fff!important;background-color:RGBA(13,110,253,var(--bs-bg-opacity,1))!important}.text-bg-secondary{color:#fff!important;background-color:RGBA(108,117,125,var(--bs-bg-opacity,1))!important}.text-bg-success{color:#fff!important;background-color:RGBA(25,135,84,var(--bs-bg-opacity,1))!important}.text-bg-info{color:#000!important;background-color:RGBA(13,202,240,var(--bs-bg-opacity,1))!important}.text-bg-warning{color:#000!important;background-color:RGBA(255,193,7,var(--bs-bg-opacity,1))!important}.text-bg-danger{color:#fff!important;background-color:RGBA(220,53,69,var(--bs-bg-opacity,1))!important}.text-bg-light{color:#000!important;background-color:RGBA(248,249,250,var(--bs-bg-opacity,1))!important}.text-bg-dark{color:#fff!important;background-color:RGBA(33,37,41,var(--bs-bg-opacity,1))!important}.link-primary{color:#0d6efd!important}.link-primary:focus,.link-primary:hover{color:#0a58ca!important}.link-secondary{color:#6c757d!important}.link-secondary:focus,.link-secondary:hover{color:#565e64!important}.link-success{color:#198754!important}.link-success:focus,.link-success:hover{color:#146c43!important}.link-info{color:#0dcaf0!important}.link-info:focus,.link-info:hover{color:#3dd5f3!important}.link-warning{color:#ffc107!important}.link-warning:focus,.link-warning:hover{color:#ffcd39!important}.link-danger{color:#dc3545!important}.link-danger:focus,.link-danger:hover{color:#b02a37!important}.link-light{color:#f8f9fa!important}.link-light:focus,.link-light:hover{color:#f9fafb!important}.link-dark{color:#212529!important}.link-dark:focus,.link-dark:hover{color:#1a1e21!important}.ratio{position:relative;width:100%}.ratio::before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio:100%}.ratio-4x3{--bs-aspect-ratio:75%}.ratio-16x9{--bs-aspect-ratio:56.25%}.ratio-21x9{--bs-aspect-ratio:42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}@media (min-width:576px){.sticky-sm-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:768px){.sticky-md-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:992px){.sticky-lg-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:1200px){.sticky-xl-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:1400px){.sticky-xxl-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.stretched-link::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:""}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:1px;min-height:1em;background-color:currentcolor;opacity:.25}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.opacity-0{opacity:0!important}.opacity-25{opacity:.25!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.opacity-100{opacity:1!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:0 .5rem 1rem rgba(0,0,0,.15)!important}.shadow-sm{box-shadow:0 .125rem .25rem rgba(0,0,0,.075)!important}.shadow-lg{box-shadow:0 1rem 3rem rgba(0,0,0,.175)!important}.shadow-none{box-shadow:none!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:-webkit-sticky!important;position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translateX(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-0{border:0!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-start-0{border-left:0!important}.border-primary{--bs-border-opacity:1;border-color:rgba(var(--bs-primary-rgb),var(--bs-border-opacity))!important}.border-secondary{--bs-border-opacity:1;border-color:rgba(var(--bs-secondary-rgb),var(--bs-border-opacity))!important}.border-success{--bs-border-opacity:1;border-color:rgba(var(--bs-success-rgb),var(--bs-border-opacity))!important}.border-info{--bs-border-opacity:1;border-color:rgba(var(--bs-info-rgb),var(--bs-border-opacity))!important}.border-warning{--bs-border-opacity:1;border-color:rgba(var(--bs-warning-rgb),var(--bs-border-opacity))!important}.border-danger{--bs-border-opacity:1;border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity))!important}.border-light{--bs-border-opacity:1;border-color:rgba(var(--bs-light-rgb),var(--bs-border-opacity))!important}.border-dark{--bs-border-opacity:1;border-color:rgba(var(--bs-dark-rgb),var(--bs-border-opacity))!important}.border-white{--bs-border-opacity:1;border-color:rgba(var(--bs-white-rgb),var(--bs-border-opacity))!important}.border-1{--bs-border-width:1px}.border-2{--bs-border-width:2px}.border-3{--bs-border-width:3px}.border-4{--bs-border-width:4px}.border-5{--bs-border-width:5px}.border-opacity-10{--bs-border-opacity:0.1}.border-opacity-25{--bs-border-opacity:0.25}.border-opacity-50{--bs-border-opacity:0.5}.border-opacity-75{--bs-border-opacity:0.75}.border-opacity-100{--bs-border-opacity:1}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:3rem!important;margin-left:3rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:3rem!important;padding-left:3rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:3rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:3rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}.font-monospace{font-family:var(--bs-font-monospace)!important}.fs-1{font-size:calc(1.375rem + 1.5vw)!important}.fs-2{font-size:calc(1.325rem + .9vw)!important}.fs-3{font-size:calc(1.3rem + .6vw)!important}.fs-4{font-size:calc(1.275rem + .3vw)!important}.fs-5{font-size:1.25rem!important}.fs-6{font-size:1rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-light{font-weight:300!important}.fw-lighter{font-weight:lighter!important}.fw-normal{font-weight:400!important}.fw-bold{font-weight:700!important}.fw-semibold{font-weight:600!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.5!important}.lh-lg{line-height:2!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-primary{--bs-text-opacity:1;color:rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important}.text-secondary{--bs-text-opacity:1;color:rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important}.text-success{--bs-text-opacity:1;color:rgba(var(--bs-success-rgb),var(--bs-text-opacity))!important}.text-info{--bs-text-opacity:1;color:rgba(var(--bs-info-rgb),var(--bs-text-opacity))!important}.text-warning{--bs-text-opacity:1;color:rgba(var(--bs-warning-rgb),var(--bs-text-opacity))!important}.text-danger{--bs-text-opacity:1;color:rgba(var(--bs-danger-rgb),var(--bs-text-opacity))!important}.text-light{--bs-text-opacity:1;color:rgba(var(--bs-light-rgb),var(--bs-text-opacity))!important}.text-dark{--bs-text-opacity:1;color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important}.text-black{--bs-text-opacity:1;color:rgba(var(--bs-black-rgb),var(--bs-text-opacity))!important}.text-white{--bs-text-opacity:1;color:rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important}.text-body{--bs-text-opacity:1;color:rgba(var(--bs-body-color-rgb),var(--bs-text-opacity))!important}.text-muted{--bs-text-opacity:1;color:#6c757d!important}.text-black-50{--bs-text-opacity:1;color:rgba(0,0,0,.5)!important}.text-white-50{--bs-text-opacity:1;color:rgba(255,255,255,.5)!important}.text-reset{--bs-text-opacity:1;color:inherit!important}.text-opacity-25{--bs-text-opacity:0.25}.text-opacity-50{--bs-text-opacity:0.5}.text-opacity-75{--bs-text-opacity:0.75}.text-opacity-100{--bs-text-opacity:1}.bg-primary{--bs-bg-opacity:1;background-color:rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important}.bg-secondary{--bs-bg-opacity:1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important}.bg-success{--bs-bg-opacity:1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important}.bg-info{--bs-bg-opacity:1;background-color:rgba(var(--bs-info-rgb),var(--bs-bg-opacity))!important}.bg-warning{--bs-bg-opacity:1;background-color:rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important}.bg-danger{--bs-bg-opacity:1;background-color:rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important}.bg-light{--bs-bg-opacity:1;background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important}.bg-dark{--bs-bg-opacity:1;background-color:rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important}.bg-black{--bs-bg-opacity:1;background-color:rgba(var(--bs-black-rgb),var(--bs-bg-opacity))!important}.bg-white{--bs-bg-opacity:1;background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important}.bg-body{--bs-bg-opacity:1;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important}.bg-transparent{--bs-bg-opacity:1;background-color:transparent!important}.bg-opacity-10{--bs-bg-opacity:0.1}.bg-opacity-25{--bs-bg-opacity:0.25}.bg-opacity-50{--bs-bg-opacity:0.5}.bg-opacity-75{--bs-bg-opacity:0.75}.bg-opacity-100{--bs-bg-opacity:1}.bg-gradient{background-image:var(--bs-gradient)!important}.user-select-all{-webkit-user-select:all!important;-moz-user-select:all!important;user-select:all!important}.user-select-auto{-webkit-user-select:auto!important;-moz-user-select:auto!important;user-select:auto!important}.user-select-none{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--bs-border-radius-sm)!important}.rounded-2{border-radius:var(--bs-border-radius)!important}.rounded-3{border-radius:var(--bs-border-radius-lg)!important}.rounded-4{border-radius:var(--bs-border-radius-xl)!important}.rounded-5{border-radius:var(--bs-border-radius-2xl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--bs-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-end{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}@media (min-width:576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:3rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:3rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:3rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:3rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:3rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:3rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:3rem!important;padding-left:3rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:3rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:3rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:3rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:3rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:3rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:3rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:3rem!important;margin-left:3rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:3rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:3rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:3rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:3rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:3rem!important;padding-left:3rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:3rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:3rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:3rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:3rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:3rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:3rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:3rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:3rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:3rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:3rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:3rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:3rem!important;padding-left:3rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:3rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:3rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:3rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:3rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:3rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:3rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:3rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:3rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:3rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:3rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:3rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:3rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:3rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:3rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:3rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:3rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}}@media (min-width:1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:3rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:3rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:3rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:3rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:3rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:3rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:3rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:3rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:3rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:3rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:3rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}}@media (min-width:1200px){.fs-1{font-size:2.5rem!important}.fs-2{font-size:2rem!important}.fs-3{font-size:1.75rem!important}.fs-4{font-size:1.5rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}}',""]);const W=S},1169:(t,e,r)=>{"use strict";r.d(e,{Z:()=>s});var n=r(8081),o=r.n(n),a=r(3645),i=r.n(a)()(o());i.push([t.id,'@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.regular-17pt{font-family:"Open Sans",sans-serif;font-size:17pt;font-weight:normal}.bold-20pt{font-family:"Open Sans",sans-serif;font-size:20pt;font-weight:bold}.bold-caps-16pt,.toggle-btn{font-family:"Open Sans",sans-serif;font-size:16pt;font-weight:bold;text-transform:uppercase}.bold-caps-17pt{font-family:"Open Sans",sans-serif;font-size:17pt;font-weight:bold;text-transform:uppercase}.bold-caps-20pt,.geant-header{font-family:"Open Sans",sans-serif;font-size:20pt;font-weight:bold;text-transform:uppercase}.bold-caps-30pt{font-family:"Open Sans",sans-serif;font-size:30pt;font-weight:bold;text-transform:uppercase}.dark-teal{color:#003f5f}.geant-header{color:#003f5f}.bold-grey-12pt{font-family:"Open Sans",sans-serif;font-size:12pt;font-weight:bold;color:#666}.sidebar-wrapper{display:flex;position:fixed;z-index:1;top:calc(50vh - 10%);pointer-events:none}.sidebar-wrapper .menu-items{padding:10px}.sidebar-wrapper>nav{visibility:visible;opacity:1;transition-property:margin-left,opacity;transition:.25s;margin-left:0;background-color:#fff;box-shadow:0 2px 10px rgba(0,0,0,.25);border:#f79e3b 2px solid;pointer-events:auto;width:28rem}.sidebar-wrapper>nav a{padding-top:.3rem;padding-left:1.5rem;text-decoration:none}.sidebar-wrapper>nav a:hover{color:#f79e3b;text-decoration:none}nav.no-sidebar{margin-left:-80%;visibility:hidden;opacity:0}.toggle-btn{background-color:#f79e3b;color:#fff;height:3.5rem;cursor:pointer;padding-left:1rem;pointer-events:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.toggle-btn-wrapper{padding:.5rem;padding-top:.7rem}.btn-nav-box{--bs-btn-color: rgb(0, 63, 95);--bs-btn-border-color: #6c757d;--bs-btn-border-radius: none;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(247, 158, 59);--bs-btn-active-border-color: rgb(247, 158, 59);--bs-btn-hover-color: rgb(0, 63, 95);--bs-btn-hover-bg: rgb(247, 158, 59);--bs-btn-hover-border-color: rgb(247, 158, 59);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;border:2px solid #f79e3b}.btn-login{--bs-btn-color: #fff;--bs-btn-border-color: #6c757d;--bs-btn-border-radius: none;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(247, 158, 59);--bs-btn-active-border-color: rgb(247, 158, 59);--bs-btn-hover-color: rgb(0, 63, 95);--bs-btn-hover-bg: rgb(247, 158, 59);--bs-btn-hover-border-color: rgb(247, 158, 59);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;border:2px solid #f79e3b}.rounded-border{border-radius:25px;border:1px solid #b9bec5}.card{--bs-card-border-color: ""}.grow,.grey-container{display:flex;flex-direction:column;flex:1;padding-bottom:4%}.grey-container{max-width:100vw;background-color:#eaedf3}.wordwrap{max-width:60rem;word-wrap:break-word}.center{display:flex;align-items:center;justify-content:center;flex-direction:column}.center-text{display:flex;align-items:center;justify-content:center;padding-bottom:2%;flex-direction:column}.compendium-data-header{background-color:#fabe66;color:#fff;padding:10px}.compendium-data-banner{background-color:#fce7c9;color:#003f5f;padding:5px;padding-top:25px}.collapsible-box{margin:1rem;border:2px solid #f79e3b;padding:10px;width:80rem;max-width:50vw}.collapsible-content{display:flex}.collapsible-column{flex-basis:100%;padding:1rem}.link-text,.link-text-underline{text-decoration:none;color:#003753}.link-text:hover,.link-text-underline:hover{color:#003753}.link-text-underline:hover{text-decoration:underline}.page-footer{min-height:100px;background-color:#3b536b;color:#fff}.footer-link{color:#fff;text-decoration:none}.footer-link:hover{color:#fff;text-decoration:underline}.filter-dropdown-item{padding-left:1rem;cursor:pointer}.filter-dropdown-item:hover{background-color:var(--bs-dropdown-link-hover-bg)}.nren-checkbox[type=checkbox]{border-radius:0;cursor:pointer}.nren-checkbox:checked{background-color:#3b536b;border-color:#3b536b}.nren-checkbox:focus:not(:focus-visible){box-shadow:none;border-color:rgba(0,0,0,.25)}.nren-checkbox-label{cursor:pointer}.btn-compendium{--bs-btn-color: #fff;--bs-btn-bg: #003753;--bs-btn-border-color: #003753;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #3b536b;--bs-btn-hover-border-color: #3b536b;--bs-btn-focus-shadow-rgb: 49, 132, 253;--bs-btn-active-color: #f5f5f5;--bs-btn-active-bg: #3b536b;--bs-btn-active-border-color: #003753;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #0d6efd;--bs-btn-disabled-border-color: #0d6efd;--bs-btn-border-radius: none}.btn-compendium-year,.btn-compendium-year-8,.btn-compendium-year-7,.btn-compendium-year-6,.btn-compendium-year-5,.btn-compendium-year-4,.btn-compendium-year-3,.btn-compendium-year-2,.btn-compendium-year-1,.btn-compendium-year-0{--bs-btn-color: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #6c757d;--bs-btn-hover-border-color: #6c757d;--bs-btn-focus-shadow-rgb: 108, 117, 125;--bs-btn-active-color: #fff;--bs-btn-active-bg: #6c757d;--bs-btn-active-border-color: #6c757d;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #6c757d;--bs-gradient: none;--bs-btn-border-radius: none}.color-of-the-year-0{background-color:#fd7f6f}.btn-compendium-year-0{--bs-btn-active-bg: #fd7f6f}.color-of-the-year-1{background-color:#7eb0d5}.btn-compendium-year-1{--bs-btn-active-bg: #7eb0d5}.color-of-the-year-2{background-color:#ffee65}.btn-compendium-year-2{--bs-btn-active-bg: #ffee65}.color-of-the-year-3{background-color:#bd7ebe}.btn-compendium-year-3{--bs-btn-active-bg: #bd7ebe}.color-of-the-year-4{background-color:#beb9db}.btn-compendium-year-4{--bs-btn-active-bg: #beb9db}.color-of-the-year-5{background-color:#b2e061}.btn-compendium-year-5{--bs-btn-active-bg: #b2e061}.color-of-the-year-6{background-color:#ffb55a}.btn-compendium-year-6{--bs-btn-active-bg: #ffb55a}.color-of-the-year-7{background-color:#fdcce5}.btn-compendium-year-7{--bs-btn-active-bg: #fdcce5}.color-of-the-year-8{background-color:#8bd3c7}.btn-compendium-year-8{--bs-btn-active-bg: #8bd3c7}.color-of-the-year-blank{background-color:rgba(0,0,0,0)}.charging-struct-table td{text-align:center}.charging-struct-table td{text-align:center}.fit-max-content{min-width:max-content}.table-bg-highlighted tr:nth-child(even){background-color:rgba(102,121,139,.178)}.table-bg-highlighted tr:hover{background-color:rgba(102,121,139,.521)}.table-bg-highlighted li{list-style-type:square;list-style-position:inside}.compendium-table{border-collapse:separate;border-spacing:1.2em 0px}.table .blue-column,.table .nren-column{background-color:#e5f4f9}.table .orange-column,.table .year-column{background-color:#fdf2df}.nren-column{min-width:15%}.year-column{min-width:10%}.dotted-border{position:relative}.dotted-border::after{pointer-events:none;display:block;position:absolute;content:"";left:-20px;right:-10px;top:0;bottom:0;border-top:4px dotted #a7a7a7}.section-container{display:flex;margin-right:2.8em;float:right}.color-of-badge-0{background-color:rgb(157, 40, 114)}.color-of-badge-1{background-color:rgb(241, 224, 79)}.color-of-badge-2{background-color:rgb(219, 42, 76)}.color-of-badge-3{background-color:rgb(237, 141, 24)}.color-of-badge-4{background-color:rgb(137, 166, 121)}.color-of-badge-blank{background-color:rgba(0,0,0,0)}.nav-link-entry{border-radius:2px;font-family:"Open Sans",sans-serif;font-size:.9rem;font-weight:600;text-decoration:none;color:#b0cde1;padding:10px}.nav-link{display:flex;-webkit-box-align:center;align-items:center;height:60px}.nav-link .nav-link-entry:hover{color:#003753;background-color:#b0cde1}.nav-link ul{line-height:1.3;text-transform:uppercase;list-style:none}.nav-link ul li{float:left}.nav-wrapper{display:flex;-webkit-box-align:center;align-items:center;height:60px}.header-nav{width:100%}.header-nav img{float:left;margin-right:15px}.header-nav ul{line-height:1.3;text-transform:uppercase;list-style:none}.header-nav ul li{float:left}.header-nav ul li a{border-radius:2px;float:left;font-family:"Open Sans",sans-serif;font-size:.9rem;font-weight:600;text-decoration:none;color:#b0cde1;padding:10px}.header-nav ul li a:hover{color:#003753;background-color:#b0cde1}.external-page-nav-bar{background-color:#003753;color:#b0cde1;height:60px}.app{display:flex;flex-direction:column;min-height:100vh}',""]);const s=i},3645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r="",n=void 0!==e[5];return e[4]&&(r+="@supports (".concat(e[4],") {")),e[2]&&(r+="@media ".concat(e[2]," {")),n&&(r+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),r+=t(e),n&&(r+="}"),e[2]&&(r+="}"),e[4]&&(r+="}"),r})).join("")},e.i=function(t,r,n,o,a){"string"==typeof t&&(t=[[null,t,void 0]]);var i={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(i[l]=!0)}for(var c=0;c<t.length;c++){var d=[].concat(t[c]);n&&i[d[0]]||(void 0!==a&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=a),r&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=r):d[2]=r),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),e.push(d))}},e}},1667:t=>{"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},8081:t=>{"use strict";t.exports=function(t){return t[1]}},1143:t=>{"use strict";t.exports=function(t,e,r,n,o,a,i,s){if(!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,o,a,i,s],d=0;(l=new Error(e.replace(/%s/g,(function(){return c[d++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},2703:(t,e,r)=>{"use strict";var n=r(414);function o(){}function a(){}a.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,a,i){if(i!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},5697:(t,e,r)=>{t.exports=r(2703)()},414:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4448:(t,e,r)=>{"use strict";var n=r(7294),o=r(3840);function a(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function l(t,e){c(t,e),c(t+"Capture",e)}function c(t,e){for(s[t]=e,t=0;t<e.length;t++)i.add(e[t])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),u=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},m={};function h(t,e,r,n,o,a,i){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=a,this.removeEmptyString=i}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){b[t]=new h(t,0,!1,t,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];b[e]=new h(e,1,!1,t[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){b[t]=new h(t,2,!1,t.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){b[t]=new h(t,2,!1,t,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){b[t]=new h(t,3,!1,t.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(t){b[t]=new h(t,3,!0,t,null,!1,!1)})),["capture","download"].forEach((function(t){b[t]=new h(t,4,!1,t,null,!1,!1)})),["cols","rows","size","span"].forEach((function(t){b[t]=new h(t,6,!1,t,null,!1,!1)})),["rowSpan","start"].forEach((function(t){b[t]=new h(t,5,!1,t.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function v(t){return t[1].toUpperCase()}function x(t,e,r,n){var o=b.hasOwnProperty(e)?b[e]:null;(null!==o?0!==o.type:n||!(2<e.length)||"o"!==e[0]&&"O"!==e[0]||"n"!==e[1]&&"N"!==e[1])&&(function(t,e,r,n){if(null==e||function(t,e,r,n){if(null!==r&&0===r.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,r,o,n)&&(r=null),n||null===o?function(t){return!!u.call(m,t)||!u.call(f,t)&&(p.test(t)?m[t]=!0:(f[t]=!0,!1))}(e)&&(null===r?t.removeAttribute(e):t.setAttribute(e,""+r)):o.mustUseProperty?t[o.propertyName]=null===r?3!==o.type&&"":r:(e=o.attributeName,n=o.attributeNamespace,null===r?t.removeAttribute(e):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?t.setAttributeNS(n,e,r):t.setAttribute(e,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(g,v);b[e]=new h(e,1,!1,t,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(g,v);b[e]=new h(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(g,v);b[e]=new h(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(t){b[t]=new h(t,1,!1,t.toLowerCase(),null,!1,!1)})),b.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(t){b[t]=new h(t,1,!1,t.toLowerCase(),null,!0,!0)}));var y=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),M=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),T=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var R=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function A(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=L&&t[L]||t["@@iterator"])?t:null}var D,j=Object.assign;function I(t){if(void 0===D)try{throw Error()}catch(t){var e=t.stack.trim().match(/\n( *(at )?)/);D=e&&e[1]||""}return"\n"+D+t}var F=!1;function B(t,e){if(!t||F)return"";F=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(e,[])}catch(t){var n=t}Reflect.construct(t,[],e)}else{try{e.call()}catch(t){n=t}t.call(e.prototype)}else{try{throw Error()}catch(t){n=t}t()}}catch(e){if(e&&n&&"string"==typeof e.stack){for(var o=e.stack.split("\n"),a=n.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s]){var l="\n"+o[i].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}}while(1<=i&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?I(t):""}function U(t){switch(t.tag){case 5:return I(t.type);case 16:return I("Lazy");case 13:return I("Suspense");case 19:return I("SuspenseList");case 0:case 2:case 15:return B(t.type,!1);case 11:return B(t.type.render,!1);case 1:return B(t.type,!0);default:return""}}function W(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case _:return"Fragment";case k:return"Portal";case S:return"Profiler";case E:return"StrictMode";case P:return"Suspense";case O:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case M:return(t.displayName||"Context")+".Consumer";case C:return(t._context.displayName||"Context")+".Provider";case N:var e=t.render;return(t=t.displayName)||(t=""!==(t=e.displayName||e.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case z:return null!==(e=t.displayName||null)?e:W(t.type)||"Memo";case T:e=t._payload,t=t._init;try{return W(t(e))}catch(t){}}return null}function $(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=(t=e.render).displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(e);case 8:return e===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e}return null}function V(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":case"object":return t;default:return""}}function H(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function Y(t){t._valueTracker||(t._valueTracker=function(t){var e=H(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,a=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(t){n=""+t,a.call(this,t)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(t){n=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function X(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=H(t)?t.checked?"true":"false":t.value),(t=n)!==r&&(e.setValue(t),!0)}function q(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function K(t,e){var r=e.checked;return j({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:t._wrapperState.initialChecked})}function Q(t,e){var r=null==e.defaultValue?"":e.defaultValue,n=null!=e.checked?e.checked:e.defaultChecked;r=V(null!=e.value?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function G(t,e){null!=(e=e.checked)&&x(t,"checked",e,!1)}function Z(t,e){G(t,e);var r=V(e.value),n=e.type;if(null!=r)"number"===n?(0===r&&""===t.value||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if("submit"===n||"reset"===n)return void t.removeAttribute("value");e.hasOwnProperty("value")?tt(t,e.type,r):e.hasOwnProperty("defaultValue")&&tt(t,e.type,V(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function J(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!("submit"!==n&&"reset"!==n||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}""!==(r=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==r&&(t.name=r)}function tt(t,e,r){"number"===e&&q(t.ownerDocument)===t||(null==r?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var et=Array.isArray;function rt(t,e,r,n){if(t=t.options,e){e={};for(var o=0;o<r.length;o++)e["$"+r[o]]=!0;for(r=0;r<t.length;r++)o=e.hasOwnProperty("$"+t[r].value),t[r].selected!==o&&(t[r].selected=o),o&&n&&(t[r].defaultSelected=!0)}else{for(r=""+V(r),e=null,o=0;o<t.length;o++){if(t[o].value===r)return t[o].selected=!0,void(n&&(t[o].defaultSelected=!0));null!==e||t[o].disabled||(e=t[o])}null!==e&&(e.selected=!0)}}function nt(t,e){if(null!=e.dangerouslySetInnerHTML)throw Error(a(91));return j({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function ot(t,e){var r=e.value;if(null==r){if(r=e.children,e=e.defaultValue,null!=r){if(null!=e)throw Error(a(92));if(et(r)){if(1<r.length)throw Error(a(93));r=r[0]}e=r}null==e&&(e=""),r=e}t._wrapperState={initialValue:V(r)}}function at(t,e){var r=V(e.value),n=V(e.defaultValue);null!=r&&((r=""+r)!==t.value&&(t.value=r),null==e.defaultValue&&t.defaultValue!==r&&(t.defaultValue=r)),null!=n&&(t.defaultValue=""+n)}function it(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}function st(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lt(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?st(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var ct,dt,ut=(dt=function(t,e){if("http://www.w3.org/2000/svg"!==t.namespaceURI||"innerHTML"in t)t.innerHTML=e;else{for((ct=ct||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=ct.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,e,r,n){MSApp.execUnsafeLocalFunction((function(){return dt(t,e)}))}:dt);function pt(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&3===r.nodeType)return void(r.nodeValue=e)}t.textContent=e}var ft={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},mt=["Webkit","ms","Moz","O"];function ht(t,e,r){return null==e||"boolean"==typeof e||""===e?"":r||"number"!=typeof e||0===e||ft.hasOwnProperty(t)&&ft[t]?(""+e).trim():e+"px"}function bt(t,e){for(var r in t=t.style,e)if(e.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=ht(r,e[r],n);"float"===r&&(r="cssFloat"),n?t.setProperty(r,o):t[r]=o}}Object.keys(ft).forEach((function(t){mt.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),ft[e]=ft[t]}))}));var gt=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vt(t,e){if(e){if(gt[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(a(137,t));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(a(60));if("object"!=typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=e.style&&"object"!=typeof e.style)throw Error(a(62))}}function xt(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){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 yt=null;function wt(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}var kt=null,_t=null,Et=null;function St(t){if(t=yo(t)){if("function"!=typeof kt)throw Error(a(280));var e=t.stateNode;e&&(e=ko(e),kt(t.stateNode,t.type,e))}}function Ct(t){_t?Et?Et.push(t):Et=[t]:_t=t}function Mt(){if(_t){var t=_t,e=Et;if(Et=_t=null,St(t),e)for(t=0;t<e.length;t++)St(e[t])}}function Nt(t,e){return t(e)}function Pt(){}var Ot=!1;function zt(t,e,r){if(Ot)return t(e,r);Ot=!0;try{return Nt(t,e,r)}finally{Ot=!1,(null!==_t||null!==Et)&&(Pt(),Mt())}}function Tt(t,e){var r=t.stateNode;if(null===r)return null;var n=ko(r);if(null===n)return null;r=n[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!n;break t;default:t=!1}if(t)return null;if(r&&"function"!=typeof r)throw Error(a(231,e,typeof r));return r}var Rt=!1;if(d)try{var Lt={};Object.defineProperty(Lt,"passive",{get:function(){Rt=!0}}),window.addEventListener("test",Lt,Lt),window.removeEventListener("test",Lt,Lt)}catch(dt){Rt=!1}function At(t,e,r,n,o,a,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{e.apply(r,c)}catch(t){this.onError(t)}}var Dt=!1,jt=null,It=!1,Ft=null,Bt={onError:function(t){Dt=!0,jt=t}};function Ut(t,e,r,n,o,a,i,s,l){Dt=!1,jt=null,At.apply(Bt,arguments)}function Wt(t){var e=t,r=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{0!=(4098&(e=t).flags)&&(r=e.return),t=e.return}while(t)}return 3===e.tag?r:null}function $t(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&null!==(t=t.alternate)&&(e=t.memoizedState),null!==e)return e.dehydrated}return null}function Vt(t){if(Wt(t)!==t)throw Error(a(188))}function Ht(t){return null!==(t=function(t){var e=t.alternate;if(!e){if(null===(e=Wt(t)))throw Error(a(188));return e!==t?null:t}for(var r=t,n=e;;){var o=r.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(n=o.return)){r=n;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return Vt(o),t;if(i===n)return Vt(o),e;i=i.sibling}throw Error(a(188))}if(r.return!==n.return)r=o,n=i;else{for(var s=!1,l=o.child;l;){if(l===r){s=!0,r=o,n=i;break}if(l===n){s=!0,n=o,r=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===r){s=!0,r=i,n=o;break}if(l===n){s=!0,n=i,r=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(r.alternate!==n)throw Error(a(190))}if(3!==r.tag)throw Error(a(188));return r.stateNode.current===r?t:e}(t))?Yt(t):null}function Yt(t){if(5===t.tag||6===t.tag)return t;for(t=t.child;null!==t;){var e=Yt(t);if(null!==e)return e;t=t.sibling}return null}var Xt=o.unstable_scheduleCallback,qt=o.unstable_cancelCallback,Kt=o.unstable_shouldYield,Qt=o.unstable_requestPaint,Gt=o.unstable_now,Zt=o.unstable_getCurrentPriorityLevel,Jt=o.unstable_ImmediatePriority,te=o.unstable_UserBlockingPriority,ee=o.unstable_NormalPriority,re=o.unstable_LowPriority,ne=o.unstable_IdlePriority,oe=null,ae=null,ie=Math.clz32?Math.clz32:function(t){return 0==(t>>>=0)?32:31-(se(t)/le|0)|0},se=Math.log,le=Math.LN2,ce=64,de=4194304;function ue(t){switch(t&-t){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: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 4194240&t;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&t;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function pe(t,e){var r=t.pendingLanes;if(0===r)return 0;var n=0,o=t.suspendedLanes,a=t.pingedLanes,i=268435455&r;if(0!==i){var s=i&~o;0!==s?n=ue(s):0!=(a&=i)&&(n=ue(a))}else 0!=(i=r&~o)?n=ue(i):0!==a&&(n=ue(a));if(0===n)return 0;if(0!==e&&e!==n&&0==(e&o)&&((o=n&-n)>=(a=e&-e)||16===o&&0!=(4194240&a)))return e;if(0!=(4&n)&&(n|=16&r),0!==(e=t.entangledLanes))for(t=t.entanglements,e&=n;0<e;)o=1<<(r=31-ie(e)),n|=t[r],e&=~o;return n}function fe(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 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 e+5e3;default:return-1}}function me(t){return 0!=(t=-1073741825&t.pendingLanes)?t:1073741824&t?1073741824:0}function he(){var t=ce;return 0==(4194240&(ce<<=1))&&(ce=64),t}function be(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function ge(t,e,r){t.pendingLanes|=e,536870912!==e&&(t.suspendedLanes=0,t.pingedLanes=0),(t=t.eventTimes)[e=31-ie(e)]=r}function ve(t,e){var r=t.entangledLanes|=e;for(t=t.entanglements;r;){var n=31-ie(r),o=1<<n;o&e|t[n]&e&&(t[n]|=e),r&=~o}}var xe=0;function ye(t){return 1<(t&=-t)?4<t?0!=(268435455&t)?16:536870912:4:1}var we,ke,_e,Ee,Se,Ce=!1,Me=[],Ne=null,Pe=null,Oe=null,ze=new Map,Te=new Map,Re=[],Le="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ae(t,e){switch(t){case"focusin":case"focusout":Ne=null;break;case"dragenter":case"dragleave":Pe=null;break;case"mouseover":case"mouseout":Oe=null;break;case"pointerover":case"pointerout":ze.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Te.delete(e.pointerId)}}function De(t,e,r,n,o,a){return null===t||t.nativeEvent!==a?(t={blockedOn:e,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[o]},null!==e&&null!==(e=yo(e))&&ke(e),t):(t.eventSystemFlags|=n,e=t.targetContainers,null!==o&&-1===e.indexOf(o)&&e.push(o),t)}function je(t){var e=xo(t.target);if(null!==e){var r=Wt(e);if(null!==r)if(13===(e=r.tag)){if(null!==(e=$t(r)))return t.blockedOn=e,void Se(t.priority,(function(){_e(r)}))}else if(3===e&&r.stateNode.current.memoizedState.isDehydrated)return void(t.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}t.blockedOn=null}function Ie(t){if(null!==t.blockedOn)return!1;for(var e=t.targetContainers;0<e.length;){var r=Ke(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(null!==r)return null!==(e=yo(r))&&ke(e),t.blockedOn=r,!1;var n=new(r=t.nativeEvent).constructor(r.type,r);yt=n,r.target.dispatchEvent(n),yt=null,e.shift()}return!0}function Fe(t,e,r){Ie(t)&&r.delete(e)}function Be(){Ce=!1,null!==Ne&&Ie(Ne)&&(Ne=null),null!==Pe&&Ie(Pe)&&(Pe=null),null!==Oe&&Ie(Oe)&&(Oe=null),ze.forEach(Fe),Te.forEach(Fe)}function Ue(t,e){t.blockedOn===e&&(t.blockedOn=null,Ce||(Ce=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Be)))}function We(t){function e(e){return Ue(e,t)}if(0<Me.length){Ue(Me[0],t);for(var r=1;r<Me.length;r++){var n=Me[r];n.blockedOn===t&&(n.blockedOn=null)}}for(null!==Ne&&Ue(Ne,t),null!==Pe&&Ue(Pe,t),null!==Oe&&Ue(Oe,t),ze.forEach(e),Te.forEach(e),r=0;r<Re.length;r++)(n=Re[r]).blockedOn===t&&(n.blockedOn=null);for(;0<Re.length&&null===(r=Re[0]).blockedOn;)je(r),null===r.blockedOn&&Re.shift()}var $e=y.ReactCurrentBatchConfig,Ve=!0;function He(t,e,r,n){var o=xe,a=$e.transition;$e.transition=null;try{xe=1,Xe(t,e,r,n)}finally{xe=o,$e.transition=a}}function Ye(t,e,r,n){var o=xe,a=$e.transition;$e.transition=null;try{xe=4,Xe(t,e,r,n)}finally{xe=o,$e.transition=a}}function Xe(t,e,r,n){if(Ve){var o=Ke(t,e,r,n);if(null===o)Vn(t,e,n,qe,r),Ae(t,n);else if(function(t,e,r,n,o){switch(e){case"focusin":return Ne=De(Ne,t,e,r,n,o),!0;case"dragenter":return Pe=De(Pe,t,e,r,n,o),!0;case"mouseover":return Oe=De(Oe,t,e,r,n,o),!0;case"pointerover":var a=o.pointerId;return ze.set(a,De(ze.get(a)||null,t,e,r,n,o)),!0;case"gotpointercapture":return a=o.pointerId,Te.set(a,De(Te.get(a)||null,t,e,r,n,o)),!0}return!1}(o,t,e,r,n))n.stopPropagation();else if(Ae(t,n),4&e&&-1<Le.indexOf(t)){for(;null!==o;){var a=yo(o);if(null!==a&&we(a),null===(a=Ke(t,e,r,n))&&Vn(t,e,n,qe,r),a===o)break;o=a}null!==o&&n.stopPropagation()}else Vn(t,e,n,null,r)}}var qe=null;function Ke(t,e,r,n){if(qe=null,null!==(t=xo(t=wt(n))))if(null===(e=Wt(t)))t=null;else if(13===(r=e.tag)){if(null!==(t=$t(e)))return t;t=null}else if(3===r){if(e.stateNode.current.memoizedState.isDehydrated)return 3===e.tag?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return qe=t,null}function Qe(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Zt()){case Jt:return 1;case te:return 4;case ee:case re:return 16;case ne:return 536870912;default:return 16}default:return 16}}var Ge=null,Ze=null,Je=null;function tr(){if(Je)return Je;var t,e,r=Ze,n=r.length,o="value"in Ge?Ge.value:Ge.textContent,a=o.length;for(t=0;t<n&&r[t]===o[t];t++);var i=n-t;for(e=1;e<=i&&r[n-e]===o[a-e];e++);return Je=o.slice(t,1<e?1-e:void 0)}function er(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}function rr(){return!0}function nr(){return!1}function or(t){function e(e,r,n,o,a){for(var i in this._reactName=e,this._targetInst=n,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null,t)t.hasOwnProperty(i)&&(e=t[i],this[i]=e?e(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?rr:nr,this.isPropagationStopped=nr,this}return j(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=rr)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),e}var ar,ir,sr,lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cr=or(lr),dr=j({},lr,{view:0,detail:0}),ur=or(dr),pr=j({},dr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Er,button:0,buttons:0,relatedTarget:function(t){return void 0===t.relatedTarget?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==sr&&(sr&&"mousemove"===t.type?(ar=t.screenX-sr.screenX,ir=t.screenY-sr.screenY):ir=ar=0,sr=t),ar)},movementY:function(t){return"movementY"in t?t.movementY:ir}}),fr=or(pr),mr=or(j({},pr,{dataTransfer:0})),hr=or(j({},dr,{relatedTarget:0})),br=or(j({},lr,{animationName:0,elapsedTime:0,pseudoElement:0})),gr=j({},lr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),vr=or(gr),xr=or(j({},lr,{data:0})),yr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _r(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=kr[t])&&!!e[t]}function Er(){return _r}var Sr=j({},dr,{key:function(t){if(t.key){var e=yr[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=er(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?wr[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Er,charCode:function(t){return"keypress"===t.type?er(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?er(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),Cr=or(Sr),Mr=or(j({},pr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nr=or(j({},dr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Er})),Pr=or(j({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Or=j({},pr,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),zr=or(Or),Tr=[9,13,27,32],Rr=d&&"CompositionEvent"in window,Lr=null;d&&"documentMode"in document&&(Lr=document.documentMode);var Ar=d&&"TextEvent"in window&&!Lr,Dr=d&&(!Rr||Lr&&8<Lr&&11>=Lr),jr=String.fromCharCode(32),Ir=!1;function Fr(t,e){switch(t){case"keyup":return-1!==Tr.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Br(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var Ur=!1,Wr={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 $r(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!Wr[t.type]:"textarea"===e}function Vr(t,e,r,n){Ct(n),0<(e=Yn(e,"onChange")).length&&(r=new cr("onChange","change",null,r,n),t.push({event:r,listeners:e}))}var Hr=null,Yr=null;function Xr(t){In(t,0)}function qr(t){if(X(wo(t)))return t}function Kr(t,e){if("change"===t)return e}var Qr=!1;if(d){var Gr;if(d){var Zr="oninput"in document;if(!Zr){var Jr=document.createElement("div");Jr.setAttribute("oninput","return;"),Zr="function"==typeof Jr.oninput}Gr=Zr}else Gr=!1;Qr=Gr&&(!document.documentMode||9<document.documentMode)}function tn(){Hr&&(Hr.detachEvent("onpropertychange",en),Yr=Hr=null)}function en(t){if("value"===t.propertyName&&qr(Yr)){var e=[];Vr(e,Yr,t,wt(t)),zt(Xr,e)}}function rn(t,e,r){"focusin"===t?(tn(),Yr=r,(Hr=e).attachEvent("onpropertychange",en)):"focusout"===t&&tn()}function nn(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return qr(Yr)}function on(t,e){if("click"===t)return qr(e)}function an(t,e){if("input"===t||"change"===t)return qr(e)}var sn="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e};function ln(t,e){if(sn(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!u.call(e,o)||!sn(t[o],e[o]))return!1}return!0}function cn(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function dn(t,e){var r,n=cn(t);for(t=0;n;){if(3===n.nodeType){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=cn(n)}}function un(t,e){return!(!t||!e)&&(t===e||(!t||3!==t.nodeType)&&(e&&3===e.nodeType?un(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}function pn(){for(var t=window,e=q();e instanceof t.HTMLIFrameElement;){try{var r="string"==typeof e.contentWindow.location.href}catch(t){r=!1}if(!r)break;e=q((t=e.contentWindow).document)}return e}function fn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}function mn(t){var e=pn(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&un(r.ownerDocument.documentElement,r)){if(null!==n&&fn(r))if(e=n.start,void 0===(t=n.end)&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if((t=(e=r.ownerDocument||document)&&e.defaultView||window).getSelection){t=t.getSelection();var o=r.textContent.length,a=Math.min(n.start,o);n=void 0===n.end?a:Math.min(n.end,o),!t.extend&&a>n&&(o=n,n=a,a=o),o=dn(r,a);var i=dn(r,n);o&&i&&(1!==t.rangeCount||t.anchorNode!==o.node||t.anchorOffset!==o.offset||t.focusNode!==i.node||t.focusOffset!==i.offset)&&((e=e.createRange()).setStart(o.node,o.offset),t.removeAllRanges(),a>n?(t.addRange(e),t.extend(i.node,i.offset)):(e.setEnd(i.node,i.offset),t.addRange(e)))}for(e=[],t=r;t=t.parentNode;)1===t.nodeType&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<e.length;r++)(t=e[r]).element.scrollLeft=t.left,t.element.scrollTop=t.top}}var hn=d&&"documentMode"in document&&11>=document.documentMode,bn=null,gn=null,vn=null,xn=!1;function yn(t,e,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;xn||null==bn||bn!==q(n)||(n="selectionStart"in(n=bn)&&fn(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},vn&&ln(vn,n)||(vn=n,0<(n=Yn(gn,"onSelect")).length&&(e=new cr("onSelect","select",null,e,r),t.push({event:e,listeners:n}),e.target=bn)))}function wn(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r}var kn={animationend:wn("Animation","AnimationEnd"),animationiteration:wn("Animation","AnimationIteration"),animationstart:wn("Animation","AnimationStart"),transitionend:wn("Transition","TransitionEnd")},_n={},En={};function Sn(t){if(_n[t])return _n[t];if(!kn[t])return t;var e,r=kn[t];for(e in r)if(r.hasOwnProperty(e)&&e in En)return _n[t]=r[e];return t}d&&(En=document.createElement("div").style,"AnimationEvent"in window||(delete kn.animationend.animation,delete kn.animationiteration.animation,delete kn.animationstart.animation),"TransitionEvent"in window||delete kn.transitionend.transition);var Cn=Sn("animationend"),Mn=Sn("animationiteration"),Nn=Sn("animationstart"),Pn=Sn("transitionend"),On=new Map,zn="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 toggle touchMove waiting wheel".split(" ");function Tn(t,e){On.set(t,e),l(e,[t])}for(var Rn=0;Rn<zn.length;Rn++){var Ln=zn[Rn];Tn(Ln.toLowerCase(),"on"+(Ln[0].toUpperCase()+Ln.slice(1)))}Tn(Cn,"onAnimationEnd"),Tn(Mn,"onAnimationIteration"),Tn(Nn,"onAnimationStart"),Tn("dblclick","onDoubleClick"),Tn("focusin","onFocus"),Tn("focusout","onBlur"),Tn(Pn,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var An="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dn=new Set("cancel close invalid load scroll toggle".split(" ").concat(An));function jn(t,e,r){var n=t.type||"unknown-event";t.currentTarget=r,function(t,e,r,n,o,i,s,l,c){if(Ut.apply(this,arguments),Dt){if(!Dt)throw Error(a(198));var d=jt;Dt=!1,jt=null,It||(It=!0,Ft=d)}}(n,e,void 0,t),t.currentTarget=null}function In(t,e){e=0!=(4&e);for(var r=0;r<t.length;r++){var n=t[r],o=n.event;n=n.listeners;t:{var a=void 0;if(e)for(var i=n.length-1;0<=i;i--){var s=n[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break t;jn(o,s,c),a=l}else for(i=0;i<n.length;i++){if(l=(s=n[i]).instance,c=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break t;jn(o,s,c),a=l}}}if(It)throw t=Ft,It=!1,Ft=null,t}function Fn(t,e){var r=e[bo];void 0===r&&(r=e[bo]=new Set);var n=t+"__bubble";r.has(n)||($n(e,t,2,!1),r.add(n))}function Bn(t,e,r){var n=0;e&&(n|=4),$n(r,t,n,e)}var Un="_reactListening"+Math.random().toString(36).slice(2);function Wn(t){if(!t[Un]){t[Un]=!0,i.forEach((function(e){"selectionchange"!==e&&(Dn.has(e)||Bn(e,!1,t),Bn(e,!0,t))}));var e=9===t.nodeType?t:t.ownerDocument;null===e||e[Un]||(e[Un]=!0,Bn("selectionchange",!1,e))}}function $n(t,e,r,n){switch(Qe(e)){case 1:var o=He;break;case 4:o=Ye;break;default:o=Xe}r=o.bind(null,e,r,t),o=void 0,!Rt||"touchstart"!==e&&"touchmove"!==e&&"wheel"!==e||(o=!0),n?void 0!==o?t.addEventListener(e,r,{capture:!0,passive:o}):t.addEventListener(e,r,!0):void 0!==o?t.addEventListener(e,r,{passive:o}):t.addEventListener(e,r,!1)}function Vn(t,e,r,n,o){var a=n;if(0==(1&e)&&0==(2&e)&&null!==n)t:for(;;){if(null===n)return;var i=n.tag;if(3===i||4===i){var s=n.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===i)for(i=n.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;i=i.return}for(;null!==s;){if(null===(i=xo(s)))return;if(5===(l=i.tag)||6===l){n=a=i;continue t}s=s.parentNode}}n=n.return}zt((function(){var n=a,o=wt(r),i=[];t:{var s=On.get(t);if(void 0!==s){var l=cr,c=t;switch(t){case"keypress":if(0===er(r))break t;case"keydown":case"keyup":l=Cr;break;case"focusin":c="focus",l=hr;break;case"focusout":c="blur",l=hr;break;case"beforeblur":case"afterblur":l=hr;break;case"click":if(2===r.button)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Nr;break;case Cn:case Mn:case Nn:l=br;break;case Pn:l=Pr;break;case"scroll":l=ur;break;case"wheel":l=zr;break;case"copy":case"cut":case"paste":l=vr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Mr}var d=0!=(4&e),u=!d&&"scroll"===t,p=d?null!==s?s+"Capture":null:s;d=[];for(var f,m=n;null!==m;){var h=(f=m).stateNode;if(5===f.tag&&null!==h&&(f=h,null!==p&&null!=(h=Tt(m,p))&&d.push(Hn(m,h,f))),u)break;m=m.return}0<d.length&&(s=new l(s,c,null,r,o),i.push({event:s,listeners:d}))}}if(0==(7&e)){if(l="mouseout"===t||"pointerout"===t,(!(s="mouseover"===t||"pointerover"===t)||r===yt||!(c=r.relatedTarget||r.fromElement)||!xo(c)&&!c[ho])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(c=(c=r.relatedTarget||r.toElement)?xo(c):null)&&(c!==(u=Wt(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=n),l!==c)){if(d=fr,h="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==t&&"pointerover"!==t||(d=Mr,h="onPointerLeave",p="onPointerEnter",m="pointer"),u=null==l?s:wo(l),f=null==c?s:wo(c),(s=new d(h,m+"leave",l,r,o)).target=u,s.relatedTarget=f,h=null,xo(o)===n&&((d=new d(p,m+"enter",c,r,o)).target=f,d.relatedTarget=u,h=d),u=h,l&&c)t:{for(p=c,m=0,f=d=l;f;f=Xn(f))m++;for(f=0,h=p;h;h=Xn(h))f++;for(;0<m-f;)d=Xn(d),m--;for(;0<f-m;)p=Xn(p),f--;for(;m--;){if(d===p||null!==p&&d===p.alternate)break t;d=Xn(d),p=Xn(p)}d=null}else d=null;null!==l&&qn(i,s,l,d,!1),null!==c&&null!==u&&qn(i,u,c,d,!0)}if("select"===(l=(s=n?wo(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var b=Kr;else if($r(s))if(Qr)b=an;else{b=nn;var g=rn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(b=on);switch(b&&(b=b(t,n))?Vr(i,b,r,o):(g&&g(t,s,n),"focusout"===t&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&tt(s,"number",s.value)),g=n?wo(n):window,t){case"focusin":($r(g)||"true"===g.contentEditable)&&(bn=g,gn=n,vn=null);break;case"focusout":vn=gn=bn=null;break;case"mousedown":xn=!0;break;case"contextmenu":case"mouseup":case"dragend":xn=!1,yn(i,r,o);break;case"selectionchange":if(hn)break;case"keydown":case"keyup":yn(i,r,o)}var v;if(Rr)t:{switch(t){case"compositionstart":var x="onCompositionStart";break t;case"compositionend":x="onCompositionEnd";break t;case"compositionupdate":x="onCompositionUpdate";break t}x=void 0}else Ur?Fr(t,r)&&(x="onCompositionEnd"):"keydown"===t&&229===r.keyCode&&(x="onCompositionStart");x&&(Dr&&"ko"!==r.locale&&(Ur||"onCompositionStart"!==x?"onCompositionEnd"===x&&Ur&&(v=tr()):(Ze="value"in(Ge=o)?Ge.value:Ge.textContent,Ur=!0)),0<(g=Yn(n,x)).length&&(x=new xr(x,t,null,r,o),i.push({event:x,listeners:g}),(v||null!==(v=Br(r)))&&(x.data=v))),(v=Ar?function(t,e){switch(t){case"compositionend":return Br(e);case"keypress":return 32!==e.which?null:(Ir=!0,jr);case"textInput":return(t=e.data)===jr&&Ir?null:t;default:return null}}(t,r):function(t,e){if(Ur)return"compositionend"===t||!Rr&&Fr(t,e)?(t=tr(),Je=Ze=Ge=null,Ur=!1,t):null;switch(t){case"paste":default:return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Dr&&"ko"!==e.locale?null:e.data}}(t,r))&&0<(n=Yn(n,"onBeforeInput")).length&&(o=new xr("onBeforeInput","beforeinput",null,r,o),i.push({event:o,listeners:n}),o.data=v)}In(i,e)}))}function Hn(t,e,r){return{instance:t,listener:e,currentTarget:r}}function Yn(t,e){for(var r=e+"Capture",n=[];null!==t;){var o=t,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Tt(t,r))&&n.unshift(Hn(t,a,o)),null!=(a=Tt(t,e))&&n.push(Hn(t,a,o))),t=t.return}return n}function Xn(t){if(null===t)return null;do{t=t.return}while(t&&5!==t.tag);return t||null}function qn(t,e,r,n,o){for(var a=e._reactName,i=[];null!==r&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Tt(r,a))&&i.unshift(Hn(r,l,s)):o||null!=(l=Tt(r,a))&&i.push(Hn(r,l,s))),r=r.return}0!==i.length&&t.push({event:e,listeners:i})}var Kn=/\r\n?/g,Qn=/\u0000|\uFFFD/g;function Gn(t){return("string"==typeof t?t:""+t).replace(Kn,"\n").replace(Qn,"")}function Zn(t,e,r){if(e=Gn(e),Gn(t)!==e&&r)throw Error(a(425))}function Jn(){}var to=null,eo=null;function ro(t,e){return"textarea"===t||"noscript"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var no="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,io="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(t){return ao.resolve(null).then(t).catch(so)}:no;function so(t){setTimeout((function(){throw t}))}function lo(t,e){var r=e,n=0;do{var o=r.nextSibling;if(t.removeChild(r),o&&8===o.nodeType)if("/$"===(r=o.data)){if(0===n)return t.removeChild(o),void We(e);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=o}while(r);We(e)}function co(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break;if(8===e){if("$"===(e=t.data)||"$!"===e||"$?"===e)break;if("/$"===e)return null}}return t}function uo(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var r=t.data;if("$"===r||"$!"===r||"$?"===r){if(0===e)return t;e--}else"/$"===r&&e++}t=t.previousSibling}return null}var po=Math.random().toString(36).slice(2),fo="__reactFiber$"+po,mo="__reactProps$"+po,ho="__reactContainer$"+po,bo="__reactEvents$"+po,go="__reactListeners$"+po,vo="__reactHandles$"+po;function xo(t){var e=t[fo];if(e)return e;for(var r=t.parentNode;r;){if(e=r[ho]||r[fo]){if(r=e.alternate,null!==e.child||null!==r&&null!==r.child)for(t=uo(t);null!==t;){if(r=t[fo])return r;t=uo(t)}return e}r=(t=r).parentNode}return null}function yo(t){return!(t=t[fo]||t[ho])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function wo(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(a(33))}function ko(t){return t[mo]||null}var _o=[],Eo=-1;function So(t){return{current:t}}function Co(t){0>Eo||(t.current=_o[Eo],_o[Eo]=null,Eo--)}function Mo(t,e){Eo++,_o[Eo]=t.current,t.current=e}var No={},Po=So(No),Oo=So(!1),zo=No;function To(t,e){var r=t.type.contextTypes;if(!r)return No;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in r)a[o]=e[o];return n&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=a),a}function Ro(t){return null!=t.childContextTypes}function Lo(){Co(Oo),Co(Po)}function Ao(t,e,r){if(Po.current!==No)throw Error(a(168));Mo(Po,e),Mo(Oo,r)}function Do(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in e))throw Error(a(108,$(t)||"Unknown",o));return j({},r,n)}function jo(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||No,zo=Po.current,Mo(Po,t),Mo(Oo,Oo.current),!0}function Io(t,e,r){var n=t.stateNode;if(!n)throw Error(a(169));r?(t=Do(t,e,zo),n.__reactInternalMemoizedMergedChildContext=t,Co(Oo),Co(Po),Mo(Po,t)):Co(Oo),Mo(Oo,r)}var Fo=null,Bo=!1,Uo=!1;function Wo(t){null===Fo?Fo=[t]:Fo.push(t)}function $o(){if(!Uo&&null!==Fo){Uo=!0;var t=0,e=xe;try{var r=Fo;for(xe=1;t<r.length;t++){var n=r[t];do{n=n(!0)}while(null!==n)}Fo=null,Bo=!1}catch(e){throw null!==Fo&&(Fo=Fo.slice(t+1)),Xt(Jt,$o),e}finally{xe=e,Uo=!1}}return null}var Vo=[],Ho=0,Yo=null,Xo=0,qo=[],Ko=0,Qo=null,Go=1,Zo="";function Jo(t,e){Vo[Ho++]=Xo,Vo[Ho++]=Yo,Yo=t,Xo=e}function ta(t,e,r){qo[Ko++]=Go,qo[Ko++]=Zo,qo[Ko++]=Qo,Qo=t;var n=Go;t=Zo;var o=32-ie(n)-1;n&=~(1<<o),r+=1;var a=32-ie(e)+o;if(30<a){var i=o-o%5;a=(n&(1<<i)-1).toString(32),n>>=i,o-=i,Go=1<<32-ie(e)+o|r<<o|n,Zo=a+t}else Go=1<<a|r<<o|n,Zo=t}function ea(t){null!==t.return&&(Jo(t,1),ta(t,1,0))}function ra(t){for(;t===Yo;)Yo=Vo[--Ho],Vo[Ho]=null,Xo=Vo[--Ho],Vo[Ho]=null;for(;t===Qo;)Qo=qo[--Ko],qo[Ko]=null,Zo=qo[--Ko],qo[Ko]=null,Go=qo[--Ko],qo[Ko]=null}var na=null,oa=null,aa=!1,ia=null;function sa(t,e){var r=zc(5,null,null,0);r.elementType="DELETED",r.stateNode=e,r.return=t,null===(e=t.deletions)?(t.deletions=[r],t.flags|=16):e.push(r)}function la(t,e){switch(t.tag){case 5:var r=t.type;return null!==(e=1!==e.nodeType||r.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,na=t,oa=co(e.firstChild),!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,na=t,oa=null,!0);case 13:return null!==(e=8!==e.nodeType?null:e)&&(r=null!==Qo?{id:Go,overflow:Zo}:null,t.memoizedState={dehydrated:e,treeContext:r,retryLane:1073741824},(r=zc(18,null,null,0)).stateNode=e,r.return=t,t.child=r,na=t,oa=null,!0);default:return!1}}function ca(t){return 0!=(1&t.mode)&&0==(128&t.flags)}function da(t){if(aa){var e=oa;if(e){var r=e;if(!la(t,e)){if(ca(t))throw Error(a(418));e=co(r.nextSibling);var n=na;e&&la(t,e)?sa(n,r):(t.flags=-4097&t.flags|2,aa=!1,na=t)}}else{if(ca(t))throw Error(a(418));t.flags=-4097&t.flags|2,aa=!1,na=t}}}function ua(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;na=t}function pa(t){if(t!==na)return!1;if(!aa)return ua(t),aa=!0,!1;var e;if((e=3!==t.tag)&&!(e=5!==t.tag)&&(e="head"!==(e=t.type)&&"body"!==e&&!ro(t.type,t.memoizedProps)),e&&(e=oa)){if(ca(t))throw fa(),Error(a(418));for(;e;)sa(t,e),e=co(e.nextSibling)}if(ua(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(a(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var r=t.data;if("/$"===r){if(0===e){oa=co(t.nextSibling);break t}e--}else"$"!==r&&"$!"!==r&&"$?"!==r||e++}t=t.nextSibling}oa=null}}else oa=na?co(t.stateNode.nextSibling):null;return!0}function fa(){for(var t=oa;t;)t=co(t.nextSibling)}function ma(){oa=na=null,aa=!1}function ha(t){null===ia?ia=[t]:ia.push(t)}var ba=y.ReactCurrentBatchConfig;function ga(t,e){if(t&&t.defaultProps){for(var r in e=j({},e),t=t.defaultProps)void 0===e[r]&&(e[r]=t[r]);return e}return e}var va=So(null),xa=null,ya=null,wa=null;function ka(){wa=ya=xa=null}function _a(t){var e=va.current;Co(va),t._currentValue=e}function Ea(t,e,r){for(;null!==t;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,null!==n&&(n.childLanes|=e)):null!==n&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function Sa(t,e){xa=t,wa=ya=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(0!=(t.lanes&e)&&(ys=!0),t.firstContext=null)}function Ca(t){var e=t._currentValue;if(wa!==t)if(t={context:t,memoizedValue:e,next:null},null===ya){if(null===xa)throw Error(a(308));ya=t,xa.dependencies={lanes:0,firstContext:t}}else ya=ya.next=t;return e}var Ma=null;function Na(t){null===Ma?Ma=[t]:Ma.push(t)}function Pa(t,e,r,n){var o=e.interleaved;return null===o?(r.next=r,Na(e)):(r.next=o.next,o.next=r),e.interleaved=r,Oa(t,n)}function Oa(t,e){t.lanes|=e;var r=t.alternate;for(null!==r&&(r.lanes|=e),r=t,t=t.return;null!==t;)t.childLanes|=e,null!==(r=t.alternate)&&(r.childLanes|=e),r=t,t=t.return;return 3===r.tag?r.stateNode:null}var za=!1;function Ta(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ra(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function La(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Aa(t,e,r){var n=t.updateQueue;if(null===n)return null;if(n=n.shared,0!=(2&Nl)){var o=n.pending;return null===o?e.next=e:(e.next=o.next,o.next=e),n.pending=e,Oa(t,r)}return null===(o=n.interleaved)?(e.next=e,Na(n)):(e.next=o.next,o.next=e),n.interleaved=e,Oa(t,r)}function Da(t,e,r){if(null!==(e=e.updateQueue)&&(e=e.shared,0!=(4194240&r))){var n=e.lanes;r|=n&=t.pendingLanes,e.lanes=r,ve(t,r)}}function ja(t,e){var r=t.updateQueue,n=t.alternate;if(null!==n&&r===(n=n.updateQueue)){var o=null,a=null;if(null!==(r=r.firstBaseUpdate)){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===a?o=a=i:a=a.next=i,r=r.next}while(null!==r);null===a?o=a=e:a=a.next=e}else o=a=e;return r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:n.shared,effects:n.effects},void(t.updateQueue=r)}null===(t=r.lastBaseUpdate)?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function Ia(t,e,r,n){var o=t.updateQueue;za=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?a=c:i.next=c,i=l;var d=t.alternate;null!==d&&(s=(d=d.updateQueue).lastBaseUpdate)!==i&&(null===s?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l)}if(null!==a){var u=o.baseState;for(i=0,d=c=l=null,s=a;;){var p=s.lane,f=s.eventTime;if((n&p)===p){null!==d&&(d=d.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});t:{var m=t,h=s;switch(p=e,f=r,h.tag){case 1:if("function"==typeof(m=h.payload)){u=m.call(f,u,p);break t}u=m;break t;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=h.payload)?m.call(f,u,p):m))break t;u=j({},u,p);break t;case 2:za=!0}}null!==s.callback&&0!==s.lane&&(t.flags|=64,null===(p=o.effects)?o.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(c=d=f,l=u):d=d.next=f,i|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(p=s).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===d&&(l=u),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,null!==(e=o.shared.interleaved)){o=e;do{i|=o.lane,o=o.next}while(o!==e)}else null===a&&(o.shared.lanes=0);Dl|=i,t.lanes=i,t.memoizedState=u}}function Fa(t,e,r){if(t=e.effects,e.effects=null,null!==t)for(e=0;e<t.length;e++){var n=t[e],o=n.callback;if(null!==o){if(n.callback=null,n=r,"function"!=typeof o)throw Error(a(191,o));o.call(n)}}}var Ba=(new n.Component).refs;function Ua(t,e,r,n){r=null==(r=r(n,e=t.memoizedState))?e:j({},e,r),t.memoizedState=r,0===t.lanes&&(t.updateQueue.baseState=r)}var Wa={isMounted:function(t){return!!(t=t._reactInternals)&&Wt(t)===t},enqueueSetState:function(t,e,r){t=t._reactInternals;var n=tc(),o=ec(t),a=La(n,o);a.payload=e,null!=r&&(a.callback=r),null!==(e=Aa(t,a,o))&&(rc(e,t,o,n),Da(e,t,o))},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=tc(),o=ec(t),a=La(n,o);a.tag=1,a.payload=e,null!=r&&(a.callback=r),null!==(e=Aa(t,a,o))&&(rc(e,t,o,n),Da(e,t,o))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=tc(),n=ec(t),o=La(r,n);o.tag=2,null!=e&&(o.callback=e),null!==(e=Aa(t,o,n))&&(rc(e,t,n,r),Da(e,t,n))}};function $a(t,e,r,n,o,a,i){return"function"==typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(n,a,i):!(e.prototype&&e.prototype.isPureReactComponent&&ln(r,n)&&ln(o,a))}function Va(t,e,r){var n=!1,o=No,a=e.contextType;return"object"==typeof a&&null!==a?a=Ca(a):(o=Ro(e)?zo:Po.current,a=(n=null!=(n=e.contextTypes))?To(t,o):No),e=new e(r,a),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=Wa,t.stateNode=e,e._reactInternals=t,n&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,t.__reactInternalMemoizedMaskedChildContext=a),e}function Ha(t,e,r,n){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(r,n),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(r,n),e.state!==t&&Wa.enqueueReplaceState(e,e.state,null)}function Ya(t,e,r,n){var o=t.stateNode;o.props=r,o.state=t.memoizedState,o.refs=Ba,Ta(t);var a=e.contextType;"object"==typeof a&&null!==a?o.context=Ca(a):(a=Ro(e)?zo:Po.current,o.context=To(t,a)),o.state=t.memoizedState,"function"==typeof(a=e.getDerivedStateFromProps)&&(Ua(t,e,a,r),o.state=t.memoizedState),"function"==typeof e.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(e=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),e!==o.state&&Wa.enqueueReplaceState(o,o.state,null),Ia(t,r,o,n),o.state=t.memoizedState),"function"==typeof o.componentDidMount&&(t.flags|=4194308)}function Xa(t,e,r){if(null!==(t=r.ref)&&"function"!=typeof t&&"object"!=typeof t){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(a(309));var n=r.stateNode}if(!n)throw Error(a(147,t));var o=n,i=""+t;return null!==e&&null!==e.ref&&"function"==typeof e.ref&&e.ref._stringRef===i?e.ref:(e=function(t){var e=o.refs;e===Ba&&(e=o.refs={}),null===t?delete e[i]:e[i]=t},e._stringRef=i,e)}if("string"!=typeof t)throw Error(a(284));if(!r._owner)throw Error(a(290,t))}return t}function qa(t,e){throw t=Object.prototype.toString.call(e),Error(a(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Ka(t){return(0,t._init)(t._payload)}function Qa(t){function e(e,r){if(t){var n=e.deletions;null===n?(e.deletions=[r],e.flags|=16):n.push(r)}}function r(r,n){if(!t)return null;for(;null!==n;)e(r,n),n=n.sibling;return null}function n(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(t,e){return(t=Rc(t,e)).index=0,t.sibling=null,t}function i(e,r,n){return e.index=n,t?null!==(n=e.alternate)?(n=n.index)<r?(e.flags|=2,r):n:(e.flags|=2,r):(e.flags|=1048576,r)}function s(e){return t&&null===e.alternate&&(e.flags|=2),e}function l(t,e,r,n){return null===e||6!==e.tag?((e=jc(r,t.mode,n)).return=t,e):((e=o(e,r)).return=t,e)}function c(t,e,r,n){var a=r.type;return a===_?u(t,e,r.props.children,n,r.key):null!==e&&(e.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===T&&Ka(a)===e.type)?((n=o(e,r.props)).ref=Xa(t,e,r),n.return=t,n):((n=Lc(r.type,r.key,r.props,null,t.mode,n)).ref=Xa(t,e,r),n.return=t,n)}function d(t,e,r,n){return null===e||4!==e.tag||e.stateNode.containerInfo!==r.containerInfo||e.stateNode.implementation!==r.implementation?((e=Ic(r,t.mode,n)).return=t,e):((e=o(e,r.children||[])).return=t,e)}function u(t,e,r,n,a){return null===e||7!==e.tag?((e=Ac(r,t.mode,n,a)).return=t,e):((e=o(e,r)).return=t,e)}function p(t,e,r){if("string"==typeof e&&""!==e||"number"==typeof e)return(e=jc(""+e,t.mode,r)).return=t,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case w:return(r=Lc(e.type,e.key,e.props,null,t.mode,r)).ref=Xa(t,null,e),r.return=t,r;case k:return(e=Ic(e,t.mode,r)).return=t,e;case T:return p(t,(0,e._init)(e._payload),r)}if(et(e)||A(e))return(e=Ac(e,t.mode,r,null)).return=t,e;qa(t,e)}return null}function f(t,e,r,n){var o=null!==e?e.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==o?null:l(t,e,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return r.key===o?c(t,e,r,n):null;case k:return r.key===o?d(t,e,r,n):null;case T:return f(t,e,(o=r._init)(r._payload),n)}if(et(r)||A(r))return null!==o?null:u(t,e,r,n,null);qa(t,r)}return null}function m(t,e,r,n,o){if("string"==typeof n&&""!==n||"number"==typeof n)return l(e,t=t.get(r)||null,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return c(e,t=t.get(null===n.key?r:n.key)||null,n,o);case k:return d(e,t=t.get(null===n.key?r:n.key)||null,n,o);case T:return m(t,e,r,(0,n._init)(n._payload),o)}if(et(n)||A(n))return u(e,t=t.get(r)||null,n,o,null);qa(e,n)}return null}function h(o,a,s,l){for(var c=null,d=null,u=a,h=a=0,b=null;null!==u&&h<s.length;h++){u.index>h?(b=u,u=null):b=u.sibling;var g=f(o,u,s[h],l);if(null===g){null===u&&(u=b);break}t&&u&&null===g.alternate&&e(o,u),a=i(g,a,h),null===d?c=g:d.sibling=g,d=g,u=b}if(h===s.length)return r(o,u),aa&&Jo(o,h),c;if(null===u){for(;h<s.length;h++)null!==(u=p(o,s[h],l))&&(a=i(u,a,h),null===d?c=u:d.sibling=u,d=u);return aa&&Jo(o,h),c}for(u=n(o,u);h<s.length;h++)null!==(b=m(u,o,h,s[h],l))&&(t&&null!==b.alternate&&u.delete(null===b.key?h:b.key),a=i(b,a,h),null===d?c=b:d.sibling=b,d=b);return t&&u.forEach((function(t){return e(o,t)})),aa&&Jo(o,h),c}function b(o,s,l,c){var d=A(l);if("function"!=typeof d)throw Error(a(150));if(null==(l=d.call(l)))throw Error(a(151));for(var u=d=null,h=s,b=s=0,g=null,v=l.next();null!==h&&!v.done;b++,v=l.next()){h.index>b?(g=h,h=null):g=h.sibling;var x=f(o,h,v.value,c);if(null===x){null===h&&(h=g);break}t&&h&&null===x.alternate&&e(o,h),s=i(x,s,b),null===u?d=x:u.sibling=x,u=x,h=g}if(v.done)return r(o,h),aa&&Jo(o,b),d;if(null===h){for(;!v.done;b++,v=l.next())null!==(v=p(o,v.value,c))&&(s=i(v,s,b),null===u?d=v:u.sibling=v,u=v);return aa&&Jo(o,b),d}for(h=n(o,h);!v.done;b++,v=l.next())null!==(v=m(h,o,b,v.value,c))&&(t&&null!==v.alternate&&h.delete(null===v.key?b:v.key),s=i(v,s,b),null===u?d=v:u.sibling=v,u=v);return t&&h.forEach((function(t){return e(o,t)})),aa&&Jo(o,b),d}return function t(n,a,i,l){if("object"==typeof i&&null!==i&&i.type===_&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case w:t:{for(var c=i.key,d=a;null!==d;){if(d.key===c){if((c=i.type)===_){if(7===d.tag){r(n,d.sibling),(a=o(d,i.props.children)).return=n,n=a;break t}}else if(d.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===T&&Ka(c)===d.type){r(n,d.sibling),(a=o(d,i.props)).ref=Xa(n,d,i),a.return=n,n=a;break t}r(n,d);break}e(n,d),d=d.sibling}i.type===_?((a=Ac(i.props.children,n.mode,l,i.key)).return=n,n=a):((l=Lc(i.type,i.key,i.props,null,n.mode,l)).ref=Xa(n,a,i),l.return=n,n=l)}return s(n);case k:t:{for(d=i.key;null!==a;){if(a.key===d){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){r(n,a.sibling),(a=o(a,i.children||[])).return=n,n=a;break t}r(n,a);break}e(n,a),a=a.sibling}(a=Ic(i,n.mode,l)).return=n,n=a}return s(n);case T:return t(n,a,(d=i._init)(i._payload),l)}if(et(i))return h(n,a,i,l);if(A(i))return b(n,a,i,l);qa(n,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==a&&6===a.tag?(r(n,a.sibling),(a=o(a,i)).return=n,n=a):(r(n,a),(a=jc(i,n.mode,l)).return=n,n=a),s(n)):r(n,a)}}var Ga=Qa(!0),Za=Qa(!1),Ja={},ti=So(Ja),ei=So(Ja),ri=So(Ja);function ni(t){if(t===Ja)throw Error(a(174));return t}function oi(t,e){switch(Mo(ri,e),Mo(ei,t),Mo(ti,Ja),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:lt(null,"");break;default:e=lt(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}Co(ti),Mo(ti,e)}function ai(){Co(ti),Co(ei),Co(ri)}function ii(t){ni(ri.current);var e=ni(ti.current),r=lt(e,t.type);e!==r&&(Mo(ei,t),Mo(ti,r))}function si(t){ei.current===t&&(Co(ti),Co(ei))}var li=So(0);function ci(t){for(var e=t;null!==e;){if(13===e.tag){var r=e.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!=(128&e.flags))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var di=[];function ui(){for(var t=0;t<di.length;t++)di[t]._workInProgressVersionPrimary=null;di.length=0}var pi=y.ReactCurrentDispatcher,fi=y.ReactCurrentBatchConfig,mi=0,hi=null,bi=null,gi=null,vi=!1,xi=!1,yi=0,wi=0;function ki(){throw Error(a(321))}function _i(t,e){if(null===e)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!sn(t[r],e[r]))return!1;return!0}function Ei(t,e,r,n,o,i){if(mi=i,hi=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,pi.current=null===t||null===t.memoizedState?ss:ls,t=r(n,o),xi){i=0;do{if(xi=!1,yi=0,25<=i)throw Error(a(301));i+=1,gi=bi=null,e.updateQueue=null,pi.current=cs,t=r(n,o)}while(xi)}if(pi.current=is,e=null!==bi&&null!==bi.next,mi=0,gi=bi=hi=null,vi=!1,e)throw Error(a(300));return t}function Si(){var t=0!==yi;return yi=0,t}function Ci(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===gi?hi.memoizedState=gi=t:gi=gi.next=t,gi}function Mi(){if(null===bi){var t=hi.alternate;t=null!==t?t.memoizedState:null}else t=bi.next;var e=null===gi?hi.memoizedState:gi.next;if(null!==e)gi=e,bi=t;else{if(null===t)throw Error(a(310));t={memoizedState:(bi=t).memoizedState,baseState:bi.baseState,baseQueue:bi.baseQueue,queue:bi.queue,next:null},null===gi?hi.memoizedState=gi=t:gi=gi.next=t}return gi}function Ni(t,e){return"function"==typeof e?e(t):e}function Pi(t){var e=Mi(),r=e.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=t;var n=bi,o=n.baseQueue,i=r.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}n.baseQueue=o=i,r.pending=null}if(null!==o){i=o.next,n=n.baseState;var l=s=null,c=null,d=i;do{var u=d.lane;if((mi&u)===u)null!==c&&(c=c.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),n=d.hasEagerState?d.eagerState:t(n,d.action);else{var p={lane:u,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};null===c?(l=c=p,s=n):c=c.next=p,hi.lanes|=u,Dl|=u}d=d.next}while(null!==d&&d!==i);null===c?s=n:c.next=l,sn(n,e.memoizedState)||(ys=!0),e.memoizedState=n,e.baseState=s,e.baseQueue=c,r.lastRenderedState=n}if(null!==(t=r.interleaved)){o=t;do{i=o.lane,hi.lanes|=i,Dl|=i,o=o.next}while(o!==t)}else null===o&&(r.lanes=0);return[e.memoizedState,r.dispatch]}function Oi(t){var e=Mi(),r=e.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=t;var n=r.dispatch,o=r.pending,i=e.memoizedState;if(null!==o){r.pending=null;var s=o=o.next;do{i=t(i,s.action),s=s.next}while(s!==o);sn(i,e.memoizedState)||(ys=!0),e.memoizedState=i,null===e.baseQueue&&(e.baseState=i),r.lastRenderedState=i}return[i,n]}function zi(){}function Ti(t,e){var r=hi,n=Mi(),o=e(),i=!sn(n.memoizedState,o);if(i&&(n.memoizedState=o,ys=!0),n=n.queue,Vi(Ai.bind(null,r,n,t),[t]),n.getSnapshot!==e||i||null!==gi&&1&gi.memoizedState.tag){if(r.flags|=2048,Fi(9,Li.bind(null,r,n,o,e),void 0,null),null===Pl)throw Error(a(349));0!=(30&mi)||Ri(r,e,o)}return o}function Ri(t,e,r){t.flags|=16384,t={getSnapshot:e,value:r},null===(e=hi.updateQueue)?(e={lastEffect:null,stores:null},hi.updateQueue=e,e.stores=[t]):null===(r=e.stores)?e.stores=[t]:r.push(t)}function Li(t,e,r,n){e.value=r,e.getSnapshot=n,Di(e)&&ji(t)}function Ai(t,e,r){return r((function(){Di(e)&&ji(t)}))}function Di(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!sn(t,r)}catch(t){return!0}}function ji(t){var e=Oa(t,1);null!==e&&rc(e,t,1,-1)}function Ii(t){var e=Ci();return"function"==typeof t&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ni,lastRenderedState:t},e.queue=t,t=t.dispatch=rs.bind(null,hi,t),[e.memoizedState,t]}function Fi(t,e,r,n){return t={tag:t,create:e,destroy:r,deps:n,next:null},null===(e=hi.updateQueue)?(e={lastEffect:null,stores:null},hi.updateQueue=e,e.lastEffect=t.next=t):null===(r=e.lastEffect)?e.lastEffect=t.next=t:(n=r.next,r.next=t,t.next=n,e.lastEffect=t),t}function Bi(){return Mi().memoizedState}function Ui(t,e,r,n){var o=Ci();hi.flags|=t,o.memoizedState=Fi(1|e,r,void 0,void 0===n?null:n)}function Wi(t,e,r,n){var o=Mi();n=void 0===n?null:n;var a=void 0;if(null!==bi){var i=bi.memoizedState;if(a=i.destroy,null!==n&&_i(n,i.deps))return void(o.memoizedState=Fi(e,r,a,n))}hi.flags|=t,o.memoizedState=Fi(1|e,r,a,n)}function $i(t,e){return Ui(8390656,8,t,e)}function Vi(t,e){return Wi(2048,8,t,e)}function Hi(t,e){return Wi(4,2,t,e)}function Yi(t,e){return Wi(4,4,t,e)}function Xi(t,e){return"function"==typeof e?(t=t(),e(t),function(){e(null)}):null!=e?(t=t(),e.current=t,function(){e.current=null}):void 0}function qi(t,e,r){return r=null!=r?r.concat([t]):null,Wi(4,4,Xi.bind(null,e,t),r)}function Ki(){}function Qi(t,e){var r=Mi();e=void 0===e?null:e;var n=r.memoizedState;return null!==n&&null!==e&&_i(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function Gi(t,e){var r=Mi();e=void 0===e?null:e;var n=r.memoizedState;return null!==n&&null!==e&&_i(e,n[1])?n[0]:(t=t(),r.memoizedState=[t,e],t)}function Zi(t,e,r){return 0==(21&mi)?(t.baseState&&(t.baseState=!1,ys=!0),t.memoizedState=r):(sn(r,e)||(r=he(),hi.lanes|=r,Dl|=r,t.baseState=!0),e)}function Ji(t,e){var r=xe;xe=0!==r&&4>r?r:4,t(!0);var n=fi.transition;fi.transition={};try{t(!1),e()}finally{xe=r,fi.transition=n}}function ts(){return Mi().memoizedState}function es(t,e,r){var n=ec(t);r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},ns(t)?os(e,r):null!==(r=Pa(t,e,r,n))&&(rc(r,t,n,tc()),as(r,e,n))}function rs(t,e,r){var n=ec(t),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(ns(t))os(e,o);else{var a=t.alternate;if(0===t.lanes&&(null===a||0===a.lanes)&&null!==(a=e.lastRenderedReducer))try{var i=e.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,sn(s,i)){var l=e.interleaved;return null===l?(o.next=o,Na(e)):(o.next=l.next,l.next=o),void(e.interleaved=o)}}catch(t){}null!==(r=Pa(t,e,o,n))&&(rc(r,t,n,o=tc()),as(r,e,n))}}function ns(t){var e=t.alternate;return t===hi||null!==e&&e===hi}function os(t,e){xi=vi=!0;var r=t.pending;null===r?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function as(t,e,r){if(0!=(4194240&r)){var n=e.lanes;r|=n&=t.pendingLanes,e.lanes=r,ve(t,r)}}var is={readContext:Ca,useCallback:ki,useContext:ki,useEffect:ki,useImperativeHandle:ki,useInsertionEffect:ki,useLayoutEffect:ki,useMemo:ki,useReducer:ki,useRef:ki,useState:ki,useDebugValue:ki,useDeferredValue:ki,useTransition:ki,useMutableSource:ki,useSyncExternalStore:ki,useId:ki,unstable_isNewReconciler:!1},ss={readContext:Ca,useCallback:function(t,e){return Ci().memoizedState=[t,void 0===e?null:e],t},useContext:Ca,useEffect:$i,useImperativeHandle:function(t,e,r){return r=null!=r?r.concat([t]):null,Ui(4194308,4,Xi.bind(null,e,t),r)},useLayoutEffect:function(t,e){return Ui(4194308,4,t,e)},useInsertionEffect:function(t,e){return Ui(4,2,t,e)},useMemo:function(t,e){var r=Ci();return e=void 0===e?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=Ci();return e=void 0!==r?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=es.bind(null,hi,t),[n.memoizedState,t]},useRef:function(t){return t={current:t},Ci().memoizedState=t},useState:Ii,useDebugValue:Ki,useDeferredValue:function(t){return Ci().memoizedState=t},useTransition:function(){var t=Ii(!1),e=t[0];return t=Ji.bind(null,t[1]),Ci().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=hi,o=Ci();if(aa){if(void 0===r)throw Error(a(407));r=r()}else{if(r=e(),null===Pl)throw Error(a(349));0!=(30&mi)||Ri(n,e,r)}o.memoizedState=r;var i={value:r,getSnapshot:e};return o.queue=i,$i(Ai.bind(null,n,i,t),[t]),n.flags|=2048,Fi(9,Li.bind(null,n,i,r,e),void 0,null),r},useId:function(){var t=Ci(),e=Pl.identifierPrefix;if(aa){var r=Zo;e=":"+e+"R"+(r=(Go&~(1<<32-ie(Go)-1)).toString(32)+r),0<(r=yi++)&&(e+="H"+r.toString(32)),e+=":"}else e=":"+e+"r"+(r=wi++).toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},ls={readContext:Ca,useCallback:Qi,useContext:Ca,useEffect:Vi,useImperativeHandle:qi,useInsertionEffect:Hi,useLayoutEffect:Yi,useMemo:Gi,useReducer:Pi,useRef:Bi,useState:function(){return Pi(Ni)},useDebugValue:Ki,useDeferredValue:function(t){return Zi(Mi(),bi.memoizedState,t)},useTransition:function(){return[Pi(Ni)[0],Mi().memoizedState]},useMutableSource:zi,useSyncExternalStore:Ti,useId:ts,unstable_isNewReconciler:!1},cs={readContext:Ca,useCallback:Qi,useContext:Ca,useEffect:Vi,useImperativeHandle:qi,useInsertionEffect:Hi,useLayoutEffect:Yi,useMemo:Gi,useReducer:Oi,useRef:Bi,useState:function(){return Oi(Ni)},useDebugValue:Ki,useDeferredValue:function(t){var e=Mi();return null===bi?e.memoizedState=t:Zi(e,bi.memoizedState,t)},useTransition:function(){return[Oi(Ni)[0],Mi().memoizedState]},useMutableSource:zi,useSyncExternalStore:Ti,useId:ts,unstable_isNewReconciler:!1};function ds(t,e){try{var r="",n=e;do{r+=U(n),n=n.return}while(n);var o=r}catch(t){o="\nError generating stack: "+t.message+"\n"+t.stack}return{value:t,source:e,stack:o,digest:null}}function us(t,e,r){return{value:t,source:null,stack:null!=r?r:null,digest:null!=e?e:null}}function ps(t,e){try{console.error(e.value)}catch(t){setTimeout((function(){throw t}))}}var fs="function"==typeof WeakMap?WeakMap:Map;function ms(t,e,r){(r=La(-1,r)).tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){Vl||(Vl=!0,Hl=n),ps(0,e)},r}function hs(t,e,r){(r=La(-1,r)).tag=3;var n=t.type.getDerivedStateFromError;if("function"==typeof n){var o=e.value;r.payload=function(){return n(o)},r.callback=function(){ps(0,e)}}var a=t.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(r.callback=function(){ps(0,e),"function"!=typeof n&&(null===Yl?Yl=new Set([this]):Yl.add(this));var t=e.stack;this.componentDidCatch(e.value,{componentStack:null!==t?t:""})}),r}function bs(t,e,r){var n=t.pingCache;if(null===n){n=t.pingCache=new fs;var o=new Set;n.set(e,o)}else void 0===(o=n.get(e))&&(o=new Set,n.set(e,o));o.has(r)||(o.add(r),t=Sc.bind(null,t,e,r),e.then(t,t))}function gs(t){do{var e;if((e=13===t.tag)&&(e=null===(e=t.memoizedState)||null!==e.dehydrated),e)return t;t=t.return}while(null!==t);return null}function vs(t,e,r,n,o){return 0==(1&t.mode)?(t===e?t.flags|=65536:(t.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((e=La(-1,1)).tag=2,Aa(r,e,1))),r.lanes|=1),t):(t.flags|=65536,t.lanes=o,t)}var xs=y.ReactCurrentOwner,ys=!1;function ws(t,e,r,n){e.child=null===t?Za(e,null,r,n):Ga(e,t.child,r,n)}function ks(t,e,r,n,o){r=r.render;var a=e.ref;return Sa(e,o),n=Ei(t,e,r,n,a,o),r=Si(),null===t||ys?(aa&&r&&ea(e),e.flags|=1,ws(t,e,n,o),e.child):(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~o,Vs(t,e,o))}function _s(t,e,r,n,o){if(null===t){var a=r.type;return"function"!=typeof a||Tc(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((t=Lc(r.type,null,n,e,e.mode,o)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=a,Es(t,e,a,n,o))}if(a=t.child,0==(t.lanes&o)){var i=a.memoizedProps;if((r=null!==(r=r.compare)?r:ln)(i,n)&&t.ref===e.ref)return Vs(t,e,o)}return e.flags|=1,(t=Rc(a,n)).ref=e.ref,t.return=e,e.child=t}function Es(t,e,r,n,o){if(null!==t){var a=t.memoizedProps;if(ln(a,n)&&t.ref===e.ref){if(ys=!1,e.pendingProps=n=a,0==(t.lanes&o))return e.lanes=t.lanes,Vs(t,e,o);0!=(131072&t.flags)&&(ys=!0)}}return Ms(t,e,r,n,o)}function Ss(t,e,r){var n=e.pendingProps,o=n.children,a=null!==t?t.memoizedState:null;if("hidden"===n.mode)if(0==(1&e.mode))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Mo(Rl,Tl),Tl|=r;else{if(0==(1073741824&r))return t=null!==a?a.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Mo(Rl,Tl),Tl|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==a?a.baseLanes:r,Mo(Rl,Tl),Tl|=n}else null!==a?(n=a.baseLanes|r,e.memoizedState=null):n=r,Mo(Rl,Tl),Tl|=n;return ws(t,e,o,r),e.child}function Cs(t,e){var r=e.ref;(null===t&&null!==r||null!==t&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function Ms(t,e,r,n,o){var a=Ro(r)?zo:Po.current;return a=To(e,a),Sa(e,o),r=Ei(t,e,r,n,a,o),n=Si(),null===t||ys?(aa&&n&&ea(e),e.flags|=1,ws(t,e,r,o),e.child):(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~o,Vs(t,e,o))}function Ns(t,e,r,n,o){if(Ro(r)){var a=!0;jo(e)}else a=!1;if(Sa(e,o),null===e.stateNode)$s(t,e),Va(e,r,n),Ya(e,r,n,o),n=!0;else if(null===t){var i=e.stateNode,s=e.memoizedProps;i.props=s;var l=i.context,c=r.contextType;c="object"==typeof c&&null!==c?Ca(c):To(e,c=Ro(r)?zo:Po.current);var d=r.getDerivedStateFromProps,u="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate;u||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==n||l!==c)&&Ha(e,i,n,c),za=!1;var p=e.memoizedState;i.state=p,Ia(e,n,i,o),l=e.memoizedState,s!==n||p!==l||Oo.current||za?("function"==typeof d&&(Ua(e,r,d,n),l=e.memoizedState),(s=za||$a(e,r,s,n,p,l,c))?(u||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(e.flags|=4194308)):("function"==typeof i.componentDidMount&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=l),i.props=n,i.state=l,i.context=c,n=s):("function"==typeof i.componentDidMount&&(e.flags|=4194308),n=!1)}else{i=e.stateNode,Ra(t,e),s=e.memoizedProps,c=e.type===e.elementType?s:ga(e.type,s),i.props=c,u=e.pendingProps,p=i.context,l="object"==typeof(l=r.contextType)&&null!==l?Ca(l):To(e,l=Ro(r)?zo:Po.current);var f=r.getDerivedStateFromProps;(d="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==u||p!==l)&&Ha(e,i,n,l),za=!1,p=e.memoizedState,i.state=p,Ia(e,n,i,o);var m=e.memoizedState;s!==u||p!==m||Oo.current||za?("function"==typeof f&&(Ua(e,r,f,n),m=e.memoizedState),(c=za||$a(e,r,c,n,p,m,l)||!1)?(d||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(n,m,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(n,m,l)),"function"==typeof i.componentDidUpdate&&(e.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(e.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=m),i.props=n,i.state=m,i.context=l,n=c):("function"!=typeof i.componentDidUpdate||s===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),n=!1)}return Ps(t,e,r,n,a,o)}function Ps(t,e,r,n,o,a){Cs(t,e);var i=0!=(128&e.flags);if(!n&&!i)return o&&Io(e,r,!1),Vs(t,e,a);n=e.stateNode,xs.current=e;var s=i&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return e.flags|=1,null!==t&&i?(e.child=Ga(e,t.child,null,a),e.child=Ga(e,null,s,a)):ws(t,e,s,a),e.memoizedState=n.state,o&&Io(e,r,!0),e.child}function Os(t){var e=t.stateNode;e.pendingContext?Ao(0,e.pendingContext,e.pendingContext!==e.context):e.context&&Ao(0,e.context,!1),oi(t,e.containerInfo)}function zs(t,e,r,n,o){return ma(),ha(o),e.flags|=256,ws(t,e,r,n),e.child}var Ts,Rs,Ls,As={dehydrated:null,treeContext:null,retryLane:0};function Ds(t){return{baseLanes:t,cachePool:null,transitions:null}}function js(t,e,r){var n,o=e.pendingProps,i=li.current,s=!1,l=0!=(128&e.flags);if((n=l)||(n=(null===t||null!==t.memoizedState)&&0!=(2&i)),n?(s=!0,e.flags&=-129):null!==t&&null===t.memoizedState||(i|=1),Mo(li,1&i),null===t)return da(e),null!==(t=e.memoizedState)&&null!==(t=t.dehydrated)?(0==(1&e.mode)?e.lanes=1:"$!"===t.data?e.lanes=8:e.lanes=1073741824,null):(l=o.children,t=o.fallback,s?(o=e.mode,s=e.child,l={mode:"hidden",children:l},0==(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Dc(l,o,0,null),t=Ac(t,o,r,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=Ds(r),e.memoizedState=As,t):Is(e,l));if(null!==(i=t.memoizedState)&&null!==(n=i.dehydrated))return function(t,e,r,n,o,i,s){if(r)return 256&e.flags?(e.flags&=-257,Fs(t,e,s,n=us(Error(a(422))))):null!==e.memoizedState?(e.child=t.child,e.flags|=128,null):(i=n.fallback,o=e.mode,n=Dc({mode:"visible",children:n.children},o,0,null),(i=Ac(i,o,s,null)).flags|=2,n.return=e,i.return=e,n.sibling=i,e.child=n,0!=(1&e.mode)&&Ga(e,t.child,null,s),e.child.memoizedState=Ds(s),e.memoizedState=As,i);if(0==(1&e.mode))return Fs(t,e,s,null);if("$!"===o.data){if(n=o.nextSibling&&o.nextSibling.dataset)var l=n.dgst;return n=l,Fs(t,e,s,n=us(i=Error(a(419)),n,void 0))}if(l=0!=(s&t.childLanes),ys||l){if(null!==(n=Pl)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(n.suspendedLanes|s))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Oa(t,o),rc(n,t,o,-1))}return hc(),Fs(t,e,s,n=us(Error(a(421))))}return"$?"===o.data?(e.flags|=128,e.child=t.child,e=Mc.bind(null,t),o._reactRetry=e,null):(t=i.treeContext,oa=co(o.nextSibling),na=e,aa=!0,ia=null,null!==t&&(qo[Ko++]=Go,qo[Ko++]=Zo,qo[Ko++]=Qo,Go=t.id,Zo=t.overflow,Qo=e),(e=Is(e,n.children)).flags|=4096,e)}(t,e,l,o,n,i,r);if(s){s=o.fallback,l=e.mode,n=(i=t.child).sibling;var c={mode:"hidden",children:o.children};return 0==(1&l)&&e.child!==i?((o=e.child).childLanes=0,o.pendingProps=c,e.deletions=null):(o=Rc(i,c)).subtreeFlags=14680064&i.subtreeFlags,null!==n?s=Rc(n,s):(s=Ac(s,l,r,null)).flags|=2,s.return=e,o.return=e,o.sibling=s,e.child=o,o=s,s=e.child,l=null===(l=t.child.memoizedState)?Ds(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=t.childLanes&~r,e.memoizedState=As,o}return t=(s=t.child).sibling,o=Rc(s,{mode:"visible",children:o.children}),0==(1&e.mode)&&(o.lanes=r),o.return=e,o.sibling=null,null!==t&&(null===(r=e.deletions)?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=o,e.memoizedState=null,o}function Is(t,e){return(e=Dc({mode:"visible",children:e},t.mode,0,null)).return=t,t.child=e}function Fs(t,e,r,n){return null!==n&&ha(n),Ga(e,t.child,null,r),(t=Is(e,e.pendingProps.children)).flags|=2,e.memoizedState=null,t}function Bs(t,e,r){t.lanes|=e;var n=t.alternate;null!==n&&(n.lanes|=e),Ea(t.return,e,r)}function Us(t,e,r,n,o){var a=t.memoizedState;null===a?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(a.isBackwards=e,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=o)}function Ws(t,e,r){var n=e.pendingProps,o=n.revealOrder,a=n.tail;if(ws(t,e,n.children,r),0!=(2&(n=li.current)))n=1&n|2,e.flags|=128;else{if(null!==t&&0!=(128&t.flags))t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&Bs(t,r,e);else if(19===t.tag)Bs(t,r,e);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}if(Mo(li,n),0==(1&e.mode))e.memoizedState=null;else switch(o){case"forwards":for(r=e.child,o=null;null!==r;)null!==(t=r.alternate)&&null===ci(t)&&(o=r),r=r.sibling;null===(r=o)?(o=e.child,e.child=null):(o=r.sibling,r.sibling=null),Us(e,!1,o,r,a);break;case"backwards":for(r=null,o=e.child,e.child=null;null!==o;){if(null!==(t=o.alternate)&&null===ci(t)){e.child=o;break}t=o.sibling,o.sibling=r,r=o,o=t}Us(e,!0,r,null,a);break;case"together":Us(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function $s(t,e){0==(1&e.mode)&&null!==t&&(t.alternate=null,e.alternate=null,e.flags|=2)}function Vs(t,e,r){if(null!==t&&(e.dependencies=t.dependencies),Dl|=e.lanes,0==(r&e.childLanes))return null;if(null!==t&&e.child!==t.child)throw Error(a(153));if(null!==e.child){for(r=Rc(t=e.child,t.pendingProps),e.child=r,r.return=e;null!==t.sibling;)t=t.sibling,(r=r.sibling=Rc(t,t.pendingProps)).return=e;r.sibling=null}return e.child}function Hs(t,e){if(!aa)switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;null!==e;)null!==e.alternate&&(r=e),e=e.sibling;null===r?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?e||null===t.tail?t.tail=null:t.tail.sibling=null:n.sibling=null}}function Ys(t){var e=null!==t.alternate&&t.alternate.child===t.child,r=0,n=0;if(e)for(var o=t.child;null!==o;)r|=o.lanes|o.childLanes,n|=14680064&o.subtreeFlags,n|=14680064&o.flags,o.return=t,o=o.sibling;else for(o=t.child;null!==o;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=n,t.childLanes=r,e}function Xs(t,e,r){var n=e.pendingProps;switch(ra(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ys(e),null;case 1:case 17:return Ro(e.type)&&Lo(),Ys(e),null;case 3:return n=e.stateNode,ai(),Co(Oo),Co(Po),ui(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==t&&null!==t.child||(pa(e)?e.flags|=4:null===t||t.memoizedState.isDehydrated&&0==(256&e.flags)||(e.flags|=1024,null!==ia&&(ic(ia),ia=null))),Ys(e),null;case 5:si(e);var o=ni(ri.current);if(r=e.type,null!==t&&null!=e.stateNode)Rs(t,e,r,n),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(null===e.stateNode)throw Error(a(166));return Ys(e),null}if(t=ni(ti.current),pa(e)){n=e.stateNode,r=e.type;var i=e.memoizedProps;switch(n[fo]=e,n[mo]=i,t=0!=(1&e.mode),r){case"dialog":Fn("cancel",n),Fn("close",n);break;case"iframe":case"object":case"embed":Fn("load",n);break;case"video":case"audio":for(o=0;o<An.length;o++)Fn(An[o],n);break;case"source":Fn("error",n);break;case"img":case"image":case"link":Fn("error",n),Fn("load",n);break;case"details":Fn("toggle",n);break;case"input":Q(n,i),Fn("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},Fn("invalid",n);break;case"textarea":ot(n,i),Fn("invalid",n)}for(var l in vt(r,i),o=null,i)if(i.hasOwnProperty(l)){var c=i[l];"children"===l?"string"==typeof c?n.textContent!==c&&(!0!==i.suppressHydrationWarning&&Zn(n.textContent,c,t),o=["children",c]):"number"==typeof c&&n.textContent!==""+c&&(!0!==i.suppressHydrationWarning&&Zn(n.textContent,c,t),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Fn("scroll",n)}switch(r){case"input":Y(n),J(n,i,!0);break;case"textarea":Y(n),it(n);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(n.onclick=Jn)}n=o,e.updateQueue=n,null!==n&&(e.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===t&&(t=st(r)),"http://www.w3.org/1999/xhtml"===t?"script"===r?((t=l.createElement("div")).innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):"string"==typeof n.is?t=l.createElement(r,{is:n.is}):(t=l.createElement(r),"select"===r&&(l=t,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):t=l.createElementNS(t,r),t[fo]=e,t[mo]=n,Ts(t,e),e.stateNode=t;t:{switch(l=xt(r,n),r){case"dialog":Fn("cancel",t),Fn("close",t),o=n;break;case"iframe":case"object":case"embed":Fn("load",t),o=n;break;case"video":case"audio":for(o=0;o<An.length;o++)Fn(An[o],t);o=n;break;case"source":Fn("error",t),o=n;break;case"img":case"image":case"link":Fn("error",t),Fn("load",t),o=n;break;case"details":Fn("toggle",t),o=n;break;case"input":Q(t,n),o=K(t,n),Fn("invalid",t);break;case"option":default:o=n;break;case"select":t._wrapperState={wasMultiple:!!n.multiple},o=j({},n,{value:void 0}),Fn("invalid",t);break;case"textarea":ot(t,n),o=nt(t,n),Fn("invalid",t)}for(i in vt(r,o),c=o)if(c.hasOwnProperty(i)){var d=c[i];"style"===i?bt(t,d):"dangerouslySetInnerHTML"===i?null!=(d=d?d.__html:void 0)&&ut(t,d):"children"===i?"string"==typeof d?("textarea"!==r||""!==d)&&pt(t,d):"number"==typeof d&&pt(t,""+d):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(s.hasOwnProperty(i)?null!=d&&"onScroll"===i&&Fn("scroll",t):null!=d&&x(t,i,d,l))}switch(r){case"input":Y(t),J(t,n,!1);break;case"textarea":Y(t),it(t);break;case"option":null!=n.value&&t.setAttribute("value",""+V(n.value));break;case"select":t.multiple=!!n.multiple,null!=(i=n.value)?rt(t,!!n.multiple,i,!1):null!=n.defaultValue&&rt(t,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&(t.onclick=Jn)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}}n&&(e.flags|=4)}null!==e.ref&&(e.flags|=512,e.flags|=2097152)}return Ys(e),null;case 6:if(t&&null!=e.stateNode)Ls(0,e,t.memoizedProps,n);else{if("string"!=typeof n&&null===e.stateNode)throw Error(a(166));if(r=ni(ri.current),ni(ti.current),pa(e)){if(n=e.stateNode,r=e.memoizedProps,n[fo]=e,(i=n.nodeValue!==r)&&null!==(t=na))switch(t.tag){case 3:Zn(n.nodeValue,r,0!=(1&t.mode));break;case 5:!0!==t.memoizedProps.suppressHydrationWarning&&Zn(n.nodeValue,r,0!=(1&t.mode))}i&&(e.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[fo]=e,e.stateNode=n}return Ys(e),null;case 13:if(Co(li),n=e.memoizedState,null===t||null!==t.memoizedState&&null!==t.memoizedState.dehydrated){if(aa&&null!==oa&&0!=(1&e.mode)&&0==(128&e.flags))fa(),ma(),e.flags|=98560,i=!1;else if(i=pa(e),null!==n&&null!==n.dehydrated){if(null===t){if(!i)throw Error(a(318));if(!(i=null!==(i=e.memoizedState)?i.dehydrated:null))throw Error(a(317));i[fo]=e}else ma(),0==(128&e.flags)&&(e.memoizedState=null),e.flags|=4;Ys(e),i=!1}else null!==ia&&(ic(ia),ia=null),i=!0;if(!i)return 65536&e.flags?e:null}return 0!=(128&e.flags)?(e.lanes=r,e):((n=null!==n)!=(null!==t&&null!==t.memoizedState)&&n&&(e.child.flags|=8192,0!=(1&e.mode)&&(null===t||0!=(1&li.current)?0===Ll&&(Ll=3):hc())),null!==e.updateQueue&&(e.flags|=4),Ys(e),null);case 4:return ai(),null===t&&Wn(e.stateNode.containerInfo),Ys(e),null;case 10:return _a(e.type._context),Ys(e),null;case 19:if(Co(li),null===(i=e.memoizedState))return Ys(e),null;if(n=0!=(128&e.flags),null===(l=i.rendering))if(n)Hs(i,!1);else{if(0!==Ll||null!==t&&0!=(128&t.flags))for(t=e.child;null!==t;){if(null!==(l=ci(t))){for(e.flags|=128,Hs(i,!1),null!==(n=l.updateQueue)&&(e.updateQueue=n,e.flags|=4),e.subtreeFlags=0,n=r,r=e.child;null!==r;)t=n,(i=r).flags&=14680066,null===(l=i.alternate)?(i.childLanes=0,i.lanes=t,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,t=l.dependencies,i.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),r=r.sibling;return Mo(li,1&li.current|2),e.child}t=t.sibling}null!==i.tail&&Gt()>Wl&&(e.flags|=128,n=!0,Hs(i,!1),e.lanes=4194304)}else{if(!n)if(null!==(t=ci(l))){if(e.flags|=128,n=!0,null!==(r=t.updateQueue)&&(e.updateQueue=r,e.flags|=4),Hs(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!aa)return Ys(e),null}else 2*Gt()-i.renderingStartTime>Wl&&1073741824!==r&&(e.flags|=128,n=!0,Hs(i,!1),e.lanes=4194304);i.isBackwards?(l.sibling=e.child,e.child=l):(null!==(r=i.last)?r.sibling=l:e.child=l,i.last=l)}return null!==i.tail?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Gt(),e.sibling=null,r=li.current,Mo(li,n?1&r|2:1&r),e):(Ys(e),null);case 22:case 23:return uc(),n=null!==e.memoizedState,null!==t&&null!==t.memoizedState!==n&&(e.flags|=8192),n&&0!=(1&e.mode)?0!=(1073741824&Tl)&&(Ys(e),6&e.subtreeFlags&&(e.flags|=8192)):Ys(e),null;case 24:case 25:return null}throw Error(a(156,e.tag))}function qs(t,e){switch(ra(e),e.tag){case 1:return Ro(e.type)&&Lo(),65536&(t=e.flags)?(e.flags=-65537&t|128,e):null;case 3:return ai(),Co(Oo),Co(Po),ui(),0!=(65536&(t=e.flags))&&0==(128&t)?(e.flags=-65537&t|128,e):null;case 5:return si(e),null;case 13:if(Co(li),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(a(340));ma()}return 65536&(t=e.flags)?(e.flags=-65537&t|128,e):null;case 19:return Co(li),null;case 4:return ai(),null;case 10:return _a(e.type._context),null;case 22:case 23:return uc(),null;default:return null}}Ts=function(t,e){for(var r=e.child;null!==r;){if(5===r.tag||6===r.tag)t.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Rs=function(t,e,r,n){var o=t.memoizedProps;if(o!==n){t=e.stateNode,ni(ti.current);var a,i=null;switch(r){case"input":o=K(t,o),n=K(t,n),i=[];break;case"select":o=j({},o,{value:void 0}),n=j({},n,{value:void 0}),i=[];break;case"textarea":o=nt(t,o),n=nt(t,n),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof n.onClick&&(t.onclick=Jn)}for(d in vt(r,n),r=null,o)if(!n.hasOwnProperty(d)&&o.hasOwnProperty(d)&&null!=o[d])if("style"===d){var l=o[d];for(a in l)l.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(s.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in n){var c=n[d];if(l=null!=o?o[d]:void 0,n.hasOwnProperty(d)&&c!==l&&(null!=c||null!=l))if("style"===d)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(r||(r={}),r[a]=c[a])}else r||(i||(i=[]),i.push(d,r)),r=c;else"dangerouslySetInnerHTML"===d?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(i=i||[]).push(d,c)):"children"===d?"string"!=typeof c&&"number"!=typeof c||(i=i||[]).push(d,""+c):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(s.hasOwnProperty(d)?(null!=c&&"onScroll"===d&&Fn("scroll",t),i||l===c||(i=[])):(i=i||[]).push(d,c))}r&&(i=i||[]).push("style",r);var d=i;(e.updateQueue=d)&&(e.flags|=4)}},Ls=function(t,e,r,n){r!==n&&(e.flags|=4)};var Ks=!1,Qs=!1,Gs="function"==typeof WeakSet?WeakSet:Set,Zs=null;function Js(t,e){var r=t.ref;if(null!==r)if("function"==typeof r)try{r(null)}catch(r){Ec(t,e,r)}else r.current=null}function tl(t,e,r){try{r()}catch(r){Ec(t,e,r)}}var el=!1;function rl(t,e,r){var n=e.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{if((o.tag&t)===t){var a=o.destroy;o.destroy=void 0,void 0!==a&&tl(e,r,a)}o=o.next}while(o!==n)}}function nl(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function ol(t){var e=t.ref;if(null!==e){var r=t.stateNode;t.tag,t=r,"function"==typeof e?e(t):e.current=t}}function al(t){var e=t.alternate;null!==e&&(t.alternate=null,al(e)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&null!==(e=t.stateNode)&&(delete e[fo],delete e[mo],delete e[bo],delete e[go],delete e[vo]),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function il(t){return 5===t.tag||3===t.tag||4===t.tag}function sl(t){t:for(;;){for(;null===t.sibling;){if(null===t.return||il(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&18!==t.tag;){if(2&t.flags)continue t;if(null===t.child||4===t.tag)continue t;t.child.return=t,t=t.child}if(!(2&t.flags))return t.stateNode}}function ll(t,e,r){var n=t.tag;if(5===n||6===n)t=t.stateNode,e?8===r.nodeType?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(8===r.nodeType?(e=r.parentNode).insertBefore(t,r):(e=r).appendChild(t),null!=(r=r._reactRootContainer)||null!==e.onclick||(e.onclick=Jn));else if(4!==n&&null!==(t=t.child))for(ll(t,e,r),t=t.sibling;null!==t;)ll(t,e,r),t=t.sibling}function cl(t,e,r){var n=t.tag;if(5===n||6===n)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(4!==n&&null!==(t=t.child))for(cl(t,e,r),t=t.sibling;null!==t;)cl(t,e,r),t=t.sibling}var dl=null,ul=!1;function pl(t,e,r){for(r=r.child;null!==r;)fl(t,e,r),r=r.sibling}function fl(t,e,r){if(ae&&"function"==typeof ae.onCommitFiberUnmount)try{ae.onCommitFiberUnmount(oe,r)}catch(t){}switch(r.tag){case 5:Qs||Js(r,e);case 6:var n=dl,o=ul;dl=null,pl(t,e,r),ul=o,null!==(dl=n)&&(ul?(t=dl,r=r.stateNode,8===t.nodeType?t.parentNode.removeChild(r):t.removeChild(r)):dl.removeChild(r.stateNode));break;case 18:null!==dl&&(ul?(t=dl,r=r.stateNode,8===t.nodeType?lo(t.parentNode,r):1===t.nodeType&&lo(t,r),We(t)):lo(dl,r.stateNode));break;case 4:n=dl,o=ul,dl=r.stateNode.containerInfo,ul=!0,pl(t,e,r),dl=n,ul=o;break;case 0:case 11:case 14:case 15:if(!Qs&&null!==(n=r.updateQueue)&&null!==(n=n.lastEffect)){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&tl(r,e,i),o=o.next}while(o!==n)}pl(t,e,r);break;case 1:if(!Qs&&(Js(r,e),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(t){Ec(r,e,t)}pl(t,e,r);break;case 21:pl(t,e,r);break;case 22:1&r.mode?(Qs=(n=Qs)||null!==r.memoizedState,pl(t,e,r),Qs=n):pl(t,e,r);break;default:pl(t,e,r)}}function ml(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var r=t.stateNode;null===r&&(r=t.stateNode=new Gs),e.forEach((function(e){var n=Nc.bind(null,t,e);r.has(e)||(r.add(e),e.then(n,n))}))}}function hl(t,e){var r=e.deletions;if(null!==r)for(var n=0;n<r.length;n++){var o=r[n];try{var i=t,s=e,l=s;t:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,ul=!1;break t;case 3:case 4:dl=l.stateNode.containerInfo,ul=!0;break t}l=l.return}if(null===dl)throw Error(a(160));fl(i,s,o),dl=null,ul=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(t){Ec(o,e,t)}}if(12854&e.subtreeFlags)for(e=e.child;null!==e;)bl(e,t),e=e.sibling}function bl(t,e){var r=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(hl(e,t),gl(t),4&n){try{rl(3,t,t.return),nl(3,t)}catch(e){Ec(t,t.return,e)}try{rl(5,t,t.return)}catch(e){Ec(t,t.return,e)}}break;case 1:hl(e,t),gl(t),512&n&&null!==r&&Js(r,r.return);break;case 5:if(hl(e,t),gl(t),512&n&&null!==r&&Js(r,r.return),32&t.flags){var o=t.stateNode;try{pt(o,"")}catch(e){Ec(t,t.return,e)}}if(4&n&&null!=(o=t.stateNode)){var i=t.memoizedProps,s=null!==r?r.memoizedProps:i,l=t.type,c=t.updateQueue;if(t.updateQueue=null,null!==c)try{"input"===l&&"radio"===i.type&&null!=i.name&&G(o,i),xt(l,s);var d=xt(l,i);for(s=0;s<c.length;s+=2){var u=c[s],p=c[s+1];"style"===u?bt(o,p):"dangerouslySetInnerHTML"===u?ut(o,p):"children"===u?pt(o,p):x(o,u,p,d)}switch(l){case"input":Z(o,i);break;case"textarea":at(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var m=i.value;null!=m?rt(o,!!i.multiple,m,!1):f!==!!i.multiple&&(null!=i.defaultValue?rt(o,!!i.multiple,i.defaultValue,!0):rt(o,!!i.multiple,i.multiple?[]:"",!1))}o[mo]=i}catch(e){Ec(t,t.return,e)}}break;case 6:if(hl(e,t),gl(t),4&n){if(null===t.stateNode)throw Error(a(162));o=t.stateNode,i=t.memoizedProps;try{o.nodeValue=i}catch(e){Ec(t,t.return,e)}}break;case 3:if(hl(e,t),gl(t),4&n&&null!==r&&r.memoizedState.isDehydrated)try{We(e.containerInfo)}catch(e){Ec(t,t.return,e)}break;case 4:default:hl(e,t),gl(t);break;case 13:hl(e,t),gl(t),8192&(o=t.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Ul=Gt())),4&n&&ml(t);break;case 22:if(u=null!==r&&null!==r.memoizedState,1&t.mode?(Qs=(d=Qs)||u,hl(e,t),Qs=d):hl(e,t),gl(t),8192&n){if(d=null!==t.memoizedState,(t.stateNode.isHidden=d)&&!u&&0!=(1&t.mode))for(Zs=t,u=t.child;null!==u;){for(p=Zs=u;null!==Zs;){switch(m=(f=Zs).child,f.tag){case 0:case 11:case 14:case 15:rl(4,f,f.return);break;case 1:Js(f,f.return);var h=f.stateNode;if("function"==typeof h.componentWillUnmount){n=f,r=f.return;try{e=n,h.props=e.memoizedProps,h.state=e.memoizedState,h.componentWillUnmount()}catch(t){Ec(n,r,t)}}break;case 5:Js(f,f.return);break;case 22:if(null!==f.memoizedState){wl(p);continue}}null!==m?(m.return=f,Zs=m):wl(p)}u=u.sibling}t:for(u=null,p=t;;){if(5===p.tag){if(null===u){u=p;try{o=p.stateNode,d?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=p.stateNode,s=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=ht("display",s))}catch(e){Ec(t,t.return,e)}}}else if(6===p.tag){if(null===u)try{p.stateNode.nodeValue=d?"":p.memoizedProps}catch(e){Ec(t,t.return,e)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===t)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===t)break t;for(;null===p.sibling;){if(null===p.return||p.return===t)break t;u===p&&(u=null),p=p.return}u===p&&(u=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:hl(e,t),gl(t),4&n&&ml(t);case 21:}}function gl(t){var e=t.flags;if(2&e){try{t:{for(var r=t.return;null!==r;){if(il(r)){var n=r;break t}r=r.return}throw Error(a(160))}switch(n.tag){case 5:var o=n.stateNode;32&n.flags&&(pt(o,""),n.flags&=-33),cl(t,sl(t),o);break;case 3:case 4:var i=n.stateNode.containerInfo;ll(t,sl(t),i);break;default:throw Error(a(161))}}catch(e){Ec(t,t.return,e)}t.flags&=-3}4096&e&&(t.flags&=-4097)}function vl(t,e,r){Zs=t,xl(t,e,r)}function xl(t,e,r){for(var n=0!=(1&t.mode);null!==Zs;){var o=Zs,a=o.child;if(22===o.tag&&n){var i=null!==o.memoizedState||Ks;if(!i){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Qs;s=Ks;var c=Qs;if(Ks=i,(Qs=l)&&!c)for(Zs=o;null!==Zs;)l=(i=Zs).child,22===i.tag&&null!==i.memoizedState?kl(o):null!==l?(l.return=i,Zs=l):kl(o);for(;null!==a;)Zs=a,xl(a,e,r),a=a.sibling;Zs=o,Ks=s,Qs=c}yl(t)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,Zs=a):yl(t)}}function yl(t){for(;null!==Zs;){var e=Zs;if(0!=(8772&e.flags)){var r=e.alternate;try{if(0!=(8772&e.flags))switch(e.tag){case 0:case 11:case 15:Qs||nl(5,e);break;case 1:var n=e.stateNode;if(4&e.flags&&!Qs)if(null===r)n.componentDidMount();else{var o=e.elementType===e.type?r.memoizedProps:ga(e.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;null!==i&&Fa(e,i,n);break;case 3:var s=e.updateQueue;if(null!==s){if(r=null,null!==e.child)switch(e.child.tag){case 5:case 1:r=e.child.stateNode}Fa(e,s,r)}break;case 5:var l=e.stateNode;if(null===r&&4&e.flags){r=l;var c=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===e.memoizedState){var d=e.alternate;if(null!==d){var u=d.memoizedState;if(null!==u){var p=u.dehydrated;null!==p&&We(p)}}}break;default:throw Error(a(163))}Qs||512&e.flags&&ol(e)}catch(t){Ec(e,e.return,t)}}if(e===t){Zs=null;break}if(null!==(r=e.sibling)){r.return=e.return,Zs=r;break}Zs=e.return}}function wl(t){for(;null!==Zs;){var e=Zs;if(e===t){Zs=null;break}var r=e.sibling;if(null!==r){r.return=e.return,Zs=r;break}Zs=e.return}}function kl(t){for(;null!==Zs;){var e=Zs;try{switch(e.tag){case 0:case 11:case 15:var r=e.return;try{nl(4,e)}catch(t){Ec(e,r,t)}break;case 1:var n=e.stateNode;if("function"==typeof n.componentDidMount){var o=e.return;try{n.componentDidMount()}catch(t){Ec(e,o,t)}}var a=e.return;try{ol(e)}catch(t){Ec(e,a,t)}break;case 5:var i=e.return;try{ol(e)}catch(t){Ec(e,i,t)}}}catch(t){Ec(e,e.return,t)}if(e===t){Zs=null;break}var s=e.sibling;if(null!==s){s.return=e.return,Zs=s;break}Zs=e.return}}var _l,El=Math.ceil,Sl=y.ReactCurrentDispatcher,Cl=y.ReactCurrentOwner,Ml=y.ReactCurrentBatchConfig,Nl=0,Pl=null,Ol=null,zl=0,Tl=0,Rl=So(0),Ll=0,Al=null,Dl=0,jl=0,Il=0,Fl=null,Bl=null,Ul=0,Wl=1/0,$l=null,Vl=!1,Hl=null,Yl=null,Xl=!1,ql=null,Kl=0,Ql=0,Gl=null,Zl=-1,Jl=0;function tc(){return 0!=(6&Nl)?Gt():-1!==Zl?Zl:Zl=Gt()}function ec(t){return 0==(1&t.mode)?1:0!=(2&Nl)&&0!==zl?zl&-zl:null!==ba.transition?(0===Jl&&(Jl=he()),Jl):0!==(t=xe)?t:t=void 0===(t=window.event)?16:Qe(t.type)}function rc(t,e,r,n){if(50<Ql)throw Ql=0,Gl=null,Error(a(185));ge(t,r,n),0!=(2&Nl)&&t===Pl||(t===Pl&&(0==(2&Nl)&&(jl|=r),4===Ll&&sc(t,zl)),nc(t,n),1===r&&0===Nl&&0==(1&e.mode)&&(Wl=Gt()+500,Bo&&$o()))}function nc(t,e){var r=t.callbackNode;!function(t,e){for(var r=t.suspendedLanes,n=t.pingedLanes,o=t.expirationTimes,a=t.pendingLanes;0<a;){var i=31-ie(a),s=1<<i,l=o[i];-1===l?0!=(s&r)&&0==(s&n)||(o[i]=fe(s,e)):l<=e&&(t.expiredLanes|=s),a&=~s}}(t,e);var n=pe(t,t===Pl?zl:0);if(0===n)null!==r&&qt(r),t.callbackNode=null,t.callbackPriority=0;else if(e=n&-n,t.callbackPriority!==e){if(null!=r&&qt(r),1===e)0===t.tag?function(t){Bo=!0,Wo(t)}(lc.bind(null,t)):Wo(lc.bind(null,t)),io((function(){0==(6&Nl)&&$o()})),r=null;else{switch(ye(n)){case 1:r=Jt;break;case 4:r=te;break;case 16:default:r=ee;break;case 536870912:r=ne}r=Pc(r,oc.bind(null,t))}t.callbackPriority=e,t.callbackNode=r}}function oc(t,e){if(Zl=-1,Jl=0,0!=(6&Nl))throw Error(a(327));var r=t.callbackNode;if(kc()&&t.callbackNode!==r)return null;var n=pe(t,t===Pl?zl:0);if(0===n)return null;if(0!=(30&n)||0!=(n&t.expiredLanes)||e)e=bc(t,n);else{e=n;var o=Nl;Nl|=2;var i=mc();for(Pl===t&&zl===e||($l=null,Wl=Gt()+500,pc(t,e));;)try{vc();break}catch(e){fc(t,e)}ka(),Sl.current=i,Nl=o,null!==Ol?e=0:(Pl=null,zl=0,e=Ll)}if(0!==e){if(2===e&&0!==(o=me(t))&&(n=o,e=ac(t,o)),1===e)throw r=Al,pc(t,0),sc(t,n),nc(t,Gt()),r;if(6===e)sc(t,n);else{if(o=t.current.alternate,0==(30&n)&&!function(t){for(var e=t;;){if(16384&e.flags){var r=e.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var o=r[n],a=o.getSnapshot;o=o.value;try{if(!sn(a(),o))return!1}catch(t){return!1}}}if(r=e.child,16384&e.subtreeFlags&&null!==r)r.return=e,e=r;else{if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}(o)&&(2===(e=bc(t,n))&&0!==(i=me(t))&&(n=i,e=ac(t,i)),1===e))throw r=Al,pc(t,0),sc(t,n),nc(t,Gt()),r;switch(t.finishedWork=o,t.finishedLanes=n,e){case 0:case 1:throw Error(a(345));case 2:case 5:wc(t,Bl,$l);break;case 3:if(sc(t,n),(130023424&n)===n&&10<(e=Ul+500-Gt())){if(0!==pe(t,0))break;if(((o=t.suspendedLanes)&n)!==n){tc(),t.pingedLanes|=t.suspendedLanes&o;break}t.timeoutHandle=no(wc.bind(null,t,Bl,$l),e);break}wc(t,Bl,$l);break;case 4:if(sc(t,n),(4194240&n)===n)break;for(e=t.eventTimes,o=-1;0<n;){var s=31-ie(n);i=1<<s,(s=e[s])>o&&(o=s),n&=~i}if(n=o,10<(n=(120>(n=Gt()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*El(n/1960))-n)){t.timeoutHandle=no(wc.bind(null,t,Bl,$l),n);break}wc(t,Bl,$l);break;default:throw Error(a(329))}}}return nc(t,Gt()),t.callbackNode===r?oc.bind(null,t):null}function ac(t,e){var r=Fl;return t.current.memoizedState.isDehydrated&&(pc(t,e).flags|=256),2!==(t=bc(t,e))&&(e=Bl,Bl=r,null!==e&&ic(e)),t}function ic(t){null===Bl?Bl=t:Bl.push.apply(Bl,t)}function sc(t,e){for(e&=~Il,e&=~jl,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var r=31-ie(e),n=1<<r;t[r]=-1,e&=~n}}function lc(t){if(0!=(6&Nl))throw Error(a(327));kc();var e=pe(t,0);if(0==(1&e))return nc(t,Gt()),null;var r=bc(t,e);if(0!==t.tag&&2===r){var n=me(t);0!==n&&(e=n,r=ac(t,n))}if(1===r)throw r=Al,pc(t,0),sc(t,e),nc(t,Gt()),r;if(6===r)throw Error(a(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,wc(t,Bl,$l),nc(t,Gt()),null}function cc(t,e){var r=Nl;Nl|=1;try{return t(e)}finally{0===(Nl=r)&&(Wl=Gt()+500,Bo&&$o())}}function dc(t){null!==ql&&0===ql.tag&&0==(6&Nl)&&kc();var e=Nl;Nl|=1;var r=Ml.transition,n=xe;try{if(Ml.transition=null,xe=1,t)return t()}finally{xe=n,Ml.transition=r,0==(6&(Nl=e))&&$o()}}function uc(){Tl=Rl.current,Co(Rl)}function pc(t,e){t.finishedWork=null,t.finishedLanes=0;var r=t.timeoutHandle;if(-1!==r&&(t.timeoutHandle=-1,oo(r)),null!==Ol)for(r=Ol.return;null!==r;){var n=r;switch(ra(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&Lo();break;case 3:ai(),Co(Oo),Co(Po),ui();break;case 5:si(n);break;case 4:ai();break;case 13:case 19:Co(li);break;case 10:_a(n.type._context);break;case 22:case 23:uc()}r=r.return}if(Pl=t,Ol=t=Rc(t.current,null),zl=Tl=e,Ll=0,Al=null,Il=jl=Dl=0,Bl=Fl=null,null!==Ma){for(e=0;e<Ma.length;e++)if(null!==(n=(r=Ma[e]).interleaved)){r.interleaved=null;var o=n.next,a=r.pending;if(null!==a){var i=a.next;a.next=o,n.next=i}r.pending=n}Ma=null}return t}function fc(t,e){for(;;){var r=Ol;try{if(ka(),pi.current=is,vi){for(var n=hi.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}vi=!1}if(mi=0,gi=bi=hi=null,xi=!1,yi=0,Cl.current=null,null===r||null===r.return){Ll=1,Al=e,Ol=null;break}t:{var i=t,s=r.return,l=r,c=e;if(e=zl,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var d=c,u=l,p=u.tag;if(0==(1&u.mode)&&(0===p||11===p||15===p)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var m=gs(s);if(null!==m){m.flags&=-257,vs(m,s,l,0,e),1&m.mode&&bs(i,d,e),c=d;var h=(e=m).updateQueue;if(null===h){var b=new Set;b.add(c),e.updateQueue=b}else h.add(c);break t}if(0==(1&e)){bs(i,d,e),hc();break t}c=Error(a(426))}else if(aa&&1&l.mode){var g=gs(s);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),vs(g,s,l,0,e),ha(ds(c,l));break t}}i=c=ds(c,l),4!==Ll&&(Ll=2),null===Fl?Fl=[i]:Fl.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e,ja(i,ms(0,c,e));break t;case 1:l=c;var v=i.type,x=i.stateNode;if(0==(128&i.flags)&&("function"==typeof v.getDerivedStateFromError||null!==x&&"function"==typeof x.componentDidCatch&&(null===Yl||!Yl.has(x)))){i.flags|=65536,e&=-e,i.lanes|=e,ja(i,hs(i,l,e));break t}}i=i.return}while(null!==i)}yc(r)}catch(t){e=t,Ol===r&&null!==r&&(Ol=r=r.return);continue}break}}function mc(){var t=Sl.current;return Sl.current=is,null===t?is:t}function hc(){0!==Ll&&3!==Ll&&2!==Ll||(Ll=4),null===Pl||0==(268435455&Dl)&&0==(268435455&jl)||sc(Pl,zl)}function bc(t,e){var r=Nl;Nl|=2;var n=mc();for(Pl===t&&zl===e||($l=null,pc(t,e));;)try{gc();break}catch(e){fc(t,e)}if(ka(),Nl=r,Sl.current=n,null!==Ol)throw Error(a(261));return Pl=null,zl=0,Ll}function gc(){for(;null!==Ol;)xc(Ol)}function vc(){for(;null!==Ol&&!Kt();)xc(Ol)}function xc(t){var e=_l(t.alternate,t,Tl);t.memoizedProps=t.pendingProps,null===e?yc(t):Ol=e,Cl.current=null}function yc(t){var e=t;do{var r=e.alternate;if(t=e.return,0==(32768&e.flags)){if(null!==(r=Xs(r,e,Tl)))return void(Ol=r)}else{if(null!==(r=qs(r,e)))return r.flags&=32767,void(Ol=r);if(null===t)return Ll=6,void(Ol=null);t.flags|=32768,t.subtreeFlags=0,t.deletions=null}if(null!==(e=e.sibling))return void(Ol=e);Ol=e=t}while(null!==e);0===Ll&&(Ll=5)}function wc(t,e,r){var n=xe,o=Ml.transition;try{Ml.transition=null,xe=1,function(t,e,r,n){do{kc()}while(null!==ql);if(0!=(6&Nl))throw Error(a(327));r=t.finishedWork;var o=t.finishedLanes;if(null===r)return null;if(t.finishedWork=null,t.finishedLanes=0,r===t.current)throw Error(a(177));t.callbackNode=null,t.callbackPriority=0;var i=r.lanes|r.childLanes;if(function(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0<r;){var o=31-ie(r),a=1<<o;e[o]=0,n[o]=-1,t[o]=-1,r&=~a}}(t,i),t===Pl&&(Ol=Pl=null,zl=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||Xl||(Xl=!0,Pc(ee,(function(){return kc(),null}))),i=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||i){i=Ml.transition,Ml.transition=null;var s=xe;xe=1;var l=Nl;Nl|=4,Cl.current=null,function(t,e){if(to=Ve,fn(t=pn())){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else t:{var n=(r=(r=t.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch(t){r=null;break t}var s=0,l=-1,c=-1,d=0,u=0,p=t,f=null;e:for(;;){for(var m;p!==r||0!==o&&3!==p.nodeType||(l=s+o),p!==i||0!==n&&3!==p.nodeType||(c=s+n),3===p.nodeType&&(s+=p.nodeValue.length),null!==(m=p.firstChild);)f=p,p=m;for(;;){if(p===t)break e;if(f===r&&++d===o&&(l=s),f===i&&++u===n&&(c=s),null!==(m=p.nextSibling))break;f=(p=f).parentNode}p=m}r=-1===l||-1===c?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(eo={focusedElem:t,selectionRange:r},Ve=!1,Zs=e;null!==Zs;)if(t=(e=Zs).child,0!=(1028&e.subtreeFlags)&&null!==t)t.return=e,Zs=t;else for(;null!==Zs;){e=Zs;try{var h=e.alternate;if(0!=(1024&e.flags))switch(e.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var b=h.memoizedProps,g=h.memoizedState,v=e.stateNode,x=v.getSnapshotBeforeUpdate(e.elementType===e.type?b:ga(e.type,b),g);v.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var y=e.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(a(163))}}catch(t){Ec(e,e.return,t)}if(null!==(t=e.sibling)){t.return=e.return,Zs=t;break}Zs=e.return}h=el,el=!1}(t,r),bl(r,t),mn(eo),Ve=!!to,eo=to=null,t.current=r,vl(r,t,o),Qt(),Nl=l,xe=s,Ml.transition=i}else t.current=r;if(Xl&&(Xl=!1,ql=t,Kl=o),0===(i=t.pendingLanes)&&(Yl=null),function(t){if(ae&&"function"==typeof ae.onCommitFiberRoot)try{ae.onCommitFiberRoot(oe,t,void 0,128==(128&t.current.flags))}catch(t){}}(r.stateNode),nc(t,Gt()),null!==e)for(n=t.onRecoverableError,r=0;r<e.length;r++)n((o=e[r]).value,{componentStack:o.stack,digest:o.digest});if(Vl)throw Vl=!1,t=Hl,Hl=null,t;0!=(1&Kl)&&0!==t.tag&&kc(),0!=(1&(i=t.pendingLanes))?t===Gl?Ql++:(Ql=0,Gl=t):Ql=0,$o()}(t,e,r,n)}finally{Ml.transition=o,xe=n}return null}function kc(){if(null!==ql){var t=ye(Kl),e=Ml.transition,r=xe;try{if(Ml.transition=null,xe=16>t?16:t,null===ql)var n=!1;else{if(t=ql,ql=null,Kl=0,0!=(6&Nl))throw Error(a(331));var o=Nl;for(Nl|=4,Zs=t.current;null!==Zs;){var i=Zs,s=i.child;if(0!=(16&Zs.flags)){var l=i.deletions;if(null!==l){for(var c=0;c<l.length;c++){var d=l[c];for(Zs=d;null!==Zs;){var u=Zs;switch(u.tag){case 0:case 11:case 15:rl(8,u,i)}var p=u.child;if(null!==p)p.return=u,Zs=p;else for(;null!==Zs;){var f=(u=Zs).sibling,m=u.return;if(al(u),u===d){Zs=null;break}if(null!==f){f.return=m,Zs=f;break}Zs=m}}}var h=i.alternate;if(null!==h){var b=h.child;if(null!==b){h.child=null;do{var g=b.sibling;b.sibling=null,b=g}while(null!==b)}}Zs=i}}if(0!=(2064&i.subtreeFlags)&&null!==s)s.return=i,Zs=s;else t:for(;null!==Zs;){if(0!=(2048&(i=Zs).flags))switch(i.tag){case 0:case 11:case 15:rl(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,Zs=v;break t}Zs=i.return}}var x=t.current;for(Zs=x;null!==Zs;){var y=(s=Zs).child;if(0!=(2064&s.subtreeFlags)&&null!==y)y.return=s,Zs=y;else t:for(s=x;null!==Zs;){if(0!=(2048&(l=Zs).flags))try{switch(l.tag){case 0:case 11:case 15:nl(9,l)}}catch(t){Ec(l,l.return,t)}if(l===s){Zs=null;break t}var w=l.sibling;if(null!==w){w.return=l.return,Zs=w;break t}Zs=l.return}}if(Nl=o,$o(),ae&&"function"==typeof ae.onPostCommitFiberRoot)try{ae.onPostCommitFiberRoot(oe,t)}catch(t){}n=!0}return n}finally{xe=r,Ml.transition=e}}return!1}function _c(t,e,r){t=Aa(t,e=ms(0,e=ds(r,e),1),1),e=tc(),null!==t&&(ge(t,1,e),nc(t,e))}function Ec(t,e,r){if(3===t.tag)_c(t,t,r);else for(;null!==e;){if(3===e.tag){_c(e,t,r);break}if(1===e.tag){var n=e.stateNode;if("function"==typeof e.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Yl||!Yl.has(n))){e=Aa(e,t=hs(e,t=ds(r,t),1),1),t=tc(),null!==e&&(ge(e,1,t),nc(e,t));break}}e=e.return}}function Sc(t,e,r){var n=t.pingCache;null!==n&&n.delete(e),e=tc(),t.pingedLanes|=t.suspendedLanes&r,Pl===t&&(zl&r)===r&&(4===Ll||3===Ll&&(130023424&zl)===zl&&500>Gt()-Ul?pc(t,0):Il|=r),nc(t,e)}function Cc(t,e){0===e&&(0==(1&t.mode)?e=1:(e=de,0==(130023424&(de<<=1))&&(de=4194304)));var r=tc();null!==(t=Oa(t,e))&&(ge(t,e,r),nc(t,r))}function Mc(t){var e=t.memoizedState,r=0;null!==e&&(r=e.retryLane),Cc(t,r)}function Nc(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,o=t.memoizedState;null!==o&&(r=o.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(a(314))}null!==n&&n.delete(e),Cc(t,r)}function Pc(t,e){return Xt(t,e)}function Oc(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zc(t,e,r,n){return new Oc(t,e,r,n)}function Tc(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Rc(t,e){var r=t.alternate;return null===r?((r=zc(t.tag,e,t.key,t.mode)).elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&t.flags,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function Lc(t,e,r,n,o,i){var s=2;if(n=t,"function"==typeof t)Tc(t)&&(s=1);else if("string"==typeof t)s=5;else t:switch(t){case _:return Ac(r.children,o,i,e);case E:s=8,o|=8;break;case S:return(t=zc(12,r,e,2|o)).elementType=S,t.lanes=i,t;case P:return(t=zc(13,r,e,o)).elementType=P,t.lanes=i,t;case O:return(t=zc(19,r,e,o)).elementType=O,t.lanes=i,t;case R:return Dc(r,o,i,e);default:if("object"==typeof t&&null!==t)switch(t.$$typeof){case C:s=10;break t;case M:s=9;break t;case N:s=11;break t;case z:s=14;break t;case T:s=16,n=null;break t}throw Error(a(130,null==t?t:typeof t,""))}return(e=zc(s,r,e,o)).elementType=t,e.type=n,e.lanes=i,e}function Ac(t,e,r,n){return(t=zc(7,t,n,e)).lanes=r,t}function Dc(t,e,r,n){return(t=zc(22,t,n,e)).elementType=R,t.lanes=r,t.stateNode={isHidden:!1},t}function jc(t,e,r){return(t=zc(6,t,null,e)).lanes=r,t}function Ic(t,e,r){return(e=zc(4,null!==t.children?t.children:[],t.key,e)).lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Fc(t,e,r,n,o){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=be(0),this.expirationTimes=be(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=be(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bc(t,e,r,n,o,a,i,s,l){return t=new Fc(t,e,r,s,l),1===e?(e=1,!0===a&&(e|=8)):e=0,a=zc(3,null,null,e),t.current=a,a.stateNode=t,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ta(a),t}function Uc(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==n?null:""+n,children:t,containerInfo:e,implementation:r}}function Wc(t){if(!t)return No;t:{if(Wt(t=t._reactInternals)!==t||1!==t.tag)throw Error(a(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break t;case 1:if(Ro(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break t}}e=e.return}while(null!==e);throw Error(a(171))}if(1===t.tag){var r=t.type;if(Ro(r))return Do(t,r,e)}return e}function $c(t,e,r,n,o,a,i,s,l){return(t=Bc(r,n,!0,t,0,a,0,s,l)).context=Wc(null),r=t.current,(a=La(n=tc(),o=ec(r))).callback=null!=e?e:null,Aa(r,a,o),t.current.lanes=o,ge(t,o,n),nc(t,n),t}function Vc(t,e,r,n){var o=e.current,a=tc(),i=ec(o);return r=Wc(r),null===e.context?e.context=r:e.pendingContext=r,(e=La(a,i)).payload={element:t},null!==(n=void 0===n?null:n)&&(e.callback=n),null!==(t=Aa(o,e,i))&&(rc(t,o,i,a),Da(t,o,i)),i}function Hc(t){return(t=t.current).child?(t.child.tag,t.child.stateNode):null}function Yc(t,e){if(null!==(t=t.memoizedState)&&null!==t.dehydrated){var r=t.retryLane;t.retryLane=0!==r&&r<e?r:e}}function Xc(t,e){Yc(t,e),(t=t.alternate)&&Yc(t,e)}_l=function(t,e,r){if(null!==t)if(t.memoizedProps!==e.pendingProps||Oo.current)ys=!0;else{if(0==(t.lanes&r)&&0==(128&e.flags))return ys=!1,function(t,e,r){switch(e.tag){case 3:Os(e),ma();break;case 5:ii(e);break;case 1:Ro(e.type)&&jo(e);break;case 4:oi(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,o=e.memoizedProps.value;Mo(va,n._currentValue),n._currentValue=o;break;case 13:if(null!==(n=e.memoizedState))return null!==n.dehydrated?(Mo(li,1&li.current),e.flags|=128,null):0!=(r&e.child.childLanes)?js(t,e,r):(Mo(li,1&li.current),null!==(t=Vs(t,e,r))?t.sibling:null);Mo(li,1&li.current);break;case 19:if(n=0!=(r&e.childLanes),0!=(128&t.flags)){if(n)return Ws(t,e,r);e.flags|=128}if(null!==(o=e.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Mo(li,li.current),n)break;return null;case 22:case 23:return e.lanes=0,Ss(t,e,r)}return Vs(t,e,r)}(t,e,r);ys=0!=(131072&t.flags)}else ys=!1,aa&&0!=(1048576&e.flags)&&ta(e,Xo,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;$s(t,e),t=e.pendingProps;var o=To(e,Po.current);Sa(e,r),o=Ei(null,e,n,t,o,r);var i=Si();return e.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Ro(n)?(i=!0,jo(e)):i=!1,e.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ta(e),o.updater=Wa,e.stateNode=o,o._reactInternals=e,Ya(e,n,t,r),e=Ps(null,e,n,!0,i,r)):(e.tag=0,aa&&i&&ea(e),ws(null,e,o,r),e=e.child),e;case 16:n=e.elementType;t:{switch($s(t,e),t=e.pendingProps,n=(o=n._init)(n._payload),e.type=n,o=e.tag=function(t){if("function"==typeof t)return Tc(t)?1:0;if(null!=t){if((t=t.$$typeof)===N)return 11;if(t===z)return 14}return 2}(n),t=ga(n,t),o){case 0:e=Ms(null,e,n,t,r);break t;case 1:e=Ns(null,e,n,t,r);break t;case 11:e=ks(null,e,n,t,r);break t;case 14:e=_s(null,e,n,ga(n.type,t),r);break t}throw Error(a(306,n,""))}return e;case 0:return n=e.type,o=e.pendingProps,Ms(t,e,n,o=e.elementType===n?o:ga(n,o),r);case 1:return n=e.type,o=e.pendingProps,Ns(t,e,n,o=e.elementType===n?o:ga(n,o),r);case 3:t:{if(Os(e),null===t)throw Error(a(387));n=e.pendingProps,o=(i=e.memoizedState).element,Ra(t,e),Ia(e,n,null,r);var s=e.memoizedState;if(n=s.element,i.isDehydrated){if(i={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=i,e.memoizedState=i,256&e.flags){e=zs(t,e,n,r,o=ds(Error(a(423)),e));break t}if(n!==o){e=zs(t,e,n,r,o=ds(Error(a(424)),e));break t}for(oa=co(e.stateNode.containerInfo.firstChild),na=e,aa=!0,ia=null,r=Za(e,null,n,r),e.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(ma(),n===o){e=Vs(t,e,r);break t}ws(t,e,n,r)}e=e.child}return e;case 5:return ii(e),null===t&&da(e),n=e.type,o=e.pendingProps,i=null!==t?t.memoizedProps:null,s=o.children,ro(n,o)?s=null:null!==i&&ro(n,i)&&(e.flags|=32),Cs(t,e),ws(t,e,s,r),e.child;case 6:return null===t&&da(e),null;case 13:return js(t,e,r);case 4:return oi(e,e.stateNode.containerInfo),n=e.pendingProps,null===t?e.child=Ga(e,null,n,r):ws(t,e,n,r),e.child;case 11:return n=e.type,o=e.pendingProps,ks(t,e,n,o=e.elementType===n?o:ga(n,o),r);case 7:return ws(t,e,e.pendingProps,r),e.child;case 8:case 12:return ws(t,e,e.pendingProps.children,r),e.child;case 10:t:{if(n=e.type._context,o=e.pendingProps,i=e.memoizedProps,s=o.value,Mo(va,n._currentValue),n._currentValue=s,null!==i)if(sn(i.value,s)){if(i.children===o.children&&!Oo.current){e=Vs(t,e,r);break t}}else for(null!==(i=e.child)&&(i.return=e);null!==i;){var l=i.dependencies;if(null!==l){s=i.child;for(var c=l.firstContext;null!==c;){if(c.context===n){if(1===i.tag){(c=La(-1,r&-r)).tag=2;var d=i.updateQueue;if(null!==d){var u=(d=d.shared).pending;null===u?c.next=c:(c.next=u.next,u.next=c),d.pending=c}}i.lanes|=r,null!==(c=i.alternate)&&(c.lanes|=r),Ea(i.return,r,e),l.lanes|=r;break}c=c.next}}else if(10===i.tag)s=i.type===e.type?null:i.child;else if(18===i.tag){if(null===(s=i.return))throw Error(a(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Ea(s,r,e),s=i.sibling}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===e){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}ws(t,e,o.children,r),e=e.child}return e;case 9:return o=e.type,n=e.pendingProps.children,Sa(e,r),n=n(o=Ca(o)),e.flags|=1,ws(t,e,n,r),e.child;case 14:return o=ga(n=e.type,e.pendingProps),_s(t,e,n,o=ga(n.type,o),r);case 15:return Es(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:ga(n,o),$s(t,e),e.tag=1,Ro(n)?(t=!0,jo(e)):t=!1,Sa(e,r),Va(e,n,o),Ya(e,n,o,r),Ps(null,e,n,!0,t,r);case 19:return Ws(t,e,r);case 22:return Ss(t,e,r)}throw Error(a(156,e.tag))};var qc="function"==typeof reportError?reportError:function(t){console.error(t)};function Kc(t){this._internalRoot=t}function Qc(t){this._internalRoot=t}function Gc(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)}function Zc(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function Jc(){}function td(t,e,r,n,o){var a=r._reactRootContainer;if(a){var i=a;if("function"==typeof o){var s=o;o=function(){var t=Hc(i);s.call(t)}}Vc(e,i,t,o)}else i=function(t,e,r,n,o){if(o){if("function"==typeof n){var a=n;n=function(){var t=Hc(i);a.call(t)}}var i=$c(e,n,t,0,null,!1,0,"",Jc);return t._reactRootContainer=i,t[ho]=i.current,Wn(8===t.nodeType?t.parentNode:t),dc(),i}for(;o=t.lastChild;)t.removeChild(o);if("function"==typeof n){var s=n;n=function(){var t=Hc(l);s.call(t)}}var l=Bc(t,0,!1,null,0,!1,0,"",Jc);return t._reactRootContainer=l,t[ho]=l.current,Wn(8===t.nodeType?t.parentNode:t),dc((function(){Vc(e,l,r,n)})),l}(r,e,t,o,n);return Hc(i)}Qc.prototype.render=Kc.prototype.render=function(t){var e=this._internalRoot;if(null===e)throw Error(a(409));Vc(t,e,null,null)},Qc.prototype.unmount=Kc.prototype.unmount=function(){var t=this._internalRoot;if(null!==t){this._internalRoot=null;var e=t.containerInfo;dc((function(){Vc(null,t,null,null)})),e[ho]=null}},Qc.prototype.unstable_scheduleHydration=function(t){if(t){var e=Ee();t={blockedOn:null,target:t,priority:e};for(var r=0;r<Re.length&&0!==e&&e<Re[r].priority;r++);Re.splice(r,0,t),0===r&&je(t)}},we=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var r=ue(e.pendingLanes);0!==r&&(ve(e,1|r),nc(e,Gt()),0==(6&Nl)&&(Wl=Gt()+500,$o()))}break;case 13:dc((function(){var e=Oa(t,1);if(null!==e){var r=tc();rc(e,t,1,r)}})),Xc(t,1)}},ke=function(t){if(13===t.tag){var e=Oa(t,134217728);null!==e&&rc(e,t,134217728,tc()),Xc(t,134217728)}},_e=function(t){if(13===t.tag){var e=ec(t),r=Oa(t,e);null!==r&&rc(r,t,e,tc()),Xc(t,e)}},Ee=function(){return xe},Se=function(t,e){var r=xe;try{return xe=t,e()}finally{xe=r}},kt=function(t,e,r){switch(e){case"input":if(Z(t,r),e=r.name,"radio"===r.type&&null!=e){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<r.length;e++){var n=r[e];if(n!==t&&n.form===t.form){var o=ko(n);if(!o)throw Error(a(90));X(n),Z(n,o)}}}break;case"textarea":at(t,r);break;case"select":null!=(e=r.value)&&rt(t,!!r.multiple,e,!1)}},Nt=cc,Pt=dc;var ed={usingClientEntryPoint:!1,Events:[yo,wo,ko,Ct,Mt,cc]},rd={findFiberByHostInstance:xo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nd={bundleType:rd.bundleType,version:rd.version,rendererPackageName:rd.rendererPackageName,rendererConfig:rd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:y.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return null===(t=Ht(t))?null:t.stateNode},findFiberByHostInstance:rd.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var od=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!od.isDisabled&&od.supportsFiber)try{oe=od.inject(nd),ae=od}catch(dt){}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ed,e.createPortal=function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Gc(e))throw Error(a(200));return Uc(t,e,null,r)},e.createRoot=function(t,e){if(!Gc(t))throw Error(a(299));var r=!1,n="",o=qc;return null!=e&&(!0===e.unstable_strictMode&&(r=!0),void 0!==e.identifierPrefix&&(n=e.identifierPrefix),void 0!==e.onRecoverableError&&(o=e.onRecoverableError)),e=Bc(t,1,!1,null,0,r,0,n,o),t[ho]=e.current,Wn(8===t.nodeType?t.parentNode:t),new Kc(e)},e.findDOMNode=function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternals;if(void 0===e){if("function"==typeof t.render)throw Error(a(188));throw t=Object.keys(t).join(","),Error(a(268,t))}return null===(t=Ht(e))?null:t.stateNode},e.flushSync=function(t){return dc(t)},e.hydrate=function(t,e,r){if(!Zc(e))throw Error(a(200));return td(null,t,e,!0,r)},e.hydrateRoot=function(t,e,r){if(!Gc(t))throw Error(a(405));var n=null!=r&&r.hydratedSources||null,o=!1,i="",s=qc;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(i=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),e=$c(e,null,t,1,null!=r?r:null,o,0,i,s),t[ho]=e.current,Wn(t),n)for(t=0;t<n.length;t++)o=(o=(r=n[t])._getVersion)(r._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[r,o]:e.mutableSourceEagerHydrationData.push(r,o);return new Qc(e)},e.render=function(t,e,r){if(!Zc(e))throw Error(a(200));return td(null,t,e,!1,r)},e.unmountComponentAtNode=function(t){if(!Zc(t))throw Error(a(40));return!!t._reactRootContainer&&(dc((function(){td(null,null,t,!1,(function(){t._reactRootContainer=null,t[ho]=null}))})),!0)},e.unstable_batchedUpdates=cc,e.unstable_renderSubtreeIntoContainer=function(t,e,r,n){if(!Zc(r))throw Error(a(200));if(null==t||void 0===t._reactInternals)throw Error(a(38));return td(t,e,r,!1,n)},e.version="18.2.0-next-9e3b772b8-20220608"},745:(t,e,r)=>{"use strict";var n=r(3935);e.s=n.createRoot,n.hydrateRoot},3935:(t,e,r)=>{"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}(),t.exports=r(4448)},5251:(t,e,r)=>{"use strict";var n=r(7294),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,r){var n,a={},c=null,d=null;for(n in void 0!==r&&(c=""+r),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(d=e.ref),e)i.call(e,n)&&!l.hasOwnProperty(n)&&(a[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps)void 0===a[n]&&(a[n]=e[n]);return{$$typeof:o,type:t,key:c,ref:d,props:a,_owner:s.current}}e.Fragment=a,e.jsx=c,e.jsxs=c},2408:(t,e)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,b={};function g(t,e,r){this.props=t,this.context=e,this.refs=b,this.updater=r||m}function v(){}function x(t,e,r){this.props=t,this.context=e,this.refs=b,this.updater=r||m}g.prototype.isReactComponent={},g.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},g.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},v.prototype=g.prototype;var y=x.prototype=new v;y.constructor=x,h(y,g.prototype),y.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,_={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function S(t,e,n){var o,a={},i=null,s=null;if(null!=e)for(o in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(i=""+e.key),e)k.call(e,o)&&!E.hasOwnProperty(o)&&(a[o]=e[o]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var c=Array(l),d=0;d<l;d++)c[d]=arguments[d+2];a.children=c}if(t&&t.defaultProps)for(o in l=t.defaultProps)void 0===a[o]&&(a[o]=l[o]);return{$$typeof:r,type:t,key:i,ref:s,props:a,_owner:_.current}}function C(t){return"object"==typeof t&&null!==t&&t.$$typeof===r}var M=/\/+/g;function N(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(t){return e[t]}))}(""+t.key):e.toString(36)}function P(t,e,o,a,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case r:case n:l=!0}}if(l)return i=i(l=t),t=""===a?"."+N(l,0):a,w(i)?(o="",null!=t&&(o=t.replace(M,"$&/")+"/"),P(i,e,o,"",(function(t){return t}))):null!=i&&(C(i)&&(i=function(t,e){return{$$typeof:r,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(i,o+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(M,"$&/")+"/")+t)),e.push(i)),1;if(l=0,a=""===a?".":a+":",w(t))for(var c=0;c<t.length;c++){var d=a+N(s=t[c],c);l+=P(s,e,o,d,i)}else if(d=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=f&&t[f]||t["@@iterator"])?t:null}(t),"function"==typeof d)for(t=d.call(t),c=0;!(s=t.next()).done;)l+=P(s=s.value,e,o,d=a+N(s,c++),i);else if("object"===s)throw e=String(t),Error("Objects are not valid as a React child (found: "+("[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return l}function O(t,e,r){if(null==t)return t;var n=[],o=0;return P(t,n,"","",(function(t){return e.call(r,t,o++)})),n}function z(t){if(-1===t._status){var e=t._result;(e=e()).then((function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)}),(function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)})),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var T={current:null},R={transition:null},L={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:R,ReactCurrentOwner:_};e.Children={map:O,forEach:function(t,e,r){O(t,(function(){e.apply(this,arguments)}),r)},count:function(t){var e=0;return O(t,(function(){e++})),e},toArray:function(t){return O(t,(function(t){return t}))||[]},only:function(t){if(!C(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},e.Component=g,e.Fragment=o,e.Profiler=i,e.PureComponent=x,e.StrictMode=a,e.Suspense=d,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,e.cloneElement=function(t,e,n){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=h({},t.props),a=t.key,i=t.ref,s=t._owner;if(null!=e){if(void 0!==e.ref&&(i=e.ref,s=_.current),void 0!==e.key&&(a=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in e)k.call(e,c)&&!E.hasOwnProperty(c)&&(o[c]=void 0===e[c]&&void 0!==l?l[c]:e[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){l=Array(c);for(var d=0;d<c;d++)l[d]=arguments[d+2];o.children=l}return{$$typeof:r,type:t.type,key:a,ref:i,props:o,_owner:s}},e.createContext=function(t){return(t={$$typeof:l,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:t},t.Consumer=t},e.createElement=S,e.createFactory=function(t){var e=S.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:c,render:t}},e.isValidElement=C,e.lazy=function(t){return{$$typeof:p,_payload:{_status:-1,_result:t},_init:z}},e.memo=function(t,e){return{$$typeof:u,type:t,compare:void 0===e?null:e}},e.startTransition=function(t){var e=R.transition;R.transition={};try{t()}finally{R.transition=e}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function(t,e){return T.current.useCallback(t,e)},e.useContext=function(t){return T.current.useContext(t)},e.useDebugValue=function(){},e.useDeferredValue=function(t){return T.current.useDeferredValue(t)},e.useEffect=function(t,e){return T.current.useEffect(t,e)},e.useId=function(){return T.current.useId()},e.useImperativeHandle=function(t,e,r){return T.current.useImperativeHandle(t,e,r)},e.useInsertionEffect=function(t,e){return T.current.useInsertionEffect(t,e)},e.useLayoutEffect=function(t,e){return T.current.useLayoutEffect(t,e)},e.useMemo=function(t,e){return T.current.useMemo(t,e)},e.useReducer=function(t,e,r){return T.current.useReducer(t,e,r)},e.useRef=function(t){return T.current.useRef(t)},e.useState=function(t){return T.current.useState(t)},e.useSyncExternalStore=function(t,e,r){return T.current.useSyncExternalStore(t,e,r)},e.useTransition=function(){return T.current.useTransition()},e.version="18.2.0"},7294:(t,e,r)=>{"use strict";t.exports=r(2408)},5893:(t,e,r)=>{"use strict";t.exports=r(5251)},53:(t,e)=>{"use strict";function r(t,e){var r=t.length;t.push(e);t:for(;0<r;){var n=r-1>>>1,o=t[n];if(!(0<a(o,e)))break t;t[n]=e,t[r]=o,r=n}}function n(t){return 0===t.length?null:t[0]}function o(t){if(0===t.length)return null;var e=t[0],r=t.pop();if(r!==e){t[0]=r;t:for(var n=0,o=t.length,i=o>>>1;n<i;){var s=2*(n+1)-1,l=t[s],c=s+1,d=t[c];if(0>a(l,r))c<o&&0>a(d,l)?(t[n]=d,t[c]=r,n=c):(t[n]=l,t[s]=r,n=s);else{if(!(c<o&&0>a(d,r)))break t;t[n]=d,t[c]=r,n=c}}}return e}function a(t,e){var r=t.sortIndex-e.sortIndex;return 0!==r?r:t.id-e.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var c=[],d=[],u=1,p=null,f=3,m=!1,h=!1,b=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,x="undefined"!=typeof setImmediate?setImmediate:null;function y(t){for(var e=n(d);null!==e;){if(null===e.callback)o(d);else{if(!(e.startTime<=t))break;o(d),e.sortIndex=e.expirationTime,r(c,e)}e=n(d)}}function w(t){if(b=!1,y(t),!h)if(null!==n(c))h=!0,R(k);else{var e=n(d);null!==e&&L(w,e.startTime-t)}}function k(t,r){h=!1,b&&(b=!1,v(C),C=-1),m=!0;var a=f;try{for(y(r),p=n(c);null!==p&&(!(p.expirationTime>r)||t&&!P());){var i=p.callback;if("function"==typeof i){p.callback=null,f=p.priorityLevel;var s=i(p.expirationTime<=r);r=e.unstable_now(),"function"==typeof s?p.callback=s:p===n(c)&&o(c),y(r)}else o(c);p=n(c)}if(null!==p)var l=!0;else{var u=n(d);null!==u&&L(w,u.startTime-r),l=!1}return l}finally{p=null,f=a,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,E=!1,S=null,C=-1,M=5,N=-1;function P(){return!(e.unstable_now()-N<M)}function O(){if(null!==S){var t=e.unstable_now();N=t;var r=!0;try{r=S(!0,t)}finally{r?_():(E=!1,S=null)}}else E=!1}if("function"==typeof x)_=function(){x(O)};else if("undefined"!=typeof MessageChannel){var z=new MessageChannel,T=z.port2;z.port1.onmessage=O,_=function(){T.postMessage(null)}}else _=function(){g(O,0)};function R(t){S=t,E||(E=!0,_())}function L(t,r){C=g((function(){t(e.unstable_now())}),r)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){h||m||(h=!0,R(k))},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<t?Math.floor(1e3/t):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(t){switch(f){case 1:case 2:case 3:var e=3;break;default:e=f}var r=f;f=e;try{return t()}finally{f=r}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var r=f;f=t;try{return e()}finally{f=r}},e.unstable_scheduleCallback=function(t,o,a){var i=e.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?i+a:i,t){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return t={id:u++,callback:o,priorityLevel:t,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>i?(t.sortIndex=a,r(d,t),null===n(c)&&t===n(d)&&(b?(v(C),C=-1):b=!0,L(w,a-i))):(t.sortIndex=s,r(c,t),h||m||(h=!0,R(k))),t},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(t){var e=f;return function(){var r=f;f=e;try{return t.apply(this,arguments)}finally{f=r}}}},3840:(t,e,r)=>{"use strict";t.exports=r(53)},3379:t=>{"use strict";var e=[];function r(t){for(var r=-1,n=0;n<e.length;n++)if(e[n].identifier===t){r=n;break}return r}function n(t,n){for(var a={},i=[],s=0;s<t.length;s++){var l=t[s],c=n.base?l[0]+n.base:l[0],d=a[c]||0,u="".concat(c," ").concat(d);a[c]=d+1;var p=r(u),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)e[p].references++,e[p].updater(f);else{var m=o(f,n);n.byIndex=s,e.splice(s,0,{identifier:u,updater:m,references:1})}i.push(u)}return i}function o(t,e){var r=e.domAPI(e);return r.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;r.update(t=e)}else r.remove()}}t.exports=function(t,o){var a=n(t=t||[],o=o||{});return function(t){t=t||[];for(var i=0;i<a.length;i++){var s=r(a[i]);e[s].references--}for(var l=n(t,o),c=0;c<a.length;c++){var d=r(a[c]);0===e[d].references&&(e[d].updater(),e.splice(d,1))}a=l}}},569:t=>{"use strict";var e={};t.exports=function(t,r){var n=function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},9216:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},3565:(t,e,r)=>{"use strict";t.exports=function(t){var e=r.nc;e&&t.setAttribute("nonce",e)}},7795:t=>{"use strict";t.exports=function(t){var e=t.insertStyleElement(t);return{update:function(r){!function(t,e,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,o&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var a=r.sourceMap;a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleTagTransform(n,t,e.options)}(e,t,r)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},4589:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},2473:t=>{"use strict";t.exports=function(){}},2204:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%272%27 fill=%27%23fff%27/%3e%3c/svg%3e"},9609:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27%2386b7fe%27/%3e%3c/svg%3e"},2469:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27%23fff%27/%3e%3c/svg%3e"},7486:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27rgba%280, 0, 0, 0.25%29%27/%3e%3c/svg%3e"},4144:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 12%27 width=%2712%27 height=%2712%27 fill=%27none%27 stroke=%27%23dc3545%27%3e%3ccircle cx=%276%27 cy=%276%27 r=%274.5%27/%3e%3cpath stroke-linejoin=%27round%27 d=%27M5.8 3.6h.4L6 6.5z%27/%3e%3ccircle cx=%276%27 cy=%278.2%27 r=%27.6%27 fill=%27%23dc3545%27 stroke=%27none%27/%3e%3c/svg%3e"},6254:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23000%27%3e%3cpath d=%27M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z%27/%3e%3c/svg%3e"},2740:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%230c63e4%27%3e%3cpath fill-rule=%27evenodd%27 d=%27M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z%27/%3e%3c/svg%3e"},3460:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23212529%27%3e%3cpath fill-rule=%27evenodd%27 d=%27M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z%27/%3e%3c/svg%3e"},5647:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23fff%27%3e%3cpath d=%27M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z%27/%3e%3c/svg%3e"},1692:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23fff%27%3e%3cpath d=%27M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z%27/%3e%3c/svg%3e"},6770:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3e%3cpath fill=%27none%27 stroke=%27%23343a40%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27m2 5 6 6 6-6%27/%3e%3c/svg%3e"},8931:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3e%3cpath fill=%27none%27 stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%273%27 d=%27M6 10h8%27/%3e%3c/svg%3e"},6199:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3e%3cpath fill=%27none%27 stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%273%27 d=%27m6 10 3 3 6-6%27/%3e%3c/svg%3e"},1217:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 30 30%27%3e%3cpath stroke=%27rgba%280, 0, 0, 0.55%29%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 stroke-width=%272%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e"},2956:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 30 30%27%3e%3cpath stroke=%27rgba%28255, 255, 255, 0.55%29%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 stroke-width=%272%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e"},5122:t=>{"use strict";t.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 8 8%27%3e%3cpath fill=%27%23198754%27 d=%27M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z%27/%3e%3c/svg%3e"},7061:(t,e,r)=>{var n=r(8698).default;function o(){"use strict";t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,a=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",d=s.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new N(n||[]);return i(a,"_invoke",{value:E(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var m={};function h(){}function b(){}function g(){}var v={};u(v,l,(function(){return this}));var x=Object.getPrototypeOf,y=x&&x(x(P([])));y&&y!==r&&a.call(y,l)&&(v=y);var w=g.prototype=h.prototype=Object.create(v);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(o,i,s,l){var c=f(t[o],t,i);if("throw"!==c.type){var d=c.arg,u=d.value;return u&&"object"==n(u)&&a.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,s,l)}),(function(t){r("throw",t,s,l)})):e.resolve(u).then((function(t){d.value=t,s(d)}),(function(t){return r("throw",t,s,l)}))}l(c.arg)}var o;i(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(a,a):a()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var s=S(i,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=f(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function S(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,m;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,m):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function P(t){if(t){var e=t[l];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(a.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:O}}function O(){return{value:void 0,done:!0}}return b.prototype=g,i(w,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:b,configurable:!0}),b.displayName=u(g,d,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,d,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},k(_.prototype),u(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new _(p(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(w),u(w,d,"Generator"),u(w,l,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(M),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=a.call(o,"catchLoc"),l=a.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),M(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;M(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),m}},e}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},8698:t=>{function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4687:(t,e,r)=>{var n=r(7061)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;var a=n[t]={id:t,exports:{}};return r[t](a,a.exports,o),a.exports}o.m=r,o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var a=Object.create(null);o.r(a);var i={};t=t||[null,e({}),e([]),e(e)];for(var s=2&n&&r;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((t=>i[t]=()=>r[t]));return i.default=()=>r,o.d(a,i),a},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;o.g.importScripts&&(t=o.g.location+"");var e=o.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");r.length&&(t=r[r.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t})(),o.b=document.baseURI||self.location.href,o.nc=void 0,(()=>{"use strict";var t,e=o(7294),r=o.t(e,2),n=o(745);function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t,e){if(t){if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(t,e)||i(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l.apply(this,arguments)}!function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(t||(t={}));const c="popstate";function d(t,e){if(!1===t||null==t)throw new Error(e)}function u(t){return{usr:t.state,key:t.key}}function p(t,e,r,n){return void 0===r&&(r=null),l({pathname:"string"==typeof t?t:t.pathname,search:"",hash:""},"string"==typeof e?m(e):e,{state:r,key:e&&e.key||n||Math.random().toString(36).substr(2,8)})}function f(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&"?"!==r&&(e+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function m(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function h(t){let e="undefined"!=typeof window&&void 0!==window.location&&"null"!==window.location.origin?window.location.origin:window.location.href,r="string"==typeof t?t:f(t);return d(e,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,e)}var b;function g(t,e,r){void 0===r&&(r="/");let n=C(("string"==typeof e?m(e):e).pathname||"/",r);if(null==n)return null;let o=v(t);!function(t){t.sort(((t,e)=>t.score!==e.score?e.score-t.score:function(t,e){return t.length===e.length&&t.slice(0,-1).every(((t,r)=>t===e[r]))?t[t.length-1]-e[e.length-1]:0}(t.routesMeta.map((t=>t.childrenIndex)),e.routesMeta.map((t=>t.childrenIndex)))))}(o);let a=null;for(let t=0;null==a&&t<o.length;++t)a=_(o[t],S(n));return a}function v(t,e,r,n){void 0===e&&(e=[]),void 0===r&&(r=[]),void 0===n&&(n="");let o=(t,o,a)=>{let i={relativePath:void 0===a?t.path||"":a,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};i.relativePath.startsWith("/")&&(d(i.relativePath.startsWith(n),'Absolute route path "'+i.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(n.length));let s=z([n,i.relativePath]),l=r.concat(i);t.children&&t.children.length>0&&(d(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),v(t.children,e,l,s)),(null!=t.path||t.index)&&e.push({path:s,score:k(s,t.index),routesMeta:l})};return t.forEach(((t,e)=>{var r;if(""!==t.path&&null!=(r=t.path)&&r.includes("?"))for(let r of x(t.path))o(t,e,r);else o(t,e)})),e}function x(t){let e=t.split("/");if(0===e.length)return[];let[r,...n]=e,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(0===n.length)return o?[a,""]:[a];let i=x(n.join("/")),s=[];return s.push(...i.map((t=>""===t?a:[a,t].join("/")))),o&&s.push(...i),s.map((e=>t.startsWith("/")&&""===e?"/":e))}!function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"}(b||(b={}));const y=/^:\w+$/,w=t=>"*"===t;function k(t,e){let r=t.split("/"),n=r.length;return r.some(w)&&(n+=-2),e&&(n+=2),r.filter((t=>!w(t))).reduce(((t,e)=>t+(y.test(e)?3:""===e?1:10)),n)}function _(t,e){let{routesMeta:r}=t,n={},o="/",a=[];for(let t=0;t<r.length;++t){let i=r[t],s=t===r.length-1,l="/"===o?e:e.slice(o.length)||"/",c=E({path:i.relativePath,caseSensitive:i.caseSensitive,end:s},l);if(!c)return null;Object.assign(n,c.params);let d=i.route;a.push({params:n,pathname:z([o,c.pathname]),pathnameBase:T(z([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=z([o,c.pathnameBase]))}return a}function E(t,e){"string"==typeof t&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=function(t,e,r){void 0===e&&(e=!1),void 0===r&&(r=!0),M("*"===t||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were "'+t.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+t.replace(/\*$/,"/*")+'".');let n=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,((t,e)=>(n.push(e),"/([^\\/]+)")));return t.endsWith("*")?(n.push("*"),o+="*"===t||"/*"===t?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":""!==t&&"/"!==t&&(o+="(?:(?=\\/|$))"),[new RegExp(o,e?void 0:"i"),n]}(t.path,t.caseSensitive,t.end),o=e.match(r);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:n.reduce(((t,e,r)=>{if("*"===e){let t=s[r]||"";i=a.slice(0,a.length-t.length).replace(/(.)\/+$/,"$1")}return t[e]=function(t,e){try{return decodeURIComponent(t)}catch(r){return M(!1,'The value for the URL param "'+e+'" will not be decoded because the string "'+t+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+r+")."),t}}(s[r]||"",e),t}),{}),pathname:a,pathnameBase:i,pattern:t}}function S(t){try{return decodeURI(t)}catch(e){return M(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+e+")."),t}}function C(t,e){if("/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&"/"!==n?null:t.slice(r)||"/"}function M(t,e){if(!t){"undefined"!=typeof console&&console.warn(e);try{throw new Error(e)}catch(t){}}}function N(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified `to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function P(t){return t.filter(((t,e)=>0===e||t.route.path&&t.route.path.length>0))}function O(t,e,r,n){let o;void 0===n&&(n=!1),"string"==typeof t?o=m(t):(o=l({},t),d(!o.pathname||!o.pathname.includes("?"),N("?","pathname","search",o)),d(!o.pathname||!o.pathname.includes("#"),N("#","pathname","hash",o)),d(!o.search||!o.search.includes("#"),N("#","search","hash",o)));let a,i=""===t||""===o.pathname,s=i?"/":o.pathname;if(n||null==s)a=r;else{let t=e.length-1;if(s.startsWith("..")){let e=s.split("/");for(;".."===e[0];)e.shift(),t-=1;o.pathname=e.join("/")}a=t>=0?e[t]:"/"}let c=function(t,e){void 0===e&&(e="/");let{pathname:r,search:n="",hash:o=""}="string"==typeof t?m(t):t,a=r?r.startsWith("/")?r:function(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach((t=>{".."===t?r.length>1&&r.pop():"."!==t&&r.push(t)})),r.length>1?r.join("/"):"/"}(r,e):e;return{pathname:a,search:R(n),hash:L(o)}}(o,a),u=s&&"/"!==s&&s.endsWith("/"),p=(i||"."===s)&&r.endsWith("/");return c.pathname.endsWith("/")||!u&&!p||(c.pathname+="/"),c}const z=t=>t.join("/").replace(/\/\/+/g,"/"),T=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),R=t=>t&&"?"!==t?t.startsWith("?")?t:"?"+t:"",L=t=>t&&"#"!==t?t.startsWith("#")?t:"#"+t:"";class A extends Error{}class D{constructor(t,e,r,n){void 0===n&&(n=!1),this.status=t,this.statusText=e||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function j(t){return t instanceof D}const I=["post","put","patch","delete"],F=(new Set(I),["get",...I]);function B(){return B=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},B.apply(this,arguments)}new Set(F),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;"function"==typeof Object.is&&Object.is;const{useState:U,useEffect:W,useLayoutEffect:$,useDebugValue:V}=r;"undefined"==typeof window||void 0===window.document||window.document.createElement,r.useSyncExternalStore;const H=e.createContext(null),Y=e.createContext(null),X=e.createContext(null),q=e.createContext(null),K=e.createContext(null),Q=e.createContext({outlet:null,matches:[]}),G=e.createContext(null);function Z(){return null!=e.useContext(K)}function J(){return Z()||d(!1),e.useContext(K).location}function tt(t,r){let{relative:n}=void 0===r?{}:r,{matches:o}=e.useContext(Q),{pathname:a}=J(),i=JSON.stringify(P(o).map((t=>t.pathnameBase)));return e.useMemo((()=>O(t,JSON.parse(i),a,"path"===n)),[t,i,a,n])}function et(){let t=function(){var t;let r=e.useContext(G),n=function(t){let r=e.useContext(X);return r||d(!1),r}(at.UseRouteError),o=e.useContext(Q),a=o.matches[o.matches.length-1];return r||(o||d(!1),!a.route.id&&d(!1),null==(t=n.errors)?void 0:t[a.route.id])}(),r=j(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,o="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:o},i={padding:"2px 4px",backgroundColor:o};return e.createElement(e.Fragment,null,e.createElement("h2",null,"Unhandled Thrown Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},r),n?e.createElement("pre",{style:a},n):null,e.createElement("p",null,"💿 Hey developer 👋"),e.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",e.createElement("code",{style:i},"errorElement")," props on ",e.createElement("code",{style:i},"<Route>")))}class rt extends e.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location?{error:t.error,location:t.location}:{error:t.error||e.error,location:e.location}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return this.state.error?e.createElement(G.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}function nt(t){let{routeContext:r,match:n,children:o}=t,a=e.useContext(H);return a&&n.route.errorElement&&(a._deepestRenderedBoundaryId=n.route.id),e.createElement(Q.Provider,{value:r},o)}var ot,at,it;function st(t){d(!1)}function lt(r){let{basename:n="/",children:o=null,location:a,navigationType:i=t.Pop,navigator:s,static:l=!1}=r;Z()&&d(!1);let c=n.replace(/^\/*/,"/"),u=e.useMemo((()=>({basename:c,navigator:s,static:l})),[c,s,l]);"string"==typeof a&&(a=m(a));let{pathname:p="/",search:f="",hash:h="",state:b=null,key:g="default"}=a,v=e.useMemo((()=>{let t=C(p,c);return null==t?null:{pathname:t,search:f,hash:h,state:b,key:g}}),[c,p,f,h,b,g]);return null==v?null:e.createElement(q.Provider,{value:u},e.createElement(K.Provider,{children:o,value:{location:v,navigationType:i}}))}function ct(r){let{children:n,location:o}=r,a=e.useContext(Y);return function(r,n){Z()||d(!1);let{navigator:o}=e.useContext(q),a=e.useContext(X),{matches:i}=e.useContext(Q),s=i[i.length-1],l=s?s.params:{},c=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let u,p=J();if(n){var f;let t="string"==typeof n?m(n):n;"/"===c||(null==(f=t.pathname)?void 0:f.startsWith(c))||d(!1),u=t}else u=p;let h=u.pathname||"/",b=g(r,{pathname:"/"===c?h:h.slice(c.length)||"/"}),v=function(t,r,n){if(void 0===r&&(r=[]),null==t){if(null==n||!n.errors)return null;t=n.matches}let o=t,a=null==n?void 0:n.errors;if(null!=a){let t=o.findIndex((t=>t.route.id&&(null==a?void 0:a[t.route.id])));t>=0||d(!1),o=o.slice(0,Math.min(o.length,t+1))}return o.reduceRight(((t,i,s)=>{let l=i.route.id?null==a?void 0:a[i.route.id]:null,c=n?i.route.errorElement||e.createElement(et,null):null,d=()=>e.createElement(nt,{match:i,routeContext:{outlet:t,matches:r.concat(o.slice(0,s+1))}},l?c:void 0!==i.route.element?i.route.element:t);return n&&(i.route.errorElement||0===s)?e.createElement(rt,{location:n.location,component:c,error:l,children:d()}):d()}),null)}(b&&b.map((t=>Object.assign({},t,{params:Object.assign({},l,t.params),pathname:z([c,o.encodeLocation?o.encodeLocation(t.pathname).pathname:t.pathname]),pathnameBase:"/"===t.pathnameBase?c:z([c,o.encodeLocation?o.encodeLocation(t.pathnameBase).pathname:t.pathnameBase])}))),i,a||void 0);return n&&v?e.createElement(K.Provider,{value:{location:B({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:t.Pop}},v):v}(a&&!n?a.router.routes:ut(n),o)}!function(t){t.UseRevalidator="useRevalidator"}(ot||(ot={})),function(t){t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator"}(at||(at={})),function(t){t[t.pending=0]="pending",t[t.success=1]="success",t[t.error=2]="error"}(it||(it={})),new Promise((()=>{}));class dt extends e.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,e){console.error("<Await> caught the following error during render",t,e)}render(){let{children:t,errorElement:e,resolve:r}=this.props,n=null,o=it.pending;if(r instanceof Promise)if(this.state.error){it.error;let t=this.state.error;Promise.reject().catch((()=>{})),Object.defineProperty(n,"_tracked",{get:()=>!0}),Object.defineProperty(n,"_error",{get:()=>t})}else r._tracked?void 0!==n._error?it.error:void 0!==n._data?it.success:it.pending:(it.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),r.then((t=>Object.defineProperty(r,"_data",{get:()=>t})),(t=>Object.defineProperty(r,"_error",{get:()=>t}))));else it.success,Promise.resolve(),Object.defineProperty(n,"_tracked",{get:()=>!0}),Object.defineProperty(n,"_data",{get:()=>r});if(o===it.error&&n._error instanceof AbortedDeferredError)throw neverSettledPromise;if(o===it.error&&!e)throw n._error;if(o===it.error)return React.createElement(AwaitContext.Provider,{value:n,children:e});if(o===it.success)return React.createElement(AwaitContext.Provider,{value:n,children:t});throw n}}function ut(t,r){void 0===r&&(r=[]);let n=[];return e.Children.forEach(t,((t,o)=>{if(!e.isValidElement(t))return;if(t.type===e.Fragment)return void n.push.apply(n,ut(t.props.children,r));t.type!==st&&d(!1),t.props.index&&t.props.children&&d(!1);let a=[...r,o],i={id:t.props.id||a.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,hasErrorBoundary:null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle};t.props.children&&(i.children=ut(t.props.children,a)),n.push(i)})),n}function pt(){return pt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},pt.apply(this,arguments)}const ft=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function mt(r){let{basename:n,children:o,window:a}=r,i=e.useRef();null==i.current&&(i.current=function(e){return void 0===e&&(e={}),function(e,r,n,o){void 0===o&&(o={});let{window:a=document.defaultView,v5Compat:i=!1}=o,s=a.history,l=t.Pop,d=null;function m(){l=t.Pop,d&&d({action:l,location:b.location})}let b={get action(){return l},get location(){return e(a,s)},listen(t){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(c,m),d=t,()=>{a.removeEventListener(c,m),d=null}},createHref:t=>r(a,t),encodeLocation(t){let e=h("string"==typeof t?t:f(t));return{pathname:e.pathname,search:e.search,hash:e.hash}},push:function(e,r){l=t.Push;let o=p(b.location,e,r);n&&n(o,e);let c=u(o),f=b.createHref(o);try{s.pushState(c,"",f)}catch(t){a.location.assign(f)}i&&d&&d({action:l,location:b.location})},replace:function(e,r){l=t.Replace;let o=p(b.location,e,r);n&&n(o,e);let a=u(o),c=b.createHref(o);s.replaceState(a,"",c),i&&d&&d({action:l,location:b.location})},go:t=>s.go(t)};return b}((function(t,e){let{pathname:r,search:n,hash:o}=t.location;return p("",{pathname:r,search:n,hash:o},e.state&&e.state.usr||null,e.state&&e.state.key||"default")}),(function(t,e){return"string"==typeof e?e:f(e)}),null,e)}({window:a,v5Compat:!0}));let s=i.current,[l,d]=e.useState({action:s.action,location:s.location});return e.useLayoutEffect((()=>s.listen(d)),[s]),e.createElement(lt,{basename:n,children:o,location:l.location,navigationType:l.action,navigator:s})}const ht=e.forwardRef((function(t,r){let{onClick:n,relative:o,reloadDocument:a,replace:i,state:s,target:l,to:c,preventScrollReset:u}=t,p=function(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,ft),m=function(t,r){let{relative:n}=void 0===r?{}:r;Z()||d(!1);let{basename:o,navigator:a}=e.useContext(q),{hash:i,pathname:s,search:l}=tt(t,{relative:n}),c=s;return"/"!==o&&(c="/"===s?o:z([o,s])),a.createHref({pathname:c,search:l,hash:i})}(c,{relative:o}),h=function(t,r){let{target:n,replace:o,state:a,preventScrollReset:i,relative:s}=void 0===r?{}:r,l=function(){Z()||d(!1);let{basename:t,navigator:r}=e.useContext(q),{matches:n}=e.useContext(Q),{pathname:o}=J(),a=JSON.stringify(P(n).map((t=>t.pathnameBase))),i=e.useRef(!1);e.useEffect((()=>{i.current=!0}));let s=e.useCallback((function(e,n){if(void 0===n&&(n={}),!i.current)return;if("number"==typeof e)return void r.go(e);let s=O(e,JSON.parse(a),o,"path"===n.relative);"/"!==t&&(s.pathname="/"===s.pathname?t:z([t,s.pathname])),(n.replace?r.replace:r.push)(s,n.state,n)}),[t,r,a,o]);return s}(),c=J(),u=tt(t,{relative:s});return e.useCallback((e=>{if(function(t,e){return!(0!==t.button||e&&"_self"!==e||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t))}(e,n)){e.preventDefault();let r=void 0!==o?o:f(c)===f(u);l(t,{replace:r,state:a,preventScrollReset:i,relative:s})}}),[c,l,u,o,a,n,t,i,s])}(c,{replace:i,state:s,target:l,preventScrollReset:u,relative:o});return e.createElement("a",pt({},p,{href:m,onClick:a?n:function(t){n&&n(t),t.defaultPrevented||h(t)},ref:r,target:l}))}));var bt,gt;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmitImpl="useSubmitImpl",t.UseFetcher="useFetcher"})(bt||(bt={})),function(t){t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"}(gt||(gt={}));var vt=o(4184),xt=o.n(vt),yt=o(5893);const wt=e.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:kt,Provider:_t}=wt;function Et(t,r){const{prefixes:n}=(0,e.useContext)(wt);return t||n[r]||r}function St(){const{breakpoints:t}=(0,e.useContext)(wt);return t}function Ct(){const{minBreakpoint:t}=(0,e.useContext)(wt);return t}const Mt=e.forwardRef((({bsPrefix:t,fluid:e,as:r="div",className:n,...o},a)=>{const i=Et(t,"container"),s="string"==typeof e?`-${e}`:"-fluid";return(0,yt.jsx)(r,{ref:a,...o,className:xt()(n,e?`${i}${s}`:i)})}));Mt.displayName="Container",Mt.defaultProps={fluid:!1};const Nt=Mt,Pt=e.forwardRef((({bsPrefix:t,className:e,as:r="div",...n},o)=>{const a=Et(t,"row"),i=St(),s=Ct(),l=`${a}-cols`,c=[];return i.forEach((t=>{const e=n[t];let r;delete n[t],null!=e&&"object"==typeof e?({cols:r}=e):r=e;const o=t!==s?`-${t}`:"";null!=r&&c.push(`${l}${o}-${r}`)})),(0,yt.jsx)(r,{ref:o,...n,className:xt()(e,a,...c)})}));Pt.displayName="Row";const Ot=Pt,zt=e.forwardRef(((t,e)=>{const[{className:r,...n},{as:o="div",bsPrefix:a,spans:i}]=function({as:t,bsPrefix:e,className:r,...n}){e=Et(e,"col");const o=St(),a=Ct(),i=[],s=[];return o.forEach((t=>{const r=n[t];let o,l,c;delete n[t],"object"==typeof r&&null!=r?({span:o,offset:l,order:c}=r):o=r;const d=t!==a?`-${t}`:"";o&&i.push(!0===o?`${e}${d}`:`${e}${d}-${o}`),null!=c&&s.push(`order${d}-${c}`),null!=l&&s.push(`offset${d}-${l}`)})),[{...n,className:xt()(r,...i,...s)},{as:t,bsPrefix:e,spans:i}]}(t);return(0,yt.jsx)(o,{...n,ref:e,className:xt()(r,!i.length&&a)})}));zt.displayName="Col";const Tt=zt;var Rt=/-(.)/g;const Lt=t=>{return t[0].toUpperCase()+(e=t,e.replace(Rt,(function(t,e){return e.toUpperCase()}))).slice(1);var e};function At(t,{displayName:r=Lt(t),Component:n,defaultProps:o}={}){const a=e.forwardRef((({className:e,bsPrefix:r,as:o=n||"div",...a},i)=>{const s=Et(r,t);return(0,yt.jsx)(o,{ref:i,className:xt()(e,s),...a})}));return a.defaultProps=o,a.displayName=r,a}const Dt=t=>e.forwardRef(((e,r)=>(0,yt.jsx)("div",{...e,ref:r,className:xt()(e.className,t)}))),jt=e.forwardRef((({bsPrefix:t,className:e,variant:r,as:n="img",...o},a)=>{const i=Et(t,"card-img");return(0,yt.jsx)(n,{ref:a,className:xt()(r?`${i}-${r}`:i,e),...o})}));jt.displayName="CardImg";const It=jt,Ft=e.createContext(null);Ft.displayName="CardHeaderContext";const Bt=Ft,Ut=e.forwardRef((({bsPrefix:t,className:r,as:n="div",...o},a)=>{const i=Et(t,"card-header"),s=(0,e.useMemo)((()=>({cardHeaderBsPrefix:i})),[i]);return(0,yt.jsx)(Bt.Provider,{value:s,children:(0,yt.jsx)(n,{ref:a,...o,className:xt()(r,i)})})}));Ut.displayName="CardHeader";const Wt=Ut,$t=Dt("h5"),Vt=Dt("h6"),Ht=At("card-body"),Yt=At("card-title",{Component:$t}),Xt=At("card-subtitle",{Component:Vt}),qt=At("card-link",{Component:"a"}),Kt=At("card-text",{Component:"p"}),Qt=At("card-footer"),Gt=At("card-img-overlay"),Zt=e.forwardRef((({bsPrefix:t,className:e,bg:r,text:n,border:o,body:a,children:i,as:s="div",...l},c)=>{const d=Et(t,"card");return(0,yt.jsx)(s,{ref:c,...l,className:xt()(e,d,r&&`bg-${r}`,n&&`text-${n}`,o&&`border-${o}`),children:a?(0,yt.jsx)(Ht,{children:i}):i})}));Zt.displayName="Card",Zt.defaultProps={body:!1};const Jt=Object.assign(Zt,{Img:It,Title:Yt,Subtitle:Xt,Body:Ht,Link:qt,Text:Kt,Header:Wt,Footer:Qt,ImgOverlay:Gt}),te=o.p+"4b5816823ff8fb2eb238.svg",ee=o.p+"b604b5dd99b466fbf823.svg",re=function(){return e.createElement(Nt,{className:"py-5 grey-container"},e.createElement(Ot,null,e.createElement("div",{className:"center-text"},e.createElement("h1",{className:"geant-header"},"THE GÉANT COMPENDIUM OF NRENS"),e.createElement("div",{className:"wordwrap pt-4"},e.createElement("p",{style:{textAlign:"center"}},"The GÉANT Compendium provides an authoritative reference source for anyone with an interest in the development of research and education networking in Europe and beyond. Published since 2001, the Compendium provides information on key areas such as users, services, traffic, budget and staffing."),e.createElement("p",{style:{textAlign:"center"}},"This site captures the responses from the National Research and Education Networks themselves.")))),e.createElement(Ot,null,e.createElement(Tt,null,e.createElement(Nt,{style:{backgroundColor:"white"},className:"rounded-border"},e.createElement(Ot,{className:"justify-content-md-center"},e.createElement(Tt,{align:"center"},e.createElement(Jt,{border:"light",style:{width:"18rem"}},e.createElement(ht,{to:"/data",className:"link-text"},e.createElement(Jt.Img,{src:te}),e.createElement(Jt.Body,null,e.createElement(Jt.Title,null,"Compendium Data"),e.createElement(Jt.Text,null,"The results of the Compendium Surveys data given annually by NRENs. Statical represetation of the data is available here."))))),e.createElement(Tt,{align:"center"},e.createElement(Jt,{border:"light",style:{width:"18rem"}},e.createElement("a",{href:"https://resources.geant.org/geant-compendia/",className:"link-text",target:"_blank",rel:"noreferrer"},e.createElement(Jt.Img,{src:ee}),e.createElement(Jt.Body,null,e.createElement(Jt.Title,null,"Compendium Reports"),e.createElement(Jt.Text,null,"A GÉANT Compendium Report is published annually, drawing on data from the Compendium Survey lled in by NRENs, complemented by information from other surveys"))))))))))},ne=o.p+"9ab20ac1d835b50b2e01.svg",oe=function(){return e.createElement("div",{className:"external-page-nav-bar"},e.createElement(Nt,null,e.createElement(Ot,null,e.createElement(Tt,{xs:10},e.createElement("div",{className:"nav-wrapper"},e.createElement("nav",{className:"header-nav"},e.createElement("a",{href:"https://geant.org/"},e.createElement("img",{src:ne})),e.createElement("ul",null,e.createElement("li",null,e.createElement("a",{className:"nav-link-entry",href:"https://network.geant.org/"},"NETWORK")),e.createElement("li",null,e.createElement("a",{className:"nav-link-entry",href:"https://geant.org/services/"},"SERVICES")),e.createElement("li",null,e.createElement("a",{className:"nav-link-entry",href:"https://community.geant.org/"},"COMMUNITY")),e.createElement("li",null,e.createElement("a",{className:"nav-link-entry",href:"https://tnc23.geant.org/"},"TNC")),e.createElement("li",null,e.createElement("a",{className:"nav-link-entry",href:"https://geant.org/projects/"},"PROJECTS")),e.createElement("li",null,e.createElement("a",{className:"nav-link-entry",href:"https://connect.geant.org/"},"CONNECT")),e.createElement("li",null,e.createElement("a",{className:"nav-link-entry",href:"https://impact.geant.org/"},"IMPACT")),e.createElement("li",null,e.createElement("a",{className:"nav-link-entry",href:"https://careers.geant.org/"},"CAREERS")),e.createElement("li",null,e.createElement("a",{className:"nav-link-entry",href:"https://about.geant.org/"},"ABOUT")),e.createElement("li",null,e.createElement("a",{className:"nav-link-entry",href:"https://connect.geant.org/community-news"},"NEWS")),e.createElement("li",null,e.createElement("a",{className:"nav-link-entry",href:"https://resources.geant.org/"},"RESOURCES")))))))))},ae=o.p+"a0a202b04b5c8b9d1b93.svg",ie=o.p+"67fa101547c0e32181b3.png",se=function(){return e.createElement("footer",{className:"page-footer pt-3"},e.createElement(Nt,null,e.createElement(Ot,null,e.createElement(Tt,null,e.createElement("a",{href:"https://geant.org"},e.createElement("img",{src:ae,className:"m-3",style:{maxWidth:"100px"}})),e.createElement("img",{src:ie,className:"m-3",style:{maxWidth:"200px"}})),e.createElement(Tt,{className:"mt-4 text-end"},e.createElement("span",null,e.createElement("a",{className:"mx-3 footer-link",href:"https://geant.org/Policies/"},"Cookies"),e.createElement("wbr",null),"|",e.createElement("a",{className:"mx-3 footer-link",href:"https://geant.org/Disclaimer/"},"Disclaimer"),e.createElement("wbr",null),"|",e.createElement("a",{className:"mx-3 footer-link",href:"https://geant.org/geant-anti-slavery-policy/"},"GEANT Anti‑Slavery Policy"),e.createElement("wbr",null),"|",e.createElement("a",{className:"mx-3 footer-link",href:"https://geant.org/Privacy-Notice/"},"Privacy Policy"))))))};function le(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||i(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ce(t,e,r,n,o,a,i){try{var s=t[a](i),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,o)}function de(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){ce(a,n,o,i,s,"next",t)}function s(t){ce(a,n,o,i,s,"throw",t)}i(void 0)}))}}var ue=o(4687),pe=o.n(ue),fe=o(1844);function me(t){var e=new Set,r=new Map;return t.forEach((function(t){e.add(t.year),r.set(t.nren,{name:t.nren,country:t.nren_country})})),{years:e,nrens:r}}function he(t,e,r){return be.apply(this,arguments)}function be(){return(be=de(pe().mark((function t(e,r,n){var o,a,i,s,l;return pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(e);case 2:return o=t.sent,t.next=5,o.json();case 5:a=t.sent,r(a),i=me(a),s=i.years,l=i.nrens,n((function(t){return{selectedYears:t.selectedYears.filter((function(t){return s.has(t)})).length?t.selectedYears:[Math.max.apply(Math,le(s))],selectedNrens:t.selectedNrens.filter((function(t){return l.has(t)})).length?t.selectedNrens:le(l.keys())}}));case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ge(){return(ge=de(pe().mark((function t(e,r,n){var o,a,i,s;return pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(e);case 2:return o=t.sent,t.next=5,o.json();case 5:a=t.sent,r(a),i=me(a),s=i.nrens,n((function(t){var e=t.selectedNrens.filter((function(t){return s.has(t)})).length?t.selectedNrens:le(s.keys());return{selectedYears:t.selectedYears,selectedNrens:e}}));case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ve(t){var e=new Map;return t.forEach((function(t){var r=e.get(t.nren);r||(r=new Map);var n=r.get(t.year);n||(n=[]),n.push(t),r.set(t.year,n),e.set(t.nren,r)})),e}var xe={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ye=e.createContext&&e.createContext(xe),we=function(){return we=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},we.apply(this,arguments)};function ke(t){return t&&t.map((function(t,r){return e.createElement(t.tag,we({key:r},t.attr),ke(t.child))}))}function _e(t){return function(r){return e.createElement(Ee,we({attr:we({},t.attr)},r),ke(t.child))}}function Ee(t){var r=function(r){var n,o=t.attr,a=t.size,i=t.title,s=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["attr","size","title"]),l=a||r.size||"1em";return r.className&&(n=r.className),t.className&&(n=(n?n+" ":"")+t.className),e.createElement("svg",we({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,o,s,{className:n,style:we(we({color:t.color||r.color},r.style),t.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&e.createElement("title",null,i),t.children)};return void 0!==ye?e.createElement(ye.Consumer,null,(function(t){return r(t)})):r(xe)}function Se(t){return _e({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]})(t)}function Ce(t){return _e({tag:"svg",attr:{t:"1551322312294",style:"",viewBox:"0 0 1024 1024",version:"1.1"},child:[{tag:"defs",attr:{},child:[]},{tag:"path",attr:{d:"M474 152m8 0l60 0q8 0 8 8l0 704q0 8-8 8l-60 0q-8 0-8-8l0-704q0-8 8-8Z"}},{tag:"path",attr:{d:"M168 474m8 0l672 0q8 0 8 8l0 60q0 8-8 8l-672 0q-8 0-8-8l0-60q0-8 8-8Z"}}]})(t)}const Me=function(t){var r=t.children,n=s((0,e.useState)(!1),2),o=n[0],a=n[1];return e.createElement("div",{className:"sidebar-wrapper"},e.createElement("nav",{className:o?"":"no-sidebar",id:"sidebar"},e.createElement("div",{className:"menu-items"},r)),e.createElement("div",{className:"toggle-btn",onClick:function(){a(!o)}},e.createElement("div",{className:"toggle-btn-wrapper"},e.createElement("span",null,"MENU")," ",o?e.createElement(Se,{style:{color:"white",paddingBottom:"3px",scale:"1.3"}}):e.createElement(Ce,{style:{color:"white",paddingBottom:"3px",scale:"1.3"}}))))},Ne=function(){return e.createElement(Me,null,e.createElement("h5",null,"Organisation"),e.createElement(Ot,null,e.createElement(ht,{to:"/budget",className:"link-text-underline"},e.createElement("span",null,"Budget of NRENs per Year"))),e.createElement(Ot,null,e.createElement(ht,{to:"/funding",className:"link-text-underline"},e.createElement("span",null,"Income Source of NRENs per Year"))),e.createElement(Ot,null,e.createElement(ht,{to:"/charging",className:"link-text-underline"},e.createElement("span",null,"Charging Mechanism of NRENs per Year"))),e.createElement(Ot,null,e.createElement(ht,{to:"/data/roles",className:"link-text-underline"},e.createElement("span",null,"Roles of NREN employees"))),e.createElement(Ot,null,e.createElement(ht,{to:"/data/employment",className:"link-text-underline"},e.createElement("span",null,"Types of employment for NRENs"))),e.createElement(Ot,null,e.createElement(ht,{to:"/suborganisations",className:"link-text-underline"},e.createElement("span",null,"NREN Suborganisations"))),e.createElement(Ot,null,e.createElement(ht,{to:"/parentorganisation",className:"link-text-underline"},e.createElement("span",null,"NREN Parent Organisations"))),e.createElement(Ot,null,e.createElement(ht,{to:"/ec-projects",className:"link-text-underline"},e.createElement("span",null,"NREN Involvement in European Commission Projects"))))},Pe=function(t){var r=t.section;return e.createElement("div",{className:"bold-caps-17pt section-container"},e.createElement("div",{style:{display:"flex",alignSelf:"right",lineHeight:"1.5rem",marginTop:"0.5rem"}},e.createElement("span",null,"Compendium ",e.createElement("br",null),e.createElement("span",{style:{float:"right"}},r))),e.createElement("img",{src:ee,style:{maxWidth:"4rem"}}))},Oe=function(t){var r=t.type,n="";return"data"==r?n+=" compendium-data-header":"reports"==r&&(n=" compendium-reports-header"),e.createElement("div",{className:n},e.createElement(Nt,null,e.createElement(Ot,null,e.createElement(Tt,{sm:8},e.createElement("h1",{className:"bold-caps-30pt",style:{marginTop:"0.5rem"}},e.createElement(ht,{to:"data"===r?"/data":"/",style:{textDecoration:"none",color:"white"}},e.createElement("span",null,"Compendium ","data"===r?"Data":"Reports")))),e.createElement(Tt,{sm:4},e.createElement("a",{style:{color:"inherit"},href:"https://resources.geant.org/geant-compendia/",target:"_blank",rel:"noreferrer"},e.createElement(Pe,{section:"Reports"}))))))},ze=e.forwardRef((({bsPrefix:t,className:e,...r},n)=>{const o=Et(t,"btn-toolbar");return(0,yt.jsx)("div",{...r,ref:n,className:xt()(e,o)})}));ze.displayName="ButtonToolbar",ze.defaultProps={role:"toolbar"};const Te=ze,Re=["as","disabled"];function Le({tagName:t,disabled:e,href:r,target:n,rel:o,role:a,onClick:i,tabIndex:s=0,type:l}){t||(t=null!=r||null!=n||null!=o?"a":"button");const c={tagName:t};if("button"===t)return[{type:l||"button",disabled:e},c];const d=n=>{(e||"a"===t&&function(t){return!t||"#"===t.trim()}(r))&&n.preventDefault(),e?n.stopPropagation():null==i||i(n)};return"a"===t&&(r||(r="#"),e&&(r=void 0)),[{role:null!=a?a:"button",disabled:void 0,tabIndex:e?void 0:s,href:r,target:"a"===t?n:void 0,"aria-disabled":e||void 0,rel:"a"===t?o:void 0,onClick:d,onKeyDown:t=>{" "===t.key&&(t.preventDefault(),d(t))}},c]}const Ae=e.forwardRef(((t,e)=>{let{as:r,disabled:n}=t,o=function(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,Re);const[a,{tagName:i}]=Le(Object.assign({tagName:r,disabled:n},o));return(0,yt.jsx)(i,Object.assign({},o,a,{ref:e}))}));Ae.displayName="Button";const De=Ae,je=e.forwardRef((({as:t,bsPrefix:e,variant:r,size:n,active:o,className:a,...i},s)=>{const l=Et(e,"btn"),[c,{tagName:d}]=Le({tagName:t,...i}),u=d;return(0,yt.jsx)(u,{...c,...i,ref:s,className:xt()(a,l,o&&"active",r&&`${l}-${r}`,n&&`${l}-${n}`,i.href&&i.disabled&&"disabled")})}));je.displayName="Button",je.defaultProps={variant:"primary",active:!1,disabled:!1};const Ie=je;var Fe;!function(t){t.Organisation="ORGANISATION",t.Policy="STANDARDS AND POLICIES",t.ConnectedUsers="CONNECTED USERS",t.Network="NETWORK",t.Services="SERVICES"}(Fe||(Fe={}));const Be=function(t){var r=t.activeCategory;return e.createElement(Nt,null,e.createElement(Ot,null,e.createElement(Te,{className:"navbox-bar gap-2 m-3"},e.createElement(ht,{to:r===Fe.Organisation?".":"/funding"},e.createElement(Ie,{variant:"nav-box",active:r===Fe.Organisation},e.createElement("span",null,Fe.Organisation))),e.createElement(ht,{to:r===Fe.Policy?".":"/policy"},e.createElement(Ie,{variant:"nav-box",active:r===Fe.Policy},e.createElement("span",null,Fe.Policy))),e.createElement(ht,{to:(Fe.ConnectedUsers,".")},e.createElement(Ie,{variant:"nav-box",active:r===Fe.ConnectedUsers,disabled:!0},e.createElement("span",null,Fe.ConnectedUsers))),e.createElement(ht,{to:(Fe.Network,".")},e.createElement(Ie,{variant:"nav-box",active:r===Fe.Network,disabled:!0},e.createElement("span",null,Fe.Network))),e.createElement(ht,{to:(Fe.Services,".")},e.createElement(Ie,{variant:"nav-box",active:r===Fe.Services,disabled:!0},e.createElement("span",null,Fe.Services))))))},Ue=function(){return e.createElement(Me,null,e.createElement("h5",null,"Standards and Policies"),e.createElement(Ot,null,e.createElement(ht,{to:"/policy",className:"link-text-underline"},e.createElement("span",null,"NREN Policies"))))};function We(t){return t+.5|0}const $e=(t,e,r)=>Math.max(Math.min(t,r),e);function Ve(t){return $e(We(2.55*t),0,255)}function He(t){return $e(We(255*t),0,255)}function Ye(t){return $e(We(t/2.55)/100,0,1)}function Xe(t){return $e(We(100*t),0,100)}const qe={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Ke=[..."0123456789ABCDEF"],Qe=t=>Ke[15&t],Ge=t=>Ke[(240&t)>>4]+Ke[15&t],Ze=t=>(240&t)>>4==(15&t);const Je=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function tr(t,e,r){const n=e*Math.min(r,1-r),o=(e,o=(e+t/30)%12)=>r-n*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function er(t,e,r){const n=(n,o=(n+t/60)%6)=>r-r*e*Math.max(Math.min(o,4-o,1),0);return[n(5),n(3),n(1)]}function rr(t,e,r){const n=tr(t,1,.5);let o;for(e+r>1&&(o=1/(e+r),e*=o,r*=o),o=0;o<3;o++)n[o]*=1-e-r,n[o]+=e;return n}function nr(t){const e=t.r/255,r=t.g/255,n=t.b/255,o=Math.max(e,r,n),a=Math.min(e,r,n),i=(o+a)/2;let s,l,c;return o!==a&&(c=o-a,l=i>.5?c/(2-o-a):c/(o+a),s=function(t,e,r,n,o){return t===o?(e-r)/n+(e<r?6:0):e===o?(r-t)/n+2:(t-e)/n+4}(e,r,n,c,o),s=60*s+.5),[0|s,l||0,i]}function or(t,e,r,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,r,n)).map(He)}function ar(t,e,r){return or(tr,t,e,r)}function ir(t){return(t%360+360)%360}const sr={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},lr={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let cr;const dr=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,ur=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,pr=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function fr(t,e,r){if(t){let n=nr(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*r,0===e?360:1)),n=ar(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function mr(t,e){return t?Object.assign(e||{},t):t}function hr(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=He(t[3]))):(e=mr(t,{r:0,g:0,b:0,a:1})).a=He(e.a),e}function br(t){return"r"===t.charAt(0)?function(t){const e=dr.exec(t);let r,n,o,a=255;if(e){if(e[7]!==r){const t=+e[7];a=e[8]?Ve(t):$e(255*t,0,255)}return r=+e[1],n=+e[3],o=+e[5],r=255&(e[2]?Ve(r):$e(r,0,255)),n=255&(e[4]?Ve(n):$e(n,0,255)),o=255&(e[6]?Ve(o):$e(o,0,255)),{r,g:n,b:o,a}}}(t):function(t){const e=Je.exec(t);let r,n=255;if(!e)return;e[5]!==r&&(n=e[6]?Ve(+e[5]):He(+e[5]));const o=ir(+e[2]),a=+e[3]/100,i=+e[4]/100;return r="hwb"===e[1]?function(t,e,r){return or(rr,t,e,r)}(o,a,i):"hsv"===e[1]?function(t,e,r){return or(er,t,e,r)}(o,a,i):ar(o,a,i),{r:r[0],g:r[1],b:r[2],a:n}}(t)}class gr{constructor(t){if(t instanceof gr)return t;const e=typeof t;let r;var n,o,a;"object"===e?r=hr(t):"string"===e&&(a=(n=t).length,"#"===n[0]&&(4===a||5===a?o={r:255&17*qe[n[1]],g:255&17*qe[n[2]],b:255&17*qe[n[3]],a:5===a?17*qe[n[4]]:255}:7!==a&&9!==a||(o={r:qe[n[1]]<<4|qe[n[2]],g:qe[n[3]]<<4|qe[n[4]],b:qe[n[5]]<<4|qe[n[6]],a:9===a?qe[n[7]]<<4|qe[n[8]]:255})),r=o||function(t){cr||(cr=function(){const t={},e=Object.keys(lr),r=Object.keys(sr);let n,o,a,i,s;for(n=0;n<e.length;n++){for(i=s=e[n],o=0;o<r.length;o++)a=r[o],s=s.replace(a,sr[a]);a=parseInt(lr[i],16),t[s]=[a>>16&255,a>>8&255,255&a]}return t}(),cr.transparent=[0,0,0,0]);const e=cr[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||br(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=mr(this._rgb);return t&&(t.a=Ye(t.a)),t}set rgb(t){this._rgb=hr(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Ye(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?(t=this._rgb,e=(t=>Ze(t.r)&&Ze(t.g)&&Ze(t.b)&&Ze(t.a))(t)?Qe:Ge,t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0):void 0;var t,e}hslString(){return this._valid?function(t){if(!t)return;const e=nr(t),r=e[0],n=Xe(e[1]),o=Xe(e[2]);return t.a<255?`hsla(${r}, ${n}%, ${o}%, ${Ye(t.a)})`:`hsl(${r}, ${n}%, ${o}%)`}(this._rgb):void 0}mix(t,e){if(t){const r=this.rgb,n=t.rgb;let o;const a=e===o?.5:e,i=2*a-1,s=r.a-n.a,l=((i*s==-1?i:(i+s)/(1+i*s))+1)/2;o=1-l,r.r=255&l*r.r+o*n.r+.5,r.g=255&l*r.g+o*n.g+.5,r.b=255&l*r.b+o*n.b+.5,r.a=a*r.a+(1-a)*n.a,this.rgb=r}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,r){const n=pr(Ye(t.r)),o=pr(Ye(t.g)),a=pr(Ye(t.b));return{r:He(ur(n+r*(pr(Ye(e.r))-n))),g:He(ur(o+r*(pr(Ye(e.g))-o))),b:He(ur(a+r*(pr(Ye(e.b))-a))),a:t.a+r*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new gr(this.rgb)}alpha(t){return this._rgb.a=He(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=We(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return fr(this._rgb,2,t),this}darken(t){return fr(this._rgb,2,-t),this}saturate(t){return fr(this._rgb,1,t),this}desaturate(t){return fr(this._rgb,1,-t),this}rotate(t){return function(t,e){var r=nr(t);r[0]=ir(r[0]+e),r=ar(r),t.r=r[0],t.g=r[1],t.b=r[2]}(this._rgb,t),this}}function vr(){}const xr=(()=>{let t=0;return()=>t++})();function yr(t){return null==t}function wr(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function kr(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function _r(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function Er(t,e){return _r(t)?t:e}function Sr(t,e){return void 0===t?e:t}function Cr(t,e,r){if(t&&"function"==typeof t.call)return t.apply(r,e)}function Mr(t,e,r,n){let o,a,i;if(wr(t))if(a=t.length,n)for(o=a-1;o>=0;o--)e.call(r,t[o],o);else for(o=0;o<a;o++)e.call(r,t[o],o);else if(kr(t))for(i=Object.keys(t),a=i.length,o=0;o<a;o++)e.call(r,t[i[o]],i[o])}function Nr(t,e){let r,n,o,a;if(!t||!e||t.length!==e.length)return!1;for(r=0,n=t.length;r<n;++r)if(o=t[r],a=e[r],o.datasetIndex!==a.datasetIndex||o.index!==a.index)return!1;return!0}function Pr(t){if(wr(t))return t.map(Pr);if(kr(t)){const e=Object.create(null),r=Object.keys(t),n=r.length;let o=0;for(;o<n;++o)e[r[o]]=Pr(t[r[o]]);return e}return t}function Or(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function zr(t,e,r,n){if(!Or(t))return;const o=e[t],a=r[t];kr(o)&&kr(a)?Tr(o,a,n):e[t]=Pr(a)}function Tr(t,e,r){const n=wr(e)?e:[e],o=n.length;if(!kr(t))return t;const a=(r=r||{}).merger||zr;let i;for(let e=0;e<o;++e){if(i=n[e],!kr(i))continue;const o=Object.keys(i);for(let e=0,n=o.length;e<n;++e)a(o[e],t,i,r)}return t}function Rr(t,e){return Tr(t,e,{merger:Lr})}function Lr(t,e,r){if(!Or(t))return;const n=e[t],o=r[t];kr(n)&&kr(o)?Rr(n,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Pr(o))}const Ar={"":t=>t,x:t=>t.x,y:t=>t.y};function Dr(t,e){const r=Ar[e]||(Ar[e]=function(t){const e=function(t){const e=t.split("."),r=[];let n="";for(const t of e)n+=t,n.endsWith("\\")?n=n.slice(0,-1)+".":(r.push(n),n="");return r}(t);return t=>{for(const r of e){if(""===r)break;t=t&&t[r]}return t}}(e));return r(t)}function jr(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Ir=t=>void 0!==t,Fr=t=>"function"==typeof t,Br=(t,e)=>{if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0},Ur=Math.PI,Wr=2*Ur,$r=Wr+Ur,Vr=Number.POSITIVE_INFINITY,Hr=Ur/180,Yr=Ur/2,Xr=Ur/4,qr=2*Ur/3,Kr=Math.log10,Qr=Math.sign;function Gr(t,e,r){return Math.abs(t-e)<r}function Zr(t){const e=Math.round(t);t=Gr(t,e,t/1e3)?e:t;const r=Math.pow(10,Math.floor(Kr(t))),n=t/r;return(n<=1?1:n<=2?2:n<=5?5:10)*r}function Jr(t){return!isNaN(parseFloat(t))&&isFinite(t)}function tn(t,e,r){let n,o,a;for(n=0,o=t.length;n<o;n++)a=t[n][r],isNaN(a)||(e.min=Math.min(e.min,a),e.max=Math.max(e.max,a))}function en(t){return t*(Ur/180)}function rn(t){if(!_r(t))return;let e=1,r=0;for(;Math.round(t*e)/e!==t;)e*=10,r++;return r}function nn(t,e){const r=e.x-t.x,n=e.y-t.y,o=Math.sqrt(r*r+n*n);let a=Math.atan2(n,r);return a<-.5*Ur&&(a+=Wr),{angle:a,distance:o}}function on(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function an(t,e){return(t-e+$r)%Wr-Ur}function sn(t){return(t%Wr+Wr)%Wr}function ln(t,e,r,n){const o=sn(t),a=sn(e),i=sn(r),s=sn(a-o),l=sn(i-o),c=sn(o-a),d=sn(o-i);return o===a||o===i||n&&a===i||s>l&&c<d}function cn(t,e,r){return Math.max(e,Math.min(r,t))}function dn(t,e,r,n=1e-6){return t>=Math.min(e,r)-n&&t<=Math.max(e,r)+n}function un(t,e,r){r=r||(r=>t[r]<e);let n,o=t.length-1,a=0;for(;o-a>1;)n=a+o>>1,r(n)?a=n:o=n;return{lo:a,hi:o}}const pn=(t,e,r,n)=>un(t,r,n?n=>{const o=t[n][e];return o<r||o===r&&t[n+1][e]===r}:n=>t[n][e]<r),fn=(t,e,r)=>un(t,r,(n=>t[n][e]>=r)),mn=["push","pop","shift","splice","unshift"];function hn(t,e){const r=t._chartjs;if(!r)return;const n=r.listeners,o=n.indexOf(e);-1!==o&&n.splice(o,1),n.length>0||(mn.forEach((e=>{delete t[e]})),delete t._chartjs)}const bn="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function gn(t,e){let r=[],n=!1;return function(...o){r=o,n||(n=!0,bn.call(window,(()=>{n=!1,t.apply(e,r)})))}}const vn=t=>"start"===t?"left":"end"===t?"right":"center",xn=(t,e,r)=>"start"===t?e:"end"===t?r:(e+r)/2;const yn=t=>0===t||1===t,wn=(t,e,r)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*Wr/r),kn=(t,e,r)=>Math.pow(2,-10*t)*Math.sin((t-e)*Wr/r)+1,_n={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*Yr),easeOutSine:t=>Math.sin(t*Yr),easeInOutSine:t=>-.5*(Math.cos(Ur*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>yn(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>yn(t)?t:wn(t,.075,.3),easeOutElastic:t=>yn(t)?t:kn(t,.075,.3),easeInOutElastic(t){const e=.1125;return yn(t)?t:t<.5?.5*wn(2*t,e,.45):.5+.5*kn(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-_n.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,r=2.75;return t<1/r?e*t*t:t<2/r?e*(t-=1.5/r)*t+.75:t<2.5/r?e*(t-=2.25/r)*t+.9375:e*(t-=2.625/r)*t+.984375},easeInOutBounce:t=>t<.5?.5*_n.easeInBounce(2*t):.5*_n.easeOutBounce(2*t-1)+.5};function En(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Sn(t){return En(t)?t:new gr(t)}function Cn(t){return En(t)?t:new gr(t).saturate(.5).darken(.1).hexString()}const Mn=["x","y","borderWidth","radius","tension"],Nn=["color","borderColor","backgroundColor"],Pn=new Map;function On(t,e,r){return function(t,e){e=e||{};const r=t+JSON.stringify(e);let n=Pn.get(r);return n||(n=new Intl.NumberFormat(t,e),Pn.set(r,n)),n}(e,r).format(t)}const zn={values:t=>wr(t)?t:""+t,numeric(t,e,r){if(0===t)return"0";const n=this.chart.options.locale;let o,a=t;if(r.length>1){const e=Math.max(Math.abs(r[0].value),Math.abs(r[r.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),a=function(t,e){let r=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(r)>=1&&t!==Math.floor(t)&&(r=t-Math.floor(t)),r}(t,r)}const i=Kr(Math.abs(a)),s=Math.max(Math.min(-1*Math.floor(i),20),0),l={notation:o,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),On(t,n,l)},logarithmic(t,e,r){if(0===t)return"0";const n=r[e].significand||t/Math.pow(10,Math.floor(Kr(t)));return[1,2,3,5,10,15].includes(n)||e>.8*r.length?zn.numeric.call(this,t,e,r):""}};var Tn={formatters:zn};const Rn=Object.create(null),Ln=Object.create(null);function An(t,e){if(!e)return t;const r=e.split(".");for(let e=0,n=r.length;e<n;++e){const n=r[e];t=t[n]||(t[n]=Object.create(null))}return t}function Dn(t,e,r){return"string"==typeof e?Tr(An(t,e),r):Tr(An(t,""),e)}class jn{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>Cn(e.backgroundColor),this.hoverBorderColor=(t,e)=>Cn(e.borderColor),this.hoverColor=(t,e)=>Cn(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return Dn(this,t,e)}get(t){return An(this,t)}describe(t,e){return Dn(Ln,t,e)}override(t,e){return Dn(Rn,t,e)}route(t,e,r,n){const o=An(this,t),a=An(this,r),i="_"+e;Object.defineProperties(o,{[i]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[i],e=a[n];return kr(t)?Object.assign({},e,t):Sr(t,e)},set(t){this[i]=t}}})}apply(t){t.forEach((t=>t(this)))}}var In=new jn({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:Nn},numbers:{type:"number",properties:Mn}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Tn.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function Fn(t,e,r,n,o){let a=e[o];return a||(a=e[o]=t.measureText(o).width,r.push(o)),a>n&&(n=a),n}function Bn(t,e,r){const n=t.currentDevicePixelRatio,o=0!==r?Math.max(r/2,.5):0;return Math.round((e-o)*n)/n+o}function Un(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function Wn(t,e,r,n){$n(t,e,r,n,null)}function $n(t,e,r,n,o){let a,i,s,l,c,d,u,p;const f=e.pointStyle,m=e.rotation,h=e.radius;let b=(m||0)*Hr;if(f&&"object"==typeof f&&(a=f.toString(),"[object HTMLImageElement]"===a||"[object HTMLCanvasElement]"===a))return t.save(),t.translate(r,n),t.rotate(b),t.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),void t.restore();if(!(isNaN(h)||h<=0)){switch(t.beginPath(),f){default:o?t.ellipse(r,n,o/2,h,0,0,Wr):t.arc(r,n,h,0,Wr),t.closePath();break;case"triangle":d=o?o/2:h,t.moveTo(r+Math.sin(b)*d,n-Math.cos(b)*h),b+=qr,t.lineTo(r+Math.sin(b)*d,n-Math.cos(b)*h),b+=qr,t.lineTo(r+Math.sin(b)*d,n-Math.cos(b)*h),t.closePath();break;case"rectRounded":c=.516*h,l=h-c,i=Math.cos(b+Xr)*l,u=Math.cos(b+Xr)*(o?o/2-c:l),s=Math.sin(b+Xr)*l,p=Math.sin(b+Xr)*(o?o/2-c:l),t.arc(r-u,n-s,c,b-Ur,b-Yr),t.arc(r+p,n-i,c,b-Yr,b),t.arc(r+u,n+s,c,b,b+Yr),t.arc(r-p,n+i,c,b+Yr,b+Ur),t.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*h,d=o?o/2:l,t.rect(r-d,n-l,2*d,2*l);break}b+=Xr;case"rectRot":u=Math.cos(b)*(o?o/2:h),i=Math.cos(b)*h,s=Math.sin(b)*h,p=Math.sin(b)*(o?o/2:h),t.moveTo(r-u,n-s),t.lineTo(r+p,n-i),t.lineTo(r+u,n+s),t.lineTo(r-p,n+i),t.closePath();break;case"crossRot":b+=Xr;case"cross":u=Math.cos(b)*(o?o/2:h),i=Math.cos(b)*h,s=Math.sin(b)*h,p=Math.sin(b)*(o?o/2:h),t.moveTo(r-u,n-s),t.lineTo(r+u,n+s),t.moveTo(r+p,n-i),t.lineTo(r-p,n+i);break;case"star":u=Math.cos(b)*(o?o/2:h),i=Math.cos(b)*h,s=Math.sin(b)*h,p=Math.sin(b)*(o?o/2:h),t.moveTo(r-u,n-s),t.lineTo(r+u,n+s),t.moveTo(r+p,n-i),t.lineTo(r-p,n+i),b+=Xr,u=Math.cos(b)*(o?o/2:h),i=Math.cos(b)*h,s=Math.sin(b)*h,p=Math.sin(b)*(o?o/2:h),t.moveTo(r-u,n-s),t.lineTo(r+u,n+s),t.moveTo(r+p,n-i),t.lineTo(r-p,n+i);break;case"line":i=o?o/2:Math.cos(b)*h,s=Math.sin(b)*h,t.moveTo(r-i,n-s),t.lineTo(r+i,n+s);break;case"dash":t.moveTo(r,n),t.lineTo(r+Math.cos(b)*(o?o/2:h),n+Math.sin(b)*h);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function Vn(t,e,r){return r=r||.5,!e||t&&t.x>e.left-r&&t.x<e.right+r&&t.y>e.top-r&&t.y<e.bottom+r}function Hn(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Yn(t){t.restore()}function Xn(t,e,r,n,o){if(!e)return t.lineTo(r.x,r.y);if("middle"===o){const n=(e.x+r.x)/2;t.lineTo(n,e.y),t.lineTo(n,r.y)}else"after"===o!=!!n?t.lineTo(e.x,r.y):t.lineTo(r.x,e.y);t.lineTo(r.x,r.y)}function qn(t,e,r,n){if(!e)return t.lineTo(r.x,r.y);t.bezierCurveTo(n?e.cp1x:e.cp2x,n?e.cp1y:e.cp2y,n?r.cp2x:r.cp1x,n?r.cp2y:r.cp1y,r.x,r.y)}function Kn(t,e,r,n,o,a={}){const i=wr(e)?e:[e],s=a.strokeWidth>0&&""!==a.strokeColor;let l,c;for(t.save(),t.font=o.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),yr(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,a),l=0;l<i.length;++l)c=i[l],a.backdrop&&Gn(t,a.backdrop),s&&(a.strokeColor&&(t.strokeStyle=a.strokeColor),yr(a.strokeWidth)||(t.lineWidth=a.strokeWidth),t.strokeText(c,r,n,a.maxWidth)),t.fillText(c,r,n,a.maxWidth),Qn(t,r,n,c,a),n+=o.lineHeight;t.restore()}function Qn(t,e,r,n,o){if(o.strikethrough||o.underline){const a=t.measureText(n),i=e-a.actualBoundingBoxLeft,s=e+a.actualBoundingBoxRight,l=r-a.actualBoundingBoxAscent,c=r+a.actualBoundingBoxDescent,d=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(i,d),t.lineTo(s,d),t.stroke()}}function Gn(t,e){const r=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=r}function Zn(t,e){const{x:r,y:n,w:o,h:a,radius:i}=e;t.arc(r+i.topLeft,n+i.topLeft,i.topLeft,-Yr,Ur,!0),t.lineTo(r,n+a-i.bottomLeft),t.arc(r+i.bottomLeft,n+a-i.bottomLeft,i.bottomLeft,Ur,Yr,!0),t.lineTo(r+o-i.bottomRight,n+a),t.arc(r+o-i.bottomRight,n+a-i.bottomRight,i.bottomRight,Yr,0,!0),t.lineTo(r+o,n+i.topRight),t.arc(r+o-i.topRight,n+i.topRight,i.topRight,0,-Yr,!0),t.lineTo(r+i.topLeft,n)}const Jn=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,to=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function eo(t,e){const r=(""+t).match(Jn);if(!r||"normal"===r[1])return 1.2*e;switch(t=+r[2],r[3]){case"px":return t;case"%":t/=100}return e*t}function ro(t,e){const r={},n=kr(e),o=n?Object.keys(e):e,a=kr(t)?n?r=>Sr(t[r],t[e[r]]):e=>t[e]:()=>t;for(const t of o)r[t]=+a(t)||0;return r}function no(t){return ro(t,{top:"y",right:"x",bottom:"y",left:"x"})}function oo(t){return ro(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ao(t){const e=no(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function io(t,e){t=t||{},e=e||In.font;let r=Sr(t.size,e.size);"string"==typeof r&&(r=parseInt(r,10));let n=Sr(t.style,e.style);n&&!(""+n).match(to)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const o={family:Sr(t.family,e.family),lineHeight:eo(Sr(t.lineHeight,e.lineHeight),r),size:r,style:n,weight:Sr(t.weight,e.weight),string:""};return o.string=function(t){return!t||yr(t.size)||yr(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function so(t,e,r,n){let o,a,i,s=!0;for(o=0,a=t.length;o<a;++o)if(i=t[o],void 0!==i&&(void 0!==e&&"function"==typeof i&&(i=i(e),s=!1),void 0!==r&&wr(i)&&(i=i[r%i.length],s=!1),void 0!==i))return n&&!s&&(n.cacheable=!1),i}function lo(t,e){return Object.assign(Object.create(t),e)}function co(t,e=[""],r=t,n,o=(()=>t[0])){Ir(n)||(n=wo("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:r,_fallback:n,_getTarget:o,override:o=>co([o,...t],e,r,n)};return new Proxy(a,{deleteProperty:(e,r)=>(delete e[r],delete e._keys,delete t[0][r],!0),get:(r,n)=>ho(r,n,(()=>function(t,e,r,n){let o;for(const a of e)if(o=wo(fo(a,t),r),Ir(o))return mo(t,o)?xo(r,n,t,o):o}(n,e,t,r))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>ko(t).includes(e),ownKeys:t=>ko(t),set(t,e,r){const n=t._storage||(t._storage=o());return t[e]=n[e]=r,delete t._keys,!0}})}function uo(t,e,r,n){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:r,_stack:new Set,_descriptors:po(t,n),setContext:e=>uo(t,e,r,n),override:o=>uo(t.override(o),e,r,n)};return new Proxy(o,{deleteProperty:(e,r)=>(delete e[r],delete t[r],!0),get:(t,e,r)=>ho(t,e,(()=>function(t,e,r){const{_proxy:n,_context:o,_subProxy:a,_descriptors:i}=t;let s=n[e];return Fr(s)&&i.isScriptable(e)&&(s=function(t,e,r,n){const{_proxy:o,_context:a,_subProxy:i,_stack:s}=r;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);return s.add(t),e=e(a,i||n),s.delete(t),mo(t,e)&&(e=xo(o._scopes,o,t,e)),e}(e,s,t,r)),wr(s)&&s.length&&(s=function(t,e,r,n){const{_proxy:o,_context:a,_subProxy:i,_descriptors:s}=r;if(Ir(a.index)&&n(t))e=e[a.index%e.length];else if(kr(e[0])){const r=e,n=o._scopes.filter((t=>t!==r));e=[];for(const l of r){const r=xo(n,o,t,l);e.push(uo(r,a,i&&i[t],s))}}return e}(e,s,t,i.isIndexable)),mo(e,s)&&(s=uo(s,o,a&&a[e],i)),s}(t,e,r))),getOwnPropertyDescriptor:(e,r)=>e._descriptors.allKeys?Reflect.has(t,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,r),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,r)=>Reflect.has(t,r),ownKeys:()=>Reflect.ownKeys(t),set:(e,r,n)=>(t[r]=n,delete e[r],!0)})}function po(t,e={scriptable:!0,indexable:!0}){const{_scriptable:r=e.scriptable,_indexable:n=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:r,indexable:n,isScriptable:Fr(r)?r:()=>r,isIndexable:Fr(n)?n:()=>n}}const fo=(t,e)=>t?t+jr(e):e,mo=(t,e)=>kr(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function ho(t,e,r){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const n=r();return t[e]=n,n}function bo(t,e,r){return Fr(t)?t(e,r):t}const go=(t,e)=>!0===t?e:"string"==typeof t?Dr(e,t):void 0;function vo(t,e,r,n,o){for(const a of e){const e=go(r,a);if(e){t.add(e);const a=bo(e._fallback,r,o);if(Ir(a)&&a!==r&&a!==n)return a}else if(!1===e&&Ir(n)&&r!==n)return null}return!1}function xo(t,e,r,n){const o=e._rootScopes,a=bo(e._fallback,r,n),i=[...t,...o],s=new Set;s.add(n);let l=yo(s,i,r,a||r,n);return null!==l&&(!Ir(a)||a===r||(l=yo(s,i,a,l,n),null!==l))&&co(Array.from(s),[""],o,a,(()=>function(t,e,r){const n=t._getTarget();e in n||(n[e]={});const o=n[e];return wr(o)&&kr(r)?r:o||{}}(e,r,n)))}function yo(t,e,r,n,o){for(;r;)r=vo(t,e,r,n,o);return r}function wo(t,e){for(const r of e){if(!r)continue;const e=r[t];if(Ir(e))return e}}function ko(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const r of t)for(const t of Object.keys(r).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}const _o=Number.EPSILON||1e-14,Eo=(t,e)=>e<t.length&&!t[e].skip&&t[e],So=t=>"x"===t?"y":"x";function Co(t,e,r,n){const o=t.skip?e:t,a=e,i=r.skip?e:r,s=on(a,o),l=on(i,a);let c=s/(s+l),d=l/(s+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const u=n*c,p=n*d;return{previous:{x:a.x-u*(i.x-o.x),y:a.y-u*(i.y-o.y)},next:{x:a.x+p*(i.x-o.x),y:a.y+p*(i.y-o.y)}}}function Mo(t,e,r){return Math.max(Math.min(t,r),e)}function No(t,e,r,n,o){let a,i,s,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){const r=So(e),n=t.length,o=Array(n).fill(0),a=Array(n);let i,s,l,c=Eo(t,0);for(i=0;i<n;++i)if(s=l,l=c,c=Eo(t,i+1),l){if(c){const t=c[e]-l[e];o[i]=0!==t?(c[r]-l[r])/t:0}a[i]=s?c?Qr(o[i-1])!==Qr(o[i])?0:(o[i-1]+o[i])/2:o[i-1]:o[i]}!function(t,e,r){const n=t.length;let o,a,i,s,l,c=Eo(t,0);for(let d=0;d<n-1;++d)l=c,c=Eo(t,d+1),l&&c&&(Gr(e[d],0,_o)?r[d]=r[d+1]=0:(o=r[d]/e[d],a=r[d+1]/e[d],s=Math.pow(o,2)+Math.pow(a,2),s<=9||(i=3/Math.sqrt(s),r[d]=o*i*e[d],r[d+1]=a*i*e[d])))}(t,o,a),function(t,e,r="x"){const n=So(r),o=t.length;let a,i,s,l=Eo(t,0);for(let c=0;c<o;++c){if(i=s,s=l,l=Eo(t,c+1),!s)continue;const o=s[r],d=s[n];i&&(a=(o-i[r])/3,s[`cp1${r}`]=o-a,s[`cp1${n}`]=d-a*e[c]),l&&(a=(l[r]-o)/3,s[`cp2${r}`]=o+a,s[`cp2${n}`]=d+a*e[c])}}(t,a,e)}(t,o);else{let r=n?t[t.length-1]:t[0];for(a=0,i=t.length;a<i;++a)s=t[a],l=Co(r,s,t[Math.min(a+1,i-(n?0:1))%i],e.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,r=s}e.capBezierPoints&&function(t,e){let r,n,o,a,i,s=Vn(t[0],e);for(r=0,n=t.length;r<n;++r)i=a,a=s,s=r<n-1&&Vn(t[r+1],e),a&&(o=t[r],i&&(o.cp1x=Mo(o.cp1x,e.left,e.right),o.cp1y=Mo(o.cp1y,e.top,e.bottom)),s&&(o.cp2x=Mo(o.cp2x,e.left,e.right),o.cp2y=Mo(o.cp2y,e.top,e.bottom)))}(t,r)}function Po(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Oo(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function zo(t,e,r){let n;return"string"==typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[r])):n=t,n}const To=t=>t.ownerDocument.defaultView.getComputedStyle(t,null),Ro=["top","right","bottom","left"];function Lo(t,e,r){const n={};r=r?"-"+r:"";for(let o=0;o<4;o++){const a=Ro[o];n[a]=parseFloat(t[e+"-"+a+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function Ao(t,e){if("native"in t)return t;const{canvas:r,currentDevicePixelRatio:n}=e,o=To(r),a="border-box"===o.boxSizing,i=Lo(o,"padding"),s=Lo(o,"border","width"),{x:l,y:c,box:d}=function(t,e){const r=t.touches,n=r&&r.length?r[0]:t,{offsetX:o,offsetY:a}=n;let i,s,l=!1;if(((t,e,r)=>(t>0||e>0)&&(!r||!r.shadowRoot))(o,a,t.target))i=o,s=a;else{const t=e.getBoundingClientRect();i=n.clientX-t.left,s=n.clientY-t.top,l=!0}return{x:i,y:s,box:l}}(t,r),u=i.left+(d&&s.left),p=i.top+(d&&s.top);let{width:f,height:m}=e;return a&&(f-=i.width+s.width,m-=i.height+s.height),{x:Math.round((l-u)/f*r.width/n),y:Math.round((c-p)/m*r.height/n)}}const Do=t=>Math.round(10*t)/10;function jo(t,e,r){const n=e||1,o=Math.floor(t.height*n),a=Math.floor(t.width*n);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const i=t.canvas;return i.style&&(r||!i.style.height&&!i.style.width)&&(i.style.height=`${t.height}px`,i.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||i.height!==o||i.width!==a)&&(t.currentDevicePixelRatio=n,i.height=o,i.width=a,t.ctx.setTransform(n,0,0,n,0,0),!0)}const Io=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function Fo(t,e){const r=function(t,e){return To(t).getPropertyValue(e)}(t,e),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function Bo(t,e,r,n){return{x:t.x+r*(e.x-t.x),y:t.y+r*(e.y-t.y)}}function Uo(t,e,r,n){return{x:t.x+r*(e.x-t.x),y:"middle"===n?r<.5?t.y:e.y:"after"===n?r<1?t.y:e.y:r>0?e.y:t.y}}function Wo(t,e,r,n){const o={x:t.cp2x,y:t.cp2y},a={x:e.cp1x,y:e.cp1y},i=Bo(t,o,r),s=Bo(o,a,r),l=Bo(a,e,r),c=Bo(i,s,r),d=Bo(s,l,r);return Bo(c,d,r)}function $o(t,e,r){return t?function(t,e){return{x:r=>t+t+e-r,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,r):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function Vo(t,e){let r,n;"ltr"!==e&&"rtl"!==e||(r=t.canvas.style,n=[r.getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",e,"important"),t.prevTextDirection=n)}function Ho(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Yo(t){return"angle"===t?{between:ln,compare:an,normalize:sn}:{between:dn,compare:(t,e)=>t-e,normalize:t=>t}}function Xo({start:t,end:e,count:r,loop:n,style:o}){return{start:t%r,end:e%r,loop:n&&(e-t+1)%r==0,style:o}}function qo(t,e,r){if(!r)return[t];const{property:n,start:o,end:a}=r,i=e.length,{compare:s,between:l,normalize:c}=Yo(n),{start:d,end:u,loop:p,style:f}=function(t,e,r){const{property:n,start:o,end:a}=r,{between:i,normalize:s}=Yo(n),l=e.length;let c,d,{start:u,end:p,loop:f}=t;if(f){for(u+=l,p+=l,c=0,d=l;c<d&&i(s(e[u%l][n]),o,a);++c)u--,p--;u%=l,p%=l}return p<u&&(p+=l),{start:u,end:p,loop:f,style:t.style}}(t,e,r),m=[];let h,b,g,v=!1,x=null;for(let t=d,r=d;t<=u;++t)b=e[t%i],b.skip||(h=c(b[n]),h!==g&&(v=l(h,o,a),null===x&&(v||l(o,g,h)&&0!==s(o,g))&&(x=0===s(h,o)?t:r),null!==x&&(!v||0===s(a,h)||l(a,g,h))&&(m.push(Xo({start:x,end:t,loop:p,count:i,style:f})),x=null),r=t,g=h));return null!==x&&m.push(Xo({start:x,end:u,loop:p,count:i,style:f})),m}function Ko(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function Qo(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}class Go{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,r,n){const o=e.listeners[n],a=e.duration;o.forEach((n=>n({chart:t,initial:e.initial,numSteps:a,currentStep:Math.min(r-e.start,a)})))}_refresh(){this._request||(this._running=!0,this._request=bn.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((r,n)=>{if(!r.running||!r.items.length)return;const o=r.items;let a,i=o.length-1,s=!1;for(;i>=0;--i)a=o[i],a._active?(a._total>r.duration&&(r.duration=a._total),a.tick(t),s=!0):(o[i]=o[o.length-1],o.pop());s&&(n.draw(),this._notify(n,r,t,"progress")),o.length||(r.running=!1,this._notify(n,r,t,"complete"),r.initial=!1),e+=o.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let r=e.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,r)),r}listen(t,e,r){this._getAnims(t).listeners[e].push(r)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const r=e.items;let n=r.length-1;for(;n>=0;--n)r[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Zo=new Go;const Jo="transparent",ta={boolean:(t,e,r)=>r>.5?e:t,color(t,e,r){const n=Sn(t||Jo),o=n.valid&&Sn(e||Jo);return o&&o.valid?o.mix(n,r).hexString():e},number:(t,e,r)=>t+(e-t)*r};class ea{constructor(t,e,r,n){const o=e[r];n=so([t.to,n,o,t.from]);const a=so([t.from,o,n]);this._active=!0,this._fn=t.fn||ta[t.type||typeof a],this._easing=_n[t.easing]||_n.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=r,this._from=a,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,r){if(this._active){this._notify(!1);const n=this._target[this._prop],o=r-this._start,a=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=so([t.to,e,n,t.from]),this._from=so([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,r=this._duration,n=this._prop,o=this._from,a=this._loop,i=this._to;let s;if(this._active=o!==i&&(a||e<r),!this._active)return this._target[n]=i,void this._notify(!0);e<0?this._target[n]=o:(s=e/r%2,s=a&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[n]=this._fn(o,i,s))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,r)=>{t.push({res:e,rej:r})}))}_notify(t){const e=t?"res":"rej",r=this._promises||[];for(let t=0;t<r.length;t++)r[t][e]()}}class ra{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!kr(t))return;const e=Object.keys(In.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach((n=>{const o=t[n];if(!kr(o))return;const a={};for(const t of e)a[t]=o[t];(wr(o.properties)&&o.properties||[n]).forEach((t=>{t!==n&&r.has(t)||r.set(t,a)}))}))}_animateOptions(t,e){const r=e.options,n=function(t,e){if(!e)return;let r=t.options;if(r)return r.$shared&&(t.options=r=Object.assign({},r,{$shared:!1,$animations:{}})),r;t.options=e}(t,r);if(!n)return[];const o=this._createAnimations(n,r);return r.$shared&&function(t,e){const r=[],n=Object.keys(e);for(let e=0;e<n.length;e++){const o=t[n[e]];o&&o.active()&&r.push(o.wait())}return Promise.all(r)}(t.options.$animations,r).then((()=>{t.options=r}),(()=>{})),o}_createAnimations(t,e){const r=this._properties,n=[],o=t.$animations||(t.$animations={}),a=Object.keys(e),i=Date.now();let s;for(s=a.length-1;s>=0;--s){const l=a[s];if("$"===l.charAt(0))continue;if("options"===l){n.push(...this._animateOptions(t,e));continue}const c=e[l];let d=o[l];const u=r.get(l);if(d){if(u&&d.active()){d.update(u,c,i);continue}d.cancel()}u&&u.duration?(o[l]=d=new ea(u,t,l,c),n.push(d)):t[l]=c}return n}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const r=this._createAnimations(t,e);return r.length?(Zo.add(this._chart,r),!0):void 0}}function na(t,e){const r=t&&t.options||{},n=r.reverse,o=void 0===r.min?e:0,a=void 0===r.max?e:0;return{start:n?a:o,end:n?o:a}}function oa(t,e){const r=[],n=t._getSortedDatasetMetas(e);let o,a;for(o=0,a=n.length;o<a;++o)r.push(n[o].index);return r}function aa(t,e,r,n={}){const o=t.keys,a="single"===n.mode;let i,s,l,c;if(null!==e){for(i=0,s=o.length;i<s;++i){if(l=+o[i],l===r){if(n.all)continue;break}c=t.values[l],_r(c)&&(a||0===e||Qr(e)===Qr(c))&&(e+=c)}return e}}function ia(t,e){const r=t&&t.options.stacked;return r||void 0===r&&void 0!==e.stack}function sa(t,e,r){const n=t[e]||(t[e]={});return n[r]||(n[r]={})}function la(t,e,r,n){for(const o of e.getMatchingVisibleMetas(n).reverse()){const e=t[o.index];if(r&&e>0||!r&&e<0)return o.index}return null}function ca(t,e){const{chart:r,_cachedMeta:n}=t,o=r._stacks||(r._stacks={}),{iScale:a,vScale:i,index:s}=n,l=a.axis,c=i.axis,d=function(t,e,r){return`${t.id}.${e.id}.${r.stack||r.type}`}(a,i,n),u=e.length;let p;for(let t=0;t<u;++t){const r=e[t],{[l]:a,[c]:u}=r;p=(r._stacks||(r._stacks={}))[c]=sa(o,d,a),p[s]=u,p._top=la(p,i,!0,n.type),p._bottom=la(p,i,!1,n.type),(p._visualValues||(p._visualValues={}))[s]=u}}function da(t,e){const r=t.scales;return Object.keys(r).filter((t=>r[t].axis===e)).shift()}function ua(t,e){const r=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[n]||void 0===e[n][r])return;delete e[n][r],void 0!==e[n]._visualValues&&void 0!==e[n]._visualValues[r]&&delete e[n]._visualValues[r]}}}const pa=t=>"reset"===t||"none"===t,fa=(t,e)=>e?t:Object.assign({},t);class ma{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=ia(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&ua(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,r=this.getDataset(),n=(t,e,r,n)=>"x"===t?e:"r"===t?n:r,o=e.xAxisID=Sr(r.xAxisID,da(t,"x")),a=e.yAxisID=Sr(r.yAxisID,da(t,"y")),i=e.rAxisID=Sr(r.rAxisID,da(t,"r")),s=e.indexAxis,l=e.iAxisID=n(s,o,a,i),c=e.vAxisID=n(s,a,o,i);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(i),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&hn(this._data,this),t._stacked&&ua(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),r=this._data;if(kr(e))this._data=function(t){const e=Object.keys(t),r=new Array(e.length);let n,o,a;for(n=0,o=e.length;n<o;++n)a=e[n],r[n]={x:a,y:t[a]};return r}(e);else if(r!==e){if(r){hn(r,this);const t=this._cachedMeta;ua(t),t._parsed=[]}e&&Object.isExtensible(e)&&(this,(n=e)._chartjs?n._chartjs.listeners.push(this):(Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),mn.forEach((t=>{const e="_onData"+jr(t),r=n[t];Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value(...t){const o=r.apply(this,t);return n._chartjs.listeners.forEach((r=>{"function"==typeof r[e]&&r[e](...t)})),o}})})))),this._syncList=[],this._data=e}var n}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,r=this.getDataset();let n=!1;this._dataCheck();const o=e._stacked;e._stacked=ia(e.vScale,e),e.stack!==r.stack&&(n=!0,ua(e),e.stack=r.stack),this._resyncElements(t),(n||o!==e._stacked)&&ca(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:r,_data:n}=this,{iScale:o,_stacked:a}=r,i=o.axis;let s,l,c,d=0===t&&e===n.length||r._sorted,u=t>0&&r._parsed[t-1];if(!1===this._parsing)r._parsed=n,r._sorted=!0,c=n;else{c=wr(n[t])?this.parseArrayData(r,n,t,e):kr(n[t])?this.parseObjectData(r,n,t,e):this.parsePrimitiveData(r,n,t,e);const o=()=>null===l[i]||u&&l[i]<u[i];for(s=0;s<e;++s)r._parsed[s+t]=l=c[s],d&&(o()&&(d=!1),u=l);r._sorted=d}a&&ca(this,c)}parsePrimitiveData(t,e,r,n){const{iScale:o,vScale:a}=t,i=o.axis,s=a.axis,l=o.getLabels(),c=o===a,d=new Array(n);let u,p,f;for(u=0,p=n;u<p;++u)f=u+r,d[u]={[i]:c||o.parse(l[f],f),[s]:a.parse(e[f],f)};return d}parseArrayData(t,e,r,n){const{xScale:o,yScale:a}=t,i=new Array(n);let s,l,c,d;for(s=0,l=n;s<l;++s)c=s+r,d=e[c],i[s]={x:o.parse(d[0],c),y:a.parse(d[1],c)};return i}parseObjectData(t,e,r,n){const{xScale:o,yScale:a}=t,{xAxisKey:i="x",yAxisKey:s="y"}=this._parsing,l=new Array(n);let c,d,u,p;for(c=0,d=n;c<d;++c)u=c+r,p=e[u],l[c]={x:o.parse(Dr(p,i),u),y:a.parse(Dr(p,s),u)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,r){const n=this.chart,o=this._cachedMeta,a=e[t.axis];return aa({keys:oa(n,!0),values:e._stacks[t.axis]._visualValues},a,o.index,{mode:r})}updateRangeFromParsed(t,e,r,n){const o=r[e.axis];let a=null===o?NaN:o;const i=n&&r._stacks[e.axis];n&&i&&(n.values=i,a=aa(n,o,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,e){const r=this._cachedMeta,n=r._parsed,o=r._sorted&&t===r.iScale,a=n.length,i=this._getOtherScale(t),s=((t,e,r)=>t&&!e.hidden&&e._stacked&&{keys:oa(r,!0),values:null})(e,r,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=function(t){const{min:e,max:r,minDefined:n,maxDefined:o}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:o?r:Number.POSITIVE_INFINITY}}(i);let u,p;function f(){p=n[u];const e=p[i.axis];return!_r(p[t.axis])||c>e||d<e}for(u=0;u<a&&(f()||(this.updateRangeFromParsed(l,t,p,s),!o));++u);if(o)for(u=a-1;u>=0;--u)if(!f()){this.updateRangeFromParsed(l,t,p,s);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,r=[];let n,o,a;for(n=0,o=e.length;n<o;++n)a=e[n][t.axis],_r(a)&&r.push(a);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,r=e.iScale,n=e.vScale,o=this.getParsed(t);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:n?""+n.getLabelForValue(o[n.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,r,n,o;return kr(t)?(e=t.top,r=t.right,n=t.bottom,o=t.left):e=r=n=o=t,{top:e,right:r,bottom:n,left:o,disabled:!1===t}}(Sr(this.options.clip,function(t,e,r){if(!1===r)return!1;const n=na(t,r),o=na(e,r);return{top:o.end,right:n.end,bottom:o.start,left:n.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,r=this._cachedMeta,n=r.data||[],o=e.chartArea,a=[],i=this._drawStart||0,s=this._drawCount||n.length-i,l=this.options.drawActiveElementsOnTop;let c;for(r.dataset&&r.dataset.draw(t,o,i,s),c=i;c<i+s;++c){const e=n[c];e.hidden||(e.active&&l?a.push(e):e.draw(t,o))}for(c=0;c<a.length;++c)a[c].draw(t,o)}getStyle(t,e){const r=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,e,r){const n=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];o=e.$context||(e.$context=function(t,e,r){return lo(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:r,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=n.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=function(t,e){return lo(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=n,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=r,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",r){const n="active"===e,o=this._cachedDataOpts,a=t+"-"+e,i=o[a],s=this.enableOptionSharing&&Ir(r);if(i)return fa(i,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),d=n?[`${t}Hover`,"hover",t,""]:[t,""],u=l.getOptionScopes(this.getDataset(),c),p=Object.keys(In.elements[t]),f=l.resolveNamedOptions(u,p,(()=>this.getContext(r,n,e)),d);return f.$shared&&(f.$shared=s,o[a]=Object.freeze(fa(f,s))),f}_resolveAnimations(t,e,r){const n=this.chart,o=this._cachedDataOpts,a=`animation-${e}`,i=o[a];if(i)return i;let s;if(!1!==n.options.animation){const n=this.chart.config,o=n.datasetAnimationScopeKeys(this._type,e),a=n.getOptionScopes(this.getDataset(),o);s=n.createResolver(a,this.getContext(t,r,e))}const l=new ra(n,s&&s.animations);return s&&s._cacheable&&(o[a]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||pa(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const r=this.resolveDataElementOptions(t,e),n=this._sharedOptions,o=this.getSharedOptions(r),a=this.includeOptions(e,o)||o!==n;return this.updateSharedOptions(o,e,r),{sharedOptions:o,includeOptions:a}}updateElement(t,e,r,n){pa(n)?Object.assign(t,r):this._resolveAnimations(e,n).update(t,r)}updateSharedOptions(t,e,r){t&&!pa(e)&&this._resolveAnimations(void 0,e).update(t,r)}_setStyle(t,e,r,n){t.active=n;const o=this.getStyle(e,n);this._resolveAnimations(e,r,n).update(t,{options:!n&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,e,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,r=this._cachedMeta.data;for(const[t,e,r]of this._syncList)this[t](e,r);this._syncList=[];const n=r.length,o=e.length,a=Math.min(o,n);a&&this.parse(0,a),o>n?this._insertElements(n,o-n,t):o<n&&this._removeElements(o,n-o)}_insertElements(t,e,r=!0){const n=this._cachedMeta,o=n.data,a=t+e;let i;const s=t=>{for(t.length+=e,i=t.length-1;i>=a;i--)t[i]=t[i-e]};for(s(o),i=t;i<a;++i)o[i]=new this.dataElementType;this._parsing&&s(n._parsed),this.parse(t,e),r&&this.updateElements(o,t,e,"reset")}updateElements(t,e,r,n){}_removeElements(t,e){const r=this._cachedMeta;if(this._parsing){const n=r._parsed.splice(t,e);r._stacked&&ua(r,n)}r.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,r,n]=t;this[e](r,n)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function ha(t){const e=t.iScale,r=function(t,e){if(!t._cache.$bar){const r=t.getMatchingVisibleMetas(e);let n=[];for(let e=0,o=r.length;e<o;e++)n=n.concat(r[e].controller.getAllParsedValues(t));t._cache.$bar=function(t){const e=new Set;let r,n;for(r=0,n=t.length;r<n;++r)e.add(t[r]);return e.size===n?t:Array.from(e)}(n.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let n,o,a,i,s=e._length;const l=()=>{32767!==a&&-32768!==a&&(Ir(i)&&(s=Math.min(s,Math.abs(a-i)||s)),i=a)};for(n=0,o=r.length;n<o;++n)a=e.getPixelForValue(r[n]),l();for(i=void 0,n=0,o=e.ticks.length;n<o;++n)a=e.getPixelForTick(n),l();return s}function ba(t,e,r,n){return wr(t)?function(t,e,r,n){const o=r.parse(t[0],n),a=r.parse(t[1],n),i=Math.min(o,a),s=Math.max(o,a);let l=i,c=s;Math.abs(i)>Math.abs(s)&&(l=s,c=i),e[r.axis]=c,e._custom={barStart:l,barEnd:c,start:o,end:a,min:i,max:s}}(t,e,r,n):e[r.axis]=r.parse(t,n),e}function ga(t,e,r,n){const o=t.iScale,a=t.vScale,i=o.getLabels(),s=o===a,l=[];let c,d,u,p;for(c=r,d=r+n;c<d;++c)p=e[c],u={},u[o.axis]=s||o.parse(i[c],c),l.push(ba(p,u,a,c));return l}function va(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function xa(t,e,r,n){let o=e.borderSkipped;const a={};if(!o)return void(t.borderSkipped=a);if(!0===o)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:i,end:s,reverse:l,top:c,bottom:d}=function(t){let e,r,n,o,a;return t.horizontal?(e=t.base>t.x,r="left",n="right"):(e=t.base<t.y,r="bottom",n="top"),e?(o="end",a="start"):(o="start",a="end"),{start:r,end:n,reverse:e,top:o,bottom:a}}(t);"middle"===o&&r&&(t.enableBorderRadius=!0,(r._top||0)===n?o=c:(r._bottom||0)===n?o=d:(a[ya(d,i,s,l)]=!0,o=c)),a[ya(o,i,s,l)]=!0,t.borderSkipped=a}function ya(t,e,r,n){var o,a,i;return n?(i=r,t=wa(t=(o=t)===(a=e)?i:o===i?a:o,r,e)):t=wa(t,e,r),t}function wa(t,e,r){return"start"===t?e:"end"===t?r:t}function ka(t,{inflateAmount:e},r){t.inflateAmount="auto"===e?1===r?.33:0:e}class _a extends ma{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,r,n){return ga(t,e,r,n)}parseArrayData(t,e,r,n){return ga(t,e,r,n)}parseObjectData(t,e,r,n){const{iScale:o,vScale:a}=t,{xAxisKey:i="x",yAxisKey:s="y"}=this._parsing,l="x"===o.axis?i:s,c="x"===a.axis?i:s,d=[];let u,p,f,m;for(u=r,p=r+n;u<p;++u)m=e[u],f={},f[o.axis]=o.parse(Dr(m,l),u),d.push(ba(Dr(m,c),f,a,u));return d}updateRangeFromParsed(t,e,r,n){super.updateRangeFromParsed(t,e,r,n);const o=r._custom;o&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:r,vScale:n}=e,o=this.getParsed(t),a=o._custom,i=va(a)?"["+a.start+", "+a.end+"]":""+n.getLabelForValue(o[n.axis]);return{label:""+r.getLabelForValue(o[r.axis]),value:i}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,r,n){const o="reset"===n,{index:a,_cachedMeta:{vScale:i}}=this,s=i.getBasePixel(),l=i.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:u}=this._getSharedOptions(e,n);for(let p=e;p<e+r;p++){const e=this.getParsed(p),r=o||yr(e[i.axis])?{base:s,head:s}:this._calculateBarValuePixels(p),f=this._calculateBarIndexPixels(p,c),m=(e._stacks||{})[i.axis],h={horizontal:l,base:r.base,enableBorderRadius:!m||va(e._custom)||a===m._top||a===m._bottom,x:l?r.head:f.center,y:l?f.center:r.head,height:l?f.size:Math.abs(r.size),width:l?Math.abs(r.size):f.size};u&&(h.options=d||this.resolveDataElementOptions(p,t[p].active?"active":n));const b=h.options||t[p].options;xa(h,b,m,a),ka(h,b,c.ratio),this.updateElement(t[p],p,h,n)}}_getStacks(t,e){const{iScale:r}=this._cachedMeta,n=r.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),o=r.options.stacked,a=[],i=t=>{const r=t.controller.getParsed(e),n=r&&r[t.vScale.axis];if(yr(n)||isNaN(n))return!0};for(const r of n)if((void 0===e||!i(r))&&((!1===o||-1===a.indexOf(r.stack)||void 0===o&&void 0===r.stack)&&a.push(r.stack),r.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,r){const n=this._getStacks(t,r),o=void 0!==e?n.indexOf(e):-1;return-1===o?n.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,r=e.iScale,n=[];let o,a;for(o=0,a=e.data.length;o<a;++o)n.push(r.getPixelForValue(this.getParsed(o)[r.axis],o));const i=t.barThickness;return{min:i||ha(e),pixels:n,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:i?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:r,index:n},options:{base:o,minBarLength:a}}=this,i=o||0,s=this.getParsed(t),l=s._custom,c=va(l);let d,u,p=s[e.axis],f=0,m=r?this.applyStack(e,s,r):p;m!==p&&(f=m-p,m=p),c&&(p=l.barStart,m=l.barEnd-l.barStart,0!==p&&Qr(p)!==Qr(l.barEnd)&&(f=0),f+=p);const h=yr(o)||c?f:o;let b=e.getPixelForValue(h);if(d=this.chart.getDataVisibility(t)?e.getPixelForValue(f+m):b,u=d-b,Math.abs(u)<a){u=function(t,e,r){return 0!==t?Qr(t):(e.isHorizontal()?1:-1)*(e.min>=r?1:-1)}(u,e,i)*a,p===i&&(b-=u/2);const t=e.getPixelForDecimal(0),o=e.getPixelForDecimal(1),l=Math.min(t,o),f=Math.max(t,o);b=Math.max(Math.min(b,f),l),d=b+u,r&&!c&&(s._stacks[e.axis]._visualValues[n]=e.getValueForPixel(d)-e.getValueForPixel(b))}if(b===e.getPixelForValue(i)){const t=Qr(u)*e.getLineWidthForValue(i)/2;b+=t,u-=t}return{size:u,base:b,head:d,center:d+u/2}}_calculateBarIndexPixels(t,e){const r=e.scale,n=this.options,o=n.skipNull,a=Sr(n.maxBarThickness,1/0);let i,s;if(e.grouped){const r=o?this._getStackCount(t):e.stackCount,l="flex"===n.barThickness?function(t,e,r,n){const o=e.pixels,a=o[t];let i=t>0?o[t-1]:null,s=t<o.length-1?o[t+1]:null;const l=r.categoryPercentage;null===i&&(i=a-(null===s?e.end-e.start:s-a)),null===s&&(s=a+a-i);const c=a-(a-Math.min(i,s))/2*l;return{chunk:Math.abs(s-i)/2*l/n,ratio:r.barPercentage,start:c}}(t,e,n,r):function(t,e,r,n){const o=r.barThickness;let a,i;return yr(o)?(a=e.min*r.categoryPercentage,i=r.barPercentage):(a=o*n,i=1),{chunk:a/n,ratio:i,start:e.pixels[t]-a/2}}(t,e,n,r),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);i=l.start+l.chunk*c+l.chunk/2,s=Math.min(a,l.chunk*l.ratio)}else i=r.getPixelForValue(this.getParsed(t)[r.axis],t),s=Math.min(a,e.min*e.ratio);return{base:i-s/2,head:i+s/2,center:i,size:s}}draw(){const t=this._cachedMeta,e=t.vScale,r=t.data,n=r.length;let o=0;for(;o<n;++o)null!==this.getParsed(o)[e.axis]&&r[o].draw(this._ctx)}}class Ea extends ma{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:r,data:n=[],_dataset:o}=e,a=this.chart._animationsDisabled;let{start:i,count:s}=function(t,e,r){const n=e.length;let o=0,a=n;if(t._sorted){const{iScale:i,_parsed:s}=t,l=i.axis,{min:c,max:d,minDefined:u,maxDefined:p}=i.getUserBounds();u&&(o=cn(Math.min(pn(s,i.axis,c).lo,r?n:pn(e,l,i.getPixelForValue(c)).lo),0,n-1)),a=p?cn(Math.max(pn(s,i.axis,d,!0).hi+1,r?0:pn(e,l,i.getPixelForValue(d),!0).hi+1),o,n)-o:n-o}return{start:o,count:a}}(e,n,a);this._drawStart=i,this._drawCount=s,function(t){const{xScale:e,yScale:r,_scaleRanges:n}=t,o={xmin:e.min,xmax:e.max,ymin:r.min,ymax:r.max};if(!n)return t._scaleRanges=o,!0;const a=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==r.min||n.ymax!==r.max;return Object.assign(n,o),a}(e)&&(i=0,s=n.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=n;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(r,void 0,{animated:!a,options:l},t),this.updateElements(n,i,s,t)}updateElements(t,e,r,n){const o="reset"===n,{iScale:a,vScale:i,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(e,n),u=a.axis,p=i.axis,{spanGaps:f,segment:m}=this.options,h=Jr(f)?f:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||"none"===n,g=e+r,v=t.length;let x=e>0&&this.getParsed(e-1);for(let r=0;r<v;++r){const f=t[r],v=b?f:{};if(r<e||r>=g){v.skip=!0;continue}const y=this.getParsed(r),w=yr(y[p]),k=v[u]=a.getPixelForValue(y[u],r),_=v[p]=o||w?i.getBasePixel():i.getPixelForValue(s?this.applyStack(i,y,s):y[p],r);v.skip=isNaN(k)||isNaN(_)||w,v.stop=r>0&&Math.abs(y[u]-x[u])>h,m&&(v.parsed=y,v.raw=l.data[r]),d&&(v.options=c||this.resolveDataElementOptions(r,f.active?"active":n)),b||this.updateElement(f,r,v,n),x=y}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,r=e.options&&e.options.borderWidth||0,n=t.data||[];if(!n.length)return r;const o=n[0].size(this.resolveDataElementOptions(0)),a=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(r,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}function Sa(t,e,r,n){const{controller:o,data:a,_sorted:i}=t,s=o._cachedMeta.iScale;if(s&&e===s.axis&&"r"!==e&&i&&a.length){const t=s._reversePixels?fn:pn;if(!n)return t(a,e,r);if(o._sharedOptions){const n=a[0],o="function"==typeof n.getRange&&n.getRange(e);if(o){const n=t(a,e,r-o),i=t(a,e,r+o);return{lo:n.lo,hi:i.hi}}}}return{lo:0,hi:a.length-1}}function Ca(t,e,r,n,o){const a=t.getSortedVisibleDatasetMetas(),i=r[e];for(let t=0,r=a.length;t<r;++t){const{index:r,data:s}=a[t],{lo:l,hi:c}=Sa(a[t],e,i,o);for(let t=l;t<=c;++t){const e=s[t];e.skip||n(e,r,t)}}}function Ma(t,e,r,n,o){const a=[];return o||t.isPointInArea(e)?(Ca(t,r,e,(function(r,i,s){(o||Vn(r,t.chartArea,0))&&r.inRange(e.x,e.y,n)&&a.push({element:r,datasetIndex:i,index:s})}),!0),a):a}function Na(t,e,r,n,o,a){return a||t.isPointInArea(e)?"r"!==r||n?function(t,e,r,n,o,a){let i=[];const s=function(t){const e=-1!==t.indexOf("x"),r=-1!==t.indexOf("y");return function(t,n){const o=e?Math.abs(t.x-n.x):0,a=r?Math.abs(t.y-n.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(a,2))}}(r);let l=Number.POSITIVE_INFINITY;return Ca(t,r,e,(function(r,c,d){const u=r.inRange(e.x,e.y,o);if(n&&!u)return;const p=r.getCenterPoint(o);if(!a&&!t.isPointInArea(p)&&!u)return;const f=s(e,p);f<l?(i=[{element:r,datasetIndex:c,index:d}],l=f):f===l&&i.push({element:r,datasetIndex:c,index:d})})),i}(t,e,r,n,o,a):function(t,e,r,n){let o=[];return Ca(t,r,e,(function(t,r,a){const{startAngle:i,endAngle:s}=t.getProps(["startAngle","endAngle"],n),{angle:l}=nn(t,{x:e.x,y:e.y});ln(l,i,s)&&o.push({element:t,datasetIndex:r,index:a})})),o}(t,e,r,o):[]}function Pa(t,e,r,n,o){const a=[],i="x"===r?"inXRange":"inYRange";let s=!1;return Ca(t,r,e,((t,n,l)=>{t[i](e[r],o)&&(a.push({element:t,datasetIndex:n,index:l}),s=s||t.inRange(e.x,e.y,o))})),n&&!s?[]:a}var Oa={evaluateInteractionItems:Ca,modes:{index(t,e,r,n){const o=Ao(e,t),a=r.axis||"x",i=r.includeInvisible||!1,s=r.intersect?Ma(t,o,a,n,i):Na(t,o,a,!1,n,i),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=s[0].index,r=t.data[e];r&&!r.skip&&l.push({element:r,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,r,n){const o=Ao(e,t),a=r.axis||"xy",i=r.includeInvisible||!1;let s=r.intersect?Ma(t,o,a,n,i):Na(t,o,a,!1,n,i);if(s.length>0){const e=s[0].datasetIndex,r=t.getDatasetMeta(e).data;s=[];for(let t=0;t<r.length;++t)s.push({element:r[t],datasetIndex:e,index:t})}return s},point:(t,e,r,n)=>Ma(t,Ao(e,t),r.axis||"xy",n,r.includeInvisible||!1),nearest(t,e,r,n){const o=Ao(e,t),a=r.axis||"xy",i=r.includeInvisible||!1;return Na(t,o,a,r.intersect,n,i)},x:(t,e,r,n)=>Pa(t,Ao(e,t),"x",r.intersect,n),y:(t,e,r,n)=>Pa(t,Ao(e,t),"y",r.intersect,n)}};const za=["left","top","right","bottom"];function Ta(t,e){return t.filter((t=>t.pos===e))}function Ra(t,e){return t.filter((t=>-1===za.indexOf(t.pos)&&t.box.axis===e))}function La(t,e){return t.sort(((t,r)=>{const n=e?r:t,o=e?t:r;return n.weight===o.weight?n.index-o.index:n.weight-o.weight}))}function Aa(t,e,r,n){return Math.max(t[r],e[r])+Math.max(t[n],e[n])}function Da(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function ja(t,e,r,n){const{pos:o,box:a}=r,i=t.maxPadding;if(!kr(o)){r.size&&(t[o]-=r.size);const e=n[r.stack]||{size:0,count:1};e.size=Math.max(e.size,r.horizontal?a.height:a.width),r.size=e.size/e.count,t[o]+=r.size}a.getPadding&&Da(i,a.getPadding());const s=Math.max(0,e.outerWidth-Aa(i,t,"left","right")),l=Math.max(0,e.outerHeight-Aa(i,t,"top","bottom")),c=s!==t.w,d=l!==t.h;return t.w=s,t.h=l,r.horizontal?{same:c,other:d}:{same:d,other:c}}function Ia(t,e){const r=e.maxPadding;return function(t){const n={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{n[t]=Math.max(e[t],r[t])})),n}(t?["left","right"]:["top","bottom"])}function Fa(t,e,r,n){const o=[];let a,i,s,l,c,d;for(a=0,i=t.length,c=0;a<i;++a){s=t[a],l=s.box,l.update(s.width||e.w,s.height||e.h,Ia(s.horizontal,e));const{same:i,other:u}=ja(e,r,s,n);c|=i&&o.length,d=d||u,l.fullSize||o.push(s)}return c&&Fa(o,e,r,n)||d}function Ba(t,e,r,n,o){t.top=r,t.left=e,t.right=e+n,t.bottom=r+o,t.width=n,t.height=o}function Ua(t,e,r,n){const o=r.padding;let{x:a,y:i}=e;for(const s of t){const t=s.box,l=n[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const n=e.w*c,a=l.size||t.height;Ir(l.start)&&(i=l.start),t.fullSize?Ba(t,o.left,i,r.outerWidth-o.right-o.left,a):Ba(t,e.left+l.placed,i,n,a),l.start=i,l.placed+=n,i=t.bottom}else{const n=e.h*c,i=l.size||t.width;Ir(l.start)&&(a=l.start),t.fullSize?Ba(t,a,o.top,i,r.outerHeight-o.bottom-o.top):Ba(t,a,e.top+l.placed,i,n),l.start=a,l.placed+=n,a=t.right}}e.x=a,e.y=i}var Wa={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const r=t.boxes?t.boxes.indexOf(e):-1;-1!==r&&t.boxes.splice(r,1)},configure(t,e,r){e.fullSize=r.fullSize,e.position=r.position,e.weight=r.weight},update(t,e,r,n){if(!t)return;const o=ao(t.options.layout.padding),a=Math.max(e-o.width,0),i=Math.max(r-o.height,0),s=function(t){const e=function(t){const e=[];let r,n,o,a,i,s;for(r=0,n=(t||[]).length;r<n;++r)o=t[r],({position:a,options:{stack:i,stackWeight:s=1}}=o),e.push({index:r,box:o,pos:a,horizontal:o.isHorizontal(),weight:o.weight,stack:i&&a+i,stackWeight:s});return e}(t),r=La(e.filter((t=>t.box.fullSize)),!0),n=La(Ta(e,"left"),!0),o=La(Ta(e,"right")),a=La(Ta(e,"top"),!0),i=La(Ta(e,"bottom")),s=Ra(e,"x"),l=Ra(e,"y");return{fullSize:r,leftAndTop:n.concat(a),rightAndBottom:o.concat(l).concat(i).concat(s),chartArea:Ta(e,"chartArea"),vertical:n.concat(o).concat(l),horizontal:a.concat(i).concat(s)}}(t.boxes),l=s.vertical,c=s.horizontal;Mr(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const d=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,u=Object.freeze({outerWidth:e,outerHeight:r,padding:o,availableWidth:a,availableHeight:i,vBoxMaxWidth:a/2/d,hBoxMaxHeight:i/2}),p=Object.assign({},o);Da(p,ao(n));const f=Object.assign({maxPadding:p,w:a,h:i,x:o.left,y:o.top},o),m=function(t,e){const r=function(t){const e={};for(const r of t){const{stack:t,pos:n,stackWeight:o}=r;if(!t||!za.includes(n))continue;const a=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=o}return e}(t),{vBoxMaxWidth:n,hBoxMaxHeight:o}=e;let a,i,s;for(a=0,i=t.length;a<i;++a){s=t[a];const{fullSize:i}=s.box,l=r[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*n:i&&e.availableWidth,s.height=o):(s.width=n,s.height=c?c*o:i&&e.availableHeight)}return r}(l.concat(c),u);Fa(s.fullSize,f,u,m),Fa(l,f,u,m),Fa(c,f,u,m)&&Fa(l,f,u,m),function(t){const e=t.maxPadding;function r(r){const n=Math.max(e[r]-t[r],0);return t[r]+=n,n}t.y+=r("top"),t.x+=r("left"),r("right"),r("bottom")}(f),Ua(s.leftAndTop,f,u,m),f.x+=f.w,f.y+=f.h,Ua(s.rightAndBottom,f,u,m),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Mr(s.chartArea,(e=>{const r=e.box;Object.assign(r,t.chartArea),r.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class $a{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,r){}removeEventListener(t,e,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,r,n){return e=Math.max(0,e||t.width),r=r||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):r)}}isAttached(t){return!0}updateConfig(t){}}class Va extends $a{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ha={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Ya=t=>null===t||""===t,Xa=!!Io&&{passive:!0};function qa(t,e,r){t.canvas.removeEventListener(e,r,Xa)}function Ka(t,e){for(const r of t)if(r===e||r.contains(e))return!0}function Qa(t,e,r){const n=t.canvas,o=new MutationObserver((t=>{let e=!1;for(const r of t)e=e||Ka(r.addedNodes,n),e=e&&!Ka(r.removedNodes,n);e&&r()}));return o.observe(document,{childList:!0,subtree:!0}),o}function Ga(t,e,r){const n=t.canvas,o=new MutationObserver((t=>{let e=!1;for(const r of t)e=e||Ka(r.removedNodes,n),e=e&&!Ka(r.addedNodes,n);e&&r()}));return o.observe(document,{childList:!0,subtree:!0}),o}const Za=new Map;let Ja=0;function ti(){const t=window.devicePixelRatio;t!==Ja&&(Ja=t,Za.forEach(((e,r)=>{r.currentDevicePixelRatio!==t&&e()})))}function ei(t,e,r){const n=t.canvas,o=n&&Oo(n);if(!o)return;const a=gn(((t,e)=>{const n=o.clientWidth;r(t,e),n<o.clientWidth&&r()}),window),i=new ResizeObserver((t=>{const e=t[0],r=e.contentRect.width,n=e.contentRect.height;0===r&&0===n||a(r,n)}));return i.observe(o),function(t,e){Za.size||window.addEventListener("resize",ti),Za.set(t,e)}(t,a),i}function ri(t,e,r){r&&r.disconnect(),"resize"===e&&function(t){Za.delete(t),Za.size||window.removeEventListener("resize",ti)}(t)}function ni(t,e,r){const n=t.canvas,o=gn((e=>{null!==t.ctx&&r(function(t,e){const r=Ha[t.type]||t.type,{x:n,y:o}=Ao(t,e);return{type:r,chart:e,native:t,x:void 0!==n?n:null,y:void 0!==o?o:null}}(e,t))}),t);return function(t,e,r){t.addEventListener(e,r,Xa)}(n,e,o),o}class oi extends $a{acquireContext(t,e){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(function(t,e){const r=t.style,n=t.getAttribute("height"),o=t.getAttribute("width");if(t.$chartjs={initial:{height:n,width:o,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",r.boxSizing=r.boxSizing||"border-box",Ya(o)){const e=Fo(t,"width");void 0!==e&&(t.width=e)}if(Ya(n))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Fo(t,"height");void 0!==e&&(t.height=e)}}(t,e),r):null}releaseContext(t){const e=t.canvas;if(!e.$chartjs)return!1;const r=e.$chartjs.initial;["height","width"].forEach((t=>{const n=r[t];yr(n)?e.removeAttribute(t):e.setAttribute(t,n)}));const n=r.style||{};return Object.keys(n).forEach((t=>{e.style[t]=n[t]})),e.width=e.width,delete e.$chartjs,!0}addEventListener(t,e,r){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),o={attach:Qa,detach:Ga,resize:ei}[e]||ni;n[e]=o(t,e,r)}removeEventListener(t,e){const r=t.$proxies||(t.$proxies={}),n=r[e];n&&(({attach:ri,detach:ri,resize:ri}[e]||qa)(t,e,n),r[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,r,n){return function(t,e,r,n){const o=To(t),a=Lo(o,"margin"),i=zo(o.maxWidth,t,"clientWidth")||Vr,s=zo(o.maxHeight,t,"clientHeight")||Vr,l=function(t,e,r){let n,o;if(void 0===e||void 0===r){const a=Oo(t);if(a){const t=a.getBoundingClientRect(),i=To(a),s=Lo(i,"border","width"),l=Lo(i,"padding");e=t.width-l.width-s.width,r=t.height-l.height-s.height,n=zo(i.maxWidth,a,"clientWidth"),o=zo(i.maxHeight,a,"clientHeight")}else e=t.clientWidth,r=t.clientHeight}return{width:e,height:r,maxWidth:n||Vr,maxHeight:o||Vr}}(t,e,r);let{width:c,height:d}=l;if("content-box"===o.boxSizing){const t=Lo(o,"border","width"),e=Lo(o,"padding");c-=e.width+t.width,d-=e.height+t.height}return c=Math.max(0,c-a.width),d=Math.max(0,n?c/n:d-a.height),c=Do(Math.min(c,i,l.maxWidth)),d=Do(Math.min(d,s,l.maxHeight)),c&&!d&&(d=Do(c/2)),(void 0!==e||void 0!==r)&&n&&l.height&&d>l.height&&(d=l.height,c=Do(Math.floor(d*n))),{width:c,height:d}}(t,e,r,n)}isAttached(t){const e=Oo(t);return!(!e||!e.isConnected)}}class ai{static defaults={};static defaultRoutes=void 0;active=!1;tooltipPosition(t){const{x:e,y:r}=this.getProps(["x","y"],t);return{x:e,y:r}}hasValue(){return Jr(this.x)&&Jr(this.y)}getProps(t,e){const r=this.$animations;if(!e||!r)return this;const n={};return t.forEach((t=>{n[t]=r[t]&&r[t].active()?r[t]._to:this[t]})),n}}function ii(t,e,r,n,o){const a=Sr(n,0),i=Math.min(Sr(o,t.length),t.length);let s,l,c,d=0;for(r=Math.ceil(r),o&&(s=o-n,r=s/Math.floor(s/r)),c=a;c<0;)d++,c=Math.round(a+d*r);for(l=Math.max(a,0);l<i;l++)l===c&&(e.push(t[l]),d++,c=Math.round(a+d*r))}const si=(t,e,r)=>"top"===e||"left"===e?t[e]+r:t[e]-r,li=(t,e)=>Math.min(e||t,t);function ci(t,e){const r=[],n=t.length/e,o=t.length;let a=0;for(;a<o;a+=n)r.push(t[Math.floor(a)]);return r}function di(t,e,r){const n=t.ticks.length,o=Math.min(e,n-1),a=t._startPixel,i=t._endPixel,s=1e-6;let l,c=t.getPixelForTick(o);if(!(r&&(l=1===n?Math.max(c-a,i-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(o-1))/2,c+=o<e?l:-l,c<a-s||c>i+s)))return c}function ui(t){return t.drawTicks?t.tickLength:0}function pi(t,e){if(!t.display)return 0;const r=io(t.font,e),n=ao(t.padding);return(wr(t.text)?t.text.length:1)*r.lineHeight+n.height}function fi(t,e,r){let n=vn(t);return(r&&"right"!==e||!r&&"right"===e)&&(n=(t=>"left"===t?"right":"right"===t?"left":t)(n)),n}class mi extends ai{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:r,_suggestedMax:n}=this;return t=Er(t,Number.POSITIVE_INFINITY),e=Er(e,Number.NEGATIVE_INFINITY),r=Er(r,Number.POSITIVE_INFINITY),n=Er(n,Number.NEGATIVE_INFINITY),{min:Er(t,r),max:Er(e,n),minDefined:_r(t),maxDefined:_r(e)}}getMinMax(t){let e,{min:r,max:n,minDefined:o,maxDefined:a}=this.getUserBounds();if(o&&a)return{min:r,max:n};const i=this.getMatchingVisibleMetas();for(let s=0,l=i.length;s<l;++s)e=i[s].controller.getMinMax(this,t),o||(r=Math.min(r,e.min)),a||(n=Math.max(n,e.max));return r=a&&r>n?n:r,n=o&&r>n?r:n,{min:Er(r,Er(n,r)),max:Er(n,Er(r,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Cr(this.options.beforeUpdate,[this])}update(t,e,r){const{beginAtZero:n,grace:o,ticks:a}=this.options,i=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,r){const{min:n,max:o}=t,a=(l=(o-n)/2,"string"==typeof(s=e)&&s.endsWith("%")?parseFloat(s)/100*l:+s),i=(t,e)=>r&&0===t?0:t+e;var s,l;return{min:i(n,-Math.abs(a)),max:i(o,a)}}(this,o,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=i<this.ticks.length;this._convertTicksToLabels(s?ci(this.ticks,i):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||"auto"===a.source)&&(this.ticks=function(t,e){const r=t.options.ticks,n=function(t){const e=t.options.offset,r=t._tickSize(),n=t._length/r+(e?0:1),o=t._maxLength/r;return Math.floor(Math.min(n,o))}(t),o=Math.min(r.maxTicksLimit||n,n),a=r.major.enabled?function(t){const e=[];let r,n;for(r=0,n=t.length;r<n;r++)t[r].major&&e.push(r);return e}(e):[],i=a.length,s=a[0],l=a[i-1],c=[];if(i>o)return function(t,e,r,n){let o,a=0,i=r[0];for(n=Math.ceil(n),o=0;o<t.length;o++)o===i&&(e.push(t[o]),a++,i=r[a*n])}(e,c,a,i/o),c;const d=function(t,e,r){const n=function(t){const e=t.length;let r,n;if(e<2)return!1;for(n=t[0],r=1;r<e;++r)if(t[r]-t[r-1]!==n)return!1;return n}(t),o=e.length/r;if(!n)return Math.max(o,1);const a=function(t){const e=[],r=Math.sqrt(t);let n;for(n=1;n<r;n++)t%n==0&&(e.push(n),e.push(t/n));return r===(0|r)&&e.push(r),e.sort(((t,e)=>t-e)).pop(),e}(n);for(let t=0,e=a.length-1;t<e;t++){const e=a[t];if(e>o)return e}return Math.max(o,1)}(a,e,o);if(i>0){let t,r;const n=i>1?Math.round((l-s)/(i-1)):null;for(ii(e,c,d,yr(n)?0:s-n,s),t=0,r=i-1;t<r;t++)ii(e,c,d,a[t],a[t+1]);return ii(e,c,d,l,yr(n)?e.length:l+n),c}return ii(e,c,d),c}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,r=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,r=!r),this._startPixel=t,this._endPixel=e,this._reversePixels=r,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Cr(this.options.afterUpdate,[this])}beforeSetDimensions(){Cr(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Cr(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Cr(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Cr(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let r,n,o;for(r=0,n=t.length;r<n;r++)o=t[r],o.label=Cr(e.callback,[o.value,r,t],this)}afterTickToLabelConversion(){Cr(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Cr(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,r=li(this.ticks.length,t.ticks.maxTicksLimit),n=e.minRotation||0,o=e.maxRotation;let a,i,s,l=n;if(!this._isVisible()||!e.display||n>=o||r<=1||!this.isHorizontal())return void(this.labelRotation=n);const c=this._getLabelSizes(),d=c.widest.width,u=c.highest.height,p=cn(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/r:p/(r-1),d+6>a&&(a=p/(r-(t.offset?.5:1)),i=this.maxHeight-ui(t.grid)-e.padding-pi(t.title,this.chart.options.font),s=Math.sqrt(d*d+u*u),l=Math.min(Math.asin(cn((c.highest.height+6)/a,-1,1)),Math.asin(cn(i/s,-1,1))-Math.asin(cn(u/s,-1,1)))*(180/Ur),l=Math.max(n,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){Cr(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Cr(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:r,title:n,grid:o}}=this,a=this._isVisible(),i=this.isHorizontal();if(a){const a=pi(n,e.options.font);if(i?(t.width=this.maxWidth,t.height=ui(o)+a):(t.height=this.maxHeight,t.width=ui(o)+a),r.display&&this.ticks.length){const{first:e,last:n,widest:o,highest:a}=this._getLabelSizes(),s=2*r.padding,l=en(this.labelRotation),c=Math.cos(l),d=Math.sin(l);if(i){const e=r.mirror?0:d*o.width+c*a.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=r.mirror?0:c*o.width+d*a.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,n,d,c)}}this._handleMargins(),i?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,r,n){const{ticks:{align:o,padding:a},position:i}=this.options,s=0!==this.labelRotation,l="top"!==i&&"x"===this.axis;if(this.isHorizontal()){const i=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,u=0;s?l?(d=n*t.width,u=r*e.height):(d=r*t.height,u=n*e.width):"start"===o?u=e.width:"end"===o?d=t.width:"inner"!==o&&(d=t.width/2,u=e.width/2),this.paddingLeft=Math.max((d-i+a)*this.width/(this.width-i),0),this.paddingRight=Math.max((u-c+a)*this.width/(this.width-c),0)}else{let r=e.height/2,n=t.height/2;"start"===o?(r=0,n=t.height):"end"===o&&(r=e.height,n=0),this.paddingTop=r+a,this.paddingBottom=n+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Cr(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,r;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,r=t.length;e<r;e++)yr(t[e].label)&&(t.splice(e,1),r--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let r=this.ticks;e<r.length&&(r=ci(r,e)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,r){const{ctx:n,_longestTextCache:o}=this,a=[],i=[],s=Math.floor(e/li(e,r));let l,c,d,u,p,f,m,h,b,g,v,x=0,y=0;for(l=0;l<e;l+=s){if(u=t[l].label,p=this._resolveTickFontOptions(l),n.font=f=p.string,m=o[f]=o[f]||{data:{},gc:[]},h=p.lineHeight,b=g=0,yr(u)||wr(u)){if(wr(u))for(c=0,d=u.length;c<d;++c)v=u[c],yr(v)||wr(v)||(b=Fn(n,m.data,m.gc,b,v),g+=h)}else b=Fn(n,m.data,m.gc,b,u),g=h;a.push(b),i.push(g),x=Math.max(b,x),y=Math.max(g,y)}!function(t,e){Mr(t,(t=>{const r=t.gc,n=r.length/2;let o;if(n>e){for(o=0;o<n;++o)delete t.data[r[o]];r.splice(0,n)}}))}(o,e);const w=a.indexOf(x),k=i.indexOf(y),_=t=>({width:a[t]||0,height:i[t]||0});return{first:_(0),last:_(e-1),widest:_(w),highest:_(k),widths:a,heights:i}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return cn(this._alignToPixels?Bn(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const r=e[t];return r.$context||(r.$context=function(t,e,r){return lo(t,{tick:r,index:e,type:"tick"})}(this.getContext(),t,r))}return this.$context||(this.$context=lo(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=en(this.labelRotation),r=Math.abs(Math.cos(e)),n=Math.abs(Math.sin(e)),o=this._getLabelSizes(),a=t.autoSkipPadding||0,i=o?o.widest.width+a:0,s=o?o.highest.height+a:0;return this.isHorizontal()?s*r>i*n?i/r:s/n:s*n<i*r?s/r:i/n}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,r=this.chart,n=this.options,{grid:o,position:a,border:i}=n,s=o.offset,l=this.isHorizontal(),c=this.ticks.length+(s?1:0),d=ui(o),u=[],p=i.setContext(this.getContext()),f=p.display?p.width:0,m=f/2,h=function(t){return Bn(r,t,f)};let b,g,v,x,y,w,k,_,E,S,C,M;if("top"===a)b=h(this.bottom),w=this.bottom-d,_=b-m,S=h(t.top)+m,M=t.bottom;else if("bottom"===a)b=h(this.top),S=t.top,M=h(t.bottom)-m,w=b+m,_=this.top+d;else if("left"===a)b=h(this.right),y=this.right-d,k=b-m,E=h(t.left)+m,C=t.right;else if("right"===a)b=h(this.left),E=t.left,C=h(t.right)-m,y=b+m,k=this.left+d;else if("x"===e){if("center"===a)b=h((t.top+t.bottom)/2+.5);else if(kr(a)){const t=Object.keys(a)[0],e=a[t];b=h(this.chart.scales[t].getPixelForValue(e))}S=t.top,M=t.bottom,w=b+m,_=w+d}else if("y"===e){if("center"===a)b=h((t.left+t.right)/2);else if(kr(a)){const t=Object.keys(a)[0],e=a[t];b=h(this.chart.scales[t].getPixelForValue(e))}y=b-m,k=y-d,E=t.left,C=t.right}const N=Sr(n.ticks.maxTicksLimit,c),P=Math.max(1,Math.ceil(c/N));for(g=0;g<c;g+=P){const t=this.getContext(g),e=o.setContext(t),n=i.setContext(t),a=e.lineWidth,c=e.color,d=n.dash||[],p=n.dashOffset,f=e.tickWidth,m=e.tickColor,h=e.tickBorderDash||[],b=e.tickBorderDashOffset;v=di(this,g,s),void 0!==v&&(x=Bn(r,v,a),l?y=k=E=C=x:w=_=S=M=x,u.push({tx1:y,ty1:w,tx2:k,ty2:_,x1:E,y1:S,x2:C,y2:M,width:a,color:c,borderDash:d,borderDashOffset:p,tickWidth:f,tickColor:m,tickBorderDash:h,tickBorderDashOffset:b}))}return this._ticksLength=c,this._borderValue=b,u}_computeLabelItems(t){const e=this.axis,r=this.options,{position:n,ticks:o}=r,a=this.isHorizontal(),i=this.ticks,{align:s,crossAlign:l,padding:c,mirror:d}=o,u=ui(r.grid),p=u+c,f=d?-c:p,m=-en(this.labelRotation),h=[];let b,g,v,x,y,w,k,_,E,S,C,M,N="middle";if("top"===n)w=this.bottom-f,k=this._getXAxisLabelAlignment();else if("bottom"===n)w=this.top+f,k=this._getXAxisLabelAlignment();else if("left"===n){const t=this._getYAxisLabelAlignment(u);k=t.textAlign,y=t.x}else if("right"===n){const t=this._getYAxisLabelAlignment(u);k=t.textAlign,y=t.x}else if("x"===e){if("center"===n)w=(t.top+t.bottom)/2+p;else if(kr(n)){const t=Object.keys(n)[0],e=n[t];w=this.chart.scales[t].getPixelForValue(e)+p}k=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===n)y=(t.left+t.right)/2-p;else if(kr(n)){const t=Object.keys(n)[0],e=n[t];y=this.chart.scales[t].getPixelForValue(e)}k=this._getYAxisLabelAlignment(u).textAlign}"y"===e&&("start"===s?N="top":"end"===s&&(N="bottom"));const P=this._getLabelSizes();for(b=0,g=i.length;b<g;++b){v=i[b],x=v.label;const t=o.setContext(this.getContext(b));_=this.getPixelForTick(b)+o.labelOffset,E=this._resolveTickFontOptions(b),S=E.lineHeight,C=wr(x)?x.length:1;const e=C/2,r=t.color,s=t.textStrokeColor,c=t.textStrokeWidth;let u,p=k;if(a?(y=_,"inner"===k&&(p=b===g-1?this.options.reverse?"left":"right":0===b?this.options.reverse?"right":"left":"center"),M="top"===n?"near"===l||0!==m?-C*S+S/2:"center"===l?-P.highest.height/2-e*S+S:-P.highest.height+S/2:"near"===l||0!==m?S/2:"center"===l?P.highest.height/2-e*S:P.highest.height-C*S,d&&(M*=-1),0===m||t.showLabelBackdrop||(y+=S/2*Math.sin(m))):(w=_,M=(1-C)*S/2),t.showLabelBackdrop){const e=ao(t.backdropPadding),r=P.heights[b],n=P.widths[b];let o=M-e.top,a=0-e.left;switch(N){case"middle":o-=r/2;break;case"bottom":o-=r}switch(k){case"center":a-=n/2;break;case"right":a-=n}u={left:a,top:o,width:n+e.width,height:r+e.height,color:t.backdropColor}}h.push({label:x,font:E,textOffset:M,options:{rotation:m,color:r,strokeColor:s,strokeWidth:c,textAlign:p,textBaseline:N,translation:[y,w],backdrop:u}})}return h}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-en(this.labelRotation))return"top"===t?"left":"right";let r="center";return"start"===e.align?r="left":"end"===e.align?r="right":"inner"===e.align&&(r="inner"),r}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:r,mirror:n,padding:o}}=this.options,a=t+o,i=this._getLabelSizes().widest.width;let s,l;return"left"===e?n?(l=this.right+o,"near"===r?s="left":"center"===r?(s="center",l+=i/2):(s="right",l+=i)):(l=this.right-a,"near"===r?s="right":"center"===r?(s="center",l-=i/2):(s="left",l=this.left)):"right"===e?n?(l=this.left+o,"near"===r?s="right":"center"===r?(s="center",l-=i/2):(s="left",l-=i)):(l=this.left+a,"near"===r?s="left":"center"===r?(s="center",l+=i/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:r,top:n,width:o,height:a}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(r,n,o,a),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const r=this.ticks.findIndex((e=>e.value===t));return r>=0?e.setContext(this.getContext(r)).lineWidth:0}drawGrid(t){const e=this.options.grid,r=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const i=(t,e,n)=>{n.width&&n.color&&(r.save(),r.lineWidth=n.width,r.strokeStyle=n.color,r.setLineDash(n.borderDash||[]),r.lineDashOffset=n.borderDashOffset,r.beginPath(),r.moveTo(t.x,t.y),r.lineTo(e.x,e.y),r.stroke(),r.restore())};if(e.display)for(o=0,a=n.length;o<a;++o){const t=n[o];e.drawOnChartArea&&i({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&i({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:r,grid:n}}=this,o=r.setContext(this.getContext()),a=r.display?o.width:0;if(!a)return;const i=n.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let l,c,d,u;this.isHorizontal()?(l=Bn(t,this.left,a)-a/2,c=Bn(t,this.right,i)+i/2,d=u=s):(d=Bn(t,this.top,a)-a/2,u=Bn(t,this.bottom,i)+i/2,l=c=s),e.save(),e.lineWidth=o.width,e.strokeStyle=o.color,e.beginPath(),e.moveTo(l,d),e.lineTo(c,u),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,r=this._computeLabelArea();r&&Hn(e,r);const n=this.getLabelItems(t);for(const t of n){const r=t.options,n=t.font;Kn(e,t.label,0,t.textOffset,n,r)}r&&Yn(e)}drawTitle(){const{ctx:t,options:{position:e,title:r,reverse:n}}=this;if(!r.display)return;const o=io(r.font),a=ao(r.padding),i=r.align;let s=o.lineHeight/2;"bottom"===e||"center"===e||kr(e)?(s+=a.bottom,wr(r.text)&&(s+=o.lineHeight*(r.text.length-1))):s+=a.top;const{titleX:l,titleY:c,maxWidth:d,rotation:u}=function(t,e,r,n){const{top:o,left:a,bottom:i,right:s,chart:l}=t,{chartArea:c,scales:d}=l;let u,p,f,m=0;const h=i-o,b=s-a;if(t.isHorizontal()){if(p=xn(n,a,s),kr(r)){const t=Object.keys(r)[0],n=r[t];f=d[t].getPixelForValue(n)+h-e}else f="center"===r?(c.bottom+c.top)/2+h-e:si(t,r,e);u=s-a}else{if(kr(r)){const t=Object.keys(r)[0],n=r[t];p=d[t].getPixelForValue(n)-b+e}else p="center"===r?(c.left+c.right)/2-b+e:si(t,r,e);f=xn(n,i,o),m="left"===r?-Yr:Yr}return{titleX:p,titleY:f,maxWidth:u,rotation:m}}(this,s,e,i);Kn(t,r.text,0,0,o,{color:r.color,maxWidth:d,rotation:u,textAlign:fi(i,e,n),textBaseline:"middle",translation:[l,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,r=Sr(t.grid&&t.grid.z,-1),n=Sr(t.border&&t.border.z,0);return this._isVisible()&&this.draw===mi.prototype.draw?[{z:r,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",n=[];let o,a;for(o=0,a=e.length;o<a;++o){const a=e[o];a[r]!==this.id||t&&a.type!==t||n.push(a)}return n}_resolveTickFontOptions(t){return io(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class hi{constructor(t,e,r){this.type=t,this.scope=e,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let r;(function(t){return"id"in t&&"defaults"in t})(e)&&(r=this.register(e));const n=this.items,o=t.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in n||(n[o]=t,function(t,e,r){const n=Tr(Object.create(null),[r?In.get(r):{},In.get(e),t.defaults]);In.set(e,n),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((r=>{const n=r.split("."),o=n.pop(),a=[t].concat(n).join("."),i=e[r].split("."),s=i.pop(),l=i.join(".");In.route(a,o,l,s)}))}(e,t.defaultRoutes),t.descriptors&&In.describe(e,t.descriptors)}(t,a,r),this.override&&In.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const e=this.items,r=t.id,n=this.scope;r in e&&delete e[r],n&&r in In[n]&&(delete In[n][r],this.override&&delete Rn[r])}}class bi{constructor(){this.controllers=new hi(ma,"datasets",!0),this.elements=new hi(ai,"elements"),this.plugins=new hi(Object,"plugins"),this.scales=new hi(mi,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,r){[...e].forEach((e=>{const n=r||this._getRegistryForType(e);r||n.isForType(e)||n===this.plugins&&e.id?this._exec(t,n,e):Mr(e,(e=>{const n=r||this._getRegistryForType(e);this._exec(t,n,e)}))}))}_exec(t,e,r){const n=jr(t);Cr(r["before"+n],[],r),e[t](r),Cr(r["after"+n],[],r)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const r=this._typedRegistries[e];if(r.isForType(t))return r}return this.plugins}_get(t,e,r){const n=e.get(t);if(void 0===n)throw new Error('"'+t+'" is not a registered '+r+".");return n}}var gi=new bi;class vi{constructor(){this._init=[]}notify(t,e,r,n){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=n?this._descriptors(t).filter(n):this._descriptors(t),a=this._notify(o,t,e,r);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,e,r,n){n=n||{};for(const o of t){const t=o.plugin;if(!1===Cr(t[r],[e,n,o.options],t)&&n.cancelable)return!1}return!0}invalidate(){yr(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const r=t&&t.config,n=Sr(r.options&&r.options.plugins,{}),o=function(t){const e={},r=[],n=Object.keys(gi.plugins.items);for(let t=0;t<n.length;t++)r.push(gi.getPlugin(n[t]));const o=t.plugins||[];for(let t=0;t<o.length;t++){const n=o[t];-1===r.indexOf(n)&&(r.push(n),e[n.id]=!0)}return{plugins:r,localIds:e}}(r);return!1!==n||e?function(t,{plugins:e,localIds:r},n,o){const a=[],i=t.getContext();for(const s of e){const e=s.id,l=xi(n[e],o);null!==l&&a.push({plugin:s,options:yi(t.config,{plugin:s,local:r[e]},l,i)})}return a}(t,o,n,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],r=this._cache,n=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(n(e,r),t,"stop"),this._notify(n(r,e),t,"start")}}function xi(t,e){return e||!1!==t?!0===t?{}:t:null}function yi(t,{plugin:e,local:r},n,o){const a=t.pluginScopeKeys(e),i=t.getOptionScopes(n,a);return r&&e.defaults&&i.push(e.defaults),t.createResolver(i,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function wi(t,e){const r=In.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||r.indexAxis||"x"}function ki(t,e){if("x"===t||"y"===t||"r"===t)return t;var r;if(t=e.axis||("top"===(r=e.position)||"bottom"===r?"x":"left"===r||"right"===r?"y":void 0)||t.length>1&&ki(t[0].toLowerCase(),e))return t;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function _i(t){const e=t.options||(t.options={});e.plugins=Sr(e.plugins,{}),e.scales=function(t,e){const r=Rn[t.type]||{scales:{}},n=e.scales||{},o=wi(t.type,e),a=Object.create(null);return Object.keys(n).forEach((t=>{const e=n[t];if(!kr(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const i=ki(t,e),s=function(t,e){return t===e?"_index_":"_value_"}(i,o),l=r.scales||{};a[t]=Rr(Object.create(null),[{axis:i},e,l[i],l[s]])})),t.data.datasets.forEach((r=>{const o=r.type||t.type,i=r.indexAxis||wi(o,e),s=(Rn[o]||{}).scales||{};Object.keys(s).forEach((t=>{const e=function(t,e){let r=t;return"_index_"===t?r=e:"_value_"===t&&(r="x"===e?"y":"x"),r}(t,i),o=r[e+"AxisID"]||e;a[o]=a[o]||Object.create(null),Rr(a[o],[{axis:e},n[o],s[t]])}))})),Object.keys(a).forEach((t=>{const e=a[t];Rr(e,[In.scales[e.type],In.scale])})),a}(t,e)}function Ei(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Si=new Map,Ci=new Set;function Mi(t,e){let r=Si.get(t);return r||(r=e(),Si.set(t,r),Ci.add(r)),r}const Ni=(t,e,r)=>{const n=Dr(e,r);void 0!==n&&t.add(n)};class Pi{constructor(t){this._config=function(t){return(t=t||{}).data=Ei(t.data),_i(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Ei(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),_i(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Mi(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Mi(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Mi(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Mi(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const r=this._scopeCache;let n=r.get(t);return n&&!e||(n=new Map,r.set(t,n)),n}getOptionScopes(t,e,r){const{options:n,type:o}=this,a=this._cachedScopes(t,r),i=a.get(e);if(i)return i;const s=new Set;e.forEach((e=>{t&&(s.add(t),e.forEach((e=>Ni(s,t,e)))),e.forEach((t=>Ni(s,n,t))),e.forEach((t=>Ni(s,Rn[o]||{},t))),e.forEach((t=>Ni(s,In,t))),e.forEach((t=>Ni(s,Ln,t)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),Ci.has(e)&&a.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Rn[e]||{},In.datasets[e]||{},{type:e},In,Ln]}resolveNamedOptions(t,e,r,n=[""]){const o={$shared:!0},{resolver:a,subPrefixes:i}=Oi(this._resolverCache,t,n);let s=a;(function(t,e){const{isScriptable:r,isIndexable:n}=po(t);for(const o of e){const e=r(o),a=n(o),i=(a||e)&&t[o];if(e&&(Fr(i)||zi(i))||a&&wr(i))return!0}return!1})(a,e)&&(o.$shared=!1,s=uo(a,r=Fr(r)?r():r,this.createResolver(t,r,i)));for(const t of e)o[t]=s[t];return o}createResolver(t,e,r=[""],n){const{resolver:o}=Oi(this._resolverCache,t,r);return kr(e)?uo(o,e,void 0,n):o}}function Oi(t,e,r){let n=t.get(e);n||(n=new Map,t.set(e,n));const o=r.join();let a=n.get(o);return a||(a={resolver:co(e,r),subPrefixes:r.filter((t=>!t.toLowerCase().includes("hover")))},n.set(o,a)),a}const zi=t=>kr(t)&&Object.getOwnPropertyNames(t).reduce(((e,r)=>e||Fr(t[r])),!1),Ti=["top","bottom","left","right","chartArea"];function Ri(t,e){return"top"===t||"bottom"===t||-1===Ti.indexOf(t)&&"x"===e}function Li(t,e){return function(r,n){return r[t]===n[t]?r[e]-n[e]:r[t]-n[t]}}function Ai(t){const e=t.chart,r=e.options.animation;e.notifyPlugins("afterRender"),Cr(r&&r.onComplete,[t],e)}function Di(t){const e=t.chart,r=e.options.animation;Cr(r&&r.onProgress,[t],e)}function ji(t){return Po()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Ii={},Fi=t=>{const e=ji(t);return Object.values(Ii).filter((t=>t.canvas===e)).pop()};function Bi(t,e,r){const n=Object.keys(t);for(const o of n){const n=+o;if(n>=e){const a=t[o];delete t[o],(r>0||n>e)&&(t[n+r]=a)}}}class Ui{static defaults=In;static instances=Ii;static overrides=Rn;static registry=gi;static version="4.2.1";static getChart=Fi;static register(...t){gi.add(...t),Wi()}static unregister(...t){gi.remove(...t),Wi()}constructor(t,e){const r=this.config=new Pi(e),n=ji(t),o=Fi(n);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||function(t){return!Po()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Va:oi}(n)),this.platform.updateConfig(r);const i=this.platform.acquireContext(n,a.aspectRatio),s=i&&i.canvas,l=s&&s.height,c=s&&s.width;this.id=xr(),this.ctx=i,this.canvas=s,this.width=c,this.height=l,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new vi,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let r;return function(...n){return e?(clearTimeout(r),r=setTimeout(t,e,n)):t.apply(this,n),e}}((t=>this.update(t)),a.resizeDelay||0),this._dataChanges=[],Ii[this.id]=this,i&&s?(Zo.listen(this,"complete",Ai),Zo.listen(this,"progress",Di),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:r,height:n,_aspectRatio:o}=this;return yr(t)?e&&o?o:n?r/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return gi}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():jo(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Un(this.canvas,this.ctx),this}stop(){return Zo.stop(this),this}resize(t,e){Zo.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const r=this.options,n=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(n,t,e,o),i=r.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,jo(this,i,!0)&&(this.notifyPlugins("resize",{size:a}),Cr(r.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){Mr(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,r=this.scales,n=Object.keys(r).reduce(((t,e)=>(t[e]=!1,t)),{});let o=[];e&&(o=o.concat(Object.keys(e).map((t=>{const r=e[t],n=ki(t,r),o="r"===n,a="x"===n;return{options:r,dposition:o?"chartArea":a?"bottom":"left",dtype:o?"radialLinear":a?"category":"linear"}})))),Mr(o,(e=>{const o=e.options,a=o.id,i=ki(a,o),s=Sr(o.type,e.dtype);void 0!==o.position&&Ri(o.position,i)===Ri(e.dposition)||(o.position=e.dposition),n[a]=!0;let l=null;a in r&&r[a].type===s?l=r[a]:(l=new(gi.getScale(s))({id:a,type:s,ctx:this.ctx,chart:this}),r[l.id]=l),l.init(o,t)})),Mr(n,((t,e)=>{t||delete r[e]})),Mr(r,(t=>{Wa.configure(this,t,t.options),Wa.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,r=t.length;if(t.sort(((t,e)=>t.index-e.index)),r>e){for(let t=e;t<r;++t)this._destroyDatasetMeta(t);t.splice(e,r-e)}this._sortedMetasets=t.slice(0).sort(Li("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,r)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(r)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let r,n;for(this._removeUnreferencedMetasets(),r=0,n=e.length;r<n;r++){const n=e[r];let o=this.getDatasetMeta(r);const a=n.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=a,o.indexAxis=n.indexAxis||wi(a,this.options),o.order=n.order||0,o.index=r,o.label=""+n.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const e=gi.getController(a),{datasetElementType:n,dataElementType:i}=In.datasets[a];Object.assign(e,{dataElementType:gi.getElement(i),datasetElementType:n&&gi.getElement(n)}),o.controller=new e(this,r),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){Mr(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const r=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),r=!n&&-1===o.indexOf(e);e.buildOrUpdateElements(r),a=Math.max(+e.getMaxOverflow(),a)}a=this._minPadding=r.layout.autoPadding?a:0,this._updateLayout(a),n||Mr(o,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Li("z","_idx"));const{_active:i,_lastEvent:s}=this;s?this._eventHandler(s,!0):i.length&&this._updateHoverStyles(i,i,!0),this.render()}_updateScales(){Mr(this.scales,(t=>{Wa.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),r=new Set(t.events);Br(e,r)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:r,start:n,count:o}of e)Bi(t,n,"_removeElements"===r?-o:o)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,r=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),n=r(0);for(let t=1;t<e;t++)if(!Br(n,r(t)))return;return Array.from(n).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Wa.update(this,this.width,this.height,t);const e=this.chartArea,r=e.width<=0||e.height<=0;this._layers=[],Mr(this.boxes,(t=>{r&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,r=this.data.datasets.length;e<r;++e)this._updateDataset(e,Fr(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const r=this.getDatasetMeta(t),n={meta:r,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",n)&&(r.controller._update(e),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Zo.has(this)?this.attached&&!Zo.running(this)&&Zo.start(this):(this.draw(),Ai({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,r=[];let n,o;for(n=0,o=e.length;n<o;++n){const o=e[n];t&&!o.visible||r.push(o)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,r=t._clip,n=!r.disabled,o=function(t){const{xScale:e,yScale:r}=t;if(e&&r)return{left:e.left,right:e.right,top:r.top,bottom:r.bottom}}(t)||this.chartArea,a={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(n&&Hn(e,{left:!1===r.left?0:o.left-r.left,right:!1===r.right?this.width:o.right+r.right,top:!1===r.top?0:o.top-r.top,bottom:!1===r.bottom?this.height:o.bottom+r.bottom}),t.controller.draw(),n&&Yn(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return Vn(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,r,n){const o=Oa.modes[e];return"function"==typeof o?o(this,t,r,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],r=this._metasets;let n=r.filter((t=>t&&t._dataset===e)).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},r.push(n)),n}getContext(){return this.$context||(this.$context=lo(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const r=this.getDatasetMeta(t);return"boolean"==typeof r.hidden?!r.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,r){const n=r?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,n);Ir(e)?(o.data[e].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(o,{visible:r}),this.update((e=>e.datasetIndex===t?n:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Zo.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Un(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete Ii[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,r=(r,n)=>{e.addEventListener(this,r,n),t[r]=n},n=(t,e,r)=>{t.offsetX=e,t.offsetY=r,this._eventHandler(t)};Mr(this.options.events,(t=>r(t,n)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,r=(r,n)=>{e.addEventListener(this,r,n),t[r]=n},n=(r,n)=>{t[r]&&(e.removeEventListener(this,r,n),delete t[r])},o=(t,e)=>{this.canvas&&this.resize(t,e)};let a;const i=()=>{n("attach",i),this.attached=!0,this.resize(),r("resize",o),r("detach",a)};a=()=>{this.attached=!1,n("resize",o),this._stop(),this._resize(0,0),r("attach",i)},e.isAttached(this.canvas)?i():a()}unbindEvents(){Mr(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},Mr(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,r){const n=r?"set":"remove";let o,a,i,s;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+n+"DatasetHoverStyle"]()),i=0,s=t.length;i<s;++i){a=t[i];const e=a&&this.getDatasetMeta(a.datasetIndex).controller;e&&e[n+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],r=t.map((({datasetIndex:t,index:e})=>{const r=this.getDatasetMeta(t);if(!r)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:r.data[e],index:e}}));!Nr(r,e)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,e))}notifyPlugins(t,e,r){return this._plugins.notify(this,t,e,r)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,r){const n=this.options.hover,o=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),a=o(e,t),i=r?t:o(t,e);a.length&&this.updateHoverStyle(a,n.mode,!1),i.length&&n.mode&&this.updateHoverStyle(i,n.mode,!0)}_eventHandler(t,e){const r={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},n=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",r,n))return;const o=this._handleEvent(t,e,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,n),(o||r.changed)&&this.render(),this}_handleEvent(t,e,r){const{_active:n=[],options:o}=this,a=e,i=this._getActiveElements(t,n,r,a),s=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,r,n){return r&&"mouseout"!==t.type?n?e:t:null}(t,this._lastEvent,r,s);r&&(this._lastEvent=null,Cr(o.onHover,[t,i,this],this),s&&Cr(o.onClick,[t,i,this],this));const c=!Nr(i,n);return(c||e)&&(this._active=i,this._updateHoverStyles(i,n,e)),this._lastEvent=l,c}_getActiveElements(t,e,r,n){if("mouseout"===t.type)return[];if(!r)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,n)}}function Wi(){return Mr(Ui.instances,(t=>t._plugins.invalidate()))}function $i(t,e,r,n){return{x:r+t*Math.cos(e),y:n+t*Math.sin(e)}}function Vi(t,e,r,n,o,a){const{x:i,y:s,startAngle:l,pixelMargin:c,innerRadius:d}=e,u=Math.max(e.outerRadius+n+r-c,0),p=d>0?d+n+r+c:0;let f=0;const m=o-l;if(n){const t=((d>0?d-n:0)+(u>0?u-n:0))/2;f=(m-(0!==t?m*t/(t+n):m))/2}const h=(m-Math.max(.001,m*u-r/Ur)/u)/2,b=l+h+f,g=o-h-f,{outerStart:v,outerEnd:x,innerStart:y,innerEnd:w}=function(t,e,r,n){const o=ro(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),a=(r-e)/2,i=Math.min(a,n*e/2),s=t=>{const e=(r-Math.min(a,t))*n/2;return cn(t,0,Math.min(a,e))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:cn(o.innerStart,0,i),innerEnd:cn(o.innerEnd,0,i)}}(e,p,u,g-b),k=u-v,_=u-x,E=b+v/k,S=g-x/_,C=p+y,M=p+w,N=b+y/C,P=g-w/M;if(t.beginPath(),a){const e=(E+S)/2;if(t.arc(i,s,u,E,e),t.arc(i,s,u,e,S),x>0){const e=$i(_,S,i,s);t.arc(e.x,e.y,x,S,g+Yr)}const r=$i(M,g,i,s);if(t.lineTo(r.x,r.y),w>0){const e=$i(M,P,i,s);t.arc(e.x,e.y,w,g+Yr,P+Math.PI)}const n=(g-w/p+(b+y/p))/2;if(t.arc(i,s,p,g-w/p,n,!0),t.arc(i,s,p,n,b+y/p,!0),y>0){const e=$i(C,N,i,s);t.arc(e.x,e.y,y,N+Math.PI,b-Yr)}const o=$i(k,b,i,s);if(t.lineTo(o.x,o.y),v>0){const e=$i(k,E,i,s);t.arc(e.x,e.y,v,b-Yr,E)}}else{t.moveTo(i,s);const e=Math.cos(E)*u+i,r=Math.sin(E)*u+s;t.lineTo(e,r);const n=Math.cos(S)*u+i,o=Math.sin(S)*u+s;t.lineTo(n,o)}t.closePath()}class Hi extends ai{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,r){const n=this.getProps(["x","y"],r),{angle:o,distance:a}=nn(n,{x:t,y:e}),{startAngle:i,endAngle:s,innerRadius:l,outerRadius:c,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),u=this.options.spacing/2,p=Sr(d,s-i)>=Wr||ln(o,i,s),f=dn(a,l+u,c+u);return p&&f}getCenterPoint(t){const{x:e,y:r,startAngle:n,endAngle:o,innerRadius:a,outerRadius:i}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:s,spacing:l}=this.options,c=(n+o)/2,d=(a+i+l+s)/2;return{x:e+Math.cos(c)*d,y:r+Math.sin(c)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:r}=this,n=(e.offset||0)/4,o=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=r>Wr?Math.floor(r/Wr):0,0===r||this.innerRadius<0||this.outerRadius<0)return;t.save();const i=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(i)*n,Math.sin(i)*n);const s=n*(1-Math.sin(Math.min(Ur,r||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,r,n,o){const{fullCircles:a,startAngle:i,circumference:s}=e;let l=e.endAngle;if(a){Vi(t,e,r,n,l,o);for(let e=0;e<a;++e)t.fill();isNaN(s)||(l=i+(s%Wr||Wr))}Vi(t,e,r,n,l,o),t.fill()}(t,this,s,o,a),function(t,e,r,n,o){const{fullCircles:a,startAngle:i,circumference:s,options:l}=e,{borderWidth:c,borderJoinStyle:d}=l,u="inner"===l.borderAlign;if(!c)return;u?(t.lineWidth=2*c,t.lineJoin=d||"round"):(t.lineWidth=c,t.lineJoin=d||"bevel");let p=e.endAngle;if(a){Vi(t,e,r,n,p,o);for(let e=0;e<a;++e)t.stroke();isNaN(s)||(p=i+(s%Wr||Wr))}u&&function(t,e,r){const{startAngle:n,pixelMargin:o,x:a,y:i,outerRadius:s,innerRadius:l}=e;let c=o/s;t.beginPath(),t.arc(a,i,s,n-c,r+c),l>o?(c=o/l,t.arc(a,i,l,r+c,n-c,!0)):t.arc(a,i,o,r+Yr,n-Yr),t.closePath(),t.clip()}(t,e,p),a||(Vi(t,e,r,n,p,o),t.stroke())}(t,this,s,o,a),t.restore()}}function Yi(t,e,r=e){t.lineCap=Sr(r.borderCapStyle,e.borderCapStyle),t.setLineDash(Sr(r.borderDash,e.borderDash)),t.lineDashOffset=Sr(r.borderDashOffset,e.borderDashOffset),t.lineJoin=Sr(r.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Sr(r.borderWidth,e.borderWidth),t.strokeStyle=Sr(r.borderColor,e.borderColor)}function Xi(t,e,r){t.lineTo(r.x,r.y)}function qi(t,e,r={}){const n=t.length,{start:o=0,end:a=n-1}=r,{start:i,end:s}=e,l=Math.max(o,i),c=Math.min(a,s),d=o<i&&a<i||o>s&&a>s;return{count:n,start:l,loop:e.loop,ilen:c<l&&!d?n+c-l:c-l}}function Ki(t,e,r,n){const{points:o,options:a}=e,{count:i,start:s,loop:l,ilen:c}=qi(o,r,n),d=function(t){return t.stepped?Xn:t.tension||"monotone"===t.cubicInterpolationMode?qn:Xi}(a);let u,p,f,{move:m=!0,reverse:h}=n||{};for(u=0;u<=c;++u)p=o[(s+(h?c-u:u))%i],p.skip||(m?(t.moveTo(p.x,p.y),m=!1):d(t,f,p,h,a.stepped),f=p);return l&&(p=o[(s+(h?c:0))%i],d(t,f,p,h,a.stepped)),!!l}function Qi(t,e,r,n){const o=e.points,{count:a,start:i,ilen:s}=qi(o,r,n),{move:l=!0,reverse:c}=n||{};let d,u,p,f,m,h,b=0,g=0;const v=t=>(i+(c?s-t:t))%a,x=()=>{f!==m&&(t.lineTo(b,m),t.lineTo(b,f),t.lineTo(b,h))};for(l&&(u=o[v(0)],t.moveTo(u.x,u.y)),d=0;d<=s;++d){if(u=o[v(d)],u.skip)continue;const e=u.x,r=u.y,n=0|e;n===p?(r<f?f=r:r>m&&(m=r),b=(g*b+e)/++g):(x(),t.lineTo(e,r),p=n,g=0,f=m=r),h=r}x()}function Gi(t){const e=t.options,r=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||r?Ki:Qi}const Zi="function"==typeof Path2D;function Ji(t,e,r,n){const o=t.options,{[r]:a}=t.getProps([r],n);return Math.abs(e-a)<o.radius+o.hitRadius}class ts extends ai{static id="point";static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,r){const n=this.options,{x:o,y:a}=this.getProps(["x","y"],r);return Math.pow(t-o,2)+Math.pow(e-a,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(t,e){return Ji(this,t,"x",e)}inYRange(t,e){return Ji(this,t,"y",e)}getCenterPoint(t){const{x:e,y:r}=this.getProps(["x","y"],t);return{x:e,y:r}}size(t){let e=(t=t||this.options||{}).radius||0;return e=Math.max(e,e&&t.hoverRadius||0),2*(e+(e&&t.borderWidth||0))}draw(t,e){const r=this.options;this.skip||r.radius<.1||!Vn(this,e,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,Wn(t,r,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function es(t,e){const{x:r,y:n,base:o,width:a,height:i}=t.getProps(["x","y","base","width","height"],e);let s,l,c,d,u;return t.horizontal?(u=i/2,s=Math.min(r,o),l=Math.max(r,o),c=n-u,d=n+u):(u=a/2,s=r-u,l=r+u,c=Math.min(n,o),d=Math.max(n,o)),{left:s,top:c,right:l,bottom:d}}function rs(t,e,r,n){return t?0:cn(e,r,n)}function ns(t,e,r,n){const o=null===e,a=null===r,i=t&&!(o&&a)&&es(t,n);return i&&(o||dn(e,i.left,i.right))&&(a||dn(r,i.top,i.bottom))}function os(t,e){t.rect(e.x,e.y,e.w,e.h)}function as(t,e,r={}){const n=t.x!==r.x?-e:0,o=t.y!==r.y?-e:0,a=(t.x+t.w!==r.x+r.w?e:0)-n,i=(t.y+t.h!==r.y+r.h?e:0)-o;return{x:t.x+n,y:t.y+o,w:t.w+a,h:t.h+i,radius:t.radius}}class is extends ai{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:r,backgroundColor:n}}=this,{inner:o,outer:a}=function(t){const e=es(t),r=e.right-e.left,n=e.bottom-e.top,o=function(t,e,r){const n=t.options.borderWidth,o=t.borderSkipped,a=no(n);return{t:rs(o.top,a.top,0,r),r:rs(o.right,a.right,0,e),b:rs(o.bottom,a.bottom,0,r),l:rs(o.left,a.left,0,e)}}(t,r/2,n/2),a=function(t,e,r){const{enableBorderRadius:n}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,a=oo(o),i=Math.min(e,r),s=t.borderSkipped,l=n||kr(o);return{topLeft:rs(!l||s.top||s.left,a.topLeft,0,i),topRight:rs(!l||s.top||s.right,a.topRight,0,i),bottomLeft:rs(!l||s.bottom||s.left,a.bottomLeft,0,i),bottomRight:rs(!l||s.bottom||s.right,a.bottomRight,0,i)}}(t,r/2,n/2);return{outer:{x:e.left,y:e.top,w:r,h:n,radius:a},inner:{x:e.left+o.l,y:e.top+o.t,w:r-o.l-o.r,h:n-o.t-o.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,a.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(o.b,o.r))}}}}(this),i=(s=a.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?Zn:os;var s;t.save(),a.w===o.w&&a.h===o.h||(t.beginPath(),i(t,as(a,e,o)),t.clip(),i(t,as(o,-e,a)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),i(t,as(o,e)),t.fillStyle=n,t.fill(),t.restore()}inRange(t,e,r){return ns(this,t,e,r)}inXRange(t,e){return ns(this,t,null,e)}inYRange(t,e){return ns(this,null,t,e)}getCenterPoint(t){const{x:e,y:r,base:n,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+n)/2:e,y:o?r:(r+n)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}const ss=(t,e)=>{let{boxHeight:r=e,boxWidth:n=e}=t;return t.usePointStyle&&(r=Math.min(r,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:r,itemHeight:Math.max(e,r)}};class ls extends ai{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,r){this.maxWidth=t,this.maxHeight=e,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=Cr(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,r)=>t.sort(e,r,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const r=t.labels,n=io(r.font),o=n.size,a=this._computeTitleHeight(),{boxWidth:i,itemHeight:s}=ss(r,o);let l,c;e.font=n.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(a,o,i,s)+10):(c=this.maxHeight,l=this._fitCols(a,n,i,s)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,r,n){const{ctx:o,maxWidth:a,options:{labels:{padding:i}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=n+i;let d=t;o.textAlign="left",o.textBaseline="middle";let u=-1,p=-c;return this.legendItems.forEach(((t,f)=>{const m=r+e/2+o.measureText(t.text).width;(0===f||l[l.length-1]+m+2*i>a)&&(d+=c,l[l.length-(f>0?0:1)]=0,p+=c,u++),s[f]={left:0,top:p,row:u,width:m,height:n},l[l.length-1]+=m+i})),d}_fitCols(t,e,r,n){const{ctx:o,maxHeight:a,options:{labels:{padding:i}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=a-t;let d=i,u=0,p=0,f=0,m=0;return this.legendItems.forEach(((t,a)=>{const{itemWidth:h,itemHeight:b}=function(t,e,r,n,o){const a=function(t,e,r,n){let o=t.text;return o&&"string"!=typeof o&&(o=o.reduce(((t,e)=>t.length>e.length?t:e))),e+r.size/2+n.measureText(o).width}(n,t,e,r),i=function(t,e,r){let n=t;return"string"!=typeof e.text&&(n=cs(e,r)),n}(o,n,e.lineHeight);return{itemWidth:a,itemHeight:i}}(r,e,o,t,n);a>0&&p+b+2*i>c&&(d+=u+i,l.push({width:u,height:p}),f+=u+i,m++,u=p=0),s[a]={left:f,top:p,col:m,width:h,height:b},u=Math.max(u,h),p+=b+i})),d+=u,l.push({width:u,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:r,labels:{padding:n},rtl:o}}=this,a=$o(o,this.left,this.width);if(this.isHorizontal()){let o=0,i=xn(r,this.left+n,this.right-this.lineWidths[o]);for(const s of e)o!==s.row&&(o=s.row,i=xn(r,this.left+n,this.right-this.lineWidths[o])),s.top+=this.top+t+n,s.left=a.leftForLtr(a.x(i),s.width),i+=s.width+n}else{let o=0,i=xn(r,this.top+t+n,this.bottom-this.columnSizes[o].height);for(const s of e)s.col!==o&&(o=s.col,i=xn(r,this.top+t+n,this.bottom-this.columnSizes[o].height)),s.top=i,s.left+=this.left+n,s.left=a.leftForLtr(a.x(s.left),s.width),i+=s.height+n}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Hn(t,this),this._draw(),Yn(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:r,ctx:n}=this,{align:o,labels:a}=t,i=In.color,s=$o(t.rtl,this.left,this.width),l=io(a.font),{padding:c}=a,d=l.size,u=d/2;let p;this.drawTitle(),n.textAlign=s.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=l.string;const{boxWidth:f,boxHeight:m,itemHeight:h}=ss(a,d),b=this.isHorizontal(),g=this._computeTitleHeight();p=b?{x:xn(o,this.left+c,this.right-r[0]),y:this.top+c+g,line:0}:{x:this.left+c,y:xn(o,this.top+g+c,this.bottom-e[0].height),line:0},Vo(this.ctx,t.textDirection);const v=h+c;this.legendItems.forEach(((x,y)=>{n.strokeStyle=x.fontColor,n.fillStyle=x.fontColor;const w=n.measureText(x.text).width,k=s.textAlign(x.textAlign||(x.textAlign=a.textAlign)),_=f+u+w;let E=p.x,S=p.y;if(s.setWidth(this.width),b?y>0&&E+_+c>this.right&&(S=p.y+=v,p.line++,E=p.x=xn(o,this.left+c,this.right-r[p.line])):y>0&&S+v>this.bottom&&(E=p.x=E+e[p.line].width+c,p.line++,S=p.y=xn(o,this.top+g+c,this.bottom-e[p.line].height)),function(t,e,r){if(isNaN(f)||f<=0||isNaN(m)||m<0)return;n.save();const o=Sr(r.lineWidth,1);if(n.fillStyle=Sr(r.fillStyle,i),n.lineCap=Sr(r.lineCap,"butt"),n.lineDashOffset=Sr(r.lineDashOffset,0),n.lineJoin=Sr(r.lineJoin,"miter"),n.lineWidth=o,n.strokeStyle=Sr(r.strokeStyle,i),n.setLineDash(Sr(r.lineDash,[])),a.usePointStyle){const i={radius:m*Math.SQRT2/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:o},l=s.xPlus(t,f/2);$n(n,i,l,e+u,a.pointStyleWidth&&f)}else{const a=e+Math.max((d-m)/2,0),i=s.leftForLtr(t,f),l=oo(r.borderRadius);n.beginPath(),Object.values(l).some((t=>0!==t))?Zn(n,{x:i,y:a,w:f,h:m,radius:l}):n.rect(i,a,f,m),n.fill(),0!==o&&n.stroke()}n.restore()}(s.x(E),S,x),E=((t,e,r,n)=>t===(n?"left":"right")?r:"center"===t?(e+r)/2:e)(k,E+f+u,b?E+_:this.right,t.rtl),function(t,e,r){Kn(n,r.text,t,e+h/2,l,{strikethrough:r.hidden,textAlign:s.textAlign(r.textAlign)})}(s.x(E),S,x),b)p.x+=_+c;else if("string"!=typeof x.text){const t=l.lineHeight;p.y+=cs(x,t)}else p.y+=v})),Ho(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,r=io(e.font),n=ao(e.padding);if(!e.display)return;const o=$o(t.rtl,this.left,this.width),a=this.ctx,i=e.position,s=r.size/2,l=n.top+s;let c,d=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),c=this.top+l,d=xn(t.align,d,this.right-u);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);c=l+xn(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const p=xn(i,d,d+u);a.textAlign=o.textAlign(vn(i)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=r.string,Kn(a,e.text,p,c,r)}_computeTitleHeight(){const t=this.options.title,e=io(t.font),r=ao(t.padding);return t.display?e.lineHeight+r.height:0}_getLegendItemAt(t,e){let r,n,o;if(dn(t,this.left,this.right)&&dn(e,this.top,this.bottom))for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(n=o[r],dn(t,n.left,n.left+n.width)&&dn(e,n.top,n.top+n.height))return this.legendItems[r];return null}handleEvent(t){const e=this.options;if(!function(t,e){return!("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}(t.type,e))return;const r=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const a=this._hoveredItem,i=(o=r,null!==(n=a)&&null!==o&&n.datasetIndex===o.datasetIndex&&n.index===o.index);a&&!i&&Cr(e.onLeave,[t,a,this],this),this._hoveredItem=r,r&&!i&&Cr(e.onHover,[t,r,this],this)}else r&&Cr(e.onClick,[t,r,this],this);var n,o}}function cs(t,e){return e*(t.text?t.text.length+.5:0)}var ds={id:"legend",_element:ls,start(t,e,r){const n=t.legend=new ls({ctx:t.ctx,options:r,chart:t});Wa.configure(t,n,r),Wa.addBox(t,n)},stop(t){Wa.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,r){const n=t.legend;Wa.configure(t,n,r),n.options=r},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,r){const n=e.datasetIndex,o=r.chart;o.isDatasetVisible(n)?(o.hide(n),e.hidden=!0):(o.show(n),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:r,pointStyle:n,textAlign:o,color:a,useBorderRadius:i,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const l=t.controller.getStyle(r?0:void 0),c=ao(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:a,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:n||l.pointStyle,rotation:l.rotation,textAlign:o||l.textAlign,borderRadius:i&&(s||l.borderRadius),datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class us extends ai{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const r=this.options;if(this.left=0,this.top=0,!r.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const n=wr(r.text)?r.text.length:1;this._padding=ao(r.padding);const o=n*io(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:r,bottom:n,right:o,options:a}=this,i=a.align;let s,l,c,d=0;return this.isHorizontal()?(l=xn(i,r,o),c=e+t,s=o-r):("left"===a.position?(l=r+t,c=xn(i,n,e),d=-.5*Ur):(l=o-t,c=xn(i,e,n),d=.5*Ur),s=n-e),{titleX:l,titleY:c,maxWidth:s,rotation:d}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const r=io(e.font),n=r.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:i,rotation:s}=this._drawArgs(n);Kn(t,e.text,0,0,r,{color:e.color,maxWidth:i,rotation:s,textAlign:vn(e.align),textBaseline:"middle",translation:[o,a]})}}var ps={id:"title",_element:us,start(t,e,r){!function(t,e){const r=new us({ctx:t.ctx,options:e,chart:t});Wa.configure(t,r,e),Wa.addBox(t,r),t.titleBlock=r}(t,r)},stop(t){const e=t.titleBlock;Wa.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,r){const n=t.titleBlock;Wa.configure(t,n,r),n.options=r},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};new WeakMap;const fs={average(t){if(!t.length)return!1;let e,r,n=0,o=0,a=0;for(e=0,r=t.length;e<r;++e){const r=t[e].element;if(r&&r.hasValue()){const t=r.tooltipPosition();n+=t.x,o+=t.y,++a}}return{x:n/a,y:o/a}},nearest(t,e){if(!t.length)return!1;let r,n,o,a=e.x,i=e.y,s=Number.POSITIVE_INFINITY;for(r=0,n=t.length;r<n;++r){const n=t[r].element;if(n&&n.hasValue()){const t=on(e,n.getCenterPoint());t<s&&(s=t,o=n)}}if(o){const t=o.tooltipPosition();a=t.x,i=t.y}return{x:a,y:i}}};function ms(t,e){return e&&(wr(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function hs(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function bs(t,e){const{element:r,datasetIndex:n,index:o}=e,a=t.getDatasetMeta(n).controller,{label:i,value:s}=a.getLabelAndValue(o);return{chart:t,label:i,parsed:a.getParsed(o),raw:t.data.datasets[n].data[o],formattedValue:s,dataset:a.getDataset(),dataIndex:o,datasetIndex:n,element:r}}function gs(t,e){const r=t.chart.ctx,{body:n,footer:o,title:a}=t,{boxWidth:i,boxHeight:s}=e,l=io(e.bodyFont),c=io(e.titleFont),d=io(e.footerFont),u=a.length,p=o.length,f=n.length,m=ao(e.padding);let h=m.height,b=0,g=n.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);g+=t.beforeBody.length+t.afterBody.length,u&&(h+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),g&&(h+=f*(e.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(g-f)*l.lineHeight+(g-1)*e.bodySpacing),p&&(h+=e.footerMarginTop+p*d.lineHeight+(p-1)*e.footerSpacing);let v=0;const x=function(t){b=Math.max(b,r.measureText(t).width+v)};return r.save(),r.font=c.string,Mr(t.title,x),r.font=l.string,Mr(t.beforeBody.concat(t.afterBody),x),v=e.displayColors?i+2+e.boxPadding:0,Mr(n,(t=>{Mr(t.before,x),Mr(t.lines,x),Mr(t.after,x)})),v=0,r.font=d.string,Mr(t.footer,x),r.restore(),b+=m.width,{width:b,height:h}}function vs(t,e,r,n){const{x:o,width:a}=r,{width:i,chartArea:{left:s,right:l}}=t;let c="center";return"center"===n?c=o<=(s+l)/2?"left":"right":o<=a/2?c="left":o>=i-a/2&&(c="right"),function(t,e,r,n){const{x:o,width:a}=n,i=r.caretSize+r.caretPadding;return"left"===t&&o+a+i>e.width||"right"===t&&o-a-i<0||void 0}(c,t,e,r)&&(c="center"),c}function xs(t,e,r){const n=r.yAlign||e.yAlign||function(t,e){const{y:r,height:n}=e;return r<n/2?"top":r>t.height-n/2?"bottom":"center"}(t,r);return{xAlign:r.xAlign||e.xAlign||vs(t,e,r,n),yAlign:n}}function ys(t,e,r,n){const{caretSize:o,caretPadding:a,cornerRadius:i}=t,{xAlign:s,yAlign:l}=r,c=o+a,{topLeft:d,topRight:u,bottomLeft:p,bottomRight:f}=oo(i);let m=function(t,e){let{x:r,width:n}=t;return"right"===e?r-=n:"center"===e&&(r-=n/2),r}(e,s);const h=function(t,e,r){let{y:n,height:o}=t;return"top"===e?n+=r:n-="bottom"===e?o+r:o/2,n}(e,l,c);return"center"===l?"left"===s?m+=c:"right"===s&&(m-=c):"left"===s?m-=Math.max(d,p)+o:"right"===s&&(m+=Math.max(u,f)+o),{x:cn(m,0,n.width-e.width),y:cn(h,0,n.height-e.height)}}function ws(t,e,r){const n=ao(r.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-n.right:t.x+n.left}function ks(t){return ms([],hs(t))}function _s(t,e){const r=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return r?t.override(r):t}const Es={beforeTitle:vr,title(t){if(t.length>0){const e=t[0],r=e.chart.data.labels,n=r?r.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex<n)return r[e.dataIndex]}return""},afterTitle:vr,beforeBody:vr,beforeLabel:vr,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const r=t.formattedValue;return yr(r)||(e+=r),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:vr,afterBody:vr,beforeFooter:vr,footer:vr,afterFooter:vr};function Ss(t,e,r,n){const o=t[e].call(r,n);return void 0===o?Es[e].call(r,n):o}class Cs extends ai{static positioners=fs;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,r=this.options.setContext(this.getContext()),n=r.enabled&&e.options.animation&&r.animations,o=new ra(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=(this,lo(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"})))}getTitle(t,e){const{callbacks:r}=e,n=Ss(r,"beforeTitle",this,t),o=Ss(r,"title",this,t),a=Ss(r,"afterTitle",this,t);let i=[];return i=ms(i,hs(n)),i=ms(i,hs(o)),i=ms(i,hs(a)),i}getBeforeBody(t,e){return ks(Ss(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:r}=e,n=[];return Mr(t,(t=>{const e={before:[],lines:[],after:[]},o=_s(r,t);ms(e.before,hs(Ss(o,"beforeLabel",this,t))),ms(e.lines,Ss(o,"label",this,t)),ms(e.after,hs(Ss(o,"afterLabel",this,t))),n.push(e)})),n}getAfterBody(t,e){return ks(Ss(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:r}=e,n=Ss(r,"beforeFooter",this,t),o=Ss(r,"footer",this,t),a=Ss(r,"afterFooter",this,t);let i=[];return i=ms(i,hs(n)),i=ms(i,hs(o)),i=ms(i,hs(a)),i}_createItems(t){const e=this._active,r=this.chart.data,n=[],o=[],a=[];let i,s,l=[];for(i=0,s=e.length;i<s;++i)l.push(bs(this.chart,e[i]));return t.filter&&(l=l.filter(((e,n,o)=>t.filter(e,n,o,r)))),t.itemSort&&(l=l.sort(((e,n)=>t.itemSort(e,n,r)))),Mr(l,(e=>{const r=_s(t.callbacks,e);n.push(Ss(r,"labelColor",this,e)),o.push(Ss(r,"labelPointStyle",this,e)),a.push(Ss(r,"labelTextColor",this,e))})),this.labelColors=n,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=l,l}update(t,e){const r=this.options.setContext(this.getContext()),n=this._active;let o,a=[];if(n.length){const t=fs[r.position].call(this,n,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const e=this._size=gs(this,r),i=Object.assign({},t,e),s=xs(this.chart,r,i),l=ys(r,i,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,o={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,r,n){const o=this.getCaretPosition(t,r,n);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,r){const{xAlign:n,yAlign:o}=this,{caretSize:a,cornerRadius:i}=r,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:d}=oo(i),{x:u,y:p}=t,{width:f,height:m}=e;let h,b,g,v,x,y;return"center"===o?(x=p+m/2,"left"===n?(h=u,b=h-a,v=x+a,y=x-a):(h=u+f,b=h+a,v=x-a,y=x+a),g=h):(b="left"===n?u+Math.max(s,c)+a:"right"===n?u+f-Math.max(l,d)-a:this.caretX,"top"===o?(v=p,x=v-a,h=b-a,g=b+a):(v=p+m,x=v+a,h=b+a,g=b-a),y=v),{x1:h,x2:b,x3:g,y1:v,y2:x,y3:y}}drawTitle(t,e,r){const n=this.title,o=n.length;let a,i,s;if(o){const l=$o(r.rtl,this.x,this.width);for(t.x=ws(this,r.titleAlign,r),e.textAlign=l.textAlign(r.titleAlign),e.textBaseline="middle",a=io(r.titleFont),i=r.titleSpacing,e.fillStyle=r.titleColor,e.font=a.string,s=0;s<o;++s)e.fillText(n[s],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+i,s+1===o&&(t.y+=r.titleMarginBottom-i)}}_drawColorBox(t,e,r,n,o){const a=this.labelColors[r],i=this.labelPointStyles[r],{boxHeight:s,boxWidth:l,boxPadding:c}=o,d=io(o.bodyFont),u=ws(this,"left",o),p=n.x(u),f=s<d.lineHeight?(d.lineHeight-s)/2:0,m=e.y+f;if(o.usePointStyle){const e={radius:Math.min(l,s)/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:1},r=n.leftForLtr(p,l)+l/2,c=m+s/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Wn(t,e,r,c),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,Wn(t,e,r,c)}else{t.lineWidth=kr(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const e=n.leftForLtr(p,l-c),r=n.leftForLtr(n.xPlus(p,1),l-c-2),i=oo(a.borderRadius);Object.values(i).some((t=>0!==t))?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Zn(t,{x:e,y:m,w:l,h:s,radius:i}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),Zn(t,{x:r,y:m+1,w:l-2,h:s-2,radius:i}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,m,l,s),t.strokeRect(e,m,l,s),t.fillStyle=a.backgroundColor,t.fillRect(r,m+1,l-2,s-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,e,r){const{body:n}=this,{bodySpacing:o,bodyAlign:a,displayColors:i,boxHeight:s,boxWidth:l,boxPadding:c}=r,d=io(r.bodyFont);let u=d.lineHeight,p=0;const f=$o(r.rtl,this.x,this.width),m=function(r){e.fillText(r,f.x(t.x+p),t.y+u/2),t.y+=u+o},h=f.textAlign(a);let b,g,v,x,y,w,k;for(e.textAlign=a,e.textBaseline="middle",e.font=d.string,t.x=ws(this,h,r),e.fillStyle=r.bodyColor,Mr(this.beforeBody,m),p=i&&"right"!==h?"center"===a?l/2+c:l+2+c:0,x=0,w=n.length;x<w;++x){for(b=n[x],g=this.labelTextColors[x],e.fillStyle=g,Mr(b.before,m),v=b.lines,i&&v.length&&(this._drawColorBox(e,t,x,f,r),u=Math.max(d.lineHeight,s)),y=0,k=v.length;y<k;++y)m(v[y]),u=d.lineHeight;Mr(b.after,m)}p=0,u=d.lineHeight,Mr(this.afterBody,m),t.y-=o}drawFooter(t,e,r){const n=this.footer,o=n.length;let a,i;if(o){const s=$o(r.rtl,this.x,this.width);for(t.x=ws(this,r.footerAlign,r),t.y+=r.footerMarginTop,e.textAlign=s.textAlign(r.footerAlign),e.textBaseline="middle",a=io(r.footerFont),e.fillStyle=r.footerColor,e.font=a.string,i=0;i<o;++i)e.fillText(n[i],s.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r.footerSpacing}}drawBackground(t,e,r,n){const{xAlign:o,yAlign:a}=this,{x:i,y:s}=t,{width:l,height:c}=r,{topLeft:d,topRight:u,bottomLeft:p,bottomRight:f}=oo(n.cornerRadius);e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.beginPath(),e.moveTo(i+d,s),"top"===a&&this.drawCaret(t,e,r,n),e.lineTo(i+l-u,s),e.quadraticCurveTo(i+l,s,i+l,s+u),"center"===a&&"right"===o&&this.drawCaret(t,e,r,n),e.lineTo(i+l,s+c-f),e.quadraticCurveTo(i+l,s+c,i+l-f,s+c),"bottom"===a&&this.drawCaret(t,e,r,n),e.lineTo(i+p,s+c),e.quadraticCurveTo(i,s+c,i,s+c-p),"center"===a&&"left"===o&&this.drawCaret(t,e,r,n),e.lineTo(i,s+d),e.quadraticCurveTo(i,s,i+d,s),e.closePath(),e.fill(),n.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,r=this.$animations,n=r&&r.x,o=r&&r.y;if(n||o){const r=fs[t.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=gs(this,t),i=Object.assign({},r,this._size),s=xs(e,t,i),l=ys(t,i,s,e);n._to===l.x&&o._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=ao(e.padding),i=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&i&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,n,e),Vo(t,e.textDirection),o.y+=a.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),Ho(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const r=this._active,n=t.map((({datasetIndex:t,index:e})=>{const r=this.chart.getDatasetMeta(t);if(!r)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:r.data[e],index:e}})),o=!Nr(r,n),a=this._positionChanged(n,e);(o||a)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,r=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,o=this._active||[],a=this._getActiveElements(t,o,e,r),i=this._positionChanged(a,t),s=e||!Nr(a,o)||i;return s&&(this._active=a,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_getActiveElements(t,e,r,n){const o=this.options;if("mouseout"===t.type)return[];if(!n)return e;const a=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&a.reverse(),a}_positionChanged(t,e){const{caretX:r,caretY:n,options:o}=this,a=fs[o.position].call(this,t,e);return!1!==a&&(r!==a.x||n!==a.y)}}var Ms={id:"tooltip",_element:Cs,positioners:fs,afterInit(t,e,r){r&&(t.tooltip=new Cs({chart:t,options:r}))},beforeUpdate(t,e,r){t.tooltip&&t.tooltip.initialize(r)},reset(t,e,r){t.tooltip&&t.tooltip.initialize(r)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const r={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...r,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",r)}},afterEvent(t,e){if(t.tooltip){const r=e.replay;t.tooltip.handleEvent(e.event,r,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Es},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function Ns(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class Ps extends mi{static id="category";static defaults={ticks:{callback:Ns}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:r,label:n}of e)t[r]===n&&t.splice(r,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(yr(t))return null;const r=this.getLabels();return((t,e)=>null===t?null:cn(Math.round(t),0,e))(e=isFinite(e)&&r[e]===t?e:function(t,e,r,n){const o=t.indexOf(e);return-1===o?((t,e,r,n)=>("string"==typeof e?(r=t.push(e)-1,n.unshift({index:r,label:e})):isNaN(e)&&(r=null),r))(t,e,r,n):o!==t.lastIndexOf(e)?r:o}(r,t,Sr(e,t),this._addedLabels),r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:r,max:n}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(r=0),e||(n=this.getLabels().length-1)),this.min=r,this.max=n}buildTicks(){const t=this.min,e=this.max,r=this.options.offset,n=[];let o=this.getLabels();o=0===t&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let r=t;r<=e;r++)n.push({value:r});return n}getLabelForValue(t){return Ns.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Os(t,e,{horizontal:r,minRotation:n}){const o=en(n),a=(r?Math.sin(o):Math.cos(o))||.001,i=.75*e*(""+t).length;return Math.min(e/a,i)}class zs extends mi{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return yr(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:r}=this.getUserBounds();let{min:n,max:o}=this;const a=t=>n=e?n:t,i=t=>o=r?o:t;if(t){const t=Qr(n),e=Qr(o);t<0&&e<0?i(0):t>0&&e>0&&a(0)}if(n===o){let e=0===o?1:Math.abs(.05*o);i(o+e),t||a(n-e)}this.min=n,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:r,stepSize:n}=t;return n?(e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),r=r||11),r&&(e=Math.min(r,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const n=function(t,e){const r=[],{bounds:n,step:o,min:a,max:i,precision:s,count:l,maxTicks:c,maxDigits:d,includeBounds:u}=t,p=o||1,f=c-1,{min:m,max:h}=e,b=!yr(a),g=!yr(i),v=!yr(l),x=(h-m)/(d+1);let y,w,k,_,E=Zr((h-m)/f/p)*p;if(E<1e-14&&!b&&!g)return[{value:m},{value:h}];_=Math.ceil(h/E)-Math.floor(m/E),_>f&&(E=Zr(_*E/f/p)*p),yr(s)||(y=Math.pow(10,s),E=Math.ceil(E*y)/y),"ticks"===n?(w=Math.floor(m/E)*E,k=Math.ceil(h/E)*E):(w=m,k=h),b&&g&&o&&function(t,e){const r=Math.round(t);return r-e<=t&&r+e>=t}((i-a)/o,E/1e3)?(_=Math.round(Math.min((i-a)/E,c)),E=(i-a)/_,w=a,k=i):v?(w=b?a:w,k=g?i:k,_=l-1,E=(k-w)/_):(_=(k-w)/E,_=Gr(_,Math.round(_),E/1e3)?Math.round(_):Math.ceil(_));const S=Math.max(rn(E),rn(w));y=Math.pow(10,yr(s)?S:s),w=Math.round(w*y)/y,k=Math.round(k*y)/y;let C=0;for(b&&(u&&w!==a?(r.push({value:a}),w<a&&C++,Gr(Math.round((w+C*E)*y)/y,a,Os(a,x,t))&&C++):w<a&&C++);C<_;++C)r.push({value:Math.round((w+C*E)*y)/y});return g&&u&&k!==i?r.length&&Gr(r[r.length-1].value,i,Os(i,x,t))?r[r.length-1].value=i:r.push({value:i}):g&&k!==i||r.push({value:k}),r}({maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&tn(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}configure(){const t=this.ticks;let e=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const n=(r-e)/Math.max(t.length-1,1)/2;e-=n,r+=n}this._startValue=e,this._endValue=r,this._valueRange=r-e}getLabelForValue(t){return On(t,this.chart.options.locale,this.options.ticks.format)}}class Ts extends zs{static id="linear";static defaults={ticks:{callback:Tn.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=_r(t)?t:0,this.max=_r(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,r=en(this.options.ticks.minRotation),n=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/n))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}class Rs extends mi{static id="logarithmic";static defaults={ticks:{callback:Tn.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const r=zs.prototype.parse.apply(this,[t,e]);if(0!==r)return _r(r)&&r>0?r:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=_r(t)?Math.max(0,t):null,this.max=_r(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!_r(this._userMin)&&(this.min=t===changeExponent(this.min,0)?changeExponent(this.min,-1):changeExponent(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let r=this.min,n=this.max;const o=e=>t?r:e,a=t=>e?n:t;r===n&&(r<=0?(o(1),a(10)):(o(changeExponent(r,-1)),a(changeExponent(n,1)))),r<=0&&o(changeExponent(n,-1)),n<=0&&a(changeExponent(r,1)),this.min=r,this.max=n}buildTicks(){const t=this.options,e=generateTicks({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&tn(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":On(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Kr(t),this._valueRange=Kr(this.max)-Kr(t)}getPixelForValue(t){return void 0!==t&&0!==t||this.min,null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Kr(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}class Ls extends zs{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Tn.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=ao(getTickBackdropHeight(this.options)/2),e=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(e,r)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=_r(t)&&!isNaN(t)?t:0,this.max=_r(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/getTickBackdropHeight(this.options))}generateTickLabels(t){zs.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const r=Cr(this.options.pointLabels.callback,[t,e],this);return r||0===r?r:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?fitWithPointLabels(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,r,n){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((r-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,r,n))}getIndexAngle(t){return sn(t*(Wr/(this._pointLabels.length||1))+en(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(yr(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(yr(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const r=e[t];return function(t,e,r){return lo(t,{label:r,index:e,type:"pointLabel"})}(this.getContext(),t,r)}}getPointPosition(t,e,r=0){const n=this.getIndexAngle(t)-Yr+r;return{x:Math.cos(n)*e+this.xCenter,y:Math.sin(n)*e+this.yCenter,angle:n}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:r,right:n,bottom:o}=this._pointLabelItems[t];return{left:e,top:r,right:n,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),pathRadiusLine(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:r,grid:n,border:o}=e,a=this._pointLabels.length;let i,s,l;if(e.pointLabels.display&&function(t,e){const{ctx:r,options:{pointLabels:n}}=t;for(let o=e-1;o>=0;o--){const e=n.setContext(t.getPointLabelContext(o)),a=io(e.font),{x:i,y:s,textAlign:l,left:c,top:d,right:u,bottom:p}=t._pointLabelItems[o],{backdropColor:f}=e;if(!yr(f)){const t=oo(e.borderRadius),n=ao(e.backdropPadding);r.fillStyle=f;const o=c-n.left,a=d-n.top,i=u-c+n.width,s=p-d+n.height;Object.values(t).some((t=>0!==t))?(r.beginPath(),Zn(r,{x:o,y:a,w:i,h:s,radius:t}),r.fill()):r.fillRect(o,a,i,s)}Kn(r,t._pointLabels[o],i,s+a.lineHeight/2,a,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,a),n.display&&this.ticks.forEach(((t,e)=>{if(0!==e){this.getDistanceFromCenterForValue(t.value);const r=this.getContext(e),i=n.setContext(r),l=o.setContext(r);!function(t,e,r,n,o){const a=t.ctx,i=e.circular,{color:s,lineWidth:l}=e;!i&&!n||!s||!l||(a.save(),a.strokeStyle=s,a.lineWidth=l,a.setLineDash(o.dash),a.lineDashOffset=o.dashOffset,a.beginPath(),pathRadiusLine(t,r,i,n),a.closePath(),a.stroke(),a.restore())}(this,i,s,a,l)}})),r.display){for(t.save();i>=0;i--){const n=r.setContext(this.getPointLabelContext(i)),{color:o,lineWidth:a}=n;a&&o&&(t.lineWidth=a,t.strokeStyle=o,t.setLineDash(n.borderDash),t.lineDashOffset=n.borderDashOffset,this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),this.getPointPosition(i,s),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,r=e.ticks;if(!r.display)return;const n=this.getIndexAngle(0);let o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((n,a)=>{if(0===a&&!e.reverse)return;const i=r.setContext(this.getContext(a)),s=io(i.font);if(this.getDistanceFromCenterForValue(this.ticks[a].value),i.showLabelBackdrop){t.font=s.string,t.measureText(n.label).width,t.fillStyle=i.backdropColor;const e=ao(i.backdropPadding);t.fillRect(NaN-e.left,NaN-s.size/2-e.top,o+e.width,s.size+e.height)}Kn(t,n.label,0,NaN,s,{color:i.color})})),t.restore()}drawTitle(){}}Ui.defaults.font.size=16,Ui.defaults.font.family="Open Sans",Ui.defaults.font.weight="700";const As=function(t){var r=t.title,n=t.description,o=t.filter,a=t.children,i=t.category;return e.createElement(e.Fragment,null,i===Fe.Organisation&&e.createElement(Ne,null),i===Fe.Policy&&e.createElement(Ue,null),e.createElement(Oe,{type:"data"}),e.createElement(Be,{activeCategory:i}),e.createElement(Nt,{className:"grow"},e.createElement(Ot,null,e.createElement("h3",{className:"m-4"},r)),e.createElement(Ot,null,e.createElement("p",{className:"p-md-4"},n)),e.createElement(Ot,null,o),e.createElement(Ot,null,a)))};var Ds=Function.prototype.bind.call(Function.prototype.call,[].slice);function js(t,e){return Ds(t.querySelectorAll(e))}const Is=!("undefined"==typeof window||!window.document||!window.document.createElement);var Fs=!1,Bs=!1;try{var Us={get passive(){return Fs=!0},get once(){return Bs=Fs=!0}};Is&&(window.addEventListener("test",Us,Us),window.removeEventListener("test",Us,!0))}catch(t){}const Ws=function(t,e,r,n){if(n&&"boolean"!=typeof n&&!Bs){var o=n.once,a=n.capture,i=r;!Bs&&o&&(i=r.__once||function t(n){this.removeEventListener(e,t,a),r.call(this,n)},r.__once=i),t.addEventListener(e,i,Fs?n:a)}t.addEventListener(e,r,n)};function $s(){return $s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},$s.apply(this,arguments)}function Vs(t){return"default"+t.charAt(0).toUpperCase()+t.substr(1)}function Hs(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function Ys(t,r,n){var o=(0,e.useRef)(void 0!==t),a=(0,e.useState)(r),i=a[0],s=a[1],l=void 0!==t,c=o.current;return o.current=l,!l&&c&&i!==r&&s(r),[l?t:i,(0,e.useCallback)((function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];n&&n.apply(void 0,[t].concat(r)),s(t)}),[n])]}o(1143);function Xs(t){var r=function(t){var r=(0,e.useRef)(t);return(0,e.useEffect)((function(){r.current=t}),[t]),r}(t);return(0,e.useCallback)((function(){return r.current&&r.current.apply(r,arguments)}),[r])}const qs=e.createContext(null);var Ks=Object.prototype.hasOwnProperty;function Qs(t,e,r){for(r of t.keys())if(Gs(r,e))return r}function Gs(t,e){var r,n,o;if(t===e)return!0;if(t&&e&&(r=t.constructor)===e.constructor){if(r===Date)return t.getTime()===e.getTime();if(r===RegExp)return t.toString()===e.toString();if(r===Array){if((n=t.length)===e.length)for(;n--&&Gs(t[n],e[n]););return-1===n}if(r===Set){if(t.size!==e.size)return!1;for(n of t){if((o=n)&&"object"==typeof o&&!(o=Qs(e,o)))return!1;if(!e.has(o))return!1}return!0}if(r===Map){if(t.size!==e.size)return!1;for(n of t){if((o=n[0])&&"object"==typeof o&&!(o=Qs(e,o)))return!1;if(!Gs(n[1],e.get(o)))return!1}return!0}if(r===ArrayBuffer)t=new Uint8Array(t),e=new Uint8Array(e);else if(r===DataView){if((n=t.byteLength)===e.byteLength)for(;n--&&t.getInt8(n)===e.getInt8(n););return-1===n}if(ArrayBuffer.isView(t)){if((n=t.byteLength)===e.byteLength)for(;n--&&t[n]===e[n];);return-1===n}if(!r||"object"==typeof t){for(r in n=0,t){if(Ks.call(t,r)&&++n&&!Ks.call(e,r))return!1;if(!(r in e)||!Gs(t[r],e[r]))return!1}return Object.keys(e).length===n}}return t!=t&&e!=e}function Zs(t){return t.split("-")[0]}function Js(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function tl(t){return t instanceof Js(t).Element||t instanceof Element}function el(t){return t instanceof Js(t).HTMLElement||t instanceof HTMLElement}function rl(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Js(t).ShadowRoot||t instanceof ShadowRoot)}var nl=Math.max,ol=Math.min,al=Math.round;function il(){var t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function sl(){return!/^((?!chrome|android).)*safari/i.test(il())}function ll(t,e,r){void 0===e&&(e=!1),void 0===r&&(r=!1);var n=t.getBoundingClientRect(),o=1,a=1;e&&el(t)&&(o=t.offsetWidth>0&&al(n.width)/t.offsetWidth||1,a=t.offsetHeight>0&&al(n.height)/t.offsetHeight||1);var i=(tl(t)?Js(t):window).visualViewport,s=!sl()&&r,l=(n.left+(s&&i?i.offsetLeft:0))/o,c=(n.top+(s&&i?i.offsetTop:0))/a,d=n.width/o,u=n.height/a;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function cl(t){var e=ll(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function dl(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&rl(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ul(t){return t?(t.nodeName||"").toLowerCase():null}function pl(t){return Js(t).getComputedStyle(t)}function fl(t){return["table","td","th"].indexOf(ul(t))>=0}function ml(t){return((tl(t)?t.ownerDocument:t.document)||window.document).documentElement}function hl(t){return"html"===ul(t)?t:t.assignedSlot||t.parentNode||(rl(t)?t.host:null)||ml(t)}function bl(t){return el(t)&&"fixed"!==pl(t).position?t.offsetParent:null}function gl(t){for(var e=Js(t),r=bl(t);r&&fl(r)&&"static"===pl(r).position;)r=bl(r);return r&&("html"===ul(r)||"body"===ul(r)&&"static"===pl(r).position)?e:r||function(t){var e=/firefox/i.test(il());if(/Trident/i.test(il())&&el(t)&&"fixed"===pl(t).position)return null;var r=hl(t);for(rl(r)&&(r=r.host);el(r)&&["html","body"].indexOf(ul(r))<0;){var n=pl(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(t)||e}function vl(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function xl(t,e,r){return nl(t,ol(e,r))}function yl(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function wl(t,e){return e.reduce((function(e,r){return e[r]=t,e}),{})}var kl="top",_l="bottom",El="right",Sl="left",Cl="auto",Ml=[kl,_l,El,Sl],Nl="start",Pl="end",Ol="viewport",zl="popper",Tl=Ml.reduce((function(t,e){return t.concat([e+"-"+Nl,e+"-"+Pl])}),[]),Rl=[].concat(Ml,[Cl]).reduce((function(t,e){return t.concat([e,e+"-"+Nl,e+"-"+Pl])}),[]),Ll=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const Al={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,r=t.state,n=t.name,o=t.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=Zs(r.placement),l=vl(s),c=[Sl,El].indexOf(s)>=0?"height":"width";if(a&&i){var d=function(t,e){return yl("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:wl(t,Ml))}(o.padding,r),u=cl(a),p="y"===l?kl:Sl,f="y"===l?_l:El,m=r.rects.reference[c]+r.rects.reference[l]-i[l]-r.rects.popper[c],h=i[l]-r.rects.reference[l],b=gl(a),g=b?"y"===l?b.clientHeight||0:b.clientWidth||0:0,v=m/2-h/2,x=d[p],y=g-u[c]-d[f],w=g/2-u[c]/2+v,k=xl(x,w,y),_=l;r.modifiersData[n]=((e={})[_]=k,e.centerOffset=k-w,e)}},effect:function(t){var e=t.state,r=t.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&dl(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Dl(t){return t.split("-")[1]}var jl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Il(t){var e,r=t.popper,n=t.popperRect,o=t.placement,a=t.variation,i=t.offsets,s=t.position,l=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,u=t.isFixed,p=i.x,f=void 0===p?0:p,m=i.y,h=void 0===m?0:m,b="function"==typeof d?d({x:f,y:h}):{x:f,y:h};f=b.x,h=b.y;var g=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),x=Sl,y=kl,w=window;if(c){var k=gl(r),_="clientHeight",E="clientWidth";k===Js(r)&&"static"!==pl(k=ml(r)).position&&"absolute"===s&&(_="scrollHeight",E="scrollWidth"),(o===kl||(o===Sl||o===El)&&a===Pl)&&(y=_l,h-=(u&&k===w&&w.visualViewport?w.visualViewport.height:k[_])-n.height,h*=l?1:-1),o!==Sl&&(o!==kl&&o!==_l||a!==Pl)||(x=El,f-=(u&&k===w&&w.visualViewport?w.visualViewport.width:k[E])-n.width,f*=l?1:-1)}var S,C=Object.assign({position:s},c&&jl),M=!0===d?function(t){var e=t.x,r=t.y,n=window.devicePixelRatio||1;return{x:al(e*n)/n||0,y:al(r*n)/n||0}}({x:f,y:h}):{x:f,y:h};return f=M.x,h=M.y,l?Object.assign({},C,((S={})[y]=v?"0":"",S[x]=g?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",S)):Object.assign({},C,((e={})[y]=v?h+"px":"",e[x]=g?f+"px":"",e.transform="",e))}const Fl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,r=t.options,n=r.gpuAcceleration,o=void 0===n||n,a=r.adaptive,i=void 0===a||a,s=r.roundOffsets,l=void 0===s||s,c={placement:Zs(e.placement),variation:Dl(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Il(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Il(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var Bl={passive:!0};const Ul={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,r=t.instance,n=t.options,o=n.scroll,a=void 0===o||o,i=n.resize,s=void 0===i||i,l=Js(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&c.forEach((function(t){t.addEventListener("scroll",r.update,Bl)})),s&&l.addEventListener("resize",r.update,Bl),function(){a&&c.forEach((function(t){t.removeEventListener("scroll",r.update,Bl)})),s&&l.removeEventListener("resize",r.update,Bl)}},data:{}};var Wl={left:"right",right:"left",bottom:"top",top:"bottom"};function $l(t){return t.replace(/left|right|bottom|top/g,(function(t){return Wl[t]}))}var Vl={start:"end",end:"start"};function Hl(t){return t.replace(/start|end/g,(function(t){return Vl[t]}))}function Yl(t){var e=Js(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Xl(t){return ll(ml(t)).left+Yl(t).scrollLeft}function ql(t){var e=pl(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Kl(t){return["html","body","#document"].indexOf(ul(t))>=0?t.ownerDocument.body:el(t)&&ql(t)?t:Kl(hl(t))}function Ql(t,e){var r;void 0===e&&(e=[]);var n=Kl(t),o=n===(null==(r=t.ownerDocument)?void 0:r.body),a=Js(n),i=o?[a].concat(a.visualViewport||[],ql(n)?n:[]):n,s=e.concat(i);return o?s:s.concat(Ql(hl(i)))}function Gl(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Zl(t,e,r){return e===Ol?Gl(function(t,e){var r=Js(t),n=ml(t),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=sl();(c||!c&&"fixed"===e)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+Xl(t),y:l}}(t,r)):tl(e)?function(t,e){var r=ll(t,!1,"fixed"===e);return r.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}(e,r):Gl(function(t){var e,r=ml(t),n=Yl(t),o=null==(e=t.ownerDocument)?void 0:e.body,a=nl(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=nl(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+Xl(t),l=-n.scrollTop;return"rtl"===pl(o||r).direction&&(s+=nl(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(ml(t)))}function Jl(t){var e,r=t.reference,n=t.element,o=t.placement,a=o?Zs(o):null,i=o?Dl(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(a){case kl:e={x:s,y:r.y-n.height};break;case _l:e={x:s,y:r.y+r.height};break;case El:e={x:r.x+r.width,y:l};break;case Sl:e={x:r.x-n.width,y:l};break;default:e={x:r.x,y:r.y}}var c=a?vl(a):null;if(null!=c){var d="y"===c?"height":"width";switch(i){case Nl:e[c]=e[c]-(r[d]/2-n[d]/2);break;case Pl:e[c]=e[c]+(r[d]/2-n[d]/2)}}return e}function tc(t,e){void 0===e&&(e={});var r=e,n=r.placement,o=void 0===n?t.placement:n,a=r.strategy,i=void 0===a?t.strategy:a,s=r.boundary,l=void 0===s?"clippingParents":s,c=r.rootBoundary,d=void 0===c?Ol:c,u=r.elementContext,p=void 0===u?zl:u,f=r.altBoundary,m=void 0!==f&&f,h=r.padding,b=void 0===h?0:h,g=yl("number"!=typeof b?b:wl(b,Ml)),v=p===zl?"reference":zl,x=t.rects.popper,y=t.elements[m?v:p],w=function(t,e,r,n){var o="clippingParents"===e?function(t){var e=Ql(hl(t)),r=["absolute","fixed"].indexOf(pl(t).position)>=0&&el(t)?gl(t):t;return tl(r)?e.filter((function(t){return tl(t)&&dl(t,r)&&"body"!==ul(t)})):[]}(t):[].concat(e),a=[].concat(o,[r]),i=a[0],s=a.reduce((function(e,r){var o=Zl(t,r,n);return e.top=nl(o.top,e.top),e.right=ol(o.right,e.right),e.bottom=ol(o.bottom,e.bottom),e.left=nl(o.left,e.left),e}),Zl(t,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(tl(y)?y:y.contextElement||ml(t.elements.popper),l,d,i),k=ll(t.elements.reference),_=Jl({reference:k,element:x,strategy:"absolute",placement:o}),E=Gl(Object.assign({},x,_)),S=p===zl?E:k,C={top:w.top-S.top+g.top,bottom:S.bottom-w.bottom+g.bottom,left:w.left-S.left+g.left,right:S.right-w.right+g.right},M=t.modifiersData.offset;if(p===zl&&M){var N=M[o];Object.keys(C).forEach((function(t){var e=[El,_l].indexOf(t)>=0?1:-1,r=[kl,_l].indexOf(t)>=0?"y":"x";C[t]+=N[r]*e}))}return C}const ec={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,a=void 0===o||o,i=r.altAxis,s=void 0===i||i,l=r.fallbackPlacements,c=r.padding,d=r.boundary,u=r.rootBoundary,p=r.altBoundary,f=r.flipVariations,m=void 0===f||f,h=r.allowedAutoPlacements,b=e.options.placement,g=Zs(b),v=l||(g!==b&&m?function(t){if(Zs(t)===Cl)return[];var e=$l(t);return[Hl(t),e,Hl(e)]}(b):[$l(b)]),x=[b].concat(v).reduce((function(t,r){return t.concat(Zs(r)===Cl?function(t,e){void 0===e&&(e={});var r=e,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?Rl:l,d=Dl(n),u=d?s?Tl:Tl.filter((function(t){return Dl(t)===d})):Ml,p=u.filter((function(t){return c.indexOf(t)>=0}));0===p.length&&(p=u);var f=p.reduce((function(e,r){return e[r]=tc(t,{placement:r,boundary:o,rootBoundary:a,padding:i})[Zs(r)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}(e,{placement:r,boundary:d,rootBoundary:u,padding:c,flipVariations:m,allowedAutoPlacements:h}):r)}),[]),y=e.rects.reference,w=e.rects.popper,k=new Map,_=!0,E=x[0],S=0;S<x.length;S++){var C=x[S],M=Zs(C),N=Dl(C)===Nl,P=[kl,_l].indexOf(M)>=0,O=P?"width":"height",z=tc(e,{placement:C,boundary:d,rootBoundary:u,altBoundary:p,padding:c}),T=P?N?El:Sl:N?_l:kl;y[O]>w[O]&&(T=$l(T));var R=$l(T),L=[];if(a&&L.push(z[M]<=0),s&&L.push(z[T]<=0,z[R]<=0),L.every((function(t){return t}))){E=C,_=!1;break}k.set(C,L)}if(_)for(var A=function(t){var e=x.find((function(e){var r=k.get(e);if(r)return r.slice(0,t).every((function(t){return t}))}));if(e)return E=e,"break"},D=m?3:1;D>0&&"break"!==A(D);D--);e.placement!==E&&(e.modifiersData[n]._skip=!0,e.placement=E,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function rc(t,e,r){return void 0===r&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function nc(t){return[kl,El,_l,Sl].some((function(e){return t[e]>=0}))}const oc={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,r=t.options,n=t.name,o=r.offset,a=void 0===o?[0,0]:o,i=Rl.reduce((function(t,r){return t[r]=function(t,e,r){var n=Zs(t),o=[Sl,kl].indexOf(n)>=0?-1:1,a="function"==typeof r?r(Object.assign({},e,{placement:t})):r,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[Sl,El].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}(r,e.rects,a),t}),{}),s=i[e.placement],l=s.x,c=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=i}},ac={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,a=void 0===o||o,i=r.altAxis,s=void 0!==i&&i,l=r.boundary,c=r.rootBoundary,d=r.altBoundary,u=r.padding,p=r.tether,f=void 0===p||p,m=r.tetherOffset,h=void 0===m?0:m,b=tc(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),g=Zs(e.placement),v=Dl(e.placement),x=!v,y=vl(g),w="x"===y?"y":"x",k=e.modifiersData.popperOffsets,_=e.rects.reference,E=e.rects.popper,S="function"==typeof h?h(Object.assign({},e.rects,{placement:e.placement})):h,C="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),M=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,N={x:0,y:0};if(k){if(a){var P,O="y"===y?kl:Sl,z="y"===y?_l:El,T="y"===y?"height":"width",R=k[y],L=R+b[O],A=R-b[z],D=f?-E[T]/2:0,j=v===Nl?_[T]:E[T],I=v===Nl?-E[T]:-_[T],F=e.elements.arrow,B=f&&F?cl(F):{width:0,height:0},U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=U[O],$=U[z],V=xl(0,_[T],B[T]),H=x?_[T]/2-D-V-W-C.mainAxis:j-V-W-C.mainAxis,Y=x?-_[T]/2+D+V+$+C.mainAxis:I+V+$+C.mainAxis,X=e.elements.arrow&&gl(e.elements.arrow),q=X?"y"===y?X.clientTop||0:X.clientLeft||0:0,K=null!=(P=null==M?void 0:M[y])?P:0,Q=R+Y-K,G=xl(f?ol(L,R+H-K-q):L,R,f?nl(A,Q):A);k[y]=G,N[y]=G-R}if(s){var Z,J="x"===y?kl:Sl,tt="x"===y?_l:El,et=k[w],rt="y"===w?"height":"width",nt=et+b[J],ot=et-b[tt],at=-1!==[kl,Sl].indexOf(g),it=null!=(Z=null==M?void 0:M[w])?Z:0,st=at?nt:et-_[rt]-E[rt]-it+C.altAxis,lt=at?et+_[rt]+E[rt]-it-C.altAxis:ot,ct=f&&at?function(t,e,r){var n=xl(t,e,r);return n>r?r:n}(st,et,lt):xl(f?st:nt,et,f?lt:ot);k[w]=ct,N[w]=ct-et}e.modifiersData[n]=N}},requiresIfExists:["offset"]};function ic(t,e,r){void 0===r&&(r=!1);var n,o,a=el(e),i=el(e)&&function(t){var e=t.getBoundingClientRect(),r=al(e.width)/t.offsetWidth||1,n=al(e.height)/t.offsetHeight||1;return 1!==r||1!==n}(e),s=ml(e),l=ll(t,i,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(a||!a&&!r)&&(("body"!==ul(e)||ql(s))&&(c=(n=e)!==Js(n)&&el(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:Yl(n)),el(e)?((d=ll(e,!0)).x+=e.clientLeft,d.y+=e.clientTop):s&&(d.x=Xl(s))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function sc(t){var e=new Map,r=new Set,n=[];function o(t){r.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!r.has(t)){var n=e.get(t);n&&o(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){r.has(t.name)||o(t)})),n}var lc={placement:"bottom",modifiers:[],strategy:"absolute"};function cc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}const dc=function(t){void 0===t&&(t={});var e=t,r=e.defaultModifiers,n=void 0===r?[]:r,o=e.defaultOptions,a=void 0===o?lc:o;return function(t,e,r){void 0===r&&(r=a);var o,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},lc,a),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,d={state:s,setOptions:function(r){var o="function"==typeof r?r(s.options):r;u(),s.options=Object.assign({},a,s.options,o),s.scrollParents={reference:tl(t)?Ql(t):t.contextElement?Ql(t.contextElement):[],popper:Ql(e)};var i,c,p=function(t){var e=sc(t);return Ll.reduce((function(t,r){return t.concat(e.filter((function(t){return t.phase===r})))}),[])}((i=[].concat(n,s.options.modifiers),c=i.reduce((function(t,e){var r=t[e.name];return t[e.name]=r?Object.assign({},r,e,{options:Object.assign({},r.options,e.options),data:Object.assign({},r.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return s.orderedModifiers=p.filter((function(t){return t.enabled})),s.orderedModifiers.forEach((function(t){var e=t.name,r=t.options,n=void 0===r?{}:r,o=t.effect;if("function"==typeof o){var a=o({state:s,name:e,instance:d,options:n});l.push(a||function(){})}})),d.update()},forceUpdate:function(){if(!c){var t=s.elements,e=t.reference,r=t.popper;if(cc(e,r)){s.rects={reference:ic(e,gl(r),"fixed"===s.options.strategy),popper:cl(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(t){return s.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var o=s.orderedModifiers[n],a=o.fn,i=o.options,l=void 0===i?{}:i,u=o.name;"function"==typeof a&&(s=a({state:s,options:l,name:u,instance:d})||s)}else s.reset=!1,n=-1}}},update:(o=function(){return new Promise((function(t){d.forceUpdate(),t(s)}))},function(){return i||(i=new Promise((function(t){Promise.resolve().then((function(){i=void 0,t(o())}))}))),i}),destroy:function(){u(),c=!0}};if(!cc(t,e))return d;function u(){l.forEach((function(t){return t()})),l=[]}return d.setOptions(r).then((function(t){!c&&r.onFirstUpdate&&r.onFirstUpdate(t)})),d}}({defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,a=e.modifiersData.preventOverflow,i=tc(e,{elementContext:"reference"}),s=tc(e,{altBoundary:!0}),l=rc(i,n),c=rc(s,o,a),d=nc(l),u=nc(c);e.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,r=t.name;e.modifiersData[r]=Jl({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},Fl,Ul,oc,ec,ac,Al]}),uc=["enabled","placement","strategy","modifiers"],pc={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},fc={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:t})=>()=>{const{reference:e,popper:r}=t.elements;if("removeAttribute"in e){const t=(e.getAttribute("aria-describedby")||"").split(",").filter((t=>t.trim()!==r.id));t.length?e.setAttribute("aria-describedby",t.join(",")):e.removeAttribute("aria-describedby")}},fn:({state:t})=>{var e;const{popper:r,reference:n}=t.elements,o=null==(e=r.getAttribute("role"))?void 0:e.toLowerCase();if(r.id&&"tooltip"===o&&"setAttribute"in n){const t=n.getAttribute("aria-describedby");if(t&&-1!==t.split(",").indexOf(r.id))return;n.setAttribute("aria-describedby",t?`${t},${r.id}`:r.id)}}},mc=[],hc=function(t,r,n={}){let{enabled:o=!0,placement:a="bottom",strategy:i="absolute",modifiers:s=mc}=n,l=function(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(n,uc);const c=(0,e.useRef)(s),d=(0,e.useRef)(),u=(0,e.useCallback)((()=>{var t;null==(t=d.current)||t.update()}),[]),p=(0,e.useCallback)((()=>{var t;null==(t=d.current)||t.forceUpdate()}),[]),[f,m]=(g=(0,e.useState)({placement:a,update:u,forceUpdate:p,attributes:{},styles:{popper:{},arrow:{}}}),v=function(){var t=(0,e.useRef)(!0),r=(0,e.useRef)((function(){return t.current}));return(0,e.useEffect)((function(){return t.current=!0,function(){t.current=!1}}),[]),r.current}(),[g[0],(0,e.useCallback)((function(t){if(v())return g[1](t)}),[v,g[1]])]),h=(0,e.useMemo)((()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:t})=>{const e={},r={};Object.keys(t.elements).forEach((n=>{e[n]=t.styles[n],r[n]=t.attributes[n]})),m({state:t,styles:e,attributes:r,update:u,forceUpdate:p,placement:t.placement})}})),[u,p,m]),b=(0,e.useMemo)((()=>(Gs(c.current,s)||(c.current=s),c.current)),[s]);var g,v;return(0,e.useEffect)((()=>{d.current&&o&&d.current.setOptions({placement:a,strategy:i,modifiers:[...b,h,pc]})}),[i,a,h,o,b]),(0,e.useEffect)((()=>{if(o&&null!=t&&null!=r)return d.current=dc(t,r,Object.assign({},l,{placement:a,strategy:i,modifiers:[...b,fc,h]})),()=>{null!=d.current&&(d.current.destroy(),d.current=void 0,m((t=>Object.assign({},t,{attributes:{},styles:{popper:{}}}))))}}),[o,t,r]),f};function bc(t,e){return t.contains?t.contains(e):t.compareDocumentPosition?t===e||!!(16&t.compareDocumentPosition(e)):void 0}const gc=function(t,e,r,n){return Ws(t,e,r,n),function(){!function(t,e,r,n){var o=n&&"boolean"!=typeof n?n.capture:n;t.removeEventListener(e,r,o),r.__once&&t.removeEventListener(e,r.__once,o)}(t,e,r,n)}};var vc=o(2473),xc=o.n(vc);const yc=()=>{},wc=t=>t&&("current"in t?t.current:t),kc={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function _c(t={}){return Array.isArray(t)?t:Object.keys(t).map((e=>(t[e].name=e,t[e])))}const Ec=["children"],Sc=()=>{};function Cc(t={}){const r=(0,e.useContext)(qs),[n,o]=(0,e.useState)(null),a=(0,e.useRef)(!1),{flip:i,offset:s,rootCloseEvent:l,fixed:c=!1,placement:d,popperConfig:u={},enableEventListeners:p=!0,usePopper:f=!!r}=t,m=null==(null==r?void 0:r.show)?!!t.show:r.show;m&&!a.current&&(a.current=!0);const{placement:h,setMenu:b,menuElement:g,toggleElement:v}=r||{},x=hc(v,g,function({enabled:t,enableEvents:e,placement:r,flip:n,offset:o,fixed:a,containerPadding:i,arrowElement:s,popperConfig:l={}}){var c,d,u,p,f;const m=function(t){const e={};return Array.isArray(t)?(null==t||t.forEach((t=>{e[t.name]=t})),e):t||e}(l.modifiers);return Object.assign({},l,{placement:r,enabled:t,strategy:a?"fixed":l.strategy,modifiers:_c(Object.assign({},m,{eventListeners:{enabled:e,options:null==(c=m.eventListeners)?void 0:c.options},preventOverflow:Object.assign({},m.preventOverflow,{options:i?Object.assign({padding:i},null==(d=m.preventOverflow)?void 0:d.options):null==(u=m.preventOverflow)?void 0:u.options}),offset:{options:Object.assign({offset:o},null==(p=m.offset)?void 0:p.options)},arrow:Object.assign({},m.arrow,{enabled:!!s,options:Object.assign({},null==(f=m.arrow)?void 0:f.options,{element:s})}),flip:Object.assign({enabled:!!n},m.flip)}))})}({placement:d||h||"bottom-start",enabled:f,enableEvents:null==p?m:p,offset:s,flip:i,fixed:c,arrowElement:n,popperConfig:u})),y=Object.assign({ref:b||Sc,"aria-labelledby":null==v?void 0:v.id},x.attributes.popper,{style:x.styles.popper}),w={show:m,placement:h,hasShown:a.current,toggle:null==r?void 0:r.toggle,popper:f?x:null,arrowProps:f?Object.assign({ref:o},x.attributes.arrow,{style:x.styles.arrow}):{}};return function(t,r=yc,{disabled:n,clickTrigger:o="click"}={}){const a=(0,e.useRef)(!1),i=(0,e.useRef)(!1),s=(0,e.useCallback)((e=>{const r=wc(t);var n;xc()(!!r,"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"),a.current=!r||!!((n=e).metaKey||n.altKey||n.ctrlKey||n.shiftKey)||!function(t){return 0===t.button}(e)||!!bc(r,e.target)||i.current,i.current=!1}),[t]),l=Xs((e=>{const r=wc(t);r&&bc(r,e.target)&&(i.current=!0)})),c=Xs((t=>{a.current||r(t)}));(0,e.useEffect)((()=>{if(n||null==t)return;const e=(r=wc(t))&&r.ownerDocument||document;var r;let a=(e.defaultView||window).event,i=null;kc[o]&&(i=gc(e,kc[o],l,!0));const d=gc(e,o,s,!0),u=gc(e,o,(t=>{t!==a?c(t):a=void 0}));let p=[];return"ontouchstart"in e.documentElement&&(p=[].slice.call(e.body.children).map((t=>gc(t,"mousemove",yc)))),()=>{null==i||i(),d(),u(),p.forEach((t=>t()))}}),[t,n,o,s,l,c])}(g,(t=>{null==r||r.toggle(!1,t)}),{clickTrigger:l,disabled:!m}),[y,w]}function Mc(t){let{children:e}=t,r=function(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,Ec);const[n,o]=Cc(r);return(0,yt.jsx)(yt.Fragment,{children:e(n,o)})}Mc.displayName="DropdownMenu",Mc.defaultProps={usePopper:!0};const Nc=Mc,Pc={prefix:String(Math.round(1e10*Math.random())),current:0},Oc=e.createContext(Pc);let zc=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);const Tc=t=>{var e;return"menu"===(null==(e=t.getAttribute("role"))?void 0:e.toLowerCase())},Rc=()=>{};function Lc(){const t=function(t){let r=(0,e.useContext)(Oc);return r!==Pc||zc||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),(0,e.useMemo)((()=>`react-aria${r.prefix}-${++r.current}`),[t])}(),{show:r=!1,toggle:n=Rc,setToggle:o,menuElement:a}=(0,e.useContext)(qs)||{},i=(0,e.useCallback)((t=>{n(!r,t)}),[r,n]),s={id:t,ref:o||Rc,onClick:i,"aria-expanded":!!r};return a&&Tc(a)&&(s["aria-haspopup"]=!0),[s,{show:r,toggle:n}]}function Ac({children:t}){const[e,r]=Lc();return(0,yt.jsx)(yt.Fragment,{children:t(e,r)})}Ac.displayName="DropdownToggle";const Dc=Ac,jc=(t,e=null)=>null!=t?String(t):e||null,Ic=e.createContext(null),Fc=e.createContext(null);Fc.displayName="NavContext";const Bc=Fc;function Uc(t){return`data-rr-ui-${t}`}const Wc=["eventKey","disabled","onClick","active","as"];function $c({key:t,href:r,active:n,disabled:o,onClick:a}){const i=(0,e.useContext)(Ic),s=(0,e.useContext)(Bc),{activeKey:l}=s||{},c=jc(t,r),d=null==n&&null!=t?jc(l)===c:n;return[{onClick:Xs((t=>{o||(null==a||a(t),i&&!t.isPropagationStopped()&&i(c,t))})),"aria-disabled":o||void 0,"aria-selected":d,[Uc("dropdown-item")]:""},{isActive:d}]}const Vc=e.forwardRef(((t,e)=>{let{eventKey:r,disabled:n,onClick:o,active:a,as:i=De}=t,s=function(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,Wc);const[l]=$c({key:r,href:s.href,disabled:n,onClick:o,active:a});return(0,yt.jsx)(i,Object.assign({},s,{ref:e},l))}));Vc.displayName="DropdownItem";const Hc=Vc,Yc=(0,e.createContext)(Is?window:void 0);function Xc(){const t=(0,e.useReducer)((function(t){return!t}),!1)[1],r=(0,e.useRef)(null),n=(0,e.useCallback)((e=>{r.current=e,t()}),[t]);return[r,n]}function qc({defaultShow:t,show:r,onSelect:n,onToggle:o,itemSelector:a=`* [${Uc("dropdown-item")}]`,focusFirstItemOnShow:i,placement:s="bottom-start",children:l}){const c=(0,e.useContext)(Yc),[d,u]=Ys(r,t,o),[p,f]=Xc(),m=p.current,[h,b]=Xc(),g=h.current,v=(x=d,y=(0,e.useRef)(null),(0,e.useEffect)((function(){y.current=x})),y.current);var x,y;const w=(0,e.useRef)(null),k=(0,e.useRef)(!1),_=(0,e.useContext)(Ic),E=(0,e.useCallback)(((t,e,r=(null==e?void 0:e.type))=>{u(t,{originalEvent:e,source:r})}),[u]),S=Xs(((t,e)=>{null==n||n(t,e),E(!1,e,"select"),e.isPropagationStopped()||null==_||_(t,e)})),C=(0,e.useMemo)((()=>({toggle:E,placement:s,show:d,menuElement:m,toggleElement:g,setMenu:f,setToggle:b})),[E,s,d,m,g,f,b]);m&&v&&!d&&(k.current=m.contains(m.ownerDocument.activeElement));const M=Xs((()=>{g&&g.focus&&g.focus()})),N=Xs((()=>{const t=w.current;let e=i;if(null==e&&(e=!(!p.current||!Tc(p.current))&&"keyboard"),!1===e||"keyboard"===e&&!/^key.+$/.test(t))return;const r=js(p.current,a)[0];r&&r.focus&&r.focus()}));(0,e.useEffect)((()=>{d?N():k.current&&(k.current=!1,M())}),[d,k,M,N]),(0,e.useEffect)((()=>{w.current=null}));const P=(t,e)=>{if(!p.current)return null;const r=js(p.current,a);let n=r.indexOf(t)+e;return n=Math.max(0,Math.min(n,r.length)),r[n]};return function(t,r,n,o){void 0===o&&(o=!1);var a=Xs((t=>{var e,r;const{key:n}=t,o=t.target,a=null==(e=p.current)?void 0:e.contains(o),i=null==(r=h.current)?void 0:r.contains(o);if(/input|textarea/i.test(o.tagName)&&(" "===n||"Escape"!==n&&a||"Escape"===n&&"search"===o.type))return;if(!a&&!i)return;if(!("Tab"!==n||p.current&&d))return;w.current=t.type;const s={originalEvent:t,source:t.type};switch(n){case"ArrowUp":{const e=P(o,-1);return e&&e.focus&&e.focus(),void t.preventDefault()}case"ArrowDown":if(t.preventDefault(),d){const t=P(o,1);t&&t.focus&&t.focus()}else u(!0,s);return;case"Tab":Ws(o.ownerDocument,"keyup",(t=>{var e;("Tab"!==t.key||t.target)&&null!=(e=p.current)&&e.contains(t.target)||u(!1,s)}),{once:!0});break;case"Escape":"Escape"===n&&(t.preventDefault(),t.stopPropagation()),u(!1,s)}}));(0,e.useEffect)((function(){var e="function"==typeof t?t():t;return e.addEventListener(r,a,o),function(){return e.removeEventListener(r,a,o)}}),[t])}((0,e.useCallback)((()=>c.document),[c]),"keydown"),(0,yt.jsx)(Ic.Provider,{value:S,children:(0,yt.jsx)(qs.Provider,{value:C,children:l})})}Yc.Provider,qc.displayName="Dropdown",qc.Menu=Nc,qc.Toggle=Dc,qc.Item=Hc;const Kc=qc,Qc=e.createContext({});Qc.displayName="DropdownContext";const Gc=Qc;var Zc=void 0!==o.g&&o.g.navigator&&"ReactNative"===o.g.navigator.product;const Jc="undefined"!=typeof document||Zc?e.useLayoutEffect:e.useEffect;new WeakMap;const td=["onKeyDown"],ed=e.forwardRef(((t,e)=>{let{onKeyDown:r}=t,n=function(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,td);const[o]=Le(Object.assign({tagName:"a"},n)),a=Xs((t=>{o.onKeyDown(t),null==r||r(t)}));return(i=n.href)&&"#"!==i.trim()&&"button"!==n.role?(0,yt.jsx)("a",Object.assign({ref:e},n,{onKeyDown:r})):(0,yt.jsx)("a",Object.assign({ref:e},n,o,{onKeyDown:a}));var i}));ed.displayName="Anchor";const rd=ed,nd=e.forwardRef((({bsPrefix:t,className:e,eventKey:r,disabled:n=!1,onClick:o,active:a,as:i=rd,...s},l)=>{const c=Et(t,"dropdown-item"),[d,u]=$c({key:r,href:s.href,disabled:n,onClick:o,active:a});return(0,yt.jsx)(i,{...s,...d,ref:l,className:xt()(e,c,u.isActive&&"active",n&&"disabled")})}));nd.displayName="DropdownItem";const od=nd;var ad=function(t){return t&&"function"!=typeof t?function(e){t.current=e}:t};const id=function(t,r){return(0,e.useMemo)((function(){return function(t,e){var r=ad(t),n=ad(e);return function(t){r&&r(t),n&&n(t)}}(t,r)}),[t,r])},sd=e.createContext(null);sd.displayName="InputGroupContext";const ld=sd,cd=e.createContext(null);cd.displayName="NavbarContext";const dd=cd;function ud(t,e){return t}function pd(t,e,r){let n=t?r?"bottom-start":"bottom-end":r?"bottom-end":"bottom-start";return"up"===e?n=t?r?"top-start":"top-end":r?"top-end":"top-start":"end"===e?n=t?r?"left-end":"right-end":r?"left-start":"right-start":"start"===e?n=t?r?"right-end":"left-end":r?"right-start":"left-start":"down-centered"===e?n="bottom":"up-centered"===e&&(n="top"),n}const fd=e.forwardRef((({bsPrefix:t,className:r,align:n,rootCloseEvent:o,flip:a,show:i,renderOnMount:s,as:l="div",popperConfig:c,variant:d,...u},p)=>{let f=!1;const m=(0,e.useContext)(dd),h=Et(t,"dropdown-menu"),{align:b,drop:g,isRTL:v}=(0,e.useContext)(Gc);n=n||b;const x=(0,e.useContext)(ld),y=[];if(n)if("object"==typeof n){const t=Object.keys(n);if(t.length){const e=t[0],r=n[e];f="start"===r,y.push(`${h}-${e}-${r}`)}}else"end"===n&&(f=!0);const w=pd(f,g,v),[k,{hasShown:_,popper:E,show:S,toggle:C}]=Cc({flip:a,rootCloseEvent:o,show:i,usePopper:!m&&0===y.length,offset:[0,2],popperConfig:c,placement:w});if(k.ref=id(ud(p),k.ref),Jc((()=>{S&&(null==E||E.update())}),[S]),!_&&!s&&!x)return null;"string"!=typeof l&&(k.show=S,k.close=()=>null==C?void 0:C(!1),k.align=n);let M=u.style;return null!=E&&E.placement&&(M={...u.style,...k.style},u["x-placement"]=E.placement),(0,yt.jsx)(l,{...u,...k,style:M,...(y.length||m)&&{"data-bs-popper":"static"},className:xt()(r,h,S&&"show",f&&`${h}-end`,d&&`${h}-${d}`,...y)})}));fd.displayName="DropdownMenu",fd.defaultProps={flip:!0};const md=fd,hd=e.forwardRef((({bsPrefix:t,split:r,className:n,childBsPrefix:o,as:a=Ie,...i},s)=>{const l=Et(t,"dropdown-toggle"),c=(0,e.useContext)(qs);void 0!==o&&(i.bsPrefix=o);const[d]=Lc();return d.ref=id(d.ref,ud(s)),(0,yt.jsx)(a,{className:xt()(n,l,r&&`${l}-split`,(null==c?void 0:c.show)&&"show"),...d,...i})}));hd.displayName="DropdownToggle";const bd=hd,gd=At("dropdown-header",{defaultProps:{role:"heading"}}),vd=At("dropdown-divider",{Component:"hr",defaultProps:{role:"separator"}}),xd=At("dropdown-item-text",{Component:"span"}),yd=e.forwardRef(((t,r)=>{const{bsPrefix:n,drop:o,show:a,className:i,align:s,onSelect:l,onToggle:c,focusFirstItemOnShow:d,as:u="div",navbar:p,autoClose:f,...m}=function(t,e){return Object.keys(e).reduce((function(r,n){var o,a=r,i=a[Vs(n)],s=a[n],l=function(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(a,[Vs(n),n].map(Hs)),c=e[n],d=Ys(s,i,t[c]),u=d[0],p=d[1];return $s({},l,((o={})[n]=u,o[c]=p,o))}),t)}(t,{show:"onToggle"}),h=(0,e.useContext)(ld),b=Et(n,"dropdown"),g=function(){const{dir:t}=(0,e.useContext)(wt);return"rtl"===t}(),v=Xs(((t,e)=>{var r;e.originalEvent.currentTarget!==document||"keydown"===e.source&&"Escape"!==e.originalEvent.key||(e.source="rootClose"),r=e.source,(!1===f?"click"===r:"inside"===f?"rootClose"!==r:"outside"!==f||"select"!==r)&&(null==c||c(t,e))})),x=pd("end"===s,o,g),y=(0,e.useMemo)((()=>({align:s,drop:o,isRTL:g})),[s,o,g]),w={down:b,"down-centered":`${b}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return(0,yt.jsx)(Gc.Provider,{value:y,children:(0,yt.jsx)(Kc,{placement:x,show:a,onSelect:l,onToggle:v,focusFirstItemOnShow:d,itemSelector:`.${b}-item:not(.disabled):not(:disabled)`,children:h?m.children:(0,yt.jsx)(u,{...m,ref:r,className:xt()(i,a&&"show",w[o])})})})}));yd.displayName="Dropdown",yd.defaultProps={navbar:!1,align:"start",autoClose:!0,drop:"down"};const wd=Object.assign(yd,{Toggle:bd,Menu:md,Item:od,ItemText:xd,Divider:vd,Header:gd});var kd=o(5697),_d=o.n(kd);const Ed={type:_d().string,tooltip:_d().bool,as:_d().elementType},Sd=e.forwardRef((({as:t="div",className:e,type:r="valid",tooltip:n=!1,...o},a)=>(0,yt.jsx)(t,{...o,ref:a,className:xt()(e,`${r}-${n?"tooltip":"feedback"}`)})));Sd.displayName="Feedback",Sd.propTypes=Ed;const Cd=Sd,Md=e.createContext({}),Nd=e.forwardRef((({id:t,bsPrefix:r,className:n,type:o="checkbox",isValid:a=!1,isInvalid:i=!1,as:s="input",...l},c)=>{const{controlId:d}=(0,e.useContext)(Md);return r=Et(r,"form-check-input"),(0,yt.jsx)(s,{...l,ref:c,type:o,id:t||d,className:xt()(n,r,a&&"is-valid",i&&"is-invalid")})}));Nd.displayName="FormCheckInput";const Pd=Nd,Od=e.forwardRef((({bsPrefix:t,className:r,htmlFor:n,...o},a)=>{const{controlId:i}=(0,e.useContext)(Md);return t=Et(t,"form-check-label"),(0,yt.jsx)("label",{...o,ref:a,htmlFor:n||i,className:xt()(r,t)})}));Od.displayName="FormCheckLabel";const zd=Od,Td=e.forwardRef((({id:t,bsPrefix:r,bsSwitchPrefix:n,inline:o=!1,reverse:a=!1,disabled:i=!1,isValid:s=!1,isInvalid:l=!1,feedbackTooltip:c=!1,feedback:d,feedbackType:u,className:p,style:f,title:m="",type:h="checkbox",label:b,children:g,as:v="input",...x},y)=>{r=Et(r,"form-check"),n=Et(n,"form-switch");const{controlId:w}=(0,e.useContext)(Md),k=(0,e.useMemo)((()=>({controlId:t||w})),[w,t]),_=!g&&null!=b&&!1!==b||function(t,r){return e.Children.toArray(t).some((t=>e.isValidElement(t)&&t.type===r))}(g,zd),E=(0,yt.jsx)(Pd,{...x,type:"switch"===h?"checkbox":h,ref:y,isValid:s,isInvalid:l,disabled:i,as:v});return(0,yt.jsx)(Md.Provider,{value:k,children:(0,yt.jsx)("div",{style:f,className:xt()(p,_&&r,o&&`${r}-inline`,a&&`${r}-reverse`,"switch"===h&&n),children:g||(0,yt.jsxs)(yt.Fragment,{children:[E,_&&(0,yt.jsx)(zd,{title:m,children:b}),d&&(0,yt.jsx)(Cd,{type:u,tooltip:c,children:d})]})})})}));Td.displayName="FormCheck";const Rd=Object.assign(Td,{Input:Pd,Label:zd}),Ld=e.forwardRef((({bsPrefix:t,type:r,size:n,htmlSize:o,id:a,className:i,isValid:s=!1,isInvalid:l=!1,plaintext:c,readOnly:d,as:u="input",...p},f)=>{const{controlId:m}=(0,e.useContext)(Md);let h;return t=Et(t,"form-control"),h=c?{[`${t}-plaintext`]:!0}:{[t]:!0,[`${t}-${n}`]:n},(0,yt.jsx)(u,{...p,type:r,size:o,ref:f,readOnly:d,id:a||m,className:xt()(i,h,s&&"is-valid",l&&"is-invalid","color"===r&&`${t}-color`)})}));Ld.displayName="FormControl";const Ad=Object.assign(Ld,{Feedback:Cd}),Dd=At("form-floating"),jd=e.forwardRef((({controlId:t,as:r="div",...n},o)=>{const a=(0,e.useMemo)((()=>({controlId:t})),[t]);return(0,yt.jsx)(Md.Provider,{value:a,children:(0,yt.jsx)(r,{...n,ref:o})})}));jd.displayName="FormGroup";const Id=jd,Fd=e.forwardRef((({as:t="label",bsPrefix:r,column:n,visuallyHidden:o,className:a,htmlFor:i,...s},l)=>{const{controlId:c}=(0,e.useContext)(Md);r=Et(r,"form-label");let d="col-form-label";"string"==typeof n&&(d=`${d} ${d}-${n}`);const u=xt()(a,r,o&&"visually-hidden",n&&d);return i=i||c,n?(0,yt.jsx)(Tt,{ref:l,as:"label",className:u,htmlFor:i,...s}):(0,yt.jsx)(t,{ref:l,className:u,htmlFor:i,...s})}));Fd.displayName="FormLabel",Fd.defaultProps={column:!1,visuallyHidden:!1};const Bd=Fd,Ud=e.forwardRef((({bsPrefix:t,className:r,id:n,...o},a)=>{const{controlId:i}=(0,e.useContext)(Md);return t=Et(t,"form-range"),(0,yt.jsx)("input",{...o,type:"range",ref:a,className:xt()(r,t),id:n||i})}));Ud.displayName="FormRange";const Wd=Ud,$d=e.forwardRef((({bsPrefix:t,size:r,htmlSize:n,className:o,isValid:a=!1,isInvalid:i=!1,id:s,...l},c)=>{const{controlId:d}=(0,e.useContext)(Md);return t=Et(t,"form-select"),(0,yt.jsx)("select",{...l,size:n,ref:c,className:xt()(o,t,r&&`${t}-${r}`,a&&"is-valid",i&&"is-invalid"),id:s||d})}));$d.displayName="FormSelect";const Vd=$d,Hd=e.forwardRef((({bsPrefix:t,className:e,as:r="small",muted:n,...o},a)=>(t=Et(t,"form-text"),(0,yt.jsx)(r,{...o,ref:a,className:xt()(e,t,n&&"text-muted")}))));Hd.displayName="FormText";const Yd=Hd,Xd=e.forwardRef(((t,e)=>(0,yt.jsx)(Rd,{...t,ref:e,type:"switch"})));Xd.displayName="Switch";const qd=Object.assign(Xd,{Input:Rd.Input,Label:Rd.Label}),Kd=e.forwardRef((({bsPrefix:t,className:e,children:r,controlId:n,label:o,...a},i)=>(t=Et(t,"form-floating"),(0,yt.jsxs)(Id,{ref:i,className:xt()(e,t),controlId:n,...a,children:[r,(0,yt.jsx)("label",{htmlFor:n,children:o})]}))));Kd.displayName="FloatingLabel";const Qd=Kd,Gd={_ref:_d().any,validated:_d().bool,as:_d().elementType},Zd=e.forwardRef((({className:t,validated:e,as:r="form",...n},o)=>(0,yt.jsx)(r,{...n,ref:o,className:xt()(t,e&&"was-validated")})));Zd.displayName="Form",Zd.propTypes=Gd;const Jd=Object.assign(Zd,{Group:Id,Control:Ad,Floating:Dd,Check:Rd,Switch:qd,Label:Bd,Text:Yd,Range:Wd,Select:Vd,FloatingLabel:Qd}),tu=function(t){var r=t.filterOptions,n=t.filterSelection,o=t.setFilterSelection,a=t.max1year,i=void 0!==a&&a,l=t.coloredYears,c=void 0!==l&&l,d=s(e.useState(!0),2),u=d[0],p=d[1];if((0,e.useEffect)((function(){var t=function(){return p(window.innerWidth>=992)};return window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)}}),[]),i&&n.selectedYears.length>1){var f=Math.max.apply(Math,le(n.selectedYears));o({selectedYears:[f],selectedNrens:le(n.selectedNrens)})}var m=u?3:2,h=Math.ceil(r.availableNrens.length/m),b=Array.from(Array(m),(function(){return[]}));return r.availableNrens.sort().forEach((function(t,e){var r=Math.floor(e/h);b[r].push(t)})),e.createElement(e.Fragment,null,e.createElement(Tt,{xs:3},e.createElement(wd,{autoClose:"outside",className:"m-3"},e.createElement(wd.Toggle,{id:"nren-dropdown-toggle",variant:"compendium"},"Select NRENs "),e.createElement(wd.Menu,{style:{borderRadius:0}},e.createElement("div",{className:"d-flex fit-max-content mt-4 mx-3"},b.map((function(t,r){return e.createElement("div",{key:r,className:"flex-fill"},t.map((function(t){return e.createElement("div",{className:"filter-dropdown-item flex-fill py-1 px-3",key:t.name,onClick:function(){return function(t){n.selectedNrens.includes(t)?o({selectedYears:le(n.selectedYears),selectedNrens:n.selectedNrens.filter((function(e){return e!==t}))}):o({selectedYears:le(n.selectedYears),selectedNrens:[].concat(le(n.selectedNrens),[t])})}(t.name)}},e.createElement(Jd.Check,{type:"checkbox"},e.createElement(Jd.Check.Input,{readOnly:!0,type:"checkbox",checked:n.selectedNrens.includes(t.name),className:"nren-checkbox"}),e.createElement(Jd.Check.Label,{className:"nren-checkbox-label"},t.name," ",e.createElement("span",{style:{fontWeight:"lighter"}},"(",t.country,")"))))})))}))),e.createElement("div",{className:"d-flex fit-max-content gap-2 mx-4 my-3"},e.createElement(Ie,{variant:"compendium",className:"flex-fill",onClick:function(){o({selectedYears:le(n.selectedYears),selectedNrens:r.availableNrens.map((function(t){return t.name}))})}},"Select all NRENs"),e.createElement(Ie,{variant:"compendium",className:"flex-fill",onClick:function(){o({selectedYears:le(n.selectedYears),selectedNrens:[]})}},"Unselect all NRENs"))))),e.createElement(Tt,null,e.createElement(Te,{className:"d-flex justify-content-end gap-2 m-3"},r.availableYears.sort().map((function(t){return e.createElement(Ie,{variant:c?"compendium-year-"+t%9:"compendium-year",key:t,active:n.selectedYears.includes(t),onClick:function(){return function(t){n.selectedYears.includes(t)?o({selectedYears:n.selectedYears.filter((function(e){return e!==t})),selectedNrens:le(n.selectedNrens)}):o({selectedYears:i?[t]:[].concat(le(n.selectedYears),[t]),selectedNrens:le(n.selectedNrens)})}(t)}},t)})))))},eu="label";function ru(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function nu(t,e){t.labels=e}function ou(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eu;const n=[];t.datasets=e.map((e=>{const o=t.datasets.find((t=>t[r]===e[r]));return o&&e.data&&!n.includes(o)?(n.push(o),Object.assign(o,e),o):{...e}}))}function au(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eu;const r={labels:[],datasets:[]};return nu(r,t.labels),ou(r,t.datasets,e),r}function iu(t,r){const{height:n=150,width:o=300,redraw:a=!1,datasetIdKey:i,type:s,data:l,options:c,plugins:d=[],fallbackContent:u,updateMode:p,...f}=t,m=(0,e.useRef)(null),h=(0,e.useRef)(),b=()=>{m.current&&(h.current=new Ui(m.current,{type:s,data:au(l,i),options:c&&{...c},plugins:d}),ru(r,h.current))},g=()=>{ru(r,null),h.current&&(h.current.destroy(),h.current=null)};return(0,e.useEffect)((()=>{!a&&h.current&&c&&function(t,e){const r=t.options;r&&e&&Object.assign(r,e)}(h.current,c)}),[a,c]),(0,e.useEffect)((()=>{!a&&h.current&&nu(h.current.config.data,l.labels)}),[a,l.labels]),(0,e.useEffect)((()=>{!a&&h.current&&l.datasets&&ou(h.current.config.data,l.datasets,i)}),[a,l.datasets]),(0,e.useEffect)((()=>{h.current&&(a?(g(),setTimeout(b)):h.current.update(p))}),[a,c,l.labels,l.datasets,p]),(0,e.useEffect)((()=>{h.current&&(g(),setTimeout(b))}),[s]),(0,e.useEffect)((()=>(b(),()=>g())),[]),e.createElement("canvas",Object.assign({ref:m,role:"img",height:n,width:o},f),u)}const su=(0,e.forwardRef)(iu);function lu(t,r){return Ui.register(r),(0,e.forwardRef)(((r,n)=>e.createElement(su,Object.assign({},r,{ref:n,type:t}))))}const cu=lu("line",Ea),du=lu("bar",_a);Ui.register(Ps,Ts,ts,class extends ai{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const r=this.options;if((r.tension||"monotone"===r.cubicInterpolationMode)&&!r.stepped&&!this._pointsUpdated){const n=r.spanGaps?this._loop:this._fullLoop;No(this._points,r,t,n,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const r=t.points,n=t.options.spanGaps,o=r.length;if(!o)return[];const a=!!t._loop,{start:i,end:s}=function(t,e,r,n){let o=0,a=e-1;if(r&&!n)for(;o<e&&!t[o].skip;)o++;for(;o<e&&t[o].skip;)o++;for(o%=e,r&&(a+=o);a>o&&t[a%e].skip;)a--;return a%=e,{start:o,end:a}}(r,o,a,n);return function(t,e,r,n){return n&&n.setContext&&r?function(t,e,r,n){const o=t._chart.getContext(),a=Ko(t.options),{_datasetIndex:i,options:{spanGaps:s}}=t,l=r.length,c=[];let d=a,u=e[0].start,p=u;function f(t,e,n,o){const a=s?-1:1;if(t!==e){for(t+=l;r[t%l].skip;)t-=a;for(;r[e%l].skip;)e+=a;t%l!=e%l&&(c.push({start:t%l,end:e%l,loop:n,style:o}),d=o,u=e%l)}}for(const t of e){u=s?u:t.start;let e,a=r[u%l];for(p=u+1;p<=t.end;p++){const s=r[p%l];e=Ko(n.setContext(lo(o,{type:"segment",p0:a,p1:s,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:i}))),Qo(e,d)&&f(u,p-1,t.loop,d),a=s,d=e}u<p-1&&f(u,p-1,t.loop,d)}return c}(t,e,r,n):e}(t,!0===n?[{start:i,end:s,loop:a}]:function(t,e,r,n){const o=t.length,a=[];let i,s=e,l=t[e];for(i=e+1;i<=r;++i){const r=t[i%o];r.skip||r.stop?l.skip||(n=!1,a.push({start:e%o,end:(i-1)%o,loop:n}),e=s=r.stop?i:null):(s=i,l.skip&&(e=i)),l=r}return null!==s&&a.push({start:e%o,end:s%o,loop:n}),a}(r,i,s<i?s+o:s,!!t._fullLoop&&0===i&&s===o-1),r,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,r=t.length;return r&&e[t[r-1].end]}interpolate(t,e){const r=this.options,n=t[e],o=this.points,a=function(t,e){const r=[],n=t.segments;for(let o=0;o<n.length;o++){const a=qo(n[o],t.points,e);a.length&&r.push(...a)}return r}(this,{property:e,start:n,end:n});if(!a.length)return;const i=[],s=function(t){return t.stepped?Uo:t.tension||"monotone"===t.cubicInterpolationMode?Wo:Bo}(r);let l,c;for(l=0,c=a.length;l<c;++l){const{start:c,end:d}=a[l],u=o[c],p=o[d];if(u===p){i.push(u);continue}const f=s(u,p,Math.abs((n-u[e])/(p[e]-u[e])),r.stepped);f[e]=t[e],i.push(f)}return 1===i.length?i[0]:i}pathSegment(t,e,r){return Gi(this)(t,this,e,r)}path(t,e,r){const n=this.segments,o=Gi(this);let a=this._loop;e=e||0,r=r||this.points.length-e;for(const i of n)a&=o(t,this,i,{start:e,end:e+r-1});return!!a}draw(t,e,r,n){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),function(t,e,r,n){Zi&&!e.options.segment?function(t,e,r,n){let o=e._path;o||(o=e._path=new Path2D,e.path(o,r,n)&&o.closePath()),Yi(t,e.options),t.stroke(o)}(t,e,r,n):function(t,e,r,n){const{segments:o,options:a}=e,i=Gi(e);for(const s of o)Yi(t,a,s.style),t.beginPath(),i(t,e,s,{start:r,end:r+n-1})&&t.closePath(),t.stroke()}(t,e,r,n)}(t,this,r,n),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}},ps,Ms,ds);var uu={responsive:!0,animation:{duration:0},plugins:{legend:{position:"top",onClick:function(){}},title:{display:!0,text:""}}};const pu=function(t){var r=t.data;return e.createElement(cu,{data:r,options:uu})},fu=function(t){var r,n,o,a,i,l=t.filterSelection,c=t.setFilterSelection,d=s((0,e.useState)([]),2),u=d[0],p=d[1],f=(0,e.useMemo)((function(){return me(u)}),[u]).nrens,m=(r=u,n=le(new Set(r.map((function(t){return t.year})))).sort(),o=le(new Set(r.map((function(t){return t.nren})))).sort(),a=function(t){var e=new Map;return t.forEach((function(t){var r="".concat(t.nren,"/").concat(t.year);e.set(r,Number(t.budget))})),e}(r),i=o.map((function(t){var e=function(t){for(var e=0,r=0;r<t.length;r++)e=t.charCodeAt(r)+((e<<5)-e);for(var n="#",o=0;o<3;o++){var a="00"+(e>>8*o&255).toString(16);n+=a.substring(a.length-2)}return n}(t);return{backgroundColor:e,borderColor:e,data:n.map((function(e){var r;return null!==(r=a.get("".concat(t,"/").concat(e)))&&void 0!==r?r:null})),label:t,hidden:!1}})),{datasets:i,labels:n.map((function(t){return t.toString()}))});m.datasets.forEach((function(t){t.hidden=!l.selectedNrens.includes(t.label)})),(0,e.useEffect)((function(){!function(t,e,r){ge.apply(this,arguments)}("/api/budget/",p,c)}),[c]);var h=e.createElement(tu,{filterOptions:{availableYears:[],availableNrens:le(f.values())},filterSelection:l,setFilterSelection:c});return e.createElement(As,{title:"Budget of NRENs per Year",description:"The graph shows the NRENs budget capita (in Million €) per year . On hovering over the graphs data points will give NRENs budget share in that year. This graph can be used to compare, selecting multiple NRENs to see the fluctuation of budget over years and with other NRENs.",category:Fe.Organisation,filter:h},e.createElement(e.Fragment,null,e.createElement(Ot,null,e.createElement(pu,{data:m}))))},mu=function(t){var r=t.title,n=t.children,o=t.startCollapsed,a=s((0,e.useState)(!!o),2),i=a[0],l=a[1];return e.createElement("div",{className:"collapsible-box p-0"},e.createElement(Ot,null,e.createElement(Tt,null,e.createElement("h1",{className:"bold-caps-16pt dark-teal pt-3 ps-3"},r)),e.createElement(Tt,{className:"flex-grow-0 flex-shrink-0"},e.createElement("div",{className:"toggle-btn p-2",onClick:function(){return l(!i)}},i?e.createElement(Ce,{style:{color:"white",paddingBottom:"3px",marginTop:"3px",marginLeft:"3px",scale:"1.3"}}):e.createElement(Se,{style:{color:"white",paddingBottom:"3px",marginTop:"3px",marginLeft:"3px",scale:"1.3"}})))),!i&&e.createElement("div",{className:"collapsible-content"},n))},hu=function(t){var r=t.children,n=t.type,o="";return"data"==n?o+=" compendium-data-banner":"reports"==n&&(o=" compendium-reports-banner"),e.createElement("div",{className:o},e.createElement(Nt,null,e.createElement(Ot,null,e.createElement(Ot,null,e.createElement("div",{className:"section-container"},e.createElement("img",{src:te,style:{maxWidth:"7rem",marginBottom:"1rem"}}),e.createElement("div",{style:{display:"flex",alignSelf:"right"}},e.createElement("div",{className:"center-text",style:{paddingTop:"1rem"}},r)))))))},bu=function(){return e.createElement("main",{className:"grow"},e.createElement(Oe,{type:"data"}),e.createElement(hu,{type:"data"},e.createElement("p",{className:"wordwrap"},"The GÉANT Compendium provides an authoritative reference source for anyone with an interest in the development of research and education networking in Europe and beyond. Published since 2001, the Compendium provides information on key areas such as users, services, traffic, budget and staffing.")),e.createElement(Nt,{className:"pt-5"},e.createElement(Ot,null,e.createElement("div",{className:"center"},e.createElement(mu,{title:Fe.Organisation},e.createElement("div",{className:"collapsible-column"},e.createElement(Ot,null,e.createElement(ht,{to:"/budget",className:"link-text-underline"},e.createElement("span",null,"Budget of NRENs per Year"))),e.createElement(Ot,null,e.createElement(ht,{to:"/funding",className:"link-text-underline"},e.createElement("span",null,"Income Source of NRENs per Year"))),e.createElement(Ot,null,e.createElement(ht,{to:"/charging",className:"link-text-underline"},e.createElement("span",null,"Charging Mechanism of NRENs per Year"))),e.createElement(Ot,null,e.createElement(ht,{to:"/data/roles",className:"link-text-underline"},e.createElement("span",null,"Roles of NREN employees"))),e.createElement(Ot,null,e.createElement(ht,{to:"/data/employment",className:"link-text-underline"},e.createElement("span",null,"Types of employment for NRENs"))),e.createElement(Ot,null,e.createElement(ht,{to:"/suborganisations",className:"link-text-underline"},e.createElement("span",null,"NREN Suborganisations"))),e.createElement(Ot,null,e.createElement(ht,{to:"/parentorganisation",className:"link-text-underline"},e.createElement("span",null,"NREN Parent Organisations"))),e.createElement(Ot,null,e.createElement(ht,{to:"/ec-projects",className:"link-text-underline"},e.createElement("span",null,"NREN Involvement in European Commission Projects"))))),e.createElement(mu,{title:Fe.Policy,startCollapsed:!0},e.createElement("div",{className:"collapsible-column"},e.createElement(Ot,null,e.createElement(ht,{to:"/policy",className:"link-text-underline"},e.createElement("span",null,"NREN Policies"))))),e.createElement(mu,{title:Fe.ConnectedUsers,startCollapsed:!0},e.createElement("div",{className:"collapsible-column"},e.createElement("h5",null,"Coming Soon"))),e.createElement(mu,{title:Fe.Network,startCollapsed:!0},e.createElement("div",{className:"collapsible-column"},e.createElement("h5",null,"Coming Soon"))),e.createElement(mu,{title:Fe.Services,startCollapsed:!0},e.createElement("div",{className:"collapsible-column"},e.createElement("h5",null,"Coming Soon")))))))};var gu=function(){if("undefined"!=typeof window){if(window.devicePixelRatio)return window.devicePixelRatio;var t=window.screen;if(t)return(t.deviceXDPI||1)/(t.logicalXDPI||1)}return 1}(),vu=function(t,e,r){var n,o=[].concat(e),a=o.length,i=t.font,s=0;for(t.font=r.string,n=0;n<a;++n)s=Math.max(t.measureText(o[n]).width,s);return t.font=i,{height:a*r.lineHeight,width:s}};function xu(t,e){var r=e.x,n=e.y;if(null===r)return{x:0,y:-1};if(null===n)return{x:1,y:0};var o=t.x-r,a=t.y-n,i=Math.sqrt(o*o+a*a);return{x:i?o/i:0,y:i?a/i:-1}}function yu(t,e,r){var n=0;return t<r.left?n|=1:t>r.right&&(n|=2),e<r.top?n|=8:e>r.bottom&&(n|=4),n}function wu(t,e){var r,n,o=e.anchor,a=t;return e.clamp&&(a=function(t,e){for(var r,n,o,a=t.x0,i=t.y0,s=t.x1,l=t.y1,c=yu(a,i,e),d=yu(s,l,e);c|d&&!(c&d);)8&(r=c||d)?(n=a+(s-a)*(e.top-i)/(l-i),o=e.top):4&r?(n=a+(s-a)*(e.bottom-i)/(l-i),o=e.bottom):2&r?(o=i+(l-i)*(e.right-a)/(s-a),n=e.right):1&r&&(o=i+(l-i)*(e.left-a)/(s-a),n=e.left),r===c?c=yu(a=n,i=o,e):d=yu(s=n,l=o,e);return{x0:a,x1:s,y0:i,y1:l}}(a,e.area)),"start"===o?(r=a.x0,n=a.y0):"end"===o?(r=a.x1,n=a.y1):(r=(a.x0+a.x1)/2,n=(a.y0+a.y1)/2),function(t,e,r,n,o){switch(o){case"center":r=n=0;break;case"bottom":r=0,n=1;break;case"right":r=1,n=0;break;case"left":r=-1,n=0;break;case"top":r=0,n=-1;break;case"start":r=-r,n=-n;break;case"end":break;default:o*=Math.PI/180,r=Math.cos(o),n=Math.sin(o)}return{x:t,y:e,vx:r,vy:n}}(r,n,t.vx,t.vy,e.align)}var ku=function(t,e){var r=(t.startAngle+t.endAngle)/2,n=Math.cos(r),o=Math.sin(r),a=t.innerRadius,i=t.outerRadius;return wu({x0:t.x+n*a,y0:t.y+o*a,x1:t.x+n*i,y1:t.y+o*i,vx:n,vy:o},e)},_u=function(t,e){var r=xu(t,e.origin),n=r.x*t.options.radius,o=r.y*t.options.radius;return wu({x0:t.x-n,y0:t.y-o,x1:t.x+n,y1:t.y+o,vx:r.x,vy:r.y},e)},Eu=function(t,e){var r=xu(t,e.origin),n=t.x,o=t.y,a=0,i=0;return t.horizontal?(n=Math.min(t.x,t.base),a=Math.abs(t.base-t.x)):(o=Math.min(t.y,t.base),i=Math.abs(t.base-t.y)),wu({x0:n,y0:o+i,x1:n+a,y1:o,vx:r.x,vy:r.y},e)},Su=function(t,e){var r=xu(t,e.origin);return wu({x0:t.x,y0:t.y,x1:t.x+(t.width||0),y1:t.y+(t.height||0),vx:r.x,vy:r.y},e)},Cu=function(t){return Math.round(t*gu)/gu};function Mu(t,e){var r=e.chart.getDatasetMeta(e.datasetIndex).vScale;if(!r)return null;if(void 0!==r.xCenter&&void 0!==r.yCenter)return{x:r.xCenter,y:r.yCenter};var n=r.getBasePixel();return t.horizontal?{x:n,y:null}:{x:null,y:n}}function Nu(t,e,r){var n=t.shadowBlur,o=r.stroked,a=Cu(r.x),i=Cu(r.y),s=Cu(r.w);o&&t.strokeText(e,a,i,s),r.filled&&(n&&o&&(t.shadowBlur=0),t.fillText(e,a,i,s),n&&o&&(t.shadowBlur=n))}var Pu=function(t,e,r,n){var o=this;o._config=t,o._index=n,o._model=null,o._rects=null,o._ctx=e,o._el=r};Tr(Pu.prototype,{_modelize:function(t,e,r,n){var o,a=this,i=a._index,s=io(so([r.font,{}],n,i)),l=so([r.color,In.color],n,i);return{align:so([r.align,"center"],n,i),anchor:so([r.anchor,"center"],n,i),area:n.chart.chartArea,backgroundColor:so([r.backgroundColor,null],n,i),borderColor:so([r.borderColor,null],n,i),borderRadius:so([r.borderRadius,0],n,i),borderWidth:so([r.borderWidth,0],n,i),clamp:so([r.clamp,!1],n,i),clip:so([r.clip,!1],n,i),color:l,display:t,font:s,lines:e,offset:so([r.offset,4],n,i),opacity:so([r.opacity,1],n,i),origin:Mu(a._el,n),padding:ao(so([r.padding,4],n,i)),positioner:(o=a._el,o instanceof Hi?ku:o instanceof ts?_u:o instanceof is?Eu:Su),rotation:so([r.rotation,0],n,i)*(Math.PI/180),size:vu(a._ctx,e,s),textAlign:so([r.textAlign,"start"],n,i),textShadowBlur:so([r.textShadowBlur,0],n,i),textShadowColor:so([r.textShadowColor,l],n,i),textStrokeColor:so([r.textStrokeColor,l],n,i),textStrokeWidth:so([r.textStrokeWidth,0],n,i)}},update:function(t){var e,r,n,o=this,a=null,i=null,s=o._index,l=o._config,c=so([l.display,!0],t,s);c&&(e=t.dataset.data[s],(n=yr(r=Sr(Cr(l.formatter,[e,t]),e))?[]:function(t){var e,r=[];for(t=[].concat(t);t.length;)"string"==typeof(e=t.pop())?r.unshift.apply(r,e.split("\n")):Array.isArray(e)?t.push.apply(t,e):yr(t)||r.unshift(""+e);return r}(r)).length&&(i=function(t){var e=t.borderWidth||0,r=t.padding,n=t.size.height,o=t.size.width,a=-o/2,i=-n/2;return{frame:{x:a-r.left-e,y:i-r.top-e,w:o+r.width+2*e,h:n+r.height+2*e},text:{x:a,y:i,w:o,h:n}}}(a=o._modelize(c,n,l,t)))),o._model=a,o._rects=i},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(t,e){var r,n,o,a,i=t.ctx,s=this._model,l=this._rects;this.visible()&&(i.save(),s.clip&&(r=s.area,i.beginPath(),i.rect(r.left,r.top,r.right-r.left,r.bottom-r.top),i.clip()),i.globalAlpha=(n=0,o=s.opacity,a=1,Math.max(n,Math.min(o,a))),i.translate(Cu(e.x),Cu(e.y)),i.rotate(s.rotation),function(t,e,r){var n=r.backgroundColor,o=r.borderColor,a=r.borderWidth;(n||o&&a)&&(t.beginPath(),function(t,e,r,n,o,a){var i=Math.PI/2;if(a){var s=Math.min(a,o/2,n/2),l=e+s,c=r+s,d=e+n-s,u=r+o-s;t.moveTo(e,c),l<d&&c<u?(t.arc(l,c,s,-Math.PI,-i),t.arc(d,c,s,-i,0),t.arc(d,u,s,0,i),t.arc(l,u,s,i,Math.PI)):l<d?(t.moveTo(l,r),t.arc(d,c,s,-i,i),t.arc(l,c,s,i,Math.PI+i)):c<u?(t.arc(l,c,s,-Math.PI,0),t.arc(l,u,s,0,Math.PI)):t.arc(l,c,s,-Math.PI,Math.PI),t.closePath(),t.moveTo(e,r)}else t.rect(e,r,n,o)}(t,Cu(e.x)+a/2,Cu(e.y)+a/2,Cu(e.w)-a,Cu(e.h)-a,r.borderRadius),t.closePath(),n&&(t.fillStyle=n,t.fill()),o&&a&&(t.strokeStyle=o,t.lineWidth=a,t.lineJoin="miter",t.stroke()))}(i,l.frame,s),function(t,e,r,n){var o,a=n.textAlign,i=n.color,s=!!i,l=n.font,c=e.length,d=n.textStrokeColor,u=n.textStrokeWidth,p=d&&u;if(c&&(s||p))for(r=function(t,e,r){var n=r.lineHeight,o=t.w,a=t.x;return"center"===e?a+=o/2:"end"!==e&&"right"!==e||(a+=o),{h:n,w:o,x:a,y:t.y+n/2}}(r,a,l),t.font=l.string,t.textAlign=a,t.textBaseline="middle",t.shadowBlur=n.textShadowBlur,t.shadowColor=n.textShadowColor,s&&(t.fillStyle=i),p&&(t.lineJoin="round",t.lineWidth=u,t.strokeStyle=d),o=0,c=e.length;o<c;++o)Nu(t,e[o],{stroked:p,filled:s,w:r.w,x:r.x,y:r.y+r.h*o})}(i,s.lines,l.text,s),i.restore())}});var Ou=Number.MIN_SAFE_INTEGER||-9007199254740991,zu=Number.MAX_SAFE_INTEGER||9007199254740991;function Tu(t,e,r){var n=Math.cos(r),o=Math.sin(r),a=e.x,i=e.y;return{x:a+n*(t.x-a)-o*(t.y-i),y:i+o*(t.x-a)+n*(t.y-i)}}function Ru(t,e){var r,n,o,a,i,s=zu,l=Ou,c=e.origin;for(r=0;r<t.length;++r)o=(n=t[r]).x-c.x,a=n.y-c.y,i=e.vx*o+e.vy*a,s=Math.min(s,i),l=Math.max(l,i);return{min:s,max:l}}function Lu(t,e){var r=e.x-t.x,n=e.y-t.y,o=Math.sqrt(r*r+n*n);return{vx:(e.x-t.x)/o,vy:(e.y-t.y)/o,origin:t,ln:o}}var Au=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};function Du(t,e,r){var n=e.positioner(t,e),o=n.vx,a=n.vy;if(!o&&!a)return{x:n.x,y:n.y};var i=r.w,s=r.h,l=e.rotation,c=Math.abs(i/2*Math.cos(l))+Math.abs(s/2*Math.sin(l)),d=Math.abs(i/2*Math.sin(l))+Math.abs(s/2*Math.cos(l)),u=1/Math.max(Math.abs(o),Math.abs(a));return c*=o*u,d*=a*u,c+=e.offset*o,d+=e.offset*a,{x:n.x+c,y:n.y+d}}Tr(Au.prototype,{center:function(){var t=this._rect;return{x:t.x+t.w/2,y:t.y+t.h/2}},update:function(t,e,r){this._rotation=r,this._rect={x:e.x+t.x,y:e.y+t.y,w:e.w,h:e.h}},contains:function(t){var e=this,r=e._rect;return!((t=Tu(t,e.center(),-e._rotation)).x<r.x-1||t.y<r.y-1||t.x>r.x+r.w+2||t.y>r.y+r.h+2)},intersects:function(t){var e,r,n,o=this._points(),a=t._points(),i=[Lu(o[0],o[1]),Lu(o[0],o[3])];for(this._rotation!==t._rotation&&i.push(Lu(a[0],a[1]),Lu(a[0],a[3])),e=0;e<i.length;++e)if(r=Ru(o,i[e]),n=Ru(a,i[e]),r.max<n.min||n.max<r.min)return!1;return!0},_points:function(){var t=this,e=t._rect,r=t._rotation,n=t.center();return[Tu({x:e.x,y:e.y},n,r),Tu({x:e.x+e.w,y:e.y},n,r),Tu({x:e.x+e.w,y:e.y+e.h},n,r),Tu({x:e.x,y:e.y+e.h},n,r)]}});var ju={prepare:function(t){var e,r,n,o,a,i=[];for(e=0,n=t.length;e<n;++e)for(r=0,o=t[e].length;r<o;++r)a=t[e][r],i.push(a),a.$layout={_box:new Au,_hidable:!1,_visible:!0,_set:e,_idx:a._index};return i.sort((function(t,e){var r=t.$layout,n=e.$layout;return r._idx===n._idx?n._set-r._set:n._idx-r._idx})),this.update(i),i},update:function(t){var e,r,n,o,a,i=!1;for(e=0,r=t.length;e<r;++e)o=(n=t[e]).model(),(a=n.$layout)._hidable=o&&"auto"===o.display,a._visible=n.visible(),i|=a._hidable;i&&function(t){var e,r,n,o,a,i,s;for(e=0,r=t.length;e<r;++e)(o=(n=t[e]).$layout)._visible&&(s=new Proxy(n._el,{get:(t,e)=>t.getProps([e],!0)[e]}),a=n.geometry(),i=Du(s,n.model(),a),o._box.update(i,a,n.rotation()));!function(t,e){var r,n,o,a;for(r=t.length-1;r>=0;--r)for(o=t[r].$layout,n=r-1;n>=0&&o._visible;--n)(a=t[n].$layout)._visible&&o._box.intersects(a._box)&&e(o,a)}(t,(function(t,e){var r=t._hidable,n=e._hidable;r&&n||n?e._visible=!1:r&&(t._visible=!1)}))}(t)},lookup:function(t,e){var r,n;for(r=t.length-1;r>=0;--r)if((n=t[r].$layout)&&n._visible&&n._box.contains(e))return t[r];return null},draw:function(t,e){var r,n,o,a,i,s;for(r=0,n=e.length;r<n;++r)(a=(o=e[r]).$layout)._visible&&(i=o.geometry(),s=Du(o._el,o.model(),i),a._box.update(s,i,o.rotation()),o.draw(t,s))}},Iu="$default";function Fu(t,e,r,n){if(e){var o,a=r.$context,i=r.$groups;e[i._set]&&(o=e[i._set][i._key])&&!0===Cr(o,[a,n])&&(t.$datalabels._dirty=!0,r.update(a))}}var Bu={id:"datalabels",defaults:{align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:function(t){if(yr(t))return null;var e,r,n,o=t;if(kr(t))if(yr(t.label))if(yr(t.r))for(o="",n=0,r=(e=Object.keys(t)).length;n<r;++n)o+=(0!==n?", ":"")+e[n]+": "+t[e[n]];else o=t.r;else o=t.label;return""+o},labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},beforeInit:function(t){t.$datalabels={_actives:[]}},beforeUpdate:function(t){var e=t.$datalabels;e._listened=!1,e._listeners={},e._datasets=[],e._labels=[]},afterDatasetUpdate:function(t,e,r){var n,o,a,i,s,l,c,d,u=e.index,p=t.$datalabels,f=p._datasets[u]=[],m=t.isDatasetVisible(u),h=t.data.datasets[u],b=function(t,e){var r,n,o,a=t.datalabels,i=[];return!1===a?null:(!0===a&&(a={}),e=Tr({},[e,a]),n=e.labels||{},o=Object.keys(n),delete e.labels,o.length?o.forEach((function(t){n[t]&&i.push(Tr({},[e,n[t],{_key:t}]))})):i.push(e),r=i.reduce((function(t,e){return Mr(e.listeners||{},(function(r,n){t[n]=t[n]||{},t[n][e._key||Iu]=r})),delete e.listeners,t}),{}),{labels:i,listeners:r})}(h,r),g=e.meta.data||[],v=t.ctx;for(v.save(),n=0,a=g.length;n<a;++n)if((c=g[n]).$datalabels=[],m&&c&&t.getDataVisibility(n)&&!c.skip)for(o=0,i=b.labels.length;o<i;++o)l=(s=b.labels[o])._key,(d=new Pu(s,v,c,n)).$groups={_set:u,_key:l||Iu},d.$context={active:!1,chart:t,dataIndex:n,dataset:h,datasetIndex:u},d.update(d.$context),c.$datalabels.push(d),f.push(d);v.restore(),Tr(p._listeners,b.listeners,{merger:function(t,r,n){r[t]=r[t]||{},r[t][e.index]=n[t],p._listened=!0}})},afterUpdate:function(t){t.$datalabels._labels=ju.prepare(t.$datalabels._datasets)},afterDatasetsDraw:function(t){ju.draw(t,t.$datalabels._labels)},beforeEvent:function(t,e){if(t.$datalabels._listened){var r=e.event;switch(r.type){case"mousemove":case"mouseout":!function(t,e){var r,n,o=t.$datalabels,a=o._listeners;if(a.enter||a.leave){if("mousemove"===e.type)n=ju.lookup(o._labels,e);else if("mouseout"!==e.type)return;r=o._hovered,o._hovered=n,function(t,e,r,n,o){var a,i;(r||n)&&(r?n?r!==n&&(i=a=!0):i=!0:a=!0,i&&Fu(t,e.leave,r,o),a&&Fu(t,e.enter,n,o))}(t,a,r,n,e)}}(t,r);break;case"click":!function(t,e){var r=t.$datalabels,n=r._listeners.click,o=n&&ju.lookup(r._labels,e);o&&Fu(t,n,o,e)}(t,r)}}},afterEvent:function(t){var e,r,n,o,a,i,s,l=t.$datalabels,c=function(t,e){var r,n,o,a,i=t.slice(),s=[];for(r=0,o=e.length;r<o;++r)a=e[r],-1===(n=i.indexOf(a))?s.push([a,1]):i.splice(n,1);for(r=0,o=i.length;r<o;++r)s.push([i[r],-1]);return s}(l._actives,l._actives=t.getActiveElements());for(e=0,r=c.length;e<r;++e)if((a=c[e])[1])for(n=0,o=(s=a[0].element.$datalabels||[]).length;n<o;++n)(i=s[n]).$context.active=1===a[1],i.update(i.$context);(l._dirty||c.length)&&(ju.update(l._labels),t.render()),delete l._dirty}};const Uu=function(t){var r=t.index,n=t.active,o=void 0===n||n;return e.createElement("div",{className:"d-inline-block m-2",key:r},o?e.createElement("div",{className:"color-of-badge-".concat(r%5),style:{width:"20px",height:"35px",margin:"2px"}}):e.createElement("div",{className:"color-of-badge-blank",style:{width:"15px",height:"30px",margin:"2px"}}))};var Wu={maintainAspectRatio:!1,layout:{padding:{right:60}},animation:{duration:0},plugins:{legend:{display:!1}},scales:{x:{position:"top",ticks:{callback:function(t){return"number"==typeof t?"".concat(t,"%"):t}}},xBottom:{ticks:{callback:function(t){return"number"==typeof t?"".concat(t,"%"):t}},grid:{drawOnChartArea:!1},afterDataLimits:function(t){for(var e=-999999,r=999999,n=0,o=Object.keys(Ui.instances);n<o.length;n++){var a=o[n];Ui.instances[a]&&t.chart.scales.xBottom&&(r=Math.min(Ui.instances[a].scales.x.min,r),e=Math.max(Ui.instances[a].scales.x.max,e))}t.chart.scales.xBottom.options.min=r,t.chart.scales.xBottom.options.max=e,t.chart.scales.xBottom.min=r,t.chart.scales.xBottom.max=e}},y:{ticks:{autoSkip:!1}}},indexAxis:"y"};function $u(){return e.createElement("div",{className:"d-flex justify-content-center bold-grey-12pt"},e.createElement(Ot,{xs:"auto",className:"border rounded-3 border-1 my-5 justify-content-center"},e.createElement(Tt,{className:"d-flex align-items-center"},e.createElement(Uu,{key:0,index:0}),"Client Institutions"),e.createElement(Tt,{className:"d-flex align-items-center"},e.createElement(Uu,{key:1,index:1}),"Commercial"),e.createElement(Tt,{className:"d-flex align-items-center"},e.createElement(Uu,{key:2,index:2}),"European Funding"),e.createElement(Tt,{className:"d-flex align-items-center"},e.createElement(Uu,{key:3,index:3}),"Gov/Public Bodies"),e.createElement(Tt,{className:"d-flex align-items-center"},e.createElement(Uu,{key:4,index:4}),"Other")))}const Vu=function(t){var r=t.filterSelection,n=t.setFilterSelection,o=s((0,e.useState)([]),2),a=o[0],i=o[1],l=(0,e.useMemo)((function(){return me(a)}),[a]),c=l.years,d=l.nrens,u=function(t){var e=t,r=function(t){var e=new Map;return t.forEach((function(t){var r="".concat(t.nren,"/").concat(t.year),n=e.get(r);n||(n=new Map),n.set("CLIENT INSTITUTIONS",t.client_institutions),n.set("COMMERCIAL",t.commercial),n.set("EUROPEAN FUNDING",t.european_funding),n.set("GOV/PUBLIC_BODIES",t.gov_public_bodies),n.set("OTHER",t.other),e.set(r,n)})),e}(e),n=le(new Set(e.map((function(t){return t.year})))),o=le(new Set(e.map((function(t){return t.nren})))),a=["CLIENT INSTITUTIONS","COMMERCIAL","EUROPEAN FUNDING","GOV/PUBLIC_BODIES","OTHER"],i=(0,fe.gr)(a,n),l=function(){var t=function(t,e,r){return"#"+[t,e,r].map((function(t){var e=t.toString(16);return 1===e.length?"0"+e:e})).join("")},e=new Map;return e.set("CLIENT INSTITUTIONS",t(157,40,114)),e.set("COMMERCIAL",t(241,224,79)),e.set("EUROPEAN FUNDING",t(219,42,76)),e.set("GOV/PUBLIC_BODIES",t(237,141,24)),e.set("OTHER",t(137,166,121)),e}(),c=i.map((function(t){var e=s(t,2),n=e[0],i=e[1];return{backgroundColor:l.get(n),label:n+"("+i+")",data:o.map((function(t){var e,o="".concat(t,"/").concat(i),a=r.get(o);return a&&null!==(e=a.get(n))&&void 0!==e?e:0})),stack:i,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:n==a[0],color:"grey",formatter:function(t,e){return e.dataset.stack},anchor:"start",align:"end",offset:function(t){return t.chart.chartArea.width}}}}));return{datasets:c,labels:o.map((function(t){return t.toString()}))}}(a);u.datasets.forEach((function(t){t.hidden=!r.selectedYears.includes(parseInt(t.stack))})),u.datasets.forEach((function(t){t.data=t.data.filter((function(t,e){return r.selectedNrens.includes(u.labels[e])}))})),u.labels=u.labels.filter((function(t){return r.selectedNrens.includes(t)})),(0,e.useEffect)((function(){he("/api/funding/",i,n)}),[n]);var p=e.createElement(tu,{filterOptions:{availableYears:le(c),availableNrens:le(d.values())},filterSelection:r,setFilterSelection:n}),f=r.selectedNrens.length*r.selectedYears.length*2+5;return e.createElement(As,{title:"Income Source Of NRENs per Year",description:"The graph shows the percentage share of their income that individual NRENs derived from different sources. On hovering over the graphs will give income share in that year. This can be used to compare selecting multiple years to see how the share has changed between the years.",category:Fe.Organisation,filter:p},e.createElement("div",null,e.createElement($u,null),e.createElement("div",{className:"chart-container",style:{height:"".concat(f,"rem")}},e.createElement(du,{plugins:[Bu],data:u,options:Wu})),e.createElement($u,null)))},Hu=e.forwardRef((({bsPrefix:t,className:e,striped:r,bordered:n,borderless:o,hover:a,size:i,variant:s,responsive:l,...c},d)=>{const u=Et(t,"table"),p=xt()(e,u,s&&`${u}-${s}`,i&&`${u}-${i}`,r&&`${u}-${"string"==typeof r?`striped-${r}`:"striped"}`,n&&`${u}-bordered`,o&&`${u}-borderless`,a&&`${u}-hover`),f=(0,yt.jsx)("table",{...c,className:p,ref:d});if(l){let t=`${u}-responsive`;return"string"==typeof l&&(t=`${t}-${l}`),(0,yt.jsx)("div",{className:t,children:f})}return f})),Yu=function(t){var r=t.year,n=t.active;return e.createElement("div",{className:"d-inline-block",key:r},n?e.createElement("div",{className:"rounded-pill color-of-the-year-".concat(r%9),style:{width:"75px",height:"30px",margin:"2px"}}):e.createElement("div",{className:"rounded-pill color-of-the-year-blank",style:{width:"75px",height:"30px",margin:"2px"}}))};Ui.register(Ps,Ts,is,ps,Ms,ds);const Xu=function(t){var r=t.filterSelection,n=t.setFilterSelection,o=s((0,e.useState)([]),2),a=o[0],i=o[1],l=(0,e.useMemo)((function(){return me(a)}),[a]),c=l.years,d=l.nrens,u=function(t){var e=new Map;return t.forEach((function(t){var r=e.get(t.nren);r||(r=new Map),r.set(t.year,t.fee_type||""),e.set(t.nren,r)})),e}(a.filter((function(t){return r.selectedYears.includes(t.year)&&r.selectedNrens.includes(t.nren)})));e.useEffect((function(){he("/api/charging/",i,n)}),[n]);var p=e.createElement(tu,{filterOptions:{availableYears:le(c),availableNrens:le(d.values())},filterSelection:r,setFilterSelection:n,coloredYears:!0});return e.createElement(As,{title:"Charging Mechanism of NRENs per Year",description:"The charging structure is the way in which NRENs charge their customers for the services they provide. The charging structure can be based on a flat fee, usage based fee, a combination of both, or no direct charge. By selecting multiple years and NRENs, the table can be used to compare the charging structure of NRENs.",category:Fe.Organisation,filter:p},e.createElement(Hu,{className:"charging-struct-table",striped:!0,bordered:!0,responsive:!0},e.createElement("colgroup",null,e.createElement("col",{span:1,style:{width:"10%"}}),e.createElement("col",{span:1,style:{width:"18%"}}),e.createElement("col",{span:1,style:{width:"18%"}}),e.createElement("col",{span:1,style:{width:"18%"}}),e.createElement("col",{span:1,style:{width:"18%"}}),e.createElement("col",{span:1,style:{width:"18%"}})),e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null),e.createElement("th",null,"Flat fee based on bandwidth"),e.createElement("th",null,"Usage based fee"),e.createElement("th",null,"Combination flat fee & usage basedfee "),e.createElement("th",null,"No Direct Charge"),e.createElement("th",null,"Other"))),e.createElement("tbody",null,Array.from(u.entries()).map((function(t){var r=s(t,2),n=r[0],o=r[1];return e.createElement("tr",{key:n},e.createElement("td",null,n),["flat_fee","usage_based_fee","combination","no_charge","other"].map((function(t){return e.createElement("td",{key:t},Array.from(o.entries()).map((function(r){var n=s(r,2),o=n[0],a=n[1];return e.createElement(Yu,{key:o,year:o,active:a==t})})))})))})))))},qu=function(t){var r=t.children,n=t.location;n||(n="both");var o="top"===n||"both"===n,a="bottom"===n||"both"===n;return e.createElement(e.Fragment,null,o&&e.createElement("div",{style:{paddingLeft:"33%",paddingTop:"2.5rem",paddingBottom:"1.5rem"},id:"legendtop"}),r,a&&e.createElement("div",{style:{paddingLeft:"33%",paddingTop:"1.5rem"},id:"legendbottom"}))};function Ku(t){return Ku="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ku(t)}function Qu(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Gu={id:"htmlLegend",afterUpdate:function(t,e,r){var n,o=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Qu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qu(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){s=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw a}}}}(r.containerIDs);try{var a=function(){var e=function(t,e){var r=document.getElementById(e);if(!r)return null;var n=r.querySelector("ul");return n||((n=document.createElement("ul")).style.display="flex",n.style.flexDirection="row",n.style.margin="0",n.style.padding="0",r.appendChild(n)),n}(0,n.value);if(!e)return{v:void 0};for(;e.firstChild;)e.firstChild.remove();t.options.plugins.legend.labels.generateLabels(t).forEach((function(r){var n=document.createElement("li");n.style.alignItems="center",n.style.cursor="pointer",n.style.display="flex",n.style.flexDirection="row",n.style.marginLeft="10px",n.onclick=function(){var e=t.config.type;"pie"===e||"doughnut"===e?t.toggleDataVisibility(r.index):t.setDatasetVisibility(r.datasetIndex,!t.isDatasetVisible(r.datasetIndex)),t.update()};var o=document.createElement("span");o.style.background=r.fillStyle,o.style.borderColor=r.strokeStyle,o.style.borderWidth=r.lineWidth+"px",o.style.display="inline-block",o.style.height="1rem",o.style.marginRight="10px",o.style.width="2.5rem";var a=document.createElement("p");a.style.color=r.fontColor,a.style.margin="0",a.style.padding="0",a.style.textDecoration=r.hidden?"line-through":"",a.style.fontSize="".concat(Ui.defaults.font.size,"px"),a.style.fontFamily="".concat(Ui.defaults.font.family),a.style.fontWeight="".concat(Ui.defaults.font.weight);var i=document.createTextNode(r.text);a.appendChild(i),n.appendChild(o),n.appendChild(a),e.appendChild(n)}))};for(o.s();!(n=o.n()).done;){var i=a();if("object"===Ku(i))return i.v}}catch(t){o.e(t)}finally{o.f()}}};const Zu=Gu;Ui.register(Ps,Ts,is,ps,Ms,ds);var Ju={maintainAspectRatio:!1,animation:{duration:0},plugins:{htmlLegend:{containerIDs:["legendtop","legendbottom"]},legend:{display:!1},tooltip:{callbacks:{label:function(t){var e=t.dataset.label||"";return null!==t.parsed.x&&(e+=": ".concat(t.parsed.x,"%")),e}}}},scales:{x:{position:"top",stacked:!0,ticks:{callback:function(t,e){return"".concat(10*e,"%")}}},x2:{ticks:{callback:function(t){return"number"==typeof t?"".concat(t,"%"):t}},grid:{drawOnChartArea:!1},afterDataLimits:function(t){for(var e=-999999,r=999999,n=0,o=Object.keys(Ui.instances);n<o.length;n++){var a=o[n];Ui.instances[a]&&t.chart.scales.x2&&(r=Math.min(Ui.instances[a].scales.x.min,r),e=Math.max(Ui.instances[a].scales.x.max,e))}t.chart.scales.x2.options.min=r,t.chart.scales.x2.options.max=e,t.chart.scales.x2.min=r,t.chart.scales.x2.max=e}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"};const tp=function(t){var r=t.filterSelection,n=t.setFilterSelection,o=t.roles,a=void 0!==o&&o,i=s((0,e.useState)([]),2),l=i[0],c=i[1],d=(0,e.useMemo)((function(){return me(l)}),[l]),u=d.years,p=d.nrens,f=function(t,e,r){var n;n=e?["Technical FTE","Non-technical FTE"]:["Permanent FTE","Subcontracted FTE"];var o=function(t){var e={"Technical FTE":"technical_fte","Non-technical FTE":"non_technical_fte","Permanent FTE":"permanent_fte","Subcontracted FTE":"subcontracted_fte"},o=new Map;return t.forEach((function(t){if(r===t.year){var a=t.nren,i=o.get(a);i||(i=new Map);var l=s(n,2),c=l[0],d=l[1],u=[e[c],e[d]],p=u[1],f=t[u[0]],m=t[p],h=f+m,b=100*(f/h||0),g=100*(m/h||0);b=Math.round(Math.floor(100*b))/100,g=Math.round(Math.floor(100*g))/100,i.set(c,b),i.set(d,g),o.set(a,i)}})),o}(t),a=[r],i=le(new Set(t.map((function(t){return t.nren})))).sort((function(t,e){var r=o.get(t),a=o.get(e);if(r&&a){var i=s(n,2),l=i[0],c=i[1],d={category1:r.get(l),category2:r.get(c)},u={category1:a.get(l),category2:a.get(c)};return d.category1===u.category1?u.category2-d.category1:u.category1-d.category1}return r?-1:a?1:0})),l=(0,fe.gr)(n,a).map((function(t){var e=s(t,2),r=e[0],n=e[1],a="";return"Technical FTE"===r?a="rgba(40, 40, 250, 0.8)":"Permanent FTE"===r?a="rgba(159, 129, 235, 1)":"Subcontracted FTE"===r?a="rgba(173, 216, 229, 1)":"Non-technical FTE"===r&&(a="rgba(116, 216, 242, 0.54)"),{backgroundColor:a,label:"".concat(r," (").concat(n,")"),data:i.map((function(t){var e,n=o.get(t);return n&&null!==(e=n.get(r))&&void 0!==e?e:0})),stack:n,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1}}));return{datasets:l,labels:i}}(l,a,r.selectedYears[0]);f.datasets.forEach((function(t){t.hidden=!r.selectedYears.includes(parseInt(t.stack))})),f.datasets.forEach((function(t){t.data=t.data.filter((function(t,e){return r.selectedNrens.includes(f.labels[e])}))})),f.labels=f.labels.filter((function(t){return r.selectedNrens.includes(t)})),(0,e.useEffect)((function(){he("/api/staff/",c,n)}),[n]);var m=e.createElement(tu,{max1year:!0,filterOptions:{availableYears:le(u),availableNrens:le(p.values())},filterSelection:r,setFilterSelection:n}),h=r.selectedNrens.length,b=Math.max(1.5*h,20),g=a?"Roles of NREN employees":"Types of employment for NRENs",v=a?"The graph shows the roles of NREN employees. On hovering over the graph will give the percentage of employees in that role. This graph can be used to compare, selecting multiple NRENs to see the fluctuation of roles over selected year and with other NRENs.":"The graph shows the types of employment for NREN employees. On hovering over the graphs will give the percentage of employees in that type of employment. This graph can be used to compare, selecting multiple NRENs to see the fluctuation of types of employment over selected year and with other NRENs.";return e.createElement(As,{title:g,description:v,category:Fe.Organisation,filter:m},e.createElement(qu,null,e.createElement("div",{className:"chart-container",style:{height:"".concat(b,"rem")}},e.createElement(du,{data:f,options:Ju,plugins:[Zu]}))))},ep=function(t){var r=t.filterSelection,n=t.setFilterSelection,o=s((0,e.useState)([]),2),a=o[0],i=o[1],l=(0,e.useMemo)((function(){return me(a)}),[a]),c=l.years,d=l.nrens,u=a.filter((function(t){return r.selectedYears.includes(t.year)&&r.selectedNrens.includes(t.nren)})),p=ve(u);(0,e.useEffect)((function(){he("/api/organization/sub",i,n)}),[n]);var f,m=e.createElement(tu,{filterOptions:{availableYears:le(c),availableNrens:le(d.values())},filterSelection:r,setFilterSelection:n});return e.createElement(As,{title:"NREN Suborganisations",description:"The table shows the NRENs suborganisations. You can select multiple years and NRENs to get a tabular view of NRENs suborganisations over the years.",category:Fe.Organisation,filter:m},e.createElement(Hu,{borderless:!0,className:"compendium-table"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",{className:"nren-column"},"NREN"),e.createElement("th",{className:"year-column"},"Year"),e.createElement("th",{className:"blue-column"},"Suborganisation and Role"))),e.createElement("tbody",null,(f=p,Array.from(f.entries()).map((function(t){var r=s(t,2),n=r[0],o=r[1];return Array.from(o.entries()).map((function(t,r){var o=s(t,2),a=o[0],i=o[1];return e.createElement("tr",{key:n+a,className:"dotted-border"},e.createElement("td",{className:"pt-3 nren-column text-nowrap"},0==r&&n),e.createElement("td",{className:"pt-3 year-column"},a),e.createElement("td",{className:"pt-3 blue-column"},e.createElement("ul",null,i.map((function(t){return e.createElement("li",{key:t.name},t.name," (",t.role,")")})))))}))}))))))},rp=function(t){var r=t.filterSelection,n=t.setFilterSelection,o=s((0,e.useState)([]),2),a=o[0],i=o[1],l=(0,e.useMemo)((function(){return me(a)}),[a]),c=l.years,d=l.nrens,u=a.filter((function(t){return r.selectedYears.includes(t.year)&&r.selectedNrens.includes(t.nren)})),p=ve(u);(0,e.useEffect)((function(){he("/api/organization/parent",i,n)}),[n]);var f,m=e.createElement(tu,{filterOptions:{availableYears:le(c),availableNrens:le(d.values())},filterSelection:r,setFilterSelection:n,max1year:!0});return e.createElement(As,{title:"NREN Parent Organisations",description:"The table shows the NRENs parent organisation. You can select only one year at a time and multiple NRENs. This table can be used to compare the parent organisation of NRENs.",category:Fe.Organisation,filter:m},e.createElement(Hu,{borderless:!0,className:"compendium-table"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",{className:"nren-column"},"NREN"),e.createElement("th",{className:"year-column"},"Year"),e.createElement("th",{className:"blue-column"},"Parent Organisation"))),e.createElement("tbody",null,(f=p,Array.from(f.entries()).map((function(t){var r=s(t,2),n=r[0],o=r[1];return Array.from(o.entries()).map((function(t,r){var o=s(t,2),a=o[0],i=o[1];return e.createElement("tr",{key:n+a,className:"dotted-border"},e.createElement("td",{className:"pt-3 nren-column text-nowrap"},0==r&&n),e.createElement("td",{className:"pt-3 year-column"},a),e.createElement("td",{className:"pt-3 blue-column"},i[0].name))}))}))))))},np=function(t){var r,n,o=t.filterSelection,a=t.setFilterSelection,i=s((0,e.useState)([]),2),l=i[0],c=i[1],d=(0,e.useMemo)((function(){return me(l)}),[l]),u=d.years,p=d.nrens,f=(r=l.filter((function(t){return o.selectedYears.includes(t.year)&&o.selectedNrens.includes(t.nren)})),n=new Map,r.forEach((function(t){var e=n.get(t.nren);e||(e=new Map);var r=e.get(t.year);r||(r=[]),r.push(t),e.set(t.year,r),n.set(t.nren,e)})),n);(0,e.useEffect)((function(){he("/api/ec-project/",c,a)}),[a]);var m,h=e.createElement(tu,{filterOptions:{availableYears:le(u),availableNrens:le(p.values())},filterSelection:o,setFilterSelection:a});return e.createElement(As,{title:"NREN Involvement in European Commission Projects",description:"The table shows the NRENs involvement in European Commission Projects Membership. By selecting multiple year and NRENs, the table can be used to compare the NRENs involvement in European Commission Projects Membership",category:Fe.Organisation,filter:h},e.createElement(Hu,{borderless:!0,className:"compendium-table"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",{className:"nren-column"},"NREN"),e.createElement("th",{className:"year-column"},"Year"),e.createElement("th",{className:"blue-column"},"EC Project Membership"))),e.createElement("tbody",null,(m=f,Array.from(m.entries()).map((function(t){var r=s(t,2),n=r[0],o=r[1];return Array.from(o.entries()).map((function(t,r){var o=s(t,2),a=o[0],i=o[1];return e.createElement("tr",{key:n+a,className:"dotted-border"},e.createElement("td",{className:"pt-3 nren-column text-nowrap"},0==r&&n),e.createElement("td",{className:"pt-3 year-column"},a),e.createElement("td",{className:"pt-3 blue-column"},e.createElement("ul",null,i.map((function(t){return e.createElement("li",{key:t.project},t.project)})))))}))}))))))};var op=(0,e.createContext)({show:!1,toggle:function(){}});const ap=function(t){var r=t.children,n=s((0,e.useState)(!1),2),o=n[0],a=n[1];return e.createElement(op.Provider,{value:{show:o,toggle:function(){a(!o)}}},r)};function ip(){return(ip=de(pe().mark((function t(){var e,r;return pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("/api/user");case 2:return e=t.sent,t.next=5,e.json();case 5:return r=t.sent,t.abrupt("return",r);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var sp={name:"",email:"",permissions:{admin:!1,active:!1}},lp=(0,e.createContext)({user:sp,logout:function(){}});const cp=function(t){var r=t.children,n=s((0,e.useState)(sp),2),o=n[0],a=n[1];function i(){return(i=de(pe().mark((function t(){return pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("/logout");case 2:a(sp);case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return(0,e.useEffect)((function(){(function(){return ip.apply(this,arguments)})().then((function(t){a(t)}))}),[]),e.createElement(lp.Provider,{value:{user:o,logout:function(){return i.apply(this,arguments)}}},r)},dp=function(t){var r=t.children;return e.createElement(ap,null,e.createElement(cp,null,r))},up=function(t){var r,n,o=t.filterSelection,a=t.setFilterSelection,i=s((0,e.useState)([]),2),l=i[0],c=i[1],d=(0,e.useMemo)((function(){return me(l)}),[l]),u=d.years,p=d.nrens,f=(r=l.filter((function(t){return o.selectedYears.includes(t.year)&&o.selectedNrens.includes(t.nren)})),n=new Map,r.forEach((function(t){var e=n.get(t.nren);e||(e=new Map),e.set(t.year,t),n.set(t.nren,e)})),n);(0,e.useEffect)((function(){he("/api/policy/",c,a)}),[a]);var m,h,b=e.createElement(tu,{filterOptions:{availableYears:le(u),availableNrens:le(p.values())},filterSelection:o,setFilterSelection:a});return e.createElement(As,{title:"NREN Policies",description:"The table shows the NRENs policies. By selecting multiple year and NRENs, the table can be used to compare the NRENs policies over years of selected NRENs.",category:Fe.Policy,filter:b},e.createElement(Hu,{borderless:!0,className:"compendium-table"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",{className:"nren-column"},"NREN"),e.createElement("th",{className:"year-column"},"Year"),e.createElement("th",{className:"blue-column"},"Policies"))),e.createElement("tbody",null,(m=f,h=[["acceptable_use","Acceptable Use Policy"],["connectivity","Connectivity Policy"],["data_protection","Data Protection Policy"],["environmental","Environmental Policy"],["equal_opportunity","Equal Opportunity Policy"],["privacy_notice","Privacy Notice"],["strategic_plan","Strategic Plan"]],Array.from(m.entries()).map((function(t){var r=s(t,2),n=r[0],o=r[1];return Array.from(o.entries()).map((function(t,r){var o=s(t,2),a=o[0],i=o[1];return e.createElement("tr",{key:n+a,className:"dotted-border"},e.createElement("td",{className:"pt-3 nren-column text-nowrap"},0==r&&n),e.createElement("td",{className:"pt-3 year-column"},a),e.createElement("td",{className:"pt-3 blue-column"},e.createElement("ul",null,h.map((function(t){var r=s(t,2),n=r[0],o=r[1];return!!i[n]&&e.createElement("li",{key:n},e.createElement("a",{href:i[n],target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"}},o))})))))}))}))))))},pp=function(){var t=s((0,e.useState)({selectedYears:[],selectedNrens:[]}),2),r=t[0],n=t[1];return e.createElement("div",{className:"app"},e.createElement(mt,null,e.createElement(dp,null,e.createElement(oe,null),e.createElement(ct,null,e.createElement(st,{path:"/budget",element:e.createElement(fu,{filterSelection:r,setFilterSelection:n})}),e.createElement(st,{path:"/funding",element:e.createElement(Vu,{filterSelection:r,setFilterSelection:n})}),e.createElement(st,{path:"/data/employment",element:e.createElement(tp,{filterSelection:r,setFilterSelection:n})}),e.createElement(st,{path:"/data/roles",element:e.createElement(tp,{roles:!0,filterSelection:r,setFilterSelection:n})}),e.createElement(st,{path:"/charging",element:e.createElement(Xu,{filterSelection:r,setFilterSelection:n})}),e.createElement(st,{path:"/suborganisations",element:e.createElement(ep,{filterSelection:r,setFilterSelection:n})}),e.createElement(st,{path:"/parentorganisation",element:e.createElement(rp,{filterSelection:r,setFilterSelection:n})}),e.createElement(st,{path:"/ec-projects",element:e.createElement(np,{filterSelection:r,setFilterSelection:n})}),e.createElement(st,{path:"/policy",element:e.createElement(up,{filterSelection:r,setFilterSelection:n})}),e.createElement(st,{path:"/data",element:e.createElement(bu,null)}),e.createElement(st,{path:"*",element:e.createElement(re,null)}))),e.createElement(se,null)))};var fp=o(3379),mp=o.n(fp),hp=o(7795),bp=o.n(hp),gp=o(569),vp=o.n(gp),xp=o(3565),yp=o.n(xp),wp=o(9216),kp=o.n(wp),_p=o(4589),Ep=o.n(_p),Sp=o(4666),Cp={};Cp.styleTagTransform=Ep(),Cp.setAttributes=yp(),Cp.insert=vp().bind(null,"head"),Cp.domAPI=bp(),Cp.insertStyleElement=kp(),mp()(Sp.Z,Cp),Sp.Z&&Sp.Z.locals&&Sp.Z.locals;var Mp=o(1169),Np={};Np.styleTagTransform=Ep(),Np.setAttributes=yp(),Np.insert=vp().bind(null,"head"),Np.domAPI=bp(),Np.insertStyleElement=kp(),mp()(Mp.Z,Np),Mp.Z&&Mp.Z.locals&&Mp.Z.locals;var Pp=document.getElementById("root");(0,n.s)(Pp).render(e.createElement(e.StrictMode,null,e.createElement(pp,null)))})()})(); \ No newline at end of file diff --git a/compendium_v2/static/survey-bundle.js b/compendium_v2/static/survey-bundle.js index 8db17338ef19c35f3dabe93dca628eadae138bc5..f6a5b2777d21de61dfc989820dadbba8004960d1 100644 --- a/compendium_v2/static/survey-bundle.js +++ b/compendium_v2/static/survey-bundle.js @@ -1,2 +1,2 @@ /*! For license information please see survey-bundle.js.LICENSE.txt */ -(()=>{var e={4184:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var s=o.apply(null,r);s&&e.push(s)}}else if("object"===i){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},4666:(e,t,r)=>{"use strict";r.d(t,{Z:()=>G});var n=r(8081),o=r.n(n),i=r(3645),s=r.n(i),a=r(1667),l=r.n(a),u=new URL(r(6770),r.b),c=new URL(r(2105),r.b),p=new URL(r(6199),r.b),d=new URL(r(2204),r.b),h=new URL(r(8931),r.b),f=new URL(r(7486),r.b),m=new URL(r(9609),r.b),g=new URL(r(2469),r.b),b=new URL(r(991),r.b),y=new URL(r(5122),r.b),v=new URL(r(4144),r.b),w=new URL(r(2221),r.b),x=new URL(r(2956),r.b),C=new URL(r(3460),r.b),P=new URL(r(5321),r.b),_=new URL(r(1281),r.b),S=new URL(r(6254),r.b),V=new URL(r(5647),r.b),E=new URL(r(1692),r.b),O=s()(o()),T=l()(u),R=l()(c),k=l()(p),I=l()(d),j=l()(h),D=l()(f),q=l()(m),M=l()(g),L=l()(b),A=l()(y),N=l()(v),B=l()(w),F=l()(x),z=l()(C),Q=l()(P),H=l()(_),U=l()(S),W=l()(V),J=l()(E);O.push([e.id,`@charset "UTF-8";/*!\n * Bootstrap v5.3.0 (https://getbootstrap.com/)\n * Copyright 2011-2023 The Bootstrap Authors\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n */:root,[data-bs-theme=light]{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13,110,253;--bs-secondary-rgb:108,117,125;--bs-success-rgb:25,135,84;--bs-info-rgb:13,202,240;--bs-warning-rgb:255,193,7;--bs-danger-rgb:220,53,69;--bs-light-rgb:248,249,250;--bs-dark-rgb:33,37,41;--bs-primary-text-emphasis:#052c65;--bs-secondary-text-emphasis:#2b2f32;--bs-success-text-emphasis:#0a3622;--bs-info-text-emphasis:#055160;--bs-warning-text-emphasis:#664d03;--bs-danger-text-emphasis:#58151c;--bs-light-text-emphasis:#495057;--bs-dark-text-emphasis:#495057;--bs-primary-bg-subtle:#cfe2ff;--bs-secondary-bg-subtle:#e2e3e5;--bs-success-bg-subtle:#d1e7dd;--bs-info-bg-subtle:#cff4fc;--bs-warning-bg-subtle:#fff3cd;--bs-danger-bg-subtle:#f8d7da;--bs-light-bg-subtle:#fcfcfd;--bs-dark-bg-subtle:#ced4da;--bs-primary-border-subtle:#9ec5fe;--bs-secondary-border-subtle:#c4c8cb;--bs-success-border-subtle:#a3cfbb;--bs-info-border-subtle:#9eeaf9;--bs-warning-border-subtle:#ffe69c;--bs-danger-border-subtle:#f1aeb5;--bs-light-border-subtle:#e9ecef;--bs-dark-border-subtle:#adb5bd;--bs-white-rgb:255,255,255;--bs-black-rgb:0,0,0;--bs-font-sans-serif:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--bs-font-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-color-rgb:33,37,41;--bs-body-bg:#fff;--bs-body-bg-rgb:255,255,255;--bs-emphasis-color:#000;--bs-emphasis-color-rgb:0,0,0;--bs-secondary-color:rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb:33,37,41;--bs-secondary-bg:#e9ecef;--bs-secondary-bg-rgb:233,236,239;--bs-tertiary-color:rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb:33,37,41;--bs-tertiary-bg:#f8f9fa;--bs-tertiary-bg-rgb:248,249,250;--bs-heading-color:inherit;--bs-link-color:#0d6efd;--bs-link-color-rgb:13,110,253;--bs-link-decoration:underline;--bs-link-hover-color:#0a58ca;--bs-link-hover-color-rgb:10,88,202;--bs-code-color:#d63384;--bs-highlight-bg:#fff3cd;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, 0.175);--bs-border-radius:0.375rem;--bs-border-radius-sm:0.25rem;--bs-border-radius-lg:0.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-xxl:2rem;--bs-border-radius-2xl:var(--bs-border-radius-xxl);--bs-border-radius-pill:50rem;--bs-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg:0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset:inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width:0.25rem;--bs-focus-ring-opacity:0.25;--bs-focus-ring-color:rgba(13, 110, 253, 0.25);--bs-form-valid-color:#198754;--bs-form-valid-border-color:#198754;--bs-form-invalid-color:#dc3545;--bs-form-invalid-border-color:#dc3545}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color:#adb5bd;--bs-body-color-rgb:173,181,189;--bs-body-bg:#212529;--bs-body-bg-rgb:33,37,41;--bs-emphasis-color:#fff;--bs-emphasis-color-rgb:255,255,255;--bs-secondary-color:rgba(173, 181, 189, 0.75);--bs-secondary-color-rgb:173,181,189;--bs-secondary-bg:#343a40;--bs-secondary-bg-rgb:52,58,64;--bs-tertiary-color:rgba(173, 181, 189, 0.5);--bs-tertiary-color-rgb:173,181,189;--bs-tertiary-bg:#2b3035;--bs-tertiary-bg-rgb:43,48,53;--bs-primary-text-emphasis:#6ea8fe;--bs-secondary-text-emphasis:#a7acb1;--bs-success-text-emphasis:#75b798;--bs-info-text-emphasis:#6edff6;--bs-warning-text-emphasis:#ffda6a;--bs-danger-text-emphasis:#ea868f;--bs-light-text-emphasis:#f8f9fa;--bs-dark-text-emphasis:#dee2e6;--bs-primary-bg-subtle:#031633;--bs-secondary-bg-subtle:#161719;--bs-success-bg-subtle:#051b11;--bs-info-bg-subtle:#032830;--bs-warning-bg-subtle:#332701;--bs-danger-bg-subtle:#2c0b0e;--bs-light-bg-subtle:#343a40;--bs-dark-bg-subtle:#1a1d20;--bs-primary-border-subtle:#084298;--bs-secondary-border-subtle:#41464b;--bs-success-border-subtle:#0f5132;--bs-info-border-subtle:#087990;--bs-warning-border-subtle:#997404;--bs-danger-border-subtle:#842029;--bs-light-border-subtle:#495057;--bs-dark-border-subtle:#343a40;--bs-heading-color:inherit;--bs-link-color:#6ea8fe;--bs-link-hover-color:#8bb9fe;--bs-link-color-rgb:110,168,254;--bs-link-hover-color-rgb:139,185,254;--bs-code-color:#e685b5;--bs-border-color:#495057;--bs-border-color-translucent:rgba(255, 255, 255, 0.15);--bs-form-valid-color:#75b798;--bs-form-valid-border-color:#75b798;--bs-form-invalid-color:#ea868f;--bs-form-invalid-border-color:#ea868f}*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}hr{margin:1rem 0;color:inherit;border:0;border-top:var(--bs-border-width) solid;opacity:.25}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2;color:var(--bs-heading-color)}.h1,h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){.h1,h1{font-size:2.5rem}}.h2,h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){.h2,h2{font-size:2rem}}.h3,h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){.h3,h3{font-size:1.75rem}}.h4,h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){.h4,h4{font-size:1.5rem}}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}.small,small{font-size:.875em}.mark,mark{padding:.1875em;background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1));text-decoration:underline}a:hover{--bs-link-color-rgb:var(--bs-link-hover-color-rgb)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-secondary-color);text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:calc(1.625rem + 4.5vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-1{font-size:5rem}}.display-2{font-size:calc(1.575rem + 3.9vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-2{font-size:4.5rem}}.display-3{font-size:calc(1.525rem + 3.3vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-3{font-size:4rem}}.display-4{font-size:calc(1.475rem + 2.7vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-4{font-size:3.5rem}}.display-5{font-size:calc(1.425rem + 2.1vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-5{font-size:3rem}}.display-6{font-size:calc(1.375rem + 1.5vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-6{font-size:2.5rem}}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer::before{content:"— "}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:var(--bs-body-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:.875em;color:var(--bs-secondary-color)}.container,.container-fluid,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{--bs-gutter-x:1.5rem;--bs-gutter-y:0;width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-right:auto;margin-left:auto}@media (min-width:576px){.container,.container-sm{max-width:540px}}@media (min-width:768px){.container,.container-md,.container-sm{max-width:720px}}@media (min-width:992px){.container,.container-lg,.container-md,.container-sm{max-width:960px}}@media (min-width:1200px){.container,.container-lg,.container-md,.container-sm,.container-xl{max-width:1140px}}@media (min-width:1400px){.container,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{max-width:1320px}}:root{--bs-breakpoint-xs:0;--bs-breakpoint-sm:576px;--bs-breakpoint-md:768px;--bs-breakpoint-lg:992px;--bs-breakpoint-xl:1200px;--bs-breakpoint-xxl:1400px}.row{--bs-gutter-x:1.5rem;--bs-gutter-y:0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.6666666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--bs-gutter-x:0}.g-0,.gy-0{--bs-gutter-y:0}.g-1,.gx-1{--bs-gutter-x:0.25rem}.g-1,.gy-1{--bs-gutter-y:0.25rem}.g-2,.gx-2{--bs-gutter-x:0.5rem}.g-2,.gy-2{--bs-gutter-y:0.5rem}.g-3,.gx-3{--bs-gutter-x:1rem}.g-3,.gy-3{--bs-gutter-y:1rem}.g-4,.gx-4{--bs-gutter-x:1.5rem}.g-4,.gy-4{--bs-gutter-y:1.5rem}.g-5,.gx-5{--bs-gutter-x:3rem}.g-5,.gy-5{--bs-gutter-y:3rem}@media (min-width:576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.6666666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--bs-gutter-x:0}.g-sm-0,.gy-sm-0{--bs-gutter-y:0}.g-sm-1,.gx-sm-1{--bs-gutter-x:0.25rem}.g-sm-1,.gy-sm-1{--bs-gutter-y:0.25rem}.g-sm-2,.gx-sm-2{--bs-gutter-x:0.5rem}.g-sm-2,.gy-sm-2{--bs-gutter-y:0.5rem}.g-sm-3,.gx-sm-3{--bs-gutter-x:1rem}.g-sm-3,.gy-sm-3{--bs-gutter-y:1rem}.g-sm-4,.gx-sm-4{--bs-gutter-x:1.5rem}.g-sm-4,.gy-sm-4{--bs-gutter-y:1.5rem}.g-sm-5,.gx-sm-5{--bs-gutter-x:3rem}.g-sm-5,.gy-sm-5{--bs-gutter-y:3rem}}@media (min-width:768px){.col-md{flex:1 0 0%}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.6666666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--bs-gutter-x:0}.g-md-0,.gy-md-0{--bs-gutter-y:0}.g-md-1,.gx-md-1{--bs-gutter-x:0.25rem}.g-md-1,.gy-md-1{--bs-gutter-y:0.25rem}.g-md-2,.gx-md-2{--bs-gutter-x:0.5rem}.g-md-2,.gy-md-2{--bs-gutter-y:0.5rem}.g-md-3,.gx-md-3{--bs-gutter-x:1rem}.g-md-3,.gy-md-3{--bs-gutter-y:1rem}.g-md-4,.gx-md-4{--bs-gutter-x:1.5rem}.g-md-4,.gy-md-4{--bs-gutter-y:1.5rem}.g-md-5,.gx-md-5{--bs-gutter-x:3rem}.g-md-5,.gy-md-5{--bs-gutter-y:3rem}}@media (min-width:992px){.col-lg{flex:1 0 0%}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.6666666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--bs-gutter-x:0}.g-lg-0,.gy-lg-0{--bs-gutter-y:0}.g-lg-1,.gx-lg-1{--bs-gutter-x:0.25rem}.g-lg-1,.gy-lg-1{--bs-gutter-y:0.25rem}.g-lg-2,.gx-lg-2{--bs-gutter-x:0.5rem}.g-lg-2,.gy-lg-2{--bs-gutter-y:0.5rem}.g-lg-3,.gx-lg-3{--bs-gutter-x:1rem}.g-lg-3,.gy-lg-3{--bs-gutter-y:1rem}.g-lg-4,.gx-lg-4{--bs-gutter-x:1.5rem}.g-lg-4,.gy-lg-4{--bs-gutter-y:1.5rem}.g-lg-5,.gx-lg-5{--bs-gutter-x:3rem}.g-lg-5,.gy-lg-5{--bs-gutter-y:3rem}}@media (min-width:1200px){.col-xl{flex:1 0 0%}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.6666666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--bs-gutter-x:0}.g-xl-0,.gy-xl-0{--bs-gutter-y:0}.g-xl-1,.gx-xl-1{--bs-gutter-x:0.25rem}.g-xl-1,.gy-xl-1{--bs-gutter-y:0.25rem}.g-xl-2,.gx-xl-2{--bs-gutter-x:0.5rem}.g-xl-2,.gy-xl-2{--bs-gutter-y:0.5rem}.g-xl-3,.gx-xl-3{--bs-gutter-x:1rem}.g-xl-3,.gy-xl-3{--bs-gutter-y:1rem}.g-xl-4,.gx-xl-4{--bs-gutter-x:1.5rem}.g-xl-4,.gy-xl-4{--bs-gutter-y:1.5rem}.g-xl-5,.gx-xl-5{--bs-gutter-x:3rem}.g-xl-5,.gy-xl-5{--bs-gutter-y:3rem}}@media (min-width:1400px){.col-xxl{flex:1 0 0%}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.6666666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--bs-gutter-x:0}.g-xxl-0,.gy-xxl-0{--bs-gutter-y:0}.g-xxl-1,.gx-xxl-1{--bs-gutter-x:0.25rem}.g-xxl-1,.gy-xxl-1{--bs-gutter-y:0.25rem}.g-xxl-2,.gx-xxl-2{--bs-gutter-x:0.5rem}.g-xxl-2,.gy-xxl-2{--bs-gutter-y:0.5rem}.g-xxl-3,.gx-xxl-3{--bs-gutter-x:1rem}.g-xxl-3,.gy-xxl-3{--bs-gutter-y:1rem}.g-xxl-4,.gx-xxl-4{--bs-gutter-x:1.5rem}.g-xxl-4,.gy-xxl-4{--bs-gutter-y:1.5rem}.g-xxl-5,.gx-xxl-5{--bs-gutter-x:3rem}.g-xxl-5,.gy-xxl-5{--bs-gutter-y:3rem}}.table{--bs-table-color-type:initial;--bs-table-bg-type:initial;--bs-table-color-state:initial;--bs-table-bg-state:initial;--bs-table-color:var(--bs-body-color);--bs-table-bg:var(--bs-body-bg);--bs-table-border-color:var(--bs-border-color);--bs-table-accent-bg:transparent;--bs-table-striped-color:var(--bs-body-color);--bs-table-striped-bg:rgba(0, 0, 0, 0.05);--bs-table-active-color:var(--bs-body-color);--bs-table-active-bg:rgba(0, 0, 0, 0.1);--bs-table-hover-color:var(--bs-body-color);--bs-table-hover-bg:rgba(0, 0, 0, 0.075);width:100%;margin-bottom:1rem;vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:.5rem .5rem;color:var(--bs-table-color-state,var(--bs-table-color-type,var(--bs-table-color)));background-color:var(--bs-table-bg);border-bottom-width:var(--bs-border-width);box-shadow:inset 0 0 0 9999px var(--bs-table-bg-state,var(--bs-table-bg-type,var(--bs-table-accent-bg)))}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table-group-divider{border-top:calc(var(--bs-border-width) * 2) solid currentcolor}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem .25rem}.table-bordered>:not(caption)>*{border-width:var(--bs-border-width) 0}.table-bordered>:not(caption)>*>*{border-width:0 var(--bs-border-width)}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-color-type:var(--bs-table-striped-color);--bs-table-bg-type:var(--bs-table-striped-bg)}.table-striped-columns>:not(caption)>tr>:nth-child(2n){--bs-table-color-type:var(--bs-table-striped-color);--bs-table-bg-type:var(--bs-table-striped-bg)}.table-active{--bs-table-color-state:var(--bs-table-active-color);--bs-table-bg-state:var(--bs-table-active-bg)}.table-hover>tbody>tr:hover>*{--bs-table-color-state:var(--bs-table-hover-color);--bs-table-bg-state:var(--bs-table-hover-bg)}.table-primary{--bs-table-color:#000;--bs-table-bg:#cfe2ff;--bs-table-border-color:#bacbe6;--bs-table-striped-bg:#c5d7f2;--bs-table-striped-color:#000;--bs-table-active-bg:#bacbe6;--bs-table-active-color:#000;--bs-table-hover-bg:#bfd1ec;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-secondary{--bs-table-color:#000;--bs-table-bg:#e2e3e5;--bs-table-border-color:#cbccce;--bs-table-striped-bg:#d7d8da;--bs-table-striped-color:#000;--bs-table-active-bg:#cbccce;--bs-table-active-color:#000;--bs-table-hover-bg:#d1d2d4;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-success{--bs-table-color:#000;--bs-table-bg:#d1e7dd;--bs-table-border-color:#bcd0c7;--bs-table-striped-bg:#c7dbd2;--bs-table-striped-color:#000;--bs-table-active-bg:#bcd0c7;--bs-table-active-color:#000;--bs-table-hover-bg:#c1d6cc;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-info{--bs-table-color:#000;--bs-table-bg:#cff4fc;--bs-table-border-color:#badce3;--bs-table-striped-bg:#c5e8ef;--bs-table-striped-color:#000;--bs-table-active-bg:#badce3;--bs-table-active-color:#000;--bs-table-hover-bg:#bfe2e9;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-warning{--bs-table-color:#000;--bs-table-bg:#fff3cd;--bs-table-border-color:#e6dbb9;--bs-table-striped-bg:#f2e7c3;--bs-table-striped-color:#000;--bs-table-active-bg:#e6dbb9;--bs-table-active-color:#000;--bs-table-hover-bg:#ece1be;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-danger{--bs-table-color:#000;--bs-table-bg:#f8d7da;--bs-table-border-color:#dfc2c4;--bs-table-striped-bg:#eccccf;--bs-table-striped-color:#000;--bs-table-active-bg:#dfc2c4;--bs-table-active-color:#000;--bs-table-hover-bg:#e5c7ca;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-light{--bs-table-color:#000;--bs-table-bg:#f8f9fa;--bs-table-border-color:#dfe0e1;--bs-table-striped-bg:#ecedee;--bs-table-striped-color:#000;--bs-table-active-bg:#dfe0e1;--bs-table-active-color:#000;--bs-table-hover-bg:#e5e6e7;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-dark{--bs-table-color:#fff;--bs-table-bg:#212529;--bs-table-border-color:#373b3e;--bs-table-striped-bg:#2c3034;--bs-table-striped-color:#fff;--bs-table-active-bg:#373b3e;--bs-table-active-color:#fff;--bs-table-hover-bg:#323539;--bs-table-hover-color:#fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width:575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.form-label{margin-bottom:.5rem}.col-form-label{padding-top:calc(.375rem + var(--bs-border-width));padding-bottom:calc(.375rem + var(--bs-border-width));margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + var(--bs-border-width));padding-bottom:calc(.5rem + var(--bs-border-width));font-size:1.25rem}.col-form-label-sm{padding-top:calc(.25rem + var(--bs-border-width));padding-bottom:calc(.25rem + var(--bs-border-width));font-size:.875rem}.form-text{margin-top:.25rem;font-size:.875em;color:var(--bs-secondary-color)}.form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);background-color:var(--bs-body-bg);background-clip:padding-box;border:var(--bs-border-width) solid var(--bs-border-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--bs-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:var(--bs-body-color);background-color:var(--bs-body-bg);border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.form-control::-webkit-date-and-time-value{min-width:85px;height:1.5em;margin:0}.form-control::-webkit-datetime-edit{display:block;padding:0}.form-control::-moz-placeholder{color:var(--bs-secondary-color);opacity:1}.form-control::placeholder{color:var(--bs-secondary-color);opacity:1}.form-control:disabled{background-color:var(--bs-secondary-bg);opacity:1}.form-control::-webkit-file-upload-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;-webkit-transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control::-webkit-file-upload-button{-webkit-transition:none;transition:none}.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button{background-color:var(--bs-secondary-bg)}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:var(--bs-secondary-bg)}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;line-height:1.5;color:var(--bs-body-color);background-color:transparent;border:solid transparent;border-width:var(--bs-border-width) 0}.form-control-plaintext:focus{outline:0}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm{padding-right:0;padding-left:0}.form-control-sm{min-height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2));padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-control-sm::-webkit-file-upload-button{padding:.25rem .5rem;margin:-.25rem -.5rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}.form-control-sm::file-selector-button{padding:.25rem .5rem;margin:-.25rem -.5rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}.form-control-lg{min-height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.form-control-lg::-webkit-file-upload-button{padding:.5rem 1rem;margin:-.5rem -1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.form-control-lg::file-selector-button{padding:.5rem 1rem;margin:-.5rem -1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}textarea.form-control{min-height:calc(1.5em + .75rem + calc(var(--bs-border-width) * 2))}textarea.form-control-sm{min-height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2))}textarea.form-control-lg{min-height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2))}.form-control-color{width:3rem;height:calc(1.5em + .75rem + calc(var(--bs-border-width) * 2));padding:.375rem}.form-control-color:not(:disabled):not([readonly]){cursor:pointer}.form-control-color::-moz-color-swatch{border:0!important;border-radius:var(--bs-border-radius)}.form-control-color::-webkit-color-swatch{border:0!important;border-radius:var(--bs-border-radius)}.form-control-color.form-control-sm{height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2))}.form-control-color.form-control-lg{height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2))}.form-select{--bs-form-select-bg-img:url(${T});display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);background-color:var(--bs-body-bg);background-image:var(--bs-form-select-bg-img),var(--bs-form-select-bg-icon,none);background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.form-select{transition:none}}.form-select:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.form-select[multiple],.form-select[size]:not([size="1"]){padding-right:.75rem;background-image:none}.form-select:disabled{background-color:var(--bs-secondary-bg)}.form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 var(--bs-body-color)}.form-select-sm{padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}[data-bs-theme=dark] .form-select{--bs-form-select-bg-img:url(${R})}.form-check{display:block;min-height:1.5rem;padding-left:1.5em;margin-bottom:.125rem}.form-check .form-check-input{float:left;margin-left:-1.5em}.form-check-reverse{padding-right:1.5em;padding-left:0;text-align:right}.form-check-reverse .form-check-input{float:right;margin-right:-1.5em;margin-left:0}.form-check-input{--bs-form-check-bg:var(--bs-body-bg);width:1em;height:1em;margin-top:.25em;vertical-align:top;background-color:var(--bs-form-check-bg);background-image:var(--bs-form-check-bg-image);background-repeat:no-repeat;background-position:center;background-size:contain;border:var(--bs-border-width) solid var(--bs-border-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}.form-check-input[type=checkbox]{border-radius:.25em}.form-check-input[type=radio]{border-radius:50%}.form-check-input:active{filter:brightness(90%)}.form-check-input:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.form-check-input:checked{background-color:#0d6efd;border-color:#0d6efd}.form-check-input:checked[type=checkbox]{--bs-form-check-bg-image:url(${k})}.form-check-input:checked[type=radio]{--bs-form-check-bg-image:url(${I})}.form-check-input[type=checkbox]:indeterminate{background-color:#0d6efd;border-color:#0d6efd;--bs-form-check-bg-image:url(${j})}.form-check-input:disabled{pointer-events:none;filter:none;opacity:.5}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{cursor:default;opacity:.5}.form-switch{padding-left:2.5em}.form-switch .form-check-input{--bs-form-switch-bg:url(${D});width:2em;margin-left:-2.5em;background-image:var(--bs-form-switch-bg);background-position:left center;border-radius:2em;transition:background-position .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-switch .form-check-input{transition:none}}.form-switch .form-check-input:focus{--bs-form-switch-bg:url(${q})}.form-switch .form-check-input:checked{background-position:right center;--bs-form-switch-bg:url(${M})}.form-switch.form-check-reverse{padding-right:2.5em;padding-left:0}.form-switch.form-check-reverse .form-check-input{margin-right:-2.5em;margin-left:0}.form-check-inline{display:inline-block;margin-right:1rem}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check:disabled+.btn,.btn-check[disabled]+.btn{pointer-events:none;filter:none;opacity:.65}[data-bs-theme=dark] .form-switch .form-check-input:not(:checked):not(:focus){--bs-form-switch-bg:url(${L})}.form-range{width:100%;height:1.5rem;padding:0;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.form-range:focus{outline:0}.form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem rgba(13,110,253,.25)}.form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem rgba(13,110,253,.25)}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#0d6efd;border:0;border-radius:1rem;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.form-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.form-range::-webkit-slider-thumb:active{background-color:#b6d4fe}.form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-tertiary-bg);border-color:transparent;border-radius:1rem}.form-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#0d6efd;border:0;border-radius:1rem;-moz-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.form-range::-moz-range-thumb{-moz-transition:none;transition:none}}.form-range::-moz-range-thumb:active{background-color:#b6d4fe}.form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-tertiary-bg);border-color:transparent;border-radius:1rem}.form-range:disabled{pointer-events:none}.form-range:disabled::-webkit-slider-thumb{background-color:var(--bs-secondary-color)}.form-range:disabled::-moz-range-thumb{background-color:var(--bs-secondary-color)}.form-floating{position:relative}.form-floating>.form-control,.form-floating>.form-control-plaintext,.form-floating>.form-select{height:calc(3.5rem + calc(var(--bs-border-width) * 2));min-height:calc(3.5rem + calc(var(--bs-border-width) * 2));line-height:1.25}.form-floating>label{position:absolute;top:0;left:0;z-index:2;height:100%;padding:1rem .75rem;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border:var(--bs-border-width) solid transparent;transform-origin:0 0;transition:opacity .1s ease-in-out,transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.form-floating>label{transition:none}}.form-floating>.form-control,.form-floating>.form-control-plaintext{padding:1rem .75rem}.form-floating>.form-control-plaintext::-moz-placeholder,.form-floating>.form-control::-moz-placeholder{color:transparent}.form-floating>.form-control-plaintext::placeholder,.form-floating>.form-control::placeholder{color:transparent}.form-floating>.form-control-plaintext:not(:-moz-placeholder-shown),.form-floating>.form-control:not(:-moz-placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control-plaintext:focus,.form-floating>.form-control-plaintext:not(:placeholder-shown),.form-floating>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control-plaintext:-webkit-autofill,.form-floating>.form-control:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-select{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:not(:-moz-placeholder-shown)~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translateX(.15rem)}.form-floating>.form-control-plaintext~label,.form-floating>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-floating>.form-select~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translateX(.15rem)}.form-floating>.form-control:not(:-moz-placeholder-shown)~label::after{position:absolute;inset:1rem 0.375rem;z-index:-1;height:1.5em;content:"";background-color:var(--bs-body-bg);border-radius:var(--bs-border-radius)}.form-floating>.form-control-plaintext~label::after,.form-floating>.form-control:focus~label::after,.form-floating>.form-control:not(:placeholder-shown)~label::after,.form-floating>.form-select~label::after{position:absolute;inset:1rem 0.375rem;z-index:-1;height:1.5em;content:"";background-color:var(--bs-body-bg);border-radius:var(--bs-border-radius)}.form-floating>.form-control:-webkit-autofill~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translateX(.15rem)}.form-floating>.form-control-plaintext~label{border-width:var(--bs-border-width) 0}.form-floating>:disabled~label{color:#6c757d}.form-floating>:disabled~label::after{background-color:var(--bs-secondary-bg)}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-floating,.input-group>.form-select{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus,.input-group>.form-floating:focus-within,.input-group>.form-select:focus{z-index:5}.input-group .btn{position:relative;z-index:2}.input-group .btn:focus{z-index:5}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);text-align:center;white-space:nowrap;background-color:var(--bs-tertiary-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius)}.input-group-lg>.btn,.input-group-lg>.form-control,.input-group-lg>.form-select,.input-group-lg>.input-group-text{padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.input-group-sm>.btn,.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text{padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.input-group-lg>.form-select,.input-group-sm>.form-select{padding-right:3rem}.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select,.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select,.input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:calc(var(--bs-border-width) * -1);border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.form-floating:not(:first-child)>.form-control,.input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-valid-color)}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-success);border-radius:var(--bs-border-radius)}.is-valid~.valid-feedback,.is-valid~.valid-tooltip,.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip{display:block}.form-control.is-valid,.was-validated .form-control:valid{border-color:var(--bs-form-valid-border-color);padding-right:calc(1.5em + .75rem);background-image:url(${A});background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-valid:focus,.was-validated .form-control:valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.form-select.is-valid,.was-validated .form-select:valid{border-color:var(--bs-form-valid-border-color)}.form-select.is-valid:not([multiple]):not([size]),.form-select.is-valid:not([multiple])[size="1"],.was-validated .form-select:valid:not([multiple]):not([size]),.was-validated .form-select:valid:not([multiple])[size="1"]{--bs-form-select-bg-icon:url(${A});padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.form-select.is-valid:focus,.was-validated .form-select:valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.form-control-color.is-valid,.was-validated .form-control-color:valid{width:calc(3rem + calc(1.5em + .75rem))}.form-check-input.is-valid,.was-validated .form-check-input:valid{border-color:var(--bs-form-valid-border-color)}.form-check-input.is-valid:checked,.was-validated .form-check-input:valid:checked{background-color:var(--bs-form-valid-color)}.form-check-input.is-valid:focus,.was-validated .form-check-input:valid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:var(--bs-form-valid-color)}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.input-group>.form-control:not(:focus).is-valid,.input-group>.form-floating:not(:focus-within).is-valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-control:not(:focus):valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.was-validated .input-group>.form-select:not(:focus):valid{z-index:3}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-invalid-color)}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-danger);border-radius:var(--bs-border-radius)}.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip,.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip{display:block}.form-control.is-invalid,.was-validated .form-control:invalid{border-color:var(--bs-form-invalid-border-color);padding-right:calc(1.5em + .75rem);background-image:url(${N});background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-invalid:focus,.was-validated .form-control:invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.form-select.is-invalid,.was-validated .form-select:invalid{border-color:var(--bs-form-invalid-border-color)}.form-select.is-invalid:not([multiple]):not([size]),.form-select.is-invalid:not([multiple])[size="1"],.was-validated .form-select:invalid:not([multiple]):not([size]),.was-validated .form-select:invalid:not([multiple])[size="1"]{--bs-form-select-bg-icon:url(${N});padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.form-select.is-invalid:focus,.was-validated .form-select:invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.form-control-color.is-invalid,.was-validated .form-control-color:invalid{width:calc(3rem + calc(1.5em + .75rem))}.form-check-input.is-invalid,.was-validated .form-check-input:invalid{border-color:var(--bs-form-invalid-border-color)}.form-check-input.is-invalid:checked,.was-validated .form-check-input:invalid:checked{background-color:var(--bs-form-invalid-color)}.form-check-input.is-invalid:focus,.was-validated .form-check-input:invalid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:var(--bs-form-invalid-color)}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.input-group>.form-control:not(:focus).is-invalid,.input-group>.form-floating:not(:focus-within).is-invalid,.input-group>.form-select:not(:focus).is-invalid,.was-validated .input-group>.form-control:not(:focus):invalid,.was-validated .input-group>.form-floating:not(:focus-within):invalid,.was-validated .input-group>.form-select:not(:focus):invalid{z-index:4}.btn{--bs-btn-padding-x:0.75rem;--bs-btn-padding-y:0.375rem;--bs-btn-font-family: ;--bs-btn-font-size:1rem;--bs-btn-font-weight:400;--bs-btn-line-height:1.5;--bs-btn-color:var(--bs-body-color);--bs-btn-bg:transparent;--bs-btn-border-width:var(--bs-border-width);--bs-btn-border-color:transparent;--bs-btn-border-radius:var(--bs-border-radius);--bs-btn-hover-border-color:transparent;--bs-btn-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.15),0 1px 1px rgba(0, 0, 0, 0.075);--bs-btn-disabled-opacity:0.65;--bs-btn-focus-box-shadow:0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,.btn.active,.btn.show,.btn:first-child:active,:not(.btn-check)+.btn:active{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible,.btn:first-child:active:focus-visible,:not(.btn-check)+.btn:active:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn.disabled,.btn:disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color:#fff;--bs-btn-bg:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0b5ed7;--bs-btn-hover-border-color:#0a58ca;--bs-btn-focus-shadow-rgb:49,132,253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#0a58ca;--bs-btn-active-border-color:#0a53be;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#0d6efd;--bs-btn-disabled-border-color:#0d6efd}.btn-secondary{--bs-btn-color:#fff;--bs-btn-bg:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#5c636a;--bs-btn-hover-border-color:#565e64;--bs-btn-focus-shadow-rgb:130,138,145;--bs-btn-active-color:#fff;--bs-btn-active-bg:#565e64;--bs-btn-active-border-color:#51585e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#6c757d;--bs-btn-disabled-border-color:#6c757d}.btn-success{--bs-btn-color:#fff;--bs-btn-bg:#198754;--bs-btn-border-color:#198754;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#157347;--bs-btn-hover-border-color:#146c43;--bs-btn-focus-shadow-rgb:60,153,110;--bs-btn-active-color:#fff;--bs-btn-active-bg:#146c43;--bs-btn-active-border-color:#13653f;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#198754;--bs-btn-disabled-border-color:#198754}.btn-info{--bs-btn-color:#000;--bs-btn-bg:#0dcaf0;--bs-btn-border-color:#0dcaf0;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#31d2f2;--bs-btn-hover-border-color:#25cff2;--bs-btn-focus-shadow-rgb:11,172,204;--bs-btn-active-color:#000;--bs-btn-active-bg:#3dd5f3;--bs-btn-active-border-color:#25cff2;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#0dcaf0;--bs-btn-disabled-border-color:#0dcaf0}.btn-warning{--bs-btn-color:#000;--bs-btn-bg:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#ffca2c;--bs-btn-hover-border-color:#ffc720;--bs-btn-focus-shadow-rgb:217,164,6;--bs-btn-active-color:#000;--bs-btn-active-bg:#ffcd39;--bs-btn-active-border-color:#ffc720;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#ffc107;--bs-btn-disabled-border-color:#ffc107}.btn-danger{--bs-btn-color:#fff;--bs-btn-bg:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#bb2d3b;--bs-btn-hover-border-color:#b02a37;--bs-btn-focus-shadow-rgb:225,83,97;--bs-btn-active-color:#fff;--bs-btn-active-bg:#b02a37;--bs-btn-active-border-color:#a52834;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#dc3545;--bs-btn-disabled-border-color:#dc3545}.btn-light{--bs-btn-color:#000;--bs-btn-bg:#f8f9fa;--bs-btn-border-color:#f8f9fa;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#d3d4d5;--bs-btn-hover-border-color:#c6c7c8;--bs-btn-focus-shadow-rgb:211,212,213;--bs-btn-active-color:#000;--bs-btn-active-bg:#c6c7c8;--bs-btn-active-border-color:#babbbc;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#f8f9fa;--bs-btn-disabled-border-color:#f8f9fa}.btn-dark{--bs-btn-color:#fff;--bs-btn-bg:#212529;--bs-btn-border-color:#212529;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#424649;--bs-btn-hover-border-color:#373b3e;--bs-btn-focus-shadow-rgb:66,70,73;--bs-btn-active-color:#fff;--bs-btn-active-bg:#4d5154;--bs-btn-active-border-color:#373b3e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#212529;--bs-btn-disabled-border-color:#212529}.btn-outline-primary{--bs-btn-color:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0d6efd;--bs-btn-hover-border-color:#0d6efd;--bs-btn-focus-shadow-rgb:13,110,253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#0d6efd;--bs-btn-active-border-color:#0d6efd;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#0d6efd;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#0d6efd;--bs-gradient:none}.btn-outline-secondary{--bs-btn-color:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#6c757d;--bs-btn-hover-border-color:#6c757d;--bs-btn-focus-shadow-rgb:108,117,125;--bs-btn-active-color:#fff;--bs-btn-active-bg:#6c757d;--bs-btn-active-border-color:#6c757d;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#6c757d;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#6c757d;--bs-gradient:none}.btn-outline-success{--bs-btn-color:#198754;--bs-btn-border-color:#198754;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#198754;--bs-btn-hover-border-color:#198754;--bs-btn-focus-shadow-rgb:25,135,84;--bs-btn-active-color:#fff;--bs-btn-active-bg:#198754;--bs-btn-active-border-color:#198754;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#198754;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#198754;--bs-gradient:none}.btn-outline-info{--bs-btn-color:#0dcaf0;--bs-btn-border-color:#0dcaf0;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#0dcaf0;--bs-btn-hover-border-color:#0dcaf0;--bs-btn-focus-shadow-rgb:13,202,240;--bs-btn-active-color:#000;--bs-btn-active-bg:#0dcaf0;--bs-btn-active-border-color:#0dcaf0;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#0dcaf0;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#0dcaf0;--bs-gradient:none}.btn-outline-warning{--bs-btn-color:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#ffc107;--bs-btn-hover-border-color:#ffc107;--bs-btn-focus-shadow-rgb:255,193,7;--bs-btn-active-color:#000;--bs-btn-active-bg:#ffc107;--bs-btn-active-border-color:#ffc107;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#ffc107;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#ffc107;--bs-gradient:none}.btn-outline-danger{--bs-btn-color:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#dc3545;--bs-btn-hover-border-color:#dc3545;--bs-btn-focus-shadow-rgb:220,53,69;--bs-btn-active-color:#fff;--bs-btn-active-bg:#dc3545;--bs-btn-active-border-color:#dc3545;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#dc3545;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#dc3545;--bs-gradient:none}.btn-outline-light{--bs-btn-color:#f8f9fa;--bs-btn-border-color:#f8f9fa;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#f8f9fa;--bs-btn-hover-border-color:#f8f9fa;--bs-btn-focus-shadow-rgb:248,249,250;--bs-btn-active-color:#000;--bs-btn-active-bg:#f8f9fa;--bs-btn-active-border-color:#f8f9fa;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#f8f9fa;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#f8f9fa;--bs-gradient:none}.btn-outline-dark{--bs-btn-color:#212529;--bs-btn-border-color:#212529;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#212529;--bs-btn-hover-border-color:#212529;--bs-btn-focus-shadow-rgb:33,37,41;--bs-btn-active-color:#fff;--bs-btn-active-bg:#212529;--bs-btn-active-border-color:#212529;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#212529;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#212529;--bs-gradient:none}.btn-link{--bs-btn-font-weight:400;--bs-btn-color:var(--bs-link-color);--bs-btn-bg:transparent;--bs-btn-border-color:transparent;--bs-btn-hover-color:var(--bs-link-hover-color);--bs-btn-hover-border-color:transparent;--bs-btn-active-color:var(--bs-link-hover-color);--bs-btn-active-border-color:transparent;--bs-btn-disabled-color:#6c757d;--bs-btn-disabled-border-color:transparent;--bs-btn-box-shadow:0 0 0 #000;--bs-btn-focus-shadow-rgb:49,132,253;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-group-lg>.btn,.btn-lg{--bs-btn-padding-y:0.5rem;--bs-btn-padding-x:1rem;--bs-btn-font-size:1.25rem;--bs-btn-border-radius:var(--bs-border-radius-lg)}.btn-group-sm>.btn,.btn-sm{--bs-btn-padding-y:0.25rem;--bs-btn-padding-x:0.5rem;--bs-btn-font-size:0.875rem;--bs-btn-border-radius:var(--bs-border-radius-sm)}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion:reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media (prefers-reduced-motion:reduce){.collapsing.collapse-horizontal{transition:none}}.dropdown,.dropdown-center,.dropend,.dropstart,.dropup,.dropup-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty::after{margin-left:0}.dropdown-menu{--bs-dropdown-zindex:1000;--bs-dropdown-min-width:10rem;--bs-dropdown-padding-x:0;--bs-dropdown-padding-y:0.5rem;--bs-dropdown-spacer:0.125rem;--bs-dropdown-font-size:1rem;--bs-dropdown-color:var(--bs-body-color);--bs-dropdown-bg:var(--bs-body-bg);--bs-dropdown-border-color:var(--bs-border-color-translucent);--bs-dropdown-border-radius:var(--bs-border-radius);--bs-dropdown-border-width:var(--bs-border-width);--bs-dropdown-inner-border-radius:calc(var(--bs-border-radius) - var(--bs-border-width));--bs-dropdown-divider-bg:var(--bs-border-color-translucent);--bs-dropdown-divider-margin-y:0.5rem;--bs-dropdown-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-dropdown-link-color:var(--bs-body-color);--bs-dropdown-link-hover-color:var(--bs-body-color);--bs-dropdown-link-hover-bg:var(--bs-tertiary-bg);--bs-dropdown-link-active-color:#fff;--bs-dropdown-link-active-bg:#0d6efd;--bs-dropdown-link-disabled-color:var(--bs-tertiary-color);--bs-dropdown-item-padding-x:1rem;--bs-dropdown-item-padding-y:0.25rem;--bs-dropdown-header-color:#6c757d;--bs-dropdown-header-padding-x:1rem;--bs-dropdown-header-padding-y:0.5rem;position:absolute;z-index:var(--bs-dropdown-zindex);display:none;min-width:var(--bs-dropdown-min-width);padding:var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);margin:0;font-size:var(--bs-dropdown-font-size);color:var(--bs-dropdown-color);text-align:left;list-style:none;background-color:var(--bs-dropdown-bg);background-clip:padding-box;border:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);border-radius:var(--bs-dropdown-border-radius)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--bs-dropdown-spacer)}.dropdown-menu-start{--bs-position:start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position:end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width:576px){.dropdown-menu-sm-start{--bs-position:start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position:end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width:768px){.dropdown-menu-md-start{--bs-position:start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position:end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width:992px){.dropdown-menu-lg-start{--bs-position:start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position:end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width:1200px){.dropdown-menu-xl-start{--bs-position:start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position:end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width:1400px){.dropdown-menu-xxl-start{--bs-position:start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position:end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--bs-dropdown-spacer)}.dropup .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty::after{margin-left:0}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--bs-dropdown-spacer)}.dropend .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropend .dropdown-toggle:empty::after{margin-left:0}.dropend .dropdown-toggle::after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--bs-dropdown-spacer)}.dropstart .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropstart .dropdown-toggle::after{display:none}.dropstart .dropdown-toggle::before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropstart .dropdown-toggle:empty::after{margin-left:0}.dropstart .dropdown-toggle::before{vertical-align:0}.dropdown-divider{height:0;margin:var(--bs-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--bs-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--bs-dropdown-link-color);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0;border-radius:var(--bs-dropdown-item-border-radius,0)}.dropdown-item:focus,.dropdown-item:hover{color:var(--bs-dropdown-link-hover-color);background-color:var(--bs-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--bs-dropdown-link-active-color);text-decoration:none;background-color:var(--bs-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--bs-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--bs-dropdown-header-padding-y) var(--bs-dropdown-header-padding-x);margin-bottom:0;font-size:.875rem;color:var(--bs-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);color:var(--bs-dropdown-link-color)}.dropdown-menu-dark{--bs-dropdown-color:#dee2e6;--bs-dropdown-bg:#343a40;--bs-dropdown-border-color:var(--bs-border-color-translucent);--bs-dropdown-box-shadow: ;--bs-dropdown-link-color:#dee2e6;--bs-dropdown-link-hover-color:#fff;--bs-dropdown-divider-bg:var(--bs-border-color-translucent);--bs-dropdown-link-hover-bg:rgba(255, 255, 255, 0.15);--bs-dropdown-link-active-color:#fff;--bs-dropdown-link-active-bg:#0d6efd;--bs-dropdown-link-disabled-color:#adb5bd;--bs-dropdown-header-color:#adb5bd}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;flex:1 1 auto}.btn-group-vertical>.btn-check:checked+.btn,.btn-group-vertical>.btn-check:focus+.btn,.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn-check:checked+.btn,.btn-group>.btn-check:focus+.btn,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group{border-radius:var(--bs-border-radius)}.btn-group>.btn-group:not(:first-child),.btn-group>:not(.btn-check:first-child)+.btn{margin-left:calc(var(--bs-border-width) * -1)}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn.dropdown-toggle-split:first-child,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:nth-child(n+3),.btn-group>:not(.btn-check)+.btn{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split::after,.dropend .dropdown-toggle-split::after,.dropup .dropdown-toggle-split::after{margin-left:0}.dropstart .dropdown-toggle-split::before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn-group:not(:first-child),.btn-group-vertical>.btn:not(:first-child){margin-top:calc(var(--bs-border-width) * -1)}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn~.btn{border-top-left-radius:0;border-top-right-radius:0}.nav{--bs-nav-link-padding-x:1rem;--bs-nav-link-padding-y:0.5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color:var(--bs-link-color);--bs-nav-link-hover-color:var(--bs-link-hover-color);--bs-nav-link-disabled-color:var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);font-size:var(--bs-nav-link-font-size);font-weight:var(--bs-nav-link-font-weight);color:var(--bs-nav-link-color);text-decoration:none;background:0 0;border:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}@media (prefers-reduced-motion:reduce){.nav-link{transition:none}}.nav-link:focus,.nav-link:hover{color:var(--bs-nav-link-hover-color)}.nav-link:focus-visible{outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.nav-link.disabled{color:var(--bs-nav-link-disabled-color);pointer-events:none;cursor:default}.nav-tabs{--bs-nav-tabs-border-width:var(--bs-border-width);--bs-nav-tabs-border-color:var(--bs-border-color);--bs-nav-tabs-border-radius:var(--bs-border-radius);--bs-nav-tabs-link-hover-border-color:var(--bs-secondary-bg) var(--bs-secondary-bg) var(--bs-border-color);--bs-nav-tabs-link-active-color:var(--bs-emphasis-color);--bs-nav-tabs-link-active-bg:var(--bs-body-bg);--bs-nav-tabs-link-active-border-color:var(--bs-border-color) var(--bs-border-color) var(--bs-body-bg);border-bottom:var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color)}.nav-tabs .nav-link{margin-bottom:calc(-1 * var(--bs-nav-tabs-border-width));border:var(--bs-nav-tabs-border-width) solid transparent;border-top-left-radius:var(--bs-nav-tabs-border-radius);border-top-right-radius:var(--bs-nav-tabs-border-radius)}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{isolation:isolate;border-color:var(--bs-nav-tabs-link-hover-border-color)}.nav-tabs .nav-link.disabled,.nav-tabs .nav-link:disabled{color:var(--bs-nav-link-disabled-color);background-color:transparent;border-color:transparent}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}.nav-tabs .dropdown-menu{margin-top:calc(-1 * var(--bs-nav-tabs-border-width));border-top-left-radius:0;border-top-right-radius:0}.nav-pills{--bs-nav-pills-border-radius:var(--bs-border-radius);--bs-nav-pills-link-active-color:#fff;--bs-nav-pills-link-active-bg:#0d6efd}.nav-pills .nav-link{border-radius:var(--bs-nav-pills-border-radius)}.nav-pills .nav-link:disabled{color:var(--bs-nav-link-disabled-color);background-color:transparent;border-color:transparent}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:var(--bs-nav-pills-link-active-color);background-color:var(--bs-nav-pills-link-active-bg)}.nav-underline{--bs-nav-underline-gap:1rem;--bs-nav-underline-border-width:0.125rem;--bs-nav-underline-link-active-color:var(--bs-emphasis-color);gap:var(--bs-nav-underline-gap)}.nav-underline .nav-link{padding-right:0;padding-left:0;border-bottom:var(--bs-nav-underline-border-width) solid transparent}.nav-underline .nav-link:focus,.nav-underline .nav-link:hover{border-bottom-color:currentcolor}.nav-underline .nav-link.active,.nav-underline .show>.nav-link{font-weight:700;color:var(--bs-nav-underline-link-active-color);border-bottom-color:currentcolor}.nav-fill .nav-item,.nav-fill>.nav-link{flex:1 1 auto;text-align:center}.nav-justified .nav-item,.nav-justified>.nav-link{flex-basis:0;flex-grow:1;text-align:center}.nav-fill .nav-item .nav-link,.nav-justified .nav-item .nav-link{width:100%}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{--bs-navbar-padding-x:0;--bs-navbar-padding-y:0.5rem;--bs-navbar-color:rgba(var(--bs-emphasis-color-rgb), 0.65);--bs-navbar-hover-color:rgba(var(--bs-emphasis-color-rgb), 0.8);--bs-navbar-disabled-color:rgba(var(--bs-emphasis-color-rgb), 0.3);--bs-navbar-active-color:rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-brand-padding-y:0.3125rem;--bs-navbar-brand-margin-end:1rem;--bs-navbar-brand-font-size:1.25rem;--bs-navbar-brand-color:rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-brand-hover-color:rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-nav-link-padding-x:0.5rem;--bs-navbar-toggler-padding-y:0.25rem;--bs-navbar-toggler-padding-x:0.75rem;--bs-navbar-toggler-font-size:1.25rem;--bs-navbar-toggler-icon-bg:url(${B});--bs-navbar-toggler-border-color:rgba(var(--bs-emphasis-color-rgb), 0.15);--bs-navbar-toggler-border-radius:var(--bs-border-radius);--bs-navbar-toggler-focus-width:0.25rem;--bs-navbar-toggler-transition:box-shadow 0.15s ease-in-out;position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:var(--bs-navbar-padding-y) var(--bs-navbar-padding-x)}.navbar>.container,.navbar>.container-fluid,.navbar>.container-lg,.navbar>.container-md,.navbar>.container-sm,.navbar>.container-xl,.navbar>.container-xxl{display:flex;flex-wrap:inherit;align-items:center;justify-content:space-between}.navbar-brand{padding-top:var(--bs-navbar-brand-padding-y);padding-bottom:var(--bs-navbar-brand-padding-y);margin-right:var(--bs-navbar-brand-margin-end);font-size:var(--bs-navbar-brand-font-size);color:var(--bs-navbar-brand-color);text-decoration:none;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{color:var(--bs-navbar-brand-hover-color)}.navbar-nav{--bs-nav-link-padding-x:0;--bs-nav-link-padding-y:0.5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color:var(--bs-navbar-color);--bs-nav-link-hover-color:var(--bs-navbar-hover-color);--bs-nav-link-disabled-color:var(--bs-navbar-disabled-color);display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link.active,.navbar-nav .nav-link.show{color:var(--bs-navbar-active-color)}.navbar-nav .dropdown-menu{position:static}.navbar-text{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-navbar-color)}.navbar-text a,.navbar-text a:focus,.navbar-text a:hover{color:var(--bs-navbar-active-color)}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);font-size:var(--bs-navbar-toggler-font-size);line-height:1;color:var(--bs-navbar-color);background-color:transparent;border:var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);border-radius:var(--bs-navbar-toggler-border-radius);transition:var(--bs-navbar-toggler-transition)}@media (prefers-reduced-motion:reduce){.navbar-toggler{transition:none}}.navbar-toggler:hover{text-decoration:none}.navbar-toggler:focus{text-decoration:none;outline:0;box-shadow:0 0 0 var(--bs-navbar-toggler-focus-width)}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;background-image:var(--bs-navbar-toggler-icon-bg);background-repeat:no-repeat;background-position:center;background-size:100%}.navbar-nav-scroll{max-height:var(--bs-scroll-height,75vh);overflow-y:auto}@media (min-width:576px){.navbar-expand-sm{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}.navbar-expand-sm .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-sm .offcanvas .offcanvas-header{display:none}.navbar-expand-sm .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:768px){.navbar-expand-md{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}.navbar-expand-md .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-md .offcanvas .offcanvas-header{display:none}.navbar-expand-md .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:992px){.navbar-expand-lg{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}.navbar-expand-lg .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-lg .offcanvas .offcanvas-header{display:none}.navbar-expand-lg .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:1200px){.navbar-expand-xl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}.navbar-expand-xl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xl .offcanvas .offcanvas-header{display:none}.navbar-expand-xl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:1400px){.navbar-expand-xxl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xxl .navbar-nav{flex-direction:row}.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xxl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xxl .navbar-nav-scroll{overflow:visible}.navbar-expand-xxl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xxl .navbar-toggler{display:none}.navbar-expand-xxl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xxl .offcanvas .offcanvas-header{display:none}.navbar-expand-xxl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}.navbar-expand{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-expand .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand .offcanvas .offcanvas-header{display:none}.navbar-expand .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}.navbar-dark,.navbar[data-bs-theme=dark]{--bs-navbar-color:rgba(255, 255, 255, 0.55);--bs-navbar-hover-color:rgba(255, 255, 255, 0.75);--bs-navbar-disabled-color:rgba(255, 255, 255, 0.25);--bs-navbar-active-color:#fff;--bs-navbar-brand-color:#fff;--bs-navbar-brand-hover-color:#fff;--bs-navbar-toggler-border-color:rgba(255, 255, 255, 0.1);--bs-navbar-toggler-icon-bg:url(${F})}[data-bs-theme=dark] .navbar-toggler-icon{--bs-navbar-toggler-icon-bg:url(${F})}.card{--bs-card-spacer-y:1rem;--bs-card-spacer-x:1rem;--bs-card-title-spacer-y:0.5rem;--bs-card-title-color: ;--bs-card-subtitle-color: ;--bs-card-border-width:var(--bs-border-width);--bs-card-border-color:var(--bs-border-color-translucent);--bs-card-border-radius:var(--bs-border-radius);--bs-card-box-shadow: ;--bs-card-inner-border-radius:calc(var(--bs-border-radius) - (var(--bs-border-width)));--bs-card-cap-padding-y:0.5rem;--bs-card-cap-padding-x:1rem;--bs-card-cap-bg:rgba(var(--bs-body-color-rgb), 0.03);--bs-card-cap-color: ;--bs-card-height: ;--bs-card-color: ;--bs-card-bg:var(--bs-body-bg);--bs-card-img-overlay-padding:1rem;--bs-card-group-margin:0.75rem;position:relative;display:flex;flex-direction:column;min-width:0;height:var(--bs-card-height);color:var(--bs-body-color);word-wrap:break-word;background-color:var(--bs-card-bg);background-clip:border-box;border:var(--bs-card-border-width) solid var(--bs-card-border-color);border-radius:var(--bs-card-border-radius)}.card>hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0;border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{flex:1 1 auto;padding:var(--bs-card-spacer-y) var(--bs-card-spacer-x);color:var(--bs-card-color)}.card-title{margin-bottom:var(--bs-card-title-spacer-y);color:var(--bs-card-title-color)}.card-subtitle{margin-top:calc(-.5 * var(--bs-card-title-spacer-y));margin-bottom:0;color:var(--bs-card-subtitle-color)}.card-text:last-child{margin-bottom:0}.card-link+.card-link{margin-left:var(--bs-card-spacer-x)}.card-header{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);margin-bottom:0;color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-bottom:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-header:first-child{border-radius:var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0}.card-footer{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-top:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-footer:last-child{border-radius:0 0 var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius)}.card-header-tabs{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-bottom:calc(-1 * var(--bs-card-cap-padding-y));margin-left:calc(-.5 * var(--bs-card-cap-padding-x));border-bottom:0}.card-header-tabs .nav-link.active{background-color:var(--bs-card-bg);border-bottom-color:var(--bs-card-bg)}.card-header-pills{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-left:calc(-.5 * var(--bs-card-cap-padding-x))}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:var(--bs-card-img-overlay-padding);border-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom,.card-img-top{width:100%}.card-img,.card-img-top{border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom{border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card-group>.card{margin-bottom:var(--bs-card-group-margin)}@media (min-width:576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-header,.card-group>.card:not(:last-child) .card-img-top{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-footer,.card-group>.card:not(:last-child) .card-img-bottom{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-header,.card-group>.card:not(:first-child) .card-img-top{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-footer,.card-group>.card:not(:first-child) .card-img-bottom{border-bottom-left-radius:0}}.accordion{--bs-accordion-color:var(--bs-body-color);--bs-accordion-bg:var(--bs-body-bg);--bs-accordion-transition:color 0.15s ease-in-out,background-color 0.15s ease-in-out,border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out,border-radius 0.15s ease;--bs-accordion-border-color:var(--bs-border-color);--bs-accordion-border-width:var(--bs-border-width);--bs-accordion-border-radius:var(--bs-border-radius);--bs-accordion-inner-border-radius:calc(var(--bs-border-radius) - (var(--bs-border-width)));--bs-accordion-btn-padding-x:1.25rem;--bs-accordion-btn-padding-y:1rem;--bs-accordion-btn-color:var(--bs-body-color);--bs-accordion-btn-bg:var(--bs-accordion-bg);--bs-accordion-btn-icon:url(${z});--bs-accordion-btn-icon-width:1.25rem;--bs-accordion-btn-icon-transform:rotate(-180deg);--bs-accordion-btn-icon-transition:transform 0.2s ease-in-out;--bs-accordion-btn-active-icon:url(${Q});--bs-accordion-btn-focus-border-color:#86b7fe;--bs-accordion-btn-focus-box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);--bs-accordion-body-padding-x:1.25rem;--bs-accordion-body-padding-y:1rem;--bs-accordion-active-color:var(--bs-primary-text-emphasis);--bs-accordion-active-bg:var(--bs-primary-bg-subtle)}.accordion-button{position:relative;display:flex;align-items:center;width:100%;padding:var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);font-size:1rem;color:var(--bs-accordion-btn-color);text-align:left;background-color:var(--bs-accordion-btn-bg);border:0;border-radius:0;overflow-anchor:none;transition:var(--bs-accordion-transition)}@media (prefers-reduced-motion:reduce){.accordion-button{transition:none}}.accordion-button:not(.collapsed){color:var(--bs-accordion-active-color);background-color:var(--bs-accordion-active-bg);box-shadow:inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color)}.accordion-button:not(.collapsed)::after{background-image:var(--bs-accordion-btn-active-icon);transform:var(--bs-accordion-btn-icon-transform)}.accordion-button::after{flex-shrink:0;width:var(--bs-accordion-btn-icon-width);height:var(--bs-accordion-btn-icon-width);margin-left:auto;content:"";background-image:var(--bs-accordion-btn-icon);background-repeat:no-repeat;background-size:var(--bs-accordion-btn-icon-width);transition:var(--bs-accordion-btn-icon-transition)}@media (prefers-reduced-motion:reduce){.accordion-button::after{transition:none}}.accordion-button:hover{z-index:2}.accordion-button:focus{z-index:3;border-color:var(--bs-accordion-btn-focus-border-color);outline:0;box-shadow:var(--bs-accordion-btn-focus-box-shadow)}.accordion-header{margin-bottom:0}.accordion-item{color:var(--bs-accordion-color);background-color:var(--bs-accordion-bg);border:var(--bs-accordion-border-width) solid var(--bs-accordion-border-color)}.accordion-item:first-of-type{border-top-left-radius:var(--bs-accordion-border-radius);border-top-right-radius:var(--bs-accordion-border-radius)}.accordion-item:first-of-type .accordion-button{border-top-left-radius:var(--bs-accordion-inner-border-radius);border-top-right-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:not(:first-of-type){border-top:0}.accordion-item:last-of-type{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-item:last-of-type .accordion-button.collapsed{border-bottom-right-radius:var(--bs-accordion-inner-border-radius);border-bottom-left-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:last-of-type .accordion-collapse{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-body{padding:var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x)}.accordion-flush .accordion-collapse{border-width:0}.accordion-flush .accordion-item{border-right:0;border-left:0;border-radius:0}.accordion-flush .accordion-item:first-child{border-top:0}.accordion-flush .accordion-item:last-child{border-bottom:0}.accordion-flush .accordion-item .accordion-button,.accordion-flush .accordion-item .accordion-button.collapsed{border-radius:0}[data-bs-theme=dark] .accordion-button::after{--bs-accordion-btn-icon:url(${H});--bs-accordion-btn-active-icon:url(${H})}.breadcrumb{--bs-breadcrumb-padding-x:0;--bs-breadcrumb-padding-y:0;--bs-breadcrumb-margin-bottom:1rem;--bs-breadcrumb-bg: ;--bs-breadcrumb-border-radius: ;--bs-breadcrumb-divider-color:var(--bs-secondary-color);--bs-breadcrumb-item-padding-x:0.5rem;--bs-breadcrumb-item-active-color:var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding:var(--bs-breadcrumb-padding-y) var(--bs-breadcrumb-padding-x);margin-bottom:var(--bs-breadcrumb-margin-bottom);font-size:var(--bs-breadcrumb-font-size);list-style:none;background-color:var(--bs-breadcrumb-bg);border-radius:var(--bs-breadcrumb-border-radius)}.breadcrumb-item+.breadcrumb-item{padding-left:var(--bs-breadcrumb-item-padding-x)}.breadcrumb-item+.breadcrumb-item::before{float:left;padding-right:var(--bs-breadcrumb-item-padding-x);color:var(--bs-breadcrumb-divider-color);content:var(--bs-breadcrumb-divider, "/")}.breadcrumb-item.active{color:var(--bs-breadcrumb-item-active-color)}.pagination{--bs-pagination-padding-x:0.75rem;--bs-pagination-padding-y:0.375rem;--bs-pagination-font-size:1rem;--bs-pagination-color:var(--bs-link-color);--bs-pagination-bg:var(--bs-body-bg);--bs-pagination-border-width:var(--bs-border-width);--bs-pagination-border-color:var(--bs-border-color);--bs-pagination-border-radius:var(--bs-border-radius);--bs-pagination-hover-color:var(--bs-link-hover-color);--bs-pagination-hover-bg:var(--bs-tertiary-bg);--bs-pagination-hover-border-color:var(--bs-border-color);--bs-pagination-focus-color:var(--bs-link-hover-color);--bs-pagination-focus-bg:var(--bs-secondary-bg);--bs-pagination-focus-box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);--bs-pagination-active-color:#fff;--bs-pagination-active-bg:#0d6efd;--bs-pagination-active-border-color:#0d6efd;--bs-pagination-disabled-color:var(--bs-secondary-color);--bs-pagination-disabled-bg:var(--bs-secondary-bg);--bs-pagination-disabled-border-color:var(--bs-border-color);display:flex;padding-left:0;list-style:none}.page-link{position:relative;display:block;padding:var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);font-size:var(--bs-pagination-font-size);color:var(--bs-pagination-color);text-decoration:none;background-color:var(--bs-pagination-bg);border:var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.page-link{transition:none}}.page-link:hover{z-index:2;color:var(--bs-pagination-hover-color);background-color:var(--bs-pagination-hover-bg);border-color:var(--bs-pagination-hover-border-color)}.page-link:focus{z-index:3;color:var(--bs-pagination-focus-color);background-color:var(--bs-pagination-focus-bg);outline:0;box-shadow:var(--bs-pagination-focus-box-shadow)}.active>.page-link,.page-link.active{z-index:3;color:var(--bs-pagination-active-color);background-color:var(--bs-pagination-active-bg);border-color:var(--bs-pagination-active-border-color)}.disabled>.page-link,.page-link.disabled{color:var(--bs-pagination-disabled-color);pointer-events:none;background-color:var(--bs-pagination-disabled-bg);border-color:var(--bs-pagination-disabled-border-color)}.page-item:not(:first-child) .page-link{margin-left:calc(var(--bs-border-width) * -1)}.page-item:first-child .page-link{border-top-left-radius:var(--bs-pagination-border-radius);border-bottom-left-radius:var(--bs-pagination-border-radius)}.page-item:last-child .page-link{border-top-right-radius:var(--bs-pagination-border-radius);border-bottom-right-radius:var(--bs-pagination-border-radius)}.pagination-lg{--bs-pagination-padding-x:1.5rem;--bs-pagination-padding-y:0.75rem;--bs-pagination-font-size:1.25rem;--bs-pagination-border-radius:var(--bs-border-radius-lg)}.pagination-sm{--bs-pagination-padding-x:0.5rem;--bs-pagination-padding-y:0.25rem;--bs-pagination-font-size:0.875rem;--bs-pagination-border-radius:var(--bs-border-radius-sm)}.badge{--bs-badge-padding-x:0.65em;--bs-badge-padding-y:0.35em;--bs-badge-font-size:0.75em;--bs-badge-font-weight:700;--bs-badge-color:#fff;--bs-badge-border-radius:var(--bs-border-radius);display:inline-block;padding:var(--bs-badge-padding-y) var(--bs-badge-padding-x);font-size:var(--bs-badge-font-size);font-weight:var(--bs-badge-font-weight);line-height:1;color:var(--bs-badge-color);text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:var(--bs-badge-border-radius)}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.alert{--bs-alert-bg:transparent;--bs-alert-padding-x:1rem;--bs-alert-padding-y:1rem;--bs-alert-margin-bottom:1rem;--bs-alert-color:inherit;--bs-alert-border-color:transparent;--bs-alert-border:var(--bs-border-width) solid var(--bs-alert-border-color);--bs-alert-border-radius:var(--bs-border-radius);--bs-alert-link-color:inherit;position:relative;padding:var(--bs-alert-padding-y) var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius)}.alert-heading{color:inherit}.alert-link{font-weight:700;color:var(--bs-alert-link-color)}.alert-dismissible{padding-right:3rem}.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:1.25rem 1rem}.alert-primary{--bs-alert-color:var(--bs-primary-text-emphasis);--bs-alert-bg:var(--bs-primary-bg-subtle);--bs-alert-border-color:var(--bs-primary-border-subtle);--bs-alert-link-color:var(--bs-primary-text-emphasis)}.alert-secondary{--bs-alert-color:var(--bs-secondary-text-emphasis);--bs-alert-bg:var(--bs-secondary-bg-subtle);--bs-alert-border-color:var(--bs-secondary-border-subtle);--bs-alert-link-color:var(--bs-secondary-text-emphasis)}.alert-success{--bs-alert-color:var(--bs-success-text-emphasis);--bs-alert-bg:var(--bs-success-bg-subtle);--bs-alert-border-color:var(--bs-success-border-subtle);--bs-alert-link-color:var(--bs-success-text-emphasis)}.alert-info{--bs-alert-color:var(--bs-info-text-emphasis);--bs-alert-bg:var(--bs-info-bg-subtle);--bs-alert-border-color:var(--bs-info-border-subtle);--bs-alert-link-color:var(--bs-info-text-emphasis)}.alert-warning{--bs-alert-color:var(--bs-warning-text-emphasis);--bs-alert-bg:var(--bs-warning-bg-subtle);--bs-alert-border-color:var(--bs-warning-border-subtle);--bs-alert-link-color:var(--bs-warning-text-emphasis)}.alert-danger{--bs-alert-color:var(--bs-danger-text-emphasis);--bs-alert-bg:var(--bs-danger-bg-subtle);--bs-alert-border-color:var(--bs-danger-border-subtle);--bs-alert-link-color:var(--bs-danger-text-emphasis)}.alert-light{--bs-alert-color:var(--bs-light-text-emphasis);--bs-alert-bg:var(--bs-light-bg-subtle);--bs-alert-border-color:var(--bs-light-border-subtle);--bs-alert-link-color:var(--bs-light-text-emphasis)}.alert-dark{--bs-alert-color:var(--bs-dark-text-emphasis);--bs-alert-bg:var(--bs-dark-bg-subtle);--bs-alert-border-color:var(--bs-dark-border-subtle);--bs-alert-link-color:var(--bs-dark-text-emphasis)}@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.progress,.progress-stacked{--bs-progress-height:1rem;--bs-progress-font-size:0.75rem;--bs-progress-bg:var(--bs-secondary-bg);--bs-progress-border-radius:var(--bs-border-radius);--bs-progress-box-shadow:var(--bs-box-shadow-inset);--bs-progress-bar-color:#fff;--bs-progress-bar-bg:#0d6efd;--bs-progress-bar-transition:width 0.6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}.progress-stacked>.progress{overflow:visible}.progress-stacked>.progress>.progress-bar{width:100%}.progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media (prefers-reduced-motion:reduce){.progress-bar-animated{animation:none}}.list-group{--bs-list-group-color:var(--bs-body-color);--bs-list-group-bg:var(--bs-body-bg);--bs-list-group-border-color:var(--bs-border-color);--bs-list-group-border-width:var(--bs-border-width);--bs-list-group-border-radius:var(--bs-border-radius);--bs-list-group-item-padding-x:1rem;--bs-list-group-item-padding-y:0.5rem;--bs-list-group-action-color:var(--bs-secondary-color);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-tertiary-bg);--bs-list-group-action-active-color:var(--bs-body-color);--bs-list-group-action-active-bg:var(--bs-secondary-bg);--bs-list-group-disabled-color:var(--bs-secondary-color);--bs-list-group-disabled-bg:var(--bs-body-bg);--bs-list-group-active-color:#fff;--bs-list-group-active-bg:#0d6efd;--bs-list-group-active-border-color:#0d6efd;display:flex;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:var(--bs-list-group-border-radius)}.list-group-numbered{list-style-type:none;counter-reset:section}.list-group-numbered>.list-group-item::before{content:counters(section, ".") ". ";counter-increment:section}.list-group-item-action{width:100%;color:var(--bs-list-group-action-color);text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{z-index:1;color:var(--bs-list-group-action-hover-color);text-decoration:none;background-color:var(--bs-list-group-action-hover-bg)}.list-group-item-action:active{color:var(--bs-list-group-action-active-color);background-color:var(--bs-list-group-action-active-bg)}.list-group-item{position:relative;display:block;padding:var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);color:var(--bs-list-group-color);text-decoration:none;background-color:var(--bs-list-group-bg);border:var(--bs-list-group-border-width) solid var(--bs-list-group-border-color)}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{color:var(--bs-list-group-disabled-color);pointer-events:none;background-color:var(--bs-list-group-disabled-bg)}.list-group-item.active{z-index:2;color:var(--bs-list-group-active-color);background-color:var(--bs-list-group-active-bg);border-color:var(--bs-list-group-active-border-color)}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:calc(-1 * var(--bs-list-group-border-width));border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}@media (min-width:576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1400px){.list-group-horizontal-xxl{flex-direction:row}.list-group-horizontal-xxl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xxl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xxl>.list-group-item.active{margin-top:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 var(--bs-list-group-border-width)}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{--bs-list-group-color:var(--bs-primary-text-emphasis);--bs-list-group-bg:var(--bs-primary-bg-subtle);--bs-list-group-border-color:var(--bs-primary-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-primary-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-primary-border-subtle);--bs-list-group-active-color:var(--bs-primary-bg-subtle);--bs-list-group-active-bg:var(--bs-primary-text-emphasis);--bs-list-group-active-border-color:var(--bs-primary-text-emphasis)}.list-group-item-secondary{--bs-list-group-color:var(--bs-secondary-text-emphasis);--bs-list-group-bg:var(--bs-secondary-bg-subtle);--bs-list-group-border-color:var(--bs-secondary-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-secondary-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-secondary-border-subtle);--bs-list-group-active-color:var(--bs-secondary-bg-subtle);--bs-list-group-active-bg:var(--bs-secondary-text-emphasis);--bs-list-group-active-border-color:var(--bs-secondary-text-emphasis)}.list-group-item-success{--bs-list-group-color:var(--bs-success-text-emphasis);--bs-list-group-bg:var(--bs-success-bg-subtle);--bs-list-group-border-color:var(--bs-success-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-success-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-success-border-subtle);--bs-list-group-active-color:var(--bs-success-bg-subtle);--bs-list-group-active-bg:var(--bs-success-text-emphasis);--bs-list-group-active-border-color:var(--bs-success-text-emphasis)}.list-group-item-info{--bs-list-group-color:var(--bs-info-text-emphasis);--bs-list-group-bg:var(--bs-info-bg-subtle);--bs-list-group-border-color:var(--bs-info-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-info-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-info-border-subtle);--bs-list-group-active-color:var(--bs-info-bg-subtle);--bs-list-group-active-bg:var(--bs-info-text-emphasis);--bs-list-group-active-border-color:var(--bs-info-text-emphasis)}.list-group-item-warning{--bs-list-group-color:var(--bs-warning-text-emphasis);--bs-list-group-bg:var(--bs-warning-bg-subtle);--bs-list-group-border-color:var(--bs-warning-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-warning-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-warning-border-subtle);--bs-list-group-active-color:var(--bs-warning-bg-subtle);--bs-list-group-active-bg:var(--bs-warning-text-emphasis);--bs-list-group-active-border-color:var(--bs-warning-text-emphasis)}.list-group-item-danger{--bs-list-group-color:var(--bs-danger-text-emphasis);--bs-list-group-bg:var(--bs-danger-bg-subtle);--bs-list-group-border-color:var(--bs-danger-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-danger-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-danger-border-subtle);--bs-list-group-active-color:var(--bs-danger-bg-subtle);--bs-list-group-active-bg:var(--bs-danger-text-emphasis);--bs-list-group-active-border-color:var(--bs-danger-text-emphasis)}.list-group-item-light{--bs-list-group-color:var(--bs-light-text-emphasis);--bs-list-group-bg:var(--bs-light-bg-subtle);--bs-list-group-border-color:var(--bs-light-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-light-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-light-border-subtle);--bs-list-group-active-color:var(--bs-light-bg-subtle);--bs-list-group-active-bg:var(--bs-light-text-emphasis);--bs-list-group-active-border-color:var(--bs-light-text-emphasis)}.list-group-item-dark{--bs-list-group-color:var(--bs-dark-text-emphasis);--bs-list-group-bg:var(--bs-dark-bg-subtle);--bs-list-group-border-color:var(--bs-dark-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-dark-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-dark-border-subtle);--bs-list-group-active-color:var(--bs-dark-bg-subtle);--bs-list-group-active-bg:var(--bs-dark-text-emphasis);--bs-list-group-active-border-color:var(--bs-dark-text-emphasis)}.btn-close{--bs-btn-close-color:#000;--bs-btn-close-bg:url(${U});--bs-btn-close-opacity:0.5;--bs-btn-close-hover-opacity:0.75;--bs-btn-close-focus-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);--bs-btn-close-focus-opacity:1;--bs-btn-close-disabled-opacity:0.25;--bs-btn-close-white-filter:invert(1) grayscale(100%) brightness(200%);box-sizing:content-box;width:1em;height:1em;padding:.25em .25em;color:var(--bs-btn-close-color);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;border:0;border-radius:.375rem;opacity:var(--bs-btn-close-opacity)}.btn-close:hover{color:var(--bs-btn-close-color);text-decoration:none;opacity:var(--bs-btn-close-hover-opacity)}.btn-close:focus{outline:0;box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity)}.btn-close.disabled,.btn-close:disabled{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--bs-btn-close-disabled-opacity)}.btn-close-white{filter:var(--bs-btn-close-white-filter)}[data-bs-theme=dark] .btn-close{filter:var(--bs-btn-close-white-filter)}.toast{--bs-toast-zindex:1090;--bs-toast-padding-x:0.75rem;--bs-toast-padding-y:0.5rem;--bs-toast-spacing:1.5rem;--bs-toast-max-width:350px;--bs-toast-font-size:0.875rem;--bs-toast-color: ;--bs-toast-bg:rgba(var(--bs-body-bg-rgb), 0.85);--bs-toast-border-width:var(--bs-border-width);--bs-toast-border-color:var(--bs-border-color-translucent);--bs-toast-border-radius:var(--bs-border-radius);--bs-toast-box-shadow:var(--bs-box-shadow);--bs-toast-header-color:var(--bs-secondary-color);--bs-toast-header-bg:rgba(var(--bs-body-bg-rgb), 0.85);--bs-toast-header-border-color:var(--bs-border-color-translucent);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}.toast.showing{opacity:0}.toast:not(.show){display:none}.toast-container{--bs-toast-zindex:1090;position:absolute;z-index:var(--bs-toast-zindex);width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:100%;pointer-events:none}.toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}.toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}.toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}.toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}.modal{--bs-modal-zindex:1055;--bs-modal-width:500px;--bs-modal-padding:1rem;--bs-modal-margin:0.5rem;--bs-modal-color: ;--bs-modal-bg:var(--bs-body-bg);--bs-modal-border-color:var(--bs-border-color-translucent);--bs-modal-border-width:var(--bs-border-width);--bs-modal-border-radius:var(--bs-border-radius-lg);--bs-modal-box-shadow:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-modal-inner-border-radius:calc(var(--bs-border-radius-lg) - (var(--bs-border-width)));--bs-modal-header-padding-x:1rem;--bs-modal-header-padding-y:1rem;--bs-modal-header-padding:1rem 1rem;--bs-modal-header-border-color:var(--bs-border-color);--bs-modal-header-border-width:var(--bs-border-width);--bs-modal-title-line-height:1.5;--bs-modal-footer-gap:0.5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color:var(--bs-border-color);--bs-modal-footer-border-width:var(--bs-border-width);position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translate(0,-50px)}@media (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}.modal-backdrop{--bs-backdrop-zindex:1050;--bs-backdrop-bg:#000;--bs-backdrop-opacity:0.5;position:fixed;top:0;left:0;z-index:var(--bs-backdrop-zindex);width:100vw;height:100vh;background-color:var(--bs-backdrop-bg)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--bs-backdrop-opacity)}.modal-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin:calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto}.modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media (min-width:576px){.modal{--bs-modal-margin:1.75rem;--bs-modal-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}.modal-sm{--bs-modal-width:300px}}@media (min-width:992px){.modal-lg,.modal-xl{--bs-modal-width:800px}}@media (min-width:1200px){.modal-xl{--bs-modal-width:1140px}}.modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen .modal-footer,.modal-fullscreen .modal-header{border-radius:0}.modal-fullscreen .modal-body{overflow-y:auto}@media (max-width:575.98px){.modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-sm-down .modal-footer,.modal-fullscreen-sm-down .modal-header{border-radius:0}.modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media (max-width:767.98px){.modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-md-down .modal-footer,.modal-fullscreen-md-down .modal-header{border-radius:0}.modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media (max-width:991.98px){.modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-lg-down .modal-footer,.modal-fullscreen-lg-down .modal-header{border-radius:0}.modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media (max-width:1199.98px){.modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xl-down .modal-footer,.modal-fullscreen-xl-down .modal-header{border-radius:0}.modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media (max-width:1399.98px){.modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xxl-down .modal-footer,.modal-fullscreen-xxl-down .modal-header{border-radius:0}.modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}.tooltip{--bs-tooltip-zindex:1080;--bs-tooltip-max-width:200px;--bs-tooltip-padding-x:0.5rem;--bs-tooltip-padding-y:0.25rem;--bs-tooltip-margin: ;--bs-tooltip-font-size:0.875rem;--bs-tooltip-color:var(--bs-body-bg);--bs-tooltip-bg:var(--bs-emphasis-color);--bs-tooltip-border-radius:var(--bs-border-radius);--bs-tooltip-opacity:0.9;--bs-tooltip-arrow-width:0.8rem;--bs-tooltip-arrow-height:0.4rem;z-index:var(--bs-tooltip-zindex);display:block;margin:var(--bs-tooltip-margin);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--bs-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--bs-tooltip-arrow-width);height:var(--bs-tooltip-arrow-height)}.tooltip .tooltip-arrow::before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow,.bs-tooltip-top .tooltip-arrow{bottom:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,.bs-tooltip-top .tooltip-arrow::before{top:-1px;border-width:var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-top-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow,.bs-tooltip-end .tooltip-arrow{left:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before,.bs-tooltip-end .tooltip-arrow::before{right:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-right-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow,.bs-tooltip-bottom .tooltip-arrow{top:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before,.bs-tooltip-bottom .tooltip-arrow::before{bottom:-1px;border-width:0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-bottom-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow,.bs-tooltip-start .tooltip-arrow{right:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before,.bs-tooltip-start .tooltip-arrow::before{left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-left-color:var(--bs-tooltip-bg)}.tooltip-inner{max-width:var(--bs-tooltip-max-width);padding:var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);color:var(--bs-tooltip-color);text-align:center;background-color:var(--bs-tooltip-bg);border-radius:var(--bs-tooltip-border-radius)}.popover{--bs-popover-zindex:1070;--bs-popover-max-width:276px;--bs-popover-font-size:0.875rem;--bs-popover-bg:var(--bs-body-bg);--bs-popover-border-width:var(--bs-border-width);--bs-popover-border-color:var(--bs-border-color-translucent);--bs-popover-border-radius:var(--bs-border-radius-lg);--bs-popover-inner-border-radius:calc(var(--bs-border-radius-lg) - var(--bs-border-width));--bs-popover-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-popover-header-padding-x:1rem;--bs-popover-header-padding-y:0.5rem;--bs-popover-header-font-size:1rem;--bs-popover-header-color:inherit;--bs-popover-header-bg:var(--bs-secondary-bg);--bs-popover-body-padding-x:1rem;--bs-popover-body-padding-y:1rem;--bs-popover-body-color:var(--bs-body-color);--bs-popover-arrow-width:1rem;--bs-popover-arrow-height:0.5rem;--bs-popover-arrow-border:var(--bs-popover-border-color);z-index:var(--bs-popover-zindex);display:block;max-width:var(--bs-popover-max-width);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-popover-font-size);word-wrap:break-word;background-color:var(--bs-popover-bg);background-clip:padding-box;border:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-radius:var(--bs-popover-border-radius)}.popover .popover-arrow{display:block;width:var(--bs-popover-arrow-width);height:var(--bs-popover-arrow-height)}.popover .popover-arrow::after,.popover .popover-arrow::before{position:absolute;display:block;content:"";border-color:transparent;border-style:solid;border-width:0}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow,.bs-popover-top>.popover-arrow{bottom:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::before,.bs-popover-top>.popover-arrow::after,.bs-popover-top>.popover-arrow::before{border-width:var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::before,.bs-popover-top>.popover-arrow::before{bottom:0;border-top-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::after,.bs-popover-top>.popover-arrow::after{bottom:var(--bs-popover-border-width);border-top-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow,.bs-popover-end>.popover-arrow{left:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::before,.bs-popover-end>.popover-arrow::after,.bs-popover-end>.popover-arrow::before{border-width:calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::before,.bs-popover-end>.popover-arrow::before{left:0;border-right-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::after,.bs-popover-end>.popover-arrow::after{left:var(--bs-popover-border-width);border-right-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow,.bs-popover-bottom>.popover-arrow{top:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::before,.bs-popover-bottom>.popover-arrow::after,.bs-popover-bottom>.popover-arrow::before{border-width:0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::before,.bs-popover-bottom>.popover-arrow::before{top:0;border-bottom-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::after,.bs-popover-bottom>.popover-arrow::after{top:var(--bs-popover-border-width);border-bottom-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=bottom] .popover-header::before,.bs-popover-bottom .popover-header::before{position:absolute;top:0;left:50%;display:block;width:var(--bs-popover-arrow-width);margin-left:calc(-.5 * var(--bs-popover-arrow-width));content:"";border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-header-bg)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow,.bs-popover-start>.popover-arrow{right:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::before,.bs-popover-start>.popover-arrow::after,.bs-popover-start>.popover-arrow::before{border-width:calc(var(--bs-popover-arrow-width) * .5) 0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::before,.bs-popover-start>.popover-arrow::before{right:0;border-left-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::after,.bs-popover-start>.popover-arrow::after{right:var(--bs-popover-border-width);border-left-color:var(--bs-popover-bg)}.popover-header{padding:var(--bs-popover-header-padding-y) var(--bs-popover-header-padding-x);margin-bottom:0;font-size:var(--bs-popover-header-font-size);color:var(--bs-popover-header-color);background-color:var(--bs-popover-header-bg);border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-top-left-radius:var(--bs-popover-inner-border-radius);border-top-right-radius:var(--bs-popover-inner-border-radius)}.popover-header:empty{display:none}.popover-body{padding:var(--bs-popover-body-padding-y) var(--bs-popover-body-padding-x);color:var(--bs-popover-body-color)}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner::after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion:reduce){.carousel-item{transition:none}}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block}.active.carousel-item-end,.carousel-item-next:not(.carousel-item-start){transform:translateX(100%)}.active.carousel-item-start,.carousel-item-prev:not(.carousel-item-end){transform:translateX(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item-next.carousel-item-start,.carousel-fade .carousel-item-prev.carousel-item-end,.carousel-fade .carousel-item.active{z-index:1;opacity:1}.carousel-fade .active.carousel-item-end,.carousel-fade .active.carousel-item-start{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion:reduce){.carousel-fade .active.carousel-item-end,.carousel-fade .active.carousel-item-start{transition:none}}.carousel-control-next,.carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;padding:0;color:#fff;text-align:center;background:0 0;border:0;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion:reduce){.carousel-control-next,.carousel-control-prev{transition:none}}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{display:inline-block;width:2rem;height:2rem;background-repeat:no-repeat;background-position:50%;background-size:100% 100%}.carousel-control-prev-icon{background-image:url(${W})}.carousel-control-next-icon{background-image:url(${J})}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:2;display:flex;justify-content:center;padding:0;margin-right:15%;margin-bottom:1rem;margin-left:15%}.carousel-indicators [data-bs-target]{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;padding:0;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border:0;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion:reduce){.carousel-indicators [data-bs-target]{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:1.25rem;left:15%;padding-top:1.25rem;padding-bottom:1.25rem;color:#fff;text-align:center}.carousel-dark .carousel-control-next-icon,.carousel-dark .carousel-control-prev-icon{filter:invert(1) grayscale(100)}.carousel-dark .carousel-indicators [data-bs-target]{background-color:#000}.carousel-dark .carousel-caption{color:#000}[data-bs-theme=dark] .carousel .carousel-control-next-icon,[data-bs-theme=dark] .carousel .carousel-control-prev-icon,[data-bs-theme=dark].carousel .carousel-control-next-icon,[data-bs-theme=dark].carousel .carousel-control-prev-icon{filter:invert(1) grayscale(100)}[data-bs-theme=dark] .carousel .carousel-indicators [data-bs-target],[data-bs-theme=dark].carousel .carousel-indicators [data-bs-target]{background-color:#000}[data-bs-theme=dark] .carousel .carousel-caption,[data-bs-theme=dark].carousel .carousel-caption{color:#000}.spinner-border,.spinner-grow{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-border-width:0.25em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem;--bs-spinner-border-width:0.2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem}@media (prefers-reduced-motion:reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed:1.5s}}.offcanvas,.offcanvas-lg,.offcanvas-md,.offcanvas-sm,.offcanvas-xl,.offcanvas-xxl{--bs-offcanvas-zindex:1045;--bs-offcanvas-width:400px;--bs-offcanvas-height:30vh;--bs-offcanvas-padding-x:1rem;--bs-offcanvas-padding-y:1rem;--bs-offcanvas-color:var(--bs-body-color);--bs-offcanvas-bg:var(--bs-body-bg);--bs-offcanvas-border-width:var(--bs-border-width);--bs-offcanvas-border-color:var(--bs-border-color-translucent);--bs-offcanvas-box-shadow:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-offcanvas-transition:transform 0.3s ease-in-out;--bs-offcanvas-title-line-height:1.5}@media (max-width:575.98px){.offcanvas-sm{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:575.98px) and (prefers-reduced-motion:reduce){.offcanvas-sm{transition:none}}@media (max-width:575.98px){.offcanvas-sm.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-sm.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-sm.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-sm.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-sm.show:not(.hiding),.offcanvas-sm.showing{transform:none}.offcanvas-sm.hiding,.offcanvas-sm.show,.offcanvas-sm.showing{visibility:visible}}@media (min-width:576px){.offcanvas-sm{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-sm .offcanvas-header{display:none}.offcanvas-sm .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:767.98px){.offcanvas-md{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:767.98px) and (prefers-reduced-motion:reduce){.offcanvas-md{transition:none}}@media (max-width:767.98px){.offcanvas-md.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-md.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-md.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-md.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-md.show:not(.hiding),.offcanvas-md.showing{transform:none}.offcanvas-md.hiding,.offcanvas-md.show,.offcanvas-md.showing{visibility:visible}}@media (min-width:768px){.offcanvas-md{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-md .offcanvas-header{display:none}.offcanvas-md .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:991.98px){.offcanvas-lg{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:991.98px) and (prefers-reduced-motion:reduce){.offcanvas-lg{transition:none}}@media (max-width:991.98px){.offcanvas-lg.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-lg.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-lg.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-lg.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-lg.show:not(.hiding),.offcanvas-lg.showing{transform:none}.offcanvas-lg.hiding,.offcanvas-lg.show,.offcanvas-lg.showing{visibility:visible}}@media (min-width:992px){.offcanvas-lg{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-lg .offcanvas-header{display:none}.offcanvas-lg .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:1199.98px){.offcanvas-xl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:1199.98px) and (prefers-reduced-motion:reduce){.offcanvas-xl{transition:none}}@media (max-width:1199.98px){.offcanvas-xl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-xl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-xl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xl.show:not(.hiding),.offcanvas-xl.showing{transform:none}.offcanvas-xl.hiding,.offcanvas-xl.show,.offcanvas-xl.showing{visibility:visible}}@media (min-width:1200px){.offcanvas-xl{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-xl .offcanvas-header{display:none}.offcanvas-xl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:1399.98px){.offcanvas-xxl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:1399.98px) and (prefers-reduced-motion:reduce){.offcanvas-xxl{transition:none}}@media (max-width:1399.98px){.offcanvas-xxl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-xxl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-xxl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xxl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xxl.show:not(.hiding),.offcanvas-xxl.showing{transform:none}.offcanvas-xxl.hiding,.offcanvas-xxl.show,.offcanvas-xxl.showing{visibility:visible}}@media (min-width:1400px){.offcanvas-xxl{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-xxl .offcanvas-header{display:none}.offcanvas-xxl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}.offcanvas{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}@media (prefers-reduced-motion:reduce){.offcanvas{transition:none}}.offcanvas.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas.show:not(.hiding),.offcanvas.showing{transform:none}.offcanvas.hiding,.offcanvas.show,.offcanvas.showing{visibility:visible}.offcanvas-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.offcanvas-backdrop.fade{opacity:0}.offcanvas-backdrop.show{opacity:.5}.offcanvas-header{display:flex;align-items:center;justify-content:space-between;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x)}.offcanvas-header .btn-close{padding:calc(var(--bs-offcanvas-padding-y) * .5) calc(var(--bs-offcanvas-padding-x) * .5);margin-top:calc(-.5 * var(--bs-offcanvas-padding-y));margin-right:calc(-.5 * var(--bs-offcanvas-padding-x));margin-bottom:calc(-.5 * var(--bs-offcanvas-padding-y))}.offcanvas-title{margin-bottom:0;line-height:var(--bs-offcanvas-title-line-height)}.offcanvas-body{flex-grow:1;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);overflow-y:auto}.placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.5}.placeholder.btn::before{display:inline-block;content:""}.placeholder-xs{min-height:.6em}.placeholder-sm{min-height:.8em}.placeholder-lg{min-height:1.2em}.placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.2}}.placeholder-wave{-webkit-mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,0.8) 75%,#000 95%);mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,0.8) 75%,#000 95%);-webkit-mask-size:200% 100%;mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{100%{-webkit-mask-position:-200% 0%;mask-position:-200% 0%}}.clearfix::after{display:block;clear:both;content:""}.text-bg-primary{color:#fff!important;background-color:RGBA(13,110,253,var(--bs-bg-opacity,1))!important}.text-bg-secondary{color:#fff!important;background-color:RGBA(108,117,125,var(--bs-bg-opacity,1))!important}.text-bg-success{color:#fff!important;background-color:RGBA(25,135,84,var(--bs-bg-opacity,1))!important}.text-bg-info{color:#000!important;background-color:RGBA(13,202,240,var(--bs-bg-opacity,1))!important}.text-bg-warning{color:#000!important;background-color:RGBA(255,193,7,var(--bs-bg-opacity,1))!important}.text-bg-danger{color:#fff!important;background-color:RGBA(220,53,69,var(--bs-bg-opacity,1))!important}.text-bg-light{color:#000!important;background-color:RGBA(248,249,250,var(--bs-bg-opacity,1))!important}.text-bg-dark{color:#fff!important;background-color:RGBA(33,37,41,var(--bs-bg-opacity,1))!important}.link-primary{color:RGBA(var(--bs-primary-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-primary-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-primary-rgb),var(--bs-link-underline-opacity,1))!important}.link-primary:focus,.link-primary:hover{color:RGBA(10,88,202,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(10,88,202,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(10,88,202,var(--bs-link-underline-opacity,1))!important}.link-secondary{color:RGBA(var(--bs-secondary-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-secondary-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-secondary-rgb),var(--bs-link-underline-opacity,1))!important}.link-secondary:focus,.link-secondary:hover{color:RGBA(86,94,100,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(86,94,100,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(86,94,100,var(--bs-link-underline-opacity,1))!important}.link-success{color:RGBA(var(--bs-success-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-success-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-success-rgb),var(--bs-link-underline-opacity,1))!important}.link-success:focus,.link-success:hover{color:RGBA(20,108,67,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(20,108,67,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(20,108,67,var(--bs-link-underline-opacity,1))!important}.link-info{color:RGBA(var(--bs-info-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-info-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-info-rgb),var(--bs-link-underline-opacity,1))!important}.link-info:focus,.link-info:hover{color:RGBA(61,213,243,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(61,213,243,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(61,213,243,var(--bs-link-underline-opacity,1))!important}.link-warning{color:RGBA(var(--bs-warning-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-warning-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-warning-rgb),var(--bs-link-underline-opacity,1))!important}.link-warning:focus,.link-warning:hover{color:RGBA(255,205,57,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(255,205,57,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(255,205,57,var(--bs-link-underline-opacity,1))!important}.link-danger{color:RGBA(var(--bs-danger-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-danger-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-danger-rgb),var(--bs-link-underline-opacity,1))!important}.link-danger:focus,.link-danger:hover{color:RGBA(176,42,55,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(176,42,55,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(176,42,55,var(--bs-link-underline-opacity,1))!important}.link-light{color:RGBA(var(--bs-light-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-light-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-light-rgb),var(--bs-link-underline-opacity,1))!important}.link-light:focus,.link-light:hover{color:RGBA(249,250,251,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(249,250,251,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(249,250,251,var(--bs-link-underline-opacity,1))!important}.link-dark{color:RGBA(var(--bs-dark-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-dark-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-dark-rgb),var(--bs-link-underline-opacity,1))!important}.link-dark:focus,.link-dark:hover{color:RGBA(26,30,33,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(26,30,33,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(26,30,33,var(--bs-link-underline-opacity,1))!important}.link-body-emphasis{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,1))!important}.link-body-emphasis:focus,.link-body-emphasis:hover{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity,.75))!important;-webkit-text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,0.75))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,0.75))!important}.focus-ring:focus{outline:0;box-shadow:var(--bs-focus-ring-x,0) var(--bs-focus-ring-y,0) var(--bs-focus-ring-blur,0) var(--bs-focus-ring-width) var(--bs-focus-ring-color)}.icon-link{display:inline-flex;gap:.375rem;align-items:center;-webkit-text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,0.5));text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,0.5));text-underline-offset:0.25em;-webkit-backface-visibility:hidden;backface-visibility:hidden}.icon-link>.bi{flex-shrink:0;width:1em;height:1em;fill:currentcolor;transition:.2s ease-in-out transform}@media (prefers-reduced-motion:reduce){.icon-link>.bi{transition:none}}.icon-link-hover:focus-visible>.bi,.icon-link-hover:hover>.bi{transform:var(--bs-icon-link-transform,translate3d(.25em,0,0))}.ratio{position:relative;width:100%}.ratio::before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio:100%}.ratio-4x3{--bs-aspect-ratio:75%}.ratio-16x9{--bs-aspect-ratio:56.25%}.ratio-21x9{--bs-aspect-ratio:42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}@media (min-width:576px){.sticky-sm-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:768px){.sticky-md-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:992px){.sticky-lg-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:1200px){.sticky-xl-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:1400px){.sticky-xxl-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption),.visually-hidden:not(caption){position:absolute!important}.stretched-link::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:""}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:1px;min-height:1em;background-color:currentcolor;opacity:.25}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.object-fit-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-none{-o-object-fit:none!important;object-fit:none!important}.opacity-0{opacity:0!important}.opacity-25{opacity:.25!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.opacity-100{opacity:1!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.overflow-x-auto{overflow-x:auto!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-x-visible{overflow-x:visible!important}.overflow-x-scroll{overflow-x:scroll!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overflow-y-visible{overflow-y:visible!important}.overflow-y-scroll{overflow-y:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-inline-grid{display:inline-grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:0 .5rem 1rem rgba(0,0,0,.15)!important}.shadow-sm{box-shadow:0 .125rem .25rem rgba(0,0,0,.075)!important}.shadow-lg{box-shadow:0 1rem 3rem rgba(0,0,0,.175)!important}.shadow-none{box-shadow:none!important}.focus-ring-primary{--bs-focus-ring-color:rgba(var(--bs-primary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-secondary{--bs-focus-ring-color:rgba(var(--bs-secondary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-success{--bs-focus-ring-color:rgba(var(--bs-success-rgb), var(--bs-focus-ring-opacity))}.focus-ring-info{--bs-focus-ring-color:rgba(var(--bs-info-rgb), var(--bs-focus-ring-opacity))}.focus-ring-warning{--bs-focus-ring-color:rgba(var(--bs-warning-rgb), var(--bs-focus-ring-opacity))}.focus-ring-danger{--bs-focus-ring-color:rgba(var(--bs-danger-rgb), var(--bs-focus-ring-opacity))}.focus-ring-light{--bs-focus-ring-color:rgba(var(--bs-light-rgb), var(--bs-focus-ring-opacity))}.focus-ring-dark{--bs-focus-ring-color:rgba(var(--bs-dark-rgb), var(--bs-focus-ring-opacity))}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:-webkit-sticky!important;position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translateX(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-0{border:0!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-start-0{border-left:0!important}.border-primary{--bs-border-opacity:1;border-color:rgba(var(--bs-primary-rgb),var(--bs-border-opacity))!important}.border-secondary{--bs-border-opacity:1;border-color:rgba(var(--bs-secondary-rgb),var(--bs-border-opacity))!important}.border-success{--bs-border-opacity:1;border-color:rgba(var(--bs-success-rgb),var(--bs-border-opacity))!important}.border-info{--bs-border-opacity:1;border-color:rgba(var(--bs-info-rgb),var(--bs-border-opacity))!important}.border-warning{--bs-border-opacity:1;border-color:rgba(var(--bs-warning-rgb),var(--bs-border-opacity))!important}.border-danger{--bs-border-opacity:1;border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity))!important}.border-light{--bs-border-opacity:1;border-color:rgba(var(--bs-light-rgb),var(--bs-border-opacity))!important}.border-dark{--bs-border-opacity:1;border-color:rgba(var(--bs-dark-rgb),var(--bs-border-opacity))!important}.border-black{--bs-border-opacity:1;border-color:rgba(var(--bs-black-rgb),var(--bs-border-opacity))!important}.border-white{--bs-border-opacity:1;border-color:rgba(var(--bs-white-rgb),var(--bs-border-opacity))!important}.border-primary-subtle{border-color:var(--bs-primary-border-subtle)!important}.border-secondary-subtle{border-color:var(--bs-secondary-border-subtle)!important}.border-success-subtle{border-color:var(--bs-success-border-subtle)!important}.border-info-subtle{border-color:var(--bs-info-border-subtle)!important}.border-warning-subtle{border-color:var(--bs-warning-border-subtle)!important}.border-danger-subtle{border-color:var(--bs-danger-border-subtle)!important}.border-light-subtle{border-color:var(--bs-light-border-subtle)!important}.border-dark-subtle{border-color:var(--bs-dark-border-subtle)!important}.border-1{border-width:1px!important}.border-2{border-width:2px!important}.border-3{border-width:3px!important}.border-4{border-width:4px!important}.border-5{border-width:5px!important}.border-opacity-10{--bs-border-opacity:0.1}.border-opacity-25{--bs-border-opacity:0.25}.border-opacity-50{--bs-border-opacity:0.5}.border-opacity-75{--bs-border-opacity:0.75}.border-opacity-100{--bs-border-opacity:1}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:3rem!important;margin-left:3rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:3rem!important;padding-left:3rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:3rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:3rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}.row-gap-0{row-gap:0!important}.row-gap-1{row-gap:.25rem!important}.row-gap-2{row-gap:.5rem!important}.row-gap-3{row-gap:1rem!important}.row-gap-4{row-gap:1.5rem!important}.row-gap-5{row-gap:3rem!important}.column-gap-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.font-monospace{font-family:var(--bs-font-monospace)!important}.fs-1{font-size:calc(1.375rem + 1.5vw)!important}.fs-2{font-size:calc(1.325rem + .9vw)!important}.fs-3{font-size:calc(1.3rem + .6vw)!important}.fs-4{font-size:calc(1.275rem + .3vw)!important}.fs-5{font-size:1.25rem!important}.fs-6{font-size:1rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-lighter{font-weight:lighter!important}.fw-light{font-weight:300!important}.fw-normal{font-weight:400!important}.fw-medium{font-weight:500!important}.fw-semibold{font-weight:600!important}.fw-bold{font-weight:700!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.5!important}.lh-lg{line-height:2!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-primary{--bs-text-opacity:1;color:rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important}.text-secondary{--bs-text-opacity:1;color:rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important}.text-success{--bs-text-opacity:1;color:rgba(var(--bs-success-rgb),var(--bs-text-opacity))!important}.text-info{--bs-text-opacity:1;color:rgba(var(--bs-info-rgb),var(--bs-text-opacity))!important}.text-warning{--bs-text-opacity:1;color:rgba(var(--bs-warning-rgb),var(--bs-text-opacity))!important}.text-danger{--bs-text-opacity:1;color:rgba(var(--bs-danger-rgb),var(--bs-text-opacity))!important}.text-light{--bs-text-opacity:1;color:rgba(var(--bs-light-rgb),var(--bs-text-opacity))!important}.text-dark{--bs-text-opacity:1;color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important}.text-black{--bs-text-opacity:1;color:rgba(var(--bs-black-rgb),var(--bs-text-opacity))!important}.text-white{--bs-text-opacity:1;color:rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important}.text-body{--bs-text-opacity:1;color:rgba(var(--bs-body-color-rgb),var(--bs-text-opacity))!important}.text-muted{--bs-text-opacity:1;color:var(--bs-secondary-color)!important}.text-black-50{--bs-text-opacity:1;color:rgba(0,0,0,.5)!important}.text-white-50{--bs-text-opacity:1;color:rgba(255,255,255,.5)!important}.text-body-secondary{--bs-text-opacity:1;color:var(--bs-secondary-color)!important}.text-body-tertiary{--bs-text-opacity:1;color:var(--bs-tertiary-color)!important}.text-body-emphasis{--bs-text-opacity:1;color:var(--bs-emphasis-color)!important}.text-reset{--bs-text-opacity:1;color:inherit!important}.text-opacity-25{--bs-text-opacity:0.25}.text-opacity-50{--bs-text-opacity:0.5}.text-opacity-75{--bs-text-opacity:0.75}.text-opacity-100{--bs-text-opacity:1}.text-primary-emphasis{color:var(--bs-primary-text-emphasis)!important}.text-secondary-emphasis{color:var(--bs-secondary-text-emphasis)!important}.text-success-emphasis{color:var(--bs-success-text-emphasis)!important}.text-info-emphasis{color:var(--bs-info-text-emphasis)!important}.text-warning-emphasis{color:var(--bs-warning-text-emphasis)!important}.text-danger-emphasis{color:var(--bs-danger-text-emphasis)!important}.text-light-emphasis{color:var(--bs-light-text-emphasis)!important}.text-dark-emphasis{color:var(--bs-dark-text-emphasis)!important}.link-opacity-10{--bs-link-opacity:0.1}.link-opacity-10-hover:hover{--bs-link-opacity:0.1}.link-opacity-25{--bs-link-opacity:0.25}.link-opacity-25-hover:hover{--bs-link-opacity:0.25}.link-opacity-50{--bs-link-opacity:0.5}.link-opacity-50-hover:hover{--bs-link-opacity:0.5}.link-opacity-75{--bs-link-opacity:0.75}.link-opacity-75-hover:hover{--bs-link-opacity:0.75}.link-opacity-100{--bs-link-opacity:1}.link-opacity-100-hover:hover{--bs-link-opacity:1}.link-offset-1{text-underline-offset:0.125em!important}.link-offset-1-hover:hover{text-underline-offset:0.125em!important}.link-offset-2{text-underline-offset:0.25em!important}.link-offset-2-hover:hover{text-underline-offset:0.25em!important}.link-offset-3{text-underline-offset:0.375em!important}.link-offset-3-hover:hover{text-underline-offset:0.375em!important}.link-underline-primary{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-primary-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-primary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-secondary{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-secondary-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-secondary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-success{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-success-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-success-rgb),var(--bs-link-underline-opacity))!important}.link-underline-info{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-info-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-info-rgb),var(--bs-link-underline-opacity))!important}.link-underline-warning{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-warning-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-warning-rgb),var(--bs-link-underline-opacity))!important}.link-underline-danger{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-danger-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-danger-rgb),var(--bs-link-underline-opacity))!important}.link-underline-light{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-light-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-light-rgb),var(--bs-link-underline-opacity))!important}.link-underline-dark{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-dark-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-dark-rgb),var(--bs-link-underline-opacity))!important}.link-underline{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-underline-opacity,1))!important}.link-underline-opacity-0{--bs-link-underline-opacity:0}.link-underline-opacity-0-hover:hover{--bs-link-underline-opacity:0}.link-underline-opacity-10{--bs-link-underline-opacity:0.1}.link-underline-opacity-10-hover:hover{--bs-link-underline-opacity:0.1}.link-underline-opacity-25{--bs-link-underline-opacity:0.25}.link-underline-opacity-25-hover:hover{--bs-link-underline-opacity:0.25}.link-underline-opacity-50{--bs-link-underline-opacity:0.5}.link-underline-opacity-50-hover:hover{--bs-link-underline-opacity:0.5}.link-underline-opacity-75{--bs-link-underline-opacity:0.75}.link-underline-opacity-75-hover:hover{--bs-link-underline-opacity:0.75}.link-underline-opacity-100{--bs-link-underline-opacity:1}.link-underline-opacity-100-hover:hover{--bs-link-underline-opacity:1}.bg-primary{--bs-bg-opacity:1;background-color:rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important}.bg-secondary{--bs-bg-opacity:1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important}.bg-success{--bs-bg-opacity:1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important}.bg-info{--bs-bg-opacity:1;background-color:rgba(var(--bs-info-rgb),var(--bs-bg-opacity))!important}.bg-warning{--bs-bg-opacity:1;background-color:rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important}.bg-danger{--bs-bg-opacity:1;background-color:rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important}.bg-light{--bs-bg-opacity:1;background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important}.bg-dark{--bs-bg-opacity:1;background-color:rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important}.bg-black{--bs-bg-opacity:1;background-color:rgba(var(--bs-black-rgb),var(--bs-bg-opacity))!important}.bg-white{--bs-bg-opacity:1;background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important}.bg-body{--bs-bg-opacity:1;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important}.bg-transparent{--bs-bg-opacity:1;background-color:transparent!important}.bg-body-secondary{--bs-bg-opacity:1;background-color:rgba(var(--bs-secondary-bg-rgb),var(--bs-bg-opacity))!important}.bg-body-tertiary{--bs-bg-opacity:1;background-color:rgba(var(--bs-tertiary-bg-rgb),var(--bs-bg-opacity))!important}.bg-opacity-10{--bs-bg-opacity:0.1}.bg-opacity-25{--bs-bg-opacity:0.25}.bg-opacity-50{--bs-bg-opacity:0.5}.bg-opacity-75{--bs-bg-opacity:0.75}.bg-opacity-100{--bs-bg-opacity:1}.bg-primary-subtle{background-color:var(--bs-primary-bg-subtle)!important}.bg-secondary-subtle{background-color:var(--bs-secondary-bg-subtle)!important}.bg-success-subtle{background-color:var(--bs-success-bg-subtle)!important}.bg-info-subtle{background-color:var(--bs-info-bg-subtle)!important}.bg-warning-subtle{background-color:var(--bs-warning-bg-subtle)!important}.bg-danger-subtle{background-color:var(--bs-danger-bg-subtle)!important}.bg-light-subtle{background-color:var(--bs-light-bg-subtle)!important}.bg-dark-subtle{background-color:var(--bs-dark-bg-subtle)!important}.bg-gradient{background-image:var(--bs-gradient)!important}.user-select-all{-webkit-user-select:all!important;-moz-user-select:all!important;user-select:all!important}.user-select-auto{-webkit-user-select:auto!important;-moz-user-select:auto!important;user-select:auto!important}.user-select-none{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--bs-border-radius-sm)!important}.rounded-2{border-radius:var(--bs-border-radius)!important}.rounded-3{border-radius:var(--bs-border-radius-lg)!important}.rounded-4{border-radius:var(--bs-border-radius-xl)!important}.rounded-5{border-radius:var(--bs-border-radius-xxl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--bs-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-0{border-top-left-radius:0!important;border-top-right-radius:0!important}.rounded-top-1{border-top-left-radius:var(--bs-border-radius-sm)!important;border-top-right-radius:var(--bs-border-radius-sm)!important}.rounded-top-2{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-3{border-top-left-radius:var(--bs-border-radius-lg)!important;border-top-right-radius:var(--bs-border-radius-lg)!important}.rounded-top-4{border-top-left-radius:var(--bs-border-radius-xl)!important;border-top-right-radius:var(--bs-border-radius-xl)!important}.rounded-top-5{border-top-left-radius:var(--bs-border-radius-xxl)!important;border-top-right-radius:var(--bs-border-radius-xxl)!important}.rounded-top-circle{border-top-left-radius:50%!important;border-top-right-radius:50%!important}.rounded-top-pill{border-top-left-radius:var(--bs-border-radius-pill)!important;border-top-right-radius:var(--bs-border-radius-pill)!important}.rounded-end{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.rounded-end-1{border-top-right-radius:var(--bs-border-radius-sm)!important;border-bottom-right-radius:var(--bs-border-radius-sm)!important}.rounded-end-2{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-3{border-top-right-radius:var(--bs-border-radius-lg)!important;border-bottom-right-radius:var(--bs-border-radius-lg)!important}.rounded-end-4{border-top-right-radius:var(--bs-border-radius-xl)!important;border-bottom-right-radius:var(--bs-border-radius-xl)!important}.rounded-end-5{border-top-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-right-radius:var(--bs-border-radius-xxl)!important}.rounded-end-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.rounded-end-pill{border-top-right-radius:var(--bs-border-radius-pill)!important;border-bottom-right-radius:var(--bs-border-radius-pill)!important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-0{border-bottom-right-radius:0!important;border-bottom-left-radius:0!important}.rounded-bottom-1{border-bottom-right-radius:var(--bs-border-radius-sm)!important;border-bottom-left-radius:var(--bs-border-radius-sm)!important}.rounded-bottom-2{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-3{border-bottom-right-radius:var(--bs-border-radius-lg)!important;border-bottom-left-radius:var(--bs-border-radius-lg)!important}.rounded-bottom-4{border-bottom-right-radius:var(--bs-border-radius-xl)!important;border-bottom-left-radius:var(--bs-border-radius-xl)!important}.rounded-bottom-5{border-bottom-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-left-radius:var(--bs-border-radius-xxl)!important}.rounded-bottom-circle{border-bottom-right-radius:50%!important;border-bottom-left-radius:50%!important}.rounded-bottom-pill{border-bottom-right-radius:var(--bs-border-radius-pill)!important;border-bottom-left-radius:var(--bs-border-radius-pill)!important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-0{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-start-1{border-bottom-left-radius:var(--bs-border-radius-sm)!important;border-top-left-radius:var(--bs-border-radius-sm)!important}.rounded-start-2{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-3{border-bottom-left-radius:var(--bs-border-radius-lg)!important;border-top-left-radius:var(--bs-border-radius-lg)!important}.rounded-start-4{border-bottom-left-radius:var(--bs-border-radius-xl)!important;border-top-left-radius:var(--bs-border-radius-xl)!important}.rounded-start-5{border-bottom-left-radius:var(--bs-border-radius-xxl)!important;border-top-left-radius:var(--bs-border-radius-xxl)!important}.rounded-start-circle{border-bottom-left-radius:50%!important;border-top-left-radius:50%!important}.rounded-start-pill{border-bottom-left-radius:var(--bs-border-radius-pill)!important;border-top-left-radius:var(--bs-border-radius-pill)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}.z-n1{z-index:-1!important}.z-0{z-index:0!important}.z-1{z-index:1!important}.z-2{z-index:2!important}.z-3{z-index:3!important}@media (min-width:576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.object-fit-sm-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-sm-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-sm-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-sm-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-sm-none{-o-object-fit:none!important;object-fit:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-inline-grid{display:inline-grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:3rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:3rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:3rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:3rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:3rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:3rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:3rem!important;padding-left:3rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:3rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:3rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:3rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:3rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:3rem!important}.row-gap-sm-0{row-gap:0!important}.row-gap-sm-1{row-gap:.25rem!important}.row-gap-sm-2{row-gap:.5rem!important}.row-gap-sm-3{row-gap:1rem!important}.row-gap-sm-4{row-gap:1.5rem!important}.row-gap-sm-5{row-gap:3rem!important}.column-gap-sm-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-sm-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-sm-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-sm-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-sm-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-sm-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.object-fit-md-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-md-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-md-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-md-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-md-none{-o-object-fit:none!important;object-fit:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-inline-grid{display:inline-grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:3rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:3rem!important;margin-left:3rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:3rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:3rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:3rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:3rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:3rem!important;padding-left:3rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:3rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:3rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:3rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:3rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:3rem!important}.row-gap-md-0{row-gap:0!important}.row-gap-md-1{row-gap:.25rem!important}.row-gap-md-2{row-gap:.5rem!important}.row-gap-md-3{row-gap:1rem!important}.row-gap-md-4{row-gap:1.5rem!important}.row-gap-md-5{row-gap:3rem!important}.column-gap-md-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-md-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-md-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-md-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-md-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-md-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.object-fit-lg-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-lg-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-lg-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-lg-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-lg-none{-o-object-fit:none!important;object-fit:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-inline-grid{display:inline-grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:3rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:3rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:3rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:3rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:3rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:3rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:3rem!important;padding-left:3rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:3rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:3rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:3rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:3rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:3rem!important}.row-gap-lg-0{row-gap:0!important}.row-gap-lg-1{row-gap:.25rem!important}.row-gap-lg-2{row-gap:.5rem!important}.row-gap-lg-3{row-gap:1rem!important}.row-gap-lg-4{row-gap:1.5rem!important}.row-gap-lg-5{row-gap:3rem!important}.column-gap-lg-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-lg-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-lg-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-lg-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-lg-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-lg-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.object-fit-xl-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-xl-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-xl-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-xl-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-xl-none{-o-object-fit:none!important;object-fit:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-inline-grid{display:inline-grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:3rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:3rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:3rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:3rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:3rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:3rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:3rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:3rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:3rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:3rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:3rem!important}.row-gap-xl-0{row-gap:0!important}.row-gap-xl-1{row-gap:.25rem!important}.row-gap-xl-2{row-gap:.5rem!important}.row-gap-xl-3{row-gap:1rem!important}.row-gap-xl-4{row-gap:1.5rem!important}.row-gap-xl-5{row-gap:3rem!important}.column-gap-xl-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-xl-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-xl-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-xl-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-xl-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-xl-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}}@media (min-width:1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.object-fit-xxl-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-xxl-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-xxl-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-xxl-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-xxl-none{-o-object-fit:none!important;object-fit:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-inline-grid{display:inline-grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:3rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:3rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:3rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:3rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:3rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:3rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:3rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:3rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:3rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:3rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:3rem!important}.row-gap-xxl-0{row-gap:0!important}.row-gap-xxl-1{row-gap:.25rem!important}.row-gap-xxl-2{row-gap:.5rem!important}.row-gap-xxl-3{row-gap:1rem!important}.row-gap-xxl-4{row-gap:1.5rem!important}.row-gap-xxl-5{row-gap:3rem!important}.column-gap-xxl-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-xxl-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-xxl-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-xxl-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-xxl-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-xxl-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}}@media (min-width:1200px){.fs-1{font-size:2.5rem!important}.fs-2{font-size:2rem!important}.fs-3{font-size:1.75rem!important}.fs-4{font-size:1.5rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-inline-grid{display:inline-grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}}`,""]);const G=O},911:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(8081),o=r.n(n),i=r(3645),s=r.n(i)()(o());s.push([e.id,".hidden-checkbox-labels .sv-checkbox .sv-item__control-label{visibility:hidden}#sv-nav-complete{width:0px;height:0px;overflow:hidden;visibility:hidden}.verification{display:inline-block;margin-left:20px}.verification-required{color:red;border-style:solid;border-width:1px}.sv-action-bar-item.verification.verification-ok:hover{cursor:auto;background-color:rgba(0,0,0,0)}.survey-progress{display:flex}",""]);const a=s},6795:(e,t,r)=>{"use strict";r.d(t,{Z:()=>_});var n=r(8081),o=r.n(n),i=r(3645),s=r.n(i),a=r(1667),l=r.n(a),u=new URL(r(6704),r.b),c=new URL(r(3344),r.b),p=new URL(r(1163),r.b),d=new URL(r(8860),r.b),h=new URL(r(4154),r.b),f=new URL(r(937),r.b),m=new URL(r(8484),r.b),g=s()(o()),b=l()(u),y=l()(c),v=l()(p),w=l()(d),x=l()(h),C=l()(f),P=l()(m);g.push([e.id,`/*!\n * surveyjs - Survey JavaScript library v1.9.90\n * Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/\n * License: MIT (http://www.opensource.org/licenses/mit-license.php)\n */\n@font-face{font-family:"Raleway";font-style:normal;font-weight:400;src:local("Raleway"),local("Raleway-Regular"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyCMIT5lu.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Raleway";font-style:normal;font-weight:400;src:local("Raleway"),local("Raleway-Regular"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyC0ITw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Raleway";font-style:normal;font-weight:700;src:local("Raleway Bold"),local("Raleway-Bold"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqhPAMif.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Raleway";font-style:normal;font-weight:700;src:local("Raleway Bold"),local("Raleway-Bold"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqZPAA.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Raleway";font-style:normal;font-weight:400;src:local("Raleway"),local("Raleway-Regular"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyC0ISQ.woff) format("woff")}@font-face{font-family:"Raleway";font-style:normal;font-weight:700;src:local("Raleway Bold"),local("Raleway-Bold"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqZPBg.woff) format("woff")}.sv-dragdrop-movedown{transform:translate(0, 0);animation:svdragdropmovedown .1s;animation-timing-function:ease-in-out}@keyframes svdragdropmovedown{0%{transform:translate(0, -50px)}100%{transform:translate(0, 0)}}.sv-dragdrop-moveup{transform:translate(0, 0);animation:svdragdropmoveup .1s;animation-timing-function:ease-in-out}@keyframes svdragdropmoveup{0%{transform:translate(0, 50px)}100%{transform:translate(0, 0)}}sv-popup{display:block;position:absolute;z-index:-1}.sv-popup{position:fixed;left:0;top:0;width:100vw;outline:none;z-index:2000;height:100vh}.sv-dropdown-popup{height:0}.sv-popup__container{box-shadow:0px 2px 6px rgba(0,0,0,.1);position:absolute;padding:0}.sv-popup__shadow{width:100%;height:100%;border-radius:calc(2 * var(--sjs-corner-radius, 4px))}.sv-popup__body-content{background-color:var(--background, #fff);border-radius:calc(1 * var(--sjs-corner-radius, 4px));width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:column;max-height:90vh;max-width:100vw}.sv-popup.sv-popup--modal{display:flex;align-items:center;justify-content:center;background-color:var(--background-semitransparent, rgba(144, 144, 144, 0.5));padding:calc(11 * var(--base-unit, 8px)) calc(15 * var(--base-unit, 8px));box-sizing:border-box}.sv-popup.sv-popup--modal .sv-popup__container{position:static}.sv-popup.sv-popup--modal .sv-popup__body-content{padding:calc(4 * var(--base-unit, 8px));height:auto}.sv-popup--overlay.sv-popup--overlay{width:100%;height:var(--sv-popup-overlay-height, 100vh)}.sv-popup--overlay.sv-popup--overlay .sv-popup__container{background:var(--background-semitransparent, rgba(144, 144, 144, 0.5));max-width:100vw;max-height:calc(var(--sv-popup-overlay-height, 100vh) - 1 * var(--base-unit, 8px));height:calc(var(--sv-popup-overlay-height, 100vh) - 1 * var(--base-unit, 8px));width:100%;padding-top:calc(2 * var(--base-unit, 8px));border:unset}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-content{max-height:var(--sv-popup-overlay-height, 100vh);max-width:100vw;border-radius:calc(4 * var(--sjs-corner-radius, 4px)) calc(4 * var(--sjs-corner-radius, 4px)) 0px 0px;background:var(--background, #fff);box-shadow:0px calc(1 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) rgba(0,0,0,.1);padding:calc(3 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px));height:calc(100% - (1 * var(--base-unit, 8px)))}.sv-popup--overlay.sv-popup--overlay .sv-popup__scrolling-content{height:calc(100% - 10*var(--base-unit, 8px))}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-footer{margin-top:calc(2 * var(--base-unit, 8px))}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-footer .sv-action-bar{width:100%}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-footer .sv-action{width:100%}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-footer-item{width:100%}.sv-popup--overlay.sv-popup--overlay .sv-popup__button{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:2px solid var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff))}.sv-popup--modal .sv-popup__scrolling-content{padding:2px;margin:-2px}.sv-popup__scrolling-content{height:100%;overflow:auto;display:flex;flex-direction:column}.sv-popup__scrolling-content::-webkit-scrollbar,.sv-popup__scrolling-content *::-webkit-scrollbar{height:6px;width:6px;background-color:var(--background-dim, #f3f3f3)}.sv-popup__scrolling-content::-webkit-scrollbar-thumb,.sv-popup__scrolling-content *::-webkit-scrollbar-thumb{background:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)))}.sv-popup__content{min-width:100%;height:100%;display:flex;flex-direction:column;min-height:0}.sv-popup--show-pointer.sv-popup--top .sv-popup__pointer{transform:translate(calc(-1 * var(--base-unit, 8px))) rotate(180deg)}.sv-popup--show-pointer.sv-popup--bottom .sv-popup__pointer{transform:translate(calc(-1 * var(--base-unit, 8px)), calc(-1 * var(--base-unit, 8px)))}.sv-popup--show-pointer.sv-popup--right{transform:translate(calc(1 * var(--base-unit, 8px)))}.sv-popup--show-pointer.sv-popup--right .sv-popup__pointer{transform:translate(-12px, -4px) rotate(-90deg)}.sv-popup--show-pointer.sv-popup--left{transform:translate(calc(-1 * var(--base-unit, 8px)))}.sv-popup--show-pointer.sv-popup--left .sv-popup__pointer{transform:translate(-4px, -4px) rotate(90deg)}.sv-popup__pointer{display:block;position:absolute}.sv-popup__pointer:after{content:" ";display:block;width:0;height:0;border-left:calc(1 * var(--base-unit, 8px)) solid rgba(0,0,0,0);border-right:calc(1 * var(--base-unit, 8px)) solid rgba(0,0,0,0);border-bottom:calc(1 * var(--base-unit, 8px)) solid var(--background, #fff);align-self:center}.sv-popup__body-header{font-family:Open Sans;font-size:calc(1.5 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(4 * var(--base-unit, 8px));font-style:normal;font-weight:700;margin-bottom:calc(2 * var(--base-unit, 8px));color:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-popup__body-footer{display:flex;margin-top:calc(4 * var(--base-unit, 8px))}.sv-popup__body-footer .sv-action-bar{gap:calc(1.5 * var(--base-unit, 8px))}.sv-popup__button{margin:calc(0.25 * var(--base-unit, 8px))}.sv-popup--modal .sv-list__filter,.sv-popup--overlay .sv-list__filter{padding-top:calc(1 * var(--base-unit, 8px))}.sv-popup--modal .sv-list__filter-icon,.sv-popup--overlay .sv-list__filter-icon{top:calc(2.5 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay{z-index:2001;padding:0}.sv-dropdown-popup.sv-popup--overlay .sv-popup__body-content{padding:0;border-radius:0}.sv-dropdown-popup.sv-popup--overlay .sv-popup__body-footer .sv-action-bar .sv-action{width:auto}.sv-dropdown-popup.sv-popup--overlay .sv-popup__button{background-color:rgba(0,0,0,0);color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:none;box-shadow:none;padding:calc(1 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px));border-radius:calc(12.5 * var(--base-unit, 8px));margin:0}.sv-dropdown-popup.sv-popup--overlay .sv-popup__container{max-height:calc(var(--sv-popup-overlay-height, 100vh));height:calc(var(--sv-popup-overlay-height, 100vh));padding-top:0}.sv-dropdown-popup.sv-popup--overlay .sv-popup__body-content{height:calc(var(--sv-popup-overlay-height, 100vh))}.sv-dropdown-popup.sv-popup--overlay .sv-popup__body-footer{background-color:var(--background-dim-light, #f9f9f9);margin-top:0;padding-top:calc(0.5 * var(--base-unit, 8px));padding-bottom:calc(0.5 * var(--base-unit, 8px));border-top:1px solid var(--sjs-border-light, var(--border-light, #eaeaea))}.sv-dropdown-popup.sv-popup--overlay .sv-popup__scrolling-content{height:calc(100% - 6*var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-icon .sv-svg-icon{width:calc(2 * var(--base-unit, 8px));height:calc(2 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__container{padding:0}.sv-dropdown-popup.sv-popup--overlay .sv-list{flex-grow:1;padding:calc(0.5 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter{display:flex;align-items:center;padding:calc(0.5 * var(--base-unit, 8px)) calc(1 * var(--base-unit, 8px)) calc(0.5 * var(--base-unit, 8px)) calc(2.5 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-icon{position:static;top:calc(1.5 * var(--base-unit, 8px));height:calc(2 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__empty-container{display:flex;flex-direction:column;justify-content:center;flex-grow:1;padding:calc(1 * var(--base-unit, 8px)) calc(0.5 * var(--base-unit, 8px));background-color:var(--background, #fff)}.sv-dropdown-popup.sv-popup--overlay .sv-popup__button:disabled{pointer-events:none;color:var(--sjs-general-forecolor, var(--foreground, #161616));opacity:.25}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-clear-button{height:calc(3 * var(--base-unit, 8px));width:calc(3 * var(--base-unit, 8px));padding:calc(0.5 * var(--base-unit, 8px));appearance:none;border:none;border-radius:100%;background-color:rgba(0,0,0,0)}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-clear-button svg{height:calc(2 * var(--base-unit, 8px));width:calc(2 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-clear-button svg use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-dropdown-popup.sv-popup--overlay .sv-list__input{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(3 * var(--base-unit, 8px));font-family:var(--font-family);padding:calc(0.5 * var(--base-unit, 8px)) 0 calc(0.5 * var(--base-unit, 8px)) calc(1 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__item:hover .sv-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item:focus .sv-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item--focused .sv-list__item-body{background:var(--background, #fff)}.sv-dropdown-popup.sv-popup--overlay .sv-list__item:hover.sv-list__item--selected .sv-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item:focus.sv-list__item--selected .sv-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item--focused.sv-list__item--selected .sv-list__item-body{background:var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff));font-weight:600}.sv-dropdown-popup.sv-popup--overlay .sv-list__item:hover.sv-list__item--selected .sd-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item:focus.sv-list__item--selected .sd-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item--focused.sv-list__item--selected .sd-list__item-body{background:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)));color:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-popup__body-content{--sv-popup-overlay-max-height: calc(var(--sv-popup-overlay-height, 100vh) - var(--base-unit, 8px) * 8);--sv-popup-overlay-max-width: calc(100% - var(--base-unit, 8px) * 8);position:absolute;transform:translate(-50%, -50%);left:50%;top:50%;max-height:var(--sv-popup-overlay-max-height);min-height:min(var(--sv-popup-overlay-max-height),31 * var(--base-unit, 8px));height:auto;width:auto;min-width:min(40 * var(--base-unit, 8px),var(--sv-popup-overlay-max-width));max-width:var(--sv-popup-overlay-max-width);border-radius:calc(1 * var(--sjs-corner-radius, 4px));overflow:hidden;margin:0}.sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-popup__content,.sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-popup__scrolling-content,.sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-list__container{flex-grow:1}.sv_progress-buttons__container-center{text-align:center}.sv_progress-buttons__container{display:inline-block;font-size:0;width:100%;max-width:1100px;white-space:nowrap;overflow:hidden}.sv_progress-buttons__image-button-left{display:inline-block;vertical-align:top;margin-top:22px;font-size:calc(0.875 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));width:16px;height:16px;cursor:pointer;background-image:url(${b})}.sv_progress-buttons__image-button-right{display:inline-block;vertical-align:top;margin-top:22px;font-size:calc(0.875 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));width:16px;height:16px;cursor:pointer;background-image:url(${y})}.sv_progress-buttons__image-button--hidden{visibility:hidden}.sv_progress-buttons__list-container{max-width:calc(100% - 36px);display:inline-block;overflow:hidden}.sv_progress-buttons__list{display:inline-block;width:max-content;padding-left:28px;padding-right:28px;margin-top:14px;margin-bottom:14px}.sv_progress-buttons__list li{width:138px;font-size:calc(0.875 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));font-family:var(--font-family, var(--font-family));position:relative;text-align:center;vertical-align:top;display:inline-block}.sv_progress-buttons__list li:before{width:24px;height:24px;content:"";line-height:30px;display:block;margin:0 auto 10px auto;border:3px solid;border-radius:50%;box-sizing:content-box;cursor:pointer}.sv_progress-buttons__list li:after{width:73%;height:3px;content:"";position:absolute;top:15px;left:-36.5%}.sv_progress-buttons__list li:first-child:after{content:none}.sv_progress-buttons__list .sv_progress-buttons__page-title{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:bold}.sv_progress-buttons__list .sv_progress-buttons__page-description{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv_progress-buttons__list li.sv_progress-buttons__list-element--nonclickable:before{cursor:not-allowed}.sv_progress-toc{padding:8px;max-width:336px;height:100%;background:#fff;box-sizing:border-box;min-width:256px}.sv_progress-toc .sv-list__item.sv-list__item--selected .sv-list__item-body{background:rgba(25,179,148,.1);color:#161616;font-weight:400}.sv_progress-toc .sv-list__item span{white-space:break-spaces}.sv_progress-toc .sv-list__item-body{padding-inline-start:16px;padding-inline-end:16px;border-radius:calc(1 * var(--sjs-corner-radius, 4px));padding-top:12px;padding-bottom:12px}.sv_progress-toc--left{border-right:1px solid #d6d6d6}.sv_progress-toc--right{border-left:1px solid #d6d6d6}.sv-container-modern{color:var(--text-color, #404040);font-size:var(--font-size, var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));font-family:var(--font-family, var(--font-family));margin-bottom:calc(10 * var(--base-unit, 8px))}.sv-container-modern__title{padding-left:.55em;color:var(--main-color, #1ab394);padding-top:5em;padding-bottom:.9375em}@media only screen and (min-width: 1000px){.sv-container-modern__title{margin-right:5%;margin-left:5%}}@media only screen and (max-width: 1000px){.sv-container-modern__title{margin-right:10px;margin-left:10px}}.sv-container-modern__title h3{margin:0;font-size:1.875em}.sv-container-modern__title h5{margin:0}.sv-container-modern__close{clear:right}.sv-container-modern fieldset{border:none;padding:0;margin:0}.sv-container-modern legend{border:none;padding:0;margin:0}.sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar{margin-top:2em}@media only screen and (min-width: 1000px){.sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar{margin-right:5%;margin-left:5%}}@media only screen and (max-width: 1000px){.sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar{margin-right:10px;margin-left:10px}}.sv-body__timer{padding:0 calc(1 * var(--base-unit, 8px));box-sizing:border-box}.sv-body__progress{margin-bottom:4.5em}.sv-body__progress:not(:first-child){margin-top:2.5em}.sv-root-modern{width:100%}.sv-page__title{margin:0;margin-bottom:1.333em;font-size:1.875em;padding-left:.293em}.sv-page__description{min-height:2.8em;font-size:1em;padding-left:.55em}.sv-page__title+.sv-page__description{margin-top:-2.8em}.sv-panel{box-sizing:border-box;width:100%}.sv-panel__title{font-size:1.25em;margin:0;padding:0;padding-bottom:.1em;padding-left:.44em;padding-right:.44em;position:relative}.sv-panel__footer{margin:0;padding:1em .44em 1em 0}.sv-panel__description{padding-left:.55em}.sv-panel__title--expandable{cursor:pointer;display:flex;padding-right:24px;align-items:center}.sv-panel__title--expandable:after{content:"";display:block;background-image:url(${v});background-repeat:no-repeat;background-position:center center;background-size:10px 12px;width:24px;height:24px;position:absolute;right:0}.sv-panel__title--expandable.sv-panel__title--expanded:after{transform:rotate(180deg)}.sv-panel__icon{outline:none}.sv-panel__icon:before{content:"";display:inline-block;background-image:url(${v});background-repeat:no-repeat;background-position:center center;height:.5em;width:.6em;margin-left:1.5em;vertical-align:middle}.sv-panel__icon--expanded:before{transform:rotate(180deg)}.sv-panel .sv-question__title{font-size:1em;padding-left:.55em}.sv-panel__content:not(:first-child){margin-top:.75em}.sv-panel .sv-row:not(:last-child){padding-bottom:1.875em}.sv-panel__title--error{background-color:var(--error-background-color, rgba(213, 41, 1, 0.2))}.sv-paneldynamic__progress-container{position:relative;margin-left:.75em;margin-right:250px;margin-top:20px}.sv-paneldynamic__add-btn{background-color:var(--add-button-color, #1948b3);float:right;margin-top:-18px}[dir=rtl] .sv-paneldynamic__add-btn,[style*="direction:rtl"] .sv-paneldynamic__add-btn,[style*="direction: rtl"] .sv-paneldynamic__add-btn{float:left}.sv-paneldynamic__add-btn--list-mode{float:none;margin-top:1em}.sv-paneldynamic__remove-btn{background-color:var(--remove-button-color, #ff1800);margin-top:1.25em}.sv-paneldynamic__remove-btn--right{margin-top:0;margin-left:1.25em}.sv-paneldynamic__prev-btn,.sv-paneldynamic__next-btn{box-sizing:border-box;display:inline-block;fill:var(--text-color, #404040);cursor:pointer;width:.7em;top:-0.28em;position:absolute}.sv-paneldynamic__prev-btn svg,.sv-paneldynamic__next-btn svg{display:block;height:.7em;width:.7em}.sv-paneldynamic__prev-btn{left:-1.3em;transform:rotate(90deg)}.sv-paneldynamic__next-btn{right:-1.3em;transform:rotate(270deg)}.sv-paneldynamic__prev-btn--disabled,.sv-paneldynamic__next-btn--disabled{fill:var(--disable-color, #dbdbdb);cursor:auto}.sv-paneldynamic__progress-text{color:var(--progress-text-color, #9d9d9d);font-weight:bold;font-size:.87em;margin-top:.69em;margin-left:1em}.sv-paneldynamic__separator{border:none;margin:0}.sv-paneldynamic__progress--top{margin-bottom:1em}.sv-paneldynamic__progress--bottom{margin-top:1em}.sv-paneldynamic__panel-wrapper~.sv-paneldynamic__panel-wrapper{padding-top:2.5em}.sv-paneldynamic__panel-wrapper--in-row{display:flex;flex-direction:row;align-items:center}@supports(display: flex){.sv-row{display:flex;flex-wrap:wrap}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.sv-row>.sv-row__panel,.sv-row__question:not(:last-child){float:left}}@media only screen and (-ms-high-contrast: active)and (max-width: 600px),only screen and (-ms-high-contrast: none)and (max-width: 600px){.sv-row>.sv-row__panel,.sv-row__question:not(:last-child){padding-bottom:2.5em;float:none}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){[dir=rtl] .sv-row__question:not(:last-child),[style*="direction:rtl"] .sv-row__question:not(:last-child),[style*="direction: rtl"] .sv-row__question:not(:last-child){float:right}}@media only screen and (-ms-high-contrast: active)and (max-width: 6000px),only screen and (-ms-high-contrast: none)and (max-width: 6000px){.sv-row__question--small:only-child{max-width:3000px}}@media only screen and (-ms-high-contrast: active)and (max-width: 3000px),only screen and (-ms-high-contrast: none)and (max-width: 3000px){.sv-row__question--small:only-child{max-width:1200px}}@media only screen and (-ms-high-contrast: active)and (max-width: 2000px),only screen and (-ms-high-contrast: none)and (max-width: 2000px){.sv-row__question--small:only-child{max-width:700px}}@media only screen and (-ms-high-contrast: active)and (max-width: 1000px),only screen and (-ms-high-contrast: none)and (max-width: 1000px){.sv-row__question--small:only-child{max-width:500px}}@media only screen and (-ms-high-contrast: active)and (max-width: 500px),only screen and (-ms-high-contrast: none)and (max-width: 500px){.sv-row__question--small:only-child{max-width:300px}}@media only screen and (-ms-high-contrast: active)and (max-width: 600px),only screen and (-ms-high-contrast: none)and (max-width: 600px){.sv-row>.sv-row__panel,.sv-row__question{width:100% !important;padding-right:0 !important}}.sv-row>.sv-row__panel,.sv-row__question{vertical-align:top;white-space:normal}.sv-row__question:first-child:last-child{flex:none !important}.sv-row:not(:last-child){padding-bottom:2.5em}.sv-question{overflow:auto;box-sizing:border-box;font-family:inherit;padding-left:var(--sv-element-add-padding-left, 0px);padding-right:var(--sv-element-add-padding-right, 0px)}.sv-question__title{position:relative;box-sizing:border-box;margin:0;padding:.25em .44em;cursor:default;font-size:1.25em;word-break:break-word}.sv-question__required-text{line-height:.8em;font-size:1.4em}.sv-question__description{margin:0;padding-left:.55em;font-size:1em;word-break:break-word}.sv-question__input{width:100%;height:1.81em}.sv-question__content{margin-left:.55em}.sv-question__erbox{color:var(--error-color, #d52901);font-size:.74em;font-weight:bold}.sv-question__erbox--location--top{margin-bottom:.4375em}.sv-question__erbox--location--bottom{margin-top:.4375em}.sv-question__footer{padding:.87em 0}.sv-question__title--answer{background-color:var(--answer-background-color, rgba(26, 179, 148, 0.2))}.sv-question__title--error{background-color:var(--error-background-color, rgba(213, 41, 1, 0.2))}.sv-question__header--location--top{margin-bottom:.65em}.sv-question__header--location--left{float:left;width:27%;margin-right:.875em}[dir=rtl] .sv-question__header--location--left,[style*="direction:rtl"] .sv-question__header--location--left,[style*="direction: rtl"] .sv-question__header--location--left{float:right}.sv-question__header--location--bottom{margin-top:.8em}.sv-question__content--left{overflow:hidden}.sv-question__other{margin-top:.5em}.sv-question__form-group{margin-top:.5em}.sv-question--disabled .sv-question__header{color:var(--disabled-text-color, rgba(64, 64, 64, 0.5))}.sv-image{display:inline-block}.sv-question__title--expandable{cursor:pointer;display:flex;padding-right:24px;align-items:center}.sv-question__title--expandable:after{content:"";display:block;background-image:url(${v});background-repeat:no-repeat;background-position:center center;background-size:10px 12px;width:24px;height:24px;position:absolute;right:0}.sv-question__title--expandable.sv-question__title--expanded:after{transform:rotate(180deg)}.sv-question__icon{outline:none}.sv-question__icon:before{content:"";display:inline-block;background-image:url(${v});background-repeat:no-repeat;background-position:center center;height:.5em;width:.6em;margin-left:1.5em;vertical-align:middle}.sv-question__icon--expanded:before{transform:rotate(180deg)}.sv-progress{height:.19em;background-color:var(--header-background-color, #e7e7e7);position:relative}.sv-progress__bar{position:relative;height:100%;background-color:var(--main-color, #1ab394)}.sv-progress__text{position:absolute;margin-top:.69em;color:var(--progress-text-color, #9d9d9d);font-size:.87em;font-weight:bold;padding-left:.6321em}@media only screen and (min-width: 1000px){.sv-progress__text{margin-left:5%}}@media only screen and (max-width: 1000px){.sv-progress__text{margin-left:10px}}.sv_progress-buttons__list li:before{border-color:var(--progress-buttons-color, #8dd9ca);background-color:var(--progress-buttons-color, #8dd9ca)}.sv_progress-buttons__list li:after{background-color:var(--text-border-color, #d4d4d4)}.sv_progress-buttons__list .sv_progress-buttons__page-title{color:var(--text-color, #404040)}.sv_progress-buttons__list .sv_progress-buttons__page-description{color:var(--text-color, #404040)}.sv_progress-buttons__list li.sv_progress-buttons__list-element--passed:before{border-color:var(--main-color, #1ab394);background-color:var(--main-color, #1ab394)}.sv_progress-buttons__list li.sv_progress-buttons__list-element--passed+li:after{background-color:var(--progress-buttons-color, #8dd9ca)}.sv_progress-buttons__list li.sv_progress-buttons__list-element--current:before{border-color:var(--main-color, #1ab394);background-color:#fff}.sv_progress-buttons__list li.sv_progress-buttons__list-element--passed.sv_progress-buttons__list-element--current:before{border-color:var(--main-color, #1ab394);background-color:#fff}.sv-title{font-family:var(--font-family, var(--font-family));font-weight:700;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal}.sv-description{color:var(--disabled-text-color, rgba(64, 64, 64, 0.5))}.sv-question .sv-selectbase{margin-bottom:4px}.sv-selectbase__item{margin-bottom:.425em;vertical-align:top}.sv-selectbase__item--inline{display:inline-block;padding-right:5%}.sv-selectbase__column{min-width:140px;vertical-align:top}.sv-selectbase__label{position:relative;display:block;box-sizing:border-box;cursor:inherit;margin-left:41px;min-height:30px}[dir=rtl] .sv-selectbase__label,[style*="direction:rtl"] .sv-selectbase__label,[style*="direction: rtl"] .sv-selectbase__label{margin-right:41px;margin-left:0}.sv-selectbase__decorator.sv-item__decorator{position:absolute;left:-41px}[dir=rtl] .sv-selectbase__decorator.sv-item__decorator,[style*="direction:rtl"] .sv-selectbase__decorator.sv-item__decorator,[style*="direction: rtl"] .sv-selectbase__decorator.sv-item__decorator{left:initial;right:-41px}.sv-selectbase__clear-btn{margin-top:.9em;background-color:var(--clean-button-color, #1948b3)}.sv-selectbase .sv-selectbase__item.sv-q-col-1{padding-right:0}.sv-question .sv-q-column-1{width:100%;max-width:100%;display:inline-block;padding-right:1em;box-sizing:border-box;word-break:break-word}.sv-question .sv-q-column-2{max-width:50%;display:inline-block;padding-right:1em;box-sizing:border-box;word-break:break-word}.sv-question .sv-q-column-3{max-width:33.33333%;display:inline-block;padding-right:1em;box-sizing:border-box;word-break:break-word}.sv-question .sv-q-column-4{max-width:25%;display:inline-block;padding-right:1em;box-sizing:border-box;word-break:break-word}.sv-question .sv-q-column-5{max-width:20%;display:inline-block;padding-right:1em;box-sizing:border-box;word-break:break-word}.sv-multipletext{width:100%;table-layout:fixed}.sv-multipletext__item-label{display:flex;align-items:center}.sv-multipletext__item{flex:1}.sv-multipletext__item-title{margin-right:1em;width:33%}.sv-multipletext__cell:not(:first-child){padding-left:.5em}.sv-multipletext__cell:not(:last-child){padding-right:.5em}.sv-matrix{overflow-x:auto}.sv-matrix .sv-table__cell--header{text-align:center}.sv-matrix__label{display:inline-block;margin:0}.sv-matrix__cell{min-width:10em;text-align:center}.sv-matrix__cell:first-child{text-align:left}.sv-matrix__text{cursor:pointer}.sv-matrix__text--checked{color:var(--body-background-color, white);background-color:var(--main-color, #1ab394)}.sv-matrix__text--disabled{cursor:default}.sv-matrix__text--disabled.sv-matrix__text--checked{background-color:var(--disable-color, #dbdbdb)}.sv-matrix__row--error{background-color:var(--error-background-color, rgba(213, 41, 1, 0.2))}.sv-matrixdynamic__add-btn{background-color:var(--add-button-color, #1948b3)}.sv-matrixdynamic__remove-btn{background-color:var(--remove-button-color, #ff1800)}.sv-detail-panel__icon{display:block;position:absolute;left:50%;top:50%;height:13px;width:24px;transform:translate(-50%, -50%) rotate(270deg)}.sv-detail-panel__icon--expanded{transform:translate(-50%, -50%)}.sv-detail-panel__icon:before{content:"";display:block;background-image:url(${w});background-repeat:no-repeat;background-position:center center;height:18px;width:24px}.sv-root-modern ::-webkit-scrollbar{height:6px;width:6px;background-color:var(--main-hover-color, #9f9f9f)}.sv-root-modern ::-webkit-scrollbar-thumb{background:var(--main-color, #1ab394)}.sv-table{width:100%;background-color:rgba(var(--main-hover-color, #9f9f9f), 0.1);border-collapse:separate;border-spacing:0}.sv-table tbody tr:last-child .sv-table__cell{padding-bottom:2.5em}.sv-table tr:first-child .sv-table__cell{padding-top:1.875em}.sv-table td:first-child,.sv-table th:first-child{padding-left:1.875em}.sv-table td:last-child,.sv-table th:last-child{padding-right:1.875em}.sv-table__row--detail{background-color:var(--header-background-color, #e7e7e7)}.sv-table__row--detail td{border-top:1px solid var(--text-border-color, #d4d4d4);border-bottom:1px solid var(--text-border-color, #d4d4d4);padding:1em 0}.sv-table__cell{padding:.9375em 0;box-sizing:content-box;vertical-align:top}.sv-table__cell:not(:last-child){padding-right:1em}.sv-table__cell:not(:first-child){padding-left:1em}.sv-table__cell--header{font-family:var(--font-family, var(--font-family));font-weight:bold;text-align:left}.sv-table__cell--rowText{vertical-align:middle}.sv-table__cell--detail{text-align:center;vertical-align:middle;width:32px}.sv-table__cell--detail-rowtext{vertical-align:middle}.sv-table__cell--detail-panel{padding-left:1em}.sv-table__cell--detail-button{appearance:none;position:relative;border:3px solid var(--border-color, rgba(64, 64, 64, 0.5));border-radius:50px;text-align:center;vertical-align:middle;width:32px;height:32px;padding:0;margin:0;outline:none;cursor:pointer;background:rgba(0,0,0,0)}.sv-table__empty--rows--section{text-align:center;vertical-align:middle}.sv-table__empty--rows--text{padding:20px}.sv-table__cell--actions sv-action-bar,.sv-table__cell--actions .sv-action-bar{margin-left:0;padding-left:0}.sv-footer.sv-action-bar{display:block;min-height:var(--base-line-height, 2em);padding:2.5em 0 .87em 0;margin-left:auto}.sv-footer.sv-action-bar .sv-action__content{display:block}.sv-footer.sv-action-bar .sv-action:not(:last-child) .sv-action__content{padding-right:0}.sv-btn--navigation{margin:0 1em;float:right;background-color:var(--main-color, #1ab394)}.sv-footer__complete-btn,.sv-footer__next-btn,.sv-footer__preview-btn{float:right}.sv-footer__prev-btn,.sv-footer__edit-btn{float:left}[dir=rtl] .sv-footer__complete-btn,[style*="direction:rtl"] .sv-footer__complete-btn,[style*="direction: rtl"] .sv-footer__complete-btn{float:left}[dir=rtl] .sv-footer__preview-btn,[style*="direction:rtl"] .sv-footer__preview-btn,[style*="direction: rtl"] .sv-footer__preview-btn{float:left}[dir=rtl] .sv-footer__next-btn,[style*="direction:rtl"] .sv-footer__next-btn,[style*="direction: rtl"] .sv-footer__next-btn{float:left}[dir=rtl] .sv-footer__prev-btn,[style*="direction:rtl"] .sv-footer__prev-btn,[style*="direction: rtl"] .sv-footer__prev-btn{float:right}[dir=rtl] .sv-footer__edit-btn,[style*="direction:rtl"] .sv-footer__edit-btn,[style*="direction: rtl"] .sv-footer__edit-btn{float:right}.sv-btn.sv-action-bar-item,.sv-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:1.214em;color:var(--body-background-color, white);cursor:pointer;font-family:inherit;font-size:.875em;font-weight:bold;outline:none;padding:.5em 2.786em .6em;text-align:left}.sv-btn--navigation{background-color:var(--main-color, #1ab394)}.sv-item{position:relative;cursor:pointer}.sv-item--disabled{cursor:default}.sv-item__decorator{position:relative;display:inline-block;box-sizing:border-box;width:30px;height:30px;border:solid 1px rgba(0,0,0,0);vertical-align:middle}.sv-item__svg{position:absolute;top:50%;left:50%;display:inline-block;box-sizing:border-box;width:24px;height:24px;margin-right:-50%;transform:translate(-50%, -50%)}.sv-item__control:focus+.sv-item__decorator{border-color:var(--main-color, #1ab394);outline:none}.sv-item__control-label{position:relative;top:4px}.sv-checkbox__decorator{border-radius:2px}.sv-checkbox__svg{border:3px solid var(--border-color, rgba(64, 64, 64, 0.5));border-radius:2px;fill:rgba(0,0,0,0)}.sv-checkbox--allowhover:hover .sv-checkbox__svg{border:none;background-color:var(--main-hover-color, #9f9f9f);fill:#fff}.sv-checkbox--checked .sv-checkbox__svg{border:none;background-color:var(--main-color, #1ab394);fill:#fff}.sv-checkbox--checked.sv-checkbox--disabled .sv-checkbox__svg{border:none;background-color:var(--disable-color, #dbdbdb);fill:#fff}.sv-checkbox--disabled .sv-checkbox__svg{border:3px solid var(--disable-color, #dbdbdb)}.sv-radio__decorator{border-radius:100%}.sv-radio__svg{border:3px solid var(--border-color, rgba(64, 64, 64, 0.5));border-radius:100%;fill:rgba(0,0,0,0)}.sv-radio--allowhover:hover .sv-radio__svg{fill:var(--border-color, rgba(64, 64, 64, 0.5))}.sv-radio--checked .sv-radio__svg{border-color:var(--radio-checked-color, #404040);fill:var(--radio-checked-color, #404040)}.sv-radio--disabled .sv-radio__svg{border-color:var(--disable-color, #dbdbdb)}.sv-radio--disabled.sv-radio--checked .sv-radio__svg{fill:var(--disable-color, #dbdbdb)}.sv-boolean{display:block;position:relative;line-height:1.5em}.sv-boolean__switch{float:left;box-sizing:border-box;width:4em;height:1.5em;margin-right:1.0625em;margin-left:1.3125em;padding:.125em .1875em;border-radius:.75em;margin-bottom:2px}.sv-boolean__switch{background-color:var(--main-color, #1ab394)}.sv-boolean__slider{background-color:var(--slider-color, #fff)}.sv-boolean__label--disabled{color:var(--disabled-label-color, rgba(64, 64, 64, 0.5))}.sv-boolean--disabled .sv-boolean__switch{background-color:var(--main-hover-color, #9f9f9f)}.sv-boolean--disabled .sv-boolean__slider{background-color:var(--disabled-slider-color, #cfcfcf)}.sv-boolean input:focus~.sv-boolean__switch{outline:1px solid var(--main-color, #1ab394);outline-offset:1px}[dir=rtl] .sv-boolean__switch,[style*="direction:rtl"] .sv-boolean__switch,[style*="direction: rtl"] .sv-boolean__switch{float:right}.sv-boolean__slider{display:block;width:1.25em;height:1.25em;transition-duration:.1s;transition-property:margin-left;transition-timing-function:linear;border:none;border-radius:100%}.sv-boolean--indeterminate .sv-boolean__slider{margin-left:calc(50% - .625em)}.sv-boolean--checked .sv-boolean__slider{margin-left:calc(100% - 1.25em)}.sv-boolean__label{cursor:pointer;float:left}[dir=rtl] .sv-boolean__label,[style*="direction:rtl"] .sv-boolean__label,[style*="direction: rtl"] .sv-boolean__label{float:right}[dir=rtl] .sv-boolean--indeterminate .sv-boolean__slider,[style*="direction:rtl"] .sv-boolean--indeterminate .sv-boolean__slider,[style*="direction: rtl"] .sv-boolean--indeterminate .sv-boolean__slider{margin-right:calc(50% - .625em)}[dir=rtl] .sv-boolean--checked .sv-boolean__slider,[style*="direction:rtl"] .sv-boolean--checked .sv-boolean__slider,[style*="direction: rtl"] .sv-boolean--checked .sv-boolean__slider{margin-right:calc(100% - 1.25em)}.sv-boolean__switch{background-color:var(--main-color, #1ab394)}.sv-boolean__slider{background-color:var(--slider-color, #fff)}.sv-boolean__label--disabled{color:var(--disabled-label-color, rgba(64, 64, 64, 0.5))}.sv-boolean--disabled .sv-boolean__switch{background-color:var(--main-hover-color, #9f9f9f)}.sv-boolean--disabled .sv-boolean__slider{background-color:var(--disabled-slider-color, #cfcfcf)}.sv-imagepicker__item{border:none;padding:.24em}.sv-imagepicker__item--inline{display:inline-block}.sv-imagepicker__item--inline:not(:last-child){margin-right:4%}.sv-imagepicker__image{border:.24em solid rgba(0,0,0,0);display:block;pointer-events:none}.sv-imagepicker__label{cursor:inherit}.sv-imagepicker__text{font-size:1.14em;padding-left:.24em}.sv-imagepicker__item--allowhover:hover .sv-imagepicker__image{background-color:var(--main-hover-color, #9f9f9f);border-color:var(--main-hover-color, #9f9f9f)}.sv-imagepicker__item:not(.sv-imagepicker__item--checked) .sv-imagepicker__control:focus~div .sv-imagepicker__image{background-color:var(--main-hover-color, #9f9f9f);border-color:var(--main-hover-color, #9f9f9f)}.sv-imagepicker__item--checked .sv-imagepicker__image{background-color:var(--main-color, #1ab394);border-color:var(--main-color, #1ab394)}.sv-imagepicker__item{cursor:pointer}.sv-imagepicker__item--disabled{cursor:default}.sv-imagepicker__item--disabled.sv-imagepicker__item--checked .sv-imagepicker__image{background-color:var(--disable-color, #dbdbdb);border-color:var(--disable-color, #dbdbdb)}.sv-dropdown{appearance:none;-webkit-appearance:none;-moz-appearance:none;display:block;background:rgba(0,0,0,0);background-image:url(${v});background-repeat:no-repeat,repeat;background-position:right .7em top 50%,0 0;background-size:.57em 100%;border:none;border-bottom:.06em solid var(--text-border-color, #d4d4d4);box-sizing:border-box;font-family:inherit;font-size:inherit;padding-block:.25em;padding-inline-end:1.5em;padding-inline-start:.87em;height:2.19em;width:100%;display:flex;justify-content:space-between}.sv-dropdown:focus,.sv-dropdown:focus-within{background-image:url(${x});border-color:var(--text-border-color, #d4d4d4);outline:none}.sv-dropdown::-ms-expand{display:none}.sv-dropdown--error{border-color:var(--error-color, #d52901);color:var(--error-color, #d52901)}.sv-dropdown--error::placeholder,.sv-dropdown--error::-ms-input-placeholder{color:var(--error-color, #d52901)}.sv-dropdown option{color:var(--text-color, #404040)}.sv-dropdown__value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;font-family:var(--font-family, var(--font-family));font-size:inherit;color:var(--text-color, #404040);position:relative}.sv-dropdown__value .sv-string-viewer{line-height:28px}.sv_dropdown_control__input-field-component{height:auto}.sv-dropdown__hint-prefix{opacity:.5}.sv-dropdown__hint-prefix span{word-break:unset;line-height:28px}.sv-dropdown__hint-suffix{display:flex;opacity:.5}.sv-dropdown__hint-suffix span{word-break:unset;line-height:28px}.sv-dropdown_clean-button{padding:3px 12px;margin:auto 0}.sv-dropdown_clean-button-svg{width:12px;height:12px}.sv-input.sv-dropdown:focus-within .sv-dropdown__filter-string-input{z-index:2000}.sv-dropdown__filter-string-input{border:none;outline:none;padding:0;font-family:var(--font-family, var(--font-family));font-size:inherit;background-color:rgba(0,0,0,0);width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;appearance:none;position:absolute;left:0;top:0;height:100%}.sv-dropdown--empty:not(.sv-input--disabled) .sv-dropdown__filter-string-input::placeholder{font-family:var(--font-family, var(--font-family));color:var(--text-color, #404040)}.sv-dropdown__filter-string-input::placeholder{color:var(--disabled-text-color, rgba(64, 64, 64, 0.5));font-size:inherit;width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;appearance:none}[dir=rtl] .sv-dropdown,[style*="direction:rtl"] .sv-dropdown,[style*="direction: rtl"] .sv-dropdown{background-position:left .7em top 50%,0 0}.sv-input.sv-tagbox:not(.sv-tagbox--empty):not(.sv-input--disabled){height:auto;padding:.5em;padding-inline-end:2em}.sv-tagbox_clean-button{height:1.5em;padding:.5em;margin:auto 0}.sv-tagbox__value.sv-dropdown__value{position:relative;gap:.25em;display:flex;flex-wrap:wrap;flex-grow:1;padding-inline:unset;margin-inline:unset;margin-block:unset}.sv-tagbox__item{position:relative;display:flex;color:var(--text-color, #404040);height:1.5em;padding-block:.25em;padding-inline-end:.4em;padding-inline-start:.87em;border:solid .1875em #9f9f9f;border-radius:2px;min-width:2.3125em}.sv-tagbox__item:hover{background-color:var(--main-hover-color, #9f9f9f);color:var(--body-background-color, white)}.sv-tagbox__item:hover .sv-tagbox__item_clean-button-svg use{fill:var(--body-background-color, white)}.sv-tagbox__item-text{color:inherit;font-size:1em}.sv-tagbox__item_clean-button-svg{margin:.3125em;width:1em;height:1em}.sv-tagbox__item_clean-button-svg use{fill:var(--text-color, #404040)}.sv-tagbox__filter-string-input{width:auto;display:flex;flex-grow:1;position:initial}.sv-tagbox__placeholder{position:absolute;top:0;left:0;max-width:100%;width:auto;height:100%;text-align:left;cursor:text;pointer-events:none;color:var(--main-hover-color, #9f9f9f)}.sv-tagbox{border-bottom:.06em solid var(--text-border-color, #d4d4d4)}.sv-tagbox:focus{border-color:var(--text-border-color, #d4d4d4)}.sv-tagbox--error{border-color:var(--error-color, #d52901);color:var(--error-color, #d52901)}.sv-tagbox--error::placeholder{color:var(--error-color, #d52901)}.sv-tagbox--error::-ms-input-placeholder{color:var(--error-color, #d52901)}.sv-tagbox .sv-dropdown__filter-string-input{height:auto}.sv-text{box-sizing:border-box;width:100%;height:2.19em;padding:.25em 0 .25em .87em;border:none;border-radius:0;border-bottom:.07em solid var(--text-border-color, #d4d4d4);box-shadow:none;background-color:rgba(0,0,0,0);font-family:inherit;font-size:1em}.sv-text:focus{border-color:var(--main-color, #1ab394);outline:none;box-shadow:none}.sv-text:invalid{box-shadow:none}.sv-text:-webkit-autofill{-webkit-box-shadow:0 0 0 30px #fff inset}.sv-text::placeholder{opacity:1;color:var(--text-color, #404040)}.sv-text:-ms-input-placeholder{opacity:1;color:var(--text-color, #404040)}.sv-text::-ms-input-placeholder{opacity:1;color:var(--text-color, #404040)}.sv-text[type=date]{padding-right:2px;background-image:url(${v});background-repeat:no-repeat,repeat;background-position:right .61em top 50%,0 0;background-size:.57em auto,100%}.sv-text[type=date]:focus{background-image:url(${x})}.sv-text[type=date]::-webkit-calendar-picker-indicator{color:rgba(0,0,0,0);background:rgba(0,0,0,0)}.sv-text[type=date]::-webkit-clear-button{display:none}.sv-text[type=date]::-webkit-inner-spin-button{display:none}.sv-text--error{color:var(--error-color, #d52901);border-color:var(--error-color, #d52901)}.sv-text--error::placeholder{color:var(--error-color, #d52901)}.sv-text--error::-ms-input-placeholder{color:var(--error-color, #d52901)}input.sv-text,textarea.sv-comment,select.sv-dropdown{color:var(--text-color, #404040);background-color:var(--inputs-background-color, white)}.sv-rating{color:var(--text-color, #404040);padding-bottom:3px}.sv-rating input:focus+.sv-rating__min-text+.sv-rating__item-text,.sv-rating input:focus+.sv-rating__item-text{outline:1px solid var(--main-color, #1ab394);outline-offset:2px}.sv-rating__item{position:relative;display:inline}.sv-rating__item-text{min-width:2.3125em;height:2.3125em;display:inline-block;color:var(--main-hover-color, #9f9f9f);padding:0 .3125em;border:solid .1875em var(--main-hover-color, #9f9f9f);text-align:center;font-size:1em;font-weight:bold;line-height:1.13;cursor:pointer;margin:3px 0;margin-right:.26em;box-sizing:border-box}.sv-rating__item-text>span{margin-top:.44em;display:inline-block}.sv-rating__item-text:hover{background-color:var(--main-hover-color, #9f9f9f);color:var(--body-background-color, white)}.sv-rating__item--selected .sv-rating__item-text{background-color:var(--main-color, #1ab394);color:var(--body-background-color, white);border-color:var(--main-color, #1ab394)}.sv-rating__item--selected .sv-rating__item-text:hover{background-color:var(--main-color, #1ab394)}.sv-rating__item-star>svg{height:32px;width:32px;display:inline-block;vertical-align:middle;border:1px solid rgba(0,0,0,0);fill:var(--text-color, #404040)}.sv-rating__item-star>svg.sv-star-2{display:none}.sv-rating__item-star>svg:hover{border:1px solid var(--main-hover-color, #9f9f9f)}.sv-rating__item-star--selected>svg{fill:var(--main-color, #1ab394)}.sv-rating__item-smiley>svg{height:24px;width:24px;padding:4px;display:inline-block;vertical-align:middle;border:3px solid var(--border-color, rgba(64, 64, 64, 0.5));margin:3px 0;margin-right:.26em;fill:var(--main-hover-color, #9f9f9f)}.sv-rating__item-smiley>svg>use{display:block}.sv-rating__item-smiley>svg:hover{border:3px solid var(--main-hover-color, #9f9f9f);background-color:var(--main-hover-color, #9f9f9f)}.sv-rating__item-smiley--selected>svg{background-color:var(--main-color, #1ab394);fill:var(--body-background-color, white);border:3px solid var(--main-color, #1ab394)}.sv-rating__min-text{font-size:1em;margin-right:1.25em;cursor:pointer}.sv-rating__max-text{font-size:1em;margin-left:.87em;cursor:pointer}.sv-question--disabled .sv-rating__item-text{cursor:default;color:var(--disable-color, #dbdbdb);border-color:var(--disable-color, #dbdbdb)}.sv-question--disabled .sv-rating__item-text:hover{background-color:rgba(0,0,0,0)}.sv-question--disabled .sv-rating--disabled .sv-rating__item-text:hover .sv-rating__item--selected .sv-rating__item-text{background-color:var(--disable-color, #dbdbdb);color:var(--body-background-color, white)}.sv-question--disabled .sv-rating__item--selected .sv-rating__item-text{background-color:var(--disable-color, #dbdbdb);color:var(--body-background-color, white)}.sv-question--disabled .sv-rating__min-text{cursor:default}.sv-question--disabled .sv-rating__max-text{cursor:default}.sv-comment{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:.06em solid var(--text-border-color, #d4d4d4);border-radius:0;box-sizing:border-box;padding:.25em .87em;font-family:inherit;font-size:1em;outline:none;width:100%;max-width:100%}.sv-comment:focus{border-color:var(--main-color, #1ab394)}.sv-file{position:relative}.sv-file__decorator{background-color:var(--body-container-background-color, #f4f4f4);padding:1.68em 0}.sv-file__clean-btn{background-color:var(--remove-button-color, #ff1800);margin-top:1.25em}.sv-file__choose-btn:not(.sv-file__choose-btn--disabled){background-color:var(--add-button-color, #1948b3);display:inline-block}.sv-file__choose-btn--disabled{cursor:default;background-color:var(--disable-color, #dbdbdb);display:inline-block}.sv-file__no-file-chosen{display:inline-block;font-size:.87em;margin-left:1em}.sv-file__preview{display:inline-block;padding-right:23px;position:relative;margin-top:1.25em;vertical-align:top}.sv-file__preview:not(:last-child){margin-right:31px}.sv-file__remove-svg{position:absolute;fill:#ff1800;cursor:pointer;height:16px;top:0;right:0;width:16px}.sv-file__remove-svg .sv-svg-icon{width:16px;height:16px}.sv-file__sign a{color:var(--text-color, #404040);text-align:left;text-decoration:none}.sv-file__wrapper{position:relative;display:inline-block;margin:0;margin-left:50%;transform:translate(-50%, 0);padding:0}.sv-clearfix:after{content:"";display:table;clear:both}.sv-completedpage{font-family:var(--font-family, var(--font-family));font-size:1.875em;font-weight:bold;box-sizing:border-box;height:14em;padding-top:4.5em;padding-bottom:4.5em;text-align:center;color:var(--text-color, #404040);background-color:var(--body-container-background-color, #f4f4f4)}.sv-completedpage:before{display:block;content:"";background-image:url(${C});width:72px;height:72px;margin-left:calc(50% - 36px);padding:36px 0px}@media only screen and (min-width: 1000px){.sv-completedpage{margin-right:5%;margin-left:calc(5% + .293em)}}@media only screen and (max-width: 1000px){.sv-completedpage{margin-left:calc(10px + .293em);margin-right:10px}}.sv-header{white-space:nowrap}.sv-logo--left{display:inline-block;vertical-align:top;margin-right:2em}.sv-logo--right{vertical-align:top;margin-left:2em;float:right}.sv-logo--top{display:block;width:100%;text-align:center}.sv-logo--bottom{display:block;width:100%;text-align:center}.sv-header__text{display:inline-block;vertical-align:top}.sjs_sp_container{border:1px dashed var(--disable-color, #dbdbdb)}.sjs_sp_placeholder{color:var(--foreground-light, var(--sjs-general-forecolor-light, var(--foreground-light, #909090)))}.sv-action-bar{display:flex;box-sizing:content-box;position:relative;align-items:center;margin-left:auto;overflow:hidden;white-space:nowrap}.sv-action-bar-separator{display:inline-block;width:1px;height:24px;vertical-align:middle;margin-right:16px;background-color:var(--sjs-border-default, var(--border, #d6d6d6))}.sv-action-bar--default-size-mode .sv-action-bar-separator{margin:0 calc(1 * var(--base-unit, 8px))}.sv-action-bar--small-size-mode .sv-action-bar-separator{margin:0 calc(0.5 * var(--base-unit, 8px))}.sv-action-bar-item{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;padding:calc(1 * var(--base-unit, 8px));box-sizing:border-box;border:none;border-radius:calc(0.5 * var(--sjs-corner-radius, 4px));background-color:rgba(0,0,0,0);color:var(--sjs-general-forecolor, var(--foreground, #161616));cursor:pointer;font-family:var(--font-family, var(--font-family));overflow-x:hidden;white-space:nowrap}button.sv-action-bar-item{overflow:hidden}.sv-action-bar--default-size-mode .sv-action-bar-item{height:calc(5 * var(--base-unit, 8px));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(3 * var(--base-unit, 8px));margin:0 calc(1 * var(--base-unit, 8px))}.sv-action-bar--small-size-mode .sv-action-bar-item{height:calc(4 * var(--base-unit, 8px));font-size:calc(0.75 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(2 * var(--base-unit, 8px));margin:0 calc(0.5 * var(--base-unit, 8px))}.sv-action:first-of-type .sv-action-bar-item{margin-inline-start:0}.sv-action:last-of-type .sv-action-bar-item{margin-inline-end:0}.sv-action-bar--default-size-mode .sv-action-bar-item__title--with-icon{margin-inline-start:calc(1 * var(--base-unit, 8px))}.sv-action-bar--small-size-mode .sv-action-bar-item__title--with-icon{margin-inline-start:calc(0.5 * var(--base-unit, 8px))}.sv-action-bar-item__icon svg{display:block}.sv-action-bar-item__icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-action-bar-item:not(.sv-action-bar-item--pressed):hover:enabled,.sv-action-bar-item:not(.sv-action-bar-item--pressed):focus:enabled{outline:none;background-color:var(--background-dim, #f3f3f3)}.sv-action-bar-item--active.sv-action-bar-item--pressed:focus,.sv-action-bar-item--active.sv-action-bar-item--pressed:focus-visible{outline:none}.sv-action-bar-item:not(.sv-action-bar-item--pressed):active:enabled{opacity:.5}.sv-action-bar-item:disabled{opacity:.25;cursor:default}.sv-action-bar-item__title{color:inherit;vertical-align:middle;white-space:nowrap}.sv-action-bar-item--secondary .sv-action-bar-item__icon use{fill:var(--secondary, #ff9814)}.sv-action-bar-item--active .sv-action-bar-item__icon use{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-action-bar-item-dropdown{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;height:calc(5 * var(--base-unit, 8px));padding:calc(1 * var(--base-unit, 8px));box-sizing:border-box;border:none;border-radius:calc(0.5 * var(--sjs-corner-radius, 4px));background-color:rgba(0,0,0,0);cursor:pointer;line-height:calc(3 * var(--base-unit, 8px));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));font-family:var(--font-family, var(--font-family))}.sv-expand-action:before{content:"";display:inline-block;background-image:url(${v});background-repeat:no-repeat;background-position:center center;height:10px;width:12px;margin:auto 8px}.sv-expand-action--expanded:before{transform:rotate(180deg)}.sv-dots{width:48px}.sv-dots__item{width:100%}.sv-dots__item .sv-action-bar-item__icon{margin:auto}.sv-action--hidden{width:0px;height:0px;overflow:hidden;visibility:hidden}.sv-action__content{display:flex;flex-direction:row;align-items:center}.sv-action__content>*{flex:0 0 auto}.sv-action--space{margin-left:auto}.sv-action-bar-item--pressed:not(.sv-action-bar-item--active){background-color:var(--background-dim, #f3f3f3);opacity:50%}.sv-dragged-element-shortcut{height:calc(3 * var(--base-unit, 8px));min-width:calc(12.5 * var(--base-unit, 8px));border-radius:calc(4.5 * var(--base-unit, 8px));background-color:var(--background, #fff);padding:calc(2 * var(--base-unit, 8px));cursor:grabbing;position:absolute;z-index:1000;box-shadow:0px 8px 16px rgba(0,0,0,.1);font-family:var(--font-family, var(--font-family));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));padding-left:calc(2.5 * var(--base-unit, 8px));line-height:calc(3 * var(--base-unit, 8px))}.sv-matrixdynamic__drag-icon{padding-top:calc(1.75 * var(--base-unit, 8px))}.sv-matrixdynamic__drag-icon:after{content:" ";display:block;height:calc(0.75 * var(--base-unit, 8px));width:calc(2.5 * var(--base-unit, 8px));border:1px solid #e7e7e7;box-sizing:border-box;border-radius:calc(1.25 * var(--base-unit, 8px));cursor:move;margin-top:calc(1.5 * var(--base-unit, 8px))}.sv-matrix-row--drag-drop-ghost-mod td{background-color:var(--background-dim, #f3f3f3)}.sv-matrix-row--drag-drop-ghost-mod td>*{visibility:hidden}sv-popup{display:block;position:absolute;z-index:-1}.sv-popup{position:fixed;left:0;top:0;width:100vw;outline:none;z-index:2000;height:100vh}.sv-dropdown-popup{height:0}.sv-popup__container{box-shadow:0px 2px 6px rgba(0,0,0,.1);position:absolute;padding:0}.sv-popup__shadow{width:100%;height:100%;border-radius:calc(2 * var(--sjs-corner-radius, 4px))}.sv-popup__body-content{background-color:var(--background, #fff);border-radius:calc(1 * var(--sjs-corner-radius, 4px));width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:column;max-height:90vh;max-width:100vw}.sv-popup.sv-popup--modal{display:flex;align-items:center;justify-content:center;background-color:var(--background-semitransparent, rgba(144, 144, 144, 0.5));padding:calc(11 * var(--base-unit, 8px)) calc(15 * var(--base-unit, 8px));box-sizing:border-box}.sv-popup.sv-popup--modal .sv-popup__container{position:static}.sv-popup.sv-popup--modal .sv-popup__body-content{padding:calc(4 * var(--base-unit, 8px));height:auto}.sv-popup--overlay.sv-popup--overlay{width:100%;height:var(--sv-popup-overlay-height, 100vh)}.sv-popup--overlay.sv-popup--overlay .sv-popup__container{background:var(--background-semitransparent, rgba(144, 144, 144, 0.5));max-width:100vw;max-height:calc(var(--sv-popup-overlay-height, 100vh) - 1 * var(--base-unit, 8px));height:calc(var(--sv-popup-overlay-height, 100vh) - 1 * var(--base-unit, 8px));width:100%;padding-top:calc(2 * var(--base-unit, 8px));border:unset}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-content{max-height:var(--sv-popup-overlay-height, 100vh);max-width:100vw;border-radius:calc(4 * var(--sjs-corner-radius, 4px)) calc(4 * var(--sjs-corner-radius, 4px)) 0px 0px;background:var(--background, #fff);box-shadow:0px calc(1 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) rgba(0,0,0,.1);padding:calc(3 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px));height:calc(100% - (1 * var(--base-unit, 8px)))}.sv-popup--overlay.sv-popup--overlay .sv-popup__scrolling-content{height:calc(100% - 10*var(--base-unit, 8px))}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-footer{margin-top:calc(2 * var(--base-unit, 8px))}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-footer .sv-action-bar{width:100%}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-footer .sv-action{width:100%}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-footer-item{width:100%}.sv-popup--overlay.sv-popup--overlay .sv-popup__button{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:2px solid var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff))}.sv-popup--modal .sv-popup__scrolling-content{padding:2px;margin:-2px}.sv-popup__scrolling-content{height:100%;overflow:auto;display:flex;flex-direction:column}.sv-popup__scrolling-content::-webkit-scrollbar,.sv-popup__scrolling-content *::-webkit-scrollbar{height:6px;width:6px;background-color:var(--background-dim, #f3f3f3)}.sv-popup__scrolling-content::-webkit-scrollbar-thumb,.sv-popup__scrolling-content *::-webkit-scrollbar-thumb{background:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)))}.sv-popup__content{min-width:100%;height:100%;display:flex;flex-direction:column;min-height:0}.sv-popup--show-pointer.sv-popup--top .sv-popup__pointer{transform:translate(calc(-1 * var(--base-unit, 8px))) rotate(180deg)}.sv-popup--show-pointer.sv-popup--bottom .sv-popup__pointer{transform:translate(calc(-1 * var(--base-unit, 8px)), calc(-1 * var(--base-unit, 8px)))}.sv-popup--show-pointer.sv-popup--right{transform:translate(calc(1 * var(--base-unit, 8px)))}.sv-popup--show-pointer.sv-popup--right .sv-popup__pointer{transform:translate(-12px, -4px) rotate(-90deg)}.sv-popup--show-pointer.sv-popup--left{transform:translate(calc(-1 * var(--base-unit, 8px)))}.sv-popup--show-pointer.sv-popup--left .sv-popup__pointer{transform:translate(-4px, -4px) rotate(90deg)}.sv-popup__pointer{display:block;position:absolute}.sv-popup__pointer:after{content:" ";display:block;width:0;height:0;border-left:calc(1 * var(--base-unit, 8px)) solid rgba(0,0,0,0);border-right:calc(1 * var(--base-unit, 8px)) solid rgba(0,0,0,0);border-bottom:calc(1 * var(--base-unit, 8px)) solid var(--background, #fff);align-self:center}.sv-popup__body-header{font-family:Open Sans;font-size:calc(1.5 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(4 * var(--base-unit, 8px));font-style:normal;font-weight:700;margin-bottom:calc(2 * var(--base-unit, 8px));color:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-popup__body-footer{display:flex;margin-top:calc(4 * var(--base-unit, 8px))}.sv-popup__body-footer .sv-action-bar{gap:calc(1.5 * var(--base-unit, 8px))}.sv-popup__button{margin:calc(0.25 * var(--base-unit, 8px))}.sv-popup--modal .sv-list__filter,.sv-popup--overlay .sv-list__filter{padding-top:calc(1 * var(--base-unit, 8px))}.sv-popup--modal .sv-list__filter-icon,.sv-popup--overlay .sv-list__filter-icon{top:calc(2.5 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay{z-index:2001;padding:0}.sv-dropdown-popup.sv-popup--overlay .sv-popup__body-content{padding:0;border-radius:0}.sv-dropdown-popup.sv-popup--overlay .sv-popup__body-footer .sv-action-bar .sv-action{width:auto}.sv-dropdown-popup.sv-popup--overlay .sv-popup__button{background-color:rgba(0,0,0,0);color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:none;box-shadow:none;padding:calc(1 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px));border-radius:calc(12.5 * var(--base-unit, 8px));margin:0}.sv-dropdown-popup.sv-popup--overlay .sv-popup__container{max-height:calc(var(--sv-popup-overlay-height, 100vh));height:calc(var(--sv-popup-overlay-height, 100vh));padding-top:0}.sv-dropdown-popup.sv-popup--overlay .sv-popup__body-content{height:calc(var(--sv-popup-overlay-height, 100vh))}.sv-dropdown-popup.sv-popup--overlay .sv-popup__body-footer{background-color:var(--background-dim-light, #f9f9f9);margin-top:0;padding-top:calc(0.5 * var(--base-unit, 8px));padding-bottom:calc(0.5 * var(--base-unit, 8px));border-top:1px solid var(--sjs-border-light, var(--border-light, #eaeaea))}.sv-dropdown-popup.sv-popup--overlay .sv-popup__scrolling-content{height:calc(100% - 6*var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-icon .sv-svg-icon{width:calc(2 * var(--base-unit, 8px));height:calc(2 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__container{padding:0}.sv-dropdown-popup.sv-popup--overlay .sv-list{flex-grow:1;padding:calc(0.5 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter{display:flex;align-items:center;padding:calc(0.5 * var(--base-unit, 8px)) calc(1 * var(--base-unit, 8px)) calc(0.5 * var(--base-unit, 8px)) calc(2.5 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-icon{position:static;top:calc(1.5 * var(--base-unit, 8px));height:calc(2 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__empty-container{display:flex;flex-direction:column;justify-content:center;flex-grow:1;padding:calc(1 * var(--base-unit, 8px)) calc(0.5 * var(--base-unit, 8px));background-color:var(--background, #fff)}.sv-dropdown-popup.sv-popup--overlay .sv-popup__button:disabled{pointer-events:none;color:var(--sjs-general-forecolor, var(--foreground, #161616));opacity:.25}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-clear-button{height:calc(3 * var(--base-unit, 8px));width:calc(3 * var(--base-unit, 8px));padding:calc(0.5 * var(--base-unit, 8px));appearance:none;border:none;border-radius:100%;background-color:rgba(0,0,0,0)}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-clear-button svg{height:calc(2 * var(--base-unit, 8px));width:calc(2 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-clear-button svg use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-dropdown-popup.sv-popup--overlay .sv-list__input{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(3 * var(--base-unit, 8px));font-family:var(--font-family);padding:calc(0.5 * var(--base-unit, 8px)) 0 calc(0.5 * var(--base-unit, 8px)) calc(1 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__item:hover .sv-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item:focus .sv-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item--focused .sv-list__item-body{background:var(--background, #fff)}.sv-dropdown-popup.sv-popup--overlay .sv-list__item:hover.sv-list__item--selected .sv-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item:focus.sv-list__item--selected .sv-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item--focused.sv-list__item--selected .sv-list__item-body{background:var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff));font-weight:600}.sv-dropdown-popup.sv-popup--overlay .sv-list__item:hover.sv-list__item--selected .sd-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item:focus.sv-list__item--selected .sd-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item--focused.sv-list__item--selected .sd-list__item-body{background:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)));color:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-popup__body-content{--sv-popup-overlay-max-height: calc(var(--sv-popup-overlay-height, 100vh) - var(--base-unit, 8px) * 8);--sv-popup-overlay-max-width: calc(100% - var(--base-unit, 8px) * 8);position:absolute;transform:translate(-50%, -50%);left:50%;top:50%;max-height:var(--sv-popup-overlay-max-height);min-height:min(var(--sv-popup-overlay-max-height),31 * var(--base-unit, 8px));height:auto;width:auto;min-width:min(40 * var(--base-unit, 8px),var(--sv-popup-overlay-max-width));max-width:var(--sv-popup-overlay-max-width);border-radius:calc(1 * var(--sjs-corner-radius, 4px));overflow:hidden;margin:0}.sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-popup__content,.sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-popup__scrolling-content,.sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-list__container{flex-grow:1}.sv-button-group{display:flex;align-items:center;flex-direction:row;font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));overflow:auto;border:1px solid var(--sjs-border-default, var(--border, #d6d6d6))}.sv-button-group:focus-within{box-shadow:0 0 0 1px var(--sjs-primary-backcolor, var(--primary, #19b394));border-color:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-button-group__item{display:flex;box-sizing:border-box;flex-direction:row;justify-content:center;align-items:center;appearance:none;width:100%;padding:11px calc(2 * var(--base-unit, 8px));line-height:calc(3 * var(--base-unit, 8px));outline:none;font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));font-weight:400;background:var(--background, #fff);cursor:pointer;overflow:hidden;color:var(--sjs-general-forecolor, var(--foreground, #161616));position:relative}.sv-button-group__item:not(:last-of-type){border-right:1px solid var(--sjs-border-default, var(--border, #d6d6d6))}.sv-button-group__item--hover:hover{background-color:var(--background-dim, #f3f3f3)}.sv-button-group__item-icon{display:block;height:calc(3 * var(--base-unit, 8px))}.sv-button-group__item-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-button-group__item--selected{font-weight:600;color:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-button-group__item--selected .sv-button-group__item-icon use{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-button-group__item--selected:hover{background-color:var(--background, #fff)}.sv-button-group__item-decorator{display:flex;align-items:center;max-width:100%}.sv-button-group__item-caption{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv-button-group__item-icon+.sv-button-group__item-caption{margin-left:calc(1 * var(--base-unit, 8px))}.sv-button-group__item--disabled{color:var(--sjs-general-forecolor, var(--foreground, #161616));opacity:.25;cursor:default}.sv-button-group__item--disabled .sv-button-group__item-icon use{fill:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-button-group__item--disabled:hover{background-color:var(--background, #fff)}.sv-button-group:focus-within{box-shadow:0 0 0 1px var(--sjs-primary-backcolor, var(--primary, #19b394));border-color:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-visuallyhidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.sv-hidden{display:none !important}.sv-title-actions{display:flex;align-items:center;width:100%}.sv-title-actions__title{flex-wrap:wrap;max-width:90%;min-width:50%;white-space:initial}.sv-action-title-bar{min-width:56px}.sv-title-actions .sv-title-actions__title{flex-wrap:wrap;flex:0 0 auto;max-width:unset;min-width:unset}.sv-title-actions .sv-action-title-bar{flex:1 1 auto;justify-content:flex-end;min-width:unset}.sv_window{position:fixed;bottom:3px;right:10px;background-color:#5f9ea0;padding:1px;font-family:var(--font-family, var(--font-family));font-size:calc(0.875 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:calc(1.5 * var(--sjs-corner-radius, 4px));-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);line-break:auto;z-index:100}.sv_window_title{padding:8px 14px;margin:0;font-size:calc(0.875 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:calc(1 * var(--sjs-corner-radius, 4px)) calc(1 * var(--sjs-corner-radius, 4px)) 0 0}.sv_window_content{padding:0;margin:0;max-height:80vh;overflow-y:auto}.sv_window_title a,.sv_window_title a:link,.sv_window_title a:visited{text-decoration:none;font-size:calc(0.875 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));font-style:normal;color:#000}.sv-brand-info{width:100%;font-family:var(--font-family, var(--font-family));text-align:center;color:#161616;background:#fff;padding:32px 0;box-shadow:0px -1px 0px #d6d6d6}.sv-brand-info a{color:#161616;text-decoration-line:underline}.sv-brand-info__text{font-weight:600;font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(3 * var(--base-unit, 8px));color:#161616}.sv-brand-info__logo{display:inline-block}.sv-brand-info__logo img{width:118px}.sv-brand-info__terms{font-weight:400;font-size:calc(0.75 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(2 * var(--base-unit, 8px))}.sv-brand-info__terms a{color:#909090}.sv-ranking{outline:none;user-select:none;-webkit-user-select:none}.sv-ranking-item{cursor:pointer;position:relative}.sv-ranking-item:focus .sv-ranking-item__icon--hover{visibility:hidden}.sv-ranking-item:hover:not(:focus) .sv-ranking-item__icon--hover{visibility:visible}.sv-question--disabled .sv-ranking-item:hover .sv-ranking-item__icon--hover{visibility:hidden}.sv-ranking-item:focus{outline:none}.sv-ranking-item:focus .sv-ranking-item__icon--focus{visibility:visible;top:calc(0.6 * var(--base-unit, 8px));height:calc(3 * var(--base-unit, 8px))}.sv-ranking-item:focus .sv-ranking-item__index{background:var(--background, #fff);outline:calc(0.25 * var(--base-unit, 8px)) solid var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-ranking-item__content.sv-ranking-item__content{display:flex;align-items:center;line-height:1em;padding:calc(0.5 * var(--base-unit, 8px)) 0px;border-radius:calc(12.5 * var(--base-unit, 8px))}.sv-ranking-item__icon-container{position:relative;left:0;top:0;bottom:0;flex-shrink:0;width:calc(3 * var(--base-unit, 8px));height:calc(4 * var(--base-unit, 8px))}.sv-ranking-item__icon.sv-ranking-item__icon{visibility:hidden;fill:var(--sjs-primary-backcolor, var(--primary, #19b394));position:absolute;top:calc(1 * var(--base-unit, 8px));width:calc(1.75 * var(--base-unit, 8px));height:calc(2 * var(--base-unit, 8px))}.sv-ranking-item__index.sv-ranking-item__index{display:flex;flex-shrink:0;align-items:center;justify-content:center;background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)));color:var(--sjs-general-forecolor, var(--foreground, #161616));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));border-radius:100%;border:calc(0.25 * var(--base-unit, 8px)) solid rgba(0,0,0,0);width:calc(5 * var(--base-unit, 8px));height:calc(5 * var(--base-unit, 8px));line-height:calc(3 * var(--base-unit, 8px));box-sizing:border-box;font-weight:600;margin-left:calc(0 * var(--base-unit, 8px))}.sv-ranking-item__index.sv-ranking-item__index.sv-ranking-item__index--empty:empty{background-image:url(${P});background-position:center;background-repeat:no-repeat}.sv-ranking-item__text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sjs-general-forecolor, var(--foreground, #161616));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(3 * var(--base-unit, 8px));margin:0 calc(2 * var(--base-unit, 8px))}.sd-ranking--disabled .sv-ranking-item__text{color:var(--sjs-general-forecolor, var(--foreground, #161616));opacity:.25}.sv-ranking-item__ghost.sv-ranking-item__ghost{display:none;background-color:var(--background-dim, #f3f3f3);border-radius:calc(12.5 * var(--base-unit, 8px));padding:calc(0.5 * var(--base-unit, 8px)) 0px;width:calc(25 * var(--base-unit, 8px));height:calc(5 * var(--base-unit, 8px));z-index:1;position:absolute;left:calc(5 * var(--base-unit, 8px))}[dir=rtl] .sv-ranking-item__ghost{left:initilal;right:calc(5 * var(--base-unit, 8px))}.sv-ranking-item--ghost .sv-ranking-item__ghost{display:block}.sv-ranking-item--ghost .sv-ranking-item__content{visibility:hidden}.sv-ranking-item--drag .sv-ranking-item__content{box-shadow:0px calc(1 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) rgba(0,0,0,.1);border-radius:calc(12.5 * var(--base-unit, 8px))}.sv-ranking--drag .sv-ranking-item:hover .sv-ranking-item__icon{visibility:hidden}.sv-ranking-item--drag .sv-ranking-item__icon--hover{visibility:visible}.sv-ranking--mobile .sv-ranking-item__icon--hover{visibility:visible;fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-ranking--mobile.sv-ranking--drag .sv-ranking-item--ghost .sv-ranking-item__icon.sv-ranking-item__icon--hover{visibility:hidden}.sv-ranking--mobile.sv-ranking-shortcut{max-width:80%}.sv-ranking--mobile .sv-ranking-item__index.sv-ranking-item__index{margin-left:0}.sv-ranking--mobile .sd-element--with-frame .sv-ranking-item__icon{margin-left:0}.sv-ranking--design-mode .sv-ranking-item:hover .sv-ranking-item__icon{visibility:hidden}.sv-ranking--disabled{opacity:.8}.sv-ranking-shortcut[hidden]{display:none}.sv-ranking-shortcut .sv-ranking-item__icon{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-ranking-shortcut .sv-ranking-item__text{margin-right:calc(4 * var(--base-unit, 8px))}.sv-ranking-shortcut .sv-ranking-item__icon--hover{visibility:visible}.sv-ranking-shortcut .sv-ranking-item__icon{width:calc(1.75 * var(--base-unit, 8px));height:calc(2 * var(--base-unit, 8px));top:calc(1 * var(--base-unit, 8px))}.sv-ranking-shortcut .sv-ranking-item__icon-container{margin-left:calc(1 * var(--base-unit, 8px))}.sv-list{padding:0;margin:0;overflow-y:auto;background:var(--background, #fff);font-family:var(--font-family, var(--font-family));list-style-type:none}.sv-list__empty-container{width:100%;font-family:var(--font-family, var(--font-family));box-sizing:border-box;padding:calc(1.5 * var(--base-unit, 8px)) calc(8 * var(--base-unit, 8px));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv-list__empty-text{line-height:calc(3 * var(--base-unit, 8px));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));font-weight:400;text-align:center;color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__item{width:100%;align-items:center;box-sizing:border-box;color:var(--sjs-general-forecolor, var(--foreground, #161616));cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv-list__item-body{width:100%;align-items:center;box-sizing:border-box;padding-block:calc(1 * var(--base-unit, 8px));padding-inline-end:calc(8 * var(--base-unit, 8px));padding-inline-start:calc(2 * var(--base-unit, 8px));color:var(--sjs-general-forecolor, var(--foreground, #161616));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(3 * var(--base-unit, 8px));cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv-list__item.sv-list__item--focused:not(.sv-list__item--selected){outline:none}.sv-list__item.sv-list__item--focused:not(.sv-list__item--selected) .sv-list__item-body{border:calc(0.25 * var(--base-unit, 8px)) solid var(--sjs-border-light, var(--border-light, #eaeaea));border-radius:calc(1 * var(--sjs-corner-radius, 4px));padding-block:calc(0.75 * var(--base-unit, 8px));padding-inline-end:calc(7.75 * var(--base-unit, 8px));padding-inline-start:calc(1.75 * var(--base-unit, 8px))}.sv-list__item.sv-list__item--focused:not(.sv-list__item--selected) .sv-string-viewer{margin-inline-start:calc(-0.25 * var(--base-unit, 8px))}.sv-list__item:hover,.sv-list__item:focus{outline:none}.sv-list__item:hover .sv-list__item-body,.sv-list__item:focus .sv-list__item-body{background-color:var(--sjs-questionpanel-hovercolor, var(--sjs-general-backcolor-dark, rgb(248, 248, 248)))}.sv-list__item--with-icon.sv-list__item--with-icon{padding:0}.sv-list__item--with-icon.sv-list__item--with-icon .sv-list__item-body{padding-top:calc(1.5 * var(--base-unit, 8px));padding-bottom:calc(1.5 * var(--base-unit, 8px));gap:calc(2 * var(--base-unit, 8px));display:flex}.sv-list__item-icon{float:left;width:calc(3 * var(--base-unit, 8px));height:calc(3 * var(--base-unit, 8px))}.sv-list__item-icon svg{display:block}.sv-list__item-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}[dir=rtl] .sv-list__item-icon,[style*="direction:rtl"] .sv-list__item-icon,[style*="direction: rtl"] .sv-list__item-icon{float:right}.sv-list__item-separator{margin:calc(1 * var(--base-unit, 8px)) 0;height:1px;background-color:var(--sjs-border-default, var(--border, #d6d6d6))}.sv-list__item.sv-list__item--selected .sv-list__item-body,.sv-list__item.sv-list__item--selected:hover .sv-list__item-body,.sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-body,.sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-body,li:focus .sv-list__item.sv-list__item--selected .sv-list__item-body{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff));font-weight:600}.sv-list__item.sv-list__item--selected .sv-list__item-icon use,.sv-list__item.sv-list__item--selected:hover .sv-list__item-icon use,.sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-icon use,.sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-icon use,li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use{fill:var(--background, #fff)}.sv-multi-select-list .sv-list__item.sv-list__item--selected .sv-list__item-body,.sv-multi-select-list .sv-list__item.sv-list__item--selected:hover .sv-list__item-body{background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)));color:var(--sjs-general-forecolor, var(--foreground, #161616));font-weight:400}.sv-list__item.sv-list__item--disabled .sv-list__item-body{cursor:default;color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__item span{white-space:nowrap}.sv-list__container{position:relative;display:flex;height:100%;flex-direction:column;display:flex;min-height:0}.sv-list__filter{border-bottom:1px solid var(--sjs-border-inside, var(--border-inside, rgba(0, 0, 0, 0.16)));background:var(--background, #fff);padding-bottom:calc(1 * var(--base-unit, 8px))}.sv-list__filter-icon{display:block;position:absolute;top:calc(1.5 * var(--base-unit, 8px));inset-inline-start:calc(2 * var(--base-unit, 8px))}.sv-list__filter-icon .sv-svg-icon{width:calc(3 * var(--base-unit, 8px));height:calc(3 * var(--base-unit, 8px))}.sv-list__filter-icon .sv-svg-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;background:var(--background, #fff);box-sizing:border-box;width:100%;outline:none;font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));color:var(--sjs-general-forecolor, var(--foreground, #161616));padding:calc(1.5 * var(--base-unit, 8px)) calc(3 * var(--base-unit, 8px));padding-inline-start:calc(7 * var(--base-unit, 8px));line-height:calc(3 * var(--base-unit, 8px));border:none}.sv-list__input::placeholder{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__input:disabled,.sv-list__input:disabled::placeholder{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__loading-indicator{pointer-events:none}.sv-list__loading-indicator .sv-list__item-body{background-color:rgba(0,0,0,0)}.sv-save-data_root{position:absolute;left:50%;bottom:calc(3 * var(--base-unit, 8px));background:var(--background, #fff);opacity:0;padding:calc(3 * var(--base-unit, 8px)) calc(6 * var(--base-unit, 8px));box-shadow:0px 2px 6px rgba(0,0,0,.1);border-radius:calc(2 * var(--sjs-corner-radius, 4px));color:var(--sjs-general-forecolor, var(--foreground, #161616));min-width:calc(30 * var(--base-unit, 8px));text-align:center;z-index:1600;font-family:var(--font-family, var(--font-family));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(3 * var(--base-unit, 8px));display:flex;flex-direction:row;justify-content:center;align-items:center;transform:translateX(-50%) translateY(calc(3 * var(--base-unit, 8px)));transition-timing-function:ease-in;transition-property:transform,opacity;transition-delay:.25s;transition:.5s}.sv-save-data_root.sv-save-data_root--shown{transition-timing-function:ease-out;transition-property:transform,opacity;transform:translateX(-50%) translateY(0);transition-delay:.25s;opacity:.75}.sv-save-data_root span{display:flex;flex-grow:1}.sv-save-data_root .sv-action-bar{display:flex;flex-grow:0;flex-shrink:0}.sv-save-data_root--shown.sv-save-data_success,.sv-save-data_root--shown.sv-save-data_error{opacity:1}.sv-save-data_root.sv-save-data_error{background-color:var(--red, #e60a3e);color:var(--background, #fff);font-weight:600;padding:calc(2 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) calc(6 * var(--base-unit, 8px));gap:calc(6 * var(--base-unit, 8px))}.sv-save-data_root.sv-save-data_error .sv-save-data_button{font-weight:600;font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(3 * var(--base-unit, 8px));height:calc(5 * var(--base-unit, 8px));color:#fff;background-color:var(--red, #e60a3e);border:calc(0.25 * var(--base-unit, 8px)) solid #fff;border-radius:calc(1.5 * var(--sjs-corner-radius, 4px));padding:calc(1 * var(--base-unit, 8px)) calc(3 * var(--base-unit, 8px));display:flex;align-items:center}.sv-save-data_root.sv-save-data_error .sv-save-data_button:hover,.sv-save-data_root.sv-save-data_error .sv-save-data_button:focus{color:var(--red, #e60a3e);background-color:var(--background, #fff)}.sv-save-data_root.sv-save-data_success{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));color:#fff;font-weight:600}.sjs_sp_container{position:relative}.sjs_sp_controls{position:absolute;left:0;bottom:0}.sjs_sp_controls>button{user-select:none}.sjs_sp_container>div>canvas:focus{outline:none}.sjs_sp_placeholder{display:flex;align-items:center;justify-content:center;position:absolute;z-index:0;user-select:none;pointer-events:none;width:100%;height:100%}.sv-boolean__decorator{border-radius:2px}.sv_main .sv-boolean__decorator+.sv-boolean__label{float:none;vertical-align:top;margin-left:.5em}.sv-boolean__svg{border:none;border-radius:2px;background-color:#1ab394;fill:#fff;width:24px;height:24px}.sv-boolean--allowhover:hover .sv-boolean__checked-path{display:inline-block}.sv-boolean--allowhover:hover .sv-boolean__svg{background-color:#9f9f9f;fill:#fff}.sv-boolean--allowhover:hover .sv-boolean__unchecked-path,.sv-boolean--allowhover:hover .sv-boolean__indeterminate-path{display:none}.sv-boolean__checked-path,.sv-boolean__indeterminate-path{display:none}.sv-boolean--indeterminate .sv-boolean__svg{background-color:inherit;fill:#1ab394}.sv-boolean--indeterminate .sv-boolean__indeterminate-path{display:inline-block}.sv-boolean--indeterminate .sv-boolean__unchecked-path,.sv-boolean--checked .sv-boolean__unchecked-path{display:none}.sv-boolean--checked .sv-boolean__checked-path{display:inline-block}.sv-boolean--disabled.sv-boolean--indeterminate .sv-boolean__svg{background-color:inherit;fill:#dbdbdb}.sv-boolean--disabled .sv-boolean__svg{background-color:#dbdbdb}td.sv_matrix_cell .sv_qbln,td.td.sv_matrix_cell .sv_qbln{text-align:center}td.sv_matrix_cell .sv_qbln .sv-boolean,td.td.sv_matrix_cell .sv_qbln .sv-boolean{text-align:initial}sv-components-container,.sd-components-container{display:flex}.sv-components-row{display:flex;flex-direction:row;width:100%}.sv-components-column{display:flex;flex-direction:column}.sv-components-column--expandable{flex-grow:1}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question{display:block;width:100% !important}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-question__header--location--left,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-question__header--location--left{float:none}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-selectbase__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-imagepicker__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-selectbase__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-imagepicker__item--inline{display:block}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table{display:block}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table thead,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table thead{display:none}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td.sv-table__cell--choice,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td.sv-table__cell--choice{text-align:initial}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tbody,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tr,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tbody,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tr,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td{display:block}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdropdown td:before,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdynamic td:before,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdropdown td:before,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdynamic td:before{content:attr(data-responsive-title)}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root td label.sv-matrix__label,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td label.sv-matrix__label{display:inline}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root td:after,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td:after{content:attr(data-responsive-title)}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root .sv-matrix__cell,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root .sv-matrix__cell{text-align:initial}@media(max-width: 600px){.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question{display:block;width:100% !important}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-question__header--location--left,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-question__header--location--left{float:none}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-selectbase__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-imagepicker__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-selectbase__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-imagepicker__item--inline{display:block}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table{display:block}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table thead,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table thead{display:none}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td.sv-table__cell--choice,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td.sv-table__cell--choice{text-align:initial}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tbody,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tr,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tbody,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tr,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td{display:block}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdropdown td:before,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdynamic td:before,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdropdown td:before,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdynamic td:before{content:attr(data-responsive-title)}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root td label.sv-matrix__label,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td label.sv-matrix__label{display:inline}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root td:after,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td:after{content:attr(data-responsive-title)}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root .sv-matrix__cell,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root .sv-matrix__cell{text-align:initial}}body{--sv-modern-mark: true}.sv-matrixdynamic__drag-icon{padding-top:16px}.sv-matrixdynamic__drag-icon:after{content:" ";display:block;height:6px;width:20px;border:1px solid var(--border-color, rgba(64, 64, 64, 0.5));box-sizing:border-box;border-radius:10px;cursor:move;margin-top:12px}.sv-matrix__drag-drop-ghost-position-top,.sv-matrix__drag-drop-ghost-position-bottom{position:relative}.sv-matrix__drag-drop-ghost-position-top::after,.sv-matrix__drag-drop-ghost-position-bottom::after{content:"";width:100%;height:4px;background-color:var(--main-color, #1ab394);position:absolute;left:0}.sv-matrix__drag-drop-ghost-position-top::after{top:0}.sv-matrix__drag-drop-ghost-position-bottom::after{bottom:0}.sv-skeleton-element{background-color:var(--background-dim, var(--background-dim, #f3f3f3))}\n`,""]);const _=g},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);n&&s[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),r&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=r):c[2]=r),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},1667:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},1143:e=>{"use strict";e.exports=function(e,t,r,n,o,i,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,o,i,s,a],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},4448:(e,t,r)=>{"use strict";var n=r(7294),o=r(3840);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(a[e]=t,e=0;e<t.length;e++)s.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},f={};function m(e,t,r,n,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function v(e,t,r,n){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,o,n)&&(r=null),n||null===o?function(e){return!!p.call(f,e)||!p.call(h,e)&&(d.test(e)?f[e]=!0:(h[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,y);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),C=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),V=Symbol.for("react.provider"),E=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var j=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function q(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}var M,L=Object.assign;function A(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var N=!1;function B(e,t){if(!e||N)return"";N=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=n.stack.split("\n"),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(1!==s||1!==a)do{if(s--,0>--a||o[s]!==i[a]){var l="\n"+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=a);break}}}finally{N=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?A(e):""}function F(e){switch(e.tag){case 5:return A(e.type);case 16:return A("Lazy");case 13:return A("Suspense");case 19:return A("SuspenseList");case 0:case 2:case 15:return B(e.type,!1);case 11:return B(e.type.render,!1);case 1:return B(e.type,!0);default:return""}}function z(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case P:return"Fragment";case C:return"Portal";case S:return"Profiler";case _:return"StrictMode";case T:return"Suspense";case R:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case V:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case k:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return z(e(t))}catch(e){}}return null}function Q(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return z(t);case 8:return t===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function J(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=U(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function G(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}}function $(e,t){var r=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function K(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=H(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function X(e,t){Z(e,t);var r=H(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,r):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Y(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function ee(e,t,r){"number"===t&&G(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var te=Array.isArray;function re(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+H(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ne(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(i(92));if(te(r)){if(1<r.length)throw Error(i(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:H(r)}}function ie(e,t){var r=H(t.value),n=H(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,pe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function me(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=me(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}Object.keys(he).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var be=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(be[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Pe=null,_e=null;function Se(e){if(e=wo(e)){if("function"!=typeof Ce)throw Error(i(280));var t=e.stateNode;t&&(t=Co(t),Ce(e.stateNode,e.type,t))}}function Ve(e){Pe?_e?_e.push(e):_e=[e]:Pe=e}function Ee(){if(Pe){var e=Pe,t=_e;if(_e=Pe=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function Oe(e,t){return e(t)}function Te(){}var Re=!1;function ke(e,t,r){if(Re)return e(t,r);Re=!0;try{return Oe(e,t,r)}finally{Re=!1,(null!==Pe||null!==_e)&&(Te(),Ee())}}function Ie(e,t){var r=e.stateNode;if(null===r)return null;var n=Co(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(i(231,t,typeof r));return r}var je=!1;if(c)try{var De={};Object.defineProperty(De,"passive",{get:function(){je=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ce){je=!1}function qe(e,t,r,n,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(e){this.onError(e)}}var Me=!1,Le=null,Ae=!1,Ne=null,Be={onError:function(e){Me=!0,Le=e}};function Fe(e,t,r,n,o,i,s,a,l){Me=!1,Le=null,qe.apply(Be,arguments)}function ze(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function Qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function He(e){if(ze(e)!==e)throw Error(i(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(i(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(null===o)break;var s=o.alternate;if(null===s){if(null!==(n=o.return)){r=n;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===r)return He(o),e;if(s===n)return He(o),t;s=s.sibling}throw Error(i(188))}if(r.return!==n.return)r=o,n=s;else{for(var a=!1,l=o.child;l;){if(l===r){a=!0,r=o,n=s;break}if(l===n){a=!0,n=o,r=s;break}l=l.sibling}if(!a){for(l=s.child;l;){if(l===r){a=!0,r=s,n=o;break}if(l===n){a=!0,n=s,r=o;break}l=l.sibling}if(!a)throw Error(i(189))}}if(r.alternate!==n)throw Error(i(190))}if(3!==r.tag)throw Error(i(188));return r.stateNode.current===r?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var Je=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,$e=o.unstable_shouldYield,Ke=o.unstable_requestPaint,Ze=o.unstable_now,Xe=o.unstable_getCurrentPriorityLevel,Ye=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,rt=o.unstable_LowPriority,nt=o.unstable_IdlePriority,ot=null,it=null,st=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(at(e)/lt|0)|0},at=Math.log,lt=Math.LN2,ut=64,ct=4194304;function pt(e){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: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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,s=268435455&r;if(0!==s){var a=s&~o;0!==a?n=pt(a):0!=(i&=s)&&(n=pt(i))}else 0!=(s=r&~o)?n=pt(s):0!==i&&(n=pt(i));if(0===n)return 0;if(0!==t&&t!==n&&0==(t&o)&&((o=n&-n)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&n)&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)o=1<<(r=31-st(t)),n|=e[r],t&=~o;return n}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 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 t+5e3;default:return-1}}function ft(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return 0==(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function bt(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=r}function yt(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-st(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var vt=0;function wt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var xt,Ct,Pt,_t,St,Vt=!1,Et=[],Ot=null,Tt=null,Rt=null,kt=new Map,It=new Map,jt=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function qt(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":kt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Mt(e,t,r,n,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=wo(t))&&Ct(t),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Lt(e){var t=vo(e.target);if(null!==t){var r=ze(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Qe(r)))return e.blockedOn=t,void St(e.priority,(function(){Pt(r)}))}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function At(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=$t(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=wo(r))&&Ct(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);we=n,r.target.dispatchEvent(n),we=null,t.shift()}return!0}function Nt(e,t,r){At(e)&&r.delete(t)}function Bt(){Vt=!1,null!==Ot&&At(Ot)&&(Ot=null),null!==Tt&&At(Tt)&&(Tt=null),null!==Rt&&At(Rt)&&(Rt=null),kt.forEach(Nt),It.forEach(Nt)}function Ft(e,t){e.blockedOn===t&&(e.blockedOn=null,Vt||(Vt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Bt)))}function zt(e){function t(t){return Ft(t,e)}if(0<Et.length){Ft(Et[0],e);for(var r=1;r<Et.length;r++){var n=Et[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==Ot&&Ft(Ot,e),null!==Tt&&Ft(Tt,e),null!==Rt&&Ft(Rt,e),kt.forEach(t),It.forEach(t),r=0;r<jt.length;r++)(n=jt[r]).blockedOn===e&&(n.blockedOn=null);for(;0<jt.length&&null===(r=jt[0]).blockedOn;)Lt(r),null===r.blockedOn&&jt.shift()}var Qt=w.ReactCurrentBatchConfig,Ht=!0;function Ut(e,t,r,n){var o=vt,i=Qt.transition;Qt.transition=null;try{vt=1,Jt(e,t,r,n)}finally{vt=o,Qt.transition=i}}function Wt(e,t,r,n){var o=vt,i=Qt.transition;Qt.transition=null;try{vt=4,Jt(e,t,r,n)}finally{vt=o,Qt.transition=i}}function Jt(e,t,r,n){if(Ht){var o=$t(e,t,r,n);if(null===o)Hn(e,t,n,Gt,r),qt(e,n);else if(function(e,t,r,n,o){switch(t){case"focusin":return Ot=Mt(Ot,e,t,r,n,o),!0;case"dragenter":return Tt=Mt(Tt,e,t,r,n,o),!0;case"mouseover":return Rt=Mt(Rt,e,t,r,n,o),!0;case"pointerover":var i=o.pointerId;return kt.set(i,Mt(kt.get(i)||null,e,t,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,It.set(i,Mt(It.get(i)||null,e,t,r,n,o)),!0}return!1}(o,e,t,r,n))n.stopPropagation();else if(qt(e,n),4&t&&-1<Dt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&xt(i),null===(i=$t(e,t,r,n))&&Hn(e,t,n,Gt,r),i===o)break;o=i}null!==o&&n.stopPropagation()}else Hn(e,t,n,null,r)}}var Gt=null;function $t(e,t,r,n){if(Gt=null,null!==(e=vo(e=xe(n))))if(null===(t=ze(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=Qe(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Ye:return 1;case et:return 4;case tt:case rt:return 16;case nt:return 536870912;default:return 16}default:return 16}}var Zt=null,Xt=null,Yt=null;function er(){if(Yt)return Yt;var e,t,r=Xt,n=r.length,o="value"in Zt?Zt.value:Zt.textContent,i=o.length;for(e=0;e<n&&r[e]===o[e];e++);var s=n-e;for(t=1;t<=s&&r[n-t]===o[i-t];t++);return Yt=o.slice(e,1<t?1-t:void 0)}function tr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rr(){return!0}function nr(){return!1}function or(e){function t(t,r,n,o,i){for(var s in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(o):o[s]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?rr:nr,this.isPropagationStopped=nr,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),t}var ir,sr,ar,lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ur=or(lr),cr=L({},lr,{view:0,detail:0}),pr=or(cr),dr=L({},cr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_r,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ar&&(ar&&"mousemove"===e.type?(ir=e.screenX-ar.screenX,sr=e.screenY-ar.screenY):sr=ir=0,ar=e),ir)},movementY:function(e){return"movementY"in e?e.movementY:sr}}),hr=or(dr),fr=or(L({},dr,{dataTransfer:0})),mr=or(L({},cr,{relatedTarget:0})),gr=or(L({},lr,{animationName:0,elapsedTime:0,pseudoElement:0})),br=L({},lr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yr=or(br),vr=or(L({},lr,{data:0})),wr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cr[e])&&!!t[e]}function _r(){return Pr}var Sr=L({},cr,{key:function(e){if(e.key){var t=wr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_r,charCode:function(e){return"keypress"===e.type?tr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Vr=or(Sr),Er=or(L({},dr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Or=or(L({},cr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_r})),Tr=or(L({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rr=L({},dr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),kr=or(Rr),Ir=[9,13,27,32],jr=c&&"CompositionEvent"in window,Dr=null;c&&"documentMode"in document&&(Dr=document.documentMode);var qr=c&&"TextEvent"in window&&!Dr,Mr=c&&(!jr||Dr&&8<Dr&&11>=Dr),Lr=String.fromCharCode(32),Ar=!1;function Nr(e,t){switch(e){case"keyup":return-1!==Ir.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Br(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Fr=!1,zr={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 Qr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zr[e.type]:"textarea"===t}function Hr(e,t,r,n){Ve(n),0<(t=Wn(t,"onChange")).length&&(r=new ur("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Ur=null,Wr=null;function Jr(e){An(e,0)}function Gr(e){if(J(xo(e)))return e}function $r(e,t){if("change"===e)return t}var Kr=!1;if(c){var Zr;if(c){var Xr="oninput"in document;if(!Xr){var Yr=document.createElement("div");Yr.setAttribute("oninput","return;"),Xr="function"==typeof Yr.oninput}Zr=Xr}else Zr=!1;Kr=Zr&&(!document.documentMode||9<document.documentMode)}function en(){Ur&&(Ur.detachEvent("onpropertychange",tn),Wr=Ur=null)}function tn(e){if("value"===e.propertyName&&Gr(Wr)){var t=[];Hr(t,Wr,e,xe(e)),ke(Jr,t)}}function rn(e,t,r){"focusin"===e?(en(),Wr=r,(Ur=t).attachEvent("onpropertychange",tn)):"focusout"===e&&en()}function nn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gr(Wr)}function on(e,t){if("click"===e)return Gr(t)}function sn(e,t){if("input"===e||"change"===e)return Gr(t)}var an="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ln(e,t){if(an(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!p.call(t,o)||!an(e[o],t[o]))return!1}return!0}function un(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cn(e,t){var r,n=un(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=un(n)}}function pn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dn(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=G((e=t.contentWindow).document)}return t}function hn(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)}function fn(e){var t=dn(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&pn(r.ownerDocument.documentElement,r)){if(null!==n&&hn(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=void 0===n.end?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=cn(r,i);var s=cn(r,n);o&&s&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mn=c&&"documentMode"in document&&11>=document.documentMode,gn=null,bn=null,yn=null,vn=!1;function wn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;vn||null==gn||gn!==G(n)||(n="selectionStart"in(n=gn)&&hn(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},yn&&ln(yn,n)||(yn=n,0<(n=Wn(bn,"onSelect")).length&&(t=new ur("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=gn)))}function xn(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Cn={animationend:xn("Animation","AnimationEnd"),animationiteration:xn("Animation","AnimationIteration"),animationstart:xn("Animation","AnimationStart"),transitionend:xn("Transition","TransitionEnd")},Pn={},_n={};function Sn(e){if(Pn[e])return Pn[e];if(!Cn[e])return e;var t,r=Cn[e];for(t in r)if(r.hasOwnProperty(t)&&t in _n)return Pn[e]=r[t];return e}c&&(_n=document.createElement("div").style,"AnimationEvent"in window||(delete Cn.animationend.animation,delete Cn.animationiteration.animation,delete Cn.animationstart.animation),"TransitionEvent"in window||delete Cn.transitionend.transition);var Vn=Sn("animationend"),En=Sn("animationiteration"),On=Sn("animationstart"),Tn=Sn("transitionend"),Rn=new Map,kn="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 toggle touchMove waiting wheel".split(" ");function In(e,t){Rn.set(e,t),l(t,[e])}for(var jn=0;jn<kn.length;jn++){var Dn=kn[jn];In(Dn.toLowerCase(),"on"+(Dn[0].toUpperCase()+Dn.slice(1)))}In(Vn,"onAnimationEnd"),In(En,"onAnimationIteration"),In(On,"onAnimationStart"),In("dblclick","onDoubleClick"),In("focusin","onFocus"),In("focusout","onBlur"),In(Tn,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mn=new Set("cancel close invalid load scroll toggle".split(" ").concat(qn));function Ln(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,o,s,a,l,u){if(Fe.apply(this,arguments),Me){if(!Me)throw Error(i(198));var c=Le;Me=!1,Le=null,Ae||(Ae=!0,Ne=c)}}(n,t,void 0,e),e.currentTarget=null}function An(e,t){t=0!=(4&t);for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var s=n.length-1;0<=s;s--){var a=n[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;Ln(o,a,u),i=l}else for(s=0;s<n.length;s++){if(l=(a=n[s]).instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;Ln(o,a,u),i=l}}}if(Ae)throw e=Ne,Ae=!1,Ne=null,e}function Nn(e,t){var r=t[go];void 0===r&&(r=t[go]=new Set);var n=e+"__bubble";r.has(n)||(Qn(t,e,2,!1),r.add(n))}function Bn(e,t,r){var n=0;t&&(n|=4),Qn(r,e,n,t)}var Fn="_reactListening"+Math.random().toString(36).slice(2);function zn(e){if(!e[Fn]){e[Fn]=!0,s.forEach((function(t){"selectionchange"!==t&&(Mn.has(t)||Bn(t,!1,e),Bn(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Fn]||(t[Fn]=!0,Bn("selectionchange",!1,t))}}function Qn(e,t,r,n){switch(Kt(t)){case 1:var o=Ut;break;case 4:o=Wt;break;default:o=Jt}r=o.bind(null,t,r,e),o=void 0,!je||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),n?void 0!==o?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):void 0!==o?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Hn(e,t,r,n,o){var i=n;if(0==(1&t)&&0==(2&t)&&null!==n)e:for(;;){if(null===n)return;var s=n.tag;if(3===s||4===s){var a=n.stateNode.containerInfo;if(a===o||8===a.nodeType&&a.parentNode===o)break;if(4===s)for(s=n.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;s=s.return}for(;null!==a;){if(null===(s=vo(a)))return;if(5===(l=s.tag)||6===l){n=i=s;continue e}a=a.parentNode}}n=n.return}ke((function(){var n=i,o=xe(r),s=[];e:{var a=Rn.get(e);if(void 0!==a){var l=ur,u=e;switch(e){case"keypress":if(0===tr(r))break e;case"keydown":case"keyup":l=Vr;break;case"focusin":u="focus",l=mr;break;case"focusout":u="blur",l=mr;break;case"beforeblur":case"afterblur":l=mr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=fr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Or;break;case Vn:case En:case On:l=gr;break;case Tn:l=Tr;break;case"scroll":l=pr;break;case"wheel":l=kr;break;case"copy":case"cut":case"paste":l=yr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Er}var c=0!=(4&t),p=!c&&"scroll"===e,d=c?null!==a?a+"Capture":null:a;c=[];for(var h,f=n;null!==f;){var m=(h=f).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==d&&null!=(m=Ie(f,d))&&c.push(Un(f,m,h))),p)break;f=f.return}0<c.length&&(a=new l(a,u,null,r,o),s.push({event:a,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||r===we||!(u=r.relatedTarget||r.fromElement)||!vo(u)&&!u[mo])&&(l||a)&&(a=o.window===o?o:(a=o.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=n,null!==(u=(u=r.relatedTarget||r.toElement)?vo(u):null)&&(u!==(p=ze(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=n),l!==u)){if(c=hr,m="onMouseLeave",d="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(c=Er,m="onPointerLeave",d="onPointerEnter",f="pointer"),p=null==l?a:xo(l),h=null==u?a:xo(u),(a=new c(m,f+"leave",l,r,o)).target=p,a.relatedTarget=h,m=null,vo(o)===n&&((c=new c(d,f+"enter",u,r,o)).target=h,c.relatedTarget=p,m=c),p=m,l&&u)e:{for(d=u,f=0,h=c=l;h;h=Jn(h))f++;for(h=0,m=d;m;m=Jn(m))h++;for(;0<f-h;)c=Jn(c),f--;for(;0<h-f;)d=Jn(d),h--;for(;f--;){if(c===d||null!==d&&c===d.alternate)break e;c=Jn(c),d=Jn(d)}c=null}else c=null;null!==l&&Gn(s,a,l,c,!1),null!==u&&null!==p&&Gn(s,p,u,c,!0)}if("select"===(l=(a=n?xo(n):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var g=$r;else if(Qr(a))if(Kr)g=sn;else{g=nn;var b=rn}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(g=on);switch(g&&(g=g(e,n))?Hr(s,g,r,o):(b&&b(e,a,n),"focusout"===e&&(b=a._wrapperState)&&b.controlled&&"number"===a.type&&ee(a,"number",a.value)),b=n?xo(n):window,e){case"focusin":(Qr(b)||"true"===b.contentEditable)&&(gn=b,bn=n,yn=null);break;case"focusout":yn=bn=gn=null;break;case"mousedown":vn=!0;break;case"contextmenu":case"mouseup":case"dragend":vn=!1,wn(s,r,o);break;case"selectionchange":if(mn)break;case"keydown":case"keyup":wn(s,r,o)}var y;if(jr)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Fr?Nr(e,r)&&(v="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(v="onCompositionStart");v&&(Mr&&"ko"!==r.locale&&(Fr||"onCompositionStart"!==v?"onCompositionEnd"===v&&Fr&&(y=er()):(Xt="value"in(Zt=o)?Zt.value:Zt.textContent,Fr=!0)),0<(b=Wn(n,v)).length&&(v=new vr(v,e,null,r,o),s.push({event:v,listeners:b}),(y||null!==(y=Br(r)))&&(v.data=y))),(y=qr?function(e,t){switch(e){case"compositionend":return Br(t);case"keypress":return 32!==t.which?null:(Ar=!0,Lr);case"textInput":return(e=t.data)===Lr&&Ar?null:e;default:return null}}(e,r):function(e,t){if(Fr)return"compositionend"===e||!jr&&Nr(e,t)?(e=er(),Yt=Xt=Zt=null,Fr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mr&&"ko"!==t.locale?null:t.data}}(e,r))&&0<(n=Wn(n,"onBeforeInput")).length&&(o=new vr("onBeforeInput","beforeinput",null,r,o),s.push({event:o,listeners:n}),o.data=y)}An(s,t)}))}function Un(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Wn(e,t){for(var r=t+"Capture",n=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ie(e,r))&&n.unshift(Un(e,i,o)),null!=(i=Ie(e,t))&&n.push(Un(e,i,o))),e=e.return}return n}function Jn(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gn(e,t,r,n,o){for(var i=t._reactName,s=[];null!==r&&r!==n;){var a=r,l=a.alternate,u=a.stateNode;if(null!==l&&l===n)break;5===a.tag&&null!==u&&(a=u,o?null!=(l=Ie(r,i))&&s.unshift(Un(r,l,a)):o||null!=(l=Ie(r,i))&&s.push(Un(r,l,a))),r=r.return}0!==s.length&&e.push({event:t,listeners:s})}var $n=/\r\n?/g,Kn=/\u0000|\uFFFD/g;function Zn(e){return("string"==typeof e?e:""+e).replace($n,"\n").replace(Kn,"")}function Xn(e,t,r){if(t=Zn(t),Zn(e)!==t&&r)throw Error(i(425))}function Yn(){}var eo=null,to=null;function ro(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var no="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,so="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(ao)}:no;function ao(e){setTimeout((function(){throw e}))}function lo(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&8===o.nodeType)if("/$"===(r=o.data)){if(0===n)return e.removeChild(o),void zt(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=o}while(r);zt(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),ho="__reactFiber$"+po,fo="__reactProps$"+po,mo="__reactContainer$"+po,go="__reactEvents$"+po,bo="__reactListeners$"+po,yo="__reactHandles$"+po;function vo(e){var t=e[ho];if(t)return t;for(var r=e.parentNode;r;){if(t=r[mo]||r[ho]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=co(e);null!==e;){if(r=e[ho])return r;e=co(e)}return t}r=(e=r).parentNode}return null}function wo(e){return!(e=e[ho]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Co(e){return e[fo]||null}var Po=[],_o=-1;function So(e){return{current:e}}function Vo(e){0>_o||(e.current=Po[_o],Po[_o]=null,_o--)}function Eo(e,t){_o++,Po[_o]=e.current,e.current=t}var Oo={},To=So(Oo),Ro=So(!1),ko=Oo;function Io(e,t){var r=e.type.contextTypes;if(!r)return Oo;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in r)i[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function jo(e){return null!=e.childContextTypes}function Do(){Vo(Ro),Vo(To)}function qo(e,t,r){if(To.current!==Oo)throw Error(i(168));Eo(To,t),Eo(Ro,r)}function Mo(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in t))throw Error(i(108,Q(e)||"Unknown",o));return L({},r,n)}function Lo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oo,ko=To.current,Eo(To,e),Eo(Ro,Ro.current),!0}function Ao(e,t,r){var n=e.stateNode;if(!n)throw Error(i(169));r?(e=Mo(e,t,ko),n.__reactInternalMemoizedMergedChildContext=e,Vo(Ro),Vo(To),Eo(To,e)):Vo(Ro),Eo(Ro,r)}var No=null,Bo=!1,Fo=!1;function zo(e){null===No?No=[e]:No.push(e)}function Qo(){if(!Fo&&null!==No){Fo=!0;var e=0,t=vt;try{var r=No;for(vt=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}No=null,Bo=!1}catch(t){throw null!==No&&(No=No.slice(e+1)),Je(Ye,Qo),t}finally{vt=t,Fo=!1}}return null}var Ho=[],Uo=0,Wo=null,Jo=0,Go=[],$o=0,Ko=null,Zo=1,Xo="";function Yo(e,t){Ho[Uo++]=Jo,Ho[Uo++]=Wo,Wo=e,Jo=t}function ei(e,t,r){Go[$o++]=Zo,Go[$o++]=Xo,Go[$o++]=Ko,Ko=e;var n=Zo;e=Xo;var o=32-st(n)-1;n&=~(1<<o),r+=1;var i=32-st(t)+o;if(30<i){var s=o-o%5;i=(n&(1<<s)-1).toString(32),n>>=s,o-=s,Zo=1<<32-st(t)+o|r<<o|n,Xo=i+e}else Zo=1<<i|r<<o|n,Xo=e}function ti(e){null!==e.return&&(Yo(e,1),ei(e,1,0))}function ri(e){for(;e===Wo;)Wo=Ho[--Uo],Ho[Uo]=null,Jo=Ho[--Uo],Ho[Uo]=null;for(;e===Ko;)Ko=Go[--$o],Go[$o]=null,Xo=Go[--$o],Go[$o]=null,Zo=Go[--$o],Go[$o]=null}var ni=null,oi=null,ii=!1,si=null;function ai(e,t){var r=Iu(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function li(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ni=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ni=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Ko?{id:Zo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=Iu(18,null,null,0)).stateNode=t,r.return=e,e.child=r,ni=e,oi=null,!0);default:return!1}}function ui(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var r=t;if(!li(e,t)){if(ui(e))throw Error(i(418));t=uo(r.nextSibling);var n=ni;t&&li(e,t)?ai(n,r):(e.flags=-4097&e.flags|2,ii=!1,ni=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ni=e}}}function pi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ni=e}function di(e){if(e!==ni)return!1;if(!ii)return pi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ro(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw hi(),Error(i(418));for(;t;)ai(e,t),t=uo(t.nextSibling)}if(pi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}oi=null}}else oi=ni?uo(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=oi;e;)e=uo(e.nextSibling)}function fi(){oi=ni=null,ii=!1}function mi(e){null===si?si=[e]:si.push(e)}var gi=w.ReactCurrentBatchConfig;function bi(e,t){if(e&&e.defaultProps){for(var r in t=L({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var yi=So(null),vi=null,wi=null,xi=null;function Ci(){xi=wi=vi=null}function Pi(e){var t=yi.current;Vo(yi),e._currentValue=t}function _i(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Si(e,t){vi=e,xi=wi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(wa=!0),e.firstContext=null)}function Vi(e){var t=e._currentValue;if(xi!==e)if(e={context:e,memoizedValue:t,next:null},null===wi){if(null===vi)throw Error(i(308));wi=e,vi.dependencies={lanes:0,firstContext:e}}else wi=wi.next=e;return t}var Ei=null;function Oi(e){null===Ei?Ei=[e]:Ei.push(e)}function Ti(e,t,r,n){var o=t.interleaved;return null===o?(r.next=r,Oi(t)):(r.next=o.next,o.next=r),t.interleaved=r,Ri(e,n)}function Ri(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var ki=!1;function Ii(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ji(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Di(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function qi(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,0!=(2&Tl)){var o=n.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),n.pending=t,Ri(e,r)}return null===(o=n.interleaved)?(t.next=t,Oi(n)):(t.next=o.next,o.next=t),n.interleaved=t,Ri(e,r)}function Mi(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&r))){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}function Li(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var o=null,i=null;if(null!==(r=r.firstBaseUpdate)){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===i?o=i=s:i=i.next=s,r=r.next}while(null!==r);null===i?o=i=t:i=i.next=t}else o=i=t;return r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ai(e,t,r,n){var o=e.updateQueue;ki=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(null!==a){o.shared.pending=null;var l=a,u=l.next;l.next=null,null===s?i=u:s.next=u,s=l;var c=e.alternate;null!==c&&(a=(c=c.updateQueue).lastBaseUpdate)!==s&&(null===a?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l)}if(null!==i){var p=o.baseState;for(s=0,c=u=l=null,a=i;;){var d=a.lane,h=a.eventTime;if((n&d)===d){null!==c&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var f=e,m=a;switch(d=t,h=r,m.tag){case 1:if("function"==typeof(f=m.payload)){p=f.call(h,p,d);break e}p=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(d="function"==typeof(f=m.payload)?f.call(h,p,d):f))break e;p=L({},p,d);break e;case 2:ki=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(u=c=h,l=p):c=c.next=h,s|=d;if(null===(a=a.next)){if(null===(a=o.shared.pending))break;a=(d=a).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===c&&(l=p),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{s|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ll|=s,e.lanes=s,e.memoizedState=p}}function Ni(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(null!==o){if(n.callback=null,n=r,"function"!=typeof o)throw Error(i(191,o));o.call(n)}}}var Bi=(new n.Component).refs;function Fi(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:L({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var zi={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=tu(),o=ru(e),i=Di(n,o);i.payload=t,null!=r&&(i.callback=r),null!==(t=qi(e,i,o))&&(nu(t,e,o,n),Mi(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=tu(),o=ru(e),i=Di(n,o);i.tag=1,i.payload=t,null!=r&&(i.callback=r),null!==(t=qi(e,i,o))&&(nu(t,e,o,n),Mi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=tu(),n=ru(e),o=Di(r,n);o.tag=2,null!=t&&(o.callback=t),null!==(t=qi(e,o,n))&&(nu(t,e,n,r),Mi(t,e,n))}};function Qi(e,t,r,n,o,i,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,i,s):!(t.prototype&&t.prototype.isPureReactComponent&&ln(r,n)&&ln(o,i))}function Hi(e,t,r){var n=!1,o=Oo,i=t.contextType;return"object"==typeof i&&null!==i?i=Vi(i):(o=jo(t)?ko:To.current,i=(n=null!=(n=t.contextTypes))?Io(e,o):Oo),t=new t(r,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=zi,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ui(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&zi.enqueueReplaceState(t,t.state,null)}function Wi(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs=Bi,Ii(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Vi(i):(i=jo(t)?ko:To.current,o.context=Io(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Fi(e,t,i,r),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&zi.enqueueReplaceState(o,o.state,null),Ai(e,r,o,n),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Ji(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(i(309));var n=r.stateNode}if(!n)throw Error(i(147,e));var o=n,s=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=o.refs;t===Bi&&(t=o.refs={}),null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!=typeof e)throw Error(i(284));if(!r._owner)throw Error(i(290,e))}return e}function Gi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function $i(e){return(0,e._init)(e._payload)}function Ki(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Du(e,t)).index=0,e.sibling=null,e}function s(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,r,n){return null===t||6!==t.tag?((t=Au(r,e.mode,n)).return=e,t):((t=o(t,r)).return=e,t)}function u(e,t,r,n){var i=r.type;return i===P?p(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===I&&$i(i)===t.type)?((n=o(t,r.props)).ref=Ji(e,t,r),n.return=e,n):((n=qu(r.type,r.key,r.props,null,e.mode,n)).ref=Ji(e,t,r),n.return=e,n)}function c(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Nu(r,e.mode,n)).return=e,t):((t=o(t,r.children||[])).return=e,t)}function p(e,t,r,n,i){return null===t||7!==t.tag?((t=Mu(r,e.mode,n,i)).return=e,t):((t=o(t,r)).return=e,t)}function d(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Au(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case x:return(r=qu(t.type,t.key,t.props,null,e.mode,r)).ref=Ji(e,null,t),r.return=e,r;case C:return(t=Nu(t,e.mode,r)).return=e,t;case I:return d(e,(0,t._init)(t._payload),r)}if(te(t)||q(t))return(t=Mu(t,e.mode,r,null)).return=e,t;Gi(e,t)}return null}function h(e,t,r,n){var o=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==o?null:l(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case x:return r.key===o?u(e,t,r,n):null;case C:return r.key===o?c(e,t,r,n):null;case I:return h(e,t,(o=r._init)(r._payload),n)}if(te(r)||q(r))return null!==o?null:p(e,t,r,n,null);Gi(e,r)}return null}function f(e,t,r,n,o){if("string"==typeof n&&""!==n||"number"==typeof n)return l(t,e=e.get(r)||null,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case x:return u(t,e=e.get(null===n.key?r:n.key)||null,n,o);case C:return c(t,e=e.get(null===n.key?r:n.key)||null,n,o);case I:return f(e,t,r,(0,n._init)(n._payload),o)}if(te(n)||q(n))return p(t,e=e.get(r)||null,n,o,null);Gi(t,n)}return null}function m(o,i,a,l){for(var u=null,c=null,p=i,m=i=0,g=null;null!==p&&m<a.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var b=h(o,p,a[m],l);if(null===b){null===p&&(p=g);break}e&&p&&null===b.alternate&&t(o,p),i=s(b,i,m),null===c?u=b:c.sibling=b,c=b,p=g}if(m===a.length)return r(o,p),ii&&Yo(o,m),u;if(null===p){for(;m<a.length;m++)null!==(p=d(o,a[m],l))&&(i=s(p,i,m),null===c?u=p:c.sibling=p,c=p);return ii&&Yo(o,m),u}for(p=n(o,p);m<a.length;m++)null!==(g=f(p,o,m,a[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),i=s(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&p.forEach((function(e){return t(o,e)})),ii&&Yo(o,m),u}function g(o,a,l,u){var c=q(l);if("function"!=typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var p=c=null,m=a,g=a=0,b=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(b=m,m=null):b=m.sibling;var v=h(o,m,y.value,u);if(null===v){null===m&&(m=b);break}e&&m&&null===v.alternate&&t(o,m),a=s(v,a,g),null===p?c=v:p.sibling=v,p=v,m=b}if(y.done)return r(o,m),ii&&Yo(o,g),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=d(o,y.value,u))&&(a=s(y,a,g),null===p?c=y:p.sibling=y,p=y);return ii&&Yo(o,g),c}for(m=n(o,m);!y.done;g++,y=l.next())null!==(y=f(m,o,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),a=s(y,a,g),null===p?c=y:p.sibling=y,p=y);return e&&m.forEach((function(e){return t(o,e)})),ii&&Yo(o,g),c}return function e(n,i,s,l){if("object"==typeof s&&null!==s&&s.type===P&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case x:e:{for(var u=s.key,c=i;null!==c;){if(c.key===u){if((u=s.type)===P){if(7===c.tag){r(n,c.sibling),(i=o(c,s.props.children)).return=n,n=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===I&&$i(u)===c.type){r(n,c.sibling),(i=o(c,s.props)).ref=Ji(n,c,s),i.return=n,n=i;break e}r(n,c);break}t(n,c),c=c.sibling}s.type===P?((i=Mu(s.props.children,n.mode,l,s.key)).return=n,n=i):((l=qu(s.type,s.key,s.props,null,n.mode,l)).ref=Ji(n,i,s),l.return=n,n=l)}return a(n);case C:e:{for(c=s.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===s.containerInfo&&i.stateNode.implementation===s.implementation){r(n,i.sibling),(i=o(i,s.children||[])).return=n,n=i;break e}r(n,i);break}t(n,i),i=i.sibling}(i=Nu(s,n.mode,l)).return=n,n=i}return a(n);case I:return e(n,i,(c=s._init)(s._payload),l)}if(te(s))return m(n,i,s,l);if(q(s))return g(n,i,s,l);Gi(n,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==i&&6===i.tag?(r(n,i.sibling),(i=o(i,s)).return=n,n=i):(r(n,i),(i=Au(s,n.mode,l)).return=n,n=i),a(n)):r(n,i)}}var Zi=Ki(!0),Xi=Ki(!1),Yi={},es=So(Yi),ts=So(Yi),rs=So(Yi);function ns(e){if(e===Yi)throw Error(i(174));return e}function os(e,t){switch(Eo(rs,t),Eo(ts,e),Eo(es,Yi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Vo(es),Eo(es,t)}function is(){Vo(es),Vo(ts),Vo(rs)}function ss(e){ns(rs.current);var t=ns(es.current),r=le(t,e.type);t!==r&&(Eo(ts,e),Eo(es,r))}function as(e){ts.current===e&&(Vo(es),Vo(ts))}var ls=So(0);function us(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.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 cs=[];function ps(){for(var e=0;e<cs.length;e++)cs[e]._workInProgressVersionPrimary=null;cs.length=0}var ds=w.ReactCurrentDispatcher,hs=w.ReactCurrentBatchConfig,fs=0,ms=null,gs=null,bs=null,ys=!1,vs=!1,ws=0,xs=0;function Cs(){throw Error(i(321))}function Ps(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!an(e[r],t[r]))return!1;return!0}function _s(e,t,r,n,o,s){if(fs=s,ms=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ds.current=null===e||null===e.memoizedState?aa:la,e=r(n,o),vs){s=0;do{if(vs=!1,ws=0,25<=s)throw Error(i(301));s+=1,bs=gs=null,t.updateQueue=null,ds.current=ua,e=r(n,o)}while(vs)}if(ds.current=sa,t=null!==gs&&null!==gs.next,fs=0,bs=gs=ms=null,ys=!1,t)throw Error(i(300));return e}function Ss(){var e=0!==ws;return ws=0,e}function Vs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===bs?ms.memoizedState=bs=e:bs=bs.next=e,bs}function Es(){if(null===gs){var e=ms.alternate;e=null!==e?e.memoizedState:null}else e=gs.next;var t=null===bs?ms.memoizedState:bs.next;if(null!==t)bs=t,gs=e;else{if(null===e)throw Error(i(310));e={memoizedState:(gs=e).memoizedState,baseState:gs.baseState,baseQueue:gs.baseQueue,queue:gs.queue,next:null},null===bs?ms.memoizedState=bs=e:bs=bs.next=e}return bs}function Os(e,t){return"function"==typeof t?t(e):t}function Ts(e){var t=Es(),r=t.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=e;var n=gs,o=n.baseQueue,s=r.pending;if(null!==s){if(null!==o){var a=o.next;o.next=s.next,s.next=a}n.baseQueue=o=s,r.pending=null}if(null!==o){s=o.next,n=n.baseState;var l=a=null,u=null,c=s;do{var p=c.lane;if((fs&p)===p)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var d={lane:p,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=d,a=n):u=u.next=d,ms.lanes|=p,Ll|=p}c=c.next}while(null!==c&&c!==s);null===u?a=n:u.next=l,an(n,t.memoizedState)||(wa=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=u,r.lastRenderedState=n}if(null!==(e=r.interleaved)){o=e;do{s=o.lane,ms.lanes|=s,Ll|=s,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Rs(e){var t=Es(),r=t.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,s=t.memoizedState;if(null!==o){r.pending=null;var a=o=o.next;do{s=e(s,a.action),a=a.next}while(a!==o);an(s,t.memoizedState)||(wa=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),r.lastRenderedState=s}return[s,n]}function ks(){}function Is(e,t){var r=ms,n=Es(),o=t(),s=!an(n.memoizedState,o);if(s&&(n.memoizedState=o,wa=!0),n=n.queue,Hs(qs.bind(null,r,n,e),[e]),n.getSnapshot!==t||s||null!==bs&&1&bs.memoizedState.tag){if(r.flags|=2048,Ns(9,Ds.bind(null,r,n,o,t),void 0,null),null===Rl)throw Error(i(349));0!=(30&fs)||js(r,t,o)}return o}function js(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=ms.updateQueue)?(t={lastEffect:null,stores:null},ms.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function Ds(e,t,r,n){t.value=r,t.getSnapshot=n,Ms(t)&&Ls(e)}function qs(e,t,r){return r((function(){Ms(t)&&Ls(e)}))}function Ms(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!an(e,r)}catch(e){return!0}}function Ls(e){var t=Ri(e,1);null!==t&&nu(t,e,1,-1)}function As(e){var t=Vs();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Os,lastRenderedState:e},t.queue=e,e=e.dispatch=ra.bind(null,ms,e),[t.memoizedState,e]}function Ns(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=ms.updateQueue)?(t={lastEffect:null,stores:null},ms.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function Bs(){return Es().memoizedState}function Fs(e,t,r,n){var o=Vs();ms.flags|=e,o.memoizedState=Ns(1|t,r,void 0,void 0===n?null:n)}function zs(e,t,r,n){var o=Es();n=void 0===n?null:n;var i=void 0;if(null!==gs){var s=gs.memoizedState;if(i=s.destroy,null!==n&&Ps(n,s.deps))return void(o.memoizedState=Ns(t,r,i,n))}ms.flags|=e,o.memoizedState=Ns(1|t,r,i,n)}function Qs(e,t){return Fs(8390656,8,e,t)}function Hs(e,t){return zs(2048,8,e,t)}function Us(e,t){return zs(4,2,e,t)}function Ws(e,t){return zs(4,4,e,t)}function Js(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Gs(e,t,r){return r=null!=r?r.concat([e]):null,zs(4,4,Js.bind(null,t,e),r)}function $s(){}function Ks(e,t){var r=Es();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Ps(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Zs(e,t){var r=Es();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Ps(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Xs(e,t,r){return 0==(21&fs)?(e.baseState&&(e.baseState=!1,wa=!0),e.memoizedState=r):(an(r,t)||(r=mt(),ms.lanes|=r,Ll|=r,e.baseState=!0),t)}function Ys(e,t){var r=vt;vt=0!==r&&4>r?r:4,e(!0);var n=hs.transition;hs.transition={};try{e(!1),t()}finally{vt=r,hs.transition=n}}function ea(){return Es().memoizedState}function ta(e,t,r){var n=ru(e);r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},na(e)?oa(t,r):null!==(r=Ti(e,t,r,n))&&(nu(r,e,n,tu()),ia(r,t,n))}function ra(e,t,r){var n=ru(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(na(e))oa(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=i(s,r);if(o.hasEagerState=!0,o.eagerState=a,an(a,s)){var l=t.interleaved;return null===l?(o.next=o,Oi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(r=Ti(e,t,o,n))&&(nu(r,e,n,o=tu()),ia(r,t,n))}}function na(e){var t=e.alternate;return e===ms||null!==t&&t===ms}function oa(e,t){vs=ys=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function ia(e,t,r){if(0!=(4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}var sa={readContext:Vi,useCallback:Cs,useContext:Cs,useEffect:Cs,useImperativeHandle:Cs,useInsertionEffect:Cs,useLayoutEffect:Cs,useMemo:Cs,useReducer:Cs,useRef:Cs,useState:Cs,useDebugValue:Cs,useDeferredValue:Cs,useTransition:Cs,useMutableSource:Cs,useSyncExternalStore:Cs,useId:Cs,unstable_isNewReconciler:!1},aa={readContext:Vi,useCallback:function(e,t){return Vs().memoizedState=[e,void 0===t?null:t],e},useContext:Vi,useEffect:Qs,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,Fs(4194308,4,Js.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Fs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fs(4,2,e,t)},useMemo:function(e,t){var r=Vs();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Vs();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=ta.bind(null,ms,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Vs().memoizedState=e},useState:As,useDebugValue:$s,useDeferredValue:function(e){return Vs().memoizedState=e},useTransition:function(){var e=As(!1),t=e[0];return e=Ys.bind(null,e[1]),Vs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ms,o=Vs();if(ii){if(void 0===r)throw Error(i(407));r=r()}else{if(r=t(),null===Rl)throw Error(i(349));0!=(30&fs)||js(n,t,r)}o.memoizedState=r;var s={value:r,getSnapshot:t};return o.queue=s,Qs(qs.bind(null,n,s,e),[e]),n.flags|=2048,Ns(9,Ds.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=Vs(),t=Rl.identifierPrefix;if(ii){var r=Xo;t=":"+t+"R"+(r=(Zo&~(1<<32-st(Zo)-1)).toString(32)+r),0<(r=ws++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=xs++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},la={readContext:Vi,useCallback:Ks,useContext:Vi,useEffect:Hs,useImperativeHandle:Gs,useInsertionEffect:Us,useLayoutEffect:Ws,useMemo:Zs,useReducer:Ts,useRef:Bs,useState:function(){return Ts(Os)},useDebugValue:$s,useDeferredValue:function(e){return Xs(Es(),gs.memoizedState,e)},useTransition:function(){return[Ts(Os)[0],Es().memoizedState]},useMutableSource:ks,useSyncExternalStore:Is,useId:ea,unstable_isNewReconciler:!1},ua={readContext:Vi,useCallback:Ks,useContext:Vi,useEffect:Hs,useImperativeHandle:Gs,useInsertionEffect:Us,useLayoutEffect:Ws,useMemo:Zs,useReducer:Rs,useRef:Bs,useState:function(){return Rs(Os)},useDebugValue:$s,useDeferredValue:function(e){var t=Es();return null===gs?t.memoizedState=e:Xs(t,gs.memoizedState,e)},useTransition:function(){return[Rs(Os)[0],Es().memoizedState]},useMutableSource:ks,useSyncExternalStore:Is,useId:ea,unstable_isNewReconciler:!1};function ca(e,t){try{var r="",n=t;do{r+=F(n),n=n.return}while(n);var o=r}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function pa(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function da(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ha="function"==typeof WeakMap?WeakMap:Map;function fa(e,t,r){(r=Di(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Ul||(Ul=!0,Wl=n),da(0,t)},r}function ma(e,t,r){(r=Di(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){da(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(r.callback=function(){da(0,t),"function"!=typeof n&&(null===Jl?Jl=new Set([this]):Jl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function ga(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new ha;var o=new Set;n.set(t,o)}else void 0===(o=n.get(t))&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=Vu.bind(null,e,t,r),t.then(e,e))}function ba(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ya(e,t,r,n,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Di(-1,1)).tag=2,qi(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var va=w.ReactCurrentOwner,wa=!1;function xa(e,t,r,n){t.child=null===e?Xi(t,null,r,n):Zi(t,e.child,r,n)}function Ca(e,t,r,n,o){r=r.render;var i=t.ref;return Si(t,o),n=_s(e,t,r,n,i,o),r=Ss(),null===e||wa?(ii&&r&&ti(t),t.flags|=1,xa(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ua(e,t,o))}function Pa(e,t,r,n,o){if(null===e){var i=r.type;return"function"!=typeof i||ju(i)||void 0!==i.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=qu(r.type,null,n,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,_a(e,t,i,n,o))}if(i=e.child,0==(e.lanes&o)){var s=i.memoizedProps;if((r=null!==(r=r.compare)?r:ln)(s,n)&&e.ref===t.ref)return Ua(e,t,o)}return t.flags|=1,(e=Du(i,n)).ref=t.ref,e.return=t,t.child=e}function _a(e,t,r,n,o){if(null!==e){var i=e.memoizedProps;if(ln(i,n)&&e.ref===t.ref){if(wa=!1,t.pendingProps=n=i,0==(e.lanes&o))return t.lanes=e.lanes,Ua(e,t,o);0!=(131072&e.flags)&&(wa=!0)}}return Ea(e,t,r,n,o)}function Sa(e,t,r){var n=t.pendingProps,o=n.children,i=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Eo(Dl,jl),jl|=r;else{if(0==(1073741824&r))return e=null!==i?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Eo(Dl,jl),jl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==i?i.baseLanes:r,Eo(Dl,jl),jl|=n}else null!==i?(n=i.baseLanes|r,t.memoizedState=null):n=r,Eo(Dl,jl),jl|=n;return xa(e,t,o,r),t.child}function Va(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Ea(e,t,r,n,o){var i=jo(r)?ko:To.current;return i=Io(t,i),Si(t,o),r=_s(e,t,r,n,i,o),n=Ss(),null===e||wa?(ii&&n&&ti(t),t.flags|=1,xa(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ua(e,t,o))}function Oa(e,t,r,n,o){if(jo(r)){var i=!0;Lo(t)}else i=!1;if(Si(t,o),null===t.stateNode)Ha(e,t),Hi(t,r,n),Wi(t,r,n,o),n=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=r.contextType;u="object"==typeof u&&null!==u?Vi(u):Io(t,u=jo(r)?ko:To.current);var c=r.getDerivedStateFromProps,p="function"==typeof c||"function"==typeof s.getSnapshotBeforeUpdate;p||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==n||l!==u)&&Ui(t,s,n,u),ki=!1;var d=t.memoizedState;s.state=d,Ai(t,n,s,o),l=t.memoizedState,a!==n||d!==l||Ro.current||ki?("function"==typeof c&&(Fi(t,r,c,n),l=t.memoizedState),(a=ki||Qi(t,r,a,n,d,l,u))?(p||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),s.props=n,s.state=l,s.context=u,n=a):("function"==typeof s.componentDidMount&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,ji(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:bi(t.type,a),s.props=u,p=t.pendingProps,d=s.context,l="object"==typeof(l=r.contextType)&&null!==l?Vi(l):Io(t,l=jo(r)?ko:To.current);var h=r.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==p||d!==l)&&Ui(t,s,n,l),ki=!1,d=t.memoizedState,s.state=d,Ai(t,n,s,o);var f=t.memoizedState;a!==p||d!==f||Ro.current||ki?("function"==typeof h&&(Fi(t,r,h,n),f=t.memoizedState),(u=ki||Qi(t,r,u,n,d,f,l)||!1)?(c||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(n,f,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(n,f,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=f),s.props=n,s.state=f,s.context=l,n=u):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return Ta(e,t,r,n,i,o)}function Ta(e,t,r,n,o,i){Va(e,t);var s=0!=(128&t.flags);if(!n&&!s)return o&&Ao(t,r,!1),Ua(e,t,i);n=t.stateNode,va.current=t;var a=s&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&s?(t.child=Zi(t,e.child,null,i),t.child=Zi(t,null,a,i)):xa(e,t,a,i),t.memoizedState=n.state,o&&Ao(t,r,!0),t.child}function Ra(e){var t=e.stateNode;t.pendingContext?qo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&qo(0,t.context,!1),os(e,t.containerInfo)}function ka(e,t,r,n,o){return fi(),mi(o),t.flags|=256,xa(e,t,r,n),t.child}var Ia,ja,Da,qa,Ma={dehydrated:null,treeContext:null,retryLane:0};function La(e){return{baseLanes:e,cachePool:null,transitions:null}}function Aa(e,t,r){var n,o=t.pendingProps,s=ls.current,a=!1,l=0!=(128&t.flags);if((n=l)||(n=(null===e||null!==e.memoizedState)&&0!=(2&s)),n?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),Eo(ls,1&s),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=Lu(l,o,0,null),e=Mu(e,o,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=La(r),t.memoizedState=Ma,e):Na(t,l));if(null!==(s=e.memoizedState)&&null!==(n=s.dehydrated))return function(e,t,r,n,o,s,a){if(r)return 256&t.flags?(t.flags&=-257,Ba(e,t,a,n=pa(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=n.fallback,o=t.mode,n=Lu({mode:"visible",children:n.children},o,0,null),(s=Mu(s,o,a,null)).flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,0!=(1&t.mode)&&Zi(t,e.child,null,a),t.child.memoizedState=La(a),t.memoizedState=Ma,s);if(0==(1&t.mode))return Ba(e,t,a,null);if("$!"===o.data){if(n=o.nextSibling&&o.nextSibling.dataset)var l=n.dgst;return n=l,Ba(e,t,a,n=pa(s=Error(i(419)),n,void 0))}if(l=0!=(a&e.childLanes),wa||l){if(null!==(n=Rl)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(n.suspendedLanes|a))?0:o)&&o!==s.retryLane&&(s.retryLane=o,Ri(e,o),nu(n,e,o,-1))}return gu(),Ba(e,t,a,n=pa(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ou.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,oi=uo(o.nextSibling),ni=t,ii=!0,si=null,null!==e&&(Go[$o++]=Zo,Go[$o++]=Xo,Go[$o++]=Ko,Zo=e.id,Xo=e.overflow,Ko=t),(t=Na(t,n.children)).flags|=4096,t)}(e,t,l,o,n,s,r);if(a){a=o.fallback,l=t.mode,n=(s=e.child).sibling;var u={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==s?((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null):(o=Du(s,u)).subtreeFlags=14680064&s.subtreeFlags,null!==n?a=Du(n,a):(a=Mu(a,l,r,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?La(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~r,t.memoizedState=Ma,o}return e=(a=e.child).sibling,o=Du(a,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Na(e,t){return(t=Lu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ba(e,t,r,n){return null!==n&&mi(n),Zi(t,e.child,null,r),(e=Na(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fa(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),_i(e.return,t,r)}function za(e,t,r,n,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function Qa(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(xa(e,t,n.children,r),0!=(2&(n=ls.current)))n=1&n|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fa(e,r,t);else if(19===e.tag)Fa(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Eo(ls,n),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(e=r.alternate)&&null===us(e)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),za(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===us(e)){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}za(t,!0,r,null,i);break;case"together":za(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ha(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ua(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ll|=t.lanes,0==(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(r=Du(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Du(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Wa(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ja(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=14680064&o.subtreeFlags,n|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Ga(e,t,r){var n=t.pendingProps;switch(ri(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ja(t),null;case 1:case 17:return jo(t.type)&&Do(),Ja(t),null;case 3:return n=t.stateNode,is(),Vo(Ro),Vo(To),ps(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==si&&(au(si),si=null))),ja(e,t),Ja(t),null;case 5:as(t);var o=ns(rs.current);if(r=t.type,null!==e&&null!=t.stateNode)Da(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(i(166));return Ja(t),null}if(e=ns(es.current),di(t)){n=t.stateNode,r=t.type;var s=t.memoizedProps;switch(n[ho]=t,n[fo]=s,e=0!=(1&t.mode),r){case"dialog":Nn("cancel",n),Nn("close",n);break;case"iframe":case"object":case"embed":Nn("load",n);break;case"video":case"audio":for(o=0;o<qn.length;o++)Nn(qn[o],n);break;case"source":Nn("error",n);break;case"img":case"image":case"link":Nn("error",n),Nn("load",n);break;case"details":Nn("toggle",n);break;case"input":K(n,s),Nn("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},Nn("invalid",n);break;case"textarea":oe(n,s),Nn("invalid",n)}for(var l in ye(r,s),o=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?n.textContent!==u&&(!0!==s.suppressHydrationWarning&&Xn(n.textContent,u,e),o=["children",u]):"number"==typeof u&&n.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Xn(n.textContent,u,e),o=["children",""+u]):a.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Nn("scroll",n)}switch(r){case"input":W(n),Y(n,s,!0);break;case"textarea":W(n),se(n);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(n.onclick=Yn)}n=o,t.updateQueue=n,null!==n&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),"select"===r&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[ho]=t,e[fo]=n,Ia(e,t,!1,!1),t.stateNode=e;e:{switch(l=ve(r,n),r){case"dialog":Nn("cancel",e),Nn("close",e),o=n;break;case"iframe":case"object":case"embed":Nn("load",e),o=n;break;case"video":case"audio":for(o=0;o<qn.length;o++)Nn(qn[o],e);o=n;break;case"source":Nn("error",e),o=n;break;case"img":case"image":case"link":Nn("error",e),Nn("load",e),o=n;break;case"details":Nn("toggle",e),o=n;break;case"input":K(e,n),o=$(e,n),Nn("invalid",e);break;case"option":default:o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=L({},n,{value:void 0}),Nn("invalid",e);break;case"textarea":oe(e,n),o=ne(e,n),Nn("invalid",e)}for(s in ye(r,o),u=o)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?ge(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&pe(e,c):"children"===s?"string"==typeof c?("textarea"!==r||""!==c)&&de(e,c):"number"==typeof c&&de(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(a.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Nn("scroll",e):null!=c&&v(e,s,c,l))}switch(r){case"input":W(e),Y(e,n,!1);break;case"textarea":W(e),se(e);break;case"option":null!=n.value&&e.setAttribute("value",""+H(n.value));break;case"select":e.multiple=!!n.multiple,null!=(s=n.value)?re(e,!!n.multiple,s,!1):null!=n.defaultValue&&re(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Yn)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ja(t),null;case 6:if(e&&null!=t.stateNode)qa(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(i(166));if(r=ns(rs.current),ns(es.current),di(t)){if(n=t.stateNode,r=t.memoizedProps,n[ho]=t,(s=n.nodeValue!==r)&&null!==(e=ni))switch(e.tag){case 3:Xn(n.nodeValue,r,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xn(n.nodeValue,r,0!=(1&e.mode))}s&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[ho]=t,t.stateNode=n}return Ja(t),null;case 13:if(Vo(ls),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!=(1&t.mode)&&0==(128&t.flags))hi(),fi(),t.flags|=98560,s=!1;else if(s=di(t),null!==n&&null!==n.dehydrated){if(null===e){if(!s)throw Error(i(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(i(317));s[ho]=t}else fi(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ja(t),s=!1}else null!==si&&(au(si),si=null),s=!0;if(!s)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=r,t):((n=null!==n)!=(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ls.current)?0===ql&&(ql=3):gu())),null!==t.updateQueue&&(t.flags|=4),Ja(t),null);case 4:return is(),ja(e,t),null===e&&zn(t.stateNode.containerInfo),Ja(t),null;case 10:return Pi(t.type._context),Ja(t),null;case 19:if(Vo(ls),null===(s=t.memoizedState))return Ja(t),null;if(n=0!=(128&t.flags),null===(l=s.rendering))if(n)Wa(s,!1);else{if(0!==ql||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=us(e))){for(t.flags|=128,Wa(s,!1),null!==(n=l.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(s=r).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Eo(ls,1&ls.current|2),t.child}e=e.sibling}null!==s.tail&&Ze()>Ql&&(t.flags|=128,n=!0,Wa(s,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=us(l))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Wa(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ii)return Ja(t),null}else 2*Ze()-s.renderingStartTime>Ql&&1073741824!==r&&(t.flags|=128,n=!0,Wa(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ze(),t.sibling=null,r=ls.current,Eo(ls,n?1&r|2:1&r),t):(Ja(t),null);case 22:case 23:return du(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!=(1&t.mode)?0!=(1073741824&jl)&&(Ja(t),6&t.subtreeFlags&&(t.flags|=8192)):Ja(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function $a(e,t){switch(ri(t),t.tag){case 1:return jo(t.type)&&Do(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return is(),Vo(Ro),Vo(To),ps(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return as(t),null;case 13:if(Vo(ls),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));fi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Vo(ls),null;case 4:return is(),null;case 10:return Pi(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Ia=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},ja=function(){},Da=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,ns(es.current);var i,s=null;switch(r){case"input":o=$(e,o),n=$(e,n),s=[];break;case"select":o=L({},o,{value:void 0}),n=L({},n,{value:void 0}),s=[];break;case"textarea":o=ne(e,o),n=ne(e,n),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof n.onClick&&(e.onclick=Yn)}for(c in ye(r,n),r=null,o)if(!n.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(a.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in n){var u=n[c];if(l=null!=o?o[c]:void 0,n.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(r||(r={}),r[i]=u[i])}else r||(s||(s=[]),s.push(c,r)),r=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(a.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Nn("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}r&&(s=s||[]).push("style",r);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},qa=function(e,t,r,n){r!==n&&(t.flags|=4)};var Ka=!1,Za=!1,Xa="function"==typeof WeakSet?WeakSet:Set,Ya=null;function el(e,t){var r=e.ref;if(null!==r)if("function"==typeof r)try{r(null)}catch(r){Su(e,t,r)}else r.current=null}function tl(e,t,r){try{r()}catch(r){Su(e,t,r)}}var rl=!1;function nl(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&tl(t,r,i)}o=o.next}while(o!==n)}}function ol(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function il(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"==typeof t?t(e):t.current=e}}function sl(e){var t=e.alternate;null!==t&&(e.alternate=null,sl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[ho],delete t[fo],delete t[go],delete t[bo],delete t[yo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ul(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Yn));else if(4!==n&&null!==(e=e.child))for(ul(e,t,r),e=e.sibling;null!==e;)ul(e,t,r),e=e.sibling}function cl(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(cl(e,t,r),e=e.sibling;null!==e;)cl(e,t,r),e=e.sibling}var pl=null,dl=!1;function hl(e,t,r){for(r=r.child;null!==r;)fl(e,t,r),r=r.sibling}function fl(e,t,r){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,r)}catch(e){}switch(r.tag){case 5:Za||el(r,t);case 6:var n=pl,o=dl;pl=null,hl(e,t,r),dl=o,null!==(pl=n)&&(dl?(e=pl,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):pl.removeChild(r.stateNode));break;case 18:null!==pl&&(dl?(e=pl,r=r.stateNode,8===e.nodeType?lo(e.parentNode,r):1===e.nodeType&&lo(e,r),zt(e)):lo(pl,r.stateNode));break;case 4:n=pl,o=dl,pl=r.stateNode.containerInfo,dl=!0,hl(e,t,r),pl=n,dl=o;break;case 0:case 11:case 14:case 15:if(!Za&&null!==(n=r.updateQueue)&&null!==(n=n.lastEffect)){o=n=n.next;do{var i=o,s=i.destroy;i=i.tag,void 0!==s&&(0!=(2&i)||0!=(4&i))&&tl(r,t,s),o=o.next}while(o!==n)}hl(e,t,r);break;case 1:if(!Za&&(el(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(e){Su(r,t,e)}hl(e,t,r);break;case 21:hl(e,t,r);break;case 22:1&r.mode?(Za=(n=Za)||null!==r.memoizedState,hl(e,t,r),Za=n):hl(e,t,r);break;default:hl(e,t,r)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Xa),t.forEach((function(t){var n=Tu.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function gl(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var o=r[n];try{var s=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:pl=l.stateNode,dl=!1;break e;case 3:case 4:pl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===pl)throw Error(i(160));fl(s,a,o),pl=null,dl=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){Su(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)bl(t,e),t=t.sibling}function bl(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),yl(e),4&n){try{nl(3,e,e.return),ol(3,e)}catch(t){Su(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Su(e,e.return,t)}}break;case 1:gl(t,e),yl(e),512&n&&null!==r&&el(r,r.return);break;case 5:if(gl(t,e),yl(e),512&n&&null!==r&&el(r,r.return),32&e.flags){var o=e.stateNode;try{de(o,"")}catch(t){Su(e,e.return,t)}}if(4&n&&null!=(o=e.stateNode)){var s=e.memoizedProps,a=null!==r?r.memoizedProps:s,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===s.type&&null!=s.name&&Z(o,s),ve(l,a);var c=ve(l,s);for(a=0;a<u.length;a+=2){var p=u[a],d=u[a+1];"style"===p?ge(o,d):"dangerouslySetInnerHTML"===p?pe(o,d):"children"===p?de(o,d):v(o,p,d,c)}switch(l){case"input":X(o,s);break;case"textarea":ie(o,s);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var f=s.value;null!=f?re(o,!!s.multiple,f,!1):h!==!!s.multiple&&(null!=s.defaultValue?re(o,!!s.multiple,s.defaultValue,!0):re(o,!!s.multiple,s.multiple?[]:"",!1))}o[fo]=s}catch(t){Su(e,e.return,t)}}break;case 6:if(gl(t,e),yl(e),4&n){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(t){Su(e,e.return,t)}}break;case 3:if(gl(t,e),yl(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(t){Su(e,e.return,t)}break;case 4:default:gl(t,e),yl(e);break;case 13:gl(t,e),yl(e),8192&(o=e.child).flags&&(s=null!==o.memoizedState,o.stateNode.isHidden=s,!s||null!==o.alternate&&null!==o.alternate.memoizedState||(zl=Ze())),4&n&&ml(e);break;case 22:if(p=null!==r&&null!==r.memoizedState,1&e.mode?(Za=(c=Za)||p,gl(t,e),Za=c):gl(t,e),yl(e),8192&n){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!p&&0!=(1&e.mode))for(Ya=e,p=e.child;null!==p;){for(d=Ya=p;null!==Ya;){switch(f=(h=Ya).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:el(h,h.return);var m=h.stateNode;if("function"==typeof m.componentWillUnmount){n=h,r=h.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Su(n,r,e)}}break;case 5:el(h,h.return);break;case 22:if(null!==h.memoizedState){Cl(d);continue}}null!==f?(f.return=h,Ya=f):Cl(d)}p=p.sibling}e:for(p=null,d=e;;){if(5===d.tag){if(null===p){p=d;try{o=d.stateNode,c?"function"==typeof(s=o.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=d.stateNode,a=null!=(u=d.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",a))}catch(t){Su(e,e.return,t)}}}else if(6===d.tag){if(null===p)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){Su(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;p===d&&(p=null),d=d.return}p===d&&(p=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:gl(t,e),yl(e),4&n&&ml(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(al(r)){var n=r;break e}r=r.return}throw Error(i(160))}switch(n.tag){case 5:var o=n.stateNode;32&n.flags&&(de(o,""),n.flags&=-33),cl(e,ll(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;ul(e,ll(e),s);break;default:throw Error(i(161))}}catch(t){Su(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,r){Ya=e,wl(e,t,r)}function wl(e,t,r){for(var n=0!=(1&e.mode);null!==Ya;){var o=Ya,i=o.child;if(22===o.tag&&n){var s=null!==o.memoizedState||Ka;if(!s){var a=o.alternate,l=null!==a&&null!==a.memoizedState||Za;a=Ka;var u=Za;if(Ka=s,(Za=l)&&!u)for(Ya=o;null!==Ya;)l=(s=Ya).child,22===s.tag&&null!==s.memoizedState?Pl(o):null!==l?(l.return=s,Ya=l):Pl(o);for(;null!==i;)Ya=i,wl(i,t,r),i=i.sibling;Ya=o,Ka=a,Za=u}xl(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,Ya=i):xl(e)}}function xl(e){for(;null!==Ya;){var t=Ya;if(0!=(8772&t.flags)){var r=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Za||ol(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Za)if(null===r)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:bi(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&Ni(t,s,n);break;case 3:var a=t.updateQueue;if(null!==a){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Ni(t,a,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var p=c.memoizedState;if(null!==p){var d=p.dehydrated;null!==d&&zt(d)}}}break;default:throw Error(i(163))}Za||512&t.flags&&il(t)}catch(e){Su(t,t.return,e)}}if(t===e){Ya=null;break}if(null!==(r=t.sibling)){r.return=t.return,Ya=r;break}Ya=t.return}}function Cl(e){for(;null!==Ya;){var t=Ya;if(t===e){Ya=null;break}var r=t.sibling;if(null!==r){r.return=t.return,Ya=r;break}Ya=t.return}}function Pl(e){for(;null!==Ya;){var t=Ya;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{ol(4,t)}catch(e){Su(t,r,e)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var o=t.return;try{n.componentDidMount()}catch(e){Su(t,o,e)}}var i=t.return;try{il(t)}catch(e){Su(t,i,e)}break;case 5:var s=t.return;try{il(t)}catch(e){Su(t,s,e)}}}catch(e){Su(t,t.return,e)}if(t===e){Ya=null;break}var a=t.sibling;if(null!==a){a.return=t.return,Ya=a;break}Ya=t.return}}var _l,Sl=Math.ceil,Vl=w.ReactCurrentDispatcher,El=w.ReactCurrentOwner,Ol=w.ReactCurrentBatchConfig,Tl=0,Rl=null,kl=null,Il=0,jl=0,Dl=So(0),ql=0,Ml=null,Ll=0,Al=0,Nl=0,Bl=null,Fl=null,zl=0,Ql=1/0,Hl=null,Ul=!1,Wl=null,Jl=null,Gl=!1,$l=null,Kl=0,Zl=0,Xl=null,Yl=-1,eu=0;function tu(){return 0!=(6&Tl)?Ze():-1!==Yl?Yl:Yl=Ze()}function ru(e){return 0==(1&e.mode)?1:0!=(2&Tl)&&0!==Il?Il&-Il:null!==gi.transition?(0===eu&&(eu=mt()),eu):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Kt(e.type)}function nu(e,t,r,n){if(50<Zl)throw Zl=0,Xl=null,Error(i(185));bt(e,r,n),0!=(2&Tl)&&e===Rl||(e===Rl&&(0==(2&Tl)&&(Al|=r),4===ql&&lu(e,Il)),ou(e,n),1===r&&0===Tl&&0==(1&t.mode)&&(Ql=Ze()+500,Bo&&Qo()))}function ou(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-st(i),a=1<<s,l=o[s];-1===l?0!=(a&r)&&0==(a&n)||(o[s]=ht(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}(e,t);var n=dt(e,e===Rl?Il:0);if(0===n)null!==r&&Ge(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Ge(r),1===t)0===e.tag?function(e){Bo=!0,zo(e)}(uu.bind(null,e)):zo(uu.bind(null,e)),so((function(){0==(6&Tl)&&Qo()})),r=null;else{switch(wt(n)){case 1:r=Ye;break;case 4:r=et;break;case 16:default:r=tt;break;case 536870912:r=nt}r=Ru(r,iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function iu(e,t){if(Yl=-1,eu=0,0!=(6&Tl))throw Error(i(327));var r=e.callbackNode;if(Pu()&&e.callbackNode!==r)return null;var n=dt(e,e===Rl?Il:0);if(0===n)return null;if(0!=(30&n)||0!=(n&e.expiredLanes)||t)t=bu(e,n);else{t=n;var o=Tl;Tl|=2;var s=mu();for(Rl===e&&Il===t||(Hl=null,Ql=Ze()+500,hu(e,t));;)try{vu();break}catch(t){fu(e,t)}Ci(),Vl.current=s,Tl=o,null!==kl?t=0:(Rl=null,Il=0,t=ql)}if(0!==t){if(2===t&&0!==(o=ft(e))&&(n=o,t=su(e,o)),1===t)throw r=Ml,hu(e,0),lu(e,n),ou(e,Ze()),r;if(6===t)lu(e,n);else{if(o=e.current.alternate,0==(30&n)&&!function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var o=r[n],i=o.getSnapshot;o=o.value;try{if(!an(i(),o))return!1}catch(e){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=bu(e,n))&&0!==(s=ft(e))&&(n=s,t=su(e,s)),1===t))throw r=Ml,hu(e,0),lu(e,n),ou(e,Ze()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(i(345));case 2:case 5:Cu(e,Fl,Hl);break;case 3:if(lu(e,n),(130023424&n)===n&&10<(t=zl+500-Ze())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&n)!==n){tu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=no(Cu.bind(null,e,Fl,Hl),t);break}Cu(e,Fl,Hl);break;case 4:if(lu(e,n),(4194240&n)===n)break;for(t=e.eventTimes,o=-1;0<n;){var a=31-st(n);s=1<<a,(a=t[a])>o&&(o=a),n&=~s}if(n=o,10<(n=(120>(n=Ze()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Sl(n/1960))-n)){e.timeoutHandle=no(Cu.bind(null,e,Fl,Hl),n);break}Cu(e,Fl,Hl);break;default:throw Error(i(329))}}}return ou(e,Ze()),e.callbackNode===r?iu.bind(null,e):null}function su(e,t){var r=Bl;return e.current.memoizedState.isDehydrated&&(hu(e,t).flags|=256),2!==(e=bu(e,t))&&(t=Fl,Fl=r,null!==t&&au(t)),e}function au(e){null===Fl?Fl=e:Fl.push.apply(Fl,e)}function lu(e,t){for(t&=~Nl,t&=~Al,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-st(t),n=1<<r;e[r]=-1,t&=~n}}function uu(e){if(0!=(6&Tl))throw Error(i(327));Pu();var t=dt(e,0);if(0==(1&t))return ou(e,Ze()),null;var r=bu(e,t);if(0!==e.tag&&2===r){var n=ft(e);0!==n&&(t=n,r=su(e,n))}if(1===r)throw r=Ml,hu(e,0),lu(e,t),ou(e,Ze()),r;if(6===r)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Cu(e,Fl,Hl),ou(e,Ze()),null}function cu(e,t){var r=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=r)&&(Ql=Ze()+500,Bo&&Qo())}}function pu(e){null!==$l&&0===$l.tag&&0==(6&Tl)&&Pu();var t=Tl;Tl|=1;var r=Ol.transition,n=vt;try{if(Ol.transition=null,vt=1,e)return e()}finally{vt=n,Ol.transition=r,0==(6&(Tl=t))&&Qo()}}function du(){jl=Dl.current,Vo(Dl)}function hu(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,oo(r)),null!==kl)for(r=kl.return;null!==r;){var n=r;switch(ri(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&Do();break;case 3:is(),Vo(Ro),Vo(To),ps();break;case 5:as(n);break;case 4:is();break;case 13:case 19:Vo(ls);break;case 10:Pi(n.type._context);break;case 22:case 23:du()}r=r.return}if(Rl=e,kl=e=Du(e.current,null),Il=jl=t,ql=0,Ml=null,Nl=Al=Ll=0,Fl=Bl=null,null!==Ei){for(t=0;t<Ei.length;t++)if(null!==(n=(r=Ei[t]).interleaved)){r.interleaved=null;var o=n.next,i=r.pending;if(null!==i){var s=i.next;i.next=o,n.next=s}r.pending=n}Ei=null}return e}function fu(e,t){for(;;){var r=kl;try{if(Ci(),ds.current=sa,ys){for(var n=ms.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}ys=!1}if(fs=0,bs=gs=ms=null,vs=!1,ws=0,El.current=null,null===r||null===r.return){ql=1,Ml=t,kl=null;break}e:{var s=e,a=r.return,l=r,u=t;if(t=Il,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,p=l,d=p.tag;if(0==(1&p.mode)&&(0===d||11===d||15===d)){var h=p.alternate;h?(p.updateQueue=h.updateQueue,p.memoizedState=h.memoizedState,p.lanes=h.lanes):(p.updateQueue=null,p.memoizedState=null)}var f=ba(a);if(null!==f){f.flags&=-257,ya(f,a,l,0,t),1&f.mode&&ga(s,c,t),u=c;var m=(t=f).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(0==(1&t)){ga(s,c,t),gu();break e}u=Error(i(426))}else if(ii&&1&l.mode){var b=ba(a);if(null!==b){0==(65536&b.flags)&&(b.flags|=256),ya(b,a,l,0,t),mi(ca(u,l));break e}}s=u=ca(u,l),4!==ql&&(ql=2),null===Bl?Bl=[s]:Bl.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,Li(s,fa(0,u,t));break e;case 1:l=u;var y=s.type,v=s.stateNode;if(0==(128&s.flags)&&("function"==typeof y.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===Jl||!Jl.has(v)))){s.flags|=65536,t&=-t,s.lanes|=t,Li(s,ma(s,l,t));break e}}s=s.return}while(null!==s)}xu(r)}catch(e){t=e,kl===r&&null!==r&&(kl=r=r.return);continue}break}}function mu(){var e=Vl.current;return Vl.current=sa,null===e?sa:e}function gu(){0!==ql&&3!==ql&&2!==ql||(ql=4),null===Rl||0==(268435455&Ll)&&0==(268435455&Al)||lu(Rl,Il)}function bu(e,t){var r=Tl;Tl|=2;var n=mu();for(Rl===e&&Il===t||(Hl=null,hu(e,t));;)try{yu();break}catch(t){fu(e,t)}if(Ci(),Tl=r,Vl.current=n,null!==kl)throw Error(i(261));return Rl=null,Il=0,ql}function yu(){for(;null!==kl;)wu(kl)}function vu(){for(;null!==kl&&!$e();)wu(kl)}function wu(e){var t=_l(e.alternate,e,jl);e.memoizedProps=e.pendingProps,null===t?xu(e):kl=t,El.current=null}function xu(e){var t=e;do{var r=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(r=Ga(r,t,jl)))return void(kl=r)}else{if(null!==(r=$a(r,t)))return r.flags&=32767,void(kl=r);if(null===e)return ql=6,void(kl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(kl=t);kl=t=e}while(null!==t);0===ql&&(ql=5)}function Cu(e,t,r){var n=vt,o=Ol.transition;try{Ol.transition=null,vt=1,function(e,t,r,n){do{Pu()}while(null!==$l);if(0!=(6&Tl))throw Error(i(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var s=r.lanes|r.childLanes;if(function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-st(r),i=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~i}}(e,s),e===Rl&&(kl=Rl=null,Il=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||Gl||(Gl=!0,Ru(tt,(function(){return Pu(),null}))),s=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||s){s=Ol.transition,Ol.transition=null;var a=vt;vt=1;var l=Tl;Tl|=4,El.current=null,function(e,t){if(eo=Ht,hn(e=dn())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var o=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch(e){r=null;break e}var a=0,l=-1,u=-1,c=0,p=0,d=e,h=null;t:for(;;){for(var f;d!==r||0!==o&&3!==d.nodeType||(l=a+o),d!==s||0!==n&&3!==d.nodeType||(u=a+n),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)h=d,d=f;for(;;){if(d===e)break t;if(h===r&&++c===o&&(l=a),h===s&&++p===n&&(u=a),null!==(f=d.nextSibling))break;h=(d=h).parentNode}d=f}r=-1===l||-1===u?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(to={focusedElem:e,selectionRange:r},Ht=!1,Ya=t;null!==Ya;)if(e=(t=Ya).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Ya=e;else for(;null!==Ya;){t=Ya;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,b=m.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:bi(t.type,g),b);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(e){Su(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Ya=e;break}Ya=t.return}m=rl,rl=!1}(e,r),bl(r,e),fn(to),Ht=!!eo,to=eo=null,e.current=r,vl(r,e,o),Ke(),Tl=l,vt=a,Ol.transition=s}else e.current=r;if(Gl&&(Gl=!1,$l=e,Kl=o),0===(s=e.pendingLanes)&&(Jl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode),ou(e,Ze()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)n((o=t[r]).value,{componentStack:o.stack,digest:o.digest});if(Ul)throw Ul=!1,e=Wl,Wl=null,e;0!=(1&Kl)&&0!==e.tag&&Pu(),0!=(1&(s=e.pendingLanes))?e===Xl?Zl++:(Zl=0,Xl=e):Zl=0,Qo()}(e,t,r,n)}finally{Ol.transition=o,vt=n}return null}function Pu(){if(null!==$l){var e=wt(Kl),t=Ol.transition,r=vt;try{if(Ol.transition=null,vt=16>e?16:e,null===$l)var n=!1;else{if(e=$l,$l=null,Kl=0,0!=(6&Tl))throw Error(i(331));var o=Tl;for(Tl|=4,Ya=e.current;null!==Ya;){var s=Ya,a=s.child;if(0!=(16&Ya.flags)){var l=s.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Ya=c;null!==Ya;){var p=Ya;switch(p.tag){case 0:case 11:case 15:nl(8,p,s)}var d=p.child;if(null!==d)d.return=p,Ya=d;else for(;null!==Ya;){var h=(p=Ya).sibling,f=p.return;if(sl(p),p===c){Ya=null;break}if(null!==h){h.return=f,Ya=h;break}Ya=f}}}var m=s.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(null!==g)}}Ya=s}}if(0!=(2064&s.subtreeFlags)&&null!==a)a.return=s,Ya=a;else e:for(;null!==Ya;){if(0!=(2048&(s=Ya).flags))switch(s.tag){case 0:case 11:case 15:nl(9,s,s.return)}var y=s.sibling;if(null!==y){y.return=s.return,Ya=y;break e}Ya=s.return}}var v=e.current;for(Ya=v;null!==Ya;){var w=(a=Ya).child;if(0!=(2064&a.subtreeFlags)&&null!==w)w.return=a,Ya=w;else e:for(a=v;null!==Ya;){if(0!=(2048&(l=Ya).flags))try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(e){Su(l,l.return,e)}if(l===a){Ya=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Ya=x;break e}Ya=l.return}}if(Tl=o,Qo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}n=!0}return n}finally{vt=r,Ol.transition=t}}return!1}function _u(e,t,r){e=qi(e,t=fa(0,t=ca(r,t),1),1),t=tu(),null!==e&&(bt(e,1,t),ou(e,t))}function Su(e,t,r){if(3===e.tag)_u(e,e,r);else for(;null!==t;){if(3===t.tag){_u(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Jl||!Jl.has(n))){t=qi(t,e=ma(t,e=ca(r,e),1),1),e=tu(),null!==t&&(bt(t,1,e),ou(t,e));break}}t=t.return}}function Vu(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&r,Rl===e&&(Il&r)===r&&(4===ql||3===ql&&(130023424&Il)===Il&&500>Ze()-zl?hu(e,0):Nl|=r),ou(e,t)}function Eu(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var r=tu();null!==(e=Ri(e,t))&&(bt(e,t,r),ou(e,r))}function Ou(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),Eu(e,r)}function Tu(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(i(314))}null!==n&&n.delete(t),Eu(e,r)}function Ru(e,t){return Je(e,t)}function ku(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Iu(e,t,r,n){return new ku(e,t,r,n)}function ju(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Du(e,t){var r=e.alternate;return null===r?((r=Iu(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function qu(e,t,r,n,o,s){var a=2;if(n=e,"function"==typeof e)ju(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case P:return Mu(r.children,o,s,t);case _:a=8,o|=8;break;case S:return(e=Iu(12,r,t,2|o)).elementType=S,e.lanes=s,e;case T:return(e=Iu(13,r,t,o)).elementType=T,e.lanes=s,e;case R:return(e=Iu(19,r,t,o)).elementType=R,e.lanes=s,e;case j:return Lu(r,o,s,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case V:a=10;break e;case E:a=9;break e;case O:a=11;break e;case k:a=14;break e;case I:a=16,n=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Iu(a,r,t,o)).elementType=e,t.type=n,t.lanes=s,t}function Mu(e,t,r,n){return(e=Iu(7,e,n,t)).lanes=r,e}function Lu(e,t,r,n){return(e=Iu(22,e,n,t)).elementType=j,e.lanes=r,e.stateNode={isHidden:!1},e}function Au(e,t,r){return(e=Iu(6,e,null,t)).lanes=r,e}function Nu(e,t,r){return(t=Iu(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bu(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fu(e,t,r,n,o,i,s,a,l){return e=new Bu(e,t,r,a,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Iu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ii(i),e}function zu(e){if(!e)return Oo;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(jo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var r=e.type;if(jo(r))return Mo(e,r,t)}return t}function Qu(e,t,r,n,o,i,s,a,l){return(e=Fu(r,n,!0,e,0,i,0,a,l)).context=zu(null),r=e.current,(i=Di(n=tu(),o=ru(r))).callback=null!=t?t:null,qi(r,i,o),e.current.lanes=o,bt(e,o,n),ou(e,n),e}function Hu(e,t,r,n){var o=t.current,i=tu(),s=ru(o);return r=zu(r),null===t.context?t.context=r:t.pendingContext=r,(t=Di(i,s)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=qi(o,t,s))&&(nu(e,o,s,i),Mi(e,o,s)),s}function Uu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Ju(e,t){Wu(e,t),(e=e.alternate)&&Wu(e,t)}_l=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ro.current)wa=!0;else{if(0==(e.lanes&r)&&0==(128&t.flags))return wa=!1,function(e,t,r){switch(t.tag){case 3:Ra(t),fi();break;case 5:ss(t);break;case 1:jo(t.type)&&Lo(t);break;case 4:os(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;Eo(yi,n._currentValue),n._currentValue=o;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(Eo(ls,1&ls.current),t.flags|=128,null):0!=(r&t.child.childLanes)?Aa(e,t,r):(Eo(ls,1&ls.current),null!==(e=Ua(e,t,r))?e.sibling:null);Eo(ls,1&ls.current);break;case 19:if(n=0!=(r&t.childLanes),0!=(128&e.flags)){if(n)return Qa(e,t,r);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Eo(ls,ls.current),n)break;return null;case 22:case 23:return t.lanes=0,Sa(e,t,r)}return Ua(e,t,r)}(e,t,r);wa=0!=(131072&e.flags)}else wa=!1,ii&&0!=(1048576&t.flags)&&ei(t,Jo,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ha(e,t),e=t.pendingProps;var o=Io(t,To.current);Si(t,r),o=_s(null,t,n,e,o,r);var s=Ss();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,jo(n)?(s=!0,Lo(t)):s=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ii(t),o.updater=zi,t.stateNode=o,o._reactInternals=t,Wi(t,n,e,r),t=Ta(null,t,n,!0,s,r)):(t.tag=0,ii&&s&&ti(t),xa(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ha(e,t),e=t.pendingProps,n=(o=n._init)(n._payload),t.type=n,o=t.tag=function(e){if("function"==typeof e)return ju(e)?1:0;if(null!=e){if((e=e.$$typeof)===O)return 11;if(e===k)return 14}return 2}(n),e=bi(n,e),o){case 0:t=Ea(null,t,n,e,r);break e;case 1:t=Oa(null,t,n,e,r);break e;case 11:t=Ca(null,t,n,e,r);break e;case 14:t=Pa(null,t,n,bi(n.type,e),r);break e}throw Error(i(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,Ea(e,t,n,o=t.elementType===n?o:bi(n,o),r);case 1:return n=t.type,o=t.pendingProps,Oa(e,t,n,o=t.elementType===n?o:bi(n,o),r);case 3:e:{if(Ra(t),null===e)throw Error(i(387));n=t.pendingProps,o=(s=t.memoizedState).element,ji(e,t),Ai(t,n,null,r);var a=t.memoizedState;if(n=a.element,s.isDehydrated){if(s={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=ka(e,t,n,r,o=ca(Error(i(423)),t));break e}if(n!==o){t=ka(e,t,n,r,o=ca(Error(i(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ni=t,ii=!0,si=null,r=Xi(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(fi(),n===o){t=Ua(e,t,r);break e}xa(e,t,n,r)}t=t.child}return t;case 5:return ss(t),null===e&&ci(t),n=t.type,o=t.pendingProps,s=null!==e?e.memoizedProps:null,a=o.children,ro(n,o)?a=null:null!==s&&ro(n,s)&&(t.flags|=32),Va(e,t),xa(e,t,a,r),t.child;case 6:return null===e&&ci(t),null;case 13:return Aa(e,t,r);case 4:return os(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Zi(t,null,n,r):xa(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,Ca(e,t,n,o=t.elementType===n?o:bi(n,o),r);case 7:return xa(e,t,t.pendingProps,r),t.child;case 8:case 12:return xa(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value,Eo(yi,n._currentValue),n._currentValue=a,null!==s)if(an(s.value,a)){if(s.children===o.children&&!Ro.current){t=Ua(e,t,r);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){a=s.child;for(var u=l.firstContext;null!==u;){if(u.context===n){if(1===s.tag){(u=Di(-1,r&-r)).tag=2;var c=s.updateQueue;if(null!==c){var p=(c=c.shared).pending;null===p?u.next=u:(u.next=p.next,p.next=u),c.pending=u}}s.lanes|=r,null!==(u=s.alternate)&&(u.lanes|=r),_i(s.return,r,t),l.lanes|=r;break}u=u.next}}else if(10===s.tag)a=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(a=s.return))throw Error(i(341));a.lanes|=r,null!==(l=a.alternate)&&(l.lanes|=r),_i(a,r,t),a=s.sibling}else a=s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}xa(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Si(t,r),n=n(o=Vi(o)),t.flags|=1,xa(e,t,n,r),t.child;case 14:return o=bi(n=t.type,t.pendingProps),Pa(e,t,n,o=bi(n.type,o),r);case 15:return _a(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:bi(n,o),Ha(e,t),t.tag=1,jo(n)?(e=!0,Lo(t)):e=!1,Si(t,r),Hi(t,n,o),Wi(t,n,o,r),Ta(null,t,n,!0,e,r);case 19:return Qa(e,t,r);case 22:return Sa(e,t,r)}throw Error(i(156,t.tag))};var Gu="function"==typeof reportError?reportError:function(e){console.error(e)};function $u(e){this._internalRoot=e}function Ku(e){this._internalRoot=e}function Zu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Yu(){}function ec(e,t,r,n,o){var i=r._reactRootContainer;if(i){var s=i;if("function"==typeof o){var a=o;o=function(){var e=Uu(s);a.call(e)}}Hu(t,s,e,o)}else s=function(e,t,r,n,o){if(o){if("function"==typeof n){var i=n;n=function(){var e=Uu(s);i.call(e)}}var s=Qu(t,n,e,0,null,!1,0,"",Yu);return e._reactRootContainer=s,e[mo]=s.current,zn(8===e.nodeType?e.parentNode:e),pu(),s}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof n){var a=n;n=function(){var e=Uu(l);a.call(e)}}var l=Fu(e,0,!1,null,0,!1,0,"",Yu);return e._reactRootContainer=l,e[mo]=l.current,zn(8===e.nodeType?e.parentNode:e),pu((function(){Hu(t,l,r,n)})),l}(r,t,e,o,n);return Uu(s)}Ku.prototype.render=$u.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Hu(e,t,null,null)},Ku.prototype.unmount=$u.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;pu((function(){Hu(null,e,null,null)})),t[mo]=null}},Ku.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var r=0;r<jt.length&&0!==t&&t<jt[r].priority;r++);jt.splice(r,0,e),0===r&&Lt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=pt(t.pendingLanes);0!==r&&(yt(t,1|r),ou(t,Ze()),0==(6&Tl)&&(Ql=Ze()+500,Qo()))}break;case 13:pu((function(){var t=Ri(e,1);if(null!==t){var r=tu();nu(t,e,1,r)}})),Ju(e,1)}},Ct=function(e){if(13===e.tag){var t=Ri(e,134217728);null!==t&&nu(t,e,134217728,tu()),Ju(e,134217728)}},Pt=function(e){if(13===e.tag){var t=ru(e),r=Ri(e,t);null!==r&&nu(r,e,t,tu()),Ju(e,t)}},_t=function(){return vt},St=function(e,t){var r=vt;try{return vt=e,t()}finally{vt=r}},Ce=function(e,t,r){switch(t){case"input":if(X(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=Co(n);if(!o)throw Error(i(90));J(n),X(n,o)}}}break;case"textarea":ie(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Oe=cu,Te=pu;var tc={usingClientEntryPoint:!1,Events:[wo,xo,Co,Ve,Ee,cu]},rc={findFiberByHostInstance:vo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nc={bundleType:rc.bundleType,version:rc.version,rendererPackageName:rc.rendererPackageName,rendererConfig:rc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:rc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{ot=oc.inject(nc),it=oc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zu(t))throw Error(i(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:C,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.createRoot=function(e,t){if(!Zu(e))throw Error(i(299));var r=!1,n="",o=Gu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Fu(e,1,!1,null,0,r,0,n,o),e[mo]=t.current,zn(8===e.nodeType?e.parentNode:e),new $u(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=Ue(t))?null:e.stateNode},t.flushSync=function(e){return pu(e)},t.hydrate=function(e,t,r){if(!Xu(t))throw Error(i(200));return ec(null,e,t,!0,r)},t.hydrateRoot=function(e,t,r){if(!Zu(e))throw Error(i(405));var n=null!=r&&r.hydratedSources||null,o=!1,s="",a=Gu;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(s=r.identifierPrefix),void 0!==r.onRecoverableError&&(a=r.onRecoverableError)),t=Qu(t,null,e,1,null!=r?r:null,o,0,s,a),e[mo]=t.current,zn(e),n)for(e=0;e<n.length;e++)o=(o=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Ku(t)},t.render=function(e,t,r){if(!Xu(t))throw Error(i(200));return ec(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!Xu(e))throw Error(i(40));return!!e._reactRootContainer&&(pu((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=cu,t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Xu(r))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ec(e,t,r,!1,n)},t.version="18.2.0-next-9e3b772b8-20220608"},745:(e,t,r)=>{"use strict";var n=r(3935);t.s=n.createRoot,n.hydrateRoot},3935:(e,t,r)=>{"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=r(4448)},5251:(e,t,r)=>{"use strict";var n=r(7294),o=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,r){var n,l={},u=null,c=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)i.call(t,n)&&!a.hasOwnProperty(n)&&(l[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===l[n]&&(l[n]=t[n]);return{$$typeof:o,type:e,key:u,ref:c,props:l,_owner:s.current}}},2408:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator,f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function b(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||f}function y(){}function v(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||f}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=b.prototype;var w=v.prototype=new y;w.constructor=v,m(w,b.prototype),w.isPureReactComponent=!0;var x=Array.isArray,C=Object.prototype.hasOwnProperty,P={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var o,i={},s=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)C.call(t,o)&&!_.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:r,type:e,key:s,ref:a,props:i,_owner:P.current}}function V(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var E=/\/+/g;function O(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,o,i,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case r:case n:l=!0}}if(l)return s=s(l=e),e=""===i?"."+O(l,0):i,x(s)?(o="",null!=e&&(o=e.replace(E,"$&/")+"/"),T(s,t,o,"",(function(e){return e}))):null!=s&&(V(s)&&(s=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,o+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(E,"$&/")+"/")+e)),t.push(s)),1;if(l=0,i=""===i?".":i+":",x(e))for(var u=0;u<e.length;u++){var c=i+O(a=e[u],u);l+=T(a,t,o,c,s)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(a=e.next()).done;)l+=T(a=a.value,t,o,c=i+O(a,u++),s);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function R(e,t,r){if(null==e)return e;var n=[],o=0;return T(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function k(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},j={transition:null},D={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:j,ReactCurrentOwner:P};t.Children={map:R,forEach:function(e,t,r){R(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return R(e,(function(){t++})),t},toArray:function(e){return R(e,(function(e){return e}))||[]},only:function(e){if(!V(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=b,t.Fragment=o,t.Profiler=s,t.PureComponent=v,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,s=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,a=P.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)C.call(t,u)&&!_.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:r,type:e.type,key:i,ref:s,props:o,_owner:a}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=V,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:k}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=j.transition;j.transition={};try{e()}finally{j.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,r){return I.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,r){return I.current.useReducer(e,t,r)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return I.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return I.current.useTransition()},t.version="18.2.0"},7294:(e,t,r)=>{"use strict";e.exports=r(2408)},5893:(e,t,r)=>{"use strict";e.exports=r(5251)},53:(e,t)=>{"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,o=e[n];if(!(0<i(o,t)))break e;e[n]=t,e[r]=o,r=n}}function n(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length,s=o>>>1;n<s;){var a=2*(n+1)-1,l=e[a],u=a+1,c=e[u];if(0>i(l,r))u<o&&0>i(c,l)?(e[n]=c,e[u]=r,n=u):(e[n]=l,e[a]=r,n=a);else{if(!(u<o&&0>i(c,r)))break e;e[n]=c,e[u]=r,n=u}}}return t}function i(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var u=[],c=[],p=1,d=null,h=3,f=!1,m=!1,g=!1,b="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=n(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,r(u,t)}t=n(c)}}function x(e){if(g=!1,w(e),!m)if(null!==n(u))m=!0,j(C);else{var t=n(c);null!==t&&D(x,t.startTime-e)}}function C(e,r){m=!1,g&&(g=!1,y(V),V=-1),f=!0;var i=h;try{for(w(r),d=n(u);null!==d&&(!(d.expirationTime>r)||e&&!T());){var s=d.callback;if("function"==typeof s){d.callback=null,h=d.priorityLevel;var a=s(d.expirationTime<=r);r=t.unstable_now(),"function"==typeof a?d.callback=a:d===n(u)&&o(u),w(r)}else o(u);d=n(u)}if(null!==d)var l=!0;else{var p=n(c);null!==p&&D(x,p.startTime-r),l=!1}return l}finally{d=null,h=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var P,_=!1,S=null,V=-1,E=5,O=-1;function T(){return!(t.unstable_now()-O<E)}function R(){if(null!==S){var e=t.unstable_now();O=e;var r=!0;try{r=S(!0,e)}finally{r?P():(_=!1,S=null)}}else _=!1}if("function"==typeof v)P=function(){v(R)};else if("undefined"!=typeof MessageChannel){var k=new MessageChannel,I=k.port2;k.port1.onmessage=R,P=function(){I.postMessage(null)}}else P=function(){b(R,0)};function j(e){S=e,_||(_=!0,P())}function D(e,r){V=b((function(){e(t.unstable_now())}),r)}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(){m||f||(m=!0,j(C))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return n(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var r=h;h=t;try{return e()}finally{h=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=h;h=e;try{return t()}finally{h=r}},t.unstable_scheduleCallback=function(e,o,i){var s=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?s+i:s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:p++,callback:o,priorityLevel:e,startTime:i,expirationTime:a=i+a,sortIndex:-1},i>s?(e.sortIndex=i,r(c,e),null===n(u)&&e===n(c)&&(g?(y(V),V=-1):g=!0,D(x,i-s))):(e.sortIndex=a,r(u,e),m||f||(m=!0,j(C))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=h;return function(){var r=h;h=t;try{return e.apply(this,arguments)}finally{h=r}}}},3840:(e,t,r)=>{"use strict";e.exports=r(53)},3379:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},s=[],a=0;a<e.length;a++){var l=e[a],u=n.base?l[0]+n.base:l[0],c=i[u]||0,p="".concat(u," ").concat(c);i[u]=c+1;var d=r(p),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)t[d].references++,t[d].updater(h);else{var f=o(h,n);n.byIndex=a,t.splice(a,0,{identifier:p,updater:f,references:1})}s.push(p)}return s}function o(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,o){var i=n(e=e||[],o=o||{});return function(e){e=e||[];for(var s=0;s<i.length;s++){var a=r(i[s]);t[a].references--}for(var l=n(e,o),u=0;u<i.length;u++){var c=r(i[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}i=l}}},569:e=>{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,r)=>{"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,o&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var i=r.sourceMap;i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},2535:function(e){var t;t=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="./src/entries/core.ts")}({"./node_modules/signature_pad/dist/signature_pad.mjs":function(e,t,r){"use strict";function n(e,t,r){this.x=e,this.y=t,this.time=r||(new Date).getTime()}function o(e,t,r,n){this.startPoint=e,this.control1=t,this.control2=r,this.endPoint=n}function i(e,t){var r=this,n=t||{};this.velocityFilterWeight=n.velocityFilterWeight||.7,this.minWidth=n.minWidth||.5,this.maxWidth=n.maxWidth||2.5,this.throttle="throttle"in n?n.throttle:16,this.minDistance="minDistance"in n?n.minDistance:5,this.throttle?this._strokeMoveUpdate=function(e,t,r){var n,o,i,s=null,a=0;r||(r={});var l=function(){a=!1===r.leading?0:Date.now(),s=null,i=e.apply(n,o),s||(n=o=null)};return function(){var u=Date.now();a||!1!==r.leading||(a=u);var c=t-(u-a);return n=this,o=arguments,c<=0||c>t?(s&&(clearTimeout(s),s=null),a=u,i=e.apply(n,o),s||(n=o=null)):s||!1===r.trailing||(s=setTimeout(l,c)),i}}(i.prototype._strokeUpdate,this.throttle):this._strokeMoveUpdate=i.prototype._strokeUpdate,this.dotSize=n.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=n.penColor||"black",this.backgroundColor=n.backgroundColor||"rgba(0,0,0,0)",this.onBegin=n.onBegin,this.onEnd=n.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(e){1===e.which&&(r._mouseButtonDown=!0,r._strokeBegin(e))},this._handleMouseMove=function(e){r._mouseButtonDown&&r._strokeMoveUpdate(e)},this._handleMouseUp=function(e){1===e.which&&r._mouseButtonDown&&(r._mouseButtonDown=!1,r._strokeEnd(e))},this._handleTouchStart=function(e){if(1===e.targetTouches.length){var t=e.changedTouches[0];r._strokeBegin(t)}},this._handleTouchMove=function(e){e.preventDefault();var t=e.targetTouches[0];r._strokeMoveUpdate(t)},this._handleTouchEnd=function(e){e.target===r._canvas&&(e.preventDefault(),r._strokeEnd(e))},this.on()}r.r(t),n.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1},n.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},n.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time},o.prototype.length=function(){for(var e=0,t=void 0,r=void 0,n=0;n<=10;n+=1){var o=n/10,i=this._point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),s=this._point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(n>0){var a=i-t,l=s-r;e+=Math.sqrt(a*a+l*l)}t=i,r=s}return e},o.prototype._point=function(e,t,r,n,o){return t*(1-e)*(1-e)*(1-e)+3*r*(1-e)*(1-e)*e+3*n*(1-e)*e*e+o*e*e*e},i.prototype.clear=function(){var e=this._ctx,t=this._canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0},i.prototype.fromDataURL=function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new Image,o=r.ratio||window.devicePixelRatio||1,i=r.width||this._canvas.width/o,s=r.height||this._canvas.height/o;this._reset(),n.src=e,n.onload=function(){t._ctx.drawImage(n,0,0,i,s)},this._isEmpty=!1},i.prototype.toDataURL=function(e){var t;if("image/svg+xml"===e)return this._toSVG();for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return(t=this._canvas).toDataURL.apply(t,[e].concat(n))},i.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},i.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)},i.prototype.isEmpty=function(){return this._isEmpty},i.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)},i.prototype._strokeUpdate=function(e){var t=e.clientX,r=e.clientY,n=this._createPoint(t,r),o=this._data[this._data.length-1],i=o&&o[o.length-1],s=i&&n.distanceTo(i)<this.minDistance;if(!i||!s){var a=this._addPoint(n),l=a.curve,u=a.widths;l&&u&&this._drawCurve(l,u.start,u.end),this._data[this._data.length-1].push({x:n.x,y:n.y,time:n.time,color:this.penColor})}},i.prototype._strokeEnd=function(e){var t=this.points.length>2,r=this.points[0];if(!t&&r&&this._drawDot(r),r){var n=this._data[this._data.length-1],o=n[n.length-1];r.equals(o)||n.push({x:r.x,y:r.y,time:r.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(e)},i.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},i.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)},i.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},i.prototype._createPoint=function(e,t,r){var o=this._canvas.getBoundingClientRect();return new n(e-o.left,t-o.top,r||(new Date).getTime())},i.prototype._addPoint=function(e){var t=this.points;if(t.push(e),t.length>2){3===t.length&&t.unshift(t[0]);var r=this._calculateCurveControlPoints(t[0],t[1],t[2]).c2,n=this._calculateCurveControlPoints(t[1],t[2],t[3]).c1,i=new o(t[1],r,n,t[2]),s=this._calculateCurveWidths(i);return t.shift(),{curve:i,widths:s}}return{}},i.prototype._calculateCurveControlPoints=function(e,t,r){var o=e.x-t.x,i=e.y-t.y,s=t.x-r.x,a=t.y-r.y,l=(e.x+t.x)/2,u=(e.y+t.y)/2,c=(t.x+r.x)/2,p=(t.y+r.y)/2,d=Math.sqrt(o*o+i*i),h=Math.sqrt(s*s+a*a),f=h/(d+h),m=c+(l-c)*f,g=p+(u-p)*f,b=t.x-m,y=t.y-g;return{c1:new n(l+b,u+y),c2:new n(c+b,p+y)}},i.prototype._calculateCurveWidths=function(e){var t=e.startPoint,r=e.endPoint,n={start:null,end:null},o=this.velocityFilterWeight*r.velocityFrom(t)+(1-this.velocityFilterWeight)*this._lastVelocity,i=this._strokeWidth(o);return n.start=this._lastWidth,n.end=i,this._lastVelocity=o,this._lastWidth=i,n},i.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)},i.prototype._drawPoint=function(e,t,r){var n=this._ctx;n.moveTo(e,t),n.arc(e,t,r,0,2*Math.PI,!1),this._isEmpty=!1},i.prototype._drawCurve=function(e,t,r){var n=this._ctx,o=r-t,i=Math.floor(e.length());n.beginPath();for(var s=0;s<i;s+=1){var a=s/i,l=a*a,u=l*a,c=1-a,p=c*c,d=p*c,h=d*e.startPoint.x;h+=3*p*a*e.control1.x,h+=3*c*l*e.control2.x,h+=u*e.endPoint.x;var f=d*e.startPoint.y;f+=3*p*a*e.control1.y,f+=3*c*l*e.control2.y,f+=u*e.endPoint.y;var m=t+u*o;this._drawPoint(h,f,m)}n.closePath(),n.fill()},i.prototype._drawDot=function(e){var t=this._ctx,r="function"==typeof this.dotSize?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,r),t.closePath(),t.fill()},i.prototype._fromData=function(e,t,r){for(var o=0;o<e.length;o+=1){var i=e[o];if(i.length>1)for(var s=0;s<i.length;s+=1){var a=i[s],l=new n(a.x,a.y,a.time),u=a.color;if(0===s)this.penColor=u,this._reset(),this._addPoint(l);else if(s!==i.length-1){var c=this._addPoint(l),p=c.curve,d=c.widths;p&&d&&t(p,d,u)}}else this._reset(),r(i[0])}},i.prototype._toSVG=function(){var e=this,t=this._data,r=this._canvas,n=Math.max(window.devicePixelRatio||1,1),o=r.width/n,i=r.height/n,s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttributeNS(null,"width",r.width),s.setAttributeNS(null,"height",r.height),this._fromData(t,(function(e,t,r){var n=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){var o="M "+e.startPoint.x.toFixed(3)+","+e.startPoint.y.toFixed(3)+" C "+e.control1.x.toFixed(3)+","+e.control1.y.toFixed(3)+" "+e.control2.x.toFixed(3)+","+e.control2.y.toFixed(3)+" "+e.endPoint.x.toFixed(3)+","+e.endPoint.y.toFixed(3);n.setAttribute("d",o),n.setAttribute("stroke-width",(2.25*t.end).toFixed(3)),n.setAttribute("stroke",r),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),s.appendChild(n)}}),(function(t){var r=document.createElement("circle"),n="function"==typeof e.dotSize?e.dotSize():e.dotSize;r.setAttribute("r",n),r.setAttribute("cx",t.x),r.setAttribute("cy",t.y),r.setAttribute("fill",t.color),s.appendChild(r)}));var a='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+o+" "+i+'" width="'+o+'" height="'+i+'">',l=s.innerHTML;if(void 0===l){var u=document.createElement("dummy"),c=s.childNodes;u.innerHTML="";for(var p=0;p<c.length;p+=1)u.appendChild(c[p].cloneNode(!0));l=u.innerHTML}return"data:image/svg+xml;base64,"+btoa(a+l+"</svg>")},i.prototype.fromData=function(e){var t=this;this.clear(),this._fromData(e,(function(e,r){return t._drawCurve(e,r.start,r.end)}),(function(e){return t._drawDot(e)})),this._data=e},i.prototype.toData=function(){return this._data},t.default=i},"./src/actions/action.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"createDropdownActionModel",(function(){return h})),r.d(t,"createDropdownActionModelAdvanced",(function(){return f})),r.d(t,"BaseAction",(function(){return m})),r.d(t,"Action",(function(){return g})),r.d(t,"ActionDropdownViewModel",(function(){return b}));var n,o=r("./src/base.ts"),i=r("./src/surveyStrings.ts"),s=r("./src/jsonobject.ts"),a=r("./src/list.ts"),l=r("./src/popup.ts"),u=r("./src/utils/cssClassBuilder.ts"),c=r("./src/actions/container.ts"),p=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s};function h(e,t,r){return f(e,t,t,r)}function f(e,t,r,n){var o=new a.ListModel(t.items,(function(e){t.onSelectionChanged(e),i.toggleVisibility()}),t.allowSelection,t.selectedItem,t.onFilterStringChangedCallback);o.locOwner=n;var i=new l.PopupModel("sv-list",{model:o},null==r?void 0:r.verticalPosition,null==r?void 0:r.horizontalPosition,null==r?void 0:r.showPointer,null==r?void 0:r.isModal,null==r?void 0:r.onCancel,null==r?void 0:r.onApply,null==r?void 0:r.onHide,null==r?void 0:r.onShow,null==r?void 0:r.cssClass,null==r?void 0:r.title);i.displayMode=null==r?void 0:r.displayMode;var s=Object.assign({},e,{component:"sv-action-bar-item-dropdown",popupModel:i,action:function(t,r){e.action&&e.action(),i.isFocusedContent=!r||o.showFilter,i.toggleVisibility(),o.scrollToSelectedItem()}}),u=new g(s);return u.data=o,u}var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.iconSize=24,t}return p(t,e),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getVisible()},set:function(e){this.setVisible(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.getEnabled()},set:function(e){this.setEnabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.getComponent()},set:function(e){this.setComponent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocTitle()},set:function(e){this.setLocTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getTitle()},set:function(e){this.setTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||c.defaultActionBarCss},set:function(e){this.cssClassesValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.visible&&"popup"!==this.mode&&"removed"!==this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0!==this.enabled&&!this.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShrink",{get:function(){return!!this.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return("small"!=this.mode&&(this.showTitle||void 0===this.showTitle)||!this.iconName)&&!!this.title},enumerable:!1,configurable:!0}),t.prototype.getActionBarItemTitleCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.itemTitle).append(this.cssClasses.itemTitleWithIcon,!!this.iconName).toString()},t.prototype.getActionBarItemCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.item).append(this.cssClasses.itemAsIcon,!this.hasTitle).append(this.cssClasses.itemActive,!!this.active).append(this.cssClasses.itemPressed,!!this.pressed).append(this.innerCss).toString()},t.prototype.getActionRootCss=function(){return(new u.CssClassBuilder).append("sv-action").append(this.css).append("sv-action--space",this.needSpace).append("sv-action--hidden",!this.isVisible).toString()},t.prototype.getTooltip=function(){return this.tooltip||this.title},t.prototype.getIsTrusted=function(e){return e.originalEvent?e.originalEvent.isTrusted:e.isTrusted},d([Object(s.property)()],t.prototype,"tooltip",void 0),d([Object(s.property)()],t.prototype,"showTitle",void 0),d([Object(s.property)()],t.prototype,"innerCss",void 0),d([Object(s.property)()],t.prototype,"active",void 0),d([Object(s.property)()],t.prototype,"pressed",void 0),d([Object(s.property)()],t.prototype,"data",void 0),d([Object(s.property)()],t.prototype,"popupModel",void 0),d([Object(s.property)()],t.prototype,"needSeparator",void 0),d([Object(s.property)()],t.prototype,"template",void 0),d([Object(s.property)({defaultValue:"large"})],t.prototype,"mode",void 0),d([Object(s.property)()],t.prototype,"visibleIndex",void 0),d([Object(s.property)()],t.prototype,"disableTabStop",void 0),d([Object(s.property)()],t.prototype,"disableShrink",void 0),d([Object(s.property)()],t.prototype,"disableHide",void 0),d([Object(s.property)({defaultValue:!1})],t.prototype,"needSpace",void 0),d([Object(s.property)()],t.prototype,"ariaChecked",void 0),d([Object(s.property)()],t.prototype,"ariaExpanded",void 0),d([Object(s.property)({defaultValue:"button"})],t.prototype,"ariaRole",void 0),d([Object(s.property)()],t.prototype,"iconName",void 0),d([Object(s.property)()],t.prototype,"iconSize",void 0),d([Object(s.property)()],t.prototype,"css",void 0),t}(o.Base),g=function(e){function t(t){var r=e.call(this)||this;if(r.innerItem=t,r.locTitleChanged=function(){var e=r.locTitle.renderedHtml;r.setPropertyValue("_title",e||void 0)},r.locTitle=t?t.locTitle:null,t)for(var n in t)r[n]=t[n];return r.locTitleName&&r.locTitleChanged(),r.locStrChangedInPopupModel(),r}return p(t,e),t.prototype.raiseUpdate=function(){this.updateCallback&&this.updateCallback()},t.prototype.createLocTitle=function(){return this.createLocalizableString("title",this,!0)},t.prototype.getLocTitle=function(){return this.locTitleValue},t.prototype.setLocTitle=function(e){e||this.locTitleValue||(e=this.createLocTitle()),this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleValue=e,this.locTitleValue.onStringChanged.add(this.locTitleChanged),this.locTitleChanged()},t.prototype.getTitle=function(){return this._title},t.prototype.setTitle=function(e){this._title=e},Object.defineProperty(t.prototype,"locTitleName",{get:function(){return this.locTitle.localizationName},set:function(e){this.locTitle.localizationName=e},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTooltipChanged(),this.locStrChangedInPopupModel()},t.prototype.locStrChangedInPopupModel=function(){if(this.popupModel&&this.popupModel.contentComponentData&&this.popupModel.contentComponentData.model){var e=this.popupModel.contentComponentData.model;Array.isArray(e.actions)&&e.actions.forEach((function(e){e.locStrsChanged&&e.locStrsChanged()}))}},t.prototype.locTooltipChanged=function(){this.locTooltipName&&(this.tooltip=i.surveyLocalization.getString(this.locTooltipName,this.locTitle.locale))},t.prototype.getLocale=function(){return this.owner?this.owner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.owner?this.owner.getMarkdownHtml(e,t):void 0},t.prototype.getProcessedText=function(e){return this.owner?this.owner.getProcessedText(e):e},t.prototype.getRenderer=function(e){return this.owner?this.owner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.owner?this.owner.getRendererContext(e):e},t.prototype.setVisible=function(e){this._visible=e},t.prototype.getVisible=function(){return this._visible},t.prototype.setEnabled=function(e){this._enabled=e},t.prototype.getEnabled=function(){return this._enabled},t.prototype.setComponent=function(e){this._component=e},t.prototype.getComponent=function(){return this._component},d([Object(s.property)()],t.prototype,"id",void 0),d([Object(s.property)({defaultValue:!0,onSet:function(e,t){t.raiseUpdate()}})],t.prototype,"_visible",void 0),d([Object(s.property)({onSet:function(e,t){t.locTooltipChanged()}})],t.prototype,"locTooltipName",void 0),d([Object(s.property)()],t.prototype,"_enabled",void 0),d([Object(s.property)()],t.prototype,"action",void 0),d([Object(s.property)()],t.prototype,"_component",void 0),d([Object(s.property)()],t.prototype,"items",void 0),d([Object(s.property)({onSet:function(e,t){t.locTitleValue.text!==e&&(t.locTitleValue.text=e)}})],t.prototype,"_title",void 0),t}(m),b=function(){function e(e){this.item=e,this.funcKey="sv-dropdown-action",this.setupPopupCallbacks()}return e.prototype.setupPopupCallbacks=function(){var e=this,t=this.popupModel=this.item.popupModel;t&&t.registerPropertyChangedHandlers(["isVisible"],(function(){t.isVisible?e.item.pressed=!0:e.item.pressed=!1}),this.funcKey)},e.prototype.removePopupCallbacks=function(){this.popupModel&&this.popupModel.unregisterPropertyChangedHandlers(["isVisible"],this.funcKey)},e.prototype.dispose=function(){this.removePopupCallbacks()},e}()},"./src/actions/adaptive-container.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"AdaptiveActionContainer",(function(){return u}));var n,o=r("./src/utils/responsivity-manager.ts"),i=r("./src/actions/action.ts"),s=r("./src/actions/container.ts"),a=r("./src/surveyStrings.ts"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){var r=e.call(this)||this;return r.minVisibleItemsCount=0,r.isResponsivenessDisabled=!1,r.dotsItem=Object(i.createDropdownActionModelAdvanced)({id:"dotsItem-id"+t.ContainerID++,css:"sv-dots",innerCss:"sv-dots__item",iconName:"icon-more",visible:!1,tooltip:a.surveyLocalization.getString("more")},{items:[],onSelectionChanged:function(e){r.hiddenItemSelected(e)},allowSelection:!1}),r}return l(t,e),t.prototype.hideItemsGreaterN=function(e){var t=this.visibleActions.filter((function(e){return!e.disableHide}));e=Math.max(e,this.minVisibleItemsCount)-(this.visibleActions.length-t.length);var r=[];t.forEach((function(t){e<=0&&(t.mode="popup",r.push(t.innerItem)),e--})),this.hiddenItemsListModel.setItems(r)},t.prototype.getVisibleItemsCount=function(e){for(var t=this.visibleActions.map((function(e){return e.minDimension})),r=0,n=0;n<t.length;n++)if((r+=t[n])>e)return n;return n},t.prototype.updateItemMode=function(e,t){for(var r=this.visibleActions,n=r.length-1;n>=0;n--)t>e&&!r[n].disableShrink?(t-=r[n].maxDimension-r[n].minDimension,r[n].mode="small"):r[n].mode="large";if(t>e){var o=this.visibleActions.filter((function(e){return e.removePriority}));for(o.sort((function(e,t){return e.removePriority-t.removePriority})),n=0;n<o.length;n++)t>e&&(t-=r[n].disableShrink?o[n].maxDimension:o[n].minDimension,o[n].mode="removed")}},Object.defineProperty(t.prototype,"hiddenItemsListModel",{get:function(){return this.dotsItem.data},enumerable:!1,configurable:!0}),t.prototype.hiddenItemSelected=function(e){e&&"function"==typeof e.action&&e.action()},t.prototype.onSet=function(){var t=this;this.actions.forEach((function(e){return e.updateCallback=function(){return t.raiseUpdate(!1)}})),e.prototype.onSet.call(this)},t.prototype.onPush=function(t){var r=this;t.updateCallback=function(){return r.raiseUpdate(!1)},e.prototype.onPush.call(this,t)},t.prototype.getRenderedActions=function(){return 1===this.actions.length&&this.actions[0].iconName?this.actions:this.actions.concat([this.dotsItem])},t.prototype.raiseUpdate=function(t){this.isResponsivenessDisabled||e.prototype.raiseUpdate.call(this,t)},t.prototype.fit=function(e,t){if(!(e<=0)){this.dotsItem.visible=!1;var r=0,n=0;this.visibleActions.forEach((function(e){r+=e.minDimension,n+=e.maxDimension})),e>=n?this.setActionsMode("large"):e<r?(this.setActionsMode("small"),this.hideItemsGreaterN(this.getVisibleItemsCount(e-t)),this.dotsItem.visible=!0):this.updateItemMode(e,n)}},t.prototype.initResponsivityManager=function(e){this.responsivityManager=new o.ResponsivityManager(e,this,".sv-action:not(.sv-dots)>.sv-action__content")},t.prototype.resetResponsivityManager=function(){this.responsivityManager&&(this.responsivityManager.dispose(),this.responsivityManager=void 0)},t.prototype.setActionsMode=function(e){this.actions.forEach((function(t){return t.mode=e}))},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.resetResponsivityManager()},t.ContainerID=1,t}(s.ActionContainer)},"./src/actions/container.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"defaultActionBarCss",(function(){return p})),r.d(t,"ActionContainer",(function(){return d}));var n,o=r("./src/jsonobject.ts"),i=r("./src/base.ts"),s=r("./src/actions/action.ts"),a=r("./src/utils/cssClassBuilder.ts"),l=r("./src/utils/utils.ts"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},p={root:"sv-action-bar",defaultSizeMode:"sv-action-bar--default-size-mode",smallSizeMode:"sv-action-bar--small-size-mode",item:"sv-action-bar-item",itemActive:"sv-action-bar-item--active",itemPressed:"sv-action-bar-item--pressed",itemIcon:"sv-action-bar-item__icon",itemTitle:"sv-action-bar-item__title",itemTitleWithIcon:"sv-action-bar-item__title--with-icon"},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sizeMode="default",t}return u(t,e),t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getRenderedActions=function(){return this.actions},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.actions.forEach((function(e){e.locTitle&&e.locTitle.strChanged(),e.locStrsChanged()}))},t.prototype.raiseUpdate=function(e){this.isEmpty=!this.actions.some((function(e){return e.visible})),this.updateCallback&&this.updateCallback(e)},t.prototype.onSet=function(){var e=this;this.actions.forEach((function(t){e.setActionCssClasses(t)})),this.raiseUpdate(!0)},t.prototype.onPush=function(e){this.setActionCssClasses(e),e.owner=this,this.raiseUpdate(!0)},t.prototype.onRemove=function(e){e.owner=null,this.raiseUpdate(!0)},t.prototype.setActionCssClasses=function(e){e.cssClasses=this.cssClasses},Object.defineProperty(t.prototype,"hasActions",{get:function(){return(this.actions||[]).length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedActions",{get:function(){return this.getRenderedActions()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleActions",{get:function(){return this.actions.filter((function(e){return!1!==e.visible}))},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){var e="small"===this.sizeMode?this.cssClasses.smallSizeMode:this.cssClasses.defaultSizeMode;return(new a.CssClassBuilder).append(this.cssClasses.root+(e?" "+e:"")+(this.containerCss?" "+this.containerCss:"")).append(this.cssClasses.root+"--empty",this.isEmpty).toString()},t.prototype.getDefaultCssClasses=function(){return p},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||(this.cssClassesValue=this.getDefaultCssClasses()),this.cssClassesValue},set:function(e){var t=this;this.cssClassesValue={},this.copyCssClasses(this.cssClassesValue,this.getDefaultCssClasses()),Object(l.mergeValues)(e,this.cssClasses),this.actions.forEach((function(e){t.setActionCssClasses(e)}))},enumerable:!1,configurable:!0}),t.prototype.createAction=function(e){return e instanceof s.BaseAction?e:new s.Action(e)},t.prototype.addAction=function(e,t){void 0===t&&(t=!0);var r=this.createAction(e);return this.actions.push(r),this.sortItems(),r},t.prototype.sortItems=function(){this.actions=[].concat(this.actions.filter((function(e){return void 0===e.visibleIndex||e.visibleIndex>=0}))).sort((function(e,t){return e.visibleIndex-t.visibleIndex}))},t.prototype.setItems=function(e,t){var r=this;void 0===t&&(t=!0),this.actions=e.map((function(e){return r.createAction(e)})),t&&this.sortItems()},t.prototype.initResponsivityManager=function(e){},t.prototype.resetResponsivityManager=function(){},t.prototype.getActionById=function(e){for(var t=0;t<this.actions.length;t++)if(this.actions[t].id===e)return this.actions[t];return null},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.actions.forEach((function(e){return e.dispose()})),this.actions.length=0},c([Object(o.propertyArray)({onSet:function(e,t){t.onSet()},onPush:function(e,t,r){r.onPush(e)},onRemove:function(e,t,r){r.onRemove(e)}})],t.prototype,"actions",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"isEmpty",void 0),t}(i.Base)},"./src/base.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"Bindings",(function(){return p})),r.d(t,"Dependencies",(function(){return d})),r.d(t,"ComputedUpdater",(function(){return h})),r.d(t,"Base",(function(){return f})),r.d(t,"ArrayChanges",(function(){return m})),r.d(t,"Event",(function(){return g})),r.d(t,"EventBase",(function(){return b}));var n,o=r("./src/localizablestring.ts"),i=r("./src/helpers.ts"),s=r("./src/jsonobject.ts"),a=r("./src/settings.ts"),l=r("./src/conditions.ts"),u=r("./src/surveyStrings.ts"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(){function e(e){this.obj=e,this.properties=null,this.values=null}return e.prototype.getType=function(){return"bindings"},e.prototype.getNames=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)this.properties[t].isVisible("",this.obj)&&e.push(this.properties[t].name);return e},e.prototype.getProperties=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)e.push(this.properties[t]);return e},e.prototype.setBinding=function(e,t){this.values||(this.values={});var r=this.getJson();r!==t&&(t?this.values[e]=t:(delete this.values[e],0==Object.keys(this.values).length&&(this.values=null)),this.onChangedJSON(r))},e.prototype.clearBinding=function(e){this.setBinding(e,"")},e.prototype.isEmpty=function(){if(!this.values)return!0;for(var e in this.values)return!1;return!0},e.prototype.getValueNameByPropertyName=function(e){if(this.values)return this.values[e]},e.prototype.getPropertiesByValueName=function(e){if(!this.values)return[];var t=[];for(var r in this.values)this.values[r]==e&&t.push(r);return t},e.prototype.getJson=function(){if(!this.isEmpty()){var e={};for(var t in this.values)e[t]=this.values[t];return e}},e.prototype.setJson=function(e){var t=this.getJson();if(this.values=null,e)for(var r in this.values={},e)this.values[r]=e[r];this.onChangedJSON(t)},e.prototype.fillProperties=function(){if(null===this.properties){this.properties=[];for(var e=s.Serializer.getPropertiesByObj(this.obj),t=0;t<e.length;t++)e[t].isBindable&&this.properties.push(e[t])}},e.prototype.onChangedJSON=function(e){this.obj&&this.obj.onBindingChanged(e,this.getJson())},e}(),d=function(){function e(t,r,n){this.currentDependency=t,this.target=r,this.property=n,this.dependencies=[],this.id=""+ ++e.DependenciesCount}return e.prototype.addDependency=function(e,t){this.target===e&&this.property===t||this.dependencies.some((function(r){return r.obj===e&&r.prop===t}))||(this.dependencies.push({obj:e,prop:t,id:this.id}),e.registerPropertyChangedHandlers([t],this.currentDependency,this.id))},e.prototype.dispose=function(){this.dependencies.forEach((function(e){e.obj.unregisterPropertyChangedHandlers([e.prop],e.id)}))},e.DependenciesCount=0,e}(),h=function(){function e(t){this._updater=t,this.dependencies=void 0,this.type=e.ComputedUpdaterType}return Object.defineProperty(e.prototype,"updater",{get:function(){return this._updater},enumerable:!1,configurable:!0}),e.prototype.setDependencies=function(e){this.clearDependencies(),this.dependencies=e},e.prototype.getDependencies=function(){return this.dependencies},e.prototype.clearDependencies=function(){this.dependencies&&(this.dependencies.dispose(),this.dependencies=void 0)},e.prototype.dispose=function(){this.clearDependencies()},e.ComputedUpdaterType="__dependency_computed",e}(),f=function(){function e(){this.propertyHash={},this.eventList=[],this.isLoadingFromJsonValue=!1,this.loadingOwner=null,this.onPropertyChanged=this.addEvent(),this.onItemValuePropertyChanged=this.addEvent(),this.isCreating=!0,this.bindingsValue=new p(this),s.CustomPropertiesCollection.createProperties(this),this.onBaseCreating(),this.isCreating=!1}return e.finishCollectDependencies=function(){var t=e.currentDependencis;return e.currentDependencis=void 0,t},e.startCollectDependencies=function(t,r,n){if(void 0!==e.currentDependencis)throw new Error("Attempt to collect nested dependencies. Nested dependencies are not supported.");e.currentDependencis=new d(t,r,n)},e.collectDependency=function(t,r){void 0!==e.currentDependencis&&e.currentDependencis.addDependency(t,r)},Object.defineProperty(e,"commentSuffix",{get:function(){return a.settings.commentSuffix},set:function(e){a.settings.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"commentPrefix",{get:function(){return e.commentSuffix},set:function(t){e.commentSuffix=t},enumerable:!1,configurable:!0}),e.prototype.isValueEmpty=function(e,t){return void 0===t&&(t=!0),t&&(e=this.trimValue(e)),i.Helpers.isValueEmpty(e)},e.prototype.trimValue=function(e){return e&&("string"==typeof e||e instanceof String)?e.trim():e},e.prototype.isPropertyEmpty=function(e){return""!==e&&this.isValueEmpty(e)},e.prototype.dispose=function(){for(var e=0;e<this.eventList.length;e++)this.eventList[e].clear();this.onPropertyValueChangedCallback=void 0,this.isDisposedValue=!0},Object.defineProperty(e.prototype,"isDisposed",{get:function(){return!0===this.isDisposedValue},enumerable:!1,configurable:!0}),e.prototype.addEvent=function(){var e=new b;return this.eventList.push(e),e},e.prototype.onBaseCreating=function(){},e.prototype.getType=function(){return"base"},e.prototype.isDescendantOf=function(e){return s.Serializer.isDescendantOf(this.getType(),e)},e.prototype.getSurvey=function(e){return void 0===e&&(e=!1),null},Object.defineProperty(e.prototype,"isDesignMode",{get:function(){var e=this.getSurvey();return!!e&&e.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inSurvey",{get:function(){return!!this.getSurvey(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bindings",{get:function(){return this.bindingsValue},enumerable:!1,configurable:!0}),e.prototype.checkBindings=function(e,t){},e.prototype.updateBindings=function(e,t){var r=this.bindings.getValueNameByPropertyName(e);r&&this.updateBindingValue(r,t)},e.prototype.updateBindingValue=function(e,t){},e.prototype.getTemplate=function(){return this.getType()},Object.defineProperty(e.prototype,"isLoadingFromJson",{get:function(){return this.isLoadingFromJsonValue||this.getIsLoadingFromJson()},enumerable:!1,configurable:!0}),e.prototype.getIsLoadingFromJson=function(){return!(!this.loadingOwner||!this.loadingOwner.isLoadingFromJson)||this.isLoadingFromJsonValue},e.prototype.startLoadingFromJson=function(e){this.isLoadingFromJsonValue=!0},e.prototype.endLoadingFromJson=function(){this.isLoadingFromJsonValue=!1},e.prototype.toJSON=function(){return(new s.JsonObject).toJsonObject(this)},e.prototype.fromJSON=function(e){(new s.JsonObject).toObject(e,this),this.onSurveyLoad()},e.prototype.onSurveyLoad=function(){},e.prototype.clone=function(){var e=s.Serializer.createClass(this.getType());return e.fromJSON(this.toJSON()),e},e.prototype.getPropertyByName=function(e){return this.classMetaData||(this.classMetaData=s.Serializer.findClass(this.getType())),this.classMetaData?this.classMetaData.findProperty(e):null},e.prototype.isPropertyVisible=function(e){var t=this.getPropertyByName(e);return!!t&&t.isVisible("",this)},e.createProgressInfo=function(){return{questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0}},e.prototype.getProgressInfo=function(){return e.createProgressInfo()},e.prototype.localeChanged=function(){},e.prototype.locStrsChanged=function(){if(this.arraysInfo)for(var t in this.arraysInfo)if((n=this.arraysInfo[t])&&n.isItemValues){var r=this.getPropertyValue(t);r&&e.itemValueLocStrChanged&&e.itemValueLocStrChanged(r)}if(this.localizableStrings)for(var t in this.localizableStrings){var n;(n=this.getLocalizableString(t))&&n.strChanged()}},e.prototype.getPropertyValue=function(e,t){void 0===t&&(t=null);var r=this.getPropertyValueCore(this.propertyHash,e);if(this.isPropertyEmpty(r)){var n=this.localizableStrings?this.localizableStrings[e]:void 0;if(n)return n.text;if(null!=t)return t;var o=this.getDefaultValueFromProperty(e);if(void 0!==o)return o}return r},e.prototype.getDefaultValueFromProperty=function(e){var t=this.getPropertyByName(e);if(!(!t||t.isCustom&&this.isCreating)){var r=t.defaultValue;return this.isPropertyEmpty(r)||Array.isArray(r)?"boolean"!=t.type&&"switch"!=t.type&&(t.isCustom&&t.onGetValue?t.onGetValue(this):void 0):r}},e.prototype.getPropertyValueCore=function(t,r){return this.isLoadingFromJson||e.collectDependency(this,r),this.getPropertyValueCoreHandler?this.getPropertyValueCoreHandler(t,r):t[r]},e.prototype.geValueFromHash=function(){return this.propertyHash.value},e.prototype.setPropertyValueCore=function(e,t,r){this.setPropertyValueCoreHandler?this.isDisposedValue?console.warn("Attempt to set property '"+t+"' of a disposed object '"+this.getType()+"'"):this.setPropertyValueCoreHandler(e,t,r):e[t]=r},Object.defineProperty(e.prototype,"isEditingSurveyElement",{get:function(){var e=this.getSurvey();return!!e&&e.isEditingSurveyElement},enumerable:!1,configurable:!0}),e.prototype.iteratePropertiesHash=function(e){var t=this,r=[];for(var n in this.propertyHash)"value"===n&&this.isEditingSurveyElement&&Array.isArray(this.value)||r.push(n);r.forEach((function(r){return e(t.propertyHash,r)}))},e.prototype.setPropertyValue=function(e,t){if(!this.isLoadingFromJson){var r=this.getPropertyByName(e);r&&(t=r.settingValue(this,t))}var n=this.getPropertyValue(e);if(n&&Array.isArray(n)&&this.arraysInfo&&(!t||Array.isArray(t))){if(this.isTwoValueEquals(n,t))return;this.setArrayPropertyDirectly(e,t)}else this.setPropertyValueDirectly(e,t),this.isDisposedValue||this.isTwoValueEquals(n,t)||this.propertyValueChanged(e,n,t)},e.prototype.setArrayPropertyDirectly=function(e,t,r){void 0===r&&(r=!0);var n=this.arraysInfo[e];this.setArray(e,this.getPropertyValue(e),t,!!n&&n.isItemValues,n?r&&n.onPush:null)},e.prototype.setPropertyValueDirectly=function(e,t){this.setPropertyValueCore(this.propertyHash,e,t)},e.prototype.clearPropertyValue=function(e){this.setPropertyValueCore(this.propertyHash,e,null),delete this.propertyHash[e]},e.prototype.onPropertyValueChangedCallback=function(e,t,r,n,o){},e.prototype.itemValuePropertyChanged=function(e,t,r,n){this.onItemValuePropertyChanged.fire(this,{obj:e,name:t,oldValue:r,newValue:n,propertyName:e.ownerPropertyName})},e.prototype.onPropertyValueChanged=function(e,t,r){},e.prototype.propertyValueChanged=function(e,t,r,n,o){if(!this.isLoadingFromJson&&(this.updateBindings(e,r),this.onPropertyValueChanged(e,t,r),this.onPropertyChanged.fire(this,{name:e,oldValue:t,newValue:r}),this.doPropertyValueChangedCallback(e,t,r,n,this),this.checkConditionPropertyChanged(e),this.onPropChangeFunctions))for(var i=0;i<this.onPropChangeFunctions.length;i++)this.onPropChangeFunctions[i].name==e&&this.onPropChangeFunctions[i].func(r)},e.prototype.onBindingChanged=function(e,t){this.isLoadingFromJson||this.doPropertyValueChangedCallback("bindings",e,t)},Object.defineProperty(e.prototype,"isInternal",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.doPropertyValueChangedCallback=function(e,t,r,n,o){if(!this.isInternal){o||(o=this);var i=this.getSurvey();i||(i=this),i.onPropertyValueChangedCallback&&i.onPropertyValueChangedCallback(e,t,r,o,n),i!==this&&this.onPropertyValueChangedCallback&&this.onPropertyValueChangedCallback(e,t,r,o,n)}},e.prototype.addExpressionProperty=function(e,t,r){this.expressionInfo||(this.expressionInfo={}),this.expressionInfo[e]={onExecute:t,canRun:r}},e.prototype.getDataFilteredValues=function(){return{}},e.prototype.getDataFilteredProperties=function(){return{}},e.prototype.runConditionCore=function(e,t){if(this.expressionInfo)for(var r in this.expressionInfo)this.runConditionItemCore(r,e,t)},e.prototype.canRunConditions=function(){return!this.isDesignMode},e.prototype.checkConditionPropertyChanged=function(e){this.expressionInfo&&this.expressionInfo[e]&&this.canRunConditions()&&this.runConditionItemCore(e,this.getDataFilteredValues(),this.getDataFilteredProperties())},e.prototype.runConditionItemCore=function(e,t,r){var n=this,o=this.expressionInfo[e],i=this.getPropertyValue(e);i&&(o.canRun&&!o.canRun(this)||(o.runner||(o.runner=new l.ExpressionRunner(i),o.runner.onRunComplete=function(e){o.onExecute(n,e)}),o.runner.expression=i,o.runner.run(t,r)))},e.prototype.registerPropertyChangedHandlers=function(e,t,r){void 0===r&&(r=null);for(var n=0;n<e.length;n++)this.registerFunctionOnPropertyValueChanged(e[n],t,r)},e.prototype.unregisterPropertyChangedHandlers=function(e,t){void 0===t&&(t=null);for(var r=0;r<e.length;r++)this.unRegisterFunctionOnPropertyValueChanged(e[r],t)},e.prototype.registerFunctionOnPropertyValueChanged=function(e,t,r){if(void 0===r&&(r=null),this.onPropChangeFunctions||(this.onPropChangeFunctions=[]),r)for(var n=0;n<this.onPropChangeFunctions.length;n++){var o=this.onPropChangeFunctions[n];if(o.name==e&&o.key==r)return void(o.func=t)}this.onPropChangeFunctions.push({name:e,func:t,key:r})},e.prototype.registerFunctionOnPropertiesValueChanged=function(e,t,r){void 0===r&&(r=null),this.registerPropertyChangedHandlers(e,t,r)},e.prototype.unRegisterFunctionOnPropertyValueChanged=function(e,t){if(void 0===t&&(t=null),this.onPropChangeFunctions)for(var r=0;r<this.onPropChangeFunctions.length;r++){var n=this.onPropChangeFunctions[r];if(n.name==e&&n.key==t)return void this.onPropChangeFunctions.splice(r,1)}},e.prototype.unRegisterFunctionOnPropertiesValueChanged=function(e,t){void 0===t&&(t=null),this.unregisterPropertyChangedHandlers(e,t)},e.prototype.createCustomLocalizableObj=function(e){this.getLocalizableString(e)||this.createLocalizableString(e,this,!1,!0)},e.prototype.getLocale=function(){var e=this.getSurvey();return e?e.getLocale():""},e.prototype.getLocalizationString=function(e){return u.surveyLocalization.getString(e,this.getLocale())},e.prototype.getLocalizationFormatString=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=this.getLocalizationString(e);return n&&n.format?n.format.apply(n,t):""},e.prototype.createLocalizableString=function(e,t,r,n){var i=this;void 0===r&&(r=!1),void 0===n&&(n=!1);var s=new o.LocalizableString(t,r,e);n&&(s.localizationName=!0===n?e:n),s.onStrChanged=function(t,r){i.propertyValueChanged(e,t,r)},this.localizableStrings||(this.localizableStrings={}),this.localizableStrings[e]=s;var a=this.getPropertyByName(e);return s.disableLocalization=a&&!1===a.isLocalizable,s},e.prototype.getLocalizableString=function(e){return this.localizableStrings?this.localizableStrings[e]:null},e.prototype.getLocalizableStringText=function(t,r){void 0===r&&(r=""),e.collectDependency(this,t);var n=this.getLocalizableString(t);return n?n.text||r:""},e.prototype.setLocalizableStringText=function(e,t){var r=this.getLocalizableString(e);r&&r.text!=t&&(r.text=t)},e.prototype.addUsedLocales=function(e){if(this.localizableStrings)for(var t in this.localizableStrings)(o=this.getLocalizableString(t))&&this.AddLocStringToUsedLocales(o,e);if(this.arraysInfo)for(var t in this.arraysInfo){var r=this.getPropertyValue(t);if(r&&r.length)for(var n=0;n<r.length;n++){var o;(o=r[n])&&o.addUsedLocales&&o.addUsedLocales(e)}}},e.prototype.searchText=function(e,t){var r=[];this.getSearchableLocalizedStrings(r);for(var n=0;n<r.length;n++)r[n].setFindText(e)&&t.push({element:this,str:r[n]})},e.prototype.getSearchableLocalizedStrings=function(e){if(this.localizableStrings){var t=[];this.getSearchableLocKeys(t);for(var r=0;r<t.length;r++){var n=this.getLocalizableString(t[r]);n&&e.push(n)}}if(this.arraysInfo){var o=[];for(this.getSearchableItemValueKeys(o),r=0;r<o.length;r++){var i=this.getPropertyValue(o[r]);if(i)for(var s=0;s<i.length;s++)e.push(i[s].locText)}}},e.prototype.getSearchableLocKeys=function(e){},e.prototype.getSearchableItemValueKeys=function(e){},e.prototype.AddLocStringToUsedLocales=function(e,t){for(var r=e.getLocales(),n=0;n<r.length;n++)t.indexOf(r[n])<0&&t.push(r[n])},e.prototype.createItemValues=function(e){var t=this,r=this.createNewArray(e,(function(r){if(r.locOwner=t,r.ownerPropertyName=e,"function"==typeof r.getSurvey){var n=r.getSurvey();n&&"function"==typeof n.makeReactive&&n.makeReactive(r)}}));return this.arraysInfo[e].isItemValues=!0,r},e.prototype.notifyArrayChanged=function(e,t){e.onArrayChanged&&e.onArrayChanged(t)},e.prototype.createNewArrayCore=function(e){var t=null;return this.createArrayCoreHandler&&(t=this.createArrayCoreHandler(this.propertyHash,e)),t||(t=new Array,this.setPropertyValueCore(this.propertyHash,e,t)),t},e.prototype.ensureArray=function(e,t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!this.arraysInfo||!this.arraysInfo[e])return this.createNewArray(e,t,r)},e.prototype.createNewArray=function(e,t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=this.createNewArrayCore(e);this.arraysInfo||(this.arraysInfo={}),this.arraysInfo[e]={onPush:t,isItemValues:!1};var o=this;return n.push=function(r){var i=Object.getPrototypeOf(n).push.call(n,r);if(!o.isDisposedValue){t&&t(r,n.length-1);var s=new m(n.length-1,0,[r],[]);o.propertyValueChanged(e,n,n,s),o.notifyArrayChanged(n,s)}return i},n.shift=function(){var t=Object.getPrototypeOf(n).shift.call(n);if(!o.isDisposedValue&&t){r&&r(t);var i=new m(n.length-1,1,[],[]);o.propertyValueChanged(e,n,n,i),o.notifyArrayChanged(n,i)}return t},n.unshift=function(r){var i=Object.getPrototypeOf(n).unshift.call(n,r);if(!o.isDisposedValue){t&&t(r,n.length-1);var s=new m(0,0,[r],[]);o.propertyValueChanged(e,n,n,s),o.notifyArrayChanged(n,s)}return i},n.pop=function(){var t=Object.getPrototypeOf(n).pop.call(n);if(!o.isDisposedValue){r&&r(t);var i=new m(n.length-1,1,[],[]);o.propertyValueChanged(e,n,n,i),o.notifyArrayChanged(n,i)}return t},n.splice=function(i,s){for(var a,l=[],u=2;u<arguments.length;u++)l[u-2]=arguments[u];i||(i=0),s||(s=0);var c=(a=Object.getPrototypeOf(n).splice).call.apply(a,function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}([n,i,s],l));if(l||(l=[]),!o.isDisposedValue){if(r&&c)for(var p=0;p<c.length;p++)r(c[p]);if(t)for(p=0;p<l.length;p++)t(l[p],i+p);var d=new m(i,s,l,c);o.propertyValueChanged(e,n,n,d),o.notifyArrayChanged(n,d)}return c},n},e.prototype.getItemValueType=function(){},e.prototype.setArray=function(t,r,n,o,i){var s=[].concat(r);if(Object.getPrototypeOf(r).splice.call(r,0,r.length),n)for(var a=0;a<n.length;a++){var l=n[a];o&&e.createItemValue&&(l=e.createItemValue(l,this.getItemValueType())),Object.getPrototypeOf(r).push.call(r,l),i&&i(r[a])}var u=new m(0,s.length,r,s);this.propertyValueChanged(t,s,r,u),this.notifyArrayChanged(r,u)},e.prototype.isTwoValueEquals=function(e,t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),i.Helpers.isTwoValueEquals(e,t,!1,!r,n)},e.copyObject=function(e,t){for(var r in t){var n=t[r];"object"==typeof n&&(n={},this.copyObject(n,t[r])),e[r]=n}},e.prototype.copyCssClasses=function(t,r){r&&("string"==typeof r||r instanceof String?t.root=r:e.copyObject(t,r))},e.prototype.getValueInLowCase=function(e){return e&&"string"==typeof e?e.toLowerCase():e},e.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),[]},e.currentDependencis=void 0,e}(),m=function(e,t,r,n){this.index=e,this.deleteCount=t,this.itemsToAdd=r,this.deletedItems=n},g=function(){function e(){}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.callbacks?this.callbacks.length:0},enumerable:!1,configurable:!0}),e.prototype.fireByCreatingOptions=function(e,t){if(this.callbacks)for(var r=0;r<this.callbacks.length;r++)if(this.callbacks[r](e,t()),!this.callbacks)return},e.prototype.fire=function(e,t){if(this.callbacks)for(var r=0;r<this.callbacks.length;r++)if(this.callbacks[r](e,t),!this.callbacks)return},e.prototype.clear=function(){this.callbacks=void 0},e.prototype.add=function(e){this.hasFunc(e)||(this.callbacks||(this.callbacks=new Array),this.callbacks.push(e),this.fireCallbackChanged())},e.prototype.remove=function(e){if(this.hasFunc(e)){var t=this.callbacks.indexOf(e,0);this.callbacks.splice(t,1),this.fireCallbackChanged()}},e.prototype.hasFunc=function(e){return null!=this.callbacks&&this.callbacks.indexOf(e,0)>-1},e.prototype.fireCallbackChanged=function(){this.onCallbacksChanged&&this.onCallbacksChanged()},e}(),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t}(g)},"./src/calculatedValue.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"CalculatedValue",(function(){return u}));var n,o=r("./src/helpers.ts"),i=r("./src/base.ts"),s=r("./src/conditions.ts"),a=r("./src/jsonobject.ts"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;return n.expressionIsRunning=!1,n.isCalculated=!1,t&&(n.name=t),r&&(n.expression=r),n}return l(t,e),t.prototype.setOwner=function(e){this.data=e,this.rerunExpression()},t.prototype.getType=function(){return"calculatedvalue"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.data&&this.data.getSurvey?this.data.getSurvey():null},Object.defineProperty(t.prototype,"owner",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name")||""},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"includeIntoResult",{get:function(){return this.getPropertyValue("includeIntoResult")},set:function(e){this.setPropertyValue("includeIntoResult",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")||""},set:function(e){this.setPropertyValue("expression",e),this.rerunExpression()},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.resetCalculation=function(){this.isCalculated=!1},t.prototype.doCalculation=function(e,t,r){this.isCalculated||(this.runExpressionCore(e,t,r),this.isCalculated=!0)},t.prototype.runExpression=function(e,t){this.runExpressionCore(null,e,t)},Object.defineProperty(t.prototype,"value",{get:function(){if(this.data)return this.data.getVariable(this.name)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e){this.data&&this.data.setVariable(this.name,e)},Object.defineProperty(t.prototype,"canRunExpression",{get:function(){return!(!this.data||this.isLoadingFromJson||!this.expression||this.expressionIsRunning||!this.name)},enumerable:!1,configurable:!0}),t.prototype.rerunExpression=function(){this.canRunExpression&&this.runExpression(this.data.getFilteredValues(),this.data.getFilteredProperties())},t.prototype.runExpressionCore=function(e,t,r){this.canRunExpression&&(this.ensureExpression(t),this.locCalculation(),e&&this.runDependentExpressions(e,t,r),this.expressionRunner.run(t,r))},t.prototype.runDependentExpressions=function(e,t,r){var n=this.expressionRunner.getVariables();if(n)for(var o=0;o<e.length;o++){var i=e[o];i===this||n.indexOf(i.name)<0||(i.doCalculation(e,t,r),t[i.name]=i.value)}},t.prototype.ensureExpression=function(e){var t=this;this.expressionRunner||(this.expressionRunner=new s.ExpressionRunner(this.expression),this.expressionRunner.onRunComplete=function(e){o.Helpers.isTwoValueEquals(e,t.value)||t.setValue(e),t.unlocCalculation()})},t}(i.Base);a.Serializer.addClass("calculatedvalue",[{name:"!name",isUnique:!0},"expression:expression","includeIntoResult:boolean"],(function(){return new u}),"base")},"./src/choicesRestful.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ChoicesRestful",(function(){return p})),r.d(t,"ChoicesRestfull",(function(){return d}));var n,o=r("./src/base.ts"),i=r("./src/itemvalue.ts"),s=r("./src/jsonobject.ts"),a=r("./src/error.ts"),l=r("./src/settings.ts"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(){function e(){this.parser=new DOMParser}return e.prototype.assignValue=function(e,t,r){Array.isArray(e[t])?e[t].push(r):void 0!==e[t]?e[t]=[e[t]].concat(r):"object"==typeof r&&1===Object.keys(r).length&&Object.keys(r)[0]===t?e[t]=r[t]:e[t]=r},e.prototype.xml2Json=function(e,t){if(e.children&&e.children.length>0)for(var r=0;r<e.children.length;r++){var n=e.children[r],o={};this.xml2Json(n,o),this.assignValue(t,n.nodeName,o)}else this.assignValue(t,e.nodeName,e.textContent)},e.prototype.parseXmlString=function(e){var t=this.parser.parseFromString(e,"text/xml"),r={};return this.xml2Json(t,r),r},e}(),p=function(e){function t(){var t=e.call(this)||this;return t.lastObjHash="",t.isRunningValue=!1,t.processedUrl="",t.processedPath="",t.isUsingCacheFromUrl=void 0,t.error=null,t.createItemValue=function(e){return new i.ItemValue(e)},t}return u(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return l.settings.webserviceEncodeParameters},set:function(e){l.settings.webserviceEncodeParameters=e},enumerable:!1,configurable:!0}),t.clearCache=function(){t.itemsResult={},t.sendingSameRequests={}},t.addSameRequest=function(e){if(!e.isUsingCache)return!1;var r=e.objHash,n=t.sendingSameRequests[r];return n?(n.push(e),e.isRunningValue=!0,!0):(t.sendingSameRequests[e.objHash]=[],!1)},t.unregisterSameRequests=function(e,r){if(e.isUsingCache){var n=t.sendingSameRequests[e.objHash];if(delete t.sendingSameRequests[e.objHash],n)for(var o=0;o<n.length;o++)n[o].isRunningValue=!1,n[o].getResultCallback&&n[o].getResultCallback(r)}},t.getCachedItemsResult=function(e){var r=e.objHash,n=t.itemsResult[r];return!!n&&(e.getResultCallback&&e.getResultCallback(n),!0)},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner?this.owner.survey:null},t.prototype.run=function(e){if(void 0===e&&(e=null),this.url&&this.getResultCallback){if(this.processedText(e),!this.processedUrl)return this.doEmptyResultCallback({}),void(this.lastObjHash=this.objHash);this.lastObjHash!==this.objHash&&(this.lastObjHash=this.objHash,this.error=null,this.useChangedItemsResults()||t.addSameRequest(this)||this.sendRequest())}},Object.defineProperty(t.prototype,"isUsingCache",{get:function(){return!0===this.isUsingCacheFromUrl||!1!==this.isUsingCacheFromUrl&&l.settings.useCachingForChoicesRestful},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getIsRunning()},enumerable:!1,configurable:!0}),t.prototype.getIsRunning=function(){return this.isRunningValue},Object.defineProperty(t.prototype,"isWaitingForParameters",{get:function(){return this.url&&!this.processedUrl},enumerable:!1,configurable:!0}),t.prototype.useChangedItemsResults=function(){return t.getCachedItemsResult(this)},t.prototype.doEmptyResultCallback=function(e){var t=[];this.updateResultCallback&&(t=this.updateResultCallback(t,e)),this.getResultCallback(t)},t.prototype.processedText=function(e){var r=this.url;if(r&&(r=r.replace(t.cacheText,"").replace(t.noCacheText,"")),e){var n=e.processTextEx(r,!1,l.settings.webserviceEncodeParameters),o=e.processTextEx(this.path,!1,l.settings.webserviceEncodeParameters);n.hasAllValuesOnLastRun&&o.hasAllValuesOnLastRun?(this.processedUrl=n.text,this.processedPath=o.text):(this.processedUrl="",this.processedPath="")}else this.processedUrl=r,this.processedPath=this.path;this.onProcessedUrlCallback&&this.onProcessedUrlCallback(this.processedUrl,this.processedPath)},t.prototype.parseResponse=function(e){var t;if(e&&"function"==typeof e.indexOf&&0===e.indexOf("<"))t=(new c).parseXmlString(e);else try{t=JSON.parse(e)}catch(r){t=(e||"").split("\n").map((function(e){return e.trim(" ")})).filter((function(e){return!!e}))}return t},t.prototype.sendRequest=function(){var e=new XMLHttpRequest;e.open("GET",this.processedUrl),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var r=this,n=this.objHash;e.onload=function(){r.beforeLoadRequest(),200===e.status?r.onLoad(r.parseResponse(e.response),n):r.onError(e.statusText,e.responseText)};var o={request:e};t.onBeforeSendRequest&&t.onBeforeSendRequest(this,o),this.beforeSendRequest(),o.request.send()},t.prototype.getType=function(){return"choicesByUrl"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!(this.url||this.path||this.valueName||this.titleName||this.imageLinkName)},enumerable:!1,configurable:!0}),t.prototype.getCustomPropertiesNames=function(){for(var e=this.getCustomProperties(),t=new Array,r=0;r<e.length;r++)t.push(this.getCustomPropertyName(e[r].name));return t},t.prototype.getCustomPropertyName=function(e){return e+"Name"},t.prototype.getCustomProperties=function(){for(var e=s.Serializer.getProperties(this.itemValueType),t=[],r=0;r<e.length;r++)"value"!==e[r].name&&"text"!==e[r].name&&"visibleIf"!==e[r].name&&"enableIf"!==e[r].name&&t.push(e[r]);return t},t.prototype.setData=function(e){this.clear(),e.url&&(this.url=e.url),e.path&&(this.path=e.path),e.valueName&&(this.valueName=e.valueName),e.titleName&&(this.titleName=e.titleName),e.imageLinkName&&(this.imageLinkName=e.imageLinkName),void 0!==e.allowEmptyResponse&&(this.allowEmptyResponse=e.allowEmptyResponse),void 0!==e.attachOriginalItems&&(this.attachOriginalItems=e.attachOriginalItems);for(var t=this.getCustomPropertiesNames(),r=0;r<t.length;r++)e[t[r]]&&(this[t[r]]=e[t[r]])},t.prototype.getData=function(){if(this.isEmpty)return null;var e={};this.url&&(e.url=this.url),this.path&&(e.path=this.path),this.valueName&&(e.valueName=this.valueName),this.titleName&&(e.titleName=this.titleName),this.imageLinkName&&(e.imageLinkName=this.imageLinkName),this.allowEmptyResponse&&(e.allowEmptyResponse=this.allowEmptyResponse),this.attachOriginalItems&&(e.attachOriginalItems=this.attachOriginalItems);for(var t=this.getCustomPropertiesNames(),r=0;r<t.length;r++)this[t[r]]&&(e[t[r]]=this[t[r]]);return e},Object.defineProperty(t.prototype,"url",{get:function(){return this.getPropertyValue("url","")},set:function(e){this.setPropertyValue("url",e),this.isUsingCacheFromUrl=void 0,e&&(e.indexOf(t.cacheText)>-1?this.isUsingCacheFromUrl=!0:e.indexOf(t.noCacheText)>-1&&(this.isUsingCacheFromUrl=!1))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.getPropertyValue("path","")},set:function(e){this.setPropertyValue("path",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){this.setPropertyValue("valueName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleName",{get:function(){return this.getPropertyValue("titleName","")},set:function(e){this.setPropertyValue("titleName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageLinkName",{get:function(){return this.getPropertyValue("imageLinkName","")},set:function(e){this.setPropertyValue("imageLinkName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowEmptyResponse",{get:function(){return this.getPropertyValue("allowEmptyResponse")},set:function(e){this.setPropertyValue("allowEmptyResponse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attachOriginalItems",{get:function(){return this.getPropertyValue("attachOriginalItems")},set:function(e){this.setPropertyValue("attachOriginalItems",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemValueType",{get:function(){if(!this.owner)return"itemvalue";var e=s.Serializer.findProperty(this.owner.getType(),"choices");return e?"itemvalue[]"==e.type?"itemvalue":e.type:"itemvalue"},enumerable:!1,configurable:!0}),t.prototype.clear=function(){this.url="",this.path="",this.valueName="",this.titleName="",this.imageLinkName="";for(var e=this.getCustomPropertiesNames(),t=0;t<e.length;t++)this[e[t]]&&(this[e[t]]="")},t.prototype.beforeSendRequest=function(){this.isRunningValue=!0,this.beforeSendRequestCallback&&this.beforeSendRequestCallback()},t.prototype.beforeLoadRequest=function(){this.isRunningValue=!1},t.prototype.onLoad=function(e,r){void 0===r&&(r=null),r||(r=this.objHash);var n=new Array,o=this.getResultAfterPath(e);if(o&&o.length)for(var i=0;i<o.length;i++){var s=o[i];if(s){var l=this.getItemValueCallback?this.getItemValueCallback(s):this.getValue(s),u=this.createItemValue(l);this.setTitle(u,s),this.setCustomProperties(u,s),this.attachOriginalItems&&(u.originalItem=s);var c=this.getImageLink(s);c&&(u.imageLink=c),n.push(u)}}else this.allowEmptyResponse||(this.error=new a.WebRequestEmptyError(null,this.owner));this.updateResultCallback&&(n=this.updateResultCallback(n,e)),this.isUsingCache&&(t.itemsResult[r]=n),this.callResultCallback(n,r),t.unregisterSameRequests(this,n)},t.prototype.callResultCallback=function(e,t){t==this.objHash&&this.getResultCallback(e)},t.prototype.setCustomProperties=function(e,t){for(var r=this.getCustomProperties(),n=0;n<r.length;n++){var o=r[n],i=this.getValueCore(t,this.getPropertyBinding(o.name));this.isValueEmpty(i)||(e[o.name]=i)}},t.prototype.getPropertyBinding=function(e){return this[this.getCustomPropertyName(e)]?this[this.getCustomPropertyName(e)]:this[e]?this[e]:e},t.prototype.onError=function(e,r){this.error=new a.WebRequestError(e,r,this.owner),this.doEmptyResultCallback(r),t.unregisterSameRequests(this,[])},t.prototype.getResultAfterPath=function(e){if(!e)return e;if(!this.processedPath)return e;for(var t=this.getPathes(),r=0;r<t.length;r++)if(!(e=e[t[r]]))return null;return e},t.prototype.getPathes=function(){var e=[];return 0==(e=this.processedPath.indexOf(";")>-1?this.path.split(";"):this.processedPath.split(",")).length&&e.push(this.processedPath),e},t.prototype.getValue=function(e){return e?this.valueName?this.getValueCore(e,this.valueName):e instanceof Object?Object.keys(e).length<1?null:e[Object.keys(e)[0]]:e:null},t.prototype.setTitle=function(e,t){var r=this.titleName?this.titleName:"title",n=this.getValueCore(t,r);n&&("string"==typeof n?e.text=n:e.locText.setJson(n))},t.prototype.getImageLink=function(e){var t=this.imageLinkName?this.imageLinkName:"imageLink";return this.getValueCore(e,t)},t.prototype.getValueCore=function(e,t){if(!e)return null;if(t.indexOf(".")<0)return e[t];for(var r=t.split("."),n=0;n<r.length;n++)if(!(e=e[r[n]]))return null;return e},Object.defineProperty(t.prototype,"objHash",{get:function(){return this.processedUrl+";"+this.processedPath+";"+this.valueName+";"+this.titleName+";"+this.imageLinkName},enumerable:!1,configurable:!0}),t.cacheText="{CACHE}",t.noCacheText="{NOCACHE}",t.itemsResult={},t.sendingSameRequests={},t}(o.Base),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return p.EncodeParameters},set:function(e){p.EncodeParameters=e},enumerable:!1,configurable:!0}),t.clearCache=function(){p.clearCache()},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return p.onBeforeSendRequest},set:function(e){p.onBeforeSendRequest=e},enumerable:!1,configurable:!0}),t}(p);s.Serializer.addClass("choicesByUrl",["url","path","valueName","titleName",{name:"imageLinkName",visibleIf:function(e){return!!e&&!!e.owner&&"imagepicker"==e.owner.getType()}},{name:"allowEmptyResponse:boolean"},{name:"attachOriginalItems:boolean",visible:!1}],(function(){return new p}))},"./src/conditionProcessValue.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ProcessValue",(function(){return i}));var n=r("./src/helpers.ts"),o="@survey",i=function(){function e(){this.values=null,this.properties=null}return e.prototype.getFirstName=function(e,t){if(void 0===t&&(t=null),!e)return e;var r="";if(t&&(r=this.getFirstPropertyName(e,t)))return r;for(var n=0;n<e.length;n++){var o=e[n];if("."==o||"["==o)break;r+=o}return r},e.prototype.hasValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).hasValue},e.prototype.getValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).value},e.prototype.setValue=function(e,t,r){if(t){var n=this.getNonNestedObject(e,t,!0);n&&(e=n.value,t=n.text,e&&t&&(e[t]=r))}},e.prototype.getValueInfo=function(e){if(e.path)return e.value=this.getValueFromPath(e.path,this.values),e.hasValue=null!==e.value&&!n.Helpers.isValueEmpty(e.value),void(!e.hasValue&&e.path.length>1&&"length"==e.path[e.path.length-1]&&(e.hasValue=!0,e.value=0));var t=this.getValueCore(e.name,this.values);e.value=t.value,e.hasValue=t.hasValue,e.path=t.hasValue?t.path:null},e.prototype.getValueFromPath=function(e,t){if(2===e.length&&e[0]===o)return this.getValueFromSurvey(e[1]);for(var r=0;t&&r<e.length;){var i=e[r];if(n.Helpers.isNumber(i)&&Array.isArray(t)&&i>=t.length)return null;t=t[i],r++}return t},e.prototype.getValueCore=function(e,t){var r=this.getQuestionDirectly(e);if(r)return{hasValue:!0,value:r.value,path:[e]};var n=this.getValueFromValues(e,t);if(e&&!n.hasValue){var i=this.getValueFromSurvey(e);void 0!==i&&(n.hasValue=!0,n.value=i,n.path=[o,e])}return n},e.prototype.getQuestionDirectly=function(e){if(this.properties&&this.properties.survey)return this.properties.survey.getQuestionByValueName(e)},e.prototype.getValueFromSurvey=function(e){if(this.properties&&this.properties.survey)return this.properties.survey.getBuiltInVariableValue(e.toLocaleLowerCase())},e.prototype.getValueFromValues=function(e,t){var r={hasValue:!1,value:null,path:null},o=t;if(!o&&0!==o&&!1!==o)return r;e&&e.lastIndexOf(".length")>-1&&e.lastIndexOf(".length")===e.length-7&&(r.value=0,r.hasValue=!0);var i=this.getNonNestedObject(o,e,!1);return i?(r.path=i.path,r.value=i.text?this.getObjectValue(i.value,i.text):i.value,r.hasValue=!n.Helpers.isValueEmpty(r.value),r):r},e.prototype.getNonNestedObject=function(e,t,r){for(var o=this.getFirstPropertyName(t,e,r),i=o?[o]:null;t!=o&&e;){if("["==t[0]){var s=this.getObjInArray(e,t);if(!s)return null;e=s.value,t=s.text,i.push(s.index)}else{if(!o&&t==this.getFirstName(t))return{value:e,text:t,path:i};if(e=this.getObjectValue(e,o),n.Helpers.isValueEmpty(e)&&!r)return null;t=t.substring(o.length)}t&&"."==t[0]&&(t=t.substring(1)),(o=this.getFirstPropertyName(t,e,r))&&i.push(o)}return{value:e,text:t,path:i}},e.prototype.getObjInArray=function(e,t){if(!Array.isArray(e))return null;for(var r=1,n="";r<t.length&&"]"!=t[r];)n+=t[r],r++;return t=r<t.length?t.substring(r+1):"",(r=this.getIntValue(n))<0||r>=e.length?null:{value:e[r],text:t,index:r}},e.prototype.getFirstPropertyName=function(e,t,r){if(void 0===r&&(r=!1),!e)return e;if(t||(t={}),t.hasOwnProperty(e))return e;var n=e.toLowerCase(),o=n[0],i=o.toUpperCase();for(var s in t){var a=s[0];if(a===i||a===o){var l=s.toLowerCase();if(l==n)return s;if(n.length<=l.length)continue;var u=n[l.length];if("."!=u&&"["!=u)continue;if(l==n.substring(0,l.length))return s}}if(r&&"["!==e[0]){var c=e.indexOf(".");return c>-1&&(t[e=e.substring(0,c)]={}),e}return""},e.prototype.getObjectValue=function(e,t){return t?e[t]:null},e.prototype.getIntValue=function(e){return"0"==e||(0|e)>0&&e%1==0?Number(e):-1},e}()},"./src/conditions.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ExpressionExecutor",(function(){return a})),r.d(t,"ExpressionRunnerBase",(function(){return l})),r.d(t,"ConditionRunner",(function(){return u})),r.d(t,"ExpressionRunner",(function(){return c}));var n,o=r("./src/conditionProcessValue.ts"),i=r("./src/conditionsParser.ts"),s=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(){function e(e){this.processValue=new o.ProcessValue,this.parser=new i.ConditionsParser,this.isAsyncValue=!1,this.hasFunctionValue=!1,this.setExpression(e)}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),e.prototype.setExpression=function(e){this.expression!==e&&(this.expressionValue=e,this.operand=this.parser.parseExpression(e),this.hasFunctionValue=!!this.canRun()&&this.operand.hasFunction(),this.isAsyncValue=!!this.hasFunction()&&this.operand.hasAsyncFunction())},e.prototype.getVariables=function(){if(!this.operand)return[];var e=[];return this.operand.setVariables(e),e},e.prototype.hasFunction=function(){return this.hasFunctionValue},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.isAsyncValue},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return!!this.operand},e.prototype.run=function(e,t){var r=this;if(void 0===t&&(t=null),!this.operand)return null;if(this.processValue.values=e,this.processValue.properties=t,!this.isAsync)return this.runValues();this.asyncFuncList=[],this.operand.addToAsyncList(this.asyncFuncList);for(var n=0;n<this.asyncFuncList.length;n++)this.asyncFuncList[n].onAsyncReady=function(){r.doAsyncFunctionReady()};for(n=0;n<this.asyncFuncList.length;n++)this.asyncFuncList[n].evaluateAsync(this.processValue);return!1},e.prototype.doAsyncFunctionReady=function(){for(var e=0;e<this.asyncFuncList.length;e++)if(!this.asyncFuncList[e].isReady)return;this.runValues()},e.prototype.runValues=function(){var e=this.operand.evaluate(this.processValue);return this.onComplete&&this.onComplete(e),e},e.createExpressionExecutor=function(t){return new e(t)},e}(),l=function(){function e(e){this.expression=e}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionExecutor?this.expressionExecutor.expression:""},set:function(e){var t=this;this.expressionExecutor&&e===this.expression||(this.expressionExecutor=a.createExpressionExecutor(e),this.expressionExecutor.onComplete=function(e){t.doOnComplete(e)})},enumerable:!1,configurable:!0}),e.prototype.getVariables=function(){return this.expressionExecutor.getVariables()},e.prototype.hasFunction=function(){return this.expressionExecutor.hasFunction()},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.expressionExecutor.isAsync},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return this.expressionExecutor.canRun()},e.prototype.runCore=function(e,t){return void 0===t&&(t=null),this.expressionExecutor.run(e,t)},e.prototype.doOnComplete=function(e){},e}(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),1==this.runCore(e,t)},t.prototype.doOnComplete=function(e){this.onRunComplete&&this.onRunComplete(1==e)},t}(l),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),this.runCore(e,t)},t.prototype.doOnComplete=function(e){this.onRunComplete&&this.onRunComplete(e)},t}(l)},"./src/conditionsParser.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ConditionsParserError",(function(){return o})),r.d(t,"ConditionsParser",(function(){return i}));var n=r("./src/expressions/expressionParser.ts"),o=function(e,t){this.at=e,this.code=t},i=function(){function e(){}return e.prototype.patchExpression=function(e){return e.replace(/=>/g,">=").replace(/=</g,"<=").replace(/<>/g,"!=").replace(/equals/g,"equal ").replace(/notequals/g,"notequal ")},e.prototype.createCondition=function(e){return this.parseExpression(e)},e.prototype.parseExpression=function(t){try{var r=e.parserCache[t];return void 0===r&&((r=Object(n.parse)(this.patchExpression(t))).hasAsyncFunction()||(e.parserCache[t]=r)),r}catch(e){e instanceof n.SyntaxError&&(this.conditionError=new o(e.location.start.offset,e.message))}},Object.defineProperty(e.prototype,"error",{get:function(){return this.conditionError},enumerable:!1,configurable:!0}),e.parserCache={},e}()},"./src/defaultCss/cssmodern.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"modernCss",(function(){return o}));var n=r("./src/defaultCss/defaultV2Css.ts"),o={root:"sv-root-modern",timerRoot:"sv-body__timer",container:"sv-container-modern",header:"sv-title sv-container-modern__title",headerClose:"sv-container-modern__close",bodyContainer:"sv-components-row",body:"sv-components-column sv-components-column--expandable sv-body",bodyEmpty:"sv-body sv-body--empty",footer:"sv-footer sv-body__footer sv-clearfix",title:"",description:"",logo:"sv-logo",logoImage:"sv-logo__image",headerText:"sv-header__text",navigationButton:"sv-btn sv-btn--navigation",completedPage:"sv-completedpage",navigation:{complete:"sv-footer__complete-btn",prev:"sv-footer__prev-btn",next:"sv-footer__next-btn",start:"sv-footer__start-btn",preview:"sv-footer__preview-btn",edit:"sv-footer__edit-btn"},panel:{title:"sv-title sv-panel__title",titleExpandable:"sv-panel__title--expandable",titleExpanded:"sv-panel__title--expanded",titleCollapsed:"sv-panel__title--collapsed",titleOnError:"sv-panel__title--error",description:"sv-description sv-panel__description",container:"sv-panel sv-row__panel",content:"sv-panel__content",icon:"sv-panel__icon",iconExpanded:"sv-panel__icon--expanded",footer:"sv-panel__footer",requiredText:"sv-panel__required-text",number:"sv-question__num"},paneldynamic:{root:"sv-paneldynamic",navigation:"sv-paneldynamic__navigation",title:"sv-title sv-question__title",button:"sv-btn",buttonRemove:"sv-paneldynamic__remove-btn",buttonRemoveRight:"sv-paneldynamic__remove-btn--right",buttonAdd:"sv-paneldynamic__add-btn",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",separator:"sv-paneldynamic__separator",panelWrapper:"sv-paneldynamic__panel-wrapper",panelWrapperInRow:"sv-paneldynamic__panel-wrapper--in-row",progressBtnIcon:"icon-progressbutton",footer:""},progress:"sv-progress sv-body__progress",progressBar:"sv-progress__bar",progressText:"sv-progress__text",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv-page sv-body__page",title:"sv-title sv-page__title",description:"sv-description sv-page__description"},pageTitle:"sv-title sv-page__title",pageDescription:"sv-description sv-page__description",row:"sv-row sv-clearfix",question:{mainRoot:"sv-question sv-row__question",flowRoot:"sv-question sv-row__question sv-row__question--flow",asCell:"sv-table__cell",header:"sv-question__header",headerLeft:"sv-question__header--location--left",headerTop:"sv-question__header--location--top",headerBottom:"sv-question__header--location--bottom",content:"sv-question__content",contentLeft:"sv-question__content--left",titleLeftRoot:"",answered:"sv-question--answered",titleOnAnswer:"sv-question__title--answer",titleOnError:"sv-question__title--error",title:"sv-title sv-question__title",titleExpandable:"sv-question__title--expandable",titleExpanded:"sv-question__title--expanded",titleCollapsed:"sv-question__title--collapsed",icon:"sv-question__icon",iconExpanded:"sv-question__icon--expanded",requiredText:"sv-question__required-text",number:"sv-question__num",description:"sv-description sv-question__description",descriptionUnderInput:"sv-description sv-question__description",comment:"sv-comment",required:"sv-question--required",titleRequired:"sv-question__title--required",indent:20,footer:"sv-question__footer",formGroup:"sv-question__form-group",hasError:"",disabled:"sv-question--disabled"},image:{root:"sv-image",image:"sv_image_image"},error:{root:"sv-question__erbox",icon:"",item:"",locationTop:"sv-question__erbox--location--top",locationBottom:"sv-question__erbox--location--bottom"},checkbox:{root:"sv-selectbase",item:"sv-item sv-checkbox sv-selectbase__item",itemSelectAll:"sv-checkbox--selectall",itemNone:"sv-checkbox--none",itemDisabled:"sv-item--disabled sv-checkbox--disabled",itemChecked:"sv-checkbox--checked",itemHover:"sv-checkbox--allowhover",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-checkbox__svg",itemSvgIconId:"#icon-moderncheck",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-checkbox__decorator",other:"sv-comment sv-question__other",column:"sv-selectbase__column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag"},radiogroup:{root:"sv-selectbase",item:"sv-item sv-radio sv-selectbase__item",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemDisabled:"sv-item--disabled sv-radio--disabled",itemChecked:"sv-radio--checked",itemHover:"sv-radio--allowhover",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-radio__svg",itemSvgIconId:"#icon-modernradio",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-radio__decorator",other:"sv-comment sv-question__other",clearButton:"sv-btn sv-selectbase__clear-btn",column:"sv-selectbase__column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemSelected:"sv-button-group__item--selected",itemHover:"sv-button-group__item--hover",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},boolean:{root:"sv_qbln",rootRadio:"sv_qbln",small:"sv-row__question--small",item:"sv-boolean sv-item",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-item--disabled sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qbln",checkboxItem:"sv-boolean sv-item",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyhidden",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator ",checkboxItemDecorator:"sv-item__svg sv-boolean__svg",indeterminatePath:"sv-boolean__indeterminate-path",svgIconCheckedId:"#icon-modernbooleancheckchecked",svgIconUncheckedId:"#icon-modernbooleancheckunchecked",svgIconIndId:"#icon-modernbooleancheckind"},text:{root:"sv-text",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter",onError:"sv-text--error"},multipletext:{root:"sv-multipletext",item:"sv-multipletext__item",itemLabel:"sv-multipletext__item-label",itemTitle:"sv-multipletext__item-title",row:"sv-multipletext__row",cell:"sv-multipletext__cell"},dropdown:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",control:"sv-dropdown",selectWrapper:"",other:"sv-comment sv-question__other",onError:"sv-dropdown--error",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",filterStringInput:"sv-dropdown__filter-string-input",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",hintPrefix:"sv-dropdown__hint-prefix",hintSuffix:"sv-dropdown__hint-suffix"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",selectWrapper:"sv_select_wrapper sv-tagbox_wrapper",other:"sv-input sv-comment sv-selectbase__other",cleanButton:"sv-tagbox_clean-button sv-dropdown_clean-button",cleanButtonSvg:"sv-tagbox_clean-button-svg sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv-tagbox__item_clean-button",cleanItemButtonSvg:"sv-tagbox__item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv-input sv-tagbox sv-dropdown",controlValue:"sv-tagbox__value sv-dropdown__value",controlEmpty:"sv-dropdown--empty sv-tagbox--empty",placeholderInput:"sv-tagbox__placeholder",filterStringInput:"sv-tagbox__filter-string-input sv-dropdown__filter-string-input"},imagepicker:{root:"sv-selectbase sv-imagepicker",column:"sv-selectbase__column",item:"sv-imagepicker__item",itemInline:"sv-imagepicker__item--inline",itemChecked:"sv-imagepicker__item--checked",itemDisabled:"sv-imagepicker__item--disabled",itemHover:"sv-imagepicker__item--allowhover",label:"sv-imagepicker__label",itemControl:"sv-imagepicker__control sv-visuallyhidden",image:"sv-imagepicker__image",itemText:"sv-imagepicker__text",clearButton:"sv-btn",other:"sv-comment sv-question__other"},matrix:{tableWrapper:"sv-matrix",root:"sv-table sv-matrix-root",rowError:"sv-matrix__row--error",cell:"sv-table__cell sv-matrix__cell",headerCell:"sv-table__cell sv-table__cell--header",label:"sv-item sv-radio sv-matrix__label",itemValue:"sv-visuallyhidden sv-item__control sv-radio__control",itemChecked:"sv-radio--checked",itemDisabled:"sv-item--disabled sv-radio--disabled",itemHover:"sv-radio--allowhover",materialDecorator:"sv-item__decorator sv-radio__decorator",itemDecorator:"sv-item__svg sv-radio__svg",cellText:"sv-matrix__text",cellTextSelected:"sv-matrix__text--checked",cellTextDisabled:"sv-matrix__text--disabled",cellResponsiveTitle:"sv-hidden",itemSvgIconId:"#icon-modernradio"},matrixdropdown:{root:"sv-table sv-matrixdropdown",cell:"sv-table__cell",headerCell:"sv-table__cell sv-table__cell--header",row:"sv-table__row",rowAdditional:"sv-table__row--additional",detailRow:"sv-table__row--detail",detailRowText:"sv-table__cell--detail-rowtext",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions"},matrixdynamic:{root:"sv-table sv-matrixdynamic",cell:"sv-table__cell",headerCell:"sv-table__cell sv-table__cell--header",button:"sv-btn",buttonAdd:"sv-matrixdynamic__add-btn",buttonRemove:"sv-matrixdynamic__remove-btn",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",row:"sv-table__row",detailRow:"sv-table__row--detail",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions",emptyRowsSection:"sv-table__empty--rows--section",emptyRowsText:"sv-table__empty--rows--text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod"},rating:{root:"sv-rating",item:"sv-rating__item",selected:"sv-rating__item--selected",minText:"sv-rating__min-text",itemText:"sv-rating__item-text",maxText:"sv-rating__max-text",itemDisabled:"sv-rating--disabled",filterStringInput:"sv-dropdown__filter-string-input",control:"sv-dropdown",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",itemSmiley:"sv-rating__item-smiley",itemStar:"sv-rating__item-star",itemSmileySelected:"sv-rating__item-smiley--selected",itemStarSelected:"sv-rating__item-star--selected"},comment:{root:"sv-comment",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv-file",other:"sv-comment sv-question__other",placeholderInput:"sv-visuallyhidden",preview:"sv-file__preview",fileSignBottom:"sv-file__sign",fileDecorator:"sv-file__decorator",fileInput:"sv-visuallyhidden",noFileChosen:"sv-description sv-file__no-file-chosen",chooseFile:"sv-btn sv-file__choose-btn",controlDisabled:"sv-file__choose-btn--disabled",removeButton:"sv-hidden",removeButtonBottom:"sv-btn sv-file__clean-btn",removeFile:"sv-hidden",removeFileSvg:"sv-file__remove-svg",removeFileSvgIconId:"icon-removefile",wrapper:"sv-file__wrapper",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv-signaturepad sjs_sp_container",small:"sv-row__question--small",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}},variables:{themeMark:"--sv-modern-mark"}};n.surveyCss.modern=o},"./src/defaultCss/cssstandard.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"defaultStandardCss",(function(){return o}));var n=r("./src/defaultCss/defaultV2Css.ts"),o={root:"sv_main sv_default_css",container:"sv_container",header:"sv_header",bodyContainer:"sv-components-row",body:"sv-components-column sv-components-column--expandable sv_body",bodyEmpty:"sv_body sv_body_empty",footer:"sv_nav",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"sv_nav_btn",completedPage:"sv_completed_page",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn",preview:"sv_preview_btn",edit:"sv_edit_btn"},progress:"sv_progress",progressBar:"sv_progress_bar",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv_p_root",title:"sv_page_title",description:""},pageTitle:"sv_page_title",pageDescription:"",row:"sv_row",question:{mainRoot:"sv_q sv_qstn",flowRoot:"sv_q_flow sv_qstn",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",requiredText:"sv_q_required_text",title:"sv_q_title",titleExpandable:"sv_q_title_expandable",titleExpanded:"sv_q_title_expanded",titleCollapsed:"sv_q_title_collapsed",number:"sv_q_num",description:"sv_q_description",comment:"",required:"",titleRequired:"",hasError:"",indent:20,footer:"sv_q_footer",formGroup:"form-group",asCell:"sv_matrix_cell",icon:"sv_question_icon",iconExpanded:"sv_expanded",disabled:"sv_q--disabled"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleExpanded:"sv_p_title_expanded",titleCollapsed:"sv_p_title_collapsed",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"sv_q_erbox",icon:"",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qcbc sv_qbln",rootRadio:"sv_qcbc sv_qbln",item:"sv-boolean",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qcbc sv_qbln",checkboxItem:"sv-boolean",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyvisible",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator",checkboxItemDecorator:"sv-item__svg sv-boolean__svg"},checkbox:{root:"sv_qcbc sv_qcbx",item:"sv_q_checkbox",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemChecked:"checked",itemInline:"sv_q_checkbox_inline",label:"sv_q_checkbox_label",labelChecked:"",itemControl:"sv_q_checkbox_control_item",itemDecorator:"sv-hidden",controlLabel:"sv_q_checkbox_control_label",other:"sv_q_other sv_q_checkbox_other",column:"sv_q_select_column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag"},comment:{remainingCharacterCounter:"sv-remaining-character-counter"},dropdown:{root:"",popup:"sv-dropdown-popup",control:"sv_q_dropdown_control",controlInputFieldComponent:"sv_q_dropdown_control__input-field-component",selectWrapper:"sv_select_wrapper",other:"sv_q_dd_other",cleanButton:"sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv_q_dropdown__value",filterStringInput:"sv_q_dropdown__filter-string-input",hintPrefix:"sv_q_dropdown__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image",noImage:"sv-image__no-image",noImageSvgIconId:"icon-no-image"},matrix:{root:"sv_q_matrix",label:"sv_q_m_label",itemChecked:"checked",itemDecorator:"sv-hidden",cell:"sv_q_m_cell",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected",cellLabel:"sv_q_m_cell_label",cellResponsiveTitle:"sv-hidden"},matrixdropdown:{root:"sv_q_matrix_dropdown",cell:"sv_matrix_cell",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",rowAdditional:"sv-matrix__row--additional",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions"},matrixdynamic:{root:"sv_q_matrix_dynamic",button:"sv_matrix_dynamic_button",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",cell:"sv_matrix_cell",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions",emptyRowsSection:"sv_matrix_empty_rows_section",emptyRowsText:"sv_matrix_empty_rows_text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod"},paneldynamic:{root:"sv_panel_dynamic",title:"sv_p_title",header:"sv-paneldynamic__header sv_header",headerTab:"sv-paneldynamic__header-tab",button:"",buttonAdd:"sv-paneldynamic__add-btn",buttonRemove:"sv_p_remove_btn",buttonRemoveRight:"sv_p_remove_btn_right",buttonPrev:"sv-paneldynamic__prev-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",panelWrapper:"sv_p_wrapper",panelWrapperInRow:"sv_p_wrapper_in_row",footer:"",progressBtnIcon:"icon-progressbutton"},multipletext:{root:"sv_q_mt",itemTitle:"sv_q_mt_title",item:"sv_q_mt_item",row:"sv_q_mt_row",itemLabel:"sv_q_mt_label",itemValue:"sv_q_mt_item_value sv_q_text_root"},radiogroup:{root:"sv_qcbc",item:"sv_q_radiogroup",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",itemDecorator:"sv-hidden",label:"sv_q_radiogroup_label",labelChecked:"",itemControl:"sv_q_radiogroup_control_item",controlLabel:"",other:"sv_q_other sv_q_radiogroup_other",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemInline:"sv_q_imagepicker_inline",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column",itemNoImage:"sv_q_imgsel__no-image",itemNoImageSvgIcon:"sv_q_imgsel__no-image-svg",itemNoImageSvgIconId:"icon-no-image"},rating:{root:"sv_q_rating",item:"sv_q_rating_item",itemFixedSize:"sv_q_rating_item_fixed",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text",itemStar:"sv_q_rating__item-star",itemStarSelected:"sv_q_rating__item-star--selected",itemSmiley:"sv_q_rating__item-smiley",itemSmileySelected:"sv_q_rating__item-smiley--selected"},text:{root:"sv_q_text_root",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv_q_file",placeholderInput:"sv-visuallyhidden",preview:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv-visuallyhidden",removeFile:"sv_q_file_remove",fileDecorator:"sv-file__decorator",fileSign:"sv_q_file_sign",chooseFile:"sv_q_file_choose_button",noFileChosen:"sv_q_file_placeholder",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv_q_signaturepad sjs_sp_container",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}},variables:{themeMark:"--sv-default-mark"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv_q_row__question--small",selectWrapper:"sv_select_wrapper sv_q_tagbox_wrapper",other:"sv_q_input sv_q_comment sv_q_selectbase__other",cleanButton:"sv_q_tagbox_clean-button sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_tagbox_clean-button-svg sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv_q_tagbox-item_clean-button",cleanItemButtonSvg:"sv_q_tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv_q_input sv_q_tagbox sv_q_dropdown_control",controlValue:"sv_q_tagbox__value sv_q_dropdown__value",controlEmpty:"sv_q_dropdown--empty sv_q_tagbox--empty",placeholderInput:"sv_q_tagbox__placeholder",filterStringInput:"sv_q_tagbox__filter-string-input sv_q_dropdown__filter-string-input",hint:"sv_q_tagbox__hint",hintPrefix:"sv_q_dropdown__hint-prefix sv_q_tagbox__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix sv_q_tagbox__hint-suffix",hintSuffixWrapper:"sv_q_tagbox__hint-suffix-wrapper"}};n.surveyCss.default=o,n.surveyCss.orange=o,n.surveyCss.darkblue=o,n.surveyCss.darkrose=o,n.surveyCss.stone=o,n.surveyCss.winter=o,n.surveyCss.winterstone=o},"./src/defaultCss/defaultV2Css.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"surveyCss",(function(){return n})),r.d(t,"defaultV2Css",(function(){return o})),r.d(t,"defaultV2ThemeName",(function(){return i}));var n={currentType:"",getCss:function(){var e=this.currentType?this[this.currentType]:o;return e||(e=o),e},getAvailableThemes:function(){return Object.keys(this).filter((function(e){return-1===["currentType","getCss","getAvailableThemes"].indexOf(e)}))}},o={root:"sd-root-modern",rootMobile:"sd-root-modern--mobile",rootReadOnly:"sd-root--readonly",container:"sd-container-modern",header:"sd-title sd-container-modern__title",bodyContainer:"sv-components-row",body:"sv-components-column sv-components-column--expandable sd-body",bodyWithTimer:"sd-body--with-timer",clockTimerRoot:"sd-timer",clockTimerRootTop:"sd-timer--top",clockTimerRootBottom:"sd-timer--bottom",clockTimerProgress:"sd-timer__progress",clockTimerProgressAnimation:"sd-timer__progress--animation",clockTimerTextContainer:"sd-timer__text-container",clockTimerMinorText:"sd-timer__text--minor",clockTimerMajorText:"sd-timer__text--major",bodyEmpty:"sd-body sd-body--empty",footer:"sd-footer sd-body__navigation sd-clearfix",title:"sd-title",description:"sd-description",logo:"sd-logo",logoImage:"sd-logo__image",headerText:"sd-header__text",headerClose:"sd-hidden",navigationButton:"",bodyNavigationButton:"sd-btn",completedPage:"sd-completedpage",timerRoot:"sd-body__timer",navigation:{complete:"sd-btn--action sd-navigation__complete-btn",prev:"sd-navigation__prev-btn",next:"sd-navigation__next-btn",start:"sd-navigation__start-btn",preview:"sd-navigation__preview-btn",edit:""},panel:{asPage:"sd-panel--as-page",number:"sd-element__num",title:"sd-title sd-element__title sd-panel__title",titleExpandable:"sd-element__title--expandable",titleNumInline:"sd-element__title--num-inline",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleOnExpand:"sd-panel__title--expanded",titleOnError:"sd-panel__title--error",titleBar:"sd-action-title-bar",description:"sd-description sd-panel__description",container:"sd-element sd-element--complex sd-panel sd-row__panel",withFrame:"sd-element--with-frame",content:"sd-panel__content",icon:"sd-panel__icon",iconExpanded:"sd-panel__icon--expanded",footer:"sd-panel__footer",requiredText:"sd-panel__required-text",header:"sd-panel__header sd-element__header sd-element__header--location-top",collapsed:"sd-element--collapsed",expanded:"sd-element--expanded",nested:"sd-element--nested",invisible:"sd-element--invisible",navigationButton:"",compact:"sd-element--with-frame sd-element--compact"},paneldynamic:{mainRoot:"sd-element sd-question sd-question--paneldynamic sd-element--complex sd-question--complex sd-row__question",empty:"sd-question--empty",root:"sd-paneldynamic",navigation:"sd-paneldynamic__navigation",title:"sd-title sd-element__title sd-question__title",header:"sd-paneldynamic__header sd-element__header",headerTab:"sd-paneldynamic__header-tab",button:"sd-action sd-paneldynamic__btn",buttonRemove:"sd-action--negative sd-paneldynamic__remove-btn",buttonAdd:"sd-paneldynamic__add-btn",buttonPrev:"sd-paneldynamic__prev-btn sd-action--icon sd-action",buttonPrevDisabled:"sd-action--disabled",buttonNextDisabled:"sd-action--disabled",buttonNext:"sd-paneldynamic__next-btn sd-action--icon sd-action",progressContainer:"sd-paneldynamic__progress-container",progress:"sd-progress",progressBar:"sd-progress__bar",progressText:"sd-paneldynamic__progress-text",separator:"sd-paneldynamic__separator",panelWrapper:"sd-paneldynamic__panel-wrapper",footer:"sd-paneldynamic__footer",panelFooter:"sd-paneldynamic__panel-footer",footerButtonsContainer:"sd-paneldynamic__buttons-container",panelWrapperInRow:"sd-paneldynamic__panel-wrapper--in-row",progressBtnIcon:"icon-progressbuttonv2",noEntriesPlaceholder:"sd-paneldynamic__placeholder sd-question__placeholder",compact:"sd-element--with-frame sd-element--compact"},progress:"sd-progress sd-body__progress",progressTop:"sd-body__progress--top",progressBottom:"sd-body__progress--bottom",progressBar:"sd-progress__bar",progressText:"sd-progress__text",progressButtonsContainerCenter:"sd-progress-buttons__container-center",progressButtonsContainer:"sd-progress-buttons__container",progressButtonsImageButtonLeft:"sd-progress-buttons__image-button-left",progressButtonsImageButtonRight:"sd-progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sd-progress-buttons__image-button--hidden",progressButtonsListContainer:"sd-progress-buttons__list-container",progressButtonsList:"sd-progress-buttons__list",progressButtonsListElementPassed:"sd-progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sd-progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sd-progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sd-progress-buttons__page-title",progressButtonsPageDescription:"sd-progress-buttons__page-description",progressTextInBar:"sd-hidden",page:{root:"sd-page sd-body__page",emptyHeaderRoot:"sd-page__empty-header",title:"sd-title sd-page__title",description:"sd-description sd-page__description"},pageTitle:"sd-title sd-page__title",pageDescription:"sd-description sd-page__description",row:"sd-row sd-clearfix",rowMultiple:"sd-row--multiple",rowCompact:"sd-row--compact",pageRow:"sd-page__row",question:{mainRoot:"sd-element sd-question sd-row__question",flowRoot:"sd-element sd-question sd-row__question sd-row__question--flow",withFrame:"sd-element--with-frame",asCell:"sd-table__cell",answered:"sd-question--answered",header:"sd-question__header sd-element__header",headerLeft:"sd-question__header--location--left",headerTop:"sd-question__header--location-top sd-element__header--location-top",headerBottom:"sd-question__header--location--bottom",content:"sd-question__content",contentLeft:"sd-question__content--left",titleNumInline:"sd-element__title--num-inline",titleLeftRoot:"sd-question--left",titleOnAnswer:"sd-question__title--answer",titleOnError:"sd-question__title--error",title:"sd-title sd-element__title sd-question__title",titleExpandable:"sd-element__title--expandable",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleBar:"sd-action-title-bar",requiredText:"sd-question__required-text",number:"sd-element__num",description:"sd-description sd-question__description",descriptionUnderInput:"sd-description sd-question__description sd-question__description--under-input",comment:"sd-input sd-comment",other:"sd-input sd-comment",required:"sd-question--required",titleRequired:"sd-question__title--required",indent:20,footer:"sd-question__footer",commentArea:"sd-question__comment-area",formGroup:"sd-question__form-group",hasError:"sd-question--error",collapsed:"sd-element--collapsed",expanded:"sd-element--expanded",nested:"sd-element--nested",invisible:"sd-element--invisible",composite:"sd-element--complex",disabled:"sd-question--disabled"},image:{mainRoot:"sd-question sd-question--image",root:"sd-image",image:"sd-image__image",adaptive:"sd-image__image--adaptive",noImage:"sd-image__no-image",noImageSvgIconId:"icon-no-image",withFrame:""},html:{mainRoot:"sd-question sd-row__question sd-question--html",root:"sd-html",withFrame:""},error:{root:"sd-question__erbox",icon:"",item:"",tooltip:"sd-question__erbox--tooltip",outsideQuestion:"sd-question__erbox--outside-question",aboveQuestion:"sd-question__erbox--above-question",belowQuestion:"sd-question__erbox--below-question",locationTop:"sd-question__erbox--location--top",locationBottom:"sd-question__erbox--location--bottom"},checkbox:{root:"sd-selectbase",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-checkbox sd-selectbase__item",itemOnError:"sd-item--error",itemSelectAll:"sd-checkbox--selectall",itemNone:"sd-checkbox--none",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",itemSvgIconId:"#icon-v2check",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-checkbox__decorator",other:"sd-input sd-comment sd-selectbase__other",column:"sd-selectbase__column"},radiogroup:{root:"sd-selectbase",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-radio sd-selectbase__item",itemOnError:"sd-item--error",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-radio__decorator",other:"sd-input sd-comment sd-selectbase__other",clearButton:"",column:"sd-selectbase__column"},boolean:{mainRoot:"sd-element sd-question sd-row__question sd-question--boolean",root:"sv_qcbc sv_qbln sd-scrollable-container sd-boolean-root",rootRadio:"sv_qcbc sv_qbln sd-scrollable-container sd-scrollable-container--compact",item:"sd-boolean",itemOnError:"sd-boolean--error",control:"sd-boolean__control sd-visuallyhidden",itemChecked:"sd-boolean--checked",itemIndeterminate:"sd-boolean--indeterminate",itemDisabled:"sd-boolean--disabled",itemHover:"sd-boolean--allowhover",label:"sd-boolean__label",switch:"sd-boolean__switch",disabledLabel:"sd-checkbox__label--disabled",sliderText:"sd-boolean__thumb-text",slider:"sd-boolean__thumb",sliderGhost:"sd-boolean__thumb-ghost",radioItem:"sd-item",radioItemChecked:"sd-item--checked sd-radio--checked",radioLabel:"sd-selectbase__label",radioControlLabel:"sd-item__control-label",radioFieldset:"sd-selectbase",itemRadioDecorator:"sd-item__svg sd-radio__svg",materialRadioDecorator:"sd-item__decorator sd-radio__decorator",itemRadioControl:"sd-visuallyhidden sd-item__control sd-radio__control",rootCheckbox:"sd-selectbase",checkboxItem:"sd-item sd-selectbase__item sd-checkbox",checkboxLabel:"sd-selectbase__label",checkboxItemOnError:"sd-item--error",checkboxItemIndeterminate:"sd-checkbox--intermediate",checkboxItemChecked:"sd-item--checked sd-checkbox--checked",checkboxItemDecorator:"sd-item__svg sd-checkbox__svg",checkboxItemDisabled:"sd-checkbox--disabled",controlCheckbox:"sd-visuallyhidden sd-item__control sd-checkbox__control",checkboxMaterialDecorator:"sd-item__decorator sd-checkbox__decorator",checkboxControlLabel:"sd-item__control-label",svgIconCheckedId:"#icon-v2check"},text:{root:"sd-input sd-text",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",content:"sd-text__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},multipletext:{root:"sd-multipletext",itemLabel:"sd-multipletext__item-container sd-input",itemLabelOnError:"sd-multipletext__item-container--error",item:"sd-multipletext__item",itemTitle:"sd-multipletext__item-title",content:"sd-multipletext__content sd-question__content",row:"sd-multipletext__row",cell:"sd-multipletext__cell"},dropdown:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",item:"sd-item sd-radio sd-selectbase__item",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",cleanButton:"sd-dropdown_clean-button",cleanButtonSvg:"sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear",control:"sd-input sd-dropdown",controlInputFieldComponent:"sd-dropdown__input-field-component",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlEmpty:"sd-dropdown--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-radio__decorator",hintPrefix:"sd-dropdown__hint-prefix",hintSuffix:"sd-dropdown__hint-suffix"},imagepicker:{mainRoot:"sd-element sd-question sd-row__question",root:"sd-selectbase sd-imagepicker",rootColumn:"sd-imagepicker--column",item:"sd-imagepicker__item",itemOnError:"sd-imagepicker__item--error",itemInline:"sd-imagepicker__item--inline",itemChecked:"sd-imagepicker__item--checked",itemDisabled:"sd-imagepicker__item--disabled",itemHover:"sd-imagepicker__item--allowhover",label:"sd-imagepicker__label",itemDecorator:"sd-imagepicker__item-decorator",imageContainer:"sd-imagepicker__image-container",itemControl:"sd-imagepicker__control sd-visuallyhidden",image:"sd-imagepicker__image",itemText:"sd-imagepicker__text",other:"sd-input sd-comment",itemNoImage:"sd-imagepicker__no-image",itemNoImageSvgIcon:"sd-imagepicker__no-image-svg",itemNoImageSvgIconId:"icon-no-image",column:"sd-selectbase__column sd-imagepicker__column",checkedItemDecorator:"sd-imagepicker__check-decorator",checkedItemSvgIcon:"sd-imagepicker__check-icon",checkedItemSvgIconId:"icon-v2check_24x24"},matrix:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",tableWrapper:"sd-matrix sd-table-wrapper",root:"sd-table sd-matrix__table",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",rootAlternateRows:"sd-table--alternate-rows",rowError:"sd-matrix__row--error",cell:"sd-table__cell sd-matrix__cell",row:"sd-table__row",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-matrix__cell sd-table__cell--row-text",label:"sd-item sd-radio sd-matrix__label",itemOnError:"sd-item--error",itemValue:"sd-visuallyhidden sd-item__control sd-radio__control",itemChecked:"sd-item--checked sd-radio--checked",itemDisabled:"sd-item--disabled sd-radio--disabled",itemHover:"sd-radio--allowhover",materialDecorator:"sd-item__decorator sd-radio__decorator",itemDecorator:"sd-item__svg sd-radio__svg",cellText:"sd-matrix__text",cellTextSelected:"sd-matrix__text--checked",cellTextDisabled:"sd-matrix__text--disabled",cellResponsiveTitle:"sd-matrix__responsive-title",compact:"sd-element--with-frame sd-element--compact"},matrixdropdown:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",root:"sd-table sd-matrixdropdown",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",tableWrapper:"sd-table-wrapper",rootAlternateRows:"sd-table--alternate-rows",cell:"sd-table__cell",itemCell:"sd-table__cell--item",row:"sd-table__row",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",cellRequiredText:"sd-question__required-text",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",actionsCell:"sd-table__cell sd-table__cell--actions",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-table__question-wrapper",compact:"sd-element--with-frame sd-element--compact"},matrixdynamic:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",empty:"sd-question--empty",root:"sd-table sd-matrixdynamic",tableWrapper:"sd-table-wrapper",content:"sd-matrixdynamic__content sd-question__content",cell:"sd-table__cell",row:"sd-table__row",itemCell:"sd-table__cell--item",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",cellRequiredText:"sd-question__required-text",button:"sd-action sd-matrixdynamic__btn",detailRow:"sd-table__row sd-table__row--detail",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",detailPanelCell:"sd-table__cell--detail-panel",actionsCell:"sd-table__cell sd-table__cell--actions",buttonAdd:"sd-matrixdynamic__add-btn",buttonRemove:"sd-action--negative sd-matrixdynamic__remove-btn",iconAdd:"",iconRemove:"",dragElementDecorator:"sd-drag-element__svg",iconDragElement:"#icon-v2dragelement_16x16",footer:"sd-matrixdynamic__footer",emptyRowsSection:"sd-matrixdynamic__placeholder sd-question__placeholder",iconDrag:"sv-matrixdynamic__drag-icon",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-table__question-wrapper",compact:"sd-element--with-frame sd-element--compact"},rating:{rootDropdown:"sd-scrollable-container sd-scrollable-container--compact sd-selectbase",root:"sd-scrollable-container sd-rating",rootWrappable:"sd-scrollable-container sd-rating sd-rating--wrappable",item:"sd-rating__item",itemOnError:"sd-rating__item--error",itemHover:"sd-rating__item--allowhover",selected:"sd-rating__item--selected",itemStar:"sd-rating__item-star",itemStarOnError:"sd-rating__item-star--error",itemStarHover:"sd-rating__item-star--allowhover",itemStarSelected:"sd-rating__item-star--selected",itemStarDisabled:"sd-rating__item-star--disabled",itemStarHighlighted:"sd-rating__item-star--highlighted",itemStarUnhighlighted:"sd-rating__item-star--unhighlighted",itemStarSmall:"sd-rating__item-star--small",itemSmiley:"sd-rating__item-smiley",itemSmileyOnError:"sd-rating__item-smiley--error",itemSmileyHover:"sd-rating__item-smiley--allowhover",itemSmileySelected:"sd-rating__item-smiley--selected",itemSmileyDisabled:"sd-rating__item-smiley--disabled",itemSmileyHighlighted:"sd-rating__item-star--highlighted",itemSmileyScaleColored:"sd-rating__item-smiley--scale-colored",itemSmileyRateColored:"sd-rating__item-smiley--rate-colored",itemSmileySmall:"sd-rating__item-smiley--small",minText:"sd-rating__item-text sd-rating__min-text",itemText:"sd-rating__item-text",maxText:"sd-rating__item-text sd-rating__max-text",itemDisabled:"sd-rating__item--disabled",itemFixedSize:"sd-rating__item--fixed-size",control:"sd-input sd-dropdown",itemSmall:"sd-rating--small",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlEmpty:"sd-dropdown--empty",filterStringInput:"sd-dropdown__filter-string-input",popup:"sv-dropdown-popup",onError:"sd-input--error"},comment:{root:"sd-input sd-comment",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",content:"sd-comment__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},expression:"sd-expression",file:{root:"sd-file",other:"sd-input sd-comment",placeholderInput:"sd-visuallyhidden",preview:"sd-file__preview",fileSign:"",fileList:"sd-file__list",fileSignBottom:"sd-file__sign",dragArea:"sd-file__drag-area",dragAreaActive:"sd-file__drag-area--active",fileDecorator:"sd-file__decorator",onError:"sd-file__decorator--error",fileDecoratorDrag:"sd-file__decorator--drag",fileInput:"sd-visuallyhidden",noFileChosen:"sd-description sd-file__no-file-chosen",chooseFile:"sd-file__choose-btn",chooseFileAsText:"sd-action sd-file__choose-btn--text",chooseFileAsTextDisabled:"sd-action--disabled",chooseFileAsIcon:"sd-context-btn sd-file__choose-btn--icon",chooseFileIconId:"icon-choosefile",disabled:"sd-file__choose-btn--disabled",removeButton:"sd-context-btn sd-context-btn--negative sd-file__btn sd-file__clean-btn",removeButtonBottom:"",removeButtonIconId:"icon-clear",removeFile:"sd-hidden",removeFileSvg:"",removeFileSvgIconId:"icon-delete",wrapper:"sd-file__wrapper",defaultImage:"sd-file__default-image",defaultImageIconId:"icon-defaultfile",leftIconId:"icon-arrowleft",rightIconId:"icon-arrowright",removeFileButton:"sd-context-btn sd-context-btn--negative sd-file__remove-file-button",dragAreaPlaceholder:"sd-file__drag-area-placeholder",imageWrapper:"sd-file__image-wrapper",single:"sd-file--single",singleImage:"sd-file--single-image",mobile:"sd-file--mobile"},signaturepad:{mainRoot:"sd-element sd-question sd-question--signature sd-row__question",root:"sd-signaturepad sjs_sp_container",small:"sd-row__question--small",controls:"sjs_sp_controls sd-signaturepad__controls",placeholder:"sjs_sp_placeholder",clearButton:"sjs_sp_clear sd-context-btn sd-context-btn--negative sd-signaturepad__clear",clearButtonIconId:"icon-clear"},saveData:{root:"sv-save-data_root",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sd-ranking--disabled",rootDesignMode:"sv-ranking--design-mode",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",item:"sv-ranking-item",itemContent:"sv-ranking-item__content sd-ranking-item__content",itemIndex:"sv-ranking-item__index sd-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty sd-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking--drag",itemOnError:"sv-ranking-item--error"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},list:{root:"sv-list__container sd-list",item:"sv-list__item sd-list__item",itemBody:"sv-list__item-body sd-list__item-body",itemSelected:"sv-list__item--selected sd-list__item--selected",itemFocused:"sv-list__item--focused sd-list__item--focused"},actionBar:{root:"sd-action-bar",item:"sd-action",defaultSizeMode:"",smallSizeMode:"",itemPressed:"sd-action--pressed",itemAsIcon:"sd-action--icon",itemIcon:"sd-action__icon",itemTitle:"sd-action__title"},variables:{mobileWidth:"--sd-mobile-width",imagepickerGapBetweenItems:"--sd-imagepicker-gap",themeMark:"--sv-defaultV2-mark"},tagbox:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",item:"sd-item sd-radio sd-selectbase__item",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",cleanButton:"sd-tagbox_clean-button sd-dropdown_clean-button",cleanButtonSvg:"sd-tagbox_clean-button-svg sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear",cleanItemButton:"sd-tagbox-item_clean-button",cleanItemButtonSvg:"sd-tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sd-input sd-tagbox sd-dropdown",controlValue:"sd-tagbox__value sd-dropdown__value",controlValueItems:"sd-tagbox__value-items",placeholderInput:"sd-tagbox__placeholder",controlDisabled:"sd-input--disabled",controlEmpty:"sd-dropdown--empty sd-tagbox--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-tagbox__filter-string-input sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-checkbox__decorator",hint:"sd-tagbox__hint",hintPrefix:"sd-dropdown__hint-prefix sd-tagbox__hint-prefix",hintSuffix:"sd-dropdown__hint-suffix sd-tagbox__hint-suffix",hintSuffixWrapper:"sd-tagbox__hint-suffix-wrapper"}},i="defaultV2";n[i]=o},"./src/defaultTitle.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DefaultTitleModel",(function(){return o}));var n=r("./src/utils/cssClassBuilder.ts"),o=function(){function e(){}return e.getIconCss=function(e,t){return(new n.CssClassBuilder).append(e.icon).append(e.iconExpanded,!t).toString()},e}()},"./src/drag-drop-helper-v1.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragDropInfo",(function(){return n}));var n=function(e,t,r){void 0===r&&(r=-1),this.source=e,this.target=t,this.nestedPanelDepth=r}},"./src/drag-drop-page-helper-v1.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragDropPageHelperV1",(function(){return i}));var n=r("./src/drag-drop-helper-v1.ts"),o=r("./src/settings.ts"),i=function(){function e(e){this.page=e}return e.prototype.getDragDropInfo=function(){return this.dragDropInfo},e.prototype.dragDropStart=function(e,t,r){void 0===r&&(r=-1),this.dragDropInfo=new n.DragDropInfo(e,t,r)},e.prototype.dragDropMoveTo=function(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=!1),!this.dragDropInfo)return!1;if(this.dragDropInfo.destination=e,this.dragDropInfo.isBottom=t,this.dragDropInfo.isEdge=r,this.correctDragDropInfo(this.dragDropInfo),!this.dragDropCanDropTagert())return!1;if(!this.dragDropCanDropSource()||!this.dragDropAllowFromSurvey()){if(this.dragDropInfo.source){var n=this.page.dragDropFindRow(this.dragDropInfo.target);this.page.updateRowsRemoveElementFromRow(this.dragDropInfo.target,n)}return!1}return this.page.dragDropAddTarget(this.dragDropInfo),!0},e.prototype.correctDragDropInfo=function(e){if(e.destination){var t=e.destination.isPanel?e.destination:null;t&&(e.target.isLayoutTypeSupported(t.getChildrenLayoutType())||(e.isEdge=!0))}},e.prototype.dragDropAllowFromSurvey=function(){var e=this.dragDropInfo.destination;if(!e||!this.page.survey)return!0;var t=null,r=null,n=e.isPage||!this.dragDropInfo.isEdge&&e.isPanel?e:e.parent;if(!e.isPage){var o=e.parent;if(o){var i=o.elements,s=i.indexOf(e);s>-1&&(t=e,r=e,this.dragDropInfo.isBottom?t=s<i.length-1?i[s+1]:null:r=s>0?i[s-1]:null)}}var a={allow:!0,target:this.dragDropInfo.target,source:this.dragDropInfo.source,parent:n,insertAfter:r,insertBefore:t};return this.page.survey.dragAndDropAllow(a)},e.prototype.dragDropFinish=function(e){if(void 0===e&&(e=!1),this.dragDropInfo){var t=this.dragDropInfo.target,r=this.dragDropInfo.source,n=this.dragDropInfo.destination,i=this.page.dragDropFindRow(t),s=this.dragDropGetElementIndex(t,i);this.page.updateRowsRemoveElementFromRow(t,i);var a=[],l=[];if(!e&&i){if(this.page.isDesignMode&&o.settings.supportCreatorV2){var u=r&&r.parent&&r.parent.dragDropFindRow(r);i.panel.elements[s]&&i.panel.elements[s].startWithNewLine&&i.elements.length>1&&i.panel.elements[s]===n&&(a.push(t),l.push(i.panel.elements[s])),!(t.startWithNewLine&&i.elements.length>1)||i.panel.elements[s]&&i.panel.elements[s].startWithNewLine||l.push(t),u&&u.elements[0]===r&&u.elements[1]&&a.push(u.elements[1]),i.elements.length<=1&&a.push(t),t.startWithNewLine&&i.elements.length>1&&i.elements[0]!==n&&l.push(t)}r&&r.parent&&(this.page.survey.startMovingQuestion(),i.panel==r.parent?(i.panel.dragDropMoveElement(r,t,s),s=-1):r.parent.removeElement(r)),s>-1&&i.panel.addElement(t,s),this.page.survey.stopMovingQuestion()}return a.map((function(e){e.startWithNewLine=!0})),l.map((function(e){e.startWithNewLine=!1})),this.dragDropInfo=null,e?null:t}},e.prototype.dragDropGetElementIndex=function(e,t){if(!t)return-1;var r=t.elements.indexOf(e);if(0==t.index)return r;var n=t.panel.rows[t.index-1],o=n.elements[n.elements.length-1];return r+t.panel.elements.indexOf(o)+1},e.prototype.dragDropCanDropTagert=function(){var e=this.dragDropInfo.destination;return!(e&&!e.isPage)||this.dragDropCanDropCore(this.dragDropInfo.target,e)},e.prototype.dragDropCanDropSource=function(){var e=this.dragDropInfo.source;if(!e)return!0;var t=this.dragDropInfo.destination;if(!this.dragDropCanDropCore(e,t))return!1;if(this.page.isDesignMode&&o.settings.supportCreatorV2){if(this.page.dragDropFindRow(e)!==this.page.dragDropFindRow(t)){if(!e.startWithNewLine&&t.startWithNewLine)return!0;if(e.startWithNewLine&&!t.startWithNewLine)return!0}var r=this.page.dragDropFindRow(t);if(r&&1==r.elements.length)return!0}return this.dragDropCanDropNotNext(e,t,this.dragDropInfo.isEdge,this.dragDropInfo.isBottom)},e.prototype.dragDropCanDropCore=function(e,t){if(!t)return!0;if(this.dragDropIsSameElement(t,e))return!1;if(e.isPanel){var r=e;if(r.containsElement(t)||r.getElementByName(t.name))return!1}return!0},e.prototype.dragDropCanDropNotNext=function(e,t,r,n){if(!t||t.isPanel&&!r)return!0;if(void 0===e.parent||e.parent!==t.parent)return!0;var o=e.parent,i=o.elements.indexOf(e),s=o.elements.indexOf(t);return s<i&&!n&&s--,n&&s++,i<s?s-i>1:i-s>0},e.prototype.dragDropIsSameElement=function(e,t){return e==t||e.name==t.name},e}()},"./src/drag-drop-panel-helper-v1.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragDropPanelHelperV1",(function(){return i}));var n=r("./src/drag-drop-helper-v1.ts"),o=r("./src/settings.ts"),i=function(){function e(e){this.panel=e}return e.prototype.dragDropAddTarget=function(e){var t=this.dragDropFindRow(e.target);this.dragDropAddTargetToRow(e,t)&&this.panel.updateRowsRemoveElementFromRow(e.target,t)},e.prototype.dragDropFindRow=function(e){if(!e||e.isPage)return null;for(var t=e,r=this.panel.rows,n=0;n<r.length;n++)if(r[n].elements.indexOf(t)>-1)return r[n];for(n=0;n<this.panel.elements.length;n++){var o=this.panel.elements[n].getPanel();if(o){var i=o.dragDropFindRow(t);if(i)return i}}return null},e.prototype.dragDropMoveElement=function(e,t,r){r>e.parent.elements.indexOf(e)&&r--,this.panel.removeElement(e),this.panel.addElement(t,r)},e.prototype.updateRowsOnElementAdded=function(e,t,r,o){r||((r=new n.DragDropInfo(null,e)).target=e,r.isEdge=this.panel.elements.length>1,this.panel.elements.length<2?r.destination=o:(r.isBottom=t>0,r.destination=0==t?this.panel.elements[1]:this.panel.elements[t-1])),this.dragDropAddTargetToRow(r,null)},e.prototype.dragDropAddTargetToRow=function(e,t){if(!e.destination)return!0;if(this.dragDropAddTargetToEmptyPanel(e))return!0;var r=e.destination,n=this.dragDropFindRow(r);return!n||(e.target.startWithNewLine?this.dragDropAddTargetToNewRow(e,n,t):this.dragDropAddTargetToExistingRow(e,n,t))},e.prototype.dragDropAddTargetToEmptyPanel=function(e){if(e.destination.isPage)return this.dragDropAddTargetToEmptyPanelCore(this.panel.root,e.target,e.isBottom),!0;var t=e.destination;if(t.isPanel&&!e.isEdge){var r=t;if(e.target.template===t)return!1;if(e.nestedPanelDepth<0||e.nestedPanelDepth>=r.depth)return this.dragDropAddTargetToEmptyPanelCore(t,e.target,e.isBottom),!0}return!1},e.prototype.dragDropAddTargetToExistingRow=function(e,t,r){var n=t.elements.indexOf(e.destination);if(0==n&&!e.isBottom)if(this.panel.isDesignMode&&o.settings.supportCreatorV2);else if(t.elements[0].startWithNewLine)return t.index>0?(e.isBottom=!0,t=t.panel.rows[t.index-1],e.destination=t.elements[t.elements.length-1],this.dragDropAddTargetToExistingRow(e,t,r)):this.dragDropAddTargetToNewRow(e,t,r);var i=-1;r==t&&(i=t.elements.indexOf(e.target)),e.isBottom&&n++;var s=this.panel.findRowByElement(e.source);return(s!=t||s.elements.indexOf(e.source)!=n)&&n!=i&&(i>-1&&(t.elements.splice(i,1),i<n&&n--),t.elements.splice(n,0,e.target),t.updateVisible(),i<0)},e.prototype.dragDropAddTargetToNewRow=function(e,t,r){var n=t.panel.createRowAndSetLazy(t.panel.rows.length);this.panel.isDesignMode&&o.settings.supportCreatorV2&&n.setIsLazyRendering(!1),n.addElement(e.target);var i=t.index;if(e.isBottom&&i++,r&&r.panel==n.panel&&r.index==i)return!1;var s=this.panel.findRowByElement(e.source);return!(s&&s.panel==n.panel&&1==s.elements.length&&s.index==i||(t.panel.rows.splice(i,0,n),0))},e.prototype.dragDropAddTargetToEmptyPanelCore=function(e,t,r){var n=e.createRow();n.addElement(t),0==e.elements.length||r?e.rows.push(n):e.rows.splice(0,0,n)},e}()},"./src/dragdrop/choices.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragDropChoices",(function(){return s}));var n,o=r("./src/dragdrop/core.ts"),i=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.doDragOver=function(){"imagepicker"!==t.parentElement.getType()&&(t.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button").style.cursor="grabbing")},t.doBanDropHere=function(){"imagepicker"!==t.parentElement.getType()&&(t.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button").style.cursor="not-allowed")},t}return i(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"item-value"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,r){if("imagepicker"===this.parentElement.getType())return this.createImagePickerShortcut(this.draggedElement,e,t,r);var n=document.createElement("div");n.style.cssText=" \n cursor: grabbing;\n position: absolute;\n z-index: 1000;\n font-family: var(--font-family, $font-family);\n ";var o=t.closest("[data-sv-drop-target-item-value]").cloneNode(!0);o.style.cssText="\n min-width: 100px;\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);\n background-color: var(--background, white);\n border-radius: 36px;\n padding-right: 16px;\n margin-left: 0;\n ",o.querySelector(".svc-item-value-controls__drag-icon").style.visibility="visible",o.querySelector(".svc-item-value-controls__remove").style.backgroundColor="transparent",o.classList.remove("svc-item-value--moveup"),o.classList.remove("svc-item-value--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,n.appendChild(o);var i=t.getBoundingClientRect();return n.shortcutXOffset=r.clientX-i.x,n.shortcutYOffset=r.clientY-i.y,this.isBottom=null,n},t.prototype.createImagePickerShortcut=function(e,t,r,n){var o=document.createElement("div");o.style.cssText=" \n cursor: grabbing;\n position: absolute;\n z-index: 1000;\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1), 0px 2px 6px rgba(0, 0, 0, 0.1);\n padding: 4px;\n border-radius: 4px;\n background: white;\n ";var i=r.closest("[data-sv-drop-target-item-value]"),s=i.querySelector(".svc-image-item-value-controls"),a=i.querySelector(".sd-imagepicker__image-container"),l=i.querySelector(e.imageLink?"img":".sd-imagepicker__no-image").cloneNode(!0);return s.style.display="none",a.style.width=l.width+"px",a.style.height=l.height+"px",l.style.objectFit="cover",l.style.borderRadius="4px",o.appendChild(l),o},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.choices.filter((function(t){return""+t.value==e}))[0]},t.prototype.getVisibleChoices=function(){var e=this.parentElement;return"ranking"===e.getType()?e.rankingChoices:e.visibleChoices},t.prototype.isDropTargetValid=function(e,t){var r=this.getVisibleChoices();if("imagepicker"!==this.parentElement.getType()){var n=r.indexOf(this.dropTarget),o=r.indexOf(this.draggedElement);if(o>n&&this.dropTarget.isDragDropMoveUp)return this.dropTarget.isDragDropMoveUp=!1,!1;if(o<n&&this.dropTarget.isDragDropMoveDown)return this.dropTarget.isDragDropMoveDown=!1,!1}return-1!==r.indexOf(e)},t.prototype.calculateIsBottom=function(e){var t=this.getVisibleChoices();return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(t){if(!this.isDropTargetDoesntChanged(this.isBottom)&&this.dropTarget!==this.draggedElement){var r=this.getVisibleChoices(),n=r.indexOf(this.dropTarget),o=r.indexOf(this.draggedElement);r.splice(o,1),r.splice(n,0,this.draggedElement),"imagepicker"!==this.parentElement.getType()&&(o!==n&&(t.classList.remove("svc-item-value--moveup"),t.classList.remove("svc-item-value--movedown"),this.dropTarget.isDragDropMoveDown=!1,this.dropTarget.isDragDropMoveUp=!1),o>n&&(this.dropTarget.isDragDropMoveDown=!0),o<n&&(this.dropTarget.isDragDropMoveUp=!0),e.prototype.ghostPositionChanged.call(this))}},t.prototype.doDrop=function(){var e=this.parentElement.choices,t=this.getVisibleChoices().filter((function(t){return-1!==e.indexOf(t)})),r=e.indexOf(this.draggedElement),n=t.indexOf(this.draggedElement);return e.splice(r,1),e.splice(n,0,this.draggedElement),this.parentElement},t.prototype.clear=function(){this.parentElement&&this.updateVisibleChoices(this.parentElement),e.prototype.clear.call(this)},t.prototype.updateVisibleChoices=function(e){"ranking"===e.getType()?e.updateRankingChoices():e.updateVisibleChoices()},t}(o.DragDropCore)},"./src/dragdrop/core.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragDropCore",(function(){return i}));var n=r("./src/base.ts"),o=r("./src/dragdrop/dom-adapter.ts"),i=function(){function e(e,t,r,i){var s=this;this.surveyValue=e,this.creator=t,this._isBottom=null,this.onGhostPositionChanged=new n.EventBase,this.onDragStart=new n.EventBase,this.onDragEnd=new n.EventBase,this.onBeforeDrop=this.onDragStart,this.onAfterDrop=this.onDragEnd,this.draggedElement=null,this.dropTarget=null,this.prevDropTarget=null,this.allowDropHere=!1,this.banDropHere=function(){s.allowDropHere=!1,s.doBanDropHere(),s.dropTarget=null,s.domAdapter.draggedElementShortcut.style.cursor="not-allowed",s.isBottom=null},this.doBanDropHere=function(){},this.domAdapter=i||new o.DragDropDOMAdapter(this,r)}return Object.defineProperty(e.prototype,"isBottom",{get:function(){return!!this._isBottom},set:function(e){this._isBottom=e,this.ghostPositionChanged()},enumerable:!1,configurable:!0}),e.prototype.ghostPositionChanged=function(){this.onGhostPositionChanged.fire({},{})},Object.defineProperty(e.prototype,"dropTargetDataAttributeName",{get:function(){return"[data-sv-drop-target-"+this.draggedElementType+"]"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"survey",{get:function(){return this.surveyValue||this.creator.survey},enumerable:!1,configurable:!0}),e.prototype.startDrag=function(e,t,r,n,o){void 0===o&&(o=!1),this.domAdapter.startDrag(e,t,r,n,o)},e.prototype.dragInit=function(e,t,r,n){this.draggedElement=t,this.parentElement=r;var o=this.getShortcutText(this.draggedElement);this.domAdapter.draggedElementShortcut=this.createDraggedElementShortcut(o,n,e),this.onStartDrag()},e.prototype.onStartDrag=function(){},e.prototype.isDropTargetDoesntChanged=function(e){return this.dropTarget===this.prevDropTarget&&e===this.isBottom},e.prototype.getShortcutText=function(e){return e.shortcutText},e.prototype.createDraggedElementShortcut=function(e,t,r){var n=document.createElement("div");return n.innerText=e,n.className=this.getDraggedElementClass(),n},e.prototype.getDraggedElementClass=function(){return"sv-dragged-element-shortcut"},e.prototype.doDragOver=function(){},e.prototype.afterDragOver=function(e){},e.prototype.findDropTargetNodeFromPoint=function(e,t){this.domAdapter.draggedElementShortcut.hidden=!0;var r=document.elementFromPoint(e,t);return this.domAdapter.draggedElementShortcut.hidden=!1,r?this.findDropTargetNodeByDragOverNode(r):null},e.prototype.getDataAttributeValueByNode=function(e){var t=this,r="svDropTarget";return this.draggedElementType.split("-").forEach((function(e){r+=t.capitalizeFirstLetter(e)})),e.dataset[r]},e.prototype.getDropTargetByNode=function(e,t){var r=this.getDataAttributeValueByNode(e);return this.getDropTargetByDataAttributeValue(r,e,t)},e.prototype.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.prototype.calculateVerticalMiddleOfHTMLElement=function(e){var t=e.getBoundingClientRect();return t.y+t.height/2},e.prototype.calculateHorizontalMiddleOfHTMLElement=function(e){var t=e.getBoundingClientRect();return t.x+t.width/2},e.prototype.calculateIsBottom=function(e,t){return!1},e.prototype.findDropTargetNodeByDragOverNode=function(e){return e.closest(this.dropTargetDataAttributeName)},e.prototype.dragOver=function(e){var t=this.findDropTargetNodeFromPoint(e.clientX,e.clientY);if(t){this.dropTarget=this.getDropTargetByNode(t,e);var r=this.isDropTargetValid(this.dropTarget,t);if(this.doDragOver(),r){var n=this.calculateIsBottom(e.clientY,t);this.allowDropHere=!0,this.isDropTargetDoesntChanged(n)||(this.isBottom=null,this.isBottom=n,this.afterDragOver(t),this.prevDropTarget=this.dropTarget)}else this.banDropHere()}else this.banDropHere()},e.prototype.drop=function(){if(this.allowDropHere){var e=this.draggedElement.parent;this.onDragStart.fire(this,{fromElement:e,draggedElement:this.draggedElement});var t=this.doDrop();this.onDragEnd.fire(this,{fromElement:e,draggedElement:t,toElement:this.dropTarget})}},e.prototype.clear=function(){this.dropTarget=null,this.draggedElement=null,this.isBottom=null,this.parentElement=null},e}()},"./src/dragdrop/dom-adapter.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragDropDOMAdapter",(function(){return s}));var n=r("./src/utils/utils.ts"),o=r("./src/utils/devices.ts"),i=r("./src/settings.ts");"undefined"!=typeof window&&window.addEventListener("touchmove",(function(e){s.PreventScrolling&&e.preventDefault()}),{passive:!1});var s=function(){function e(t,r){var n=this;this.dd=t,this.longTap=r,this.scrollIntervalId=null,this.stopLongTapIfMoveEnough=function(e){e.preventDefault(),n.currentX=e.pageX,n.currentY=e.pageY,n.isMicroMovement||(document.body.style.setProperty("touch-action",""),document.body.style.setProperty("user-select",""),document.body.style.setProperty("-webkit-user-select",""),n.stopLongTap())},this.stopLongTap=function(e){clearTimeout(n.timeoutID),n.timeoutID=null,document.removeEventListener("pointerup",n.stopLongTap),document.removeEventListener("pointermove",n.stopLongTapIfMoveEnough)},this.handlePointerCancel=function(e){n.clear()},this.handleEscapeButton=function(e){27==e.keyCode&&n.clear()},this.onContextMenu=function(e){e.preventDefault(),e.stopPropagation()},this.dragOver=function(e){n.moveShortcutElement(e),n.draggedElementShortcut.style.cursor="grabbing",n.dd.dragOver(e)},this.clear=function(){cancelAnimationFrame(n.scrollIntervalId),document.removeEventListener("pointermove",n.dragOver),document.removeEventListener("pointercancel",n.handlePointerCancel),document.removeEventListener("keydown",n.handleEscapeButton),document.removeEventListener("pointerup",n.drop),n.draggedElementShortcut.removeEventListener("pointerup",n.drop),o.IsTouch&&n.draggedElementShortcut.removeEventListener("contextmenu",n.onContextMenu),i.settings.environment.rootElement.removeChild(n.draggedElementShortcut),n.dd.clear(),n.draggedElementShortcut=null,n.scrollIntervalId=null,o.IsTouch&&(n.savedTargetNode&&i.settings.environment.rootElement.removeChild(n.savedTargetNode),e.PreventScrolling=!1),document.body.style.setProperty("touch-action",""),document.body.style.setProperty("user-select",""),document.body.style.setProperty("-webkit-user-select","")},this.drop=function(){n.dd.drop(),n.clear()},this.draggedElementShortcut=null}return Object.defineProperty(e.prototype,"isMicroMovement",{get:function(){var e=Math.abs(this.currentX-this.startX),t=Math.abs(this.currentY-this.startY);return e<5&&t<5},enumerable:!1,configurable:!0}),e.prototype.startLongTapProcessing=function(e,t,r,n,o){var s=this;void 0===o&&(o=!1),this.startX=e.pageX,this.startY=e.pageY,document.body.style.setProperty("touch-action","none","important"),document.body.style.setProperty("user-select","none","important"),document.body.style.setProperty("-webkit-user-select","none","important"),this.timeoutID=setTimeout((function(){s.doStartDrag(e,t,r,n),o||(s.savedTargetNode=e.target,s.savedTargetNode.style.cssText="\n position: absolute;\n height: 1px!important;\n width: 1px!important;\n overflow: hidden;\n clip: rect(1px 1px 1px 1px);\n clip: rect(1px, 1px, 1px, 1px);\n ",i.settings.environment.rootElement.appendChild(s.savedTargetNode)),s.stopLongTap()}),this.longTap?500:0),document.addEventListener("pointerup",this.stopLongTap),document.addEventListener("pointermove",this.stopLongTapIfMoveEnough)},e.prototype.moveShortcutElement=function(e){this.doScroll(e.clientY,e.clientX);var t=this.draggedElementShortcut.offsetHeight,r=this.draggedElementShortcut.offsetWidth,o=this.draggedElementShortcut.shortcutXOffset||r/2,s=this.draggedElementShortcut.shortcutYOffset||t/2;0!==document.querySelectorAll("[dir='rtl']").length&&(o=r/2,s=t/2);var a=(Object(n.isShadowDOM)(i.settings.environment.root)?i.settings.environment.root.host:i.settings.environment.root.documentElement).clientHeight,l=(Object(n.isShadowDOM)(i.settings.environment.root)?i.settings.environment.root.host:i.settings.environment.root.documentElement).clientWidth,u=this.getShortcutBottomCoordinate(e.clientY,t,s);return this.getShortcutRightCoordinate(e.clientX,r,o)>=l?(this.draggedElementShortcut.style.left=e.pageX-e.clientX+l-r+"px",void(this.draggedElementShortcut.style.top=e.pageY-s+"px")):e.clientX-o<=0?(this.draggedElementShortcut.style.left=e.pageX-e.clientX+"px",void(this.draggedElementShortcut.style.top=e.pageY-s+"px")):u>=a?(this.draggedElementShortcut.style.left=e.pageX-o+"px",void(this.draggedElementShortcut.style.top=e.pageY-e.clientY+a-t+"px")):e.clientY-s<=0?(this.draggedElementShortcut.style.left=e.pageX-o+"px",void(this.draggedElementShortcut.style.top=e.pageY-e.clientY+"px")):(this.draggedElementShortcut.style.left=e.pageX-o+"px",void(this.draggedElementShortcut.style.top=e.pageY-s+"px"))},e.prototype.getShortcutBottomCoordinate=function(e,t,r){return e+t-r},e.prototype.getShortcutRightCoordinate=function(e,t,r){return e+t-r},e.prototype.doScroll=function(e,t){var r=this;cancelAnimationFrame(this.scrollIntervalId),this.draggedElementShortcut.hidden=!0;var o=document.elementFromPoint(t,e);this.draggedElementShortcut.hidden=!1;var i,s,a,l,u=Object(n.findScrollableParent)(o);"HTML"===u.tagName?(i=0,s=document.documentElement.clientHeight,a=0,l=document.documentElement.clientWidth):(i=u.getBoundingClientRect().top,s=u.getBoundingClientRect().bottom,a=u.getBoundingClientRect().left,l=u.getBoundingClientRect().right);var c=function(){e-i<=50?u.scrollTop-=15:s-e<=50?u.scrollTop+=15:l-t<=50?u.scrollLeft+=15:t-a<=50&&(u.scrollLeft-=15),r.scrollIntervalId=requestAnimationFrame(c)};this.scrollIntervalId=requestAnimationFrame(c)},e.prototype.doStartDrag=function(t,r,n,i){o.IsTouch&&(e.PreventScrolling=!0),3!==t.which&&(this.dd.dragInit(t,r,n,i),document.body.append(this.draggedElementShortcut),this.moveShortcutElement(t),document.addEventListener("pointermove",this.dragOver),document.addEventListener("pointercancel",this.handlePointerCancel),document.addEventListener("keydown",this.handleEscapeButton),document.addEventListener("pointerup",this.drop),o.IsTouch?this.draggedElementShortcut.addEventListener("contextmenu",this.onContextMenu):this.draggedElementShortcut.addEventListener("pointerup",this.drop))},e.prototype.startDrag=function(e,t,r,n,i){void 0===i&&(i=!1),o.IsTouch?this.startLongTapProcessing(e,t,r,n,i):this.doStartDrag(e,t,r,n)},e.PreventScrolling=!1,e}()},"./src/dragdrop/matrix-rows.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragDropMatrixRows",(function(){return s}));var n,o=r("./src/dragdrop/core.ts"),i=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fromIndex=null,t.toIndex=null,t.doDrop=function(){return t.parentElement.moveRowByIndex(t.fromIndex,t.toIndex),t.parentElement},t}return i(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"matrix-row"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,r){var n=this,o=document.createElement("div");if(o.style.cssText=" \n cursor: grabbing;\n position: absolute;\n z-index: 1000;\n font-family: var(--font-family, $font-family);\n ",t){var i=t.closest("[data-sv-drop-target-matrix-row]"),s=i.cloneNode(!0);s.style.cssText="\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1), 0px 2px 6px rgba(0, 0, 0, 0.1);\n background-color: white;\n display: flex;\n flex-grow: 0;\n flex-shrink: 0;\n align-items: center;\n line-height: 0;\n width: "+i.offsetWidth+"px;\n ",s.classList.remove("sv-matrix__drag-drop--moveup"),s.classList.remove("sv-matrix__drag-drop--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,o.appendChild(s);var a=t.getBoundingClientRect();o.shortcutXOffset=r.clientX-a.x,o.shortcutYOffset=r.clientY-a.y}return this.parentElement.renderedTable.rows.forEach((function(e,t){e.row===n.draggedElement&&(e.isGhostRow=!0)})),this.fromIndex=this.parentElement.visibleRows.indexOf(this.draggedElement),o},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.renderedTable.rows.filter((function(t){return t.row.id===e}))[0].row},t.prototype.isDropTargetValid=function(e,t){return!0},t.prototype.calculateIsBottom=function(e){var t=this.parentElement.renderedTable.rows.map((function(e){return e.row}));return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(t){var r=this;if(!this.isDropTargetDoesntChanged(this.isBottom)&&this.dropTarget!==this.draggedElement){var n,o,i,s=this.parentElement.renderedTable.rows;s.forEach((function(e,t){e.row===r.dropTarget&&(n=t),e.row===r.draggedElement&&(o=t,(i=e).isGhostRow=!0)})),s.splice(o,1),s.splice(n,0,i),this.toIndex=n,e.prototype.ghostPositionChanged.call(this)}},t.prototype.clear=function(){this.parentElement.renderedTable.rows.forEach((function(e){e.isGhostRow=!1})),this.parentElement.clearOnDrop(),this.fromIndex=null,this.toIndex=null,e.prototype.clear.call(this)},t}(o.DragDropCore)},"./src/dragdrop/ranking-choices.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragDropRankingChoices",(function(){return l}));var n,o=r("./src/dragdrop/choices.ts"),i=r("./src/utils/cssClassBuilder.ts"),s=r("./src/utils/devices.ts"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isDragOverRootNode=!1,t.doDragOver=function(){t.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item").style.cursor="grabbing"},t.doBanDropHere=function(){t.isDragOverRootNode?t.allowDropHere=!0:t.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item").style.cursor="not-allowed"},t.doDrop=function(){return t.parentElement.setValue(),t.parentElement},t}return a(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"ranking-item"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,r){var n=document.createElement("div");n.className=this.shortcutClass+" sv-ranking-shortcut",n.style.cssText=" \n cursor: grabbing;\n position: absolute;\n z-index: 1000;\n border-radius: 36px;\n min-width: 100px;\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1), 0px 2px 6px rgba(0, 0, 0, 0.1);\n background-color: var(--background, white);\n font-family: var(--font-family, $font-family);\n ";var o=t.cloneNode(!0);n.appendChild(o);var i=t.getBoundingClientRect();return n.shortcutXOffset=r.clientX-i.x,n.shortcutYOffset=r.clientY-i.y,this.parentElement&&this.parentElement.useFullItemSizeForShortcut&&(n.style.width=t.offsetWidth+"px",n.style.height=t.offsetHeight+"px"),n},Object.defineProperty(t.prototype,"shortcutClass",{get:function(){return(new i.CssClassBuilder).append(this.parentElement.cssClasses.root).append(this.parentElement.cssClasses.rootMobileMod,s.IsMobile).toString()},enumerable:!1,configurable:!0}),t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]},t.prototype.findDropTargetNodeByDragOverNode=function(t){return this.isDragOverRootNode=this.getIsDragOverRootNode(t),e.prototype.findDropTargetNodeByDragOverNode.call(this,t)},t.prototype.getIsDragOverRootNode=function(e){return"string"==typeof e.className&&-1!==e.className.indexOf("sv-ranking")},t.prototype.isDropTargetValid=function(e,t){var r=this.parentElement.rankingChoices,n=r.indexOf(this.dropTarget),o=r.indexOf(this.draggedElement);return o>n&&t.classList.contains("sv-dragdrop-moveup")||o<n&&t.classList.contains("sv-dragdrop-movedown")?(this.parentElement.dropTargetNodeMove=null,!1):-1!==r.indexOf(e)},t.prototype.calculateIsBottom=function(e){var t=this.parentElement.rankingChoices;return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(e){var t=this.parentElement.rankingChoices,r=t.indexOf(this.dropTarget),n=t.indexOf(this.draggedElement);t.splice(n,1),t.splice(r,0,this.draggedElement),this.parentElement.setPropertyValue("rankingChoices",t),this.updateDraggedElementShortcut(r+1),n!==r&&(e.classList.remove("sv-dragdrop-moveup"),e.classList.remove("sv-dragdrop-movedown"),this.parentElement.dropTargetNodeMove=null),n>r&&(this.parentElement.dropTargetNodeMove="down"),n<r&&(this.parentElement.dropTargetNodeMove="up")},t.prototype.updateDraggedElementShortcut=function(e){var t=e+"";this.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item__index").innerText=t},t.prototype.ghostPositionChanged=function(){this.parentElement.currentDropTarget=this.draggedElement,e.prototype.ghostPositionChanged.call(this)},t.prototype.clear=function(){this.parentElement&&(this.parentElement.dropTargetNodeMove=null,this.parentElement.updateRankingChoices(!0)),e.prototype.clear.call(this)},t}(o.DragDropChoices)},"./src/dropdownListModel.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DropdownListModel",(function(){return f}));var n,o=r("./src/base.ts"),i=r("./src/jsonobject.ts"),s=r("./src/list.ts"),a=r("./src/popup.ts"),l=r("./src/question_dropdown.ts"),u=r("./src/utils/cssClassBuilder.ts"),c=r("./src/utils/devices.ts"),p=r("./src/utils/utils.ts"),d=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},f=function(e){function t(t,r){var n=e.call(this)||this;return n.question=t,n.onSelectionChanged=r,n.minPageSize=25,n.loadingItemHeight=40,n._markdownMode=!1,n.selectedItemSelector=".sv-list__item--selected",n.itemSelector=".sv-list__item",n.itemsSettings={skip:0,take:0,totalCount:0,items:[]},n.isRunningLoadQuestionChoices=!1,n.popupCssClasses="sv-single-select-list",n.listModelFilterStringChanged=function(e){n.filterString!==e&&(n.filterString=e)},t.onPropertyChanged.add((function(e,t){"value"==t.name&&(n.showInputFieldComponent=n.question.showInputFieldComponent,n.showSelectedItemLocText=n.question.showSelectedItemLocText)})),n.showInputFieldComponent=n.question.showInputFieldComponent,n.showSelectedItemLocText=n.question.showSelectedItemLocText,n.listModel=n.createListModel(),n.updateAfterListModelCreated(n.listModel),n.setSearchEnabled(n.question.searchEnabled),n.createPopup(),n.resetItemsSettings(),n}return d(t,e),Object.defineProperty(t.prototype,"focusFirstInputSelector",{get:function(){return this.getFocusFirstInputSelector()},enumerable:!1,configurable:!0}),t.prototype.getFocusFirstInputSelector=function(){return c.IsTouch?this.isValueEmpty(this.question.value)?this.itemSelector:this.selectedItemSelector:!this.listModel.showFilter&&this.question.value?this.selectedItemSelector:""},t.prototype.resetItemsSettings=function(){this.itemsSettings.skip=0,this.itemsSettings.take=Math.max(this.minPageSize,this.question.choicesLazyLoadPageSize),this.itemsSettings.totalCount=0,this.itemsSettings.items=[]},t.prototype.setItems=function(e,t){this.itemsSettings.items=[].concat(this.itemsSettings.items,e),this.itemsSettings.totalCount=t,this.listModel.isAllDataLoaded=this.question.choicesLazyLoadEnabled&&this.itemsSettings.items.length==this.itemsSettings.totalCount,this.question.choices=this.itemsSettings.items},t.prototype.updateQuestionChoices=function(e){var t=this;if(!this.isRunningLoadQuestionChoices){var r=this.itemsSettings.skip+1<this.itemsSettings.totalCount;this.itemsSettings.skip&&!r||(this.isRunningLoadQuestionChoices=!0,this.question.survey.loadQuestionChoices({question:this.question,filter:this.filterString,skip:this.itemsSettings.skip,take:this.itemsSettings.take,setItems:function(r,n){t.isRunningLoadQuestionChoices=!1,t.setItems(r||[],n||0),t.popupRecalculatePosition(t.itemsSettings.skip===t.itemsSettings.take),e&&e()}}),this.itemsSettings.skip+=this.itemsSettings.take)}},t.prototype.updatePopupFocusFirstInputSelector=function(){this._popupModel.focusFirstInputSelector=this.focusFirstInputSelector},t.prototype.createPopup=function(){var e=this;this._popupModel=new a.PopupModel("sv-list",{model:this.listModel},"bottom","center",!1),this._popupModel.displayMode=c.IsTouch?"overlay":"popup",this._popupModel.positionMode="fixed",this._popupModel.isFocusedContent=c.IsTouch,this._popupModel.setWidthByTarget=!c.IsTouch,this.updatePopupFocusFirstInputSelector(),this.listModel.registerPropertyChangedHandlers(["showFilter"],(function(){e.updatePopupFocusFirstInputSelector()})),this._popupModel.cssClass=this.popupCssClasses,this._popupModel.onVisibilityChanged.add((function(t,r){r.isVisible&&(e.listModel.renderElements=!0),r.isVisible&&e.question.choicesLazyLoadEnabled&&(e.listModel.actions=[],e.updateQuestionChoices()),r.isVisible&&e.question.onOpenedCallBack&&(e.updatePopupFocusFirstInputSelector(),e.question.onOpenedCallBack()),r.isVisible||(e.onHidePopup(),e.question.choicesLazyLoadEnabled&&e.resetItemsSettings())}))},t.prototype.setFilterStringToListModel=function(e){var t=this;if(this.listModel.filterString=e,this.listModel.resetFocusedItem(),this.question.selectedItem&&this.question.selectedItem.text.indexOf(e)>=0)return this.listModel.focusedItem=this.getAvailableItems().filter((function(e){return e.id==t.question.selectedItem.value}))[0],void(this.listModel.filterString&&this.listModel.actions.map((function(e){return e.selectedValue=!1})));this.listModel.focusedItem&&this.listModel.isItemVisible(this.listModel.focusedItem)||this.listModel.focusFirstVisibleItem()},t.prototype.popupRecalculatePosition=function(e){var t=this;setTimeout((function(){t.popupModel.recalculatePosition(e)}),1)},t.prototype.onHidePopup=function(){this.resetFilterString(),this.question.suggestedItem=null,this.listModel.refresh()},t.prototype.getAvailableItems=function(){return this.question.visibleChoices},t.prototype.createListModel=function(){var e=this,t=this.getAvailableItems(),r=this.onSelectionChanged;r||(r=function(t){e.question.value=t.id,e.question.searchEnabled&&e.applyInputString(t),e._popupModel.toggleVisibility()});var n=new s.ListModel(t,r,!1,void 0,this.question.choicesLazyLoadEnabled?this.listModelFilterStringChanged:void 0,this.listElementId);return n.renderElements=!1,n.forceShowFilter=!0,n.areSameItemsCallback=function(e,t){return e===t},n},t.prototype.updateAfterListModelCreated=function(e){var t=this;e.isItemSelected=function(e){return!!e.selected},e.locOwner=this.question,e.onPropertyChanged.add((function(e,r){"hasVerticalScroller"==r.name&&(t.hasScroll=r.newValue)})),e.isAllDataLoaded=!this.question.choicesLazyLoadEnabled},t.prototype.updateCssClasses=function(e,t){this.popupModel.cssClass=(new u.CssClassBuilder).append(e).append(this.popupCssClasses).toString(),this.listModel.cssClasses=t},t.prototype.resetFilterString=function(){this.filterString&&(this.filterString=void 0)},t.prototype.clear=function(){this.inputString=null,this.hintString="",this.resetFilterString()},t.prototype.onSetFilterString=function(){var e=this;this.filterString&&!this.popupModel.isVisible&&(this.popupModel.isVisible=!0);var t=function(){e.setFilterStringToListModel(e.filterString),e.popupRecalculatePosition(!0)};this.question.choicesLazyLoadEnabled?(this.resetItemsSettings(),this.updateQuestionChoices(t)):t()},t.prototype.applyInputString=function(e){(null==e?void 0:e.locText.hasHtml)||this.question.inputFieldComponentName?(this._markdownMode=!0,this.inputString="",this.hintString=""):(this.inputString=null==e?void 0:e.title,this.hintString=null==e?void 0:e.title)},t.prototype.fixInputCase=function(){var e=this.hintStringMiddle;e&&this.inputString!=e&&(this.inputString=e)},t.prototype.applyHintString=function(e){(null==e?void 0:e.locText.hasHtml)||this.question.inputFieldComponentName?(this._markdownMode=!0,this.hintString=""):this.hintString=null==e?void 0:e.title},Object.defineProperty(t.prototype,"inputStringRendered",{get:function(){return this.inputString||""},set:function(e){this.inputString=e,this.filterString=e,this.applyHintString(this.listModel.focusedItem)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderRendered",{get:function(){return this.hintString?"":this.question.readOnlyText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"listElementId",{get:function(){return this.question.inputId+"_list"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringLC",{get:function(){var e;return(null===(e=this.hintString)||void 0===e?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputStringLC",{get:function(){var e;return(null===(e=this.inputString)||void 0===e?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintPrefix",{get:function(){return!!this.inputString&&this.hintStringLC.indexOf(this.inputStringLC)>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringPrefix",{get:function(){return this.inputString?this.hintString.substring(0,this.hintStringLC.indexOf(this.inputStringLC)):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintString",{get:function(){return!!this.question.searchEnabled&&this.hintStringLC&&this.hintStringLC.indexOf(this.inputStringLC)>=0||!this.question.searchEnabled&&this.hintStringLC&&!this.question.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringSuffix",{get:function(){return this.hintString.substring(this.hintStringLC.indexOf(this.inputStringLC)+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringMiddle",{get:function(){var e=this.hintStringLC.indexOf(this.inputStringLC);return-1==e?null:this.hintString.substring(e,e+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this._popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputReadOnly",{get:function(){return this.question.isInputReadOnly||this.searchEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filterStringEnabled",{get:function(){return!this.question.isInputReadOnly&&this.searchEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputMode",{get:function(){return c.IsTouch?"none":"text"},enumerable:!1,configurable:!0}),t.prototype.setSearchEnabled=function(e){this.listModel.searchEnabled=c.IsTouch,this.listModel.showSearchClearButton=c.IsTouch,this.searchEnabled=e},t.prototype.updateItems=function(){this.listModel.setItems(this.getAvailableItems())},t.prototype.onClick=function(e){if(this._popupModel.toggleVisibility(),this.focusItemOnClickAndPopup(),this.searchEnabled&&e&&e.target){var t=e.target.querySelector("input");t&&t.focus()}},t.prototype.focusItemOnClickAndPopup=function(){this._popupModel.isVisible&&this.question.value&&this.changeSelectionWithKeyboard(!1)},t.prototype.onClear=function(e){this.question.clearValue(),this._popupModel.isVisible=!1,e&&(e.preventDefault(),e.stopPropagation())},t.prototype.getSelectedAction=function(){return this.question.selectedItem||null},t.prototype.changeSelectionWithKeyboard=function(e){var t,r=this.listModel.focusedItem;e?this.listModel.focusPrevVisibleItem():this.listModel.focusNextVisibleItem(),this.beforeScrollToFocusedItem(r),this.scrollToFocusedItem(),this.afterScrollToFocusedItem(),this.ariaActivedescendant=null===(t=this.listModel.focusedItem)||void 0===t?void 0:t.elementId},t.prototype.beforeScrollToFocusedItem=function(e){this.question.value&&e&&(e.selectedValue=!1,this.listModel.focusedItem.selectedValue=!this.listModel.filterString,this.question.suggestedItem=this.listModel.focusedItem)},t.prototype.afterScrollToFocusedItem=function(){var e;this.question.value&&!this.listModel.filterString&&this.question.searchEnabled?this.applyInputString(this.listModel.focusedItem||this.question.selectedItem):this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.fixInputCase(),this.ariaActivedescendant=null===(e=this.listModel.focusedItem)||void 0===e?void 0:e.elementId},t.prototype.keyHandler=function(e){var t=e.which||e.keyCode;if(this.popupModel.isVisible&&38===e.keyCode)this.changeSelectionWithKeyboard(!0),e.preventDefault(),e.stopPropagation();else if(40===e.keyCode)this.popupModel.isVisible||this.popupModel.toggleVisibility(),this.changeSelectionWithKeyboard(!1),e.preventDefault(),e.stopPropagation();else if(this.popupModel.isVisible||13!==e.keyCode&&32!==e.keyCode)if(!this.popupModel.isVisible||13!==e.keyCode&&(32!==e.keyCode||this.question.searchEnabled&&this.inputString))if(46===t||8===t)this.searchEnabled||this.onClear(e);else if(27===e.keyCode)this._popupModel.isVisible=!1,this.hintString="",this.onEscape();else{if((38===e.keyCode||40===e.keyCode||32===e.keyCode&&!this.question.searchEnabled)&&(e.preventDefault(),e.stopPropagation()),32===e.keyCode&&this.question.searchEnabled)return;Object(p.doKey2ClickUp)(e,{processEsc:!1,disableTabStop:this.question.isInputReadOnly})}else 13===e.keyCode&&this.question.searchEnabled&&!this.inputString&&this.question instanceof l.QuestionDropdownModel&&!this._markdownMode&&this.question.value?(this._popupModel.isVisible=!1,this.onClear(e),this.question.survey.questionEditFinishCallback(this.question,e)):(this.listModel.selectFocusedItem(),this.onFocus(e),this.question.survey.questionEditFinishCallback(this.question,e)),e.preventDefault(),e.stopPropagation();else this.popupModel.toggleVisibility(),this.changeSelectionWithKeyboard(!1),e.preventDefault(),e.stopPropagation()},t.prototype.onEscape=function(){this.question.searchEnabled&&this.applyInputString(this.question.selectedItem)},t.prototype.onScroll=function(e){var t=e.target;t.scrollHeight-(t.scrollTop+t.offsetHeight)<=this.loadingItemHeight&&this.updateQuestionChoices()},t.prototype.onBlur=function(e){this.popupModel.isVisible&&c.IsTouch?this._popupModel.isVisible=!0:(this.popupModel.isVisible&&this.filterString&&this.listModel.selectFocusedItem(),this.resetFilterString(),this.inputString=null,this.hintString="",Object(p.doKey2ClickBlur)(e),this._popupModel.isVisible=!1,e.stopPropagation())},t.prototype.onFocus=function(e){this.setInputStringFromSelectedItem(this.question.selectedItem)},t.prototype.setInputStringFromSelectedItem=function(e){this.question.searchEnabled&&e?this.applyInputString(e):this.inputString=null},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.listModel&&this.listModel.dispose(),this.popupModel&&this.popupModel.dispose()},t.prototype.scrollToFocusedItem=function(){this.listModel.scrollToFocusedItem()},h([Object(i.property)({defaultValue:!0})],t.prototype,"searchEnabled",void 0),h([Object(i.property)({defaultValue:"",onSet:function(e,t){t.onSetFilterString()}})],t.prototype,"filterString",void 0),h([Object(i.property)({defaultValue:"",onSet:function(e,t){t.question.inputHasValue=!!e,t.showSelectedItemLocText=t.question.showSelectedItemLocText}})],t.prototype,"inputString",void 0),h([Object(i.property)({})],t.prototype,"showSelectedItemLocText",void 0),h([Object(i.property)({})],t.prototype,"showInputFieldComponent",void 0),h([Object(i.property)()],t.prototype,"ariaActivedescendant",void 0),h([Object(i.property)({defaultValue:!1,onSet:function(e,t){e?t.listModel.addScrollEventListener((function(e){t.onScroll(e)})):t.listModel.removeScrollEventListener()}})],t.prototype,"hasScroll",void 0),h([Object(i.property)({defaultValue:""})],t.prototype,"hintString",void 0),t}(o.Base)},"./src/dropdownMultiSelectListModel.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DropdownMultiSelectListModel",(function(){return d}));var n,o=r("./src/base.ts"),i=r("./src/dropdownListModel.ts"),s=r("./src/jsonobject.ts"),a=r("./src/multiSelectListModel.ts"),l=r("./src/settings.ts"),u=r("./src/utils/devices.ts"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},d=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.popupCssClasses="sv-multi-select-list",n.setHideSelectedItems(t.hideSelectedItems),n.syncFilterStringPlaceholder(),n.closeOnSelect=t.closeOnSelect,n}return c(t,e),t.prototype.updateListState=function(){this.listModel.updateState(),this.syncFilterStringPlaceholder()},t.prototype.syncFilterStringPlaceholder=function(){this.getSelectedActions().length||this.question.selectedItems.length||this.listModel.focusedItem?this.filterStringPlaceholder=void 0:this.filterStringPlaceholder=this.question.placeholder},t.prototype.getSelectedActions=function(){return this.listModel.actions.filter((function(e){return e.selected}))},t.prototype.getFocusFirstInputSelector=function(){return this.listModel.hideSelectedItems&&u.IsTouch&&!this.isValueEmpty(this.question.value)?this.itemSelector:e.prototype.getFocusFirstInputSelector.call(this)},t.prototype.createListModel=function(){var e=this,t=this.getAvailableItems(),r=this.onSelectionChanged;r||(r=function(t,r){e.resetFilterString(),"selectall"===t.value?e.selectAllItems():"added"===r&&t.value===l.settings.noneItemValue?e.selectNoneItem():"added"===r?e.selectItem(t.value):"removed"===r&&e.deselectItem(t.value),e.popupRecalculatePosition(!1),e.closeOnSelect&&(e.popupModel.isVisible=!1)});var n=new a.MultiSelectListModel(t,r,!1,void 0,this.question.choicesLazyLoadEnabled?this.listModelFilterStringChanged:void 0,this.listElementId);return n.forceShowFilter=!0,n},t.prototype.resetFilterString=function(){e.prototype.resetFilterString.call(this),this.inputString=null,this.hintString=""},Object.defineProperty(t.prototype,"shouldResetAfterCancel",{get:function(){return u.IsTouch&&!this.closeOnSelect},enumerable:!1,configurable:!0}),t.prototype.createPopup=function(){var t=this;e.prototype.createPopup.call(this),this.popupModel.onFooterActionsCreated.add((function(e,r){t.shouldResetAfterCancel&&r.actions.push({id:"sv-dropdown-done-button",title:t.doneButtonCaption,innerCss:"sv-popup__button--done",needSpace:!0,action:function(){t.popupModel.isVisible=!1},enabled:new o.ComputedUpdater((function(){return!t.isTwoValueEquals(t.question.renderedValue,t.previousValue)}))})})),this.popupModel.onVisibilityChanged.add((function(e,r){t.shouldResetAfterCancel&&r.isVisible&&(t.previousValue=[].concat(t.question.renderedValue||[]))})),this.popupModel.onCancel=function(){t.shouldResetAfterCancel&&(t.question.renderedValue=t.previousValue,t.updateListState())}},t.prototype.selectAllItems=function(){this.question.toggleSelectAll(),this.updateListState()},t.prototype.selectNoneItem=function(){this.question.renderedValue=[l.settings.noneItemValue],this.updateListState()},t.prototype.selectItem=function(e){var t=[].concat(this.question.renderedValue||[]);t.push(e),this.question.renderedValue=t,this.updateListState()},t.prototype.deselectItem=function(e){var t=[].concat(this.question.renderedValue||[]);t.splice(t.indexOf(e),1),this.question.renderedValue=t,this.applyHintString(this.listModel.focusedItem),this.updateListState()},t.prototype.clear=function(){e.prototype.clear.call(this),this.syncFilterStringPlaceholder()},t.prototype.onClear=function(t){e.prototype.onClear.call(this,t),this.updateListState()},t.prototype.setHideSelectedItems=function(e){this.listModel.hideSelectedItems=e,this.updateListState()},t.prototype.removeLastSelectedItem=function(){this.deselectItem(this.question.renderedValue[this.question.renderedValue.length-1]),this.popupRecalculatePosition(!1)},t.prototype.inputKeyHandler=function(e){8!==e.keyCode||this.filterString||(this.removeLastSelectedItem(),e.preventDefault(),e.stopPropagation())},t.prototype.setInputStringFromSelectedItem=function(e){this.question.searchEnabled&&(this.inputString=null)},t.prototype.focusItemOnClickAndPopup=function(){},t.prototype.onEscape=function(){},t.prototype.beforeScrollToFocusedItem=function(e){},t.prototype.afterScrollToFocusedItem=function(){var e;(null===(e=this.listModel.focusedItem)||void 0===e?void 0:e.selected)?this.hintString="":this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.syncFilterStringPlaceholder()},p([Object(s.property)({defaultValue:""})],t.prototype,"filterStringPlaceholder",void 0),p([Object(s.property)({defaultValue:!0})],t.prototype,"closeOnSelect",void 0),p([Object(s.property)()],t.prototype,"previousValue",void 0),p([Object(s.property)({localizable:{defaultStr:"tagboxDoneButtonCaption"}})],t.prototype,"doneButtonCaption",void 0),t}(i.DropdownListModel)},"./src/dxSurveyService.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"dxSurveyService",(function(){return o}));var n=r("./src/settings.ts"),o=function(){function e(){}return Object.defineProperty(e,"serviceUrl",{get:function(){return n.settings.surveyServiceUrl},set:function(e){n.settings.surveyServiceUrl=e},enumerable:!1,configurable:!0}),e.prototype.loadSurvey=function(t,r){var n=new XMLHttpRequest;n.open("GET",e.serviceUrl+"/getSurvey?surveyId="+t),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.onload=function(){var e=JSON.parse(n.response);r(200==n.status,e,n.response)},n.send()},e.prototype.getSurveyJsonAndIsCompleted=function(t,r,n){var o=new XMLHttpRequest;o.open("GET",e.serviceUrl+"/getSurveyAndIsCompleted?surveyId="+t+"&clientId="+r),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onload=function(){var e=JSON.parse(o.response),t=e?e.survey:null,r=e?e.isCompleted:null;n(200==o.status,t,r,o.response)},o.send()},e.prototype.sendResult=function(t,r,n,o,i){void 0===o&&(o=null),void 0===i&&(i=!1);var s=new XMLHttpRequest;s.open("POST",e.serviceUrl+"/post/"),s.setRequestHeader("Content-Type","application/json; charset=utf-8");var a={postId:t,surveyResult:JSON.stringify(r)};o&&(a.clientId=o),i&&(a.isPartialCompleted=!0);var l=JSON.stringify(a);s.onload=s.onerror=function(){n&&n(200===s.status,s.response,s)},s.send(l)},e.prototype.sendFile=function(t,r,n){var o=new XMLHttpRequest;o.onload=o.onerror=function(){n&&n(200==o.status,JSON.parse(o.response))},o.open("POST",e.serviceUrl+"/upload/",!0);var i=new FormData;i.append("file",r),i.append("postId",t),o.send(i)},e.prototype.getResult=function(t,r,n){var o=new XMLHttpRequest,i="resultId="+t+"&name="+r;o.open("GET",e.serviceUrl+"/getResult?"+i),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onload=function(){var e=null,t=null;if(200==o.status)for(var r in t=[],(e=JSON.parse(o.response)).QuestionResult){var i={name:r,value:e.QuestionResult[r]};t.push(i)}n(200==o.status,e,t,o.response)},o.send()},e.prototype.isCompleted=function(t,r,n){var o=new XMLHttpRequest,i="resultId="+t+"&clientId="+r;o.open("GET",e.serviceUrl+"/isCompleted?"+i),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onload=function(){var e=null;200==o.status&&(e=JSON.parse(o.response)),n(200==o.status,e,o.response)},o.send()},e}()},"./src/element-helper.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ElementHelper",(function(){return n}));var n=function(){function e(){}return e.focusElement=function(e){e&&e.focus()},e.visibility=function(e){var t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&(!e.parentElement||this.visibility(e.parentElement))},e.getNextElementPreorder=function(e){var t=e.nextElementSibling?e.nextElementSibling:e.parentElement.firstElementChild;return this.visibility(t)?t:this.getNextElementPreorder(t)},e.getNextElementPostorder=function(e){var t=e.previousElementSibling?e.previousElementSibling:e.parentElement.lastElementChild;return this.visibility(t)?t:this.getNextElementPostorder(t)},e.hasHorizontalScroller=function(e){return!!e&&e.scrollWidth>e.offsetWidth},e.hasVerticalScroller=function(e){return!!e&&e.scrollHeight>e.offsetHeight},e}()},"./src/entries/chunks/model.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"Version",(function(){return Ie})),r.d(t,"checkLibraryVersion",(function(){return De}));var n=r("./src/settings.ts");r.d(t,"settings",(function(){return n.settings}));var o=r("./src/helpers.ts");r.d(t,"Helpers",(function(){return o.Helpers}));var i=r("./src/validator.ts");r.d(t,"AnswerCountValidator",(function(){return i.AnswerCountValidator})),r.d(t,"EmailValidator",(function(){return i.EmailValidator})),r.d(t,"NumericValidator",(function(){return i.NumericValidator})),r.d(t,"RegexValidator",(function(){return i.RegexValidator})),r.d(t,"SurveyValidator",(function(){return i.SurveyValidator})),r.d(t,"TextValidator",(function(){return i.TextValidator})),r.d(t,"ValidatorResult",(function(){return i.ValidatorResult})),r.d(t,"ExpressionValidator",(function(){return i.ExpressionValidator})),r.d(t,"ValidatorRunner",(function(){return i.ValidatorRunner}));var s=r("./src/itemvalue.ts");r.d(t,"ItemValue",(function(){return s.ItemValue}));var a=r("./src/base.ts");r.d(t,"Base",(function(){return a.Base})),r.d(t,"Event",(function(){return a.Event})),r.d(t,"EventBase",(function(){return a.EventBase})),r.d(t,"ArrayChanges",(function(){return a.ArrayChanges})),r.d(t,"ComputedUpdater",(function(){return a.ComputedUpdater}));var l=r("./src/survey-error.ts");r.d(t,"SurveyError",(function(){return l.SurveyError}));var u=r("./src/survey-element.ts");r.d(t,"SurveyElementCore",(function(){return u.SurveyElementCore})),r.d(t,"SurveyElement",(function(){return u.SurveyElement})),r.d(t,"DragTypeOverMeEnum",(function(){return u.DragTypeOverMeEnum}));var c=r("./src/calculatedValue.ts");r.d(t,"CalculatedValue",(function(){return c.CalculatedValue}));var p=r("./src/error.ts");r.d(t,"CustomError",(function(){return p.CustomError})),r.d(t,"AnswerRequiredError",(function(){return p.AnswerRequiredError})),r.d(t,"OneAnswerRequiredError",(function(){return p.OneAnswerRequiredError})),r.d(t,"RequreNumericError",(function(){return p.RequreNumericError})),r.d(t,"ExceedSizeError",(function(){return p.ExceedSizeError}));var d=r("./src/localizablestring.ts");r.d(t,"LocalizableString",(function(){return d.LocalizableString})),r.d(t,"LocalizableStrings",(function(){return d.LocalizableStrings}));var h=r("./src/expressionItems.ts");r.d(t,"HtmlConditionItem",(function(){return h.HtmlConditionItem})),r.d(t,"UrlConditionItem",(function(){return h.UrlConditionItem}));var f=r("./src/choicesRestful.ts");r.d(t,"ChoicesRestful",(function(){return f.ChoicesRestful})),r.d(t,"ChoicesRestfull",(function(){return f.ChoicesRestfull}));var m=r("./src/functionsfactory.ts");r.d(t,"FunctionFactory",(function(){return m.FunctionFactory})),r.d(t,"registerFunction",(function(){return m.registerFunction}));var g=r("./src/conditions.ts");r.d(t,"ConditionRunner",(function(){return g.ConditionRunner})),r.d(t,"ExpressionRunner",(function(){return g.ExpressionRunner})),r.d(t,"ExpressionExecutor",(function(){return g.ExpressionExecutor}));var b=r("./src/expressions/expressions.ts");r.d(t,"Operand",(function(){return b.Operand})),r.d(t,"Const",(function(){return b.Const})),r.d(t,"BinaryOperand",(function(){return b.BinaryOperand})),r.d(t,"Variable",(function(){return b.Variable})),r.d(t,"FunctionOperand",(function(){return b.FunctionOperand})),r.d(t,"ArrayOperand",(function(){return b.ArrayOperand})),r.d(t,"UnaryOperand",(function(){return b.UnaryOperand}));var y=r("./src/conditionsParser.ts");r.d(t,"ConditionsParser",(function(){return y.ConditionsParser}));var v=r("./src/conditionProcessValue.ts");r.d(t,"ProcessValue",(function(){return v.ProcessValue}));var w=r("./src/jsonobject.ts");r.d(t,"JsonError",(function(){return w.JsonError})),r.d(t,"JsonIncorrectTypeError",(function(){return w.JsonIncorrectTypeError})),r.d(t,"JsonMetadata",(function(){return w.JsonMetadata})),r.d(t,"JsonMetadataClass",(function(){return w.JsonMetadataClass})),r.d(t,"JsonMissingTypeError",(function(){return w.JsonMissingTypeError})),r.d(t,"JsonMissingTypeErrorBase",(function(){return w.JsonMissingTypeErrorBase})),r.d(t,"JsonObject",(function(){return w.JsonObject})),r.d(t,"JsonObjectProperty",(function(){return w.JsonObjectProperty})),r.d(t,"JsonRequiredPropertyError",(function(){return w.JsonRequiredPropertyError})),r.d(t,"JsonUnknownPropertyError",(function(){return w.JsonUnknownPropertyError})),r.d(t,"Serializer",(function(){return w.Serializer})),r.d(t,"property",(function(){return w.property})),r.d(t,"propertyArray",(function(){return w.propertyArray}));var x=r("./src/question_matrixdropdownbase.ts");r.d(t,"MatrixDropdownCell",(function(){return x.MatrixDropdownCell})),r.d(t,"MatrixDropdownRowModelBase",(function(){return x.MatrixDropdownRowModelBase})),r.d(t,"QuestionMatrixDropdownModelBase",(function(){return x.QuestionMatrixDropdownModelBase}));var C=r("./src/question_matrixdropdowncolumn.ts");r.d(t,"MatrixDropdownColumn",(function(){return C.MatrixDropdownColumn})),r.d(t,"matrixDropdownColumnTypes",(function(){return C.matrixDropdownColumnTypes}));var P=r("./src/question_matrixdropdownrendered.ts");r.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return P.QuestionMatrixDropdownRenderedCell})),r.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return P.QuestionMatrixDropdownRenderedRow})),r.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return P.QuestionMatrixDropdownRenderedTable}));var _=r("./src/question_matrixdropdown.ts");r.d(t,"MatrixDropdownRowModel",(function(){return _.MatrixDropdownRowModel})),r.d(t,"QuestionMatrixDropdownModel",(function(){return _.QuestionMatrixDropdownModel}));var S=r("./src/question_matrixdynamic.ts");r.d(t,"MatrixDynamicRowModel",(function(){return S.MatrixDynamicRowModel})),r.d(t,"QuestionMatrixDynamicModel",(function(){return S.QuestionMatrixDynamicModel}));var V=r("./src/question_matrix.ts");r.d(t,"MatrixRowModel",(function(){return V.MatrixRowModel})),r.d(t,"MatrixCells",(function(){return V.MatrixCells})),r.d(t,"QuestionMatrixModel",(function(){return V.QuestionMatrixModel}));var E=r("./src/martixBase.ts");r.d(t,"QuestionMatrixBaseModel",(function(){return E.QuestionMatrixBaseModel}));var O=r("./src/question_multipletext.ts");r.d(t,"MultipleTextItemModel",(function(){return O.MultipleTextItemModel})),r.d(t,"QuestionMultipleTextModel",(function(){return O.QuestionMultipleTextModel})),r.d(t,"MultipleTextEditorModel",(function(){return O.MultipleTextEditorModel}));var T=r("./src/panel.ts");r.d(t,"PanelModel",(function(){return T.PanelModel})),r.d(t,"PanelModelBase",(function(){return T.PanelModelBase})),r.d(t,"QuestionRowModel",(function(){return T.QuestionRowModel}));var R=r("./src/flowpanel.ts");r.d(t,"FlowPanelModel",(function(){return R.FlowPanelModel}));var k=r("./src/page.ts");r.d(t,"PageModel",(function(){return k.PageModel})),r("./src/template-renderer.ts");var I=r("./src/defaultTitle.ts");r.d(t,"DefaultTitleModel",(function(){return I.DefaultTitleModel}));var j=r("./src/question.ts");r.d(t,"Question",(function(){return j.Question}));var D=r("./src/questionnonvalue.ts");r.d(t,"QuestionNonValue",(function(){return D.QuestionNonValue}));var q=r("./src/question_empty.ts");r.d(t,"QuestionEmptyModel",(function(){return q.QuestionEmptyModel}));var M=r("./src/question_baseselect.ts");r.d(t,"QuestionCheckboxBase",(function(){return M.QuestionCheckboxBase})),r.d(t,"QuestionSelectBase",(function(){return M.QuestionSelectBase}));var L=r("./src/question_checkbox.ts");r.d(t,"QuestionCheckboxModel",(function(){return L.QuestionCheckboxModel}));var A=r("./src/question_tagbox.ts");r.d(t,"QuestionTagboxModel",(function(){return A.QuestionTagboxModel}));var N=r("./src/question_ranking.ts");r.d(t,"QuestionRankingModel",(function(){return N.QuestionRankingModel}));var B=r("./src/question_comment.ts");r.d(t,"QuestionCommentModel",(function(){return B.QuestionCommentModel}));var F=r("./src/question_dropdown.ts");r.d(t,"QuestionDropdownModel",(function(){return F.QuestionDropdownModel}));var z=r("./src/questionfactory.ts");r.d(t,"QuestionFactory",(function(){return z.QuestionFactory})),r.d(t,"ElementFactory",(function(){return z.ElementFactory}));var Q=r("./src/question_file.ts");r.d(t,"QuestionFileModel",(function(){return Q.QuestionFileModel}));var H=r("./src/question_html.ts");r.d(t,"QuestionHtmlModel",(function(){return H.QuestionHtmlModel}));var U=r("./src/question_radiogroup.ts");r.d(t,"QuestionRadiogroupModel",(function(){return U.QuestionRadiogroupModel}));var W=r("./src/question_rating.ts");r.d(t,"QuestionRatingModel",(function(){return W.QuestionRatingModel})),r.d(t,"RenderedRatingItem",(function(){return W.RenderedRatingItem}));var J=r("./src/question_expression.ts");r.d(t,"QuestionExpressionModel",(function(){return J.QuestionExpressionModel}));var G=r("./src/question_textbase.ts");r.d(t,"QuestionTextBase",(function(){return G.QuestionTextBase})),r.d(t,"CharacterCounter",(function(){return G.CharacterCounter}));var $=r("./src/question_text.ts");r.d(t,"QuestionTextModel",(function(){return $.QuestionTextModel}));var K=r("./src/question_boolean.ts");r.d(t,"QuestionBooleanModel",(function(){return K.QuestionBooleanModel}));var Z=r("./src/question_imagepicker.ts");r.d(t,"QuestionImagePickerModel",(function(){return Z.QuestionImagePickerModel})),r.d(t,"ImageItemValue",(function(){return Z.ImageItemValue}));var X=r("./src/question_image.ts");r.d(t,"QuestionImageModel",(function(){return X.QuestionImageModel}));var Y=r("./src/question_signaturepad.ts");r.d(t,"QuestionSignaturePadModel",(function(){return Y.QuestionSignaturePadModel}));var ee=r("./src/question_paneldynamic.ts");r.d(t,"QuestionPanelDynamicModel",(function(){return ee.QuestionPanelDynamicModel})),r.d(t,"QuestionPanelDynamicItem",(function(){return ee.QuestionPanelDynamicItem}));var te=r("./src/surveytimer.ts");r.d(t,"SurveyTimer",(function(){return te.SurveyTimer}));var re=r("./src/surveyTimerModel.ts");r.d(t,"SurveyTimerModel",(function(){return re.SurveyTimerModel}));var ne=r("./src/surveyToc.ts");r.d(t,"tryNavigateToPage",(function(){return ne.tryNavigateToPage})),r.d(t,"createTOCListModel",(function(){return ne.createTOCListModel})),r.d(t,"getTocRootCss",(function(){return ne.getTocRootCss}));var oe=r("./src/surveyProgress.ts");r.d(t,"SurveyProgressModel",(function(){return oe.SurveyProgressModel}));var ie=r("./src/surveyProgressButtons.ts");r.d(t,"SurveyProgressButtonsModel",(function(){return ie.SurveyProgressButtonsModel}));var se=r("./src/survey.ts");r.d(t,"SurveyModel",(function(){return se.SurveyModel}));var ae=r("./src/trigger.ts");r.d(t,"SurveyTrigger",(function(){return ae.SurveyTrigger})),r.d(t,"SurveyTriggerComplete",(function(){return ae.SurveyTriggerComplete})),r.d(t,"SurveyTriggerSetValue",(function(){return ae.SurveyTriggerSetValue})),r.d(t,"SurveyTriggerVisible",(function(){return ae.SurveyTriggerVisible})),r.d(t,"SurveyTriggerCopyValue",(function(){return ae.SurveyTriggerCopyValue})),r.d(t,"SurveyTriggerRunExpression",(function(){return ae.SurveyTriggerRunExpression})),r.d(t,"Trigger",(function(){return ae.Trigger}));var le=r("./src/popup-survey.ts");r.d(t,"PopupSurveyModel",(function(){return le.PopupSurveyModel})),r.d(t,"SurveyWindowModel",(function(){return le.SurveyWindowModel}));var ue=r("./src/textPreProcessor.ts");r.d(t,"TextPreProcessor",(function(){return ue.TextPreProcessor}));var ce=r("./src/notifier.ts");r.d(t,"Notifier",(function(){return ce.Notifier}));var pe=r("./src/dxSurveyService.ts");r.d(t,"dxSurveyService",(function(){return pe.dxSurveyService}));var de=r("./src/localization/english.ts");r.d(t,"englishStrings",(function(){return de.englishStrings}));var he=r("./src/surveyStrings.ts");r.d(t,"surveyLocalization",(function(){return he.surveyLocalization})),r.d(t,"surveyStrings",(function(){return he.surveyStrings}));var fe=r("./src/questionCustomWidgets.ts");r.d(t,"QuestionCustomWidget",(function(){return fe.QuestionCustomWidget})),r.d(t,"CustomWidgetCollection",(function(){return fe.CustomWidgetCollection}));var me=r("./src/question_custom.ts");r.d(t,"QuestionCustomModel",(function(){return me.QuestionCustomModel})),r.d(t,"QuestionCompositeModel",(function(){return me.QuestionCompositeModel})),r.d(t,"ComponentQuestionJSON",(function(){return me.ComponentQuestionJSON})),r.d(t,"ComponentCollection",(function(){return me.ComponentCollection}));var ge=r("./src/stylesmanager.ts");r.d(t,"StylesManager",(function(){return ge.StylesManager}));var be=r("./src/list.ts");r.d(t,"ListModel",(function(){return be.ListModel}));var ye=r("./src/multiSelectListModel.ts");r.d(t,"MultiSelectListModel",(function(){return ye.MultiSelectListModel}));var ve=r("./src/popup.ts");r.d(t,"PopupModel",(function(){return ve.PopupModel})),r.d(t,"createDialogOptions",(function(){return ve.createDialogOptions}));var we=r("./src/popup-view-model.ts");r.d(t,"PopupBaseViewModel",(function(){return we.PopupBaseViewModel}));var xe=r("./src/popup-dropdown-view-model.ts");r.d(t,"PopupDropdownViewModel",(function(){return xe.PopupDropdownViewModel}));var Ce=r("./src/popup-modal-view-model.ts");r.d(t,"PopupModalViewModel",(function(){return Ce.PopupModalViewModel}));var Pe=r("./src/popup-utils.ts");r.d(t,"createPopupViewModel",(function(){return Pe.createPopupViewModel})),r.d(t,"createPopupModalViewModel",(function(){return Pe.createPopupModalViewModel}));var _e=r("./src/dropdownListModel.ts");r.d(t,"DropdownListModel",(function(){return _e.DropdownListModel}));var Se=r("./src/dropdownMultiSelectListModel.ts");r.d(t,"DropdownMultiSelectListModel",(function(){return Se.DropdownMultiSelectListModel}));var Ve=r("./src/question_buttongroup.ts");r.d(t,"QuestionButtonGroupModel",(function(){return Ve.QuestionButtonGroupModel})),r.d(t,"ButtonGroupItemModel",(function(){return Ve.ButtonGroupItemModel})),r.d(t,"ButtonGroupItemValue",(function(){return Ve.ButtonGroupItemValue}));var Ee=r("./src/utils/devices.ts");r.d(t,"IsMobile",(function(){return Ee.IsMobile})),r.d(t,"IsTouch",(function(){return Ee.IsTouch})),r.d(t,"_setIsTouch",(function(){return Ee._setIsTouch}));var Oe=r("./src/utils/utils.ts");r.d(t,"confirmAction",(function(){return Oe.confirmAction})),r.d(t,"detectIEOrEdge",(function(){return Oe.detectIEOrEdge})),r.d(t,"doKey2ClickUp",(function(){return Oe.doKey2ClickUp})),r.d(t,"doKey2ClickDown",(function(){return Oe.doKey2ClickDown})),r.d(t,"doKey2ClickBlur",(function(){return Oe.doKey2ClickBlur})),r.d(t,"loadFileFromBase64",(function(){return Oe.loadFileFromBase64})),r.d(t,"increaseHeightByContent",(function(){return Oe.increaseHeightByContent})),r.d(t,"createSvg",(function(){return Oe.createSvg})),r.d(t,"sanitizeEditableContent",(function(){return Oe.sanitizeEditableContent}));var Te=r("./src/utils/cssClassBuilder.ts");r.d(t,"CssClassBuilder",(function(){return Te.CssClassBuilder}));var Re=r("./src/defaultCss/defaultV2Css.ts");r.d(t,"surveyCss",(function(){return Re.surveyCss})),r.d(t,"defaultV2Css",(function(){return Re.defaultV2Css})),r.d(t,"defaultV2ThemeName",(function(){return Re.defaultV2ThemeName}));var ke=r("./src/dragdrop/core.ts");r.d(t,"DragDropCore",(function(){return ke.DragDropCore}));var Ie,je=r("./src/dragdrop/choices.ts");function De(e,t){if(Ie!=e){var r="survey-core has version '"+Ie+"' and "+t+" has version '"+e+"'. SurveyJS libraries should have the same versions to work correctly.";console.error(r)}}r.d(t,"DragDropChoices",(function(){return je.DragDropChoices})),Ie="1.9.90"},"./src/entries/core-wo-model.ts":function(e,t,r){"use strict";r.r(t);var n=r("./src/entries/chunks/model.ts");r.d(t,"Version",(function(){return n.Version})),r.d(t,"checkLibraryVersion",(function(){return n.checkLibraryVersion})),r.d(t,"settings",(function(){return n.settings})),r.d(t,"Helpers",(function(){return n.Helpers})),r.d(t,"AnswerCountValidator",(function(){return n.AnswerCountValidator})),r.d(t,"EmailValidator",(function(){return n.EmailValidator})),r.d(t,"NumericValidator",(function(){return n.NumericValidator})),r.d(t,"RegexValidator",(function(){return n.RegexValidator})),r.d(t,"SurveyValidator",(function(){return n.SurveyValidator})),r.d(t,"TextValidator",(function(){return n.TextValidator})),r.d(t,"ValidatorResult",(function(){return n.ValidatorResult})),r.d(t,"ExpressionValidator",(function(){return n.ExpressionValidator})),r.d(t,"ValidatorRunner",(function(){return n.ValidatorRunner})),r.d(t,"ItemValue",(function(){return n.ItemValue})),r.d(t,"Base",(function(){return n.Base})),r.d(t,"Event",(function(){return n.Event})),r.d(t,"EventBase",(function(){return n.EventBase})),r.d(t,"ArrayChanges",(function(){return n.ArrayChanges})),r.d(t,"ComputedUpdater",(function(){return n.ComputedUpdater})),r.d(t,"SurveyError",(function(){return n.SurveyError})),r.d(t,"SurveyElementCore",(function(){return n.SurveyElementCore})),r.d(t,"SurveyElement",(function(){return n.SurveyElement})),r.d(t,"DragTypeOverMeEnum",(function(){return n.DragTypeOverMeEnum})),r.d(t,"CalculatedValue",(function(){return n.CalculatedValue})),r.d(t,"CustomError",(function(){return n.CustomError})),r.d(t,"AnswerRequiredError",(function(){return n.AnswerRequiredError})),r.d(t,"OneAnswerRequiredError",(function(){return n.OneAnswerRequiredError})),r.d(t,"RequreNumericError",(function(){return n.RequreNumericError})),r.d(t,"ExceedSizeError",(function(){return n.ExceedSizeError})),r.d(t,"LocalizableString",(function(){return n.LocalizableString})),r.d(t,"LocalizableStrings",(function(){return n.LocalizableStrings})),r.d(t,"HtmlConditionItem",(function(){return n.HtmlConditionItem})),r.d(t,"UrlConditionItem",(function(){return n.UrlConditionItem})),r.d(t,"ChoicesRestful",(function(){return n.ChoicesRestful})),r.d(t,"ChoicesRestfull",(function(){return n.ChoicesRestfull})),r.d(t,"FunctionFactory",(function(){return n.FunctionFactory})),r.d(t,"registerFunction",(function(){return n.registerFunction})),r.d(t,"ConditionRunner",(function(){return n.ConditionRunner})),r.d(t,"ExpressionRunner",(function(){return n.ExpressionRunner})),r.d(t,"ExpressionExecutor",(function(){return n.ExpressionExecutor})),r.d(t,"Operand",(function(){return n.Operand})),r.d(t,"Const",(function(){return n.Const})),r.d(t,"BinaryOperand",(function(){return n.BinaryOperand})),r.d(t,"Variable",(function(){return n.Variable})),r.d(t,"FunctionOperand",(function(){return n.FunctionOperand})),r.d(t,"ArrayOperand",(function(){return n.ArrayOperand})),r.d(t,"UnaryOperand",(function(){return n.UnaryOperand})),r.d(t,"ConditionsParser",(function(){return n.ConditionsParser})),r.d(t,"ProcessValue",(function(){return n.ProcessValue})),r.d(t,"JsonError",(function(){return n.JsonError})),r.d(t,"JsonIncorrectTypeError",(function(){return n.JsonIncorrectTypeError})),r.d(t,"JsonMetadata",(function(){return n.JsonMetadata})),r.d(t,"JsonMetadataClass",(function(){return n.JsonMetadataClass})),r.d(t,"JsonMissingTypeError",(function(){return n.JsonMissingTypeError})),r.d(t,"JsonMissingTypeErrorBase",(function(){return n.JsonMissingTypeErrorBase})),r.d(t,"JsonObject",(function(){return n.JsonObject})),r.d(t,"JsonObjectProperty",(function(){return n.JsonObjectProperty})),r.d(t,"JsonRequiredPropertyError",(function(){return n.JsonRequiredPropertyError})),r.d(t,"JsonUnknownPropertyError",(function(){return n.JsonUnknownPropertyError})),r.d(t,"Serializer",(function(){return n.Serializer})),r.d(t,"property",(function(){return n.property})),r.d(t,"propertyArray",(function(){return n.propertyArray})),r.d(t,"MatrixDropdownCell",(function(){return n.MatrixDropdownCell})),r.d(t,"MatrixDropdownRowModelBase",(function(){return n.MatrixDropdownRowModelBase})),r.d(t,"QuestionMatrixDropdownModelBase",(function(){return n.QuestionMatrixDropdownModelBase})),r.d(t,"MatrixDropdownColumn",(function(){return n.MatrixDropdownColumn})),r.d(t,"matrixDropdownColumnTypes",(function(){return n.matrixDropdownColumnTypes})),r.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return n.QuestionMatrixDropdownRenderedCell})),r.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return n.QuestionMatrixDropdownRenderedRow})),r.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return n.QuestionMatrixDropdownRenderedTable})),r.d(t,"MatrixDropdownRowModel",(function(){return n.MatrixDropdownRowModel})),r.d(t,"QuestionMatrixDropdownModel",(function(){return n.QuestionMatrixDropdownModel})),r.d(t,"MatrixDynamicRowModel",(function(){return n.MatrixDynamicRowModel})),r.d(t,"QuestionMatrixDynamicModel",(function(){return n.QuestionMatrixDynamicModel})),r.d(t,"MatrixRowModel",(function(){return n.MatrixRowModel})),r.d(t,"MatrixCells",(function(){return n.MatrixCells})),r.d(t,"QuestionMatrixModel",(function(){return n.QuestionMatrixModel})),r.d(t,"QuestionMatrixBaseModel",(function(){return n.QuestionMatrixBaseModel})),r.d(t,"MultipleTextItemModel",(function(){return n.MultipleTextItemModel})),r.d(t,"QuestionMultipleTextModel",(function(){return n.QuestionMultipleTextModel})),r.d(t,"MultipleTextEditorModel",(function(){return n.MultipleTextEditorModel})),r.d(t,"PanelModel",(function(){return n.PanelModel})),r.d(t,"PanelModelBase",(function(){return n.PanelModelBase})),r.d(t,"QuestionRowModel",(function(){return n.QuestionRowModel})),r.d(t,"FlowPanelModel",(function(){return n.FlowPanelModel})),r.d(t,"PageModel",(function(){return n.PageModel})),r.d(t,"DefaultTitleModel",(function(){return n.DefaultTitleModel})),r.d(t,"Question",(function(){return n.Question})),r.d(t,"QuestionNonValue",(function(){return n.QuestionNonValue})),r.d(t,"QuestionEmptyModel",(function(){return n.QuestionEmptyModel})),r.d(t,"QuestionCheckboxBase",(function(){return n.QuestionCheckboxBase})),r.d(t,"QuestionSelectBase",(function(){return n.QuestionSelectBase})),r.d(t,"QuestionCheckboxModel",(function(){return n.QuestionCheckboxModel})),r.d(t,"QuestionTagboxModel",(function(){return n.QuestionTagboxModel})),r.d(t,"QuestionRankingModel",(function(){return n.QuestionRankingModel})),r.d(t,"QuestionCommentModel",(function(){return n.QuestionCommentModel})),r.d(t,"QuestionDropdownModel",(function(){return n.QuestionDropdownModel})),r.d(t,"QuestionFactory",(function(){return n.QuestionFactory})),r.d(t,"ElementFactory",(function(){return n.ElementFactory})),r.d(t,"QuestionFileModel",(function(){return n.QuestionFileModel})),r.d(t,"QuestionHtmlModel",(function(){return n.QuestionHtmlModel})),r.d(t,"QuestionRadiogroupModel",(function(){return n.QuestionRadiogroupModel})),r.d(t,"QuestionRatingModel",(function(){return n.QuestionRatingModel})),r.d(t,"RenderedRatingItem",(function(){return n.RenderedRatingItem})),r.d(t,"QuestionExpressionModel",(function(){return n.QuestionExpressionModel})),r.d(t,"QuestionTextBase",(function(){return n.QuestionTextBase})),r.d(t,"CharacterCounter",(function(){return n.CharacterCounter})),r.d(t,"QuestionTextModel",(function(){return n.QuestionTextModel})),r.d(t,"QuestionBooleanModel",(function(){return n.QuestionBooleanModel})),r.d(t,"QuestionImagePickerModel",(function(){return n.QuestionImagePickerModel})),r.d(t,"ImageItemValue",(function(){return n.ImageItemValue})),r.d(t,"QuestionImageModel",(function(){return n.QuestionImageModel})),r.d(t,"QuestionSignaturePadModel",(function(){return n.QuestionSignaturePadModel})),r.d(t,"QuestionPanelDynamicModel",(function(){return n.QuestionPanelDynamicModel})),r.d(t,"QuestionPanelDynamicItem",(function(){return n.QuestionPanelDynamicItem})),r.d(t,"SurveyTimer",(function(){return n.SurveyTimer})),r.d(t,"SurveyTimerModel",(function(){return n.SurveyTimerModel})),r.d(t,"tryNavigateToPage",(function(){return n.tryNavigateToPage})),r.d(t,"createTOCListModel",(function(){return n.createTOCListModel})),r.d(t,"getTocRootCss",(function(){return n.getTocRootCss})),r.d(t,"SurveyProgressModel",(function(){return n.SurveyProgressModel})),r.d(t,"SurveyProgressButtonsModel",(function(){return n.SurveyProgressButtonsModel})),r.d(t,"SurveyModel",(function(){return n.SurveyModel})),r.d(t,"SurveyTrigger",(function(){return n.SurveyTrigger})),r.d(t,"SurveyTriggerComplete",(function(){return n.SurveyTriggerComplete})),r.d(t,"SurveyTriggerSetValue",(function(){return n.SurveyTriggerSetValue})),r.d(t,"SurveyTriggerVisible",(function(){return n.SurveyTriggerVisible})),r.d(t,"SurveyTriggerCopyValue",(function(){return n.SurveyTriggerCopyValue})),r.d(t,"SurveyTriggerRunExpression",(function(){return n.SurveyTriggerRunExpression})),r.d(t,"Trigger",(function(){return n.Trigger})),r.d(t,"PopupSurveyModel",(function(){return n.PopupSurveyModel})),r.d(t,"SurveyWindowModel",(function(){return n.SurveyWindowModel})),r.d(t,"TextPreProcessor",(function(){return n.TextPreProcessor})),r.d(t,"Notifier",(function(){return n.Notifier})),r.d(t,"dxSurveyService",(function(){return n.dxSurveyService})),r.d(t,"englishStrings",(function(){return n.englishStrings})),r.d(t,"surveyLocalization",(function(){return n.surveyLocalization})),r.d(t,"surveyStrings",(function(){return n.surveyStrings})),r.d(t,"QuestionCustomWidget",(function(){return n.QuestionCustomWidget})),r.d(t,"CustomWidgetCollection",(function(){return n.CustomWidgetCollection})),r.d(t,"QuestionCustomModel",(function(){return n.QuestionCustomModel})),r.d(t,"QuestionCompositeModel",(function(){return n.QuestionCompositeModel})),r.d(t,"ComponentQuestionJSON",(function(){return n.ComponentQuestionJSON})),r.d(t,"ComponentCollection",(function(){return n.ComponentCollection})),r.d(t,"StylesManager",(function(){return n.StylesManager})),r.d(t,"ListModel",(function(){return n.ListModel})),r.d(t,"MultiSelectListModel",(function(){return n.MultiSelectListModel})),r.d(t,"PopupModel",(function(){return n.PopupModel})),r.d(t,"createDialogOptions",(function(){return n.createDialogOptions})),r.d(t,"PopupBaseViewModel",(function(){return n.PopupBaseViewModel})),r.d(t,"PopupDropdownViewModel",(function(){return n.PopupDropdownViewModel})),r.d(t,"PopupModalViewModel",(function(){return n.PopupModalViewModel})),r.d(t,"createPopupViewModel",(function(){return n.createPopupViewModel})),r.d(t,"createPopupModalViewModel",(function(){return n.createPopupModalViewModel})),r.d(t,"DropdownListModel",(function(){return n.DropdownListModel})),r.d(t,"DropdownMultiSelectListModel",(function(){return n.DropdownMultiSelectListModel})),r.d(t,"QuestionButtonGroupModel",(function(){return n.QuestionButtonGroupModel})),r.d(t,"ButtonGroupItemModel",(function(){return n.ButtonGroupItemModel})),r.d(t,"ButtonGroupItemValue",(function(){return n.ButtonGroupItemValue})),r.d(t,"IsMobile",(function(){return n.IsMobile})),r.d(t,"IsTouch",(function(){return n.IsTouch})),r.d(t,"_setIsTouch",(function(){return n._setIsTouch})),r.d(t,"confirmAction",(function(){return n.confirmAction})),r.d(t,"detectIEOrEdge",(function(){return n.detectIEOrEdge})),r.d(t,"doKey2ClickUp",(function(){return n.doKey2ClickUp})),r.d(t,"doKey2ClickDown",(function(){return n.doKey2ClickDown})),r.d(t,"doKey2ClickBlur",(function(){return n.doKey2ClickBlur})),r.d(t,"loadFileFromBase64",(function(){return n.loadFileFromBase64})),r.d(t,"increaseHeightByContent",(function(){return n.increaseHeightByContent})),r.d(t,"createSvg",(function(){return n.createSvg})),r.d(t,"sanitizeEditableContent",(function(){return n.sanitizeEditableContent})),r.d(t,"CssClassBuilder",(function(){return n.CssClassBuilder})),r.d(t,"surveyCss",(function(){return n.surveyCss})),r.d(t,"defaultV2Css",(function(){return n.defaultV2Css})),r.d(t,"defaultV2ThemeName",(function(){return n.defaultV2ThemeName})),r.d(t,"DragDropCore",(function(){return n.DragDropCore})),r.d(t,"DragDropChoices",(function(){return n.DragDropChoices}));var o=r("./src/defaultCss/cssstandard.ts");r.d(t,"defaultStandardCss",(function(){return o.defaultStandardCss}));var i=r("./src/defaultCss/cssmodern.ts");r.d(t,"modernCss",(function(){return i.modernCss}));var s=r("./src/svgbundle.ts");r.d(t,"SvgIconRegistry",(function(){return s.SvgIconRegistry})),r.d(t,"SvgRegistry",(function(){return s.SvgRegistry})),r.d(t,"SvgBundleViewModel",(function(){return s.SvgBundleViewModel}));var a=r("./src/rendererFactory.ts");r.d(t,"RendererFactory",(function(){return a.RendererFactory}));var l=r("./src/utils/responsivity-manager.ts");r.d(t,"ResponsivityManager",(function(){return l.ResponsivityManager})),r.d(t,"VerticalResponsivityManager",(function(){return l.VerticalResponsivityManager}));var u=r("./src/utils/utils.ts");r.d(t,"unwrap",(function(){return u.unwrap})),r.d(t,"getOriginalEvent",(function(){return u.getOriginalEvent})),r.d(t,"getElement",(function(){return u.getElement}));var c=r("./src/actions/action.ts");r.d(t,"createDropdownActionModel",(function(){return c.createDropdownActionModel})),r.d(t,"createDropdownActionModelAdvanced",(function(){return c.createDropdownActionModelAdvanced})),r.d(t,"BaseAction",(function(){return c.BaseAction})),r.d(t,"Action",(function(){return c.Action})),r.d(t,"ActionDropdownViewModel",(function(){return c.ActionDropdownViewModel}));var p=r("./src/actions/adaptive-container.ts");r.d(t,"AdaptiveActionContainer",(function(){return p.AdaptiveActionContainer}));var d=r("./src/actions/container.ts");r.d(t,"defaultActionBarCss",(function(){return d.defaultActionBarCss})),r.d(t,"ActionContainer",(function(){return d.ActionContainer}));var h=r("./src/utils/tooltip.ts");r.d(t,"TooltipManager",(function(){return h.TooltipManager}));var f=r("./src/utils/dragOrClickHelper.ts");r.d(t,"DragOrClickHelper",(function(){return f.DragOrClickHelper}))},"./src/entries/core.ts":function(e,t,r){"use strict";r.r(t);var n=r("./src/entries/core-wo-model.ts");r.d(t,"Version",(function(){return n.Version})),r.d(t,"checkLibraryVersion",(function(){return n.checkLibraryVersion})),r.d(t,"settings",(function(){return n.settings})),r.d(t,"Helpers",(function(){return n.Helpers})),r.d(t,"AnswerCountValidator",(function(){return n.AnswerCountValidator})),r.d(t,"EmailValidator",(function(){return n.EmailValidator})),r.d(t,"NumericValidator",(function(){return n.NumericValidator})),r.d(t,"RegexValidator",(function(){return n.RegexValidator})),r.d(t,"SurveyValidator",(function(){return n.SurveyValidator})),r.d(t,"TextValidator",(function(){return n.TextValidator})),r.d(t,"ValidatorResult",(function(){return n.ValidatorResult})),r.d(t,"ExpressionValidator",(function(){return n.ExpressionValidator})),r.d(t,"ValidatorRunner",(function(){return n.ValidatorRunner})),r.d(t,"ItemValue",(function(){return n.ItemValue})),r.d(t,"Base",(function(){return n.Base})),r.d(t,"Event",(function(){return n.Event})),r.d(t,"EventBase",(function(){return n.EventBase})),r.d(t,"ArrayChanges",(function(){return n.ArrayChanges})),r.d(t,"ComputedUpdater",(function(){return n.ComputedUpdater})),r.d(t,"SurveyError",(function(){return n.SurveyError})),r.d(t,"SurveyElementCore",(function(){return n.SurveyElementCore})),r.d(t,"SurveyElement",(function(){return n.SurveyElement})),r.d(t,"DragTypeOverMeEnum",(function(){return n.DragTypeOverMeEnum})),r.d(t,"CalculatedValue",(function(){return n.CalculatedValue})),r.d(t,"CustomError",(function(){return n.CustomError})),r.d(t,"AnswerRequiredError",(function(){return n.AnswerRequiredError})),r.d(t,"OneAnswerRequiredError",(function(){return n.OneAnswerRequiredError})),r.d(t,"RequreNumericError",(function(){return n.RequreNumericError})),r.d(t,"ExceedSizeError",(function(){return n.ExceedSizeError})),r.d(t,"LocalizableString",(function(){return n.LocalizableString})),r.d(t,"LocalizableStrings",(function(){return n.LocalizableStrings})),r.d(t,"HtmlConditionItem",(function(){return n.HtmlConditionItem})),r.d(t,"UrlConditionItem",(function(){return n.UrlConditionItem})),r.d(t,"ChoicesRestful",(function(){return n.ChoicesRestful})),r.d(t,"ChoicesRestfull",(function(){return n.ChoicesRestfull})),r.d(t,"FunctionFactory",(function(){return n.FunctionFactory})),r.d(t,"registerFunction",(function(){return n.registerFunction})),r.d(t,"ConditionRunner",(function(){return n.ConditionRunner})),r.d(t,"ExpressionRunner",(function(){return n.ExpressionRunner})),r.d(t,"ExpressionExecutor",(function(){return n.ExpressionExecutor})),r.d(t,"Operand",(function(){return n.Operand})),r.d(t,"Const",(function(){return n.Const})),r.d(t,"BinaryOperand",(function(){return n.BinaryOperand})),r.d(t,"Variable",(function(){return n.Variable})),r.d(t,"FunctionOperand",(function(){return n.FunctionOperand})),r.d(t,"ArrayOperand",(function(){return n.ArrayOperand})),r.d(t,"UnaryOperand",(function(){return n.UnaryOperand})),r.d(t,"ConditionsParser",(function(){return n.ConditionsParser})),r.d(t,"ProcessValue",(function(){return n.ProcessValue})),r.d(t,"JsonError",(function(){return n.JsonError})),r.d(t,"JsonIncorrectTypeError",(function(){return n.JsonIncorrectTypeError})),r.d(t,"JsonMetadata",(function(){return n.JsonMetadata})),r.d(t,"JsonMetadataClass",(function(){return n.JsonMetadataClass})),r.d(t,"JsonMissingTypeError",(function(){return n.JsonMissingTypeError})),r.d(t,"JsonMissingTypeErrorBase",(function(){return n.JsonMissingTypeErrorBase})),r.d(t,"JsonObject",(function(){return n.JsonObject})),r.d(t,"JsonObjectProperty",(function(){return n.JsonObjectProperty})),r.d(t,"JsonRequiredPropertyError",(function(){return n.JsonRequiredPropertyError})),r.d(t,"JsonUnknownPropertyError",(function(){return n.JsonUnknownPropertyError})),r.d(t,"Serializer",(function(){return n.Serializer})),r.d(t,"property",(function(){return n.property})),r.d(t,"propertyArray",(function(){return n.propertyArray})),r.d(t,"MatrixDropdownCell",(function(){return n.MatrixDropdownCell})),r.d(t,"MatrixDropdownRowModelBase",(function(){return n.MatrixDropdownRowModelBase})),r.d(t,"QuestionMatrixDropdownModelBase",(function(){return n.QuestionMatrixDropdownModelBase})),r.d(t,"MatrixDropdownColumn",(function(){return n.MatrixDropdownColumn})),r.d(t,"matrixDropdownColumnTypes",(function(){return n.matrixDropdownColumnTypes})),r.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return n.QuestionMatrixDropdownRenderedCell})),r.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return n.QuestionMatrixDropdownRenderedRow})),r.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return n.QuestionMatrixDropdownRenderedTable})),r.d(t,"MatrixDropdownRowModel",(function(){return n.MatrixDropdownRowModel})),r.d(t,"QuestionMatrixDropdownModel",(function(){return n.QuestionMatrixDropdownModel})),r.d(t,"MatrixDynamicRowModel",(function(){return n.MatrixDynamicRowModel})),r.d(t,"QuestionMatrixDynamicModel",(function(){return n.QuestionMatrixDynamicModel})),r.d(t,"MatrixRowModel",(function(){return n.MatrixRowModel})),r.d(t,"MatrixCells",(function(){return n.MatrixCells})),r.d(t,"QuestionMatrixModel",(function(){return n.QuestionMatrixModel})),r.d(t,"QuestionMatrixBaseModel",(function(){return n.QuestionMatrixBaseModel})),r.d(t,"MultipleTextItemModel",(function(){return n.MultipleTextItemModel})),r.d(t,"QuestionMultipleTextModel",(function(){return n.QuestionMultipleTextModel})),r.d(t,"MultipleTextEditorModel",(function(){return n.MultipleTextEditorModel})),r.d(t,"PanelModel",(function(){return n.PanelModel})),r.d(t,"PanelModelBase",(function(){return n.PanelModelBase})),r.d(t,"QuestionRowModel",(function(){return n.QuestionRowModel})),r.d(t,"FlowPanelModel",(function(){return n.FlowPanelModel})),r.d(t,"PageModel",(function(){return n.PageModel})),r.d(t,"DefaultTitleModel",(function(){return n.DefaultTitleModel})),r.d(t,"Question",(function(){return n.Question})),r.d(t,"QuestionNonValue",(function(){return n.QuestionNonValue})),r.d(t,"QuestionEmptyModel",(function(){return n.QuestionEmptyModel})),r.d(t,"QuestionCheckboxBase",(function(){return n.QuestionCheckboxBase})),r.d(t,"QuestionSelectBase",(function(){return n.QuestionSelectBase})),r.d(t,"QuestionCheckboxModel",(function(){return n.QuestionCheckboxModel})),r.d(t,"QuestionTagboxModel",(function(){return n.QuestionTagboxModel})),r.d(t,"QuestionRankingModel",(function(){return n.QuestionRankingModel})),r.d(t,"QuestionCommentModel",(function(){return n.QuestionCommentModel})),r.d(t,"QuestionDropdownModel",(function(){return n.QuestionDropdownModel})),r.d(t,"QuestionFactory",(function(){return n.QuestionFactory})),r.d(t,"ElementFactory",(function(){return n.ElementFactory})),r.d(t,"QuestionFileModel",(function(){return n.QuestionFileModel})),r.d(t,"QuestionHtmlModel",(function(){return n.QuestionHtmlModel})),r.d(t,"QuestionRadiogroupModel",(function(){return n.QuestionRadiogroupModel})),r.d(t,"QuestionRatingModel",(function(){return n.QuestionRatingModel})),r.d(t,"RenderedRatingItem",(function(){return n.RenderedRatingItem})),r.d(t,"QuestionExpressionModel",(function(){return n.QuestionExpressionModel})),r.d(t,"QuestionTextBase",(function(){return n.QuestionTextBase})),r.d(t,"CharacterCounter",(function(){return n.CharacterCounter})),r.d(t,"QuestionTextModel",(function(){return n.QuestionTextModel})),r.d(t,"QuestionBooleanModel",(function(){return n.QuestionBooleanModel})),r.d(t,"QuestionImagePickerModel",(function(){return n.QuestionImagePickerModel})),r.d(t,"ImageItemValue",(function(){return n.ImageItemValue})),r.d(t,"QuestionImageModel",(function(){return n.QuestionImageModel})),r.d(t,"QuestionSignaturePadModel",(function(){return n.QuestionSignaturePadModel})),r.d(t,"QuestionPanelDynamicModel",(function(){return n.QuestionPanelDynamicModel})),r.d(t,"QuestionPanelDynamicItem",(function(){return n.QuestionPanelDynamicItem})),r.d(t,"SurveyTimer",(function(){return n.SurveyTimer})),r.d(t,"SurveyTimerModel",(function(){return n.SurveyTimerModel})),r.d(t,"tryNavigateToPage",(function(){return n.tryNavigateToPage})),r.d(t,"createTOCListModel",(function(){return n.createTOCListModel})),r.d(t,"getTocRootCss",(function(){return n.getTocRootCss})),r.d(t,"SurveyProgressModel",(function(){return n.SurveyProgressModel})),r.d(t,"SurveyProgressButtonsModel",(function(){return n.SurveyProgressButtonsModel})),r.d(t,"SurveyModel",(function(){return n.SurveyModel})),r.d(t,"SurveyTrigger",(function(){return n.SurveyTrigger})),r.d(t,"SurveyTriggerComplete",(function(){return n.SurveyTriggerComplete})),r.d(t,"SurveyTriggerSetValue",(function(){return n.SurveyTriggerSetValue})),r.d(t,"SurveyTriggerVisible",(function(){return n.SurveyTriggerVisible})),r.d(t,"SurveyTriggerCopyValue",(function(){return n.SurveyTriggerCopyValue})),r.d(t,"SurveyTriggerRunExpression",(function(){return n.SurveyTriggerRunExpression})),r.d(t,"Trigger",(function(){return n.Trigger})),r.d(t,"PopupSurveyModel",(function(){return n.PopupSurveyModel})),r.d(t,"SurveyWindowModel",(function(){return n.SurveyWindowModel})),r.d(t,"TextPreProcessor",(function(){return n.TextPreProcessor})),r.d(t,"Notifier",(function(){return n.Notifier})),r.d(t,"dxSurveyService",(function(){return n.dxSurveyService})),r.d(t,"englishStrings",(function(){return n.englishStrings})),r.d(t,"surveyLocalization",(function(){return n.surveyLocalization})),r.d(t,"surveyStrings",(function(){return n.surveyStrings})),r.d(t,"QuestionCustomWidget",(function(){return n.QuestionCustomWidget})),r.d(t,"CustomWidgetCollection",(function(){return n.CustomWidgetCollection})),r.d(t,"QuestionCustomModel",(function(){return n.QuestionCustomModel})),r.d(t,"QuestionCompositeModel",(function(){return n.QuestionCompositeModel})),r.d(t,"ComponentQuestionJSON",(function(){return n.ComponentQuestionJSON})),r.d(t,"ComponentCollection",(function(){return n.ComponentCollection})),r.d(t,"StylesManager",(function(){return n.StylesManager})),r.d(t,"ListModel",(function(){return n.ListModel})),r.d(t,"MultiSelectListModel",(function(){return n.MultiSelectListModel})),r.d(t,"PopupModel",(function(){return n.PopupModel})),r.d(t,"createDialogOptions",(function(){return n.createDialogOptions})),r.d(t,"PopupBaseViewModel",(function(){return n.PopupBaseViewModel})),r.d(t,"PopupDropdownViewModel",(function(){return n.PopupDropdownViewModel})),r.d(t,"PopupModalViewModel",(function(){return n.PopupModalViewModel})),r.d(t,"createPopupViewModel",(function(){return n.createPopupViewModel})),r.d(t,"createPopupModalViewModel",(function(){return n.createPopupModalViewModel})),r.d(t,"DropdownListModel",(function(){return n.DropdownListModel})),r.d(t,"DropdownMultiSelectListModel",(function(){return n.DropdownMultiSelectListModel})),r.d(t,"QuestionButtonGroupModel",(function(){return n.QuestionButtonGroupModel})),r.d(t,"ButtonGroupItemModel",(function(){return n.ButtonGroupItemModel})),r.d(t,"ButtonGroupItemValue",(function(){return n.ButtonGroupItemValue})),r.d(t,"IsMobile",(function(){return n.IsMobile})),r.d(t,"IsTouch",(function(){return n.IsTouch})),r.d(t,"_setIsTouch",(function(){return n._setIsTouch})),r.d(t,"confirmAction",(function(){return n.confirmAction})),r.d(t,"detectIEOrEdge",(function(){return n.detectIEOrEdge})),r.d(t,"doKey2ClickUp",(function(){return n.doKey2ClickUp})),r.d(t,"doKey2ClickDown",(function(){return n.doKey2ClickDown})),r.d(t,"doKey2ClickBlur",(function(){return n.doKey2ClickBlur})),r.d(t,"loadFileFromBase64",(function(){return n.loadFileFromBase64})),r.d(t,"increaseHeightByContent",(function(){return n.increaseHeightByContent})),r.d(t,"createSvg",(function(){return n.createSvg})),r.d(t,"sanitizeEditableContent",(function(){return n.sanitizeEditableContent})),r.d(t,"CssClassBuilder",(function(){return n.CssClassBuilder})),r.d(t,"surveyCss",(function(){return n.surveyCss})),r.d(t,"defaultV2Css",(function(){return n.defaultV2Css})),r.d(t,"defaultV2ThemeName",(function(){return n.defaultV2ThemeName})),r.d(t,"DragDropCore",(function(){return n.DragDropCore})),r.d(t,"DragDropChoices",(function(){return n.DragDropChoices})),r.d(t,"defaultStandardCss",(function(){return n.defaultStandardCss})),r.d(t,"modernCss",(function(){return n.modernCss})),r.d(t,"SvgIconRegistry",(function(){return n.SvgIconRegistry})),r.d(t,"SvgRegistry",(function(){return n.SvgRegistry})),r.d(t,"SvgBundleViewModel",(function(){return n.SvgBundleViewModel})),r.d(t,"RendererFactory",(function(){return n.RendererFactory})),r.d(t,"ResponsivityManager",(function(){return n.ResponsivityManager})),r.d(t,"VerticalResponsivityManager",(function(){return n.VerticalResponsivityManager})),r.d(t,"unwrap",(function(){return n.unwrap})),r.d(t,"getOriginalEvent",(function(){return n.getOriginalEvent})),r.d(t,"getElement",(function(){return n.getElement})),r.d(t,"createDropdownActionModel",(function(){return n.createDropdownActionModel})),r.d(t,"createDropdownActionModelAdvanced",(function(){return n.createDropdownActionModelAdvanced})),r.d(t,"BaseAction",(function(){return n.BaseAction})),r.d(t,"Action",(function(){return n.Action})),r.d(t,"ActionDropdownViewModel",(function(){return n.ActionDropdownViewModel})),r.d(t,"AdaptiveActionContainer",(function(){return n.AdaptiveActionContainer})),r.d(t,"defaultActionBarCss",(function(){return n.defaultActionBarCss})),r.d(t,"ActionContainer",(function(){return n.ActionContainer})),r.d(t,"TooltipManager",(function(){return n.TooltipManager})),r.d(t,"DragOrClickHelper",(function(){return n.DragOrClickHelper}));var o=r("./src/survey.ts");r.d(t,"Model",(function(){return o.SurveyModel}))},"./src/error.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"AnswerRequiredError",(function(){return a})),r.d(t,"OneAnswerRequiredError",(function(){return l})),r.d(t,"RequreNumericError",(function(){return u})),r.d(t,"ExceedSizeError",(function(){return c})),r.d(t,"WebRequestError",(function(){return p})),r.d(t,"WebRequestEmptyError",(function(){return d})),r.d(t,"OtherEmptyError",(function(){return h})),r.d(t,"UploadingFileError",(function(){return f})),r.d(t,"RequiredInAllRowsError",(function(){return m})),r.d(t,"MinRowCountError",(function(){return g})),r.d(t,"KeyDuplicationError",(function(){return b})),r.d(t,"CustomError",(function(){return y}));var n,o=r("./src/surveyStrings.ts"),i=r("./src/survey-error.ts"),s=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return s(t,e),t.prototype.getErrorType=function(){return"required"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredError")},t}(i.SurveyError),l=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return s(t,e),t.prototype.getErrorType=function(){return"requireoneanswer"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredErrorInPanel")},t}(i.SurveyError),u=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return s(t,e),t.prototype.getErrorType=function(){return"requirenumeric"},t.prototype.getDefaultText=function(){return this.getLocalizationString("numericError")},t}(i.SurveyError),c=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,null,r)||this;return n.maxSize=t,n.locText.text=n.getText(),n}return s(t,e),t.prototype.getErrorType=function(){return"exceedsize"},t.prototype.getDefaultText=function(){return o.surveyLocalization.getString("exceedMaxSize").format(this.getTextSize())},t.prototype.getTextSize=function(){if(0===this.maxSize)return"0 Byte";var e=Math.floor(Math.log(this.maxSize)/Math.log(1024));return(this.maxSize/Math.pow(1024,e)).toFixed([0,0,2,3,3][e])+" "+["Bytes","KB","MB","GB","TB"][e]},t}(i.SurveyError),p=function(e){function t(t,r,n){void 0===n&&(n=null);var o=e.call(this,null,n)||this;return o.status=t,o.response=r,o}return s(t,e),t.prototype.getErrorType=function(){return"webrequest"},t.prototype.getDefaultText=function(){var e=this.getLocalizationString("urlRequestError");return e?e.format(this.status,this.response):""},t}(i.SurveyError),d=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return s(t,e),t.prototype.getErrorType=function(){return"webrequestempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("urlGetChoicesError")},t}(i.SurveyError),h=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return s(t,e),t.prototype.getErrorType=function(){return"otherempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("otherRequiredError")},t}(i.SurveyError),f=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return s(t,e),t.prototype.getErrorType=function(){return"uploadingfile"},t.prototype.getDefaultText=function(){return this.getLocalizationString("uploadingFile")},t}(i.SurveyError),m=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return s(t,e),t.prototype.getErrorType=function(){return"requiredinallrowserror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredInAllRowsError")},t}(i.SurveyError),g=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,null,r)||this;return n.minRowCount=t,n}return s(t,e),t.prototype.getErrorType=function(){return"minrowcounterror"},t.prototype.getDefaultText=function(){return o.surveyLocalization.getString("minRowCountError").format(this.minRowCount)},t}(i.SurveyError),b=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return s(t,e),t.prototype.getErrorType=function(){return"keyduplicationerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("keyDuplicationError")},t}(i.SurveyError),y=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return s(t,e),t.prototype.getErrorType=function(){return"custom"},t}(i.SurveyError)},"./src/expressionItems.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ExpressionItem",(function(){return l})),r.d(t,"HtmlConditionItem",(function(){return u})),r.d(t,"UrlConditionItem",(function(){return c}));var n,o=r("./src/jsonobject.ts"),i=r("./src/base.ts"),s=r("./src/conditions.ts"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this)||this;return r.expression=t,r}return a(t,e),t.prototype.getType=function(){return"expressionitem"},t.prototype.runCondition=function(e,t){return!!this.expression&&new s.ConditionRunner(this.expression).run(e,t)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.locOwner},t}(i.Base),u=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t)||this;return n.createLocalizableString("html",n),n.html=r,n}return a(t,e),t.prototype.getType=function(){return"htmlconditionitem"},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t}(l),c=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t)||this;return n.createLocalizableString("url",n),n.url=r,n}return a(t,e),t.prototype.getType=function(){return"urlconditionitem"},Object.defineProperty(t.prototype,"url",{get:function(){return this.getLocalizableStringText("url")},set:function(e){this.setLocalizableStringText("url",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locUrl",{get:function(){return this.getLocalizableString("url")},enumerable:!1,configurable:!0}),t}(l);o.Serializer.addClass("expressionitem",["expression:condition"],(function(){return new l}),"base"),o.Serializer.addClass("htmlconditionitem",[{name:"html:html",serializationProperty:"locHtml"}],(function(){return new u}),"expressionitem"),o.Serializer.addClass("urlconditionitem",[{name:"url:string",serializationProperty:"locUrl"}],(function(){return new c}),"expressionitem")},"./src/expressions/expressionParser.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SyntaxError",(function(){return s})),r.d(t,"parse",(function(){return a}));var n,o=r("./src/expressions/expressions.ts"),i=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e){function t(r,n,o,i){var s=e.call(this)||this;return s.message=r,s.expected=n,s.found=o,s.location=i,s.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s,t),s}return i(t,e),t.buildMessage=function(e,t){function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function i(e){switch(e.type){case"literal":return'"'+n(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,r,n=e.map(i);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+((s=t)?'"'+n(s)+'"':"end of input")+" found.";var s},t}(Error),a=function(e,t){t=void 0!==t?t:{};var r,n,i,a,l={},u={Expression:Ir},c=Ir,p=function(e,t){return rn(e,t,!0)},d="||",h=Er("||",!1),f="or",m=Er("or",!0),g=function(){return"or"},b="&&",y=Er("&&",!1),v="and",w=Er("and",!0),x=function(){return"and"},C=function(e,t){return rn(e,t)},P="<=",_=Er("<=",!1),S="lessorequal",V=Er("lessorequal",!0),E=function(){return"lessorequal"},O=">=",T=Er(">=",!1),R="greaterorequal",k=Er("greaterorequal",!0),I=function(){return"greaterorequal"},j="==",D=Er("==",!1),q="equal",M=Er("equal",!0),L=function(){return"equal"},A="=",N=Er("=",!1),B="!=",F=Er("!=",!1),z="notequal",Q=Er("notequal",!0),H=function(){return"notequal"},U="<",W=Er("<",!1),J="less",G=Er("less",!0),$=function(){return"less"},K=">",Z=Er(">",!1),X="greater",Y=Er("greater",!0),ee=function(){return"greater"},te="+",re=Er("+",!1),ne=function(){return"plus"},oe="-",ie=Er("-",!1),se=function(){return"minus"},ae="*",le=Er("*",!1),ue=function(){return"mul"},ce="/",pe=Er("/",!1),de=function(){return"div"},he="%",fe=Er("%",!1),me=function(){return"mod"},ge="^",be=Er("^",!1),ye="power",ve=Er("power",!0),we=function(){return"power"},xe="*=",Ce=Er("*=",!1),Pe="contains",_e=Er("contains",!0),Se="contain",Ve=Er("contain",!0),Ee=function(){return"contains"},Oe="notcontains",Te=Er("notcontains",!0),Re="notcontain",ke=Er("notcontain",!0),Ie=function(){return"notcontains"},je="anyof",De=Er("anyof",!0),qe=function(){return"anyof"},Me="allof",Le=Er("allof",!0),Ae=function(){return"allof"},Ne="(",Be=Er("(",!1),Fe=")",ze=Er(")",!1),Qe=function(e){return e},He=function(e,t){return new o.FunctionOperand(e,t)},Ue="!",We=Er("!",!1),Je="negate",Ge=Er("negate",!0),$e=function(e){return new o.UnaryOperand(e,"negate")},Ke=function(e,t){return new o.UnaryOperand(e,t)},Ze="empty",Xe=Er("empty",!0),Ye=function(){return"empty"},et="notempty",tt=Er("notempty",!0),rt=function(){return"notempty"},nt="undefined",ot=Er("undefined",!1),it="null",st=Er("null",!1),at=function(){return null},lt=function(e){return new o.Const(e)},ut="{",ct=Er("{",!1),pt="}",dt=Er("}",!1),ht=function(e){return new o.Variable(e)},ft=function(e){return e},mt="''",gt=Er("''",!1),bt=function(){return""},yt='""',vt=Er('""',!1),wt="'",xt=Er("'",!1),Ct=function(e){return"'"+e+"'"},Pt='"',_t=Er('"',!1),St="[",Vt=Er("[",!1),Et="]",Ot=Er("]",!1),Tt=function(e){return e},Rt=",",kt=Er(",",!1),It=function(e,t){if(null==e)return new o.ArrayOperand([]);var r=[e];if(Array.isArray(t))for(var n=function(e){return[].concat.apply([],e)}(t),i=3;i<n.length;i+=4)r.push(n[i]);return new o.ArrayOperand(r)},jt="true",Dt=Er("true",!0),qt=function(){return!0},Mt="false",Lt=Er("false",!0),At=function(){return!1},Nt="0x",Bt=Er("0x",!1),Ft=function(){return parseInt(Vr(),16)},zt=/^[\-]/,Qt=Or(["-"],!1,!1),Ht=function(e,t){return null==e?t:-t},Ut=".",Wt=Er(".",!1),Jt=function(){return parseFloat(Vr())},Gt=function(){return parseInt(Vr(),10)},$t="0",Kt=Er("0",!1),Zt=function(){return 0},Xt=function(e){return e.join("")},Yt="\\'",er=Er("\\'",!1),tr=function(){return"'"},rr='\\"',nr=Er('\\"',!1),or=function(){return'"'},ir=/^[^"']/,sr=Or(['"',"'"],!0,!1),ar=function(){return Vr()},lr=/^[^{}]/,ur=Or(["{","}"],!0,!1),cr=/^[0-9]/,pr=Or([["0","9"]],!1,!1),dr=/^[1-9]/,hr=Or([["1","9"]],!1,!1),fr=/^[a-zA-Z_]/,mr=Or([["a","z"],["A","Z"],"_"],!1,!1),gr={type:"other",description:"whitespace"},br=/^[ \t\n\r]/,yr=Or([" ","\t","\n","\r"],!1,!1),vr=0,wr=0,xr=[{line:1,column:1}],Cr=0,Pr=[],_r=0,Sr={};if(void 0!==t.startRule){if(!(t.startRule in u))throw new Error("Can't start parsing from rule \""+t.startRule+'".');c=u[t.startRule]}function Vr(){return e.substring(wr,vr)}function Er(e,t){return{type:"literal",text:e,ignoreCase:t}}function Or(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Tr(t){var r,n=xr[t];if(n)return n;for(r=t-1;!xr[r];)r--;for(n={line:(n=xr[r]).line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return xr[t]=n,n}function Rr(e,t){var r=Tr(e),n=Tr(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function kr(e){vr<Cr||(vr>Cr&&(Cr=vr,Pr=[]),Pr.push(e))}function Ir(){var e,t,r,n,o,i,s,a,u=34*vr+0,c=Sr[u];if(c)return vr=c.nextPos,c.result;if(e=vr,tn()!==l)if((t=Dr())!==l){for(r=[],n=vr,(o=tn())!==l&&(i=jr())!==l&&(s=tn())!==l&&(a=Dr())!==l?n=o=[o,i,s,a]:(vr=n,n=l);n!==l;)r.push(n),n=vr,(o=tn())!==l&&(i=jr())!==l&&(s=tn())!==l&&(a=Dr())!==l?n=o=[o,i,s,a]:(vr=n,n=l);r!==l&&(n=tn())!==l?(wr=e,e=p(t,r)):(vr=e,e=l)}else vr=e,e=l;else vr=e,e=l;return Sr[u]={nextPos:vr,result:e},e}function jr(){var t,r,n=34*vr+1,o=Sr[n];return o?(vr=o.nextPos,o.result):(t=vr,e.substr(vr,2)===d?(r=d,vr+=2):(r=l,0===_r&&kr(h)),r===l&&(e.substr(vr,2).toLowerCase()===f?(r=e.substr(vr,2),vr+=2):(r=l,0===_r&&kr(m))),r!==l&&(wr=t,r=g()),t=r,Sr[n]={nextPos:vr,result:t},t)}function Dr(){var e,t,r,n,o,i,s,a,u=34*vr+2,c=Sr[u];if(c)return vr=c.nextPos,c.result;if(e=vr,(t=Mr())!==l){for(r=[],n=vr,(o=tn())!==l&&(i=qr())!==l&&(s=tn())!==l&&(a=Mr())!==l?n=o=[o,i,s,a]:(vr=n,n=l);n!==l;)r.push(n),n=vr,(o=tn())!==l&&(i=qr())!==l&&(s=tn())!==l&&(a=Mr())!==l?n=o=[o,i,s,a]:(vr=n,n=l);r!==l?(wr=e,e=t=p(t,r)):(vr=e,e=l)}else vr=e,e=l;return Sr[u]={nextPos:vr,result:e},e}function qr(){var t,r,n=34*vr+3,o=Sr[n];return o?(vr=o.nextPos,o.result):(t=vr,e.substr(vr,2)===b?(r=b,vr+=2):(r=l,0===_r&&kr(y)),r===l&&(e.substr(vr,3).toLowerCase()===v?(r=e.substr(vr,3),vr+=3):(r=l,0===_r&&kr(w))),r!==l&&(wr=t,r=x()),t=r,Sr[n]={nextPos:vr,result:t},t)}function Mr(){var e,t,r,n,o,i,s,a,u=34*vr+4,c=Sr[u];if(c)return vr=c.nextPos,c.result;if(e=vr,(t=Ar())!==l){for(r=[],n=vr,(o=tn())!==l&&(i=Lr())!==l&&(s=tn())!==l&&(a=Ar())!==l?n=o=[o,i,s,a]:(vr=n,n=l);n!==l;)r.push(n),n=vr,(o=tn())!==l&&(i=Lr())!==l&&(s=tn())!==l&&(a=Ar())!==l?n=o=[o,i,s,a]:(vr=n,n=l);r!==l?(wr=e,e=t=C(t,r)):(vr=e,e=l)}else vr=e,e=l;return Sr[u]={nextPos:vr,result:e},e}function Lr(){var t,r,n=34*vr+5,o=Sr[n];return o?(vr=o.nextPos,o.result):(t=vr,e.substr(vr,2)===P?(r=P,vr+=2):(r=l,0===_r&&kr(_)),r===l&&(e.substr(vr,11).toLowerCase()===S?(r=e.substr(vr,11),vr+=11):(r=l,0===_r&&kr(V))),r!==l&&(wr=t,r=E()),(t=r)===l&&(t=vr,e.substr(vr,2)===O?(r=O,vr+=2):(r=l,0===_r&&kr(T)),r===l&&(e.substr(vr,14).toLowerCase()===R?(r=e.substr(vr,14),vr+=14):(r=l,0===_r&&kr(k))),r!==l&&(wr=t,r=I()),(t=r)===l&&(t=vr,e.substr(vr,2)===j?(r=j,vr+=2):(r=l,0===_r&&kr(D)),r===l&&(e.substr(vr,5).toLowerCase()===q?(r=e.substr(vr,5),vr+=5):(r=l,0===_r&&kr(M))),r!==l&&(wr=t,r=L()),(t=r)===l&&(t=vr,61===e.charCodeAt(vr)?(r=A,vr++):(r=l,0===_r&&kr(N)),r===l&&(e.substr(vr,5).toLowerCase()===q?(r=e.substr(vr,5),vr+=5):(r=l,0===_r&&kr(M))),r!==l&&(wr=t,r=L()),(t=r)===l&&(t=vr,e.substr(vr,2)===B?(r=B,vr+=2):(r=l,0===_r&&kr(F)),r===l&&(e.substr(vr,8).toLowerCase()===z?(r=e.substr(vr,8),vr+=8):(r=l,0===_r&&kr(Q))),r!==l&&(wr=t,r=H()),(t=r)===l&&(t=vr,60===e.charCodeAt(vr)?(r=U,vr++):(r=l,0===_r&&kr(W)),r===l&&(e.substr(vr,4).toLowerCase()===J?(r=e.substr(vr,4),vr+=4):(r=l,0===_r&&kr(G))),r!==l&&(wr=t,r=$()),(t=r)===l&&(t=vr,62===e.charCodeAt(vr)?(r=K,vr++):(r=l,0===_r&&kr(Z)),r===l&&(e.substr(vr,7).toLowerCase()===X?(r=e.substr(vr,7),vr+=7):(r=l,0===_r&&kr(Y))),r!==l&&(wr=t,r=ee()),t=r)))))),Sr[n]={nextPos:vr,result:t},t)}function Ar(){var e,t,r,n,o,i,s,a,u=34*vr+6,c=Sr[u];if(c)return vr=c.nextPos,c.result;if(e=vr,(t=Br())!==l){for(r=[],n=vr,(o=tn())!==l&&(i=Nr())!==l&&(s=tn())!==l&&(a=Br())!==l?n=o=[o,i,s,a]:(vr=n,n=l);n!==l;)r.push(n),n=vr,(o=tn())!==l&&(i=Nr())!==l&&(s=tn())!==l&&(a=Br())!==l?n=o=[o,i,s,a]:(vr=n,n=l);r!==l?(wr=e,e=t=p(t,r)):(vr=e,e=l)}else vr=e,e=l;return Sr[u]={nextPos:vr,result:e},e}function Nr(){var t,r,n=34*vr+7,o=Sr[n];return o?(vr=o.nextPos,o.result):(t=vr,43===e.charCodeAt(vr)?(r=te,vr++):(r=l,0===_r&&kr(re)),r!==l&&(wr=t,r=ne()),(t=r)===l&&(t=vr,45===e.charCodeAt(vr)?(r=oe,vr++):(r=l,0===_r&&kr(ie)),r!==l&&(wr=t,r=se()),t=r),Sr[n]={nextPos:vr,result:t},t)}function Br(){var e,t,r,n,o,i,s,a,u=34*vr+8,c=Sr[u];if(c)return vr=c.nextPos,c.result;if(e=vr,(t=zr())!==l){for(r=[],n=vr,(o=tn())!==l&&(i=Fr())!==l&&(s=tn())!==l&&(a=zr())!==l?n=o=[o,i,s,a]:(vr=n,n=l);n!==l;)r.push(n),n=vr,(o=tn())!==l&&(i=Fr())!==l&&(s=tn())!==l&&(a=zr())!==l?n=o=[o,i,s,a]:(vr=n,n=l);r!==l?(wr=e,e=t=p(t,r)):(vr=e,e=l)}else vr=e,e=l;return Sr[u]={nextPos:vr,result:e},e}function Fr(){var t,r,n=34*vr+9,o=Sr[n];return o?(vr=o.nextPos,o.result):(t=vr,42===e.charCodeAt(vr)?(r=ae,vr++):(r=l,0===_r&&kr(le)),r!==l&&(wr=t,r=ue()),(t=r)===l&&(t=vr,47===e.charCodeAt(vr)?(r=ce,vr++):(r=l,0===_r&&kr(pe)),r!==l&&(wr=t,r=de()),(t=r)===l&&(t=vr,37===e.charCodeAt(vr)?(r=he,vr++):(r=l,0===_r&&kr(fe)),r!==l&&(wr=t,r=me()),t=r)),Sr[n]={nextPos:vr,result:t},t)}function zr(){var e,t,r,n,o,i,s,a,u=34*vr+10,c=Sr[u];if(c)return vr=c.nextPos,c.result;if(e=vr,(t=Hr())!==l){for(r=[],n=vr,(o=tn())!==l&&(i=Qr())!==l&&(s=tn())!==l&&(a=Hr())!==l?n=o=[o,i,s,a]:(vr=n,n=l);n!==l;)r.push(n),n=vr,(o=tn())!==l&&(i=Qr())!==l&&(s=tn())!==l&&(a=Hr())!==l?n=o=[o,i,s,a]:(vr=n,n=l);r!==l?(wr=e,e=t=p(t,r)):(vr=e,e=l)}else vr=e,e=l;return Sr[u]={nextPos:vr,result:e},e}function Qr(){var t,r,n=34*vr+11,o=Sr[n];return o?(vr=o.nextPos,o.result):(t=vr,94===e.charCodeAt(vr)?(r=ge,vr++):(r=l,0===_r&&kr(be)),r===l&&(e.substr(vr,5).toLowerCase()===ye?(r=e.substr(vr,5),vr+=5):(r=l,0===_r&&kr(ve))),r!==l&&(wr=t,r=we()),t=r,Sr[n]={nextPos:vr,result:t},t)}function Hr(){var e,t,r,n,o,i,s,a,u=34*vr+12,c=Sr[u];if(c)return vr=c.nextPos,c.result;if(e=vr,(t=Wr())!==l){for(r=[],n=vr,(o=tn())!==l&&(i=Ur())!==l&&(s=tn())!==l?((a=Wr())===l&&(a=null),a!==l?n=o=[o,i,s,a]:(vr=n,n=l)):(vr=n,n=l);n!==l;)r.push(n),n=vr,(o=tn())!==l&&(i=Ur())!==l&&(s=tn())!==l?((a=Wr())===l&&(a=null),a!==l?n=o=[o,i,s,a]:(vr=n,n=l)):(vr=n,n=l);r!==l?(wr=e,e=t=C(t,r)):(vr=e,e=l)}else vr=e,e=l;return Sr[u]={nextPos:vr,result:e},e}function Ur(){var t,r,n=34*vr+13,o=Sr[n];return o?(vr=o.nextPos,o.result):(t=vr,e.substr(vr,2)===xe?(r=xe,vr+=2):(r=l,0===_r&&kr(Ce)),r===l&&(e.substr(vr,8).toLowerCase()===Pe?(r=e.substr(vr,8),vr+=8):(r=l,0===_r&&kr(_e)),r===l&&(e.substr(vr,7).toLowerCase()===Se?(r=e.substr(vr,7),vr+=7):(r=l,0===_r&&kr(Ve)))),r!==l&&(wr=t,r=Ee()),(t=r)===l&&(t=vr,e.substr(vr,11).toLowerCase()===Oe?(r=e.substr(vr,11),vr+=11):(r=l,0===_r&&kr(Te)),r===l&&(e.substr(vr,10).toLowerCase()===Re?(r=e.substr(vr,10),vr+=10):(r=l,0===_r&&kr(ke))),r!==l&&(wr=t,r=Ie()),(t=r)===l&&(t=vr,e.substr(vr,5).toLowerCase()===je?(r=e.substr(vr,5),vr+=5):(r=l,0===_r&&kr(De)),r!==l&&(wr=t,r=qe()),(t=r)===l&&(t=vr,e.substr(vr,5).toLowerCase()===Me?(r=e.substr(vr,5),vr+=5):(r=l,0===_r&&kr(Le)),r!==l&&(wr=t,r=Ae()),t=r))),Sr[n]={nextPos:vr,result:t},t)}function Wr(){var t,r,n,o,i=34*vr+14,s=Sr[i];return s?(vr=s.nextPos,s.result):(t=vr,40===e.charCodeAt(vr)?(r=Ne,vr++):(r=l,0===_r&&kr(Be)),r!==l&&tn()!==l&&(n=Ir())!==l&&tn()!==l?(41===e.charCodeAt(vr)?(o=Fe,vr++):(o=l,0===_r&&kr(ze)),o===l&&(o=null),o!==l?(wr=t,t=r=Qe(n)):(vr=t,t=l)):(vr=t,t=l),t===l&&(t=function(){var t,r,n,o,i,s=34*vr+15,a=Sr[s];return a?(vr=a.nextPos,a.result):(t=vr,(r=Xr())!==l?(40===e.charCodeAt(vr)?(n=Ne,vr++):(n=l,0===_r&&kr(Be)),n!==l&&(o=Gr())!==l?(41===e.charCodeAt(vr)?(i=Fe,vr++):(i=l,0===_r&&kr(ze)),i===l&&(i=null),i!==l?(wr=t,t=r=He(r,o)):(vr=t,t=l)):(vr=t,t=l)):(vr=t,t=l),Sr[s]={nextPos:vr,result:t},t)}(),t===l&&(t=function(){var t,r,n,o=34*vr+16,i=Sr[o];return i?(vr=i.nextPos,i.result):(t=vr,33===e.charCodeAt(vr)?(r=Ue,vr++):(r=l,0===_r&&kr(We)),r===l&&(e.substr(vr,6).toLowerCase()===Je?(r=e.substr(vr,6),vr+=6):(r=l,0===_r&&kr(Ge))),r!==l&&tn()!==l&&(n=Ir())!==l?(wr=t,t=r=$e(n)):(vr=t,t=l),t===l&&(t=vr,(r=Jr())!==l&&tn()!==l?(n=function(){var t,r,n=34*vr+17,o=Sr[n];return o?(vr=o.nextPos,o.result):(t=vr,e.substr(vr,5).toLowerCase()===Ze?(r=e.substr(vr,5),vr+=5):(r=l,0===_r&&kr(Xe)),r!==l&&(wr=t,r=Ye()),(t=r)===l&&(t=vr,e.substr(vr,8).toLowerCase()===et?(r=e.substr(vr,8),vr+=8):(r=l,0===_r&&kr(tt)),r!==l&&(wr=t,r=rt()),t=r),Sr[n]={nextPos:vr,result:t},t)}(),n!==l?(wr=t,t=r=Ke(r,n)):(vr=t,t=l)):(vr=t,t=l)),Sr[o]={nextPos:vr,result:t},t)}(),t===l&&(t=Jr())===l&&(t=function(){var t,r,n,o,i=34*vr+20,s=Sr[i];return s?(vr=s.nextPos,s.result):(t=vr,91===e.charCodeAt(vr)?(r=St,vr++):(r=l,0===_r&&kr(Vt)),r!==l&&(n=Gr())!==l?(93===e.charCodeAt(vr)?(o=Et,vr++):(o=l,0===_r&&kr(Ot)),o!==l?(wr=t,t=r=Tt(n)):(vr=t,t=l)):(vr=t,t=l),Sr[i]={nextPos:vr,result:t},t)}()))),Sr[i]={nextPos:vr,result:t},t)}function Jr(){var t,r,n,o,i=34*vr+18,s=Sr[i];return s?(vr=s.nextPos,s.result):(t=vr,tn()!==l?(e.substr(vr,9)===nt?(r=nt,vr+=9):(r=l,0===_r&&kr(ot)),r===l&&(e.substr(vr,4)===it?(r=it,vr+=4):(r=l,0===_r&&kr(st))),r!==l?(wr=t,t=at()):(vr=t,t=l)):(vr=t,t=l),t===l&&(t=vr,tn()!==l?(r=function(){var t,r,n,o,i=34*vr+19,s=Sr[i];return s?(vr=s.nextPos,s.result):(t=vr,r=function(){var t,r,n=34*vr+22,o=Sr[n];return o?(vr=o.nextPos,o.result):(t=vr,e.substr(vr,4).toLowerCase()===jt?(r=e.substr(vr,4),vr+=4):(r=l,0===_r&&kr(Dt)),r!==l&&(wr=t,r=qt()),(t=r)===l&&(t=vr,e.substr(vr,5).toLowerCase()===Mt?(r=e.substr(vr,5),vr+=5):(r=l,0===_r&&kr(Lt)),r!==l&&(wr=t,r=At()),t=r),Sr[n]={nextPos:vr,result:t},t)}(),r!==l&&(wr=t,r=ft(r)),(t=r)===l&&(t=vr,r=function(){var t,r,n,o=34*vr+23,i=Sr[o];return i?(vr=i.nextPos,i.result):(t=vr,e.substr(vr,2)===Nt?(r=Nt,vr+=2):(r=l,0===_r&&kr(Bt)),r!==l&&(n=Yr())!==l?(wr=t,t=r=Ft()):(vr=t,t=l),t===l&&(t=vr,zt.test(e.charAt(vr))?(r=e.charAt(vr),vr++):(r=l,0===_r&&kr(Qt)),r===l&&(r=null),r!==l?(n=function(){var t,r,n,o=34*vr+24,i=Sr[o];return i?(vr=i.nextPos,i.result):(t=vr,(r=Yr())!==l?(46===e.charCodeAt(vr)?(n=Ut,vr++):(n=l,0===_r&&kr(Wt)),n!==l&&Yr()!==l?(wr=t,t=r=Jt()):(vr=t,t=l)):(vr=t,t=l),t===l&&(t=vr,r=function(){var t,r,n=34*vr+31,o=Sr[n];if(o)return vr=o.nextPos,o.result;if(t=[],dr.test(e.charAt(vr))?(r=e.charAt(vr),vr++):(r=l,0===_r&&kr(hr)),r!==l)for(;r!==l;)t.push(r),dr.test(e.charAt(vr))?(r=e.charAt(vr),vr++):(r=l,0===_r&&kr(hr));else t=l;return Sr[n]={nextPos:vr,result:t},t}(),r!==l?((n=Yr())===l&&(n=null),n!==l?(wr=t,t=r=Gt()):(vr=t,t=l)):(vr=t,t=l),t===l&&(t=vr,48===e.charCodeAt(vr)?(r=$t,vr++):(r=l,0===_r&&kr(Kt)),r!==l&&(wr=t,r=Zt()),t=r)),Sr[o]={nextPos:vr,result:t},t)}(),n!==l?(wr=t,t=r=Ht(r,n)):(vr=t,t=l)):(vr=t,t=l)),Sr[o]={nextPos:vr,result:t},t)}(),r!==l&&(wr=t,r=ft(r)),(t=r)===l&&(t=vr,(r=Xr())!==l&&(wr=t,r=ft(r)),(t=r)===l&&(t=vr,e.substr(vr,2)===mt?(r=mt,vr+=2):(r=l,0===_r&&kr(gt)),r!==l&&(wr=t,r=bt()),(t=r)===l&&(t=vr,e.substr(vr,2)===yt?(r=yt,vr+=2):(r=l,0===_r&&kr(vt)),r!==l&&(wr=t,r=bt()),(t=r)===l&&(t=vr,39===e.charCodeAt(vr)?(r=wt,vr++):(r=l,0===_r&&kr(xt)),r!==l&&(n=$r())!==l?(39===e.charCodeAt(vr)?(o=wt,vr++):(o=l,0===_r&&kr(xt)),o!==l?(wr=t,t=r=Ct(n)):(vr=t,t=l)):(vr=t,t=l),t===l&&(t=vr,34===e.charCodeAt(vr)?(r=Pt,vr++):(r=l,0===_r&&kr(_t)),r!==l&&(n=$r())!==l?(34===e.charCodeAt(vr)?(o=Pt,vr++):(o=l,0===_r&&kr(_t)),o!==l?(wr=t,t=r=Ct(n)):(vr=t,t=l)):(vr=t,t=l))))))),Sr[i]={nextPos:vr,result:t},t)}(),r!==l?(wr=t,t=lt(r)):(vr=t,t=l)):(vr=t,t=l),t===l&&(t=vr,tn()!==l?(123===e.charCodeAt(vr)?(r=ut,vr++):(r=l,0===_r&&kr(ct)),r!==l?(n=function(){var e,t,r,n=34*vr+25,o=Sr[n];if(o)return vr=o.nextPos,o.result;if(e=vr,t=[],(r=Zr())!==l)for(;r!==l;)t.push(r),r=Zr();else t=l;return t!==l&&(wr=e,t=Xt(t)),e=t,Sr[n]={nextPos:vr,result:e},e}(),n!==l?(125===e.charCodeAt(vr)?(o=pt,vr++):(o=l,0===_r&&kr(dt)),o!==l?(wr=t,t=ht(n)):(vr=t,t=l)):(vr=t,t=l)):(vr=t,t=l)):(vr=t,t=l))),Sr[i]={nextPos:vr,result:t},t)}function Gr(){var t,r,n,o,i,s,a,u,c=34*vr+21,p=Sr[c];if(p)return vr=p.nextPos,p.result;if(t=vr,(r=Ir())===l&&(r=null),r!==l){for(n=[],o=vr,(i=tn())!==l?(44===e.charCodeAt(vr)?(s=Rt,vr++):(s=l,0===_r&&kr(kt)),s!==l&&(a=tn())!==l&&(u=Ir())!==l?o=i=[i,s,a,u]:(vr=o,o=l)):(vr=o,o=l);o!==l;)n.push(o),o=vr,(i=tn())!==l?(44===e.charCodeAt(vr)?(s=Rt,vr++):(s=l,0===_r&&kr(kt)),s!==l&&(a=tn())!==l&&(u=Ir())!==l?o=i=[i,s,a,u]:(vr=o,o=l)):(vr=o,o=l);n!==l?(wr=t,t=r=It(r,n)):(vr=t,t=l)}else vr=t,t=l;return Sr[c]={nextPos:vr,result:t},t}function $r(){var e,t,r,n=34*vr+26,o=Sr[n];if(o)return vr=o.nextPos,o.result;if(e=vr,t=[],(r=Kr())!==l)for(;r!==l;)t.push(r),r=Kr();else t=l;return t!==l&&(wr=e,t=Xt(t)),e=t,Sr[n]={nextPos:vr,result:e},e}function Kr(){var t,r,n=34*vr+27,o=Sr[n];return o?(vr=o.nextPos,o.result):(t=vr,e.substr(vr,2)===Yt?(r=Yt,vr+=2):(r=l,0===_r&&kr(er)),r!==l&&(wr=t,r=tr()),(t=r)===l&&(t=vr,e.substr(vr,2)===rr?(r=rr,vr+=2):(r=l,0===_r&&kr(nr)),r!==l&&(wr=t,r=or()),(t=r)===l&&(t=vr,ir.test(e.charAt(vr))?(r=e.charAt(vr),vr++):(r=l,0===_r&&kr(sr)),r!==l&&(wr=t,r=ar()),t=r)),Sr[n]={nextPos:vr,result:t},t)}function Zr(){var t,r,n=34*vr+28,o=Sr[n];return o?(vr=o.nextPos,o.result):(t=vr,lr.test(e.charAt(vr))?(r=e.charAt(vr),vr++):(r=l,0===_r&&kr(ur)),r!==l&&(wr=t,r=ar()),t=r,Sr[n]={nextPos:vr,result:t},t)}function Xr(){var e,t,r,n,o,i,s=34*vr+29,a=Sr[s];if(a)return vr=a.nextPos,a.result;if(e=vr,en()!==l){if(t=[],r=vr,(n=Yr())!==l){for(o=[],i=en();i!==l;)o.push(i),i=en();o!==l?r=n=[n,o]:(vr=r,r=l)}else vr=r,r=l;for(;r!==l;)if(t.push(r),r=vr,(n=Yr())!==l){for(o=[],i=en();i!==l;)o.push(i),i=en();o!==l?r=n=[n,o]:(vr=r,r=l)}else vr=r,r=l;t!==l?(wr=e,e=ar()):(vr=e,e=l)}else vr=e,e=l;return Sr[s]={nextPos:vr,result:e},e}function Yr(){var t,r,n=34*vr+30,o=Sr[n];if(o)return vr=o.nextPos,o.result;if(t=[],cr.test(e.charAt(vr))?(r=e.charAt(vr),vr++):(r=l,0===_r&&kr(pr)),r!==l)for(;r!==l;)t.push(r),cr.test(e.charAt(vr))?(r=e.charAt(vr),vr++):(r=l,0===_r&&kr(pr));else t=l;return Sr[n]={nextPos:vr,result:t},t}function en(){var t,r,n=34*vr+32,o=Sr[n];if(o)return vr=o.nextPos,o.result;if(t=[],fr.test(e.charAt(vr))?(r=e.charAt(vr),vr++):(r=l,0===_r&&kr(mr)),r!==l)for(;r!==l;)t.push(r),fr.test(e.charAt(vr))?(r=e.charAt(vr),vr++):(r=l,0===_r&&kr(mr));else t=l;return Sr[n]={nextPos:vr,result:t},t}function tn(){var t,r,n=34*vr+33,o=Sr[n];if(o)return vr=o.nextPos,o.result;for(_r++,t=[],br.test(e.charAt(vr))?(r=e.charAt(vr),vr++):(r=l,0===_r&&kr(yr));r!==l;)t.push(r),br.test(e.charAt(vr))?(r=e.charAt(vr),vr++):(r=l,0===_r&&kr(yr));return _r--,t===l&&(r=l,0===_r&&kr(gr)),Sr[n]={nextPos:vr,result:t},t}function rn(e,t,r){return void 0===r&&(r=!1),t.reduce((function(e,t){return new o.BinaryOperand(t[1],e,t[3],r)}),e)}if((r=c())!==l&&vr===e.length)return r;throw r!==l&&vr<e.length&&kr({type:"end"}),n=Pr,i=Cr<e.length?e.charAt(Cr):null,a=Cr<e.length?Rr(Cr,Cr+1):Rr(Cr,Cr),new s(s.buildMessage(n,i),n,i,a)}},"./src/expressions/expressions.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"Operand",(function(){return u})),r.d(t,"BinaryOperand",(function(){return c})),r.d(t,"UnaryOperand",(function(){return p})),r.d(t,"ArrayOperand",(function(){return d})),r.d(t,"Const",(function(){return h})),r.d(t,"Variable",(function(){return f})),r.d(t,"FunctionOperand",(function(){return m})),r.d(t,"OperandMaker",(function(){return g}));var n,o=r("./src/helpers.ts"),i=r("./src/functionsfactory.ts"),s=r("./src/conditionProcessValue.ts"),a=r("./src/settings.ts"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(){function e(){}return e.prototype.toString=function(e){return void 0===e&&(e=void 0),""},e.prototype.hasFunction=function(){return!1},e.prototype.hasAsyncFunction=function(){return!1},e.prototype.addToAsyncList=function(e){},e.prototype.isEqual=function(e){return!!e&&e.getType()===this.getType()&&this.isContentEqual(e)},e.prototype.areOperatorsEquals=function(e,t){return!e&&!t||!!e&&e.isEqual(t)},e}(),c=function(e){function t(t,r,n,o){void 0===r&&(r=null),void 0===n&&(n=null),void 0===o&&(o=!1);var i=e.call(this)||this;return i.operatorName=t,i.left=r,i.right=n,i.isArithmeticValue=o,i.consumer=o?g.binaryFunctions.arithmeticOp(t):g.binaryFunctions[t],null==i.consumer&&g.throwInvalidOperatorError(t),i}return l(t,e),t.prototype.getType=function(){return"binary"},Object.defineProperty(t.prototype,"isArithmetic",{get:function(){return this.isArithmeticValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isConjunction",{get:function(){return"or"==this.operatorName||"and"==this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"conjunction",{get:function(){return this.isConjunction?this.operatorName:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftOperand",{get:function(){return this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightOperand",{get:function(){return this.right},enumerable:!1,configurable:!0}),t.prototype.isContentEqual=function(e){var t=e;return t.operator===this.operator&&this.areOperatorsEquals(this.left,t.left)&&this.areOperatorsEquals(this.right,t.right)},t.prototype.evaluateParam=function(e,t){return null==e?null:e.evaluate(t)},t.prototype.evaluate=function(e){return this.consumer.call(this,this.evaluateParam(this.left,e),this.evaluateParam(this.right,e))},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"("+g.safeToString(this.left,e)+" "+g.operatorToString(this.operatorName)+" "+g.safeToString(this.right,e)+")"},t.prototype.setVariables=function(e){null!=this.left&&this.left.setVariables(e),null!=this.right&&this.right.setVariables(e)},t.prototype.hasFunction=function(){return!!this.left&&this.left.hasFunction()||!!this.right&&this.right.hasFunction()},t.prototype.hasAsyncFunction=function(){return!!this.left&&this.left.hasAsyncFunction()||!!this.right&&this.right.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.left&&this.left.addToAsyncList(e),this.right&&this.right.addToAsyncList(e)},t}(u),p=function(e){function t(t,r){var n=e.call(this)||this;return n.expressionValue=t,n.operatorName=r,n.consumer=g.unaryFunctions[r],null==n.consumer&&g.throwInvalidOperatorError(r),n}return l(t,e),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"unary"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return g.operatorToString(this.operatorName)+" "+this.expression.toString(e)},t.prototype.isContentEqual=function(e){var t=e;return t.operator==this.operator&&this.areOperatorsEquals(this.expression,t.expression)},t.prototype.evaluate=function(e){var t=this.expression.evaluate(e);return this.consumer.call(this,t)},t.prototype.setVariables=function(e){this.expression.setVariables(e)},t}(u),d=function(e){function t(t){var r=e.call(this)||this;return r.values=t,r}return l(t,e),t.prototype.getType=function(){return"array"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"["+this.values.map((function(t){return t.toString(e)})).join(", ")+"]"},t.prototype.evaluate=function(e){return this.values.map((function(t){return t.evaluate(e)}))},t.prototype.setVariables=function(e){this.values.forEach((function(t){t.setVariables(e)}))},t.prototype.hasFunction=function(){return this.values.some((function(e){return e.hasFunction()}))},t.prototype.hasAsyncFunction=function(){return this.values.some((function(e){return e.hasAsyncFunction()}))},t.prototype.addToAsyncList=function(e){this.values.forEach((function(t){return t.addToAsyncList(e)}))},t.prototype.isContentEqual=function(e){var t=e;if(t.values.length!==this.values.length)return!1;for(var r=0;r<this.values.length;r++)if(!t.values[r].isEqual(this.values[r]))return!1;return!0},t}(u),h=function(e){function t(t){var r=e.call(this)||this;return r.value=t,r}return l(t,e),t.prototype.getType=function(){return"const"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.value.toString()},Object.defineProperty(t.prototype,"correctValue",{get:function(){return this.getCorrectValue(this.value)},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(){return this.getCorrectValue(this.value)},t.prototype.setVariables=function(e){},t.prototype.getCorrectValue=function(e){return e&&"string"==typeof e?this.isBooleanValue(e)?"true"===e.toLowerCase():e.length>1&&this.isQuote(e[0])&&this.isQuote(e[e.length-1])?e.substring(1,e.length-1):g.isNumeric(e)?0==e.indexOf("0x")?parseInt(e):e.length>1&&"0"==e[0]?e:parseFloat(e):e:e},t.prototype.isContentEqual=function(e){return e.value==this.value},t.prototype.isQuote=function(e){return"'"==e||'"'==e},t.prototype.isBooleanValue=function(e){return e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},t}(u),f=function(e){function t(r){var n=e.call(this,r)||this;return n.variableName=r,n.valueInfo={},n.useValueAsItIs=!1,n.variableName&&n.variableName.length>1&&n.variableName[0]===t.DisableConversionChar&&(n.variableName=n.variableName.substring(1),n.useValueAsItIs=!0),n}return l(t,e),Object.defineProperty(t,"DisableConversionChar",{get:function(){return a.settings.expressionDisableConversionChar},set:function(e){a.settings.expressionDisableConversionChar=e},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"variable"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var r=e(this);if(r)return r}return"{"+(this.useValueAsItIs?t.DisableConversionChar:"")+this.variableName+"}"},Object.defineProperty(t.prototype,"variable",{get:function(){return this.variableName},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(e){return this.valueInfo.name=this.variableName,e.getValueInfo(this.valueInfo),this.valueInfo.hasValue?this.getCorrectValue(this.valueInfo.value):null},t.prototype.setVariables=function(e){e.push(this.variableName)},t.prototype.getCorrectValue=function(t){return this.useValueAsItIs?t:e.prototype.getCorrectValue.call(this,t)},t.prototype.isContentEqual=function(e){return e.variable==this.variable},t}(h),m=function(e){function t(t,r){var n=e.call(this)||this;return n.originalValue=t,n.parameters=r,n.isReadyValue=!1,Array.isArray(r)&&0===r.length&&(n.parameters=new d([])),n}return l(t,e),t.prototype.getType=function(){return"function"},t.prototype.evaluateAsync=function(e){var t=this;this.isReadyValue=!1;var r=new s.ProcessValue;r.values=o.Helpers.createCopy(e.values),r.properties=o.Helpers.createCopy(e.properties),r.properties.returnResult=function(e){t.asynResult=e,t.isReadyValue=!0,t.onAsyncReady()},this.evaluateCore(r)},t.prototype.evaluate=function(e){return this.isReady?this.asynResult:this.evaluateCore(e)},t.prototype.evaluateCore=function(e){return i.FunctionFactory.Instance.run(this.originalValue,this.parameters.evaluate(e),e.properties)},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.originalValue+"("+this.parameters.toString(e)+")"},t.prototype.setVariables=function(e){this.parameters.setVariables(e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),t.prototype.hasFunction=function(){return!0},t.prototype.hasAsyncFunction=function(){return i.FunctionFactory.Instance.isAsyncFunction(this.originalValue)},t.prototype.addToAsyncList=function(e){this.hasAsyncFunction()&&e.push(this)},t.prototype.isContentEqual=function(e){var t=e;return t.originalValue==this.originalValue&&this.areOperatorsEquals(t.parameters,this.parameters)},t}(u),g=function(){function e(){}return e.throwInvalidOperatorError=function(e){throw new Error("Invalid operator: '"+e+"'")},e.safeToString=function(e,t){return null==e?"":e.toString(t)},e.toOperandString=function(t){return!t||e.isNumeric(t)||e.isBooleanValue(t)||(t="'"+t+"'"),t},e.isSpaceString=function(e){return!!e&&!e.replace(" ","")},e.isNumeric=function(t){return(!t||!(t.indexOf("-")>-1||t.indexOf("+")>1||t.indexOf("*")>-1||t.indexOf("^")>-1||t.indexOf("/")>-1||t.indexOf("%")>-1))&&!e.isSpaceString(t)&&o.Helpers.isNumber(t)},e.isBooleanValue=function(e){return!!e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},e.countDecimals=function(e){if(o.Helpers.isNumber(e)&&Math.floor(e)!==e){var t=e.toString().split(".");return t.length>1&&t[1].length||0}return 0},e.plusMinus=function(t,r,n){var o=e.countDecimals(t),i=e.countDecimals(r);if(o>0||i>0){var s=Math.max(o,i);n=parseFloat(n.toFixed(s))}return n},e.isTwoValueEquals=function(e,t){return"undefined"===e&&(e=void 0),"undefined"===t&&(t=void 0),o.Helpers.isTwoValueEquals(e,t,!0)},e.operatorToString=function(t){var r=e.signs[t];return null==r?t:r},e.unaryFunctions={empty:function(e){return o.Helpers.isValueEmpty(e)},notempty:function(t){return!e.unaryFunctions.empty(t)},negate:function(e){return!e}},e.binaryFunctions={arithmeticOp:function(t){var r=function(e,t){return o.Helpers.isValueEmpty(e)?"number"==typeof t?0:"string"==typeof e?e:"string"==typeof t?"":Array.isArray(t)?[]:0:e};return function(n,o){n=r(n,o),o=r(o,n);var i=e.binaryFunctions[t];return null==i?null:i.call(this,n,o)}},and:function(e,t){return e&&t},or:function(e,t){return e||t},plus:function(e,t){return o.Helpers.sumAnyValues(e,t)},minus:function(e,t){return o.Helpers.correctAfterPlusMinis(e,t,e-t)},mul:function(e,t){return o.Helpers.correctAfterMultiple(e,t,e*t)},div:function(e,t){return t?e/t:null},mod:function(e,t){return t?e%t:null},power:function(e,t){return Math.pow(e,t)},greater:function(e,t){return null!=e&&null!=t&&e>t},less:function(e,t){return null!=e&&null!=t&&e<t},greaterorequal:function(t,r){return!!e.binaryFunctions.equal(t,r)||e.binaryFunctions.greater(t,r)},lessorequal:function(t,r){return!!e.binaryFunctions.equal(t,r)||e.binaryFunctions.less(t,r)},equal:function(t,r){return e.isTwoValueEquals(t,r)},notequal:function(t,r){return!e.binaryFunctions.equal(t,r)},contains:function(t,r){return e.binaryFunctions.containsCore(t,r,!0)},notcontains:function(t,r){return!t&&!o.Helpers.isValueEmpty(r)||e.binaryFunctions.containsCore(t,r,!1)},anyof:function(t,r){if(o.Helpers.isValueEmpty(t)&&o.Helpers.isValueEmpty(r))return!0;if(o.Helpers.isValueEmpty(t)||!Array.isArray(t)&&0===t.length)return!1;if(o.Helpers.isValueEmpty(r))return!0;if(!Array.isArray(t))return e.binaryFunctions.contains(r,t);if(!Array.isArray(r))return e.binaryFunctions.contains(t,r);for(var n=0;n<r.length;n++)if(e.binaryFunctions.contains(t,r[n]))return!0;return!1},allof:function(t,r){if(!t&&!o.Helpers.isValueEmpty(r))return!1;if(!Array.isArray(r))return e.binaryFunctions.contains(t,r);for(var n=0;n<r.length;n++)if(!e.binaryFunctions.contains(t,r[n]))return!1;return!0},containsCore:function(t,r,n){if(!t&&0!==t&&!1!==t)return!1;if(t.length||(t=t.toString(),("string"==typeof r||r instanceof String)&&(t=t.toUpperCase(),r=r.toUpperCase())),"string"==typeof t||t instanceof String){if(!r)return!1;r=r.toString();var o=t.indexOf(r)>-1;return n?o:!o}for(var i=Array.isArray(r)?r:[r],s=0;s<i.length;s++){var a=0;for(r=i[s];a<t.length&&!e.isTwoValueEquals(t[a],r);a++);if(a==t.length)return!n}return n}},e.signs={less:"<",lessorequal:"<=",greater:">",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"and",or:"or",power:"^",mod:"%",negate:"!"},e}()},"./src/flowpanel.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"FlowPanelModel",(function(){return a}));var n,o=r("./src/jsonobject.ts"),i=r("./src/panel.ts"),s=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(t){void 0===t&&(t="");var r=e.call(this,t)||this;return r.createLocalizableString("content",r,!0),r.registerPropertyChangedHandlers(["content"],(function(){r.onContentChanged()})),r}return s(t,e),t.prototype.getType=function(){return"flowpanel"},t.prototype.getChildrenLayoutType=function(){return"flow"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onContentChanged()},Object.defineProperty(t.prototype,"content",{get:function(){return this.getLocalizableStringText("content")},set:function(e){this.setLocalizableStringText("content",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locContent",{get:function(){return this.getLocalizableString("content")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.getPropertyValue("html","")},set:function(e){this.setPropertyValue("html",e)},enumerable:!1,configurable:!0}),t.prototype.onContentChanged=function(){var e;e=this.onCustomHtmlProducing?this.onCustomHtmlProducing():this.produceHtml(),this.html=e,this.contentChangedCallback&&this.contentChangedCallback()},t.prototype.produceHtml=function(){for(var e=[],t=/{(.*?(element:)[^$].*?)}/g,r=this.content,n=0,o=null;null!==(o=t.exec(r));){o.index>n&&(e.push(r.substring(n,o.index)),n=o.index);var i=this.getQuestionFromText(o[0]);i?e.push(this.getHtmlForQuestion(i)):e.push(r.substring(n,o.index+o[0].length)),n=o.index+o[0].length}return n<r.length&&e.push(r.substring(n,r.length)),e.join("").replace(new RegExp("<br>","g"),"<br/>")},t.prototype.getQuestionFromText=function(e){return e=(e=e.substring(1,e.length-1)).replace(t.contentElementNamePrefix,"").trim(),this.getQuestionByName(e)},t.prototype.getHtmlForQuestion=function(e){return this.onGetHtmlForQuestion?this.onGetHtmlForQuestion(e):""},t.prototype.getQuestionHtmlId=function(e){return this.name+"_"+e.id},t.prototype.onAddElement=function(t,r){e.prototype.onAddElement.call(this,t,r),this.addElementToContent(t),t.renderWidth=""},t.prototype.onRemoveElement=function(t){var r=this.getElementContentText(t);this.content=this.content.replace(r,""),e.prototype.onRemoveElement.call(this,t)},t.prototype.dragDropMoveElement=function(e,t,r){},t.prototype.addElementToContent=function(e){if(!this.isLoadingFromJson){var t=this.getElementContentText(e);this.insertTextAtCursor(t)||(this.content=this.content+t)}},t.prototype.insertTextAtCursor=function(e,t){if(void 0===t&&(t=null),!this.isDesignMode||"undefined"==typeof document||!window.getSelection)return!1;var r=window.getSelection();if(r.getRangeAt&&r.rangeCount){var n=r.getRangeAt(0);if(n.deleteContents(),n.insertNode(document.createTextNode(e)),this.getContent){var o=this.getContent(t);this.content=o}return!0}return!1},t.prototype.getElementContentText=function(e){return"{"+t.contentElementNamePrefix+e.name+"}"},t.contentElementNamePrefix="element:",t}(i.PanelModel);o.Serializer.addClass("flowpanel",[{name:"content:html",serializationProperty:"locContent"}],(function(){return new a}),"panel")},"./src/functionsfactory.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"FunctionFactory",(function(){return i})),r.d(t,"registerFunction",(function(){return s}));var n=r("./src/helpers.ts"),o=r("./src/settings.ts"),i=function(){function e(){this.functionHash={},this.isAsyncHash={}}return e.prototype.register=function(e,t,r){void 0===r&&(r=!1),this.functionHash[e]=t,r&&(this.isAsyncHash[e]=!0)},e.prototype.unregister=function(e){delete this.functionHash[e],delete this.isAsyncHash[e]},e.prototype.hasFunction=function(e){return!!this.functionHash[e]},e.prototype.isAsyncFunction=function(e){return!!this.isAsyncHash[e]},e.prototype.clear=function(){this.functionHash={}},e.prototype.getAll=function(){var e=[];for(var t in this.functionHash)e.push(t);return e.sort()},e.prototype.run=function(e,t,r){void 0===r&&(r=null);var n=this.functionHash[e];if(!n)return null;var o={func:n};if(r)for(var i in r)o[i]=r[i];return o.func(t)},e.Instance=new e,e}(),s=i.Instance.register;function a(e,t){if(null!=e)if(Array.isArray(e))for(var r=0;r<e.length;r++)a(e[r],t);else n.Helpers.isNumber(e)&&(e=n.Helpers.getNumber(e)),t.push(e)}function l(e){var t=[];a(e,t);for(var r=0,o=0;o<t.length;o++)r=n.Helpers.correctAfterPlusMinis(r,t[o],r+t[o]);return r}function u(e,t){var r=[];a(e,r);for(var n=void 0,o=0;o<r.length;o++)void 0===n&&(n=r[o]),t?n>r[o]&&(n=r[o]):n<r[o]&&(n=r[o]);return n}function c(e,t,r,o,i){return!e||n.Helpers.isValueEmpty(e[t])?r:o(r,i?"string"==typeof(s=e[t])?n.Helpers.isNumber(s)?n.Helpers.getNumber(s):void 0:s:1);var s}function p(e,t,r){void 0===r&&(r=!0);var n=function(e){if(2!=e.length)return null;var t=e[0];if(!t)return null;if(!Array.isArray(t)&&!Array.isArray(Object.keys(t)))return null;var r=e[1];return"string"==typeof r||r instanceof String?{data:t,name:r}:null}(e);if(n){var o=void 0;if(Array.isArray(n.data))for(var i=0;i<n.data.length;i++)o=c(n.data[i],n.name,o,t,r);else for(var s in n.data)o=c(n.data[s],n.name,o,t,r);return o}}function d(e){var t=p(e,(function(e,t){return null==e&&(e=0),null==t||null==t?e:n.Helpers.correctAfterPlusMinis(e,t,e+t)}));return void 0!==t?t:0}function h(e){var t=p(e,(function(e,t){return null==e&&(e=0),null==t||null==t?e:e+1}),!1);return void 0!==t?t:0}function f(e){if(!e)return!1;for(var t=e.questions,r=0;r<t.length;r++)if(!t[r].validate(!1))return!1;return!0}i.Instance.register("sum",l),i.Instance.register("min",(function(e){return u(e,!0)})),i.Instance.register("max",(function(e){return u(e,!1)})),i.Instance.register("count",(function(e){var t=[];return a(e,t),t.length})),i.Instance.register("avg",(function(e){var t=[];a(e,t);var r=l(e);return t.length>0?r/t.length:0})),i.Instance.register("sumInArray",d),i.Instance.register("minInArray",(function(e){return p(e,(function(e,t){return null==e?t:null==t||null==t||e<t?e:t}))})),i.Instance.register("maxInArray",(function(e){return p(e,(function(e,t){return null==e?t:null==t||null==t||e>t?e:t}))})),i.Instance.register("countInArray",h),i.Instance.register("avgInArray",(function(e){var t=h(e);return 0==t?0:d(e)/t})),i.Instance.register("iif",(function(e){return e||3===e.length?e[0]?e[1]:e[2]:""})),i.Instance.register("getDate",(function(e){return!e&&e.length<1?null:e[0]?new Date(e[0]):null})),i.Instance.register("age",(function(e){if(!e&&e.length<1)return null;if(!e[0])return null;var t=new Date(e[0]),r=new Date,n=r.getFullYear()-t.getFullYear(),o=r.getMonth()-t.getMonth();return(o<0||0===o&&r.getDate()<t.getDate())&&(n-=n>0?1:0),n})),i.Instance.register("isContainerReady",(function(e){if(!e&&e.length<1)return!1;if(!e[0]||!this.survey)return!1;var t=e[0],r=this.survey.getPageByName(t);if(r||(r=this.survey.getPanelByName(t)),!r){var n=this.survey.getQuestionByName(t);if(!n||!Array.isArray(n.panels))return!1;if(!(e.length>1)){for(var o=0;o<n.panels.length;o++)if(!f(n.panels[o]))return!1;return!0}e[1]<n.panels.length&&(r=n.panels[e[1]])}return f(r)})),i.Instance.register("isDisplayMode",(function(){return this.survey&&this.survey.isDisplayMode})),i.Instance.register("currentDate",(function(){return new Date})),i.Instance.register("today",(function(e){var t=new Date;return o.settings.useLocalTimeZone?t.setHours(0,0,0,0):t.setUTCHours(0,0,0,0),Array.isArray(e)&&1==e.length&&t.setDate(t.getDate()+e[0]),t})),i.Instance.register("getYear",(function(e){if(1===e.length&&e[0])return new Date(e[0]).getFullYear()})),i.Instance.register("currentYear",(function(){return(new Date).getFullYear()})),i.Instance.register("diffDays",(function(e){if(!Array.isArray(e)||2!==e.length)return 0;if(!e[0]||!e[1])return 0;var t=new Date(e[0]),r=new Date(e[1]),n=Math.abs(r-t);return Math.ceil(n/864e5)}))},"./src/helpers.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"Helpers",(function(){return o}));var n=r("./src/settings.ts"),o=function(){function e(){}return e.isValueEmpty=function(t){if(Array.isArray(t)&&0===t.length)return!0;if(t&&"object"==typeof t&&t.constructor===Object){for(var r in t)if(!e.isValueEmpty(t[r]))return!1;return!0}return!t&&0!==t&&!1!==t},e.isArrayContainsEqual=function(t,r){if(!Array.isArray(t)||!Array.isArray(r))return!1;if(t.length!==r.length)return!1;for(var n=0;n<t.length;n++){for(var o=0;o<r.length&&!e.isTwoValueEquals(t[n],r[o]);o++);if(o===r.length)return!1}return!0},e.isArraysEqual=function(t,r,n,o,i){if(void 0===n&&(n=!1),!Array.isArray(t)||!Array.isArray(r))return!1;if(t.length!==r.length)return!1;if(n){for(var s=[],a=[],l=0;l<t.length;l++)s.push(t[l]),a.push(r[l]);s.sort(),a.sort(),t=s,r=a}for(l=0;l<t.length;l++)if(!e.isTwoValueEquals(t[l],r[l],n,o,i))return!1;return!0},e.compareStrings=function(e,t){if(e&&(e=e.trim()),t&&(t=t.trim()),!e&&!t)return 0;if(!e)return-1;if(!t)return 1;if(e===t)return 0;for(var r=-1,n=0;n<e.length&&n<t.length;n++){if(this.isCharDigit(e[n])&&this.isCharDigit(t[n])){r=n;break}if(e[n]!==t[n])break}if(r>-1){var o=this.getNumberFromStr(e,r),i=this.getNumberFromStr(t,r);if(!Number.isNaN(o)&&!Number.isNaN(i)&&o!==i)return o>i?1:-1}return e>t?1:-1},e.isTwoValueEquals=function(t,r,o,i,s){if(void 0===o&&(o=!1),t===r)return!0;if(Array.isArray(t)&&0===t.length&&void 0===r)return!0;if(Array.isArray(r)&&0===r.length&&void 0===t)return!0;if(null==t&&""===r)return!0;if(null==r&&""===t)return!0;if(void 0===s&&(s=n.settings.comparator.trimStrings),void 0===i&&(i=n.settings.comparator.caseSensitive),"string"==typeof t&&"string"==typeof r)return s&&(t=t.trim(),r=r.trim()),i||(t=t.toLowerCase(),r=r.toLowerCase()),t===r;if(t instanceof Date&&r instanceof Date)return t.getTime()==r.getTime();if(e.isConvertibleToNumber(t)&&e.isConvertibleToNumber(r)&&parseInt(t)===parseInt(r)&&parseFloat(t)===parseFloat(r))return!0;if(!e.isValueEmpty(t)&&e.isValueEmpty(r)||e.isValueEmpty(t)&&!e.isValueEmpty(r))return!1;if((!0===t||!1===t)&&"string"==typeof r)return t.toString()===r.toLocaleLowerCase();if((!0===r||!1===r)&&"string"==typeof t)return r.toString()===t.toLocaleLowerCase();if(!(t instanceof Object||r instanceof Object))return t==r;if(!(t instanceof Object&&r instanceof Object))return!1;if(t.equals)return t.equals(r);if(t.toJSON&&r.toJSON&&t.getType&&r.getType)return!t.isDiposed&&!r.isDiposed&&t.getType()===r.getType()&&(!t.name||t.name===r.name)&&this.isTwoValueEquals(t.toJSON(),r.toJSON(),o,i,s);if(Array.isArray(t)&&Array.isArray(r))return e.isArraysEqual(t,r,o,i,s);if(t.equalsTo&&r.equalsTo)return t.equalsTo(r);for(var a in t)if(t.hasOwnProperty(a)){if(!r.hasOwnProperty(a))return!1;if(!this.isTwoValueEquals(t[a],r[a],o,i,s))return!1}for(a in r)if(r.hasOwnProperty(a)&&!t.hasOwnProperty(a))return!1;return!0},e.randomizeArray=function(e){for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e},e.getUnbindValue=function(e){return e&&e instanceof Object&&!(e instanceof Date)?JSON.parse(JSON.stringify(e)):e},e.createCopy=function(e){var t={};if(!e)return t;for(var r in e)t[r]=e[r];return t},e.isConvertibleToNumber=function(e){return null!=e&&!Array.isArray(e)&&!isNaN(e)},e.isNumber=function(e){return!isNaN(this.getNumber(e))},e.getNumber=function(e){if("string"==typeof e&&e&&0==e.indexOf("0x")&&e.length>32)return NaN;e=this.prepareStringToNumber(e);var t=parseFloat(e);return isNaN(t)||!isFinite(e)?NaN:t},e.prepareStringToNumber=function(e){if("string"!=typeof e||!e)return e;var t=e.indexOf(",");return t>-1&&e.indexOf(",",t+1)<0?e.replace(",","."):e},e.getMaxLength=function(e,t){return e<0&&(e=t),e>0?e:null},e.getRemainingCharacterCounterText=function(e,t){return!t||t<=0?"":[e?e.length:"0",t].join("/")},e.getNumberByIndex=function(t,r){if(t<0)return"";var n=1,o="",i=".",s=!0,a="A",l="";if(r){for(var u=(l=r).length-1,c=!1,p=0;p<l.length;p++)if(e.isCharDigit(l[p])){c=!0;break}for(var d=function(){return c&&!e.isCharDigit(l[u])||e.isCharNotLetterAndDigit(l[u])};u>=0&&d();)u--;var h="";for(u<l.length-1&&(h=l.substring(u+1),l=l.substring(0,u+1)),u=l.length-1;u>=0&&!d()&&(u--,c););a=l.substring(u+1),o=l.substring(0,u+1),parseInt(a)?n=parseInt(a):1==a.length&&(s=!1),(h||o)&&(i=h)}if(s){for(var f=(t+n).toString();f.length<a.length;)f="0"+f;return o+f+i}return o+String.fromCharCode(a.charCodeAt(0)+t)+i},e.isCharNotLetterAndDigit=function(t){return t.toUpperCase()==t.toLowerCase()&&!e.isCharDigit(t)},e.isCharDigit=function(e){return e>="0"&&e<="9"},e.getNumberFromStr=function(e,t){if(!this.isCharDigit(e[t]))return NaN;for(var r="";t<e.length&&this.isCharDigit(e[t]);)r+=e[t],t++;return r?this.getNumber(r):NaN},e.countDecimals=function(t){if(e.isNumber(t)&&Math.floor(t)!==t){var r=t.toString().split(".");return r.length>1&&r[1].length||0}return 0},e.correctAfterPlusMinis=function(t,r,n){var o=e.countDecimals(t),i=e.countDecimals(r);if(o>0||i>0){var s=Math.max(o,i);n=parseFloat(n.toFixed(s))}return n},e.sumAnyValues=function(t,r){if(!e.isNumber(t)||!e.isNumber(r)){if(Array.isArray(t)&&Array.isArray(r))return[].concat(t).concat(r);if(Array.isArray(t)||Array.isArray(r)){var n=Array.isArray(t)?t:r,o=n===t?r:t;if("string"==typeof o){var i=n.join(", ");return n===t?i+o:o+i}if("number"==typeof o){for(var s=0,a=0;a<n.length;a++)"number"==typeof n[a]&&(s=e.correctAfterPlusMinis(s,n[a],s+n[a]));return e.correctAfterPlusMinis(s,o,s+o)}}return t+r}return e.correctAfterPlusMinis(t,r,t+r)},e.correctAfterMultiple=function(t,r,n){var o=e.countDecimals(t)+e.countDecimals(r);return o>0&&(n=parseFloat(n.toFixed(o))),n},e.convertArrayValueToObject=function(t,r,n){void 0===n&&(n=void 0);var o=new Array;if(!t||!Array.isArray(t))return o;for(var i=0;i<t.length;i++){var s=void 0;Array.isArray(n)&&(s=e.findObjByPropValue(n,r,t[i])),s||((s={})[r]=t[i]),o.push(s)}return o},e.findObjByPropValue=function(t,r,n){for(var o=0;o<t.length;o++)if(e.isTwoValueEquals(t[o][r],n))return t[o]},e.convertArrayObjectToValue=function(t,r){var n=new Array;if(!t||!Array.isArray(t))return n;for(var o=0;o<t.length;o++){var i=t[o]?t[o][r]:void 0;e.isValueEmpty(i)||n.push(i)}return n},e.convertDateToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())},e.convertDateTimeToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return this.convertDateToString(e)+" "+t(e.getHours())+":"+t(e.getMinutes())},e.convertValToQuestionVal=function(t,r){return t instanceof Date?"datetime-local"===r?e.convertDateTimeToString(t):e.convertDateToString(t):t},e}();String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,(function(t,r){return void 0!==e[r]?e[r]:t}))})},"./src/images sync \\.svg$":function(e,t,r){var n={"./ArrowDown_34x34.svg":"./src/images/ArrowDown_34x34.svg","./ArrowLeft.svg":"./src/images/ArrowLeft.svg","./ArrowRight.svg":"./src/images/ArrowRight.svg","./Arrow_downGREY_10x10.svg":"./src/images/Arrow_downGREY_10x10.svg","./ChooseFile.svg":"./src/images/ChooseFile.svg","./Clear.svg":"./src/images/Clear.svg","./DefaultFile.svg":"./src/images/DefaultFile.svg","./Delete.svg":"./src/images/Delete.svg","./Down_34x34.svg":"./src/images/Down_34x34.svg","./Left.svg":"./src/images/Left.svg","./ModernBooleanCheckChecked.svg":"./src/images/ModernBooleanCheckChecked.svg","./ModernBooleanCheckInd.svg":"./src/images/ModernBooleanCheckInd.svg","./ModernBooleanCheckUnchecked.svg":"./src/images/ModernBooleanCheckUnchecked.svg","./ModernCheck.svg":"./src/images/ModernCheck.svg","./ModernRadio.svg":"./src/images/ModernRadio.svg","./More.svg":"./src/images/More.svg","./ProgressButton.svg":"./src/images/ProgressButton.svg","./ProgressButtonV2.svg":"./src/images/ProgressButtonV2.svg","./RemoveFile.svg":"./src/images/RemoveFile.svg","./Right.svg":"./src/images/Right.svg","./SearchClear.svg":"./src/images/SearchClear.svg","./TimerCircle.svg":"./src/images/TimerCircle.svg","./V2Check.svg":"./src/images/V2Check.svg","./V2Check_24x24.svg":"./src/images/V2Check_24x24.svg","./V2DragElement_16x16.svg":"./src/images/V2DragElement_16x16.svg","./clear_16x16.svg":"./src/images/clear_16x16.svg","./collapseDetail.svg":"./src/images/collapseDetail.svg","./expandDetail.svg":"./src/images/expandDetail.svg","./no-image.svg":"./src/images/no-image.svg","./rating-star-2.svg":"./src/images/rating-star-2.svg","./rating-star-small-2.svg":"./src/images/rating-star-small-2.svg","./rating-star-small.svg":"./src/images/rating-star-small.svg","./rating-star.svg":"./src/images/rating-star.svg","./search.svg":"./src/images/search.svg"};function o(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id="./src/images sync \\.svg$"},"./src/images/ArrowDown_34x34.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 34 34" xml:space="preserve"><polygon class="st0" points="12,16 14,14 17,17 20,14 22,16 17,21 "></polygon></svg>'},"./src/images/ArrowLeft.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15 8.99999H4.39998L8.69998 13.3L7.29998 14.7L0.599976 7.99999L7.29998 1.29999L8.69998 2.69999L4.39998 6.99999H15V8.99999Z"></path></svg>'},"./src/images/ArrowRight.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M1 6.99999H11.6L7.3 2.69999L8.7 1.29999L15.4 7.99999L8.7 14.7L7.3 13.3L11.6 8.99999H1V6.99999Z"></path></svg>'},"./src/images/Arrow_downGREY_10x10.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 10 10" xml:space="preserve"><polygon class="st0" points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./src/images/ChooseFile.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22 9V7C22 5.9 21.1 5 20 5H12L10 3H4C2.9 3 2 3.9 2 5V9V10V21H22L24 9H22ZM4 5H9.2L10.6 6.4L11.2 7H12H20V9H4V5ZM20.3 19H4V11H21.6L20.3 19Z"></path></svg>'},"./src/images/Clear.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22.6 8.6L16.4 2.4C16 2 15.5 1.8 15 1.8C14.5 1.8 14 2 13.6 2.4L1.4 14.6C0.600003 15.4 0.600003 16.6 1.4 17.4L6 22H12L22.6 11.4C23.3 10.6 23.3 9.3 22.6 8.6ZM11.1 20H6.8L2.8 16L6.2 12.6L12.4 18.8L11.1 20ZM13.8 17.4L7.6 11.2L15 3.8L21.2 10L13.8 17.4ZM16 20H23V22H14L16 20Z"></path></svg>'},"./src/images/DefaultFile.svg":function(e,t){e.exports='<svg viewBox="0 0 56 68" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_9011_41219)"><path d="M54.83 10.83L45.17 1.17C44.7982 0.798664 44.357 0.504208 43.8714 0.303455C43.3858 0.102703 42.8654 -0.000411943 42.34 1.2368e-06H6C4.4087 1.2368e-06 2.88257 0.632142 1.75735 1.75736C0.632136 2.88258 0 4.4087 0 6V62C0 63.5913 0.632136 65.1174 1.75735 66.2426C2.88257 67.3679 4.4087 68 6 68H50C51.5913 68 53.1174 67.3679 54.2426 66.2426C55.3679 65.1174 56 63.5913 56 62V13.66C56.0004 13.1346 55.8973 12.6142 55.6965 12.1286C55.4958 11.643 55.2013 11.2018 54.83 10.83ZM44 2.83L53.17 12H48C46.9391 12 45.9217 11.5786 45.1716 10.8284C44.4214 10.0783 44 9.06087 44 8V2.83ZM54 62C54 63.0609 53.5786 64.0783 52.8284 64.8284C52.0783 65.5786 51.0609 66 50 66H6C4.93913 66 3.92172 65.5786 3.17157 64.8284C2.42142 64.0783 2 63.0609 2 62V6C2 4.93914 2.42142 3.92172 3.17157 3.17157C3.92172 2.42143 4.93913 2 6 2H42V8C42 9.5913 42.6321 11.1174 43.7574 12.2426C44.8826 13.3679 46.4087 14 48 14H54V62ZM14 24H42V26H14V24ZM14 30H42V32H14V30ZM14 36H42V38H14V36ZM14 42H42V44H14V42Z" fill="#909090"></path></g><defs><clipPath id="clip0_9011_41219"><rect width="56" height="68" fill="white"></rect></clipPath></defs></svg>'},"./src/images/Delete.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22 4H20H16V2C16 0.9 15.1 0 14 0H10C8.9 0 8 0.9 8 2V4H4H2V6H4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V6H22V4ZM10 2H14V4H10V2ZM18 20H6V6H8H16H18V20ZM14 8H16V18H14V8ZM11 8H13V18H11V8ZM8 8H10V18H8V8Z"></path></svg>'},"./src/images/Down_34x34.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 34 34" xml:space="preserve"><g><path class="st0" d="M33,34H0V0h33c0.6,0,1,0.4,1,1v32C34,33.6,33.6,34,33,34z"></path><polygon class="st1" points="12,16 14,14 17,17 20,14 22,16 17,21 "></polygon></g></svg>'},"./src/images/Left.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve"><polygon points="11,12 9,14 3,8 9,2 11,4 7,8 "></polygon></svg>'},"./src/images/ModernBooleanCheckChecked.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><polygon points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "></polygon></svg>'},"./src/images/ModernBooleanCheckInd.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"></path></svg>'},"./src/images/ModernBooleanCheckUnchecked.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="4"></rect></svg>'},"./src/images/ModernCheck.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24"><path d="M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"></path></svg>'},"./src/images/ModernRadio.svg":function(e,t){e.exports='<svg viewBox="-12 -12 24 24"><circle r="6" cx="0" cy="0"></circle></svg>'},"./src/images/More.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6 12C6 13.1 5.1 14 4 14C2.9 14 2 13.1 2 12C2 10.9 2.9 10 4 10C5.1 10 6 10.9 6 12ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10ZM20 10C18.9 10 18 10.9 18 12C18 13.1 18.9 14 20 14C21.1 14 22 13.1 22 12C22 10.9 21.1 10 20 10Z"></path></svg>'},"./src/images/ProgressButton.svg":function(e,t){e.exports='<svg viewBox="0 0 10 10"><polygon points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./src/images/ProgressButtonV2.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16"><path d="M15 8.99999H4.39998L8.69998 13.3L7.29998 14.7L0.599976 7.99999L7.29998 1.29999L8.69998 2.69999L4.39998 6.99999H15V8.99999Z"></path></svg>'},"./src/images/RemoveFile.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16"><path d="M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z M11,10l-1,1L8,9l-2,2l-1-1l2-2L5,6l1-1l2,2l2-2l1,1L9,8 L11,10z"></path></svg>'},"./src/images/Right.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve"><polygon points="5,4 7,2 13,8 7,14 5,12 9,8 "></polygon></svg>'},"./src/images/SearchClear.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.35 3.34999L12.65 2.64999L8.05002 7.24999L3.35002 2.64999L2.65002 3.34999L7.25002 8.04999L2.65002 12.65L3.35002 13.35L8.05002 8.74999L12.65 13.35L13.35 12.65L8.75002 8.04999L13.35 3.34999Z"></path></svg>'},"./src/images/TimerCircle.svg":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 160 160"><circle cx="80" cy="80" r="70" style="stroke: var(--sd-timer-stroke-background-color); stroke-width: var(--sd-timer-stroke-background-width)" stroke-dasharray="none" stroke-dashoffset="none"></circle><circle cx="80" cy="80" r="70"></circle></svg>'},"./src/images/V2Check.svg":function(e,t){e.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.00001 15.8L2.60001 10.4L4.00001 9L8.00001 13L16 5L17.4 6.4L8.00001 15.8Z"></path></svg>'},"./src/images/V2Check_24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9 20.1L1 12L3.1 9.9L9 15.9L20.9 4L23 6.1L9 20.1Z"></path></svg>'},"./src/images/V2DragElement_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M2 4C2 3.73478 2.10536 3.48043 2.29289 3.29289C2.48043 3.10536 2.73478 3 3 3H13C13.2652 3 13.5196 3.10536 13.7071 3.29289C13.8946 3.48043 14 3.73478 14 4C14 4.26522 13.8946 4.51957 13.7071 4.70711C13.5196 4.89464 13.2652 5 13 5H3C2.73478 5 2.48043 4.89464 2.29289 4.70711C2.10536 4.51957 2 4.26522 2 4ZM13 7H3C2.73478 7 2.48043 7.10536 2.29289 7.29289C2.10536 7.48043 2 7.73478 2 8C2 8.26522 2.10536 8.51957 2.29289 8.70711C2.48043 8.89464 2.73478 9 3 9H13C13.2652 9 13.5196 8.89464 13.7071 8.70711C13.8946 8.51957 14 8.26522 14 8C14 7.73478 13.8946 7.48043 13.7071 7.29289C13.5196 7.10536 13.2652 7 13 7ZM13 11H3C2.73478 11 2.48043 11.1054 2.29289 11.2929C2.10536 11.4804 2 11.7348 2 12C2 12.2652 2.10536 12.5196 2.29289 12.7071C2.48043 12.8946 2.73478 13 3 13H13C13.2652 13 13.5196 12.8946 13.7071 12.7071C13.8946 12.5196 14 12.2652 14 12C14 11.7348 13.8946 11.4804 13.7071 11.2929C13.5196 11.1054 13.2652 11 13 11Z"></path></svg>'},"./src/images/clear_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.35 3.34999L12.65 2.64999L8.05002 7.24999L3.35002 2.64999L2.65002 3.34999L7.25002 8.04999L2.65002 12.65L3.35002 13.35L8.05002 8.74999L12.65 13.35L13.35 12.65L8.75002 8.04999L13.35 3.34999Z"></path></svg>'},"./src/images/collapseDetail.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H3V9H13V7Z"></path></svg>'},"./src/images/expandDetail.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H9V3H7V7H3V9H7V13H9V9H13V7Z"></path></svg>'},"./src/images/no-image.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48"><g opacity="0.5"><path d="M14 17.01C14 16.4167 14.1759 15.8366 14.5056 15.3433C14.8352 14.8499 15.3038 14.4654 15.8519 14.2384C16.4001 14.0113 17.0033 13.9519 17.5853 14.0676C18.1672 14.1834 18.7018 14.4691 19.1213 14.8887C19.5409 15.3082 19.8266 15.8428 19.9424 16.4247C20.0581 17.0067 19.9987 17.6099 19.7716 18.1581C19.5446 18.7062 19.1601 19.1748 18.6667 19.5044C18.1734 19.8341 17.5933 20.01 17 20.01C16.2044 20.01 15.4413 19.6939 14.8787 19.1313C14.3161 18.5687 14 17.8056 14 17.01ZM27.09 24.14L20 36.01H36L27.09 24.14ZM36.72 8.14L35.57 10.01H36C36.5304 10.01 37.0391 10.2207 37.4142 10.5958C37.7893 10.9709 38 11.4796 38 12.01V36.01C38 36.5404 37.7893 37.0491 37.4142 37.4242C37.0391 37.7993 36.5304 38.01 36 38.01H18.77L17.57 40.01H36C37.0609 40.01 38.0783 39.5886 38.8284 38.8384C39.5786 38.0883 40 37.0709 40 36.01V12.01C39.9966 11.0765 39.6668 10.1737 39.0678 9.45778C38.4688 8.74188 37.6382 8.25802 36.72 8.09V8.14ZM36.86 4.5L12.86 44.5L11.14 43.5L13.23 40.01H12C10.9391 40.01 9.92172 39.5886 9.17157 38.8384C8.42143 38.0883 8 37.0709 8 36.01V12.01C8 10.9491 8.42143 9.93172 9.17157 9.18157C9.92172 8.43143 10.9391 8.01 12 8.01H32.43L35.14 3.5L36.86 4.5ZM14.43 38.01L15.63 36.01H12L19 27.01L20.56 27.8L31.23 10.01H12C11.4696 10.01 10.9609 10.2207 10.5858 10.5958C10.2107 10.9709 10 11.4796 10 12.01V36.01C10 36.5404 10.2107 37.0491 10.5858 37.4242C10.9609 37.7993 11.4696 38.01 12 38.01H14.43Z"></path></g></svg>'},"./src/images/rating-star-2.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z" fill="none" stroke-width="2"></path><path d="M24.4663 34.6154L24 34.3695L23.5336 34.6154L14.4788 39.389L16.2156 29.2691L16.3044 28.7517L15.9289 28.3848L8.57358 21.1966L18.7249 19.7094L19.245 19.6332L19.4772 19.1616L24 9.97413L28.5228 19.1616L28.755 19.6332L29.275 19.7094L39.4264 21.1966L32.0711 28.3848L31.6956 28.7517L31.7844 29.2691L33.5211 39.389L24.4663 34.6154Z" stroke-width="2"></path></g></svg>'},"./src/images/rating-star-small-2.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z" fill="none" stroke-width="2"></path><path d="M12 15.9472L8.58001 17.7572L9.23001 13.9272L6.45001 11.2072L10.29 10.6472L12 7.17725L13.71 10.6472L17.55 11.2072L14.77 13.9272L15.42 17.7572L12 15.9472Z"></path></svg>'},"./src/images/rating-star-small.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z" stroke-width="2"></path></g></svg>'},"./src/images/rating-star.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z" stroke-width="2"></path></g></svg>'},"./src/images/search.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14 2C9.6 2 6 5.6 6 10C6 11.8 6.6 13.5 7.7 14.9L2.3 20.3C1.9 20.7 1.9 21.3 2.3 21.7C2.5 21.9 2.7 22 3 22C3.3 22 3.5 21.9 3.7 21.7L9.1 16.3C10.5 17.4 12.2 18 14 18C18.4 18 22 14.4 22 10C22 5.6 18.4 2 14 2ZM14 16C10.7 16 8 13.3 8 10C8 6.7 10.7 4 14 4C17.3 4 20 6.7 20 10C20 13.3 17.3 16 14 16Z"></path></svg>'},"./src/images/smiley sync \\.svg$":function(e,t,r){var n={"./average.svg":"./src/images/smiley/average.svg","./excellent.svg":"./src/images/smiley/excellent.svg","./good.svg":"./src/images/smiley/good.svg","./normal.svg":"./src/images/smiley/normal.svg","./not-good.svg":"./src/images/smiley/not-good.svg","./perfect.svg":"./src/images/smiley/perfect.svg","./poor.svg":"./src/images/smiley/poor.svg","./terrible.svg":"./src/images/smiley/terrible.svg","./very-good.svg":"./src/images/smiley/very-good.svg","./very-poor.svg":"./src/images/smiley/very-poor.svg"};function o(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id="./src/images/smiley sync \\.svg$"},"./src/images/smiley/average.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.00572 7C6.45572 7 6.00572 6.55 6.00572 6V2C6.00572 1.45 6.45572 1 7.00572 1C7.55572 1 8.00572 1.45 8.00572 2V6C8.00572 6.55 7.55572 7 7.00572 7ZM18.0057 6V2C18.0057 1.45 17.5557 1 17.0057 1C16.4557 1 16.0057 1.45 16.0057 2V6C16.0057 6.55 16.4557 7 17.0057 7C17.5557 7 18.0057 6.55 18.0057 6ZM19.9457 21.33C20.1257 20.81 19.8557 20.24 19.3357 20.05C14.5457 18.35 9.45572 18.35 4.66572 20.05C4.14572 20.23 3.87572 20.81 4.05572 21.33C4.23572 21.85 4.80572 22.12 5.33572 21.94C9.69572 20.4 14.3057 20.4 18.6657 21.94C18.7757 21.98 18.8857 22 18.9957 22C19.4057 22 19.7957 21.74 19.9357 21.33H19.9457Z"></path></svg>'},"./src/images/smiley/excellent.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'},"./src/images/smiley/good.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.0022 23.99C11.452 23.99 11.0018 23.5402 11.0018 22.9904C11.0018 22.4407 11.452 21.9909 12.0022 21.9909C16.3137 21.9909 21.0755 19.472 22.0158 13.8344C22.1058 13.2947 22.616 12.9248 23.1662 13.0148C23.7064 13.1047 24.0765 13.6245 23.9865 14.1643C22.8561 20.9513 17.144 24 11.9922 24L12.0022 23.99ZM8.00072 5.99783V1.99957C8.00072 1.4498 7.55056 1 7.00036 1C6.45016 1 6 1.4498 6 1.99957V5.99783C6 6.54759 6.45016 6.99739 7.00036 6.99739C7.55056 6.99739 8.00072 6.54759 8.00072 5.99783ZM18.0043 5.99783V1.99957C18.0043 1.4498 17.5542 1 17.004 1C16.4538 1 16.0036 1.4498 16.0036 1.99957V5.99783C16.0036 6.54759 16.4538 6.99739 17.004 6.99739C17.5542 6.99739 18.0043 6.54759 18.0043 5.99783Z"></path></svg>'},"./src/images/smiley/normal.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 7C6.45 7 6 6.55 6 6V2C6 1.45 6.45 1 7 1C7.55 1 8 1.45 8 2V6C8 6.55 7.55 7 7 7ZM18 6V2C18 1.45 17.55 1 17 1C16.45 1 16 1.45 16 2V6C16 6.55 16.45 7 17 7C17.55 7 18 6.55 18 6ZM21 21C21 20.45 20.55 20 20 20H4C3.45 20 3 20.45 3 21C3 21.55 3.45 22 4 22H20C20.55 22 21 21.55 21 21Z"></path></svg>'},"./src/images/smiley/not-good.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.06927 7C6.51927 7 6.06927 6.55 6.06927 6V2C6.06927 1.45 6.51927 1 7.06927 1C7.61927 1 8.06927 1.45 8.06927 2V6C8.06927 6.55 7.61927 7 7.06927 7ZM18.0693 6V2C18.0693 1.45 17.6193 1 17.0693 1C16.5193 1 16.0693 1.45 16.0693 2V6C16.0693 6.55 16.5193 7 17.0693 7C17.6193 7 18.0693 6.55 18.0693 6ZM22.5693 21.9C23.0693 21.66 23.2793 21.07 23.0393 20.57C21.1093 16.52 16.9093 14 12.0693 14C7.22927 14 3.02927 16.52 1.09927 20.57C0.859273 21.07 1.06927 21.67 1.56927 21.9C2.06927 22.14 2.65927 21.93 2.89927 21.43C4.49927 18.08 8.00927 16 12.0593 16C16.1093 16 19.6293 18.08 21.2193 21.43C21.3893 21.79 21.7493 22 22.1193 22C22.2593 22 22.4093 21.97 22.5493 21.9H22.5693Z"></path></svg>'},"./src/images/smiley/perfect.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 23C6.85721 23 1.15412 19.9621 0.0134987 13.1669C-0.0765501 12.6272 0.293651 12.1076 0.833944 12.0177C1.38424 11.9277 1.89452 12.2975 1.98457 12.8371C2.92508 18.4732 7.69767 20.9914 12 20.9914C16.3023 20.9914 21.0749 18.4732 22.0154 12.8371C22.1055 12.2975 22.6158 11.9277 23.1661 12.0177C23.7063 12.1076 24.0765 12.6272 23.9865 13.1669C22.8559 19.9521 17.1428 23 11.99 23H12.01ZM21.165 6.15177C22.3056 5.01257 22.3056 3.16386 21.165 2.02465L21.0049 1.85477C19.9143 0.765533 18.1633 0.725561 17.0227 1.71487C15.8821 0.715568 14.1312 0.765533 13.0406 1.85477L12.8705 2.01466C11.7299 3.15386 11.7299 5.00257 12.8705 6.14178L17.0227 10.2889L21.175 6.14178L21.165 6.15177ZM15.742 3.27378L17.0127 4.54289L18.2834 3.27378C18.6436 2.91403 19.2239 2.91403 19.5841 3.27378L19.7442 3.43367C20.1044 3.79342 20.1044 4.37301 19.7442 4.73276L17.0127 7.46086L14.2812 4.73276C13.921 4.37301 13.921 3.79342 14.2812 3.43367L14.4413 3.27378C14.6214 3.09391 14.8515 3.00397 15.0917 3.00397C15.3318 3.00397 15.5619 3.09391 15.742 3.27378ZM11.1595 6.15177C12.3002 5.01257 12.3002 3.16386 11.1595 2.02465L10.9995 1.85477C9.90886 0.765533 8.15792 0.725561 7.0173 1.71487C5.87668 0.715568 4.12573 0.765533 3.03514 1.85477L2.86505 2.01466C1.72443 3.15386 1.72443 5.00257 2.86505 6.14178L7.0173 10.2889L11.1695 6.14178L11.1595 6.15177ZM5.7366 3.27378L7.00729 4.54289L8.27798 3.27378C8.63818 2.91403 9.21849 2.91403 9.57869 3.27378L9.73877 3.43367C10.099 3.79342 10.099 4.37301 9.73877 4.73276L7.00729 7.46086L4.27581 4.73276C3.91562 4.37301 3.91562 3.79342 4.27581 3.43367L4.4359 3.27378C4.61599 3.09391 4.84612 3.00397 5.08625 3.00397C5.32638 3.00397 5.5565 3.09391 5.7366 3.27378Z"></path></svg>'},"./src/images/smiley/poor.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.01915 7C6.46961 7 6.01998 6.55 6.01998 6V2C6.01998 1.45 6.46961 1 7.01915 1C7.56869 1 8.01832 1.45 8.01832 2V6C8.01832 6.55 7.56869 7 7.01915 7ZM18.01 6V2C18.01 1.45 17.5604 1 17.0108 1C16.4613 1 16.0117 1.45 16.0117 2V6C16.0117 6.55 16.4613 7 17.0108 7C17.5604 7 18.01 6.55 18.01 6ZM16.4213 21.58L18.01 19.99L19.2989 21.28C19.6886 21.67 20.3181 21.67 20.7077 21.28C21.0974 20.89 21.0974 20.26 20.7077 19.87L19.4188 18.58C18.6395 17.8 17.3705 17.8 16.5912 18.58L15.0025 20.17L13.4138 18.58C12.6345 17.8 11.3655 17.8 10.5862 18.58L8.9975 20.17L7.40883 18.58C6.62948 17.8 5.36053 17.8 4.58118 18.58L3.29226 19.87C2.90258 20.26 2.90258 20.89 3.29226 21.28C3.68193 21.67 4.31141 21.67 4.70108 21.28L5.99001 19.99L7.57868 21.58C8.35803 22.36 9.62698 22.36 10.4063 21.58L11.995 19.99L13.5837 21.58C13.9734 21.97 14.4829 22.16 14.9925 22.16C15.5021 22.16 16.0117 21.97 16.4013 21.58H16.4213Z"></path></svg>'},"./src/images/smiley/terrible.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4 4.9938C4 4.44362 4.45 3.99348 5 3.99348H6.59L5.3 2.70306C4.91 2.31293 4.91 1.68272 5.3 1.2926C5.69 0.902468 6.32 0.902468 6.71 1.2926L9.71 4.29357C9.8 4.3836 9.88 4.49364 9.93 4.62368C10.03 4.86376 10.03 5.14385 9.93 5.38393C9.88 5.50397 9.81 5.614 9.71 5.71404L6.71 8.71501C6.51 8.91508 6.26 9.00511 6 9.00511C5.74 9.00511 5.49 8.90508 5.29 8.71501C4.9 8.32489 4.9 7.69468 5.29 7.30456L6.58 6.01413H4.99C4.44 6.01413 3.99 5.56399 3.99 5.01381L4 4.9938ZM14.08 5.37393C14.13 5.49397 14.2 5.604 14.3 5.70403L17.3 8.70501C17.5 8.90508 17.75 8.99511 18.01 8.99511C18.27 8.99511 18.52 8.89507 18.72 8.70501C19.11 8.31488 19.11 7.68468 18.72 7.29455L17.43 6.00413H19.02C19.57 6.00413 20.02 5.55399 20.02 5.00381C20.02 4.45363 19.57 4.00348 19.02 4.00348H17.43L18.72 2.71306C19.11 2.32293 19.11 1.69273 18.72 1.3026C18.33 0.912471 17.7 0.912471 17.31 1.3026L14.31 4.30358C14.22 4.39361 14.14 4.50364 14.09 4.63368C13.99 4.87376 13.99 5.15385 14.09 5.39393L14.08 5.37393ZM22 14.9971V20.999C22 22.6496 20.65 24 19 24H5C3.35 24 2 22.6496 2 20.999V14.9971C2 13.3465 3.35 11.9961 5 11.9961H19C20.65 11.9961 22 13.3465 22 14.9971ZM19 13.9967H16V16.9977H20V14.9971C20 14.4469 19.55 13.9967 19 13.9967ZM14 16.9977V13.9967H10V16.9977H14ZM10 18.9984V21.9993H14V18.9984H10ZM4 14.9971V16.9977H8V13.9967H5C4.45 13.9967 4 14.4469 4 14.9971ZM5 21.9993H8V18.9984H4V20.999C4 21.5492 4.45 21.9993 5 21.9993ZM20 20.999V18.9984H16V21.9993H19C19.55 21.9993 20 21.5492 20 20.999Z"></path></svg>'},"./src/images/smiley/very-good.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85721 24 1.15412 20.96 0.0134987 14.16C-0.0765501 13.62 0.293651 13.1 0.833944 13.01C1.38424 12.92 1.89452 13.29 1.98457 13.83C2.92508 19.47 7.69767 21.99 12 21.99C16.3023 21.99 21.0749 19.47 22.0154 13.83C22.1055 13.29 22.6158 12.92 23.1661 13.01C23.7063 13.1 24.0765 13.62 23.9865 14.16C22.8559 20.95 17.1428 24 11.99 24H12.01ZM8.00783 6V2C8.00783 1.45 7.55759 1 7.00729 1C6.45699 1 6.00675 1.45 6.00675 2V6C6.00675 6.55 6.45699 7 7.00729 7C7.55759 7 8.00783 6.55 8.00783 6ZM18.0133 6V2C18.0133 1.45 17.563 1 17.0127 1C16.4624 1 16.0122 1.45 16.0122 2V6C16.0122 6.55 16.4624 7 17.0127 7C17.563 7 18.0133 6.55 18.0133 6Z"></path></svg>'},"./src/images/smiley/very-poor.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_15894_140103)"><path d="M4.88291 4.50999C4.47291 4.50999 4.08291 4.24999 3.94291 3.83999C3.76291 3.31999 4.03291 2.74999 4.55291 2.56999L8.32291 1.24999C8.84291 1.05999 9.41291 1.33999 9.59291 1.85999C9.77291 2.37999 9.50291 2.94999 8.98291 3.12999L5.20291 4.44999C5.09291 4.48999 4.98291 4.50999 4.87291 4.50999H4.88291ZM19.8129 3.88999C20.0229 3.37999 19.7729 2.78999 19.2629 2.58999L15.5529 1.06999C15.0429 0.859992 14.4529 1.10999 14.2529 1.61999C14.0429 2.12999 14.2929 2.71999 14.8029 2.91999L18.5029 4.42999C18.6229 4.47999 18.7529 4.49999 18.8829 4.49999C19.2729 4.49999 19.6529 4.26999 19.8129 3.87999V3.88999ZM3.50291 5.99999C2.64291 6.36999 1.79291 6.87999 1.00291 7.47999C0.79291 7.63999 0.64291 7.86999 0.59291 8.13999C0.48291 8.72999 0.87291 9.28999 1.45291 9.39999C2.04291 9.50999 2.60291 9.11999 2.71291 8.53999C2.87291 7.68999 3.12291 6.82999 3.50291 5.98999V5.99999ZM21.0429 8.54999C21.6029 10.48 24.2429 8.83999 22.7529 7.47999C21.9629 6.87999 21.1129 6.36999 20.2529 5.99999C20.6329 6.83999 20.8829 7.69999 21.0429 8.54999ZM21.5729 13.2C21.2529 14.2 22.5429 15.09 23.3629 14.39C23.8529 14 23.9229 13.29 23.5429 12.81C21.7429 10.67 22.1329 10.55 21.5829 13.2H21.5729ZM1.75291 11C1.22291 11.79 -0.14709 12.64 0.0129102 13.75C0.15291 14.36 0.75291 14.74 1.35291 14.6C2.98291 14.1 1.80291 12.22 1.75291 11ZM19.8829 17C19.8829 13.14 16.2929 9.99999 11.8829 9.99999C7.47291 9.99999 3.88291 13.14 3.88291 17C3.88291 20.86 7.47291 24 11.8829 24C16.2929 24 19.8829 20.86 19.8829 17ZM17.8829 17C17.8829 19.76 15.1929 22 11.8829 22C8.57291 22 5.88291 19.76 5.88291 17C5.88291 14.24 8.57291 12 11.8829 12C15.1929 12 17.8829 14.24 17.8829 17Z"></path></g><defs><clipPath id="clip0_15894_140103"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg>'},"./src/itemvalue.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ItemValue",(function(){return m}));var n,o=r("./src/localizablestring.ts"),i=r("./src/jsonobject.ts"),s=r("./src/helpers.ts"),a=r("./src/conditions.ts"),l=r("./src/base.ts"),u=r("./src/settings.ts"),c=r("./src/actions/action.ts"),p=r("./src/question_baseselect.ts"),d=r("./src/question.ts"),h=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},m=function(e){function t(t,r,n){void 0===r&&(r=null),void 0===n&&(n="itemvalue");var a=e.call(this)||this;return a.typeName=n,a.ownerPropertyName="",a.locTextValue=new o.LocalizableString(a,!0,"text"),a.locTextValue.onStrChanged=function(e,t){t==a.value&&(t=void 0),a.propertyValueChanged("text",e,t)},a.locTextValue.onGetTextCallback=function(e){return e||(s.Helpers.isValueEmpty(a.value)?null:a.value.toString())},r&&(a.locText.text=r),t&&"object"==typeof t?a.setData(t):a.value=t,"itemvalue"!=a.getType()&&i.CustomPropertiesCollection.createProperties(a),a.data=a,a.onCreating(),a}return h(t,e),t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},Object.defineProperty(t,"Separator",{get:function(){return u.settings.itemValueSeparator},set:function(e){u.settings.itemValueSeparator=e},enumerable:!1,configurable:!0}),t.setData=function(e,t,r){e.length=0;for(var n=0;n<t.length;n++){var o=t[n],s=o&&"function"==typeof o.getType?o.getType():null!=r?r:"itemvalue",a=i.Serializer.createClass(s);a.setData(o),o.originalItem&&(a.originalItem=o.originalItem),e.push(a)}},t.getData=function(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].getData());return t},t.getItemByValue=function(e,t){if(!Array.isArray(e))return null;for(var r=s.Helpers.isValueEmpty(t),n=0;n<e.length;n++){if(r&&s.Helpers.isValueEmpty(e[n].value))return e[n];if(s.Helpers.isTwoValueEquals(e[n].value,t,!1,!0,!1))return e[n]}return null},t.getTextOrHtmlByValue=function(e,r){var n=t.getItemByValue(e,r);return null!==n?n.locText.textOrHtml:""},t.locStrsChanged=function(e){for(var t=0;t<e.length;t++)e[t].locStrsChanged()},t.runConditionsForItems=function(e,r,n,o,i,s,a){return void 0===s&&(s=!0),t.runConditionsForItemsCore(e,r,n,o,i,!0,s,a)},t.runEnabledConditionsForItems=function(e,r,n,o,i){return t.runConditionsForItemsCore(e,null,r,n,o,!1,!0,i)},t.runConditionsForItemsCore=function(e,t,r,n,o,i,s,a){void 0===s&&(s=!0),n||(n={});for(var l=n.item,u=n.choice,c=!1,p=0;p<e.length;p++){var d=e[p];n.item=d.value,n.choice=d.value;var h=!(!s||!d.getConditionRunner)&&d.getConditionRunner(i);h||(h=r);var f=!0;h&&(f=h.run(n,o)),a&&(f=a(d,f)),t&&f&&t.push(d),f!=(i?d.isVisible:d.isEnabled)&&(c=!0,i?d.setIsVisible&&d.setIsVisible(f):d.setIsEnabled&&d.setIsEnabled(f))}return l?n.item=l:delete n.item,u?n.choice=u:delete n.choice,c},t.prototype.onCreating=function(){},t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.locOwner&&this.locOwner.getSurvey?this.locOwner.getSurvey():null},t.prototype.getLocale=function(){return this.locOwner&&this.locOwner.getLocale?this.locOwner.getLocale():""},Object.defineProperty(t.prototype,"locText",{get:function(){return this.locTextValue},enumerable:!1,configurable:!0}),t.prototype.setLocText=function(e){this.locTextValue=e},Object.defineProperty(t.prototype,"locOwner",{get:function(){return this._locOwner},set:function(e){this._locOwner=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){var t=void 0;if(!s.Helpers.isValueEmpty(e)){var r=e.toString(),n=r.indexOf(u.settings.itemValueSeparator);n>-1&&(e=r.slice(0,n),t=r.slice(n+1))}this.setPropertyValue("value",e),t&&(this.text=t),this.id=this.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasText",{get:function(){return!!this.locText.pureText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pureText",{get:function(){return this.locText.pureText},set:function(e){this.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.locText.calculatedText},set:function(e){this.locText.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedText",{get:function(){return this.locText.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.text},enumerable:!1,configurable:!0}),t.prototype.canSerializeValue=function(){var e=this.value;return null!=e&&!Array.isArray(e)&&"object"!=typeof e},t.prototype.getData=function(){var e=this.toJSON();if(e.value&&e.value.pos&&delete e.value.pos,s.Helpers.isValueEmpty(e.value))return e;var t=this.canSerializeValue();return t&&(u.settings.itemValueAlwaysSerializeAsObject||u.settings.itemValueAlwaysSerializeText)||1!=Object.keys(e).length?(u.settings.itemValueAlwaysSerializeText&&void 0===e.text&&t&&(e.text=this.value.toString()),e):this.value},t.prototype.toJSON=function(){var e={},t=i.Serializer.getProperties(this.getType());t&&0!=t.length||(t=i.Serializer.getProperties("itemvalue"));for(var r=new i.JsonObject,n=0;n<t.length;n++){var o=t[n];"text"===o.name&&!this.locText.hasNonDefaultText()&&s.Helpers.isTwoValueEquals(this.value,this.text,!1,!0,!1)||r.valueToJson(this,e,o)}return e},t.prototype.setData=function(e){if(!s.Helpers.isValueEmpty(e)){if(void 0===e.value&&void 0!==e.text&&1===Object.keys(e).length&&(e.value=e.text),void 0!==e.value){var t;t="function"==typeof e.toJSON?e.toJSON():e,(new i.JsonObject).toObject(t,this)}else this.value=e;this.locText.strChanged()}},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!0)},enumerable:!1,configurable:!0}),t.prototype.setIsVisible=function(e){this.setPropertyValue("isVisible",e)},Object.defineProperty(t.prototype,"isEnabled",{get:function(){return this.getPropertyValue("isEnabled",!0)},enumerable:!1,configurable:!0}),t.prototype.setIsEnabled=function(e){this.setPropertyValue("isEnabled",e)},t.prototype.addUsedLocales=function(e){this.AddLocStringToUsedLocales(this.locTextValue,e)},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locText.strChanged()},t.prototype.onPropertyValueChanged=function(e,t,r){"value"!==e||this.hasText||this.locText.strChanged();var n="itemValuePropertyChanged";this.locOwner&&this.locOwner[n]&&this.locOwner[n](this,e,t,r)},t.prototype.getConditionRunner=function(e){return e?this.getVisibleConditionRunner():this.getEnableConditionRunner()},t.prototype.getVisibleConditionRunner=function(){return this.visibleIf?(this.visibleConditionRunner||(this.visibleConditionRunner=new a.ConditionRunner(this.visibleIf)),this.visibleConditionRunner.expression=this.visibleIf,this.visibleConditionRunner):null},t.prototype.getEnableConditionRunner=function(){return this.enableIf?(this.enableConditionRunner||(this.enableConditionRunner=new a.ConditionRunner(this.enableIf)),this.enableConditionRunner.expression=this.enableIf,this.enableConditionRunner):null},Object.defineProperty(t.prototype,"selected",{get:function(){var e=this;return this._locOwner instanceof p.QuestionSelectBase&&void 0===this.selectedValue&&(this.selectedValue=new l.ComputedUpdater((function(){return e._locOwner.isItemSelected(e)}))),this.selectedValue},enumerable:!1,configurable:!0}),t.prototype.getComponent=function(){return this._locOwner instanceof d.Question?this.componentValue||this._locOwner.itemComponent:this.componentValue},t.prototype.setComponent=function(e){this.componentValue=e},t.prototype.getEnabled=function(){return this.isEnabled},t.prototype.setEnabled=function(e){this.setIsEnabled(e)},t.prototype.getVisible=function(){var e=void 0===this.isVisible||this.isVisible,t=void 0===this._visible||this._visible;return e&&t},t.prototype.setVisible=function(e){this._visible=e},t.prototype.getLocTitle=function(){return this.locText},t.prototype.getTitle=function(){return this.text},t.prototype.setLocTitle=function(e){},t.prototype.setTitle=function(e){},f([Object(i.property)({defaultValue:!0})],t.prototype,"_visible",void 0),f([Object(i.property)()],t.prototype,"selectedValue",void 0),f([Object(i.property)()],t.prototype,"icon",void 0),t}(c.BaseAction);l.Base.createItemValue=function(e,t){var r=null;return(r=t?i.JsonObject.metaData.createClass(t,{}):"function"==typeof e.getType?new m(null,void 0,e.getType()):new m(null)).setData(e),r},l.Base.itemValueLocStrChanged=function(e){m.locStrsChanged(e)},i.JsonObjectProperty.getItemValuesDefaultValue=function(e,t){var r=new Array;return m.setData(r,Array.isArray(e)?e:[],t),r},i.Serializer.addClass("itemvalue",["!value",{name:"text",serializationProperty:"locText"},{name:"visibleIf:condition",showMode:"form"},{name:"enableIf:condition",showMode:"form",visibleIf:function(e){return!e||"rateValues"!==e.ownerPropertyName}}],(function(e){return new m(e)}))},"./src/jsonobject.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"property",(function(){return c})),r.d(t,"propertyArray",(function(){return d})),r.d(t,"JsonObjectProperty",(function(){return h})),r.d(t,"CustomPropertiesCollection",(function(){return f})),r.d(t,"JsonMetadataClass",(function(){return m})),r.d(t,"JsonMetadata",(function(){return g})),r.d(t,"JsonError",(function(){return b})),r.d(t,"JsonUnknownPropertyError",(function(){return y})),r.d(t,"JsonMissingTypeErrorBase",(function(){return v})),r.d(t,"JsonMissingTypeError",(function(){return w})),r.d(t,"JsonIncorrectTypeError",(function(){return x})),r.d(t,"JsonRequiredPropertyError",(function(){return C})),r.d(t,"JsonObject",(function(){return P})),r.d(t,"Serializer",(function(){return _}));var n,o=r("./src/surveyStrings.ts"),i=r("./src/base.ts"),s=r("./src/helpers.ts"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};function u(e,t,r){var n=e.getLocalizableString(r);n||(n=e.createLocalizableString(r,e,!0),"object"==typeof t.localizable&&"function"==typeof t.localizable.onGetTextCallback&&(n.onGetTextCallback=t.localizable.onGetTextCallback))}function c(e){return function(t,r){var n=function(e,t){if(t&&"object"==typeof t&&t.type===i.ComputedUpdater.ComputedUpdaterType){i.Base.startCollectDependencies((function(){return e[r]=t.updater()}),e,r);var n=t.updater(),o=i.Base.finishCollectDependencies();return t.setDependencies(o),n}return t};e&&e.localizable?(Object.defineProperty(t,r,{get:function(){return function(e,t,r){u(e,t,r);var n=e.getLocalizableStringText(r);if(n)return n;if("object"==typeof t.localizable&&t.localizable.defaultStr){var i=e.getLocale?e.getLocale():"";return o.surveyLocalization.getString(t.localizable.defaultStr,i)}return""}(this,e,r)},set:function(t){u(this,e,r);var o=n(this,t);this.setLocalizableStringText(r,o),e&&e.onSet&&e.onSet(o,this)}}),Object.defineProperty(t,"object"==typeof e.localizable&&e.localizable.name?e.localizable.name:"loc"+r.charAt(0).toUpperCase()+r.slice(1),{get:function(){return u(this,e,r),this.getLocalizableString(r)}})):Object.defineProperty(t,r,{get:function(){var t=null;return e&&("function"==typeof e.getDefaultValue&&(t=e.getDefaultValue(this)),void 0!==e.defaultValue&&(t=e.defaultValue)),this.getPropertyValue(r,t)},set:function(t){var o=n(this,t);this.setPropertyValue(r,o),e&&e.onSet&&e.onSet(o,this)}})}}function p(e,t,r){e.ensureArray(r,(function(r,n){var o=t?t.onPush:null;o&&o(r,n,e)}),(function(r,n){var o=t?t.onRemove:null;o&&o(r,n,e)}))}function d(e){return function(t,r){Object.defineProperty(t,r,{get:function(){return p(this,e,r),this.getPropertyValue(r)},set:function(t){p(this,e,r);var n=this.getPropertyValue(r);t!==n&&(n?n.splice.apply(n,l([0,n.length],t||[])):this.setPropertyValue(r,t),e&&e.onSet&&e.onSet(t,this))}})}}var h=function(){function e(t,r,n){void 0===n&&(n=!1),this.name=r,this.isRequiredValue=!1,this.isUniqueValue=!1,this.isSerializable=!0,this.isLightSerializable=!0,this.isCustom=!1,this.isDynamicChoices=!1,this.isBindable=!1,this.category="",this.categoryIndex=-1,this.visibleIndex=-1,this.maxLength=-1,this.isArray=!1,this.classInfoValue=t,this.isRequiredValue=n,this.idValue=e.Index++}return Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classInfo",{get:function(){return this.classInfoValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(e){"itemvalues"===e&&(e="itemvalue[]"),"textitems"===e&&(e="textitem[]"),this.typeValue=e,this.typeValue.indexOf("[]")===this.typeValue.length-2&&(this.isArray=!0,this.className=this.typeValue.substring(0,this.typeValue.length-2))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.isRequiredValue},set:function(e){this.isRequiredValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUnique",{get:function(){return this.isUniqueValue},set:function(e){this.isUniqueValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uniquePropertyName",{get:function(){return this.uniquePropertyValue},set:function(e){this.uniquePropertyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultValue",{get:function(){var t=this.defaultValueFunc?this.defaultValueFunc():this.defaultValueValue;return e.getItemValuesDefaultValue&&P.metaData.isDescendantOf(this.className,"itemvalue")&&(t=e.getItemValuesDefaultValue(this.defaultValueValue||[],this.className)),t},set:function(e){this.defaultValueValue=e},enumerable:!1,configurable:!0}),e.prototype.isDefaultValue=function(e){return s.Helpers.isValueEmpty(this.defaultValue)?!1===e&&("boolean"==this.type||"switch"==this.type)||""===e||s.Helpers.isValueEmpty(e):s.Helpers.isTwoValueEquals(e,this.defaultValue,!1,!0,!1)},e.prototype.getValue=function(e){return this.onGetValue?this.onGetValue(e):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].getJson():e[this.name]},e.prototype.getPropertyValue=function(e){return this.isLocalizable?e[this.serializationProperty]?e[this.serializationProperty].text:null:this.getValue(e)},Object.defineProperty(e.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!1,configurable:!0}),e.prototype.settingValue=function(e,t){return!this.onSettingValue||e.isLoadingFromJson?t:this.onSettingValue(e,t)},e.prototype.setValue=function(e,t,r){this.onSetValue?this.onSetValue(e,t,r):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].setJson(t):(t&&"string"==typeof t&&("number"==this.type&&(t=parseInt(t)),"boolean"!=this.type&&"switch"!=this.type||(t="true"===t.toLowerCase())),e[this.name]=t)},e.prototype.getObjType=function(e){return this.classNamePart?e.replace(this.classNamePart,""):e},Object.defineProperty(e.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasChoices",{get:function(){return!!this.choicesValue||!!this.choicesfunc},enumerable:!1,configurable:!0}),e.prototype.getChoices=function(e,t){return void 0===t&&(t=null),null!=this.choicesValue?this.choicesValue:null!=this.choicesfunc?this.choicesfunc(e,t):null},e.prototype.setChoices=function(e,t){void 0===t&&(t=null),this.choicesValue=e,this.choicesfunc=t},e.prototype.getBaseValue=function(){return this.baseValue?"function"==typeof this.baseValue?this.baseValue():this.baseValue:""},e.prototype.setBaseValue=function(e){this.baseValue=e},Object.defineProperty(e.prototype,"readOnly",{get:function(){return null!=this.readOnlyValue&&this.readOnlyValue},set:function(e){this.readOnlyValue=e},enumerable:!1,configurable:!0}),e.prototype.isVisible=function(e,t){void 0===t&&(t=null);var r=!this.layout||this.layout==e;return!(!this.visible||!r)&&(!this.visibleIf||!t||this.visibleIf(t))},Object.defineProperty(e.prototype,"visible",{get:function(){return null==this.visibleValue||this.visibleValue},set:function(e){this.visibleValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLocalizable",{get:function(){return null!=this.isLocalizableValue&&this.isLocalizableValue},set:function(e){this.isLocalizableValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataList",{get:function(){return Array.isArray(this.dataListValue)?this.dataListValue:[]},set:function(e){this.dataListValue=e},enumerable:!1,configurable:!0}),e.prototype.mergeWith=function(t){for(var r=e.mergableValues,n=0;n<r.length;n++)this.mergeValue(t,r[n])},e.prototype.addDependedProperty=function(e){this.dependedProperties||(this.dependedProperties=[]),this.dependedProperties.indexOf(e)<0&&this.dependedProperties.push(e)},e.prototype.getDependedProperties=function(){return this.dependedProperties?this.dependedProperties:[]},e.prototype.schemaType=function(){if("choicesByUrl"!==this.className)return"string"===this.className?this.className:this.className||this.baseClassName?"array":"switch"==this.type?"boolean":"boolean"==this.type||"number"==this.type?this.type:"string"},e.prototype.schemaRef=function(){if(this.className)return this.className},e.prototype.mergeValue=function(e,t){null==this[t]&&null!=e[t]&&(this[t]=e[t])},e.Index=1,e.mergableValues=["typeValue","choicesValue","baseValue","readOnlyValue","visibleValue","isSerializable","isLightSerializable","isCustom","isBindable","isUnique","uniquePropertyName","isDynamicChoices","isLocalizableValue","className","alternativeName","layout","classNamePart","baseClassName","defaultValue","defaultValueFunc","serializationProperty","onGetValue","onSetValue","onSettingValue","displayName","category","categoryIndex","visibleIndex","nextToProperty","showMode","dependedProperties","visibleIf","onExecuteExpression","onPropertyEditorUpdate","maxLength","maxValue","minValue","dataListValue"],e}(),f=function(){function e(){}return e.addProperty=function(t,r){t=t.toLowerCase();var n=e.properties;n[t]||(n[t]=[]),n[t].push(r)},e.removeProperty=function(t,r){t=t.toLowerCase();var n=e.properties;if(n[t])for(var o=n[t],i=0;i<o.length;i++)if(o[i].name==r){n[t].splice(i,1);break}},e.removeAllProperties=function(t){t=t.toLowerCase(),delete e.properties[t]},e.addClass=function(t,r){t=t.toLowerCase(),r&&(r=r.toLowerCase()),e.parentClasses[t]=r},e.getProperties=function(t){t=t.toLowerCase();for(var r=[],n=e.properties;t;){var o=n[t];if(o)for(var i=0;i<o.length;i++)r.push(o[i]);t=e.parentClasses[t]}return r},e.createProperties=function(t){t&&t.getType&&e.createPropertiesCore(t,t.getType())},e.createPropertiesCore=function(t,r){var n=e.properties;n[r]&&e.createPropertiesInObj(t,n[r]);var o=e.parentClasses[r];o&&e.createPropertiesCore(t,o)},e.createPropertiesInObj=function(t,r){for(var n=0;n<r.length;n++)e.createPropertyInObj(t,r[n])},e.createPropertyInObj=function(t,r){if(!(e.checkIsPropertyExists(t,r.name)||r.serializationProperty&&e.checkIsPropertyExists(t,r.serializationProperty))){if(r.isLocalizable&&r.serializationProperty&&t.createCustomLocalizableObj){t.createCustomLocalizableObj(r.name);var n={get:function(){return t.getLocalizableString(r.name)}};Object.defineProperty(t,r.serializationProperty,n);var o={get:function(){return t.getLocalizableStringText(r.name,r.defaultValue)},set:function(e){t.setLocalizableStringText(r.name,e)}};Object.defineProperty(t,r.name,o)}else{var i=r.defaultValue,s=r.isArray||"multiplevalues"===r.type;"function"==typeof t.createNewArray&&(P.metaData.isDescendantOf(r.className,"itemvalue")?(t.createNewArray(r.name,(function(e){e.locOwner=t,e.ownerPropertyName=r.name})),s=!0):s&&t.createNewArray(r.name),s&&(Array.isArray(i)&&t.setPropertyValue(r.name,i),i=null)),t.getPropertyValue&&t.setPropertyValue&&(o={get:function(){return r.onGetValue?r.onGetValue(t):t.getPropertyValue(r.name,i)},set:function(e){r.onSetValue?r.onSetValue(t,e,null):t.setPropertyValue(r.name,e)}},Object.defineProperty(t,r.name,o))}"condition"!==r.type&&"expression"!==r.type||r.onExecuteExpression&&t.addExpressionProperty(r.name,r.onExecuteExpression)}},e.checkIsPropertyExists=function(e,t){return e.hasOwnProperty(t)||e[t]},e.properties={},e.parentClasses={},e}(),m=function(){function e(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=null),this.name=e,this.creator=r,this.parentName=n,e=e.toLowerCase(),this.isCustomValue=!r&&"survey"!==e,this.parentName&&(this.parentName=this.parentName.toLowerCase(),f.addClass(e,this.parentName),r&&this.makeParentRegularClass()),this.properties=new Array;for(var o=0;o<t.length;o++)this.createProperty(t[o],this.isCustom)}return e.prototype.find=function(e){for(var t=0;t<this.properties.length;t++)if(this.properties[t].name==e)return this.properties[t];return null},e.prototype.findProperty=function(e){return this.fillAllProperties(),this.hashProperties[e]},e.prototype.getAllProperties=function(){return this.fillAllProperties(),this.allProperties},e.prototype.resetAllProperties=function(){this.allProperties=void 0,this.hashProperties=void 0;for(var e=_.getChildrenClasses(this.name),t=0;t<e.length;t++)e[t].resetAllProperties()},Object.defineProperty(e.prototype,"isCustom",{get:function(){return this.isCustomValue},enumerable:!1,configurable:!0}),e.prototype.fillAllProperties=function(){var e=this;if(!this.allProperties){this.allProperties=[],this.hashProperties={};var t={};this.properties.forEach((function(e){return t[e.name]=e}));var r=this.parentName?_.findClass(this.parentName):null;r&&r.getAllProperties().forEach((function(r){var n=t[r.name];n?(n.mergeWith(r),e.addPropCore(n)):e.addPropCore(r)})),this.properties.forEach((function(t){e.hashProperties[t.name]||e.addPropCore(t)}))}},e.prototype.addPropCore=function(e){this.allProperties.push(e),this.hashProperties[e.name]=e,e.alternativeName&&(this.hashProperties[e.alternativeName]=e)},e.prototype.isOverridedProp=function(e){return!!this.parentName&&!!_.findProperty(this.parentName,e)},e.prototype.hasRegularChildClass=function(){if(this.isCustom){this.isCustomValue=!1;for(var e=0;e<this.properties.length;e++)this.properties[e].isCustom=!1;f.removeAllProperties(this.name),this.makeParentRegularClass()}},e.prototype.makeParentRegularClass=function(){if(this.parentName){var e=_.findClass(this.parentName);e&&e.hasRegularChildClass()}},e.prototype.createProperty=function(t,r){void 0===r&&(r=!1);var n="string"==typeof t?t:t.name;if(n){var o=null,i=n.indexOf(e.typeSymbol);i>-1&&(o=n.substring(i+1),n=n.substring(0,i));var a=this.getIsPropertyNameRequired(n)||!!t.isRequired;n=this.getPropertyName(n);var l=new h(this,n,a);if(o&&(l.type=o),"object"==typeof t){if(t.type&&(l.type=t.type),void 0!==t.default&&(l.defaultValue=t.default),void 0!==t.defaultFunc&&(l.defaultValueFunc=t.defaultFunc),s.Helpers.isValueEmpty(t.isSerializable)||(l.isSerializable=t.isSerializable),s.Helpers.isValueEmpty(t.isLightSerializable)||(l.isLightSerializable=t.isLightSerializable),s.Helpers.isValueEmpty(t.maxLength)||(l.maxLength=t.maxLength),s.Helpers.isValueEmpty(t.displayName)||(l.displayName=t.displayName),s.Helpers.isValueEmpty(t.category)||(l.category=t.category),s.Helpers.isValueEmpty(t.categoryIndex)||(l.categoryIndex=t.categoryIndex),s.Helpers.isValueEmpty(t.nextToProperty)||(l.nextToProperty=t.nextToProperty),s.Helpers.isValueEmpty(t.visibleIndex)||(l.visibleIndex=t.visibleIndex),s.Helpers.isValueEmpty(t.showMode)||(l.showMode=t.showMode),s.Helpers.isValueEmpty(t.maxValue)||(l.maxValue=t.maxValue),s.Helpers.isValueEmpty(t.minValue)||(l.minValue=t.minValue),s.Helpers.isValueEmpty(t.dataList)||(l.dataList=t.dataList),s.Helpers.isValueEmpty(t.isDynamicChoices)||(l.isDynamicChoices=t.isDynamicChoices),s.Helpers.isValueEmpty(t.isBindable)||(l.isBindable=t.isBindable),s.Helpers.isValueEmpty(t.isUnique)||(l.isUnique=t.isUnique),s.Helpers.isValueEmpty(t.uniqueProperty)||(l.uniquePropertyName=t.uniqueProperty),s.Helpers.isValueEmpty(t.isArray)||(l.isArray=t.isArray),!0!==t.visible&&!1!==t.visible||(l.visible=t.visible),t.visibleIf&&(l.visibleIf=t.visibleIf),t.onExecuteExpression&&(l.onExecuteExpression=t.onExecuteExpression),t.onPropertyEditorUpdate&&(l.onPropertyEditorUpdate=t.onPropertyEditorUpdate),!0===t.readOnly&&(l.readOnly=!0),t.choices){var u="function"==typeof t.choices?t.choices:null,c="function"!=typeof t.choices?t.choices:null;l.setChoices(c,u)}t.baseValue&&l.setBaseValue(t.baseValue),t.onGetValue&&(l.onGetValue=t.onGetValue),t.onSetValue&&(l.onSetValue=t.onSetValue),t.onSettingValue&&(l.onSettingValue=t.onSettingValue),t.isLocalizable&&(t.serializationProperty="loc"+l.name),t.serializationProperty&&(l.serializationProperty=t.serializationProperty,l.serializationProperty&&0==l.serializationProperty.indexOf("loc")&&(l.isLocalizable=!0)),t.isLocalizable&&(l.isLocalizable=t.isLocalizable),t.className&&(l.className=t.className),t.baseClassName&&(l.baseClassName=t.baseClassName),t.classNamePart&&(l.classNamePart=t.classNamePart),t.alternativeName&&(l.alternativeName=t.alternativeName),t.layout&&(l.layout=t.layout),t.dependsOn&&this.addDependsOnProperties(l,t.dependsOn)}return this.properties.push(l),r&&!this.isOverridedProp(l.name)&&(l.isCustom=!0,f.addProperty(this.name,l)),l}},e.prototype.addDependsOnProperties=function(e,t){if(Array.isArray(t))for(var r=0;r<t.length;r++)this.addDependsOnProperty(e,t[r]);else this.addDependsOnProperty(e,t)},e.prototype.addDependsOnProperty=function(e,t){var r=this.find(t);r||(r=_.findProperty(this.parentName,t)),r&&r.addDependedProperty(e.name)},e.prototype.getIsPropertyNameRequired=function(t){return t.length>0&&t[0]==e.requiredSymbol},e.prototype.getPropertyName=function(e){return this.getIsPropertyNameRequired(e)?e=e.slice(1):e},e.requiredSymbol="!",e.typeSymbol=":",e}(),g=function(){function e(){this.classes={},this.alternativeNames={},this.childrenClasses={}}return e.prototype.getObjPropertyValue=function(e,t){if(this.isObjWrapper(e)){var r=e.getOriginalObj();if(n=_.findProperty(r.getType(),t))return this.getObjPropertyValueCore(r,n)}var n;return(n=_.findProperty(e.getType(),t))?this.getObjPropertyValueCore(e,n):e[t]},e.prototype.setObjPropertyValue=function(e,t,r){if(e[t]!==r)if(e[t]&&e[t].setJson)e[t].setJson(r);else{if(Array.isArray(r)){for(var n=[],o=0;o<r.length;o++)n.push(r[o]);r=n}e[t]=r}},e.prototype.getObjPropertyValueCore=function(e,t){if(!t.isSerializable)return e[t.name];if(t.isLocalizable){if(t.isArray)return e[t.name];if(t.serializationProperty)return e[t.serializationProperty].text}return e.getPropertyValue(t.name)},e.prototype.isObjWrapper=function(e){return!!e.getOriginalObj&&!!e.getOriginalObj()},e.prototype.addClass=function(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=null),e=e.toLowerCase();var o=new m(e,t,r,n);return this.classes[e]=o,n&&(n=n.toLowerCase(),this.childrenClasses[n]||(this.childrenClasses[n]=[]),this.childrenClasses[n].push(o)),o},e.prototype.removeClass=function(e){var t=this.findClass(e);if(t&&(delete this.classes[t.name],t.parentName)){var r=this.childrenClasses[t.parentName].indexOf(t);r>-1&&this.childrenClasses[t.parentName].splice(r,1)}},e.prototype.overrideClassCreatore=function(e,t){this.overrideClassCreator(e,t)},e.prototype.overrideClassCreator=function(e,t){e=e.toLowerCase();var r=this.findClass(e);r&&(r.creator=t)},e.prototype.getProperties=function(e){var t=this.findClass(e);return t?t.getAllProperties():[]},e.prototype.getPropertiesByObj=function(e){if(!e||!e.getType)return[];for(var t={},r=this.getProperties(e.getType()),n=0;n<r.length;n++)t[r[n].name]=r[n];var o=e.getDynamicType?this.getProperties(e.getDynamicType()):null;if(o&&o.length>0)for(n=0;n<o.length;n++){var i=o[n];t[i.name]||(t[i.name]=i)}return Object.keys(t).map((function(e){return t[e]}))},e.prototype.getDynamicPropertiesByObj=function(e,t){if(void 0===t&&(t=null),!e||!e.getType||!e.getDynamicType&&!t)return[];var r=t||e.getDynamicType();if(!r)return[];var n=this.getProperties(r);if(!n||0==n.length)return[];for(var o={},i=this.getProperties(e.getType()),s=0;s<i.length;s++)o[i[s].name]=i[s];var a=[];for(s=0;s<n.length;s++){var l=n[s];o[l.name]||a.push(l)}return a},e.prototype.hasOriginalProperty=function(e,t){return!!this.getOriginalProperty(e,t)},e.prototype.getOriginalProperty=function(e,t){return this.findProperty(e.getType(),t)||(this.isObjWrapper(e)?this.findProperty(e.getOriginalObj().getType(),t):null)},e.prototype.getProperty=function(e,t){var r=this.findProperty(e,t);if(!r)return r;var n=this.findClass(e);if(r.classInfo===n)return r;var o=new h(n,r.name,r.isRequired);return o.mergeWith(r),o.isArray=r.isArray,n.properties.push(o),n.resetAllProperties(),o},e.prototype.findProperty=function(e,t){var r=this.findClass(e);return r?r.findProperty(t):null},e.prototype.findProperties=function(e,t){var r=new Array,n=this.findClass(e);if(!n)return r;for(var o=0;o<t.length;o++){var i=n.findProperty(t[o]);i&&r.push(i)}return r},e.prototype.getAllPropertiesByName=function(e){for(var t=new Array,r=this.getAllClasses(),n=0;n<r.length;n++)for(var o=this.findClass(r[n]),i=0;i<o.properties.length;i++)if(o.properties[i].name==e){t.push(o.properties[i]);break}return t},e.prototype.getAllClasses=function(){var e=new Array;for(var t in this.classes)e.push(t);return e},e.prototype.createClass=function(e,t){void 0===t&&(t=void 0),e=e.toLowerCase();var r=this.findClass(e);if(!r)return null;if(r.creator)return r.creator(t);for(var n=r.parentName;n;){if(!(r=this.findClass(n)))return null;if(n=r.parentName,r.creator)return this.createCustomType(e,r.creator,t)}return null},e.prototype.createCustomType=function(e,t,r){void 0===r&&(r=void 0),e=e.toLowerCase();var n=t(r),o=e,i=n.getTemplate?n.getTemplate():n.getType();return n.getType=function(){return o},n.getTemplate=function(){return i},f.createProperties(n),n},e.prototype.getChildrenClasses=function(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var r=[];return this.fillChildrenClasses(e,t,r),r},e.prototype.getRequiredProperties=function(e){for(var t=this.getProperties(e),r=[],n=0;n<t.length;n++)t[n].isRequired&&r.push(t[n].name);return r},e.prototype.addProperties=function(e,t){e=e.toLowerCase();for(var r=this.findClass(e),n=0;n<t.length;n++)this.addCustomPropertyCore(r,t[n])},e.prototype.addProperty=function(e,t){return this.addCustomPropertyCore(this.findClass(e),t)},e.prototype.addCustomPropertyCore=function(e,t){if(!e)return null;var r=e.createProperty(t,!0);return r&&e.resetAllProperties(),r},e.prototype.removeProperty=function(e,t){var r=this.findClass(e);if(!r)return!1;var n=r.find(t);n&&(this.removePropertyFromClass(r,n),r.resetAllProperties(),f.removeProperty(r.name,t))},e.prototype.removePropertyFromClass=function(e,t){var r=e.properties.indexOf(t);r<0||e.properties.splice(r,1)},e.prototype.fillChildrenClasses=function(e,t,r){var n=this.childrenClasses[e];if(n)for(var o=0;o<n.length;o++)t&&!n[o].creator||r.push(n[o]),this.fillChildrenClasses(n[o].name,t,r)},e.prototype.findClass=function(e){e=e.toLowerCase();var t=this.classes[e];if(!t){var r=this.alternativeNames[e];if(r&&r!=e)return this.findClass(r)}return t},e.prototype.isDescendantOf=function(e,t){if(!e||!t)return!1;e=e.toLowerCase(),t=t.toLowerCase();var r=this.findClass(e);if(!r)return!1;var n=r;do{if(n.name===t)return!0;n=this.classes[n.parentName]}while(n);return!1},e.prototype.addAlterNativeClassName=function(e,t){this.alternativeNames[t.toLowerCase()]=e.toLowerCase()},e.prototype.generateSchema=function(e){void 0===e&&(e=void 0),e||(e="survey");var t=this.findClass(e);if(!t)return null;var r={$schema:"http://json-schema.org/draft-07/schema#",title:"SurveyJS Library json schema",type:"object",properties:{},definitions:{locstring:this.generateLocStrClass()}};return this.generateSchemaProperties(t,r,r.definitions,!0),r},e.prototype.generateLocStrClass=function(){var e={},t=_.findProperty("survey","locale");if(t){var r=t.getChoices(null);Array.isArray(r)&&(r.indexOf("en")<0&&r.splice(0,0,"en"),r.splice(0,0,"default"),r.forEach((function(t){t&&(e[t]={type:"string"})})))}return{$id:"locstring",type:"object",properties:e}},e.prototype.generateSchemaProperties=function(e,t,r,n){if(e){var o=t.properties,i=[];"question"!==e.name&&"panel"!==e.name||(o.type={type:"string"},i.push("type"));for(var s=0;s<e.properties.length;s++){var a=e.properties[s];e.parentName&&_.findProperty(e.parentName,a.name)||(o[a.name]=this.generateSchemaProperty(a,r,n),a.isRequired&&i.push(a.name))}i.length>0&&(t.required=i)}},e.prototype.generateSchemaProperty=function(e,t,r){if(e.isLocalizable)return{oneOf:[{type:"string"},{$ref:this.getChemeRefName("locstring",r)}]};var n=e.schemaType(),o=e.schemaRef(),i={};if(n&&(i.type=n),e.hasChoices){var s=e.getChoices(null);Array.isArray(s)&&s.length>0&&(i.enum=s)}if(o&&("array"===n?"string"===e.className?i.items={type:e.className}:i.items={$ref:this.getChemeRefName(e.className,r)}:i.$ref=this.getChemeRefName(o,r),this.generateChemaClass(e.className,t,!1)),e.baseClassName){var a=this.getChildrenClasses(e.baseClassName,!0);"question"==e.baseClassName&&a.push(this.findClass("panel")),i.items={anyOf:[]};for(var l=0;l<a.length;l++){var u=a[l].name;i.items.anyOf.push({$ref:this.getChemeRefName(u,r)}),this.generateChemaClass(u,t,!1)}}return i},e.prototype.getChemeRefName=function(e,t){return t?"#/definitions/"+e:e+"#"},e.prototype.generateChemaClass=function(e,t,r){if(!t[e]){var n=this.findClass(e);if(n){var o=!!n.parentName&&"base"!=n.parentName;o&&this.generateChemaClass(n.parentName,t,r);var i={type:"object",$id:e};t[e]=i;var s={properties:{}};this.generateSchemaProperties(n,s,t,r),o?i.allOf=[{$ref:this.getChemeRefName(n.parentName,r)},{properties:s.properties}]:i.properties=s.properties,Array.isArray(s.required)&&(i.required=s.required)}}},e}(),b=function(){function e(e,t){this.type=e,this.message=t,this.description="",this.at=-1}return e.prototype.getFullDescription=function(){return this.message+(this.description?"\n"+this.description:"")},e}(),y=function(e){function t(t,r){var n=e.call(this,"unknownproperty","The property '"+t+"' in class '"+r+"' is unknown.")||this;n.propertyName=t,n.className=r;var o=P.metaData.getProperties(r);if(o){n.description="The list of available properties are: ";for(var i=0;i<o.length;i++)i>0&&(n.description+=", "),n.description+=o[i].name;n.description+="."}return n}return a(t,e),t}(b),v=function(e){function t(t,r,n){var o=e.call(this,r,n)||this;o.baseClassName=t,o.type=r,o.message=n,o.description="The following types are available: ";for(var i=P.metaData.getChildrenClasses(t,!0),s=0;s<i.length;s++)s>0&&(o.description+=", "),o.description+="'"+i[s].name+"'";return o.description+=".",o}return a(t,e),t}(b),w=function(e){function t(t,r){var n=e.call(this,r,"missingtypeproperty","The property type is missing in the object. Please take a look at property: '"+t+"'.")||this;return n.propertyName=t,n.baseClassName=r,n}return a(t,e),t}(v),x=function(e){function t(t,r){var n=e.call(this,r,"incorrecttypeproperty","The property type is incorrect in the object. Please take a look at property: '"+t+"'.")||this;return n.propertyName=t,n.baseClassName=r,n}return a(t,e),t}(v),C=function(e){function t(t,r){var n=e.call(this,"requiredproperty","The property '"+t+"' is required in class '"+r+"'.")||this;return n.propertyName=t,n.className=r,n}return a(t,e),t}(b),P=function(){function e(){this.errors=new Array,this.lightSerializing=!1}return Object.defineProperty(e,"metaData",{get:function(){return e.metaDataValue},enumerable:!1,configurable:!0}),e.prototype.toJsonObject=function(e,t){return void 0===t&&(t=!1),this.toJsonObjectCore(e,null,t)},e.prototype.toObject=function(e,t){this.toObjectCore(e,t);var r=this.getRequiredError(t,e);r&&this.addNewError(r,e)},e.prototype.toObjectCore=function(t,r){if(t){var n=null,o=void 0,i=!0;if(r.getType&&(o=r.getType(),n=e.metaData.getProperties(o),i=!!o&&!e.metaData.isDescendantOf(o,"itemvalue")),n){for(var s in r.startLoadingFromJson&&r.startLoadingFromJson(t),n=this.addDynamicProperties(r,t,n),t)if(s!==e.typePropertyName)if(s!==e.positionPropertyName){var a=this.findProperty(n,s);a?this.valueToObj(t[s],r,a):i&&this.addNewError(new y(s.toString(),o),t)}else r[s]=t[s];r.endLoadingFromJson&&r.endLoadingFromJson()}}},e.prototype.toJsonObjectCore=function(t,r,n){if(void 0===n&&(n=!1),!t||!t.getType)return t;if("function"==typeof t.getData)return t.getData();var o={};return null==r||r.className||(o[e.typePropertyName]=r.getObjType(t.getType())),this.propertiesToJson(t,e.metaData.getProperties(t.getType()),o,n),this.propertiesToJson(t,this.getDynamicProperties(t),o,n),o},e.prototype.getDynamicProperties=function(e){return _.getDynamicPropertiesByObj(e)},e.prototype.addDynamicProperties=function(e,t,r){if(!e.getDynamicPropertyName)return r;var n=e.getDynamicPropertyName();if(!n)return r;t[n]&&(e[n]=t[n]);for(var o=this.getDynamicProperties(e),i=[],s=0;s<r.length;s++)i.push(r[s]);for(s=0;s<o.length;s++)i.push(o[s]);return i},e.prototype.propertiesToJson=function(e,t,r,n){void 0===n&&(n=!1);for(var o=0;o<t.length;o++)this.valueToJson(e,r,t[o],n)},e.prototype.valueToJson=function(e,t,r,n){if(void 0===n&&(n=!1),!(!1===r.isSerializable||!1===r.isLightSerializable&&this.lightSerializing)){var o=r.getValue(e);if(n||!r.isDefaultValue(o)){if(this.isValueArray(o)){for(var i=[],s=0;s<o.length;s++)i.push(this.toJsonObjectCore(o[s],r,n));o=i.length>0?i:null}else o=this.toJsonObjectCore(o,r,n);var a="function"==typeof e.getPropertyValue&&null!==e.getPropertyValue(r.name,null);(n&&a||!r.isDefaultValue(o))&&(_.onSerializingProperty&&_.onSerializingProperty(e,r,o,t)||(t[r.name]=o))}}},e.prototype.valueToObj=function(e,t,r){if(null!=e)if(this.removePos(r,e),null!=r&&r.hasToUseSetValue)r.setValue(t,e,this);else if(this.isValueArray(e))this.valueToArray(e,t,r.name,r);else{var n=this.createNewObj(e,r);n.newObj&&(this.toObjectCore(e,n.newObj),e=n.newObj),n.error||(null!=r?r.setValue(t,e,this):t[r.name]=e)}},e.prototype.removePos=function(e,t){!e||!e.type||e.type.indexOf("value")<0||this.removePosFromObj(t)},e.prototype.removePosFromObj=function(t){if(t){if(Array.isArray(t))for(var r=0;r<t.length;r++)this.removePosFromObj(t[r]);t[e.positionPropertyName]&&delete t[e.positionPropertyName]}},e.prototype.isValueArray=function(e){return e&&Array.isArray(e)},e.prototype.createNewObj=function(t,r){var n={newObj:null,error:null},o=this.getClassNameForNewObj(t,r);return n.newObj=o?e.metaData.createClass(o,t):null,n.error=this.checkNewObjectOnErrors(n.newObj,t,r,o),n},e.prototype.getClassNameForNewObj=function(t,r){var n=null!=r&&r.className?r.className:void 0;if(n||(n=t[e.typePropertyName]),!n)return n;n=n.toLowerCase();var o=r.classNamePart;return o&&n.indexOf(o)<0&&(n+=o),n},e.prototype.checkNewObjectOnErrors=function(e,t,r,n){var o=null;return e?o=this.getRequiredError(e,t):r.baseClassName&&(o=n?new x(r.name,r.baseClassName):new w(r.name,r.baseClassName)),o&&this.addNewError(o,t),o},e.prototype.getRequiredError=function(t,r){if(!t.getType||"function"==typeof t.getData)return null;var n=t.getType(),o=e.metaData.getRequiredProperties(n);if(!Array.isArray(o))return null;for(var i=0;i<o.length;i++){var a=_.findProperty(n,o[i]);if(a&&s.Helpers.isValueEmpty(a.defaultValue)&&!r[a.name])return new C(a.name,n)}return null},e.prototype.addNewError=function(t,r){r&&r[e.positionPropertyName]&&(t.at=r[e.positionPropertyName].start),this.errors.push(t)},e.prototype.valueToArray=function(e,t,r,n){if(!t[r]||this.isValueArray(t[r])){t[r]&&e.length>0&&t[r].splice(0,t[r].length);var o=t[r]?t[r]:[];this.addValuesIntoArray(e,o,n),t[r]||(t[r]=o)}},e.prototype.addValuesIntoArray=function(e,t,r){for(var n=0;n<e.length;n++){var o=this.createNewObj(e[n],r);o.newObj?(e[n].name&&(o.newObj.name=e[n].name),e[n].valueName&&(o.newObj.valueName=e[n].valueName.toString()),t.push(o.newObj),this.toObjectCore(e[n],o.newObj)):o.error||t.push(e[n])}},e.prototype.findProperty=function(e,t){if(!e)return null;for(var r=0;r<e.length;r++){var n=e[r];if(n.name==t||n.alternativeName==t)return n}return null},e.typePropertyName="type",e.positionPropertyName="pos",e.metaDataValue=new g,e}(),_=P.metaData},"./src/list.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"defaultListCss",(function(){return p})),r.d(t,"ListModel",(function(){return d}));var n,o=r("./src/jsonobject.ts"),i=r("./src/actions/container.ts"),s=r("./src/actions/action.ts"),a=r("./src/utils/cssClassBuilder.ts"),l=r("./src/element-helper.ts"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},p={root:"sv-list__container",item:"sv-list__item",searchClearButtonIcon:"sv-list__filter-clear-button",loadingIndicator:"sv-list__loading-indicator",itemSelected:"sv-list__item--selected",itemWithIcon:"sv-list__item--with-icon",itemDisabled:"sv-list__item--disabled",itemFocused:"sv-list__item--focused",itemIcon:"sv-list__item-icon",itemSeparator:"sv-list__item-separator",itemBody:"sv-list__item-body",itemsContainer:"sv-list",filter:"sv-list__filter",filterIcon:"sv-list__filter-icon",filterInput:"sv-list__input",emptyContainer:"sv-list__empty-container",emptyText:"sv-list__empty-text"},d=function(e){function t(r,n,o,i,s,l){var u=e.call(this)||this;return u.onSelectionChanged=n,u.allowSelection=o,u.onFilterStringChangedCallback=s,u.elementId=l,u.onItemClick=function(e){u.isItemDisabled(e)||(u.isExpanded=!1,u.allowSelection&&(u.selectedItem=e),u.onSelectionChanged&&u.onSelectionChanged(e))},u.isItemDisabled=function(e){return void 0!==e.enabled&&!e.enabled},u.isItemSelected=function(e){return u.areSameItems(u.selectedItem,e)},u.isItemFocused=function(e){return u.areSameItems(u.focusedItem,e)},u.getItemClass=function(e){return(new a.CssClassBuilder).append(u.cssClasses.item).append(u.cssClasses.itemWithIcon,!!e.iconName).append(u.cssClasses.itemDisabled,u.isItemDisabled(e)).append(u.cssClasses.itemFocused,u.isItemFocused(e)).append(u.cssClasses.itemSelected,u.isItemSelected(e)).append(e.css).toString()},u.getItemIndent=function(e){return((e.level||0)+1)*t.INDENT+"px"},u.setItems(r),u.selectedItem=i,u}return u(t,e),t.prototype.hasText=function(e,t){return!t||(e.title||"").toLocaleLowerCase().indexOf(t.toLocaleLowerCase())>-1},t.prototype.isItemVisible=function(e){return e.visible&&(!this.shouldProcessFilter||this.hasText(e,this.filterString))},Object.defineProperty(t.prototype,"visibleItems",{get:function(){var e=this;return this.visibleActions.filter((function(t){return e.isItemVisible(t)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldProcessFilter",{get:function(){return!this.onFilterStringChangedCallback},enumerable:!1,configurable:!0}),t.prototype.onFilterStringChanged=function(e){var t=this;this.onFilterStringChangedCallback&&this.onFilterStringChangedCallback(e),this.isEmpty=0===this.renderedActions.filter((function(e){return t.isItemVisible(e)})).length},t.prototype.scrollToItem=function(e,t){var r=this;void 0===t&&(t=0),setTimeout((function(){if(r.listContainerHtmlElement){var n=r.listContainerHtmlElement.querySelector("."+e);n&&setTimeout((function(){n.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}),t)}}),t)},t.prototype.setItems=function(t,r){var n=this;void 0===r&&(r=!0),e.prototype.setItems.call(this,t,r),this.elementId&&this.renderedActions.forEach((function(e){e.elementId=n.elementId+e.id})),!this.isAllDataLoaded&&this.actions.length&&this.actions.push(this.loadingIndicator)},t.prototype.onSet=function(){this.showFilter=this.searchEnabled&&(this.forceShowFilter||(this.actions||[]).length>t.MINELEMENTCOUNT),e.prototype.onSet.call(this)},t.prototype.getDefaultCssClasses=function(){return p},t.prototype.areSameItems=function(e,t){return this.areSameItemsCallback?this.areSameItemsCallback(e,t):!!e&&!!t&&e.id==t.id},Object.defineProperty(t.prototype,"filterStringPlaceholder",{get:function(){return this.getLocalizationString("filterStringPlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyMessage",{get:function(){return this.isAllDataLoaded?this.getLocalizationString("emptyMessage"):this.loadingText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollableContainer",{get:function(){return this.listContainerHtmlElement.querySelector("."+this.getDefaultCssClasses().itemsContainer)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingText",{get:function(){return this.getLocalizationString("loadingFile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingIndicator",{get:function(){return this.loadingIndicatorValue||(this.loadingIndicatorValue=new s.Action({id:"loadingIndicator",title:this.loadingText,action:function(){},css:this.cssClasses.loadingIndicator})),this.loadingIndicatorValue},enumerable:!1,configurable:!0}),t.prototype.goToItems=function(e){if("ArrowDown"===e.key||40===e.keyCode){var t=e.target.parentElement.parentElement.querySelector("ul");t&&t.firstElementChild&&(l.ElementHelper.focusElement(t.firstElementChild),e.preventDefault())}},t.prototype.onMouseMove=function(e){this.resetFocusedItem()},t.prototype.onKeyDown=function(e){var t=e.target;"ArrowDown"===e.key||40===e.keyCode?(l.ElementHelper.focusElement(l.ElementHelper.getNextElementPreorder(t)),e.preventDefault()):"ArrowUp"!==e.key&&38!==e.keyCode||(l.ElementHelper.focusElement(l.ElementHelper.getNextElementPostorder(t)),e.preventDefault())},t.prototype.onPointerDown=function(e,t){},t.prototype.refresh=function(){this.filterString="",this.resetFocusedItem()},t.prototype.onClickSearchClearButton=function(e){e.currentTarget.parentElement.querySelector("input").focus(),this.refresh()},t.prototype.resetFocusedItem=function(){this.focusedItem=void 0},t.prototype.focusFirstVisibleItem=function(){this.focusedItem=this.visibleItems[0]},t.prototype.focusLastVisibleItem=function(){this.focusedItem=this.visibleItems[this.visibleItems.length-1]},t.prototype.initFocusedItem=function(){var e=this;this.focusedItem=this.visibleItems.filter((function(t){return t.visible&&e.isItemSelected(t)}))[0],this.focusedItem||this.focusFirstVisibleItem()},t.prototype.focusNextVisibleItem=function(){if(this.focusedItem){var e=this.visibleItems,t=e.indexOf(this.focusedItem),r=e[t+1];r?this.focusedItem=r:this.focusFirstVisibleItem()}else this.initFocusedItem()},t.prototype.focusPrevVisibleItem=function(){if(this.focusedItem){var e=this.visibleItems,t=e.indexOf(this.focusedItem),r=e[t-1];r?this.focusedItem=r:this.focusLastVisibleItem()}else this.initFocusedItem()},t.prototype.selectFocusedItem=function(){this.focusedItem&&this.onItemClick(this.focusedItem)},t.prototype.initListContainerHtmlElement=function(e){this.listContainerHtmlElement=e},t.prototype.onLastItemRended=function(e){this.isAllDataLoaded||e===this.actions[this.actions.length-1]&&this.listContainerHtmlElement&&(this.hasVerticalScroller=l.ElementHelper.hasVerticalScroller(this.scrollableContainer))},t.prototype.scrollToFocusedItem=function(){this.scrollToItem(this.getDefaultCssClasses().itemFocused)},t.prototype.scrollToSelectedItem=function(){this.scrollToItem(this.getDefaultCssClasses().itemSelected,110)},t.prototype.addScrollEventListener=function(e){e&&(this.scrollHandler=e),this.scrollHandler&&this.scrollableContainer.addEventListener("scroll",this.scrollHandler)},t.prototype.removeScrollEventListener=function(){this.scrollHandler&&this.scrollableContainer.removeEventListener("scroll",this.scrollHandler)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.loadingIndicatorValue&&this.loadingIndicatorValue.dispose()},t.INDENT=16,t.MINELEMENTCOUNT=10,c([Object(o.property)({defaultValue:!0,onSet:function(e,t){t.onSet()}})],t.prototype,"searchEnabled",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"showFilter",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"forceShowFilter",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"isExpanded",void 0),c([Object(o.property)({})],t.prototype,"selectedItem",void 0),c([Object(o.property)()],t.prototype,"focusedItem",void 0),c([Object(o.property)({onSet:function(e,t){t.onFilterStringChanged(t.filterString)}})],t.prototype,"filterString",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"hasVerticalScroller",void 0),c([Object(o.property)({defaultValue:!0})],t.prototype,"isAllDataLoaded",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"showSearchClearButton",void 0),c([Object(o.property)({defaultValue:!0})],t.prototype,"renderElements",void 0),t}(i.ActionContainer)},"./src/localizablestring.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"LocalizableString",(function(){return a})),r.d(t,"LocalizableStrings",(function(){return l}));var n=r("./src/helpers.ts"),o=r("./src/surveyStrings.ts"),i=r("./src/settings.ts"),s=r("./src/base.ts"),a=function(){function e(e,t,r){void 0===t&&(t=!1),this.owner=e,this.useMarkdown=t,this.name=r,this.values={},this.htmlValues={},this.onStringChanged=new s.EventBase,this.onCreating()}return Object.defineProperty(e,"defaultLocale",{get:function(){return i.settings.defaultLocaleName},set:function(e){i.settings.defaultLocaleName=e},enumerable:!1,configurable:!0}),e.prototype.getIsMultiple=function(){return!1},Object.defineProperty(e.prototype,"locale",{get:function(){if(this.owner&&this.owner.getLocale){var e=this.owner.getLocale();if(e||!this.sharedData)return e}return this.sharedData?this.sharedData.locale:""},enumerable:!1,configurable:!0}),e.prototype.strChanged=function(){this.searchableText=void 0,void 0!==this.renderedText&&(this.calculatedTextValue=this.calcText(),this.renderedText!==this.calculatedTextValue&&(this.renderedText=void 0,this.calculatedTextValue=void 0),this.htmlValues={},this.onChanged(),this.onStringChanged.fire(this,{}))},Object.defineProperty(e.prototype,"text",{get:function(){return this.pureText},set:function(e){this.setLocaleText(this.locale,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calculatedText",{get:function(){return this.renderedText=void 0!==this.calculatedTextValue?this.calculatedTextValue:this.calcText(),this.calculatedTextValue=void 0,this.renderedText},enumerable:!1,configurable:!0}),e.prototype.calcText=function(){var e=this.pureText;return e&&this.owner&&this.owner.getProcessedText&&e.indexOf("{")>-1&&(e=this.owner.getProcessedText(e)),this.onGetTextCallback&&(e=this.onGetTextCallback(e)),e},Object.defineProperty(e.prototype,"pureText",{get:function(){var e=this.locale;e||(e=this.defaultLoc);var t=this.getValue(e);if(t||e!==this.defaultLoc||(t=this.getValue(o.surveyLocalization.defaultLocale)),!t){var r=this.getRootDialect(e);r&&(t=this.getValue(r))}return t||e===this.defaultLoc||(t=this.getValue(this.defaultLoc)),!t&&this.getLocalizationName()&&(t=this.getLocalizationStr(),this.onGetLocalizationTextCallback&&(t=this.onGetLocalizationTextCallback(t))),t||(t=""),t},enumerable:!1,configurable:!0}),e.prototype.getRootDialect=function(e){if(!e)return e;var t=e.indexOf("-");return t>-1?e.substring(0,t):""},e.prototype.getLocalizationName=function(){return this.sharedData?this.sharedData.localizationName:this.localizationName},e.prototype.getLocalizationStr=function(){var e=this.getLocalizationName();return e?o.surveyLocalization.getString(e,this.locale):""},Object.defineProperty(e.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedHtml",{get:function(){return this.textOrHtml},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){return e||(e=this.defaultLoc),this.getValue(e)||""},e.prototype.getLocaleTextWithDefault=function(e){var t=this.getLocaleText(e);return!t&&this.onGetDefaultTextCallback?this.onGetDefaultTextCallback():t},e.prototype.setLocaleText=function(e,t){if(e=this.getValueLoc(e),this.storeDefaultText||t!=this.getLocaleTextWithDefault(e)){if(i.settings.storeDuplicatedTranslations||!t||!e||e==this.defaultLoc||this.getValue(e)||t!=this.getLocaleText(this.defaultLoc)){var r=this.curLocale;e||(e=this.defaultLoc);var n=this.onStrChanged&&e===r?this.pureText:void 0;delete this.htmlValues[e],t?"string"==typeof t&&(this.canRemoveLocValue(e,t)?this.setLocaleText(e,null):(this.setValue(e,t),e==this.defaultLoc&&this.deleteValuesEqualsToDefault(t))):this.getValue(e)&&this.deleteValue(e),this.fireStrChanged(e,n)}}else{if(t||e&&e!==this.defaultLoc)return;var s=o.surveyLocalization.defaultLocale,a=this.getValue(s);s&&a&&(this.setValue(s,t),this.fireStrChanged(s,a))}},Object.defineProperty(e.prototype,"curLocale",{get:function(){return this.locale?this.locale:this.defaultLoc},enumerable:!1,configurable:!0}),e.prototype.canRemoveLocValue=function(e,t){if(i.settings.storeDuplicatedTranslations)return!1;if(e===this.defaultLoc)return!1;var r=this.getRootDialect(e);if(r){var n=this.getLocaleText(r);return n?n==t:this.canRemoveLocValue(r,t)}return t==this.getLocaleText(this.defaultLoc)},e.prototype.fireStrChanged=function(e,t){if(this.strChanged(),this.onStrChanged){var r=this.pureText;e===this.curLocale&&t===r||this.onStrChanged(t,r)}},e.prototype.hasNonDefaultText=function(){var e=this.getValuesKeys();return 0!=e.length&&(e.length>1||e[0]!=this.defaultLoc)},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){if(this.sharedData)return this.sharedData.getJson();var e=this.getValuesKeys();return 0==e.length?null:1!=e.length||e[0]!=i.settings.defaultLocaleName||i.settings.serializeLocalizableStringAsObject?this.values:this.values[e[0]]},e.prototype.setJson=function(e){if(this.sharedData)this.sharedData.setJson(e);else if(this.values={},this.htmlValues={},e){if("string"==typeof e)this.setLocaleText(null,e);else for(var t in e)this.setLocaleText(t,e[t]);this.strChanged()}},Object.defineProperty(e.prototype,"renderAs",{get:function(){return this.owner&&"function"==typeof this.owner.getRenderer&&this.owner.getRenderer(this.name)||e.defaultRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderAsData",{get:function(){return this.owner&&"function"==typeof this.owner.getRendererContext&&this.owner.getRendererContext(this)||this},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return this.sharedData?this.sharedData.equals(e):!(!e||!e.values)&&n.Helpers.isTwoValueEquals(this.values,e.values,!1,!0,!1)},e.prototype.setFindText=function(e){if(this.searchText!=e){if(this.searchText=e,!this.searchableText){var t=this.textOrHtml;this.searchableText=t?t.toLowerCase():""}var r=this.searchableText,n=r&&e?r.indexOf(e):void 0;return n<0&&(n=void 0),null==n&&this.searchIndex==n||(this.searchIndex=n,this.onSearchChanged&&this.onSearchChanged()),null!=this.searchIndex}},e.prototype.onChanged=function(){},e.prototype.onCreating=function(){},e.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var e=this.locale;if(e||(e=this.defaultLoc),void 0!==this.htmlValues[e])return!!this.htmlValues[e];var t=this.calculatedText;if(!t)return!1;if(this.getLocalizationName()&&t===this.getLocalizationStr())return!1;var r=this.owner.getMarkdownHtml(t,this.name);return this.htmlValues[e]=r,!!r},e.prototype.getHtmlValue=function(){var e=this.locale;return e||(e=this.defaultLoc),this.htmlValues[e]},e.prototype.deleteValuesEqualsToDefault=function(e){if(!i.settings.storeDuplicatedTranslations)for(var t=this.getValuesKeys(),r=0;r<t.length;r++)t[r]!=this.defaultLoc&&this.getValue(t[r])==e&&this.deleteValue(t[r])},e.prototype.getValue=function(e){return this.sharedData?this.sharedData.getValue(e):this.values[this.getValueLoc(e)]},e.prototype.setValue=function(e,t){this.sharedData?this.sharedData.setValue(e,t):this.values[this.getValueLoc(e)]=t},e.prototype.deleteValue=function(e){this.sharedData?this.sharedData.deleteValue(e):delete this.values[this.getValueLoc(e)]},e.prototype.getValueLoc=function(e){return this.disableLocalization?i.settings.defaultLocaleName:e},e.prototype.getValuesKeys=function(){return this.sharedData?this.sharedData.getValuesKeys():Object.keys(this.values)},Object.defineProperty(e.prototype,"defaultLoc",{get:function(){return i.settings.defaultLocaleName},enumerable:!1,configurable:!0}),e.SerializeAsObject=!1,e.defaultRenderer="sv-string-viewer",e.editableRenderer="sv-string-editor",e}(),l=function(){function e(e){this.owner=e,this.values={}}return e.prototype.getIsMultiple=function(){return!0},Object.defineProperty(e.prototype,"locale",{get:function(){return this.owner&&this.owner.getLocale?this.owner.getLocale():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue("")},set:function(e){this.setValue("",e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return Array.isArray(this.value)?this.value.join("\n"):""},set:function(e){this.value=e?e.split("\n"):[]},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){var t=this.getValueCore(e,!e||e===this.locale);return t&&Array.isArray(t)&&0!=t.length?t.join("\n"):""},e.prototype.setLocaleText=function(e,t){var r=t?t.split("\n"):null;this.setValue(e,r)},e.prototype.getValue=function(e){return this.getValueCore(e)},e.prototype.getValueCore=function(e,t){if(void 0===t&&(t=!0),e=this.getLocale(e),this.values[e])return this.values[e];if(t){var r=i.settings.defaultLocaleName;if(e!==r&&this.values[r])return this.values[r]}return[]},e.prototype.setValue=function(e,t){e=this.getLocale(e);var r=n.Helpers.createCopy(this.values);t&&0!=t.length?this.values[e]=t:delete this.values[e],this.onValueChanged&&this.onValueChanged(r,this.values)},e.prototype.hasValue=function(e){return void 0===e&&(e=""),!this.isEmpty&&this.getValue(e).length>0},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),e.prototype.getLocale=function(e){return e||(e=this.locale)||i.settings.defaultLocaleName},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){var e=this.getValuesKeys();return 0==e.length?null:1!=e.length||e[0]!=i.settings.defaultLocaleName||i.settings.serializeLocalizableStringAsObject?n.Helpers.createCopy(this.values):this.values[e[0]]},e.prototype.setJson=function(e){if(this.values={},e)if(Array.isArray(e))this.setValue(null,e);else for(var t in e)this.setValue(t,e[t])},e.prototype.getValuesKeys=function(){return Object.keys(this.values)},e}()},"./src/localization/english.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"englishStrings",(function(){return n}));var n={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",previewText:"Preview",editText:"Edit",startSurveyText:"Start",otherItemText:"Other (describe)",noneItemText:"None",selectAllItemText:"Select All",progressText:"Page {0} of {1}",indexText:"{0} of {1}",panelDynamicProgressText:"{0} of {1}",panelDynamicTabTextFormat:"Panel {panelIndex}",questionsProgressText:"Answered {0}/{1} questions",emptySurvey:"The survey doesn't contain visible pages or questions.",completingSurvey:"Thank you for completing the survey",completingSurveyBefore:"Our records show that you have already completed this survey.",loadingSurvey:"Loading Survey...",placeholder:"Select...",ratingOptionsCaption:"Tap to rate here...",value:"value",requiredError:"Response required.",requiredErrorInPanel:"Response required: answer at least one question.",requiredInAllRowsError:"Response required: answer questions in all rows.",numericError:"The value should be numeric.",minError:"The value should not be less than {0}",maxError:"The value should not be greater than {0}",textMinLength:"Please enter at least {0} character(s).",textMaxLength:"Please enter no more than {0} character(s).",textMinMaxLength:"Please enter at least {0} and no more than {1} characters.",minRowCountError:"Please fill in at least {0} row(s).",minSelectError:"Please select at least {0} variant(s).",maxSelectError:"Please select no more than {0} variant(s).",numericMinMax:"The '{0}' should be at least {1} and at most {2}",numericMin:"The '{0}' should be at least {1}",numericMax:"The '{0}' should be at most {1}",invalidEmail:"Please enter a valid e-mail address.",invalidExpression:"The expression: {0} should return 'true'.",urlRequestError:"The request returned error '{0}'. {1}",urlGetChoicesError:"The request returned empty data or the 'path' property is incorrect",exceedMaxSize:"The file size should not exceed {0}.",otherRequiredError:"Response required: enter another value.",uploadingFile:"Your file is uploading. Please wait several seconds and try again.",loadingFile:"Loading...",chooseFile:"Choose file(s)...",noFileChosen:"No file chosen",fileDragAreaPlaceholder:"Drag and drop a file here or click the button below and choose a file to upload.",confirmDelete:"Do you want to delete the record?",keyDuplicationError:"This value should be unique.",addColumn:"Add Column",addRow:"Add Row",removeRow:"Remove",emptyRowsText:"There are no rows.",addPanel:"Add new",removePanel:"Remove",choices_Item:"item",matrix_column:"Column",matrix_row:"Row",multipletext_itemname:"text",savingData:"The results are being saved on the server...",savingDataError:"An error occurred and we could not save the results.",savingDataSuccess:"The results were saved successfully!",saveAgainButton:"Try again",timerMin:"min",timerSec:"sec",timerSpentAll:"You have spent {0} on this page and {1} in total.",timerSpentPage:"You have spent {0} on this page.",timerSpentSurvey:"You have spent {0} in total.",timerLimitAll:"You have spent {0} of {1} on this page and {2} of {3} in total.",timerLimitPage:"You have spent {0} of {1} on this page.",timerLimitSurvey:"You have spent {0} of {1} in total.",clearCaption:"Clear",signaturePlaceHolder:"Sign here",chooseFileCaption:"Choose file",removeFileCaption:"Remove this file",booleanCheckedLabel:"Yes",booleanUncheckedLabel:"No",confirmRemoveFile:"Are you sure that you want to remove this file: {0}?",confirmRemoveAllFiles:"Are you sure that you want to remove all files?",questionTitlePatternText:"Question Title",modalCancelButtonText:"Cancel",modalApplyButtonText:"Apply",filterStringPlaceholder:"Type to search...",emptyMessage:"No data to display",noEntriesText:"There are no entries yet.\nClick the button below to add a new entry.",noEntriesReadonlyText:"There are no entries.",more:"More",tagboxDoneButtonCaption:"OK"}},"./src/martixBase.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionMatrixBaseModel",(function(){return d}));var n,o=r("./src/itemvalue.ts"),i=r("./src/question.ts"),s=r("./src/jsonobject.ts"),a=r("./src/conditions.ts"),l=r("./src/helpers.ts"),u=r("./src/utils/cssClassBuilder.ts"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},d=function(e){function t(t){var r=e.call(this,t)||this;return r.generatedVisibleRows=null,r.generatedTotalRow=null,r.filteredRows=null,r.filteredColumns=null,r.columns=r.createColumnValues(),r.rows=r.createItemValues("rows"),r}return c(t,e),t.prototype.createColumnValues=function(){return this.createItemValues("columns")},t.prototype.getType=function(){return"matrixbase"},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.updateVisibilityBasedOnRows()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},set:function(e){this.setPropertyValue("showHeader",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.getPropertyValue("columns")},set:function(e){this.setPropertyValue("columns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleColumns",{get:function(){return this.filteredColumns?this.filteredColumns:this.columns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){var t=this.processRowsOnSet(e);this.setPropertyValue("rows",t),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.processRowsOnSet=function(e){return e},t.prototype.getVisibleRows=function(){return[]},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsVisibleIf",{get:function(){return this.getPropertyValue("rowsVisibleIf","")},set:function(e){this.setPropertyValue("rowsVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsVisibleIf",{get:function(){return this.getPropertyValue("columnsVisibleIf","")},set:function(e){this.setPropertyValue("columnsVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.runItemsCondition(t,r)},t.prototype.filterItems=function(){return this.areInvisibleElementsShowing?(this.onRowsChanged(),!1):!(this.isLoadingFromJson||!this.data)&&this.runItemsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.onColumnsChanged=function(){},t.prototype.onRowsChanged=function(){this.updateVisibilityBasedOnRows(),this.fireCallback(this.visibleRowsChangedCallback)},t.prototype.updateVisibilityBasedOnRows=function(){this.hideIfRowsEmpty&&(this.visible=this.rows.length>0&&(!this.filteredRows||this.filteredRows.length>0))},t.prototype.shouldRunColumnExpression=function(){return!this.survey||!this.survey.areInvisibleElementsShowing},t.prototype.hasRowsAsItems=function(){return!0},t.prototype.runItemsCondition=function(e,t){var r=null;if(this.filteredRows&&!l.Helpers.isValueEmpty(this.defaultValue)){r=[];for(var n=0;n<this.filteredRows.length;n++)r.push(this.filteredRows[n])}var o=this.hasRowsAsItems()&&this.runConditionsForRows(e,t),i=this.runConditionsForColumns(e,t);return(o=i||o)&&(this.isClearValueOnHidden&&(this.filteredColumns||this.filteredRows)&&this.clearIncorrectValues(),r&&this.restoreNewVisibleRowsValues(r),this.clearGeneratedRows(),i&&this.onColumnsChanged(),this.onRowsChanged()),o},t.prototype.clearGeneratedRows=function(){this.generatedVisibleRows=null},t.prototype.runConditionsForRows=function(e,t){var r=!!this.survey&&this.survey.areInvisibleElementsShowing,n=!r&&this.rowsVisibleIf?new a.ConditionRunner(this.rowsVisibleIf):null;this.filteredRows=[];var i=o.ItemValue.runConditionsForItems(this.rows,this.filteredRows,n,e,t,!r);return this.filteredRows.length===this.rows.length&&(this.filteredRows=null),i},t.prototype.runConditionsForColumns=function(e,t){var r=this.survey&&!this.survey.areInvisibleElementsShowing&&this.columnsVisibleIf?new a.ConditionRunner(this.columnsVisibleIf):null;this.filteredColumns=[];var n=o.ItemValue.runConditionsForItems(this.columns,this.filteredColumns,r,e,t,this.shouldRunColumnExpression());return this.filteredColumns.length===this.columns.length&&(this.filteredColumns=null),n},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var r=null,n=!1,i=this.filteredRows?this.filteredRows:this.rows,s=this.filteredColumns?this.filteredColumns:this.columns;for(var a in t)o.ItemValue.getItemByValue(i,a)&&o.ItemValue.getItemByValue(s,t[a])?(null==r&&(r={}),r[a]=t[a]):n=!0;n&&(this.value=r),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearInvisibleValuesInRows=function(){if(!this.isEmpty()){for(var e=this.getUnbindValue(this.value),t=this.rows,r=0;r<t.length;r++){var n=t[r].value;e[n]&&!t[r].isVisible&&delete e[n]}this.isTwoValueEquals(e,this.value)||(this.value=e)}},t.prototype.restoreNewVisibleRowsValues=function(e){var t=this.filteredRows?this.filteredRows:this.rows,r=this.defaultValue,n=this.getUnbindValue(this.value),i=!1;for(var s in r)o.ItemValue.getItemByValue(t,s)&&!o.ItemValue.getItemByValue(e,s)&&(null==n&&(n={}),n[s]=r[s],i=!0);i&&(this.value=n)},t.prototype.needResponsiveWidth=function(){return!0},t.prototype.getTableCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.rootAlternateRows,this.alternateRows).append(this.cssClasses.rootVerticalAlignTop,"top"===this.verticalAlign).append(this.cssClasses.rootVerticalAlignMiddle,"middle"===this.verticalAlign).toString()},Object.defineProperty(t.prototype,"columnMinWidth",{get:function(){return this.getPropertyValue("columnMinWidth","")},set:function(e){this.setPropertyValue("columnMinWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowTitleWidth",{get:function(){return this.getPropertyValue("rowTitleWidth","")},set:function(e){this.setPropertyValue("rowTitleWidth",e)},enumerable:!1,configurable:!0}),p([Object(s.property)({defaultValue:"middle"})],t.prototype,"verticalAlign",void 0),p([Object(s.property)()],t.prototype,"alternateRows",void 0),t}(i.Question);s.Serializer.addClass("matrixbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"columnsVisibleIf:condition","rowsVisibleIf:condition","columnMinWidth",{name:"showHeader:boolean",default:!0},{name:"verticalAlign",choices:["top","middle"],default:"middle"},{name:"alternateRows:boolean",default:!1}],void 0,"question")},"./src/multiSelectListModel.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"MultiSelectListModel",(function(){return a}));var n,o=r("./src/jsonobject.ts"),i=r("./src/list.ts"),s=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(t,r,n,o,i,s){var a=e.call(this,t,r,n,void 0,i,s)||this;return a.onItemClick=function(e){a.isItemDisabled(e)||(a.isExpanded=!1,a.isItemSelected(e)?(a.selectedItems.splice(a.selectedItems.indexOf(e),1)[0],a.onSelectionChanged&&a.onSelectionChanged(e,"removed")):(a.selectedItems.push(e),a.onSelectionChanged&&a.onSelectionChanged(e,"added")))},a.isItemDisabled=function(e){return void 0!==e.enabled&&!e.enabled},a.isItemSelected=function(e){return!!a.allowSelection&&a.selectedItems.filter((function(t){return a.areSameItems(t,e)})).length>0},a.setSelectedItems(o||[]),a}return s(t,e),t.prototype.updateItemState=function(){var e=this;this.actions.forEach((function(t){var r=e.isItemSelected(t);t.visible=!e.hideSelectedItems||!r}))},t.prototype.updateState=function(){var e=this;this.updateItemState(),this.isEmpty=0===this.renderedActions.filter((function(t){return e.isItemVisible(t)})).length},t.prototype.setSelectedItems=function(e){this.selectedItems=e,this.updateState()},t.prototype.selectFocusedItem=function(){e.prototype.selectFocusedItem.call(this),this.hideSelectedItems&&this.focusNextVisibleItem()},function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);i>3&&s&&Object.defineProperty(t,r,s)}([Object(o.property)()],t.prototype,"hideSelectedItems",void 0),t}(i.ListModel)},"./src/notifier.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"Notifier",(function(){return p}));var n,o=r("./src/base.ts"),i=r("./src/settings.ts"),s=r("./src/jsonobject.ts"),a=r("./src/utils/cssClassBuilder.ts"),l=r("./src/actions/container.ts"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},p=function(e){function t(t){var r=e.call(this)||this;return r.cssClasses=t,r.timeout=i.settings.notifications.lifetime,r.timer=void 0,r.actionsVisibility={},r.actionBar=new l.ActionContainer,r.actionBar.updateCallback=function(e){r.actionBar.actions.forEach((function(e){return e.cssClasses={}}))},r.css=r.cssClasses.root,r}return u(t,e),t.prototype.getCssClass=function(e){return(new a.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.info,"error"!==e&&"success"!==e).append(this.cssClasses.error,"error"===e).append(this.cssClasses.success,"success"===e).append(this.cssClasses.shown,this.active).toString()},t.prototype.updateActionsVisibility=function(e){var t=this;this.actionBar.actions.forEach((function(r){return r.visible=t.actionsVisibility[r.id]===e}))},t.prototype.notify=function(e,t,r){var n=this;void 0===t&&(t="info"),void 0===r&&(r=!1),this.isDisplayed=!0,setTimeout((function(){n.updateActionsVisibility(t),n.message=e,n.active=!0,n.css=n.getCssClass(t),n.timer&&(clearTimeout(n.timer),n.timer=void 0),r||(n.timer=setTimeout((function(){n.timer=void 0,n.active=!1,n.css=n.getCssClass(t)}),n.timeout))}),1)},t.prototype.addAction=function(e,t){e.visible=!1,e.innerCss=this.cssClasses.button;var r=this.actionBar.addAction(e);this.actionsVisibility[r.id]=t},c([Object(s.property)({defaultValue:!1})],t.prototype,"active",void 0),c([Object(s.property)({defaultValue:!1})],t.prototype,"isDisplayed",void 0),c([Object(s.property)()],t.prototype,"message",void 0),c([Object(s.property)()],t.prototype,"css",void 0),t}(o.Base)},"./src/page.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"PageModel",(function(){return u}));var n,o=r("./src/jsonobject.ts"),i=r("./src/panel.ts"),s=r("./src/utils/cssClassBuilder.ts"),a=r("./src/drag-drop-page-helper-v1.ts"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){void 0===t&&(t="");var r=e.call(this,t)||this;return r.hasShownValue=!1,r.timeSpent=0,r.locTitle.onGetTextCallback=function(e){return r.canShowPageNumber()&&e?r.num+". "+e:e},r.createLocalizableString("navigationTitle",r,!0),r.createLocalizableString("navigationDescription",r,!0),r.dragDropPageHelper=new a.DragDropPageHelperV1(r),r}return l(t,e),t.prototype.getType=function(){return"page"},t.prototype.toString=function(){return this.name},Object.defineProperty(t.prototype,"isPage",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.canShowPageNumber=function(){return this.survey&&this.survey.showPageNumbers},t.prototype.canShowTitle=function(){return this.survey&&this.survey.showPageTitles},Object.defineProperty(t.prototype,"navigationTitle",{get:function(){return this.getLocalizableStringText("navigationTitle")},set:function(e){this.setLocalizableStringText("navigationTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNavigationTitle",{get:function(){return this.getLocalizableString("navigationTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationDescription",{get:function(){return this.getLocalizableStringText("navigationDescription")},set:function(e){this.setLocalizableStringText("navigationDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNavigationDescription",{get:function(){return this.getLocalizableString("navigationDescription")},enumerable:!1,configurable:!0}),t.prototype.navigationLocStrChanged=function(){this.locNavigationTitle.strChanged(),this.locNavigationDescription.strChanged()},Object.defineProperty(t.prototype,"passed",{get:function(){return this.getPropertyValue("passed",!1)},set:function(e){this.setPropertyValue("passed",e)},enumerable:!1,configurable:!0}),t.prototype.delete=function(){this.survey&&this.removeSelfFromList(this.survey.pages)},t.prototype.onFirstRendering=function(){this.wasShown||e.prototype.onFirstRendering.call(this)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},set:function(e){this.setPropertyValue("visibleIndex",e)},enumerable:!1,configurable:!0}),t.prototype.canRenderFirstRows=function(){return!this.isDesignMode||0==this.visibleIndex},Object.defineProperty(t.prototype,"isStartPage",{get:function(){return this.survey&&this.survey.isPageStarted(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStarted",{get:function(){return this.isStartPage},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={page:{},pageTitle:"",pageDescription:"",row:"",rowMultiple:"",pageRow:"",rowCompact:""};return this.copyCssClasses(t.page,e.page),e.pageTitle&&(t.pageTitle=e.pageTitle),e.pageDescription&&(t.pageDescription=e.pageDescription),e.row&&(t.row=e.row),e.pageRow&&(t.pageRow=e.pageRow),e.rowMultiple&&(t.rowMultiple=e.rowMultiple),e.rowCompact&&(t.rowCompact=e.rowCompact),this.survey&&this.survey.updatePageCssClasses(this,t),t},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.cssClasses.page?(new s.CssClassBuilder).append(this.cssClasses.page.title).toString():""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.cssClasses.page&&this.survey?(new s.CssClassBuilder).append(this.cssClasses.page.root).append(this.cssClasses.page.emptyHeaderRoot,!(this.survey.renderedHasHeader||this.survey.isShowProgressBarOnTop&&!this.survey.isStaring)).toString():""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationButtonsVisibility",{get:function(){return this.getPropertyValue("navigationButtonsVisibility")},set:function(e){this.setPropertyValue("navigationButtonsVisibility",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isActive",{get:function(){return!!this.survey&&this.survey.currentPage===this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wasShown",{get:function(){return this.hasShownValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasShown",{get:function(){return this.wasShown},enumerable:!1,configurable:!0}),t.prototype.setWasShown=function(e){if(e!=this.hasShownValue&&(this.hasShownValue=e,!this.isDesignMode&&!0===e)){for(var t=this.elements,r=0;r<t.length;r++)t[r].isPanel&&t[r].randomizeElements(this.areQuestionsRandomized);this.randomizeElements(this.areQuestionsRandomized)}},t.prototype.scrollToTop=function(){this.survey&&this.survey.scrollElementToTop(this,null,this,this.id)},t.prototype.getAllPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var r=new Array;return this.addPanelsIntoList(r,e,t),r},t.prototype.getPanels=function(e,t){return void 0===e&&(e=!1),void 0===t&&(t=!1),this.getAllPanels(e,t)},Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!1,configurable:!0}),t.prototype.onNumChanged=function(e){},t.prototype.onVisibleChanged=function(){this.isRandomizing||(e.prototype.onVisibleChanged.call(this),null!=this.survey&&this.survey.pageVisibilityChanged(this,this.isVisible))},t.prototype.getDragDropInfo=function(){return this.dragDropPageHelper.getDragDropInfo()},t.prototype.dragDropStart=function(e,t,r){void 0===r&&(r=-1),this.dragDropPageHelper.dragDropStart(e,t,r)},t.prototype.dragDropMoveTo=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),this.dragDropPageHelper.dragDropMoveTo(e,t,r)},t.prototype.dragDropFinish=function(e){return void 0===e&&(e=!1),this.dragDropPageHelper.dragDropFinish(e)},t.prototype.ensureRowsVisibility=function(){e.prototype.ensureRowsVisibility.call(this),this.getPanels().forEach((function(e){return e.ensureRowsVisibility()}))},function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);i>3&&s&&Object.defineProperty(t,r,s)}([Object(o.property)({defaultValue:-1,onSet:function(e,t){return t.onNumChanged(e)}})],t.prototype,"num",void 0),t}(i.PanelModelBase);o.Serializer.addClass("page",[{name:"navigationButtonsVisibility",default:"inherit",choices:["inherit","show","hide"]},{name:"maxTimeToFinish:number",default:0,minValue:0},{name:"navigationTitle",visibleIf:function(e){return!!e.survey&&("buttons"===e.survey.progressBarType||e.survey.showTOC)},serializationProperty:"locNavigationTitle"},{name:"navigationDescription",visibleIf:function(e){return!!e.survey&&"buttons"===e.survey.progressBarType},serializationProperty:"locNavigationDescription"},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"}],(function(){return new u}),"panelbase")},"./src/panel.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionRowModel",(function(){return b})),r.d(t,"PanelModelBase",(function(){return y})),r.d(t,"PanelModel",(function(){return v}));var n,o=r("./src/jsonobject.ts"),i=r("./src/helpers.ts"),s=r("./src/base.ts"),a=r("./src/survey-element.ts"),l=r("./src/question.ts"),u=r("./src/questionfactory.ts"),c=r("./src/error.ts"),p=r("./src/settings.ts"),d=r("./src/utils/utils.ts"),h=r("./src/utils/cssClassBuilder.ts"),f=r("./src/drag-drop-panel-helper-v1.ts"),m=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),g=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},b=function(e){function t(r){var n=e.call(this)||this;return n.panel=r,n._scrollableParent=void 0,n._updateVisibility=void 0,n.idValue=t.getRowId(),n.visible=r.areInvisibleElementsShowing,n.createNewArray("elements"),n.createNewArray("visibleElements"),n}return m(t,e),t.getRowId=function(){return"pr_"+t.rowCounter++},t.prototype.startLazyRendering=function(e,t){var r=this;void 0===t&&(t=d.findScrollableParent),this._scrollableParent=t(e),this._scrollableParent===document.documentElement&&(this._scrollableParent=window);var n=this._scrollableParent.scrollHeight>this._scrollableParent.clientHeight;this.isNeedRender=!n,n&&(this._updateVisibility=function(){var t=Object(d.isElementVisible)(e,50);!r.isNeedRender&&t&&(r.isNeedRender=!0,r.stopLazyRendering())},setTimeout((function(){r._scrollableParent&&r._scrollableParent.addEventListener&&r._scrollableParent.addEventListener("scroll",r._updateVisibility),r.ensureVisibility()}),10))},t.prototype.ensureVisibility=function(){this._updateVisibility&&this._updateVisibility()},t.prototype.stopLazyRendering=function(){this._scrollableParent&&this._updateVisibility&&this._scrollableParent.removeEventListener&&this._scrollableParent.removeEventListener("scroll",this._updateVisibility),this._scrollableParent=void 0,this._updateVisibility=void 0},t.prototype.setIsLazyRendering=function(e){this.isLazyRenderingValue=e,this.isNeedRender=!e},t.prototype.isLazyRendering=function(){return!0===this.isLazyRenderingValue},Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"elements",{get:function(){return this.getPropertyValue("elements")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleElements",{get:function(){return this.getPropertyValue("visibleElements")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){this.setPropertyValue("visible",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNeedRender",{get:function(){return this.getPropertyValue("isneedrender",!0)},set:function(e){this.setPropertyValue("isneedrender",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisible=function(){var e=this.calcVisible();this.setWidth(),this.visible=e},t.prototype.addElement=function(e){this.elements.push(e),this.updateVisible()},Object.defineProperty(t.prototype,"index",{get:function(){return this.panel.rows.indexOf(this)},enumerable:!1,configurable:!0}),t.prototype.setWidth=function(){var e,t=this.visibleElements.length;if(0!=t){for(var r=1===this.visibleElements.length,n=0,o=[],i=0;i<this.elements.length;i++){var s=this.elements[i];if(this.setElementMaxMinWidth(s),s.isVisible){s.isSingleInRow=r;var a=this.getElementWidth(s);a&&(s.renderWidth=this.getRenderedWidthFromWidth(a),o.push(s)),n<t-1&&!this.panel.isDefaultV2Theme&&!(null===(e=this.panel.parentQuestion)||void 0===e?void 0:e.isDefaultV2Theme)?s.rightIndent=1:s.rightIndent=0,n++}else s.renderWidth=""}for(i=0;i<this.elements.length;i++)!(s=this.elements[i]).isVisible||o.indexOf(s)>-1||(0==o.length?s.renderWidth=(100/t).toFixed(6)+"%":s.renderWidth=this.getRenderedCalcWidth(s,o,t))}},t.prototype.setElementMaxMinWidth=function(e){e.width&&"string"==typeof e.width&&-1===e.width.indexOf("%")&&(e.minWidth=e.width,e.maxWidth=e.width)},t.prototype.getRenderedCalcWidth=function(e,t,r){for(var n="100%",o=0;o<t.length;o++)n+=" - "+t[o].renderWidth;var i=r-t.length;return i>1&&(n="("+n+")/"+i.toString()),"calc("+n+")"},t.prototype.getElementWidth=function(e){var t=e.width;return t&&"string"==typeof t?t.trim():""},t.prototype.getRenderedWidthFromWidth=function(e){return i.Helpers.isNumber(e)?e+"px":e},t.prototype.calcVisible=function(){for(var e=[],t=0;t<this.elements.length;t++)this.elements[t].isVisible&&e.push(this.elements[t]);return this.needToUpdateVisibleElements(e)&&this.setPropertyValue("visibleElements",e),e.length>0},t.prototype.needToUpdateVisibleElements=function(e){if(e.length!==this.visibleElements.length)return!0;for(var t=0;t<e.length;t++)if(e[t]!==this.visibleElements[t])return!0;return!1},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.stopLazyRendering()},t.prototype.getRowCss=function(){return(new h.CssClassBuilder).append(this.panel.cssClasses.row).append(this.panel.cssClasses.rowCompact,this.panel.isCompact).append(this.panel.cssClasses.pageRow,this.panel.isPage||!!this.panel.originalPage&&!this.panel.survey.isShowingPreview).append(this.panel.cssClasses.rowMultiple,this.visibleElements.length>1).toString()},t.rowCounter=100,g([Object(o.property)({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),t}(s.Base),y=function(e){function t(r){void 0===r&&(r="");var n=e.call(this,r)||this;return n.isQuestionsReady=!1,n.questionsValue=new Array,n.isRandomizing=!1,n.createNewArray("rows"),n.elementsValue=n.createNewArray("elements",n.onAddElement.bind(n),n.onRemoveElement.bind(n)),n.id=t.getPanelId(),n.addExpressionProperty("visibleIf",(function(e,t){n.visible=!0===t}),(function(e){return!n.areInvisibleElementsShowing})),n.addExpressionProperty("enableIf",(function(e,t){n.readOnly=!1===t})),n.addExpressionProperty("requiredIf",(function(e,t){n.isRequired=!0===t})),n.createLocalizableString("requiredErrorText",n),n.registerPropertyChangedHandlers(["questionTitleLocation"],(function(){n.onVisibleChanged.bind(n),n.updateElementCss(!0)})),n.registerPropertyChangedHandlers(["questionStartIndex","showQuestionNumbers"],(function(){n.updateVisibleIndexes()})),n.dragDropPanelHelper=new f.DragDropPanelHelperV1(n),n}return m(t,e),t.getPanelId=function(){return"sp_"+t.panelCounter++},t.prototype.getType=function(){return"panelbase"},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r),this.isDesignMode&&this.onVisibleChanged();for(var n=0;n<this.elements.length;n++)this.elements[n].setSurveyImpl(t,r)},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.updateDescriptionVisibility(this.description),this.markQuestionListDirty(),this.onRowsChanged()},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.canShowTitle()&&this.title.length>0||this.showTitle&&this.isDesignMode&&p.settings.allowShowEmptyTitleInDesignMode},enumerable:!1,configurable:!0}),t.prototype.canShowTitle=function(){return!0},Object.defineProperty(t.prototype,"_showDescription",{get:function(){return this.survey&&this.survey.showPageTitles&&this.hasDescription||this.showDescription&&this.isDesignMode&&p.settings.allowShowEmptyTitleInDesignMode&&p.settings.allowShowEmptyDescriptionInDesignMode},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].localeChanged()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].locStrsChanged()},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.canRandomize=function(e){return e&&"initial"!==this.questionsOrder||"random"===this.questionsOrder},t.prototype.randomizeElements=function(e){if(this.canRandomize(e)&&!this.isRandomizing){this.isRandomizing=!0;for(var t=[],r=this.elements,n=0;n<r.length;n++)t.push(r[n]);var o=i.Helpers.randomizeArray(t);this.setArrayPropertyDirectly("elements",o,!1),this.updateRows(),this.updateVisibleIndexes(),this.isRandomizing=!1}},Object.defineProperty(t.prototype,"areQuestionsRandomized",{get:function(){return"random"==("default"==this.questionsOrder&&this.survey?this.survey.questionsOrder:this.questionsOrder)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"depth",{get:function(){return null==this.parent?0:this.parent.depth+1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={panel:{},error:{},row:"",rowMultiple:"",pageRow:"",rowCompact:""};return this.copyCssClasses(t.panel,e.panel),this.copyCssClasses(t.error,e.error),e.pageRow&&(t.pageRow=e.pageRow),e.rowCompact&&(t.rowCompact=e.rowCompact),e.row&&(t.row=e.row),e.rowMultiple&&(t.rowMultiple=e.rowMultiple),this.survey&&this.survey.updatePanelCssClasses(this,t),t},Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this},t.prototype.getLayoutType=function(){return"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},Object.defineProperty(t.prototype,"questions",{get:function(){if(!this.isQuestionsReady){this.questionsValue=[];for(var e=0;e<this.elements.length;e++){var t=this.elements[e];if(t.isPanel)for(var r=t.questions,n=0;n<r.length;n++)this.questionsValue.push(r[n]);else this.questionsValue.push(t)}this.isQuestionsReady=!0}return this.questionsValue},enumerable:!1,configurable:!0}),t.prototype.getValidName=function(e){return e?e.trim():e},t.prototype.getQuestionByName=function(e){for(var t=this.questions,r=0;r<t.length;r++)if(t[r].name==e)return t[r];return null},t.prototype.getElementByName=function(e){for(var t=this.elements,r=0;r<t.length;r++){var n=t[r];if(n.name==e)return n;var o=n.getPanel();if(o){var i=o.getElementByName(e);if(i)return i}}return null},t.prototype.getQuestionByValueName=function(e){for(var t=this.questions,r=0;r<t.length;r++)if(t[r].getValueName()==e)return t[r];return null},t.prototype.getValue=function(){var e={};return this.collectValues(e,0),e},t.prototype.collectValues=function(e,t){var r=this.elements;0===t&&(r=this.questions);for(var n=0;n<r.length;n++){var o=r[n];if(o.isPanel||o.isPage){var i={};o.collectValues(i,t-1)&&(e[o.name]=i)}else{var a=o;if(!a.isEmpty()){var l=a.getValueName();if(e[l]=a.value,this.data){var u=this.data.getComment(l);u&&(e[l+s.Base.commentSuffix]=u)}}}}return!0},t.prototype.getDisplayValue=function(e){for(var t={},r=this.questions,n=0;n<r.length;n++){var o=r[n];o.isEmpty()||(t[e?o.title:o.getValueName()]=o.getDisplayValue(e))}return t},t.prototype.getComments=function(){var e={};if(!this.data)return e;for(var t=this.questions,r=0;r<t.length;r++){var n=t[r],o=this.data.getComment(n.getValueName());o&&(e[n.getValueName()]=o)}return e},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearIncorrectValues()},t.prototype.clearErrors=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearErrors();this.errors=[]},t.prototype.markQuestionListDirty=function(){this.isQuestionsReady=!1,this.parent&&this.parent.markQuestionListDirty()},Object.defineProperty(t.prototype,"elements",{get:function(){return this.elementsValue},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),this.elements},t.prototype.containsElement=function(e){for(var t=0;t<this.elements.length;t++){var r=this.elements[t];if(r==e)return!0;var n=r.getPanel();if(n&&n.containsElement(e))return!0}return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),t.prototype.searchText=function(t,r){e.prototype.searchText.call(this,t,r);for(var n=0;n<this.elements.length;n++)this.elements[n].searchText(t,r)},t.prototype.hasErrors=function(e,t,r){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===r&&(r=null),!this.validate(e,t,r)},t.prototype.validate=function(e,t,r){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===r&&(r=null),!0!==(r=r||{fireCallback:e,focuseOnFirstError:t,firstErrorQuestion:null,result:!1}).result&&(r.result=!1),this.hasErrorsCore(r),r.firstErrorQuestion&&r.firstErrorQuestion.focus(!0),!r.result},t.prototype.hasErrorsInPanels=function(e){var t=[];if(this.hasRequiredError(e,t),this.survey){var r=this.survey.validatePanel(this);r&&(t.push(r),e.result=!0)}e.fireCallback&&(this.survey&&this.survey.beforeSettingPanelErrors(this,t),this.errors=t)},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getSurveyErrorCustomText(this,e,t):e},t.prototype.hasRequiredError=function(e,t){if(this.isRequired){var r=[];if(this.addQuestionsToList(r,!0),0!=r.length){for(var n=0;n<r.length;n++)if(!r[n].isEmpty())return;e.result=!0,t.push(new c.OneAnswerRequiredError(this.requiredErrorText,this)),e.focuseOnFirstError&&!e.firstErrorQuestion&&(e.firstErrorQuestion=r[0])}}},t.prototype.hasErrorsCore=function(e){for(var t=this.elements,r=null,n=0;n<t.length;n++)if((r=t[n]).isVisible)if(r.isPanel)r.hasErrorsCore(e);else{var o=r;if(o.isReadOnly)continue;o.validate(e.fireCallback,e)||(e.focuseOnFirstError&&null==e.firstErrorQuestion&&(e.firstErrorQuestion=o),e.result=!0)}this.hasErrorsInPanels(e),this.updateContainsErrors()},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var r=this.elements,n=0;n<r.length;n++)if(r[n].containsErrors)return!0;return!1},t.prototype.updateElementVisibility=function(){for(var e=0;e<this.elements.length;e++){var t=this.elements[e];t.setPropertyValue("isVisible",t.isVisible),t.isPanel&&t.updateElementVisibility()}},t.prototype.getFirstQuestionToFocus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),!e&&!t&&this.isCollapsed)return null;for(var r=this.elements,n=0;n<r.length;n++){var o=r[n];if(o.isVisible&&(t||!o.isCollapsed))if(o.isPanel){var i=o.getFirstQuestionToFocus(e,t);if(i)return i}else{var s=o.getFirstQuestionToFocus(e);if(s)return s}}return null},t.prototype.focusFirstQuestion=function(){var e=this.getFirstQuestionToFocus();e&&e.focus()},t.prototype.focusFirstErrorQuestion=function(){var e=this.getFirstQuestionToFocus(!0);e&&e.focus()},t.prototype.addQuestionsToList=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1),this.addElementsToList(e,t,r,!1)},t.prototype.addPanelsIntoList=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1),this.addElementsToList(e,t,r,!0)},t.prototype.addElementsToList=function(e,t,r,n){t&&!this.visible||this.addElementsToListCore(e,this.elements,t,r,n)},t.prototype.addElementsToListCore=function(e,t,r,n,o){for(var i=0;i<t.length;i++){var s=t[i];r&&!s.visible||((o&&s.isPanel||!o&&!s.isPanel)&&e.push(s),s.isPanel?s.addElementsToListCore(e,s.elements,r,n,o):n&&this.addElementsToListCore(e,s.getElementsInDesign(!1),r,n,o))}},t.prototype.updateCustomWidgets=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].updateCustomWidgets()},Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitleLocation=function(){return this.onGetQuestionTitleLocation?this.onGetQuestionTitleLocation():"default"!=this.questionTitleLocation?this.questionTitleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.getProgressInfo=function(){return a.SurveyElement.getProgressInfoByElements(this.elements,this.isRequired)},Object.defineProperty(t.prototype,"root",{get:function(){for(var e=this;e.parent;)e=e.parent;return e},enumerable:!1,configurable:!0}),t.prototype.childVisibilityChanged=function(){this.getIsPageVisible(null)!==this.getPropertyValue("isVisible",!0)&&this.onVisibleChanged()},t.prototype.createRowAndSetLazy=function(e){var t=this.createRow();return t.setIsLazyRendering(this.isLazyRenderInRow(e)),t},t.prototype.createRow=function(){return new b(this)},t.prototype.onSurveyLoad=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].onSurveyLoad();this.onElementVisibilityChanged(this)},t.prototype.onFirstRendering=function(){e.prototype.onFirstRendering.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].onFirstRendering();this.onRowsChanged()},t.prototype.updateRows=function(){if(!this.isLoadingFromJson){for(var e=0;e<this.elements.length;e++)this.elements[e].isPanel&&this.elements[e].updateRows();this.onRowsChanged()}},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},enumerable:!1,configurable:!0}),t.prototype.ensureRowsVisibility=function(){this.rows.forEach((function(e){e.ensureVisibility()}))},t.prototype.onRowsChanged=function(){this.isLoadingFromJson||this.setArrayPropertyDirectly("rows",this.buildRows())},t.prototype.onAddElement=function(e,t){var r=this;if(e.setSurveyImpl(this.surveyImpl),e.parent=this,this.markQuestionListDirty(),this.canBuildRows()){var n=p.settings.supportCreatorV2?this.getDragDropInfo():void 0;this.dragDropPanelHelper.updateRowsOnElementAdded(e,t,n,this)}if(e.isPanel){var o=e;this.survey&&this.survey.panelAdded(o,t,this,this.root)}else if(this.survey){var i=e;this.survey.questionAdded(i,t,this,this.root)}this.addElementCallback&&this.addElementCallback(e),e.registerPropertyChangedHandlers(["visible","isVisible"],(function(){r.onElementVisibilityChanged(e)}),this.id),e.registerPropertyChangedHandlers(["startWithNewLine"],(function(){r.onElementStartWithNewLineChanged(e)}),this.id),this.onElementVisibilityChanged(this)},t.prototype.onRemoveElement=function(e){e.parent=null,this.markQuestionListDirty(),e.unregisterPropertyChangedHandlers(["visible","isVisible","startWithNewLine"],this.id),this.updateRowsOnElementRemoved(e),this.isRandomizing||(e.isPanel?this.survey&&this.survey.panelRemoved(e):this.survey&&this.survey.questionRemoved(e),this.removeElementCallback&&this.removeElementCallback(e),this.onElementVisibilityChanged(this))},t.prototype.onElementVisibilityChanged=function(e){this.isLoadingFromJson||this.isRandomizing||(this.updateRowsVisibility(e),this.childVisibilityChanged(),this.parent&&this.parent.onElementVisibilityChanged(this))},t.prototype.onElementStartWithNewLineChanged=function(e){this.onRowsChanged()},t.prototype.updateRowsVisibility=function(e){for(var t=this.rows,r=0;r<t.length;r++){var n=t[r];if(n.elements.indexOf(e)>-1){n.updateVisible(),n.visible&&!n.isNeedRender&&(n.isNeedRender=!0);break}}},t.prototype.canBuildRows=function(){return!this.isLoadingFromJson&&"row"==this.getChildrenLayoutType()},t.prototype.buildRows=function(){if(!this.canBuildRows())return[];for(var e=new Array,t=0;t<this.elements.length;t++){var r=this.elements[t],n=0==t||r.startWithNewLine,o=n?this.createRowAndSetLazy(e.length):e[e.length-1];n&&e.push(o),o.addElement(r)}for(t=0;t<e.length;t++)e[t].updateVisible();return e},t.prototype.isLazyRenderInRow=function(e){return!(!this.survey||!this.survey.isLazyRendering)&&(e>=p.settings.lazyRowsRenderingStartRow||!this.canRenderFirstRows())},t.prototype.canRenderFirstRows=function(){return this.isPage},t.prototype.getDragDropInfo=function(){var e=this.getPage(this.parent);return e?e.getDragDropInfo():void 0},t.prototype.updateRowsOnElementRemoved=function(e){this.canBuildRows()&&this.updateRowsRemoveElementFromRow(e,this.findRowByElement(e))},t.prototype.updateRowsRemoveElementFromRow=function(e,t){if(t&&t.panel){var r=t.elements.indexOf(e);r<0||(t.elements.splice(r,1),t.elements.length>0?(t.elements[0].startWithNewLine=!0,t.updateVisible()):t.index>=0&&t.panel.rows.splice(t.index,1))}},t.prototype.findRowByElement=function(e){for(var t=this.rows,r=0;r<t.length;r++)if(t[r].elements.indexOf(e)>-1)return t[r];return null},t.prototype.elementWidthChanged=function(e){if(!this.isLoadingFromJson){var t=this.findRowByElement(e);t&&t.updateVisible()}},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.getRenderedTitle(this.locTitle.textOrHtml)},enumerable:!1,configurable:!0}),t.prototype.getRenderedTitle=function(e){return null!=this.textProcessor?this.textProcessor.processText(e,!0):e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!==this.visible&&(this.setPropertyValue("visible",e),this.setPropertyValue("isVisible",this.isVisible),this.isLoadingFromJson||this.onVisibleChanged())},enumerable:!1,configurable:!0}),t.prototype.onVisibleChanged=function(){if(!this.isRandomizing&&(this.setPropertyValue("isVisible",this.isVisible),this.survey&&this.survey.isClearValueOnHiddenContainer&&!this.isLoadingFromJson))for(var e=this.questions,t=0;t<e.length;t++)this.isVisible?e[t].updateValueWithDefaults():e[t].clearValueIfInvisible()},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.areInvisibleElementsShowing||this.getIsPageVisible(null)},enumerable:!1,configurable:!0}),t.prototype.getIsPageVisible=function(e){if(!this.visible)return!1;for(var t=0;t<this.elements.length;t++)if(this.elements[t]!=e&&this.elements[t].isVisible)return!0;return!1},t.prototype.setVisibleIndex=function(e){if(!this.isVisible||e<0)return this.resetVisibleIndexes(),0;this.lastVisibleIndex=e;var t=e;e+=this.beforeSetVisibleIndex(e);for(var r=this.getPanelStartIndex(e),n=r,o=0;o<this.elements.length;o++)n+=this.elements[o].setVisibleIndex(n);return this.isContinueNumbering()&&(e+=n-r),e-t},t.prototype.updateVisibleIndexes=function(){void 0!==this.lastVisibleIndex&&(this.resetVisibleIndexes(),this.setVisibleIndex(this.lastVisibleIndex))},t.prototype.resetVisibleIndexes=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].setVisibleIndex(-1)},t.prototype.beforeSetVisibleIndex=function(e){return 0},t.prototype.getPanelStartIndex=function(e){return e},t.prototype.isContinueNumbering=function(){return!0},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||t},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){for(var t=0;t<this.elements.length;t++){var r=this.elements[t];r.setPropertyValue("isReadOnly",r.isReadOnly)}e.prototype.onReadOnlyChanged.call(this)},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t);for(var r=0;r<this.elements.length;r++)this.elements[r].updateElementCss(t)},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.addElement=function(e,t){return void 0===t&&(t=-1),!!this.canAddElement(e)&&(t<0||t>=this.elements.length?this.elements.push(e):this.elements.splice(t,0,e),!0)},t.prototype.insertElementAfter=function(e,t){var r=this.elements.indexOf(t);r>=0&&this.addElement(e,r+1)},t.prototype.insertElementBefore=function(e,t){var r=this.elements.indexOf(t);r>=0&&this.addElement(e,r)},t.prototype.canAddElement=function(e){return!!e&&e.isLayoutTypeSupported(this.getChildrenLayoutType())},t.prototype.addQuestion=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addPanel=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addNewQuestion=function(e,t,r){void 0===t&&(t=null),void 0===r&&(r=-1);var n=u.QuestionFactory.Instance.createQuestion(e,t);return this.addQuestion(n,r)?n:null},t.prototype.addNewPanel=function(e){void 0===e&&(e=null);var t=this.createNewPanel(e);return this.addPanel(t)?t:null},t.prototype.indexOf=function(e){return this.elements.indexOf(e)},t.prototype.createNewPanel=function(e){var t=o.Serializer.createClass("panel");return t.name=e,t},t.prototype.removeElement=function(e){var t=this.elements.indexOf(e);if(t<0){for(var r=0;r<this.elements.length;r++)if(this.elements[r].removeElement(e))return!0;return!1}return this.elements.splice(t,1),!0},t.prototype.removeQuestion=function(e){this.removeElement(e)},t.prototype.runCondition=function(e,t){if(!this.isDesignMode&&!this.isLoadingFromJson){for(var r=this.elements.slice(),n=0;n<r.length;n++)r[n].runCondition(e,t);this.runConditionCore(e,t)}},t.prototype.onAnyValueChanged=function(e){for(var t=this.elements,r=0;r<t.length;r++)t[r].onAnyValueChanged(e)},t.prototype.checkBindings=function(e,t){for(var r=this.elements,n=0;n<r.length;n++)r[n].checkBindings(e,t)},t.prototype.dragDropAddTarget=function(e){this.dragDropPanelHelper.dragDropAddTarget(e)},t.prototype.dragDropFindRow=function(e){return this.dragDropPanelHelper.dragDropFindRow(e)},t.prototype.dragDropMoveElement=function(e,t,r){this.dragDropPanelHelper.dragDropMoveElement(e,t,r)},t.prototype.needResponsiveWidth=function(){var e=!1;return this.elements.forEach((function(t){t.needResponsiveWidth()&&(e=!0)})),this.rows.forEach((function(t){t.elements.length>1&&(e=!0)})),e},Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.cssClasses.panel.header},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.cssClasses.panel.description},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"no",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){if(e.prototype.dispose.call(this),this.rows){for(var t=0;t<this.rows.length;t++)this.rows[t].dispose();this.rows.splice(0,this.rows.length)}for(t=0;t<this.elements.length;t++)this.elements[t].dispose();this.elements.splice(0,this.elements.length)},t.panelCounter=100,g([Object(o.property)({defaultValue:!0})],t.prototype,"showTitle",void 0),g([Object(o.property)({defaultValue:!0})],t.prototype,"showDescription",void 0),t}(a.SurveyElement),v=function(e){function t(t){void 0===t&&(t="");var r=e.call(this,t)||this;return r.createNewArray("footerActions"),r.registerPropertyChangedHandlers(["width"],(function(){r.parent&&r.parent.elementWidthChanged(r)})),r.registerPropertyChangedHandlers(["indent","innerIndent","rightIndent"],(function(){r.onIndentChanged()})),r}return m(t,e),t.prototype.getType=function(){return"panel"},Object.defineProperty(t.prototype,"contentId",{get:function(){return this.id+"_content"},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(t){return void 0===t&&(t=!1),t?this.parent?this.parent.getSurvey(t):null:e.prototype.getSurvey.call(this,t)},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onIndentChanged()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.onIndentChanged()},Object.defineProperty(t.prototype,"isPanel",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.delete=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},Object.defineProperty(t.prototype,"showNumber",{get:function(){return this.getPropertyValue("showNumber")},set:function(e){this.setPropertyValue("showNumber",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionStartIndex=function(){return this.questionStartIndex?this.questionStartIndex:e.prototype.getQuestionStartIndex.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no","")},enumerable:!1,configurable:!0}),t.prototype.setNo=function(e){this.setPropertyValue("no",i.Helpers.getNumberByIndex(this.visibleIndex,this.getStartIndex()))},t.prototype.beforeSetVisibleIndex=function(e){var t=-1;return!this.showNumber||!this.isDesignMode&&this.locTitle.isEmpty||(t=e),this.setPropertyValue("visibleIndex",t),this.setNo(t),t<0?0:1},t.prototype.getPanelStartIndex=function(e){return"off"==this.showQuestionNumbers?-1:"onpanel"==this.showQuestionNumbers?0:e},t.prototype.isContinueNumbering=function(){return"off"!=this.showQuestionNumbers&&"onpanel"!=this.showQuestionNumbers},t.prototype.notifySurveyOnVisibilityChanged=function(){null==this.survey||this.isLoadingFromJson||this.survey.panelVisibilityChanged(this,this.isVisible)},t.prototype.hasErrorsCore=function(t){e.prototype.hasErrorsCore.call(this,t),this.isCollapsed&&t.result&&t.fireCallback&&this.expand()},t.prototype.getRenderedTitle=function(t){if(!t){if(this.isCollapsed||this.isExpanded)return this.name;if(this.isDesignMode)return"["+this.name+"]"}return e.prototype.getRenderedTitle.call(this,t)},Object.defineProperty(t.prototype,"innerIndent",{get:function(){return this.getPropertyValue("innerIndent")},set:function(e){this.setPropertyValue("innerIndent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"innerPaddingLeft",{get:function(){return this.getPropertyValue("innerPaddingLeft","")},set:function(e){this.setPropertyValue("innerPaddingLeft",e)},enumerable:!1,configurable:!0}),t.prototype.onIndentChanged=function(){this.getSurvey()&&(this.innerPaddingLeft=this.getIndentSize(this.innerIndent),this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent))},t.prototype.getIndentSize=function(e){if(e<1)return"";var t=this.survey.css;return t&&t.question.indent?e*t.question.indent+"px":""},t.prototype.clearOnDeletingContainer=function(){this.elements.forEach((function(e){(e instanceof l.Question||e instanceof t)&&e.clearOnDeletingContainer()}))},Object.defineProperty(t.prototype,"footerActions",{get:function(){return this.getPropertyValue("footerActions")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerToolbarCss",{get:function(){var e;return this.footerToolbarCssValue||(null===(e=this.cssClasses.panel)||void 0===e?void 0:e.footer)},set:function(e){this.footerToolbarCssValue=e},enumerable:!1,configurable:!0}),t.prototype.getFooterToolbar=function(){var e,t=this;if(!this.footerToolbarValue){var r=this.footerActions;this.hasEditButton&&r.push({id:"cancel-preview",title:this.survey.editText,innerCss:this.survey.cssNavigationEdit,action:function(){t.cancelPreview()}}),r=this.onGetFooterActionsCallback?this.onGetFooterActionsCallback():null===(e=this.survey)||void 0===e?void 0:e.getUpdatedPanelFooterActions(this,r),this.footerToolbarValue=this.createActionContainer(this.allowAdaptiveActions),this.footerToolbarValue.containerCss=this.footerToolbarCss,this.footerToolbarValue.setItems(r)}return this.footerToolbarValue},Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return!(!this.survey||"preview"!==this.survey.state)&&1===this.depth},enumerable:!1,configurable:!0}),t.prototype.cancelPreview=function(){this.hasEditButton&&this.survey.cancelPreviewByPage(this)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.getCssTitle(this.cssClasses.panel)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.getCssError(this.cssClasses)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsAbovePanel",{get:function(){return this.isDefaultV2Theme},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){var t=this.isDefaultV2Theme,r=(new h.CssClassBuilder).append(this.cssClasses.error.root).append(this.cssClasses.error.outsideQuestion,t).append(this.cssClasses.error.aboveQuestion,t);return r.append("panel-error-root",r.isEmpty()).toString()},t.prototype.onVisibleChanged=function(){e.prototype.onVisibleChanged.call(this),this.notifySurveyOnVisibilityChanged()},t.prototype.needResponsiveWidth=function(){return!this.startWithNewLine||e.prototype.needResponsiveWidth.call(this)},t.prototype.focusIn=function(){this.survey&&this.survey.whenPanelFocusIn(this)},t.prototype.getHasFrameV2=function(){return e.prototype.getHasFrameV2.call(this)&&(!this.originalPage||this.survey.isShowingPreview)},t.prototype.getIsNested=function(){return e.prototype.getIsNested.call(this)&&void 0!==this.parent},t.prototype.getCssRoot=function(t){return(new h.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(t.container).append(t.asPage,!!this.originalPage&&!this.survey.isShowingPreview).append(t.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.getContainerCss=function(){return this.getCssRoot(this.cssClasses.panel)},t}(y);o.Serializer.addClass("panelbase",["name",{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"visible:switch",default:!0},"visibleIf:condition","enableIf:condition","requiredIf:condition","readOnly:boolean",{name:"questionTitleLocation",default:"default",choices:["default","top","bottom","left","hidden"]},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"questionsOrder",default:"default",choices:["default","initial","random"]}],(function(){return new y})),o.Serializer.addClass("panel",[{name:"state",default:"default",choices:["default","collapsed","expanded"]},"isRequired:switch",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"startWithNewLine:boolean",default:!0},"width",{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"maxWidth",defaultFunc:function(){return p.settings.maxWidth}},{name:"innerIndent:number",default:0,choices:[0,1,2,3]},{name:"indent:number",default:0,choices:[0,1,2,3]},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map((function(e){return{value:e.name,text:e.title}})):[]}},"showNumber:boolean",{name:"showQuestionNumbers",default:"default",choices:["default","onpanel","off"]},"questionStartIndex",{name:"allowAdaptiveActions:boolean",default:!0,visible:!1}],(function(){return new v}),"panelbase"),u.ElementFactory.Instance.registerElement("panel",(function(e){return new v(e)}))},"./src/popup-dropdown-view-model.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"PopupDropdownViewModel",(function(){return p}));var n,o=r("./src/jsonobject.ts"),i=r("./src/utils/popup.ts"),s=r("./src/popup-view-model.ts"),a=r("./src/utils/devices.ts"),l=r("./src/settings.ts"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},p=function(e){function t(t,r){var n=e.call(this,t)||this;return n.targetElement=r,n.scrollEventCallBack=function(e){if(n.isOverlay&&a.IsTouch)return e.stopPropagation(),void e.preventDefault();n.hidePopup()},n.resizeEventCallback=function(){var e=window.visualViewport;document.documentElement.style.setProperty("--sv-popup-overlay-height",e.height*e.scale+"px")},n.resizeWindowCallback=function(){n.isOverlay||n.updatePosition(!0,!1)},n.clientY=0,n.isTablet=!1,n.touchStartEventCallback=function(e){n.clientY=e.touches[0].clientY},n.touchMoveEventCallback=function(e){for(var t=e.target;t!==n.container;){if("auto"===window.getComputedStyle(t).overflowY&&t.scrollHeight!==t.offsetHeight){var r=t.scrollHeight,o=t.scrollTop,i=t.clientHeight,s=n.clientY-e.changedTouches[0].clientY;if(!(s>0&&Math.abs(r-i-o)<1||s<0&&o<=0))return}t=t.parentElement}e.preventDefault()},n.model.onRecalculatePosition.add((function(e,t){n.isOverlay||n.updatePosition(t.isResetHeight)})),n}return u(t,e),t.prototype.calculateIsTablet=function(e,r){var n=Math.min(e,r);this.isTablet=n>=t.tabletSizeBreakpoint},t.prototype._updatePosition=function(){if(this.targetElement){var e=this.targetElement.getBoundingClientRect(),t=this.container.children[0];if(t){var r=t.children[0];if(r){var n=r.querySelector(".sv-popup__scrolling-content"),o=window.getComputedStyle(r),s=parseFloat(o.marginLeft)||0,a=parseFloat(o.marginRight)||0,l=r.offsetHeight-n.offsetHeight+n.scrollHeight,u=r.getBoundingClientRect().width;this.model.setWidthByTarget&&(this.minWidth=e.width+"px");var c=this.model.verticalPosition,p=this.getActualHorizontalPosition();window&&(l=Math.ceil(Math.min(l,.9*window.innerHeight,window.visualViewport.height)),c=i.PopupUtils.updateVerticalPosition(e,l,this.model.verticalPosition,this.model.showPointer,window.innerHeight)),this.popupDirection=i.PopupUtils.calculatePopupDirection(c,p);var d=i.PopupUtils.calculatePosition(e,l,u+s+a,c,p,this.showHeader,this.model.positionMode);if(window){var h=i.PopupUtils.updateVerticalDimensions(d.top,l,window.innerHeight);h&&(this.height=h.height+"px",d.top=h.top);var f=i.PopupUtils.updateHorizontalDimensions(d.left,u,window.innerWidth,p,this.model.positionMode,{left:s,right:a});f&&(this.width=f.width?f.width+"px":void 0,d.left=f.left)}this.left=d.left+"px",this.top=d.top+"px",this.showHeader&&(this.pointerTarget=i.PopupUtils.calculatePointerTarget(e,d.top,d.left,c,p,s,a)),this.pointerTarget.top+="px",this.pointerTarget.left+="px"}}}},t.prototype.getActualHorizontalPosition=function(){var e=this.model.horizontalPosition;return!!document&&"rtl"==document.defaultView.getComputedStyle(document.body).direction&&("left"===this.model.horizontalPosition?e="right":"right"===this.model.horizontalPosition&&(e="left")),e},t.prototype.getStyleClass=function(){return e.prototype.getStyleClass.call(this).append("sv-popup--dropdown",!this.isOverlay).append("sv-popup--tablet",this.isTablet&&this.isOverlay).append("sv-popup--show-pointer",!this.isOverlay&&this.showHeader).append("sv-popup--"+this.popupDirection,!this.isOverlay&&this.showHeader)},t.prototype.getShowHeader=function(){return this.model.showPointer&&!this.isOverlay},t.prototype.getPopupHeaderTemplate=function(){return"popup-pointer"},t.prototype.updateOnShowing=function(){var e=l.settings.environment.root;this.prevActiveElement=e.activeElement,this.isOverlay?this.resetDimensionsAndPositionStyleProperties():this.updatePosition(!0,!1),this.switchFocus(),window.addEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(window.visualViewport.addEventListener("resize",this.resizeEventCallback),this.container&&(this.container.addEventListener("touchstart",this.touchStartEventCallback),this.container.addEventListener("touchmove",this.touchMoveEventCallback)),this.calculateIsTablet(window.innerWidth,window.innerHeight),this.resizeEventCallback()),window.addEventListener("scroll",this.scrollEventCallBack)},Object.defineProperty(t.prototype,"shouldCreateResizeCallback",{get:function(){return!!window.visualViewport&&this.isOverlay&&a.IsTouch},enumerable:!1,configurable:!0}),t.prototype.updatePosition=function(e,t){var r=this;void 0===t&&(t=!0),e&&(this.height="auto"),t?setTimeout((function(){r._updatePosition()}),1):this._updatePosition()},t.prototype.updateOnHiding=function(){e.prototype.updateOnHiding.call(this),window.removeEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(window.visualViewport.removeEventListener("resize",this.resizeEventCallback),this.container&&(this.container.removeEventListener("touchstart",this.touchStartEventCallback),this.container.removeEventListener("touchmove",this.touchMoveEventCallback))),window.removeEventListener("scroll",this.scrollEventCallBack),this.isDisposed||(this.top=void 0,this.left=void 0,this.height=void 0,this.width=void 0,this.minWidth=void 0)},t.tabletSizeBreakpoint=600,c([Object(o.property)()],t.prototype,"isTablet",void 0),c([Object(o.property)({defaultValue:"left"})],t.prototype,"popupDirection",void 0),c([Object(o.property)({defaultValue:{left:"0px",top:"0px"}})],t.prototype,"pointerTarget",void 0),t}(s.PopupBaseViewModel)},"./src/popup-modal-view-model.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"PopupModalViewModel",(function(){return s}));var n,o=r("./src/popup-view-model.ts"),i=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.getStyleClass=function(){return e.prototype.getStyleClass.call(this).append("sv-popup--modal",!this.isOverlay)},t.prototype.getShowFooter=function(){return!0},t.prototype.createFooterActionBar=function(){var t=this;e.prototype.createFooterActionBar.call(this),this.footerToolbarValue.addAction({id:"apply",visibleIndex:20,title:this.applyButtonText,innerCss:"sv-popup__body-footer-item sv-popup__button sv-popup__button--apply sd-btn sd-btn--action",action:function(){t.apply()}})},Object.defineProperty(t.prototype,"applyButtonText",{get:function(){return this.getLocalizationString("modalApplyButtonText")},enumerable:!1,configurable:!0}),t.prototype.apply=function(){this.model.onApply&&!this.model.onApply()||this.hidePopup()},t.prototype.clickOutside=function(){},t.prototype.onKeyDown=function(t){"Escape"!==t.key&&27!==t.keyCode||this.model.onCancel(),e.prototype.onKeyDown.call(this,t)},t}(o.PopupBaseViewModel)},"./src/popup-survey.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"PopupSurveyModel",(function(){return l})),r.d(t,"SurveyWindowModel",(function(){return u}));var n,o=r("./src/base.ts"),i=r("./src/survey.ts"),s=r("./src/jsonobject.ts"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this)||this;return n.closeOnCompleteTimeout=0,n.surveyValue=r||n.createSurvey(t),n.surveyValue.showTitle=!1,"undefined"!=typeof document&&(n.windowElement=document.createElement("div")),n.survey.onComplete.add((function(e,t){n.onSurveyComplete()})),n.registerPropertyChangedHandlers(["isShowing"],(function(){n.showingChangedCallback&&n.showingChangedCallback()})),n.registerPropertyChangedHandlers(["isExpanded"],(function(){n.onExpandedChanged()})),n.width=new o.ComputedUpdater((function(){return n.survey.width})),n.width=n.survey.width,n.updateCss(),n.onCreating(),n}return a(t,e),t.prototype.onCreating=function(){},t.prototype.getType=function(){return"popupsurvey"},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowing",{get:function(){return this.getPropertyValue("isShowing",!1)},set:function(e){this.setPropertyValue("isShowing",e)},enumerable:!1,configurable:!0}),t.prototype.show=function(){this.isShowing=!0},t.prototype.hide=function(){this.isShowing=!1},Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.getPropertyValue("isExpanded",!1)},set:function(e){this.setPropertyValue("isExpanded",e)},enumerable:!1,configurable:!0}),t.prototype.onExpandedChanged=function(){this.expandedChangedCallback&&this.expandedChangedCallback(),this.updateCssButton()},Object.defineProperty(t.prototype,"title",{get:function(){return this.survey.title},set:function(e){this.survey.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.survey.locTitle},enumerable:!1,configurable:!0}),t.prototype.expand=function(){this.isExpanded=!0},t.prototype.collapse=function(){this.isExpanded=!1},t.prototype.changeExpandCollapse=function(){this.isExpanded=!this.isExpanded},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssButton",{get:function(){return this.getPropertyValue("cssButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.getPropertyValue("cssRoot","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssBody",{get:function(){return this.getPropertyValue("cssBody","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderRoot",{get:function(){return this.getPropertyValue("cssHeaderRoot","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderTitle",{get:function(){return this.getPropertyValue("cssHeaderTitle","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("width","60%");return e&&!isNaN(e)&&(e+="px"),e},enumerable:!1,configurable:!0}),t.prototype.updateCss=function(){if(this.css&&this.css.window){var e=this.css.window;this.setPropertyValue("cssRoot",e.root),this.setPropertyValue("cssBody",e.body);var t=e.header;t&&(this.setPropertyValue("cssHeaderRoot",t.root),this.setPropertyValue("cssHeaderTitle",t.title),this.updateCssButton())}},t.prototype.updateCssButton=function(){var e=this.css.window?this.css.window.header:null;e&&this.setCssButton(this.isExpanded?e.buttonExpanded:e.buttonCollapsed)},t.prototype.setCssButton=function(e){e&&this.setPropertyValue("cssButton",e)},t.prototype.createSurvey=function(e){return new i.SurveyModel(e)},t.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(0==this.closeOnCompleteTimeout)this.hide();else{var e=this,t=null;t="undefined"!=typeof window?window.setInterval((function(){e.hide(),"undefined"!=typeof window&&window.clearInterval(t)}),1e3*this.closeOnCompleteTimeout):0}},function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);i>3&&s&&Object.defineProperty(t,r,s)}([Object(s.property)()],t.prototype,"width",void 0),t}(o.Base),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t}(l)},"./src/popup-utils.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"createPopupModalViewModel",(function(){return s})),r.d(t,"createPopupViewModel",(function(){return a}));var n=r("./src/popup.ts"),o=r("./src/popup-dropdown-view-model.ts"),i=r("./src/popup-modal-view-model.ts");function s(e){var t=new n.PopupModel(e.componentName,e.data,"top","left",!1,!0,e.onCancel,e.onApply,e.onHide,e.onShow,e.cssClass,e.title);t.displayMode=e.displayMode||"popup";var r=new i.PopupModalViewModel(t);return r.initializePopupContainer(),r}function a(e,t){return e.isModal?new i.PopupModalViewModel(e):new o.PopupDropdownViewModel(e,t)}},"./src/popup-view-model.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"FOCUS_INPUT_SELECTOR",(function(){return d})),r.d(t,"PopupBaseViewModel",(function(){return h}));var n,o=r("./src/base.ts"),i=r("./src/jsonobject.ts"),s=r("./src/utils/cssClassBuilder.ts"),a=r("./src/actions/container.ts"),l=r("./src/settings.ts"),u=r("./src/utils/utils.ts"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},d='input:not(:disabled):not([readonly]):not([type=hidden]),select:not(:disabled):not([readonly]),textarea:not(:disabled):not([readonly]), button:not(:disabled):not([readonly]), [tabindex]:not([tabindex^="-"])',h=function(e){function t(t){var r=e.call(this)||this;return r.model=t,r}return c(t,e),t.prototype.getLocale=function(){return this.locale?this.locale:e.prototype.getLocale.call(this)},t.prototype.hidePopup=function(){this.model.isVisible=!1},t.prototype.getStyleClass=function(){return(new s.CssClassBuilder).append(this.model.cssClass).append("sv-popup--"+this.model.displayMode,this.isOverlay)},t.prototype.getShowFooter=function(){return this.isOverlay},t.prototype.getShowHeader=function(){return!1},t.prototype.getPopupHeaderTemplate=function(){},t.prototype.createFooterActionBar=function(){var e=this;this.footerToolbarValue=new a.ActionContainer,this.footerToolbar.updateCallback=function(t){e.footerToolbarValue.actions.forEach((function(e){return e.cssClasses={item:"sv-popup__body-footer-item sv-popup__button sd-btn"}}))};var t=[{id:"cancel",visibleIndex:10,title:this.cancelButtonText,innerCss:"sv-popup__button--cancel sd-btn",action:function(){e.cancel()}}];t=this.model.updateFooterActions(t),this.footerToolbarValue.setItems(t)},t.prototype.resetDimensionsAndPositionStyleProperties=function(){var e="inherit";this.top=e,this.left=e,this.height=e,this.width=e,this.minWidth=e},t.prototype.setupModel=function(e){var t=this;this.model&&this.model.unregisterPropertyChangedHandlers(["isVisible"],"PopupBaseViewModel"),this._model=e;var r=function(){e.isVisible||t.updateOnHiding(),t.isVisible=e.isVisible};e.registerPropertyChangedHandlers(["isVisible"],r,"PopupBaseViewModel"),r()},Object.defineProperty(t.prototype,"model",{get:function(){return this._model},set:function(e){this.setupModel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.model.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentName",{get:function(){return this.model.contentComponentName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentData",{get:function(){return this.model.contentComponentData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isModal",{get:function(){return this.model.isModal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusedContent",{get:function(){return this.model.isFocusedContent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.getShowFooter()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getShowHeader()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupHeaderTemplate",{get:function(){return this.getPopupHeaderTemplate()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOverlay",{get:function(){return"overlay"===this.model.displayMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"styleClass",{get:function(){return this.getStyleClass().toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cancelButtonText",{get:function(){return this.getLocalizationString("modalCancelButtonText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.createFooterActionBar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.onKeyDown=function(e){"Tab"===e.key||9===e.keyCode?this.trapFocus(e):"Escape"!==e.key&&27!==e.keyCode||this.hidePopup()},t.prototype.trapFocus=function(e){var t=this.container.querySelectorAll(d),r=t[0],n=t[t.length-1];e.shiftKey?l.settings.environment.root.activeElement===r&&(n.focus(),e.preventDefault()):l.settings.environment.root.activeElement===n&&(r.focus(),e.preventDefault())},t.prototype.switchFocus=function(){this.isFocusedContent&&this.focusFirstInput()},t.prototype.updateOnShowing=function(){this.prevActiveElement=l.settings.environment.root.activeElement,this.isOverlay&&this.resetDimensionsAndPositionStyleProperties(),this.switchFocus()},t.prototype.updateOnHiding=function(){this.isFocusedContent&&this.prevActiveElement&&this.prevActiveElement.focus()},t.prototype.focusFirstInput=function(){var e=this;setTimeout((function(){if(e.container){var t=e.container.querySelector(e.model.focusFirstInputSelector||d);t?t.focus():e.container.children[0].focus()}}),100)},t.prototype.clickOutside=function(){this.hidePopup()},t.prototype.cancel=function(){this.model.onCancel(),this.hidePopup()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.unmountPopupContainer(),this.container=void 0,this.footerToolbarValue&&this.footerToolbarValue.dispose()},t.prototype.initializePopupContainer=function(){if(!this.createdContainer){var e=document.createElement("div");this.container=this.createdContainer=e}Object(u.getElement)(l.settings.environment.popupMountContainer).appendChild(this.container)},t.prototype.unmountPopupContainer=function(){this.createdContainer.remove()},p([Object(i.property)({defaultValue:"0px"})],t.prototype,"top",void 0),p([Object(i.property)({defaultValue:"0px"})],t.prototype,"left",void 0),p([Object(i.property)({defaultValue:"auto"})],t.prototype,"height",void 0),p([Object(i.property)({defaultValue:"auto"})],t.prototype,"width",void 0),p([Object(i.property)({defaultValue:"auto"})],t.prototype,"minWidth",void 0),p([Object(i.property)({defaultValue:!1})],t.prototype,"isVisible",void 0),p([Object(i.property)()],t.prototype,"locale",void 0),t}(o.Base)},"./src/popup.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"PopupModel",(function(){return l})),r.d(t,"createDialogOptions",(function(){return u}));var n,o=r("./src/base.ts"),i=r("./src/jsonobject.ts"),s=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},l=function(e){function t(t,r,n,o,i,s,a,l,u,c,p,d){void 0===n&&(n="bottom"),void 0===o&&(o="left"),void 0===i&&(i=!0),void 0===s&&(s=!1),void 0===a&&(a=function(){}),void 0===l&&(l=function(){return!0}),void 0===u&&(u=function(){}),void 0===c&&(c=function(){}),void 0===p&&(p=""),void 0===d&&(d="");var h=e.call(this)||this;return h.focusFirstInputSelector="",h.onVisibilityChanged=h.addEvent(),h.onFooterActionsCreated=h.addEvent(),h.onRecalculatePosition=h.addEvent(),h.contentComponentName=t,h.contentComponentData=r,h.verticalPosition=n,h.horizontalPosition=o,h.showPointer=i,h.isModal=s,h.onCancel=a,h.onApply=l,h.onHide=u,h.onShow=c,h.cssClass=p,h.title=d,h}return s(t,e),t.prototype.refreshInnerModel=function(){var e=this.contentComponentData.model;e&&e.refresh&&e.refresh()},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!1)},set:function(e){this.isVisible!==e&&(this.setPropertyValue("isVisible",e),this.onVisibilityChanged.fire(this,{model:this,isVisible:e}),this.refreshInnerModel(),this.isVisible?this.onShow():this.onHide())},enumerable:!1,configurable:!0}),t.prototype.toggleVisibility=function(){this.isVisible=!this.isVisible},t.prototype.recalculatePosition=function(e){this.onRecalculatePosition.fire(this,{isResetHeight:e})},t.prototype.updateFooterActions=function(e){var t={actions:e};return this.onFooterActionsCreated.fire(this,t),t.actions},a([Object(i.property)()],t.prototype,"contentComponentName",void 0),a([Object(i.property)()],t.prototype,"contentComponentData",void 0),a([Object(i.property)({defaultValue:"bottom"})],t.prototype,"verticalPosition",void 0),a([Object(i.property)({defaultValue:"left"})],t.prototype,"horizontalPosition",void 0),a([Object(i.property)({defaultValue:!1})],t.prototype,"showPointer",void 0),a([Object(i.property)({defaultValue:!1})],t.prototype,"isModal",void 0),a([Object(i.property)({defaultValue:!0})],t.prototype,"isFocusedContent",void 0),a([Object(i.property)({defaultValue:function(){}})],t.prototype,"onCancel",void 0),a([Object(i.property)({defaultValue:function(){return!0}})],t.prototype,"onApply",void 0),a([Object(i.property)({defaultValue:function(){}})],t.prototype,"onHide",void 0),a([Object(i.property)({defaultValue:function(){}})],t.prototype,"onShow",void 0),a([Object(i.property)({defaultValue:""})],t.prototype,"cssClass",void 0),a([Object(i.property)({defaultValue:""})],t.prototype,"title",void 0),a([Object(i.property)({defaultValue:"popup"})],t.prototype,"displayMode",void 0),a([Object(i.property)({defaultValue:"flex"})],t.prototype,"positionMode",void 0),t}(o.Base);function u(e,t,r,n,o,i,s,a,l){return void 0===o&&(o=function(){}),void 0===i&&(i=function(){}),void 0===l&&(l="popup"),{componentName:e,data:t,onApply:r,onCancel:n,onHide:o,onShow:i,cssClass:s,title:a,displayMode:l}}},"./src/question.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"Question",(function(){return y}));var n,o=r("./src/helpers.ts"),i=r("./src/jsonobject.ts"),s=r("./src/survey-element.ts"),a=r("./src/error.ts"),l=r("./src/validator.ts"),u=r("./src/localizablestring.ts"),c=r("./src/conditions.ts"),p=r("./src/questionCustomWidgets.ts"),d=r("./src/settings.ts"),h=r("./src/rendererFactory.ts"),f=r("./src/utils/cssClassBuilder.ts"),m=r("./src/utils/utils.ts"),g=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),b=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},y=function(e){function t(r){var n=e.call(this,r)||this;return n.customWidgetData={isNeedRender:!0},n.isReadyValue=!0,n.onReadyChanged=n.addEvent(),n.isRunningValidatorsValue=!1,n.isValueChangedInSurvey=!1,n.allowNotifyValueChanged=!0,n.id=t.getQuestionId(),n.onCreating(),n.createNewArray("validators",(function(e){e.errorOwner=n})),n.addExpressionProperty("visibleIf",(function(e,t){n.visible=!0===t}),(function(e){return!n.areInvisibleElementsShowing})),n.addExpressionProperty("enableIf",(function(e,t){n.readOnly=!1===t})),n.addExpressionProperty("requiredIf",(function(e,t){n.isRequired=!0===t})),n.createLocalizableString("commentText",n,!0,"otherItemText"),n.locTitle.onGetDefaultTextCallback=function(){return n.name},n.locTitle.storeDefaultText=!0,n.createLocalizableString("requiredErrorText",n),n.registerPropertyChangedHandlers(["width"],(function(){n.updateQuestionCss(),n.parent&&n.parent.elementWidthChanged(n)})),n.registerPropertyChangedHandlers(["isRequired"],(function(){!n.isRequired&&n.errors.length>0&&n.validate(),n.locTitle.strChanged(),n.clearCssClasses()})),n.registerPropertyChangedHandlers(["indent","rightIndent"],(function(){n.onIndentChanged()})),n.registerPropertyChangedHandlers(["showCommentArea","showOtherItem"],(function(){n.initCommentFromSurvey()})),n.registerFunctionOnPropertiesValueChanged(["no","readOnly"],(function(){n.updateQuestionCss()})),n.registerPropertyChangedHandlers(["isMobile"],(function(){n.onMobileChanged()})),n}return g(t,e),t.getQuestionId=function(){return"sq_"+t.questionCounter++},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&"div"===d.settings.readOnlyCommentRenderMode},t.prototype.setIsMobile=function(e){},t.prototype.createLocTitleProperty=function(){var t=this,r=e.prototype.createLocTitleProperty.call(this);return r.onGetTextCallback=function(e){return e||(e=t.name),t.survey?t.survey.getUpdatedQuestionTitle(t,e):e},this.locProcessedTitle=new u.LocalizableString(this,!0),this.locProcessedTitle.sharedData=r,r},t.prototype.getSurvey=function(t){return void 0===t&&(t=!1),t?this.parent?this.parent.getSurvey(t):null:this.onGetSurvey?this.onGetSurvey():e.prototype.getSurvey.call(this)},t.prototype.getValueName=function(){return this.valueName?this.valueName.toString():this.name},Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){var t=this.getValueName();this.setPropertyValue("valueName",e),this.onValueNameChanged(t)},enumerable:!1,configurable:!0}),t.prototype.onValueNameChanged=function(e){this.survey&&(this.survey.questionRenamed(this,this.name,e||this.name),this.initDataFromSurvey())},t.prototype.onNameChanged=function(e){this.locTitle.strChanged(),this.survey&&this.survey.questionRenamed(this,e,this.valueName?this.valueName:e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaInvalid",{get:function(){return this.errors.length>0?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabelledBy",{get:function(){return this.hasTitle?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescribedBy",{get:function(){return this.errors.length>0?this.id+"_errors":null},enumerable:!1,configurable:!0}),t.prototype.choicesLoaded=function(){},Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return null},t.prototype.delete=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},Object.defineProperty(t.prototype,"isFlowLayout",{get:function(){return"flow"===this.getLayoutType()},enumerable:!1,configurable:!0}),t.prototype.getLayoutType=function(){return this.parent?this.parent.getChildrenLayoutType():"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!=this.visible&&(this.setPropertyValue("visible",e),this.onVisibleChanged(),this.notifySurveyVisibilityChanged())},enumerable:!1,configurable:!0}),t.prototype.onVisibleChanged=function(){this.setPropertyValue("isVisible",this.isVisible),!this.isVisible&&this.errors&&this.errors.length>0&&(this.errors=[])},Object.defineProperty(t.prototype,"useDisplayValuesInDynamicTexts",{get:function(){return this.getPropertyValue("useDisplayValuesInDynamicTexts")},set:function(e){this.setPropertyValue("useDisplayValuesInDynamicTexts",e)},enumerable:!1,configurable:!0}),t.prototype.getUseDisplayValuesInDynamicTexts=function(){return this.useDisplayValuesInDynamicTexts},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!(this.survey&&this.survey.areEmptyElementsHidden&&this.isEmpty())&&(!!this.areInvisibleElementsShowing||this.isVisibleCore())},enumerable:!1,configurable:!0}),t.prototype.isVisibleCore=function(){return this.visible},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideNumber",{get:function(){return this.getPropertyValue("hideNumber")},set:function(e){this.setPropertyValue("hideNumber",e),this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"question"},Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},t.prototype.getProgressInfo=function(){return this.hasInput?{questionCount:1,answeredQuestionCount:this.isEmpty()?0:1,requiredQuestionCount:this.isRequired?1:0,requiredAnsweredQuestionCount:!this.isEmpty()&&this.isRequired?1:0}:e.prototype.getProgressInfo.call(this)},t.prototype.runConditions=function(){this.data&&!this.isLoadingFromJson&&(this.isDesignMode||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.locStrsChanged())},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t),this.survey&&(this.survey.questionCreated(this),!0!==r&&this.runConditions())},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.parent!==e&&(this.delete(),this.setPropertyValue("parent",e),this.updateQuestionCss(),this.onParentChanged())},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return"hidden"!==this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleLocation",{get:function(){return this.getPropertyValue("titleLocation")},set:function(e){var t="hidden"==this.titleLocation||"hidden"==e;this.setPropertyValue("titleLocation",e.toLowerCase()),this.updateQuestionCss(),t&&this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},t.prototype.getIsTitleRenderedAsString=function(){return"hidden"===this.titleLocation},t.prototype.notifySurveyVisibilityChanged=function(){this.survey&&!this.isLoadingFromJson&&(this.survey.questionVisibilityChanged(this,this.isVisible),this.isClearValueOnHidden&&(this.visible||this.clearValueIfInvisible(),this.isVisible&&this.updateValueWithDefaults()))},t.prototype.getTitleLocation=function(){if(this.isFlowLayout)return"hidden";var e=this.getTitleLocationCore();return"left"!==e||this.isAllowTitleLeft||(e="top"),e},t.prototype.getTitleLocationCore=function(){return"default"!==this.titleLocation?this.titleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},Object.defineProperty(t.prototype,"hasTitleOnLeft",{get:function(){return this.hasTitle&&"left"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnTop",{get:function(){return this.hasTitle&&"top"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnBottom",{get:function(){return this.hasTitle&&"bottom"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(!this.hasTitle)return!1;var e=this.getTitleLocation();return"left"===e||"top"===e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errorLocation",{get:function(){return this.survey?this.survey.questionErrorLocation:"top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasInput",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return this.hasInput},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputId",{get:function(){return this.id+"i"},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){return this.name},t.prototype.getDefaultTitleTagName=function(){return d.settings.titleTags.question},Object.defineProperty(t.prototype,"descriptionLocation",{get:function(){return this.getPropertyValue("descriptionLocation")},set:function(e){this.setPropertyValue("descriptionLocation",e),this.updateQuestionCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return"underTitle"==this.getDescriptionLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderInput",{get:function(){return"underInput"==this.getDescriptionLocation()},enumerable:!1,configurable:!0}),t.prototype.getDescriptionLocation=function(){return"default"!==this.descriptionLocation?this.descriptionLocation:this.survey?this.survey.questionDescriptionLocation:"underTitle"},t.prototype.needClickTitleFunction=function(){return e.prototype.needClickTitleFunction.call(this)||this.hasInput},t.prototype.processTitleClick=function(){var t=this;if(e.prototype.processTitleClick.call(this),!this.isCollapsed)return setTimeout((function(){t.focus()}),1),!0},Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentText",{get:function(){return this.getLocalizableStringText("commentText")},set:function(e){this.setLocalizableStringText("commentText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCommentText",{get:function(){return this.getLocalizableString("commentText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPlaceHolder",{get:function(){return this.commentPlaceholder},set:function(e){this.commentPlaceholder=e},enumerable:!1,configurable:!0}),t.prototype.getAllErrors=function(){return this.errors.slice()},t.prototype.getErrorByType=function(e){for(var t=0;t<this.errors.length;t++)if(this.errors[t].getErrorType()===e)return this.errors[t];return null},Object.defineProperty(t.prototype,"customWidget",{get:function(){return this.isCustomWidgetRequested||this.customWidgetValue||(this.isCustomWidgetRequested=!0,this.updateCustomWidget()),this.customWidgetValue},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidget=function(){this.customWidgetValue=p.CustomWidgetCollection.Instance.getCustomWidget(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.localeChangedCallback&&this.localeChangedCallback()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.updateCommentElements=function(){if(this.autoGrowComment&&Array.isArray(this.commentElements))for(var e=0;e<this.commentElements.length;e++){var t=this.commentElements[e];t&&Object(m.increaseHeightByContent)(t)}},t.prototype.onCommentInput=function(e){this.isInputTextUpdate?e.target&&(this.comment=e.target.value):this.updateCommentElements()},t.prototype.onCommentChange=function(e){this.comment=e.target.value,this.comment!==e.target.value&&(e.target.value=this.comment)},t.prototype.afterRenderQuestionElement=function(e){this.survey&&this.hasSingleInput&&this.survey.afterRenderQuestionInput(this,e)},t.prototype.afterRender=function(e){var t=this;this.survey&&(this.survey.afterRenderQuestion(this,e),this.afterRenderQuestionCallback&&this.afterRenderQuestionCallback(this,e),(this.supportComment()||this.supportOther())&&(this.commentElements=[],this.getCommentElementsId().forEach((function(e){var r=d.settings.environment.root.getElementById(e);r&&t.commentElements.push(r)})),this.updateCommentElements()),this.checkForResponsiveness(e))},t.prototype.getCommentElementsId=function(){return[this.commentId]},t.prototype.beforeDestroyQuestionElement=function(e){this.commentElements=void 0},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locProcessedTitle.textOrHtml||this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern&&""!==this.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern&&""!==this.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.startWithNewLine!=e&&this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={error:{}};return this.copyCssClasses(t,e.question),this.copyCssClasses(t.error,e.error),this.updateCssClasses(t,e),this.survey&&this.survey.updateQuestionCssClasses(this,t),this.onUpdateCssClassesCallback&&this.onUpdateCssClassesCallback(t),t},Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssRoot","")},enumerable:!1,configurable:!0}),t.prototype.setCssRoot=function(e){this.setPropertyValue("cssRoot",e)},t.prototype.getCssRoot=function(t){return(new f.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(this.isFlowLayout&&!this.isDesignMode?t.flowRoot:t.mainRoot).append(t.titleLeftRoot,!this.isFlowLayout&&this.hasTitleOnLeft).append(t.hasError,this.errors.length>0).append(t.small,!this.width).append(t.answered,this.isAnswered).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssHeader","")},enumerable:!1,configurable:!0}),t.prototype.setCssHeader=function(e){this.setPropertyValue("cssHeader",e)},t.prototype.getCssHeader=function(e){return(new f.CssClassBuilder).append(e.header).append(e.headerTop,this.hasTitleOnTop).append(e.headerLeft,this.hasTitleOnLeft).append(e.headerBottom,this.hasTitleOnBottom).toString()},Object.defineProperty(t.prototype,"cssContent",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssContent","")},enumerable:!1,configurable:!0}),t.prototype.setCssContent=function(e){this.setPropertyValue("cssContent",e)},t.prototype.getCssContent=function(e){return(new f.CssClassBuilder).append(e.content).append(e.contentLeft,this.hasTitleOnLeft).toString()},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssTitle","")},enumerable:!1,configurable:!0}),t.prototype.setCssTitle=function(e){this.setPropertyValue("cssTitle",e)},t.prototype.getCssTitle=function(t){return(new f.CssClassBuilder).append(e.prototype.getCssTitle.call(this,t)).append(t.titleOnAnswer,!this.containsErrors&&this.isAnswered).toString()},Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssDescription","")},enumerable:!1,configurable:!0}),t.prototype.setCssDescription=function(e){this.setPropertyValue("cssDescription",e)},t.prototype.getCssDescription=function(e){return(new f.CssClassBuilder).append(e.description,this.hasDescriptionUnderTitle).append(e.descriptionUnderInput,this.hasDescriptionUnderInput).toString()},t.prototype.getIsErrorsModeTooltip=function(){return e.prototype.getIsErrorsModeTooltip.call(this)&&!this.customWidget},t.prototype.showErrorOnCore=function(e){return!this.isErrorsModeTooltip&&!this.showErrorsAboveQuestion&&!this.showErrorsBelowQuestion&&this.errorLocation===e},Object.defineProperty(t.prototype,"showErrorOnTop",{get:function(){return this.showErrorOnCore("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorOnBottom",{get:function(){return this.showErrorOnCore("bottom")},enumerable:!1,configurable:!0}),t.prototype.getIsTooltipErrorSupportedByParent=function(){return this.parentQuestion?this.parentQuestion.getIsTooltipErrorInsideSupported():e.prototype.getIsTooltipErrorSupportedByParent.call(this)},Object.defineProperty(t.prototype,"showErrorsOutsideQuestion",{get:function(){return this.isDefaultV2Theme&&!(this.hasParent&&this.getIsTooltipErrorSupportedByParent())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsAboveQuestion",{get:function(){return this.showErrorsOutsideQuestion&&"top"===this.errorLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsBelowQuestion",{get:function(){return this.showErrorsOutsideQuestion&&"bottom"===this.errorLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssError","")},enumerable:!1,configurable:!0}),t.prototype.setCssError=function(e){this.setPropertyValue("cssError",e)},t.prototype.getCssError=function(e){return(new f.CssClassBuilder).append(e.error.root).append(e.error.outsideQuestion,this.showErrorsBelowQuestion||this.showErrorsAboveQuestion).append(e.error.belowQuestion,this.showErrorsBelowQuestion).append(e.error.aboveQuestion,this.showErrorsAboveQuestion).append(e.error.tooltip,this.isErrorsModeTooltip).append(e.error.locationTop,this.showErrorOnTop).append(e.error.locationBottom,this.showErrorOnBottom).toString()},t.prototype.getRootCss=function(){return(new f.CssClassBuilder).append(this.cssRoot).append(this.cssClasses.disabled,this.isReadOnly).append(this.cssClasses.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t),t&&this.updateQuestionCss(!0),this.onIndentChanged()},t.prototype.updateQuestionCss=function(e){this.isLoadingFromJson||!this.survey||!0!==e&&!this.cssClassesValue||this.updateElementCssCore(this.cssClasses)},t.prototype.ensureElementCss=function(){this.cssClassesValue||this.updateQuestionCss(!0)},t.prototype.updateElementCssCore=function(e){this.setCssRoot(this.getCssRoot(e)),this.setCssHeader(this.getCssHeader(e)),this.setCssContent(this.getCssContent(e)),this.setCssTitle(this.getCssTitle(e)),this.setCssDescription(this.getCssDescription(e)),this.setCssError(this.getCssError(e))},t.prototype.updateCssClasses=function(e,t){if(t.question){var r=t[this.getCssType()],n=(new f.CssClassBuilder).append(e.title).append(t.question.titleRequired,this.isRequired);e.title=n.toString();var o=(new f.CssClassBuilder).append(e.root).append(r,this.isRequired&&!!t.question.required);if(null==r)e.root=o.toString();else if("string"==typeof r||r instanceof String)e.root=o.append(r.toString()).toString();else for(var i in e.root=o.toString(),r)e[i]=r[i]}},t.prototype.getCssType=function(){return this.getType()},Object.defineProperty(t.prototype,"renderCssRoot",{get:function(){return this.cssClasses.root||void 0},enumerable:!1,configurable:!0}),t.prototype.onIndentChanged=function(){this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent)},t.prototype.getIndentSize=function(e){return e<1||!this.getSurvey()||!this.cssClasses||!this.cssClasses.indent?"":e*this.cssClasses.indent+"px"},t.prototype.focus=function(e){if(void 0===e&&(e=!1),!this.isDesignMode){this.survey&&(this.expandAllParents(this),this.survey.scrollElementToTop(this,this,null,this.id));var t=e?this.getFirstErrorInputElementId():this.getFirstInputElementId();s.SurveyElement.FocusElement(t)&&this.fireCallback(this.focusCallback)}},t.prototype.expandAllParents=function(e){e&&(e.isCollapsed&&e.expand(),this.expandAllParents(e.parent),this.expandAllParents(e.parentQuestion))},t.prototype.focusIn=function(){this.survey&&this.survey.whenQuestionFocusIn(this)},t.prototype.fireCallback=function(e){e&&e()},t.prototype.getOthersMaxLength=function(){return this.survey&&this.survey.maxOthersLength>0?this.survey.maxOthersLength:null},t.prototype.onCreating=function(){},t.prototype.getFirstQuestionToFocus=function(e){return this.hasInput&&(!e||this.currentErrorCount>0)?this:null},t.prototype.getFirstInputElementId=function(){return this.inputId},t.prototype.getFirstErrorInputElementId=function(){return this.getFirstInputElementId()},t.prototype.getProcessedTextValue=function(e){var r=e.name.toLocaleLowerCase();e.isExists=-1!==Object.keys(t.TextPreprocessorValuesMap).indexOf(r)||void 0!==this[e.name],e.value=this[t.TextPreprocessorValuesMap[r]||e.name]},t.prototype.supportComment=function(){var e=this.getPropertyByName("showCommentArea");return!e||e.visible},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCommentArea",{get:function(){return this.getPropertyValue("showCommentArea",!1)},set:function(e){this.supportComment()&&this.setPropertyValue("showCommentArea",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasComment",{get:function(){return this.showCommentArea},set:function(e){this.showCommentArea=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){return this.id+"_ariaTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentId",{get:function(){return this.id+"_comment"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"textbox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showOtherItem",{get:function(){return this.getPropertyValue("showOtherItem",!1)},set:function(e){this.supportOther()&&this.showOtherItem!=e&&(this.setPropertyValue("showOtherItem",e),this.hasOtherChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.showOtherItem},set:function(e){this.showOtherItem=e},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){},Object.defineProperty(t.prototype,"requireUpdateCommentValue",{get:function(){return this.hasComment||this.hasOther},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.parentQuestion&&this.parentQuestion.isReadOnly,r=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||r||t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInputReadOnly",{get:function(){if(void 0!==this.forceIsInputReadOnly)return this.forceIsInputReadOnly;var e=d.settings.supportCreatorV2&&this.isDesignMode;return this.isReadOnly||e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputReadOnly",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputDisabled",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.setPropertyValue("isInputReadOnly",this.isInputReadOnly),e.prototype.onReadOnlyChanged.call(this)},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){},t.prototype.runCondition=function(e,t){this.isDesignMode||(t||(t={}),t.question=this,this.runConditionCore(e,t),this.isValueChangedDirectly||(this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.runDefaultValueExpression(this.defaultValueRunner,e,t)))},Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no")},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){if(!this.hasTitle||this.hideNumber)return"";var e=o.Helpers.getNumberByIndex(this.visibleIndex,this.getStartIndex());return this.survey&&(e=this.survey.getUpdatedQuestionNo(this,e)),e},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.onSurveyLoad=function(){this.isCustomWidgetRequested=!1,this.fireCallback(this.surveyLoadCallback),this.updateValueWithDefaults(),this.isEmpty()&&this.initDataFromSurvey(),this.onIndentChanged()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.survey&&(this.initDataFromSurvey(),this.onSurveyValueChanged(this.value),this.updateValueWithDefaults(),this.onIndentChanged(),this.updateQuestionCss(),this.updateIsAnswered())},t.prototype.initDataFromSurvey=function(){if(this.data){var e=this.data.getValue(this.getValueName());o.Helpers.isValueEmpty(e)&&this.isLoadingFromJson||this.updateValueFromSurvey(e),this.initCommentFromSurvey()}},t.prototype.initCommentFromSurvey=function(){this.data&&this.requireUpdateCommentValue?this.updateCommentFromSurvey(this.data.getComment(this.getValueName())):this.updateCommentFromSurvey("")},t.prototype.runExpression=function(e){if(this.survey&&e)return this.survey.runExpression(e)},Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.survey&&this.survey.autoGrowComment},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeComment",{get:function(){return this.survey&&this.survey.allowResizeComment},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionValue",{get:function(){return this.getPropertyValue("value")},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionComment",{get:function(){return this.getPropertyValue("comment")},set:function(e){this.setPropertyValue("comment",e),this.fireCallback(this.commentChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValueCore()},set:function(e){this.setNewValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueForSurvey",{get:function(){return this.valueToDataCallback?this.valueToDataCallback(this.value):this.value},enumerable:!1,configurable:!0}),t.prototype.clearValue=function(){void 0!==this.value&&(this.value=void 0),this.comment&&(this.comment=void 0)},t.prototype.unbindValue=function(){this.clearValue()},t.prototype.createValueCopy=function(){return this.getUnbindValue(this.value)},t.prototype.getUnbindValue=function(e){return this.isValueSurveyElement(e)?e:o.Helpers.getUnbindValue(e)},t.prototype.isValueSurveyElement=function(e){return!!e&&(Array.isArray(e)?e.length>0&&this.isValueSurveyElement(e[0]):!!e.getType&&!!e.onPropertyChanged)},t.prototype.canClearValueAsInvisible=function(){return!(this.isVisible&&this.isParentVisible||this.page&&this.page.isStartPage||this.survey&&this.valueName&&this.survey.hasVisibleQuestionByValueName(this.valueName))},Object.defineProperty(t.prototype,"isParentVisible",{get:function(){for(var e=this.parent;e;){if(!e.isVisible)return!1;e=e.parent}return!0},enumerable:!1,configurable:!0}),t.prototype.clearValueIfInvisible=function(e){void 0===e&&(e="onHidden"),"none"!==this.clearIfInvisible&&("onHidden"===e&&"onComplete"===this.clearIfInvisible||("none"!==e||"default"!==this.clearIfInvisible&&"none"!==this.clearIfInvisible)&&this.clearValueIfInvisibleCore())},t.prototype.clearValueIfInvisibleCore=function(){this.canClearValueAsInvisible()&&this.clearValue()},Object.defineProperty(t.prototype,"clearIfInvisible",{get:function(){return this.getPropertyValue("clearIfInvisible")},set:function(e){this.setPropertyValue("clearIfInvisible",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.isLoadingFromJson?"":this.getDisplayValue(!0)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValue=function(e,t){void 0===t&&(t=void 0);var r=this.calcDisplayValue(e,t);return this.survey&&(r=this.survey.getQuestionDisplayValue(this,r)),this.displayValueCallback?this.displayValueCallback(r):r},t.prototype.calcDisplayValue=function(e,t){if(void 0===t&&(t=void 0),this.customWidget){var r=this.customWidget.getDisplayValue(this,t);if(r)return r}return t=null==t?this.createValueCopy():t,this.isValueEmpty(t)?this.getDisplayValueEmpty():this.getDisplayValueCore(e,t)},t.prototype.getDisplayValueCore=function(e,t){return t},t.prototype.getDisplayValueEmpty=function(){return""},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){this.isValueExpression(e)?this.defaultValueExpression=e.substring(1):(this.setPropertyValue("defaultValue",this.convertDefaultValue(e)),this.updateValueWithDefaults())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.getPropertyValue("defaultValueExpression")},set:function(e){this.setPropertyValue("defaultValueExpression",e),this.defaultValueRunner=void 0,this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.allowResizeComment?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(e){var t=this;if(e||(e={includeEmpty:!0,includeQuestionTypes:!1}),e.includeEmpty||!this.isEmpty()){var r={name:this.name,title:this.locTitle.renderedHtml,value:this.value,displayValue:this.displayValue,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}};return!0===e.includeQuestionTypes&&(r.questionType=this.getType()),(e.calculations||[]).forEach((function(e){r[e.propertyName]=t[e.propertyName]})),this.hasComment&&(r.isNode=!0,r.data=[{name:0,isComment:!0,title:"Comment",value:d.settings.commentSuffix,displayValue:this.comment,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}]),r}},Object.defineProperty(t.prototype,"correctAnswer",{get:function(){return this.getPropertyValue("correctAnswer")},set:function(e){this.setPropertyValue("correctAnswer",this.convertDefaultValue(e))},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"quizQuestionCount",{get:function(){return this.isVisible&&this.hasInput&&!this.isValueEmpty(this.correctAnswer)?this.getQuizQuestionCount():0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"correctAnswerCount",{get:function(){return this.isEmpty()||this.isValueEmpty(this.correctAnswer)?0:this.getCorrectAnswerCount()},enumerable:!1,configurable:!0}),t.prototype.getQuizQuestionCount=function(){return 1},t.prototype.getCorrectAnswerCount=function(){return this.checkIfAnswerCorrect()?1:0},t.prototype.checkIfAnswerCorrect=function(){var e=this.isTwoValueEquals(this.value,this.correctAnswer,!d.settings.comparator.caseSensitive,!0),t={result:e,correctAnswer:e?1:0};return this.survey&&this.survey.onCorrectQuestionAnswer(this,t),t.result},t.prototype.isAnswerCorrect=function(){return this.correctAnswerCount==this.quizQuestionCount},t.prototype.updateValueWithDefaults=function(){this.isLoadingFromJson||!this.isDesignMode&&this.isDefaultValueEmpty()||(this.isDesignMode||this.isEmpty())&&(this.isEmpty()&&this.isDefaultValueEmpty()||this.isClearValueOnHidden&&!this.isVisible||this.isDesignMode&&this.isContentElement&&this.isDefaultValueEmpty()||this.setDefaultValue())},Object.defineProperty(t.prototype,"isClearValueOnHidden",{get:function(){return"none"!==this.clearIfInvisible&&"onComplete"!==this.clearIfInvisible&&("onHidden"===this.clearIfInvisible||!!this.survey&&this.survey.isClearValueOnHidden)},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,t){return null},t.prototype.getDefaultValue=function(){return this.defaultValue},t.prototype.isDefaultValueEmpty=function(){return!this.defaultValueExpression&&this.isValueEmpty(this.defaultValue)},t.prototype.getDefaultRunner=function(e,t){return!e&&t&&(e=new c.ExpressionRunner(t)),e&&(e.expression=t),e},t.prototype.setDefaultValue=function(){var e=this;this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.setValueAndRunExpression(this.defaultValueRunner,this.getUnbindValue(this.defaultValue),(function(t){o.Helpers.isTwoValueEquals(e.value,t)||(e.value=t)}))},t.prototype.isValueExpression=function(e){return!!e&&"string"==typeof e&&e.length>0&&"="==e[0]},t.prototype.setValueAndRunExpression=function(e,t,r,n,o){var i=this;void 0===n&&(n=null),void 0===o&&(o=null);var s=function(e){i.runExpressionSetValue(e,r)};this.runDefaultValueExpression(e,n,o,s)||s(t)},t.prototype.convertFuncValuetoQuestionValue=function(e){return o.Helpers.convertValToQuestionVal(e)},t.prototype.runExpressionSetValue=function(e,t){t(this.convertFuncValuetoQuestionValue(e))},t.prototype.runDefaultValueExpression=function(e,t,r,n){var i=this;return void 0===t&&(t=null),void 0===r&&(r=null),!(!e||!this.data||(n||(n=function(e){i.runExpressionSetValue(e,(function(e){o.Helpers.isTwoValueEquals(i.value,e)||(i.value=e)}))}),t||(t=this.data.getFilteredValues()),r||(r=this.data.getFilteredProperties()),e&&e.canRun&&(e.onRunComplete=function(e){null==e&&(e=i.defaultValue),i.isChangingViaDefaultValue=!0,n(e),i.isChangingViaDefaultValue=!1},e.run(t,r)),0))},Object.defineProperty(t.prototype,"comment",{get:function(){return this.getQuestionComment()},set:function(e){if(e){var t=e.toString().trim();t!==e&&(e=t)===this.comment&&this.setPropertyValueDirectly("comment",e)}this.comment!=e&&(this.setQuestionComment(e),this.updateCommentElements())},enumerable:!1,configurable:!0}),t.prototype.getCommentAreaCss=function(e){return void 0===e&&(e=!1),(new f.CssClassBuilder).append("form-group",e).append(this.cssClasses.formGroup,!e).append(this.cssClasses.commentArea).toString()},t.prototype.getQuestionComment=function(){return this.questionComment},t.prototype.setQuestionComment=function(e){this.setNewComment(e)},t.prototype.isEmpty=function(){return this.isValueEmpty(this.value)},Object.defineProperty(t.prototype,"isAnswered",{get:function(){return this.getPropertyValue("isAnswered")},set:function(e){this.setPropertyValue("isAnswered",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsAnswered=function(){var e=this.isAnswered;this.setPropertyValue("isAnswered",this.getIsAnswered()),e!==this.isAnswered&&this.updateQuestionCss()},t.prototype.getIsAnswered=function(){return!this.isEmpty()},Object.defineProperty(t.prototype,"validators",{get:function(){return this.getPropertyValue("validators")},set:function(e){this.setPropertyValue("validators",e)},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},t.prototype.getSupportedValidators=function(){for(var e=[],t=this.getType();t;){var r=d.settings.supportedValidators[t];if(r)for(var n=r.length-1;n>=0;n--)e.splice(0,0,r[n]);t=i.Serializer.findClass(t).parentName}return e},t.prototype.addSupportedValidators=function(e,t){},t.prototype.addConditionObjectsByContext=function(e,t){e.push({name:this.getValueName(),text:this.processedTitle,question:this})},t.prototype.getConditionJson=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null);var r=(new i.JsonObject).toJsonObject(this);return r.type=this.getType(),r},t.prototype.hasErrors=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=null);var r=this.errors.length>0,n=this.checkForErrors(!!t&&!0===t.isOnValueChanged);return e&&(this.survey&&this.survey.beforeSettingQuestionErrors(this,n),this.errors=n),this.updateContainsErrors(),r!=n.length>0&&this.updateQuestionCss(),this.isCollapsed&&t&&e&&n.length>0&&this.expand(),n.length>0},t.prototype.validate=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=null),!this.hasErrors(e,t)},Object.defineProperty(t.prototype,"currentErrorCount",{get:function(){return this.errors.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return null!=this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),t.prototype.addError=function(e){if(e){var t;t="string"==typeof e||e instanceof String?new a.CustomError(e,this.survey):e,this.errors.push(t)}},t.prototype.removeError=function(e){var t=this.errors,r=t.indexOf(e);-1!==r&&t.splice(r,1)},t.prototype.checkForErrors=function(e){var t=new Array;return this.isVisible&&this.canCollectErrors()&&this.collectErrors(t,e),t},t.prototype.canCollectErrors=function(){return!this.isReadOnly},t.prototype.collectErrors=function(e,t){if(this.onCheckForErrors(e,t),!(e.length>0)&&this.canRunValidators(t)){var r=this.runValidators();if(r.length>0){e.length=0;for(var n=0;n<r.length;n++)e.push(r[n])}if(this.survey&&0==e.length){var o=this.fireSurveyValidation();o&&e.push(o)}}},t.prototype.canRunValidators=function(e){return!0},t.prototype.fireSurveyValidation=function(){return this.validateValueCallback?this.validateValueCallback():this.survey?this.survey.validateQuestion(this):null},t.prototype.onCheckForErrors=function(e,t){var r=this;if(!t&&this.hasRequiredError()){var n=new a.AnswerRequiredError(this.requiredErrorText,this);n.onUpdateErrorTextCallback=function(e){e.text=r.requiredErrorText},e.push(n)}},t.prototype.hasRequiredError=function(){return this.isRequired&&this.isEmpty()},Object.defineProperty(t.prototype,"isRunningValidators",{get:function(){return this.getIsRunningValidators()},enumerable:!1,configurable:!0}),t.prototype.getIsRunningValidators=function(){return this.isRunningValidatorsValue},t.prototype.runValidators=function(){var e=this;return this.validatorRunner&&(this.validatorRunner.onAsyncCompleted=null),this.validatorRunner=new l.ValidatorRunner,this.isRunningValidatorsValue=!0,this.validatorRunner.onAsyncCompleted=function(t){e.doOnAsyncCompleted(t)},this.validatorRunner.run(this)},t.prototype.doOnAsyncCompleted=function(e){for(var t=0;t<e.length;t++)this.errors.push(e[t]);this.isRunningValidatorsValue=!1,this.raiseOnCompletedAsyncValidators()},t.prototype.raiseOnCompletedAsyncValidators=function(){this.onCompletedAsyncValidators&&!this.isRunningValidators&&(this.onCompletedAsyncValidators(this.getAllErrors().length>0),this.onCompletedAsyncValidators=null)},t.prototype.setNewValue=function(e){var t=this.isAnswered;this.setNewValueInData(e),this.allowNotifyValueChanged&&this.onValueChanged(),this.isAnswered!=t&&this.updateQuestionCss()},t.prototype.isTextValue=function(){return!1},Object.defineProperty(t.prototype,"isSurveyInputTextUpdate",{get:function(){return!!this.survey&&this.survey.isUpdateValueTextOnTyping},enumerable:!1,configurable:!0}),t.prototype.getDataLocNotification=function(){return!!this.isInputTextUpdate&&"text"},Object.defineProperty(t.prototype,"isInputTextUpdate",{get:function(){return this.isSurveyInputTextUpdate&&this.isTextValue()},enumerable:!1,configurable:!0}),t.prototype.setNewValueInData=function(e){e=this.valueToData(e),this.isValueChangedInSurvey||this.setValueCore(e)},t.prototype.getValueCore=function(){return this.questionValue},t.prototype.setValueCore=function(e){this.setQuestionValue(e),null!=this.data&&this.canSetValueToSurvey()&&(e=this.valueForSurvey,this.data.setValue(this.getValueName(),e,this.getDataLocNotification(),this.allowNotifyValueChanged))},t.prototype.canSetValueToSurvey=function(){return!0},t.prototype.valueFromData=function(e){return e},t.prototype.valueToData=function(e){return e},t.prototype.onValueChanged=function(){},t.prototype.setNewComment=function(e){this.questionComment!==e&&(this.questionComment=e,null!=this.data&&this.data.setComment(this.getValueName(),e,!!this.isSurveyInputTextUpdate&&"text"))},t.prototype.getValidName=function(e){return v(e)},t.prototype.updateValueFromSurvey=function(e){e=this.getUnbindValue(e),this.valueFromDataCallback&&(e=this.valueFromDataCallback(e)),this.setQuestionValue(this.valueFromData(e)),this.updateIsAnswered()},t.prototype.updateCommentFromSurvey=function(e){this.questionComment=e},t.prototype.onChangeQuestionValue=function(e){},t.prototype.setValueChangedDirectly=function(){this.isValueChangedDirectly=!0},t.prototype.setQuestionValue=function(e,t){void 0===t&&(t=!0);var r=this.isTwoValueEquals(this.questionValue,e);r||this.isChangingViaDefaultValue||this.setValueChangedDirectly(),this.questionValue=e,r||this.onChangeQuestionValue(e),!r&&this.allowNotifyValueChanged&&this.fireCallback(this.valueChangedCallback),t&&this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(e){},t.prototype.setVisibleIndex=function(e){return(!this.isVisible||!this.hasTitle&&!d.settings.setQuestionVisibleIndexForHiddenTitle||this.hideNumber&&!d.settings.setQuestionVisibleIndexForHiddenNumber)&&(e=-1),this.setPropertyValue("visibleIndex",e),this.setPropertyValue("no",this.calcNo()),e<0?0:1},t.prototype.removeElement=function(e){return!1},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.supportGoNextPageError=function(){return!0},t.prototype.clearIncorrectValues=function(){},t.prototype.clearOnDeletingContainer=function(){},t.prototype.clearErrors=function(){this.errors=[]},t.prototype.clearUnusedValues=function(){},t.prototype.onAnyValueChanged=function(e){},t.prototype.checkBindings=function(e,t){if(!this.bindings.isEmpty()&&this.data)for(var r=this.bindings.getPropertiesByValueName(e),n=0;n<r.length;n++){var i=r[n];this.isValueEmpty(t)&&o.Helpers.isNumber(this[i])&&(t=0),this[i]=t}},t.prototype.getComponentName=function(){return h.RendererFactory.Instance.getRendererByQuestion(this)},t.prototype.isDefaultRendering=function(){return!!this.customWidget||"default"===this.renderAs||"default"===this.getComponentName()},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getSurveyErrorCustomText(this,e,t):e},t.prototype.getValidatorTitle=function(){return null},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.transformToMobileView=function(){},t.prototype.transformToDesktopView=function(){},t.prototype.needResponsiveWidth=function(){return!1},t.prototype.supportResponsiveness=function(){return!1},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme&&!this.isDesignMode},t.prototype.checkForResponsiveness=function(e){var t=this;this.needResponsiveness()&&(this.isCollapsed?this.registerPropertyChangedHandlers(["state"],(function(){t.isExpanded&&(t.initResponsiveness(e),t.unregisterPropertyChangedHandlers(["state"],"for-responsiveness"))}),"for-responsiveness"):this.initResponsiveness(e))},t.prototype.getObservedElementSelector=function(){return".sd-scrollable-container"},t.prototype.onMobileChanged=function(){this.onMobileChangedCallback&&this.onMobileChangedCallback()},t.prototype.initResponsiveness=function(e){var t=this;if(this.destroyResizeObserver(),e&&this.isDefaultRendering()){var r=this.getObservedElementSelector();if(!r)return;if(!e.querySelector(r))return;var n=!1,o=void 0;this.resizeObserver=new ResizeObserver((function(){var i=e.querySelector(r);!o&&t.isDefaultRendering()&&(o=i.scrollWidth),n=!(n||!Object(m.isContainerVisible)(i))&&t.processResponsiveness(o,Object(m.getElementWidth)(i))})),this.onMobileChangedCallback=function(){setTimeout((function(){var n=e.querySelector(r);t.processResponsiveness(o,Object(m.getElementWidth)(n))}),0)},this.resizeObserver.observe(e)}},t.prototype.getCompactRenderAs=function(){return"default"},t.prototype.getDesktopRenderAs=function(){return"default"},t.prototype.processResponsiveness=function(e,t){if(t=Math.round(t),Math.abs(e-t)>2){var r=this.renderAs;return this.renderAs=e>t?this.getCompactRenderAs():this.getDesktopRenderAs(),r!==this.renderAs}return!1},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.onMobileChangedCallback=void 0,this.renderAs=this.getDesktopRenderAs())},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.destroyResizeObserver()},t.TextPreprocessorValuesMap={title:"processedTitle",require:"requiredText"},t.questionCounter=100,b([Object(i.property)({defaultValue:!1,onSet:function(e,t){t.setIsMobile(e)}})],t.prototype,"isMobile",void 0),b([Object(i.property)()],t.prototype,"forceIsInputReadOnly",void 0),b([Object(i.property)({localizable:!0})],t.prototype,"commentPlaceholder",void 0),b([Object(i.property)()],t.prototype,"renderAs",void 0),b([Object(i.property)({defaultValue:!1})],t.prototype,"inMatrixMode",void 0),t}(s.SurveyElement);function v(e){if(!e)return e;for(e=e.trim().replace(/[\{\}]+/g,"");e&&e[0]===d.settings.expressionDisableConversionChar;)e=e.substring(1);return e}i.Serializer.addClass("question",[{name:"!name",onSettingValue:function(e,t){return v(t)}},{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"visible:switch",default:!0},{name:"useDisplayValuesInDynamicTexts:boolean",alternativeName:"useDisplayValuesInTitle",default:!0,layout:"row"},"visibleIf:condition",{name:"width"},{name:"minWidth",defaultFunc:function(){return d.settings.minWidth}},{name:"maxWidth",defaultFunc:function(){return d.settings.maxWidth}},{name:"startWithNewLine:boolean",default:!0,layout:"row"},{name:"indent:number",default:0,choices:[0,1,2,3],layout:"row"},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map((function(e){return{value:e.name,text:e.title}})):[]}},{name:"title:text",serializationProperty:"locTitle",layout:"row",dependsOn:"name",onPropertyEditorUpdate:function(e,t){e&&t&&(t.placeholder=e.name)}},{name:"titleLocation",default:"default",choices:["default","top","bottom","left","hidden"],layout:"row"},{name:"description:text",serializationProperty:"locDescription",layout:"row"},{name:"descriptionLocation",default:"default",choices:["default","underInput","underTitle"]},{name:"hideNumber:boolean",dependsOn:"titleLocation",visibleIf:function(e){if(!e)return!0;if("hidden"===e.titleLocation)return!1;var t=e?e.parent:null;if(t&&"off"===t.showQuestionNumbers)return!1;var r=e?e.survey:null;return!r||"off"!==r.showQuestionNumbers||!!t&&"onpanel"===t.showQuestionNumbers}},{name:"valueName",onSettingValue:function(e,t){return v(t)}},"enableIf:condition","defaultValue:value",{name:"defaultValueExpression:expression",category:"logic"},"correctAnswer:value",{name:"clearIfInvisible",default:"default",choices:["default","none","onComplete","onHidden"]},"isRequired:switch","requiredIf:condition",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:switch",{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"bindings:bindings",serializationProperty:"bindings",visibleIf:function(e){return e.bindings.getNames().length>0}},{name:"renderAs",default:"default",visible:!1},{name:"showCommentArea",visible:!1,default:!1,alternativeName:"hasComment",category:"general"},{name:"commentText",dependsOn:"showCommentArea",visibleIf:function(e){return e.showCommentArea},serializationProperty:"locCommentText",layout:"row"},{name:"commentPlaceholder",alternativeName:"commentPlaceHolder",serializationProperty:"locCommentPlaceholder",dependsOn:"showCommentArea",visibleIf:function(e){return e.hasComment}}]),i.Serializer.addAlterNativeClassName("question","questionbase")},"./src/questionCustomWidgets.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionCustomWidget",(function(){return o})),r.d(t,"CustomWidgetCollection",(function(){return i}));var n=r("./src/base.ts"),o=function(){function e(e,t){this.name=e,this.widgetJson=t,this.htmlTemplate=t.htmlTemplate?t.htmlTemplate:""}return e.prototype.afterRender=function(e,t){var r=this;this.widgetJson.afterRender&&(e.localeChangedCallback=function(){r.widgetJson.willUnmount&&r.widgetJson.willUnmount(e,t),r.widgetJson.afterRender(e,t)},this.widgetJson.afterRender(e,t))},e.prototype.willUnmount=function(e,t){this.widgetJson.willUnmount&&this.widgetJson.willUnmount(e,t)},e.prototype.getDisplayValue=function(e,t){return void 0===t&&(t=void 0),this.widgetJson.getDisplayValue?this.widgetJson.getDisplayValue(e,t):null},e.prototype.isFit=function(e){return!(!this.isLibraryLoaded()||!this.widgetJson.isFit)&&this.widgetJson.isFit(e)},Object.defineProperty(e.prototype,"canShowInToolbox",{get:function(){return!1!==this.widgetJson.showInToolbox&&"customtype"==i.Instance.getActivatedBy(this.name)&&(!this.widgetJson.widgetIsLoaded||this.widgetJson.widgetIsLoaded())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showInToolbox",{get:function(){return!1!==this.widgetJson.showInToolbox},set:function(e){this.widgetJson.showInToolbox=e},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.widgetJson.init&&this.widgetJson.init()},e.prototype.activatedByChanged=function(e){this.isLibraryLoaded()&&this.widgetJson.activatedByChanged&&this.widgetJson.activatedByChanged(e)},e.prototype.isLibraryLoaded=function(){return!this.widgetJson.widgetIsLoaded||1==this.widgetJson.widgetIsLoaded()},Object.defineProperty(e.prototype,"isDefaultRender",{get:function(){return this.widgetJson.isDefaultRender},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pdfQuestionType",{get:function(){return this.widgetJson.pdfQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pdfRender",{get:function(){return this.widgetJson.pdfRender},enumerable:!1,configurable:!0}),e}(),i=function(){function e(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new n.Event}return Object.defineProperty(e.prototype,"widgets",{get:function(){return this.widgetsValues},enumerable:!1,configurable:!0}),e.prototype.add=function(e,t){void 0===t&&(t="property"),this.addCustomWidget(e,t)},e.prototype.addCustomWidget=function(e,t){void 0===t&&(t="property");var r=e.name;r||(r="widget_"+this.widgets.length+1);var n=new o(r,e);return this.widgetsValues.push(n),n.init(),this.widgetsActivatedBy[r]=t,n.activatedByChanged(t),this.onCustomWidgetAdded.fire(n,null),n},e.prototype.getActivatedBy=function(e){return this.widgetsActivatedBy[e]||"property"},e.prototype.setActivatedBy=function(e,t){if(e&&t){var r=this.getCustomWidgetByName(e);r&&(this.widgetsActivatedBy[e]=t,r.activatedByChanged(t))}},e.prototype.clear=function(){this.widgetsValues=[]},e.prototype.getCustomWidgetByName=function(e){for(var t=0;t<this.widgets.length;t++)if(this.widgets[t].name==e)return this.widgets[t];return null},e.prototype.getCustomWidget=function(e){for(var t=0;t<this.widgetsValues.length;t++)if(this.widgetsValues[t].isFit(e))return this.widgetsValues[t];return null},e.Instance=new e,e}()},"./src/question_baseselect.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionSelectBase",(function(){return y})),r.d(t,"QuestionCheckboxBase",(function(){return v}));var n,o=r("./src/jsonobject.ts"),i=r("./src/survey.ts"),s=r("./src/question.ts"),a=r("./src/itemvalue.ts"),l=r("./src/surveyStrings.ts"),u=r("./src/error.ts"),c=r("./src/choicesRestful.ts"),p=r("./src/conditions.ts"),d=r("./src/helpers.ts"),h=r("./src/settings.ts"),f=r("./src/utils/cssClassBuilder.ts"),m=r("./src/utils/utils.ts"),g=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),b=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},y=function(e){function t(t){var r=e.call(this,t)||this;r.otherItemValue=new a.ItemValue("other"),r.dependedQuestions=[],r.noneItemValue=new a.ItemValue(h.settings.noneItemValue),r.isSettingDefaultValue=!1,r.isSettingComment=!1,r.isRunningChoices=!1,r.isFirstLoadChoicesFromUrl=!0,r.isUpdatingChoicesDependedQuestions=!1,r.prevIsOtherSelected=!1;var n=r.createLocalizableString("noneText",r.noneItemValue,!0,"noneItemText");r.noneItemValue.locOwner=r,r.noneItemValue.setLocText(n),r.createItemValues("choices"),r.registerPropertyChangedHandlers(["choices"],(function(){r.filterItems()||r.onVisibleChoicesChanged()})),r.registerPropertyChangedHandlers(["choicesFromQuestion","choicesFromQuestionMode","showNoneItem"],(function(){r.onVisibleChoicesChanged()})),r.registerPropertyChangedHandlers(["hideIfChoicesEmpty"],(function(){r.onVisibleChanged()})),r.createNewArray("visibleChoices"),r.setNewRestfulProperty();var o=r.createLocalizableString("otherText",r.otherItemValue,!0,"otherItemText");return r.createLocalizableString("otherErrorText",r,!0,"otherRequiredError"),r.otherItemValue.locOwner=r,r.otherItemValue.setLocText(o),r.choicesByUrl.createItemValue=function(e){return r.createItemValue(e)},r.choicesByUrl.beforeSendRequestCallback=function(){r.onBeforeSendRequest()},r.choicesByUrl.getResultCallback=function(e){r.onLoadChoicesFromUrl(e)},r.choicesByUrl.updateResultCallback=function(e,t){return r.survey?r.survey.updateChoicesFromServer(r,e,t):e},r}return g(t,e),t.prototype.getType=function(){return"selectbase"},t.prototype.dispose=function(){e.prototype.dispose.call(this);for(var t=0;t<this.dependedQuestions.length;t++)this.dependedQuestions[t].choicesFromQuestion="";this.removeFromDependedQuestion(this.getQuestionWithChoices())},Object.defineProperty(t.prototype,"otherId",{get:function(){return this.id+"_other"},enumerable:!1,configurable:!0}),t.prototype.getCommentElementsId=function(){return[this.commentId,this.otherId]},t.prototype.getItemValueType=function(){return"itemvalue"},t.prototype.createItemValue=function(e,t){var r=o.Serializer.createClass(this.getItemValueType(),e);return t&&(r.text=t),r},t.prototype.supportGoNextPageError=function(){return!this.isOtherSelected||!!this.otherValue},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),"none"!==this.choicesOrder&&this.updateVisibleChoices()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.choicesFromUrl&&(a.ItemValue.locStrsChanged(this.choicesFromUrl),a.ItemValue.locStrsChanged(this.visibleChoices))},Object.defineProperty(t.prototype,"otherValue",{get:function(){return this.showCommentArea?this.otherValueCore:this.comment},set:function(e){this.showCommentArea?this.setOtherValueInternally(e):this.comment=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherValueCore",{get:function(){return this.getPropertyValue("otherValue")},set:function(e){this.setPropertyValue("otherValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherItem",{get:function(){return this.otherItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.hasOther&&this.getHasOther(this.renderedValue)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNoneSelected",{get:function(){return this.hasNone&&this.getIsItemValue(this.renderedValue,this.noneItem)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNoneItem",{get:function(){return this.getPropertyValue("showNoneItem")},set:function(e){this.setPropertyValue("showNoneItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasNone",{get:function(){return this.showNoneItem},set:function(e){this.showNoneItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneItem",{get:function(){return this.noneItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneText",{get:function(){return this.getLocalizableStringText("noneText")},set:function(e){this.setLocalizableStringText("noneText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoneText",{get:function(){return this.getLocalizableString("noneText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesVisibleIf",{get:function(){return this.getPropertyValue("choicesVisibleIf","")},set:function(e){this.setPropertyValue("choicesVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesEnableIf",{get:function(){return this.getPropertyValue("choicesEnableIf","")},set:function(e){this.setPropertyValue("choicesEnableIf",e),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){this.filterItems()},t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.isUsingCarrayForward||(this.runItemsEnableCondition(t,r),this.runItemsCondition(t,r))},t.prototype.isTextValue=function(){return!0},t.prototype.setDefaultValue=function(){this.isSettingDefaultValue=!this.isValueEmpty(this.defaultValue)&&this.hasUnknownValue(this.defaultValue),this.prevOtherValue=void 0,e.prototype.setDefaultValue.call(this),this.isSettingDefaultValue=!1},t.prototype.getIsMultipleValue=function(){return!1},t.prototype.convertDefaultValue=function(e){if(null==e||null==e)return e;if(this.getIsMultipleValue()){if(!Array.isArray(e))return[e]}else if(Array.isArray(e)&&e.length>0)return e[0];return e},t.prototype.filterItems=function(){if(this.isLoadingFromJson||!this.data||this.areInvisibleElementsShowing)return!1;var e=this.getDataFilteredValues(),t=this.getDataFilteredProperties();return this.runItemsEnableCondition(e,t),this.runItemsCondition(e,t)},t.prototype.runItemsCondition=function(e,t){this.setConditionalChoicesRunner();var r=this.runConditionsForItems(e,t);return this.filteredChoicesValue&&this.filteredChoicesValue.length===this.activeChoices.length&&(this.filteredChoicesValue=void 0),r&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues()),r},t.prototype.runItemsEnableCondition=function(e,t){var r=this;this.setConditionalEnableChoicesRunner(),a.ItemValue.runEnabledConditionsForItems(this.activeChoices,this.conditionChoicesEnableIfRunner,e,t,(function(e,t){return t&&r.onEnableItemCallBack(e)}))&&this.clearDisabledValues(),this.onAfterRunItemsEnableCondition()},t.prototype.onAfterRunItemsEnableCondition=function(){},t.prototype.onEnableItemCallBack=function(e){return!0},t.prototype.onSelectedItemValuesChangedHandler=function(e){},t.prototype.getSingleSelectedItem=function(){var e=this.selectedItemValues;if(this.isEmpty())return null;var t=a.ItemValue.getItemByValue(this.visibleChoices,this.value);return this.onGetSingleSelectedItem(t),t||e||this.updateSelectedItemValues(),t||e||(this.isOtherSelected?this.otherItem:this.createItemValue(this.value))},t.prototype.onGetSingleSelectedItem=function(e){},t.prototype.setConditionalChoicesRunner=function(){this.choicesVisibleIf?(this.conditionChoicesVisibleIfRunner||(this.conditionChoicesVisibleIfRunner=new p.ConditionRunner(this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},t.prototype.setConditionalEnableChoicesRunner=function(){this.choicesEnableIf?(this.conditionChoicesEnableIfRunner||(this.conditionChoicesEnableIfRunner=new p.ConditionRunner(this.choicesEnableIf)),this.conditionChoicesEnableIfRunner.expression=this.choicesEnableIf):this.conditionChoicesEnableIfRunner=null},t.prototype.canSurveyChangeItemVisibility=function(){return!!this.survey&&this.survey.canChangeChoiceItemsVisibility()},t.prototype.changeItemVisisbility=function(){var e=this;return this.canSurveyChangeItemVisibility()?function(t,r){return e.survey.getChoiceItemVisibility(e,t,r)}:null},t.prototype.runConditionsForItems=function(e,t){this.filteredChoicesValue=[];var r=this.changeItemVisisbility();return a.ItemValue.runConditionsForItems(this.activeChoices,this.getFilteredChoices(),this.areInvisibleElementsShowing?null:this.conditionChoicesVisibleIfRunner,e,t,!this.survey||!this.survey.areInvisibleElementsShowing,(function(e,t){return r?r(e,t):t}))},t.prototype.getHasOther=function(e){return this.getIsItemValue(e,this.otherItem)},t.prototype.getIsItemValue=function(e,t){return e===t.value},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.rendredValueToDataCore(this.value)},enumerable:!1,configurable:!0}),t.prototype.createRestful=function(){return new c.ChoicesRestful},t.prototype.setNewRestfulProperty=function(){this.setPropertyValue("choicesByUrl",this.createRestful()),this.choicesByUrl.owner=this,this.choicesByUrl.loadingOwner=this},Object.defineProperty(t.prototype,"autoOtherMode",{get:function(){return this.getPropertyValue("autoOtherMode")},set:function(e){this.setPropertyValue("autoOtherMode",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionComment=function(){return this.showCommentArea?e.prototype.getQuestionComment.call(this):this.otherValueCore?this.otherValueCore:this.hasComment||this.getStoreOthersAsComment()?e.prototype.getQuestionComment.call(this):this.otherValueCore},t.prototype.selectOtherValueFromComment=function(e){this.value=e?this.otherItem.value:void 0},t.prototype.setQuestionComment=function(t){this.showCommentArea?e.prototype.setQuestionComment.call(this,t):(this.onUpdateCommentOnAutoOtherMode(t),this.getStoreOthersAsComment()?e.prototype.setQuestionComment.call(this,t):this.setOtherValueInternally(t),this.updateChoicesDependedQuestions())},t.prototype.onUpdateCommentOnAutoOtherMode=function(e){if(this.autoOtherMode){this.prevOtherValue=void 0;var t=this.isOtherSelected;(!t&&e||t&&!e)&&this.selectOtherValueFromComment(!!e)}},t.prototype.setOtherValueInternally=function(e){this.isSettingComment||e==this.otherValueCore||(this.isSettingComment=!0,this.otherValueCore=e,this.isOtherSelected&&!this.isRenderedValueSetting&&(this.value=this.rendredValueToData(this.renderedValue)),this.isSettingComment=!1)},t.prototype.clearValue=function(){e.prototype.clearValue.call(this),this.prevOtherValue=void 0},t.prototype.updateCommentFromSurvey=function(t){e.prototype.updateCommentFromSurvey.call(this,t),this.prevOtherValue=void 0},Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.getPropertyValue("renderedValue",null)},set:function(e){this.setPropertyValue("renderedValue",e),e=this.rendredValueToData(e),this.isTwoValueEquals(e,this.value)||(this.value=e)},enumerable:!1,configurable:!0}),t.prototype.setQuestionValue=function(t,r,n){if(void 0===r&&(r=!0),void 0===n&&(n=!0),!this.isLoadingFromJson&&!this.isTwoValueEquals(this.value,t)&&(e.prototype.setQuestionValue.call(this,t,r),this.setPropertyValue("renderedValue",this.rendredValueFromData(t)),this.updateChoicesDependedQuestions(),!this.hasComment&&n)){var o=this.isOtherSelected;if(o&&this.prevOtherValue){var i=this.prevOtherValue;this.prevOtherValue=void 0,this.otherValue=i}!o&&this.otherValue&&(this.getStoreOthersAsComment()&&!this.autoOtherMode&&(this.prevOtherValue=this.otherValue),this.otherValue="")}},t.prototype.setNewValue=function(t){t=this.valueFromData(t),(this.choicesByUrl.isRunning||this.choicesByUrl.isWaitingForParameters)&&this.isValueEmpty(t)||(this.cachedValueForUrlRequests=t),e.prototype.setNewValue.call(this,t)},t.prototype.valueFromData=function(t){var r=a.ItemValue.getItemByValue(this.activeChoices,t);return r?r.value:e.prototype.valueFromData.call(this,t)},t.prototype.rendredValueFromData=function(e){return this.getStoreOthersAsComment()?e:this.renderedValueFromDataCore(e)},t.prototype.rendredValueToData=function(e){return this.getStoreOthersAsComment()?e:this.rendredValueToDataCore(e)},t.prototype.renderedValueFromDataCore=function(e){return this.hasUnknownValue(e,!0,!1)?(this.otherValue=e,this.otherItem.value):this.valueFromData(e)},t.prototype.rendredValueToDataCore=function(e){return e==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()&&(e=this.otherValue),e},t.prototype.needConvertRenderedOtherToDataValue=function(){var e=this.otherValue;return!!e&&!!(e=e.trim())&&this.hasUnknownValue(e,!0,!1)},t.prototype.updateSelectedItemValues=function(){this.waitingGetChoiceDisplayValueResponse||(this.getIsMultipleValue()?this.updateMultipleSelectedItemValues():this.updateSingleSelectedItemValues())},t.prototype.updateSingleSelectedItemValues=function(){var e=this;!this.survey||this.isEmpty()||a.ItemValue.getItemByValue(this.choices,this.value)||(this.waitingGetChoiceDisplayValueResponse=!0,this.survey.getChoiceDisplayValue({question:this,values:[this.value],setItems:function(t){e.waitingGetChoiceDisplayValueResponse=!1,t&&t.length&&(e.selectedItemValues=e.createItemValue(e.value,t[0]))}}))},t.prototype.updateMultipleSelectedItemValues=function(){var e=this,t=this.value,r=t.some((function(t){return!a.ItemValue.getItemByValue(e.choices,t)}));this.survey&&!this.isEmpty()&&r&&(this.waitingGetChoiceDisplayValueResponse=!0,this.survey.getChoiceDisplayValue({question:this,values:t,setItems:function(t){e.waitingGetChoiceDisplayValueResponse=!1,t&&t.length&&(e.selectedItemValues=t.map((function(t,r){return e.createItemValue(e.value[r],t)})))}}))},t.prototype.hasUnknownValue=function(e,t,r,n){if(void 0===t&&(t=!1),void 0===r&&(r=!0),void 0===n&&(n=!1),!n&&this.isValueEmpty(e))return!1;if(t&&e==this.otherItem.value)return!1;if(this.hasNone&&e==this.noneItem.value)return!1;var o=r?this.getFilteredChoices():this.activeChoices;return null==a.ItemValue.getItemByValue(o,e)},t.prototype.isValueDisabled=function(e){var t=a.ItemValue.getItemByValue(this.getFilteredChoices(),e);return!!t&&!t.isEnabled},Object.defineProperty(t.prototype,"choicesByUrl",{get:function(){return this.getPropertyValue("choicesByUrl")},set:function(e){e&&(this.setNewRestfulProperty(),this.choicesByUrl.fromJSON(e.toJSON()))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestion",{get:function(){return this.getPropertyValue("choicesFromQuestion")},set:function(e){var t=this.getQuestionWithChoices();t&&t.removeFromDependedQuestion(this),this.setPropertyValue("choicesFromQuestion",e)},enumerable:!1,configurable:!0}),t.prototype.addIntoDependedQuestion=function(e){!e||e.dependedQuestions.indexOf(this)>-1||e.dependedQuestions.push(this)},t.prototype.removeFromDependedQuestion=function(e){if(e){var t=e.dependedQuestions.indexOf(this);t>-1&&e.dependedQuestions.splice(t,1)}},Object.defineProperty(t.prototype,"choicesFromQuestionMode",{get:function(){return this.getPropertyValue("choicesFromQuestionMode")},set:function(e){this.setPropertyValue("choicesFromQuestionMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfChoicesEmpty",{get:function(){return this.getPropertyValue("hideIfChoicesEmpty")},set:function(e){this.setPropertyValue("hideIfChoicesEmpty",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues",!1)},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"choicesOrder",{get:function(){return this.getPropertyValue("choicesOrder")},set:function(e){(e=e.toLowerCase())!=this.choicesOrder&&(this.setPropertyValue("choicesOrder",e),this.onVisibleChoicesChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherText",{get:function(){return this.getLocalizableStringText("otherText")},set:function(e){this.setLocalizableStringText("otherText",e),this.onVisibleChoicesChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherText",{get:function(){return this.getLocalizableString("otherText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherPlaceHolder",{get:function(){return this.otherPlaceholder},set:function(e){this.otherPlaceholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherErrorText",{get:function(){return this.getLocalizableStringText("otherErrorText")},set:function(e){this.setLocalizableStringText("otherErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherErrorText",{get:function(){return this.getLocalizableString("otherErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.getPropertyValue("visibleChoices")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabledChoices",{get:function(){for(var e=[],t=this.visibleChoices,r=0;r<t.length;r++)t[r].isEnabled&&e.push(t[r]);return e},enumerable:!1,configurable:!0}),t.prototype.updateVisibleChoices=function(){if(!this.isLoadingFromJson){var e=new Array,t=this.calcVisibleChoices();t||(t=[]);for(var r=0;r<t.length;r++)e.push(t[r]);this.setPropertyValue("visibleChoices",e)}},t.prototype.calcVisibleChoices=function(){if(this.canUseFilteredChoices())return this.getFilteredChoices();var e=this.sortVisibleChoices(this.getFilteredChoices().slice());return this.addToVisibleChoices(e,this.isAddDefaultItems),e},t.prototype.canUseFilteredChoices=function(){return!this.isAddDefaultItems&&!this.hasNone&&!this.hasOther&&"none"==this.choicesOrder},t.prototype.setCanShowOptionItemCallback=function(e){this.canShowOptionItemCallback=e,e&&this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"newItem",{get:function(){return this.newItemValue},enumerable:!1,configurable:!0}),t.prototype.addToVisibleChoices=function(e,t){t&&(this.newItemValue||(this.newItemValue=this.createItemValue("newitem")),this.canShowOptionItem(this.newItemValue,t,!1)&&e.push(this.newItemValue)),this.supportNone()&&this.canShowOptionItem(this.noneItem,t,this.hasNone)&&e.push(this.noneItem),this.supportOther()&&this.canShowOptionItem(this.otherItem,t,this.hasOther)&&e.push(this.otherItem)},t.prototype.canShowOptionItem=function(e,t,r){var n=t&&(!this.canShowOptionItemCallback||this.canShowOptionItemCallback(e))||r;return this.canSurveyChangeItemVisibility()?this.changeItemVisisbility()(e,n):n},t.prototype.isItemInList=function(e){return e===this.otherItem?this.hasOther:e===this.noneItem?this.hasNone:e!==this.newItemValue},Object.defineProperty(t.prototype,"isAddDefaultItems",{get:function(){return h.settings.supportCreatorV2&&h.settings.showDefaultItemsInCreatorV2&&this.isDesignMode&&!this.customWidget&&!this.isContentElement},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(t){var r=this;void 0===t&&(t={includeEmpty:!0,includeQuestionTypes:!1});var n=e.prototype.getPlainData.call(this,t);if(n){var o=Array.isArray(this.value)?this.value:[this.value];n.isNode=!0,n.data=(n.data||[]).concat(o.map((function(e,n){var o=a.ItemValue.getItemByValue(r.visibleChoices,e),i={name:n,title:"Choice",value:e,displayValue:r.getChoicesDisplayValue(r.visibleChoices,e),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1};return o&&(t.calculations||[]).forEach((function(e){i[e.propertyName]=o[e.propertyName]})),r.isOtherSelected&&r.otherItemValue===o&&(i.isOther=!0,i.displayValue=r.otherValue),i})))}return n},t.prototype.getDisplayValueCore=function(e,t){return this.getChoicesDisplayValue(this.visibleChoices,t)},t.prototype.getDisplayValueEmpty=function(){return a.ItemValue.getTextOrHtmlByValue(this.visibleChoices,void 0)},t.prototype.getChoicesDisplayValue=function(e,t){if(t==this.otherItemValue.value)return this.otherValue?this.otherValue:this.locOtherText.textOrHtml;var r=a.ItemValue.getTextOrHtmlByValue(e,t);return""==r&&t?t:r},t.prototype.getDisplayArrayValue=function(e,t,r){for(var n=this.visibleChoices,o=[],i=0;i<t.length;i++){var s=r?r(i):t[i],a=this.getChoicesDisplayValue(n,s);a&&o.push(a)}return o.join(", ")},t.prototype.getFilteredChoices=function(){return this.filteredChoicesValue?this.filteredChoicesValue:this.activeChoices},Object.defineProperty(t.prototype,"activeChoices",{get:function(){var e=this.getQuestionWithChoices();return this.isUsingCarrayForward=!!e,this.isUsingCarrayForward?(this.addIntoDependedQuestion(e),this.getChoicesFromQuestion(e)):this.choicesFromUrl?this.choicesFromUrl:this.getChoices()},enumerable:!1,configurable:!0}),t.prototype.getQuestionWithChoices=function(){if(!this.choicesFromQuestion||!this.data)return null;var e=this.data.findQuestionByName(this.choicesFromQuestion);return e&&e.visibleChoices&&Array.isArray(e.dependedQuestions)&&e!==this?e:null},t.prototype.getChoicesFromQuestion=function(e){for(var t=[],r="selected"==this.choicesFromQuestionMode||"unselected"!=this.choicesFromQuestionMode&&void 0,n=e.visibleChoices,o=0;o<n.length;o++)if(!this.isBuiltInChoice(n[o],e))if(void 0!==r){var i=e.isItemSelected(n[o]);(i&&r||!i&&!r)&&t.push(this.copyChoiceItem(n[o]))}else t.push(this.copyChoiceItem(n[o]));return"selected"===this.choicesFromQuestionMode&&e.isOtherSelected&&e.comment&&t.push(this.createItemValue(e.otherItem.value,e.comment)),t},t.prototype.copyChoiceItem=function(e){var t=this.createItemValue(e.value);return t.setData(e),t},Object.defineProperty(t.prototype,"hasActiveChoices",{get:function(){var e=this.visibleChoices;e&&0!=e.length||(this.onVisibleChoicesChanged(),e=this.visibleChoices);for(var t=0;t<e.length;t++)if(!this.isBuiltInChoice(e[t],this))return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.isHeadChoice=function(e,t){return!1},t.prototype.isFootChoice=function(e,t){return e===t.noneItem||e===t.otherItem||e===t.newItemValue},t.prototype.isBuiltInChoice=function(e,t){return this.isHeadChoice(e,t)||this.isFootChoice(e,t)},t.prototype.getChoices=function(){return this.choices},t.prototype.supportOther=function(){return this.isSupportProperty("showOtherItem")},t.prototype.supportNone=function(){return this.isSupportProperty("showNoneItem")},t.prototype.isSupportProperty=function(e){return!this.isDesignMode||this.getPropertyByName(e).visible},t.prototype.onCheckForErrors=function(t,r){var n=this;if(e.prototype.onCheckForErrors.call(this,t,r),this.hasOther&&this.isOtherSelected&&!this.otherValue){var o=new u.OtherEmptyError(this.otherErrorText,this);o.onUpdateErrorTextCallback=function(e){e.text=n.otherErrorText},t.push(o)}},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r),this.runChoicesByUrl(),this.isAddDefaultItems&&this.updateVisibleChoices()},t.prototype.setSurveyCore=function(t){e.prototype.setSurveyCore.call(this,t),t&&this.choicesFromQuestion&&this.onVisibleChoicesChanged()},t.prototype.getStoreOthersAsComment=function(){return!this.isSettingDefaultValue&&!this.showCommentArea&&(!0===this.storeOthersAsComment||"default"==this.storeOthersAsComment&&(null==this.survey||this.survey.storeOthersAsComment)||!this.choicesByUrl.isEmpty&&!this.choicesFromUrl)},t.prototype.onSurveyLoad=function(){this.runChoicesByUrl(),this.onVisibleChoicesChanged(),e.prototype.onSurveyLoad.call(this)},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t),t!=this.getValueName()&&this.runChoicesByUrl(),t&&t==this.choicesFromQuestion&&this.onVisibleChoicesChanged()},t.prototype.updateValueFromSurvey=function(t){var r="";this.hasOther&&!this.isRunningChoices&&!this.choicesByUrl.isRunning&&this.getStoreOthersAsComment()&&(this.hasUnknownValue(t)&&!this.getHasOther(t)?(r=this.getCommentFromValue(t),t=this.setOtherValueIntoValue(t)):r=this.data.getComment(this.getValueName())),e.prototype.updateValueFromSurvey.call(this,t),r&&this.setNewComment(r)},t.prototype.getCommentFromValue=function(e){return e},t.prototype.setOtherValueIntoValue=function(e){return this.otherItem.value},t.prototype.onOtherValueInput=function(e){this.isInputTextUpdate?e.target&&(this.otherValue=e.target.value):this.updateCommentElements()},t.prototype.onOtherValueChange=function(e){this.otherValue=e.target.value,this.otherValue!==e.target.value&&(e.target.value=this.otherValue)},t.prototype.runChoicesByUrl=function(){if(this.choicesByUrl&&!this.isLoadingFromJson&&!this.isRunningChoices){var e=this.surveyImpl?this.surveyImpl.getTextProcessor():this.textProcessor;e||(e=this.survey),e&&(this.isReadyValue=this.isChoicesLoaded||this.choicesByUrl.isEmpty,this.isRunningChoices=!0,this.choicesByUrl.run(e),this.isRunningChoices=!1)}},t.prototype.onBeforeSendRequest=function(){!0!==h.settings.disableOnGettingChoicesFromWeb||this.isReadOnly||(this.enableOnLoadingChoices=!0,this.readOnly=!0)},t.prototype.onLoadChoicesFromUrl=function(e){if(this.enableOnLoadingChoices&&(this.readOnly=!1),!this.isReadOnly){var t=[];this.choicesByUrl&&this.choicesByUrl.error&&t.push(this.choicesByUrl.error),this.errors=t}var r=null,n=!0;this.isFirstLoadChoicesFromUrl&&!this.cachedValueForUrlRequests&&this.defaultValue&&(this.cachedValueForUrlRequests=this.defaultValue,n=!1),this.isValueEmpty(this.cachedValueForUrlRequests)&&(this.cachedValueForUrlRequests=this.value),this.isFirstLoadChoicesFromUrl=!1;var o=this.createCachedValueForUrlRequests(this.cachedValueForUrlRequests,n);if(e&&(e.length>0||this.choicesByUrl.allowEmptyResponse)&&(r=new Array,a.ItemValue.setData(r,e)),r)for(var i=0;i<r.length;i++)r[i].locOwner=this;if(this.choicesFromUrl=r,this.filterItems(),this.onVisibleChoicesChanged(),r){var s=this.updateCachedValueForUrlRequests(o,r);if(s&&!this.isReadOnly){var l=!this.isTwoValueEquals(this.value,s.value);try{this.isValueEmpty(s.value)||(this.allowNotifyValueChanged=!1,this.setQuestionValue(void 0,!0,!1)),this.allowNotifyValueChanged=l,l?this.value=s.value:this.setQuestionValue(s.value)}finally{this.allowNotifyValueChanged=!0}}}this.choicesLoaded()},t.prototype.createCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var r=[],n=0;n<e.length;n++)r.push(this.createCachedValueForUrlRequests(e[n],!0));return r}return{value:e,isExists:!t||!this.hasUnknownValue(e)}},t.prototype.updateCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var r=[],n=0;n<e.length;n++){var o=this.updateCachedValueForUrlRequests(e[n],t);if(o&&!this.isValueEmpty(o.value)){var i=o.value;(s=a.ItemValue.getItemByValue(t,o.value))&&(i=s.value),r.push(i)}}return{value:r}}var s,l=e.isExists&&this.hasUnknownValue(e.value)?null:e.value;return(s=a.ItemValue.getItemByValue(t,l))&&(l=s.value),{value:l}},t.prototype.updateChoicesDependedQuestions=function(){if(!this.isLoadingFromJson&&!this.isUpdatingChoicesDependedQuestions){this.isUpdatingChoicesDependedQuestions=!0;for(var e=0;e<this.dependedQuestions.length;e++){var t=this.dependedQuestions[e];t.onVisibleChoicesChanged(),t.clearIncorrectValuesCore()}this.isUpdatingChoicesDependedQuestions=!1}},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.updateChoicesDependedQuestions()},t.prototype.onVisibleChoicesChanged=function(){this.isLoadingFromJson||(this.updateVisibleChoices(),this.onVisibleChanged(),this.visibleChoicesChangedCallback&&this.visibleChoicesChangedCallback(),this.updateChoicesDependedQuestions())},t.prototype.isVisibleCore=function(){var t=e.prototype.isVisibleCore.call(this);if(!this.hideIfChoicesEmpty||!t)return t;var r=this.getFilteredChoices();return!r||r.length>0},t.prototype.sortVisibleChoices=function(e){var t=this.choicesOrder.toLowerCase();return"asc"==t?this.sortArray(e,1):"desc"==t?this.sortArray(e,-1):"random"==t?this.randomizeArray(e):e},t.prototype.sortArray=function(e,t){return e.sort((function(e,r){return d.Helpers.compareStrings(e.calculatedText,r.calculatedText)*t}))},t.prototype.randomizeArray=function(e){return d.Helpers.randomizeArray(e)},t.prototype.clearIncorrectValues=function(){this.hasValueToClearIncorrectValues()&&(this.survey&&this.survey.questionCountByValueName(this.getValueName())>1||(!this.choicesByUrl||this.choicesByUrl.isEmpty||this.choicesFromUrl&&0!=this.choicesFromUrl.length)&&(this.clearIncorrectValuesCallback?this.clearIncorrectValuesCallback():this.clearIncorrectValuesCore()))},t.prototype.hasValueToClearIncorrectValues=function(){return!(this.survey&&this.survey.keepIncorrectValues||this.keepIncorrectValues||this.isEmpty())},t.prototype.clearValueIfInvisibleCore=function(){e.prototype.clearValueIfInvisibleCore.call(this),this.clearIncorrectValues()},t.prototype.isItemSelected=function(e){return e===this.otherItem?this.isOtherSelected:this.isItemSelectedCore(e)},t.prototype.isItemSelectedCore=function(e){return e.value===this.value},t.prototype.clearDisabledValues=function(){this.survey&&this.survey.clearValueOnDisableItems&&this.clearDisabledValuesCore()},t.prototype.clearIncorrectValuesCore=function(){var e=this.value;this.canClearValueAnUnknow(e)&&this.clearValue()},t.prototype.canClearValueAnUnknow=function(e){return!(!this.getStoreOthersAsComment()&&this.isOtherSelected)&&this.hasUnknownValue(e,!0,!0,!0)},t.prototype.clearDisabledValuesCore=function(){this.isValueDisabled(this.value)&&this.clearValue()},t.prototype.clearUnusedValues=function(){e.prototype.clearUnusedValues.call(this),this.isOtherSelected||(this.otherValue=""),this.showCommentArea||this.getStoreOthersAsComment()||this.isOtherSelected||(this.comment="")},t.prototype.getColumnClass=function(){return(new f.CssClassBuilder).append(this.cssClasses.column).append("sv-q-column-"+this.colCount,this.hasColumns).toString()},t.prototype.getItemIndex=function(e){return this.visibleChoices.indexOf(e)},t.prototype.getItemClass=function(e){var t={item:e},r=this.getItemClassCore(e,t);return t.css=r,this.survey&&this.survey.updateChoiceItemCss(this,t),t.css},t.prototype.getCurrentColCount=function(){return this.colCount},t.prototype.getItemClassCore=function(e,t){var r=(new f.CssClassBuilder).append(this.cssClasses.item).append(this.cssClasses.itemInline,!this.hasColumns&&0===this.colCount).append("sv-q-col-"+this.getCurrentColCount(),!this.hasColumns&&0!==this.colCount).append(this.cssClasses.itemOnError,this.errors.length>0),n=this.isReadOnly||!e.isEnabled,o=this.isItemSelected(e)||this.isOtherSelected&&this.otherItem.value===e.value,i=!(n||o||this.survey&&this.survey.isDesignMode),s=e===this.noneItem;return t.isDisabled=n,t.isChecked=o,t.isNone=s,r.append(this.cssClasses.itemDisabled,n).append(this.cssClasses.itemChecked,o).append(this.cssClasses.itemHover,i).append(this.cssClasses.itemNone,s).toString()},t.prototype.getLabelClass=function(e){return(new f.CssClassBuilder).append(this.cssClasses.label).append(this.cssClasses.labelChecked,this.isItemSelected(e)).toString()},t.prototype.getControlLabelClass=function(e){return(new f.CssClassBuilder).append(this.cssClasses.controlLabel).append(this.cssClasses.controlLabelChecked,this.isItemSelected(e)).toString()||void 0},Object.defineProperty(t.prototype,"headItems",{get:function(){var e=this;return this.separateSpecialChoices||this.isDesignMode?this.visibleChoices.filter((function(t){return e.isHeadChoice(t,e)})):[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footItems",{get:function(){var e=this;return this.separateSpecialChoices||this.isDesignMode?this.visibleChoices.filter((function(t){return e.isFootChoice(t,e)})):[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataChoices",{get:function(){var e=this;return this.visibleChoices.filter((function(t){return!e.isBuiltInChoice(t,e)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyItems",{get:function(){return this.hasHeadItems||this.hasFootItems?this.dataChoices:this.visibleChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasHeadItems",{get:function(){return this.headItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFootItems",{get:function(){return this.footItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){var e=[],t=this.getCurrentColCount();if(this.hasColumns&&this.visibleChoices.length>0){var r=this.separateSpecialChoices||this.isDesignMode?this.dataChoices:this.visibleChoices;if("column"==h.settings.showItemsInOrder)for(var n=0,o=r.length%t,i=0;i<t;i++){for(var s=[],a=n;a<n+Math.floor(r.length/t);a++)s.push(r[a]);o>0&&(o--,s.push(r[a]),a++),n=a,e.push(s)}else for(i=0;i<t;i++){for(s=[],a=i;a<r.length;a+=t)s.push(r[a]);e.push(s)}}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasColumns",{get:function(){return!this.isMobile&&this.getCurrentColCount()>1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowLayout",{get:function(){return 0==this.getCurrentColCount()&&!(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blockedRow",{get:function(){return 0==this.getCurrentColCount()&&(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),t.prototype.choicesLoaded=function(){this.isChoicesLoaded=!0;var e=this.isReadyValue;this.isReadyValue=!0,this.onReadyChanged&&this.onReadyChanged.fire(this,{question:this,isReady:!0,oldIsReady:e}),this.survey&&this.survey.loadedChoicesFromServer(this),this.loadedChoicesFromServerCallback&&this.loadedChoicesFromServerCallback()},t.prototype.getItemValueWrapperComponentName=function(e){var t=this.survey;return t?t.getItemValueWrapperComponentName(e,this):i.SurveyModel.TemplateRendererComponentName},t.prototype.getItemValueWrapperComponentData=function(e){var t=this.survey;return t?t.getItemValueWrapperComponentData(e,this):e},t.prototype.ariaItemChecked=function(e){return this.renderedValue===e.value?"true":"false"},t.prototype.isOtherItem=function(e){return this.hasOther&&e.value==this.otherItem.value},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.getSelectBaseRootCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.rootRow,this.rowLayout).toString()},t.prototype.getAriaItemLabel=function(e){return e.locText.renderedHtml},t.prototype.getItemId=function(e){return this.inputId+"_"+this.getItemIndex(e)},Object.defineProperty(t.prototype,"questionName",{get:function(){return this.name+"_"+this.id},enumerable:!1,configurable:!0}),t.prototype.getItemEnabled=function(e){return!this.isInputReadOnly&&e.isEnabled},t.prototype.afterRender=function(t){e.prototype.afterRender.call(this,t),this.rootElement=t},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.rootElement=void 0},t.prototype.focusOtherComment=function(){var e=this;this.rootElement&&setTimeout((function(){var t=e.rootElement.querySelector("textarea");t&&t.focus()}),10)},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.isDesignMode||this.prevIsOtherSelected||!this.isOtherSelected||this.focusOtherComment(),this.prevIsOtherSelected=this.isOtherSelected},t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"itemComponent",{get:function(){return this.getPropertyValue("itemComponent",this.getDefaultItemComponent())},set:function(e){this.setPropertyValue("itemComponent",e)},enumerable:!1,configurable:!0}),t.prototype.updateCssClasses=function(t,r){if(e.prototype.updateCssClasses.call(this,t,r),this.dropdownListModel){var n={};Object(m.mergeValues)(r.list,n),Object(m.mergeValues)(t.list,n),t.list=n}},t.prototype.calcCssClasses=function(t){var r=e.prototype.calcCssClasses.call(this,t);return this.dropdownListModel&&this.dropdownListModel.updateCssClasses(r.popup,r.list),r},b([Object(o.property)({onSet:function(e,t){t.onSelectedItemValuesChangedHandler(e)}})],t.prototype,"selectedItemValues",void 0),b([Object(o.property)()],t.prototype,"separateSpecialChoices",void 0),b([Object(o.property)({localizable:!0})],t.prototype,"otherPlaceholder",void 0),t}(s.Question),v=function(e){function t(t){return e.call(this,t)||this}return g(t,e),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",this.isFlowLayout?0:1)},set:function(e){e<0||e>5||this.isFlowLayout||(this.setPropertyValue("colCount",e),this.fireCallback(this.colCountChangedCallback))},enumerable:!1,configurable:!0}),t.prototype.clickItemHandler=function(e,t){var r=[].concat(this.renderedValue||[]),n=r.indexOf(e.value);t?n<0&&r.push(e.value):n>-1&&r.splice(n,1),this.renderedValue=r},t.prototype.onParentChanged=function(){e.prototype.onParentChanged.call(this),this.isFlowLayout&&this.setPropertyValue("colCount",null)},t.prototype.onParentQuestionChanged=function(){this.onVisibleChoicesChanged()},t.prototype.getSearchableItemValueKeys=function(e){e.push("choices")},t}(y);o.Serializer.addClass("selectbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"choicesFromQuestion:question_selectbase",{name:"choices:itemvalue[]",uniqueProperty:"value",baseValue:function(){return l.surveyLocalization.getString("choices_Item")},dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesFromQuestionMode",default:"all",choices:["all","selected","unselected"],dependsOn:"choicesFromQuestion",visibleIf:function(e){return!!e.choicesFromQuestion}},{name:"choicesOrder",default:"none",choices:["none","asc","desc","random"],dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesByUrl:restfull",className:"choicesByUrl",onGetValue:function(e){return e.choicesByUrl.getData()},onSetValue:function(e,t){e.choicesByUrl.setData(t)}},"hideIfChoicesEmpty:boolean",{name:"choicesVisibleIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesEnableIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"separateSpecialChoices:boolean",visible:!1},{name:"showOtherItem:boolean",alternativeName:"hasOther"},{name:"showNoneItem:boolean",alternativeName:"hasNone"},{name:"otherPlaceholder",alternativeName:"otherPlaceHolder",serializationProperty:"locOtherPlaceholder",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"noneText",serializationProperty:"locNoneText",dependsOn:"showNoneItem",visibleIf:function(e){return e.hasNone}},{name:"otherText",serializationProperty:"locOtherText",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"otherErrorText",serializationProperty:"locOtherErrorText",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"storeOthersAsComment",default:"default",choices:["default",!0,!1],visible:!1}],null,"question"),o.Serializer.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4,5],layout:"row"}],null,"selectbase")},"./src/question_boolean.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionBooleanModel",(function(){return p}));var n,o=r("./src/questionfactory.ts"),i=r("./src/jsonobject.ts"),s=r("./src/question.ts"),a=r("./src/utils/cssClassBuilder.ts"),l=r("./src/utils/utils.ts"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},p=function(e){function t(t){var r=e.call(this,t)||this;return r.createLocalizableString("labelFalse",r,!0,"booleanUncheckedLabel"),r.createLocalizableString("labelTrue",r,!0,"booleanCheckedLabel"),r}return u(t,e),t.prototype.getType=function(){return"boolean"},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.supportGoNextPageAutomatic=function(){return"checkbox"!==this.renderAs},Object.defineProperty(t.prototype,"isIndeterminate",{get:function(){return this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"booleanValue",{get:function(){return this.isEmpty()?null:this.value==this.getValueTrue()},set:function(e){this.isReadOnly||this.setBooleanValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkedValue",{get:function(){return this.booleanValue},set:function(e){this.booleanValue=e},enumerable:!1,configurable:!0}),t.prototype.setBooleanValue=function(e){this.isValueEmpty(e)?(this.value=null,this.booleanValueRendered=null):(this.value=1==e?this.getValueTrue():this.getValueFalse(),this.booleanValueRendered=e)},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){!0===e&&(e="true"),!1===e&&(e="false"),void 0===e&&(e="indeterminate"),this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),t.prototype.getDefaultValue=function(){return"indeterminate"==this.defaultValue||void 0===this.defaultValue?null:"true"==this.defaultValue?this.getValueTrue():this.getValueFalse()},Object.defineProperty(t.prototype,"locTitle",{get:function(){var e=this.getLocalizableString("title");return!this.isValueEmpty(this.locLabel.text)&&(this.isValueEmpty(e.text)||this.isLabelRendered&&!this.showTitle)?this.locLabel:e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelRenderedAriaID",{get:function(){return this.isLabelRendered?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLabelRendered",{get:function(){return"hidden"===this.titleLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRenderLabelDescription",{get:function(){return this.isLabelRendered&&this.hasDescription&&(this.hasDescriptionUnderTitle||this.hasDescriptionUnderInput)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelTrue",{get:function(){return this.getLocalizableStringText("labelTrue")},set:function(e){this.setLocalizableStringText("labelTrue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelTrue",{get:function(){return this.getLocalizableString("labelTrue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDeterminated",{get:function(){return null!==this.booleanValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelFalse",{get:function(){return this.getLocalizableStringText("labelFalse")},set:function(e){this.setLocalizableStringText("labelFalse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelFalse",{get:function(){return this.getLocalizableString("labelFalse")},enumerable:!1,configurable:!0}),t.prototype.getValueTrue=function(){return void 0===this.valueTrue||this.valueTrue},t.prototype.getValueFalse=function(){return void 0!==this.valueFalse&&this.valueFalse},t.prototype.setDefaultValue=function(){this.isDefaultValueSet("true",this.valueTrue)&&this.setBooleanValue(!0),this.isDefaultValueSet("false",this.valueFalse)&&this.setBooleanValue(!1),"indeterminate"==this.defaultValue&&this.setBooleanValue(null)},t.prototype.isDefaultValueSet=function(e,t){return this.defaultValue==e||void 0!==t&&this.defaultValue===t},t.prototype.getDisplayValueCore=function(e,t){return t==this.getValueTrue()?this.locLabelTrue.textOrHtml:this.locLabelFalse.textOrHtml},t.prototype.getItemCssValue=function(e){return(new a.CssClassBuilder).append(e.item).append(e.itemOnError,this.errors.length>0).append(e.itemDisabled,this.isReadOnly).append(e.itemHover,!this.isDesignMode).append(e.itemChecked,!!this.booleanValue).append(e.itemIndeterminate,null===this.booleanValue).toString()},t.prototype.getItemCss=function(){return this.getItemCssValue(this.cssClasses)},t.prototype.getCheckboxItemCss=function(){return this.getItemCssValue({item:this.cssClasses.checkboxItem,itemOnError:this.cssClasses.checkboxItemOnError,itemDisabled:this.cssClasses.checkboxItemDisabled,itemChecked:this.cssClasses.checkboxItemChecked,itemIndeterminate:this.cssClasses.checkboxItemIndeterminate})},t.prototype.getLabelCss=function(e){return(new a.CssClassBuilder).append(this.cssClasses.label).append(this.cssClasses.disabledLabel,this.booleanValue===!e||this.isReadOnly).toString()},Object.defineProperty(t.prototype,"svgIcon",{get:function(){return this.booleanValue&&this.cssClasses.svgIconCheckedId?this.cssClasses.svgIconCheckedId:null===this.booleanValue&&this.cssClasses.svgIconIndId?this.cssClasses.svgIconIndId:!this.booleanValue&&this.cssClasses.svgIconUncheckedId?this.cssClasses.svgIconUncheckedId:this.cssClasses.svgIconId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClick",{get:function(){return this.isIndeterminate&&!this.isInputReadOnly},enumerable:!1,configurable:!0}),t.prototype.getCheckedLabel=function(){return!0===this.booleanValue?this.locLabelTrue:!1===this.booleanValue?this.locLabelFalse:void 0},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),"true"===t&&"true"!==this.valueTrue&&(t=!0),"false"===t&&"false"!==this.valueFalse&&(t=!1),"indeterminate"===t&&(t=null),e.prototype.setQuestionValue.call(this,t,r)},t.prototype.onLabelClick=function(e,t){return this.allowClick&&(Object(l.preventDefaults)(e),this.booleanValue=t),!0},t.prototype.calculateBooleanValueByEvent=function(e,t){var r="rtl"==document.defaultView.getComputedStyle(e.target).direction;this.booleanValue=r?!t:t},t.prototype.onSwitchClickModel=function(e){if(!this.allowClick)return!0;Object(l.preventDefaults)(e);var t=e.offsetX/e.target.offsetWidth>.5;this.calculateBooleanValueByEvent(e,t)},t.prototype.onKeyDownCore=function(e){return"ArrowLeft"!==e.key&&"ArrowRight"!==e.key||(Object(l.preventDefaults)(e),void this.calculateBooleanValueByEvent(e,"ArrowRight"===e.key))},t.prototype.getRadioItemClass=function(e,t){var r=void 0;return e.radioItem&&(r=e.radioItem),e.radioItemChecked&&t===this.booleanValue&&(r=(r?r+" ":"")+e.radioItemChecked),r},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getCompactRenderAs=function(){return"radio"},t.prototype.createActionContainer=function(t){return e.prototype.createActionContainer.call(this,"checkbox"!==this.renderAs)},c([Object(i.property)()],t.prototype,"booleanValueRendered",void 0),c([Object(i.property)()],t.prototype,"showTitle",void 0),c([Object(i.property)({localizable:!0})],t.prototype,"label",void 0),c([Object(i.property)()],t.prototype,"valueTrue",void 0),c([Object(i.property)()],t.prototype,"valueFalse",void 0),t}(s.Question);i.Serializer.addClass("boolean",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"label:text",serializationProperty:"locLabel",isSerializable:!1,visible:!1},{name:"labelTrue:text",serializationProperty:"locLabelTrue"},{name:"labelFalse:text",serializationProperty:"locLabelFalse"},"valueTrue","valueFalse",{name:"renderAs",default:"default",visible:!1}],(function(){return new p("")}),"question"),o.QuestionFactory.Instance.registerQuestion("boolean",(function(e){return new p(e)}))},"./src/question_buttongroup.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ButtonGroupItemValue",(function(){return c})),r.d(t,"QuestionButtonGroupModel",(function(){return p})),r.d(t,"ButtonGroupItemModel",(function(){return d}));var n,o=r("./src/jsonobject.ts"),i=r("./src/itemvalue.ts"),s=r("./src/question_baseselect.ts"),a=r("./src/utils/cssClassBuilder.ts"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},c=function(e){function t(t,r,n){void 0===r&&(r=null),void 0===n&&(n="buttongroupitemvalue");var o=e.call(this,t,r,n)||this;return o.typeName=n,o}return l(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"buttongroupitemvalue"},u([Object(o.property)()],t.prototype,"iconName",void 0),u([Object(o.property)()],t.prototype,"iconSize",void 0),u([Object(o.property)()],t.prototype,"showCaption",void 0),t}(i.ItemValue),p=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getType=function(){return"buttongroup"},t.prototype.getItemValueType=function(){return"buttongroupitemvalue"},t.prototype.supportOther=function(){return!1},t}(s.QuestionCheckboxBase);o.Serializer.addClass("buttongroup",[{name:"choices:buttongroupitemvalue[]"}],(function(){return new p("")}),"checkboxbase"),o.Serializer.addClass("buttongroupitemvalue",[{name:"showCaption:boolean",default:!0},{name:"iconName:text"},{name:"iconSize:number"}],(function(e){return new c(e)}),"itemvalue");var d=function(){function e(e,t,r){this.question=e,this.item=t,this.index=r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconName",{get:function(){return this.item.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconSize",{get:function(){return this.item.iconSize||24},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"caption",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showCaption",{get:function(){return this.item.showCaption||void 0===this.item.showCaption},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.question.isRequired},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.question.isItemSelected(this.item)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"readOnly",{get:function(){return this.question.isInputReadOnly||!this.item.isEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.question.name+"_"+this.question.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.question.inputId+"_"+this.index},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return this.question.errors.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"describedBy",{get:function(){return this.question.errors.length>0?this.question.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelClass",{get:function(){return(new a.CssClassBuilder).append(this.question.cssClasses.item).append(this.question.cssClasses.itemSelected,this.selected).append(this.question.cssClasses.itemHover,!this.readOnly&&!this.selected).append(this.question.cssClasses.itemDisabled,this.question.isReadOnly||!this.item.isEnabled).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return{label:this.labelClass,icon:this.question.cssClasses.itemIcon,control:this.question.cssClasses.itemControl,caption:this.question.cssClasses.itemCaption,decorator:this.question.cssClasses.itemDecorator}},enumerable:!1,configurable:!0}),e.prototype.onChange=function(){this.question.renderedValue=this.item.value},e}()},"./src/question_checkbox.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionCheckboxModel",(function(){return p}));var n,o=r("./src/jsonobject.ts"),i=r("./src/questionfactory.ts"),s=r("./src/question_baseselect.ts"),a=r("./src/helpers.ts"),l=r("./src/itemvalue.ts"),u=r("./src/utils/cssClassBuilder.ts"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(t){var r=e.call(this,t)||this;r.selectAllItemValue=new l.ItemValue("selectall"),r.invisibleOldValues={},r.isChangingValueOnClearIncorrect=!1;var n=r.createLocalizableString("selectAllText",r.selectAllItem,!0,"selectAllItemText");return r.selectAllItem.locOwner=r,r.selectAllItem.setLocText(n),r.registerPropertyChangedHandlers(["showSelectAllItem","selectAllText"],(function(){r.onVisibleChoicesChanged()})),r}return c(t,e),t.prototype.getDefaultItemComponent=function(){return"survey-checkbox-item"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"listbox"},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"checkbox"},t.prototype.onCreating=function(){e.prototype.onCreating.call(this),this.createNewArray("renderedValue"),this.createNewArray("value")},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"valuePropertyName",{get:function(){return this.getPropertyValue("valuePropertyName")},set:function(e){this.setPropertyValue("valuePropertyName",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,t){if(e&&e===this.valuePropertyName){var r=this.value;if(Array.isArray(r)&&t<r.length)return this}return null},Object.defineProperty(t.prototype,"selectAllItem",{get:function(){return this.selectAllItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectAllText",{get:function(){return this.getLocalizableStringText("selectAllText")},set:function(e){this.setLocalizableStringText("selectAllText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locSelectAllText",{get:function(){return this.getLocalizableString("selectAllText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectAllItem",{get:function(){return this.getPropertyValue("showSelectAllItem")},set:function(e){this.setPropertyValue("showSelectAllItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelectAll",{get:function(){return this.showSelectAllItem},set:function(e){this.showSelectAllItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllSelected",{get:function(){var e=this.value;if(!e||!Array.isArray(e))return!1;if(this.isItemSelected(this.noneItem))return!1;var t=this.visibleChoices.length;this.hasOther&&t--,this.hasNone&&t--,this.hasSelectAll&&t--;var r=e.length;return this.isOtherSelected&&r--,r===t},set:function(e){e?this.selectAll():this.clearValue()},enumerable:!1,configurable:!0}),t.prototype.toggleSelectAll=function(){this.isAllSelected=!this.isAllSelected},t.prototype.selectAll=function(){for(var e=[],t=0;t<this.visibleChoices.length;t++){var r=this.visibleChoices[t];r!==this.noneItem&&r!==this.otherItem&&r!==this.selectAllItem&&e.push(r.value)}this.renderedValue=e},t.prototype.isItemSelectedCore=function(e){if(e===this.selectAllItem)return this.isAllSelected;var t=this.renderedValue;if(!t||!Array.isArray(t))return!1;for(var r=0;r<t.length;r++)if(this.isTwoValueEquals(t[r],e.value))return!0;return!1},t.prototype.getRealValue=function(e){return e&&this.valuePropertyName?e[this.valuePropertyName]:e},Object.defineProperty(t.prototype,"maxSelectedChoices",{get:function(){return this.getPropertyValue("maxSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("maxSelectedChoices",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedChoices",{get:function(){if(this.isEmpty())return[];var e=this.renderedValue,t=this.defaultSelectedItemValues?[].concat(this.defaultSelectedItemValues,this.visibleChoices):this.visibleChoices,r=e.map((function(e){return l.ItemValue.getItemByValue(t,e)})).filter((function(e){return!!e}));return r.length||this.selectedItemValues||this.updateSelectedItemValues(),this.validateItemValues(r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItems",{get:function(){return this.selectedChoices},enumerable:!1,configurable:!0}),t.prototype.validateItemValues=function(e){if(e.length)return e;var t=this.selectedItemValues;return t&&t.length?(this.defaultSelectedItemValues=[].concat(t),t):this.renderedValue.map((function(e){return new l.ItemValue(e)}))},t.prototype.onEnableItemCallBack=function(e){return!this.shouldCheckMaxSelectedChoices()||this.isItemSelected(e)},t.prototype.onAfterRunItemsEnableCondition=function(){if(this.maxSelectedChoices<1)return this.selectAllItem.setIsEnabled(!0),void this.otherItem.setIsEnabled(!0);this.hasSelectAll&&this.selectAllItem.setIsEnabled(this.maxSelectedChoices>=this.activeChoices.length),this.hasOther&&this.otherItem.setIsEnabled(!this.shouldCheckMaxSelectedChoices()||this.isOtherSelected)},t.prototype.shouldCheckMaxSelectedChoices=function(){if(this.maxSelectedChoices<1)return!1;var e=this.value;return(Array.isArray(e)?e.length:0)>=this.maxSelectedChoices},t.prototype.getItemClassCore=function(t,r){return this.value,r.isSelectAllItem=t===this.selectAllItem,(new u.CssClassBuilder).append(e.prototype.getItemClassCore.call(this,t,r)).append(this.cssClasses.itemSelectAll,r.isSelectAllItem).toString()},t.prototype.updateValueFromSurvey=function(t){e.prototype.updateValueFromSurvey.call(this,t),this.invisibleOldValues={}},t.prototype.setDefaultValue=function(){e.prototype.setDefaultValue.call(this);var t=this.defaultValue;if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=this.getRealValue(t[r]);this.canClearValueAnUnknow(n)&&this.addIntoInvisibleOldValues(n)}},t.prototype.addIntoInvisibleOldValues=function(e){this.invisibleOldValues[e]=e},t.prototype.hasValueToClearIncorrectValues=function(){return e.prototype.hasValueToClearIncorrectValues.call(this)||!a.Helpers.isValueEmpty(this.invisibleOldValues)},t.prototype.setNewValue=function(t){this.isChangingValueOnClearIncorrect||(this.invisibleOldValues={}),t=this.valueFromData(t);var r=this.value;if(t||(t=[]),r||(r=[]),!this.isTwoValueEquals(r,t)){if(this.hasNone){var n=this.noneIndexInArray(r),o=this.noneIndexInArray(t);n>-1?o>-1&&t.length>1&&t.splice(o,1):o>-1&&(t.splice(0,t.length),t.push(this.noneItem.value))}e.prototype.setNewValue.call(this,t)}},t.prototype.getIsMultipleValue=function(){return!0},t.prototype.getCommentFromValue=function(e){var t=this.getFirstUnknownIndex(e);return t<0?"":e[t]},t.prototype.setOtherValueIntoValue=function(e){var t=this.getFirstUnknownIndex(e);return t<0||e.splice(t,1,this.otherItem.value),e},t.prototype.getFirstUnknownIndex=function(e){if(!Array.isArray(e))return-1;for(var t=0;t<e.length;t++)if(this.hasUnknownValue(e[t],!1,!1))return t;return-1},t.prototype.noneIndexInArray=function(e){if(!e||!Array.isArray(e))return-1;for(var t=this.noneItem.value,r=0;r<e.length;r++)if(e[r]==t)return r;return-1},t.prototype.canUseFilteredChoices=function(){return!this.hasSelectAll&&e.prototype.canUseFilteredChoices.call(this)},t.prototype.supportSelectAll=function(){return this.isSupportProperty("showSelectAllItem")},t.prototype.addToVisibleChoices=function(t,r){this.supportSelectAll()&&this.canShowOptionItem(this.selectAllItem,r,this.hasSelectAll)&&t.unshift(this.selectAllItem),e.prototype.addToVisibleChoices.call(this,t,r)},t.prototype.isHeadChoice=function(e,t){return e===t.selectAllItem},t.prototype.isItemInList=function(t){return t==this.selectAllItem?this.hasSelectAll:e.prototype.isItemInList.call(this,t)},t.prototype.getDisplayValueCore=function(t,r){if(!Array.isArray(r))return e.prototype.getDisplayValueCore.call(this,t,r);var n=this.valuePropertyName;return this.getDisplayArrayValue(t,r,(function(e){var t=r[e];return n&&t[n]&&(t=t[n]),t}))},t.prototype.clearIncorrectValuesCore=function(){this.clearIncorrectAndDisabledValues(!1)},t.prototype.clearDisabledValuesCore=function(){this.clearIncorrectAndDisabledValues(!0)},t.prototype.clearIncorrectAndDisabledValues=function(e){var t=this.value,r=!1,n=this.restoreValuesFromInvisible();if(t||0!=n.length){if(!Array.isArray(t)||0==t.length){if(this.isChangingValueOnClearIncorrect=!0,e||(this.hasComment?this.value=null:this.clearValue()),this.isChangingValueOnClearIncorrect=!1,0==n.length)return;t=[]}for(var o=[],i=0;i<t.length;i++){var s=this.getRealValue(t[i]),a=this.canClearValueAnUnknow(s);!e&&!a||e&&!this.isValueDisabled(s)?o.push(t[i]):(r=!0,a&&this.addIntoInvisibleOldValues(t[i]))}for(i=0;i<n.length;i++)o.push(n[i]),r=!0;r&&(this.isChangingValueOnClearIncorrect=!0,0==o.length?this.clearValue():this.value=o,this.isChangingValueOnClearIncorrect=!1)}},t.prototype.restoreValuesFromInvisible=function(){for(var e=[],t=this.visibleChoices,r=0;r<t.length;r++){var n=t[r].value;a.Helpers.isTwoValueEquals(n,this.invisibleOldValues[n])&&(this.isItemSelected(t[r])||e.push(n),delete this.invisibleOldValues[n])}return e},t.prototype.getConditionJson=function(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.prototype.getConditionJson.call(this);return"contains"!=t&&"notcontains"!=t||(n.type="radiogroup"),n.maxSelectedChoices=0,n},t.prototype.isAnswerCorrect=function(){return a.Helpers.isArrayContainsEqual(this.value,this.correctAnswer)},t.prototype.setDefaultValueWithOthers=function(){this.value=this.renderedValueFromDataCore(this.defaultValue)},t.prototype.getIsItemValue=function(e,t){return!(!e||!Array.isArray(e))&&e.indexOf(t.value)>=0},t.prototype.valueFromData=function(t){if(!t)return t;if(!Array.isArray(t))return[e.prototype.valueFromData.call(this,t)];for(var r=[],n=0;n<t.length;n++){var o=l.ItemValue.getItemByValue(this.activeChoices,t[n]);o?r.push(o.value):r.push(t[n])}return r},t.prototype.rendredValueFromData=function(t){return t=this.convertValueFromObject(t),e.prototype.rendredValueFromData.call(this,t)},t.prototype.rendredValueToData=function(t){return t=e.prototype.rendredValueToData.call(this,t),this.convertValueToObject(t)},t.prototype.convertValueFromObject=function(e){return this.valuePropertyName?a.Helpers.convertArrayObjectToValue(e,this.valuePropertyName):e},t.prototype.convertValueToObject=function(e){if(!this.valuePropertyName)return e;var t=void 0;return this.survey&&this.survey.questionCountByValueName(this.getValueName())>1&&(t=this.data.getValue(this.getValueName())),a.Helpers.convertArrayValueToObject(e,this.valuePropertyName,t)},t.prototype.renderedValueFromDataCore=function(e){if(e&&Array.isArray(e)||(e=[]),!this.hasActiveChoices)return e;for(var t=0;t<e.length;t++){if(e[t]==this.otherItem.value)return e;if(this.hasUnknownValue(e[t],!0,!1)){this.otherValue=e[t];var r=e.slice();return r[t]=this.otherItem.value,r}}return e},t.prototype.rendredValueToDataCore=function(e){if(!e||!e.length)return e;for(var t=0;t<e.length;t++)if(e[t]==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()){var r=e.slice();return r[t]=this.otherValue,r}return e},t.prototype.selectOtherValueFromComment=function(e){var t=[],r=this.renderedValue;if(Array.isArray(r))for(var n=0;n<r.length;n++)r[n]!==this.otherItem.value&&t.push(r[n]);e&&t.push(this.otherItem.value),this.value=t},Object.defineProperty(t.prototype,"checkBoxSvgPath",{get:function(){return"M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"},enumerable:!1,configurable:!0}),t}(s.QuestionCheckboxBase);o.Serializer.addClass("checkbox",[{name:"showSelectAllItem:boolean",alternativeName:"hasSelectAll"},{name:"separateSpecialChoices",visible:!0},{name:"maxSelectedChoices:number",default:0},{name:"selectAllText",serializationProperty:"locSelectAllText",dependsOn:"showSelectAllItem",visibleIf:function(e){return e.hasSelectAll}},{name:"valuePropertyName",category:"data"},{name:"itemComponent",visible:!1,default:"survey-checkbox-item"}],(function(){return new p("")}),"checkboxbase"),i.QuestionFactory.Instance.registerQuestion("checkbox",(function(e){var t=new p(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_comment.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionCommentModel",(function(){return c}));var n,o=r("./src/jsonobject.ts"),i=r("./src/questionfactory.ts"),s=r("./src/question_textbase.ts"),a=r("./src/utils/utils.ts"),l=r("./src/settings.ts"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){this.setPropertyValue("rows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this.getPropertyValue("cols")},set:function(e){this.setPropertyValue("cols",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptCarriageReturn",{get:function(){return this.getPropertyValue("acceptCarriageReturn")},set:function(e){this.setPropertyValue("acceptCarriageReturn",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrow",{get:function(){return this.getPropertyValue("autoGrow")||this.survey&&this.survey.autoGrowComment},set:function(e){this.setPropertyValue("autoGrow",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResize",{get:function(){return this.getPropertyValue("allowResize")&&this.survey&&this.survey.allowResizeComment},set:function(e){this.setPropertyValue("allowResize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.allowResize?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"comment"},t.prototype.afterRenderQuestionElement=function(t){var r=l.settings.environment.root;this.element=r.getElementById(this.inputId)||t,this.updateElement(),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.updateElement=function(){var e=this;this.element&&this.autoGrow&&setTimeout((function(){return Object(a.increaseHeightByContent)(e.element)}),1)},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.element=void 0},t.prototype.onInput=function(e){this.isInputTextUpdate?this.value=e.target.value:this.updateElement(),this.updateRemainingCharacterCounter(e.target.value)},t.prototype.onKeyDown=function(e){this.acceptCarriageReturn||"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),e.stopPropagation())},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.updateElement()},t.prototype.setNewValue=function(t){!this.acceptCarriageReturn&&t&&(t=t.replace(new RegExp("(\r\n|\n|\r)","gm"),"")),e.prototype.setNewValue.call(this,t)},Object.defineProperty(t.prototype,"className",{get:function(){return(this.cssClasses?this.getControlClass():"panel-comment-root")||void 0},enumerable:!1,configurable:!0}),t}(s.QuestionTextBase);o.Serializer.addClass("comment",[{name:"maxLength:number",default:-1},{name:"cols:number",default:50,visible:!1,isSerializable:!1},{name:"rows:number",default:4},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"]},{name:"autoGrow:boolean"},{name:"allowResize:boolean",default:!0},{name:"acceptCarriageReturn:boolean",default:!0,visible:!1}],(function(){return new c("")}),"textbase"),i.QuestionFactory.Instance.registerQuestion("comment",(function(e){return new c(e)}))},"./src/question_custom.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ComponentQuestionJSON",(function(){return p})),r.d(t,"ComponentCollection",(function(){return d})),r.d(t,"QuestionCustomModelBase",(function(){return h})),r.d(t,"QuestionCustomModel",(function(){return f})),r.d(t,"QuestionCompositeModel",(function(){return g}));var n,o=r("./src/question.ts"),i=r("./src/jsonobject.ts"),s=r("./src/survey-element.ts"),a=r("./src/helpers.ts"),l=r("./src/textPreProcessor.ts"),u=r("./src/utils/cssClassBuilder.ts"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(){function e(e,t){this.name=e,this.json=t;var r=this;i.Serializer.addClass(e,[],(function(e){return d.Instance.createQuestion(e?e.name:"",r)}),"question"),this.onInit()}return e.prototype.onInit=function(){this.json.onInit&&this.json.onInit()},e.prototype.onCreated=function(e){this.json.onCreated&&this.json.onCreated(e)},e.prototype.onLoaded=function(e){this.json.onLoaded&&this.json.onLoaded(e)},e.prototype.onAfterRender=function(e,t){this.json.onAfterRender&&this.json.onAfterRender(e,t)},e.prototype.onAfterRenderContentElement=function(e,t,r){this.json.onAfterRenderContentElement&&this.json.onAfterRenderContentElement(e,t,r)},e.prototype.onUpdateQuestionCssClasses=function(e,t,r){this.json.onUpdateQuestionCssClasses&&this.json.onUpdateQuestionCssClasses(e,t,r)},e.prototype.onPropertyChanged=function(e,t,r){this.json.onPropertyChanged&&this.json.onPropertyChanged(e,t,r)},e.prototype.onValueChanged=function(e,t,r){this.json.onValueChanged&&this.json.onValueChanged(e,t,r)},e.prototype.onValueChanging=function(e,t,r){return this.json.onValueChanging?this.json.onValueChanging(e,t,r):r},e.prototype.onItemValuePropertyChanged=function(e,t,r,n,o){this.json.onItemValuePropertyChanged&&this.json.onItemValuePropertyChanged(e,{obj:t,propertyName:r,name:n,newValue:o})},e.prototype.getDisplayValue=function(e,t,r){return this.json.getDisplayValue?this.json.getDisplayValue(r):r.getDisplayValue(e,t)},Object.defineProperty(e.prototype,"isComposite",{get:function(){return!!this.json.elementsJSON||!!this.json.createElements},enumerable:!1,configurable:!0}),e}(),d=function(){function e(){this.customQuestionValues=[]}return e.prototype.add=function(e){if(e){var t=e.name;if(!t)throw"Attribute name is missed";if(t=t.toLowerCase(),this.getCustomQuestionByName(t))throw"There is already registered custom question with name '"+t+"'";if(i.Serializer.findClass(t))throw"There is already class with name '"+t+"'";var r=new p(t,e);this.onAddingJson&&this.onAddingJson(t,r.isComposite),this.customQuestionValues.push(r)}},Object.defineProperty(e.prototype,"items",{get:function(){return this.customQuestionValues},enumerable:!1,configurable:!0}),e.prototype.getCustomQuestionByName=function(e){for(var t=0;t<this.customQuestionValues.length;t++)if(this.customQuestionValues[t].name==e)return this.customQuestionValues[t];return null},e.prototype.clear=function(){for(var e=0;e<this.customQuestionValues.length;e++)i.Serializer.removeClass(this.customQuestionValues[e].name);this.customQuestionValues=[]},e.prototype.createQuestion=function(e,t){return t.isComposite?this.createCompositeModel(e,t):this.createCustomModel(e,t)},e.prototype.createCompositeModel=function(e,t){return this.onCreateComposite?this.onCreateComposite(e,t):new g(e,t)},e.prototype.createCustomModel=function(e,t){return this.onCreateCustom?this.onCreateCustom(e,t):new f(e,t)},e.Instance=new e,e}(),h=function(e){function t(t,r){var n=e.call(this,t)||this;return n.customQuestion=r,i.CustomPropertiesCollection.createProperties(n),s.SurveyElement.CreateDisabledDesignElements=!0,n.createWrapper(),s.SurveyElement.CreateDisabledDesignElements=!1,n.customQuestion&&n.customQuestion.onCreated(n),n}return c(t,e),t.prototype.getType=function(){return this.customQuestion?this.customQuestion.name:"custom"},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().locStrsChanged()},t.prototype.createWrapper=function(){},t.prototype.onPropertyValueChanged=function(t,r,n){e.prototype.onPropertyValueChanged.call(this,t,r,n),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onPropertyChanged(this,t,n)},t.prototype.itemValuePropertyChanged=function(t,r,n,o){e.prototype.itemValuePropertyChanged.call(this,t,r,n,o),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onItemValuePropertyChanged(this,t,t.ownerPropertyName,r,o)},t.prototype.onFirstRendering=function(){var t=this.getElement();t&&t.onFirstRendering(),e.prototype.onFirstRendering.call(this)},t.prototype.getProgressInfo=function(){var t=e.prototype.getProgressInfo.call(this);return this.getElement()&&(t=this.getElement().getProgressInfo()),this.isRequired&&0==t.requiredQuestionCount&&(t.requiredQuestionCount=1,this.isEmpty()||(t.answeredQuestionCount=1)),t},t.prototype.initElement=function(e){e&&(e.setSurveyImpl(this),e.disableDesignActions=!0)},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r),this.initElement(this.getElement())},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.getElement()&&(this.getElement().onSurveyLoad(),this.customQuestion.onLoaded(this))},t.prototype.afterRenderQuestionElement=function(e){},t.prototype.afterRender=function(t){e.prototype.afterRender.call(this,t),this.customQuestion&&this.customQuestion.onAfterRender(this,t)},t.prototype.onUpdateQuestionCssClasses=function(e,t){this.customQuestion&&this.customQuestion.onUpdateQuestionCssClasses(this,e,t)},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),e.prototype.setQuestionValue.call(this,t,r),this.updateElementCss()},t.prototype.setNewValue=function(t){e.prototype.setNewValue.call(this,t),this.updateElementCss()},t.prototype.getSurveyData=function(){return this},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getValue=function(e){return this.value},t.prototype.setValue=function(e,t,r,n){if(this.data){var o=this.convertDataName(e),i=this.convertDataValue(e,t);this.valueToDataCallback&&(i=this.valueToDataCallback(i)),this.data.setValue(o,i,r,n),this.updateIsAnswered(),this.updateElementCss(),this.customQuestion&&this.customQuestion.onValueChanged(this,e,t)}},t.prototype.getQuestionByName=function(e){},t.prototype.isValueChanging=function(e,t){if(this.customQuestion){var r=t;if(t=this.customQuestion.onValueChanging(this,e,t),!a.Helpers.isTwoValueEquals(t,r)){var n=this.getQuestionByName(e);if(n)return n.value=t,!0}}return!1},t.prototype.convertDataName=function(e){return this.getValueName()},t.prototype.convertDataValue=function(e,t){return t},t.prototype.getVariable=function(e){return this.data?this.data.getVariable(e):null},t.prototype.setVariable=function(e,t){this.data&&this.data.setVariable(e,t)},t.prototype.getComment=function(e){return this.data?this.data.getComment(this.getValueName()):""},t.prototype.setComment=function(e,t,r){this.data&&this.data.setComment(this.getValueName(),t,r)},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():{}},t.prototype.getFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getFilteredProperties=function(){return this.data?this.data.getFilteredProperties():{}},t.prototype.findQuestionByName=function(e){return this.data?this.data.findQuestionByName(e):null},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return-1},t.prototype.ensureRowsVisibility=function(){},t.prototype.getContentDisplayValueCore=function(t,r,n){return n?this.customQuestion.getDisplayValue(t,r,n):e.prototype.getDisplayValueCore.call(this,t,r)},t}(o.Question),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.getTemplate=function(){return"custom"},t.prototype.createWrapper=function(){this.questionWrapper=this.createQuestion()},t.prototype.getElement=function(){return this.contentQuestion},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t),this.contentQuestion&&this.contentQuestion.onAnyValueChanged(t)},t.prototype.getQuestionByName=function(e){return this.contentQuestion},t.prototype.setValue=function(t,r,n,o){this.isValueChanging(t,r)||e.prototype.setValue.call(this,t,r,n,o)},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.survey&&!this.isEmpty()&&this.setValue(this.name,this.value,!1,this.allowNotifyValueChanged)},t.prototype.hasErrors=function(t,r){if(void 0===t&&(t=!0),void 0===r&&(r=null),!this.contentQuestion)return!1;var n=this.contentQuestion.hasErrors(t,r);this.errors=[];for(var o=0;o<this.contentQuestion.errors.length;o++)this.errors.push(this.contentQuestion.errors[o]);return n||(n=e.prototype.hasErrors.call(this,t,r)),this.updateElementCss(),n},t.prototype.focus=function(t){void 0===t&&(t=!1),this.contentQuestion?this.contentQuestion.focus(t):e.prototype.focus.call(this,t)},Object.defineProperty(t.prototype,"contentQuestion",{get:function(){return this.questionWrapper},enumerable:!1,configurable:!0}),t.prototype.createQuestion=function(){var e=this,t=this.customQuestion.json,r=null;if(t.questionJSON){var n=t.questionJSON.type;if(!n||!i.Serializer.findClass(n))throw"type attribute in questionJSON is empty or incorrect";r=i.Serializer.createClass(n),this.initElement(r),r.fromJSON(t.questionJSON)}else t.createQuestion&&(r=t.createQuestion(),this.initElement(r));return r&&(r.isContentElement=!0,r.name||(r.name="question"),r.onUpdateCssClassesCallback=function(t){e.onUpdateQuestionCssClasses(r,t)}),r},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.contentQuestion&&this.isEmpty()&&!this.contentQuestion.isEmpty()&&(this.value=this.contentQuestion.value)},t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.contentQuestion&&this.contentQuestion.runCondition(t,r)},t.prototype.convertDataName=function(t){if(!this.contentQuestion)return e.prototype.convertDataName.call(this,t);var r=t.replace(this.contentQuestion.getValueName(),this.getValueName());return 0==r.indexOf(this.getValueName())?r:e.prototype.convertDataName.call(this,t)},t.prototype.convertDataValue=function(t,r){return this.convertDataName(t)==e.prototype.convertDataName.call(this,t)?this.contentQuestion.value:r},t.prototype.canSetValueToSurvey=function(){return!1},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),e.prototype.setQuestionValue.call(this,t,r),this.isLoadingFromJson||!this.contentQuestion||this.isTwoValueEquals(this.contentQuestion.value,t)||(this.contentQuestion.value=this.getUnbindValue(t))},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.contentQuestion&&this.contentQuestion.onSurveyValueChanged(t)},t.prototype.getValueCore=function(){return this.contentQuestion?this.contentQuestion.value:e.prototype.getValueCore.call(this)},t.prototype.initElement=function(t){var r=this;e.prototype.initElement.call(this,t),t&&(t.parent=this,t.afterRenderQuestionCallback=function(e,t){r.customQuestion&&r.customQuestion.onAfterRenderContentElement(r,e,t)})},t.prototype.updateElementCss=function(t){this.contentQuestion&&this.questionWrapper.updateElementCss(t),e.prototype.updateElementCss.call(this,t)},t.prototype.updateElementCssCore=function(t){this.contentQuestion&&(t=this.contentQuestion.cssClasses),e.prototype.updateElementCssCore.call(this,t)},t.prototype.getDisplayValueCore=function(t,r){return e.prototype.getContentDisplayValueCore.call(this,t,r,this.contentQuestion)},t}(h),m=function(e){function t(t,r){var n=e.call(this,r)||this;return n.composite=t,n.variableName=r,n}return c(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.composite.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.composite.contentPanel},enumerable:!1,configurable:!0}),t}(l.QuestionTextProcessor),g=function(e){function t(r,n){var o=e.call(this,r,n)||this;return o.customQuestion=n,o.settingNewValue=!1,o.textProcessing=new m(o,t.ItemVariableName),o}return c(t,e),t.prototype.createWrapper=function(){this.panelWrapper=this.createPanel()},t.prototype.getTemplate=function(){return"composite"},t.prototype.getElement=function(){return this.contentPanel},t.prototype.getCssRoot=function(t){return(new u.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(t.composite).toString()},Object.defineProperty(t.prototype,"contentPanel",{get:function(){return this.panelWrapper},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(t,r){void 0===t&&(t=!0),void 0===r&&(r=null);var n=e.prototype.hasErrors.call(this,t,r);return this.contentPanel&&this.contentPanel.hasErrors(t,!1,r)||n},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t),this.contentPanel&&this.contentPanel.updateElementCss(t)},t.prototype.getTextProcessor=function(){return this.textProcessing},t.prototype.findQuestionByName=function(t){return this.getQuestionByName(t)||e.prototype.findQuestionByName.call(this,t)},t.prototype.clearValueIfInvisibleCore=function(){e.prototype.clearValueIfInvisibleCore.call(this);for(var t=this.contentPanel.questions,r=0;r<t.length;r++)t[r].clearValueIfInvisible()},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t);for(var r=this.contentPanel.questions,n=0;n<r.length;n++)r[n].onAnyValueChanged(t)},t.prototype.createPanel=function(){var e=this,t=i.Serializer.createClass("panel");t.showQuestionNumbers="off",t.renderWidth="100%";var r=this.customQuestion.json;return r.elementsJSON&&t.fromJSON({elements:r.elementsJSON}),r.createElements&&r.createElements(t,this),this.initElement(t),t.readOnly=this.isReadOnly,t.questions.forEach((function(t){return t.onUpdateCssClassesCallback=function(r){e.onUpdateQuestionCssClasses(t,r)}})),this.setAfterRenderCallbacks(t),t},t.prototype.onReadOnlyChanged=function(){this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly),e.prototype.onReadOnlyChanged.call(this)},t.prototype.onSurveyLoad=function(){if(this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly,this.setIsContentElement(this.contentPanel)),e.prototype.onSurveyLoad.call(this),this.contentPanel){var t=this.contentPanel.getValue();a.Helpers.isValueEmpty(t)||(this.value=t)}},t.prototype.setIsContentElement=function(e){e.isContentElement=!0;for(var t=e.elements,r=0;r<t.length;r++){var n=t[r];n.isPanel?this.setIsContentElement(n):n.isContentElement=!0}},t.prototype.setVisibleIndex=function(t){var r=e.prototype.setVisibleIndex.call(this,t);return this.isVisible&&this.contentPanel&&(r+=this.contentPanel.setVisibleIndex(t)),r},t.prototype.runCondition=function(r,n){if(e.prototype.runCondition.call(this,r,n),this.contentPanel){var o=r[t.ItemVariableName];r[t.ItemVariableName]=this.contentPanel.getValue(),this.contentPanel.runCondition(r,n),delete r[t.ItemVariableName],o&&(r[t.ItemVariableName]=o)}},t.prototype.getValue=function(e){var t=this.value;return t?t[e]:null},t.prototype.getQuestionByName=function(e){return this.contentPanel?this.contentPanel.getQuestionByName(e):void 0},t.prototype.setValue=function(t,r,n,o){if(!this.settingNewValue&&!this.isValueChanging(t,r)){if(this.settingNewValue=!0,!this.isEditingSurveyElement&&this.contentPanel){var i=this.contentPanel.getValue();this.isTwoValueEquals(this.getValueCore(),i)||this.setValueCore(i)}this.setNewValueIntoQuestion(t,r),e.prototype.setValue.call(this,t,r,n,o),this.settingNewValue=!1}},t.prototype.setNewValueIntoQuestion=function(e,t){var r=this.getQuestionByName(e);r&&!this.isTwoValueEquals(t,r.value)&&(r.value=t)},t.prototype.addConditionObjectsByContext=function(e,t){if(this.contentPanel)for(var r=this.contentPanel.questions,n=this.name,o=this.title,i=0;i<r.length;i++)e.push({name:n+"."+r[i].name,text:o+"."+r[i].title,question:r[i]})},t.prototype.convertDataValue=function(e,t){var r=this.value;return r||(r={}),this.isValueEmpty(t)&&!this.isEditingSurveyElement?delete r[e]:r[e]=t,r},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),this.setValuesIntoQuestions(t),!this.isEditingSurveyElement&&this.contentPanel&&(t=this.contentPanel.getValue()),e.prototype.setQuestionValue.call(this,t,r)},t.prototype.setValuesIntoQuestions=function(e){if(this.contentPanel){this.settingNewValue=!0;for(var t=this.contentPanel.questions,r=0;r<t.length;r++){var n=t[r].getValueName(),o=e?e[n]:void 0,i=t[r];this.isTwoValueEquals(i.value,o)||(i.value=o)}this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.settingNewValue=!1}},t.prototype.getDisplayValueCore=function(t,r){return e.prototype.getContentDisplayValueCore.call(this,t,r,this.contentPanel)},t.prototype.setAfterRenderCallbacks=function(e){var t=this;if(e&&this.customQuestion)for(var r=e.questions,n=0;n<r.length;n++)r[n].afterRenderQuestionCallback=function(e,r){t.customQuestion.onAfterRenderContentElement(t,e,r)}},t.ItemVariableName="composite",t}(h)},"./src/question_dropdown.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionDropdownModel",(function(){return h}));var n,o=r("./src/jsonobject.ts"),i=r("./src/questionfactory.ts"),s=r("./src/question_baseselect.ts"),a=r("./src/itemvalue.ts"),l=r("./src/utils/cssClassBuilder.ts"),u=r("./src/dropdownListModel.ts"),c=r("./src/settings.ts"),p=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},h=function(e){function t(t){var r=e.call(this,t)||this;return r.lastSelectedItemValue=null,r.minMaxChoices=[],r.onOpened=r.addEvent(),r.createLocalizableString("placeholder",r,!1,!0),r.createLocalizableString("clearCaption",r,!1,!0),r.registerPropertyChangedHandlers(["choicesMin","choicesMax","choicesStep"],(function(){r.onVisibleChoicesChanged()})),r.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices"],(function(){r.updateReadOnlyText()})),r.updateReadOnlyText(),r}return p(t,e),t.prototype.updateReadOnlyText=function(){var e=this.selectedItem?"":this.placeholder;"select"==this.renderAs&&(this.isOtherSelected?e=this.otherText:this.isNoneSelected?e=this.noneText:this.selectedItem&&(e=this.selectedItemText)),this.readOnlyText=e},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.updateReadOnlyText()},Object.defineProperty(t.prototype,"showOptionsCaption",{get:function(){return this.allowClear},set:function(e){this.allowClear=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"dropdown"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.getSingleSelectedItem()},enumerable:!1,configurable:!0}),t.prototype.onGetSingleSelectedItem=function(e){e&&(this.lastSelectedItemValue=e)},t.prototype.supportGoNextPageAutomatic=function(){return!0},t.prototype.getChoices=function(){var t=e.prototype.getChoices.call(this);if(this.choicesMax<=this.choicesMin)return t;for(var r=[],n=0;n<t.length;n++)r.push(t[n]);if(0===this.minMaxChoices.length||this.minMaxChoices.length!==(this.choicesMax-this.choicesMin)/this.choicesStep+1)for(this.minMaxChoices=[],n=this.choicesMin;n<=this.choicesMax;n+=this.choicesStep)this.minMaxChoices.push(new a.ItemValue(n));return r.concat(this.minMaxChoices)},Object.defineProperty(t.prototype,"choicesMin",{get:function(){return this.getPropertyValue("choicesMin")},set:function(e){this.setPropertyValue("choicesMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesMax",{get:function(){return this.getPropertyValue("choicesMax")},set:function(e){this.setPropertyValue("choicesMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesStep",{get:function(){return this.getPropertyValue("choicesStep")},set:function(e){e<1&&(e=1),this.setPropertyValue("choicesStep",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete","")},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return(new l.CssClassBuilder).append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).append(this.cssClasses.controlInputFieldComponent,!!this.inputFieldComponentName).toString()},Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e=this.suggestedItem||this.selectedItem;return null==e?void 0:e.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputFieldComponentName",{get:function(){return this.inputFieldComponent||this.itemComponent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectedItemLocText",{get:function(){return!this.inputHasValue&&!this.inputFieldComponentName&&!!this.selectedItemLocText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInputFieldComponent",{get:function(){return!this.inputHasValue&&!!this.inputFieldComponentName&&!this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemText",{get:function(){var e=this.selectedItem;return e?e.text:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return"select"===this.renderAs||this.dropdownListModelValue||(this.dropdownListModelValue=new u.DropdownListModel(this)),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){var e;return null===(e=this.dropdownListModel)||void 0===e?void 0:e.popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){var e=this.popupModel;return e&&e.isVisible?"true":"false"},enumerable:!1,configurable:!0}),t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.onSelectedItemValuesChangedHandler=function(e){var t;null===(t=this.dropdownListModel)||void 0===t||t.setInputStringFromSelectedItem(e)},t.prototype.hasUnknownValue=function(t,r,n,o){return!this.choicesLazyLoadEnabled&&e.prototype.hasUnknownValue.call(this,t,r,n,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var t,r=null===(t=this.otherValue)||void 0===t?void 0:t.trim();return!!r&&e.prototype.hasUnknownValue.call(this,r,!0,!1)},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.popupModel&&this.dropdownListModel.updateItems()},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.clearValue=function(){var t;e.prototype.clearValue.call(this),this.lastSelectedItemValue=null,null===(t=this.dropdownListModel)||void 0===t||t.clear()},t.prototype.onClick=function(e){this.onOpenedCallBack&&this.onOpenedCallBack()},t.prototype.onKeyUp=function(e){46===(e.which||e.keyCode)&&(this.clearValue(),e.preventDefault(),e.stopPropagation())},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&this.dropdownListModelValue.dispose()},d([Object(o.property)()],t.prototype,"allowClear",void 0),d([Object(o.property)({onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"inputHasValue",void 0),d([Object(o.property)({defaultValue:""})],t.prototype,"readOnlyText",void 0),d([Object(o.property)()],t.prototype,"choicesLazyLoadEnabled",void 0),d([Object(o.property)({defaultValue:25})],t.prototype,"choicesLazyLoadPageSize",void 0),d([Object(o.property)()],t.prototype,"suggestedItem",void 0),t}(s.QuestionSelectBase);o.Serializer.addClass("dropdown",[{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",alternativeName:"showOptionsCaption",default:!0},{name:"choicesMin:number",default:0},{name:"choicesMax:number",default:0},{name:"choicesStep:number",default:1,minValue:1},{name:"autocomplete",alternativeName:"autoComplete",choices:c.settings.questions.dataList},{name:"renderAs",default:"default",visible:!1},{name:"searchEnabled:boolean",default:!0,visible:!1},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"inputFieldComponent",visible:!1},{name:"itemComponent",visible:!1,default:""}],(function(){return new h("")}),"selectbase"),i.QuestionFactory.Instance.registerQuestion("dropdown",(function(e){var t=new h(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_empty.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionEmptyModel",(function(){return a}));var n,o=r("./src/jsonobject.ts"),i=r("./src/question.ts"),s=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.getType=function(){return"empty"},t}(i.Question);o.Serializer.addClass("empty",[],(function(){return new a("")}),"question")},"./src/question_expression.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionExpressionModel",(function(){return c})),r.d(t,"getCurrecyCodes",(function(){return p}));var n,o=r("./src/helpers.ts"),i=r("./src/question.ts"),s=r("./src/jsonobject.ts"),a=r("./src/questionfactory.ts"),l=r("./src/conditions.ts"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){var r=e.call(this,t)||this;return r.createLocalizableString("format",r),r.registerPropertyChangedHandlers(["expression"],(function(){r.expressionRunner&&(r.expressionRunner=new l.ExpressionRunner(r.expression))})),r.registerPropertyChangedHandlers(["format","currency","displayStyle"],(function(){r.updateFormatedValue()})),r}return u(t,e),t.prototype.getType=function(){return"expression"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.getLocalizableStringText("format","")},set:function(e){this.setLocalizableStringText("format",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locFormat",{get:function(){return this.getLocalizableString("format")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.runCondition=function(t,r){var n=this;e.prototype.runCondition.call(this,t,r),!this.expression||this.expressionIsRunning||!this.runIfReadOnly&&this.isReadOnly||(this.locCalculation(),this.expressionRunner||(this.expressionRunner=new l.ExpressionRunner(this.expression)),this.expressionRunner.onRunComplete=function(e){o.Helpers.isTwoValueEquals(e,n.value)||(n.value=e),n.unlocCalculation()},this.expressionRunner.run(t,r))},t.prototype.canCollectErrors=function(){return!0},t.prototype.hasRequiredError=function(){return!1},Object.defineProperty(t.prototype,"maximumFractionDigits",{get:function(){return this.getPropertyValue("maximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("maximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minimumFractionDigits",{get:function(){return this.getPropertyValue("minimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("minimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runIfReadOnly",{get:function(){return!0===this.runIfReadOnlyValue},set:function(e){this.runIfReadOnlyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formatedValue",{get:function(){return this.getPropertyValue("formatedValue","")},enumerable:!1,configurable:!0}),t.prototype.updateFormatedValue=function(){this.setPropertyValue("formatedValue",this.getDisplayValueCore(!1,this.value))},t.prototype.onValueChanged=function(){this.updateFormatedValue()},t.prototype.updateValueFromSurvey=function(t){e.prototype.updateValueFromSurvey.call(this,t),this.updateFormatedValue()},t.prototype.getDisplayValueCore=function(e,t){var r=this.isValueEmpty(t)?this.defaultValue:t,n="";if(!this.isValueEmpty(r)){var o=this.getValueAsStr(r);n=this.format?this.format.format(o):o}return this.survey&&(n=this.survey.getExpressionDisplayValue(this,r,n)),n},Object.defineProperty(t.prototype,"displayStyle",{get:function(){return this.getPropertyValue("displayStyle")},set:function(e){this.setPropertyValue("displayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currency",{get:function(){return this.getPropertyValue("currency")},set:function(e){["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"].indexOf(e)<0||this.setPropertyValue("currency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useGrouping",{get:function(){return this.getPropertyValue("useGrouping")},set:function(e){this.setPropertyValue("useGrouping",e)},enumerable:!1,configurable:!0}),t.prototype.getValueAsStr=function(e){if("date"==this.displayStyle){var t=new Date(e);if(t&&t.toLocaleDateString)return t.toLocaleDateString()}if("none"!=this.displayStyle&&o.Helpers.isNumber(e)){var r=this.getLocale();r||(r="en");var n={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return this.maximumFractionDigits>-1&&(n.maximumFractionDigits=this.maximumFractionDigits),this.minimumFractionDigits>-1&&(n.minimumFractionDigits=this.minimumFractionDigits),e.toLocaleString(r,n)}return e.toString()},t}(i.Question);function p(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]}s.Serializer.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent","date"]},{name:"currency",choices:function(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]},default:"USD"},{name:"maximumFractionDigits:number",default:-1},{name:"minimumFractionDigits:number",default:-1},{name:"useGrouping:boolean",default:!0},{name:"enableIf",visible:!1},{name:"isRequired",visible:!1},{name:"readOnly",visible:!1},{name:"requiredErrorText",visible:!1},{name:"defaultValueExpression",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"requiredIf",visible:!1}],(function(){return new c("")}),"question"),a.QuestionFactory.Instance.registerQuestion("expression",(function(e){return new c(e)}))},"./src/question_file.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionFileModel",(function(){return m})),r.d(t,"FileLoader",(function(){return g}));var n,o=r("./src/question.ts"),i=r("./src/jsonobject.ts"),s=r("./src/questionfactory.ts"),a=r("./src/error.ts"),l=r("./src/utils/cssClassBuilder.ts"),u=r("./src/utils/utils.ts"),c=r("./src/actions/container.ts"),p=r("./src/actions/action.ts"),d=r("./src/helpers.ts"),h=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},m=function(e){function t(t){var r=e.call(this,t)||this;return r.isUploading=!1,r.isDragging=!1,r.onUploadStateChanged=r.addEvent(),r.onStateChanged=r.addEvent(),r.mobileFileNavigator=new c.ActionContainer,r.dragCounter=0,r.onDragEnter=function(e){r.isInputReadOnly||(e.preventDefault(),r.isDragging=!0,r.dragCounter++)},r.onDragOver=function(e){if(r.isInputReadOnly)return e.returnValue=!1,!1;e.dataTransfer.dropEffect="copy",e.preventDefault()},r.onDrop=function(e){if(!r.isInputReadOnly){r.isDragging=!1,r.dragCounter=0,e.preventDefault();var t=e.dataTransfer;r.onChange(t)}},r.onDragLeave=function(e){r.isInputReadOnly||(r.dragCounter--,0===r.dragCounter&&(r.isDragging=!1))},r.doChange=function(e){var t=e.target||e.srcElement;r.onChange(t)},r.doClean=function(e){e.currentTarget||e.srcElement,r.needConfirmRemoveFile&&!Object(u.confirmAction)(r.confirmRemoveAllMessage)||(r.rootElement&&(r.rootElement.querySelectorAll("input")[0].value=""),r.clear())},r.doDownloadFile=function(e,t){Object(u.detectIEOrEdge)()&&(e.preventDefault(),Object(u.loadFileFromBase64)(t.content,t.name))},r.fileIndexAction=new p.Action({id:"fileIndex",title:r.getFileIndexCaption(),enabled:!1}),r.prevFileAction=new p.Action({id:"prevPage",iconSize:16,action:function(){r.indexToShow=r.previewValue.length&&(r.indexToShow-1+r.previewValue.length)%r.previewValue.length||0,r.fileIndexAction.title=r.getFileIndexCaption()}}),r.nextFileAction=new p.Action({id:"nextPage",iconSize:16,action:function(){r.indexToShow=r.previewValue.length&&(r.indexToShow+1)%r.previewValue.length||0,r.fileIndexAction.title=r.getFileIndexCaption()}}),r.mobileFileNavigator.actions=[r.prevFileAction,r.fileIndexAction,r.nextFileAction],r}return h(t,e),Object.defineProperty(t.prototype,"mobileFileNavigatorVisible",{get:function(){return this.isMobile&&this.containsMultiplyFiles},enumerable:!1,configurable:!0}),t.prototype.updateElementCssCore=function(t){e.prototype.updateElementCssCore.call(this,t),this.prevFileAction.iconName=this.cssClasses.leftIconId,this.nextFileAction.iconName=this.cssClasses.rightIconId},t.prototype.getFileIndexCaption=function(){return this.getLocalizationFormatString("indexText",this.indexToShow+1,this.previewValue.length)},t.prototype.isPreviewVisible=function(e){return!this.isMobile||e===this.indexToShow},t.prototype.getType=function(){return"file"},t.prototype.clearOnDeletingContainer=function(){this.survey&&this.survey.clearFiles(this,this.name,this.value,null,(function(){}))},Object.defineProperty(t.prototype,"showPreview",{get:function(){return this.getPropertyValue("showPreview")},set:function(e){this.setPropertyValue("showPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowMultiple",{get:function(){return this.getPropertyValue("allowMultiple")},set:function(e){this.setPropertyValue("allowMultiple",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptedTypes",{get:function(){return this.getPropertyValue("acceptedTypes")},set:function(e){this.setPropertyValue("acceptedTypes",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeDataAsText",{get:function(){return this.getPropertyValue("storeDataAsText")},set:function(e){this.setPropertyValue("storeDataAsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"waitForUpload",{get:function(){return this.getPropertyValue("waitForUpload")},set:function(e){this.setPropertyValue("waitForUpload",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowImagesPreview",{get:function(){return this.getPropertyValue("allowImagesPreview")},set:function(e){this.setPropertyValue("allowImagesPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSize",{get:function(){return this.getPropertyValue("maxSize")},set:function(e){this.setPropertyValue("maxSize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"needConfirmRemoveFile",{get:function(){return this.getPropertyValue("needConfirmRemoveFile")},set:function(e){this.setPropertyValue("needConfirmRemoveFile",e)},enumerable:!1,configurable:!0}),t.prototype.getConfirmRemoveMessage=function(e){return this.confirmRemoveMessage.format(e)},Object.defineProperty(t.prototype,"inputTitle",{get:function(){return this.isUploading?this.loadingFileTitle:this.isEmpty()?this.chooseFileTitle:" "},enumerable:!1,configurable:!0}),t.prototype.clear=function(e){var t=this;this.survey&&(this.containsMultiplyFiles=!1,this.survey.clearFiles(this,this.name,this.value,null,(function(r,n){"success"===r&&(t.value=void 0,t.errors=[],e&&e(),t.indexToShow=0,t.fileIndexAction.title=t.getFileIndexCaption())})))},Object.defineProperty(t.prototype,"multipleRendered",{get:function(){return this.allowMultiple?"multiple":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButton",{get:function(){return!this.isReadOnly&&!this.isEmpty()&&this.cssClasses.removeButton},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButtonBottom",{get:function(){return!this.isReadOnly&&!this.isEmpty()&&this.cssClasses.removeButtonBottom},enumerable:!1,configurable:!0}),t.prototype.defaultImage=function(e){return!this.canPreviewImage(e)&&!!this.cssClasses.defaultImage},t.prototype.removeFile=function(e){this.removeFileByContent(this.value.filter((function(t){return t.name===e}))[0])},t.prototype.removeFileByContent=function(e){var t=this;this.survey&&this.survey.clearFiles(this,this.name,this.value,e.name,(function(r,n){if("success"===r){var o=t.value;Array.isArray(o)?t.value=o.filter((function(t){return!d.Helpers.isTwoValueEquals(t,e,!0)})):t.value=void 0}}))},t.prototype.loadFiles=function(e){var t=this;if(this.survey&&(this.errors=[],this.allFilesOk(e))){var r=function(){t.stateChanged("loading");var r=[];t.storeDataAsText?e.forEach((function(n){var o=new FileReader;o.onload=function(i){(r=r.concat([{name:n.name,type:n.type,content:o.result}])).length===e.length&&(t.value=(t.value||[]).concat(r))},o.readAsDataURL(n)})):t.survey&&t.survey.uploadFiles(t,t.name,e,(function(e,r){"error"===e&&t.stateChanged("error"),"success"===e&&(t.value=(t.value||[]).concat(r.map((function(e){return{name:e.file.name,type:e.file.type,content:e.content}}))))}))};this.allowMultiple?r():this.clear(r)}},t.prototype.canPreviewImage=function(e){return this.allowImagesPreview&&!!e&&this.isFileImage(e)},t.prototype.loadPreview=function(e){var t=this;if(this.previewValue.splice(0,this.previewValue.length),this.showPreview&&e){var r=Array.isArray(e)?e:e?[e]:[];this.storeDataAsText?r.forEach((function(e){var r=e.content||e;t.previewValue.push({name:e.name,type:e.type,content:r})})):(this._previewLoader&&this._previewLoader.dispose(),this.isReadyValue=!1,this._previewLoader=new g(this,(function(e,r){"loaded"===e&&r.forEach((function(e){t.previewValue.push(e)})),t.isReadyValue=!0,t.onReadyChanged&&t.onReadyChanged.fire(t,{question:t,isReady:!0,oldIsReady:!1}),t._previewLoader.dispose(),t._previewLoader=void 0})),this._previewLoader.load(r)),this.indexToShow=this.previewValue.length>0&&this.indexToShow>0?this.indexToShow-1:0,this.fileIndexAction.title=this.getFileIndexCaption(),this.containsMultiplyFiles=this.previewValue.length>1}},t.prototype.onCheckForErrors=function(t,r){e.prototype.onCheckForErrors.call(this,t,r),this.isUploading&&this.waitForUpload&&t.push(new a.UploadingFileError(this.getLocalizationString("uploadingFile"),this))},t.prototype.stateChanged=function(e){this.currentState!=e&&("loading"===e&&(this.isUploading=!0),"loaded"===e&&(this.isUploading=!1),"error"===e&&(this.isUploading=!1),this.currentState=e,this.onStateChanged.fire(this,{state:e}),this.onUploadStateChanged.fire(this,{state:e}))},t.prototype.allFilesOk=function(e){var t=this,r=this.errors?this.errors.length:0;return(e||[]).forEach((function(e){t.maxSize>0&&e.size>t.maxSize&&t.errors.push(new a.ExceedSizeError(t.maxSize,t))})),r===this.errors.length},t.prototype.isFileImage=function(e){if(!e||!e.content||!e.content.substring)return!1;var t=e.content&&e.content.substring(0,10);return"data:image"===(t=t&&t.toLowerCase())||!!e.type&&0===e.type.toLowerCase().indexOf("image/")},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);if(r&&!this.isEmpty()){r.isNode=!1;var n=Array.isArray(this.value)?this.value:[this.value];r.data=n.map((function(e,t){return{name:t,title:"File",value:e.content&&e.content||e,displayValue:e.name&&e.name||e,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}}))}return r},t.prototype.getChooseFileCss=function(){var e=this.isAnswered;return(new l.CssClassBuilder).append(this.cssClasses.chooseFile).append(this.cssClasses.controlDisabled,this.isReadOnly).append(this.cssClasses.chooseFileAsText,!e).append(this.cssClasses.chooseFileAsTextDisabled,!e&&this.isInputReadOnly).append(this.cssClasses.chooseFileAsIcon,e).toString()},t.prototype.getReadOnlyFileCss=function(){return(new l.CssClassBuilder).append("form-control").append(this.cssClasses.placeholderInput).toString()},Object.defineProperty(t.prototype,"fileRootCss",{get:function(){return(new l.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.single,!this.allowMultiple).append(this.cssClasses.singleImage,!this.allowMultiple&&this.isAnswered&&this.canPreviewImage(this.value[0])).append(this.cssClasses.mobile,this.isMobile).toString()},enumerable:!1,configurable:!0}),t.prototype.getFileDecoratorCss=function(){return(new l.CssClassBuilder).append(this.cssClasses.fileDecorator).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.fileDecoratorDrag,this.isDragging).toString()},t.prototype.onChange=function(e){if(window.FileReader&&e&&e.files&&!(e.files.length<1)){for(var t=[],r=this.allowMultiple?e.files.length:1,n=0;n<r;n++)t.push(e.files[n]);e.value="",this.loadFiles(t)}},t.prototype.onChangeQuestionValue=function(t){e.prototype.onChangeQuestionValue.call(this,t),this.stateChanged(this.isEmpty()?"empty":"loaded"),this.isLoadingFromJson||this.loadPreview(t)},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.loadPreview(this.value)},t.prototype.afterRender=function(t){this.rootElement=t,e.prototype.afterRender.call(this,t)},t.prototype.doRemoveFile=function(e){if(!this.needConfirmRemoveFile||Object(u.confirmAction)(this.getConfirmRemoveMessage(e.name))){var t=this.previewValue.indexOf(e);this.removeFileByContent(-1===t?e:this.value[t])}},f([Object(i.property)()],t.prototype,"isDragging",void 0),f([Object(i.propertyArray)({})],t.prototype,"previewValue",void 0),f([Object(i.property)({defaultValue:"empty"})],t.prototype,"currentState",void 0),f([Object(i.property)({defaultValue:0})],t.prototype,"indexToShow",void 0),f([Object(i.property)({defaultValue:!1})],t.prototype,"containsMultiplyFiles",void 0),f([Object(i.property)({localizable:{defaultStr:"confirmRemoveFile"}})],t.prototype,"confirmRemoveMessage",void 0),f([Object(i.property)({localizable:{defaultStr:"confirmRemoveAllFiles"}})],t.prototype,"confirmRemoveAllMessage",void 0),f([Object(i.property)({localizable:{defaultStr:"noFileChosen"}})],t.prototype,"noFileChosenCaption",void 0),f([Object(i.property)({localizable:{defaultStr:"chooseFileCaption"}})],t.prototype,"chooseButtonCaption",void 0),f([Object(i.property)({localizable:{defaultStr:"clearCaption"}})],t.prototype,"clearButtonCaption",void 0),f([Object(i.property)({localizable:{defaultStr:"removeFileCaption"}})],t.prototype,"removeFileCaption",void 0),f([Object(i.property)({localizable:{defaultStr:"loadingFile"}})],t.prototype,"loadingFileTitle",void 0),f([Object(i.property)({localizable:{defaultStr:"chooseFile"}})],t.prototype,"chooseFileTitle",void 0),f([Object(i.property)({localizable:{defaultStr:"fileDragAreaPlaceholder"}})],t.prototype,"dragAreaPlaceholder",void 0),t}(o.Question);i.Serializer.addClass("file",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"showPreview:boolean",default:!0},"allowMultiple:boolean",{name:"allowImagesPreview:boolean",default:!0},"imageHeight","imageWidth","acceptedTypes",{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1},{name:"maxSize:number",default:0},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"validators",visible:!1},{name:"needConfirmRemoveFile:boolean"}],(function(){return new m("")}),"question"),s.QuestionFactory.Instance.registerQuestion("file",(function(e){return new m(e)}));var g=function(){function e(e,t){this.fileQuestion=e,this.callback=t,this.loaded=[]}return e.prototype.load=function(e){var t=this;e.forEach((function(r){t.fileQuestion.survey&&t.fileQuestion.survey.downloadFile(t.fileQuestion,t.fileQuestion.name,r,(function(n,o){t.fileQuestion&&t.callback&&("success"===n?(t.loaded.push({content:o,name:r.name,type:r.type}),t.loaded.length===e.length&&t.callback("loaded",t.loaded)):t.callback("error",t.loaded))}))}))},e.prototype.dispose=function(){this.fileQuestion=void 0,this.callback=void 0},e}()},"./src/question_html.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionHtmlModel",(function(){return l}));var n,o=r("./src/questionnonvalue.ts"),i=r("./src/jsonobject.ts"),s=r("./src/questionfactory.ts"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){var r=e.call(this,t)||this;return r.createLocalizableString("html",r).onGetTextCallback=function(e){return r.survey&&!r.ignoreHtmlProgressing?r.processHtml(e):e},r}return a(t,e),t.prototype.getType=function(){return"html"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getProcessedText=function(t){return this.ignoreHtmlProgressing?t:e.prototype.getProcessedText.call(this,t)},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html","")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedHtml",{get:function(){return this.processHtml(this.html)},enumerable:!1,configurable:!0}),t.prototype.processHtml=function(e){return this.survey?this.survey.processHtml(e,"html-question"):this.html},t}(o.QuestionNonValue);i.Serializer.addClass("html",[{name:"html:html",serializationProperty:"locHtml"}],(function(){return new l("")}),"nonvalue"),s.QuestionFactory.Instance.registerQuestion("html",(function(e){return new l(e)}))},"./src/question_image.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionImageModel",(function(){return h}));var n,o=r("./src/questionnonvalue.ts"),i=r("./src/jsonobject.ts"),s=r("./src/questionfactory.ts"),a=r("./src/utils/cssClassBuilder.ts"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=["youtube.com","youtu.be"],c=[".mp4",".mov",".wmv",".flv",".avi",".mkv"],p="embed";function d(e){if(!e)return!1;e=e.toLowerCase();for(var t=0;t<u.length;t++)if(-1!==e.indexOf(u[t]))return!0;return!1}var h=function(e){function t(t){var r=e.call(this,t)||this;return r.createLocalizableString("imageLink",r,!1).onGetTextCallback=function(e){return function(e){if(!e||!d(e))return e;if(e.toLocaleLowerCase().indexOf(p)>-1)return e;for(var t="",r=e.length-1;r>=0&&"="!==e[r]&&"/"!==e[r];r--)t=e[r]+t;return"https://www.youtube.com/embed/"+t}(e)},r.createLocalizableString("altText",r,!1),r.registerPropertyChangedHandlers(["contentMode","imageLink"],(function(){return r.calculateRenderedMode()})),r}return l(t,e),t.prototype.getType=function(){return"image"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.calculateRenderedMode()},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"altText",{get:function(){return this.getLocalizableStringText("altText")},set:function(e){this.setLocalizableStringText("altText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAltText",{get:function(){return this.getLocalizableString("altText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),t.prototype.getRenderedSize=function(e){return isNaN(Number(e))?e:e+"px"},Object.defineProperty(t.prototype,"renderedHeight",{get:function(){return this.imageHeight?this.getRenderedSize(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){return this.imageWidth?this.getRenderedSize(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMode",{get:function(){return this.getPropertyValue("renderedMode","image")},enumerable:!1,configurable:!0}),t.prototype.getImageCss=function(){var e=this.getPropertyByName("imageHeight"),t=this.getPropertyByName("imageWidth"),r=e.isDefaultValue(this.imageHeight)&&t.isDefaultValue(this.imageWidth);return(new a.CssClassBuilder).append(this.cssClasses.image).append(this.cssClasses.adaptive,r).toString()},t.prototype.onLoadHandler=function(){this.contentNotLoaded=!1},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},t.prototype.setRenderedMode=function(e){this.setPropertyValue("renderedMode",e)},t.prototype.calculateRenderedMode=function(){"auto"!==this.contentMode?this.setRenderedMode(this.contentMode):this.isYoutubeVideo()?this.setRenderedMode("youtube"):this.isVideo()?this.setRenderedMode("video"):this.setRenderedMode("image")},t.prototype.isYoutubeVideo=function(){return d(this.imageLink)},t.prototype.isVideo=function(){var e=this.imageLink;if(!e)return!1;e=e.toLowerCase();for(var t=0;t<c.length;t++)if(e.endsWith(c[t]))return!0;return!1},function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);i>3&&s&&Object.defineProperty(t,r,s)}([Object(i.property)({defaultValue:!1})],t.prototype,"contentNotLoaded",void 0),t}(o.QuestionNonValue);i.Serializer.addClass("image",[{name:"imageLink",serializationProperty:"locImageLink"},{name:"altText",serializationProperty:"locAltText",alternativeName:"text",category:"general"},{name:"contentMode",default:"auto",choices:["auto","image","video","youtube"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight",default:"150"},{name:"imageWidth",default:"200"}],(function(){return new h("")}),"nonvalue"),s.QuestionFactory.Instance.registerQuestion("image",(function(e){return new h(e)}))},"./src/question_imagepicker.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ImageItemValue",(function(){return f})),r.d(t,"QuestionImagePickerModel",(function(){return m}));var n,o=r("./src/jsonobject.ts"),i=r("./src/questionfactory.ts"),s=r("./src/question_baseselect.ts"),a=r("./src/itemvalue.ts"),l=r("./src/helpers.ts"),u=r("./src/utils/cssClassBuilder.ts"),c=r("./src/settings.ts"),p=r("./src/utils/utils.ts"),d=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},f=function(e){function t(t,r,n){void 0===r&&(r=null),void 0===n&&(n="imageitemvalue");var o=e.call(this,t,r,n)||this;return o.typeName=n,o.createLocalizableString("imageLink",o,!1),o}return d(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},Object.defineProperty(t.prototype,"contentNotLoaded",{get:function(){return this.locOwner instanceof m&&"video"==this.locOwner.contentMode?this.videoNotLoaded:this.imageNotLoaded},set:function(e){this.locOwner instanceof m&&"video"==this.locOwner.contentMode?this.videoNotLoaded=e:this.imageNotLoaded=e},enumerable:!1,configurable:!0}),h([Object(o.property)({defaultValue:!1})],t.prototype,"videoNotLoaded",void 0),h([Object(o.property)({defaultValue:!1})],t.prototype,"imageNotLoaded",void 0),t}(a.ItemValue),m=function(e){function t(t){var r=e.call(this,t)||this;return r.isResponsiveValue=!1,r.onContentLoaded=function(e,t){e.contentNotLoaded=!1;var n=t.target;"video"==r.contentMode?e.aspectRatio=n.videoWidth/n.videoHeight:e.aspectRatio=n.naturalWidth/n.naturalHeight,r._width&&r.processResponsiveness(0,r._width)},r.colCount=0,r.registerPropertyChangedHandlers(["minImageWidth","maxImageWidth","minImageHeight","maxImageHeight","visibleChoices","colCount","isResponsiveValue"],(function(){r._width&&r.processResponsiveness(0,r._width)})),r.registerPropertyChangedHandlers(["imageWidth","imageHeight"],(function(){r.calcIsResponsive()})),r.calcIsResponsive(),r}return d(t,e),t.prototype.getType=function(){return"imagepicker"},t.prototype.supportGoNextPageAutomatic=function(){return!this.multiSelect},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getItemValueType=function(){return"imageitemvalue"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.isAnswerCorrect=function(){return this.multiSelect?l.Helpers.isArrayContainsEqual(this.value,this.correctAnswer):e.prototype.isAnswerCorrect.call(this)},Object.defineProperty(t.prototype,"multiSelect",{get:function(){return this.getPropertyValue("multiSelect")},set:function(e){this.setPropertyValue("multiSelect",e)},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){var t=this.value,r=e;if(this.isValueEmpty(t))return!1;if(!r.imageLink||r.contentNotLoaded)return!1;if(!this.multiSelect)return this.isTwoValueEquals(t,e.value);if(!Array.isArray(t))return!1;for(var n=0;n<t.length;n++)if(this.isTwoValueEquals(t[n],e.value))return!0;return!1},t.prototype.getItemEnabled=function(t){var r=t;return!(!r.imageLink||r.contentNotLoaded)&&e.prototype.getItemEnabled.call(this,t)},t.prototype.clearIncorrectValues=function(){if(this.multiSelect){var t=this.value;if(!t)return;if(!Array.isArray(t)||0==t.length)return void this.clearValue();for(var r=[],n=0;n<t.length;n++)this.hasUnknownValue(t[n],!0)||r.push(t[n]);if(r.length==t.length)return;0==r.length?this.clearValue():this.value=r}else e.prototype.clearIncorrectValues.call(this)},t.prototype.getDisplayValueCore=function(t,r){return this.multiSelect||Array.isArray(r)?this.getDisplayArrayValue(t,r):e.prototype.getDisplayValueCore.call(this,t,r)},Object.defineProperty(t.prototype,"showLabel",{get:function(){return this.getPropertyValue("showLabel")},set:function(e){this.setPropertyValue("showLabel",e)},enumerable:!1,configurable:!0}),t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),!this.isDesignMode&&this.multiSelect&&(this.createNewArray("renderedValue"),this.createNewArray("value")),this.calcIsResponsive()},t.prototype.getValueCore=function(){var t=e.prototype.getValueCore.call(this);return void 0!==t?t:this.multiSelect?[]:t},t.prototype.convertValToArrayForMultSelect=function(e){return this.multiSelect?this.isValueEmpty(e)||Array.isArray(e)?e:[e]:e},t.prototype.renderedValueFromDataCore=function(e){return this.convertValToArrayForMultSelect(e)},t.prototype.rendredValueToDataCore=function(e){return this.convertValToArrayForMultSelect(e)},Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageHeight",{get:function(){return((this.isResponsive?this.responsiveImageHeight:this.imageHeight)||150)+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageWidth",{get:function(){return((this.isResponsive?this.responsiveImageWidth:this.imageWidth)||200)+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.multiSelect?"checkbox":"radio"},enumerable:!1,configurable:!0}),t.prototype.isFootChoice=function(e,t){return!1},t.prototype.getSelectBaseRootCss=function(){return(new u.CssClassBuilder).append(e.prototype.getSelectBaseRootCss.call(this)).append(this.cssClasses.rootColumn,1==this.getCurrentColCount()).toString()},Object.defineProperty(t.prototype,"isResponsive",{get:function(){return this.isResponsiveValue&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exactSizesAreEmpty",{get:function(){var e=this;return!["imageHeight","imageWidth"].some((function(t){return void 0!==e[t]&&null!==e[t]}))},enumerable:!1,configurable:!0}),t.prototype.calcIsResponsive=function(){this.isResponsiveValue=this.exactSizesAreEmpty},t.prototype.getObservedElementSelector=function(){return Object(p.classesToSelector)(this.cssClasses.root)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme},t.prototype.getCurrentColCount=function(){return void 0===this.responsiveColCount||0===this.colCount?this.colCount:this.responsiveColCount},t.prototype.processResponsiveness=function(e,t){this._width=t=Math.floor(t);var r=function(e,t,r){var n=Math.floor(e/(t+r));return(n+1)*(t+r)-r<=e&&n++,n};if(this.isResponsive){var n,o=this.choices.length+(this.isDesignMode?1:0),i=this.gapBetweenItems||0,s=this.minImageWidth,a=this.maxImageWidth,l=this.maxImageHeight,u=this.minImageHeight,c=this.colCount;if(0===c)if((i+s)*o-i>t){var p=r(t,s,i);n=Math.floor((t-i*(p-1))/p)}else n=Math.floor((t-i*(o-1))/o);else{var d=r(t,s,i);d<c?(this.responsiveColCount=d>=1?d:1,c=this.responsiveColCount):this.responsiveColCount=c,n=Math.floor((t-i*(c-1))/c)}n=Math.max(s,Math.min(n,a));var h=Number.MIN_VALUE;this.choices.forEach((function(e){var t=n/e.aspectRatio;h=t>h?t:h})),h>l?h=l:h<u&&(h=u);var f=this.responsiveImageWidth,m=this.responsiveImageHeight;return this.responsiveImageWidth=n,this.responsiveImageHeight=h,f!==this.responsiveImageWidth||m!==this.responsiveImageHeight}return!1},t.prototype.afterRender=function(t){e.prototype.afterRender.call(this,t);var r=this.survey.getCss().variables;r&&(this.gapBetweenItems=Number.parseInt(window.getComputedStyle(t).getPropertyValue(r.imagepickerGapBetweenItems))||0)},h([Object(o.property)({})],t.prototype,"responsiveImageHeight",void 0),h([Object(o.property)({})],t.prototype,"responsiveImageWidth",void 0),h([Object(o.property)({})],t.prototype,"isResponsiveValue",void 0),h([Object(o.property)({})],t.prototype,"maxImageWidth",void 0),h([Object(o.property)({})],t.prototype,"minImageWidth",void 0),h([Object(o.property)({})],t.prototype,"maxImageHeight",void 0),h([Object(o.property)({})],t.prototype,"minImageHeight",void 0),h([Object(o.property)({})],t.prototype,"responsiveColCount",void 0),t}(s.QuestionCheckboxBase);o.Serializer.addClass("imageitemvalue",[],(function(e){return new f(e)}),"itemvalue"),o.Serializer.addProperty("imageitemvalue",{name:"imageLink",serializationProperty:"locImageLink"}),o.Serializer.addClass("responsiveImageSize",[],void 0,"number"),o.Serializer.addClass("imagepicker",[{name:"showOtherItem",visible:!1},{name:"otherText",visible:!1},{name:"showNoneItem",visible:!1},{name:"noneText",visible:!1},{name:"optionsCaption",visible:!1},{name:"otherErrorText",visible:!1},{name:"storeOthersAsComment",visible:!1},{name:"contentMode",default:"image",choices:["image","video"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight:number",minValue:0},{name:"imageWidth:number",minValue:0},{name:"minImageWidth:responsiveImageSize",default:200,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}},{name:"minImageHeight:responsiveImageSize",default:133,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}},{name:"maxImageWidth:responsiveImageSize",default:400,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}},{name:"maxImageHeight:responsiveImageSize",default:266,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}}],(function(){return new m("")}),"checkboxbase"),o.Serializer.addProperty("imagepicker",{name:"showLabel:boolean",default:!1}),o.Serializer.addProperty("imagepicker",{name:"colCount:number",default:0,choices:[0,1,2,3,4,5]}),o.Serializer.addProperty("imagepicker",{name:"multiSelect:boolean",default:!1}),o.Serializer.addProperty("imagepicker",{name:"choices:imageitemvalue[]"}),i.QuestionFactory.Instance.registerQuestion("imagepicker",(function(e){return new m(e)}))},"./src/question_matrix.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"MatrixRowModel",(function(){return b})),r.d(t,"MatrixCells",(function(){return y})),r.d(t,"QuestionMatrixModel",(function(){return v}));var n,o=r("./src/helpers.ts"),i=r("./src/itemvalue.ts"),s=r("./src/martixBase.ts"),a=r("./src/jsonobject.ts"),l=r("./src/base.ts"),u=r("./src/surveyStrings.ts"),c=r("./src/error.ts"),p=r("./src/questionfactory.ts"),d=r("./src/localizablestring.ts"),h=r("./src/question_dropdown.ts"),f=r("./src/settings.ts"),m=r("./src/utils/cssClassBuilder.ts"),g=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),b=function(e){function t(t,r,n,o){var i=e.call(this)||this;return i.fullName=r,i.item=t,i.data=n,i.value=o,i.cellClick=function(e){i.value=e.value},i.registerPropertyChangedHandlers(["value"],(function(){i.data&&i.data.onMatrixRowChanged(i)})),i}return g(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){e=this.data.getCorrectedRowValue(e),this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowClasses",{get:function(){var e=this.data.cssClasses,t=!!this.data.getErrorByType("requiredinallrowserror");return(new m.CssClassBuilder).append(e.row).append(e.rowError,t&&this.isValueEmpty(this.value)).toString()},enumerable:!1,configurable:!0}),t}(l.Base),y=function(){function e(e){this.cellsOwner=e,this.values={}}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==Object.keys(this.values).length},enumerable:!1,configurable:!0}),e.prototype.valuesChanged=function(){this.onValuesChanged&&this.onValuesChanged()},e.prototype.setCellText=function(e,t,r){if(e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t){if(r)this.values[e]||(this.values[e]={}),this.values[e][t]||(this.values[e][t]=this.createString()),this.values[e][t].text=r;else if(this.values[e]&&this.values[e][t]){var n=this.values[e][t];n.text="",n.isEmpty&&(delete this.values[e][t],0==Object.keys(this.values[e]).length&&delete this.values[e])}this.valuesChanged()}},e.prototype.setDefaultCellText=function(e,t){this.setCellText(f.settings.matrixDefaultRowName,e,t)},e.prototype.getCellLocText=function(e,t){return e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t&&this.values[e]&&this.values[e][t]?this.values[e][t]:null},e.prototype.getDefaultCellLocText=function(e,t){return this.getCellLocText(f.settings.matrixDefaultRowName,e)},e.prototype.getCellDisplayLocText=function(e,t){var r=this.getCellLocText(e,t);return r&&!r.isEmpty||(r=this.getCellLocText(f.settings.matrixDefaultRowName,t))&&!r.isEmpty?r:("number"==typeof t&&(t=t>=0&&t<this.columns.length?this.columns[t]:null),t&&t.locText?t.locText:null)},e.prototype.getCellText=function(e,t){var r=this.getCellLocText(e,t);return r?r.calculatedText:null},e.prototype.getDefaultCellText=function(e){var t=this.getCellLocText(f.settings.matrixDefaultRowName,e);return t?t.calculatedText:null},e.prototype.getCellDisplayText=function(e,t){var r=this.getCellDisplayLocText(e,t);return r?r.calculatedText:null},Object.defineProperty(e.prototype,"rows",{get:function(){return this.cellsOwner?this.cellsOwner.getRows():[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this.cellsOwner?this.cellsOwner.getColumns():[]},enumerable:!1,configurable:!0}),e.prototype.getCellRowColumnValue=function(e,t){if(null==e)return null;if("number"==typeof e){if(e<0||e>=t.length)return null;e=t[e].value}return e.value?e.value:e},e.prototype.getJson=function(){if(this.isEmpty)return null;var e={};for(var t in this.values){var r={},n=this.values[t];for(var o in n)r[o]=n[o].getJson();e[t]=r}return e},e.prototype.setJson=function(e){if(this.values={},e)for(var t in e)if("pos"!=t){var r=e[t];for(var n in this.values[t]={},r)if("pos"!=n){var o=this.createString();o.setJson(r[n]),this.values[t][n]=o}}this.valuesChanged()},e.prototype.locStrsChanged=function(){if(!this.isEmpty)for(var e in this.values){var t=this.values[e];for(var r in t)t[r].strChanged()}},e.prototype.createString=function(){return new d.LocalizableString(this.cellsOwner,!0)},e}(),v=function(e){function t(t){var r=e.call(this,t)||this;return r.isRowChanging=!1,r.emptyLocalizableString=new d.LocalizableString(r),r.cellsValue=new y(r),r.cellsValue.onValuesChanged=function(){r.updateHasCellText(),r.propertyValueChanged("cells",r.cells,r.cells)},r.registerPropertyChangedHandlers(["columns"],(function(){r.onColumnsChanged()})),r.registerPropertyChangedHandlers(["rows"],(function(){r.filterItems()||r.onRowsChanged()})),r.registerPropertyChangedHandlers(["hideIfRowsEmpty"],(function(){r.updateVisibilityBasedOnRows()})),r}return g(t,e),t.prototype.getType=function(){return"matrix"},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllRowRequired",{get:function(){return this.getPropertyValue("isAllRowRequired")},set:function(e){this.setPropertyValue("isAllRowRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRows",{get:function(){return this.rows.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsOrder",{get:function(){return this.getPropertyValue("rowsOrder")},set:function(e){(e=e.toLowerCase())!=this.rowsOrder&&(this.setPropertyValue("rowsOrder",e),this.onRowsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getRows=function(){return this.rows},t.prototype.getColumns=function(){return this.visibleColumns},t.prototype.addColumn=function(e,t){var r=new i.ItemValue(e,t);return this.columns.push(r),r},t.prototype.getItemClass=function(e,t){var r=e.value==t.value,n=this.isReadOnly,o=!r&&!n;return(new m.CssClassBuilder).append(this.cssClasses.cell,this.hasCellText).append(this.hasCellText?this.cssClasses.cellText:this.cssClasses.label).append(this.cssClasses.itemOnError,!this.hasCellText&&this.errors.length>0).append(this.hasCellText?this.cssClasses.cellTextSelected:this.cssClasses.itemChecked,r).append(this.hasCellText?this.cssClasses.cellTextDisabled:this.cssClasses.itemDisabled,n).append(this.cssClasses.itemHover,o&&!this.hasCellText).toString()},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.cells.locStrsChanged()},t.prototype.getQuizQuestionCount=function(){for(var e=0,t=0;t<this.rows.length;t++)this.isValueEmpty(this.correctAnswer[this.rows[t].value])||e++;return e},t.prototype.getCorrectAnswerCount=function(){for(var e=0,t=this.value,r=0;r<this.rows.length;r++){var n=this.rows[r].value;!this.isValueEmpty(t[n])&&this.isTwoValueEquals(this.correctAnswer[n],t[n])&&e++}return e},t.prototype.getVisibleRows=function(){var e=new Array,t=this.value;t||(t={});for(var r=this.filteredRows?this.filteredRows:this.rows,n=0;n<r.length;n++){var o=r[n];this.isValueEmpty(o.value)||e.push(this.createMatrixRow(o,this.id+"_"+o.value.toString().replace(/\s/g,"_"),t[o.value]))}return this.generatedVisibleRows=e,e},t.prototype.sortVisibleRows=function(e){return this.survey&&this.survey.isDesignMode?e:"random"===this.rowsOrder.toLowerCase()?o.Helpers.randomizeArray(e):e},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.rows=this.sortVisibleRows(this.rows)},t.prototype.processRowsOnSet=function(e){return this.sortVisibleRows(e)},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cells",{get:function(){return this.cellsValue},set:function(e){this.cells.setJson(e&&e.getJson?e.getJson():null)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCellText",{get:function(){return this.getPropertyValue("hasCellText",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasCellText=function(){this.setPropertyValue("hasCellText",!this.cells.isEmpty)},t.prototype.setCellText=function(e,t,r){this.cells.setCellText(e,t,r)},t.prototype.getCellText=function(e,t){return this.cells.getCellText(e,t)},t.prototype.setDefaultCellText=function(e,t){this.cells.setDefaultCellText(e,t)},t.prototype.getDefaultCellText=function(e){return this.cells.getDefaultCellText(e)},t.prototype.getCellDisplayText=function(e,t){return this.cells.getCellDisplayText(e,t)},t.prototype.getCellDisplayLocText=function(e,t){return this.cells.getCellDisplayLocText(e,t)||this.emptyLocalizableString},t.prototype.supportGoNextPageAutomatic=function(){return this.hasValuesInAllRows()},t.prototype.onCheckForErrors=function(t,r){e.prototype.onCheckForErrors.call(this,t,r),(!r||this.errors.length>0)&&this.hasErrorInRows()&&t.push(new c.RequiredInAllRowsError(null,this))},t.prototype.hasErrorInRows=function(){return!!this.isAllRowRequired&&!this.hasValuesInAllRows()},t.prototype.hasValuesInAllRows=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++)if(this.isValueEmpty(e[t].value))return!1;return!0},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.hasValuesInAllRows()},t.prototype.createMatrixRow=function(e,t,r){var n=new b(e,t,this,r);return this.onMatrixRowCreated(n),n},t.prototype.onMatrixRowCreated=function(e){},t.prototype.setQuestionValue=function(t,r){if(void 0===r&&(r=!0),e.prototype.setQuestionValue.call(this,t,this.isRowChanging||r),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length){this.isRowChanging=!0;var n=this.value;if(n||(n={}),0==this.rows.length)this.generatedVisibleRows[0].value=n;else for(var o=0;o<this.generatedVisibleRows.length;o++){var i=n[this.generatedVisibleRows[o].name];this.isValueEmpty(i)&&(i=null),this.generatedVisibleRows[o].value=i}this.updateIsAnswered(),this.isRowChanging=!1}},t.prototype.getDisplayValueCore=function(e,t){var r={};for(var n in t){var o=e?i.ItemValue.getTextOrHtmlByValue(this.rows,n):n;o||(o=n);var s=i.ItemValue.getTextOrHtmlByValue(this.columns,t[n]);s||(s=t[n]),r[o]=s}return r},t.prototype.getPlainData=function(t){var r=this;void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);if(n){var o=this.createValueCopy();n.isNode=!0,n.data=Object.keys(o||{}).map((function(e){var n=r.rows.filter((function(t){return t.value===e}))[0],s={name:e,title:n?n.text:"row",value:o[e],displayValue:i.ItemValue.getTextOrHtmlByValue(r.visibleColumns,o[e]),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1},a=i.ItemValue.getItemByValue(r.visibleColumns,o[e]);return a&&(t.calculations||[]).forEach((function(e){s[e.propertyName]=a[e.propertyName]})),s}))}return n},t.prototype.addConditionObjectsByContext=function(e,t){for(var r=0;r<this.rows.length;r++){var n=this.rows[r];n.value&&e.push({name:this.getValueName()+"."+n.value,text:this.processedTitle+"."+n.calculatedText,question:this})}},t.prototype.getConditionJson=function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!r)return e.prototype.getConditionJson.call(this);var n=new h.QuestionDropdownModel(r);n.choices=this.columns;var o=(new a.JsonObject).toJsonObject(n);return o.type=n.getType(),o},t.prototype.clearValueIfInvisibleCore=function(){e.prototype.clearValueIfInvisibleCore.call(this),this.hasRows&&this.clearInvisibleValuesInRows()},t.prototype.getFirstInputElementId=function(){var t=this.generatedVisibleRows;return t||(t=this.visibleRows),t.length>0&&this.visibleColumns.length>0?this.inputId+"_"+t[0].name+"_0":e.prototype.getFirstInputElementId.call(this)},t.prototype.onMatrixRowChanged=function(e){if(!this.isRowChanging){if(this.isRowChanging=!0,this.hasRows){var t=this.value;t||(t={}),t[e.name]=e.value,this.setNewValue(t)}else this.setNewValue(e.value);this.isRowChanging=!1}},t.prototype.getCorrectedRowValue=function(e){for(var t=0;t<this.columns.length;t++)if(e===this.columns[t].value)return e;for(t=0;t<this.columns.length;t++)if(this.isTwoValueEquals(e,this.columns[t].value))return this.columns[t].value;return e},t.prototype.getSearchableItemValueKeys=function(e){e.push("columns"),e.push("rows")},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({column:e},"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({column:e},"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({row:e},"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({row:e},"row-header")},t}(s.QuestionMatrixBaseModel);a.Serializer.addClass("matrix",["rowTitleWidth",{name:"columns:itemvalue[]",uniqueProperty:"value",baseValue:function(){return u.surveyLocalization.getString("matrix_column")}},{name:"rows:itemvalue[]",uniqueProperty:"value",baseValue:function(){return u.surveyLocalization.getString("matrix_row")}},{name:"cells:cells",serializationProperty:"cells"},{name:"rowsOrder",default:"initial",choices:["initial","random"]},"isAllRowRequired:boolean","hideIfRowsEmpty:boolean"],(function(){return new v("")}),"matrixbase"),p.QuestionFactory.Instance.registerQuestion("matrix",(function(e){var t=new v(e);return t.rows=p.QuestionFactory.DefaultRows,t.columns=p.QuestionFactory.DefaultColums,t}))},"./src/question_matrixdropdown.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"MatrixDropdownRowModel",(function(){return u})),r.d(t,"QuestionMatrixDropdownModel",(function(){return c}));var n,o=r("./src/question_matrixdropdownbase.ts"),i=r("./src/jsonobject.ts"),s=r("./src/itemvalue.ts"),a=r("./src/questionfactory.ts"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t,r,n,o){var i=e.call(this,n,o)||this;return i.name=t,i.item=r,i.buildCells(o),i}return l(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),t}(o.MatrixDropdownRowModelBase),c=function(e){function t(t){var r=e.call(this,t)||this;return r.createLocalizableString("totalText",r,!0),r.registerPropertyChangedHandlers(["rows"],(function(){r.clearGeneratedRows(),r.resetRenderedTable(),r.filterItems()||r.onRowsChanged(),r.clearIncorrectValues()})),r.registerPropertyChangedHandlers(["hideIfRowsEmpty"],(function(){r.updateVisibilityBasedOnRows()})),r}return l(t,e),t.prototype.getType=function(){return"matrixdropdown"},Object.defineProperty(t.prototype,"totalText",{get:function(){return this.getLocalizableStringText("totalText","")},set:function(e){this.setLocalizableStringText("totalText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalText",{get:function(){return this.getLocalizableString("totalText")},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return this.locTotalText},t.prototype.getRowTitleWidth=function(){return this.rowTitleWidth},Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){if(!t)return t;var r=this.visibleRows,n={};if(!r)return n;for(var o=0;o<r.length;o++){var i=r[o].rowName,a=t[i];if(a){if(e){var l=s.ItemValue.getTextOrHtmlByValue(this.rows,i);l&&(i=l)}n[i]=this.getRowDisplayValue(e,r[o],a)}}return n},t.prototype.getConditionObjectRowName=function(e){return"."+this.rows[e].value},t.prototype.getConditionObjectRowText=function(e){return"."+this.rows[e].calculatedText},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(t);return e},t.prototype.setNewValue=function(t){t&&"object"!=typeof t||e.prototype.setNewValue.call(this,t)},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var r=null,n=!1,o=this.filteredRows?this.filteredRows:this.rows;for(var i in t)s.ItemValue.getItemByValue(o,i)?(null==r&&(r={}),r[i]=t[i]):n=!0;n&&(this.value=r),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearValueIfInvisibleCore=function(){e.prototype.clearValueIfInvisibleCore.call(this),this.clearInvisibleValuesInRows()},t.prototype.generateRows=function(){var e=new Array,t=this.filteredRows?this.filteredRows:this.rows;if(!t||0===t.length)return e;var r=this.value;r||(r={});for(var n=0;n<t.length;n++)t[n].value&&e.push(this.createMatrixRow(t[n],r[t[n].value]));return e},t.prototype.createMatrixRow=function(e,t){return new u(e.value,e,this,t)},t.prototype.getSearchableItemValueKeys=function(e){e.push("rows")},t.prototype.updateProgressInfoByValues=function(e){var t=this.value;t||(t={});for(var r=0;r<this.rows.length;r++){var n=t[this.rows[r].value];this.updateProgressInfoByRow(e,n||{})}},t}(o.QuestionMatrixDropdownModelBase);i.Serializer.addClass("matrixdropdown",[{name:"rows:itemvalue[]",uniqueProperty:"value"},"rowsVisibleIf:condition","rowTitleWidth",{name:"totalText",serializationProperty:"locTotalText"},"hideIfRowsEmpty:boolean"],(function(){return new c("")}),"matrixdropdownbase"),a.QuestionFactory.Instance.registerQuestion("matrixdropdown",(function(e){var t=new c(e);return t.choices=[1,2,3,4,5],t.rows=a.QuestionFactory.DefaultRows,o.QuestionMatrixDropdownModelBase.addDefaultColumns(t),t}))},"./src/question_matrixdropdownbase.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"MatrixDropdownCell",(function(){return v})),r.d(t,"MatrixDropdownTotalCell",(function(){return w})),r.d(t,"MatrixDropdownRowModelBase",(function(){return C})),r.d(t,"MatrixDropdownTotalRowModel",(function(){return P})),r.d(t,"QuestionMatrixDropdownModelBase",(function(){return _}));var n,o=r("./src/jsonobject.ts"),i=r("./src/martixBase.ts"),s=r("./src/helpers.ts"),a=r("./src/base.ts"),l=r("./src/survey-element.ts"),u=r("./src/textPreProcessor.ts"),c=r("./src/itemvalue.ts"),p=r("./src/questionfactory.ts"),d=r("./src/functionsfactory.ts"),h=r("./src/settings.ts"),f=r("./src/error.ts"),m=r("./src/utils/cssClassBuilder.ts"),g=r("./src/question_matrixdropdowncolumn.ts"),b=r("./src/question_matrixdropdownrendered.ts"),y=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),v=function(){function e(e,t,r){this.column=e,this.row=t,this.data=r,this.questionValue=this.createQuestion(e,t,r),this.questionValue.updateCustomWidget()}return e.prototype.locStrsChanged=function(){this.question.locStrsChanged()},e.prototype.createQuestion=function(e,t,r){var n=r.createQuestion(this.row,this.column);return n.validateValueCallback=function(){return r.validateCell(t,e.name,t.value)},o.CustomPropertiesCollection.getProperties(e.getType()).forEach((function(t){var r=t.name;void 0!==e[r]&&(n[r]=e[r])})),n},Object.defineProperty(e.prototype,"question",{get:function(){return this.questionValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.question.value},set:function(e){this.question.value=e},enumerable:!1,configurable:!0}),e.prototype.runCondition=function(e,t){this.question.runCondition(e,t)},e}(),w=function(e){function t(t,r,n){var o=e.call(this,t,r,n)||this;return o.column=t,o.row=r,o.data=n,o.updateCellQuestion(),o}return y(t,e),t.prototype.createQuestion=function(e,t,r){var n=o.Serializer.createClass("expression");return n.setSurveyImpl(t),n},t.prototype.locStrsChanged=function(){this.updateCellQuestion(),e.prototype.locStrsChanged.call(this)},t.prototype.updateCellQuestion=function(){this.question.locCalculation(),this.column.updateCellQuestion(this.question,null,(function(e){delete e.defaultValue})),this.question.expression=this.getTotalExpression(),this.question.format=this.column.totalFormat,this.question.currency=this.column.totalCurrency,this.question.displayStyle=this.column.totalDisplayStyle,this.question.maximumFractionDigits=this.column.totalMaximumFractionDigits,this.question.minimumFractionDigits=this.column.totalMinimumFractionDigits,this.question.unlocCalculation(),this.question.runIfReadOnly=!0},t.prototype.getTotalExpression=function(){if(this.column.totalExpression)return this.column.totalExpression;if("none"==this.column.totalType)return"''";var e=this.column.totalType+"InArray";return d.FunctionFactory.Instance.hasFunction(e)?e+"({self}, '"+this.column.name+"')":""},t}(v),x=function(e){function t(t,r,n){var o=e.call(this,r)||this;return o.row=t,o.variableName=r,o.parentTextProcessor=n,o}return y(t,e),t.prototype.getParentTextProcessor=function(){return this.parentTextProcessor},Object.defineProperty(t.prototype,"survey",{get:function(){return this.row.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.row.value},t.prototype.getQuestionByName=function(e){return this.row.getQuestionByName(e)},t.prototype.onCustomProcessText=function(e){return e.name==C.IndexVariableName?(e.isExists=!0,e.value=this.row.rowIndex,!0):e.name==C.RowValueVariableName&&(e.isExists=!0,e.value=this.row.rowName,!0)},t}(u.QuestionTextProcessor),C=function(){function e(t,r){var n=this;this.isSettingValue=!1,this.detailPanelValue=null,this.cells=[],this.isCreatingDetailPanel=!1,this.data=t,this.subscribeToChanges(r),this.textPreProcessor=new x(this,e.RowVariableName,t?t.getParentTextProcessor():null),this.showHideDetailPanelClick=function(){if(n.getSurvey().isDesignMode)return!0;n.showHideDetailPanel()},this.idValue=e.getId()}return e.getId=function(){return"srow_"+e.idCounter++},Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rowName",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){for(var e={},t=this.questions,r=0;r<t.length;r++){var n=t[r];n.isEmpty()||(e[n.getValueName()]=n.value),n.comment&&this.getSurvey()&&this.getSurvey().storeOthersAsComment&&(e[n.getValueName()+a.Base.commentSuffix]=n.comment)}return e},set:function(e){this.isSettingValue=!0,this.subscribeToChanges(e);for(var t=this.questions,r=0;r<t.length;r++){var n=t[r],o=this.getCellValue(e,n.getValueName()),i=n.comment,s=e?e[n.getValueName()+a.Base.commentSuffix]:"";null==s&&(s=""),n.updateValueFromSurvey(o),(s||this.isTwoValueEquals(i,n.comment))&&n.updateCommentFromSurvey(s),n.onSurveyValueChanged(o)}this.isSettingValue=!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"locText",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPanel",{get:function(){return!!this.data&&this.data.hasDetailPanel(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detailPanelId",{get:function(){return this.detailPanel?this.detailPanel.id:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDetailPanelShowing",{get:function(){return!!this.data&&this.data.getIsDetailPanelShowing(this)},enumerable:!1,configurable:!0}),e.prototype.setIsDetailPanelShowing=function(e){this.data&&this.data.setIsDetailPanelShowing(this,e),this.onDetailPanelShowingChanged&&this.onDetailPanelShowingChanged()},e.prototype.showHideDetailPanel=function(){this.isDetailPanelShowing?this.hideDetailPanel():this.showDetailPanel()},e.prototype.showDetailPanel=function(){this.ensureDetailPanel(),this.detailPanelValue&&this.setIsDetailPanelShowing(!0)},e.prototype.hideDetailPanel=function(e){void 0===e&&(e=!1),this.setIsDetailPanelShowing(!1),e&&(this.detailPanelValue=null)},e.prototype.ensureDetailPanel=function(){if(!this.isCreatingDetailPanel&&!this.detailPanelValue&&this.hasPanel&&this.data){this.isCreatingDetailPanel=!0,this.detailPanelValue=this.data.createRowDetailPanel(this);var e=this.detailPanelValue.questions,t=this.data.getRowValue(this.data.getRowIndex(this));if(!s.Helpers.isValueEmpty(t))for(var r=0;r<e.length;r++){var n=e[r].getValueName();s.Helpers.isValueEmpty(t[n])||(e[r].value=t[n])}this.detailPanelValue.setSurveyImpl(this),this.isCreatingDetailPanel=!1}},e.prototype.getAllValues=function(){return this.value},e.prototype.getFilteredValues=function(){var e=this.getAllValues(),t={row:e};for(var r in e)t[r]=e[r];return t},e.prototype.getFilteredProperties=function(){return{survey:this.getSurvey(),row:this}},e.prototype.runCondition=function(t,r){this.data&&(t[e.OwnerVariableName]=this.data.value),t[e.IndexVariableName]=this.rowIndex,t[e.RowValueVariableName]=this.rowName,r||(r={}),r[e.RowVariableName]=this;for(var n=0;n<this.cells.length;n++)t[e.RowVariableName]=this.value,this.cells[n].runCondition(t,r);this.detailPanel&&this.detailPanel.runCondition(t,r)},e.prototype.clearValue=function(){for(var e=this.questions,t=0;t<e.length;t++)e[t].clearValue()},e.prototype.onAnyValueChanged=function(e){for(var t=this.questions,r=0;r<t.length;r++)t[r].onAnyValueChanged(e)},e.prototype.getDataValueCore=function(e,t){var r=this.getSurvey();return r?r.getDataValueCore(e,t):e[t]},e.prototype.getValue=function(e){var t=this.getQuestionByName(e);return t?t.value:null},e.prototype.setValue=function(e,t){this.setValueCore(e,t,!1)},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){var t=this.getQuestionByName(e);return t?t.comment:""},e.prototype.setComment=function(e,t,r){this.setValueCore(e,t,!0)},e.prototype.findQuestionByName=function(t){if(t){var r=e.RowVariableName+".";if(0===t.indexOf(r))return this.getQuestionByName(t.substring(r.length));var n=this.getSurvey();return n?n.getQuestionByName(t):null}},e.prototype.setValueCore=function(t,r,n){if(!this.isSettingValue){this.updateQuestionsValue(t,r,n);var o=this.value,i=n?t+a.Base.commentSuffix:t,s=r,l=this.getQuestionByName(t),u=this.data.onRowChanging(this,i,o);if(l&&!this.isTwoValueEquals(u,s)&&(this.isSettingValue=!0,n?l.comment=u:l.value=u,this.isSettingValue=!1,o=this.value),!this.data.isValidateOnValueChanging||!this.hasQuestonError(l)){var c=null==r&&!l||n&&!r&&!!l&&l.autoOtherMode;this.data.onRowChanged(this,i,o,c),this.onAnyValueChanged(e.RowVariableName)}}},e.prototype.updateQuestionsValue=function(e,t,r){if(this.detailPanel){var n=this.getQuestionByColumnName(e),o=this.detailPanel.getQuestionByName(e);if(n&&o){var i=this.isTwoValueEquals(t,r?n.comment:n.value)?o:n;this.isSettingValue=!0,r?i.comment=t:i.value=t,this.isSettingValue=!1}}},e.prototype.hasQuestonError=function(e){if(!e)return!1;if(e.hasErrors(!0,{isOnValueChanged:!this.data.isValidateOnValueChanging}))return!0;if(e.isEmpty())return!1;var t=this.getCellByColumnName(e.name);return!!(t&&t.column&&t.column.isUnique)&&this.data.checkIfValueInRowDuplicated(this,e)},Object.defineProperty(e.prototype,"isEmpty",{get:function(){var e=this.value;if(s.Helpers.isValueEmpty(e))return!0;for(var t in e)if(void 0!==e[t]&&null!==e[t])return!1;return!0},enumerable:!1,configurable:!0}),e.prototype.getQuestionByColumn=function(e){var t=this.getCellByColumn(e);return t?t.question:null},e.prototype.getCellByColumn=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column==e)return this.cells[t];return null},e.prototype.getCellByColumnName=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column.name==e)return this.cells[t];return null},e.prototype.getQuestionByColumnName=function(e){var t=this.getCellByColumnName(e);return t?t.question:null},Object.defineProperty(e.prototype,"questions",{get:function(){for(var e=[],t=0;t<this.cells.length;t++)e.push(this.cells[t].question);var r=this.detailPanel?this.detailPanel.questions:[];for(t=0;t<r.length;t++)e.push(r[t]);return e},enumerable:!1,configurable:!0}),e.prototype.getQuestionByName=function(e){return this.getQuestionByColumnName(e)||(this.detailPanel?this.detailPanel.getQuestionByName(e):null)},e.prototype.getQuestionsByName=function(e){var t=[],r=this.getQuestionByColumnName(e);return r&&t.push(r),this.detailPanel&&(r=this.detailPanel.getQuestionByName(e))&&t.push(r),t},e.prototype.getSharedQuestionByName=function(e){return this.data?this.data.getSharedQuestionByName(e,this):null},e.prototype.clearIncorrectValues=function(e){for(var t in e){var r=this.getQuestionByName(t);if(r){var n=r.value;r.clearIncorrectValues(),this.isTwoValueEquals(n,r.value)||this.setValue(t,r.value)}else!this.getSharedQuestionByName(t)&&t.indexOf(h.settings.matrixTotalValuePostFix)<0&&this.setValue(t,null)}},e.prototype.getLocale=function(){return this.data?this.data.getLocale():""},e.prototype.getMarkdownHtml=function(e,t){return this.data?this.data.getMarkdownHtml(e,t):void 0},e.prototype.getRenderer=function(e){return this.data?this.data.getRenderer(e):null},e.prototype.getRendererContext=function(e){return this.data?this.data.getRendererContext(e):e},e.prototype.getProcessedText=function(e){return this.data?this.data.getProcessedText(e):e},e.prototype.locStrsChanged=function(){for(var e=0;e<this.cells.length;e++)this.cells[e].locStrsChanged();this.detailPanel&&this.detailPanel.locStrsChanged()},e.prototype.updateCellQuestionOnColumnChanged=function(e,t,r){var n=this.getCellByColumn(e);n&&this.updateCellOnColumnChanged(n,t,r)},e.prototype.updateCellQuestionOnColumnItemValueChanged=function(e,t,r,n,o,i){var s=this.getCellByColumn(e);s&&this.updateCellOnColumnItemValueChanged(s,t,r,n,o,i)},e.prototype.onQuestionReadOnlyChanged=function(e){for(var t=this.questions,r=0;r<t.length;r++){var n=t[r];n.setPropertyValue("isReadOnly",n.isReadOnly)}this.detailPanel&&(this.detailPanel.readOnly=e)},e.prototype.hasErrors=function(e,t,r){var n=!1,o=this.cells;if(!o)return n;for(var i=0;i<o.length;i++)if(o[i]){var s=o[i].question;s&&s.visible&&(s.onCompletedAsyncValidators=function(e){r()},t&&!0===t.isOnValueChanged&&s.isEmpty()||(n=s.hasErrors(e,t)||n))}if(this.hasPanel){this.ensureDetailPanel();var a=this.detailPanel.hasErrors(e,!1,t);!t.hideErroredPanel&&a&&e&&(t.isSingleDetailPanel&&(t.hideErroredPanel=!0),this.showDetailPanel()),n=a||n}return n},e.prototype.updateCellOnColumnChanged=function(e,t,r){e.question[t]=r},e.prototype.updateCellOnColumnItemValueChanged=function(e,t,r,n,o,i){var s=e.question[t];if(Array.isArray(s)){var a="value"===n?i:r.value,l=c.ItemValue.getItemByValue(s,a);l&&(l[n]=o)}},e.prototype.buildCells=function(e){this.isSettingValue=!0;for(var t=this.data.columns,r=0;r<t.length;r++){var n=t[r];if(n.isVisible){var o=this.createCell(n);this.cells.push(o);var i=this.getCellValue(e,n.name);if(!s.Helpers.isValueEmpty(i)){o.question.value=i;var l=n.name+a.Base.commentSuffix;e&&!s.Helpers.isValueEmpty(e[l])&&(o.question.comment=e[l])}}}this.isSettingValue=!1},e.prototype.isTwoValueEquals=function(e,t){return s.Helpers.isTwoValueEquals(e,t,!1,!0,!1)},e.prototype.getCellValue=function(e,t){return this.editingObj?o.Serializer.getObjPropertyValue(this.editingObj,t):e?e[t]:void 0},e.prototype.createCell=function(e){return new v(e,this,this.data)},e.prototype.getSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this.textPreProcessor},Object.defineProperty(e.prototype,"rowIndex",{get:function(){return this.data?this.data.getRowIndex(this)+1:-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"editingObj",{get:function(){return this.editingObjValue},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.editingObj&&(this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=null)},e.prototype.subscribeToChanges=function(e){var t=this;e&&e.getType&&e.onPropertyChanged&&e!==this.editingObj&&(this.editingObjValue=e,this.onEditingObjPropertyChanged=function(e,r){t.updateOnSetValue(r.name,r.newValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))},e.prototype.updateOnSetValue=function(e,t){this.isSettingValue=!0;for(var r=this.getQuestionsByName(e),n=0;n<r.length;n++)r[n].value=t;this.isSettingValue=!1},e.RowVariableName="row",e.OwnerVariableName="self",e.IndexVariableName="rowIndex",e.RowValueVariableName="rowValue",e.idCounter=1,e}(),P=function(e){function t(t){var r=e.call(this,t,null)||this;return r.buildCells(null),r}return y(t,e),t.prototype.createCell=function(e){return new w(e,this,this.data)},t.prototype.setValue=function(e,t){this.data&&!this.isSettingValue&&this.data.onTotalValueChanged()},t.prototype.runCondition=function(t,r){var n,o=0;do{n=s.Helpers.getUnbindValue(this.value),e.prototype.runCondition.call(this,t,r),o++}while(!s.Helpers.isTwoValueEquals(n,this.value)&&o<3)},t.prototype.updateCellOnColumnChanged=function(e,t,r){e.updateCellQuestion()},t}(C),_=function(e){function t(t){var r=e.call(this,t)||this;return r.isRowChanging=!1,r.lockResetRenderedTable=!1,r.isDoingonAnyValueChanged=!1,r.createItemValues("choices"),r.createLocalizableString("placeholder",r,!1,!0),r.createLocalizableString("keyDuplicationError",r,!1,!0),r.detailPanelValue=r.createNewDetailPanel(),r.detailPanel.selectedElementInDesign=r,r.detailPanel.renderWidth="100%",r.detailPanel.isInteractiveDesignElement=!1,r.detailPanel.showTitle=!1,r.registerPropertyChangedHandlers(["columns","cellType"],(function(){r.updateColumnsAndRows()})),r.registerPropertyChangedHandlers(["placeholder","columnColCount","rowTitleWidth","choices"],(function(){r.clearRowsAndResetRenderedTable()})),r.registerPropertyChangedHandlers(["columnLayout","addRowLocation","hideColumnsIfEmpty","showHeader","minRowCount","isReadOnly","rowCount","hasFooter","detailPanelMode"],(function(){r.resetRenderedTable()})),r.registerPropertyChangedHandlers(["isMobile"],(function(){"vertical"===r.columnLayout&&r.resetRenderedTable()})),r}return y(t,e),Object.defineProperty(t,"defaultCellType",{get:function(){return h.settings.matrixDefaultCellType},set:function(e){h.settings.matrixDefaultCellType=e},enumerable:!1,configurable:!0}),t.addDefaultColumns=function(e){for(var t=p.QuestionFactory.DefaultColums,r=0;r<t.length;r++)e.addColumn(t[r])},t.prototype.createColumnValues=function(){var e=this;return this.createNewArray("columns",(function(t){t.colOwner=e,e.onAddColumn&&e.onAddColumn(t),e.survey&&e.survey.matrixColumnAdded(e,t)}),(function(t){t.colOwner=null,e.onRemoveColumn&&e.onRemoveColumn(t)}))},t.prototype.getType=function(){return"matrixdropdownbase"},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.clearGeneratedRows()},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateLocked",{get:function(){return this.isLoadingFromJson||this.isUpdating},enumerable:!1,configurable:!0}),t.prototype.beginUpdate=function(){this.isUpdating=!0},t.prototype.endUpdate=function(){this.isUpdating=!1,this.updateColumnsAndRows()},t.prototype.updateColumnsAndRows=function(){this.updateColumnsIndexes(this.columns),this.updateColumnsCellType(),this.generatedTotalRow=null,this.clearRowsAndResetRenderedTable()},t.prototype.itemValuePropertyChanged=function(t,r,n,o){e.prototype.itemValuePropertyChanged.call(this,t,r,n,o),"choices"===t.ownerPropertyName&&this.clearRowsAndResetRenderedTable()},Object.defineProperty(t.prototype,"columnLayout",{get:function(){return this.getPropertyValue("columnLayout")},set:function(e){this.setPropertyValue("columnLayout",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsLocation",{get:function(){return this.columnLayout},set:function(e){this.columnLayout=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isColumnLayoutHorizontal",{get:function(){return!!this.isMobile||"vertical"!=this.columnLayout},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUniqueCaseSensitive",{get:function(){return void 0!==this.isUniqueCaseSensitiveValue?this.isUniqueCaseSensitiveValue:h.settings.comparator.caseSensitive},set:function(e){this.isUniqueCaseSensitiveValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanelMode",{get:function(){return this.getPropertyValue("detailPanelMode")},set:function(e){this.setPropertyValue("detailPanelMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.detailPanel},Object.defineProperty(t.prototype,"detailElements",{get:function(){return this.detailPanel.elements},enumerable:!1,configurable:!0}),t.prototype.createNewDetailPanel=function(){return o.Serializer.createClass("panel")},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return null},Object.defineProperty(t.prototype,"canAddRow",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){return!0},t.prototype.onPointerDown=function(e,t){},t.prototype.onRowsChanged=function(){this.resetRenderedTable(),e.prototype.onRowsChanged.call(this)},t.prototype.onStartRowAddingRemoving=function(){this.lockResetRenderedTable=!0,this.setValueChangedDirectly()},t.prototype.onEndRowAdding=function(){if(this.lockResetRenderedTable=!1,this.renderedTable)if(this.renderedTable.isRequireReset())this.resetRenderedTable();else{var e=this.visibleRows.length-1;this.renderedTable.onAddedRow(this.visibleRows[e],e)}},t.prototype.onEndRowRemoving=function(e){this.lockResetRenderedTable=!1,this.renderedTable.isRequireReset()?this.resetRenderedTable():e&&this.renderedTable.onRemovedRow(e)},Object.defineProperty(t.prototype,"renderedTableValue",{get:function(){return this.getPropertyValue("renderedTable",null)},set:function(e){this.setPropertyValue("renderedTable",e)},enumerable:!1,configurable:!0}),t.prototype.clearRowsAndResetRenderedTable=function(){this.clearGeneratedRows(),this.resetRenderedTable(),this.fireCallback(this.columnsChangedCallback)},t.prototype.resetRenderedTable=function(){this.lockResetRenderedTable||this.isUpdateLocked||(this.renderedTableValue=null,this.fireCallback(this.onRenderedTableResetCallback))},t.prototype.clearGeneratedRows=function(){if(this.generatedVisibleRows){for(var t=0;t<this.generatedVisibleRows.length;t++)this.generatedVisibleRows[t].dispose();e.prototype.clearGeneratedRows.call(this)}},Object.defineProperty(t.prototype,"isRendredTableCreated",{get:function(){return!!this.renderedTableValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedTable",{get:function(){return this.renderedTableValue||(this.renderedTableValue=this.createRenderedTable(),this.onRenderedTableCreatedCallback&&this.onRenderedTableCreatedCallback(this.renderedTableValue)),this.renderedTableValue},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new b.QuestionMatrixDropdownRenderedTable(this)},t.prototype.onMatrixRowCreated=function(e){if(this.survey)for(var t={rowValue:e.value,row:e,column:null,columnName:null,cell:null,cellQuestion:null,value:null},r=0;r<this.visibleColumns.length;r++){t.column=this.visibleColumns[r],t.columnName=t.column.name;var n=e.cells[r];t.cell=n,t.cellQuestion=n.question,t.value=n.value,this.onCellCreatedCallback&&this.onCellCreatedCallback(t),this.survey.matrixCellCreated(this,t)}},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType",h.settings.matrixDefaultCellType)},set:function(e){e=e.toLowerCase(),this.setPropertyValue("cellType",e)},enumerable:!1,configurable:!0}),t.prototype.updateColumnsCellType=function(){for(var e=0;e<this.columns.length;e++)this.columns[e].defaultCellTypeChanged()},t.prototype.updateColumnsIndexes=function(e){for(var t=0;t<e.length;t++)e[t].setIndex(t)},Object.defineProperty(t.prototype,"columnColCount",{get:function(){return this.getPropertyValue("columnColCount")},set:function(e){e<0||e>4||this.setPropertyValue("columnColCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScroll",{get:function(){return this.getPropertyValue("horizontalScroll")},set:function(e){this.setPropertyValue("horizontalScroll",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e),this.detailPanel&&(this.detailPanel.allowAdaptiveActions=e)},enumerable:!1,configurable:!0}),t.prototype.getRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.hasChoices=function(){return this.choices.length>0},t.prototype.onColumnPropertyChanged=function(e,t,r){if(this.updateHasFooter(),this.generatedVisibleRows){for(var n=0;n<this.generatedVisibleRows.length;n++)this.generatedVisibleRows[n].updateCellQuestionOnColumnChanged(e,t,r);this.generatedTotalRow&&this.generatedTotalRow.updateCellQuestionOnColumnChanged(e,t,r),this.onColumnsChanged(),"isRequired"==t&&this.resetRenderedTable()}},t.prototype.onColumnItemValuePropertyChanged=function(e,t,r,n,o,i){if(this.generatedVisibleRows)for(var s=0;s<this.generatedVisibleRows.length;s++)this.generatedVisibleRows[s].updateCellQuestionOnColumnItemValueChanged(e,t,r,n,o,i)},t.prototype.onShowInMultipleColumnsChanged=function(e){this.clearGeneratedRows(),this.resetRenderedTable()},t.prototype.onColumnCellTypeChanged=function(e){this.clearGeneratedRows(),this.resetRenderedTable()},t.prototype.getRowTitleWidth=function(){return""},Object.defineProperty(t.prototype,"hasFooter",{get:function(){return this.getPropertyValue("hasFooter",!1)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return"default"},t.prototype.getShowColumnsIfEmpty=function(){return!1},t.prototype.updateShowTableAndAddRow=function(){this.renderedTable&&this.renderedTable.updateShowTableAndAddRow()},t.prototype.updateHasFooter=function(){this.setPropertyValue("hasFooter",this.hasTotal)},Object.defineProperty(t.prototype,"hasTotal",{get:function(){for(var e=0;e<this.columns.length;e++)if(this.columns[e].hasTotal)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getCellType=function(){return this.cellType},t.prototype.getCustomCellType=function(e,t,r){if(!this.survey)return r;var n={rowValue:t.value,row:t,column:e,columnName:e.name,cellType:r};return this.survey.matrixCellCreating(this,n),n.cellType},t.prototype.getConditionJson=function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!r)return e.prototype.getConditionJson.call(this);for(var n="",o=r.length-1;o>=0&&"."!=r[o];o--)n=r[o]+n;var i=this.getColumnByName(n);if(!i)return null;var s=i.createCellQuestion(null);return s?s.getConditionJson(t):null},t.prototype.clearIncorrectValues=function(){var e=this.visibleRows;if(e)for(var t=0;t<e.length;t++)e[t].clearIncorrectValues(this.getRowValue(t))},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this),this.runFuncForCellQuestions((function(e){e.clearErrors()}))},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.runFuncForCellQuestions((function(e){e.localeChanged()}))},t.prototype.runFuncForCellQuestions=function(e){if(this.generatedVisibleRows)for(var t=0;t<this.generatedVisibleRows.length;t++)for(var r=this.generatedVisibleRows[t],n=0;n<r.cells.length;n++)e(r.cells[n].question)},t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r);var n,o=0;do{n=s.Helpers.getUnbindValue(this.totalValue),this.runCellsCondition(t,r),this.runTotalsCondition(t,r),o++}while(!s.Helpers.isTwoValueEquals(n,this.totalValue)&&o<3)},t.prototype.shouldRunColumnExpression=function(){return!1},t.prototype.runCellsCondition=function(e,t){if(this.generatedVisibleRows){for(var r=this.getRowConditionValues(e),n=this.generatedVisibleRows,o=0;o<n.length;o++)n[o].runCondition(r,t);this.checkColumnsVisibility(),this.checkColumnsRenderedRequired()}},t.prototype.checkColumnsVisibility=function(){for(var e=!1,t=0;t<this.visibleColumns.length;t++)this.visibleColumns[t].visibleIf&&(e=this.isColumnVisibilityChanged(this.visibleColumns[t])||e);e&&this.resetRenderedTable()},t.prototype.checkColumnsRenderedRequired=function(){for(var e=this.generatedVisibleRows,t=0;t<this.visibleColumns.length;t++){var r=this.visibleColumns[t];if(r.requiredIf){for(var n=e.length>0,o=0;o<e.length;o++)if(!e[o].cells[t].question.isRequired){n=!1;break}r.updateIsRenderedRequired(n)}}},t.prototype.isColumnVisibilityChanged=function(e){for(var t=e.hasVisibleCell,r=!1,n=this.generatedVisibleRows,o=0;o<n.length;o++){var i=n[o].cells[e.index];if(i&&i.question&&i.question.isVisible){r=!0;break}}return t!=r&&(e.hasVisibleCell=r),t!=r},t.prototype.runTotalsCondition=function(e,t){this.generatedTotalRow&&this.generatedTotalRow.runCondition(this.getRowConditionValues(e),t)},t.prototype.getRowConditionValues=function(e){var t=e;t||(t={});var r={};return this.isValueEmpty(this.totalValue)||(r=JSON.parse(JSON.stringify(this.totalValue))),t.row={},t.totalRow=r,t},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.columns,r=0;r<t.length;r++)t[r].locStrsChanged();var n=this.generatedVisibleRows;if(n){for(r=0;r<n.length;r++)n[r].locStrsChanged();this.generatedTotalRow&&this.generatedTotalRow.locStrsChanged()}},t.prototype.getColumnByName=function(e){for(var t=0;t<this.columns.length;t++)if(this.columns[t].name==e)return this.columns[t];return null},t.prototype.getColumnName=function(e){return this.getColumnByName(e)},t.prototype.getColumnWidth=function(e){var t;return e.minWidth?e.minWidth:this.columnMinWidth?this.columnMinWidth:(null===(t=h.settings.matrix.columnWidthsByType[e.cellType])||void 0===t?void 0:t.minWidth)||""},Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return!!this.survey&&this.survey.storeOthersAsComment},enumerable:!1,configurable:!0}),t.prototype.addColumn=function(e,t){void 0===t&&(t=null);var r=new g.MatrixDropdownColumn(e,t);return this.columns.push(r),r},t.prototype.getVisibleRows=function(){var e=this;return this.isUpdateLocked?null:(this.generatedVisibleRows||(this.generatedVisibleRows=this.generateRows(),this.generatedVisibleRows.forEach((function(t){return e.onMatrixRowCreated(t)})),this.data&&this.runCellsCondition(this.data.getFilteredValues(),this.data.getFilteredProperties()),this.updateValueOnRowsGeneration(this.generatedVisibleRows),this.updateIsAnswered()),this.generatedVisibleRows)},t.prototype.updateValueOnRowsGeneration=function(e){for(var t=this.createNewValue(!0),r=this.createNewValue(),n=0;n<e.length;n++){var o=e[n];if(!o.editingObj){var i=this.getRowValue(n),s=o.value;this.isTwoValueEquals(i,s)||(r=this.getNewValueOnRowChanged(o,"",s,!1,r).value)}}this.isTwoValueEquals(t,r)||(this.isRowChanging=!0,this.setNewValue(r),this.isRowChanging=!1)},Object.defineProperty(t.prototype,"totalValue",{get:function(){return this.hasTotal&&this.visibleTotalRow?this.visibleTotalRow.value:{}},enumerable:!1,configurable:!0}),t.prototype.getVisibleTotalRow=function(){if(this.isUpdateLocked)return null;if(this.hasTotal){if(!this.generatedTotalRow&&(this.generatedTotalRow=this.generateTotalRow(),this.data)){var e={survey:this.survey};this.runTotalsCondition(this.data.getAllValues(),e)}}else this.generatedTotalRow=null;return this.generatedTotalRow},Object.defineProperty(t.prototype,"visibleTotalRow",{get:function(){return this.getVisibleTotalRow()},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.updateColumnsIndexes(this.columns),this.clearGeneratedRows(),this.generatedTotalRow=null,this.updateHasFooter()},t.prototype.getRowValue=function(e){if(e<0)return null;var t=this.visibleRows;if(e>=t.length)return null;var r=this.createNewValue();return this.getRowValueCore(t[e],r)},t.prototype.checkIfValueInRowDuplicated=function(e,t){if(!this.generatedVisibleRows)return!1;for(var r=!1,n=0;n<this.generatedVisibleRows.length;n++){var o=this.generatedVisibleRows[n];if(e!==o&&s.Helpers.isTwoValueEquals(o.getValue(t.name),t.value,!0,this.isUniqueCaseSensitive)){r=!0;break}}return r?this.addDuplicationError(t):t.clearErrors(),r},t.prototype.setRowValue=function(e,t){if(e<0)return null;var r=this.visibleRows;if(e>=r.length)return null;r[e].value=t,this.onRowChanged(r[e],"",t,!1)},t.prototype.generateRows=function(){return null},t.prototype.generateTotalRow=function(){return new P(this)},t.prototype.createNewValue=function(e){void 0===e&&(e=!1);var t=this.value?this.createValueCopy():{};return e&&this.isMatrixValueEmpty(t)?null:t},t.prototype.getRowValueCore=function(e,t,r){void 0===r&&(r=!1);var n=t&&t[e.rowName]?t[e.rowName]:null;return!n&&r&&(n={},t&&(t[e.rowName]=n)),n},t.prototype.getRowObj=function(e){var t=this.getRowValueCore(e,this.value);return t&&t.getType?t:null},t.prototype.getRowDisplayValue=function(e,t,r){if(!r)return r;if(t.editingObj)return r;for(var n=Object.keys(r),o=0;o<n.length;o++){var i=n[o],s=t.getQuestionByName(i);if(s||(s=this.getSharedQuestionByName(i,t)),s){var a=s.getDisplayValue(e,r[i]);e&&s.title&&s.title!==i?(r[s.title]=a,delete r[i]):r[i]=a}}return r},t.prototype.getPlainData=function(t){var r=this;void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);return n&&(n.isNode=!0,n.data=this.visibleRows.map((function(e){var n={name:e.rowName,title:e.text,value:e.value,displayValue:r.getRowDisplayValue(!1,e,e.value),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.cells.map((function(e){return e.question.getPlainData(t)})).filter((function(e){return!!e}))};return(t.calculations||[]).forEach((function(t){n[t.propertyName]=e[t.propertyName]})),n}))),n},t.prototype.addConditionObjectsByContext=function(e,t){var r=!!t&&(!0===t||this.columns.indexOf(t)>-1),n=this.getConditionObjectsRowIndeces();r&&n.push(-1);for(var o=0;o<n.length;o++){var i=n[o],s=i>-1?this.getConditionObjectRowName(i):"row";if(s)for(var a=i>-1?this.getConditionObjectRowText(i):"row",l=i>-1||!0===t,u=l&&-1===i?".":"",c=(l?this.getValueName():"")+u+s+".",p=(l?this.processedTitle:"")+u+a+".",d=0;d<this.columns.length;d++){var h=this.columns[d];if(-1!==i||t!==h){var f={name:c+h.name,text:p+h.fullTitle,question:this};-1===i&&!0===t&&(f.context=this),e.push(f)}}}},t.prototype.getConditionObjectRowName=function(e){return""},t.prototype.getConditionObjectRowText=function(e){return this.getConditionObjectRowName(e)},t.prototype.getConditionObjectsRowIndeces=function(){return[]},t.prototype.getProgressInfo=function(){if(this.generatedVisibleRows)return l.SurveyElement.getProgressInfoByElements(this.getCellQuestions(),this.isRequired);var e=a.Base.createProgressInfo();return this.updateProgressInfoByValues(e),0===e.requiredQuestionCount&&this.isRequired&&(e.requiredQuestionCount=1,e.requiredAnsweredQuestionCount=this.isEmpty()?0:1),e},t.prototype.updateProgressInfoByValues=function(e){},t.prototype.updateProgressInfoByRow=function(e,t){for(var r=0;r<this.columns.length;r++){var n=this.columns[r];if(n.templateQuestion.hasInput){e.questionCount+=1,e.requiredQuestionCount+=n.isRequired;var o=!s.Helpers.isValueEmpty(t[n.name]);e.answeredQuestionCount+=o?1:0,e.requiredAnsweredQuestionCount+=o&&n.isRequired?1:0}}},t.prototype.getCellQuestions=function(){var e=[];return this.runFuncForCellQuestions((function(t){e.push(t)})),e},t.prototype.onBeforeValueChanged=function(e){},t.prototype.onSetQuestionValue=function(){if(!this.isRowChanging&&(this.onBeforeValueChanged(this.value),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length)){this.isRowChanging=!0;for(var e=this.createNewValue(),t=0;t<this.generatedVisibleRows.length;t++){var r=this.generatedVisibleRows[t];this.generatedVisibleRows[t].value=this.getRowValueCore(r,e)}this.isRowChanging=!1}},t.prototype.setQuestionValue=function(t){e.prototype.setQuestionValue.call(this,t,!1),this.onSetQuestionValue(),this.updateIsAnswered()},t.prototype.supportGoNextPageAutomatic=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++){var r=this.generatedVisibleRows[t].cells;if(r)for(var n=0;n<r.length;n++){var o=r[n].question;if(o&&(!o.supportGoNextPageAutomatic()||!o.value))return!1}}return!0},t.prototype.getContainsErrors=function(){return e.prototype.getContainsErrors.call(this)||this.checkForAnswersOrErrors((function(e){return e.containsErrors}),!1)},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.checkForAnswersOrErrors((function(e){return e.isAnswered}),!0)},t.prototype.checkForAnswersOrErrors=function(e,t){void 0===t&&(t=!1);var r=this.generatedVisibleRows;if(!r)return!1;for(var n=0;n<r.length;n++){var o=r[n].cells;if(o)for(var i=0;i<o.length;i++)if(o[i]){var s=o[i].question;if(s&&s.isVisible)if(e(s)){if(!t)return!0}else if(t)return!1}}return!!t},t.prototype.hasErrors=function(t,r){void 0===t&&(t=!0),void 0===r&&(r=null);var n=this.hasErrorInRows(t,r),o=this.isValueDuplicated();return e.prototype.hasErrors.call(this,t,r)||n||o},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;if(!this.generatedVisibleRows)return!1;for(var t=0;t<this.generatedVisibleRows.length;t++){var r=this.generatedVisibleRows[t].cells;if(r)for(var n=0;n<r.length;n++)if(r[n]){var o=r[n].question;if(o&&o.isRunningValidators)return!0}}return!1},t.prototype.getAllErrors=function(){var t=e.prototype.getAllErrors.call(this),r=this.generatedVisibleRows;if(null===r)return t;for(var n=0;n<r.length;n++)for(var o=r[n],i=0;i<o.cells.length;i++){var s=o.cells[i].question.getAllErrors();s&&s.length>0&&(t=t.concat(s))}return t},t.prototype.hasErrorInRows=function(e,t){var r=this,n=this.generatedVisibleRows;this.generatedVisibleRows||(n=this.visibleRows);var o=!1;if(t||(t={}),!n)return t;t.isSingleDetailPanel="underRowSingle"===this.detailPanelMode;for(var i=0;i<n.length;i++)o=n[i].hasErrors(e,t,(function(){r.raiseOnCompletedAsyncValidators()}))||o;return o},t.prototype.isValueDuplicated=function(){if(!this.generatedVisibleRows)return!1;for(var e=this.getUniqueColumns(),t=!1,r=0;r<e.length;r++)t=this.isValueInColumnDuplicated(e[r])||t;return t},t.prototype.isValueInColumnDuplicated=function(e){for(var t=[],r=!1,n=0;n<this.generatedVisibleRows.length;n++)r=this.isValueDuplicatedInRow(this.generatedVisibleRows[n],e,t)||r;return r},t.prototype.getUniqueColumns=function(){for(var e=new Array,t=0;t<this.columns.length;t++)this.columns[t].isUnique&&e.push(this.columns[t]);return e},t.prototype.isValueDuplicatedInRow=function(e,t,r){var n=e.getQuestionByColumn(t);if(!n||n.isEmpty())return!1;for(var o=n.value,i=0;i<r.length;i++)if(s.Helpers.isTwoValueEquals(o,r[i],!0,this.isUniqueCaseSensitive))return this.addDuplicationError(n),!0;return r.push(o),!1},t.prototype.addDuplicationError=function(e){e.addError(new f.KeyDuplicationError(this.keyDuplicationError,this))},t.prototype.getFirstQuestionToFocus=function(e){return this.getFirstCellQuestion(e)},t.prototype.getFirstInputElementId=function(){var t=this.getFirstCellQuestion(!1);return t?t.inputId:e.prototype.getFirstInputElementId.call(this)},t.prototype.getFirstErrorInputElementId=function(){var t=this.getFirstCellQuestion(!0);return t?t.inputId:e.prototype.getFirstErrorInputElementId.call(this)},t.prototype.getFirstCellQuestion=function(e){if(!this.generatedVisibleRows)return null;for(var t=0;t<this.generatedVisibleRows.length;t++)for(var r=this.generatedVisibleRows[t].cells,n=0;n<r.length;n++){if(!e)return r[n].question;if(r[n].question.currentErrorCount>0)return r[n].question}return null},t.prototype.onReadOnlyChanged=function(){if(e.prototype.onReadOnlyChanged.call(this),this.generateRows)for(var t=0;t<this.visibleRows.length;t++)this.visibleRows[t].onQuestionReadOnlyChanged(this.isReadOnly)},t.prototype.createQuestion=function(e,t){return this.createQuestionCore(e,t)},t.prototype.createQuestionCore=function(e,t){var r=t.createCellQuestion(e);return r.setSurveyImpl(e),r.setParentQuestion(this),r.inMatrixMode=!0,r},t.prototype.deleteRowValue=function(e,t){return e?(delete e[t.rowName],this.isObject(e)&&0==Object.keys(e).length?null:e):e},t.prototype.onAnyValueChanged=function(e){if(!this.isUpdateLocked&&!this.isDoingonAnyValueChanged&&this.generatedVisibleRows){this.isDoingonAnyValueChanged=!0;for(var t=this.visibleRows,r=0;r<t.length;r++)t[r].onAnyValueChanged(e);var n=this.visibleTotalRow;n&&n.onAnyValueChanged(e),this.isDoingonAnyValueChanged=!1}},t.prototype.isObject=function(e){return null!==e&&"object"==typeof e},t.prototype.getOnCellValueChangedOptions=function(e,t,r){return{row:e,columnName:t,rowValue:r,value:r?r[t]:null,getCellQuestion:function(t){for(var r=0;r<e.cells.length;r++){var n=e.cells[r].column;if(n&&n.name===t)return e.cells[r].question}return null}}},t.prototype.onCellValueChanged=function(e,t,r){if(this.survey){var n=this.getOnCellValueChangedOptions(e,t,r);this.onCellValueChangedCallback&&this.onCellValueChangedCallback(n),this.survey.matrixCellValueChanged(this,n)}},t.prototype.validateCell=function(e,t,r){if(this.survey){var n=this.getOnCellValueChangedOptions(e,t,r);return this.survey.matrixCellValidate(this,n)}},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return!!this.survey&&this.survey.isValidateOnValueChanging},enumerable:!1,configurable:!0}),t.prototype.onRowChanging=function(e,t,r){if(!this.survey&&!this.cellValueChangingCallback)return r?r[t]:null;var n=this.getOnCellValueChangedOptions(e,t,r),o=this.getRowValueCore(e,this.createNewValue(),!0);return n.oldValue=o?o[t]:null,this.cellValueChangingCallback&&(n.value=this.cellValueChangingCallback(e,t,n.value,n.oldValue)),this.survey&&this.survey.matrixCellValueChanging(this,n),n.value},t.prototype.onRowChanged=function(e,t,r,n){var o=t?this.getRowObj(e):null;if(o){var i=null;r&&!n&&(i=r[t]),this.isRowChanging=!0,o[t]=i,this.isRowChanging=!1,this.onCellValueChanged(e,t,o)}else{var s=this.createNewValue(!0),a=this.getNewValueOnRowChanged(e,t,r,n,this.createNewValue());if(this.isTwoValueEquals(s,a.value))return;this.isRowChanging=!0,this.setNewValue(a.value),this.isRowChanging=!1,t&&this.onCellValueChanged(e,t,a.rowValue)}},t.prototype.getNewValueOnRowChanged=function(e,t,r,n,o){var i=this.getRowValueCore(e,o,!0);n&&delete i[t];for(var s=0;s<e.cells.length;s++)delete i[a=e.cells[s].question.getValueName()];if(r)for(var a in r=JSON.parse(JSON.stringify(r)))this.isValueEmpty(r[a])||(i[a]=r[a]);return this.isObject(i)&&0===Object.keys(i).length&&(o=this.deleteRowValue(o,e)),{value:o,rowValue:i}},t.prototype.getRowIndex=function(e){return this.generatedVisibleRows?this.visibleRows.indexOf(e):-1},t.prototype.getElementsInDesign=function(t){var r;return void 0===t&&(t=!1),r="none"==this.detailPanelMode?e.prototype.getElementsInDesign.call(this,t):t?[this.detailPanel]:this.detailElements,this.columns.concat(r)},t.prototype.hasDetailPanel=function(e){return"none"!=this.detailPanelMode&&(!!this.isDesignMode||(this.onHasDetailPanelCallback?this.onHasDetailPanelCallback(e):this.detailElements.length>0))},t.prototype.getIsDetailPanelShowing=function(e){if("none"==this.detailPanelMode)return!1;if(this.isDesignMode){var t=0==this.visibleRows.indexOf(e);return t&&(e.detailPanel||e.showDetailPanel()),t}return this.getPropertyValue("isRowShowing"+e.id,!1)},t.prototype.setIsDetailPanelShowing=function(e,t){if(t!=this.getIsDetailPanelShowing(e)&&(this.setPropertyValue("isRowShowing"+e.id,t),this.updateDetailPanelButtonCss(e),this.renderedTable&&this.renderedTable.onDetailPanelChangeVisibility(e,t),t&&"underRowSingle"===this.detailPanelMode))for(var r=this.visibleRows,n=0;n<r.length;n++)r[n].id!==e.id&&r[n].isDetailPanelShowing&&r[n].hideDetailPanel()},t.prototype.getDetailPanelButtonCss=function(e){var t=(new m.CssClassBuilder).append(this.getPropertyValue("detailButtonCss"+e.id));return t.append(this.cssClasses.detailButton,""===t.toString()).toString()},t.prototype.getDetailPanelIconCss=function(e){var t=(new m.CssClassBuilder).append(this.getPropertyValue("detailIconCss"+e.id));return t.append(this.cssClasses.detailIcon,""===t.toString()).toString()},t.prototype.getDetailPanelIconId=function(e){return this.getIsDetailPanelShowing(e)?this.cssClasses.detailIconExpandedId:this.cssClasses.detailIconId},t.prototype.updateDetailPanelButtonCss=function(e){var t=this.cssClasses,r=this.getIsDetailPanelShowing(e),n=(new m.CssClassBuilder).append(t.detailIcon).append(t.detailIconExpanded,r);this.setPropertyValue("detailIconCss"+e.id,n.toString());var o=(new m.CssClassBuilder).append(t.detailButton).append(t.detailButtonExpanded,r);this.setPropertyValue("detailButtonCss"+e.id,o.toString())},t.prototype.createRowDetailPanel=function(e){if(this.isDesignMode)return this.detailPanel;var t=this.createNewDetailPanel();t.readOnly=this.isReadOnly;var r=this.detailPanel.toJSON();return(new o.JsonObject).toObject(r,t),t.renderWidth="100%",t.updateCustomWidgets(),this.onCreateDetailPanelCallback&&this.onCreateDetailPanelCallback(e,t),t},t.prototype.getSharedQuestionByName=function(e,t){if(!this.survey||!this.valueName)return null;var r=this.getRowIndex(t);return r<0?null:this.survey.getQuestionByValueNameFromArray(this.valueName,e,r)},t.prototype.onTotalValueChanged=function(){this.data&&this.visibleTotalRow&&!this.isUpdateLocked&&!this.isSett&&this.data.setValue(this.getValueName()+h.settings.matrixTotalValuePostFix,this.totalValue,!1)},t.prototype.getParentTextProcessor=function(){if(!this.parentQuestion||!this.parent)return null;var e=this.parent.data;return e&&e.getTextProcessor?e.getTextProcessor():null},t.prototype.getQuestionFromArray=function(e,t){return t>=this.visibleRows.length?null:this.visibleRows[t].getQuestionByName(e)},t.prototype.isMatrixValueEmpty=function(e){if(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)if(this.isObject(e[t])&&Object.keys(e[t]).length>0)return!1;return!0}return 0==Object.keys(e).length}},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getCellTemplateData=function(e){return this.SurveyModel.getMatrixCellTemplateData(e)},t.prototype.getCellWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,e.row instanceof P?"row-footer":"cell")},t.prototype.getCellWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,e.row instanceof P?"row-footer":"cell")},t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"row-header")},Object.defineProperty(t.prototype,"showHorizontalScroll",{get:function(){return!this.isDefaultV2Theme&&this.horizontalScroll},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){return(new m.CssClassBuilder).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.rootScroll,this.horizontalScroll).toString()},t.prototype.getIsTooltipErrorInsideSupported=function(){return!0},t}(i.QuestionMatrixBaseModel);o.Serializer.addClass("matrixdropdownbase",[{name:"columns:matrixdropdowncolumns",className:"matrixdropdowncolumn"},{name:"columnLayout",alternativeName:"columnsLocation",default:"horizontal",choices:["horizontal","vertical"]},{name:"detailElements",visible:!1,isLightSerializable:!1},{name:"detailPanelMode",choices:["none","underRow","underRowSingle"],default:"none"},"horizontalScroll:boolean",{name:"choices:itemvalue[]",uniqueProperty:"value"},{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"cellType",default:"dropdown",choices:function(){return g.MatrixDropdownColumn.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth",{name:"allowAdaptiveActions:boolean",default:!1,visible:!1}],(function(){return new _("")}),"matrixbase")},"./src/question_matrixdropdowncolumn.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"matrixDropdownColumnTypes",(function(){return c})),r.d(t,"MatrixDropdownColumn",(function(){return p}));var n,o=r("./src/jsonobject.ts"),i=r("./src/base.ts"),s=r("./src/question_expression.ts"),a=r("./src/settings.ts"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});function u(e,t,r,n){e.storeOthersAsComment=!!r&&r.storeOthersAsComment,e.choices&&0!=e.choices.length||!e.choicesByUrl.isEmpty||(e.choices=r.choices),e.choicesByUrl.isEmpty||e.choicesByUrl.run(n.getTextProcessor())}var c={dropdown:{onCellQuestionUpdate:function(e,t,r,n){u(e,0,r,n),e.locPlaceholder&&e.locPlaceholder.isEmpty&&!r.locPlaceholder.isEmpty&&(e.optionsCaption=r.optionsCaption)}},checkbox:{onCellQuestionUpdate:function(e,t,r,n){u(e,0,r,n),e.colCount=t.colCount>-1?t.colCount:r.columnColCount}},radiogroup:{onCellQuestionUpdate:function(e,t,r,n){u(e,0,r,n),e.colCount=t.colCount>-1?t.colCount:r.columnColCount}},tagbox:{},text:{},comment:{},boolean:{onCellQuestionUpdate:function(e,t,r,n){e.renderAs=t.renderAs}},expression:{},rating:{}},p=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this)||this;return n.colOwnerValue=null,n.indexValue=-1,n._isVisible=!0,n._hasVisibleCell=!0,n.previousChoicesId=void 0,n.createLocalizableString("totalFormat",n),n.createLocalizableString("cellHint",n),n.registerPropertyChangedHandlers(["showInMultipleColumns"],(function(){n.doShowInMultipleColumnsChanged()})),n.updateTemplateQuestion(),n.name=t,r?n.title=r:n.templateQuestion.locTitle.strChanged(),n}return l(t,e),t.getColumnTypes=function(){var e=[];for(var t in c)e.push(t);return e},t.prototype.getOriginalObj=function(){return this.templateQuestion},t.prototype.getClassNameProperty=function(){return"cellType"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.colOwner?this.colOwner.survey:null},t.prototype.endLoadingFromJson=function(){var t=this;e.prototype.endLoadingFromJson.call(this),this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns,this.templateQuestion.endLoadingFromJson(),this.templateQuestion.onGetSurvey=function(){return t.getSurvey()}},t.prototype.getDynamicPropertyName=function(){return"cellType"},t.prototype.getDynamicType=function(){return"default"===this.cellType?"question":this.calcCellQuestionType(null)},Object.defineProperty(t.prototype,"colOwner",{get:function(){return this.colOwnerValue},set:function(e){this.colOwnerValue=e,e&&(this.updateTemplateQuestion(),this.setParentQuestionToTemplate(this.templateQuestion))},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTitle.strChanged()},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.templateQuestion.addUsedLocales(t)},Object.defineProperty(t.prototype,"index",{get:function(){return this.indexValue},enumerable:!1,configurable:!0}),t.prototype.setIndex=function(e){this.indexValue=e},t.prototype.getType=function(){return"matrixdropdowncolumn"},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType")},set:function(e){e=e.toLocaleLowerCase(),this.updateTemplateQuestion(e),this.setPropertyValue("cellType",e),this.colOwner&&this.colOwner.onColumnCellTypeChanged(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateQuestion",{get:function(){return this.templateQuestionValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.templateQuestion.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},enumerable:!1,configurable:!0}),t.prototype.setIsVisible=function(e){this._isVisible=e},Object.defineProperty(t.prototype,"hasVisibleCell",{get:function(){return this._hasVisibleCell},set:function(e){this._hasVisibleCell=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.templateQuestion.name},set:function(e){this.templateQuestion.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.templateQuestion.title},set:function(e){this.templateQuestion.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.templateQuestion.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.textOrHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.templateQuestion.isRequired},set:function(e){this.templateQuestion.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderedRequired",{get:function(){return this.getPropertyValue("isRenderedRequired",this.isRequired)},set:function(e){this.setPropertyValue("isRenderedRequired",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsRenderedRequired=function(e){this.isRenderedRequired=e||this.isRequired},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.isRenderedRequired&&this.getSurvey()?this.getSurvey().requiredText:this.templateQuestion.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.templateQuestion.requiredErrorText},set:function(e){this.templateQuestion.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.templateQuestion.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.templateQuestion.readOnly},set:function(e){this.templateQuestion.readOnly=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.templateQuestion.hasOther},set:function(e){this.templateQuestion.hasOther=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.templateQuestion.visibleIf},set:function(e){this.templateQuestion.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.templateQuestion.enableIf},set:function(e){this.templateQuestion.enableIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.templateQuestion.requiredIf},set:function(e){this.templateQuestion.requiredIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUnique",{get:function(){return this.getPropertyValue("isUnique")},set:function(e){this.setPropertyValue("isUnique",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInMultipleColumns",{get:function(){return this.getPropertyValue("showInMultipleColumns")},set:function(e){this.setPropertyValue("showInMultipleColumns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSupportMultipleColumns",{get:function(){return["checkbox","radiogroup"].indexOf(this.cellType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowInMultipleColumns",{get:function(){return this.showInMultipleColumns&&this.isSupportMultipleColumns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.templateQuestion.validators},set:function(e){this.templateQuestion.validators=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalType",{get:function(){return this.getPropertyValue("totalType")},set:function(e){this.setPropertyValue("totalType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalExpression",{get:function(){return this.getPropertyValue("totalExpression")},set:function(e){this.setPropertyValue("totalExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTotal",{get:function(){return"none"!=this.totalType||!!this.totalExpression},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalFormat",{get:function(){return this.getLocalizableStringText("totalFormat","")},set:function(e){this.setLocalizableStringText("totalFormat",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalFormat",{get:function(){return this.getLocalizableString("totalFormat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cellHint",{get:function(){return this.getLocalizableStringText("cellHint","")},set:function(e){this.setLocalizableStringText("cellHint",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCellHint",{get:function(){return this.getLocalizableString("cellHint")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderAs",{get:function(){return this.getPropertyValue("renderAs")},set:function(e){this.setPropertyValue("renderAs",e),this.templateQuestion&&(this.templateQuestion.renderAs=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMaximumFractionDigits",{get:function(){return this.getPropertyValue("totalMaximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMaximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMinimumFractionDigits",{get:function(){return this.getPropertyValue("totalMinimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMinimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalDisplayStyle",{get:function(){return this.getPropertyValue("totalDisplayStyle")},set:function(e){this.setPropertyValue("totalDisplayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalCurrency",{get:function(){return this.getPropertyValue("totalCurrency")},set:function(e){Object(s.getCurrecyCodes)().indexOf(e)<0||this.setPropertyValue("totalCurrency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth","")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<-1||e>4||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.colOwner?this.colOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.colOwner?this.colOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.colOwner?this.colOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.colOwner?this.colOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.colOwner?this.colOwner.getProcessedText(e):e},t.prototype.createCellQuestion=function(e){var t=this.calcCellQuestionType(e),r=this.createNewQuestion(t);return this.callOnCellQuestionUpdate(r,e),r},t.prototype.startLoadingFromJson=function(t){e.prototype.startLoadingFromJson.call(this,t),t&&!t.cellType&&t.choices&&(t.cellType=this.colOwner.getCellType())},t.prototype.updateCellQuestion=function(e,t,r){void 0===r&&(r=null),this.setQuestionProperties(e,r)},t.prototype.callOnCellQuestionUpdate=function(e,t){var r=e.getType(),n=c[r];n&&n.onCellQuestionUpdate&&n.onCellQuestionUpdate(e,this,this.colOwner,t)},t.prototype.defaultCellTypeChanged=function(){this.updateTemplateQuestion()},t.prototype.calcCellQuestionType=function(e){var t=this.getDefaultCellQuestionType();return e&&this.colOwner&&(t=this.colOwner.getCustomCellType(this,e,t)),t},t.prototype.getDefaultCellQuestionType=function(e){return e||(e=this.cellType),"default"!==e?e:this.colOwner?this.colOwner.getCellType():a.settings.matrixDefaultCellType},t.prototype.updateTemplateQuestion=function(e){var t=this,r=this.getDefaultCellQuestionType(e),n=this.templateQuestion?this.templateQuestion.getType():"";r!==n&&(this.templateQuestion&&this.removeProperties(n),this.templateQuestionValue=this.createNewQuestion(r),this.templateQuestion.locOwner=this,this.addProperties(r),this.templateQuestion.onPropertyChanged.add((function(e,r){t.propertyValueChanged(r.name,r.oldValue,r.newValue)})),this.templateQuestion.onItemValuePropertyChanged.add((function(e,r){t.doItemValuePropertyChanged(r.propertyName,r.obj,r.name,r.newValue,r.oldValue)})),this.templateQuestion.isContentElement=!0,this.isLoadingFromJson||(this.templateQuestion.onGetSurvey=function(){return t.getSurvey()}),this.templateQuestion.locTitle.strChanged())},t.prototype.createNewQuestion=function(e){var t=o.Serializer.createClass(e);return t||(t=o.Serializer.createClass("text")),t.loadingOwner=this,t.isEditableTemplateElement=!0,t.autoOtherMode=this.isShowInMultipleColumns,this.setQuestionProperties(t),this.setParentQuestionToTemplate(t),t},t.prototype.setParentQuestionToTemplate=function(e){this.colOwner&&this.colOwner.isQuestion&&e.setParentQuestion(this.colOwner)},t.prototype.setQuestionProperties=function(e,t){var r=this;if(void 0===t&&(t=null),this.templateQuestion){var n=(new o.JsonObject).toJsonObject(this.templateQuestion,!0);t&&t(n),n.type=e.getType(),"default"===this.cellType&&this.colOwner&&this.colOwner.hasChoices()&&delete n.choices,delete n.itemComponent,(new o.JsonObject).toObject(n,e),e.isContentElement=this.templateQuestion.isContentElement,this.previousChoicesId=void 0,e.loadedChoicesFromServerCallback=function(){if(r.isShowInMultipleColumns&&(!r.previousChoicesId||r.previousChoicesId===e.id)){r.previousChoicesId=e.id;var t=e.visibleChoices;r.templateQuestion.choices=t,r.propertyValueChanged("choices",t,t)}}}},t.prototype.propertyValueChanged=function(t,r,n){e.prototype.propertyValueChanged.call(this,t,r,n),"isRequired"===t&&this.updateIsRenderedRequired(n),this.colOwner&&!this.isLoadingFromJson&&(this.isShowInMultipleColumns&&["visibleChoices","choices"].indexOf(t)>-1&&this.colOwner.onShowInMultipleColumnsChanged(this),o.Serializer.hasOriginalProperty(this,t)&&this.colOwner.onColumnPropertyChanged(this,t,n))},t.prototype.doItemValuePropertyChanged=function(e,t,r,n,i){o.Serializer.hasOriginalProperty(t,r)&&(null==this.colOwner||this.isLoadingFromJson||this.colOwner.onColumnItemValuePropertyChanged(this,e,t,r,n,i))},t.prototype.doShowInMultipleColumnsChanged=function(){null==this.colOwner||this.isLoadingFromJson||this.colOwner.onShowInMultipleColumnsChanged(this),this.templateQuestion&&(this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns)},t.prototype.getProperties=function(e){return o.Serializer.getDynamicPropertiesByObj(this,e)},t.prototype.removeProperties=function(e){for(var t=this.getProperties(e),r=0;r<t.length;r++){var n=t[r];delete this[n.name],n.serializationProperty&&delete this[n.serializationProperty]}},t.prototype.addProperties=function(e){for(var t=this.templateQuestion,r=this.getProperties(e),n=0;n<r.length;n++){var o=r[n];this.addProperty(t,o.name,!1),o.serializationProperty&&this.addProperty(t,o.serializationProperty,!0),o.alternativeName&&this.addProperty(t,o.alternativeName,!1)}},t.prototype.addProperty=function(e,t,r){var n={configurable:!0,get:function(){return e[t]}};r||(n.set=function(r){e[t]=r}),Object.defineProperty(this,t,n)},t}(i.Base);o.Serializer.addClass("matrixdropdowncolumn",[{name:"!name",isUnique:!0},{name:"title",serializationProperty:"locTitle",dependsOn:"name",onPropertyEditorUpdate:function(e,t){e&&t&&(t.placeholder=e.name)}},{name:"cellHint",serializationProperty:"locCellHint",visible:!1},{name:"cellType",default:"default",choices:function(){var e=p.getColumnTypes();return e.splice(0,0,"default"),e}},{name:"colCount",default:-1,choices:[-1,0,1,2,3,4]},"isRequired:boolean","isUnique:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:boolean",{name:"minWidth",onPropertyEditorUpdate:function(e,t){e&&t&&(t.value=e.minWidth)}},"width","visibleIf:condition","enableIf:condition","requiredIf:condition",{name:"showInMultipleColumns:boolean",dependsOn:"cellType",visibleIf:function(e){return!!e&&e.isSupportMultipleColumns}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"totalType",default:"none",choices:["none","sum","count","min","max","avg"]},"totalExpression:expression",{name:"totalFormat",serializationProperty:"locTotalFormat"},{name:"totalDisplayStyle",default:"none",choices:["none","decimal","currency","percent"]},{name:"totalCurrency",choices:function(){return Object(s.getCurrecyCodes)()},default:"USD"},{name:"totalMaximumFractionDigits:number",default:-1},{name:"totalMinimumFractionDigits:number",default:-1},{name:"renderAs",default:"default",visible:!1}],(function(){return new p("")}))},"./src/question_matrixdropdownrendered.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return f})),r.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return m})),r.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return g}));var n,o=r("./src/jsonobject.ts"),i=r("./src/base.ts"),s=r("./src/itemvalue.ts"),a=r("./src/actions/action.ts"),l=r("./src/actions/adaptive-container.ts"),u=r("./src/utils/cssClassBuilder.ts"),c=r("./src/actions/container.ts"),p=r("./src/settings.ts"),d=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},f=function(){function e(){this.minWidth="",this.width="",this.colSpans=1,this.isActionsCell=!1,this.isDragHandlerCell=!1,this.classNameValue="",this.idValue=e.counter++}return Object.defineProperty(e.prototype,"hasQuestion",{get:function(){return!!this.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasTitle",{get:function(){return!!this.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPanel",{get:function(){return!!this.panel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showErrorOnTop",{get:function(){return this.showErrorOnCore("top")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showErrorOnBottom",{get:function(){return this.showErrorOnCore("bottom")},enumerable:!1,configurable:!0}),e.prototype.showErrorOnCore=function(e){return this.getShowErrorLocation(e)&&(!this.isChoice||this.isFirstChoice)},e.prototype.getShowErrorLocation=function(e){return this.hasQuestion&&this.question.showErrorOnCore(e)},Object.defineProperty(e.prototype,"item",{get:function(){return this.itemValue},set:function(e){this.itemValue=e,e&&(e.hideCaption=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isChoice",{get:function(){return!!this.item},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isItemChoice",{get:function(){return this.isChoice&&!this.isOtherChoice},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"choiceValue",{get:function(){return this.isChoice?this.item.value:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCheckbox",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("checkbox")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRadio",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("radiogroup")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFirstChoice",{get:function(){return 0===this.choiceIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){var e=(new u.CssClassBuilder).append(this.classNameValue);return this.hasQuestion&&e.append(this.question.cssClasses.hasError,this.question.errors.length>0).append(this.question.cssClasses.answered,this.question.isAnswered),e.toString()},set:function(e){this.classNameValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){if(this.cell&&this.cell.column){if(" "===this.cell.column.cellHint)return"";if(this.cell.column.cellHint)return this.cell.column.locCellHint.renderedHtml;if(this.cell.column.isShowInMultipleColumns)return this.item?this.item.locText.renderedHtml:""}return this.question&&this.question.isVisible?this.question.locTitle.renderedHtml:this.hasTitle&&this.locTitle.renderedHtml||""},enumerable:!1,configurable:!0}),e.prototype.getTitle=function(){return this.matrix&&this.matrix.showHeader?this.headers:""},e.prototype.calculateFinalClassName=function(e){var t=this.cell.question.cssClasses,r=(new u.CssClassBuilder).append(t.itemValue,!!t).append(t.asCell,!!t);return r.append(e.cell,r.isEmpty()&&!!e).append(e.choiceCell,this.isChoice).toString()},e.counter=1,e}(),m=function(e){function t(r,n){void 0===n&&(n=!1);var o=e.call(this)||this;return o.cssClasses=r,o.isDetailRow=n,o.cells=[],o.idValue=t.counter++,o}return d(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){return this.row?{"data-sv-drop-target-matrix-row":this.row.id}:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return(new u.CssClassBuilder).append(this.cssClasses.row).append(this.cssClasses.detailRow,this.isDetailRow).append(this.cssClasses.ghostRow,this.isGhostRow).append(this.cssClasses.rowAdditional,this.isAdditionalClasses).toString()},enumerable:!1,configurable:!0}),t.counter=1,h([Object(o.property)({defaultValue:!1})],t.prototype,"isGhostRow",void 0),h([Object(o.property)({defaultValue:!1})],t.prototype,"isAdditionalClasses",void 0),t}(i.Base),g=function(e){function t(t){var r=e.call(this)||this;return r.matrix=t,r.renderedRowsChangedCallback=function(){},r.hasActionCellInRowsValues={},r.build(),r}return d(t,e),Object.defineProperty(t.prototype,"showTable",{get:function(){return this.getPropertyValue("showTable",!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnTop",{get:function(){return this.getPropertyValue("showAddRowOnTop",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnBottom",{get:function(){return this.getPropertyValue("showAddRowOnBottom",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.matrix.hasFooter&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFooter",{get:function(){return!!this.footerRow},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRemoveRows",{get:function(){return this.hasRemoveRowsValue},enumerable:!1,configurable:!0}),t.prototype.isRequireReset=function(){return this.hasRemoveRows!=this.matrix.canRemoveRows||!this.matrix.isColumnLayoutHorizontal},Object.defineProperty(t.prototype,"headerRow",{get:function(){return this.headerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerRow",{get:function(){return this.footerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRowsDragAndDrop",{get:function(){return this.matrix.allowRowsDragAndDrop&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),t.prototype.build=function(){this.hasRemoveRowsValue=this.matrix.canRemoveRows,this.matrix.visibleRows,this.cssClasses=this.matrix.cssClasses,this.buildRowsActions(),this.buildHeader(),this.buildRows(),this.buildFooter(),this.updateShowTableAndAddRow()},t.prototype.updateShowTableAndAddRow=function(){var e=this.rows.length>0||this.matrix.isDesignMode||!this.matrix.getShowColumnsIfEmpty();this.setPropertyValue("showTable",e);var t=this.matrix.canAddRow&&e,r=t,n=t;r&&(r="default"===this.matrix.getAddRowLocation()?!this.matrix.isColumnLayoutHorizontal:"bottom"!==this.matrix.getAddRowLocation()),n&&"topBottom"!==this.matrix.getAddRowLocation()&&(n=!r),this.setPropertyValue("showAddRowOnTop",r),this.setPropertyValue("showAddRowOnBottom",n)},t.prototype.onAddedRow=function(e,t){if(!(this.getRenderedDataRowCount()>=this.matrix.visibleRows.length)){var r=this.getRenderedRowIndexByIndex(t);this.rowsActions.splice(t,0,this.buildRowActions(e)),this.addHorizontalRow(this.rows,e,1==this.matrix.visibleRows.length&&!this.matrix.showHeader,r),this.updateShowTableAndAddRow()}},t.prototype.getRenderedRowIndexByIndex=function(e){for(var t=0,r=0,n=0;n<this.rows.length;n++){if(r===e){this.rows[n].isDetailRow&&t++;break}t++,this.rows[n].isDetailRow||r++}return r<e?this.rows.length:t},t.prototype.getRenderedDataRowCount=function(){for(var e=0,t=0;t<this.rows.length;t++)this.rows[t].isDetailRow||e++;return e},t.prototype.onRemovedRow=function(e){var t=this.getRenderedRowIndex(e);if(!(t<0)){this.rowsActions.splice(t,1);var r=1;t<this.rows.length-1&&this.rows[t+1].isDetailRow&&r++,this.rows.splice(t,r),this.updateShowTableAndAddRow()}},t.prototype.onDetailPanelChangeVisibility=function(e,t){var r=this.getRenderedRowIndex(e);if(!(r<0)){var n=r<this.rows.length-1&&this.rows[r+1].isDetailRow?r+1:-1;if(!(t&&n>-1||!t&&n<0))if(t){var o=this.createDetailPanelRow(e,this.rows[r]);this.rows.splice(r+1,0,o)}else this.rows.splice(n,1)}},t.prototype.getRenderedRowIndex=function(e){for(var t=0;t<this.rows.length;t++)if(this.rows[t].row==e)return t;return-1},t.prototype.buildRowsActions=function(){this.rowsActions=[];for(var e=this.matrix.visibleRows,t=0;t<e.length;t++)this.rowsActions.push(this.buildRowActions(e[t]))},t.prototype.createRenderedRow=function(e,t){return void 0===t&&(t=!1),new m(e,t)},t.prototype.buildHeader=function(){var e=this.matrix.isColumnLayoutHorizontal&&this.matrix.showHeader||this.matrix.hasRowText&&!this.matrix.isColumnLayoutHorizontal;if(this.setPropertyValue("showHeader",e),e){if(this.headerRowValue=this.createRenderedRow(this.cssClasses),this.allowRowsDragAndDrop&&this.headerRow.cells.push(this.createHeaderCell(null)),this.hasActionCellInRows("start")&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.hasRowText&&this.matrix.showHeader&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.isColumnLayoutHorizontal)for(var t=0;t<this.matrix.visibleColumns.length;t++){var r=this.matrix.visibleColumns[t];r.hasVisibleCell&&(r.isShowInMultipleColumns?this.createMutlipleColumnsHeader(r):this.headerRow.cells.push(this.createHeaderCell(r)))}else{var n=this.matrix.visibleRows;for(t=0;t<n.length;t++){var o=this.createTextCell(n[t].locText);o.row=n[t],this.headerRow.cells.push(o)}this.matrix.hasFooter&&this.headerRow.cells.push(this.createTextCell(this.matrix.getFooterText()))}this.hasActionCellInRows("end")&&this.headerRow.cells.push(this.createHeaderCell(null))}},t.prototype.buildFooter=function(){if(this.showFooter){this.footerRowValue=this.createRenderedRow(this.cssClasses),this.allowRowsDragAndDrop&&this.footerRow.cells.push(this.createHeaderCell(null)),this.hasActionCellInRows("start")&&this.footerRow.cells.push(this.createHeaderCell(null)),this.matrix.hasRowText&&this.footerRow.cells.push(this.createTextCell(this.matrix.getFooterText()));for(var e=this.matrix.visibleTotalRow.cells,t=0;t<e.length;t++){var r=e[t];if(r.column.hasVisibleCell)if(r.column.isShowInMultipleColumns)this.createMutlipleColumnsFooter(this.footerRow,r);else{var n=this.createEditCell(r);r.column&&this.setHeaderCellWidth(r.column,n),this.footerRow.cells.push(n)}}this.hasActionCellInRows("end")&&this.footerRow.cells.push(this.createHeaderCell(null))}},t.prototype.buildRows=function(){var e=this.matrix.isColumnLayoutHorizontal?this.buildHorizontalRows():this.buildVerticalRows();this.rows=e},t.prototype.hasActionCellInRows=function(e){return void 0===this.hasActionCellInRowsValues[e]&&(this.hasActionCellInRowsValues[e]=this.hasActionsCellInLocaltion(e)),this.hasActionCellInRowsValues[e]},t.prototype.hasActionsCellInLocaltion=function(e){var t=this;return!("end"!=e||!this.hasRemoveRows)||this.matrix.visibleRows.some((function(r,n){return!t.isValueEmpty(t.getRowActions(n,e))}))},t.prototype.canRemoveRow=function(e){return this.matrix.canRemoveRow(e)},t.prototype.buildHorizontalRows=function(){for(var e=this.matrix.visibleRows,t=[],r=0;r<e.length;r++)this.addHorizontalRow(t,e[r],0==r&&!this.matrix.showHeader);return t},t.prototype.addHorizontalRow=function(e,t,r,n){void 0===n&&(n=-1);var o=this.createHorizontalRow(t,r);o.row=t,n<0&&(n=e.length),e.splice(n,0,o),t.isDetailPanelShowing&&e.splice(n+1,0,this.createDetailPanelRow(t,o))},t.prototype.getRowDragCell=function(e){var t=new f;return t.isDragHandlerCell=!0,t.className=this.getActionsCellClassName(),t.row=this.matrix.visibleRows[e],t},t.prototype.getActionsCellClassName=function(){return(new u.CssClassBuilder).append(this.cssClasses.actionsCell).append(this.cssClasses.verticalCell,!this.matrix.isColumnLayoutHorizontal).toString()},t.prototype.getRowActionsCell=function(e,t){var r=this.getRowActions(e,t);if(!this.isValueEmpty(r)){var n=new f,o=this.matrix.allowAdaptiveActions?new l.AdaptiveActionContainer:new c.ActionContainer;this.matrix.survey&&this.matrix.survey.getCss().actionBar&&(o.cssClasses=this.matrix.survey.getCss().actionBar),o.setItems(r);var i=new s.ItemValue(o);return n.item=i,n.isActionsCell=!0,n.className=this.getActionsCellClassName(),n.row=this.matrix.visibleRows[e],n}return null},t.prototype.getRowActions=function(e,t){var r=this.rowsActions[e];return Array.isArray(r)?r.filter((function(e){return e.location||(e.location="start"),e.location===t})):[]},t.prototype.buildRowActions=function(e){var t=[];return this.setDefaultRowActions(e,t),this.matrix.survey&&(t=this.matrix.survey.getUpdatedMatrixRowActions(this.matrix,e,t)),t},Object.defineProperty(t.prototype,"showRemoveButtonAsIcon",{get:function(){return p.settings.matrixRenderRemoveAsIcon&&this.matrix.survey&&"sd-root-modern"===this.matrix.survey.css.root},enumerable:!1,configurable:!0}),t.prototype.setDefaultRowActions=function(e,t){var r=this.matrix;this.hasRemoveRows&&this.canRemoveRow(e)&&(this.showRemoveButtonAsIcon?t.push(new a.Action({id:"remove-row",iconName:"icon-delete",component:"sv-action-bar-item",innerCss:(new u.CssClassBuilder).append(this.matrix.cssClasses.button).append(this.matrix.cssClasses.buttonRemove).toString(),location:"end",showTitle:!1,title:r.removeRowText,enabled:!r.isInputReadOnly,data:{row:e,question:r},action:function(){r.removeRowUI(e)}})):t.push(new a.Action({id:"remove-row",location:"end",enabled:!this.matrix.isInputReadOnly,component:"sv-matrix-remove-button",data:{row:e,question:this.matrix}}))),e.hasPanel&&t.push(new a.Action({id:"show-detail",title:this.matrix.getLocalizationString("editText"),showTitle:!1,location:"start",component:"sv-matrix-detail-button",data:{row:e,question:this.matrix}}))},t.prototype.createHorizontalRow=function(e,t){var r=this.createRenderedRow(this.cssClasses);if(this.allowRowsDragAndDrop){var n=this.matrix.visibleRows.indexOf(e);r.cells.push(this.getRowDragCell(n))}this.addRowActionsCell(e,r,"start"),this.matrix.hasRowText&&((s=this.createTextCell(e.locText)).row=e,r.cells.push(s),t&&this.setHeaderCellWidth(null,s),s.className=(new u.CssClassBuilder).append(s.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.detailRowText,e.hasPanel).toString());for(var o=0;o<e.cells.length;o++){var i=e.cells[o];if(i.column.hasVisibleCell)if(i.column.isShowInMultipleColumns)this.createMutlipleEditCells(r,i);else{var s=this.createEditCell(i);r.cells.push(s),t&&this.setHeaderCellWidth(i.column,s)}}return this.addRowActionsCell(e,r,"end"),r},t.prototype.addRowActionsCell=function(e,t,r){var n=this.matrix.visibleRows.indexOf(e);if(this.hasActionCellInRows(r)){var o=this.getRowActionsCell(n,r);if(o)t.cells.push(o);else{var i=new f;i.isEmpty=!0,t.cells.push(i)}}},t.prototype.createDetailPanelRow=function(e,t){var r=this.matrix.isDesignMode,n=this.createRenderedRow(this.cssClasses,!0);n.row=e;var o=new f;this.matrix.hasRowText&&(o.colSpans=2),o.isEmpty=!0,r||n.cells.push(o);var i=null;this.hasActionCellInRows("end")&&((i=new f).isEmpty=!0);var s=new f;return s.panel=e.detailPanel,s.colSpans=t.cells.length-(r?0:o.colSpans)-(i?i.colSpans:0),s.className=this.cssClasses.detailPanelCell,n.cells.push(s),i&&n.cells.push(i),"function"==typeof this.matrix.onCreateDetailPanelRenderedRowCallback&&this.matrix.onCreateDetailPanelRenderedRowCallback(n),n},t.prototype.buildVerticalRows=function(){for(var e=this.matrix.columns,t=[],r=0;r<e.length;r++){var n=e[r];n.isVisible&&n.hasVisibleCell&&(n.isShowInMultipleColumns?this.createMutlipleVerticalRows(t,n,r):t.push(this.createVerticalRow(n,r)))}return this.hasActionCellInRows("end")&&t.push(this.createEndVerticalActionRow()),t},t.prototype.createMutlipleVerticalRows=function(e,t,r){var n=this.getMultipleColumnChoices(t);if(n)for(var o=0;o<n.length;o++)e.push(this.createVerticalRow(t,r,n[o],o))},t.prototype.createVerticalRow=function(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=-1);var o=this.createRenderedRow(this.cssClasses);if(this.matrix.showHeader){var i=r?r.locText:e.locTitle,s=this.createTextCell(i);s.column=e,s.className=(new u.CssClassBuilder).append(s.className).append(this.cssClasses.rowTextCell).toString(),r||this.setRequriedToHeaderCell(e,s),o.cells.push(s)}for(var a=this.matrix.visibleRows,l=0;l<a.length;l++){var c=r,p=n>=0?n:l,d=a[l].cells[t],h=r?d.question.visibleChoices:void 0;h&&p<h.length&&(c=h[p]);var f=this.createEditCell(d,c);f.item=c,f.choiceIndex=p,o.cells.push(f)}return this.matrix.hasTotal&&o.cells.push(this.createEditCell(this.matrix.visibleTotalRow.cells[t])),o},t.prototype.createEndVerticalActionRow=function(){var e=this.createRenderedRow(this.cssClasses);this.matrix.showHeader&&e.cells.push(this.createEmptyCell());for(var t=this.matrix.visibleRows,r=0;r<t.length;r++)e.cells.push(this.getRowActionsCell(r,"end"));return this.matrix.hasTotal&&e.cells.push(this.createEmptyCell()),e},t.prototype.createMutlipleEditCells=function(e,t,r){void 0===r&&(r=!1);var n=r?this.getMultipleColumnChoices(t.column):t.question.visibleChoices;if(n)for(var o=0;o<n.length;o++){var i=this.createEditCell(t,r?void 0:n[o]);r||(this.setItemCellCssClasses(i),i.choiceIndex=o),e.cells.push(i)}},t.prototype.setItemCellCssClasses=function(e){e.className=(new u.CssClassBuilder).append(this.cssClasses.itemCell).append(this.cssClasses.radioCell,e.isRadio).append(this.cssClasses.checkboxCell,e.isCheckbox).toString()},t.prototype.createEditCell=function(e,t){void 0===t&&(t=void 0);var r=new f;return r.cell=e,r.row=e.row,r.question=e.question,r.matrix=this.matrix,r.item=t,r.isOtherChoice=!!t&&!!e.question&&e.question.otherItem===t,r.className=r.calculateFinalClassName(this.cssClasses),r},t.prototype.createMutlipleColumnsFooter=function(e,t){this.createMutlipleEditCells(e,t,!0)},t.prototype.createMutlipleColumnsHeader=function(e){var t=this.getMultipleColumnChoices(e);if(t)for(var r=0;r<t.length;r++){var n=this.createTextCell(t[r].locText);this.setHeaderCell(e,n),this.setHeaderCellCssClasses(n),this.headerRow.cells.push(n)}},t.prototype.getMultipleColumnChoices=function(e){var t=e.templateQuestion.choices;return t&&Array.isArray(t)&&0==t.length?this.matrix.choices:(t=e.templateQuestion.visibleChoices)&&Array.isArray(t)?t:null},t.prototype.setHeaderCellCssClasses=function(e,t){e.className=(new u.CssClassBuilder).append(this.cssClasses.headerCell).append(this.cssClasses.emptyCell,!!e.isEmpty).append(this.cssClasses.cell+"--"+t,!!t).toString()},t.prototype.createHeaderCell=function(e){var t=e?this.createTextCell(e.locTitle):this.createEmptyCell();t.column=e,this.setHeaderCell(e,t);var r=e&&"default"!==e.cellType?e.cellType:this.matrix.cellType;return this.setHeaderCellCssClasses(t,r),t},t.prototype.setHeaderCell=function(e,t){this.setHeaderCellWidth(e,t),this.setRequriedToHeaderCell(e,t)},t.prototype.setHeaderCellWidth=function(e,t){t.minWidth=null!=e?this.matrix.getColumnWidth(e):this.matrix.getRowTitleWidth(),t.width=null!=e?e.width:this.matrix.getRowTitleWidth()},t.prototype.setRequriedToHeaderCell=function(e,t){e&&e.isRequired&&this.matrix.survey&&(t.requiredText=this.matrix.survey.requiredText)},t.prototype.createRemoveRowCell=function(e){var t=new f;return t.row=e,t.isRemoveRow=this.canRemoveRow(e),this.cssClasses.cell&&(t.className=this.cssClasses.cell),t},t.prototype.createTextCell=function(e){var t=new f;return t.locTitle=e,e&&e.strChanged(),this.cssClasses.cell&&(t.className=this.cssClasses.cell),t},t.prototype.createEmptyCell=function(){var e=this.createTextCell(null);return e.isEmpty=!0,e},h([Object(o.propertyArray)({onPush:function(e,t,r){r.renderedRowsChangedCallback()}})],t.prototype,"rows",void 0),t}(i.Base)},"./src/question_matrixdynamic.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"MatrixDynamicRowModel",(function(){return m})),r.d(t,"QuestionMatrixDynamicModel",(function(){return g}));var n,o=r("./src/jsonobject.ts"),i=r("./src/questionfactory.ts"),s=r("./src/question_matrixdropdownbase.ts"),a=r("./src/error.ts"),l=r("./src/settings.ts"),u=r("./src/utils/utils.ts"),c=r("./src/dragdrop/matrix-rows.ts"),p=r("./src/utils/cssClassBuilder.ts"),d=r("./src/question_matrixdropdownrendered.ts"),h=r("./src/utils/dragOrClickHelper.ts"),f=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),m=function(e){function t(t,r,n){var o=e.call(this,r,n)||this;return o.index=t,o.buildCells(n),o}return f(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){var e=this.data.visibleRows.indexOf(this)+1,t=this.cells.length>1?this.cells[1].questionValue:void 0,r=this.cells.length>0?this.cells[0].questionValue:void 0;return t&&t.value||r&&r.value||""+e},enumerable:!1,configurable:!0}),t}(s.MatrixDropdownRowModelBase),g=function(e){function t(t){var r=e.call(this,t)||this;return r.rowCounter=0,r.initialRowCount=2,r.setRowCountValueFromData=!1,r.startDragMatrixRow=function(e,t){r.dragDropMatrixRows.startDrag(e,r.draggedRow,r,e.target)},r.createLocalizableString("confirmDeleteText",r,!1,"confirmDelete"),r.createLocalizableString("addRowText",r).onGetTextCallback=function(e){return e||r.defaultAddRowText},r.createLocalizableString("removeRowText",r,!1,"removeRow"),r.createLocalizableString("emptyRowsText",r,!1,!0),r.registerPropertyChangedHandlers(["hideColumnsIfEmpty","allowAddRows"],(function(){r.updateShowTableAndAddRow()})),r.registerPropertyChangedHandlers(["allowRowsDragAndDrop"],(function(){r.clearRowsAndResetRenderedTable()})),r.dragOrClickHelper=new h.DragOrClickHelper(r.startDragMatrixRow),r}return f(t,e),t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r),this.dragDropMatrixRows=new c.DragDropMatrixRows(this.survey,null,!0)},t.prototype.isBanStartDrag=function(e){var t=e.target;return"true"===t.getAttribute("contenteditable")||"INPUT"===t.nodeName},t.prototype.onPointerDown=function(e,t){t&&this.allowRowsDragAndDrop&&(this.isBanStartDrag(e)||t.isDetailPanelShowing||(this.draggedRow=t,this.dragOrClickHelper.onPointerDown(e)))},t.prototype.getType=function(){return"matrixdynamic"},Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete")},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return this.getPropertyValue("defaultRowValue")},set:function(e){this.setPropertyValue("defaultRowValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastRow",{get:function(){return this.getPropertyValue("defaultValueFromLastRow")},set:function(e){this.setPropertyValue("defaultValueFromLastRow",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultRowValue)},t.prototype.valueFromData=function(t){if(this.minRowCount<1)return e.prototype.valueFromData.call(this,t);Array.isArray(t)||(t=[]);for(var r=t.length;r<this.minRowCount;r++)t.push({});return t},t.prototype.setDefaultValue=function(){if(!this.isValueEmpty(this.defaultRowValue)&&this.isValueEmpty(this.defaultValue)){if(this.isEmpty()&&0!=this.rowCount){for(var t=[],r=0;r<this.rowCount;r++)t.push(this.defaultRowValue);this.value=t}}else e.prototype.setDefaultValue.call(this)},t.prototype.moveRowByIndex=function(e,t){var r=this.createNewValue();if(Array.isArray(r)||!(Math.max(e,t)>=r.length)){var n=r[e];r.splice(e,1),r.splice(t,0,n),this.value=r}},t.prototype.clearOnDrop=function(){this.isEditingSurveyElement||this.resetRenderedTable()},Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowCountValue},set:function(e){if(!(e<0||e>l.settings.matrixMaximumRowCount)){this.setRowCountValueFromData=!1;var t=this.rowCountValue;if(this.rowCountValue=e,this.value&&this.value.length>e){var r=this.value;r.splice(e),this.value=r}if(this.isUpdateLocked)this.initialRowCount=e;else{if(this.generatedVisibleRows||0==t){this.generatedVisibleRows||(this.generatedVisibleRows=[]),this.generatedVisibleRows.splice(e);for(var n=t;n<e;n++){var o=this.createMatrixRow(this.getValueForNewRow());this.generatedVisibleRows.push(o),this.onMatrixRowCreated(o)}this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())}this.onRowsChanged()}}},enumerable:!1,configurable:!0}),t.prototype.updateProgressInfoByValues=function(e){var t=this.value;Array.isArray(t)||(t=[]);for(var r=0;r<this.rowCount;r++){var n=r<t.length?t[r]:{};this.updateProgressInfoByRow(e,n)}},t.prototype.getValueForNewRow=function(){var e=null;return this.onGetValueForNewRowCallBack&&(e=this.onGetValueForNewRowCallBack(this)),e},Object.defineProperty(t.prototype,"allowRowsDragAndDrop",{get:function(){return!this.readOnly&&this.getPropertyValue("allowRowsDragAndDrop")},set:function(e){this.setPropertyValue("allowRowsDragAndDrop",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconDragElement",{get:function(){return this.cssClasses.iconDragElement},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new b(this)},Object.defineProperty(t.prototype,"rowCountValue",{get:function(){return this.getPropertyValue("rowCount")},set:function(e){this.setPropertyValue("rowCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minRowCount",{get:function(){return this.getPropertyValue("minRowCount")},set:function(e){e<0&&(e=0),this.setPropertyValue("minRowCount",e),e>this.maxRowCount&&(this.maxRowCount=e),this.rowCount<e&&(this.rowCount=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRowCount",{get:function(){return this.getPropertyValue("maxRowCount")},set:function(e){e<=0||(e>l.settings.matrixMaximumRowCount&&(e=l.settings.matrixMaximumRowCount),e!=this.maxRowCount&&(this.setPropertyValue("maxRowCount",e),e<this.minRowCount&&(this.minRowCount=e),this.rowCount>e&&(this.rowCount=e)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAddRows",{get:function(){return this.getPropertyValue("allowAddRows")},set:function(e){this.setPropertyValue("allowAddRows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemoveRows",{get:function(){return this.getPropertyValue("allowRemoveRows")},set:function(e){this.setPropertyValue("allowRemoveRows",e),this.isUpdateLocked||this.resetRenderedTable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canAddRow",{get:function(){return this.allowAddRows&&!this.isReadOnly&&this.rowCount<this.maxRowCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){var e=this.allowRemoveRows&&!this.isReadOnly&&this.rowCount>this.minRowCount;return this.canRemoveRowsCallback?this.canRemoveRowsCallback(e):e},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){return!this.survey||this.survey.matrixAllowRemoveRow(this,e.index,e)},t.prototype.addRowUI=function(){this.addRow(!0)},t.prototype.getQuestionToFocusOnAddingRow=function(){for(var e=this.visibleRows[this.visibleRows.length-1],t=0;t<e.cells.length;t++){var r=e.cells[t].question;if(r&&r.isVisible&&!r.isReadOnly)return r}return null},t.prototype.addRow=function(e){var t=this.rowCount,r={question:this,canAddRow:this.canAddRow};if(this.survey&&this.survey.matrixBeforeRowAdded(r),r.canAddRow&&(this.onStartRowAddingRemoving(),this.addRowCore(),this.onEndRowAdding(),this.detailPanelShowOnAdding&&this.visibleRows.length>0&&this.visibleRows[this.visibleRows.length-1].showDetailPanel(),e&&t!==this.rowCount)){var n=this.getQuestionToFocusOnAddingRow();n&&n.focus()}},Object.defineProperty(t.prototype,"detailPanelShowOnAdding",{get:function(){return this.getPropertyValue("detailPanelShowOnAdding")},set:function(e){this.setPropertyValue("detailPanelShowOnAdding",e)},enumerable:!1,configurable:!0}),t.prototype.hasRowsAsItems=function(){return!1},t.prototype.unbindValue=function(){this.clearGeneratedRows(),this.clearPropertyValue("value"),this.rowCountValue=0,e.prototype.unbindValue.call(this)},t.prototype.isValueSurveyElement=function(t){return this.isEditingSurveyElement||e.prototype.isValueSurveyElement.call(this,t)},t.prototype.addRowCore=function(){var e=this.rowCount;this.rowCount=this.rowCount+1;var t=this.getDefaultRowValue(!0),r=null;if(this.isValueEmpty(t)||(r=this.createNewValue()).length==this.rowCount&&(r[r.length-1]=t,this.value=r),this.data&&(this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.isValueEmpty(t))){var n=this.visibleRows[this.rowCount-1];this.isValueEmpty(n.value)||(r||(r=this.createNewValue()),this.isValueSurveyElement(r)||this.isTwoValueEquals(r[r.length-1],n.value)||(r[r.length-1]=n.value,this.value=r))}this.survey&&e+1==this.rowCount&&(this.survey.matrixRowAdded(this,this.visibleRows[this.visibleRows.length-1]),this.onRowsChanged())},t.prototype.getDefaultRowValue=function(e){for(var t=null,r=0;r<this.columns.length;r++){var n=this.columns[r].templateQuestion;n&&!this.isValueEmpty(n.getDefaultValue())&&((t=t||{})[this.columns[r].name]=n.getDefaultValue())}if(!this.isValueEmpty(this.defaultRowValue))for(var o in this.defaultRowValue)(t=t||{})[o]=this.defaultRowValue[o];if(e&&this.defaultValueFromLastRow){var i=this.value;if(i&&Array.isArray(i)&&i.length>=this.rowCount-1){var s=i[this.rowCount-2];for(var o in s)(t=t||{})[o]=s[o]}}return t},t.prototype.removeRowUI=function(e){if(e&&e.rowName){var t=this.visibleRows.indexOf(e);if(t<0)return;e=t}this.removeRow(e)},t.prototype.isRequireConfirmOnRowDelete=function(e){if(!this.confirmDelete)return!1;if(e<0||e>=this.rowCount)return!1;var t=this.createNewValue();return!(this.isValueEmpty(t)||!Array.isArray(t)||e>=t.length||this.isValueEmpty(t[e]))},t.prototype.removeRow=function(e,t){if(this.canRemoveRows&&!(e<0||e>=this.rowCount)){var r=this.visibleRows&&e<this.visibleRows.length?this.visibleRows[e]:null;void 0===t&&(t=this.isRequireConfirmOnRowDelete(e)),t&&!Object(u.confirmAction)(this.confirmDeleteText)||r&&this.survey&&!this.survey.matrixRowRemoving(this,e,r)||(this.onStartRowAddingRemoving(),this.removeRowCore(e),this.onEndRowRemoving(r))}},t.prototype.removeRowCore=function(e){var t=this.generatedVisibleRows?this.generatedVisibleRows[e]:null;if(this.generatedVisibleRows&&e<this.generatedVisibleRows.length&&this.generatedVisibleRows.splice(e,1),this.rowCountValue--,this.value){var r=[];(r=Array.isArray(this.value)&&e<this.value.length?this.createValueCopy():this.createNewValue()).splice(e,1),r=this.deleteRowValue(r,null),this.isRowChanging=!0,this.value=r,this.isRowChanging=!1}this.onRowsChanged(),this.survey&&this.survey.matrixRowRemoved(this,e,t)},Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowText",{get:function(){return this.getLocalizableStringText("addRowText",this.defaultAddRowText)},set:function(e){this.setLocalizableStringText("addRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAddRowText",{get:function(){return this.getLocalizableString("addRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultAddRowText",{get:function(){return this.getLocalizationString(this.isColumnLayoutHorizontal?"addRow":"addColumn")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowLocation",{get:function(){return this.getPropertyValue("addRowLocation")},set:function(e){this.setPropertyValue("addRowLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return this.addRowLocation},Object.defineProperty(t.prototype,"hideColumnsIfEmpty",{get:function(){return this.getPropertyValue("hideColumnsIfEmpty")},set:function(e){this.setPropertyValue("hideColumnsIfEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getShowColumnsIfEmpty=function(){return this.hideColumnsIfEmpty},Object.defineProperty(t.prototype,"removeRowText",{get:function(){return this.getLocalizableStringText("removeRowText")},set:function(e){this.setLocalizableStringText("removeRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRemoveRowText",{get:function(){return this.getLocalizableString("removeRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyRowsText",{get:function(){return this.getLocalizableStringText("emptyRowsText")},set:function(e){this.setLocalizableStringText("emptyRowsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEmptyRowsText",{get:function(){return this.getLocalizableString("emptyRowsText")},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){if(!t||!Array.isArray(t))return t;for(var r=this.getUnbindValue(t),n=this.visibleRows,o=0;o<n.length&&o<r.length;o++){var i=r[o];i&&(r[o]=this.getRowDisplayValue(e,n[o],i))}return r},t.prototype.getConditionObjectRowName=function(e){return"["+e.toString()+"]"},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],t=Math.max(this.rowCount,1),r=0;r<Math.min(l.settings.matrixMaxRowCountInCondition,t);r++)e.push(r);return e},t.prototype.supportGoNextPageAutomatic=function(){return!1},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onCheckForErrors=function(t,r){e.prototype.onCheckForErrors.call(this,t,r),!r&&this.hasErrorInMinRows()&&t.push(new a.MinRowCountError(this.minRowCount,this))},t.prototype.hasErrorInMinRows=function(){if(this.minRowCount<=0||!this.isRequired||!this.generatedVisibleRows)return!1;for(var e=0,t=0;t<this.generatedVisibleRows.length;t++)this.generatedVisibleRows[t].isEmpty||e++;return e<this.minRowCount},t.prototype.getUniqueColumns=function(){var t=e.prototype.getUniqueColumns.call(this);if(this.keyName){var r=this.getColumnByName(this.keyName);r&&t.indexOf(r)<0&&t.push(r)}return t},t.prototype.generateRows=function(){var e=new Array;if(0===this.rowCount)return e;for(var t=this.createNewValue(),r=0;r<this.rowCount;r++)e.push(this.createMatrixRow(this.getRowValueByIndex(t,r)));return this.isValueEmpty(this.getDefaultRowValue(!1))||(this.value=t),e},t.prototype.createMatrixRow=function(e){return new m(this.rowCounter++,this,e)},t.prototype.getInsertedDeletedIndex=function(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++)if(t[n]!==e[n].editingObj)return n;return r},t.prototype.isEditingObjectValueChanged=function(){var e=this.value;if(!this.generatedVisibleRows||!this.isValueSurveyElement(e))return!1;var t=this.lastDeletedRow;this.lastDeletedRow=void 0;var r=this.generatedVisibleRows;if(!Array.isArray(e)||Math.abs(r.length-e.length)>1)return!1;var n=this.getInsertedDeletedIndex(r,e);if(r.length>e.length){this.lastDeletedRow=r[n];var o=r[n];r.splice(n,1),this.isRendredTableCreated&&this.renderedTable.onRemovedRow(o)}else{var i;i=t&&t.editingObj===e[n]?t:this.createMatrixRow(e[n]),r.splice(n,0,i),t||this.onMatrixRowCreated(i),this.isRendredTableCreated&&this.renderedTable.onAddedRow(i,n)}return this.setPropertyValueDirectly("rowCount",e.length),!0},t.prototype.onBeforeValueChanged=function(e){if(e&&Array.isArray(e)){var t=e.length;if(t!=this.rowCount&&(this.setRowCountValueFromData||!(t<this.initialRowCount))&&!this.isEditingObjectValueChanged()&&(this.setRowCountValueFromData=!0,this.rowCountValue=t,this.generatedVisibleRows)){if(t==this.generatedVisibleRows.length+1){this.onStartRowAddingRemoving();var r=this.getRowValueByIndex(e,t-1),n=this.createMatrixRow(r);this.generatedVisibleRows.push(n),this.onMatrixRowCreated(n),this.onEndRowAdding()}else this.clearGeneratedRows(),this.generatedVisibleRows=this.visibleRows,this.onRowsChanged();this.setRowCountValueFromData=!1}}},t.prototype.createNewValue=function(){var e=this.createValueCopy();e&&Array.isArray(e)||(e=[]),e.length>this.rowCount&&e.splice(this.rowCount);var t=this.getDefaultRowValue(!1);t=t||{};for(var r=e.length;r<this.rowCount;r++)e.push(this.getUnbindValue(t));return e},t.prototype.deleteRowValue=function(e,t){for(var r=!0,n=0;n<e.length;n++)if(this.isObject(e[n])&&Object.keys(e[n]).length>0){r=!1;break}return r?null:e},t.prototype.getRowValueByIndex=function(e,t){return Array.isArray(e)&&t>=0&&t<e.length?e[t]:null},t.prototype.getRowValueCore=function(e,t,r){if(void 0===r&&(r=!1),!this.generatedVisibleRows)return{};var n=this.getRowValueByIndex(t,this.generatedVisibleRows.indexOf(e));return!n&&r&&(n={}),n},t.prototype.getAddRowButtonCss=function(e){return void 0===e&&(e=!1),(new p.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.emptyRowsButton,e).toString()},t.prototype.getRemoveRowButtonCss=function(){return(new p.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonRemove).toString()},t.prototype.getRootCss=function(){var t;return(new p.CssClassBuilder).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.empty,!(null===(t=this.renderedTable)||void 0===t?void 0:t.showTable)).toString()},t}(s.QuestionMatrixDropdownModelBase),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.setDefaultRowActions=function(t,r){e.prototype.setDefaultRowActions.call(this,t,r)},t}(d.QuestionMatrixDropdownRenderedTable);o.Serializer.addClass("matrixdynamic",[{name:"rowsVisibleIf:condition",visible:!1},{name:"allowAddRows:boolean",default:!0},{name:"allowRemoveRows:boolean",default:!0},{name:"rowCount:number",default:2,minValue:0,isBindable:!0},{name:"minRowCount:number",default:0,minValue:0},{name:"maxRowCount:number",default:l.settings.matrixMaximumRowCount},{name:"keyName"},"defaultRowValue:rowvalue","defaultValueFromLastRow:boolean",{name:"confirmDelete:boolean"},{name:"confirmDeleteText",dependsOn:"confirmDelete",visibleIf:function(e){return!e||e.confirmDelete},serializationProperty:"locConfirmDeleteText"},{name:"addRowLocation",default:"default",choices:["default","top","bottom","topBottom"]},{name:"addRowText",serializationProperty:"locAddRowText"},{name:"removeRowText",serializationProperty:"locRemoveRowText"},"hideColumnsIfEmpty:boolean",{name:"emptyRowsText:text",serializationProperty:"locEmptyRowsText",dependsOn:"hideColumnsIfEmpty",visibleIf:function(e){return!e||e.hideColumnsIfEmpty}},{name:"detailPanelShowOnAdding:boolean",dependsOn:"detailPanelMode",visibleIf:function(e){return"none"!==e.detailPanelMode}},"allowRowsDragAndDrop:switch"],(function(){return new g("")}),"matrixdropdownbase"),i.QuestionFactory.Instance.registerQuestion("matrixdynamic",(function(e){var t=new g(e);return t.choices=[1,2,3,4,5],s.QuestionMatrixDropdownModelBase.addDefaultColumns(t),t}))},"./src/question_multipletext.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"MultipleTextEditorModel",(function(){return f})),r.d(t,"MultipleTextItemModel",(function(){return m})),r.d(t,"QuestionMultipleTextModel",(function(){return g}));var n,o=r("./src/base.ts"),i=r("./src/survey-element.ts"),s=r("./src/question.ts"),a=r("./src/question_text.ts"),l=r("./src/jsonobject.ts"),u=r("./src/questionfactory.ts"),c=r("./src/helpers.ts"),p=r("./src/utils/cssClassBuilder.ts"),d=r("./src/settings.ts"),h=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),Object.defineProperty(t.prototype,"a11y_input_ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabelledBy",{get:function(){return null},enumerable:!1,configurable:!0}),t}(a.QuestionTextModel),m=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;return n.editorValue=n.createEditor(t),n.editor.questionTitleTemplateCallback=function(){return""},n.editor.titleLocation="left",r&&(n.title=r),n}return h(t,e),t.prototype.getType=function(){return"multipletextitem"},Object.defineProperty(t.prototype,"id",{get:function(){return this.editor.id},enumerable:!1,configurable:!0}),t.prototype.getOriginalObj=function(){return this.editor},Object.defineProperty(t.prototype,"name",{get:function(){return this.editor.name},set:function(e){this.editor.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editor",{get:function(){return this.editorValue},enumerable:!1,configurable:!0}),t.prototype.createEditor=function(e){return new f(e)},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.editor.addUsedLocales(t)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.editor.localeChanged()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.editor.locStrsChanged()},t.prototype.setData=function(e){this.data=e,e&&(this.editor.defaultValue=e.getItemDefaultValue(this.name),this.editor.setSurveyImpl(this),this.editor.parent=e)},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.editor.isRequired},set:function(e){this.editor.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputType",{get:function(){return this.editor.inputType},set:function(e){this.editor.inputType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.editor.title},set:function(e){this.editor.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.editor.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.editor.fullTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.editor.maxLength},set:function(e){this.editor.maxLength=e},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){var e=this.getSurvey();return c.Helpers.getMaxLength(this.maxLength,e?e.maxTextLength:-1)},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.editor.placeholder},set:function(e){this.editor.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.editor.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.editor.requiredErrorText},set:function(e){this.editor.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.editor.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.editor.size},set:function(e){this.editor.size=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.editor.validators},set:function(e){this.editor.validators=e},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},Object.defineProperty(t.prototype,"value",{get:function(){return this.data?this.data.getMultipleTextValue(this.name):null},set:function(e){null!=this.data&&this.data.setMultipleTextValue(this.name,e)},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return this.editor.isEmpty()},t.prototype.onValueChanged=function(e){this.valueChangedCallback&&this.valueChangedCallback(e)},t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},t.prototype.getTextProcessor=function(){return this.data?this.data.getTextProcessor():null},t.prototype.getValue=function(e){return this.data?this.data.getMultipleTextValue(e):null},t.prototype.setValue=function(e,t){this.data&&this.data.setMultipleTextValue(e,t)},t.prototype.getVariable=function(e){},t.prototype.setVariable=function(e,t){},t.prototype.getComment=function(e){return null},t.prototype.setComment=function(e,t){},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():this.value},t.prototype.getFilteredValues=function(){return this.getAllValues()},t.prototype.getFilteredProperties=function(){return{survey:this.getSurvey()}},t.prototype.findQuestionByName=function(e){var t=this.getSurvey();return t?t.getQuestionByName(e):null},t.prototype.getValidatorTitle=function(){return this.title},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getDataFilteredValues=function(){return this.getFilteredValues()},t.prototype.getDataFilteredProperties=function(){return this.getFilteredProperties()},t}(o.Base),g=function(e){function t(t){var r=e.call(this,t)||this;return r.isMultipleItemValueChanging=!1,r.createNewArray("items",(function(e){e.setData(r),r.survey&&r.survey.multipleTextItemAdded(r,e)})),r.registerPropertyChangedHandlers(["items","colCount"],(function(){r.fireCallback(r.colCountChangedCallback)})),r.registerPropertyChangedHandlers(["itemSize"],(function(){r.updateItemsSize()})),r}return h(t,e),t.addDefaultItems=function(e){for(var t=u.QuestionFactory.DefaultMutlipleTextItems,r=0;r<t.length;r++)e.addItem(t[r])},t.prototype.getType=function(){return"multipletext"},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r);for(var n=0;n<this.items.length;n++)this.items[n].setData(this)},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){var t;null===(t=this.items)||void 0===t||t.map((function(t,r){return t.editor.id=e+"_"+r})),this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){this.editorsOnSurveyLoad(),e.prototype.onSurveyLoad.call(this),this.fireCallback(this.colCountChangedCallback)},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),e.prototype.setQuestionValue.call(this,t,r),this.performForEveryEditor((function(e){e.editor.updateValueFromSurvey(e.value)})),this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.performForEveryEditor((function(e){e.editor.onSurveyValueChanged(e.value)}))},t.prototype.updateItemsSize=function(){this.performForEveryEditor((function(e){e.editor.updateInputSize()}))},t.prototype.editorsOnSurveyLoad=function(){this.performForEveryEditor((function(e){e.editor.onSurveyLoad()}))},t.prototype.performForEveryEditor=function(e){for(var t=0;t<this.items.length;t++){var r=this.items[t];r.editor&&e(r)}},Object.defineProperty(t.prototype,"items",{get:function(){return this.getPropertyValue("items")},set:function(e){this.setPropertyValue("items",e)},enumerable:!1,configurable:!0}),t.prototype.addItem=function(e,t){void 0===t&&(t=null);var r=this.createTextItem(e,t);return this.items.push(r),r},t.prototype.getItemByName=function(e){for(var t=0;t<this.items.length;t++)if(this.items[t].name==e)return this.items[t];return null},t.prototype.addConditionObjectsByContext=function(e,t){for(var r=0;r<this.items.length;r++){var n=this.items[r];e.push({name:this.getValueName()+"."+n.name,text:this.processedTitle+"."+n.fullTitle,question:this})}},t.prototype.getConditionJson=function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!r)return e.prototype.getConditionJson.call(this);var n=this.getItemByName(r);if(!n)return null;var o=(new l.JsonObject).toJsonObject(n);return o.type="text",o},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].locStrsChanged()},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].localeChanged()},t.prototype.supportGoNextPageAutomatic=function(){for(var e=0;e<this.items.length;e++)if(this.items[e].isEmpty())return!1;return!0},Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<1||e>5||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemSize",{get:function(){return this.getPropertyValue("itemSize")},set:function(e){this.setPropertyValue("itemSize",e)},enumerable:!1,configurable:!0}),t.prototype.getRows=function(){for(var e=this.colCount,t=this.items,r=[],n=0,o=0;o<t.length;o++)0==n&&r.push([]),r[r.length-1].push(t[o]),++n>=e&&(n=0);return r},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.onItemValueChanged()},t.prototype.createTextItem=function(e,t){return new m(e,t)},t.prototype.onItemValueChanged=function(){if(!this.isMultipleItemValueChanging)for(var e=0;e<this.items.length;e++){var t=null;this.value&&this.items[e].name in this.value&&(t=this.value[this.items[e].name]),this.items[e].onValueChanged(t)}},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.items.length;t++)if(this.items[t].editor.isRunningValidators)return!0;return!1},t.prototype.hasErrors=function(t,r){var n=this;void 0===t&&(t=!0),void 0===r&&(r=null);for(var o=!1,i=0;i<this.items.length;i++)this.items[i].editor.onCompletedAsyncValidators=function(e){n.raiseOnCompletedAsyncValidators()},r&&!0===r.isOnValueChanged&&this.items[i].editor.isEmpty()||(o=this.items[i].editor.hasErrors(t,r)||o);return e.prototype.hasErrors.call(this,t)||o},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),r=0;r<this.items.length;r++){var n=this.items[r].editor.getAllErrors();n&&n.length>0&&(t=t.concat(n))}return t},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.items.length;t++)this.items[t].editor.clearErrors()},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var r=this.items,n=0;n<r.length;n++)if(r[n].editor.containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=0;t<this.items.length;t++){var r=this.items[t].editor;if(r.isVisible&&!r.isAnswered)return!1}return!0},t.prototype.getProgressInfo=function(){for(var e=[],t=0;t<this.items.length;t++)e.push(this.items[t].editor);return i.SurveyElement.getProgressInfoByElements(e,this.isRequired)},t.prototype.getDisplayValueCore=function(e,t){if(!t)return t;for(var r={},n=0;n<this.items.length;n++){var o=this.items[n],i=t[o.name];if(!c.Helpers.isValueEmpty(i)){var s=o.name;e&&o.title&&(s=o.title),r[s]=o.editor.getDisplayValue(e,i)}}return r},t.prototype.getMultipleTextValue=function(e){return this.value?this.value[e]:null},t.prototype.setMultipleTextValue=function(e,t){this.isMultipleItemValueChanging=!0,this.isValueEmpty(t)&&(t=void 0);var r=this.value;r||(r={}),r[e]=t,this.setNewValue(r),this.isMultipleItemValueChanging=!1},t.prototype.getItemDefaultValue=function(e){return this.defaultValue?this.defaultValue[e]:null},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.getIsRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return-1},t.prototype.ensureRowsVisibility=function(){},t.prototype.getItemLabelCss=function(e){return(new p.CssClassBuilder).append(this.cssClasses.itemLabel).append(this.cssClasses.itemLabelOnError,e.editor.errors.length>0).toString()},t.prototype.getItemCss=function(){return(new p.CssClassBuilder).append(this.cssClasses.item).toString()},t.prototype.getItemTitleCss=function(){return(new p.CssClassBuilder).append(this.cssClasses.itemTitle).toString()},t.prototype.getIsTooltipErrorInsideSupported=function(){return!0},t}(s.Question);l.Serializer.addClass("multipletextitem",["name","isRequired:boolean",{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"inputType",default:"text",choices:d.settings.questions.inputTypes},{name:"title",serializationProperty:"locTitle"},{name:"maxLength:number",default:-1},{name:"size:number",minValue:0},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],(function(){return new m("")})),l.Serializer.addClass("multipletext",[{name:"!items:textitems",className:"multipletextitem"},{name:"itemSize:number",minValue:0},{name:"colCount:number",default:1,choices:[1,2,3,4,5]}],(function(){return new g("")}),"question"),u.QuestionFactory.Instance.registerQuestion("multipletext",(function(e){var t=new g(e);return g.addDefaultItems(t),t}))},"./src/question_paneldynamic.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionPanelDynamicItem",(function(){return w})),r.d(t,"QuestionPanelDynamicTemplateSurveyImpl",(function(){return x})),r.d(t,"QuestionPanelDynamicModel",(function(){return C}));var n,o=r("./src/helpers.ts"),i=r("./src/survey-element.ts"),s=r("./src/localizablestring.ts"),a=r("./src/textPreProcessor.ts"),l=r("./src/question.ts"),u=r("./src/jsonobject.ts"),c=r("./src/questionfactory.ts"),p=r("./src/error.ts"),d=r("./src/settings.ts"),h=r("./src/utils/utils.ts"),f=r("./src/utils/cssClassBuilder.ts"),m=r("./src/actions/action.ts"),g=r("./src/base.ts"),b=r("./src/actions/adaptive-container.ts"),y=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),v=function(e){function t(t,r,n){var o=e.call(this,n)||this;return o.data=t,o.panelItem=r,o.variableName=n,o.sharedQuestions={},o}return y(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.panelItem.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelItem.panel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelIndex",{get:function(){return this.data?this.data.getItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelIndex",{get:function(){return this.data?this.data.getVisibleItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.panelItem.getAllValues()},t.prototype.getQuestionByName=function(t){var r=e.prototype.getQuestionByName.call(this,t);if(r)return r;var n=this.panelIndex,o=(r=n>-1?this.data.getSharedQuestionFromArray(t,n):void 0)?r.name:t;return this.sharedQuestions[o]=t,r},t.prototype.getQuestionDisplayText=function(t){var r=this.sharedQuestions[t.name];if(!r)return e.prototype.getQuestionDisplayText.call(this,t);var n=this.panelItem.getValue(r);return t.getDisplayValue(!0,n)},t.prototype.onCustomProcessText=function(e){var r;if(e.name==w.IndexVariableName&&(r=this.panelIndex)>-1)return e.isExists=!0,e.value=r+1,!0;if(e.name==w.VisibleIndexVariableName&&(r=this.visiblePanelIndex)>-1)return e.isExists=!0,e.value=r+1,!0;if(0==e.name.toLowerCase().indexOf(w.ParentItemVariableName+".")){var n=this.data;if(n&&n.parentQuestion&&n.parent&&n.parent.data){var o=new t(n.parentQuestion,n.parent.data,w.ItemVariableName),i=w.ItemVariableName+e.name.substring(w.ParentItemVariableName.length),s=o.processValue(i,e.returnDisplayValue);e.isExists=s.isExists,e.value=s.value}return!0}return!1},t}(a.QuestionTextProcessor),w=function(){function e(t,r){this.data=t,this.panelValue=r,this.textPreProcessor=new v(t,this,e.ItemVariableName),this.setSurveyImpl()}return Object.defineProperty(e.prototype,"panel",{get:function(){return this.panelValue},enumerable:!1,configurable:!0}),e.prototype.setSurveyImpl=function(){this.panel.setSurveyImpl(this)},e.prototype.getValue=function(e){return this.getAllValues()[e]},e.prototype.setValue=function(e,t){var r=this.data.getPanelItemData(this),n=r?r[e]:void 0;if(!o.Helpers.isTwoValueEquals(t,n)){this.data.setPanelItemData(this,e,o.Helpers.getUnbindValue(t));for(var i=this.panel.questions,s=0;s<i.length;s++)i[s].getValueName()!==e&&i[s].checkBindings(e,t)}},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){return this.getValue(e+d.settings.commentSuffix)||""},e.prototype.setComment=function(e,t,r){this.setValue(e+d.settings.commentSuffix,t)},e.prototype.findQuestionByName=function(t){if(t){var r=e.ItemVariableName+".";if(0===t.indexOf(r))return this.panel.getQuestionByName(t.substring(r.length));var n=this.getSurvey();return n?n.getQuestionByName(t):null}},e.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},e.prototype.getFilteredValues=function(){var t={},r=this.data&&this.data.getRootData()?this.data.getRootData().getFilteredValues():{};for(var n in r)t[n]=r[n];if(t[e.ItemVariableName]=this.getAllValues(),this.data){var o=e.IndexVariableName,i=e.VisibleIndexVariableName;delete t[o],delete t[i],t[o.toLowerCase()]=this.data.getItemIndex(this),t[i.toLowerCase()]=this.data.getVisibleItemIndex(this);var s=this.data;s&&s.parentQuestion&&s.parent&&(t[e.ParentItemVariableName]=s.parent.getValue())}return t},e.prototype.getFilteredProperties=function(){return this.data&&this.data.getRootData()?this.data.getRootData().getFilteredProperties():{survey:this.getSurvey()}},e.prototype.getSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this.textPreProcessor},e.ItemVariableName="panel",e.ParentItemVariableName="parentpanel",e.IndexVariableName="panelIndex",e.VisibleIndexVariableName="visiblePanelIndex",e}(),x=function(){function e(e){this.data=e}return e.prototype.getSurveyData=function(){return null},e.prototype.getSurvey=function(){return this.data.getSurvey()},e.prototype.getTextProcessor=function(){return null},e}(),C=function(e){function t(t){var r=e.call(this,t)||this;return r.isAddingNewPanels=!1,r.onReadyChangedCallback=function(){r.recalculateIsReadyValue()},r.isSetPanelItemData={},r.createNewArray("panels",(function(e){r.onPanelAdded(e)}),(function(e){r.onPanelRemoved(e)})),r.createNewArray("visiblePanels"),r.templateValue=r.createAndSetupNewPanelObject(),r.template.renderWidth="100%",r.template.selectedElementInDesign=r,r.template.addElementCallback=function(e){r.addOnPropertyChangedCallback(e),r.rebuildPanels()},r.template.removeElementCallback=function(){r.rebuildPanels()},r.createLocalizableString("confirmDeleteText",r,!1,"confirmDelete"),r.createLocalizableString("keyDuplicationError",r,!1,!0),r.createLocalizableString("panelAddText",r,!1,"addPanel"),r.createLocalizableString("panelRemoveText",r,!1,"removePanel"),r.createLocalizableString("panelPrevText",r,!1,"pagePrevText"),r.createLocalizableString("panelNextText",r,!1,"pageNextText"),r.createLocalizableString("noEntriesText",r,!1,"noEntriesText"),r.createLocalizableString("templateTabTitle",r,!0,"panelDynamicTabTextFormat"),r.registerPropertyChangedHandlers(["panelsState"],(function(){r.setPanelsState()})),r.registerPropertyChangedHandlers(["isMobile"],(function(){r.updateFooterActions()})),r.registerPropertyChangedHandlers(["allowAddPanel"],(function(){r.updateNoEntriesTextDefaultLoc()})),r}return y(t,e),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getFirstQuestionToFocus=function(e){for(var t=0;t<this.visiblePanels.length;t++){var r=this.visiblePanels[t].getFirstQuestionToFocus(e);if(r)return r}return null},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r),this.setTemplatePanelSurveyImpl(),this.setPanelsSurveyImpl()},t.prototype.assignOnPropertyChangedToTemplate=function(){for(var e=this.template.elements,t=0;t<e.length;t++)this.addOnPropertyChangedCallback(e[t])},t.prototype.addOnPropertyChangedCallback=function(e){var t=this;e.isQuestion&&e.setParentQuestion(this),e.onPropertyChanged.add((function(e,r){t.onTemplateElementPropertyChanged(e,r)})),e.isPanel&&(e.addElementCallback=function(e){t.addOnPropertyChangedCallback(e)})},t.prototype.onTemplateElementPropertyChanged=function(e,t){if(!this.isLoadingFromJson&&!this.useTemplatePanel&&0!=this.panels.length&&u.Serializer.findProperty(e.getType(),t.name))for(var r=this.panels,n=0;n<r.length;n++){var o=r[n].getQuestionByName(e.name);o&&o[t.name]!==t.newValue&&(o[t.name]=t.newValue)}},Object.defineProperty(t.prototype,"useTemplatePanel",{get:function(){return this.isDesignMode&&!this.isContentElement},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"paneldynamic"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.clearOnDeletingContainer=function(){this.panels.forEach((function(e){e.clearOnDeletingContainer()}))},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.removeElement=function(e){return this.template.removeElement(e)},Object.defineProperty(t.prototype,"template",{get:function(){return this.templateValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.template},Object.defineProperty(t.prototype,"templateElements",{get:function(){return this.template.elements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitle",{get:function(){return this.template.title},set:function(e){this.template.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTitle",{get:function(){return this.template.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTabTitle",{get:function(){return this.locTemplateTabTitle.text},set:function(e){this.locTemplateTabTitle.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTabTitle",{get:function(){return this.getLocalizableString("templateTabTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateDescription",{get:function(){return this.template.description},set:function(e){this.template.description=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateDescription",{get:function(){return this.template.locDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateVisibleIf",{get:function(){return this.template.visibleIf},set:function(e){this.template.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){for(var e=[],t=0;t<this.panels.length;t++)e.push(this.panels[t].data);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panels",{get:function(){return this.getPropertyValue("panels")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanels",{get:function(){return this.getPropertyValue("visiblePanels")},enumerable:!1,configurable:!0}),t.prototype.onPanelAdded=function(e){if(this.onPanelRemovedCore(e),e.visible){for(var t=0,r=this.panels,n=0;n<r.length&&r[n]!==e;n++)r[n].visible&&t++;this.visiblePanels.splice(t,0,e),this.addTabFromToolbar(e,t),this.currentPanel||(this.currentPanel=e)}},t.prototype.onPanelRemoved=function(e){var t=this.onPanelRemovedCore(e);if(this.currentPanel===e){var r=this.visiblePanels;t>=r.length&&(t=r.length-1),this.currentPanel=t>=0?r[t]:null}},t.prototype.onPanelRemovedCore=function(e){var t=this.visiblePanels,r=t.indexOf(e);return r>-1&&(t.splice(r,1),this.removeTabFromToolbar(e)),r},Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this.isRenderModeList?-1:this.useTemplatePanel?0:this.visiblePanels.indexOf(this.currentPanel)},set:function(e){e<0||this.visiblePanelCount<1||(e>=this.visiblePanelCount&&(e=this.visiblePanelCount-1),this.currentPanel=this.visiblePanels[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPanel",{get:function(){if(this.isDesignMode)return this.template;if(this.isRenderModeList||this.useTemplatePanel)return null;var e=this.getPropertyValue("currentPanel",null);return!e&&this.visiblePanelCount>0&&(e=this.visiblePanels[0],this.currentPanel=e),e},set:function(e){this.isRenderModeList||this.useTemplatePanel||e&&this.visiblePanels.indexOf(e)<0||e===this.getPropertyValue("currentPanel")||(this.setPropertyValue("currentPanel",e),this.updateFooterActions(),this.updateTabToolbarItemsPressedState(),this.fireCallback(this.currentIndexChangedCallback))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete")},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelPrevText",{get:function(){return this.getLocalizableStringText("panelPrevText")},set:function(e){this.setLocalizableStringText("panelPrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelPrevText",{get:function(){return this.getLocalizableString("panelPrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelNextText",{get:function(){return this.getLocalizableStringText("panelNextText")},set:function(e){this.setLocalizableStringText("panelNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelNextText",{get:function(){return this.getLocalizableString("panelNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelAddText",{get:function(){return this.getLocalizableStringText("panelAddText")},set:function(e){this.setLocalizableStringText("panelAddText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelAddText",{get:function(){return this.getLocalizableString("panelAddText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveText",{get:function(){return this.getLocalizableStringText("panelRemoveText")},set:function(e){this.setLocalizableStringText("panelRemoveText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelRemoveText",{get:function(){return this.getLocalizableString("panelRemoveText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressTopShowing",{get:function(){return"progressTop"===this.renderMode||"progressTopBottom"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressBottomShowing",{get:function(){return"progressBottom"===this.renderMode||"progressTopBottom"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonVisible",{get:function(){return this.currentIndex>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonShowing",{get:function(){return this.isPrevButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonVisible",{get:function(){return this.currentIndex>=0&&this.currentIndex<this.visiblePanelCount-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonShowing",{get:function(){return this.isNextButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRangeShowing",{get:function(){return this.showRangeInProgress&&this.currentIndex>=0&&this.visiblePanelCount>1},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),e?[this.template]:this.templateElements},t.prototype.prepareValueForPanelCreating=function(){this.addingNewPanelsValue=this.value,this.isAddingNewPanels=!0,this.isNewPanelsValueChanged=!1},t.prototype.setValueAfterPanelsCreating=function(){this.isAddingNewPanels=!1,this.isNewPanelsValueChanged&&(this.isValueChangingInternally=!0,this.value=this.addingNewPanelsValue,this.isValueChangingInternally=!1)},t.prototype.getValueCore=function(){return this.isAddingNewPanels?this.addingNewPanelsValue:e.prototype.getValueCore.call(this)},t.prototype.setValueCore=function(t){this.isAddingNewPanels?(this.isNewPanelsValueChanged=!0,this.addingNewPanelsValue=t):e.prototype.setValueCore.call(this,t)},t.prototype.setIsMobile=function(e){(this.panels||[]).forEach((function(t){return t.elements.forEach((function(t){t instanceof l.Question&&(t.isMobile=e)}))}))},Object.defineProperty(t.prototype,"panelCount",{get:function(){return this.isLoadingFromJson||this.useTemplatePanel?this.getPropertyValue("panelCount"):this.panels.length},set:function(e){if(!(e<0))if(this.isLoadingFromJson||this.useTemplatePanel)this.setPropertyValue("panelCount",e);else if(e!=this.panels.length&&!this.useTemplatePanel){this.updateBindings("panelCount",e),this.prepareValueForPanelCreating();for(var t=this.panelCount;t<e;t++){var r=this.createNewPanel();this.panels.push(r),"list"==this.renderMode&&"default"!=this.panelsState&&("expand"===this.panelsState?r.expand():r.title&&r.collapse())}e<this.panelCount&&this.panels.splice(e,this.panelCount-e),this.setValueAfterPanelsCreating(),this.setValueBasedOnPanelCount(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback)}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelCount",{get:function(){return this.visiblePanels.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelsState",{get:function(){return this.getPropertyValue("panelsState")},set:function(e){this.setPropertyValue("panelsState",e)},enumerable:!1,configurable:!0}),t.prototype.setTemplatePanelSurveyImpl=function(){this.template.setSurveyImpl(this.useTemplatePanel?this.surveyImpl:new x(this))},t.prototype.setPanelsSurveyImpl=function(){for(var e=0;e<this.panels.length;e++){var t=this.panels[e];t!=this.template&&t.setSurveyImpl(t.data)}},t.prototype.setPanelsState=function(){if(!this.useTemplatePanel&&"list"==this.renderMode&&this.templateTitle)for(var e=0;e<this.panels.length;e++){var t=this.panelsState;"firstExpanded"===t&&(t=0===e?"expanded":"collapsed"),this.panels[e].state=t}},t.prototype.setValueBasedOnPanelCount=function(){var e=this.value;if(e&&Array.isArray(e)||(e=[]),e.length!=this.panelCount){for(var t=e.length;t<this.panelCount;t++)e.push({});e.length>this.panelCount&&e.splice(this.panelCount,e.length-this.panelCount),this.isValueChangingInternally=!0,this.value=e,this.isValueChangingInternally=!1}},Object.defineProperty(t.prototype,"minPanelCount",{get:function(){return this.getPropertyValue("minPanelCount")},set:function(e){e<0&&(e=0),e!=this.minPanelCount&&(this.setPropertyValue("minPanelCount",e),e>this.maxPanelCount&&(this.maxPanelCount=e),this.panelCount<e&&(this.panelCount=e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxPanelCount",{get:function(){return this.getPropertyValue("maxPanelCount")},set:function(e){e<=0||(e>d.settings.panelMaximumPanelCount&&(e=d.settings.panelMaximumPanelCount),e!=this.maxPanelCount&&(this.setPropertyValue("maxPanelCount",e),e<this.minPanelCount&&(this.minPanelCount=e),this.panelCount>e&&(this.panelCount=e)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAddPanel",{get:function(){return this.getPropertyValue("allowAddPanel")},set:function(e){this.setPropertyValue("allowAddPanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemovePanel",{get:function(){return this.getPropertyValue("allowRemovePanel")},set:function(e){this.setPropertyValue("allowRemovePanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitleLocation",{get:function(){return this.getPropertyValue("templateTitleLocation")},set:function(e){this.setPropertyValue("templateTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),!this.isLoadingFromJson&&this.survey&&this.survey.questionVisibilityChanged(this,this.visible)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveButtonLocation",{get:function(){return this.getPropertyValue("panelRemoveButtonLocation")},set:function(e){this.setPropertyValue("panelRemoveButtonLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRangeInProgress",{get:function(){return this.getPropertyValue("showRangeInProgress")},set:function(e){this.setPropertyValue("showRangeInProgress",e),this.updateFooterActions(),this.fireCallback(this.currentIndexChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderMode",{get:function(){return this.getPropertyValue("renderMode")},set:function(e){this.setPropertyValue("renderMode",e),this.updateFooterActions(),this.fireCallback(this.renderModeChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tabAlign",{get:function(){return this.getPropertyValue("tabAlign")},set:function(e){this.setPropertyValue("tabAlign",e),this.isRenderModeTab&&(this.additionalTitleToolbar.containerCss=this.getAdditionalTitleToolbarCss())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeList",{get:function(){return"list"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeTab",{get:function(){return"tab"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(this.isRenderModeTab&&this.visiblePanelCount>0)return!0;if(!this.hasTitle)return!1;var e=this.getTitleLocation();return"left"===e||"top"===e},enumerable:!1,configurable:!0}),t.prototype.setVisibleIndex=function(t){if(!this.isVisible)return 0;for(var r="onSurvey"==this.showQuestionNumbers?t:0,n=0;n<this.visiblePanels.length;n++){var o=this.setPanelVisibleIndex(this.visiblePanels[n],r,"off"!=this.showQuestionNumbers);"onSurvey"==this.showQuestionNumbers&&(r+=o)}return e.prototype.setVisibleIndex.call(this,"onSurvey"!=this.showQuestionNumbers?t:-1),"onSurvey"!=this.showQuestionNumbers?1:r-t},t.prototype.setPanelVisibleIndex=function(e,t,r){return r?e.setVisibleIndex(t):(e.setVisibleIndex(-1),0)},Object.defineProperty(t.prototype,"canAddPanel",{get:function(){return!this.isDesignMode&&!(this.isDefaultV2Theme&&!this.legacyNavigation&&!this.isRenderModeList&&this.currentIndex<this.visiblePanelCount-1)&&this.allowAddPanel&&!this.isReadOnly&&this.panelCount<this.maxPanelCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemovePanel",{get:function(){return!this.isDesignMode&&this.allowRemovePanel&&!this.isReadOnly&&this.panelCount>this.minPanelCount},enumerable:!1,configurable:!0}),t.prototype.rebuildPanels=function(){var e;if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var t=[];if(this.useTemplatePanel)new w(this,this.template),t.push(this.template);else for(var r=0;r<this.panelCount;r++)this.createNewPanel(),t.push(this.createNewPanel());(e=this.panels).splice.apply(e,function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}([0,this.panels.length],t)),this.setValueAfterPanelsCreating(),this.setPanelsState(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.updateTabToolbar()}},Object.defineProperty(t.prototype,"defaultPanelValue",{get:function(){return this.getPropertyValue("defaultPanelValue")},set:function(e){this.setPropertyValue("defaultPanelValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastPanel",{get:function(){return this.getPropertyValue("defaultValueFromLastPanel")},set:function(e){this.setPropertyValue("defaultValueFromLastPanel",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultPanelValue)},t.prototype.setDefaultValue=function(){if(!this.isValueEmpty(this.defaultPanelValue)&&this.isValueEmpty(this.defaultValue)){if(this.isEmpty()&&0!=this.panelCount){for(var t=[],r=0;r<this.panelCount;r++)t.push(this.defaultPanelValue);this.value=t}}else e.prototype.setDefaultValue.call(this)},t.prototype.isEmpty=function(){var e=this.value;if(!e||!Array.isArray(e))return!0;for(var t=0;t<e.length;t++)if(!this.isRowEmpty(e[t]))return!1;return!0},t.prototype.getProgressInfo=function(){return i.SurveyElement.getProgressInfoByElements(this.visiblePanels,this.isRequired)},t.prototype.isRowEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},t.prototype.addPanelUI=function(){if(!this.canAddPanel)return null;if(!this.canLeaveCurrentPanel())return null;var e=this.addPanel();return"list"===this.renderMode&&"default"!==this.panelsState&&e.expand(),e},t.prototype.addPanel=function(){this.panelCount++,this.isRenderModeList||(this.currentIndex=this.panelCount-1);var e=this.value,t=!1;return this.isValueEmpty(this.defaultPanelValue)||e&&Array.isArray(e)&&e.length==this.panelCount&&(t=!0,this.copyValue(e[e.length-1],this.defaultPanelValue)),this.defaultValueFromLastPanel&&e&&Array.isArray(e)&&e.length>1&&e.length==this.panelCount&&(t=!0,this.copyValue(e[e.length-1],e[e.length-2])),t&&(this.value=e),this.survey&&this.survey.dynamicPanelAdded(this),this.panels[this.panelCount-1]},t.prototype.canLeaveCurrentPanel=function(){return!("list"!==this.renderMode&&this.currentPanel&&this.currentPanel.hasErrors(!0,!0))},t.prototype.copyValue=function(e,t){for(var r in t)e[r]=t[r]},t.prototype.removePanelUI=function(e){this.canRemovePanel&&(this.confirmDelete&&!Object(h.confirmAction)(this.confirmDeleteText)||this.removePanel(e))},t.prototype.goToNextPanel=function(){return!(this.currentIndex<0||!this.canLeaveCurrentPanel()||(this.currentIndex++,0))},t.prototype.goToPrevPanel=function(){this.currentIndex<0||this.currentIndex--},t.prototype.removePanel=function(e){var t=this.getVisualPanelIndex(e);if(!(t<0||t>=this.visiblePanelCount)){var r=this.visiblePanels[t],n=this.panels.indexOf(r);n<0||this.survey&&!this.survey.dynamicPanelRemoving(this,n,r)||(this.panels.splice(n,1),this.updateBindings("panelCount",this.panelCount),!(e=this.value)||!Array.isArray(e)||n>=e.length||(this.isValueChangingInternally=!0,e.splice(n,1),this.value=e,this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,n,r),this.isValueChangingInternally=!1))}},t.prototype.getVisualPanelIndex=function(e){if(o.Helpers.isNumber(e))return e;for(var t=this.visiblePanels,r=0;r<t.length;r++)if(t[r]===e||t[r].data===e)return r;return-1},t.prototype.getPanelIndexById=function(e){for(var t=0;t<this.panels.length;t++)if(this.panels[t].id===e)return t;return-1},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.panels,r=0;r<t.length;r++)t[r].locStrsChanged();this.additionalTitleToolbar&&this.additionalTitleToolbar.locStrsChanged()},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.panels.length;e++)this.clearIncorrectValuesInPanel(e)},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.panels.length;t++)this.panels[t].clearErrors()},t.prototype.getQuestionFromArray=function(e,t){return t>=this.panelCount?null:this.panels[t].getQuestionByName(e)},t.prototype.clearIncorrectValuesInPanel=function(e){var t=this.panels[e];t.clearIncorrectValues();var r=this.value,n=r&&e<r.length?r[e]:null;if(n){var o=!1;for(var i in n)this.getSharedQuestionFromArray(i,e)||t.getQuestionByName(i)||this.iscorrectValueWithPostPrefix(t,i,d.settings.commentSuffix)||this.iscorrectValueWithPostPrefix(t,i,d.settings.matrixTotalValuePostFix)||(delete n[i],o=!0);o&&(r[e]=n,this.value=r)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t,r){return t.indexOf(r)===t.length-r.length&&!!e.getQuestionByName(t.substring(0,t.indexOf(r)))},t.prototype.getSharedQuestionFromArray=function(e,t){return this.survey&&this.valueName?this.survey.getQuestionByValueNameFromArray(this.valueName,e,t):null},t.prototype.addConditionObjectsByContext=function(e,t){for(var r=!!t&&(!0===t||this.template.questions.indexOf(t)>-1),n=new Array,o=this.template.questions,i=0;i<o.length;i++)o[i].addConditionObjectsByContext(n,t);for(var s=0;s<d.settings.panelDynamicMaxPanelCountInCondition;s++){var a="["+s+"].",l=this.getValueName()+a,u=this.processedTitle+a;for(i=0;i<n.length;i++)e.push({name:l+n[i].name,text:u+n[i].text,question:n[i].question})}if(r)for(l=!0===t?this.getValueName()+".":"",u=!0===t?this.processedTitle+".":"",i=0;i<n.length;i++)if(n[i].question!=t){var c={name:l+"panel."+n[i].name,text:u+"panel."+n[i].text,question:n[i].question};!0===t&&(c.context=this),e.push(c)}},t.prototype.getConditionJson=function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!r)return e.prototype.getConditionJson.call(this,t,r);var n=r,o=r.indexOf(".");o>-1&&(n=r.substring(0,o),r=r.substring(o+1));var i=this.template.getQuestionByName(n);return i?i.getConditionJson(t,r):null},t.prototype.onReadOnlyChanged=function(){var t=this.isReadOnly;this.template.readOnly=t;for(var r=0;r<this.panels.length;r++)this.panels[r].readOnly=t;this.updateNoEntriesTextDefaultLoc(),e.prototype.onReadOnlyChanged.call(this)},t.prototype.updateNoEntriesTextDefaultLoc=function(){var e=this.getLocalizableString("noEntriesText");e&&(e.localizationName=this.isReadOnly||!this.allowAddPanel?"noEntriesReadonlyText":"noEntriesText",e.strChanged())},t.prototype.onSurveyLoad=function(){if(this.template.readOnly=this.isReadOnly,this.template.onSurveyLoad(),this.getPropertyValue("panelCount")>0&&(this.panelCount=this.getPropertyValue("panelCount")),this.useTemplatePanel&&this.rebuildPanels(),this.setPanelsSurveyImpl(),this.setPanelsState(),this.assignOnPropertyChangedToTemplate(),this.survey)for(var t=0;t<this.panelCount;t++)this.survey.dynamicPanelAdded(this);this.recalculateIsReadyValue(),!this.isReadOnly&&this.allowAddPanel||this.updateNoEntriesTextDefaultLoc(),e.prototype.onSurveyLoad.call(this)},t.prototype.onFirstRendering=function(){this.template.onFirstRendering();for(var t=0;t<this.panels.length;t++)this.panels[t].onFirstRendering();e.prototype.onFirstRendering.call(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.panels.length;t++)this.panels[t].localeChanged()},t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.runPanelsCondition(t,r)},t.prototype.reRunCondition=function(){this.data&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runPanelsCondition=function(e,t){var r={};e&&e instanceof Object&&(r=JSON.parse(JSON.stringify(e))),this.parentQuestion&&this.parent&&(r[w.ParentItemVariableName]=this.parent.getValue());for(var n=0;n<this.panels.length;n++){var i=this.getPanelItemData(this.panels[n].data),s=o.Helpers.createCopy(r);s[w.ItemVariableName.toLowerCase()]=i,s[w.IndexVariableName.toLowerCase()]=n,this.panels[n].runCondition(s,t)}},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t);for(var r=0;r<this.panels.length;r++)this.panels[r].onAnyValueChanged(t),this.panels[r].onAnyValueChanged(w.ItemVariableName)},t.prototype.hasKeysDuplicated=function(e,t){void 0===t&&(t=null);for(var r,n=[],o=0;o<this.panels.length;o++)r=this.isValueDuplicated(this.panels[o],n,t,e)||r;return r},t.prototype.updatePanelsContainsErrors=function(){for(var e=this.changingValueQuestion.parent;e;)e.updateContainsErrors(),e=e.parent;this.updateContainsErrors()},t.prototype.hasErrors=function(t,r){if(void 0===t&&(t=!0),void 0===r&&(r=null),this.isValueChangingInternally)return!1;var n=!1;if(this.changingValueQuestion)return n=this.changingValueQuestion.hasErrors(t,r),n=this.hasKeysDuplicated(t,r)||n,this.updatePanelsContainsErrors(),n;var o=this.hasErrorInPanels(t,r);return e.prototype.hasErrors.call(this,t)||o},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var r=this.panels,n=0;n<r.length;n++)if(r[n].containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=this.visiblePanels,r=0;r<t.length;r++){var n=[];t[r].addQuestionsToList(n,!0);for(var o=0;o<n.length;o++)if(!n[o].isAnswered)return!1}return!0},t.prototype.clearValueIfInvisibleCore=function(){for(var t=0;t<this.panels.length;t++){var r=this.panels[t].questions;this.isSetPanelItemData={};for(var n=0;n<r.length;n++){var o=r[n];o.clearValueIfInvisible(),this.isSetPanelItemData[o.getValueName()]=this.maxCheckCount+1}}this.isSetPanelItemData={},e.prototype.clearValueIfInvisibleCore.call(this)},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.panels.length;t++)for(var r=this.panels[t].questions,n=0;n<r.length;n++)if(r[n].isRunningValidators)return!0;return!1},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),r=this.visiblePanels,n=0;n<r.length;n++)for(var o=r[n].questions,i=0;i<o.length;i++){var s=o[i].getAllErrors();s&&s.length>0&&(t=t.concat(s))}return t},t.prototype.getDisplayValueCore=function(e,t){var r=this.getUnbindValue(t);if(!r||!Array.isArray(r))return r;for(var n=0;n<this.panels.length&&n<r.length;n++){var o=r[n];o&&(r[n]=this.getPanelDisplayValue(n,o,e))}return r},t.prototype.getPanelDisplayValue=function(e,t,r){if(!t)return t;for(var n=this.panels[e],o=Object.keys(t),i=0;i<o.length;i++){var s=o[i],a=n.getQuestionByValueName(s);if(a||(a=this.getSharedQuestionFromArray(s,e)),a){var l=a.getDisplayValue(r,t[s]);t[s]=l,r&&a.title&&a.title!==s&&(t[a.title]=l,delete t[s])}}return t},t.prototype.hasErrorInPanels=function(e,t){for(var r=!1,n=this.visiblePanels,o=[],i=0;i<n.length;i++)this.setOnCompleteAsyncInPanel(n[i]);for(i=0;i<n.length;i++){var s=n[i].hasErrors(e,!!t&&t.focuseOnFirstError,t);s=this.isValueDuplicated(n[i],o,t,e)||s,this.isRenderModeList||!s||r||(this.currentIndex=i),r=s||r}return r},t.prototype.setOnCompleteAsyncInPanel=function(e){for(var t=this,r=e.questions,n=0;n<r.length;n++)r[n].onCompletedAsyncValidators=function(e){t.raiseOnCompletedAsyncValidators()}},t.prototype.isValueDuplicated=function(e,t,r,n){if(!this.keyName)return!1;var o=e.getQuestionByValueName(this.keyName);if(!o||o.isEmpty())return!1;var i=o.value;this.changingValueQuestion&&o!=this.changingValueQuestion&&o.hasErrors(n,r);for(var s=0;s<t.length;s++)if(i==t[s])return n&&o.addError(new p.KeyDuplicationError(this.keyDuplicationError,this)),r&&!r.firstErrorQuestion&&(r.firstErrorQuestion=o),!0;return t.push(i),!1},t.prototype.getPanelActions=function(e){var t=this,r=e.footerActions;return"right"!==this.panelRemoveButtonLocation&&r.push(new m.Action({id:"remove-panel-"+e.id,component:"sv-paneldynamic-remove-btn",visible:new g.ComputedUpdater((function(){return[t.canRemovePanel,"collapsed"!==e.state,"right"!==t.panelRemoveButtonLocation].every((function(e){return!0===e}))})),data:{question:this,panel:e}})),this.survey&&(r=this.survey.getUpdatedPanelFooterActions(e,r,this)),r},t.prototype.createNewPanel=function(){var e=this,t=this.createAndSetupNewPanelObject(),r=this.template.toJSON();(new u.JsonObject).toObject(r,t),t.renderWidth="100%",t.updateCustomWidgets(),new w(this,t),t.onFirstRendering();for(var n=t.questions,o=0;o<n.length;o++)n[o].setParentQuestion(this);return t.locStrsChanged(),t.onGetFooterActionsCallback=function(){return e.getPanelActions(t)},t.footerToolbarCss=this.cssClasses.panelFooter,t.registerPropertyChangedHandlers(["visible"],(function(){t.visible?e.onPanelAdded(t):e.onPanelRemoved(t),e.updateFooterActions()})),t},t.prototype.createAndSetupNewPanelObject=function(){var e=this.createNewPanelObject();e.isInteractiveDesignElement=!1,e.setParentQuestion(this);var t=this;return e.onGetQuestionTitleLocation=function(){return t.getTemplateQuestionTitleLocation()},e},t.prototype.getTemplateQuestionTitleLocation=function(){return"default"!=this.templateTitleLocation?this.templateTitleLocation:this.getTitleLocationCore()},t.prototype.createNewPanelObject=function(){return u.Serializer.createClass("panel")},t.prototype.setPanelCountBasedOnValue=function(){if(!this.isValueChangingInternally&&!this.useTemplatePanel){var e=this.value,t=e&&Array.isArray(e)?e.length:0;0==t&&this.getPropertyValue("panelCount")>0&&(t=this.getPropertyValue("panelCount")),this.settingPanelCountBasedOnValue=!0,this.panelCount=t,this.settingPanelCountBasedOnValue=!1}},t.prototype.setQuestionValue=function(t){if(!this.settingPanelCountBasedOnValue){e.prototype.setQuestionValue.call(this,t,!1),this.setPanelCountBasedOnValue();for(var r=0;r<this.panels.length;r++)this.panelUpdateValueFromSurvey(this.panels[r]);this.updateIsAnswered()}},t.prototype.onSurveyValueChanged=function(t){if(void 0!==t||!this.isAllPanelsEmpty()){e.prototype.onSurveyValueChanged.call(this,t);for(var r=0;r<this.panels.length;r++)this.panelSurveyValueChanged(this.panels[r]);void 0===t&&this.setValueBasedOnPanelCount(),this.recalculateIsReadyValue()}},t.prototype.isAllPanelsEmpty=function(){for(var e=0;e<this.panels.length;e++)if(!o.Helpers.isValueEmpty(this.panels[e].getValue()))return!1;return!0},t.prototype.panelUpdateValueFromSurvey=function(e){for(var t=e.questions,r=this.getPanelItemData(e.data),n=0;n<t.length;n++){var o=t[n];o.updateValueFromSurvey(r[o.getValueName()]),o.updateCommentFromSurvey(r[o.getValueName()+d.settings.commentSuffix])}},t.prototype.panelSurveyValueChanged=function(e){for(var t=e.questions,r=this.getPanelItemData(e.data),n=0;n<t.length;n++){var o=t[n];o.onSurveyValueChanged(r[o.getValueName()])}},t.prototype.recalculateIsReadyValue=function(){var e=this,t=this.isReadyValue,r=!0;this.panels.forEach((function(t){t.questions.forEach((function(t){t.isReady?t.onReadyChanged.remove(e.onReadyChangedCallback):(r=!1,t.onReadyChanged.add(e.onReadyChangedCallback))}))})),this.isReadyValue=r,t!=this.isReadyValue&&this.onReadyChanged.fire(this,{question:this,oldIsReady:t,isReady:this.isReadyValue})},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.useTemplatePanel&&(this.setTemplatePanelSurveyImpl(),this.rebuildPanels())},t.prototype.getItemIndex=function(e){var t=this.items.indexOf(e);return t>-1?t:this.items.length},t.prototype.getVisibleItemIndex=function(e){for(var t=this.visiblePanels,r=0;r<t.length;r++)if(t[r].data===e)return r;return t.length},t.prototype.getPanelItemData=function(e){var t=this.items,r=t.indexOf(e),n=this.value;return r<0&&Array.isArray(n)&&n.length>t.length&&(r=t.length),r<0||!n||!Array.isArray(n)||n.length<=r?{}:n[r]},t.prototype.setPanelItemData=function(e,t,r){if(!(this.isSetPanelItemData[t]>this.maxCheckCount)){this.isSetPanelItemData[t]||(this.isSetPanelItemData[t]=0),this.isSetPanelItemData[t]++;var n=this.items,o=n.indexOf(e);o<0&&(o=n.length);var i=this.getUnbindValue(this.value);if(i&&Array.isArray(i)||(i=[]),i.length<=o)for(var s=i.length;s<=o;s++)i.push({});if(i[o]||(i[o]={}),this.isValueEmpty(r)?delete i[o][t]:i[o][t]=r,o>=0&&o<this.panels.length&&(this.changingValueQuestion=this.panels[o].getQuestionByValueName(t)),this.value=i,this.changingValueQuestion=null,this.survey){var a={question:this,panel:e.panel,name:t,itemIndex:o,itemValue:i[o],value:r};this.survey.dynamicPanelItemValueChanged(this,a)}this.isSetPanelItemData[t]--,this.isSetPanelItemData[t]-1&&delete this.isSetPanelItemData[t]}},t.prototype.getRootData=function(){return this.data},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);return r&&(r.isNode=!0,r.data=this.panels.map((function(e,r){var n={name:e.name||r,title:e.title||"Panel",value:e.getValue(),displayValue:e.getValue(),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.questions.map((function(e){return e.getPlainData(t)})).filter((function(e){return!!e}))};return(t.calculations||[]).forEach((function(t){n[t.propertyName]=e[t.propertyName]})),n}))),r},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t);for(var r=0;r<this.panels.length;r++)this.panels[r].updateElementCss(t)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.visiblePanelCount;return this.getLocalizationFormatString("panelDynamicProgressText",this.currentIndex+1,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return(this.currentIndex+1)/this.visiblePanelCount*100+"%"},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){return(new f.CssClassBuilder).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.empty,this.getShowNoEntriesPlaceholder()).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){var e=this.isRenderModeTab&&!!this.panelCount;return(new f.CssClassBuilder).append(this.cssClasses.header).append(this.cssClasses.headerTop,this.hasTitleOnTop||e).append(this.cssClasses.headerTab,e).toString()},enumerable:!1,configurable:!0}),t.prototype.getPanelWrapperCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.panelWrapper).append(this.cssClasses.panelWrapperInRow,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getPanelRemoveButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonRemove).append(this.cssClasses.buttonRemoveRight,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getAddButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.buttonAdd+"--list-mode","list"===this.renderMode).toString()},t.prototype.getPrevButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.buttonPrev).append(this.cssClasses.buttonPrevDisabled,!this.isPrevButtonVisible).toString()},t.prototype.getNextButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.buttonNext).append(this.cssClasses.buttonNextDisabled,!this.isNextButtonVisible).toString()},Object.defineProperty(t.prototype,"noEntriesText",{get:function(){return this.getLocalizableStringText("noEntriesText")},set:function(e){this.setLocalizableStringText("noEntriesText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoEntriesText",{get:function(){return this.getLocalizableString("noEntriesText")},enumerable:!1,configurable:!0}),t.prototype.getShowNoEntriesPlaceholder=function(){return!!this.cssClasses.noEntriesPlaceholder&&!this.isDesignMode&&0===this.visiblePanelCount},t.prototype.needResponsiveWidth=function(){var e=this.getPanel();return!(!e||!e.needResponsiveWidth())},t.prototype.getAdditionalTitleToolbar=function(){return this.isRenderModeTab?(this.additionalTitleToolbarValue||(this.additionalTitleToolbarValue=new b.AdaptiveActionContainer,this.additionalTitleToolbarValue.containerCss=this.getAdditionalTitleToolbarCss(),this.additionalTitleToolbarValue.cssClasses={item:"sv-tab-item",itemPressed:"sv-tab-item--pressed",itemAsIcon:"sv-tab-item--icon",itemIcon:"sv-tab-item__icon",itemTitle:"sv-tab-item__title"}),this.additionalTitleToolbarValue):null},Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.initFooterToolbar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.updateFooterActions=function(){this.updateFooterActionsCallback&&this.updateFooterActionsCallback()},t.prototype.initFooterToolbar=function(){var e=this;this.footerToolbarValue=this.createActionContainer();var t=[],r=new m.Action({id:"sv-pd-prev-btn",title:this.panelPrevText,action:function(){e.goToPrevPanel()}}),n=new m.Action({id:"sv-pd-next-btn",title:this.panelNextText,action:function(){e.goToNextPanel()}}),o=new m.Action({id:"sv-pd-add-btn",component:"sv-paneldynamic-add-btn",data:{question:this}}),i=new m.Action({id:"sv-prev-btn-icon",component:"sv-paneldynamic-prev-btn",data:{question:this}}),s=new m.Action({id:"sv-pd-progress-text",component:"sv-paneldynamic-progress-text",data:{question:this}}),a=new m.Action({id:"sv-pd-next-btn-icon",component:"sv-paneldynamic-next-btn",data:{question:this}});t.push(r,n,o,i,s,a),this.updateFooterActionsCallback=function(){var t=e.legacyNavigation,l=e.isRenderModeList,u=e.isMobile,c=!t&&!l;r.visible=c&&e.currentIndex>0,n.visible=c&&e.currentIndex<e.visiblePanelCount-1,n.needSpace=u&&n.visible&&r.visible,o.visible=e.canAddPanel,o.needSpace=e.isMobile&&!n.visible&&r.visible,s.visible=!e.isRenderModeList&&!u,s.needSpace=!t&&!e.isMobile;var p=t&&!l;i.visible=p,a.visible=p,i.needSpace=p},this.updateFooterActionsCallback(),this.footerToolbarValue.setItems(t)},t.prototype.createTabByPanel=function(e){var t=this;if(this.isRenderModeTab){var r=new s.LocalizableString(e,!0);r.sharedData=this.locTemplateTabTitle;var n=new m.Action({id:e.id,css:"sv-tab-item__root",pressed:this.getPanelIndexById(e.id)===this.currentIndex,locTitle:r,action:function(){t.currentIndex=t.getPanelIndexById(n.id),t.updateTabToolbarItemsPressedState()}});return n}},t.prototype.getAdditionalTitleToolbarCss=function(){return(new f.CssClassBuilder).append("sv-tabs-toolbar").append("sv-tabs-toolbar--left","left"===this.tabAlign).append("sv-tabs-toolbar--right","right"===this.tabAlign).append("sv-tabs-toolbar--center","center"===this.tabAlign).toString()},t.prototype.updateTabToolbarItemsPressedState=function(){if(this.isRenderModeTab&&!(this.currentIndex<0||this.currentIndex>=this.visiblePanelCount)){var e=this.visiblePanels[this.currentIndex];this.additionalTitleToolbar.renderedActions.forEach((function(t){return t.pressed=t.id===e.id}))}},t.prototype.updateTabToolbar=function(){var e=this;if(this.isRenderModeTab){var t=[];this.visiblePanels.forEach((function(r){return t.push(e.createTabByPanel(r))})),this.additionalTitleToolbar.setItems(t)}},t.prototype.addTabFromToolbar=function(e,t){if(this.isRenderModeTab){var r=this.createTabByPanel(e);this.additionalTitleToolbar.actions.splice(t,0,r),this.updateTabToolbarItemsPressedState()}},t.prototype.removeTabFromToolbar=function(e){if(this.isRenderModeTab){var t=this.additionalTitleToolbar.getActionById(e.id);t&&(this.additionalTitleToolbar.actions.splice(this.additionalTitleToolbar.actions.indexOf(t),1),this.updateTabToolbarItemsPressedState())}},Object.defineProperty(t.prototype,"showLegacyNavigation",{get:function(){return!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigation",{get:function(){return this.visiblePanelCount>0&&!this.showLegacyNavigation&&!!this.cssClasses.footer},enumerable:!1,configurable:!0}),t.prototype.showSeparator=function(e){return this.isRenderModeList&&e<this.visiblePanelCount-1},t.maxCheckCount=3,function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);i>3&&s&&Object.defineProperty(t,r,s)}([Object(u.property)({defaultValue:!1,onSet:function(e,t){t.updateFooterActions()}})],t.prototype,"legacyNavigation",void 0),t}(l.Question);u.Serializer.addClass("paneldynamic",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"templateElements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"templateTitle:text",serializationProperty:"locTemplateTitle"},{name:"templateTabTitle",serializationProperty:"locTemplateTabTitle",visibleIf:function(e){return"tab"===e.renderMode}},{name:"templateDescription:text",serializationProperty:"locTemplateDescription"},{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"noEntriesText:text",serializationProperty:"locNoEntriesText"},{name:"allowAddPanel:boolean",default:!0},{name:"allowRemovePanel:boolean",default:!0},{name:"panelCount:number",isBindable:!0,default:0,choices:[0,1,2,3,4,5,6,7,8,9,10]},{name:"minPanelCount:number",default:0,minValue:0},{name:"maxPanelCount:number",default:d.settings.panelMaximumPanelCount},"defaultPanelValue:panelvalue","defaultValueFromLastPanel:boolean",{name:"panelsState",default:"default",choices:["default","collapsed","expanded","firstExpanded"]},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"confirmDelete:boolean"},{name:"confirmDeleteText",serializationProperty:"locConfirmDeleteText"},{name:"panelAddText",serializationProperty:"locPanelAddText"},{name:"panelRemoveText",serializationProperty:"locPanelRemoveText"},{name:"panelPrevText",serializationProperty:"locPanelPrevText"},{name:"panelNextText",serializationProperty:"locPanelNextText"},{name:"showQuestionNumbers",default:"off",choices:["off","onPanel","onSurvey"]},{name:"showRangeInProgress:boolean",default:!0},{name:"renderMode",default:"list",choices:["list","progressTop","progressBottom","progressTopBottom","tab"]},{name:"tabAlign",default:"center",choices:["center","left","right"],visibleIf:function(e){return"tab"===e.renderMode}},{name:"templateTitleLocation",default:"default",choices:["default","top","bottom","left"]},{name:"templateVisibleIf:expression",category:"logic"},{name:"panelRemoveButtonLocation",default:"bottom",choices:["bottom","right"]}],(function(){return new C("")}),"question"),c.QuestionFactory.Instance.registerQuestion("paneldynamic",(function(e){return new C(e)}))},"./src/question_radiogroup.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionRadiogroupModel",(function(){return c}));var n,o=r("./src/jsonobject.ts"),i=r("./src/questionfactory.ts"),s=r("./src/question_baseselect.ts"),a=r("./src/actions/action.ts"),l=r("./src/base.ts"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getDefaultItemComponent=function(){return"survey-radiogroup-item"},t.prototype.getType=function(){return"radiogroup"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"radiogroup"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaLabel",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.getSingleSelectedItem()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.getPropertyValue("showClearButton")},set:function(e){this.setPropertyValue("showClearButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){return this.showClearButton&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0},Object.defineProperty(t.prototype,"showClearButtonInContent",{get:function(){return!this.isDefaultV2Theme&&this.canShowClearButton},enumerable:!1,configurable:!0}),t.prototype.clickItemHandler=function(e){this.renderedValue=e.value},t.prototype.getDefaultTitleActions=function(){var e=this,t=[];if(this.isDefaultV2Theme&&!this.isDesignMode){var r=new a.Action({title:this.clearButtonCaption,id:"sv-clr-btn-"+this.id,action:function(){e.clearValue()},innerCss:this.cssClasses.clearButton,visible:new l.ComputedUpdater((function(){return e.canShowClearButton}))});t.push(r)}return t},t}(s.QuestionCheckboxBase);o.Serializer.addClass("radiogroup",[{name:"showClearButton:boolean",default:!1},{name:"separateSpecialChoices",visible:!0},{name:"itemComponent",visible:!1,default:"survey-radiogroup-item"}],(function(){return new c("")}),"checkboxbase"),i.QuestionFactory.Instance.registerQuestion("radiogroup",(function(e){var t=new c(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_ranking.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionRankingModel",(function(){return m}));var n,o=r("./src/dragdrop/ranking-choices.ts"),i=r("./src/itemvalue.ts"),s=r("./src/jsonobject.ts"),a=r("./src/questionfactory.ts"),l=r("./src/question_checkbox.ts"),u=r("./src/utils/cssClassBuilder.ts"),c=r("./src/utils/devices.ts"),p=r("./src/helpers.ts"),d=r("./src/settings.ts"),h=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},m=function(e){function t(t){var r=e.call(this,t)||this;return r.domNode=null,r.onVisibleChoicesChanged=function(){if(e.prototype.onVisibleChoicesChanged.call(r),1===r.visibleChoices.length)return r.value=[],void r.updateRankingChoices();r.isEmpty()||(r.visibleChoices.length>r.value.length&&r.addToValueByVisibleChoices(),r.visibleChoices.length<r.value.length&&r.removeFromValueByVisibleChoices()),r.updateRankingChoices()},r.localeChanged=function(){e.prototype.localeChanged.call(r),r.updateRankingChoices()},r.handlePointerDown=function(e,t,n){var o=e.target;r.isDragStartNodeValid(o)&&r.allowStartDrag&&r.dragDropRankingChoices.startDrag(e,t,r,n)},r.handleKeydown=function(e,t){if(!r.isDesignMode){var n=e.key,o=r.rankingChoices.indexOf(t);"ArrowUp"===n&&o&&(r.handleArrowUp(o,t),e.preventDefault()),"ArrowDown"===n&&o!==r.rankingChoices.length-1&&(r.handleArrowDown(o,t),e.preventDefault())}},r.handleArrowUp=function(e,t){var n=r.rankingChoices;n.splice(e,1),n.splice(e-1,0,t),r.setValue(),setTimeout((function(){r.focusItem(e-1)}),1)},r.handleArrowDown=function(e,t){var n=r.rankingChoices;n.splice(e,1),n.splice(e+1,0,t),r.setValue(),setTimeout((function(){r.focusItem(e+1)}),1)},r.focusItem=function(e){r.domNode.querySelectorAll("."+r.cssClasses.item)[e].focus()},r.setValue=function(){var e=[];r.rankingChoices.forEach((function(t){e.push(t.value)})),r.value=e},r.createNewArray("rankingChoices"),r}return h(t,e),t.prototype.getDefaultItemComponent=function(){return""},t.prototype.getType=function(){return"ranking"},t.prototype.getItemTabIndex=function(e){return this.isDesignMode?void 0:0},Object.defineProperty(t.prototype,"rootClass",{get:function(){return(new u.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.rootMobileMod,c.IsMobile).append(this.cssClasses.rootDisabled,this.isReadOnly).append(this.cssClasses.rootDesignMode,!!this.isDesignMode).append(this.cssClasses.itemOnError,this.errors.length>0).append(this.cssClasses.rootDragHandleAreaIcon,"icon"===d.settings.rankingDragHandleArea).toString()},enumerable:!1,configurable:!0}),t.prototype.getItemClassCore=function(t,r){var n=this.rankingChoices.indexOf(t),o=this.rankingChoices.indexOf(this.currentDropTarget);return(new u.CssClassBuilder).append(e.prototype.getItemClassCore.call(this,t,r)).append(this.cssClasses.itemGhostMod,this.currentDropTarget===t).append("sv-dragdrop-movedown",n===o+1&&"down"===this.dropTargetNodeMove).append("sv-dragdrop-moveup",n===o-1&&"up"===this.dropTargetNodeMove).toString()},t.prototype.isItemCurrentDropTarget=function(e){return this.dragDropRankingChoices.dropTarget===e},Object.defineProperty(t.prototype,"ghostPositionCssClass",{get:function(){return"top"===this.ghostPosition?this.cssClasses.dragDropGhostPositionTop:"bottom"===this.ghostPosition?this.cssClasses.dragDropGhostPositionBottom:""},enumerable:!1,configurable:!0}),t.prototype.getItemIndexClasses=function(){return(new u.CssClassBuilder).append(this.cssClasses.itemIndex).append(this.cssClasses.itemIndexEmptyMode,this.isEmpty()).toString()},t.prototype.getNumberByIndex=function(e){return this.isEmpty()?"":e+1+""},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r),this.updateRankingChoices()},t.prototype.isAnswerCorrect=function(){return p.Helpers.isArraysEqual(this.value,this.correctAnswer,!1)},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.isLoadingFromJson||this.updateRankingChoices()},t.prototype.addToValueByVisibleChoices=function(){var e=this.value.slice();this.visibleChoices.forEach((function(t){-1===e.indexOf(t.value)&&e.push(t.value)})),this.value=e},t.prototype.removeFromValueByVisibleChoices=function(){for(var e=this.value.slice(),t=this.visibleChoices,r=this.value.length-1;r>=0;r--)i.ItemValue.getItemByValue(t,this.value[r])||e.splice(r,1);this.value=e},Object.defineProperty(t.prototype,"rankingChoices",{get:function(){return this.getPropertyValue("rankingChoices",[])},enumerable:!1,configurable:!0}),t.prototype.updateRankingChoices=function(e){var t=this;void 0===e&&(e=!1);var r=[];1!==this.visibleChoices.length?(e&&this.setPropertyValue("rankingChoices",[]),this.isEmpty()?this.setPropertyValue("rankingChoices",this.visibleChoices):(this.value.forEach((function(e){t.visibleChoices.forEach((function(t){t.value===e&&r.push(t)}))})),this.setPropertyValue("rankingChoices",r))):this.setPropertyValue("rankingChoices",r)},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.dragDropRankingChoices=new o.DragDropRankingChoices(this.survey,null,this.longTap)},t.prototype.isDragStartNodeValid=function(e){return"icon"!==d.settings.rankingDragHandleArea||e.classList.contains(this.cssClasses.itemIconHoverMod)},Object.defineProperty(t.prototype,"allowStartDrag",{get:function(){return!this.isReadOnly&&!this.isDesignMode},enumerable:!1,configurable:!0}),t.prototype.afterRenderQuestionElement=function(t){this.domNode=t,e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t)},t.prototype.supportSelectAll=function(){return!1},t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.getIconHoverCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconHoverMod).toString()},t.prototype.getIconFocusCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconFocusMod).toString()},Object.defineProperty(t.prototype,"longTap",{get:function(){return this.getPropertyValue("longTap")},set:function(e){this.setPropertyValue("longTap",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useFullItemSizeForShortcut",{get:function(){return this.getPropertyValue("useFullItemSizeForShortcut")},set:function(e){this.setPropertyValue("useFullItemSizeForShortcut",e)},enumerable:!1,configurable:!0}),f([Object(s.property)({defaultValue:null})],t.prototype,"currentDropTarget",void 0),f([Object(s.property)({defaultValue:null})],t.prototype,"dropTargetNodeMove",void 0),t}(l.QuestionCheckboxModel);s.Serializer.addClass("ranking",[{name:"showOtherItem",visible:!1,isSerializable:!1},{name:"otherText",visible:!1,isSerializable:!1},{name:"otherErrorText",visible:!1,isSerializable:!1},{name:"storeOthersAsComment",visible:!1,isSerializable:!1},{name:"showNoneItem",visible:!1,isSerializable:!1},{name:"noneText",visible:!1,isSerializable:!1},{name:"showSelectAllItem",visible:!1,isSerializable:!1},{name:"selectAllText",visible:!1,isSerializable:!1},{name:"colCount:number",visible:!1,isSerializable:!1},{name:"maxSelectedChoices",visible:!1,isSerializable:!1},{name:"separateSpecialChoices",visible:!1,isSerializable:!1},{name:"longTap",default:!0,visible:!1,isSerializable:!1},{name:"itemComponent",visible:!1,default:""}],(function(){return new m("")}),"checkbox"),a.QuestionFactory.Instance.registerQuestion("ranking",(function(e){var t=new m(e);return t.choices=a.QuestionFactory.DefaultChoices,t}))},"./src/question_rating.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"RenderedRatingItem",(function(){return m})),r.d(t,"QuestionRatingModel",(function(){return g}));var n,o=r("./src/itemvalue.ts"),i=r("./src/question.ts"),s=r("./src/jsonobject.ts"),a=r("./src/questionfactory.ts"),l=r("./src/settings.ts"),u=r("./src/surveyStrings.ts"),c=r("./src/utils/cssClassBuilder.ts"),p=r("./src/base.ts"),d=r("./src/utils/utils.ts"),h=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},m=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this)||this;return n.itemValue=t,n.locString=r,n.locText.onStringChanged.add(n.onStringChangedCallback.bind(n)),n.onStringChangedCallback(),n}return h(t,e),t.prototype.onStringChangedCallback=function(){this.text=this.itemValue.text},Object.defineProperty(t.prototype,"value",{get:function(){return this.itemValue.getPropertyValue("value")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.locString||this.itemValue.locText},enumerable:!1,configurable:!0}),f([Object(s.property)({defaultValue:""})],t.prototype,"highlight",void 0),f([Object(s.property)({defaultValue:""})],t.prototype,"text",void 0),f([Object(s.property)()],t.prototype,"style",void 0),t}(p.Base),g=function(e){function t(t){var r=e.call(this,t)||this;return r._syncPropertiesChanging=!1,r.initColors(),r.createItemValues("rateValues"),r.createRenderedRateItems(),r.createLocalizableString("ratingOptionsCaption",r,!1,!0),r.registerFunctionOnPropertiesValueChanged(["rateMin","rateMax","minRateDescription","maxRateDescription","rateStep","displayRateDescriptionsAsExtremeItems"],(function(){return r.createRenderedRateItems()})),r.registerFunctionOnPropertiesValueChanged(["rateType"],(function(){r.setIconsToRateValues(),r.createRenderedRateItems(),r.updateRateCount()})),r.registerFunctionOnPropertiesValueChanged(["rateValues"],(function(){r.autoGenerate=!1,r.setIconsToRateValues(),r.createRenderedRateItems()})),r.registerFunctionOnPropertiesValueChanged(["rateColorMode","scaleColorMode"],(function(){r.initColors()})),r.registerFunctionOnPropertiesValueChanged(["autoGenerate"],(function(){r.autoGenerate||0!==r.rateValues.length||r.setPropertyValue("rateValues",r.visibleRateValues),r.autoGenerate&&(r.rateValues.length=0,r.updateRateMax()),r.createRenderedRateItems()})),r.createLocalizableString("minRateDescription",r,!0),r.createLocalizableString("maxRateDescription",r,!0),r.initPropertyDependencies(),r}return h(t,e),t.prototype.setIconsToRateValues=function(){var e=this;"smileys"==this.rateType&&this.rateValues.map((function(t){return t.icon=e.getItemSmiley(t)}))},t.prototype.startLoadingFromJson=function(t){e.prototype.startLoadingFromJson.call(this,t),this.jsonObj=t},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.initColors(),this.hasMinRateDescription=!!this.minRateDescription,this.hasMaxRateDescription=!!this.maxRateDescription,void 0!==this.jsonObj.rateMin&&void 0!==this.jsonObj.rateCount&&void 0===this.jsonObj.rateMax&&this.updateRateMax(),void 0!==this.jsonObj.rateMax&&void 0!==this.jsonObj.rateCount&&void 0===this.jsonObj.rateMin&&this.updateRateMin(),void 0===this.jsonObj.autoGenerate&&void 0!==this.jsonObj.rateValues&&(this.autoGenerate=!this.jsonObj.rateValues.length),this.updateRateCount(),this.setIconsToRateValues(),this.createRenderedRateItems()},t.prototype.registerSychProperties=function(e,t){var r=this;this.registerFunctionOnPropertiesValueChanged(e,(function(){r._syncPropertiesChanging||(r._syncPropertiesChanging=!0,t(),r._syncPropertiesChanging=!1)}))},t.prototype.useRateValues=function(){return!!this.rateValues.length&&!this.autoGenerate},t.prototype.updateRateMax=function(){this.rateMax=this.rateMin+this.rateStep*(this.rateCount-1)},t.prototype.updateRateMin=function(){this.rateMin=this.rateMax-this.rateStep*(this.rateCount-1)},t.prototype.updateRateCount=function(){var e=0;(e=this.useRateValues()?this.rateValues.length:Math.trunc((this.rateMax-this.rateMin)/(this.rateStep||1))+1)>10&&"smileys"==this.rateDisplayMode&&(e=10),this.rateCount=e,this.rateValues.length>e&&(this.rateValues.length=e)},t.prototype.initPropertyDependencies=function(){var e=this;this.registerSychProperties(["rateCount"],(function(){if(e.useRateValues())if(e.rateCount<e.rateValues.length){if(e.rateCount>=10&&"smileys"==e.rateDisplayMode)return;e.rateValues.splice(e.rateCount,e.rateValues.length-e.rateCount)}else for(var t=e.rateValues.length;t<e.rateCount;t++)e.rateValues.push(new o.ItemValue(u.surveyLocalization.getString("choices_Item")+(t+1)));else e.rateMax=e.rateMin+e.rateStep*(e.rateCount-1)})),this.registerSychProperties(["rateMin","rateMax","rateStep","rateValues"],(function(){e.updateRateCount()}))},Object.defineProperty(t.prototype,"rateValues",{get:function(){return this.getPropertyValue("rateValues")},set:function(e){this.setPropertyValue("rateValues",e),this.createRenderedRateItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMin",{get:function(){return this.getPropertyValue("rateMin")},set:function(e){this.setPropertyValue("rateMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMax",{get:function(){return this.getPropertyValue("rateMax")},set:function(e){this.setPropertyValue("rateMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateStep",{get:function(){return this.getPropertyValue("rateStep")},set:function(e){this.setPropertyValue("rateStep",e)},enumerable:!1,configurable:!0}),t.prototype.initColors=function(){function e(e){var t=getComputedStyle(document.documentElement),r=t.getPropertyValue&&t.getPropertyValue(e);if(!r)return null;var n=document.createElement("canvas").getContext("2d");n.fillStyle=r;var o=n.fillStyle;if(o.startsWith("rgba"))return o.substring(5,o.length-1).split(",").map((function(e){return+e.trim()}));var i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(o);return i?[parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16),1]:null}"monochrome"!==this.colorMode&&document&&(t.badColor&&t.normalColor&&t.goodColor||(t.badColor=e("--sd-rating-bad-color"),t.normalColor=e("--sd-rating-normal-color"),t.goodColor=e("--sd-rating-good-color"),t.badColorLight=e("--sd-rating-bad-color-light"),t.normalColorLight=e("--sd-rating-normal-color-light"),t.goodColorLight=e("--sd-rating-good-color-light")))},t.prototype.getDisplayValueCore=function(e,t){return o.ItemValue.getTextOrHtmlByValue(this.visibleRateValues,t)||t},Object.defineProperty(t.prototype,"visibleRateValues",{get:function(){return this.renderedRateItems.map((function(e){return e.itemValue}))},enumerable:!1,configurable:!0}),t.prototype.itemValuePropertyChanged=function(t,r,n,o){this.useRateValues()||void 0===o||(this.autoGenerate=!1),e.prototype.itemValuePropertyChanged.call(this,t,r,n,o)},t.prototype.createRenderedRateItems=function(){var e=this,t=[];if(this.useRateValues())t=this.rateValues;else{for(var r=[],n=this.rateMin,i=this.rateStep;n<=this.rateMax&&r.length<l.settings.ratingMaximumRateValueCount;){var s=new o.ItemValue(n);s.locOwner=this,s.ownerPropertyName="rateValues",r.push(s),n=this.correctValue(n+i,i)}t=r}"smileys"==this.rateType&&t.length>10&&(t=t.slice(0,10)),this.renderedRateItems=t.map((function(r,n){var o=null;return e.displayRateDescriptionsAsExtremeItems&&(0==n&&(o=new m(r,e.minRateDescription&&e.locMinRateDescription||r.locText)),n==t.length-1&&(o=new m(r,e.maxRateDescription&&e.locMaxRateDescription||r.locText))),o||(o=new m(r)),o}))},t.prototype.correctValue=function(e,t){if(!e)return e;if(Math.round(e)==e)return e;for(var r=0;Math.round(t)!=t;)t*=10,r++;return parseFloat(e.toFixed(r))},t.prototype.getType=function(){return"rating"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},t.prototype.getInputId=function(e){return this.inputId+"_"+e},t.prototype.supportGoNextPageAutomatic=function(){return!0},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"minRateDescription",{get:function(){return this.getLocalizableStringText("minRateDescription")},set:function(e){this.setLocalizableStringText("minRateDescription",e),this.hasMinRateDescription=!!this.minRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinRateDescription",{get:function(){return this.getLocalizableString("minRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRateDescription",{get:function(){return this.getLocalizableStringText("maxRateDescription")},set:function(e){this.setLocalizableStringText("maxRateDescription",e),this.hasMaxRateDescription=!!this.maxRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxRateDescription",{get:function(){return this.getLocalizableString("maxRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMinLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMinRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMaxLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMaxRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateDisplayMode",{get:function(){return this.rateType},set:function(e){this.rateType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStar",{get:function(){return"stars"==this.rateType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSmiley",{get:function(){return"smileys"==this.rateType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemComponentName",{get:function(){return this.isStar?"sv-rating-item-star":this.isSmiley?"sv-rating-item-smiley":"sv-rating-item"},enumerable:!1,configurable:!0}),t.prototype.valueToData=function(e){if(this.useRateValues()){var t=o.ItemValue.getItemByValue(this.rateValues,e);return t?t.value:e}return isNaN(e)?e:parseFloat(e)},t.prototype.setValueFromClick=function(e){this.value===parseFloat(e)?this.clearValue():this.value=e;for(var t=0;t<this.renderedRateItems.length;t++)this.renderedRateItems[t].highlight="none"},t.prototype.onItemMouseIn=function(e){if(!this.isReadOnly&&e.itemValue.isEnabled&&!this.isDesignMode){var t=!0,r=null!=this.value;if("stars"===this.rateType)for(var n=0;n<this.renderedRateItems.length;n++)this.renderedRateItems[n].highlight=(t&&!r?"highlighted":!t&&r&&"unhighlighted")||"none",this.renderedRateItems[n]==e&&(t=!1),this.renderedRateItems[n].itemValue.value==this.value&&(r=!1);else e.highlight="highlighted"}},t.prototype.onItemMouseOut=function(e){this.renderedRateItems.forEach((function(e){return e.highlight="none"}))},Object.defineProperty(t.prototype,"itemSmallMode",{get:function(){return this.inMatrixMode&&"small"==l.settings.matrix.rateSize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ratingRootCss",{get:function(){var e=("buttons"==this.displayMode||this.survey&&this.survey.isDesignMode)&&this.cssClasses.rootWrappable?this.cssClasses.rootWrappable:this.cssClasses.root;return(new c.CssClassBuilder).append(e).append(this.cssClasses.itemSmall,this.itemSmallMode&&"labels"!=this.rateType).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIcon",{get:function(){return this.itemSmallMode?"icon-rating-star-small":"icon-rating-star"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIconAlt",{get:function(){return this.itemStarIcon+"-2"},enumerable:!1,configurable:!0}),t.prototype.getItemSmiley=function(e){var t=this.useRateValues()?this.rateValues.length:this.rateMax-this.rateMin+1,r=["very-good","not-good","normal","good","average","excellent","poor","perfect","very-poor","terrible"].slice(0,t),n=["terrible","very-poor","poor","not-good","average","normal","good","very-good","excellent","perfect"].filter((function(e){return-1!=r.indexOf(e)}));return this.useRateValues()?n[this.rateValues.indexOf(e)]:n[e.value-this.rateMin]},t.prototype.getItemSmileyIconName=function(e){return"icon-"+this.getItemSmiley(e)},t.prototype.getItemClassByText=function(e,t){return this.getItemClass(e)},t.prototype.getRenderedItemColor=function(e,r){var n=r?t.badColorLight:t.badColor,o=r?t.goodColorLight:t.goodColor,i=(this.rateCount-1)/2,s=r?t.normalColorLight:t.normalColor;if(e<i?o=s:(n=s,e-=i),!n||!o)return null;for(var a=[0,0,0,0],l=0;l<4;l++)a[l]=n[l]+(o[l]-n[l])*e/i,l<3&&(a[l]=Math.trunc(a[l]));return"rgba("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+")"},t.prototype.getItemStyle=function(e,t){if(void 0===t&&(t="none"),"monochrome"===this.scaleColorMode&&"default"==this.rateColorMode)return{borderColor:null,fill:null,backgroundColor:null};var r=this.visibleRateValues.indexOf(e),n=this.getRenderedItemColor(r,!1);if(this.value!=this.renderedRateItems[r].value){var o=this.getRenderedItemColor(r,!0);return"highlighted"==t&&"colored"===this.scaleColorMode?{borderColor:n,fill:n,backgroundColor:o}:"colored"===this.scaleColorMode&&0==this.errors.length?{borderColor:n,fill:n,backgroundColor:null}:{borderColor:null,fill:null,backgroundColor:null}}return{borderColor:n,fill:null,backgroundColor:n}},t.prototype.getItemClass=function(e,t){var r=this;void 0===t&&(t="none");var n=this.value==e.value;this.isStar&&(n=this.useRateValues()?this.rateValues.indexOf(this.rateValues.filter((function(e){return e.value==r.value}))[0])>=this.rateValues.indexOf(e):this.value>=e.value);var o=!(this.isReadOnly||!e.isEnabled||this.value==e.value||this.survey&&this.survey.isDesignMode),i=this.renderedRateItems.filter((function(t){return t.itemValue==e}))[0],s=this.isStar&&"highlighted"==(null==i?void 0:i.highlight),a=this.isStar&&"unhighlighted"==(null==i?void 0:i.highlight),l=this.cssClasses.item,u=this.cssClasses.selected,p=this.cssClasses.itemDisabled,d=this.cssClasses.itemHover,h=this.cssClasses.itemOnError,f=null,m=null,g=null,b=null,y=null;this.isStar&&(l=this.cssClasses.itemStar,u=this.cssClasses.itemStarSelected,p=this.cssClasses.itemStarDisabled,d=this.cssClasses.itemStarHover,h=this.cssClasses.itemStarOnError,f=this.cssClasses.itemStarHighlighted,m=this.cssClasses.itemStarUnhighlighted,y=this.cssClasses.itemStarSmall),this.isSmiley&&(l=this.cssClasses.itemSmiley,u=this.cssClasses.itemSmileySelected,p=this.cssClasses.itemSmileyDisabled,d=this.cssClasses.itemSmileyHover,h=this.cssClasses.itemSmileyOnError,f=this.cssClasses.itemSmileyHighlighted,g=this.cssClasses.itemSmileyScaleColored,b=this.cssClasses.itemSmileyRateColored,y=this.cssClasses.itemSmileySmall);var v=!this.isStar&&!this.isSmiley&&(!this.displayRateDescriptionsAsExtremeItems||this.useRateValues()&&e!=this.rateValues[0]&&e!=this.rateValues[this.rateValues.length-1]||!this.useRateValues()&&e.value!=this.rateMin&&e.value!=this.rateMax)&&e.locText.calculatedText.length<=2&&Number.isInteger(Number(e.locText.calculatedText));return(new c.CssClassBuilder).append(l).append(u,n).append(p,this.isReadOnly).append(d,o).append(f,s).append(g,"colored"==this.scaleColorMode).append(b,"scale"==this.rateColorMode&&n).append(m,a).append(h,this.errors.length>0).append(y,this.itemSmallMode).append(this.cssClasses.itemFixedSize,v).toString()},t.prototype.getControlClass=function(){return this.isEmpty(),(new c.CssClassBuilder).append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).toString()},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("ratingOptionsCaption")},set:function(e){this.setLocalizableStringText("ratingOptionsCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("ratingOptionsCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchEnabled",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){return e.value==this.value},Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.visibleRateValues},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.displayValue||this.placeholder},enumerable:!1,configurable:!0}),t.prototype.needResponsiveWidth=function(){this.getPropertyValue("rateValues");var e=this.getPropertyValue("rateStep"),t=this.getPropertyValue("rateMax"),r=this.getPropertyValue("rateMin");return"dropdown"!=this.displayMode&&!!(this.hasMinRateDescription||this.hasMaxRateDescription||e&&(t-r)/e>9)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getCompactRenderAs=function(){return"buttons"==this.displayMode?"default":"dropdown"},t.prototype.getDesktopRenderAs=function(){return"dropdown"==this.displayMode?"dropdown":"default"},Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){var e,t=null===(e=this.dropdownListModel)||void 0===e?void 0:e.popupModel;return t?t.isVisible?"true":"false":null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e,this.updateElementCss()},enumerable:!1,configurable:!0}),t.prototype.updateCssClasses=function(t,r){if(e.prototype.updateCssClasses.call(this,t,r),this.dropdownListModel){var n={};Object(d.mergeValues)(r.list,n),Object(d.mergeValues)(t.list,n),t.list=n}},t.prototype.calcCssClasses=function(t){var r=e.prototype.calcCssClasses.call(this,t);return this.dropdownListModel&&this.dropdownListModel.updateCssClasses(r.popup,r.list),r},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&this.dropdownListModelValue.dispose()},f([Object(s.property)({defaultValue:!0})],t.prototype,"autoGenerate",void 0),f([Object(s.property)({defaultValue:5})],t.prototype,"rateCount",void 0),f([Object(s.propertyArray)()],t.prototype,"renderedRateItems",void 0),f([Object(s.property)({defaultValue:!1})],t.prototype,"hasMinRateDescription",void 0),f([Object(s.property)({defaultValue:!1})],t.prototype,"hasMaxRateDescription",void 0),f([Object(s.property)({defaultValue:!1})],t.prototype,"displayRateDescriptionsAsExtremeItems",void 0),f([Object(s.property)({defaultValue:"auto",onSet:function(e,t){t.isDesignMode||(t.renderAs="dropdown"===e?"dropdown":"default")}})],t.prototype,"displayMode",void 0),f([Object(s.property)({defaultValue:"labels"})],t.prototype,"rateType",void 0),f([Object(s.property)({defaultValue:"monochrome"})],t.prototype,"scaleColorMode",void 0),f([Object(s.property)({defaultValue:"scale"})],t.prototype,"rateColorMode",void 0),t}(i.Question);s.Serializer.addClass("rating",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"rateType",alternativeName:"rateDisplayMode",default:"labels",category:"rateValues",choices:["labels","stars","smileys"],visibleIndex:0},{name:"scaleColorMode",category:"rateValues",default:"monochrome",choices:["monochrome","colored"],visibleIf:function(e){return"smileys"==e.rateDisplayMode},visibleIndex:1},{name:"rateColorMode",category:"rateValues",default:"scale",choices:["default","scale"],visibleIf:function(e){return"smileys"==e.rateDisplayMode&&"monochrome"==e.scaleColorMode},visibleIndex:2},{name:"autoGenerate",category:"rateValues",default:!0,choices:[!0,!1],visibleIndex:4},{name:"rateCount:number",default:5,category:"rateValues",visibleIndex:3,onSettingValue:function(e,t){return t<2?2:t>l.settings.ratingMaximumRateValueCount&&t>e.rateValues.length?l.settings.ratingMaximumRateValueCount:t>10&&"smileys"==e.rateDisplayMode?10:t}},{name:"rateValues:itemvalue[]",baseValue:function(){return u.surveyLocalization.getString("choices_Item")},category:"rateValues",visibleIf:function(e){return!e.autoGenerate},visibleIndex:5},{name:"rateMin:number",default:1,onSettingValue:function(e,t){return t>e.rateMax-e.rateStep?e.rateMax-e.rateStep:t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:6},{name:"rateMax:number",default:5,onSettingValue:function(e,t){return t<e.rateMin+e.rateStep?e.rateMin+e.rateStep:t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:7},{name:"rateStep:number",default:1,minValue:.1,onSettingValue:function(e,t){return t<=0&&(t=1),t>e.rateMax-e.rateMin&&(t=e.rateMax-e.rateMin),t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:8},{name:"minRateDescription",alternativeName:"mininumRateDescription",serializationProperty:"locMinRateDescription",visibleIndex:17},{name:"maxRateDescription",alternativeName:"maximumRateDescription",serializationProperty:"locMaxRateDescription",visibleIndex:18},{name:"displayRateDescriptionsAsExtremeItems:boolean",default:!1,visibleIndex:19,visibleIf:function(e){return"labels"==e.rateType}},{name:"displayMode",default:"auto",choices:["auto","buttons","dropdown"],visibleIndex:20}],(function(){return new g("")}),"question"),a.QuestionFactory.Instance.registerQuestion("rating",(function(e){return new g(e)}))},"./src/question_signaturepad.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionSignaturePadModel",(function(){return p}));var n,o=r("./src/jsonobject.ts"),i=r("./src/questionfactory.ts"),s=r("./src/question.ts"),a=r("./node_modules/signature_pad/dist/signature_pad.mjs"),l=r("./src/utils/cssClassBuilder.ts"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},p=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getCssRoot=function(t){return(new l.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(t.small,"300"===this.signatureWidth.toString()).toString()},t.prototype.updateValue=function(){if(this.signaturePad){var e=this.signaturePad.toDataURL(this.dataFormat);this.value=e}},t.prototype.getType=function(){return"signaturepad"},t.prototype.afterRenderQuestionElement=function(t){t&&this.initSignaturePad(t),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(e){e&&this.destroySignaturePad(e)},t.prototype.initSignaturePad=function(e){var t=this,r=e.getElementsByTagName("canvas")[0],n=new a.default(r,{backgroundColor:"#ffffff"});this.isInputReadOnly&&n.off(),this.readOnlyChangedCallback=function(){t.isInputReadOnly?n.off():n.on()},n.penColor=this.penColor,n.backgroundColor=this.backgroundColor,n.onBegin=function(){t.isDrawingValue=!0,r.focus()},n.onEnd=function(){t.isDrawingValue=!1,t.updateValue()};var o=function(){var e=t.value;r.width=t.signatureWidth||300,r.height=t.signatureHeight||200,function(e){var t=e.getContext("2d"),r=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),n=e.width,o=e.height;e.width=n*r,e.height=o*r,e.style.width=n+"px",e.style.height=o+"px",t.scale(r,r)}(r),e?n.fromDataURL(e):n.clear()};o(),this.readOnlyChangedCallback(),this.signaturePad=n;var i=function(e,t){"signatureWidth"!==t.name&&"signatureHeight"!==t.name&&"value"!==t.name||o()};this.onPropertyChanged.add(i),this.signaturePad.propertyChangedHandler=i},t.prototype.destroySignaturePad=function(e){this.signaturePad&&(this.onPropertyChanged.remove(this.signaturePad.propertyChangedHandler),this.signaturePad.off()),this.readOnlyChangedCallback=null,this.signaturePad=null},Object.defineProperty(t.prototype,"signatureWidth",{get:function(){return this.getPropertyValue("signatureWidth")},set:function(e){this.setPropertyValue("signatureWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"signatureHeight",{get:function(){return this.getPropertyValue("signatureHeight")},set:function(e){this.setPropertyValue("signatureHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.getPropertyValue("height")},set:function(e){this.setPropertyValue("height",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return this.getPropertyValue("allowClear")},set:function(e){this.setPropertyValue("allowClear",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){return!this.isInputReadOnly&&this.allowClear},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"penColor",{get:function(){return this.getPropertyValue("penColor")},set:function(e){this.setPropertyValue("penColor",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this.getPropertyValue("backgroundColor")},set:function(e){this.setPropertyValue("backgroundColor",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.needShowPlaceholder=function(){return!this.isDrawingValue&&this.isEmpty()},Object.defineProperty(t.prototype,"placeHolderText",{get:function(){return this.getLocalizationString("signaturePlaceHolder")},enumerable:!1,configurable:!0}),t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),300===this.signatureWidth&&this.width&&"number"==typeof this.width&&this.width&&(console.warn("Use signatureWidth property to set width for the signature pad"),this.signatureWidth=this.width,this.width=void 0),200===this.signatureHeight&&this.height&&(console.warn("Use signatureHeight property to set width for the signature pad"),this.signatureHeight=this.height,this.height=void 0)},c([Object(o.property)({defaultValue:!1})],t.prototype,"isDrawingValue",void 0),c([Object(o.property)({defaultValue:""})],t.prototype,"dataFormat",void 0),t}(s.Question);o.Serializer.addClass("signaturepad",[{name:"signatureWidth:number",category:"general",default:300},{name:"signatureHeight:number",category:"general",default:200},{name:"height:number",category:"general",visible:!1},{name:"allowClear:boolean",category:"general",default:!0},{name:"penColor:color",category:"general",default:"#1ab394"},{name:"backgroundColor:color",category:"general",default:"#ffffff"},{name:"dataFormat",category:"general",default:"",choices:[{value:"",text:"PNG"},{value:"image/jpeg",text:"JPEG"},{value:"image/svg+xml",text:"SVG"}]},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1}],(function(){return new p("")}),"question"),i.QuestionFactory.Instance.registerQuestion("signaturepad",(function(e){return new p(e)}))},"./src/question_tagbox.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionTagboxModel",(function(){return h}));var n,o=r("./src/jsonobject.ts"),i=r("./src/questionfactory.ts"),s=r("./src/utils/cssClassBuilder.ts"),a=r("./src/question_checkbox.ts"),l=r("./src/dropdownMultiSelectListModel.ts"),u=r("./src/settings.ts"),c=r("./src/itemvalue.ts"),p=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},h=function(e){function t(t){var r=e.call(this,t)||this;return r.itemDisplayNameMap={},r.onOpened=r.addEvent(),r.createLocalizableString("placeholder",r,!1,!0),r.createLocalizableString("clearCaption",r,!1,!0),r}return p(t,e),t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.displayValue||this.placeholder},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.dropdownListModel||(this.dropdownListModel=new l.DropdownMultiSelectListModel(this))},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"tagbox"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){var e;return null===(e=this.dropdownListModel)||void 0===e?void 0:e.popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){var e=this.popupModel;return e&&e.isVisible?"true":"false"},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return(new s.CssClassBuilder).append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).toString()},t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.hasUnknownValue=function(t,r,n,o){return!this.choicesLazyLoadEnabled&&e.prototype.hasUnknownValue.call(this,t,r,n,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var t,r=null===(t=this.otherValue)||void 0===t?void 0:t.trim();return!!r&&e.prototype.hasUnknownValue.call(this,r,!0,!1)},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.popupModel&&this.dropdownListModel.updateItems()},t.prototype.validateItemValues=function(e){var t=this;this.updateItemDisplayNameMap();var r=this.renderedValue;if(e.length&&e.length===r.length)return e;var n=this.selectedItemValues;if(!e.length&&n&&n.length)return this.defaultSelectedItemValues=[].concat(n),n;var o=e.map((function(e){return e.value}));return r.filter((function(e){return-1===o.indexOf(e)})).forEach((function(r){e.push(new c.ItemValue(r,t.itemDisplayNameMap[r]))})),e.sort((function(e,t){return r.indexOf(e.value)-r.indexOf(t.value)})),e},t.prototype.updateItemDisplayNameMap=function(){var e=this,t=function(t){e.itemDisplayNameMap[t.value]=t.text};(this.defaultSelectedItemValues||[]).forEach(t),(this.selectedItemValues||[]).forEach(t),this.visibleChoices.forEach(t)},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&this.dropdownListModelValue.dispose()},t.prototype.clearValue=function(){e.prototype.clearValue.call(this),this.dropdownListModel.clear()},d([Object(o.property)()],t.prototype,"allowClear",void 0),d([Object(o.property)({defaultValue:!0,onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),d([Object(o.property)({onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setHideSelectedItems(e)}})],t.prototype,"hideSelectedItems",void 0),d([Object(o.property)()],t.prototype,"choicesLazyLoadEnabled",void 0),d([Object(o.property)({defaultValue:25})],t.prototype,"choicesLazyLoadPageSize",void 0),d([Object(o.property)({getDefaultValue:function(){return u.settings.tagboxCloseOnSelect}})],t.prototype,"closeOnSelect",void 0),t}(a.QuestionCheckboxModel);o.Serializer.addClass("tagbox",[{name:"placeholder",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",default:!0},{name:"searchEnabled:boolean",default:!0},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"hideSelectedItems:boolean",default:!1},{name:"closeOnSelect:boolean"},{name:"itemComponent",visible:!1,default:""}],(function(){return new h("")}),"checkbox"),i.QuestionFactory.Instance.registerQuestion("tagbox",(function(e){var t=new h(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_text.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionTextModel",(function(){return h}));var n,o=r("./src/questionfactory.ts"),i=r("./src/jsonobject.ts"),s=r("./src/localizablestring.ts"),a=r("./src/helpers.ts"),l=r("./src/validator.ts"),u=r("./src/error.ts"),c=r("./src/settings.ts"),p=r("./src/question_textbase.ts"),d=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e){function t(t){var r=e.call(this,t)||this;return r._isWaitingForEnter=!1,r.onCompositionUpdate=function(e){r.isInputTextUpdate&&setTimeout((function(){r.updateValueOnEvent(e)}),1),r.updateRemainingCharacterCounter(e.target.value)},r.onKeyUp=function(e){r.isInputTextUpdate?r._isWaitingForEnter&&13!==e.keyCode||(r.updateValueOnEvent(e),r._isWaitingForEnter=!1):13===e.keyCode&&r.updateValueOnEvent(e),r.updateRemainingCharacterCounter(e.target.value)},r.onKeyDown=function(e){r.isInputTextUpdate&&(r._isWaitingForEnter=229===e.keyCode),13===e.keyCode&&r.survey.questionEditFinishCallback(r,e)},r.onChange=function(e){e.target===c.settings.environment.root.activeElement?r.isInputTextUpdate&&r.updateValueOnEvent(e):r.updateValueOnEvent(e),r.updateRemainingCharacterCounter(e.target.value)},r.onBlur=function(e){r.updateValueOnEvent(e),r.updateRemainingCharacterCounter(e.target.value)},r.onFocus=function(e){r.updateRemainingCharacterCounter(e.target.value)},r.createLocalizableString("minErrorText",r,!0,"minError"),r.createLocalizableString("maxErrorText",r,!0,"maxError"),r.locDataListValue=new s.LocalizableStrings(r),r.locDataListValue.onValueChanged=function(e,t){r.propertyValueChanged("dataList",e,t)},r.registerPropertyChangedHandlers(["min","max","inputType","minValueExpression","maxValueExpression"],(function(){r.setRenderedMinMax()})),r.registerPropertyChangedHandlers(["inputType","size"],(function(){r.updateInputSize(),r.calcRenderedPlaceholder()})),r}return d(t,e),t.prototype.isTextValue=function(){return["text","number","password"].indexOf(this.inputType)>-1},t.prototype.getType=function(){return"text"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.setRenderedMinMax(),this.updateInputSize()},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType")},set:function(e){"datetime_local"!==(e=e.toLowerCase())&&"datetime"!==e||(e="datetime-local"),this.setPropertyValue("inputType",e.toLowerCase()),this.isLoadingFromJson||(this.min=void 0,this.max=void 0,this.step=void 0)},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),(this.minValueExpression||this.maxValueExpression)&&this.setRenderedMinMax(t,r)},t.prototype.getValidators=function(){var t=e.prototype.getValidators.call(this);return"email"!==this.inputType||this.validators.some((function(e){return"emailvalidator"===e.getType()}))||t.push(new l.EmailValidator),t},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"size",{get:function(){return this.getPropertyValue("size")},set:function(e){this.setPropertyValue("size",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTextInput",{get:function(){return["text","search","tel","url","email","password"].indexOf(this.inputType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputSize",{get:function(){return this.getPropertyValue("inputSize",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputSize",{get:function(){return this.getPropertyValue("inputSize")||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputWidth",{get:function(){return this.getPropertyValue("inputWidth")},enumerable:!1,configurable:!0}),t.prototype.updateInputSize=function(){var e=this.isTextInput&&this.size>0?this.size:0;this.isTextInput&&e<1&&this.parent&&this.parent.itemSize&&(e=this.parent.itemSize),this.setPropertyValue("inputSize",e),this.setPropertyValue("inputWidth",e>0?"auto":"")},Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete",null)},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.getPropertyValue("min")},set:function(e){this.isValueExpression(e)?this.minValueExpression=e.substring(1):this.setPropertyValue("min",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.getPropertyValue("max")},set:function(e){this.isValueExpression(e)?this.maxValueExpression=e.substring(1):this.setPropertyValue("max",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minValueExpression",{get:function(){return this.getPropertyValue("minValueExpression","")},set:function(e){this.setPropertyValue("minValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValueExpression",{get:function(){return this.getPropertyValue("maxValueExpression","")},set:function(e){this.setPropertyValue("maxValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMin",{get:function(){return this.getPropertyValue("renderedMin")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMax",{get:function(){return this.getPropertyValue("renderedMax")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minErrorText",{get:function(){return this.getLocalizableStringText("minErrorText")},set:function(e){this.setLocalizableStringText("minErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinErrorText",{get:function(){return this.getLocalizableString("minErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxErrorText",{get:function(){return this.getLocalizableStringText("maxErrorText")},set:function(e){this.setLocalizableStringText("maxErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxErrorText",{get:function(){return this.getLocalizableString("maxErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMinMaxType",{get:function(){return m(this)},enumerable:!1,configurable:!0}),t.prototype.onCheckForErrors=function(t,r){var n=this;if(e.prototype.onCheckForErrors.call(this,t,r),!r){if(this.isValueLessMin){var o=new u.CustomError(this.getMinMaxErrorText(this.minErrorText,this.getCalculatedMinMax(this.renderedMin)),this);o.onUpdateErrorTextCallback=function(e){e.text=n.getMinMaxErrorText(n.minErrorText,n.getCalculatedMinMax(n.renderedMin))},t.push(o)}if(this.isValueGreaterMax){var i=new u.CustomError(this.getMinMaxErrorText(this.maxErrorText,this.getCalculatedMinMax(this.renderedMax)),this);i.onUpdateErrorTextCallback=function(e){e.text=n.getMinMaxErrorText(n.maxErrorText,n.getCalculatedMinMax(n.renderedMax))},t.push(i)}}},t.prototype.canSetValueToSurvey=function(){if(!this.isMinMaxType)return!0;var e=!this.isValueLessMin&&!this.isValueGreaterMax;return"number"===this.inputType&&this.survey&&(this.survey.isValidateOnValueChanging||this.survey.isValidateOnValueChanged)&&this.hasErrors(),e},t.prototype.convertFuncValuetoQuestionValue=function(e){return a.Helpers.convertValToQuestionVal(e,this.inputType)},t.prototype.getMinMaxErrorText=function(e,t){if(a.Helpers.isValueEmpty(t))return e;var r=t.toString();return"date"===this.inputType&&t.toDateString&&(r=t.toDateString()),e.replace("{0}",r)},Object.defineProperty(t.prototype,"isValueLessMin",{get:function(){return!this.isValueEmpty(this.renderedMin)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)<this.getCalculatedMinMax(this.renderedMin)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueGreaterMax",{get:function(){return!this.isValueEmpty(this.renderedMax)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)>this.getCalculatedMinMax(this.renderedMax)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDateInputType",{get:function(){return"date"===this.inputType||"datetime-local"===this.inputType},enumerable:!1,configurable:!0}),t.prototype.getCalculatedMinMax=function(e){return this.isValueEmpty(e)?e:this.isDateInputType?new Date(e):e},t.prototype.setRenderedMinMax=function(e,t){var r=this;void 0===e&&(e=null),void 0===t&&(t=null),this.minValueRunner=this.getDefaultRunner(this.minValueRunner,this.minValueExpression),this.setValueAndRunExpression(this.minValueRunner,this.min,(function(e){!e&&r.isDateInputType&&c.settings.minDate&&(e=c.settings.minDate),r.setPropertyValue("renderedMin",e)}),e,t),this.maxValueRunner=this.getDefaultRunner(this.maxValueRunner,this.maxValueExpression),this.setValueAndRunExpression(this.maxValueRunner,this.max,(function(e){!e&&r.isDateInputType&&(e=c.settings.maxDate?c.settings.maxDate:"2999-12-31"),r.setPropertyValue("renderedMax",e)}),e,t)},Object.defineProperty(t.prototype,"step",{get:function(){return this.getPropertyValue("step")},set:function(e){this.setPropertyValue("step",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStep",{get:function(){return this.isValueEmpty(this.step)?"number"!==this.inputType?void 0:"any":this.step},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return["date","datetime-local"].indexOf(this.inputType)<0},t.prototype.supportGoNextPageError=function(){return["date","datetime-local"].indexOf(this.inputType)<0},Object.defineProperty(t.prototype,"dataList",{get:function(){return this.locDataList.value},set:function(e){this.locDataList.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDataList",{get:function(){return this.locDataListValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataListId",{get:function(){return this.locDataList.hasValue()?this.id+"_datalist":void 0},enumerable:!1,configurable:!0}),t.prototype.canRunValidators=function(e){return this.errors.length>0||!e||this.supportGoNextPageError()},t.prototype.setNewValue=function(t){t=this.correctValueType(t),e.prototype.setNewValue.call(this,t)},t.prototype.correctValueType=function(e){return!e||"number"!=this.inputType&&"range"!=this.inputType?e:a.Helpers.isNumber(e)?a.Helpers.getNumber(e):""},t.prototype.hasPlaceHolder=function(){return!this.isReadOnly&&"range"!==this.inputType},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&"div"===c.settings.readOnlyTextRenderMode},Object.defineProperty(t.prototype,"inputStyle",{get:function(){var e={};return e.width=this.inputWidth,e},enumerable:!1,configurable:!0}),t.prototype.updateValueOnEvent=function(e){var t=e.target.value;a.Helpers.isTwoValueEquals(this.value,t)||(this.value=t)},t}(p.QuestionTextBase),f=["number","range","date","datetime-local","month","time","week"];function m(e){var t=e?e.inputType:"";return!!t&&f.indexOf(t)>-1}function g(e,t){var r=e.split(t);return 2!==r.length?-1:a.Helpers.isNumber(r[0])&&a.Helpers.isNumber(r[1])?60*parseFloat(r[0])+parseFloat(r[1]):-1}function b(e,t,r,n){var o=n?r:t;if(!m(e))return o;if(a.Helpers.isValueEmpty(t)||a.Helpers.isValueEmpty(r))return o;if(0===e.inputType.indexOf("date")||"month"===e.inputType){var i="month"===e.inputType,s=new Date(i?t+"-1":t),l=new Date(i?r+"-1":r);if(!s||!l)return o;if(s>l)return n?t:r}if("week"===e.inputType||"time"===e.inputType)return function(e,t,r){var n=g(e,r),o=g(t,r);return!(n<0||o<0)&&n>o}(t,r,"week"===e.inputType?"-W":":")?n?t:r:o;if("number"===e.inputType){if(!a.Helpers.isNumber(t)||!a.Helpers.isNumber(r))return o;if(a.Helpers.getNumber(t)>a.Helpers.getNumber(r))return n?t:r}return"string"==typeof t||"string"==typeof r?o:t>r?n?t:r:o}function y(e,t){e&&e.inputType&&(t.inputType="range"!==e.inputType?e.inputType:"number",t.textUpdateMode="onBlur")}i.Serializer.addClass("text",[{name:"inputType",default:"text",choices:c.settings.questions.inputTypes},{name:"size:number",minValue:0,dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"],dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"autocomplete",alternativeName:"autoComplete",choices:c.settings.questions.dataList},{name:"min",dependsOn:"inputType",visibleIf:function(e){return m(e)},onPropertyEditorUpdate:function(e,t){y(e,t)},onSettingValue:function(e,t){return b(e,t,e.max,!1)}},{name:"max",dependsOn:"inputType",nextToProperty:"*min",visibleIf:function(e){return m(e)},onSettingValue:function(e,t){return b(e,e.min,t,!0)},onPropertyEditorUpdate:function(e,t){y(e,t)}},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return m(e)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return m(e)}},{name:"minErrorText",serializationProperty:"locMinErrorText",dependsOn:"inputType",visibleIf:function(e){return m(e)}},{name:"maxErrorText",serializationProperty:"locMaxErrorText",dependsOn:"inputType",visibleIf:function(e){return m(e)}},{name:"step:number",dependsOn:"inputType",visibleIf:function(e){return!!e&&("number"===e.inputType||"range"===e.inputType)}},{name:"maxLength:number",default:-1,dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder",dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"dataList:string[]",serializationProperty:"locDataList",dependsOn:"inputType",visibleIf:function(e){return!!e&&"text"===e.inputType}}],(function(){return new h("")}),"textbase"),o.QuestionFactory.Instance.registerQuestion("text",(function(e){return new h(e)}))},"./src/question_textbase.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"CharacterCounter",(function(){return p})),r.d(t,"QuestionTextBase",(function(){return d}));var n,o=r("./src/question.ts"),i=r("./src/jsonobject.ts"),s=r("./src/helpers.ts"),a=r("./src/utils/cssClassBuilder.ts"),l=r("./src/base.ts"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.updateRemainingCharacterCounter=function(e,t){this.remainingCharacterCounter=s.Helpers.getRemainingCharacterCounterText(e,t)},c([Object(i.property)()],t.prototype,"remainingCharacterCounter",void 0),t}(l.Base),d=function(e){function t(t){var r=e.call(this,t)||this;return r.characterCounter=new p,r}return u(t,e),t.prototype.isTextValue=function(){return!0},Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e),this.updateRemainingCharacterCounter(this.value)},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){return s.Helpers.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},t.prototype.updateRemainingCharacterCounter=function(e){this.characterCounter.updateRemainingCharacterCounter(e,this.getMaxLength())},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"textbase"},t.prototype.isEmpty=function(){return e.prototype.isEmpty.call(this)||""===this.value},Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSurveyInputTextUpdate",{get:function(){return"default"==this.textUpdateMode?!!this.survey&&this.survey.isUpdateValueTextOnTyping:"onTyping"==this.textUpdateMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedPlaceholder",{get:function(){return this.getPropertyValue("renderedPlaceholder")},enumerable:!1,configurable:!0}),t.prototype.setRenderedPlaceholder=function(e){this.setPropertyValue("renderedPlaceholder",e)},t.prototype.onReadOnlyChanged=function(){e.prototype.onReadOnlyChanged.call(this),this.calcRenderedPlaceholder()},t.prototype.onSurveyLoad=function(){this.calcRenderedPlaceholder(),e.prototype.onSurveyLoad.call(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.calcRenderedPlaceholder()},t.prototype.calcRenderedPlaceholder=function(){var e=this.placeHolder;e&&!this.hasPlaceHolder()&&(e=void 0),this.setRenderedPlaceholder(e)},t.prototype.hasPlaceHolder=function(){return!this.isReadOnly},t.prototype.setNewValue=function(t){e.prototype.setNewValue.call(this,t),this.updateRemainingCharacterCounter(t)},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),e.prototype.setQuestionValue.call(this,t,r),this.updateRemainingCharacterCounter(t)},t.prototype.getControlClass=function(){return(new a.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).toString()},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaInvalid",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabelledBy",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescribedBy",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"textbox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRequired",{get:function(){return this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaInvalid",{get:function(){return this.errors.length>0?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabel",{get:function(){return this.hasTitle?null:this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabelledBy",{get:function(){return this.hasTitle?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaDescribedBy",{get:function(){return this.errors.length>0?this.id+"_errors":null},enumerable:!1,configurable:!0}),c([Object(i.property)({localizable:!0,onSet:function(e,t){return t.calcRenderedPlaceholder()}})],t.prototype,"placeholder",void 0),t}(o.Question);i.Serializer.addClass("textbase",[],(function(){return new d("")}),"question")},"./src/questionfactory.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionFactory",(function(){return i})),r.d(t,"ElementFactory",(function(){return s}));var n=r("./src/surveyStrings.ts"),o=r("./src/jsonobject.ts"),i=function(){function e(){}return Object.defineProperty(e,"DefaultChoices",{get:function(){return[n.surveyLocalization.getString("choices_Item")+"1",n.surveyLocalization.getString("choices_Item")+"2",n.surveyLocalization.getString("choices_Item")+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultColums",{get:function(){var e=n.surveyLocalization.getString("matrix_column")+" ";return[e+"1",e+"2",e+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultRows",{get:function(){var e=n.surveyLocalization.getString("matrix_row")+" ";return[e+"1",e+"2"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultMutlipleTextItems",{get:function(){var e=n.surveyLocalization.getString("multipletext_itemname");return[e+"1",e+"2"]},enumerable:!1,configurable:!0}),e.prototype.registerQuestion=function(e,t){s.Instance.registerElement(e,t)},e.prototype.registerCustomQuestion=function(e){s.Instance.registerCustomQuestion(e)},e.prototype.unregisterElement=function(e,t){void 0===t&&(t=!1),s.Instance.unregisterElement(e,t)},e.prototype.clear=function(){s.Instance.clear()},e.prototype.getAllTypes=function(){return s.Instance.getAllTypes()},e.prototype.createQuestion=function(e,t){return s.Instance.createElement(e,t)},e.Instance=new e,e}(),s=function(){function e(){var e=this;this.creatorHash={},this.registerCustomQuestion=function(t){e.registerElement(t,(function(e){var r=o.Serializer.createClass(t);return r&&(r.name=e),r}))}}return e.prototype.registerElement=function(e,t){this.creatorHash[e]=t},e.prototype.clear=function(){this.creatorHash={}},e.prototype.unregisterElement=function(e,t){void 0===t&&(t=!1),delete this.creatorHash[e],t&&o.Serializer.removeClass(e)},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createElement=function(e,t){var r=this.creatorHash[e];return r?r(t):null},e.Instance=new e,e}()},"./src/questionnonvalue.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionNonValue",(function(){return a}));var n,o=r("./src/question.ts"),i=r("./src/jsonobject.ts"),s=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.getType=function(){return"nonvalue"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getTitleLocation=function(){return""},Object.defineProperty(t.prototype,"hasComment",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=null),!1},t.prototype.getAllErrors=function(){return[]},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.addConditionObjectsByContext=function(e,t){},t.prototype.getConditionJson=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=null),null},t}(o.Question);i.Serializer.addClass("nonvalue",[{name:"title",visible:!1},{name:"description",visible:!1},{name:"valueName",visible:!1},{name:"enableIf",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"clearIfInvisible",visible:!1},{name:"isRequired",visible:!1,isSerializable:!1},{name:"requiredErrorText",visible:!1},{name:"readOnly",visible:!1},{name:"requiredIf",visible:!1},{name:"validators",visible:!1},{name:"titleLocation",visible:!1},{name:"showCommentArea",visible:!1},{name:"useDisplayValuesInDynamicTexts",alternativeName:"useDisplayValuesInTitle",visible:!1}],(function(){return new a("")}),"question")},"./src/rendererFactory.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"RendererFactory",(function(){return n}));var n=function(){function e(){this.renderersHash={}}return e.prototype.unregisterRenderer=function(e,t){delete this.renderersHash[e][t]},e.prototype.registerRenderer=function(e,t,r){this.renderersHash[e]||(this.renderersHash[e]={}),this.renderersHash[e][t]=r},e.prototype.getRenderer=function(e,t){return this.renderersHash[e]&&this.renderersHash[e][t]||"default"},e.prototype.getRendererByQuestion=function(e){return this.getRenderer(e.getType(),e.renderAs)},e.prototype.clear=function(){this.renderersHash={}},e.Instance=new e,e}()},"./src/settings.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return o}));var n=globalThis.document,o={enterKeyAction:"default",comparator:{trimStrings:!0,caseSensitive:!1},expressionDisableConversionChar:"#",useLocalTimeZone:!0,get commentPrefix(){return o.commentSuffix},set commentPrefix(e){o.commentSuffix=e},commentSuffix:"-Comment",webserviceEncodeParameters:!0,useCachingForChoicesRestful:!0,get useCachingForChoicesRestfull(){return o.useCachingForChoicesRestful},set useCachingForChoicesRestfull(e){o.useCachingForChoicesRestful=e},surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey",itemValueSeparator:"|",itemValueAlwaysSerializeAsObject:!1,itemValueAlwaysSerializeText:!1,defaultLocaleName:"default",storeDuplicatedTranslations:!1,matrixDefaultRowName:"default",matrixDefaultCellType:"dropdown",matrixTotalValuePostFix:"-total",matrixMaximumRowCount:1e3,matrixMaxRowCountInCondition:1,panelDynamicMaxPanelCountInCondition:1,matrixRenderRemoveAsIcon:!0,panelMaximumPanelCount:100,ratingMaximumRateValueCount:20,tagboxCloseOnSelect:!1,disableOnGettingChoicesFromWeb:!1,serializeLocalizableStringAsObject:!1,allowShowEmptyTitleInDesignMode:!0,allowShowEmptyDescriptionInDesignMode:!0,executeCompleteTriggerOnValueChanged:!1,changeNavigationButtonsOnCompleteTrigger:!0,executeSkipTriggerOnValueChanged:!0,readOnlyCommentRenderMode:"textarea",readOnlyTextRenderMode:"input",confirmActionFunc:function(e){return confirm(e)},minWidth:"300px",maxWidth:"100%",maximumConditionRunCountOnValueChanged:10,setQuestionVisibleIndexForHiddenTitle:!1,setQuestionVisibleIndexForHiddenNumber:!1,lazyRowsRendering:!1,lazyRowsRenderingStartRow:3,notifications:{lifetime:2e3},showItemsInOrder:"default",noneItemValue:"none",supportedValidators:{question:["expression"],comment:["text","regex"],text:["numeric","text","regex","email"],checkbox:["answercount"],imagepicker:["answercount"]},minDate:"",maxDate:"",showModal:void 0,supportCreatorV2:!1,showDefaultItemsInCreatorV2:!0,customIcons:{},rankingDragHandleArea:"entireItem",environment:n?{root:n,_rootElement:n.body,get rootElement(){var e;return null!==(e=this._rootElement)&&void 0!==e?e:n.body},set rootElement(e){this._rootElement=e},_popupMountContainer:n.body,get popupMountContainer(){var e;return null!==(e=this._popupMountContainer)&&void 0!==e?e:n.body},set popupMountContainer(e){this._popupMountContainer=e},svgMountContainer:n.head,stylesSheetsMountContainer:n.head}:void 0,titleTags:{survey:"h3",page:"h4",panel:"h4",question:"h5"},questions:{inputTypes:["color","date","datetime-local","email","month","number","password","range","tel","text","time","url","week"],dataList:["","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","organization-title","username","new-password","current-password","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"]},matrix:{columnWidthsByType:{file:{minWidth:"240px"},comment:{minWidth:"200px"}},rateSize:"small"}}},"./src/stylesmanager.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"modernThemeColors",(function(){return s})),r.d(t,"defaultThemeColors",(function(){return a})),r.d(t,"orangeThemeColors",(function(){return l})),r.d(t,"darkblueThemeColors",(function(){return u})),r.d(t,"darkroseThemeColors",(function(){return c})),r.d(t,"stoneThemeColors",(function(){return p})),r.d(t,"winterThemeColors",(function(){return d})),r.d(t,"winterstoneThemeColors",(function(){return h})),r.d(t,"StylesManager",(function(){return f}));var n=r("./src/defaultCss/defaultV2Css.ts"),o=r("./src/settings.ts"),i=r("./src/utils/utils.ts"),s={"$main-color":"#1ab394","$add-button-color":"#1948b3","$remove-button-color":"#ff1800","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-slider-color":"#cfcfcf","$error-color":"#d52901","$text-color":"#404040","$light-text-color":"#fff","$checkmark-color":"#fff","$progress-buttons-color":"#8dd9ca","$inputs-background-color":"transparent","$main-hover-color":"#9f9f9f","$body-container-background-color":"#f4f4f4","$text-border-color":"#d4d4d4","$disabled-text-color":"rgba(64, 64, 64, 0.5)","$border-color":"rgb(64, 64, 64, 0.5)","$header-background-color":"#e7e7e7","$answer-background-color":"rgba(26, 179, 148, 0.2)","$error-background-color":"rgba(213, 41, 1, 0.2)","$radio-checked-color":"#404040","$clean-button-color":"#1948b3","$body-background-color":"#ffffff","$foreground-light":"#909090","$font-family":"Raleway"},a={"$header-background-color":"#e7e7e7","$body-container-background-color":"#f4f4f4","$main-color":"#1ab394","$main-hover-color":"#0aa384","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#6d7072","$text-input-color":"#6d7072","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#8dd9ca","$progress-buttons-line-color":"#d4d4d4"},l={"$header-background-color":"#4a4a4a","$body-container-background-color":"#f8f8f8","$main-color":"#f78119","$main-hover-color":"#e77109","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#f78119","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#f7b781","$progress-buttons-line-color":"#d4d4d4"},u={"$header-background-color":"#d9d8dd","$body-container-background-color":"#f6f7f2","$main-color":"#3c4f6d","$main-hover-color":"#2c3f5d","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#839ec9","$progress-buttons-line-color":"#d4d4d4"},c={"$header-background-color":"#ddd2ce","$body-container-background-color":"#f7efed","$main-color":"#68656e","$main-hover-color":"#58555e","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#c6bed4","$progress-buttons-line-color":"#d4d4d4"},p={"$header-background-color":"#cdccd2","$body-container-background-color":"#efedf4","$main-color":"#0f0f33","$main-hover-color":"#191955","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#0f0f33","$text-input-color":"#0f0f33","$header-color":"#0f0f33","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#747491","$progress-buttons-line-color":"#d4d4d4"},d={"$header-background-color":"#82b8da","$body-container-background-color":"#dae1e7","$main-color":"#3c3b40","$main-hover-color":"#1e1d20","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#d1c9f5","$progress-buttons-line-color":"#d4d4d4"},h={"$header-background-color":"#323232","$body-container-background-color":"#f8f8f8","$main-color":"#5ac8fa","$main-hover-color":"#06a1e7","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#acdcf2","$progress-buttons-line-color":"#d4d4d4"},f=function(){function e(){e.autoApplyTheme()}return e.autoApplyTheme=function(){if("bootstrap"!==n.surveyCss.currentType&&"bootstrapmaterial"!==n.surveyCss.currentType){var t=e.getIncludedThemeCss();1===t.length&&e.applyTheme(t[0].name)}},e.getAvailableThemes=function(){return n.surveyCss.getAvailableThemes().filter((function(e){return-1!==["defaultV2","default","modern"].indexOf(e)})).map((function(e){return{name:e,theme:n.surveyCss[e]}}))},e.getIncludedThemeCss=function(){var t=o.settings.environment.rootElement,r=e.getAvailableThemes(),n=Object(i.isShadowDOM)(t)?t.host:t;if(n){var s=getComputedStyle(n);if(s.length)return r.filter((function(e){return e.theme.variables&&s.getPropertyValue(e.theme.variables.themeMark)}))}return[]},e.findSheet=function(e){if(void 0===o.settings.environment)return null;for(var t=o.settings.environment.root.styleSheets,r=0;r<t.length;r++)if(t[r].ownerNode&&t[r].ownerNode.id===e)return t[r];return null},e.createSheet=function(t){var r=o.settings.environment.stylesSheetsMountContainer,n=document.createElement("style");return n.id=t,n.appendChild(document.createTextNode("")),Object(i.getElement)(r).appendChild(n),e.Logger&&e.Logger.log("style sheet "+t+" created"),n.sheet},e.applyTheme=function(t,r){void 0===t&&(t="default");var s=o.settings.environment.rootElement,a=Object(i.isShadowDOM)(s)?s.host:s;if(n.surveyCss.currentType=t,e.Enabled){if("bootstrap"!==t&&"bootstrapmaterial"!==t)return function(e,t){Object.keys(e||{}).forEach((function(r){var n=r.substring(1);t.style.setProperty("--"+n,e[r])}))}(e.ThemeColors[t],a),void(e.Logger&&e.Logger.log("apply theme "+t+" completed"));var l=e.ThemeCss[t];if(!l)return void(n.surveyCss.currentType="defaultV2");e.insertStylesRulesIntoDocument();var u=r||e.ThemeSelector[t]||e.ThemeSelector.default,c=(t+u).trim(),p=e.findSheet(c);if(!p){p=e.createSheet(c);var d=e.ThemeColors[t]||e.ThemeColors.default;Object.keys(l).forEach((function(e){var t=l[e];Object.keys(d||{}).forEach((function(e){return t=t.replace(new RegExp("\\"+e,"g"),d[e])}));try{0===e.indexOf("body")?p.insertRule(e+" { "+t+" }",0):p.insertRule(u+e+" { "+t+" }",0)}catch(e){}}))}}e.Logger&&e.Logger.log("apply theme "+t+" completed")},e.insertStylesRulesIntoDocument=function(){if(e.Enabled){var t=e.findSheet(e.SurveyJSStylesSheetId);t||(t=e.createSheet(e.SurveyJSStylesSheetId)),Object.keys(e.Styles).length&&Object.keys(e.Styles).forEach((function(r){try{t.insertRule(r+" { "+e.Styles[r]+" }",0)}catch(e){}})),Object.keys(e.Media).length&&Object.keys(e.Media).forEach((function(r){try{t.insertRule(e.Media[r].media+" { "+r+" { "+e.Media[r].style+" } }",0)}catch(e){}}))}},e.SurveyJSStylesSheetId="surveyjs-styles",e.Styles={},e.Media={},e.ThemeColors={modern:s,default:a,orange:l,darkblue:u,darkrose:c,stone:p,winter:d,winterstone:h},e.ThemeCss={},e.ThemeSelector={default:".sv_main ",modern:".sv-root-modern "},e.Enabled=!0,e}()},"./src/survey-element.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyElementCore",(function(){return f})),r.d(t,"DragTypeOverMeEnum",(function(){return o})),r.d(t,"SurveyElement",(function(){return m}));var n,o,i=r("./src/jsonobject.ts"),s=r("./src/base.ts"),a=r("./src/actions/adaptive-container.ts"),l=r("./src/helpers.ts"),u=r("./src/settings.ts"),c=r("./src/actions/container.ts"),p=r("./src/utils/cssClassBuilder.ts"),d=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},f=function(e){function t(){var t=e.call(this)||this;return t.createLocTitleProperty(),t}return d(t,e),t.prototype.createLocTitleProperty=function(){return this.createLocalizableString("title",this,!0)},Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.getDefaultTitleValue())},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){},t.prototype.updateDescriptionVisibility=function(e){this.hasDescription=!!e},Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTagName",{get:function(){var e=this.getDefaultTitleTagName(),t=this.getSurvey();return t?t.getElementTitleTagName(this,e):e},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleTagName=function(){return u.settings.titleTags[this.getType()]},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.title.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return this.hasTitleActions},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return null},t.prototype.getTitleOwner=function(){},Object.defineProperty(t.prototype,"isTitleOwner",{get:function(){return!!this.getTitleOwner()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTitleRenderedAsString",{get:function(){return this.getIsTitleRenderedAsString()},enumerable:!1,configurable:!0}),t.prototype.toggleState=function(){},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitle",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaLabel",{get:function(){return this.ariaLabel},enumerable:!1,configurable:!0}),t.prototype.getIsTitleRenderedAsString=function(){return!this.isTitleOwner},h([Object(i.property)()],t.prototype,"hasDescription",void 0),h([Object(i.property)({localizable:!0,onSet:function(e,t){t.updateDescriptionVisibility(t,e)}})],t.prototype,"description",void 0),t}(s.Base);!function(e){e[e.InsideEmptyPanel=1]="InsideEmptyPanel",e[e.MultilineRight=2]="MultilineRight",e[e.MultilineLeft=3]="MultilineLeft",e[e.Top=4]="Top",e[e.Right=5]="Right",e[e.Bottom=6]="Bottom",e[e.Left=7]="Left"}(o||(o={}));var m=function(e){function t(r){var n=e.call(this)||this;return n.selectedElementInDesignValue=n,n.disableDesignActions=t.CreateDisabledDesignElements,n.parentQuestionValue=null,n.isContentElement=!1,n.isEditableTemplateElement=!1,n.isInteractiveDesignElement=!0,n.isSingleInRow=!0,n.name=r,n.createNewArray("errors"),n.createNewArray("titleActions"),n.registerPropertyChangedHandlers(["isReadOnly"],(function(){n.onReadOnlyChanged()})),n.registerPropertyChangedHandlers(["errors"],(function(){n.updateVisibleErrors()})),n.registerPropertyChangedHandlers(["isSingleInRow"],(function(){n.updateElementCss(!1)})),n}return d(t,e),t.getProgressInfoByElements=function(e,t){for(var r=s.Base.createProgressInfo(),n=0;n<e.length;n++)if(e[n].isVisible){var o=e[n].getProgressInfo();r.questionCount+=o.questionCount,r.answeredQuestionCount+=o.answeredQuestionCount,r.requiredQuestionCount+=o.requiredQuestionCount,r.requiredAnsweredQuestionCount+=o.requiredAnsweredQuestionCount}return t&&r.questionCount>0&&(0==r.requiredQuestionCount&&(r.requiredQuestionCount=1),r.answeredQuestionCount>0&&(r.requiredAnsweredQuestionCount=1)),r},t.ScrollElementToTop=function(e){var t=u.settings.environment.root;if(!e||void 0===t)return!1;var r=t.getElementById(e);if(!r||!r.scrollIntoView)return!1;var n=r.getBoundingClientRect().top;return n<0&&r.scrollIntoView(),n<0},t.GetFirstNonTextElement=function(e,t){if(void 0===t&&(t=!1),!e||!e.length||0==e.length)return null;if(t){var r=e[0];"#text"===r.nodeName&&(r.data=""),"#text"===(r=e[e.length-1]).nodeName&&(r.data="")}for(var n=0;n<e.length;n++)if("#text"!=e[n].nodeName&&"#comment"!=e[n].nodeName)return e[n];return null},t.FocusElement=function(e){if(!e||"undefined"==typeof document)return!1;var r=t.focusElementCore(e);return r||setTimeout((function(){t.focusElementCore(e)}),10),r},t.focusElementCore=function(e){var t=u.settings.environment.root;if(!t)return!1;var r=t.getElementById(e);return!(!r||r.disabled||(r.focus(),0))},t.prototype.onPropertyValueChanged=function(t,r,n){e.prototype.onPropertyValueChanged.call(this,t,r,n),"state"===t&&(this.updateElementCss(!1),this.stateChangedCallback&&this.stateChangedCallback())},t.prototype.getSkeletonComponentNameCore=function(){return this.survey?this.survey.getSkeletonComponentName(this):""},Object.defineProperty(t.prototype,"parentQuestion",{get:function(){return this.parentQuestionValue},enumerable:!1,configurable:!0}),t.prototype.setParentQuestion=function(e){this.parentQuestionValue=e,this.onParentQuestionChanged()},t.prototype.onParentQuestionChanged=function(){},Object.defineProperty(t.prototype,"skeletonComponentName",{get:function(){return this.getSkeletonComponentNameCore()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state")},set:function(e){this.setPropertyValue("state",e),this.notifyStateChanged()},enumerable:!1,configurable:!0}),t.prototype.notifyStateChanged=function(){this.survey&&this.survey.elementContentVisibilityChanged(this)},Object.defineProperty(t.prototype,"isCollapsed",{get:function(){if(!this.isDesignMode)return"collapsed"===this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return"expanded"===this.state},enumerable:!1,configurable:!0}),t.prototype.collapse=function(){this.isDesignMode||(this.state="collapsed")},t.prototype.expand=function(){this.state="expanded"},t.prototype.toggleState=function(){return this.isCollapsed?(this.expand(),!0):!this.isExpanded||(this.collapse(),!1)},Object.defineProperty(t.prototype,"hasStateButton",{get:function(){return this.isExpanded||this.isCollapsed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.title||this.name},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return this.titleToolbarValue||(this.titleToolbarValue=this.createActionContainer(!0),this.titleToolbarValue.containerCss=(this.isPanel?this.cssClasses.panel.titleBar:this.cssClasses.titleBar)||"sv-action-title-bar",this.titleToolbarValue.setItems(this.getTitleActions())),this.titleToolbarValue},t.prototype.createActionContainer=function(e){var t=e?new a.AdaptiveActionContainer:new c.ActionContainer;return this.survey&&this.survey.getCss().actionBar&&(t.cssClasses=this.survey.getCss().actionBar),t},Object.defineProperty(t.prototype,"titleActions",{get:function(){return this.getPropertyValue("titleActions")},enumerable:!1,configurable:!0}),t.prototype.getTitleActions=function(){return this.isTitleActionRequested||(this.updateTitleActions(),this.isTitleActionRequested=!0),this.titleActions},t.prototype.getDefaultTitleActions=function(){return[]},t.prototype.updateTitleActions=function(){var e=this.getDefaultTitleActions();this.survey&&(e=this.survey.getUpdatedElementTitleActions(this,e)),this.setPropertyValue("titleActions",e)},Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return this.getTitleActions().length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return void 0!==this.state&&"default"!==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){return this.isPage||"default"===this.state?void 0:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){if(!this.isPage&&"default"!==this.state)return"expanded"===this.state?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){if(!this.isPage&&"default"!==this.state)return"button"},enumerable:!1,configurable:!0}),t.prototype.setSurveyImpl=function(e,t){this.surveyImplValue=e,this.surveyImplValue?(this.surveyDataValue=this.surveyImplValue.getSurveyData(),this.setSurveyCore(this.surveyImplValue.getSurvey()),this.textProcessorValue=this.surveyImplValue.getTextProcessor(),this.onSetData()):(this.setSurveyCore(null),this.surveyDataValue=null),this.survey&&this.clearCssClasses()},t.prototype.canRunConditions=function(){return e.prototype.canRunConditions.call(this)&&!!this.data},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():null},t.prototype.getDataFilteredProperties=function(){var e=this.data?this.data.getFilteredProperties():{};return e.question=this,e},Object.defineProperty(t.prototype,"surveyImpl",{get:function(){return this.surveyImplValue},enumerable:!1,configurable:!0}),t.prototype.__setData=function(e){u.settings.supportCreatorV2&&(this.surveyDataValue=e)},Object.defineProperty(t.prototype,"data",{get:function(){return this.surveyDataValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.surveyValue||this.surveyImplValue&&this.setSurveyCore(this.surveyImplValue.getSurvey()),this.surveyValue},t.prototype.setSurveyCore=function(e){this.surveyValue=e,this.surveyChangedCallback&&this.surveyChangedCallback()},Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return!!this.survey&&this.survey.areInvisibleElementsShowing&&!this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.getPropertyValue("readOnly",!1)},set:function(e){this.readOnly!=e&&(this.setPropertyValue("readOnly",e),this.isLoadingFromJson||this.setPropertyValue("isReadOnly",this.isReadOnly))},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.readOnlyChangedCallback&&this.readOnlyChangedCallback()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey?this.survey.getCss():{}},enumerable:!1,configurable:!0}),t.prototype.ensureCssClassesValue=function(){this.cssClassesValue||(this.cssClassesValue=this.calcCssClasses(this.css),this.updateElementCssCore(this.cssClassesValue))},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.survey?(this.ensureCssClassesValue(),this.cssClassesValue):this.calcCssClasses(this.css)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){var e=this.cssClasses;return e.number?e.number:e.panel?e.panel.number:void 0},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){},t.prototype.updateElementCssCore=function(e){},Object.defineProperty(t.prototype,"cssError",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.clearCssClasses()},t.prototype.clearCssClasses=function(){this.cssClassesValue=void 0},t.prototype.getIsLoadingFromJson=function(){return!!e.prototype.getIsLoadingFromJson.call(this)||!!this.survey&&this.survey.isLoadingFromJson},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){var t=this.name;this.setPropertyValue("name",this.getValidName(e)),!this.isLoadingFromJson&&t&&this.onNameChanged(t)},enumerable:!1,configurable:!0}),t.prototype.getValidName=function(e){return e},t.prototype.onNameChanged=function(e){},t.prototype.updateBindingValue=function(e,t){this.data&&!this.isTwoValueEquals(t,this.data.getValue(e))&&this.data.setValue(e,t,!1)},Object.defineProperty(t.prototype,"errors",{get:function(){return this.getPropertyValue("errors")},set:function(e){this.setPropertyValue("errors",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisibleErrors=function(){for(var e=0,t=0;t<this.errors.length;t++)this.errors[t].visible&&e++;this.hasVisibleErrors=e>0},Object.defineProperty(t.prototype,"containsErrors",{get:function(){return this.getPropertyValue("containsErrors",!1)},enumerable:!1,configurable:!0}),t.prototype.updateContainsErrors=function(){this.setPropertyValue("containsErrors",this.getContainsErrors())},t.prototype.getContainsErrors=function(){return this.errors.length>0},Object.defineProperty(t.prototype,"selectedElementInDesign",{get:function(){return this.selectedElementInDesignValue},set:function(e){this.selectedElementInDesignValue=e},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidgets=function(){},t.prototype.onSurveyLoad=function(){},t.prototype.onFirstRendering=function(){this.ensureCssClassesValue()},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.survey||this.onSurveyLoad()},t.prototype.setVisibleIndex=function(e){return 0},Object.defineProperty(t.prototype,"isPage",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.delete=function(){},t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.survey?this.survey.getSurveyMarkdownHtml(this,e,t):this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.survey&&"function"==typeof this.survey.getRendererForString?this.survey.getRendererForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRenderer?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.survey&&"function"==typeof this.survey.getRendererContextForString?this.survey.getRendererContextForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRendererContext?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.isLoadingFromJson?e:this.textProcessor?this.textProcessor.processText(e,this.getUseDisplayValuesInDynamicTexts()):this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getUseDisplayValuesInDynamicTexts=function(){return!0},t.prototype.removeSelfFromList=function(e){if(e&&Array.isArray(e)){var t=e.indexOf(this);t>-1&&e.splice(t,1)}},Object.defineProperty(t.prototype,"textProcessor",{get:function(){return this.textProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getProcessedHtml=function(e){return e&&this.textProcessor?this.textProcessor.processText(e,!0):e},t.prototype.onSetData=function(){},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),t.prototype.getPage=function(e){for(;e&&e.parent;)e=e.parent;return e&&"page"==e.getType()?e:null},t.prototype.moveToBase=function(e,t,r){if(void 0===r&&(r=null),!t)return!1;e.removeElement(this);var n=-1;return l.Helpers.isNumber(r)&&(n=parseInt(r)),-1==n&&r&&r.getType&&(n=t.indexOf(r)),t.addElement(this,n),!0},t.prototype.setPage=function(e,t){var r=this.getPage(e);"string"==typeof t&&this.getSurvey().pages.forEach((function(e){t===e.name&&(t=e)})),r!==t&&(e&&e.removeElement(this),t&&t.addElement(this,-1))},t.prototype.getSearchableLocKeys=function(e){e.push("title"),e.push("description")},Object.defineProperty(t.prototype,"isDefaultV2Theme",{get:function(){return this.survey&&"sd-root-modern"==this.survey.getCss().root},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isErrorsModeTooltip",{get:function(){return this.getIsErrorsModeTooltip()},enumerable:!1,configurable:!0}),t.prototype.getIsErrorsModeTooltip=function(){return this.isDefaultV2Theme&&this.hasParent&&this.getIsTooltipErrorSupportedByParent()},t.prototype.getIsTooltipErrorSupportedByParent=function(){var e;return null===(e=this.parent)||void 0===e?void 0:e.getIsTooltipErrorInsideSupported()},t.prototype.getIsTooltipErrorInsideSupported=function(){return!1},Object.defineProperty(t.prototype,"hasParent",{get:function(){return this.parent&&!this.parent.isPage&&(!this.parent.originalPage||this.survey.isShowingPreview)||void 0===this.parent},enumerable:!1,configurable:!0}),t.prototype.shouldAddRunnerStyles=function(){return!this.isDesignMode&&this.isDefaultV2Theme},Object.defineProperty(t.prototype,"isCompact",{get:function(){return this.survey&&this.survey.isCompact},enumerable:!1,configurable:!0}),t.prototype.getHasFrameV2=function(){return this.shouldAddRunnerStyles()&&!this.hasParent&&this.isSingleInRow},t.prototype.getIsNested=function(){return this.shouldAddRunnerStyles()&&(this.hasParent||!this.isSingleInRow)},t.prototype.getCssRoot=function(e){return(new p.CssClassBuilder).append(e.withFrame,this.getHasFrameV2()&&!this.isCompact).append(e.compact,this.isCompact&&this.getHasFrameV2()).append(e.collapsed,!!this.isCollapsed).append(e.expanded,!!this.isExpanded).append(e.nested,this.getIsNested()).toString()},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this.getPropertyValue("maxWidth")},set:function(e){this.setPropertyValue("maxWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth","")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent")},set:function(e){this.setPropertyValue("indent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!1,configurable:!0}),t.prototype.getRootStyle=function(){var e={};return this.paddingLeft&&(e["--sv-element-add-padding-left"]=this.paddingLeft),this.paddingRight&&(e["--sv-element-add-padding-right"]=this.paddingRight),e},Object.defineProperty(t.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddingLeft","")},set:function(e){this.setPropertyValue("paddingLeft",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight","")},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDescriptionVisible",{get:function(){return!!this.description||this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootStyle",{get:function(){var e={};return this.allowRootStyle&&this.renderWidth&&(e.flexGrow=1,e.flexShrink=1,e.flexBasis=this.renderWidth,e.minWidth=this.minWidth,e.maxWidth=this.maxWidth),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clickTitleFunction",{get:function(){var e=this;if(this.needClickTitleFunction())return function(){return e.processTitleClick()}},enumerable:!1,configurable:!0}),t.prototype.needClickTitleFunction=function(){return"default"!==this.state},t.prototype.processTitleClick=function(){"default"!==this.state&&this.toggleState()},Object.defineProperty(t.prototype,"additionalTitleToolbar",{get:function(){return this.getAdditionalTitleToolbar()},enumerable:!1,configurable:!0}),t.prototype.getAdditionalTitleToolbar=function(){return null},t.prototype.getCssTitle=function(e){var t="default"!==this.state;return(new p.CssClassBuilder).append(e.title).append(e.titleNumInline,(this.no||"").length>4||t).append(e.titleExpandable,t).append(e.titleExpanded,this.isExpanded).append(e.titleCollapsed,this.isCollapsed).append(e.titleDisabled,this.isReadOnly).append(e.titleOnError,this.containsErrors).toString()},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.updateDescriptionVisibility(this.description),this.errors.length>0&&this.errors.forEach((function(e){e.updateText()}))},t.CreateDisabledDesignElements=!1,h([Object(i.property)({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),h([Object(i.property)({defaultValue:!1})],t.prototype,"isDragMe",void 0),h([Object(i.property)()],t.prototype,"cssClassesValue",void 0),h([Object(i.property)({defaultValue:!1})],t.prototype,"hasVisibleErrors",void 0),h([Object(i.property)({defaultValue:!0})],t.prototype,"isSingleInRow",void 0),h([Object(i.property)({defaultValue:!0})],t.prototype,"allowRootStyle",void 0),t}(f)},"./src/survey-error.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyError",(function(){return i}));var n=r("./src/localizablestring.ts"),o=r("./src/surveyStrings.ts"),i=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this.text=e,this.errorOwner=t,this.visible=!0,this.onUpdateErrorTextCallback=void 0}return e.prototype.equalsTo=function(e){return!(!e||!e.getErrorType)&&this.getErrorType()===e.getErrorType()&&this.text===e.text&&this.visible===e.visible},Object.defineProperty(e.prototype,"locText",{get:function(){return this.locTextValue||(this.locTextValue=new n.LocalizableString(this.errorOwner,!0),this.locTextValue.storeDefaultText=!0,this.locTextValue.text=this.getText()),this.locTextValue},enumerable:!1,configurable:!0}),e.prototype.getText=function(){var e=this.text;return e||(e=this.getDefaultText()),this.errorOwner&&(e=this.errorOwner.getErrorCustomText(e,this)),e},e.prototype.getErrorType=function(){return"base"},e.prototype.getDefaultText=function(){return""},e.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},e.prototype.getLocalizationString=function(e){return o.surveyLocalization.getString(e,this.getLocale())},e.prototype.updateText=function(){this.onUpdateErrorTextCallback&&this.onUpdateErrorTextCallback(this),this.locText.text=this.getText()},e}()},"./src/survey.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyModel",(function(){return V}));var n,o=r("./src/helpers.ts"),i=r("./src/jsonobject.ts"),s=r("./src/base.ts"),a=r("./src/survey-element.ts"),l=r("./src/defaultCss/defaultV2Css.ts"),u=r("./src/textPreProcessor.ts"),c=r("./src/conditionProcessValue.ts"),p=r("./src/dxSurveyService.ts"),d=r("./src/surveyStrings.ts"),h=r("./src/error.ts"),f=r("./src/localizablestring.ts"),m=r("./src/stylesmanager.ts"),g=r("./src/surveyTimerModel.ts"),b=r("./src/conditions.ts"),y=r("./src/settings.ts"),v=r("./src/utils/utils.ts"),w=r("./src/actions/action.ts"),x=r("./src/actions/container.ts"),C=r("./src/utils/cssClassBuilder.ts"),P=r("./src/notifier.ts"),_=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),S=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},V=function(e){function t(r,n){void 0===r&&(r=null),void 0===n&&(n=null);var o=e.call(this)||this;o.valuesHash={},o.variablesHash={},o.onTriggerExecuted=o.addEvent(),o.onCompleting=o.addEvent(),o.onComplete=o.addEvent(),o.onShowingPreview=o.addEvent(),o.onNavigateToUrl=o.addEvent(),o.onStarted=o.addEvent(),o.onPartialSend=o.addEvent(),o.onCurrentPageChanging=o.addEvent(),o.onCurrentPageChanged=o.addEvent(),o.onValueChanging=o.addEvent(),o.onValueChanged=o.addEvent(),o.onVariableChanged=o.addEvent(),o.onQuestionVisibleChanged=o.addEvent(),o.onVisibleChanged=o.onQuestionVisibleChanged,o.onPageVisibleChanged=o.addEvent(),o.onPanelVisibleChanged=o.addEvent(),o.onQuestionCreated=o.addEvent(),o.onQuestionAdded=o.addEvent(),o.onQuestionRemoved=o.addEvent(),o.onPanelAdded=o.addEvent(),o.onPanelRemoved=o.addEvent(),o.onPageAdded=o.addEvent(),o.onValidateQuestion=o.addEvent(),o.onSettingQuestionErrors=o.addEvent(),o.onServerValidateQuestions=o.addEvent(),o.onValidatePanel=o.addEvent(),o.onErrorCustomText=o.addEvent(),o.onValidatedErrorsOnCurrentPage=o.addEvent(),o.onProcessHtml=o.addEvent(),o.onGetQuestionDisplayValue=o.addEvent(),o.onGetQuestionTitle=o.addEvent(),o.onGetTitleTagName=o.addEvent(),o.onGetQuestionNo=o.addEvent(),o.onProgressText=o.addEvent(),o.onTextMarkdown=o.addEvent(),o.onTextRenderAs=o.addEvent(),o.onSendResult=o.addEvent(),o.onGetResult=o.addEvent(),o.onUploadFiles=o.addEvent(),o.onDownloadFile=o.addEvent(),o.onClearFiles=o.addEvent(),o.onLoadChoicesFromServer=o.addEvent(),o.onLoadedSurveyFromService=o.addEvent(),o.onProcessTextValue=o.addEvent(),o.onUpdateQuestionCssClasses=o.addEvent(),o.onUpdatePanelCssClasses=o.addEvent(),o.onUpdatePageCssClasses=o.addEvent(),o.onUpdateChoiceItemCss=o.addEvent(),o.onAfterRenderSurvey=o.addEvent(),o.onAfterRenderHeader=o.addEvent(),o.onAfterRenderPage=o.addEvent(),o.onAfterRenderQuestion=o.addEvent(),o.onAfterRenderQuestionInput=o.addEvent(),o.onAfterRenderPanel=o.addEvent(),o.onFocusInQuestion=o.addEvent(),o.onFocusInPanel=o.addEvent(),o.onShowingChoiceItem=o.addEvent(),o.onChoicesLazyLoad=o.addEvent(),o.onGetChoiceDisplayValue=o.addEvent(),o.onMatrixRowAdded=o.addEvent(),o.onMatrixBeforeRowAdded=o.addEvent(),o.onMatrixRowRemoving=o.addEvent(),o.onMatrixRowRemoved=o.addEvent(),o.onMatrixAllowRemoveRow=o.addEvent(),o.onMatrixCellCreating=o.addEvent(),o.onMatrixCellCreated=o.addEvent(),o.onMatrixAfterCellRender=o.addEvent(),o.onMatrixCellValueChanged=o.addEvent(),o.onMatrixCellValueChanging=o.addEvent(),o.onMatrixCellValidate=o.addEvent(),o.onMatrixColumnAdded=o.addEvent(),o.onMultipleTextItemAdded=o.addEvent(),o.onDynamicPanelAdded=o.addEvent(),o.onDynamicPanelRemoved=o.addEvent(),o.onDynamicPanelRemoving=o.addEvent(),o.onTimer=o.addEvent(),o.onTimerPanelInfoText=o.addEvent(),o.onDynamicPanelItemValueChanged=o.addEvent(),o.onIsAnswerCorrect=o.addEvent(),o.onDragDropAllow=o.addEvent(),o.onScrollingElementToTop=o.addEvent(),o.onLocaleChangedEvent=o.addEvent(),o.onGetQuestionTitleActions=o.addEvent(),o.onGetPanelTitleActions=o.addEvent(),o.onGetPageTitleActions=o.addEvent(),o.onGetPanelFooterActions=o.addEvent(),o.onGetMatrixRowActions=o.addEvent(),o.onElementContentVisibilityChanged=o.addEvent(),o.onGetExpressionDisplayValue=o.addEvent(),o.jsonErrors=null,o.cssValue=null,o.hideRequiredErrors=!1,o._isMobile=!1,o._isCompact=!1,o._isDesignMode=!1,o.ignoreValidation=!1,o.isNavigationButtonPressed=!1,o.mouseDownPage=null,o.isCalculatingProgressText=!1,o.isFirstPageRendering=!0,o.isCurrentPageRendering=!0,o.isTriggerIsRunning=!1,o.triggerValues=null,o.triggerKeys=null,o.conditionValues=null,o.isValueChangedOnRunningCondition=!1,o.conditionRunnerCounter=0,o.conditionUpdateVisibleIndexes=!1,o.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,o.isEndLoadingFromJson=null,o.questionHashes={names:{},namesInsensitive:{},valueNames:{},valueNamesInsensitive:{}},o.afterRenderPageTasks=[],o.needRenderIcons=!0,o.skippedPages=[],o.skeletonComponentName="sv-skeleton","undefined"!=typeof document&&(t.stylesManager=new m.StylesManager);var i=function(e){return"<h3>"+e+"</h3>"};return o.createHtmlLocString("completedHtml","completingSurvey",i),o.createHtmlLocString("completedBeforeHtml","completingSurveyBefore",i),o.createHtmlLocString("loadingHtml","loadingSurvey",i),o.createLocalizableString("logo",o,!1),o.createLocalizableString("backgroundImage",o,!1),o.createLocalizableString("startSurveyText",o,!1,!0),o.createLocalizableString("pagePrevText",o,!1,!0),o.createLocalizableString("pageNextText",o,!1,!0),o.createLocalizableString("completeText",o,!1,!0),o.createLocalizableString("previewText",o,!1,!0),o.createLocalizableString("editText",o,!1,!0),o.createLocalizableString("questionTitleTemplate",o,!0),o.textPreProcessor=new u.TextPreProcessor,o.textPreProcessor.onProcess=function(e){o.getProcessedTextValue(e)},o.timerModelValue=new g.SurveyTimerModel(o),o.timerModelValue.onTimer=function(e){o.doTimer(e)},o.createNewArray("pages",(function(e){o.doOnPageAdded(e)}),(function(e){o.doOnPageRemoved(e)})),o.createNewArray("triggers",(function(e){e.setOwner(o)})),o.createNewArray("calculatedValues",(function(e){e.setOwner(o)})),o.createNewArray("completedHtmlOnCondition",(function(e){e.locOwner=o})),o.createNewArray("navigateToUrlOnCondition",(function(e){e.locOwner=o})),o.registerPropertyChangedHandlers(["locale"],(function(){o.onSurveyLocaleChanged()})),o.registerPropertyChangedHandlers(["firstPageIsStarted"],(function(){o.onFirstPageIsStartedChanged()})),o.registerPropertyChangedHandlers(["mode"],(function(){o.onModeChanged()})),o.registerPropertyChangedHandlers(["progressBarType"],(function(){o.updateProgressText()})),o.registerPropertyChangedHandlers(["questionStartIndex","requiredText","questionTitlePattern"],(function(){o.resetVisibleIndexes()})),o.registerPropertyChangedHandlers(["isLoading","isCompleted","isCompletedBefore","mode","isStartedState","currentPage"],(function(){o.updateState()})),o.registerPropertyChangedHandlers(["state","currentPage","showPreviewBeforeComplete"],(function(){o.onStateAndCurrentPageChanged()})),o.registerPropertyChangedHandlers(["logo","logoPosition"],(function(){o.updateHasLogo()})),o.registerPropertyChangedHandlers(["backgroundImage"],(function(){o.updateRenderBackgroundImage()})),o.onGetQuestionNo.onCallbacksChanged=function(){o.resetVisibleIndexes()},o.onProgressText.onCallbacksChanged=function(){o.updateProgressText()},o.onTextMarkdown.onCallbacksChanged=function(){o.locStrsChanged()},o.onProcessHtml.onCallbacksChanged=function(){o.locStrsChanged()},o.onGetQuestionTitle.onCallbacksChanged=function(){o.locStrsChanged()},o.onUpdatePageCssClasses.onCallbacksChanged=function(){o.currentPage&&o.currentPage.updateElementCss()},o.onUpdatePanelCssClasses.onCallbacksChanged=function(){o.currentPage&&o.currentPage.updateElementCss()},o.onUpdateQuestionCssClasses.onCallbacksChanged=function(){o.currentPage&&o.currentPage.updateElementCss()},o.onShowingChoiceItem.onCallbacksChanged=function(){o.rebuildQuestionChoices()},o.navigationBarValue=o.createNavigationBar(),o.navigationBar.locOwner=o,o.onBeforeCreating(),r&&(("string"==typeof r||r instanceof String)&&(r=JSON.parse(r)),r&&r.clientId&&(o.clientId=r.clientId),o.fromJSON(r),o.surveyId&&o.loadSurveyFromService(o.surveyId,o.clientId)),o.onCreating(),n&&o.render(n),o.updateCss(),o.setCalculatedWidthModeUpdater(),o.notifier=new P.Notifier(o.css.saveData),o.notifier.addAction(o.createTryAgainAction(),"error"),o.layoutElements.push({id:"timerpanel",template:"survey-timerpanel",component:"sv-timerpanel",data:o.timerModel}),o.layoutElements.push({id:"progress-buttons",component:"sv-progress-buttons",data:o}),o.layoutElements.push({id:"progress-questions",component:"sv-progress-questions",data:o}),o.layoutElements.push({id:"progress-pages",component:"sv-progress-pages",data:o}),o.layoutElements.push({id:"progress-correctquestions",component:"sv-progress-correctquestions",data:o}),o.layoutElements.push({id:"progress-requiredquestions",component:"sv-progress-requiredquestions",data:o}),o.addLayoutElement({id:"toc-navigation",component:"sv-progress-toc",data:o}),o.layoutElements.push({id:"navigationbuttons",component:"sv-action-bar",data:o.navigationBar}),o}return _(t,e),Object.defineProperty(t,"cssType",{get:function(){return l.surveyCss.currentType},set:function(e){m.StylesManager.applyTheme(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"platformName",{get:function(){return t.platform},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentSuffix",{get:function(){return y.settings.commentSuffix},set:function(e){y.settings.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPrefix",{get:function(){return this.commentSuffix},set:function(e){this.commentSuffix=e},enumerable:!1,configurable:!0}),t.prototype.createTryAgainAction=function(){var e=this;return{id:"save-again",title:this.getLocalizationString("saveAgainButton"),action:function(){e.isCompleted?e.saveDataOnComplete():e.doComplete()}}},t.prototype.createHtmlLocString=function(e,t,r){this.createLocalizableString(e,this,!1,t).onGetLocalizationTextCallback=r},t.prototype.getType=function(){return"survey"},t.prototype.onPropertyValueChanged=function(e,t,r){"questionsOnPageMode"===e&&this.onQuestionsOnPageModeChanged(t)},Object.defineProperty(t.prototype,"pages",{get:function(){return this.getPropertyValue("pages")},enumerable:!1,configurable:!0}),t.prototype.render=function(e){void 0===e&&(e=null),this.renderCallback&&this.renderCallback()},t.prototype.updateSurvey=function(e,t){var r=function(){if("model"==o||"children"==o)return"continue";if(0==o.indexOf("on")&&n[o]&&n[o].add){var t=e[o];n[o].add((function(e,r){t(e,r)}))}else n[o]=e[o]},n=this;for(var o in e)r();e&&e.data&&this.onValueChanged.add((function(t,r){e.data[r.name]=r.value}))},t.prototype.getCss=function(){return this.css},t.prototype.updateCompletedPageCss=function(){this.containerCss=this.css.container,this.completedCss=(new C.CssClassBuilder).append(this.css.body).append(this.css.completedPage).toString()},t.prototype.updateCss=function(){this.rootCss=this.getRootCss(),this.updateNavigationCss(),this.updateCompletedPageCss()},Object.defineProperty(t.prototype,"css",{get:function(){return this.cssValue||(this.cssValue={},this.copyCssClasses(this.cssValue,l.surveyCss.getCss())),this.cssValue},set:function(e){this.setCss(e)},enumerable:!1,configurable:!0}),t.prototype.setCss=function(e,t){void 0===t&&(t=!0),t?this.mergeValues(e,this.css):this.cssValue=e,this.updateCss(),this.updateElementCss(!1)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.css.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationComplete",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.complete)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPreview",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.preview)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationEdit",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.edit)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPrev",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.prev)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationStart",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.start)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationNext",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.next)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssSurveyNavigationButton",{get:function(){return(new C.CssClassBuilder).append(this.css.navigationButton).append(this.css.bodyNavigationButton).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyCss",{get:function(){return(new C.CssClassBuilder).append(this.css.body).append(this.css.bodyWithTimer,"none"!=this.showTimerPanel&&"running"===this.state).append(this.css.body+"--"+this.calculatedWidthMode).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyContainerCss",{get:function(){return this.css.bodyContainer},enumerable:!1,configurable:!0}),t.prototype.getNavigationCss=function(e,t){return(new C.CssClassBuilder).append(e).append(t).toString()},Object.defineProperty(t.prototype,"lazyRendering",{get:function(){return!0===this.lazyRenderingValue},set:function(e){if(this.lazyRendering!==e){this.lazyRenderingValue=e;var t=this.currentPage;t&&t.updateRows()}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRendering",{get:function(){return this.lazyRendering||y.settings.lazyRowsRendering},enumerable:!1,configurable:!0}),t.prototype.updateLazyRenderingRowsOnRemovingElements=function(){if(this.isLazyRendering){var e=this.currentPage;e&&Object(v.scrollElementByChildId)(e.id)}},Object.defineProperty(t.prototype,"triggers",{get:function(){return this.getPropertyValue("triggers")},set:function(e){this.setPropertyValue("triggers",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedValues",{get:function(){return this.getPropertyValue("calculatedValues")},set:function(e){this.setPropertyValue("calculatedValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyId",{get:function(){return this.getPropertyValue("surveyId","")},set:function(e){this.setPropertyValue("surveyId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyPostId",{get:function(){return this.getPropertyValue("surveyPostId","")},set:function(e){this.setPropertyValue("surveyPostId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientId",{get:function(){return this.getPropertyValue("clientId","")},set:function(e){this.setPropertyValue("clientId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cookieName",{get:function(){return this.getPropertyValue("cookieName","")},set:function(e){this.setPropertyValue("cookieName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sendResultOnPageNext",{get:function(){return this.getPropertyValue("sendResultOnPageNext")},set:function(e){this.setPropertyValue("sendResultOnPageNext",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyShowDataSaving",{get:function(){return this.getPropertyValue("surveyShowDataSaving")},set:function(e){this.setPropertyValue("surveyShowDataSaving",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusFirstQuestionAutomatic",{get:function(){return this.getPropertyValue("focusFirstQuestionAutomatic")},set:function(e){this.setPropertyValue("focusFirstQuestionAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusOnFirstError",{get:function(){return this.getPropertyValue("focusOnFirstError")},set:function(e){this.setPropertyValue("focusOnFirstError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigationButtons",{get:function(){return this.getPropertyValue("showNavigationButtons")},set:function(e){!0!==e&&void 0!==e||(e="bottom"),!1===e&&(e="none"),this.setPropertyValue("showNavigationButtons",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPrevButton",{get:function(){return this.getPropertyValue("showPrevButton")},set:function(e){this.setPropertyValue("showPrevButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTOC",{get:function(){return this.getPropertyValue("showTOC")},set:function(e){this.setPropertyValue("showTOC",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tocLocation",{get:function(){return this.getPropertyValue("tocLocation")},set:function(e){this.setPropertyValue("tocLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle")},set:function(e){this.setPropertyValue("showTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPageTitles",{get:function(){return this.getPropertyValue("showPageTitles")},set:function(e){this.setPropertyValue("showPageTitles",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCompletedPage",{get:function(){return this.getPropertyValue("showCompletedPage")},set:function(e){this.setPropertyValue("showCompletedPage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrl",{get:function(){return this.getPropertyValue("navigateToUrl")},set:function(e){this.setPropertyValue("navigateToUrl",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrlOnCondition",{get:function(){return this.getPropertyValue("navigateToUrlOnCondition")},set:function(e){this.setPropertyValue("navigateToUrlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.getNavigateToUrl=function(){var e=this.getExpressionItemOnRunCondition(this.navigateToUrlOnCondition),t=e?e.url:this.navigateToUrl;return t&&(t=this.processText(t,!1)),t},t.prototype.navigateTo=function(){var e={url:this.getNavigateToUrl(),allow:!0};this.onNavigateToUrl.fire(this,e),e.url&&e.allow&&Object(v.navigateToUrl)(e.url)},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.getPropertyValue("requiredText","*")},set:function(e){this.setPropertyValue("requiredText",e)},enumerable:!1,configurable:!0}),t.prototype.beforeSettingQuestionErrors=function(e,t){this.maakeRequiredErrorsInvisibgle(t),this.onSettingQuestionErrors.fire(this,{question:e,errors:t})},t.prototype.beforeSettingPanelErrors=function(e,t){this.maakeRequiredErrorsInvisibgle(t)},t.prototype.maakeRequiredErrorsInvisibgle=function(e){if(this.hideRequiredErrors)for(var t=0;t<e.length;t++){var r=e[t].getErrorType();"required"!=r&&"requireoneanswer"!=r||(e[t].visible=!1)}},Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTextLength",{get:function(){return this.getPropertyValue("maxTextLength")},set:function(e){this.setPropertyValue("maxTextLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxOthersLength",{get:function(){return this.getPropertyValue("maxOthersLength")},set:function(e){this.setPropertyValue("maxOthersLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"goNextPageAutomatic",{get:function(){return this.getPropertyValue("goNextPageAutomatic")},set:function(e){this.setPropertyValue("goNextPageAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowCompleteSurveyAutomatic",{get:function(){return this.getPropertyValue("allowCompleteSurveyAutomatic",!0)},set:function(e){this.setPropertyValue("allowCompleteSurveyAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkErrorsMode",{get:function(){return this.getPropertyValue("checkErrorsMode")},set:function(e){this.setPropertyValue("checkErrorsMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.getPropertyValue("autoGrowComment")},set:function(e){this.setPropertyValue("autoGrowComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeComment",{get:function(){return this.getPropertyValue("allowResizeComment")},set:function(e){this.setPropertyValue("allowResizeComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearInvisibleValues",{get:function(){return this.getPropertyValue("clearInvisibleValues")},set:function(e){!0===e&&(e="onComplete"),!1===e&&(e="none"),this.setPropertyValue("clearInvisibleValues",e)},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(e){void 0===e&&(e=!1);for(var t=0;t<this.pages.length;t++)this.pages[t].clearIncorrectValues();if(e){var r=this.data,n=!1;for(var o in r)if(!this.getQuestionByValueName(o)&&!this.iscorrectValueWithPostPrefix(o,y.settings.commentSuffix)&&!this.iscorrectValueWithPostPrefix(o,y.settings.matrixTotalValuePostFix)){var i=this.getCalculatedValueByName(o);i&&i.includeIntoResult||(n=!0,delete r[o])}n&&(this.data=r)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t){return e.indexOf(t)===e.length-t.length&&!!this.getQuestionByValueName(e.substring(0,e.indexOf(t)))},Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues")},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locale",{get:function(){return this.getPropertyValue("locale",d.surveyLocalization.currentLocale)},set:function(e){e!==d.surveyLocalization.defaultLocale||d.surveyLocalization.currentLocale||(e=""),this.setPropertyValue("locale",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLocaleChanged=function(){this.notifyElementsOnAnyValueOrVariableChanged("locale"),this.localeChanged(),this.onLocaleChangedEvent.fire(this,this.locale)},t.prototype.getUsedLocales=function(){var e=new Array;this.addUsedLocales(e);var t=e.indexOf("default");if(t>-1){var r=d.surveyLocalization.defaultLocale,n=e.indexOf(r);n>-1&&e.splice(n,1),t=e.indexOf("default"),e[t]=r}return e},t.prototype.localeChanged=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].localeChanged()},t.prototype.getLocale=function(){return this.locale},t.prototype.locStrsChanged=function(){if(e.prototype.locStrsChanged.call(this),this.currentPage){this.isShowStartingPage||this.updateProgressText();var t=this.activePage;t&&t.locStrsChanged();for(var r=this.visiblePages,n=0;n<r.length;n++)r[n].navigationLocStrChanged();this.navigationBar.locStrsChanged()}},t.prototype.getMarkdownHtml=function(e,t){return this.getSurveyMarkdownHtml(this,e,t)},t.prototype.getRenderer=function(e){return this.getRendererForString(this,e)},t.prototype.getRendererContext=function(e){return this.getRendererContextForString(this,e)},t.prototype.getRendererForString=function(e,t){var r={element:e,name:t,renderAs:this.getBuiltInRendererForString(e,t)};return this.onTextRenderAs.fire(this,r),r.renderAs},t.prototype.getRendererContextForString=function(e,t){return t},t.prototype.getExpressionDisplayValue=function(e,t,r){var n={question:e,value:t,displayValue:r};return this.onGetExpressionDisplayValue.fire(this,n),n.displayValue},t.prototype.getBuiltInRendererForString=function(e,t){if(this.isDesignMode)return f.LocalizableString.editableRenderer},t.prototype.getProcessedText=function(e){return this.processText(e,!0)},t.prototype.getLocString=function(e){return this.getLocalizationString(e)},t.prototype.getErrorCustomText=function(e,t){return this.getSurveyErrorCustomText(this,e,t)},t.prototype.getSurveyErrorCustomText=function(e,t,r){var n={text:t,name:r.getErrorType(),obj:e,error:r};return this.onErrorCustomText.fire(this,n),n.text},t.prototype.getQuestionDisplayValue=function(e,t){var r={question:e,displayValue:t};return this.onGetQuestionDisplayValue.fire(this,r),r.displayValue},Object.defineProperty(t.prototype,"emptySurveyText",{get:function(){return this.getLocalizationString("emptySurvey")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logo",{get:function(){return this.getLocalizableStringText("logo")},set:function(e){this.setLocalizableStringText("logo",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLogo",{get:function(){return this.getLocalizableString("logo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoWidth",{get:function(){var e=this.getPropertyValue("logoWidth");return Object(v.getSize)(e)},set:function(e){this.setPropertyValue("logoWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoHeight",{get:function(){var e=this.getPropertyValue("logoHeight");return Object(v.getSize)(e)},set:function(e){this.setPropertyValue("logoHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoPosition",{get:function(){return this.getPropertyValue("logoPosition")},set:function(e){this.setPropertyValue("logoPosition",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasLogo",{get:function(){return this.getPropertyValue("hasLogo",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasLogo=function(){this.setPropertyValue("hasLogo",!!this.logo&&"none"!==this.logoPosition)},Object.defineProperty(t.prototype,"isLogoBefore",{get:function(){return!this.isDesignMode&&this.renderedHasLogo&&("left"===this.logoPosition||"top"===this.logoPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogoAfter",{get:function(){return this.isDesignMode?this.renderedHasLogo:this.renderedHasLogo&&("right"===this.logoPosition||"bottom"===this.logoPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoClassNames",{get:function(){return(new C.CssClassBuilder).append(this.css.logo).append({left:"sv-logo--left",right:"sv-logo--right",top:"sv-logo--top",bottom:"sv-logo--bottom"}[this.logoPosition]).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasTitle",{get:function(){return this.isDesignMode?this.isPropertyVisible("title"):!this.locTitle.isEmpty&&this.showTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasDescription",{get:function(){return this.isDesignMode?this.isPropertyVisible("description"):!!this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.renderedHasTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasLogo",{get:function(){return this.isDesignMode?this.isPropertyVisible("logo"):this.hasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasHeader",{get:function(){return this.renderedHasTitle||this.renderedHasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoFit",{get:function(){return this.getPropertyValue("logoFit")},set:function(e){this.setPropertyValue("logoFit",e)},enumerable:!1,configurable:!0}),t.prototype.setIsMobile=function(e){void 0===e&&(e=!0),this.isMobile!==e&&(this._isMobile=e,this.updateCss(),this.getAllQuestions().map((function(t){return t.isMobile=e})))},Object.defineProperty(t.prototype,"isMobile",{get:function(){return this._isMobile},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompact",{get:function(){return this._isCompact},set:function(e){e!==this._isCompact&&(this._isCompact=e,this.updateElementCss())},enumerable:!1,configurable:!0}),t.prototype.isLogoImageChoosen=function(){return this.locLogo.renderedHtml},Object.defineProperty(t.prototype,"titleMaxWidth",{get:function(){if(!(Object(v.isMobile)()||this.isMobile||this.isValueEmpty(this.isLogoImageChoosen())||y.settings.supportCreatorV2)){var e=this.logoWidth;if("left"===this.logoPosition||"right"===this.logoPosition)return"calc(100% - 5px - 2em - "+e+")"}return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImage",{get:function(){return this.getLocalizableStringText("backgroundImage")},set:function(e){this.setLocalizableStringText("backgroundImage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locBackgroundImage",{get:function(){return this.getLocalizableString("backgroundImage")},enumerable:!1,configurable:!0}),t.prototype.updateRenderBackgroundImage=function(){this.renderBackgroundImage=["url(",this.getLocalizableString("backgroundImage").renderedHtml,")"].join("")},Object.defineProperty(t.prototype,"backgroundOpacity",{get:function(){return this.getPropertyValue("backgroundOpacity")},set:function(e){this.setPropertyValue("backgroundOpacity",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderBackgroundOpacity",{get:function(){return this.getPropertyByName("backgroundOpacity").isDefaultValue(this.backgroundOpacity)?"":["rgba(255, 255, 255, ",1-this.backgroundOpacity,")"].join("")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedHtml",{get:function(){return this.getLocalizableStringText("completedHtml")},set:function(e){this.setLocalizableStringText("completedHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedHtml",{get:function(){return this.getLocalizableString("completedHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedHtmlOnCondition",{get:function(){return this.getPropertyValue("completedHtmlOnCondition")},set:function(e){this.setPropertyValue("completedHtmlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.runExpression=function(e){if(!e)return null;var t=this.getFilteredValues(),r=this.getFilteredProperties();return new b.ExpressionRunner(e).run(t,r)},t.prototype.runCondition=function(e){if(!e)return!1;var t=this.getFilteredValues(),r=this.getFilteredProperties();return new b.ConditionRunner(e).run(t,r)},t.prototype.runTriggers=function(){this.checkTriggers(this.getFilteredValues(),!1)},Object.defineProperty(t.prototype,"renderedCompletedHtml",{get:function(){var e=this.getExpressionItemOnRunCondition(this.completedHtmlOnCondition);return e?e.html:this.completedHtml},enumerable:!1,configurable:!0}),t.prototype.getExpressionItemOnRunCondition=function(e){if(0==e.length)return null;for(var t=this.getFilteredValues(),r=this.getFilteredProperties(),n=0;n<e.length;n++)if(e[n].runCondition(t,r))return e[n];return null},Object.defineProperty(t.prototype,"completedBeforeHtml",{get:function(){return this.getLocalizableStringText("completedBeforeHtml")},set:function(e){this.setLocalizableStringText("completedBeforeHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedBeforeHtml",{get:function(){return this.getLocalizableString("completedBeforeHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingHtml",{get:function(){return this.getLocalizableStringText("loadingHtml")},set:function(e){this.setLocalizableStringText("loadingHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLoadingHtml",{get:function(){return this.getLocalizableString("loadingHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultLoadingHtml",{get:function(){return"<h3>"+this.getLocalizationString("loadingSurvey")+"</h3>"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationBar",{get:function(){return this.navigationBarValue},enumerable:!1,configurable:!0}),t.prototype.addNavigationItem=function(e){return e.component||(e.component="sv-nav-btn"),e.innerCss||(e.innerCss=this.cssSurveyNavigationButton),this.navigationBar.addAction(e)},Object.defineProperty(t.prototype,"startSurveyText",{get:function(){return this.getLocalizableStringText("startSurveyText")},set:function(e){this.setLocalizableStringText("startSurveyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locStartSurveyText",{get:function(){return this.getLocalizableString("startSurveyText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pagePrevText",{get:function(){return this.getLocalizableStringText("pagePrevText")},set:function(e){this.setLocalizableStringText("pagePrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPagePrevText",{get:function(){return this.getLocalizableString("pagePrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageNextText",{get:function(){return this.getLocalizableStringText("pageNextText")},set:function(e){this.setLocalizableStringText("pageNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPageNextText",{get:function(){return this.getLocalizableString("pageNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completeText",{get:function(){return this.getLocalizableStringText("completeText")},set:function(e){this.setLocalizableStringText("completeText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompleteText",{get:function(){return this.getLocalizableString("completeText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previewText",{get:function(){return this.getLocalizableStringText("previewText")},set:function(e){this.setLocalizableStringText("previewText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPreviewText",{get:function(){return this.getLocalizableString("previewText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editText",{get:function(){return this.getLocalizableStringText("editText")},set:function(e){this.setLocalizableStringText("editText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEditText",{get:function(){return this.getLocalizableString("editText")},enumerable:!1,configurable:!0}),t.prototype.getElementTitleTagName=function(e,t){if(this.onGetTitleTagName.isEmpty)return t;var r={element:e,tagName:t};return this.onGetTitleTagName.fire(this,r),r.tagName},Object.defineProperty(t.prototype,"questionTitlePattern",{get:function(){return this.getPropertyValue("questionTitlePattern","numTitleRequire")},set:function(e){"numRequireTitle"!==e&&"requireNumTitle"!==e&&"numTitle"!=e&&(e="numTitleRequire"),this.setPropertyValue("questionTitlePattern",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitlePatternOptions=function(){var e=new Array,t=this.getLocalizationString("questionTitlePatternText"),r=this.questionStartIndex?this.questionStartIndex:"1.";return e.push({value:"numTitleRequire",text:r+" "+t+" "+this.requiredText}),e.push({value:"numRequireTitle",text:r+" "+this.requiredText+" "+t}),e.push({value:"requireNumTitle",text:this.requiredText+" "+r+" "+t}),e.push({value:"numTitle",text:r+" "+t}),e},Object.defineProperty(t.prototype,"questionTitleTemplate",{get:function(){return this.getLocalizableStringText("questionTitleTemplate")},set:function(e){this.setLocalizableStringText("questionTitleTemplate",e),this.questionTitlePattern=this.getNewTitlePattern(e),this.questionStartIndex=this.getNewQuestionTitleElement(e,"no",this.questionStartIndex,"1"),this.requiredText=this.getNewQuestionTitleElement(e,"require",this.requiredText,"*")},enumerable:!1,configurable:!0}),t.prototype.getNewTitlePattern=function(e){if(e){for(var t=[];e.indexOf("{")>-1;){var r=(e=e.substring(e.indexOf("{")+1)).indexOf("}");if(r<0)break;t.push(e.substring(0,r)),e=e.substring(r+1)}if(t.length>1){if("require"==t[0])return"requireNumTitle";if("require"==t[1]&&3==t.length)return"numRequireTitle";if(t.indexOf("require")<0)return"numTitle"}if(1==t.length&&"title"==t[0])return"numTitle"}return"numTitleRequire"},t.prototype.getNewQuestionTitleElement=function(e,t,r,n){if(t="{"+t+"}",!e||e.indexOf(t)<0)return r;for(var o=e.indexOf(t),i="",s="",a=o-1;a>=0&&"}"!=e[a];a--);for(a<o-1&&(i=e.substring(a+1,o)),a=o+=t.length;a<e.length&&"{"!=e[a];a++);for(a>o&&(s=e.substring(o,a)),a=0;a<i.length&&i.charCodeAt(a)<33;)a++;for(i=i.substring(a),a=s.length-1;a>=0&&s.charCodeAt(a)<33;)a--;return s=s.substring(0,a+1),i||s?i+(r||n)+s:r},Object.defineProperty(t.prototype,"locQuestionTitleTemplate",{get:function(){return this.getLocalizableString("questionTitleTemplate")},enumerable:!1,configurable:!0}),t.prototype.getUpdatedQuestionTitle=function(e,t){if(this.onGetQuestionTitle.isEmpty)return t;var r={question:e,title:t};return this.onGetQuestionTitle.fire(this,r),r.title},t.prototype.getUpdatedQuestionNo=function(e,t){if(this.onGetQuestionNo.isEmpty)return t;var r={question:e,no:t};return this.onGetQuestionNo.fire(this,r),r.no},Object.defineProperty(t.prototype,"showPageNumbers",{get:function(){return this.getPropertyValue("showPageNumbers")},set:function(e){e!==this.showPageNumbers&&(this.setPropertyValue("showPageNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){!0===e&&(e="on"),!1===e&&(e="off"),(e="onpage"===(e=e.toLowerCase())?"onPage":e)!==this.showQuestionNumbers&&(this.setPropertyValue("showQuestionNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showProgressBar",{get:function(){return this.getPropertyValue("showProgressBar")},set:function(e){this.setPropertyValue("showProgressBar",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarType",{get:function(){return this.getPropertyValue("progressBarType")},set:function(e){"correctquestion"===e&&(e="correctQuestion"),"requiredquestion"===e&&(e="requiredQuestion"),this.setPropertyValue("progressBarType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnTop",{get:function(){return!!this.canShowProresBar()&&("top"===this.showProgressBar||"both"===this.showProgressBar)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnBottom",{get:function(){return!!this.canShowProresBar()&&("bottom"===this.showProgressBar||"both"===this.showProgressBar)},enumerable:!1,configurable:!0}),t.prototype.getProgressCssClasses=function(){return(new C.CssClassBuilder).append(this.css.progress).append(this.css.progressTop,this.isShowProgressBarOnTop).append(this.css.progressBottom,this.isShowProgressBarOnBottom).toString()},t.prototype.canShowProresBar=function(){return!this.isShowingPreview||"showAllQuestions"!=this.showPreviewBeforeComplete},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase()),this.isLoadingFromJson||this.updateElementCss(!0)},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.startedPage&&this.startedPage.updateElementCss(e);for(var t=this.visiblePages,r=0;r<t.length;r++)t[r].updateElementCss(e)},Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionDescriptionLocation",{get:function(){return this.getPropertyValue("questionDescriptionLocation")},set:function(e){this.setPropertyValue("questionDescriptionLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this.getPropertyValue("mode")},set:function(e){(e=e.toLowerCase())!=this.mode&&("edit"!=e&&"display"!=e||this.setPropertyValue("mode",e))},enumerable:!1,configurable:!0}),t.prototype.onModeChanged=function(){for(var e=0;e<this.pages.length;e++){var t=this.pages[e];t.setPropertyValue("isReadOnly",t.isReadOnly)}this.updateButtonsVisibility(),this.updateCss()},Object.defineProperty(t.prototype,"data",{get:function(){for(var e={},t=this.getValuesKeys(),r=0;r<t.length;r++){var n=t[r],o=this.getDataValueCore(this.valuesHash,n);void 0!==o&&(e[n]=o)}return this.setCalculatedValuesIntoResult(e),e},set:function(e){this.valuesHash={},this.setDataCore(e)},enumerable:!1,configurable:!0}),t.prototype.mergeData=function(e){if(e){var t=this.data;this.mergeValues(e,t),this.setDataCore(t)}},t.prototype.setDataCore=function(e){if(e)for(var t in e)this.setDataValueCore(this.valuesHash,t,e[t]);this.updateAllQuestionsValue(),this.notifyAllQuestionsOnValueChanged(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.runConditions(),this.updateAllQuestionsValue()},t.prototype.getStructuredData=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=-1),0===t)return this.data;var r={};return this.pages.forEach((function(n){if(e){var o={};n.collectValues(o,t-1)&&(r[n.name]=o)}else n.collectValues(r,t)})),r},t.prototype.setStructuredData=function(e,t){if(void 0===t&&(t=!1),e){var r={};for(var n in e)if(this.getQuestionByValueName(n))r[n]=e[n];else{var o=this.getPageByName(n);o||(o=this.getPanelByName(n)),o&&this.collectDataFromPanel(o,r,e[n])}t?this.mergeData(r):this.data=r}},t.prototype.collectDataFromPanel=function(e,t,r){for(var n in r){var o=e.getElementByName(n);o&&(o.isPanel?this.collectDataFromPanel(o,t,r[n]):t[n]=r[n])}},Object.defineProperty(t.prototype,"editingObj",{get:function(){return this.editingObjValue},set:function(e){var t=this;if(this.editingObj!=e&&(this.editingObj&&this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=e,!this.isDisposed)){if(!e)for(var r=this.getAllQuestions(),n=0;n<r.length;n++)r[n].unbindValue();this.editingObj&&(this.setDataCore({}),this.onEditingObjPropertyChanged=function(e,r){i.Serializer.hasOriginalProperty(t.editingObj,r.name)&&t.updateOnSetValue(r.name,t.editingObj[r.name],r.oldValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEditingSurveyElement",{get:function(){return!!this.editingObj},enumerable:!1,configurable:!0}),t.prototype.setCalculatedValuesIntoResult=function(e){for(var t=0;t<this.calculatedValues.length;t++){var r=this.calculatedValues[t];r.includeIntoResult&&r.name&&void 0!==this.getVariable(r.name)&&(e[r.name]=this.getVariable(r.name))}},t.prototype.getAllValues=function(){return this.data},t.prototype.getPlainData=function(e){e||(e={includeEmpty:!0,includeQuestionTypes:!1,includeValues:!1});var t=[],r=[];if(this.getAllQuestions().forEach((function(n){var o=n.getPlainData(e);o&&(t.push(o),r.push(n.valueName||n.name))})),e.includeValues)for(var n=this.getValuesKeys(),o=0;o<n.length;o++){var i=n[o];if(-1==r.indexOf(i)){var s=this.getDataValueCore(this.valuesHash,i);s&&t.push({name:i,title:i,value:s,displayValue:s,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}})}}return t},t.prototype.getFilteredValues=function(){var e={};for(var t in this.variablesHash)e[t]=this.variablesHash[t];this.addCalculatedValuesIntoFilteredValues(e);for(var r=this.getValuesKeys(),n=0;n<r.length;n++)e[t=r[n]]=this.getDataValueCore(this.valuesHash,t);return e},t.prototype.addCalculatedValuesIntoFilteredValues=function(e){for(var t=this.calculatedValues,r=0;r<t.length;r++)e[t[r].name]=t[r].value},t.prototype.getFilteredProperties=function(){return{survey:this}},t.prototype.getValuesKeys=function(){if(!this.editingObj)return Object.keys(this.valuesHash);for(var e=i.Serializer.getPropertiesByObj(this.editingObj),t=[],r=0;r<e.length;r++)t.push(e[r].name);return t},t.prototype.getDataValueCore=function(e,t){return this.editingObj?i.Serializer.getObjPropertyValue(this.editingObj,t):this.getDataFromValueHash(e,t)},t.prototype.setDataValueCore=function(e,t,r){this.editingObj?i.Serializer.setObjPropertyValue(this.editingObj,t,r):this.setDataToValueHash(e,t,r)},t.prototype.deleteDataValueCore=function(e,t){this.editingObj?this.editingObj[t]=null:this.deleteDataFromValueHash(e,t)},t.prototype.getDataFromValueHash=function(e,t){return this.valueHashGetDataCallback?this.valueHashGetDataCallback(e,t):e[t]},t.prototype.setDataToValueHash=function(e,t,r){this.valueHashSetDataCallback?this.valueHashSetDataCallback(e,t,r):e[t]=r},t.prototype.deleteDataFromValueHash=function(e,t){this.valueHashDeleteDataCallback?this.valueHashDeleteDataCallback(e,t):delete e[t]},Object.defineProperty(t.prototype,"comments",{get:function(){for(var e={},t=this.getValuesKeys(),r=0;r<t.length;r++){var n=t[r];n.indexOf(this.commentSuffix)>0&&(e[n]=this.getDataValueCore(this.valuesHash,n))}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePages",{get:function(){if(this.isDesignMode)return this.pages;for(var e=new Array,t=0;t<this.pages.length;t++)this.isPageInVisibleList(this.pages[t])&&e.push(this.pages[t]);return e},enumerable:!1,configurable:!0}),t.prototype.isPageInVisibleList=function(e){return this.isDesignMode||e.isVisible&&!e.isStartPage},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0==this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PageCount",{get:function(){return this.pageCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCount",{get:function(){return this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePageCount",{get:function(){return this.visiblePages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startedPage",{get:function(){var e=this.firstPageIsStarted&&this.pages.length>1?this.pages[0]:null;return e&&(e.onFirstRendering(),e.setWasShown(!0)),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){return this.getPropertyValue("currentPage",null)},set:function(e){if(!this.isLoadingFromJson){var t=this.getPageByObject(e);if((!e||t)&&(t||!this.isCurrentPageAvailable)){var r=this.visiblePages;if(!(null!=t&&r.indexOf(t)<0)&&t!=this.currentPage){var n=this.currentPage;this.currentPageChanging(t,n)&&(this.setPropertyValue("currentPage",t),t&&(t.onFirstRendering(),t.updateCustomWidgets(),t.setWasShown(!0)),this.locStrsChanged(),this.currentPageChanged(t,n))}}}},enumerable:!1,configurable:!0}),t.prototype.updateCurrentPage=function(){this.isCurrentPageAvailable||(this.currentPage=this.firstVisiblePage)},Object.defineProperty(t.prototype,"isCurrentPageAvailable",{get:function(){var e=this.currentPage;return!!e&&this.isPageInVisibleList(e)&&this.isPageExistsInSurvey(e)},enumerable:!1,configurable:!0}),t.prototype.isPageExistsInSurvey=function(e){return this.pages.indexOf(e)>-1||!!this.onContainsPageCallback&&this.onContainsPageCallback(e)},Object.defineProperty(t.prototype,"activePage",{get:function(){return this.getPropertyValue("activePage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowStartingPage",{get:function(){return"starting"===this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPage",{get:function(){return"running"==this.state||"preview"==this.state||this.isShowStartingPage},enumerable:!1,configurable:!0}),t.prototype.updateActivePage=function(){var e=this.isShowStartingPage?this.startedPage:this.currentPage;this.setPropertyValue("activePage",e)},t.prototype.onStateAndCurrentPageChanged=function(){this.updateActivePage(),this.updateButtonsVisibility()},t.prototype.getPageByObject=function(e){if(!e)return null;if(e.getType&&"page"==e.getType())return e;if("string"==typeof e||e instanceof String)return this.getPageByName(String(e));if(!isNaN(e)){var t=Number(e),r=this.visiblePages;return e<0||e>=r.length?null:r[t]}return e},Object.defineProperty(t.prototype,"currentPageNo",{get:function(){return this.visiblePages.indexOf(this.currentPage)},set:function(e){var t=this.visiblePages;e<0||e>=t.length||(this.currentPage=t[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.focusFirstQuestion=function(){if(!this.isFocusingQuestion){var e=this.activePage;e&&(e.scrollToTop(),e.focusFirstQuestion())}},t.prototype.scrollToTopOnPageChange=function(e){void 0===e&&(e=!0);var t=this.activePage;t&&(e&&t.scrollToTop(),this.isCurrentPageRendering&&this.focusFirstQuestionAutomatic&&!this.isFocusingQuestion&&(t.focusFirstQuestion(),this.isCurrentPageRendering=!1))},Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state","empty")},enumerable:!1,configurable:!0}),t.prototype.updateState=function(){this.setPropertyValue("state",this.calcState())},t.prototype.calcState=function(){return this.isLoading?"loading":this.isCompleted?"completed":this.isCompletedBefore?"completedbefore":!this.isDesignMode&&this.isEditMode&&this.isStartedState&&this.startedPage?"starting":this.isShowingPreview?this.currentPage?"preview":"empty":this.currentPage?"running":"empty"},Object.defineProperty(t.prototype,"isCompleted",{get:function(){return this.getPropertyValue("isCompleted",!1)},set:function(e){this.setPropertyValue("isCompleted",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPreview",{get:function(){return this.getPropertyValue("isShowingPreview",!1)},set:function(e){this.isShowingPreview!=e&&(this.setPropertyValue("isShowingPreview",e),this.onShowingPreviewChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStartedState",{get:function(){return this.getPropertyValue("isStartedState",!1)},set:function(e){this.setPropertyValue("isStartedState",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompletedBefore",{get:function(){return this.getPropertyValue("isCompletedBefore",!1)},set:function(e){this.setPropertyValue("isCompletedBefore",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLoading",{get:function(){return this.getPropertyValue("isLoading",!1)},set:function(e){this.setPropertyValue("isLoading",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedState",{get:function(){return this.getPropertyValue("completedState","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedStateText",{get:function(){return this.getPropertyValue("completedStateText","")},enumerable:!1,configurable:!0}),t.prototype.setCompletedState=function(e,t){this.setPropertyValue("completedState",e),t||("saving"==e&&(t=this.getLocalizationString("savingData")),"error"==e&&(t=this.getLocalizationString("savingDataError")),"success"==e&&(t=this.getLocalizationString("savingDataSuccess"))),this.setPropertyValue("completedStateText",t),"completed"===this.state&&this.showCompletedPage&&this.completedState&&this.notify(this.completedStateText,this.completedState)},t.prototype.notify=function(e,t){this.notifier.notify(e,t,"error"===t)},t.prototype.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),this.isCompleted=!1,this.isCompletedBefore=!1,this.isLoading=!1,this.completedByTriggers=void 0,e&&(this.data=null,this.variablesHash={}),this.timerModel.spent=0;for(var r=0;r<this.pages.length;r++)this.pages[r].timeSpent=0,this.pages[r].setWasShown(!1),this.pages[r].passed=!1;this.onFirstPageIsStartedChanged(),t&&(this.currentPage=this.firstVisiblePage),e&&this.updateValuesWithDefaults()},t.prototype.mergeValues=function(e,t){Object(v.mergeValues)(e,t)},t.prototype.updateValuesWithDefaults=function(){if(!this.isDesignMode&&!this.isLoading)for(var e=0;e<this.pages.length;e++)for(var t=this.pages[e].questions,r=0;r<t.length;r++)t[r].updateValueWithDefaults()},t.prototype.updateCustomWidgets=function(e){e&&e.updateCustomWidgets()},t.prototype.currentPageChanging=function(e,t){var r=this.createPageChangeEventOptions(e,t);r.allow=!0,r.allowChanging=!0,this.onCurrentPageChanging.fire(this,r);var n=r.allowChanging&&r.allow;return n&&(this.isCurrentPageRendering=!0),n},t.prototype.currentPageChanged=function(e,t){var r=this.createPageChangeEventOptions(e,t);r.isNextPage&&(t.passed=!0),this.onCurrentPageChanged.fire(this,r)},t.prototype.createPageChangeEventOptions=function(e,t){var r=e&&t?e.visibleIndex-t.visibleIndex:0;return{oldCurrentPage:t,newCurrentPage:e,isNextPage:1===r,isPrevPage:-1===r,isGoingForward:r>0,isGoingBackward:r<0}},t.prototype.getProgress=function(){if(null==this.currentPage)return 0;if("pages"!==this.progressBarType){var e=this.getProgressInfo();return"requiredQuestions"===this.progressBarType?e.requiredQuestionCount>=1?Math.ceil(100*e.requiredAnsweredQuestionCount/e.requiredQuestionCount):100:e.questionCount>=1?Math.ceil(100*e.answeredQuestionCount/e.questionCount):100}var t=this.visiblePages,r=t.indexOf(this.currentPage)+1;return Math.ceil(100*r/t.length)},Object.defineProperty(t.prototype,"progressValue",{get:function(){return this.getPropertyValue("progressValue",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowing",{get:function(){if(this.isDesignMode)return"none";var e=this.currentPage;return e?"show"===e.navigationButtonsVisibility?"none"===this.showNavigationButtons?"bottom":this.showNavigationButtons:"hide"===e.navigationButtonsVisibility?"none":this.showNavigationButtons:"none"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnTop",{get:function(){return this.getIsNavigationButtonsShowingOn("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnBottom",{get:function(){return this.getIsNavigationButtonsShowingOn("bottom")},enumerable:!1,configurable:!0}),t.prototype.getIsNavigationButtonsShowingOn=function(e){var t=this.isNavigationButtonsShowing;return"both"==t||t==e},Object.defineProperty(t.prototype,"isEditMode",{get:function(){return"edit"==this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return"display"==this.mode||"preview"==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateValueTextOnTyping",{get:function(){return"onTyping"==this.textUpdateMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return this._isDesignMode},enumerable:!1,configurable:!0}),t.prototype.setDesignMode=function(e){!!this._isDesignMode!=!!e&&(this._isDesignMode=!!e,this.onQuestionsOnPageModeChanged("standard"))},Object.defineProperty(t.prototype,"showInvisibleElements",{get:function(){return this.getPropertyValue("showInvisibleElements",!1)},set:function(e){var t=this.visiblePages;this.setPropertyValue("showInvisibleElements",e),this.isLoadingFromJson||(this.runConditions(),this.updateAllElementsVisibility(t))},enumerable:!1,configurable:!0}),t.prototype.updateAllElementsVisibility=function(e){for(var t=0;t<this.pages.length;t++){var r=this.pages[t];r.updateElementVisibility(),e.indexOf(r)>-1!=r.isVisible&&this.onPageVisibleChanged.fire(this,{page:r,visible:r.isVisible})}},Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return this.isDesignMode||this.showInvisibleElements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areEmptyElementsHidden",{get:function(){return this.isShowingPreview&&"showAnsweredQuestions"==this.showPreviewBeforeComplete},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCookie",{get:function(){if(!this.cookieName||"undefined"==typeof document)return!1;var e=document.cookie;return e&&e.indexOf(this.cookieName+"=true")>-1},enumerable:!1,configurable:!0}),t.prototype.setCookie=function(){this.cookieName&&"undefined"!=typeof document&&(document.cookie=this.cookieName+"=true; expires=Fri, 31 Dec 9999 0:0:0 GMT")},t.prototype.deleteCookie=function(){this.cookieName&&(document.cookie=this.cookieName+"=;")},t.prototype.nextPage=function(){return!this.isLastPage&&this.doCurrentPageComplete(!1)},t.prototype.hasErrorsOnNavigate=function(e){var t=this;if(this.ignoreValidation||!this.isEditMode)return!1;var r=function(r){r||t.doCurrentPageCompleteCore(e)};return"onComplete"===this.checkErrorsMode?!!this.isLastPage&&!0!==this.validate(!0,!0,r):!0!==this.validateCurrentPage(r)},t.prototype.checkForAsyncQuestionValidation=function(e,t){var r=this;this.clearAsyncValidationQuesitons();for(var n=function(){if(e[i].isRunningValidators){var n=e[i];n.onCompletedAsyncValidators=function(e){r.onCompletedAsyncQuestionValidators(n,t,e)},o.asyncValidationQuesitons.push(e[i])}},o=this,i=0;i<e.length;i++)n();return this.asyncValidationQuesitons.length>0},t.prototype.clearAsyncValidationQuesitons=function(){if(this.asyncValidationQuesitons)for(var e=this.asyncValidationQuesitons,t=0;t<e.length;t++)e[t].onCompletedAsyncValidators=null;this.asyncValidationQuesitons=[]},t.prototype.onCompletedAsyncQuestionValidators=function(e,t,r){if(r){if(this.clearAsyncValidationQuesitons(),t(!0),this.focusOnFirstError&&e&&e.page&&e.page===this.currentPage){for(var n=this.currentPage.questions,o=0;o<n.length;o++)if(n[o]!==e&&n[o].errors.length>0)return;e.focus(!0)}}else{for(var i=this.asyncValidationQuesitons,s=0;s<i.length;s++)if(i[s].isRunningValidators)return;t(!1)}},Object.defineProperty(t.prototype,"isCurrentPageHasErrors",{get:function(){return this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCurrentPageValid",{get:function(){return!this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),t.prototype.hasCurrentPageErrors=function(e){return this.hasPageErrors(void 0,e)},t.prototype.validateCurrentPage=function(e){return this.validatePage(void 0,e)},t.prototype.hasPageErrors=function(e,t){var r=this.validatePage(e,t);return void 0===r?r:!r},t.prototype.validatePage=function(e,t){return e||(e=this.activePage),!e||!this.checkIsPageHasErrors(e)&&(!t||!this.checkForAsyncQuestionValidation(e.questions,(function(e){return t(e)}))||void 0)},t.prototype.hasErrors=function(e,t,r){void 0===e&&(e=!0),void 0===t&&(t=!1);var n=this.validate(e,t,r);return void 0===n?n:!n},t.prototype.validate=function(e,t,r){void 0===e&&(e=!0),void 0===t&&(t=!1),r&&(e=!0);for(var n=this.visiblePages,o=null,i=!0,s=0;s<n.length;s++)n[s].validate(e,!1)||(o||(o=n[s]),i=!1);if(t&&o){this.currentPage=o;var a=o.questions;for(s=0;s<a.length;s++)if(a[s].errors.length>0){a[s].focus(!0);break}}return i&&r?!this.checkForAsyncQuestionValidation(this.getAllQuestions(),(function(e){return r(e)}))||void 0:i},t.prototype.ensureUniqueNames=function(e){if(void 0===e&&(e=null),null==e)for(var t=0;t<this.pages.length;t++)this.ensureUniqueName(this.pages[t]);else this.ensureUniqueName(e)},t.prototype.ensureUniqueName=function(e){if(e.isPage&&this.ensureUniquePageName(e),e.isPanel&&this.ensureUniquePanelName(e),e.isPage||e.isPanel)for(var t=e.elements,r=0;r<t.length;r++)this.ensureUniqueNames(t[r]);else this.ensureUniqueQuestionName(e)},t.prototype.ensureUniquePageName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getPageByName(e)}))},t.prototype.ensureUniquePanelName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getPanelByName(e)}))},t.prototype.ensureUniqueQuestionName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getQuestionByName(e)}))},t.prototype.ensureUniqueElementName=function(e,t){var r=t(e.name);if(r&&r!=e){for(var n=this.getNewName(e.name);t(n);)n=this.getNewName(e.name);e.name=n}},t.prototype.getNewName=function(e){for(var t=e.length;t>0&&e[t-1]>="0"&&e[t-1]<="9";)t--;var r=e.substring(0,t),n=0;return t<e.length&&(n=parseInt(e.substring(t))),r+ ++n},t.prototype.checkIsCurrentPageHasErrors=function(e){return void 0===e&&(e=void 0),this.checkIsPageHasErrors(this.activePage,e)},t.prototype.checkIsPageHasErrors=function(e,t){if(void 0===t&&(t=void 0),void 0===t&&(t=this.focusOnFirstError),!e)return!0;var r=!e.validate(!0,t);return this.fireValidatedErrorsOnPage(e),r},t.prototype.fireValidatedErrorsOnPage=function(e){if(!this.onValidatedErrorsOnCurrentPage.isEmpty&&e){for(var t=e.questions,r=new Array,n=new Array,o=0;o<t.length;o++){var i=t[o];if(i.errors.length>0){r.push(i);for(var s=0;s<i.errors.length;s++)n.push(i.errors[s])}}this.onValidatedErrorsOnCurrentPage.fire(this,{questions:r,errors:n,page:e})}},t.prototype.prevPage=function(){var e=this;if(this.isFirstPage||"starting"===this.state)return!1;this.resetNavigationButton();var t=this.skippedPages.find((function(t){return t.to==e.currentPage}));if(t)this.currentPage=t.from,this.skippedPages.splice(this.skippedPages.indexOf(t),1);else{var r=this.visiblePages,n=r.indexOf(this.currentPage);this.currentPage=r[n-1]}return!0},t.prototype.completeLastPage=function(){var e=this.doCurrentPageComplete(!0);return e&&this.cancelPreview(),e},t.prototype.navigationMouseDown=function(){return this.isNavigationButtonPressed=!0,!0},t.prototype.resetNavigationButton=function(){this.isNavigationButtonPressed=!1},t.prototype.nextPageUIClick=function(){if(!this.mouseDownPage||this.mouseDownPage===this.activePage)return this.mouseDownPage=null,this.nextPage()},t.prototype.nextPageMouseDown=function(){return this.mouseDownPage=this.activePage,this.navigationMouseDown()},t.prototype.showPreview=function(){return this.resetNavigationButton(),!this.hasErrorsOnNavigate(!0)&&!this.doServerValidation(!0,!0)&&(this.showPreviewCore(),!0)},t.prototype.showPreviewCore=function(){var e={allowShowPreview:!0,allow:!0};this.onShowingPreview.fire(this,e),this.isShowingPreview=e.allowShowPreview&&e.allow},t.prototype.cancelPreview=function(e){void 0===e&&(e=null),this.isShowingPreview&&(this.isShowingPreview=!1,o.Helpers.isValueEmpty(e)&&this.visiblePageCount>0&&(e=this.visiblePageCount-1),null!==e&&(this.currentPage=e))},t.prototype.cancelPreviewByPage=function(e){this.cancelPreview(e.originalPage)},t.prototype.doCurrentPageComplete=function(e){return!this.isValidatingOnServer&&(this.resetNavigationButton(),!this.hasErrorsOnNavigate(e)&&this.doCurrentPageCompleteCore(e))},t.prototype.doCurrentPageCompleteCore=function(e){return!this.doServerValidation(e)&&(e?(this.currentPage.passed=!0,this.doComplete()):(this.doNextPage(),!0))},Object.defineProperty(t.prototype,"isSinglePage",{get:function(){return"singlePage"==this.questionsOnPageMode},set:function(e){this.questionsOnPageMode=e?"singlePage":"standard"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOnPageMode",{get:function(){return this.getPropertyValue("questionsOnPageMode")},set:function(e){this.setPropertyValue("questionsOnPageMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"firstPageIsStarted",{get:function(){return this.getPropertyValue("firstPageIsStarted")},set:function(e){this.setPropertyValue("firstPageIsStarted",e)},enumerable:!1,configurable:!0}),t.prototype.isPageStarted=function(e){return this.firstPageIsStarted&&this.pages.length>1&&this.pages[0]===e},Object.defineProperty(t.prototype,"showPreviewBeforeComplete",{get:function(){return this.getPropertyValue("showPreviewBeforeComplete")},set:function(e){this.setPropertyValue("showPreviewBeforeComplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowPreviewBeforeComplete",{get:function(){var e=this.showPreviewBeforeComplete;return"showAllQuestions"==e||"showAnsweredQuestions"==e},enumerable:!1,configurable:!0}),t.prototype.onFirstPageIsStartedChanged=function(){this.isStartedState=this.firstPageIsStarted&&this.pages.length>1,this.pageVisibilityChanged(this.pages[0],!this.isStartedState)},t.prototype.onShowingPreviewChanged=function(){this.isDesignMode||(this.isShowingPreview?(this.runningPages=this.pages.slice(0,this.pages.length),this.setupPagesForPageModes(!0)):(this.runningPages&&this.restoreOrigionalPages(this.runningPages),this.runningPages=void 0),this.runConditions(),this.updateAllElementsVisibility(this.pages),this.updateVisibleIndexes(),this.currentPageNo=0)},t.prototype.onQuestionsOnPageModeChanged=function(e){this.isShowingPreview||("standard"==this.questionsOnPageMode||this.isDesignMode?(this.origionalPages&&this.restoreOrigionalPages(this.origionalPages),this.origionalPages=void 0):(e&&"standard"!=e||(this.origionalPages=this.pages.slice(0,this.pages.length)),this.setupPagesForPageModes(this.isSinglePage)),this.runConditions(),this.updateVisibleIndexes())},t.prototype.restoreOrigionalPages=function(e){this.questionHashesClear(),this.pages.splice(0,this.pages.length);for(var t=0;t<e.length;t++)this.pages.push(e[t])},t.prototype.getPageStartIndex=function(){return this.firstPageIsStarted&&this.pages.length>0?1:0},t.prototype.setupPagesForPageModes=function(t){this.questionHashesClear();var r=this.getPageStartIndex();e.prototype.startLoadingFromJson.call(this);var n=this.createPagesForQuestionOnPageMode(t,r),o=this.pages.length-r;this.pages.splice(r,o);for(var i=0;i<n.length;i++)this.pages.push(n[i]);for(e.prototype.endLoadingFromJson.call(this),i=0;i<n.length;i++)n[i].setSurveyImpl(this,!0);this.doElementsOnLoad(),this.updateCurrentPage()},t.prototype.createPagesForQuestionOnPageMode=function(e,t){return e?[this.createSinglePage(t)]:this.createPagesForEveryQuestion(t)},t.prototype.createSinglePage=function(e){var t=this.createNewPage("all");t.setSurveyImpl(this);for(var r=e;r<this.pages.length;r++){var n=this.pages[r],o=i.Serializer.createClass("panel");o.originalPage=n,t.addPanel(o);var s=(new i.JsonObject).toJsonObject(n);(new i.JsonObject).toObject(s,o),this.showPageTitles||(o.title="")}return t},t.prototype.createPagesForEveryQuestion=function(e){for(var t=[],r=e;r<this.pages.length;r++){var n=this.pages[r];n.setWasShown(!0);for(var o=0;o<n.elements.length;o++){var s=n.elements[o],a=i.Serializer.createClass(s.getType());if(a){var l=new i.JsonObject;l.lightSerializing=!0;var u=l.toJsonObject(n),c=i.Serializer.createClass(n.getType());c.fromJSON(u),c.name=s.name,c.setSurveyImpl(this),t.push(c);var p=(new i.JsonObject).toJsonObject(s);c.addElement(a),(new i.JsonObject).toObject(p,a);for(var d=0;d<c.questions.length;d++)this.questionHashesAdded(c.questions[d])}}}return t},Object.defineProperty(t.prototype,"isFirstPage",{get:function(){return this.getPropertyValue("isFirstPage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastPage",{get:function(){return this.getPropertyValue("isLastPage")},enumerable:!1,configurable:!0}),t.prototype.updateButtonsVisibility=function(){this.updateIsFirstLastPageState(),this.setPropertyValue("isShowPrevButton",this.calcIsShowPrevButton()),this.setPropertyValue("isShowNextButton",this.calcIsShowNextButton()),this.setPropertyValue("isCompleteButtonVisible",this.calcIsCompleteButtonVisible()),this.setPropertyValue("isPreviewButtonVisible",this.calcIsPreviewButtonVisible()),this.setPropertyValue("isCancelPreviewButtonVisible",this.calcIsCancelPreviewButtonVisible())},Object.defineProperty(t.prototype,"isShowPrevButton",{get:function(){return this.getPropertyValue("isShowPrevButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowNextButton",{get:function(){return this.getPropertyValue("isShowNextButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompleteButtonVisible",{get:function(){return this.getPropertyValue("isCompleteButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPreviewButtonVisible",{get:function(){return this.getPropertyValue("isPreviewButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCancelPreviewButtonVisible",{get:function(){return this.getPropertyValue("isCancelPreviewButtonVisible")},enumerable:!1,configurable:!0}),t.prototype.updateIsFirstLastPageState=function(){var e=this.currentPage;this.setPropertyValue("isFirstPage",!!e&&e===this.firstVisiblePage),this.setPropertyValue("isLastPage",!!e&&e===this.lastVisiblePage)},t.prototype.calcIsShowPrevButton=function(){if(this.isFirstPage||!this.showPrevButton||"running"!==this.state)return!1;var e=this.visiblePages[this.currentPageNo-1];return this.getPageMaxTimeToFinish(e)<=0},t.prototype.calcIsShowNextButton=function(){return"running"===this.state&&!this.isLastPage&&!this.canBeCompletedByTrigger},t.prototype.calcIsCompleteButtonVisible=function(){var e=this.state;return this.isEditMode&&("running"===this.state&&(this.isLastPage&&!this.isShowPreviewBeforeComplete||this.canBeCompletedByTrigger)||"preview"===e)},t.prototype.calcIsPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"running"==this.state&&this.isLastPage},t.prototype.calcIsCancelPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"preview"==this.state},Object.defineProperty(t.prototype,"firstVisiblePage",{get:function(){for(var e=this.pages,t=0;t<e.length;t++)if(this.isPageInVisibleList(e[t]))return e[t];return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastVisiblePage",{get:function(){for(var e=this.pages,t=e.length-1;t>=0;t--)if(this.isPageInVisibleList(e[t]))return e[t];return null},enumerable:!1,configurable:!0}),t.prototype.doComplete=function(e){if(void 0===e&&(e=!1),!this.isCompleted)return this.checkOnCompletingEvent(e)?(this.checkOnPageTriggers(!0),this.stopTimer(),this.isCompleted=!0,this.clearUnusedValues(),this.saveDataOnComplete(e),this.setCookie(),!0):(this.isCompleted=!1,!1)},t.prototype.saveDataOnComplete=function(e){var t=this;void 0===e&&(e=!1);var r=this.hasCookie,n=function(e){a=!0,t.setCompletedState("saving",e)},o=function(e){t.setCompletedState("error",e)},i=function(e){t.setCompletedState("success",e),t.navigateTo()},s=function(e){t.setCompletedState("","")},a=!1,l={isCompleteOnTrigger:e,showSaveInProgress:n,showSaveError:o,showSaveSuccess:i,clearSaveMessages:s,showDataSaving:n,showDataSavingError:o,showDataSavingSuccess:i,showDataSavingClear:s};this.onComplete.fire(this,l),!r&&this.surveyPostId&&this.sendResult(),a||this.navigateTo()},t.prototype.checkOnCompletingEvent=function(e){var t={allowComplete:!0,allow:!0,isCompleteOnTrigger:e};return this.onCompleting.fire(this,t),t.allowComplete&&t.allow},t.prototype.start=function(){return!!this.firstPageIsStarted&&!this.checkIsPageHasErrors(this.startedPage,!0)&&(this.isStartedState=!1,this.startTimerFromUI(),this.onStarted.fire(this,{}),this.updateVisibleIndexes(),this.currentPage&&this.currentPage.locStrsChanged(),!0)},Object.defineProperty(t.prototype,"isValidatingOnServer",{get:function(){return this.getPropertyValue("isValidatingOnServer",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsValidatingOnServer=function(e){e!=this.isValidatingOnServer&&(this.setPropertyValue("isValidatingOnServer",e),this.onIsValidatingOnServerChanged())},t.prototype.createServerValidationOptions=function(e,t){var r=this,n={data:{},errors:{},survey:this,complete:function(){r.completeServerValidation(n,t)}};if(e&&"onComplete"===this.checkErrorsMode)n.data=this.data;else for(var o=this.activePage.questions,i=0;i<o.length;i++){var s=o[i];if(s.visible){var a=this.getValue(s.getValueName());this.isValueEmpty(a)||(n.data[s.getValueName()]=a)}}return n},t.prototype.onIsValidatingOnServerChanged=function(){},t.prototype.doServerValidation=function(e,t){var r=this;if(void 0===t&&(t=!1),!this.onServerValidateQuestions||this.onServerValidateQuestions.isEmpty)return!1;if(!e&&"onComplete"===this.checkErrorsMode)return!1;this.setIsValidatingOnServer(!0);var n="function"==typeof this.onServerValidateQuestions;return this.serverValidationEventCount=n?1:this.onServerValidateQuestions.length,n?this.onServerValidateQuestions(this,this.createServerValidationOptions(e,t)):this.onServerValidateQuestions.fireByCreatingOptions(this,(function(){return r.createServerValidationOptions(e,t)})),!0},t.prototype.completeServerValidation=function(e,t){if(!(this.serverValidationEventCount>1&&(this.serverValidationEventCount--,e&&e.errors&&0===Object.keys(e.errors).length))&&(this.serverValidationEventCount=0,this.setIsValidatingOnServer(!1),e||e.survey)){var r=e.survey,n=!1;if(e.errors){var o=this.focusOnFirstError;for(var i in e.errors){var s=r.getQuestionByName(i);s&&s.errors&&(n=!0,s.addError(new h.CustomError(e.errors[i],this)),o&&(o=!1,s.page&&(this.currentPage=s.page),s.focus(!0)))}this.fireValidatedErrorsOnPage(this.currentPage)}n||(t?this.showPreviewCore():r.isLastPage?r.doComplete():r.doNextPage())}},t.prototype.doNextPage=function(){var e=this.currentPage;if(this.checkOnPageTriggers(!1),this.isCompleted)this.doComplete(!0);else if(this.sendResultOnPageNext&&this.sendResult(this.surveyPostId,this.clientId,!0),e===this.currentPage){var t=this.visiblePages,r=t.indexOf(this.currentPage);this.currentPage=t[r+1]}},t.prototype.setCompleted=function(){this.doComplete(!0)},t.prototype.canBeCompleted=function(e,t){if(y.settings.changeNavigationButtonsOnCompleteTrigger){var r=this.canBeCompletedByTrigger;this.completedByTriggers||(this.completedByTriggers={}),t?this.completedByTriggers[e.id]=!0:delete this.completedByTriggers[e.id],r!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility()}},Object.defineProperty(t.prototype,"canBeCompletedByTrigger",{get:function(){return!!this.completedByTriggers&&Object.keys(this.completedByTriggers).length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedHtml",{get:function(){var e=this.renderedCompletedHtml;return e?this.processHtml(e,"completed"):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedBeforeHtml",{get:function(){return this.processHtml(this.completedBeforeHtml,"completed-before")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedLoadingHtml",{get:function(){return this.processHtml(this.loadingHtml,"loading")},enumerable:!1,configurable:!0}),t.prototype.getProgressInfo=function(){var e=this.isDesignMode?this.pages:this.visiblePages;return a.SurveyElement.getProgressInfoByElements(e,!1)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.getPropertyValue("progressText","");return e||(this.updateProgressText(),e=this.getPropertyValue("progressText","")),e},enumerable:!1,configurable:!0}),t.prototype.updateProgressText=function(e){void 0===e&&(e=!1),this.isCalculatingProgressText||e&&"pages"==this.progressBarType&&this.onProgressText.isEmpty||(this.isCalculatingProgressText=!0,this.setPropertyValue("progressText",this.getProgressText()),this.setPropertyValue("progressValue",this.getProgress()),this.isCalculatingProgressText=!1)},t.prototype.getProgressText=function(){if(!this.isDesignMode&&null==this.currentPage)return"";var e={questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0,text:""},t=this.progressBarType.toLowerCase();if("questions"===t||"requiredquestions"===t||"correctquestions"===t||!this.onProgressText.isEmpty){var r=this.getProgressInfo();e.questionCount=r.questionCount,e.answeredQuestionCount=r.answeredQuestionCount,e.requiredQuestionCount=r.requiredQuestionCount,e.requiredAnsweredQuestionCount=r.requiredAnsweredQuestionCount}return e.text=this.getProgressTextCore(e),this.onProgressText.fire(this,e),e.text},t.prototype.getProgressTextCore=function(e){var t=this.progressBarType.toLowerCase();if("questions"===t)return this.getLocalizationFormatString("questionsProgressText",e.answeredQuestionCount,e.questionCount);if("requiredquestions"===t)return this.getLocalizationFormatString("questionsProgressText",e.requiredAnsweredQuestionCount,e.requiredQuestionCount);if("correctquestions"===t){var r=this.getCorrectedAnswerCount();return this.getLocalizationFormatString("questionsProgressText",r,e.questionCount)}var n=this.isDesignMode?this.pages:this.visiblePages,o=n.indexOf(this.currentPage)+1;return this.getLocalizationFormatString("progressText",o,n.length)},t.prototype.getRootCss=function(){return(new C.CssClassBuilder).append(this.css.root).append(this.css.rootMobile,this.isMobile).append(this.css.rootReadOnly,"display"===this.mode).toString()},t.prototype.afterRenderSurvey=function(e){var t=this;this.destroyResizeObserver(),Array.isArray(e)&&(e=a.SurveyElement.GetFirstNonTextElement(e));var r=e,n=this.css.variables;if(n){var o=Number.parseFloat(window.getComputedStyle(r).getPropertyValue(n.mobileWidth));if(o){var i=!1;this.resizeObserver=new ResizeObserver((function(){i=!(i||!Object(v.isContainerVisible)(r))&&t.processResponsiveness(r.offsetWidth,o)})),this.resizeObserver.observe(r)}}this.onAfterRenderSurvey.fire(this,{survey:this,htmlElement:e})},t.prototype.processResponsiveness=function(e,t){var r=e<t;return this.isMobile!==r&&(this.setIsMobile(r),!0)},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0)},t.prototype.updateQuestionCssClasses=function(e,t){this.onUpdateQuestionCssClasses.fire(this,{question:e,cssClasses:t})},t.prototype.updatePanelCssClasses=function(e,t){this.onUpdatePanelCssClasses.fire(this,{panel:e,cssClasses:t})},t.prototype.updatePageCssClasses=function(e,t){this.onUpdatePageCssClasses.fire(this,{page:e,cssClasses:t})},t.prototype.updateChoiceItemCss=function(e,t){t.question=e,this.onUpdateChoiceItemCss.fire(this,t)},t.prototype.afterRenderPage=function(e){var t=this;for(this.isDesignMode||this.isFocusingQuestion||setTimeout((function(){return t.scrollToTopOnPageChange(!t.isFirstPageRendering)}),1);this.afterRenderPageTasks.length>0;)this.afterRenderPageTasks.shift()();this.isFirstPageRendering=!1,this.onAfterRenderPage.isEmpty||this.onAfterRenderPage.fire(this,{page:this.activePage,htmlElement:e})},t.prototype.afterRenderHeader=function(e){this.onAfterRenderHeader.isEmpty||this.onAfterRenderHeader.fire(this,{htmlElement:e})},t.prototype.afterRenderQuestion=function(e,t){this.onAfterRenderQuestion.fire(this,{question:e,htmlElement:t})},t.prototype.afterRenderQuestionInput=function(e,t){if(!this.onAfterRenderQuestionInput.isEmpty){var r=e.inputId,n=y.settings.environment.root;if(r&&t.id!==r&&void 0!==n){var o=n.getElementById(r);o&&(t=o)}this.onAfterRenderQuestionInput.fire(this,{question:e,htmlElement:t})}},t.prototype.afterRenderPanel=function(e,t){this.onAfterRenderPanel.fire(this,{panel:e,htmlElement:t})},t.prototype.whenQuestionFocusIn=function(e){this.onFocusInQuestion.fire(this,{question:e})},t.prototype.whenPanelFocusIn=function(e){this.onFocusInPanel.fire(this,{panel:e})},t.prototype.rebuildQuestionChoices=function(){this.getAllQuestions().forEach((function(e){return e.surveyChoiceItemVisibilityChange()}))},t.prototype.canChangeChoiceItemsVisibility=function(){return!this.onShowingChoiceItem.isEmpty},t.prototype.getChoiceItemVisibility=function(e,t,r){var n={question:e,item:t,visible:r};return this.onShowingChoiceItem.fire(this,n),n.visible},t.prototype.loadQuestionChoices=function(e){this.onChoicesLazyLoad.fire(this,e)},t.prototype.getChoiceDisplayValue=function(e){this.onGetChoiceDisplayValue.isEmpty?e.setItems(null):this.onGetChoiceDisplayValue.fire(this,e)},t.prototype.matrixBeforeRowAdded=function(e){this.onMatrixBeforeRowAdded.fire(this,e)},t.prototype.matrixRowAdded=function(e,t){this.onMatrixRowAdded.fire(this,{question:e,row:t})},t.prototype.matrixColumnAdded=function(e,t){this.onMatrixColumnAdded.fire(this,{question:e,column:t})},t.prototype.multipleTextItemAdded=function(e,t){this.onMultipleTextItemAdded.fire(this,{question:e,item:t})},t.prototype.getQuestionByValueNameFromArray=function(e,t,r){var n=this.getQuestionsByValueName(e);if(n){for(var o=0;o<n.length;o++){var i=n[o].getQuestionFromArray(t,r);if(i)return i}return null}},t.prototype.matrixRowRemoved=function(e,t,r){this.onMatrixRowRemoved.fire(this,{question:e,rowIndex:t,row:r})},t.prototype.matrixRowRemoving=function(e,t,r){var n={question:e,rowIndex:t,row:r,allow:!0};return this.onMatrixRowRemoving.fire(this,n),n.allow},t.prototype.matrixAllowRemoveRow=function(e,t,r){var n={question:e,rowIndex:t,row:r,allow:!0};return this.onMatrixAllowRemoveRow.fire(this,n),n.allow},t.prototype.matrixCellCreating=function(e,t){t.question=e,this.onMatrixCellCreating.fire(this,t)},t.prototype.matrixCellCreated=function(e,t){t.question=e,this.onMatrixCellCreated.fire(this,t)},t.prototype.matrixAfterCellRender=function(e,t){t.question=e,this.onMatrixAfterCellRender.fire(this,t)},t.prototype.matrixCellValueChanged=function(e,t){t.question=e,this.onMatrixCellValueChanged.fire(this,t)},t.prototype.matrixCellValueChanging=function(e,t){t.question=e,this.onMatrixCellValueChanging.fire(this,t)},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return"onValueChanging"===this.checkErrorsMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnValueChanged",{get:function(){return"onValueChanged"===this.checkErrorsMode},enumerable:!1,configurable:!0}),t.prototype.matrixCellValidate=function(e,t){return t.question=e,this.onMatrixCellValidate.fire(this,t),t.error?new h.CustomError(t.error,this):null},t.prototype.dynamicPanelAdded=function(e,t,r){if(this.isLoadingFromJson||this.updateVisibleIndexes(),!this.onDynamicPanelAdded.isEmpty){var n=e.panels;void 0===t&&(r=n[t=n.length-1]),this.onDynamicPanelAdded.fire(this,{question:e,panel:r,panelIndex:t})}},t.prototype.dynamicPanelRemoved=function(e,t,r){for(var n=r?r.questions:[],o=0;o<n.length;o++)n[o].clearOnDeletingContainer();this.updateVisibleIndexes(),this.onDynamicPanelRemoved.fire(this,{question:e,panelIndex:t,panel:r})},t.prototype.dynamicPanelRemoving=function(e,t,r){var n={question:e,panelIndex:t,panel:r,allow:!0};return this.onDynamicPanelRemoving.fire(this,n),n.allow},t.prototype.dynamicPanelItemValueChanged=function(e,t){t.question=e,t.panelIndex=t.itemIndex,t.panelData=t.itemValue,this.onDynamicPanelItemValueChanged.fire(this,t)},t.prototype.dragAndDropAllow=function(e){return this.onDragDropAllow.fire(this,e),e.allow},t.prototype.elementContentVisibilityChanged=function(e){this.currentPage&&this.currentPage.ensureRowsVisibility(),this.onElementContentVisibilityChanged.fire(this,{element:e})},t.prototype.getUpdatedPanelFooterActions=function(e,t,r){var n={question:r,panel:e,actions:t};return this.onGetPanelFooterActions.fire(this,n),n.actions},t.prototype.getUpdatedElementTitleActions=function(e,t){return e.isPage?this.getUpdatedPageTitleActions(e,t):e.isPanel?this.getUpdatedPanelTitleActions(e,t):this.getUpdatedQuestionTitleActions(e,t)},t.prototype.getUpdatedQuestionTitleActions=function(e,t){var r={question:e,titleActions:t};return this.onGetQuestionTitleActions.fire(this,r),r.titleActions},t.prototype.getUpdatedPanelTitleActions=function(e,t){var r={panel:e,titleActions:t};return this.onGetPanelTitleActions.fire(this,r),r.titleActions},t.prototype.getUpdatedPageTitleActions=function(e,t){var r={page:e,titleActions:t};return this.onGetPageTitleActions.fire(this,r),r.titleActions},t.prototype.getUpdatedMatrixRowActions=function(e,t,r){var n={question:e,actions:r,row:t};return this.onGetMatrixRowActions.fire(this,n),n.actions},t.prototype.scrollElementToTop=function(e,t,r,n){var o={element:e,question:t,page:r,elementId:n,cancel:!1};this.onScrollingElementToTop.fire(this,o),o.cancel||a.SurveyElement.ScrollElementToTop(o.elementId)},t.prototype.uploadFiles=function(e,t,r,n){this.onUploadFiles.isEmpty?n("error",r):this.onUploadFiles.fire(this,{question:e,name:t,files:r||[],callback:n}),this.surveyPostId&&this.uploadFilesCore(t,r,n)},t.prototype.downloadFile=function(e,t,r,n){this.onDownloadFile.isEmpty&&n&&n("success",r.content||r),this.onDownloadFile.fire(this,{question:e,name:t,content:r.content||r,fileValue:r,callback:n})},t.prototype.clearFiles=function(e,t,r,n,o){this.onClearFiles.isEmpty&&o&&o("success",r),this.onClearFiles.fire(this,{question:e,name:t,value:r,fileName:n,callback:o})},t.prototype.updateChoicesFromServer=function(e,t,r){var n={question:e,choices:t,serverResult:r};return this.onLoadChoicesFromServer.fire(this,n),n.choices},t.prototype.loadedChoicesFromServer=function(e){this.locStrsChanged()},t.prototype.createSurveyService=function(){return new p.dxSurveyService},t.prototype.uploadFilesCore=function(e,t,r){var n=this,o=[];t.forEach((function(e){r&&r("uploading",e),n.createSurveyService().sendFile(n.surveyPostId,e,(function(n,i){n?(o.push({content:i,file:e}),o.length===t.length&&r&&r("success",o)):r&&r("error",{response:i,file:e})}))}))},t.prototype.getPage=function(e){return this.pages[e]},t.prototype.addPage=function(e,t){void 0===t&&(t=-1),null!=e&&(t<0||t>=this.pages.length?this.pages.push(e):this.pages.splice(t,0,e))},t.prototype.addNewPage=function(e,t){void 0===e&&(e=null),void 0===t&&(t=-1);var r=this.createNewPage(e);return this.addPage(r,t),r},t.prototype.removePage=function(e){var t=this.pages.indexOf(e);t<0||(this.pages.splice(t,1),this.currentPage==e&&(this.currentPage=this.pages.length>0?this.pages[0]:null))},t.prototype.getQuestionByName=function(e,t){if(void 0===t&&(t=!1),!e)return null;t&&(e=e.toLowerCase());var r=(t?this.questionHashes.namesInsensitive:this.questionHashes.names)[e];return r?r[0]:null},t.prototype.findQuestionByName=function(e){return this.getQuestionByName(e)},t.prototype.getQuestionByValueName=function(e,t){void 0===t&&(t=!1);var r=this.getQuestionsByValueName(e,t);return r?r[0]:null},t.prototype.getQuestionsByValueName=function(e,t){return void 0===t&&(t=!1),(t?this.questionHashes.valueNamesInsensitive:this.questionHashes.valueNames)[e]||null},t.prototype.getCalculatedValueByName=function(e){for(var t=0;t<this.calculatedValues.length;t++)if(e==this.calculatedValues[t].name)return this.calculatedValues[t];return null},t.prototype.getQuestionsByNames=function(e,t){void 0===t&&(t=!1);var r=[];if(!e)return r;for(var n=0;n<e.length;n++)if(e[n]){var o=this.getQuestionByName(e[n],t);o&&r.push(o)}return r},t.prototype.getPageByElement=function(e){for(var t=0;t<this.pages.length;t++){var r=this.pages[t];if(r.containsElement(e))return r}return null},t.prototype.getPageByQuestion=function(e){return this.getPageByElement(e)},t.prototype.getPageByName=function(e){for(var t=0;t<this.pages.length;t++)if(this.pages[t].name==e)return this.pages[t];return null},t.prototype.getPagesByNames=function(e){var t=[];if(!e)return t;for(var r=0;r<e.length;r++)if(e[r]){var n=this.getPageByName(e[r]);n&&t.push(n)}return t},t.prototype.getAllQuestions=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var r=new Array,n=0;n<this.pages.length;n++)this.pages[n].addQuestionsToList(r,e,t);return r},t.prototype.getQuizQuestions=function(){for(var e=new Array,t=this.getPageStartIndex();t<this.pages.length;t++)if(this.pages[t].isVisible)for(var r=this.pages[t].questions,n=0;n<r.length;n++){var o=r[n];o.quizQuestionCount>0&&e.push(o)}return e},t.prototype.getPanelByName=function(e,t){void 0===t&&(t=!1);var r=this.getAllPanels();t&&(e=e.toLowerCase());for(var n=0;n<r.length;n++){var o=r[n].name;if(t&&(o=o.toLowerCase()),o==e)return r[n]}return null},t.prototype.getAllPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var r=new Array,n=0;n<this.pages.length;n++)this.pages[n].addPanelsIntoList(r,e,t);return r},t.prototype.createNewPage=function(e){var t=i.Serializer.createClass("page");return t.name=e,t},t.prototype.questionOnValueChanging=function(e,t){if(this.editingObj){var r=i.Serializer.findProperty(this.editingObj.getType(),e);r&&(t=r.settingValue(this.editingObj,t))}if(this.onValueChanging.isEmpty)return t;var n={name:e,question:this.getQuestionByValueName(e),value:this.getUnbindValue(t),oldValue:this.getValue(e)};return this.onValueChanging.fire(this,n),n.value},t.prototype.updateQuestionValue=function(e,t){if(!this.isLoadingFromJson){var r=this.getQuestionsByValueName(e);if(r)for(var n=0;n<r.length;n++){var o=r[n].value;(o===t&&Array.isArray(o)&&this.editingObj||!this.isTwoValueEquals(o,t))&&r[n].updateValueFromSurvey(t)}}},t.prototype.checkQuestionErrorOnValueChanged=function(e){!this.isNavigationButtonPressed&&("onValueChanged"===this.checkErrorsMode||e.getAllErrors().length>0)&&this.checkQuestionErrorOnValueChangedCore(e)},t.prototype.checkQuestionErrorOnValueChangedCore=function(e){var t=e.getAllErrors().length,r=!e.validate(!0,{isOnValueChanged:!this.isValidateOnValueChanging}),n=this.checkErrorsMode.indexOf("Value")>-1;return e.page&&n&&(t>0||e.getAllErrors().length>0)&&this.fireValidatedErrorsOnPage(e.page),r},t.prototype.checkErrorsOnValueChanging=function(e,t){if(this.isLoadingFromJson)return!1;var r=this.getQuestionsByValueName(e);if(!r)return!1;for(var n=!1,o=0;o<r.length;o++){var i=r[o];this.isTwoValueEquals(i.valueForSurvey,t)||(i.value=t),this.checkQuestionErrorOnValueChangedCore(i)&&(n=!0),n=n||i.errors.length>0}return n},t.prototype.notifyQuestionOnValueChanged=function(e,t){if(!this.isLoadingFromJson){var r=this.getQuestionsByValueName(e);if(r)for(var n=0;n<r.length;n++){var o=r[n];this.checkQuestionErrorOnValueChanged(o),o.onSurveyValueChanged(t),this.onValueChanged.fire(this,{name:e,question:o,value:t})}else this.onValueChanged.fire(this,{name:e,question:null,value:t});this.isDisposed||(this.checkElementsBindings(e,t),this.notifyElementsOnAnyValueOrVariableChanged(e))}},t.prototype.checkElementsBindings=function(e,t){this.isRunningElementsBindings=!0;for(var r=0;r<this.pages.length;r++)this.pages[r].checkBindings(e,t);this.isRunningElementsBindings=!1,this.updateVisibleIndexAfterBindings&&(this.updateVisibleIndexes(),this.updateVisibleIndexAfterBindings=!1)},t.prototype.notifyElementsOnAnyValueOrVariableChanged=function(e){if("processing"!==this.isEndLoadingFromJson)if(this.isRunningConditions)this.conditionNotifyElementsOnAnyValueOrVariableChanged=!0;else{for(var t=0;t<this.pages.length;t++)this.pages[t].onAnyValueChanged(e);this.isEndLoadingFromJson||this.locStrsChanged()}},t.prototype.updateAllQuestionsValue=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++){var r=e[t],n=r.getValueName();r.updateValueFromSurvey(this.getValue(n)),r.requireUpdateCommentValue&&r.updateCommentFromSurvey(this.getComment(n))}},t.prototype.notifyAllQuestionsOnValueChanged=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].onSurveyValueChanged(this.getValue(e[t].getValueName()))},t.prototype.checkOnPageTriggers=function(e){for(var t=this.getCurrentPageQuestions(!0),r={},n=0;n<t.length;n++){var o=t[n].getValueName();r[o]=this.getValue(o)}this.addCalculatedValuesIntoFilteredValues(r),this.checkTriggers(r,!0,e)},t.prototype.getCurrentPageQuestions=function(e){void 0===e&&(e=!1);var t=[],r=this.currentPage;if(!r)return t;for(var n=0;n<r.questions.length;n++){var o=r.questions[n];(e||o.visible)&&o.name&&t.push(o)}return t},t.prototype.checkTriggers=function(e,t,r){if(void 0===r&&(r=!1),!this.isCompleted&&0!=this.triggers.length&&!this.isDisplayMode)if(this.isTriggerIsRunning)for(var n in this.triggerValues=this.getFilteredValues(),e)this.triggerKeys[n]=e[n];else{this.isTriggerIsRunning=!0,this.triggerKeys=e,this.triggerValues=this.getFilteredValues();for(var o=this.getFilteredProperties(),i=this.canBeCompletedByTrigger,s=0;s<this.triggers.length;s++)this.triggers[s].checkExpression(t,r,this.triggerKeys,this.triggerValues,o);i!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility(),this.isTriggerIsRunning=!1}},t.prototype.doElementsOnLoad=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].onSurveyLoad()},Object.defineProperty(t.prototype,"isRunningConditions",{get:function(){return!!this.conditionValues},enumerable:!1,configurable:!0}),t.prototype.runConditions=function(){if(!this.isCompleted&&"processing"!==this.isEndLoadingFromJson&&!this.isRunningConditions){this.conditionValues=this.getFilteredValues();var e=this.getFilteredProperties(),t=this.pages.indexOf(this.currentPage);this.runConditionsCore(e),this.checkIfNewPagesBecomeVisible(t),this.conditionValues=null,this.isValueChangedOnRunningCondition&&this.conditionRunnerCounter<y.settings.maximumConditionRunCountOnValueChanged?(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter++,this.runConditions()):(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter=0,this.conditionUpdateVisibleIndexes&&(this.conditionUpdateVisibleIndexes=!1,this.updateVisibleIndexes()),this.conditionNotifyElementsOnAnyValueOrVariableChanged&&(this.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,this.notifyElementsOnAnyValueOrVariableChanged("")))}},t.prototype.runConditionOnValueChanged=function(e,t){this.isRunningConditions?(this.conditionValues[e]=t,this.isValueChangedOnRunningCondition=!0):this.runConditions()},t.prototype.runConditionsCore=function(t){for(var r=this.pages,n=0;n<this.calculatedValues.length;n++)this.calculatedValues[n].resetCalculation();for(n=0;n<this.calculatedValues.length;n++)this.calculatedValues[n].doCalculation(this.calculatedValues,this.conditionValues,t);for(e.prototype.runConditionCore.call(this,this.conditionValues,t),n=0;n<r.length;n++)r[n].runCondition(this.conditionValues,t)},t.prototype.checkIfNewPagesBecomeVisible=function(e){var t=this.pages.indexOf(this.currentPage);if(!(t<=e+1))for(var r=e+1;r<t;r++)if(this.pages[r].isVisible){this.currentPage=this.pages[r];break}},t.prototype.sendResult=function(e,t,r){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===r&&(r=!1),this.isEditMode&&(r&&this.onPartialSend&&this.onPartialSend.fire(this,null),!e&&this.surveyPostId&&(e=this.surveyPostId),e&&(t&&(this.clientId=t),!r||this.clientId))){var n=this;this.surveyShowDataSaving&&this.setCompletedState("saving",""),this.createSurveyService().sendResult(e,this.data,(function(e,t,r){n.surveyShowDataSaving&&(e?n.setCompletedState("success",""):n.setCompletedState("error",t)),n.onSendResult.fire(n,{success:e,response:t,request:r})}),this.clientId,r)}},t.prototype.getResult=function(e,t){var r=this;this.createSurveyService().getResult(e,t,(function(e,t,n,o){r.onGetResult.fire(r,{success:e,data:t,dataList:n,response:o})}))},t.prototype.loadSurveyFromService=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null),e&&(this.surveyId=e),t&&(this.clientId=t);var r=this;this.isLoading=!0,this.onLoadingSurveyFromService(),t?this.createSurveyService().getSurveyJsonAndIsCompleted(this.surveyId,this.clientId,(function(e,t,n,o){r.isLoading=!1,e&&(r.isCompletedBefore="completed"==n,r.loadSurveyFromServiceJson(t))})):this.createSurveyService().loadSurvey(this.surveyId,(function(e,t,n){r.isLoading=!1,e&&r.loadSurveyFromServiceJson(t)}))},t.prototype.loadSurveyFromServiceJson=function(e){e&&(this.fromJSON(e),this.notifyAllQuestionsOnValueChanged(),this.onLoadSurveyFromService(),this.onLoadedSurveyFromService.fire(this,{}))},t.prototype.onLoadingSurveyFromService=function(){},t.prototype.onLoadSurveyFromService=function(){},t.prototype.resetVisibleIndexes=function(){for(var e=this.getAllQuestions(!0),t=0;t<e.length;t++)e[t].setVisibleIndex(-1);this.updateVisibleIndexes()},t.prototype.updateVisibleIndexes=function(){if(!this.isLoadingFromJson&&!this.isEndLoadingFromJson)if(this.isRunningConditions&&this.onQuestionVisibleChanged.isEmpty&&this.onPageVisibleChanged.isEmpty)this.conditionUpdateVisibleIndexes=!0;else if(this.isRunningElementsBindings)this.updateVisibleIndexAfterBindings=!0;else{if(this.updatePageVisibleIndexes(this.showPageNumbers),"onPage"==this.showQuestionNumbers)for(var e=this.visiblePages,t=0;t<e.length;t++)e[t].setVisibleIndex(0);else{var r="on"==this.showQuestionNumbers?0:-1;for(t=0;t<this.pages.length;t++)r+=this.pages[t].setVisibleIndex(r)}this.updateProgressText(!0)}},t.prototype.updatePageVisibleIndexes=function(e){this.updateButtonsVisibility();for(var t=0,r=0;r<this.pages.length;r++){var n=this.pages[r],o=n.isVisible&&(r>0||!n.isStartPage);n.visibleIndex=o?t++:-1,n.num=o?n.visibleIndex+1:-1}},t.prototype.fromJSON=function(e){if(e){this.questionHashesClear(),this.jsonErrors=null;var t=new i.JsonObject;t.toObject(e,this),t.errors.length>0&&(this.jsonErrors=t.errors),this.onStateAndCurrentPageChanged(),this.updateState()}},t.prototype.setJsonObject=function(e){this.fromJSON(e)},t.prototype.endLoadingFromJson=function(){this.isEndLoadingFromJson="processing",this.onFirstPageIsStartedChanged(),this.onQuestionsOnPageModeChanged("standard"),e.prototype.endLoadingFromJson.call(this),this.hasCookie&&(this.isCompletedBefore=!0),this.doElementsOnLoad(),this.isEndLoadingFromJson="conditions",this.runConditions(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.isEndLoadingFromJson=null,this.updateVisibleIndexes(),this.updateHasLogo(),this.updateRenderBackgroundImage(),this.updateCurrentPage(),this.hasDescription=!!this.description,this.setCalculatedWidthModeUpdater()},t.prototype.updateNavigationCss=function(){this.navigationBar&&(this.updateNavigationBarCss(),this.updateNavigationItemCssCallback&&this.updateNavigationItemCssCallback())},t.prototype.updateNavigationBarCss=function(){var e=this.navigationBar;e.cssClasses=this.css.actionBar,e.containerCss=this.css.footer},t.prototype.createNavigationBar=function(){var e=new x.ActionContainer;return e.setItems(this.createNavigationActions()),e},t.prototype.createNavigationActions=function(){var e=this,t="sv-nav-btn",r=new w.Action({id:"sv-nav-start",visible:new s.ComputedUpdater((function(){return e.isShowStartingPage})),visibleIndex:10,locTitle:this.locStartSurveyText,action:function(){return e.start()},component:t}),n=new w.Action({id:"sv-nav-prev",visible:new s.ComputedUpdater((function(){return e.isShowPrevButton})),visibleIndex:20,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPagePrevText,action:function(){return e.prevPage()},component:t}),o=new w.Action({id:"sv-nav-next",visible:new s.ComputedUpdater((function(){return e.isShowNextButton})),visibleIndex:30,data:{mouseDown:function(){return e.nextPageMouseDown()}},locTitle:this.locPageNextText,action:function(){return e.nextPageUIClick()},component:t}),i=new w.Action({id:"sv-nav-preview",visible:new s.ComputedUpdater((function(){return e.isPreviewButtonVisible})),visibleIndex:40,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPreviewText,action:function(){return e.showPreview()},component:t}),a=new w.Action({id:"sv-nav-complete",visible:new s.ComputedUpdater((function(){return e.isCompleteButtonVisible})),visibleIndex:50,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locCompleteText,action:function(){return e.completeLastPage()},component:t});return this.updateNavigationItemCssCallback=function(){r.innerCss=e.cssNavigationStart,n.innerCss=e.cssNavigationPrev,o.innerCss=e.cssNavigationNext,i.innerCss=e.cssNavigationPreview,a.innerCss=e.cssNavigationComplete},[r,n,o,i,a]},t.prototype.onBeforeCreating=function(){},t.prototype.onCreating=function(){},t.prototype.getProcessedTextValue=function(e){if(this.getProcessedTextValueCore(e),!this.onProcessTextValue.isEmpty){var t=this.isValueEmpty(e.value);this.onProcessTextValue.fire(this,e),e.isExists=e.isExists||t&&!this.isValueEmpty(e.value)}},t.prototype.getBuiltInVariableValue=function(e){if("pageno"===e){var t=this.currentPage;return null!=t?this.visiblePages.indexOf(t)+1:0}return"pagecount"===e?this.visiblePageCount:"correctedanswers"===e||"correctanswers"===e||"correctedanswercount"===e?this.getCorrectedAnswerCount():"incorrectedanswers"===e||"incorrectanswers"===e||"incorrectedanswercount"===e?this.getInCorrectedAnswerCount():"questioncount"===e?this.getQuizQuestionCount():void 0},t.prototype.getProcessedTextValueCore=function(e){var t=e.name.toLocaleLowerCase();if(-1===["no","require","title"].indexOf(t)){var r=this.getBuiltInVariableValue(t);if(void 0!==r)return e.isExists=!0,void(e.value=r);if("locale"===t)return e.isExists=!0,void(e.value=this.locale?this.locale:d.surveyLocalization.defaultLocale);var n=this.getVariable(t);if(void 0!==n)return e.isExists=!0,void(e.value=n);var o=this.getFirstName(t);if(o){var i=o.useDisplayValuesInDynamicTexts;e.isExists=!0;var s=o.getValueName().toLowerCase();t=(t=s+t.substring(s.length)).toLocaleLowerCase();var a={};return a[s]=e.returnDisplayValue&&i?o.getDisplayValue(!1,void 0):o.value,void(e.value=(new c.ProcessValue).getValue(t,a))}this.getProcessedValuesWithoutQuestion(e)}},t.prototype.getProcessedValuesWithoutQuestion=function(e){var t=this.getValue(e.name);if(void 0!==t)return e.isExists=!0,void(e.value=t);var r=new c.ProcessValue,n=r.getFirstName(e.name);if(n!==e.name){var i={},s=this.getValue(n);o.Helpers.isValueEmpty(s)&&(s=this.getVariable(n)),o.Helpers.isValueEmpty(s)||(i[n]=s,e.value=r.getValue(e.name,i),e.isExists=r.hasValue(e.name,i))}},t.prototype.getFirstName=function(e){var t;e=e.toLowerCase();do{t=this.getQuestionByValueName(e,!0),e=this.reduceFirstName(e)}while(!t&&e);return t},t.prototype.reduceFirstName=function(e){var t=e.lastIndexOf("."),r=e.lastIndexOf("[");if(t<0&&r<0)return"";var n=Math.max(t,r);return e.substring(0,n)},t.prototype.clearUnusedValues=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].clearUnusedValues();this.clearInvisibleQuestionValues()},t.prototype.hasVisibleQuestionByValueName=function(e){var t=this.getQuestionsByValueName(e);if(!t)return!1;for(var r=0;r<t.length;r++){var n=t[r];if(n.isVisible&&n.isParentVisible&&!n.parentQuestion)return!0}return!1},t.prototype.questionCountByValueName=function(e){var t=this.getQuestionsByValueName(e);return t?t.length:0},t.prototype.clearInvisibleQuestionValues=function(){for(var e="none"===this.clearInvisibleValues?"none":"onComplete",t=this.getAllQuestions(),r=0;r<t.length;r++)t[r].clearValueIfInvisible(e)},t.prototype.getVariable=function(e){if(!e)return null;e=e.toLowerCase();var t=this.variablesHash[e];return this.isValueEmpty(t)&&(e.indexOf(".")>-1||e.indexOf("[")>-1)&&(new c.ProcessValue).hasValue(e,this.variablesHash)?(new c.ProcessValue).getValue(e,this.variablesHash):t},t.prototype.setVariable=function(e,t){e&&(this.valuesHash&&delete this.valuesHash[e],e=e.toLowerCase(),this.variablesHash[e]=t,this.notifyElementsOnAnyValueOrVariableChanged(e),this.runConditionOnValueChanged(e,t),this.onVariableChanged.fire(this,{name:e,value:t}))},t.prototype.getVariableNames=function(){var e=[];for(var t in this.variablesHash)e.push(t);return e},t.prototype.getUnbindValue=function(e){return this.editingObj?e:o.Helpers.getUnbindValue(e)},t.prototype.getValue=function(e){if(!e||0==e.length)return null;var t=this.getDataValueCore(this.valuesHash,e);return this.getUnbindValue(t)},t.prototype.setValue=function(e,t,r,n){void 0===r&&(r=!1),void 0===n&&(n=!0);var o=t;if(n&&(o=this.questionOnValueChanging(e,t)),(!this.isValidateOnValueChanging||!this.checkErrorsOnValueChanging(e,o))&&(this.editingObj||!this.isValueEqual(e,o)||!this.isTwoValueEquals(o,t))){var i=this.getValue(e);this.isValueEmpty(o)?this.deleteDataValueCore(this.valuesHash,e):(o=this.getUnbindValue(o),this.setDataValueCore(this.valuesHash,e,o)),this.updateOnSetValue(e,o,i,r,n)}},t.prototype.updateOnSetValue=function(e,t,r,n,o){if(void 0===n&&(n=!1),void 0===o&&(o=!0),this.updateQuestionValue(e,t),!0!==n&&!this.isDisposed&&!this.isRunningElementsBindings){var i={};i[e]={newValue:t,oldValue:r},this.runConditionOnValueChanged(e,t),this.checkTriggers(i,!1),o&&this.notifyQuestionOnValueChanged(e,t),"text"!==n&&this.tryGoNextPageAutomatic(e)}},t.prototype.isValueEqual=function(e,t){""!==t&&void 0!==t||(t=null);var r=this.getValue(e);return""!==r&&void 0!==r||(r=null),null===t||null===r?t===r:this.isTwoValueEquals(t,r)},t.prototype.doOnPageAdded=function(e){e.setSurveyImpl(this),e.name||(e.name=this.generateNewName(this.pages,"page")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),this.isLoadingFromJson||(this.updateProgressText(),this.updateCurrentPage());var t={page:e};this.onPageAdded.fire(this,t)},t.prototype.doOnPageRemoved=function(e){e.setSurveyImpl(null),e===this.currentPage&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.updateProgressText(),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.generateNewName=function(e,t){for(var r={},n=0;n<e.length;n++)r[e[n].name]=!0;for(var o=1;r[t+o];)o++;return t+o},t.prototype.tryGoNextPageAutomatic=function(e){if(!this.isEndLoadingFromJson&&this.goNextPageAutomatic&&this.currentPage){var t=this.getQuestionByValueName(e);if(t&&(!t||t.visible&&t.supportGoNextPageAutomatic())&&(t.validate(!1)||t.supportGoNextPageError())){var r=this.getCurrentPageQuestions();if(!(r.indexOf(t)<0)){for(var n=0;n<r.length;n++)if(r[n].hasInput&&r[n].isEmpty())return;this.checkIsCurrentPageHasErrors(!1)||(this.isLastPage?!0===this.goNextPageAutomatic&&this.allowCompleteSurveyAutomatic&&(this.isShowPreviewBeforeComplete?this.showPreview():this.completeLastPage()):this.nextPage())}}}},t.prototype.getComment=function(e){return this.getValue(e+this.commentSuffix)||""},t.prototype.setComment=function(e,t,r){if(void 0===r&&(r=!1),t||(t=""),!this.isTwoValueEquals(t,this.getComment(e))){var n=e+this.commentSuffix;this.isValueEmpty(t)?this.deleteDataValueCore(this.valuesHash,n):this.setDataValueCore(this.valuesHash,n,t);var o=this.getQuestionsByValueName(e);if(o)for(var i=0;i<o.length;i++)o[i].updateCommentFromSurvey(t),this.checkQuestionErrorOnValueChanged(o[i]);r||this.runConditionOnValueChanged(e,this.getValue(e)),"text"!==r&&this.tryGoNextPageAutomatic(e);var s=this.getQuestionByName(e);s&&this.onValueChanged.fire(this,{name:n,question:s,value:t})}},t.prototype.clearValue=function(e){this.setValue(e,null),this.setComment(e,null)},Object.defineProperty(t.prototype,"clearValueOnDisableItems",{get:function(){return this.getPropertyValue("clearValueOnDisableItems",!1)},set:function(e){this.setPropertyValue("clearValueOnDisableItems",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClearValueOnHidden",{get:function(){return"onHidden"==this.clearInvisibleValues||this.isClearValueOnHiddenContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClearValueOnHiddenContainer",{get:function(){return"onHiddenContainer"==this.clearInvisibleValues&&!this.isShowingPreview&&!this.runningPages},enumerable:!1,configurable:!0}),t.prototype.questionVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onQuestionVisibleChanged.fire(this,{question:e,name:e.name,visible:t})},t.prototype.pageVisibilityChanged=function(e,t){this.isLoadingFromJson||((t&&!this.currentPage||e===this.currentPage)&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.onPageVisibleChanged.fire(this,{page:e,visible:t}))},t.prototype.panelVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onPanelVisibleChanged.fire(this,{panel:e,visible:t})},t.prototype.questionCreated=function(e){this.onQuestionCreated.fire(this,{question:e})},t.prototype.questionAdded=function(e,t,r,n){e.name||(e.name=this.generateNewName(this.getAllQuestions(!1,!0),"question")),e.page&&this.questionHashesAdded(e),this.currentPage||this.updateCurrentPage(),this.updateVisibleIndexes(),this.setCalculatedWidthModeUpdater(),(!this.isMovingQuestion||this.isDesignMode&&!y.settings.supportCreatorV2)&&this.onQuestionAdded.fire(this,{question:e,name:e.name,index:t,parent:r,page:n,parentPanel:r,rootPanel:n})},t.prototype.questionRemoved=function(e){this.questionHashesRemoved(e,e.name,e.getValueName()),this.updateVisibleIndexes(),this.onQuestionRemoved.fire(this,{question:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.questionRenamed=function(e,t,r){this.questionHashesRemoved(e,t,r),this.questionHashesAdded(e)},t.prototype.questionHashesClear=function(){this.questionHashes.names={},this.questionHashes.namesInsensitive={},this.questionHashes.valueNames={},this.questionHashes.valueNamesInsensitive={}},t.prototype.questionHashesPanelAdded=function(e){if(!this.isLoadingFromJson)for(var t=e.questions,r=0;r<t.length;r++)this.questionHashesAdded(t[r])},t.prototype.questionHashesAdded=function(e){this.questionHashAddedCore(this.questionHashes.names,e,e.name),this.questionHashAddedCore(this.questionHashes.namesInsensitive,e,e.name.toLowerCase()),this.questionHashAddedCore(this.questionHashes.valueNames,e,e.getValueName()),this.questionHashAddedCore(this.questionHashes.valueNamesInsensitive,e,e.getValueName().toLowerCase())},t.prototype.questionHashesRemoved=function(e,t,r){t&&(this.questionHashRemovedCore(this.questionHashes.names,e,t),this.questionHashRemovedCore(this.questionHashes.namesInsensitive,e,t.toLowerCase())),r&&(this.questionHashRemovedCore(this.questionHashes.valueNames,e,r),this.questionHashRemovedCore(this.questionHashes.valueNamesInsensitive,e,r.toLowerCase()))},t.prototype.questionHashAddedCore=function(e,t,r){var n;(n=e[r])?(n=e[r]).indexOf(t)<0&&n.push(t):e[r]=[t]},t.prototype.questionHashRemovedCore=function(e,t,r){var n=e[r];if(n){var o=n.indexOf(t);o>-1&&n.splice(o,1),0==n.length&&delete e[r]}},t.prototype.panelAdded=function(e,t,r,n){e.name||(e.name=this.generateNewName(this.getAllPanels(!1,!0),"panel")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),this.onPanelAdded.fire(this,{panel:e,name:e.name,index:t,parent:r,page:n,parentPanel:r,rootPanel:n})},t.prototype.panelRemoved=function(e){this.updateVisibleIndexes(),this.onPanelRemoved.fire(this,{panel:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.validateQuestion=function(e){if(this.onValidateQuestion.isEmpty)return null;var t={name:e.name,question:e,value:e.value,error:null};return this.onValidateQuestion.fire(this,t),t.error?new h.CustomError(t.error,this):null},t.prototype.validatePanel=function(e){if(this.onValidatePanel.isEmpty)return null;var t={name:e.name,panel:e,error:null};return this.onValidatePanel.fire(this,t),t.error?new h.CustomError(t.error,this):null},t.prototype.processHtml=function(e,t){t||(t="");var r={html:e,reason:t};return this.onProcessHtml.fire(this,r),this.processText(r.html,!0)},t.prototype.processText=function(e,t){return this.processTextEx(e,t,!1).text},t.prototype.processTextEx=function(e,t,r){var n={text:this.processTextCore(e,t,r),hasAllValuesOnLastRun:!0};return n.hasAllValuesOnLastRun=this.textPreProcessor.hasAllValuesOnLastRun,n},t.prototype.processTextCore=function(e,t,r){return void 0===r&&(r=!1),this.isDesignMode?e:this.textPreProcessor.process(e,t,r)},t.prototype.getSurveyMarkdownHtml=function(e,t,r){var n={element:e,text:t,name:r,html:null};return this.onTextMarkdown.fire(this,n),n.html},t.prototype.getCorrectedAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},t.prototype.getCorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},t.prototype.getQuizQuestionCount=function(){for(var e=this.getQuizQuestions(),t=0,r=0;r<e.length;r++)t+=e[r].quizQuestionCount;return t},t.prototype.getInCorrectedAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.getInCorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.onCorrectQuestionAnswer=function(e,t){this.onIsAnswerCorrect.isEmpty||(t.question=e,this.onIsAnswerCorrect.fire(this,t))},t.prototype.getCorrectedAnswerCountCore=function(e){for(var t=this.getQuizQuestions(),r=0,n={question:null,result:!1,correctAnswers:0,incorrectAnswers:0},o=0;o<t.length;o++){var i=t[o],s=i.quizQuestionCount;if(n.question=i,n.correctAnswers=i.correctAnswerCount,n.incorrectAnswers=s-n.correctAnswers,n.result=n.question.isAnswerCorrect(),this.onIsAnswerCorrect.fire(this,n),e){if(n.result||n.correctAnswers<s){var a=n.correctAnswers;0==a&&n.result&&(a=1),r+=a}}else(!n.result||n.incorrectAnswers<s)&&(r+=n.incorrectAnswers)}return r},t.prototype.getCorrectedAnswers=function(){return this.getCorrectedAnswerCount()},t.prototype.getInCorrectedAnswers=function(){return this.getInCorrectedAnswerCount()},Object.defineProperty(t.prototype,"showTimerPanel",{get:function(){return this.getPropertyValue("showTimerPanel")},set:function(e){this.setPropertyValue("showTimerPanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnTop",{get:function(){return"top"==this.showTimerPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnBottom",{get:function(){return"bottom"==this.showTimerPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimerPanelMode",{get:function(){return this.getPropertyValue("showTimerPanelMode")},set:function(e){this.setPropertyValue("showTimerPanelMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"widthMode",{get:function(){return this.getPropertyValue("widthMode")},set:function(e){this.setPropertyValue("widthMode",e)},enumerable:!1,configurable:!0}),t.prototype.setCalculatedWidthModeUpdater=function(){var e=this;this.calculatedWidthModeUpdater&&this.calculatedWidthModeUpdater.dispose(),this.calculatedWidthModeUpdater=new s.ComputedUpdater((function(){return e.calculateWidthMode()})),this.calculatedWidthMode=this.calculatedWidthModeUpdater},t.prototype.calculateWidthMode=function(){if("auto"==this.widthMode){var e=!1;return this.pages.forEach((function(t){t.needResponsiveWidth()&&(e=!0)})),e?"responsive":"static"}return this.widthMode},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("width");return e&&!isNaN(e)&&(e+="px"),"static"==this.getPropertyValue("calculatedWidthMode")&&e||void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfo",{get:function(){return this.getTimerInfo()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerClock",{get:function(){var e,t;if(this.currentPage){var r=this.getTimerInfo(),n=r.spent,o=r.limit,i=r.minorSpent,s=r.minorLimit;e=o>0?this.getDisplayClockTime(o-n):this.getDisplayClockTime(n),void 0!==i&&(t=s>0?this.getDisplayClockTime(s-i):this.getDisplayClockTime(i))}return{majorText:e,minorText:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoText",{get:function(){var e={text:this.getTimerInfoText()};this.onTimerPanelInfoText.fire(this,e);var t=new f.LocalizableString(this,!0);return t.text=e.text,t.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getTimerInfo=function(){var e=this.currentPage;if(!e)return{spent:0,limit:0};var t=e.timeSpent,r=this.timeSpent,n=this.getPageMaxTimeToFinish(e),o=this.maxTimeToFinish;return"page"==this.showTimerPanelMode?{spent:t,limit:n}:"survey"==this.showTimerPanelMode?{spent:r,limit:o}:n>0&&o>0?{spent:t,limit:n,minorSpent:r,minorLimit:o}:n>0?{spent:t,limit:n,minorSpent:r}:o>0?{spent:r,limit:o,minorSpent:t}:{spent:t,minorSpent:r}},t.prototype.getTimerInfoText=function(){var e=this.currentPage;if(!e)return"";var t=this.getDisplayTime(e.timeSpent),r=this.getDisplayTime(this.timeSpent),n=this.getPageMaxTimeToFinish(e),o=this.getDisplayTime(n),i=this.getDisplayTime(this.maxTimeToFinish);return"page"==this.showTimerPanelMode?this.getTimerInfoPageText(e,t,o):"survey"==this.showTimerPanelMode?this.getTimerInfoSurveyText(r,i):"all"==this.showTimerPanelMode?n<=0&&this.maxTimeToFinish<=0?this.getLocalizationFormatString("timerSpentAll",t,r):n>0&&this.maxTimeToFinish>0?this.getLocalizationFormatString("timerLimitAll",t,o,r,i):this.getTimerInfoPageText(e,t,o)+" "+this.getTimerInfoSurveyText(r,i):""},t.prototype.getTimerInfoPageText=function(e,t,r){return this.getPageMaxTimeToFinish(e)>0?this.getLocalizationFormatString("timerLimitPage",t,r):this.getLocalizationFormatString("timerSpentPage",t,r)},t.prototype.getTimerInfoSurveyText=function(e,t){var r=this.maxTimeToFinish>0?"timerLimitSurvey":"timerSpentSurvey";return this.getLocalizationFormatString(r,e,t)},t.prototype.getDisplayClockTime=function(e){var t=Math.floor(e/60),r=e%60,n=r.toString();return r<10&&(n="0"+n),t+":"+n},t.prototype.getDisplayTime=function(e){var t=Math.floor(e/60),r=e%60,n="";return t>0&&(n+=t+" "+this.getLocalizationString("timerMin")),n&&0==r?n:(n&&(n+=" "),n+r+" "+this.getLocalizationString("timerSec"))},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.timerModelValue},enumerable:!1,configurable:!0}),t.prototype.startTimer=function(){this.timerModel.start()},t.prototype.startTimerFromUI=function(){"none"!=this.showTimerPanel&&"running"===this.state&&this.startTimer()},t.prototype.stopTimer=function(){this.timerModel.stop()},Object.defineProperty(t.prototype,"timeSpent",{get:function(){return this.timerModel.spent},set:function(e){this.timerModel.spent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinishPage",{get:function(){return this.getPropertyValue("maxTimeToFinishPage",0)},set:function(e){this.setPropertyValue("maxTimeToFinishPage",e)},enumerable:!1,configurable:!0}),t.prototype.getPageMaxTimeToFinish=function(e){return!e||e.maxTimeToFinish<0?0:e.maxTimeToFinish>0?e.maxTimeToFinish:this.maxTimeToFinishPage},t.prototype.doTimer=function(e){if(this.onTimer.fire(this,{}),this.maxTimeToFinish>0&&this.maxTimeToFinish==this.timeSpent&&this.completeLastPage(),e){var t=this.getPageMaxTimeToFinish(e);t>0&&t==e.timeSpent&&(this.isLastPage?this.completeLastPage():this.nextPage())}},Object.defineProperty(t.prototype,"inSurvey",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this},t.prototype.getTextProcessor=function(){return this},t.prototype.getObjects=function(e,t){var r=[];return Array.prototype.push.apply(r,this.getPagesByNames(e)),Array.prototype.push.apply(r,this.getQuestionsByNames(t)),r},t.prototype.setTriggerValue=function(e,t,r){if(e)if(r)this.setVariable(e,t);else{var n=this.getQuestionByName(e);if(n)n.value=t;else{var o=new c.ProcessValue,i=o.getFirstName(e);if(i==e)this.setValue(e,t);else{if(!this.getQuestionByName(i))return;var s=this.getUnbindValue(this.getFilteredValues());o.setValue(s,e,t),this.setValue(i,s[i])}}}},t.prototype.copyTriggerValue=function(e,t){if(e&&t){var r=(new c.ProcessValue).getValue(t,this.getFilteredValues());this.setTriggerValue(e,r,!1)}},t.prototype.triggerExecuted=function(e){this.onTriggerExecuted.fire(this,{trigger:e})},t.prototype.startMovingQuestion=function(){this.isMovingQuestion=!0},t.prototype.stopMovingQuestion=function(){this.isMovingQuestion=!1},t.prototype.focusQuestion=function(e){var t=this,r=this.getQuestionByName(e,!0);if(!r||!r.isVisible||!r.page)return!1;this.isFocusingQuestion=!0,this.skippedPages.push({from:this.currentPage,to:r.page});var n=this.currentPage!==r.page,o=function(){r.focus(),t.isFocusingQuestion=!1,t.isCurrentPageRendering=!1};return this.afterRenderPageTasks.push(o),this.currentPage=r.page,n||(o(),this.afterRenderPageTasks.splice(this.afterRenderPageTasks.indexOf(o),1)),!0},t.prototype.questionEditFinishCallback=function(e,t){if("loseFocus"==y.settings.enterKeyAction&&t.target.blur(),"moveToNextEditor"==y.settings.enterKeyAction){var r=this.currentPage.questions,n=r.indexOf(e);n>-1&&n<r.length-1?r[n+1].focus():t.target.blur()}},t.prototype.getElementWrapperComponentName=function(e,r){return"logo-image"===r?"sv-logo-image":t.TemplateRendererComponentName},t.prototype.getQuestionContentWrapperComponentName=function(e){return t.TemplateRendererComponentName},t.prototype.getRowWrapperComponentName=function(e){return t.TemplateRendererComponentName},t.prototype.getElementWrapperComponentData=function(e,t){return e},t.prototype.getRowWrapperComponentData=function(e){return e},t.prototype.getItemValueWrapperComponentName=function(e,r){return t.TemplateRendererComponentName},t.prototype.getItemValueWrapperComponentData=function(e,t){return e},t.prototype.getMatrixCellTemplateData=function(e){return e.question},t.prototype.searchText=function(e){e&&(e=e.toLowerCase());for(var t=[],r=0;r<this.pages.length;r++)this.pages[r].searchText(e,t);return t},t.prototype.getSkeletonComponentName=function(e){return this.skeletonComponentName},t.prototype.addLayoutElement=function(e){var t=this.removeLayoutElement(e.id);return this.layoutElements.push(e),t},t.prototype.removeLayoutElement=function(e){var t=this.layoutElements.filter((function(t){return t.id===e}))[0];if(t){var r=this.layoutElements.indexOf(t);this.layoutElements.splice(r,1)}return t},t.prototype.getContainerContent=function(e){for(var t=[],r=0,n=this.layoutElements;r<n.length;r++){var o=n[r];E(o.id,"timerpanel")?("header"===e&&this.isTimerPanelShowingOnTop&&!this.isShowStartingPage&&t.push(o),"footer"===e&&this.isTimerPanelShowingOnBottom&&!this.isShowStartingPage&&t.push(o)):E(o.id,"progress-"+this.progressBarType)?("header"===e&&this.isShowProgressBarOnTop&&!this.isShowStartingPage&&t.push(o),"contentBottom"===e&&this.isShowProgressBarOnBottom&&!this.isShowStartingPage&&t.push(o)):E(o.id,"navigationbuttons")?("contentTop"===e&&-1!==["top","both"].indexOf(this.isNavigationButtonsShowing)&&t.push(o),"contentBottom"===e&&-1!==["bottom","both"].indexOf(this.isNavigationButtonsShowing)&&t.push(o)):"running"===this.state&&E(o.id,"toc-navigation")&&this.showTOC?("left"===e&&-1!==["left","both"].indexOf(this.tocLocation)&&t.push(o),"right"===e&&-1!==["right","both"].indexOf(this.tocLocation)&&t.push(o)):(Array.isArray(o.container)&&-1!==o.container.indexOf(e)||o.container===e)&&t.push(o)}return t},t.prototype.dispose=function(){if(this.currentPage=null,this.destroyResizeObserver(),e.prototype.dispose.call(this),this.editingObj=null,this.pages){for(var t=0;t<this.pages.length;t++)this.pages[t].setSurveyImpl(void 0),this.pages[t].dispose();this.pages.splice(0,this.pages.length),this.disposeCallback&&this.disposeCallback()}},t.TemplateRendererComponentName="sv-template-renderer",t.stylesManager=null,t.platform="unknown",S([Object(i.property)()],t.prototype,"completedCss",void 0),S([Object(i.property)()],t.prototype,"containerCss",void 0),S([Object(i.property)()],t.prototype,"showBrandInfo",void 0),S([Object(i.property)()],t.prototype,"_isMobile",void 0),S([Object(i.property)()],t.prototype,"_isCompact",void 0),S([Object(i.property)()],t.prototype,"renderBackgroundImage",void 0),S([Object(i.property)()],t.prototype,"backgroundImageFit",void 0),S([Object(i.property)()],t.prototype,"rootCss",void 0),S([Object(i.property)()],t.prototype,"calculatedWidthMode",void 0),S([Object(i.propertyArray)()],t.prototype,"layoutElements",void 0),t}(a.SurveyElementCore);function E(e,t){return!!e&&!!t&&e.toUpperCase()===t.toUpperCase()}i.Serializer.addClass("survey",[{name:"locale",choices:function(){return d.surveyLocalization.getLocales(!0)},onGetValue:function(e){return e.locale==d.surveyLocalization.defaultLocale?null:e.locale}},{name:"title",serializationProperty:"locTitle",dependsOn:"locale"},{name:"description:text",serializationProperty:"locDescription",dependsOn:"locale"},{name:"logo",serializationProperty:"locLogo"},{name:"logoWidth",default:"300px",minValue:0},{name:"logoHeight",default:"200px",minValue:0},{name:"logoFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"logoPosition",default:"left",choices:["none","left","right","top","bottom"]},{name:"focusFirstQuestionAutomatic:boolean",default:!0},{name:"focusOnFirstError:boolean",default:!0},{name:"completedHtml:html",serializationProperty:"locCompletedHtml"},{name:"completedBeforeHtml:html",serializationProperty:"locCompletedBeforeHtml"},{name:"completedHtmlOnCondition:htmlconditions",className:"htmlconditionitem"},{name:"loadingHtml:html",serializationProperty:"locLoadingHtml"},{name:"pages:surveypages",className:"page"},{name:"questions",alternativeName:"elements",baseClassName:"question",visible:!1,isLightSerializable:!1,onGetValue:function(e){return null},onSetValue:function(e,t,r){e.pages.splice(0,e.pages.length);var n=e.addNewPage("");r.toObject({questions:t},n)}},{name:"triggers:triggers",baseClassName:"surveytrigger",classNamePart:"trigger"},{name:"calculatedValues:calculatedvalues",className:"calculatedvalue"},{name:"surveyId",visible:!1},{name:"surveyPostId",visible:!1},{name:"surveyShowDataSaving:boolean",visible:!1},"cookieName","sendResultOnPageNext:boolean",{name:"showNavigationButtons",default:"bottom",choices:["none","top","bottom","both"]},{name:"showPrevButton:boolean",default:!0},{name:"showTitle:boolean",default:!0},{name:"showPageTitles:boolean",default:!0},{name:"showCompletedPage:boolean",default:!0},"navigateToUrl",{name:"navigateToUrlOnCondition:urlconditions",className:"urlconditionitem"},{name:"questionsOrder",default:"initial",choices:["initial","random"]},"showPageNumbers:boolean",{name:"showQuestionNumbers",default:"on",choices:["on","onPage","off"]},{name:"questionTitleLocation",default:"top",choices:["top","bottom","left"]},{name:"questionDescriptionLocation",default:"underTitle",choices:["underInput","underTitle"]},{name:"questionErrorLocation",default:"top",choices:["top","bottom"]},{name:"showProgressBar",default:"off",choices:["off","top","bottom","both"]},{name:"progressBarType",default:"pages",choices:["pages","questions","requiredQuestions","correctQuestions","buttons"]},{name:"showTOC:switch",default:!1},{name:"tocLocation",default:"left",choices:["left","right"]},{name:"mode",default:"edit",choices:["edit","display"]},{name:"storeOthersAsComment:boolean",default:!0},{name:"maxTextLength:number",default:0,minValue:0},{name:"maxOthersLength:number",default:0,minValue:0},{name:"goNextPageAutomatic:boolean",onSetValue:function(e,t){"autogonext"!==t&&(t=o.Helpers.isTwoValueEquals(t,!0)),e.setPropertyValue("goNextPageAutomatic",t)}},{name:"clearInvisibleValues",default:"onComplete",choices:["none","onComplete","onHidden","onHiddenContainer"]},{name:"checkErrorsMode",default:"onNextPage",choices:["onNextPage","onValueChanged","onValueChanging","onComplete"]},{name:"textUpdateMode",default:"onBlur",choices:["onBlur","onTyping"]},{name:"autoGrowComment:boolean",default:!1},{name:"allowResizeComment:boolean",default:!0},{name:"startSurveyText",serializationProperty:"locStartSurveyText"},{name:"pagePrevText",serializationProperty:"locPagePrevText"},{name:"pageNextText",serializationProperty:"locPageNextText"},{name:"completeText",serializationProperty:"locCompleteText"},{name:"previewText",serializationProperty:"locPreviewText"},{name:"editText",serializationProperty:"locEditText"},{name:"requiredText",default:"*"},{name:"questionStartIndex",dependsOn:["showQuestionNumbers"],visibleIf:function(e){return!e||"off"!==e.showQuestionNumbers}},{name:"questionTitlePattern",default:"numTitleRequire",dependsOn:["questionStartIndex","requiredText"],choices:function(e){return e?e.getQuestionTitlePatternOptions():[]}},{name:"questionTitleTemplate",visible:!1,isSerializable:!1,serializationProperty:"locQuestionTitleTemplate"},{name:"firstPageIsStarted:boolean",default:!1},{name:"isSinglePage:boolean",default:!1,visible:!1,isSerializable:!1},{name:"questionsOnPageMode",default:"standard",choices:["singlePage","standard","questionPerPage"]},{name:"showPreviewBeforeComplete",default:"noPreview",choices:["noPreview","showAllQuestions","showAnsweredQuestions"]},{name:"maxTimeToFinish:number",default:0,minValue:0},{name:"maxTimeToFinishPage:number",default:0,minValue:0},{name:"showTimerPanel",default:"none",choices:["none","top","bottom"]},{name:"showTimerPanelMode",default:"all",choices:["all","page","survey"]},{name:"widthMode",default:"auto",choices:["auto","static","responsive"]},"width",{name:"backgroundImage",serializationProperty:"locBackgroundImage",visible:!1},{name:"backgroundImageFit",default:"cover",choices:["auto","contain","cover"],visible:!1},{name:"backgroundOpacity:number",minValue:0,maxValue:1,default:1,visible:!1},{name:"showBrandInfo:boolean",default:!1,visible:!1}])},"./src/surveyProgress.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyProgressModel",(function(){return o}));var n=r("./src/utils/cssClassBuilder.ts"),o=function(){function e(){}return e.getProgressTextInBarCss=function(e){return(new n.CssClassBuilder).append(e.progressText).append(e.progressTextInBar).toString()},e.getProgressTextUnderBarCss=function(e){return(new n.CssClassBuilder).append(e.progressText).append(e.progressTextUnderBar).toString()},e}()},"./src/surveyProgressButtons.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyProgressButtonsModel",(function(){return o}));var n=r("./src/utils/cssClassBuilder.ts"),o=function(){function e(e){this.survey=e}return e.prototype.isListElementClickable=function(e){return!(this.survey.onServerValidateQuestions&&!this.survey.onServerValidateQuestions.isEmpty&&"onComplete"!==this.survey.checkErrorsMode)||e<=this.survey.currentPageNo+1},e.prototype.getListElementCss=function(e){if(!(e>=this.survey.visiblePages.length))return(new n.CssClassBuilder).append(this.survey.css.progressButtonsListElementPassed,this.survey.visiblePages[e].passed).append(this.survey.css.progressButtonsListElementCurrent,this.survey.currentPageNo===e).append(this.survey.css.progressButtonsListElementNonClickable,!this.isListElementClickable(e)).toString()},e.prototype.getScrollButtonCss=function(e,t){return(new n.CssClassBuilder).append(this.survey.css.progressButtonsImageButtonLeft,t).append(this.survey.css.progressButtonsImageButtonRight,!t).append(this.survey.css.progressButtonsImageButtonHidden,!e).toString()},e.prototype.clickListElement=function(e){if(!this.survey.isDesignMode)if(e<this.survey.currentPageNo)this.survey.currentPageNo=e;else if(e>this.survey.currentPageNo)for(var t=this.survey.currentPageNo;t<e&&this.survey.nextPage();t++);},e}()},"./src/surveyStrings.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"surveyLocalization",(function(){return o})),r.d(t,"surveyStrings",(function(){return i}));var n=r("./src/localization/english.ts"),o={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},supportedLocales:[],get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(e){"cz"===e&&(e="cs"),this.currentLocaleValue=e},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(e){"cz"===e&&(e="cs"),this.defaultLocaleValue=e},getLocaleStrings:function(e){return this.locales[e]},getString:function(e,t){var r=this;void 0===t&&(t=null);var n=new Array,o=function(e){var t=r.locales[e];t&&n.push(t)},i=function(e){if(e){o(e);var t=e.indexOf("-");t<1||(e=e.substring(0,t),o(e))}};i(t),i(this.currentLocale),i(this.defaultLocale),"en"!==this.defaultLocale&&o("en");for(var s=0;s<n.length;s++){var a=n[s][e];if(void 0!==a)return a}return this.onGetExternalString(e,t)},getLocales:function(e){void 0===e&&(e=!1);var t=[];t.push("");var r=this.locales;if(this.supportedLocales&&this.supportedLocales.length>0){r={};for(var n=0;n<this.supportedLocales.length;n++)r[this.supportedLocales[n]]=!0}for(var i in r)e&&i==this.defaultLocale||t.push(i);var s=function(e){if(!e)return"";var t=o.localeNames[e];return t||(t=e),t.toLowerCase()};return t.sort((function(e,t){var r=s(e),n=s(t);return r===n?0:r<n?-1:1})),t},onGetExternalString:function(e,t){}},i=n.englishStrings;o.locales.en=n.englishStrings,o.localeNames.en="english"},"./src/surveyTimerModel.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyTimerModel",(function(){return c}));var n,o=r("./src/base.ts"),i=r("./src/surveytimer.ts"),s=r("./src/jsonobject.ts"),a=r("./src/utils/cssClassBuilder.ts"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},c=function(e){function t(t){var r=e.call(this)||this;return r.timerFunc=null,r.surveyValue=t,r.onCreating(),r}return l(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),t.prototype.onCreating=function(){},t.prototype.start=function(){var e=this;this.survey&&(this.isRunning||this.isDesignMode||(this.survey.onCurrentPageChanged.add((function(){e.update()})),this.timerFunc=function(){e.doTimer()},this.setIsRunning(!0),this.update(),i.SurveyTimer.instance.start(this.timerFunc)))},t.prototype.stop=function(){this.isRunning&&(this.setIsRunning(!1),i.SurveyTimer.instance.stop(this.timerFunc))},Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getPropertyValue("isRunning",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsRunning=function(e){this.setPropertyValue("isRunning",e)},t.prototype.update=function(){this.updateText(),this.updateProgress()},t.prototype.doTimer=function(){var e=this.survey.currentPage;e&&(e.timeSpent=e.timeSpent+1),this.spent=this.spent+1,this.update(),this.onTimer&&this.onTimer(e)},t.prototype.updateProgress=function(){var e=this,t=this.survey.timerInfo,r=t.spent,n=t.limit;n?0==r?(this.progress=0,setTimeout((function(){e.progress=Math.floor((r+1)/n*100)/100}),0)):r!==n&&(this.progress=Math.floor((r+1)/n*100)/100):this.progress=void 0},t.prototype.updateText=function(){var e=this.survey.timerClock;this.clockMajorText=e.majorText,this.clockMinorText=e.minorText,this.text=this.survey.timerInfoText},Object.defineProperty(t.prototype,"showProgress",{get:function(){return void 0!==this.progress},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimerAsClock",{get:function(){return!!this.survey.getCss().clockTimerRoot},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootCss",{get:function(){return(new a.CssClassBuilder).append(this.survey.getCss().clockTimerRoot).append(this.survey.getCss().clockTimerRootTop,this.survey.isTimerPanelShowingOnTop).append(this.survey.getCss().clockTimerRootBottom,this.survey.isTimerPanelShowingOnBottom).toString()},enumerable:!1,configurable:!0}),t.prototype.getProgressCss=function(){return(new a.CssClassBuilder).append(this.survey.getCss().clockTimerProgress).append(this.survey.getCss().clockTimerProgressAnimation,this.progress>0).toString()},Object.defineProperty(t.prototype,"textContainerCss",{get:function(){return this.survey.getCss().clockTimerTextContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minorTextCss",{get:function(){return this.survey.getCss().clockTimerMinorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"majorTextCss",{get:function(){return this.survey.getCss().clockTimerMajorText},enumerable:!1,configurable:!0}),u([Object(s.property)()],t.prototype,"text",void 0),u([Object(s.property)()],t.prototype,"progress",void 0),u([Object(s.property)()],t.prototype,"clockMajorText",void 0),u([Object(s.property)()],t.prototype,"clockMinorText",void 0),u([Object(s.property)({defaultValue:0})],t.prototype,"spent",void 0),t}(o.Base)},"./src/surveyToc.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"tryNavigateToPage",(function(){return s})),r.d(t,"createTOCListModel",(function(){return a})),r.d(t,"getTocRootCss",(function(){return l}));var n=r("./src/actions/action.ts"),o=r("./src/base.ts"),i=r("./src/list.ts");function s(e,t){if(!e.isDesignMode){if(t<e.currentPageNo)e.currentPageNo=t;else if(t>e.currentPageNo)for(var r=e.currentPageNo;r<t;r++)if(!e.nextPageUIClick())return!1;return!0}}function a(e){var t=e.pages.map((function(t,r){return new n.Action({id:t.name,title:t.navigationTitle||t.title||t.name,action:function(){return void 0!==typeof document&&document.activeElement&&document.activeElement.blur&&document.activeElement.blur(),s(e,r)},visible:new o.ComputedUpdater((function(){return t.isVisible&&!t.isStartPage}))})})),r=new i.ListModel(t,(function(e){e.action()&&(r.selectedItem=e)}),!0,t.filter((function(t){return t.id===e.currentPage.name}))[0]);return r.allowSelection=!1,r.locOwner=e,e.onCurrentPageChanged.add((function(n,o){r.selectedItem=t.filter((function(t){return t.id===e.currentPage.name}))[0]})),r}function l(e){return"sv_progress-toc sv_progress-toc--"+(e.tocLocation||"").toLowerCase()}},"./src/surveytimer.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"surveyTimerFunctions",(function(){return o})),r.d(t,"SurveyTimer",(function(){return i}));var n=r("./src/base.ts"),o={setTimeout:function(e){return"undefined"==typeof window?0:window.setTimeout(e,1e3)},clearTimeout:function(e){"undefined"!=typeof window&&window.clearTimeout(e)}},i=function(){function e(){this.listenerCounter=0,this.timerId=-1,this.onTimer=new n.Event}return Object.defineProperty(e,"instance",{get:function(){return e.instanceValue||(e.instanceValue=new e),e.instanceValue},enumerable:!1,configurable:!0}),e.prototype.start=function(e){var t=this;void 0===e&&(e=null),e&&this.onTimer.add(e),this.timerId<0&&(this.timerId=o.setTimeout((function(){t.doTimer()}))),this.listenerCounter++},e.prototype.stop=function(e){void 0===e&&(e=null),e&&this.onTimer.remove(e),this.listenerCounter--,0==this.listenerCounter&&this.timerId>-1&&(o.clearTimeout(this.timerId),this.timerId=-1)},e.prototype.doTimer=function(){var e=this;if((this.onTimer.isEmpty||0==this.listenerCounter)&&(this.timerId=-1),!(this.timerId<0)){var t=this.timerId;this.onTimer.fire(this,{}),t===this.timerId&&(this.timerId=o.setTimeout((function(){e.doTimer()})))}},e.instanceValue=null,e}()},"./src/svgbundle.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SvgIconRegistry",(function(){return i})),r.d(t,"SvgRegistry",(function(){return s})),r.d(t,"SvgBundleViewModel",(function(){}));var n=r("./src/settings.ts"),o=r("./src/utils/utils.ts"),i=function(){function e(){this.icons={},this.iconPrefix="icon-"}return e.prototype.registerIconFromSymbol=function(e,t){this.icons[e]=t},e.prototype.registerIconFromSvgViaElement=function(e,t,r){void 0===r&&(r=this.iconPrefix);var n=document.createElement("div");n.innerHTML=t;var o=document.createElement("symbol"),i=n.querySelector("svg");o.innerHTML=i.innerHTML;for(var s=0;s<i.attributes.length;s++)o.setAttributeNS("http://www.w3.org/2000/svg",i.attributes[s].name,i.attributes[s].value);o.id=r+e,this.registerIconFromSymbol(e,o.outerHTML)},e.prototype.registerIconFromSvg=function(e,t,r){void 0===r&&(r=this.iconPrefix);var n=(t=t.trim()).toLowerCase();return"<svg "===n.substring(0,5)&&"</svg>"===n.substring(n.length-6,n.length)&&(this.registerIconFromSymbol(e,'<symbol id="'+r+e+'" '+t.substring(5,n.length-6)+"</symbol>"),!0)},e.prototype.registerIconsFromFolder=function(e){var t=this;e.keys().forEach((function(r){t.registerIconFromSvg(r.substring(2,r.length-4).toLowerCase(),e(r))}))},e.prototype.iconsRenderedHtml=function(){var e=this;return Object.keys(this.icons).map((function(t){return e.icons[t]})).join("")},e.prototype.renderIcons=function(){var e="sv-icon-holder-global-container";if(!n.settings.environment.root.getElementById(e)){var t=document.createElement("div");t.id=e,t.innerHTML="<svg>"+this.iconsRenderedHtml()+"</svg>",t.style.display="none",Object(o.getElement)(n.settings.environment.svgMountContainer).appendChild(t)}},e}(),s=new i,a=r("./src/images sync \\.svg$"),l=r("./src/images/smiley sync \\.svg$");s.registerIconsFromFolder(a),s.registerIconsFromFolder(l)},"./src/template-renderer.ts":function(e,t,r){"use strict";r.r(t)},"./src/textPreProcessor.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"TextPreProcessorItem",(function(){return i})),r.d(t,"TextPreProcessorValue",(function(){return s})),r.d(t,"TextPreProcessor",(function(){return a})),r.d(t,"QuestionTextProcessor",(function(){return l}));var n=r("./src/helpers.ts"),o=r("./src/conditionProcessValue.ts"),i=function(){},s=function(e,t){this.name=e,this.returnDisplayValue=t,this.isExists=!1,this.canProcess=!0},a=function(){function e(){this._unObservableValues=[void 0]}return Object.defineProperty(e.prototype,"hasAllValuesOnLastRunValue",{get:function(){return this._unObservableValues[0]},set:function(e){this._unObservableValues[0]=e},enumerable:!1,configurable:!0}),e.prototype.process=function(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=!1),this.hasAllValuesOnLastRunValue=!0,!e)return e;if(!this.onProcess)return e;for(var o=this.getItems(e),i=o.length-1;i>=0;i--){var a=o[i],l=this.getName(e.substring(a.start+1,a.end));if(l){var u=new s(l,t);if(this.onProcess(u),u.isExists){n.Helpers.isValueEmpty(u.value)&&(this.hasAllValuesOnLastRunValue=!1);var c=n.Helpers.isValueEmpty(u.value)?"":u.value;r&&(c=encodeURIComponent(c)),e=e.substring(0,a.start)+c+e.substring(a.end+1)}else u.canProcess&&(this.hasAllValuesOnLastRunValue=!1)}}return e},e.prototype.processValue=function(e,t){var r=new s(e,t);return this.onProcess&&this.onProcess(r),r},Object.defineProperty(e.prototype,"hasAllValuesOnLastRun",{get:function(){return!!this.hasAllValuesOnLastRunValue},enumerable:!1,configurable:!0}),e.prototype.getItems=function(e){for(var t=[],r=e.length,n=-1,o="",s=0;s<r;s++)if("{"==(o=e[s])&&(n=s),"}"==o){if(n>-1){var a=new i;a.start=n,a.end=s,t.push(a)}n=-1}return t},e.prototype.getName=function(e){if(e)return e.trim()},e}(),l=function(){function e(e){var t=this;this.variableName=e,this.textPreProcessor=new a,this.textPreProcessor.onProcess=function(e){t.getProcessedTextValue(e)}}return e.prototype.processValue=function(e,t){return this.textPreProcessor.processValue(e,t)},Object.defineProperty(e.prototype,"survey",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"panel",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.getValues=function(){return this.panel?this.panel.getValue():null},e.prototype.getQuestionByName=function(e){return this.panel?this.panel.getQuestionByValueName(e):null},e.prototype.getParentTextProcessor=function(){return null},e.prototype.onCustomProcessText=function(e){return!1},e.prototype.getQuestionDisplayText=function(e){return e.displayValue},e.prototype.getProcessedTextValue=function(e){if(e&&!this.onCustomProcessText(e)){var t=(new o.ProcessValue).getFirstName(e.name);if(e.isExists=t==this.variableName,e.canProcess=e.isExists,e.canProcess){e.name=e.name.replace(this.variableName+".",""),t=(new o.ProcessValue).getFirstName(e.name);var r=this.getQuestionByName(t),n={};if(r)n[t]=e.returnDisplayValue?this.getQuestionDisplayText(r):r.value;else{var i=this.panel?this.getValues():null;i&&(n[t]=i[t])}e.value=(new o.ProcessValue).getValue(e.name,n)}}},e.prototype.processText=function(e,t){return this.survey&&this.survey.isDesignMode?e:(e=this.textPreProcessor.process(e,t),e=this.processTextCore(this.getParentTextProcessor(),e,t),this.processTextCore(this.survey,e,t))},e.prototype.processTextEx=function(e,t){e=this.processText(e,t);var r=this.textPreProcessor.hasAllValuesOnLastRun,n={hasAllValuesOnLastRun:!0,text:e};return this.survey&&(n=this.survey.processTextEx(e,t,!1)),n.hasAllValuesOnLastRun=n.hasAllValuesOnLastRun&&r,n},e.prototype.processTextCore=function(e,t,r){return e?e.processText(t,r):t},e}()},"./src/trigger.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"Trigger",(function(){return d})),r.d(t,"SurveyTrigger",(function(){return h})),r.d(t,"SurveyTriggerVisible",(function(){return f})),r.d(t,"SurveyTriggerComplete",(function(){return m})),r.d(t,"SurveyTriggerSetValue",(function(){return g})),r.d(t,"SurveyTriggerSkip",(function(){return b})),r.d(t,"SurveyTriggerRunExpression",(function(){return y})),r.d(t,"SurveyTriggerCopyValue",(function(){return v}));var n,o=r("./src/helpers.ts"),i=r("./src/base.ts"),s=r("./src/jsonobject.ts"),a=r("./src/conditions.ts"),l=r("./src/expressions/expressions.ts"),u=r("./src/conditionProcessValue.ts"),c=r("./src/settings.ts"),p=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e){function t(){var r=e.call(this)||this;return r.idValue=t.idCounter++,r.usedNames=[],r.registerPropertyChangedHandlers(["operator","value","name"],(function(){r.oldPropertiesChanged()})),r.registerPropertyChangedHandlers(["expression"],(function(){r.onExpressionChanged()})),r}return p(t,e),Object.defineProperty(t,"operators",{get:function(){return null!=t.operatorsValue||(t.operatorsValue={empty:function(e,t){return!e},notempty:function(e,t){return!!e},equal:function(e,t){return e==t},notequal:function(e,t){return e!=t},contains:function(e,t){return e&&e.indexOf&&e.indexOf(t)>-1},notcontains:function(e,t){return!e||!e.indexOf||-1==e.indexOf(t)},greater:function(e,t){return e>t},less:function(e,t){return e<t},greaterorequal:function(e,t){return e>=t},lessorequal:function(e,t){return e<=t}}),t.operatorsValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"triggerbase"},t.prototype.toString=function(){var e=this.getType().replace("trigger",""),t=this.expression?this.expression:this.buildExpression();return t&&(e+=", "+t),e},Object.defineProperty(t.prototype,"operator",{get:function(){return this.getPropertyValue("operator","equal")},set:function(e){e&&(e=e.toLowerCase(),t.operators[e]&&this.setPropertyValue("operator",e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value",null)},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return!0},t.prototype.canBeExecutedOnComplete=function(){return!1},t.prototype.checkExpression=function(e,t,r,n,o){void 0===o&&(o=null),this.isExecutingOnNextPage=e,this.canBeExecuted(e)&&(t&&!this.canBeExecutedOnComplete()||this.isCheckRequired(r)&&this.conditionRunner&&this.perform(n,o))},t.prototype.check=function(e){t.operators[this.operator](e,this.value)?this.onSuccess({},null):this.onFailure()},t.prototype.perform=function(e,t){var r=this;this.conditionRunner.onRunComplete=function(n){r.triggerResult(n,e,t)},this.conditionRunner.run(e,t)},t.prototype.triggerResult=function(e,t,r){e?(this.onSuccess(t,r),this.onSuccessExecuted()):this.onFailure()},t.prototype.onSuccess=function(e,t){},t.prototype.onFailure=function(){},t.prototype.onSuccessExecuted=function(){},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.oldPropertiesChanged()},t.prototype.oldPropertiesChanged=function(){this.onExpressionChanged()},t.prototype.onExpressionChanged=function(){this.usedNames=[],this.hasFunction=!1,this.conditionRunner=null},t.prototype.buildExpression=function(){return this.name?this.isValueEmpty(this.value)&&this.isRequireValue?"":"{"+this.name+"} "+this.operator+" "+l.OperandMaker.toOperandString(this.value):""},t.prototype.isCheckRequired=function(e){if(!e)return!1;if(this.buildUsedNames(),!0===this.hasFunction)return!0;for(var t=new u.ProcessValue,r=0;r<this.usedNames.length;r++){var n=this.usedNames[r];if(e.hasOwnProperty(n))return!0;var o=t.getFirstName(n);if(e.hasOwnProperty(o)){if(n===o)return!0;var i=e[o];if(null!=i){if(!i.hasOwnProperty("oldValue")||!i.hasOwnProperty("newValue"))return!0;var s={};s[o]=i.oldValue;var a=t.getValue(n,s);s[o]=i.newValue;var l=t.getValue(n,s);if(!this.isTwoValueEquals(a,l))return!0}}}return!1},t.prototype.buildUsedNames=function(){if(!this.conditionRunner){var e=this.expression;e||(e=this.buildExpression()),e&&(this.conditionRunner=new a.ConditionRunner(e),this.hasFunction=this.conditionRunner.hasFunction(),this.usedNames=this.conditionRunner.getVariables())}},Object.defineProperty(t.prototype,"isRequireValue",{get:function(){return"empty"!==this.operator&&"notempty"!=this.operator},enumerable:!1,configurable:!0}),t.idCounter=1,t.operatorsValue=null,t}(i.Base),h=function(e){function t(){var t=e.call(this)||this;return t.ownerValue=null,t}return p(t,e),Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},enumerable:!1,configurable:!0}),t.prototype.setOwner=function(e){this.ownerValue=e},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner&&this.owner.getSurvey?this.owner.getSurvey():null},t.prototype.isRealExecution=function(){return!0},t.prototype.onSuccessExecuted=function(){this.owner&&this.isRealExecution()&&this.owner.triggerExecuted(this)},t}(d),f=function(e){function t(){var t=e.call(this)||this;return t.pages=[],t.questions=[],t}return p(t,e),t.prototype.getType=function(){return"visibletrigger"},t.prototype.onSuccess=function(e,t){this.onTrigger(this.onItemSuccess)},t.prototype.onFailure=function(){this.onTrigger(this.onItemFailure)},t.prototype.onTrigger=function(e){if(this.owner)for(var t=this.owner.getObjects(this.pages,this.questions),r=0;r<t.length;r++)e(t[r])},t.prototype.onItemSuccess=function(e){e.visible=!0},t.prototype.onItemFailure=function(e){e.visible=!1},t}(h),m=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"completetrigger"},t.prototype.isRealExecution=function(){return!c.settings.executeCompleteTriggerOnValueChanged===this.isExecutingOnNextPage},t.prototype.onSuccess=function(e,t){this.owner&&(this.isRealExecution()?this.owner.setCompleted():this.owner.canBeCompleted(this,!0))},t.prototype.onFailure=function(){this.owner.canBeCompleted(this,!1)},t}(h),g=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"setvaluetrigger"},t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName},t.prototype.onPropertyValueChanged=function(t,r,n){if(e.prototype.onPropertyValueChanged.call(this,t,r,n),"setToName"===t){var o=this.getSurvey();o&&!o.isLoadingFromJson&&o.isDesignMode&&(this.setValue=void 0)}},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValue",{get:function(){return this.getPropertyValue("setValue")},set:function(e){this.setPropertyValue("setValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVariable",{get:function(){return this.getPropertyValue("isVariable")},set:function(e){this.setPropertyValue("isVariable",e)},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.setTriggerValue(this.setToName,this.setValue,this.isVariable)},t}(h),b=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"skiptrigger"},Object.defineProperty(t.prototype,"gotoName",{get:function(){return this.getPropertyValue("gotoName","")},set:function(e){this.setPropertyValue("gotoName",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return e===!c.settings.executeSkipTriggerOnValueChanged},t.prototype.onSuccess=function(e,t){this.gotoName&&this.owner&&this.owner.focusQuestion(this.gotoName)},t}(h),y=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"runexpressiontrigger"},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runExpression",{get:function(){return this.getPropertyValue("runExpression","")},set:function(e){this.setPropertyValue("runExpression",e)},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,t){var r=this;if(this.owner&&this.runExpression){var n=new a.ExpressionRunner(this.runExpression);n.canRun&&(n.onRunComplete=function(e){r.onCompleteRunExpression(e)},n.run(e,t))}},t.prototype.onCompleteRunExpression=function(e){this.setToName&&void 0!==e&&this.owner.setTriggerValue(this.setToName,o.Helpers.convertValToQuestionVal(e),!1)},t}(h),v=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName&&!!this.fromName},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fromName",{get:function(){return this.getPropertyValue("fromName","")},set:function(e){this.setPropertyValue("fromName",e)},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"copyvaluetrigger"},t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.copyTriggerValue(this.setToName,this.fromName)},t}(h);s.Serializer.addClass("trigger",[{name:"operator",default:"equal",visible:!1},{name:"value",visible:!1},"expression:condition"]),s.Serializer.addClass("surveytrigger",[{name:"name",visible:!1}],null,"trigger"),s.Serializer.addClass("visibletrigger",["pages:pages","questions:questions"],(function(){return new f}),"surveytrigger"),s.Serializer.addClass("completetrigger",[],(function(){return new m}),"surveytrigger"),s.Serializer.addClass("setvaluetrigger",[{name:"!setToName:questionvalue"},{name:"setValue:triggervalue",dependsOn:"setToName",visibleIf:function(e){return!!e&&!!e.setToName}},{name:"isVariable:boolean",visible:!1}],(function(){return new g}),"surveytrigger"),s.Serializer.addClass("copyvaluetrigger",[{name:"!fromName:questionvalue"},{name:"!setToName:questionvalue"}],(function(){return new v}),"surveytrigger"),s.Serializer.addClass("skiptrigger",[{name:"!gotoName:question"}],(function(){return new b}),"surveytrigger"),s.Serializer.addClass("runexpressiontrigger",[{name:"setToName:questionvalue"},"runExpression:expression"],(function(){return new y}),"surveytrigger")},"./src/utils/cssClassBuilder.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"CssClassBuilder",(function(){return n}));var n=function(){function e(){this.classes=[]}return e.prototype.isEmpty=function(){return""===this.toString()},e.prototype.append=function(e,t){return void 0===t&&(t=!0),e&&t&&("string"==typeof e&&(e=e.trim()),this.classes.push(e)),this},e.prototype.toString=function(){return this.classes.join(" ")},e}()},"./src/utils/devices.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"IsMobile",(function(){return s})),r.d(t,"IsTouch",(function(){return l})),r.d(t,"_setIsTouch",(function(){return u}));var n,o=!1,i=null;"undefined"!=typeof navigator&&"undefined"!=typeof window&&navigator&&window&&(i=navigator.userAgent||navigator.vendor||window.opera),(n=i)&&("MacIntel"===navigator.platform&&navigator.maxTouchPoints>0||"iPad"===navigator.platform||/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(n)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(n.substring(0,4)))&&(o=!0);var s=o||!1,a=!1;"undefined"!=typeof window&&(a="ontouchstart"in window||navigator.maxTouchPoints>0);var l=s&&a;function u(e){l=e}},"./src/utils/dragOrClickHelper.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragOrClickHelper",(function(){return o}));var n=r("./src/entries/core.ts"),o=function(){function e(e){var t=this;this.dragHandler=e,this.onPointerUp=function(e){t.clearListeners()},this.tryToStartDrag=function(e){if(t.currentX=e.pageX,t.currentY=e.pageY,!t.isMicroMovement)return t.clearListeners(),t.dragHandler(t.pointerDownEvent,t.currentTarget,t.itemModel),!0}}return e.prototype.onPointerDown=function(e,t){n.IsTouch?this.dragHandler(e,e.currentTarget,t):(this.pointerDownEvent=e,this.currentTarget=e.currentTarget,this.startX=e.pageX,this.startY=e.pageY,document.addEventListener("pointermove",this.tryToStartDrag),this.currentTarget.addEventListener("pointerup",this.onPointerUp),this.itemModel=t)},Object.defineProperty(e.prototype,"isMicroMovement",{get:function(){var e=Math.abs(this.currentX-this.startX),t=Math.abs(this.currentY-this.startY);return e<10&&t<10},enumerable:!1,configurable:!0}),e.prototype.clearListeners=function(){this.pointerDownEvent&&(document.removeEventListener("pointermove",this.tryToStartDrag),this.currentTarget.removeEventListener("pointerup",this.onPointerUp))},e}()},"./src/utils/popup.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"PopupUtils",(function(){return n}));var n=function(){function e(){}return e.calculatePosition=function(e,t,r,n,o,i,s){void 0===s&&(s="flex");var a=e.left,l=e.top;return"flex"===s&&(a="center"==o?(e.left+e.right-r)/2:"left"==o?e.left-r:e.right),l="middle"==n?(e.top+e.bottom-t)/2:"top"==n?e.top-t:e.bottom,i&&"center"!=o&&"middle"!=n&&("top"==n?l+=e.height:l-=e.height),{left:Math.round(a),top:Math.round(l)}},e.updateVerticalDimensions=function(t,r,n){var o;return t<0?o={height:r+t,top:0}:r+t>n&&(o={height:Math.min(r,n-t-e.bottomIndent),top:t}),o},e.updateHorizontalDimensions=function(e,t,r,n,o,i){void 0===o&&(o="flex"),void 0===i&&(i={left:0,right:0}),t+=i.left+i.right;var s=void 0,a=e;return"center"===n&&("fixed"===o?(e+t>r&&(s=r-e),a-=i.left):e<0?(a=i.left,s=Math.min(t,r)):t+e>r&&(a=r-t,a=Math.max(a,i.left),s=Math.min(t,r))),"left"===n&&e<0&&(a=i.left,s=Math.min(t,r)),"right"===n&&t+e>r&&(s=r-e),{width:s-i.left-i.right,left:a}},e.updateVerticalPosition=function(e,t,r,n,o){var i=t-(e.top+(n?e.height:0)),s=t+e.bottom-(n?e.height:0)-o;return i>0&&s<=0&&"top"==r?r="bottom":s>0&&i<=0&&"bottom"==r?r="top":s>0&&i>0&&(r=i<s?"top":"bottom"),r},e.calculatePopupDirection=function(e,t){var r;return"center"==t&&"middle"!=e?r=e:"center"!=t&&(r=t),r},e.calculatePointerTarget=function(e,t,r,n,o,i,s){void 0===i&&(i=0),void 0===s&&(s=0);var a={};return"center"!=o?(a.top=e.top+e.height/2,a.left=e[o]):"middle"!=n&&(a.top=e[n],a.left=e.left+e.width/2),a.left=Math.round(a.left-r),a.top=Math.round(a.top-t),"left"==o&&(a.left-=i+s),"center"===o&&(a.left-=i),a},e.bottomIndent=16,e}()},"./src/utils/responsivity-manager.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ResponsivityManager",(function(){return s})),r.d(t,"VerticalResponsivityManager",(function(){return a}));var n,o=r("./src/utils/utils.ts"),i=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(){function e(e,t,r,n){var o=this;void 0===n&&(n=null),this.container=e,this.model=t,this.itemsSelector=r,this.dotsItemSize=n,this.resizeObserver=void 0,this.isInitialized=!1,this.minDimensionConst=56,this.separatorSize=17,this.separatorAddConst=1,this.paddingSizeConst=8,this.dotsSizeConst=48,this.recalcMinDimensionConst=!0,this.getComputedStyle=window.getComputedStyle.bind(window),this.model.updateCallback=function(e){e?o.isInitialized=!1:setTimeout((function(){o.process()}),1)},"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(e){return o.process()})),this.resizeObserver.observe(this.container.parentElement))}return e.prototype.getDimensions=function(e){return{scroll:e.scrollWidth,offset:e.offsetWidth}},e.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetWidth;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)),t},e.prototype.calcItemSize=function(e){return e.offsetWidth},e.prototype.calcMinDimension=function(e){var t=this.minDimensionConst;return e.iconSize&&this.recalcMinDimensionConst&&(t=2*e.iconSize+this.paddingSizeConst),e.canShrink?t+(e.needSeparator?this.separatorSize:0):e.maxDimension},e.prototype.calcItemsSizes=function(){var e=this,t=this.model.actions;this.container.querySelectorAll(this.itemsSelector).forEach((function(r,n){var o=t[n];e.calcActionDimensions(o,r)}))},e.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcMinDimension(e)},Object.defineProperty(e.prototype,"isContainerVisible",{get:function(){return Object(o.isContainerVisible)(this.container)},enumerable:!1,configurable:!0}),e.prototype.process=function(){var e;if(this.isContainerVisible&&!this.model.isResponsivenessDisabled){this.isInitialized||(this.model.setActionsMode("large"),this.calcItemsSizes(),this.isInitialized=!0);var t=this.dotsItemSize;if(!this.dotsItemSize){var r=null===(e=this.container)||void 0===e?void 0:e.querySelector(".sv-dots");t=r&&this.calcItemSize(r)||this.dotsSizeConst}this.model.fit(this.getAvailableSpace(),t)}},e.prototype.dispose=function(){this.model.updateCallback=void 0,this.resizeObserver&&this.resizeObserver.disconnect()},e}(),a=function(e){function t(t,r,n,o,i){void 0===i&&(i=40);var s=e.call(this,t,r,n,o)||this;return s.minDimensionConst=i,s.recalcMinDimensionConst=!1,s}return i(t,e),t.prototype.getDimensions=function(){return{scroll:this.container.scrollHeight,offset:this.container.offsetHeight}},t.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetHeight;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)),t},t.prototype.calcItemSize=function(e){return e.offsetHeight},t.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcItemSize(t)},t}(s)},"./src/utils/tooltip.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"TooltipManager",(function(){return n}));var n=function(){function e(e){var t=this;this.tooltipElement=e,this.onMouseMoveCallback=function(e){t.tooltipElement.style.left=e.clientX+12+"px",t.tooltipElement.style.top=e.clientY+12+"px"},this.targetElement=e.parentElement,this.targetElement.addEventListener("mousemove",this.onMouseMoveCallback)}return e.prototype.dispose=function(){this.targetElement.removeEventListener("mousemove",this.onMouseMoveCallback)},e}()},"./src/utils/utils.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"unwrap",(function(){return y})),r.d(t,"getSize",(function(){return v})),r.d(t,"doKey2ClickBlur",(function(){return x})),r.d(t,"doKey2ClickUp",(function(){return C})),r.d(t,"doKey2ClickDown",(function(){return P})),r.d(t,"sanitizeEditableContent",(function(){return k})),r.d(t,"Logger",(function(){return j})),r.d(t,"mergeValues",(function(){return I})),r.d(t,"getElementWidth",(function(){return O})),r.d(t,"isContainerVisible",(function(){return T})),r.d(t,"classesToSelector",(function(){return E})),r.d(t,"compareVersions",(function(){return o})),r.d(t,"confirmAction",(function(){return i})),r.d(t,"detectIEOrEdge",(function(){return a})),r.d(t,"detectIEBrowser",(function(){return s})),r.d(t,"loadFileFromBase64",(function(){return l})),r.d(t,"isMobile",(function(){return u})),r.d(t,"isShadowDOM",(function(){return c})),r.d(t,"getElement",(function(){return p})),r.d(t,"isElementVisible",(function(){return d})),r.d(t,"findScrollableParent",(function(){return h})),r.d(t,"scrollElementByChildId",(function(){return f})),r.d(t,"navigateToUrl",(function(){return m})),r.d(t,"createSvg",(function(){return b})),r.d(t,"getIconNameFromProxy",(function(){return g})),r.d(t,"increaseHeightByContent",(function(){return _})),r.d(t,"getOriginalEvent",(function(){return S})),r.d(t,"preventDefaults",(function(){return V})),r.d(t,"findParentByClassNames",(function(){return R}));var n=r("./src/settings.ts");function o(e,t){for(var r=/(\.0+)+$/,n=e.replace(r,"").split("."),o=t.replace(r,"").split("."),i=Math.min(n.length,o.length),s=0;s<i;s++){var a=parseInt(n[s],10)-parseInt(o[s],10);if(a)return a}return n.length-o.length}function i(e){return n.settings&&n.settings.confirmActionFunc?n.settings.confirmActionFunc(e):confirm(e)}function s(){if("undefined"==typeof window)return!1;var e=window.navigator.userAgent,t=e.indexOf("MSIE "),r=e.indexOf("Trident/");return t>-1||r>-1}function a(){if("undefined"==typeof window)return!1;if(void 0===a.isIEOrEdge){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),r=e.indexOf("Trident/"),n=e.indexOf("Edge/");a.isIEOrEdge=n>0||r>0||t>0}return a.isIEOrEdge}function l(e,t){try{for(var r=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(r.length),i=new Uint8Array(o),s=0;s<r.length;s++)i[s]=r.charCodeAt(s);var a=new Blob([o],{type:n});"undefined"!=typeof window&&window.navigator&&window.navigator.msSaveBlob&&window.navigator.msSaveOrOpenBlob(a,t)}catch(e){}}function u(){return"undefined"!=typeof window&&void 0!==window.orientation}var c=function(e){return!!e&&!(!("host"in e)||!e.host)},p=function(e){var t=n.settings.environment.root;return"string"==typeof e?t.getElementById(e):e};function d(e,t){if(void 0===t&&(t=0),void 0===n.settings.environment)return!1;var r=n.settings.environment.root,o=c(r)?r.host.clientHeight:r.documentElement.clientHeight,i=e.getBoundingClientRect(),s=-t,a=Math.max(o,window.innerHeight)+t,l=i.top,u=i.bottom;return Math.max(s,l)<=Math.min(a,u)}function h(e){var t=n.settings.environment.root;return e?e.scrollHeight>e.clientHeight&&("scroll"===getComputedStyle(e).overflowY||"auto"===getComputedStyle(e).overflowY)||e.scrollWidth>e.clientWidth&&("scroll"===getComputedStyle(e).overflowX||"auto"===getComputedStyle(e).overflowX)?e:h(e.parentElement):c(t)?t.host:t.documentElement}function f(e){var t=n.settings.environment;if(t){var r=t.root.getElementById(e);if(r){var o=h(r);o&&o.dispatchEvent(new CustomEvent("scroll"))}}}function m(e){e&&"undefined"!=typeof window&&window.location&&(window.location.href=e)}function g(e){return e&&n.settings.customIcons[e]||e}function b(e,t,r,n,o,i){if(o){"auto"!==e&&(o.style.width=(e||t||16)+"px",o.style.height=(e||r||16)+"px");var s=o.childNodes[0],a=g(n);s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+a);var l=o.getElementsByTagName("title")[0];i?(l||(l=document.createElementNS("http://www.w3.org/2000/svg","title"),o.appendChild(l)),l.textContent=i):l&&o.removeChild(l)}}function y(e){return"function"!=typeof e?e:e()}function v(e){if("number"==typeof e)return e+"px";if(e&&"string"==typeof e&&e.length>0){var t=e[e.length-1];if(t>="0"&&t<="9"||"."==t)try{return parseFloat(e)+"px"}catch(e){}}return e}var w="sv-focused--by-key";function x(e){var t=e.target;t&&t.classList&&t.classList.remove(w)}function C(e,t){if(!e.target||"true"!==e.target.contentEditable){var r=e.target;if(r){var n=e.which||e.keyCode;if(9!==n){if(t){if(!t.__keyDownReceived)return;t.__keyDownReceived=!1}13===n||32===n?r.click&&r.click():t&&!t.processEsc||27!==n||r.blur&&r.blur()}else r.classList&&!r.classList.contains(w)&&r.classList.add(w)}}}function P(e,t){if(void 0===t&&(t={processEsc:!0}),t&&(t.__keyDownReceived=!0),!e.target||"true"!==e.target.contentEditable){var r=e.which||e.keyCode,n=[13,32];t.processEsc&&n.push(27),-1!==n.indexOf(r)&&e.preventDefault()}}function _(e,t){if(e){t||(t=function(e){return window.getComputedStyle(e)});var r=t(e);e.style.height="auto",e.style.height=e.scrollHeight+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth)+"px"}}function S(e){return e.originalEvent||e}function V(e){e.preventDefault(),e.stopPropagation()}function E(e){return e.replace(/\s*?([\w-]+)\s*?/g,".$1")}function O(e){return getComputedStyle?Number.parseFloat(getComputedStyle(e).width):e.offsetWidth}function T(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function R(e,t){if(e)return t.every((function(t){return!t||e.classList.contains(t)}))?e:R(e.parentElement,t)}function k(e){if(window.getSelection&&document.createRange&&e.childNodes.length>0){var t=document.getSelection(),r=t.getRangeAt(0);r.setStart(r.endContainer,r.endOffset),r.setEndAfter(e.lastChild),t.removeAllRanges(),t.addRange(r);var n=t.toString().replace(/\n/g,"").length;e.innerText=e.innerText.replace(/\n/g,""),(r=document.createRange()).setStart(e.childNodes[0],e.innerText.length-n),r.collapse(!0),t.removeAllRanges(),t.addRange(r)}}function I(e,t){if(t&&e&&"object"==typeof t)for(var r in e){var n=e[r];!Array.isArray(n)&&n&&"object"==typeof n?(t[r]&&"object"==typeof t[r]||(t[r]={}),I(n,t[r])):t[r]=n}}var j=function(){function e(){this._result=""}return e.prototype.log=function(e){this._result+="->"+e},Object.defineProperty(e.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),e}()},"./src/validator.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ValidatorResult",(function(){return c})),r.d(t,"SurveyValidator",(function(){return p})),r.d(t,"ValidatorRunner",(function(){return d})),r.d(t,"NumericValidator",(function(){return h})),r.d(t,"TextValidator",(function(){return f})),r.d(t,"AnswerCountValidator",(function(){return m})),r.d(t,"RegexValidator",(function(){return g})),r.d(t,"EmailValidator",(function(){return b})),r.d(t,"ExpressionValidator",(function(){return y}));var n,o=r("./src/base.ts"),i=r("./src/error.ts"),s=r("./src/jsonobject.ts"),a=r("./src/conditions.ts"),l=r("./src/helpers.ts"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t){void 0===t&&(t=null),this.value=e,this.error=t},p=function(e){function t(){var t=e.call(this)||this;return t.createLocalizableString("text",t,!0),t}return u(t,e),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.errorOwner&&this.errorOwner.getSurvey?this.errorOwner.getSurvey():null},Object.defineProperty(t.prototype,"text",{get:function(){return this.getLocalizableStringText("text")},set:function(e){this.setLocalizableStringText("text",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.getLocalizableString("text")},enumerable:!1,configurable:!0}),t.prototype.getErrorText=function(e){return this.text?this.text:this.getDefaultErrorText(e)},t.prototype.getDefaultErrorText=function(e){return""},t.prototype.validate=function(e,t,r,n){return void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),null},Object.defineProperty(t.prototype,"isRunning",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.errorOwner?this.errorOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.errorOwner?this.errorOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.errorOwner?this.errorOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.errorOwner?this.errorOwner.getProcessedText(e):e},t.prototype.createCustomError=function(e){var t=this,r=new i.CustomError(this.getErrorText(e),this.errorOwner);return r.onUpdateErrorTextCallback=function(r){return r.text=t.getErrorText(e)},r},t.prototype.toString=function(){var e=this.getType().replace("validator","");return this.text&&(e+=", "+this.text),e},t}(o.Base),d=function(){function e(){}return e.prototype.run=function(e){var t=this,r=[],n=null,o=null;this.prepareAsyncValidators();for(var i=[],s=e.getValidators(),a=0;a<s.length;a++){var l=s[a];!n&&l.isValidateAllValues&&(n=e.getDataFilteredValues(),o=e.getDataFilteredProperties()),l.isAsync&&(this.asyncValidators.push(l),l.onAsyncCompleted=function(e){if(e&&e.error&&i.push(e.error),t.onAsyncCompleted){for(var r=0;r<t.asyncValidators.length;r++)if(t.asyncValidators[r].isRunning)return;t.onAsyncCompleted(i)}})}for(s=e.getValidators(),a=0;a<s.length;a++){var u=(l=s[a]).validate(e.validatedValue,e.getValidatorTitle(),n,o);u&&u.error&&r.push(u.error)}return 0==this.asyncValidators.length&&this.onAsyncCompleted&&this.onAsyncCompleted([]),r},e.prototype.prepareAsyncValidators=function(){if(this.asyncValidators)for(var e=0;e<this.asyncValidators.length;e++)this.asyncValidators[e].onAsyncCompleted=null;this.asyncValidators=[]},e}(),h=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;return n.minValue=t,n.maxValue=r,n}return u(t,e),t.prototype.getType=function(){return"numericvalidator"},t.prototype.validate=function(e,t,r,n){if(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),this.isValueEmpty(e))return null;if(!l.Helpers.isNumber(e))return new c(null,new i.RequreNumericError(null,this.errorOwner));var o=new c(l.Helpers.getNumber(e));return null!==this.minValue&&this.minValue>o.value||null!==this.maxValue&&this.maxValue<o.value?(o.error=this.createCustomError(t),o):"number"==typeof e?null:o},t.prototype.getDefaultErrorText=function(e){var t=e||this.getLocalizationString("value");return null!==this.minValue&&null!==this.maxValue?this.getLocalizationFormatString("numericMinMax",t,this.minValue,this.maxValue):null!==this.minValue?this.getLocalizationFormatString("numericMin",t,this.minValue):this.getLocalizationFormatString("numericMax",t,this.maxValue)},Object.defineProperty(t.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")},set:function(e){this.setPropertyValue("minValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(e){this.setPropertyValue("maxValue",e)},enumerable:!1,configurable:!0}),t}(p),f=function(e){function t(){return e.call(this)||this}return u(t,e),t.prototype.getType=function(){return"textvalidator"},t.prototype.validate=function(e,t,r,n){return void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),this.isValueEmpty(e)?null:this.allowDigits||/^[A-Za-z\s\.]*$/.test(e)?this.minLength>0&&e.length<this.minLength||this.maxLength>0&&e.length>this.maxLength?new c(null,this.createCustomError(t)):null:new c(null,this.createCustomError(t))},t.prototype.getDefaultErrorText=function(e){return this.minLength>0&&this.maxLength>0?this.getLocalizationFormatString("textMinMaxLength",this.minLength,this.maxLength):this.minLength>0?this.getLocalizationFormatString("textMinLength",this.minLength):this.getLocalizationFormatString("textMaxLength",this.maxLength)},Object.defineProperty(t.prototype,"minLength",{get:function(){return this.getPropertyValue("minLength")},set:function(e){this.setPropertyValue("minLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowDigits",{get:function(){return this.getPropertyValue("allowDigits")},set:function(e){this.setPropertyValue("allowDigits",e)},enumerable:!1,configurable:!0}),t}(p),m=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;return n.minCount=t,n.maxCount=r,n}return u(t,e),t.prototype.getType=function(){return"answercountvalidator"},t.prototype.validate=function(e,t,r,n){if(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),null==e||e.constructor!=Array)return null;var o=e.length;return 0==o?null:this.minCount&&o<this.minCount?new c(null,this.createCustomError(this.getLocalizationFormatString("minSelectError",this.minCount))):this.maxCount&&o>this.maxCount?new c(null,this.createCustomError(this.getLocalizationFormatString("maxSelectError",this.maxCount))):null},t.prototype.getDefaultErrorText=function(e){return e},Object.defineProperty(t.prototype,"minCount",{get:function(){return this.getPropertyValue("minCount")},set:function(e){this.setPropertyValue("minCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxCount",{get:function(){return this.getPropertyValue("maxCount")},set:function(e){this.setPropertyValue("maxCount",e)},enumerable:!1,configurable:!0}),t}(p),g=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this)||this;return r.regex=t,r}return u(t,e),t.prototype.getType=function(){return"regexvalidator"},t.prototype.validate=function(e,t,r,n){if(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),!this.regex||this.isValueEmpty(e))return null;var o=new RegExp(this.regex);if(Array.isArray(e))for(var i=0;i<e.length;i++){var s=this.hasError(o,e[i],t);if(s)return s}return this.hasError(o,e,t)},t.prototype.hasError=function(e,t,r){return e.test(t)?null:new c(t,this.createCustomError(r))},Object.defineProperty(t.prototype,"regex",{get:function(){return this.getPropertyValue("regex")},set:function(e){this.setPropertyValue("regex",e)},enumerable:!1,configurable:!0}),t}(p),b=function(e){function t(){var t=e.call(this)||this;return t.re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()=[\]\.,;:\s@\"]+\.)+[^<>()=[\]\.,;:\s@\"]{2,})$/i,t}return u(t,e),t.prototype.getType=function(){return"emailvalidator"},t.prototype.validate=function(e,t,r,n){return void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),e?this.re.test(e)?null:new c(e,this.createCustomError(t)):null},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationString("invalidEmail")},t}(p),y=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this)||this;return r.conditionRunner=null,r.isRunningValue=!1,r.expression=t,r}return u(t,e),t.prototype.getType=function(){return"expressionvalidator"},Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!!this.ensureConditionRunner()&&this.conditionRunner.isAsync},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!1,configurable:!0}),t.prototype.validate=function(e,t,r,n){var o=this;if(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),!this.ensureConditionRunner())return null;this.conditionRunner.onRunComplete=function(r){o.isRunningValue=!1,o.onAsyncCompleted&&o.onAsyncCompleted(o.generateError(r,e,t))},this.isRunningValue=!0;var i=this.conditionRunner.run(r,n);return this.conditionRunner.isAsync?null:(this.isRunningValue=!1,this.generateError(i,e,t))},t.prototype.generateError=function(e,t,r){return e?null:new c(t,this.createCustomError(r))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationFormatString("invalidExpression",this.expression)},t.prototype.ensureConditionRunner=function(){return this.conditionRunner?(this.conditionRunner.expression=this.expression,!0):!!this.expression&&(this.conditionRunner=new a.ConditionRunner(this.expression),!0)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t}(p);s.Serializer.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),s.Serializer.addClass("numericvalidator",["minValue:number","maxValue:number"],(function(){return new h}),"surveyvalidator"),s.Serializer.addClass("textvalidator",[{name:"minLength:number",default:0},{name:"maxLength:number",default:0},{name:"allowDigits:boolean",default:!0}],(function(){return new f}),"surveyvalidator"),s.Serializer.addClass("answercountvalidator",["minCount:number","maxCount:number"],(function(){return new m}),"surveyvalidator"),s.Serializer.addClass("regexvalidator",["regex"],(function(){return new g}),"surveyvalidator"),s.Serializer.addClass("emailvalidator",[],(function(){return new b}),"surveyvalidator"),s.Serializer.addClass("expressionvalidator",["expression:condition"],(function(){return new y}),"surveyvalidator")}})},e.exports=t()},6352:function(e,t,r){var n;n=function(e,t,r){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="./src/entries/react-ui.ts")}({"./src/entries/core-export.ts":function(e,t,r){"use strict";r.r(t);var n=r("survey-core");r.d(t,"SurveyModel",(function(){return n.SurveyModel})),r.d(t,"SurveyWindowModel",(function(){return n.SurveyWindowModel})),r.d(t,"settings",(function(){return n.settings})),r.d(t,"surveyLocalization",(function(){return n.surveyLocalization})),r.d(t,"surveyStrings",(function(){return n.surveyStrings}))},"./src/entries/react-ui-model.ts":function(e,t,r){"use strict";r.r(t);var n=r("./src/react/reactSurvey.tsx");r.d(t,"Survey",(function(){return n.Survey})),r.d(t,"attachKey2click",(function(){return n.attachKey2click}));var o=r("./src/react/reactsurveymodel.tsx");r.d(t,"ReactSurveyElementsWrapper",(function(){return o.ReactSurveyElementsWrapper}));var i=r("./src/react/reactSurveyNavigationBase.tsx");r.d(t,"SurveyNavigationBase",(function(){return i.SurveyNavigationBase}));var s=r("./src/react/reacttimerpanel.tsx");r.d(t,"SurveyTimerPanel",(function(){return s.SurveyTimerPanel}));var a=r("./src/react/page.tsx");r.d(t,"SurveyPage",(function(){return a.SurveyPage}));var l=r("./src/react/row.tsx");r.d(t,"SurveyRow",(function(){return l.SurveyRow}));var u=r("./src/react/panel.tsx");r.d(t,"SurveyPanel",(function(){return u.SurveyPanel}));var c=r("./src/react/flow-panel.tsx");r.d(t,"SurveyFlowPanel",(function(){return c.SurveyFlowPanel}));var p=r("./src/react/reactquestion.tsx");r.d(t,"SurveyQuestion",(function(){return p.SurveyQuestion})),r.d(t,"SurveyElementErrors",(function(){return p.SurveyElementErrors})),r.d(t,"SurveyQuestionAndErrorsCell",(function(){return p.SurveyQuestionAndErrorsCell}));var d=r("./src/react/reactquestion_element.tsx");r.d(t,"ReactSurveyElement",(function(){return d.ReactSurveyElement})),r.d(t,"SurveyElementBase",(function(){return d.SurveyElementBase})),r.d(t,"SurveyQuestionElementBase",(function(){return d.SurveyQuestionElementBase}));var h=r("./src/react/reactquestion_comment.tsx");r.d(t,"SurveyQuestionCommentItem",(function(){return h.SurveyQuestionCommentItem})),r.d(t,"SurveyQuestionComment",(function(){return h.SurveyQuestionComment}));var f=r("./src/react/reactquestion_checkbox.tsx");r.d(t,"SurveyQuestionCheckbox",(function(){return f.SurveyQuestionCheckbox})),r.d(t,"SurveyQuestionCheckboxItem",(function(){return f.SurveyQuestionCheckboxItem}));var m=r("./src/react/reactquestion_ranking.tsx");r.d(t,"SurveyQuestionRanking",(function(){return m.SurveyQuestionRanking})),r.d(t,"SurveyQuestionRankingItem",(function(){return m.SurveyQuestionRankingItem}));var g=r("./src/react/components/rating/rating-item.tsx");r.d(t,"RatingItem",(function(){return g.RatingItem}));var b=r("./src/react/components/rating/rating-item-star.tsx");r.d(t,"RatingItemStar",(function(){return b.RatingItemStar}));var y=r("./src/react/components/rating/rating-item-smiley.tsx");r.d(t,"RatingItemSmiley",(function(){return y.RatingItemSmiley}));var v=r("./src/react/tagbox-filter.tsx");r.d(t,"TagboxFilterString",(function(){return v.TagboxFilterString}));var w=r("./src/react/dropdown-item.tsx");r.d(t,"SurveyQuestionOptionItem",(function(){return w.SurveyQuestionOptionItem}));var x=r("./src/react/dropdown-base.tsx");r.d(t,"SurveyQuestionDropdownBase",(function(){return x.SurveyQuestionDropdownBase}));var C=r("./src/react/reactquestion_dropdown.tsx");r.d(t,"SurveyQuestionDropdown",(function(){return C.SurveyQuestionDropdown}));var P=r("./src/react/tagbox-item.tsx");r.d(t,"SurveyQuestionTagboxItem",(function(){return P.SurveyQuestionTagboxItem}));var _=r("./src/react/reactquestion_tagbox.tsx");r.d(t,"SurveyQuestionTagbox",(function(){return _.SurveyQuestionTagbox}));var S=r("./src/react/dropdown-select.tsx");r.d(t,"SurveyQuestionDropdownSelect",(function(){return S.SurveyQuestionDropdownSelect}));var V=r("./src/react/reactquestion_matrix.tsx");r.d(t,"SurveyQuestionMatrix",(function(){return V.SurveyQuestionMatrix})),r.d(t,"SurveyQuestionMatrixRow",(function(){return V.SurveyQuestionMatrixRow}));var E=r("./src/react/reactquestion_html.tsx");r.d(t,"SurveyQuestionHtml",(function(){return E.SurveyQuestionHtml}));var O=r("./src/react/reactquestion_file.tsx");r.d(t,"SurveyQuestionFile",(function(){return O.SurveyQuestionFile}));var T=r("./src/react/reactquestion_multipletext.tsx");r.d(t,"SurveyQuestionMultipleText",(function(){return T.SurveyQuestionMultipleText}));var R=r("./src/react/reactquestion_radiogroup.tsx");r.d(t,"SurveyQuestionRadiogroup",(function(){return R.SurveyQuestionRadiogroup})),r.d(t,"SurveyQuestionRadioItem",(function(){return R.SurveyQuestionRadioItem}));var k=r("./src/react/reactquestion_text.tsx");r.d(t,"SurveyQuestionText",(function(){return k.SurveyQuestionText}));var I=r("./src/react/boolean.tsx");r.d(t,"SurveyQuestionBoolean",(function(){return I.SurveyQuestionBoolean}));var j=r("./src/react/boolean-checkbox.tsx");r.d(t,"SurveyQuestionBooleanCheckbox",(function(){return j.SurveyQuestionBooleanCheckbox}));var D=r("./src/react/boolean-radio.tsx");r.d(t,"SurveyQuestionBooleanRadio",(function(){return D.SurveyQuestionBooleanRadio}));var q=r("./src/react/reactquestion_empty.tsx");r.d(t,"SurveyQuestionEmpty",(function(){return q.SurveyQuestionEmpty}));var M=r("./src/react/reactquestion_matrixdropdownbase.tsx");r.d(t,"SurveyQuestionMatrixDropdownCell",(function(){return M.SurveyQuestionMatrixDropdownCell})),r.d(t,"SurveyQuestionMatrixDropdownBase",(function(){return M.SurveyQuestionMatrixDropdownBase}));var L=r("./src/react/reactquestion_matrixdropdown.tsx");r.d(t,"SurveyQuestionMatrixDropdown",(function(){return L.SurveyQuestionMatrixDropdown}));var A=r("./src/react/reactquestion_matrixdynamic.tsx");r.d(t,"SurveyQuestionMatrixDynamic",(function(){return A.SurveyQuestionMatrixDynamic})),r.d(t,"SurveyQuestionMatrixDynamicAddButton",(function(){return A.SurveyQuestionMatrixDynamicAddButton}));var N=r("./src/react/reactquestion_paneldynamic.tsx");r.d(t,"SurveyQuestionPanelDynamic",(function(){return N.SurveyQuestionPanelDynamic}));var B=r("./src/react/reactSurveyProgress.tsx");r.d(t,"SurveyProgress",(function(){return B.SurveyProgress}));var F=r("./src/react/reactSurveyProgressButtons.tsx");r.d(t,"SurveyProgressButtons",(function(){return F.SurveyProgressButtons}));var z=r("./src/react/reactSurveyProgressToc.tsx");r.d(t,"SurveyProgressToc",(function(){return z.SurveyProgressToc}));var Q=r("./src/react/reactquestion_rating.tsx");r.d(t,"SurveyQuestionRating",(function(){return Q.SurveyQuestionRating}));var H=r("./src/react/rating-dropdown.tsx");r.d(t,"SurveyQuestionRatingDropdown",(function(){return H.SurveyQuestionRatingDropdown}));var U=r("./src/react/reactquestion_expression.tsx");r.d(t,"SurveyQuestionExpression",(function(){return U.SurveyQuestionExpression}));var W=r("./src/react/react-popup-survey.tsx");r.d(t,"PopupSurvey",(function(){return W.PopupSurvey})),r.d(t,"SurveyWindow",(function(){return W.SurveyWindow}));var J=r("./src/react/reactquestion_factory.tsx");r.d(t,"ReactQuestionFactory",(function(){return J.ReactQuestionFactory}));var G=r("./src/react/element-factory.tsx");r.d(t,"ReactElementFactory",(function(){return G.ReactElementFactory}));var $=r("./src/react/imagepicker.tsx");r.d(t,"SurveyQuestionImagePicker",(function(){return $.SurveyQuestionImagePicker}));var K=r("./src/react/image.tsx");r.d(t,"SurveyQuestionImage",(function(){return K.SurveyQuestionImage}));var Z=r("./src/react/signaturepad.tsx");r.d(t,"SurveyQuestionSignaturePad",(function(){return Z.SurveyQuestionSignaturePad}));var X=r("./src/react/reactquestion_buttongroup.tsx");r.d(t,"SurveyQuestionButtonGroup",(function(){return X.SurveyQuestionButtonGroup}));var Y=r("./src/react/reactquestion_custom.tsx");r.d(t,"SurveyQuestionCustom",(function(){return Y.SurveyQuestionCustom})),r.d(t,"SurveyQuestionComposite",(function(){return Y.SurveyQuestionComposite}));var ee=r("./src/react/components/popup/popup.tsx");r.d(t,"Popup",(function(){return ee.Popup}));var te=r("./src/react/components/list/list.tsx");r.d(t,"List",(function(){return te.List}));var re=r("./src/react/components/title/title-actions.tsx");r.d(t,"TitleActions",(function(){return re.TitleActions}));var ne=r("./src/react/components/title/title-element.tsx");r.d(t,"TitleElement",(function(){return ne.TitleElement}));var oe=r("./src/react/components/action-bar/action-bar.tsx");r.d(t,"SurveyActionBar",(function(){return oe.SurveyActionBar}));var ie=r("./src/react/components/survey-header/logo-image.tsx");r.d(t,"LogoImage",(function(){return ie.LogoImage}));var se=r("./src/react/components/survey-header/survey-header.tsx");r.d(t,"SurveyHeader",(function(){return se.SurveyHeader}));var ae=r("./src/react/components/svg-icon/svg-icon.tsx");r.d(t,"SvgIcon",(function(){return ae.SvgIcon}));var le=r("./src/react/components/matrix-actions/remove-button/remove-button.tsx");r.d(t,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return le.SurveyQuestionMatrixDynamicRemoveButton}));var ue=r("./src/react/components/matrix-actions/detail-button/detail-button.tsx");r.d(t,"SurveyQuestionMatrixDetailButton",(function(){return ue.SurveyQuestionMatrixDetailButton}));var ce=r("./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx");r.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return ce.SurveyQuestionMatrixDynamicDragDropIcon}));var pe=r("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx");r.d(t,"SurveyQuestionPanelDynamicAddButton",(function(){return pe.SurveyQuestionPanelDynamicAddButton}));var de=r("./src/react/components/paneldynamic-actions/paneldynamic-remove-btn.tsx");r.d(t,"SurveyQuestionPanelDynamicRemoveButton",(function(){return de.SurveyQuestionPanelDynamicRemoveButton}));var he=r("./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx");r.d(t,"SurveyQuestionPanelDynamicPrevButton",(function(){return he.SurveyQuestionPanelDynamicPrevButton}));var fe=r("./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx");r.d(t,"SurveyQuestionPanelDynamicNextButton",(function(){return fe.SurveyQuestionPanelDynamicNextButton}));var me=r("./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx");r.d(t,"SurveyQuestionPanelDynamicProgressText",(function(){return me.SurveyQuestionPanelDynamicProgressText}));var ge=r("./src/react/components/survey-actions/survey-nav-button.tsx");r.d(t,"SurveyNavigationButton",(function(){return ge.SurveyNavigationButton}));var be=r("./src/react/components/matrix/row.tsx");r.d(t,"MatrixRow",(function(){return be.MatrixRow}));var ye=r("./src/react/components/skeleton.tsx");r.d(t,"Skeleton",(function(){return ye.Skeleton}));var ve=r("./src/react/components/notifier.tsx");r.d(t,"NotifierComponent",(function(){return ve.NotifierComponent}));var we=r("./src/react/components/components-container.tsx");r.d(t,"ComponentsContainer",(function(){return we.ComponentsContainer}));var xe=r("./src/react/components/character-counter.tsx");r.d(t,"CharacterCounterComponent",(function(){return xe.CharacterCounterComponent}));var Ce=r("./src/react/string-viewer.tsx");r.d(t,"SurveyLocStringViewer",(function(){return Ce.SurveyLocStringViewer}));var Pe=r("./src/react/string-editor.tsx");r.d(t,"SurveyLocStringEditor",(function(){return Pe.SurveyLocStringEditor}))},"./src/entries/react-ui.ts":function(e,t,r){"use strict";r.r(t);var n=r("./src/entries/react-ui-model.ts");r.d(t,"Survey",(function(){return n.Survey})),r.d(t,"attachKey2click",(function(){return n.attachKey2click})),r.d(t,"ReactSurveyElementsWrapper",(function(){return n.ReactSurveyElementsWrapper})),r.d(t,"SurveyNavigationBase",(function(){return n.SurveyNavigationBase})),r.d(t,"SurveyTimerPanel",(function(){return n.SurveyTimerPanel})),r.d(t,"SurveyPage",(function(){return n.SurveyPage})),r.d(t,"SurveyRow",(function(){return n.SurveyRow})),r.d(t,"SurveyPanel",(function(){return n.SurveyPanel})),r.d(t,"SurveyFlowPanel",(function(){return n.SurveyFlowPanel})),r.d(t,"SurveyQuestion",(function(){return n.SurveyQuestion})),r.d(t,"SurveyElementErrors",(function(){return n.SurveyElementErrors})),r.d(t,"SurveyQuestionAndErrorsCell",(function(){return n.SurveyQuestionAndErrorsCell})),r.d(t,"ReactSurveyElement",(function(){return n.ReactSurveyElement})),r.d(t,"SurveyElementBase",(function(){return n.SurveyElementBase})),r.d(t,"SurveyQuestionElementBase",(function(){return n.SurveyQuestionElementBase})),r.d(t,"SurveyQuestionCommentItem",(function(){return n.SurveyQuestionCommentItem})),r.d(t,"SurveyQuestionComment",(function(){return n.SurveyQuestionComment})),r.d(t,"SurveyQuestionCheckbox",(function(){return n.SurveyQuestionCheckbox})),r.d(t,"SurveyQuestionCheckboxItem",(function(){return n.SurveyQuestionCheckboxItem})),r.d(t,"SurveyQuestionRanking",(function(){return n.SurveyQuestionRanking})),r.d(t,"SurveyQuestionRankingItem",(function(){return n.SurveyQuestionRankingItem})),r.d(t,"RatingItem",(function(){return n.RatingItem})),r.d(t,"RatingItemStar",(function(){return n.RatingItemStar})),r.d(t,"RatingItemSmiley",(function(){return n.RatingItemSmiley})),r.d(t,"TagboxFilterString",(function(){return n.TagboxFilterString})),r.d(t,"SurveyQuestionOptionItem",(function(){return n.SurveyQuestionOptionItem})),r.d(t,"SurveyQuestionDropdownBase",(function(){return n.SurveyQuestionDropdownBase})),r.d(t,"SurveyQuestionDropdown",(function(){return n.SurveyQuestionDropdown})),r.d(t,"SurveyQuestionTagboxItem",(function(){return n.SurveyQuestionTagboxItem})),r.d(t,"SurveyQuestionTagbox",(function(){return n.SurveyQuestionTagbox})),r.d(t,"SurveyQuestionDropdownSelect",(function(){return n.SurveyQuestionDropdownSelect})),r.d(t,"SurveyQuestionMatrix",(function(){return n.SurveyQuestionMatrix})),r.d(t,"SurveyQuestionMatrixRow",(function(){return n.SurveyQuestionMatrixRow})),r.d(t,"SurveyQuestionHtml",(function(){return n.SurveyQuestionHtml})),r.d(t,"SurveyQuestionFile",(function(){return n.SurveyQuestionFile})),r.d(t,"SurveyQuestionMultipleText",(function(){return n.SurveyQuestionMultipleText})),r.d(t,"SurveyQuestionRadiogroup",(function(){return n.SurveyQuestionRadiogroup})),r.d(t,"SurveyQuestionRadioItem",(function(){return n.SurveyQuestionRadioItem})),r.d(t,"SurveyQuestionText",(function(){return n.SurveyQuestionText})),r.d(t,"SurveyQuestionBoolean",(function(){return n.SurveyQuestionBoolean})),r.d(t,"SurveyQuestionBooleanCheckbox",(function(){return n.SurveyQuestionBooleanCheckbox})),r.d(t,"SurveyQuestionBooleanRadio",(function(){return n.SurveyQuestionBooleanRadio})),r.d(t,"SurveyQuestionEmpty",(function(){return n.SurveyQuestionEmpty})),r.d(t,"SurveyQuestionMatrixDropdownCell",(function(){return n.SurveyQuestionMatrixDropdownCell})),r.d(t,"SurveyQuestionMatrixDropdownBase",(function(){return n.SurveyQuestionMatrixDropdownBase})),r.d(t,"SurveyQuestionMatrixDropdown",(function(){return n.SurveyQuestionMatrixDropdown})),r.d(t,"SurveyQuestionMatrixDynamic",(function(){return n.SurveyQuestionMatrixDynamic})),r.d(t,"SurveyQuestionMatrixDynamicAddButton",(function(){return n.SurveyQuestionMatrixDynamicAddButton})),r.d(t,"SurveyQuestionPanelDynamic",(function(){return n.SurveyQuestionPanelDynamic})),r.d(t,"SurveyProgress",(function(){return n.SurveyProgress})),r.d(t,"SurveyProgressButtons",(function(){return n.SurveyProgressButtons})),r.d(t,"SurveyProgressToc",(function(){return n.SurveyProgressToc})),r.d(t,"SurveyQuestionRating",(function(){return n.SurveyQuestionRating})),r.d(t,"SurveyQuestionRatingDropdown",(function(){return n.SurveyQuestionRatingDropdown})),r.d(t,"SurveyQuestionExpression",(function(){return n.SurveyQuestionExpression})),r.d(t,"PopupSurvey",(function(){return n.PopupSurvey})),r.d(t,"SurveyWindow",(function(){return n.SurveyWindow})),r.d(t,"ReactQuestionFactory",(function(){return n.ReactQuestionFactory})),r.d(t,"ReactElementFactory",(function(){return n.ReactElementFactory})),r.d(t,"SurveyQuestionImagePicker",(function(){return n.SurveyQuestionImagePicker})),r.d(t,"SurveyQuestionImage",(function(){return n.SurveyQuestionImage})),r.d(t,"SurveyQuestionSignaturePad",(function(){return n.SurveyQuestionSignaturePad})),r.d(t,"SurveyQuestionButtonGroup",(function(){return n.SurveyQuestionButtonGroup})),r.d(t,"SurveyQuestionCustom",(function(){return n.SurveyQuestionCustom})),r.d(t,"SurveyQuestionComposite",(function(){return n.SurveyQuestionComposite})),r.d(t,"Popup",(function(){return n.Popup})),r.d(t,"List",(function(){return n.List})),r.d(t,"TitleActions",(function(){return n.TitleActions})),r.d(t,"TitleElement",(function(){return n.TitleElement})),r.d(t,"SurveyActionBar",(function(){return n.SurveyActionBar})),r.d(t,"LogoImage",(function(){return n.LogoImage})),r.d(t,"SurveyHeader",(function(){return n.SurveyHeader})),r.d(t,"SvgIcon",(function(){return n.SvgIcon})),r.d(t,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return n.SurveyQuestionMatrixDynamicRemoveButton})),r.d(t,"SurveyQuestionMatrixDetailButton",(function(){return n.SurveyQuestionMatrixDetailButton})),r.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return n.SurveyQuestionMatrixDynamicDragDropIcon})),r.d(t,"SurveyQuestionPanelDynamicAddButton",(function(){return n.SurveyQuestionPanelDynamicAddButton})),r.d(t,"SurveyQuestionPanelDynamicRemoveButton",(function(){return n.SurveyQuestionPanelDynamicRemoveButton})),r.d(t,"SurveyQuestionPanelDynamicPrevButton",(function(){return n.SurveyQuestionPanelDynamicPrevButton})),r.d(t,"SurveyQuestionPanelDynamicNextButton",(function(){return n.SurveyQuestionPanelDynamicNextButton})),r.d(t,"SurveyQuestionPanelDynamicProgressText",(function(){return n.SurveyQuestionPanelDynamicProgressText})),r.d(t,"SurveyNavigationButton",(function(){return n.SurveyNavigationButton})),r.d(t,"MatrixRow",(function(){return n.MatrixRow})),r.d(t,"Skeleton",(function(){return n.Skeleton})),r.d(t,"NotifierComponent",(function(){return n.NotifierComponent})),r.d(t,"ComponentsContainer",(function(){return n.ComponentsContainer})),r.d(t,"CharacterCounterComponent",(function(){return n.CharacterCounterComponent})),r.d(t,"SurveyLocStringViewer",(function(){return n.SurveyLocStringViewer})),r.d(t,"SurveyLocStringEditor",(function(){return n.SurveyLocStringEditor}));var o=r("./src/entries/core-export.ts");r.d(t,"SurveyModel",(function(){return o.SurveyModel})),r.d(t,"SurveyWindowModel",(function(){return o.SurveyWindowModel})),r.d(t,"settings",(function(){return o.settings})),r.d(t,"surveyLocalization",(function(){return o.surveyLocalization})),r.d(t,"surveyStrings",(function(){return o.surveyStrings}));var i=r("survey-core");r.d(t,"Model",(function(){return i.SurveyModel}));var s=r("./src/utils/responsivity-manager.ts");r.d(t,"ResponsivityManager",(function(){return s.ResponsivityManager})),r.d(t,"VerticalResponsivityManager",(function(){return s.VerticalResponsivityManager}));var a=r("./src/utils/utils.ts");r.d(t,"unwrap",(function(){return a.unwrap})),Object(i.checkLibraryVersion)("1.9.90","survey-react-ui")},"./src/react/boolean-checkbox.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionBooleanCheckbox",(function(){return p}));var n,o=r("react"),i=r("survey-core"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/boolean.tsx"),l=r("./src/react/components/title/title-actions.tsx"),u=r("./src/react/reactquestion_element.tsx"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.getCheckboxItemCss(),r=this.question.canRenderLabelDescription?u.SurveyElementBase.renderQuestionDescription(this.question):null;return o.createElement("div",{className:e.rootCheckbox},o.createElement("div",{className:t},o.createElement("label",{className:e.checkboxLabel},o.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:e.controlCheckbox,disabled:this.isDisplayMode,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),o.createElement("span",{className:e.checkboxMaterialDecorator},this.question.svgIcon?o.createElement("svg",{className:e.checkboxItemDecorator},o.createElement("use",{xlinkHref:this.question.svgIcon})):null,o.createElement("span",{className:"check"})),this.question.isLabelRendered&&o.createElement("span",{className:e.checkboxControlLabel,id:this.question.labelRenderedAriaID},o.createElement(l.TitleActions,{element:this.question,cssClasses:this.question.cssClasses}))),r))},t}(a.SurveyQuestionBoolean);s.ReactQuestionFactory.Instance.registerQuestion("sv-boolean-checkbox",(function(e){return o.createElement(p,e)})),i.RendererFactory.Instance.registerRenderer("boolean","checkbox","sv-boolean-checkbox")},"./src/react/boolean-radio.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionBooleanRadio",(function(){return u}));var n,o=r("react"),i=r("survey-core"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/boolean.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnChange=function(e){r.question.booleanValue="true"==e.nativeEvent.target.value},r}return l(t,e),t.prototype.renderRadioItem=function(e,t){var r=this.question.cssClasses;return o.createElement("div",{role:"presentation",className:this.question.getRadioItemClass(r,e)},o.createElement("label",{className:r.radioLabel},o.createElement("input",{type:"radio",name:this.question.name,value:e,"aria-describedby":this.question.ariaDescribedBy,checked:e===this.question.booleanValueRendered,disabled:this.question.isInputReadOnly,className:r.itemRadioControl,onChange:this.handleOnChange}),this.question.cssClasses.materialRadioDecorator?o.createElement("span",{className:r.materialRadioDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:r.itemRadioDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,o.createElement("span",{className:r.radioControlLabel},this.renderLocString(t))))},t.prototype.renderElement=function(){var e=this.question.cssClasses;return o.createElement("div",{className:e.rootRadio},o.createElement("fieldset",{role:"presentation",className:e.radioFieldset},this.renderRadioItem(!1,this.question.locLabelFalse),this.renderRadioItem(!0,this.question.locLabelTrue)))},t}(a.SurveyQuestionBoolean);s.ReactQuestionFactory.Instance.registerQuestion("sv-boolean-radio",(function(e){return o.createElement(u,e)})),i.RendererFactory.Instance.registerRenderer("boolean","radio","sv-boolean-radio")},"./src/react/boolean.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionBoolean",(function(){return l}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnChange=r.handleOnChange.bind(r),r.handleOnClick=r.handleOnClick.bind(r),r.handleOnLabelClick=r.handleOnLabelClick.bind(r),r.handleOnSwitchClick=r.handleOnSwitchClick.bind(r),r.handleOnKeyDown=r.handleOnKeyDown.bind(r),r.checkRef=o.createRef(),r}return a(t,e),t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.doCheck=function(e){this.question.booleanValue=e},t.prototype.handleOnChange=function(e){this.doCheck(e.target.checked)},t.prototype.handleOnClick=function(e){this.question.onLabelClick(e,!0)},t.prototype.handleOnSwitchClick=function(e){this.question.onSwitchClickModel(e.nativeEvent)},t.prototype.handleOnLabelClick=function(e,t){this.question.onLabelClick(e,t)},t.prototype.handleOnKeyDown=function(e){this.question.onKeyDownCore(e)},t.prototype.updateDomElement=function(){if(this.question){var t=this.checkRef.current;t&&(t.indeterminate=this.question.isIndeterminate),this.setControl(t),e.prototype.updateDomElement.call(this)}},t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,r=this.question.getItemCss();return o.createElement("div",{className:t.root,onKeyDown:this.handleOnKeyDown},o.createElement("label",{className:r,onClick:this.handleOnClick},o.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:t.control,disabled:this.isDisplayMode,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),o.createElement("div",{className:t.sliderGhost,onClick:function(t){return e.handleOnLabelClick(t,!1)}},o.createElement("span",{className:this.question.getLabelCss(!1)},this.renderLocString(this.question.locLabelFalse))),o.createElement("div",{className:t.switch,onClick:this.handleOnSwitchClick},o.createElement("span",{className:t.slider},this.question.isDeterminated&&t.sliderText?o.createElement("span",{className:t.sliderText},this.renderLocString(this.question.getCheckedLabel())):null)),o.createElement("div",{className:t.sliderGhost,onClick:function(t){return e.handleOnLabelClick(t,!0)}},o.createElement("span",{className:this.question.getLabelCss(!0)},this.renderLocString(this.question.locLabelTrue)))))},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("boolean",(function(e){return o.createElement(l,e)}))},"./src/react/components/action-bar/action-bar-item-dropdown.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyActionBarItemDropdown",(function(){return p}));var n,o=r("react"),i=r.n(o),s=r("survey-core"),a=r("./src/react/element-factory.tsx"),l=r("./src/react/components/popup/popup.tsx"),u=r("./src/react/components/action-bar/action-bar-item.tsx"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(t){var r=e.call(this,t)||this;return r.viewModel=new s.ActionDropdownViewModel(r.item),r}return c(t,e),t.prototype.renderButtonContent=function(){var t=e.prototype.renderButtonContent.call(this);return i.a.createElement(i.a.Fragment,null,t,i.a.createElement(l.Popup,{model:this.item.popupModel}))},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.viewModel.dispose()},t}(u.SurveyActionBarItem);a.ReactElementFactory.Instance.registerElement("sv-action-bar-item-dropdown",(function(e){return i.a.createElement(p,e)}))},"./src/react/components/action-bar/action-bar-item.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyAction",(function(){return d})),r.d(t,"SurveyActionBarItem",(function(){return h}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=r("./src/react/reactSurvey.tsx"),u=r("./src/react/components/svg-icon/svg-icon.tsx"),c=r("./src/react/components/action-bar/action-bar-separator.tsx"),p=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){var e=this.item.getActionRootCss(),t=this.item.needSeparator?i.a.createElement(c.SurveyActionBarSeparator,null):null,r=s.ReactElementFactory.Instance.createElement(this.item.component||"sv-action-bar-item",{item:this.item});return i.a.createElement("div",{className:e,id:this.item.id},i.a.createElement("div",{className:"sv-action__content"},t,r))},t}(a.SurveyElementBase),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){return i.a.createElement(i.a.Fragment,null,this.renderInnerButton())},t.prototype.renderText=function(){if(!this.item.hasTitle)return null;var e=this.item.getActionBarItemTitleCss();return i.a.createElement("span",{className:e},this.item.title)},t.prototype.renderButtonContent=function(){var e=this.renderText(),t=this.item.iconName?i.a.createElement(u.SvgIcon,{className:this.item.cssClasses.itemIcon,size:this.item.iconSize,iconName:this.item.iconName,title:this.item.tooltip||this.item.title}):null;return i.a.createElement(i.a.Fragment,null,t,e)},t.prototype.renderInnerButton=function(){var e=this,t=this.item.getActionBarItemCss(),r=this.item.tooltip||this.item.title,n=this.renderButtonContent(),o=this.item.disableTabStop?-1:void 0;return Object(l.attachKey2click)(i.a.createElement("button",{className:t,type:"button",disabled:this.item.disabled,onClick:function(t){return e.item.action(e.item,e.item.getIsTrusted(t))},title:r,tabIndex:o,"aria-checked":this.item.ariaChecked,"aria-expanded":this.item.ariaExpanded,role:this.item.ariaRole},n),null,{processEsc:!1})},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-action-bar-item",(function(e){return i.a.createElement(h,e)}))},"./src/react/components/action-bar/action-bar-separator.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyActionBarSeparator",(function(){return l}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e="sv-action-bar-separator "+this.props.cssClasses;return i.a.createElement("div",{className:e})},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-action-bar-separator",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/action-bar/action-bar.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyActionBar",(function(){return d}));var n=r("react"),o=r.n(n),i=r("./src/react/element-factory.tsx"),s=r("./src/react/reactquestion_element.tsx"),a=r("./src/react/components/action-bar/action-bar-item.tsx"),l=r("./src/react/components/action-bar/action-bar-item-dropdown.tsx");r.d(t,"SurveyActionBarItemDropdown",(function(){return l.SurveyActionBarItemDropdown}));var u=r("./src/react/components/action-bar/action-bar-separator.tsx");r.d(t,"SurveyActionBarSeparator",(function(){return u.SurveyActionBarSeparator}));var c,p=(c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},c(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e){function t(t){var r=e.call(this,t)||this;return r.rootRef=o.a.createRef(),r}return p(t,e),Object.defineProperty(t.prototype,"handleClick",{get:function(){return void 0===this.props.handleClick||this.props.handleClick},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.model.hasActions){var t=this.rootRef.current;t&&this.model.initResponsivityManager(t)}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model.hasActions&&this.model.resetResponsivityManager()},t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){if(!this.model.hasActions)return null;var e=this.renderItems();return o.a.createElement("div",{ref:this.rootRef,className:this.model.getRootCss(),onClick:this.handleClick?function(e){e.stopPropagation()}:void 0},e)},t.prototype.renderItems=function(){return this.model.renderedActions.map((function(e,t){return o.a.createElement(a.SurveyAction,{item:e,key:"item"+t})}))},t}(s.SurveyElementBase);i.ReactElementFactory.Instance.registerElement("sv-action-bar",(function(e){return o.a.createElement(d,e)}))},"./src/react/components/brand-info.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"BrandInfo",(function(){return a}));var n,o=r("react"),i=r.n(o),s=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){return i.a.createElement("div",{className:"sv-brand-info"},i.a.createElement("a",{className:"sv-brand-info__logo",href:"https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page"},i.a.createElement("img",{src:"https://surveyjs.io/Content/Images/poweredby.svg"})),i.a.createElement("div",{className:"sv-brand-info__text"},"Try and see how easy it is to ",i.a.createElement("a",{href:"https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey"},"create a survey")),i.a.createElement("div",{className:"sv-brand-info__terms"},i.a.createElement("a",{href:"https://surveyjs.io/TermsOfUse"},"Terms of Use & Privacy Statement")))},t}(i.a.Component)},"./src/react/components/character-counter.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"CharacterCounterComponent",(function(){return u}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getStateElement=function(){return this.props.counter},t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.props.remainingCharacterCounter},this.props.counter.remainingCharacterCounter)},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-character-counter",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/components-container.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"ComponentsContainer",(function(){return l}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.survey.getContainerContent(this.props.container),r=!1!==this.props.needRenderWrapper;return 0==t.length?null:r?i.a.createElement("div",{className:"sv-components-column"},t.map((function(t){return s.ReactElementFactory.Instance.createElement(t.component,{survey:e.props.survey,model:t.data,key:t.id})}))):i.a.createElement(i.a.Fragment,null,t.map((function(t){return s.ReactElementFactory.Instance.createElement(t.component,{survey:e.props.survey,model:t.data,key:t.id})})))},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-components-container",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/list/list-item.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"ListItem",(function(){return p}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=r("./src/react/reactSurvey.tsx"),u=r("./src/react/components/svg-icon/svg-icon.tsx"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleKeydown=function(e){t.model.onKeyDown(e)},t}return c(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this;if(!this.item)return null;var t={paddingInlineStart:this.model.getItemIndent(this.item)},r=this.model.getItemClass(this.item),n=[];if(this.item.component){var o=s.ReactElementFactory.Instance.createElement(this.item.component,{item:this.item,key:this.item.id});o&&n.push(o)}else{var a=this.renderLocString(this.item.locTitle,void 0,"locString");if(this.item.iconName){var c=i.a.createElement(u.SvgIcon,{key:1,className:this.model.cssClasses.itemIcon,iconName:this.item.iconName,size:24,"aria-label":this.item.title});n.push(c),n.push(i.a.createElement("span",{key:2},a))}else n.push(a)}var p=i.a.createElement("div",{style:t,className:this.model.cssClasses.itemBody},n),d=this.item.needSeparator?i.a.createElement("div",{className:this.model.cssClasses.itemSeparator}):null,h={display:this.model.isItemVisible(this.item)?null:"none"};return Object(l.attachKey2click)(i.a.createElement("li",{className:r,role:"option",style:h,id:this.item.elementId,"aria-selected":this.model.isItemSelected(this.item),onClick:function(t){e.model.onItemClick(e.item),t.stopPropagation()},onPointerDown:function(t){return e.model.onPointerDown(t,e.item)}},d,p))},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.model.onLastItemRended(this.item)},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-list-item",(function(e){return i.a.createElement(p,e)}))},"./src/react/components/list/list.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"List",(function(){return d}));var n,o=r("react"),i=r.n(o),s=r("survey-core"),a=r("./src/react/element-factory.tsx"),l=r("./src/react/reactquestion_element.tsx"),u=r("./src/react/components/svg-icon/svg-icon.tsx"),c=r("./src/react/components/list/list-item.tsx"),p=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e){function t(t){var r=e.call(this,t)||this;return r.handleKeydown=function(e){r.model.onKeyDown(e)},r.handleMouseMove=function(e){r.model.onMouseMove(e)},r.state={filterString:r.model.filterString||""},r.listContainerRef=i.a.createRef(),r}return p(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.listContainerRef&&this.listContainerRef.current&&this.model.initListContainerHtmlElement(this.listContainerRef.current)},t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.model.cssClasses.root,ref:this.listContainerRef},this.searchElementContent(),this.emptyContent(),this.renderList())},t.prototype.renderList=function(){if(!this.model.renderElements)return null;var e=this.renderItems(),t={display:this.model.isEmpty?"none":null};return i.a.createElement("ul",{className:this.model.cssClasses.itemsContainer,style:t,role:"listbox",id:this.model.elementId,onMouseDown:function(e){e.preventDefault()},onKeyDown:this.handleKeydown,onMouseMove:this.handleMouseMove},e)},t.prototype.renderItems=function(){var e=this;if(!this.model)return null;var t=this.model.renderedActions;return t?t.map((function(t,r){return i.a.createElement(c.ListItem,{model:e.model,item:t,key:"item"+r})})):null},t.prototype.searchElementContent=function(){var e=this;if(this.model.showFilter){var t=this.model.showSearchClearButton&&this.model.filterString?i.a.createElement("button",{className:this.model.cssClasses.searchClearButtonIcon,onClick:function(t){e.model.onClickSearchClearButton(t)}},i.a.createElement(u.SvgIcon,{iconName:"icon-searchclear",size:"auto"})):null;return i.a.createElement("div",{className:this.model.cssClasses.filter},i.a.createElement("div",{className:this.model.cssClasses.filterIcon},i.a.createElement(u.SvgIcon,{iconName:"icon-search",size:"auto"})),i.a.createElement("input",{type:"text",className:this.model.cssClasses.filterInput,"aria-label":this.model.filterStringPlaceholder,placeholder:this.model.filterStringPlaceholder,value:this.state.filterString,onKeyUp:function(t){e.model.goToItems(t)},onChange:function(t){var r=s.settings.environment.root;t.target===r.activeElement&&(e.model.filterString=t.target.value)}}),t)}return null},t.prototype.emptyContent=function(){var e={display:this.model.isEmpty?null:"none"};return i.a.createElement("div",{className:this.model.cssClasses.emptyContainer,style:e},i.a.createElement("div",{className:this.model.cssClasses.emptyText,"aria-label":this.model.emptyMessage},this.model.emptyMessage))},t}(l.SurveyElementBase);a.ReactElementFactory.Instance.registerElement("sv-list",(function(e){return i.a.createElement(d,e)}))},"./src/react/components/matrix-actions/detail-button/detail-button.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionMatrixDetailButton",(function(){return c}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=r("./src/react/components/svg-icon/svg-icon.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnShowHideClick=r.handleOnShowHideClick.bind(r),r}return u(t,e),t.prototype.getStateElement=function(){return this.props.item},Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),t.prototype.handleOnShowHideClick=function(e){this.row.showHideDetailPanelClick()},t.prototype.renderElement=function(){var e=this.row.isDetailPanelShowing,t=e,r=e?this.row.detailPanelId:void 0;return i.a.createElement("button",{type:"button",onClick:this.handleOnShowHideClick,className:this.question.getDetailPanelButtonCss(this.row),"aria-expanded":t,"aria-controls":r},i.a.createElement(l.SvgIcon,{className:this.question.getDetailPanelIconCss(this.row),iconName:this.question.getDetailPanelIconId(this.row),size:"auto"}))},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-matrix-detail-button",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return u}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return this.question.iconDragElement?i.a.createElement("svg",{className:this.question.cssClasses.dragElementDecorator},i.a.createElement("use",{xlinkHref:this.question.iconDragElement})):i.a.createElement("span",{className:this.question.cssClasses.iconDrag})},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-matrix-drag-drop-icon",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/matrix-actions/remove-button/remove-button.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return u}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnRowRemoveClick=r.handleOnRowRemoveClick.bind(r),r}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),t.prototype.handleOnRowRemoveClick=function(e){this.question.removeRowUI(this.row)},t.prototype.renderElement=function(){var e=this.renderLocString(this.question.locRemoveRowText);return i.a.createElement("button",{className:this.question.getRemoveRowButtonCss(),type:"button",onClick:this.handleOnRowRemoveClick,disabled:this.question.isInputReadOnly},e,i.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-matrix-remove-button",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/matrix/row.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"MatrixRow",(function(){return u}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.onPointerDownHandler=function(e){r.parentMatrix.onPointerDown(e.nativeEvent,r.model.row)},r}return l(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentMatrix",{get:function(){return this.props.parentMatrix},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this,t=this.model;return i.a.createElement("tr",{className:t.className,"data-sv-drop-target-matrix-row":t.row&&t.row.id,onPointerDown:function(t){return e.onPointerDownHandler(t)}},this.props.children)},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-matrix-row",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/notifier.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"NotifierComponent",(function(){return c}));var n,o=r("react"),i=r.n(o),s=r("./src/react/reactquestion_element.tsx"),a=r("./src/react/element-factory.tsx"),l=r("./src/react/components/action-bar/action-bar.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"notifier",{get:function(){return this.props.notifier},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.notifier},t.prototype.renderElement=function(){if(!this.notifier.isDisplayed)return null;var e={visibility:this.notifier.active?"visible":"hidden"};return i.a.createElement("div",{className:this.notifier.css,style:e,role:"alert","aria-live":"polite"},i.a.createElement("span",null,this.notifier.message),i.a.createElement(l.SurveyActionBar,{model:this.notifier.actionBar}))},t}(s.SurveyElementBase);a.ReactElementFactory.Instance.registerElement("sv-notifier",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionPanelDynamicAction",(function(){return u})),r.d(t,"SurveyQuestionPanelDynamicAddButton",(function(){return c}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this.props.item&&this.props.item.data||this.props.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),t}(a.ReactSurveyElement),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.addPanelUI()},t}return l(t,e),t.prototype.renderElement=function(){return this.question.canAddPanel?i.a.createElement("button",{type:"button",className:this.question.getAddButtonCss(),onClick:this.handleClick},i.a.createElement("span",{className:this.question.cssClasses.buttonAddText},this.question.panelAddText)):null},t}(u);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-add-btn",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionPanelDynamicNextButton",(function(){return c}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/components/svg-icon/svg-icon.tsx"),l=r("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.goToNextPanel()},t}return u(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{title:this.question.panelNextText,onClick:this.handleClick,className:this.question.getNextButtonCss()},i.a.createElement(a.SvgIcon,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(l.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-next-btn",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionPanelDynamicPrevButton",(function(){return c}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/components/svg-icon/svg-icon.tsx"),l=r("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.goToPrevPanel()},t}return u(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{title:this.question.panelPrevText,onClick:this.handleClick,className:this.question.getPrevButtonCss()},i.a.createElement(a.SvgIcon,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(l.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-prev-btn",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionPanelDynamicProgressText",(function(){return u}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.question.cssClasses.progressText},this.question.progressText)},t}(a.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-progress-text",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-remove-btn.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionPanelDynamicRemoveButton",(function(){return u}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.removePanelUI(t.data.panel)},t}return l(t,e),t.prototype.renderElement=function(){return i.a.createElement("button",{className:this.question.getPanelRemoveButtonCss(),onClick:this.handleClick,type:"button"},i.a.createElement("span",{className:this.question.cssClasses.buttonRemoveText},this.question.panelRemoveText),i.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(a.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-remove-btn",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/popup/popup.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"Popup",(function(){return h})),r.d(t,"PopupContainer",(function(){return f})),r.d(t,"PopupDropdownContainer",(function(){return m})),r.d(t,"showModal",(function(){return g})),r.d(t,"showDialog",(function(){return b}));var n,o=r("react-dom"),i=r.n(o),s=r("react"),a=r.n(s),l=r("survey-core"),u=r("./src/react/element-factory.tsx"),c=r("./src/react/reactquestion_element.tsx"),p=r("./src/react/components/action-bar/action-bar.tsx"),d=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e){function t(t){var r=e.call(this,t)||this;return r.containerRef=a.a.createRef(),r.createModel(),r}return d(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.createModel=function(){this.popup=Object(l.createPopupViewModel)(this.props.model,void 0),this.popup.initializePopupContainer()},t.prototype.setTargetElement=function(){if(this.containerRef.current&&!this.popup.isModal){var e=this.popup;if(!e)return;this.containerRef.current.parentElement&&(e.targetElement=this.containerRef.current.parentElement)}},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.popup.initializePopupContainer(),this.setTargetElement()},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.setTargetElement()},t.prototype.componentWillUnmount=function(){this.popup.unmountPopupContainer()},t.prototype.shouldComponentUpdate=function(t,r){var n;if(!e.prototype.shouldComponentUpdate.call(this,t,r))return!1;var o=t.model!==this.popup.model;return o&&(null===(n=this.popup)||void 0===n||n.dispose(),this.createModel()),o},t.prototype.render=function(){var e;return this.popup.model=this.model,e=this.model.isModal?i.a.createPortal(a.a.createElement(f,{model:this.popup}),this.popup.container):i.a.createPortal(a.a.createElement(m,{model:this.popup}),this.popup.container),a.a.createElement("div",{ref:this.containerRef},e)},t}(c.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("sv-popup",(function(e){return a.a.createElement(h,e)}));var f=function(e){function t(t){var r=e.call(this,t)||this;return r.prevIsVisible=!1,r.handleKeydown=function(e){r.model.onKeyDown(e)},r.clickInside=function(e){e.stopPropagation()},r}return d(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),!this.prevIsVisible&&this.model.isVisible&&this.model.updateOnShowing(),this.prevIsVisible=this.model.isVisible},t.prototype.renderContainer=function(e){var t=this,r=e.showHeader?this.renderHeaderPopup(e):null,n=e.title?this.renderHeaderContent():null,o=this.renderContent(),i=e.showFooter?this.renderFooter(this.model):null;return a.a.createElement("div",{className:"sv-popup__container",style:{left:e.left,top:e.top,height:e.height,width:e.width,minWidth:e.minWidth},onClick:function(e){t.clickInside(e)}},a.a.createElement("div",{className:"sv-popup__shadow"},r,a.a.createElement("div",{className:"sv-popup__body-content"},n,a.a.createElement("div",{className:"sv-popup__scrolling-content"},o),i)))},t.prototype.renderHeaderContent=function(){return a.a.createElement("div",{className:"sv-popup__body-header"},this.model.title)},t.prototype.renderContent=function(){var e=u.ReactElementFactory.Instance.createElement(this.model.contentComponentName,this.model.contentComponentData);return a.a.createElement("div",{className:"sv-popup__content"},e)},t.prototype.renderHeaderPopup=function(e){return null},t.prototype.renderFooter=function(e){return a.a.createElement("div",{className:"sv-popup__body-footer"},a.a.createElement(p.SurveyActionBar,{model:e.footerToolbar}))},t.prototype.render=function(){var e=this,t=this.renderContainer(this.model),r=(new l.CssClassBuilder).append("sv-popup").append(this.model.styleClass).toString(),n={display:this.model.isVisible?"":"none"};return a.a.createElement("div",{tabIndex:-1,className:r,style:n,onClick:function(t){e.model.clickOutside(),t.stopPropagation()},onKeyDown:this.handleKeydown},t)},t}(c.SurveyElementBase),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.renderHeaderPopup=function(e){var t=e;return t?a.a.createElement("span",{style:{left:t.pointerTarget.left,top:t.pointerTarget.top},className:"sv-popup__pointer"}):null},t}(f);function g(e,t,r,n,o,i,s){return void 0===s&&(s="popup"),b(Object(l.createDialogOptions)(e,t,r,n,void 0,void 0,o,i,s))}function b(e){e.onHide=function(){i.a.unmountComponentAtNode(t.container),t.unmountPopupContainer()};var t=Object(l.createPopupModalViewModel)(e);return i.a.render(a.a.createElement(f,{model:t}),t.container),t.model.isVisible=!0,t}l.settings.showModal=g},"./src/react/components/rating/rating-item-smiley.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"RatingItemSmiley",(function(){return c}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=r("./src/react/components/svg-icon/svg-icon.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this;return i.a.createElement("label",{style:this.question.getItemStyle(this.item.itemValue,this.item.highlight),className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(t){return e.question.onItemMouseIn(e.item)},onMouseOut:function(t){return e.question.onItemMouseOut(e.item)}},i.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.name,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.isDisplayMode,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),i.a.createElement(l.SvgIcon,{size:"auto",iconName:this.question.getItemSmileyIconName(this.item.itemValue),title:this.item.text}))},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-rating-item-smiley",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/rating/rating-item-star.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"RatingItemStar",(function(){return c}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=r("./src/react/components/svg-icon/svg-icon.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this;return i.a.createElement("label",{className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(t){return e.question.onItemMouseIn(e.item)},onMouseOut:function(t){return e.question.onItemMouseOut(e.item)}},i.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.name,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.isDisplayMode,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),i.a.createElement(l.SvgIcon,{className:"sv-star",size:"auto",iconName:this.question.itemStarIcon,title:this.item.text}),i.a.createElement(l.SvgIcon,{className:"sv-star-2",size:"auto",iconName:this.question.itemStarIconAlt,title:this.item.text}))},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-rating-item-star",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/rating/rating-item.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"RatingItem",(function(){return u}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this.renderLocString(this.item.locText);return i.a.createElement("label",{className:this.question.getItemClassByText(this.item.itemValue,this.item.text)},i.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.name,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.isDisplayMode,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),i.a.createElement("span",{className:this.question.cssClasses.itemText},e))},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this)},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-rating-item",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/skeleton.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"Skeleton",(function(){return l}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e;return i.a.createElement("div",{className:"sv-skeleton-element",id:null===(e=this.props.element)||void 0===e?void 0:e.id})},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-skeleton",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/survey-actions/survey-nav-button.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyNavigationButton",(function(){return u}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return this.item.isVisible},t.prototype.renderElement=function(){return i.a.createElement("input",{className:this.item.innerCss,type:"button",disabled:this.item.disabled,onMouseDown:this.item.data&&this.item.data.mouseDown,onClick:this.item.action,title:this.item.getTooltip(),value:this.item.title})},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-nav-btn",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/survey-header/logo-image.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"LogoImage",(function(){return l}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=[];return e.push(i.a.createElement("div",{key:"logo-image",className:this.survey.logoClassNames},i.a.createElement("img",{className:this.survey.css.logoImage,src:this.survey.locLogo.renderedHtml,alt:this.survey.locTitle.renderedHtml,width:this.survey.logoWidth?this.survey.logoWidth:void 0,height:this.survey.logoHeight?this.survey.logoHeight:void 0,style:{objectFit:this.survey.logoFit}}))),i.a.createElement(i.a.Fragment,null,e)},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-logo-image",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/survey-header/survey-header.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyHeader",(function(){return c}));var n,o=r("react"),i=r.n(o),s=r("./src/react/reactquestion_element.tsx"),a=r("./src/react/element-factory.tsx"),l=r("./src/react/components/title/title-element.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){var r=e.call(this,t)||this;return r.state={changed:0},r}return u(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;this.survey.locLogo.onChanged=function(){e.setState({changed:e.state.changed+1})}},t.prototype.componentWillUnmount=function(){this.survey.locLogo.onChanged=function(){}},t.prototype.renderTitle=function(){if(!this.survey.renderedHasTitle)return null;var e=s.SurveyElementBase.renderLocString(this.survey.locDescription);return i.a.createElement("div",{className:this.css.headerText,style:{maxWidth:this.survey.titleMaxWidth}},i.a.createElement(l.TitleElement,{element:this.survey}),this.survey.renderedHasDescription?i.a.createElement("h5",{className:this.css.description},e):null)},t.prototype.renderLogoImage=function(e){if(!e)return null;var t=this.survey.getElementWrapperComponentName(this.survey,"logo-image"),r=this.survey.getElementWrapperComponentData(this.survey,"logo-image");return a.ReactElementFactory.Instance.createElement(t,{data:r})},t.prototype.render=function(){return this.survey.renderedHasHeader?i.a.createElement("div",{className:this.css.header},this.renderLogoImage(this.survey.isLogoBefore),this.renderTitle(),this.renderLogoImage(this.survey.isLogoAfter),i.a.createElement("div",{className:this.css.headerClose})):null},t}(i.a.Component);a.ReactElementFactory.Instance.registerElement("survey-header",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/svg-icon/svg-icon.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SvgIcon",(function(){return u}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("survey-core"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.svgIconRef=i.a.createRef(),r}return l(t,e),t.prototype.updateSvg=function(){this.props.iconName&&Object(a.createSvg)(this.props.size,this.props.width,this.props.height,this.props.iconName,this.svgIconRef.current,this.props.title)},t.prototype.componentDidUpdate=function(){this.updateSvg()},t.prototype.render=function(){var e="sv-svg-icon";return this.props.className&&(e+=" "+this.props.className),this.props.iconName?i.a.createElement("svg",{className:e,style:this.props.style,onClick:this.props.onClick,ref:this.svgIconRef,role:"img","aria-label":this.props.title},i.a.createElement("use",null)):null},t.prototype.componentDidMount=function(){this.updateSvg()},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-svg-icon",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/title/title-actions.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"TitleActions",(function(){return p}));var n,o=r("react"),i=r.n(o),s=r("survey-core"),a=r("./src/react/element-factory.tsx"),l=r("./src/react/components/action-bar/action-bar.tsx"),u=r("./src/react/components/title/title-content.tsx"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=i.a.createElement(u.TitleContent,{element:this.element,cssClasses:this.cssClasses});return this.element.hasTitleActions?i.a.createElement("div",{className:"sv-title-actions"},i.a.createElement("span",{className:"sv-title-actions__title"},e),i.a.createElement(l.SurveyActionBar,{model:this.element.getTitleToolbar()})):e},t}(i.a.Component);s.RendererFactory.Instance.registerRenderer("element","title-actions","sv-title-actions"),a.ReactElementFactory.Instance.registerElement("sv-title-actions",(function(e){return i.a.createElement(p,e)}))},"./src/react/components/title/title-content.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"TitleContent",(function(){return l}));var n,o=r("react"),i=r.n(o),s=r("./src/react/reactquestion_element.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(this.element.isTitleRenderedAsString)return s.SurveyElementBase.renderLocString(this.element.locTitle);var e=this.renderTitleSpans(this.element.getTitleOwner(),this.cssClasses);return i.a.createElement(i.a.Fragment,null,e)},t.prototype.renderTitleSpans=function(e,t){var r=function(e){return i.a.createElement("span",{"data-key":e,key:e}," ")},n=[];e.isRequireTextOnStart&&(n.push(this.renderRequireText(e,t)),n.push(r("req-sp")));var o=e.no;if(o){var a=t.panel?t.panel.number:void 0;n.push(i.a.createElement("span",{"data-key":"q_num",key:"q_num",className:t.number||a,style:{position:"static"},"aria-hidden":!0},o)),n.push(r("num-sp"))}return e.isRequireTextBeforeTitle&&(n.push(this.renderRequireText(e,t)),n.push(r("req-sp"))),n.push(s.SurveyElementBase.renderLocString(e.locTitle,null,"q_title")),e.isRequireTextAfterTitle&&(n.push(r("req-sp")),n.push(this.renderRequireText(e,t))),n},t.prototype.renderRequireText=function(e,t){return i.a.createElement("span",{"data-key":"req-text",key:"req-text",className:t.requiredText||t.panel.requiredText,"aria-hidden":!0},e.requiredText)},t}(i.a.Component)},"./src/react/components/title/title-element.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"TitleElement",(function(){return u}));var n,o=r("react"),i=r.n(o),s=r("survey-core"),a=r("./src/react/components/title/title-actions.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.element;if(!e||!e.hasTitle)return null;var t=e.titleAriaLabel||void 0,r=i.a.createElement(a.TitleActions,{element:e,cssClasses:e.cssClasses}),n=void 0;e.hasTitleEvents&&(n=function(e){Object(s.doKey2ClickUp)(e.nativeEvent)});var o=e.titleTagName;return i.a.createElement(o,{className:e.cssTitle,id:e.ariaTitleId,"aria-label":t,tabIndex:e.titleTabIndex,"aria-expanded":e.titleAriaExpanded,role:e.titleAriaRole,onClick:void 0,onKeyUp:n},r)},t}(i.a.Component)},"./src/react/custom-widget.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyCustomWidget",(function(){return a}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(t){var r=e.call(this,t)||this;return r.widgetRef=o.createRef(),r}return s(t,e),t.prototype._afterRender=function(){if(this.questionBase.customWidget){var e=this.widgetRef.current;e&&(this.questionBase.customWidget.afterRender(this.questionBase,e),this.questionBase.customWidgetData.isNeedRender=!1)}},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.questionBase&&this._afterRender()},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r);var n=!!this.questionBase.customWidget&&this.questionBase.customWidget.isDefaultRender;this.questionBase&&!n&&this._afterRender()},t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.questionBase.customWidget){var t=this.widgetRef.current;t&&this.questionBase.customWidget.willUnmount(this.questionBase,t)}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&this.questionBase.visible},t.prototype.renderElement=function(){var e=this.questionBase.customWidget;if(e.isDefaultRender)return o.createElement("div",{ref:this.widgetRef},this.creator.createQuestionElement(this.questionBase));var t=null;if(e.widgetJson.render)t=e.widgetJson.render(this.questionBase);else if(e.htmlTemplate){var r={__html:e.htmlTemplate};return o.createElement("div",{ref:this.widgetRef,dangerouslySetInnerHTML:r})}return o.createElement("div",{ref:this.widgetRef},t)},t}(i.SurveyQuestionElementBase)},"./src/react/dropdown-base.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionDropdownBase",(function(){return d}));var n,o=r("react"),i=r("survey-core"),s=r("./src/react/components/popup/popup.tsx"),a=r("./src/react/components/svg-icon/svg-icon.tsx"),l=r("./src/react/element-factory.tsx"),u=r("./src/react/reactquestion_comment.tsx"),c=r("./src/react/reactquestion_element.tsx"),p=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.click=function(e){var r;null===(r=t.question.dropdownListModel)||void 0===r||r.onClick(e)},t.clear=function(e){var r;null===(r=t.question.dropdownListModel)||void 0===r||r.onClear(e)},t.keyhandler=function(e){var r;null===(r=t.question.dropdownListModel)||void 0===r||r.keyHandler(e)},t.blur=function(e){var r;null===(r=t.question.dropdownListModel)||void 0===r||r.onBlur(e),t.updateInputDomElement()},t.focus=function(e){var r;null===(r=t.question.dropdownListModel)||void 0===r||r.onFocus(e)},t}return p(t,e),t.prototype.getStateElement=function(){return this.question.dropdownListModel},t.prototype.setValueCore=function(e){this.questionBase.renderedValue=e},t.prototype.getValueCore=function(){return this.questionBase.renderedValue},t.prototype.renderSelect=function(e){var t,r,n=null;if(this.question.isReadOnly){var a=this.question.selectedItemLocText?this.renderLocString(this.question.selectedItemLocText):"";n=o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},a,o.createElement("div",null,this.question.readOnlyText))}else this.question.dropdownListModel||(this.question.dropdownListModel=new i.DropdownListModel(this.question)),n=o.createElement(o.Fragment,null,this.renderInput(this.question.dropdownListModel),o.createElement(s.Popup,{model:null===(r=null===(t=this.question)||void 0===t?void 0:t.dropdownListModel)||void 0===r?void 0:r.popupModel}));return o.createElement("div",{className:e.selectWrapper},n)},t.prototype.renderValueElement=function(e){return this.question.showInputFieldComponent?l.ReactElementFactory.Instance.createElement(this.question.inputFieldComponentName,{item:e.getSelectedAction(),question:this.question}):this.question.showSelectedItemLocText?this.renderLocString(this.question.selectedItemLocText):null},t.prototype.renderInput=function(e){var t=this,r=this.renderValueElement(e),n=i.settings.environment.root;return o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.inputReadOnly?void 0:0,onClick:this.click,disabled:this.question.isInputReadOnly,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant},e.showHintPrefix?o.createElement("div",{className:this.question.cssClasses.hintPrefix},o.createElement("span",null,e.hintStringPrefix)):null,o.createElement("div",{className:this.question.cssClasses.controlValue},e.showHintString?o.createElement("div",{className:this.question.cssClasses.hintSuffix},o.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},e.inputStringRendered),o.createElement("span",null,e.hintStringSuffix)):null,r,o.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),ref:function(e){return t.inputElement=e},className:this.question.cssClasses.filterStringInput,role:e.filterStringEnabled?this.question.ariaRole:void 0,"aria-label":this.question.placeholder,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant,placeholder:e.placeholderRendered,readOnly:!e.searchEnabled||void 0,tabIndex:e.inputReadOnly?void 0:-1,disabled:this.question.isInputReadOnly,inputMode:e.inputMode,onChange:function(t){!function(t){t.target===n.activeElement&&(e.inputStringRendered=t.target.value)}(t)},onBlur:this.blur,onFocus:this.focus})),this.createClearButton())},t.prototype.createClearButton=function(){if(!this.question.allowClear||!this.question.cssClasses.cleanButtonIconId)return null;var e={display:this.question.isEmpty()?"none":""};return o.createElement("div",{className:this.question.cssClasses.cleanButton,style:e,onClick:this.clear},o.createElement(a.SvgIcon,{className:this.question.cssClasses.cleanButtonSvg,iconName:this.question.cssClasses.cleanButtonIconId,title:this.question.clearCaption,size:"auto"}))},t.prototype.renderOther=function(e){return o.createElement("div",{className:this.question.getCommentAreaCss(!0)},o.createElement(u.SurveyQuestionOtherValueItem,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode,isOther:!0}))},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.updateInputDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateInputDomElement()},t.prototype.updateInputDomElement=function(){if(this.inputElement){var e=this.inputElement,t=this.question.dropdownListModel.inputStringRendered;i.Helpers.isTwoValueEquals(t,e.value)||(e.value=this.question.dropdownListModel.inputStringRendered)}},t}(c.SurveyQuestionUncontrolledElement)},"./src/react/dropdown-item.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionOptionItem",(function(){return a}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(t){var r=e.call(this,t)||this;return r.state={changed:0},r.setupModel(),r}return s(t,e),t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.setupModel()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.item&&(this.item.locText.onChanged=function(){})},t.prototype.setupModel=function(){if(this.item.locText){var e=this;this.item.locText.onChanged=function(){e.setState({changed:e.state.changed+1})}}},t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.item},t.prototype.renderElement=function(){return o.createElement("option",{value:this.item.value,disabled:!this.item.isEnabled},this.item.text)},t}(i.ReactSurveyElement)},"./src/react/dropdown-select.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionDropdownSelect",(function(){return c}));var n,o=r("react"),i=r("survey-core"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/reactquestion_dropdown.tsx"),l=r("./src/react/dropdown-item.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.renderSelect=function(e){var t=this,r=this.isDisplayMode?o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},this.question.readOnlyText):o.createElement("select",{id:this.question.inputId,className:this.question.getControlClass(),ref:function(e){return t.setControl(e)},autoComplete:this.question.autocomplete,onChange:this.updateValueOnEvent,onInput:this.updateValueOnEvent,onClick:function(e){t.question.onClick(e)},onKeyUp:function(e){t.question.onKeyUp(e)},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy,required:this.question.isRequired},this.question.allowClear?o.createElement("option",{value:""},this.question.placeholder):null,this.question.visibleChoices.map((function(e,t){return o.createElement(l.SurveyQuestionOptionItem,{key:"item"+t,item:e})})));return o.createElement("div",{className:e.selectWrapper},r)},t}(a.SurveyQuestionDropdown);s.ReactQuestionFactory.Instance.registerQuestion("sv-dropdown-select",(function(e){return o.createElement(c,e)})),i.RendererFactory.Instance.registerRenderer("dropdown","select","sv-dropdown-select")},"./src/react/element-factory.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"ReactElementFactory",(function(){return n}));var n=function(){function e(){this.creatorHash={}}return e.prototype.registerElement=function(e,t){this.creatorHash[e]=t},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.isElementRegistered=function(e){return!!this.creatorHash[e]},e.prototype.createElement=function(e,t){var r=this.creatorHash[e];return null==r?null:r(t)},e.Instance=new e,e}()},"./src/react/element-header.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyElementHeader",(function(){return c}));var n,o=r("react"),i=r.n(o),s=r("./src/react/components/action-bar/action-bar.tsx"),a=r("./src/react/components/title/title-element.tsx"),l=r("./src/react/reactquestion_element.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.element,t=e.hasTitle?i.a.createElement(a.TitleElement,{element:e}):null,r=e.hasDescriptionUnderTitle?l.SurveyElementBase.renderQuestionDescription(this.element):null,n=e.additionalTitleToolbar?i.a.createElement(s.SurveyActionBar,{model:e.additionalTitleToolbar}):null;return i.a.createElement("div",{className:e.cssHeader,onClick:e.clickTitleFunction},t,r,n)},t}(i.a.Component)},"./src/react/flow-panel.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyFlowPanel",(function(){return u}));var n,o=r("react"),i=r("./src/react/element-factory.tsx"),s=r("./src/react/panel.tsx"),a=r("./src/react/reactquestion.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"flowPanel",{get:function(){return this.panel},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=function(){return""},this.flowPanel.onGetHtmlForQuestion=this.renderQuestion)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=null,this.flowPanel.onGetHtmlForQuestion=null)},t.prototype.getQuestion=function(e){return this.flowPanel.getQuestionByName(e)},t.prototype.renderQuestion=function(e){return"<question>"+e.name+"</question>"},t.prototype.renderRows=function(){var e=this.renderHtml();return e?[e]:[]},t.prototype.getNodeIndex=function(){return this.renderedIndex++},t.prototype.renderHtml=function(){if(!this.flowPanel)return null;var e="<span>"+this.flowPanel.produceHtml()+"</span>";if(!DOMParser){var t={__html:e};return o.createElement("div",{dangerouslySetInnerHTML:t})}var r=(new DOMParser).parseFromString(e,"text/xml");return this.renderedIndex=0,this.renderParentNode(r)},t.prototype.renderNodes=function(e){for(var t=[],r=0;r<e.length;r++){var n=this.renderNode(e[r]);n&&t.push(n)}return t},t.prototype.getStyle=function(e){var t={};return"b"===e.toLowerCase()&&(t.fontWeight="bold"),"i"===e.toLowerCase()&&(t.fontStyle="italic"),"u"===e.toLowerCase()&&(t.textDecoration="underline"),t},t.prototype.renderParentNode=function(e){var t=e.nodeName.toLowerCase(),r=this.renderNodes(this.getChildDomNodes(e));return"div"===t?o.createElement("div",{key:this.getNodeIndex()},r):o.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(t)},r)},t.prototype.renderNode=function(e){if(!this.hasTextChildNodesOnly(e))return this.renderParentNode(e);var t=e.nodeName.toLowerCase();if("question"===t){var r=this.flowPanel.getQuestionByName(e.textContent);if(!r)return null;var n=o.createElement(a.SurveyQuestion,{key:r.name,element:r,creator:this.creator,css:this.css});return o.createElement("span",{key:this.getNodeIndex()},n)}return"div"===t?o.createElement("div",{key:this.getNodeIndex()},e.textContent):o.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(t)},e.textContent)},t.prototype.getChildDomNodes=function(e){for(var t=[],r=0;r<e.childNodes.length;r++)t.push(e.childNodes[r]);return t},t.prototype.hasTextChildNodesOnly=function(e){for(var t=e.childNodes,r=0;r<t.length;r++)if("#text"!==t[r].nodeName.toLowerCase())return!1;return!0},t.prototype.renderContent=function(e,t){return o.createElement("f-panel",{style:e},t)},t}(s.SurveyPanel);i.ReactElementFactory.Instance.registerElement("flowpanel",(function(e){return o.createElement(u,e)}))},"./src/react/image.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionImage",(function(){return u}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/components/svg-icon/svg-icon.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.question.locImageLink.onChanged=function(){t.forceUpdate()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.locImageLink.onChanged=function(){}},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.getImageCss(),r={objectFit:this.question.imageFit};this.question.imageLink&&!this.question.contentNotLoaded||(r.display="none");var n=null;"image"===this.question.renderedMode&&(n=o.createElement("img",{className:t,src:this.question.locImageLink.renderedHtml,alt:this.question.altText||this.question.title,width:this.question.renderedWidth,height:this.question.renderedHeight,style:r,onLoad:function(t){e.question.onLoadHandler()},onError:function(t){e.question.onErrorHandler()}})),"video"===this.question.renderedMode&&(n=o.createElement("video",{controls:!0,className:t,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:r,onLoadedMetadata:function(t){e.question.onLoadHandler()},onError:function(t){e.question.onErrorHandler()}})),"youtube"===this.question.renderedMode&&(n=o.createElement("iframe",{className:t,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:r}));var i=null;return this.question.imageLink&&!this.question.contentNotLoaded||(i=o.createElement("div",{className:this.question.cssClasses.noImage},o.createElement(a.SvgIcon,{iconName:this.question.cssClasses.noImageSvgIconId,size:48}))),o.createElement("div",{className:this.question.cssClasses.root},n,i)},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("image",(function(e){return o.createElement(u,e)}))},"./src/react/imagepicker.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionImagePicker",(function(){return c})),r.d(t,"SurveyQuestionImagePickerItem",(function(){return p}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/reactsurveymodel.tsx"),l=r("./src/react/components/svg-icon/svg-icon.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.question.cssClasses;return o.createElement("fieldset",{className:this.question.getSelectBaseRootCss()},o.createElement("legend",{role:"radio","aria-label":this.question.locTitle.renderedHtml}),this.question.hasColumns?this.getColumns(e):this.getItems(e))},t.prototype.getColumns=function(e){var t=this;return this.question.columns.map((function(r,n){var i=r.map((function(r,n){return t.renderItem("item"+n,r,e)}));return o.createElement("div",{key:"column"+n,className:t.question.getColumnClass(),role:"presentation"},i)}))},t.prototype.getItems=function(e){for(var t=[],r=0;r<this.question.visibleChoices.length;r++){var n=this.question.visibleChoices[r],o="item"+r;t.push(this.renderItem(o,n,e))}return t},Object.defineProperty(t.prototype,"textStyle",{get:function(){return{marginLeft:"3px",display:"inline",position:"static"}},enumerable:!1,configurable:!0}),t.prototype.renderItem=function(e,t,r){var n=o.createElement(p,{key:e,question:this.question,item:t,cssClasses:r}),i=this.question.survey,s=null;return i&&(s=a.ReactSurveyElementsWrapper.wrapItemValue(i,n,this.question,t)),null!=s?s:n},t}(i.SurveyQuestionElementBase),p=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnChange=r.handleOnChange.bind(r),r}return u(t,e),t.prototype.getStateElement=function(){return this.item},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.item.locImageLink.onChanged=function(){}},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){var e=this;this.item.locImageLink.onChanged=function(){e.setState({locImageLinkchanged:e.state&&e.state.locImageLink?e.state.locImageLink+1:1})}},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.handleOnChange=function(e){if(this.question.multiSelect)if(e.target.checked)this.question.value=this.question.value.concat(e.target.value);else{var t=this.question.value;t.splice(this.question.value.indexOf(e.target.value),1),this.question.value=t}else this.question.value=e.target.value;this.setState({value:this.question.value})},t.prototype.renderElement=function(){var e=this,t=this.item,r=this.question,n=this.cssClasses,s=r.isItemSelected(t),a=r.getItemClass(t),u=null;r.showLabel&&(u=o.createElement("span",{className:r.cssClasses.itemText},t.text?i.SurveyElementBase.renderLocString(t.locText):t.value));var c={objectFit:this.question.imageFit},p=null;if(t.locImageLink.renderedHtml&&"image"===this.question.contentMode&&(p=o.createElement("img",{className:n.image,src:t.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,alt:t.locText.renderedHtml,style:c,onLoad:function(r){e.question.onContentLoaded(t,r.nativeEvent)},onError:function(e){t.onErrorHandler(t,e.nativeEvent)}})),t.locImageLink.renderedHtml&&"video"===this.question.contentMode&&(p=o.createElement("video",{controls:!0,className:n.image,src:t.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,style:c,onLoadedMetadata:function(r){e.question.onContentLoaded(t,r.nativeEvent)},onError:function(e){t.onErrorHandler(t,e.nativeEvent)}})),!t.locImageLink.renderedHtml||t.contentNotLoaded){var d={width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,objectFit:this.question.imageFit};p=o.createElement("div",{className:n.itemNoImage,style:d},n.itemNoImageSvgIcon?o.createElement(l.SvgIcon,{className:n.itemNoImageSvgIcon,iconName:this.question.cssClasses.itemNoImageSvgIconId,size:48}):null)}return o.createElement("div",{className:a},o.createElement("label",{className:n.label},o.createElement("input",{className:n.itemControl,id:this.question.getItemId(t),type:this.question.inputType,name:this.question.questionName,checked:s,value:t.value,disabled:!this.question.getItemEnabled(t),onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),o.createElement("div",{className:this.question.cssClasses.itemDecorator},o.createElement("div",{className:this.question.cssClasses.imageContainer},this.question.cssClasses.checkedItemDecorator?o.createElement("span",{className:this.question.cssClasses.checkedItemDecorator},this.question.cssClasses.checkedItemSvgIconId?o.createElement(l.SvgIcon,{size:"auto",className:this.question.cssClasses.checkedItemSvgIcon,iconName:this.question.cssClasses.checkedItemSvgIconId}):null):null,p),u)))},t}(i.ReactSurveyElement);s.ReactQuestionFactory.Instance.registerQuestion("imagepicker",(function(e){return o.createElement(c,e)}))},"./src/react/page.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyPage",(function(){return u}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/panel-base.tsx"),a=r("./src/react/components/title/title-element.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getPanelBase=function(){return this.props.page},Object.defineProperty(t.prototype,"page",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.renderTitle(),t=this.renderDescription(),r=this.renderRows(this.panelBase.cssClasses);return o.createElement("div",{ref:this.rootRef,className:this.page.cssRoot},e,t,r)},t.prototype.renderTitle=function(){return o.createElement(a.TitleElement,{element:this.page})},t.prototype.renderDescription=function(){if(!this.page._showDescription)return null;var e=i.SurveyElementBase.renderLocString(this.page.locDescription);return o.createElement("div",{className:this.panelBase.cssClasses.page.description},e)},t}(s.SurveyPanelBase)},"./src/react/panel-base.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyPanelBase",(function(){return l}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/row.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){var r=e.call(this,t)||this;return r.renderedRowsCache={},r.rootRef=o.createRef(),r}return a(t,e),t.prototype.getStateElement=function(){return this.panelBase},t.prototype.canUsePropInState=function(t){return"elements"!==t&&e.prototype.canUsePropInState.call(this,t)},Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.getCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelBase",{get:function(){return this.getPanelBase()},enumerable:!1,configurable:!0}),t.prototype.getPanelBase=function(){return this.props.element||this.props.question},t.prototype.getSurvey=function(){return this.props.survey||(this.panelBase?this.panelBase.survey:null)},t.prototype.getCss=function(){return this.props.css},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this);var t=this.rootRef.current;t&&t.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),t.page&&this.survey&&this.survey.currentPage&&t.page.name===this.survey.currentPage.name||this.doAfterRender()},t.prototype.doAfterRender=function(){var e=this.rootRef.current;e&&this.survey&&(this.panelBase.isPanel?this.survey.afterRenderPanel(this.panelBase,e):this.survey.afterRenderPage(e))},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.survey&&!!this.panelBase&&this.panelBase.isVisible&&!!this.panelBase.survey},t.prototype.renderRows=function(e){"rows"!==this.changedStatePropName&&(this.renderedRowsCache={});for(var t=[],r=this.panelBase.rows,n=0;n<r.length;n++){var o=this.renderedRowsCache[r[n].id];o||(o=this.createRow(r[n],e),this.renderedRowsCache[r[n].id]=o),t.push(o)}return t},t.prototype.createRow=function(e,t){return o.createElement(s.SurveyRow,{key:e.id,row:e,survey:this.survey,creator:this.creator,css:t})},t}(i.SurveyElementBase)},"./src/react/panel.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyPanel",(function(){return f}));var n,o=r("react"),i=r("./src/react/reactquestion.tsx"),s=r("./src/react/reactquestion_element.tsx"),a=r("./src/react/element-factory.tsx"),l=r("./src/react/panel-base.tsx"),u=r("./src/react/reactsurveymodel.tsx"),c=r("./src/react/components/action-bar/action-bar.tsx"),p=r("./src/react/components/title/title-element.tsx"),d=r("./src/react/element-header.tsx"),h=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(e){function t(t){var r=e.call(this,t)||this;return r.hasBeenExpanded=!1,r}return h(t,e),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.renderHeader(),r=o.createElement(i.SurveyElementErrors,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator}),n={paddingLeft:this.panel.innerPaddingLeft,display:this.panel.isCollapsed?"none":void 0},s=null;if(!this.panel.isCollapsed||this.hasBeenExpanded){this.hasBeenExpanded=!0;var a=this.renderRows(this.panelBase.cssClasses),l=this.panelBase.cssClasses.panel.content;s=this.renderContent(n,a,l)}return o.createElement("div",{ref:this.rootRef,className:this.panelBase.getContainerCss(),onFocus:function(){e.panelBase&&e.panelBase.focusIn()},id:this.panelBase.id},this.panel.showErrorsAbovePanel?r:null,t,this.panel.showErrorsAbovePanel?null:r,s)},t.prototype.renderHeader=function(){return this.panel.hasTitle||this.panel.hasDescription?o.createElement(d.SurveyElementHeader,{element:this.panel}):null},t.prototype.wrapElement=function(e){var t=this.panel.survey,r=null;return t&&(r=u.ReactSurveyElementsWrapper.wrapElement(t,e,this.panel)),null!=r?r:e},t.prototype.renderContent=function(e,t,r){var n=this.renderBottom();return o.createElement("div",{style:e,className:r,id:this.panel.contentId},t,n)},t.prototype.renderTitle=function(){return this.panelBase.title?o.createElement(p.TitleElement,{element:this.panelBase}):null},t.prototype.renderDescription=function(){if(!this.panelBase.description)return null;var e=s.SurveyElementBase.renderLocString(this.panelBase.locDescription);return o.createElement("div",{className:this.panel.cssClasses.panel.description},e)},t.prototype.renderBottom=function(){var e=this.panel.getFooterToolbar();return e.hasActions?o.createElement(c.SurveyActionBar,{model:e}):null},t}(l.SurveyPanelBase);a.ReactElementFactory.Instance.registerElement("panel",(function(e){return o.createElement(f,e)}))},"./src/react/rating-dropdown.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionRatingDropdown",(function(){return u}));var n,o=r("react"),i=r("survey-core"),s=r("./src/react/dropdown-base.tsx"),a=r("./src/react/reactquestion_factory.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.renderSelect(e);return o.createElement("div",{className:this.question.cssClasses.rootDropdown},t)},t}(s.SurveyQuestionDropdownBase);a.ReactQuestionFactory.Instance.registerQuestion("sv-rating-dropdown",(function(e){return o.createElement(u,e)})),i.RendererFactory.Instance.registerRenderer("rating","dropdown","sv-rating-dropdown")},"./src/react/react-popup-survey.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"PopupSurvey",(function(){return u})),r.d(t,"SurveyWindow",(function(){return c}));var n,o=r("react"),i=r("./src/react/reactSurvey.tsx"),s=r("./src/react/reactquestion_element.tsx"),a=r("survey-core"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnExpanded=r.handleOnExpanded.bind(r),r}return l(t,e),t.prototype.getStateElements=function(){return[this.popup,this.popup.survey]},t.prototype.handleOnExpanded=function(e){this.popup.changeExpandCollapse()},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&this.popup.isShowing},t.prototype.renderElement=function(){var e=this.renderWindowHeader(),t=this.popup.isExpanded?this.renderBody():null,r={position:"fixed",bottom:3,right:10};return this.popup.renderedWidth&&(r.width=this.popup.renderedWidth,r.maxWidth=this.popup.renderedWidth),o.createElement("div",{className:this.popup.cssRoot,style:r},e,t)},t.prototype.renderWindowHeader=function(){var e={paddingRight:"10px"},t=this.popup.cssButton;t="glyphicon pull-right "+t;var r=s.SurveyElementBase.renderLocString(this.survey.locTitle);return o.createElement("div",{className:this.popup.cssHeaderRoot},o.createElement("span",{onClick:this.handleOnExpanded,style:{width:"100%",cursor:"pointer"}},o.createElement("span",{className:this.popup.cssHeaderTitle,style:e},r),o.createElement("span",{className:t,"aria-hidden":"true"})),this.popup.isExpanded?o.createElement("span",{onClick:this.handleOnExpanded,style:{float:"right",cursor:"pointer"}},o.createElement("span",{className:this.popup.cssHeaderTitle,style:e},"X")):null)},t.prototype.renderBody=function(){return o.createElement("div",{className:this.popup.cssBody},this.doRender())},t.prototype.createSurvey=function(t){t||(t={}),e.prototype.createSurvey.call(this,t),this.popup=new a.PopupSurveyModel(null,this.survey),t.closeOnCompleteTimeout&&(this.popup.closeOnCompleteTimeout=t.closeOnCompleteTimeout),this.popup.isShowing=!0,this.popup.isExpanded||!t.expanded&&!t.isExpanded||this.popup.expand()},t}(i.Survey),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t}(u)},"./src/react/reactSurvey.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"Survey",(function(){return b})),r.d(t,"attachKey2click",(function(){return y}));var n,o=r("react"),i=r("survey-core"),s=r("./src/react/page.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=r("./src/react/string-viewer.tsx"),u=r("./src/react/components/survey-header/survey-header.tsx"),c=r("./src/react/reactquestion_factory.tsx"),p=r("./src/react/element-factory.tsx"),d=r("./src/react/components/brand-info.tsx"),h=r("./src/react/components/notifier.tsx"),f=r("./src/react/components/components-container.tsx"),m=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),g=function(){return g=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)},b=function(e){function t(t){var r=e.call(this,t)||this;return r.previousJSON={},r.isSurveyUpdated=!1,r.createSurvey(t),r.updateSurvey(t,{}),r.rootRef=o.createRef(),r.rootNodeId=t.id||null,r.rootNodeClassName=t.className||"",r}return m(t,e),Object.defineProperty(t,"cssType",{get:function(){return i.surveyCss.currentType},set:function(e){i.StylesManager.applyTheme(e)},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.survey},t.prototype.onSurveyUpdated=function(){if(this.survey){var e=this.rootRef.current;e&&this.survey.afterRenderSurvey(e),this.survey.startTimerFromUI()}},t.prototype.shouldComponentUpdate=function(t,r){return!!e.prototype.shouldComponentUpdate.call(this,t,r)&&(this.isModelJSONChanged(t)&&(this.destroySurvey(),this.createSurvey(t),this.updateSurvey(t,{}),this.isSurveyUpdated=!0),!0)},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.updateSurvey(this.props,t),this.isSurveyUpdated&&(this.onSurveyUpdated(),this.isSurveyUpdated=!1)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.onSurveyUpdated()},t.prototype.destroySurvey=function(){this.survey&&(this.survey.stopTimer(),this.survey.destroyResizeObserver())},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.destroySurvey()},t.prototype.doRender=function(){var e;this.survey.needRenderIcons&&i.SvgRegistry.renderIcons(),e="completed"==this.survey.state?this.renderCompleted():"completedbefore"==this.survey.state?this.renderCompletedBefore():"loading"==this.survey.state?this.renderLoading():this.renderSurvey();var t=o.createElement(u.SurveyHeader,{survey:this.survey}),r=o.createElement("div",{className:"sv_custom_header"});this.survey.hasLogo&&(r=null);var n=this.survey.getRootCss(),s=this.rootNodeClassName?this.rootNodeClassName+" "+n:n,a={backgroundImage:this.survey.renderBackgroundImage,backgroundSize:this.survey.backgroundImageFit},l={backgroundColor:this.survey.renderBackgroundOpacity};return o.createElement("div",{id:this.rootNodeId,ref:this.rootRef,className:s,style:a},o.createElement("form",{onSubmit:function(e){e.preventDefault()},style:l},r,o.createElement("div",{className:this.css.container},t,o.createElement(f.ComponentsContainer,{survey:this.survey,container:"header",needRenderWrapper:!1}),e,o.createElement(f.ComponentsContainer,{survey:this.survey,container:"footer",needRenderWrapper:!1}))),this.survey.showBrandInfo?o.createElement(d.BrandInfo,null):null,o.createElement(h.NotifierComponent,{notifier:this.survey.notifier}))},t.prototype.renderElement=function(){return this.doRender()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},set:function(e){this.survey.css=e},enumerable:!1,configurable:!0}),t.prototype.renderCompleted=function(){if(!this.survey.showCompletedPage)return null;var e={__html:this.survey.processedCompletedHtml};return o.createElement(o.Fragment,null,o.createElement("div",{dangerouslySetInnerHTML:e,className:this.survey.completedCss}))},t.prototype.renderCompletedBefore=function(){var e={__html:this.survey.processedCompletedBeforeHtml};return o.createElement("div",{dangerouslySetInnerHTML:e,className:this.css.body})},t.prototype.renderLoading=function(){var e={__html:this.survey.processedLoadingHtml};return o.createElement("div",{dangerouslySetInnerHTML:e,className:this.css.body})},t.prototype.renderSurvey=function(){var e=this.survey.activePage?this.renderPage(this.survey.activePage):null,t=(this.survey.isShowStartingPage,this.survey.activePage?this.survey.activePage.id:""),r=this.survey.bodyCss;e||(r=this.css.bodyEmpty,e=this.renderEmptySurvey());var n={};return this.survey.renderedWidth&&(n.maxWidth=this.survey.renderedWidth),o.createElement("div",{className:this.survey.bodyContainerCss},o.createElement(f.ComponentsContainer,{survey:this.survey,container:"left"}),o.createElement("div",{id:t,className:r,style:n},o.createElement(f.ComponentsContainer,{survey:this.survey,container:"contentTop"}),e,o.createElement(f.ComponentsContainer,{survey:this.survey,container:"contentBottom"})),o.createElement(f.ComponentsContainer,{survey:this.survey,container:"right"}))},t.prototype.renderPage=function(e){return o.createElement(s.SurveyPage,{survey:this.survey,page:e,css:this.css,creator:this})},t.prototype.renderEmptySurvey=function(){return o.createElement("span",null,this.survey.emptySurveyText)},t.prototype.createSurvey=function(e){e||(e={}),this.previousJSON={},e?e.model?this.survey=e.model:e.json&&(this.previousJSON=e.json,this.survey=new i.SurveyModel(e.json)):this.survey=new i.SurveyModel,e.css&&(this.survey.css=this.css),this.setSurveyEvents()},t.prototype.isModelJSONChanged=function(e){return e.model?this.survey!==e.model:!!e.json&&!i.Helpers.isTwoValueEquals(e.json,this.previousJSON)},t.prototype.updateSurvey=function(e,t){if(e)for(var r in t=t||{},e)"model"!=r&&"children"!=r&&"json"!=r&&("css"!=r?e[r]!==t[r]&&(0==r.indexOf("on")&&this.survey[r]&&this.survey[r].add?(t[r]&&this.survey[r].remove(t[r]),this.survey[r].add(e[r])):this.survey[r]=e[r]):(this.survey.mergeValues(e.css,this.survey.getCss()),this.survey.updateNavigationCss(),this.survey.updateElementCss()))},t.prototype.setSurveyEvents=function(){var e=this;this.survey.renderCallback=function(){var t=e.state&&e.state.modelChanged?e.state.modelChanged:0;e.setState({modelChanged:t+1})},this.survey.onPartialSend.add((function(t){e.state&&e.setState(e.state)}))},t.prototype.createQuestionElement=function(e){return c.ReactQuestionFactory.Instance.createQuestion(e.isDefaultRendering()?e.getTemplate():e.getComponentName(),{question:e,isDisplayMode:e.isInputReadOnly,creator:this})},t.prototype.renderError=function(e,t,r){return o.createElement("div",{key:e},o.createElement("span",{className:r.error.icon||void 0,"aria-hidden":"true"}),o.createElement("span",{className:r.error.item||void 0},o.createElement(l.SurveyLocStringViewer,{locStr:t.locText})))},t.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},t.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},t}(a.SurveyElementBase);function y(e,t,r){return void 0===r&&(r={processEsc:!0,disableTabStop:!1}),t&&t.disableTabStop||r&&r.disableTabStop?o.cloneElement(e,{tabIndex:-1}):(r=g({},r),o.cloneElement(e,{tabIndex:0,onKeyUp:function(e){return e.preventDefault(),e.stopPropagation(),Object(i.doKey2ClickUp)(e,r),!1},onKeyDown:function(e){return Object(i.doKey2ClickDown)(e,r)},onBlur:function(e){return Object(i.doKey2ClickBlur)(e)}}))}p.ReactElementFactory.Instance.registerElement("survey",(function(e){return o.createElement(b,e)}))},"./src/react/reactSurveyNavigationBase.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyNavigationBase",(function(){return s}));var n,o=r("react"),i=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e){function t(t){var r=e.call(this,t)||this;return r.updateStateFunction=null,r.state={update:0},r}return i(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css||this.survey.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.survey){var e=this;this.updateStateFunction=function(){e.setState({update:e.state.update+1})},this.survey.onPageVisibleChanged.add(this.updateStateFunction)}},t.prototype.componentWillUnmount=function(){this.survey&&this.updateStateFunction&&(this.survey.onPageVisibleChanged.remove(this.updateStateFunction),this.updateStateFunction=null)},t}(o.Component)},"./src/react/reactSurveyProgress.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyProgress",(function(){return u}));var n,o=r("react"),i=r("survey-core"),s=r("./src/react/reactSurveyNavigationBase.tsx"),a=r("./src/react/element-factory.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"isTop",{get:function(){return this.props.isTop},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return this.survey.progressValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e={width:this.progress+"%"};return o.createElement("div",{className:this.survey.getProgressCssClasses()},o.createElement("div",{style:e,className:this.css.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100},o.createElement("span",{className:i.SurveyProgressModel.getProgressTextInBarCss(this.css)},this.progressText)),o.createElement("span",{className:i.SurveyProgressModel.getProgressTextUnderBarCss(this.css)},this.progressText))},t}(s.SurveyNavigationBase);a.ReactElementFactory.Instance.registerElement("sv-progress-pages",(function(e){return o.createElement(u,e)})),a.ReactElementFactory.Instance.registerElement("sv-progress-questions",(function(e){return o.createElement(u,e)})),a.ReactElementFactory.Instance.registerElement("sv-progress-correctquestions",(function(e){return o.createElement(u,e)})),a.ReactElementFactory.Instance.registerElement("sv-progress-requiredquestions",(function(e){return o.createElement(u,e)}))},"./src/react/reactSurveyProgressButtons.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyProgressButtons",(function(){return u}));var n,o=r("react"),i=r("survey-core"),s=r("./src/react/reactSurveyNavigationBase.tsx"),a=r("./src/react/element-factory.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.updateScroller=void 0,r.progressButtonsModel=new i.SurveyProgressButtonsModel(r.survey),r.listContainerRef=o.createRef(),r}return l(t,e),t.prototype.render=function(){var e=this;return o.createElement("div",{className:this.css.progressButtonsContainerCenter},o.createElement("div",{className:this.css.progressButtonsContainer},o.createElement("div",{className:this.getScrollButtonCss(!0),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!0)}}),o.createElement("div",{className:this.css.progressButtonsListContainer,ref:this.listContainerRef},o.createElement("ul",{className:this.css.progressButtonsList},this.getListElements())),o.createElement("div",{className:this.getScrollButtonCss(!1),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!1)}})))},t.prototype.getListElements=function(){var e=this,t=[];return this.survey.visiblePages.forEach((function(r,n){t.push(e.renderListElement(r,n))})),t},t.prototype.renderListElement=function(e,t){var r=this;return o.createElement("li",{key:"listelement"+t,className:this.getListElementCss(t),onClick:this.isListElementClickable(t)?function(){return r.clickListElement(t)}:void 0},o.createElement("div",{className:this.css.progressButtonsPageTitle,title:e.navigationTitle||e.name},e.navigationTitle||e.name),o.createElement("div",{className:this.css.progressButtonsPageDescription,title:e.navigationDescription},e.navigationDescription))},t.prototype.isListElementClickable=function(e){return this.progressButtonsModel.isListElementClickable(e)},t.prototype.getListElementCss=function(e){return this.progressButtonsModel.getListElementCss(e)},t.prototype.clickListElement=function(e){this.progressButtonsModel.clickListElement(e)},t.prototype.getScrollButtonCss=function(e){return this.progressButtonsModel.getScrollButtonCss(this.state.hasScroller,e)},t.prototype.clickScrollButton=function(e,t){e&&(e.scrollLeft+=70*(t?-1:1))},t.prototype.componentDidMount=function(){var e=this;this.updateScroller=setInterval((function(){e.listContainerRef.current&&e.setState({hasScroller:e.listContainerRef.current.scrollWidth>e.listContainerRef.current.offsetWidth})}),100)},t.prototype.componentWillUnmount=function(){void 0!==this.updateScroller&&(clearInterval(this.updateScroller),this.updateScroller=void 0)},t}(s.SurveyNavigationBase);a.ReactElementFactory.Instance.registerElement("sv-progress-buttons",(function(e){return o.createElement(u,e)}))},"./src/react/reactSurveyProgressToc.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyProgressToc",(function(){return c}));var n,o=r("react"),i=r("survey-core"),s=r("./src/react/reactSurveyNavigationBase.tsx"),a=r("./src/react/element-factory.tsx"),l=r("./src/react/components/list/list.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=Object(i.createTOCListModel)(this.props.model),t=Object(i.getTocRootCss)(this.props.model);return o.createElement("div",{className:t},o.createElement(l.List,{model:e}))},t}(s.SurveyNavigationBase);a.ReactElementFactory.Instance.registerElement("sv-progress-toc",(function(e){return o.createElement(c,e)}))},"./src/react/reactquestion.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestion",(function(){return h})),r.d(t,"SurveyElementErrors",(function(){return f})),r.d(t,"SurveyQuestionAndErrorsWrapped",(function(){return m})),r.d(t,"SurveyQuestionAndErrorsCell",(function(){return g}));var n,o=r("react"),i=r("survey-core"),s=r("./src/react/reactsurveymodel.tsx"),a=r("./src/react/element-factory.tsx"),l=r("./src/react/reactquestion_element.tsx"),u=r("./src/react/reactquestion_comment.tsx"),c=r("./src/react/custom-widget.tsx"),p=r("./src/react/element-header.tsx"),d=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e){function t(t){var r=e.call(this,t)||this;return r.isNeedFocus=!1,r.rootRef=o.createRef(),r}return d(t,e),t.renderQuestionBody=function(e,t){return t.isVisible?t.customWidget?o.createElement(c.SurveyCustomWidget,{creator:e,question:t}):e.createQuestionElement(t):null},t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.question&&(this.question.react=this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question&&(this.question.react=null);var t=this.rootRef.current;t&&t.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.doAfterRender()},t.prototype.doAfterRender=function(){if(this.isNeedFocus&&(this.question.isCollapsed||this.question.clickTitleFunction(),this.isNeedFocus=!1),this.question){var e=this.rootRef.current;e&&"r"!==e.getAttribute("data-rendered")&&(e.setAttribute("data-rendered","r"),e.setAttribute("data-name",this.question.name),this.question.afterRender&&this.question.afterRender(e))}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.question&&!!this.creator&&this.question.isVisible},t.prototype.renderQuestionContent=function(){var e=this.question,t={display:this.question.isCollapsed?"none":""},r=e.cssClasses,n=this.renderQuestion(),i=this.question.showErrorOnTop?this.renderErrors(r,"top"):null,s=this.question.showErrorOnBottom?this.renderErrors(r,"bottom"):null,a=e&&e.hasComment?this.renderComment(r):null,l=this.question.isErrorsModeTooltip?this.renderErrors(r,"tooltip"):null,u=e.hasDescriptionUnderInput?this.renderDescription():null;return o.createElement("div",{className:e.cssContent||void 0,style:t,role:"presentation"},i,n,a,s,l,u)},t.prototype.renderElement=function(){var e=this.question,t=e.cssClasses,r=this.renderHeader(e),n=e.hasTitleOnLeftTop?r:null,i=e.hasTitleOnBottom?r:null,s=this.question.showErrorsAboveQuestion?this.renderErrors(t,""):null,a=this.question.showErrorsBelowQuestion?this.renderErrors(t,""):null,l=e.getRootStyle(),u=this.wrapQuestionContent(this.renderQuestionContent());return o.createElement(o.Fragment,null,o.createElement("div",{ref:this.rootRef,id:e.id,className:e.getRootCss(),style:l,role:e.ariaRole,"aria-required":this.question.ariaRequired,"aria-invalid":this.question.ariaInvalid,"aria-labelledby":e.ariaLabelledBy,"aria-expanded":null===e.ariaExpanded?void 0:"true"===e.ariaExpanded},s,n,u,i,a))},t.prototype.wrapElement=function(e){var t=this.question.survey,r=null;return t&&(r=s.ReactSurveyElementsWrapper.wrapElement(t,e,this.question)),null!=r?r:e},t.prototype.wrapQuestionContent=function(e){var t=this.question.survey,r=null;return t&&(r=s.ReactSurveyElementsWrapper.wrapQuestionContent(t,e,this.question)),null!=r?r:e},t.prototype.renderQuestion=function(){return t.renderQuestionBody(this.creator,this.question)},t.prototype.renderDescription=function(){return l.SurveyElementBase.renderQuestionDescription(this.question)},t.prototype.renderComment=function(e){var t=l.SurveyElementBase.renderLocString(this.question.locCommentText);return o.createElement("div",{className:this.question.getCommentAreaCss()},o.createElement("div",null,t),o.createElement(u.SurveyQuestionCommentItem,{question:this.question,cssClasses:e,otherCss:e.other,isDisplayMode:this.question.isInputReadOnly}))},t.prototype.renderHeader=function(e){return o.createElement(p.SurveyElementHeader,{element:e})},t.prototype.renderErrors=function(e,t){return o.createElement(f,{element:this.question,cssClasses:e,creator:this.creator,location:t,id:this.question.id+"_errors"})},t}(l.SurveyElementBase);a.ReactElementFactory.Instance.registerElement("question",(function(e){return o.createElement(h,e)}));var f=function(e){function t(t){var r=e.call(this,t)||this;return r.state=r.getState(),r.tooltipRef=o.createRef(),r}return d(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this.props.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this.props.location},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return void 0===e&&(e=null),e?{error:e.error+1}:{error:0}},t.prototype.canRender=function(){return!!this.element&&this.element.hasVisibleErrors},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),"tooltip"==this.props.location&&(this.tooltipRef.current&&!this.tooltipManager&&(this.tooltipManager=new i.TooltipManager(this.tooltipRef.current)),this.tooltipManager&&!this.tooltipRef.current&&this.disposeTooltipManager())},t.prototype.componentWillUnmount=function(){this.tooltipManager&&this.disposeTooltipManager()},t.prototype.disposeTooltipManager=function(){var e;null===(e=this.tooltipManager)||void 0===e||e.dispose(),this.tooltipManager=void 0},t.prototype.renderElement=function(){for(var e=[],t=0;t<this.element.errors.length;t++){var r="error"+t;e.push(this.creator.renderError(r,this.element.errors[t],this.cssClasses))}return o.createElement("div",{role:"alert","aria-live":"polite",className:this.element.cssError,id:this.id,ref:this.tooltipRef},e)},t}(l.ReactSurveyElement),m=function(e){function t(t){return e.call(this,t)||this}return d(t,e),t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.getQuestion()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.getQuestion=function(){return this.props.question},Object.defineProperty(t.prototype,"itemCss",{get:function(){return this.props.itemCss},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.doAfterRender()},t.prototype.doAfterRender=function(){},t.prototype.canRender=function(){return!!this.question},t.prototype.renderErrors=function(e){return this.getShowErrors()?o.createElement(f,{element:this.question,cssClasses:this.cssClasses,creator:this.creator,location:e}):null},t.prototype.renderContent=function(){var e=this.creator.questionErrorLocation(),t=this.renderErrors(e),r=this.question.showErrorOnTop?t:null,n=this.question.showErrorOnBottom?t:null,i=this.renderQuestion();return o.createElement(o.Fragment,null,r,i,n)},t.prototype.getShowErrors=function(){return this.question.isVisible},t.prototype.renderQuestion=function(){return h.renderQuestionBody(this.creator,this.question)},t}(l.ReactSurveyElement),g=function(e){function t(t){var r=e.call(this,t)||this;return r.cellRef=o.createRef(),r}return d(t,e),t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.question){var t=this.cellRef.current;t&&t.removeAttribute("data-rendered")}},t.prototype.renderElement=function(){var e=this.getCellStyle(),t=this.question.isErrorsModeTooltip?this.renderErrors("tooltip"):null;return o.createElement("td",{ref:this.cellRef,className:this.itemCss,colSpan:this.props.cell.colSpans,"data-responsive-title":this.getHeaderText(),title:this.props.cell.getTitle(),style:e},this.wrapCell(this.props.cell,o.createElement("div",{className:this.cssClasses.cellQuestionWrapper},this.renderContent(),t)))},t.prototype.getCellStyle=function(){return null},t.prototype.getHeaderText=function(){return""},t.prototype.wrapCell=function(e,t){if(!e)return t;var r=this.question.survey,n=null;return r&&(n=s.ReactSurveyElementsWrapper.wrapMatrixCell(r,t,e,this.props.reason)),null!=n?n:t},t}(m)},"./src/react/reactquestion_buttongroup.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionButtonGroup",(function(){return c})),r.d(t,"SurveyButtonGroupItem",(function(){return p}));var n,o=r("./src/react/reactquestion_element.tsx"),i=r("react"),s=r.n(i),a=r("./src/react/components/svg-icon/svg-icon.tsx"),l=r("survey-core"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.question},t.prototype.renderElement=function(){var e=this.renderItems();return s.a.createElement("div",{className:this.question.cssClasses.root},e)},t.prototype.renderItems=function(){var e=this;return this.question.visibleChoices.map((function(t,r){return s.a.createElement(p,{key:e.question.inputId+"_"+r,item:t,question:e.question,index:r})}))},t}(o.SurveyQuestionElementBase),p=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){this.model=new l.ButtonGroupItemModel(this.question,this.item,this.index);var e=this.renderIcon(),t=this.renderInput(),r=this.renderCaption();return s.a.createElement("label",{role:"radio",className:this.model.css.label,title:this.model.caption.renderedHtml},t,s.a.createElement("div",{className:this.model.css.decorator},e,r))},t.prototype.renderIcon=function(){return this.model.iconName?s.a.createElement(a.SvgIcon,{className:this.model.css.icon,iconName:this.model.iconName,size:this.model.iconSize||24}):null},t.prototype.renderInput=function(){var e=this;return s.a.createElement("input",{className:this.model.css.control,id:this.model.id,type:"radio",name:this.model.name,checked:this.model.selected,value:this.model.value,disabled:this.model.readOnly,onChange:function(){e.model.onChange()},"aria-required":this.model.isRequired,"aria-label":this.model.caption.renderedHtml,"aria-invalid":this.model.hasErrors,"aria-describedby":this.model.describedBy,role:"radio"})},t.prototype.renderCaption=function(){if(!this.model.showCaption)return null;var e=this.renderLocString(this.model.caption);return s.a.createElement("span",{className:this.model.css.caption,title:this.model.caption.renderedHtml},e)},t}(o.SurveyElementBase)},"./src/react/reactquestion_checkbox.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionCheckbox",(function(){return p})),r.d(t,"SurveyQuestionCheckboxItem",(function(){return d}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_comment.tsx"),a=r("./src/react/reactquestion_factory.tsx"),l=r("./src/react/reactsurveymodel.tsx"),u=r("./src/react/element-factory.tsx"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses;return o.createElement("fieldset",{role:"presentation",className:this.question.getSelectBaseRootCss(),ref:function(t){return e.setControl(t)}},o.createElement("legend",{role:"presentation",className:"sv-hidden"}),this.getHeader(),this.question.hasColumns?this.getColumnedBody(t):this.getBody(t),this.getFooter(),this.question.isOtherSelected?this.renderOther():null)},t.prototype.getHeader=function(){var e=this;if(this.question.hasHeadItems)return this.question.headItems.map((function(t,r){return e.renderItem("item_h"+r,t,!1,e.question.cssClasses)}))},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map((function(t,r){return e.renderItem("item_f"+r,t,!1,e.question.cssClasses)}))},t.prototype.getColumnedBody=function(e){return o.createElement("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var t=this;return this.question.columns.map((function(r,n){var i=r.map((function(r,o){return t.renderItem("item"+o,r,0===n&&0===o,e,""+n+o)}));return o.createElement("div",{key:"column"+n,className:t.question.getColumnClass(),role:"presentation"},i)}))},t.prototype.getBody=function(e){return this.question.blockedRow?o.createElement("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):o.createElement(o.Fragment,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,t){for(var r=[],n=0;n<t.length;n++){var o=t[n],i="item"+n,s=this.renderItem(i,o,0==n,e,""+n);s&&r.push(s)}return r},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(){var e=this.question.cssClasses;return o.createElement("div",{className:this.question.getCommentAreaCss(!0)},o.createElement(s.SurveyQuestionOtherValueItem,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,t,r,n,o){var i=u.ReactElementFactory.Instance.createElement(this.question.itemComponent,{key:e,question:this.question,cssClasses:n,isDisplayMode:this.isDisplayMode,item:t,textStyle:this.textStyle,index:o,isFirst:r}),s=this.question.survey,a=null;return s&&i&&(a=l.ReactSurveyElementsWrapper.wrapItemValue(s,i,this.question,t)),null!=a?a:i},t}(i.SurveyQuestionElementBase),d=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnChange=function(e){r.question.clickItemHandler(r.item,e.target.checked)},r.selectAllChanged=function(e){r.question.toggleSelectAll()},r}return c(t,e),t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirst",{get:function(){return this.props.isFirst},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),t.prototype.shouldComponentUpdate=function(t,r){return!(!e.prototype.shouldComponentUpdate.call(this,t,r)||!this.question||this.question.customWidget&&!this.question.customWidgetData.isNeedRender&&!this.question.customWidget.widgetJson.isDefaultRender&&!this.question.customWidget.widgetJson.render)},t.prototype.canRender=function(){return!!this.item&&!!this.question},t.prototype.renderElement=function(){var e=this.question.isItemSelected(this.item);return this.renderCheckbox(e,null)},Object.defineProperty(t.prototype,"inputStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderCheckbox=function(e,t){var r=this.question.getItemId(this.item),n=(this.hideCaption||this.renderLocString(this.item.locText),this.question.getItemClass(this.item)),i=this.question.getLabelClass(this.item),s=this.item==this.question.selectAllItem?this.selectAllChanged:this.handleOnChange,a=this.hideCaption?null:o.createElement("span",{className:this.cssClasses.controlLabel},this.renderLocString(this.item.locText,this.textStyle));return o.createElement("div",{className:n,role:"presentation"},o.createElement("label",{className:i,"aria-label":this.question.getAriaItemLabel(this.item)},o.createElement("input",{className:this.cssClasses.itemControl,role:"option",type:"checkbox",name:this.question.name,value:"selectall"!=this.item.value?this.item.value:void 0,id:r,style:this.inputStyle,disabled:!this.question.getItemEnabled(this.item),checked:e,onChange:s,"aria-describedby":this.question.ariaDescribedBy}),this.cssClasses.materialDecorator?o.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,a),t)},t}(i.ReactSurveyElement);u.ReactElementFactory.Instance.registerElement("survey-checkbox-item",(function(e){return o.createElement(d,e)})),a.ReactQuestionFactory.Instance.registerQuestion("checkbox",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_comment.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionComment",(function(){return u})),r.d(t,"SurveyQuestionCommentItem",(function(){return c})),r.d(t,"SurveyQuestionOtherValueItem",(function(){return p}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/components/character-counter.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.renderElement=function(){var e=this,t=this.question.isInputTextUpdate?void 0:this.updateValueOnEvent,r=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return o.createElement("div",null,this.question.value);var n=this.question.getMaxLength()?o.createElement(a.CharacterCounterComponent,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return o.createElement(o.Fragment,null,o.createElement("textarea",{id:this.question.inputId,className:this.question.className,disabled:this.question.isInputReadOnly,readOnly:this.question.isInputReadOnly,ref:function(t){return e.setControl(t)},maxLength:this.question.getMaxLength(),placeholder:r,onBlur:t,onInput:function(t){e.question.isInputTextUpdate?e.updateValueOnEvent(t):e.question.updateElement();var r=t.target.value;e.question.updateRemainingCharacterCounter(r)},onKeyDown:function(t){e.question.onKeyDown(t)},cols:this.question.cols,rows:this.question.rows,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-describedby":this.question.a11y_input_ariaDescribedBy,style:{resize:this.question.resizeStyle}}),n)},t}(i.SurveyQuestionUncontrolledElement),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.canRender=function(){return!!this.props.question},t.prototype.onCommentChange=function(e){this.props.question.onCommentChange(e)},t.prototype.onCommentInput=function(e){this.props.question.onCommentInput(e)},t.prototype.getComment=function(){return this.props.question.comment},t.prototype.getId=function(){return this.props.question.commentId},t.prototype.getPlaceholder=function(){return this.props.question.commentPlaceholder},t.prototype.renderElement=function(){var e=this,t=this.props.question,r=this.props.otherCss||this.cssClasses.comment,n=function(t){e.setState({comment:t.target.value}),e.onCommentChange(t)},i=this.getComment(),s=this.state?this.state.comment:void 0;void 0!==s&&s.trim()!==i&&(s=i);var a=void 0!==s?s:i||"";return t.isReadOnlyRenderDiv()?o.createElement("div",null,a):o.createElement("textarea",{id:this.getId(),className:r,value:a,disabled:this.isDisplayMode,maxLength:t.getOthersMaxLength(),placeholder:this.getPlaceholder(),onChange:n,onBlur:function(t){e.onCommentChange(t),n(t)},onInput:function(t){return e.onCommentInput(t)},"aria-required":t.isRequired,"aria-label":t.locTitle.renderedHtml,style:{resize:t.resizeStyle}})},t}(i.ReactSurveyElement),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.onCommentChange=function(e){this.props.question.onOtherValueChange(e)},t.prototype.onCommentInput=function(e){this.props.question.onOtherValueInput(e)},t.prototype.getComment=function(){return this.props.question.otherValue},t.prototype.getId=function(){return this.props.question.otherId},t.prototype.getPlaceholder=function(){return this.props.question.otherPlaceholder},t}(c);s.ReactQuestionFactory.Instance.registerQuestion("comment",(function(e){return o.createElement(u,e)}))},"./src/react/reactquestion_custom.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionCustom",(function(){return c})),r.d(t,"SurveyQuestionComposite",(function(){return p}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion.tsx"),a=r("./src/react/reactquestion_factory.tsx"),l=r("./src/react/panel.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getStateElements=function(){var t=e.prototype.getStateElements.call(this);return this.question.contentQuestion&&t.push(this.question.contentQuestion),t},t.prototype.renderElement=function(){return s.SurveyQuestion.renderQuestionBody(this.creator,this.question.contentQuestion)},t}(i.SurveyQuestionUncontrolledElement),p=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.canRender=function(){return!!this.question.contentPanel},t.prototype.renderElement=function(){return o.createElement(l.SurveyPanel,{element:this.question.contentPanel,creator:this.creator,survey:this.question.survey})},t}(i.SurveyQuestionUncontrolledElement);a.ReactQuestionFactory.Instance.registerQuestion("custom",(function(e){return o.createElement(c,e)})),a.ReactQuestionFactory.Instance.registerQuestion("composite",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_dropdown.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionDropdown",(function(){return l}));var n,o=r("react"),i=r("./src/react/reactquestion_factory.tsx"),s=r("./src/react/dropdown-base.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.isOtherSelected?this.renderOther(e):null,r=this.renderSelect(e);return o.createElement("div",{className:this.question.renderCssRoot},r,t)},t}(s.SurveyQuestionDropdownBase);i.ReactQuestionFactory.Instance.registerQuestion("dropdown",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_element.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyElementBase",(function(){return u})),r.d(t,"ReactSurveyElement",(function(){return c})),r.d(t,"SurveyQuestionElementBase",(function(){return p})),r.d(t,"SurveyQuestionUncontrolledElement",(function(){return d}));var n,o=r("react"),i=r("survey-core"),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactsurveymodel.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r._allowComponentUpdate=!0,r}return l(t,e),t.renderLocString=function(e,t,r){return void 0===t&&(t=null),s.ReactElementFactory.Instance.createElement(e.renderAs,{locStr:e.renderAsData,style:t,key:r})},t.renderQuestionDescription=function(e){var r=t.renderLocString(e.locDescription);return o.createElement("div",{style:e.isDescriptionVisible?void 0:{display:"none"},className:e.cssDescription},r)},t.prototype.componentDidMount=function(){this.makeBaseElementsReact()},t.prototype.componentWillUnmount=function(){this.unMakeBaseElementsReact()},t.prototype.componentDidUpdate=function(e,t){this.makeBaseElementsReact()},t.prototype.allowComponentUpdate=function(){this._allowComponentUpdate=!0,this.forceUpdate()},t.prototype.denyComponentUpdate=function(){this._allowComponentUpdate=!1},t.prototype.shouldComponentUpdate=function(e,t){return this._allowComponentUpdate&&this.unMakeBaseElementsReact(),this._allowComponentUpdate},t.prototype.render=function(){if(!this.canRender())return null;this.startEndRendering(1);var e=this.renderElement();return this.startEndRendering(-1),e&&(e=this.wrapElement(e)),this.changedStatePropNameValue=void 0,e},t.prototype.wrapElement=function(e){return e},Object.defineProperty(t.prototype,"isRendering",{get:function(){for(var e=0,t=this.getRenderedElements();e<t.length;e++)if(t[e].reactRendering>0)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return this.getStateElements()},t.prototype.startEndRendering=function(e){for(var t=0,r=this.getRenderedElements();t<r.length;t++){var n=r[t];n.reactRendering||(n.reactRendering=0),n.reactRendering+=e}},t.prototype.canRender=function(){return!0},t.prototype.renderElement=function(){return null},Object.defineProperty(t.prototype,"changedStatePropName",{get:function(){return this.changedStatePropNameValue},enumerable:!1,configurable:!0}),t.prototype.makeBaseElementsReact=function(){for(var e=this.getStateElements(),t=0;t<e.length;t++)this.makeBaseElementReact(e[t])},t.prototype.unMakeBaseElementsReact=function(){for(var e=this.getStateElements(),t=0;t<e.length;t++)this.unMakeBaseElementReact(e[t])},t.prototype.getStateElements=function(){var e=this.getStateElement();return e?[e]:[]},t.prototype.getStateElement=function(){return null},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!1},enumerable:!1,configurable:!0}),t.prototype.renderLocString=function(e,r,n){return void 0===r&&(r=null),t.renderLocString(e,r,n)},t.prototype.canMakeReact=function(e){return!!e&&!!e.iteratePropertiesHash},t.prototype.makeBaseElementReact=function(e){var t=this;this.canMakeReact(e)&&(e.iteratePropertiesHash((function(e,r){if(t.canUsePropInState(r)){var n=e[r];Array.isArray(n)&&(n.onArrayChanged=function(e){t.isRendering||(t.changedStatePropNameValue=r,t.setState((function(e){var t={};return t[r]=n,t})))})}})),e.setPropertyValueCoreHandler=function(e,r,n){if(e[r]!==n){if(e[r]=n,!t.canUsePropInState(r))return;if(t.isRendering)return;t.changedStatePropNameValue=r,t.setState((function(e){var t={};return t[r]=n,t}))}})},t.prototype.canUsePropInState=function(e){return!0},t.prototype.unMakeBaseElementReact=function(e){this.canMakeReact(e)&&(e.setPropertyValueCoreHandler=void 0,e.iteratePropertiesHash((function(e,t){var r=e[t];Array.isArray(r)&&(r.onArrayChanged=function(){})})))},t}(o.Component),c=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),t}(u),p=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.updateDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.questionBase){var t=this.control;this.questionBase.beforeDestroyQuestionElement(t),t&&t.removeAttribute("data-rendered")}},t.prototype.updateDomElement=function(){var e=this.control;e&&"r"!==e.getAttribute("data-rendered")&&(e.setAttribute("data-rendered","r"),this.questionBase.afterRenderQuestionElement(e))},Object.defineProperty(t.prototype,"questionBase",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return[this.questionBase]},Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.questionBase&&!!this.creator},t.prototype.shouldComponentUpdate=function(t,r){return!(!e.prototype.shouldComponentUpdate.call(this,t,r)||this.questionBase.customWidget&&!this.questionBase.customWidgetData.isNeedRender&&!this.questionBase.customWidget.widgetJson.isDefaultRender&&!this.questionBase.customWidget.widgetJson.render)},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!!this.questionBase&&this.questionBase.isInputReadOnly||!1},enumerable:!1,configurable:!0}),t.prototype.wrapCell=function(e,t,r){if(!r)return t;var n=this.questionBase.survey,o=null;return n&&(o=a.ReactSurveyElementsWrapper.wrapMatrixCell(n,t,e,r)),null!=o?o:t},t.prototype.setControl=function(e){e&&(this.control=e)},t}(u),d=function(e){function t(t){var r=e.call(this,t)||this;return r.updateValueOnEvent=function(e){i.Helpers.isTwoValueEquals(r.questionBase.value,e.target.value)||r.setValueCore(e.target.value)},r.updateValueOnEvent=r.updateValueOnEvent.bind(r),r}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.setValueCore=function(e){this.questionBase.value=e},t.prototype.getValueCore=function(){return this.questionBase.value},t.prototype.updateDomElement=function(){if(this.control){var t=this.control,r=this.getValueCore();i.Helpers.isTwoValueEquals(r,t.value)||(t.value=this.getValue(r))}e.prototype.updateDomElement.call(this)},t.prototype.getValue=function(e){return i.Helpers.isValueEmpty(e)?"":e},t}(p)},"./src/react/reactquestion_empty.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionEmpty",(function(){return l}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){var r=e.call(this,t)||this;return r.state={value:r.question.value},r}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement("div",null)},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("empty",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_expression.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionExpression",(function(){return l}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses;return o.createElement("div",{id:this.question.inputId,className:t.root,ref:function(t){return e.setControl(t)}},this.question.formatedValue)},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("expression",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_factory.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"ReactQuestionFactory",(function(){return n}));var n=function(){function e(){this.creatorHash={}}return e.prototype.registerQuestion=function(e,t){this.creatorHash[e]=t},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createQuestion=function(e,t){var r=this.creatorHash[e];return null==r?null:r(t)},e.Instance=new e,e}()},"./src/react/reactquestion_file.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionFile",(function(){return p}));var n,o=r("react"),i=r("./src/react/components/action-bar/action-bar.tsx"),s=r("./src/react/components/svg-icon/svg-icon.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=r("./src/react/reactquestion_factory.tsx"),u=r("./src/react/reactSurvey.tsx"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e,t=this,r=this.renderPreview(),n=this.renderFileDecorator(),s=this.renderClearButton(this.question.showRemoveButton),a=this.renderClearButton(this.question.showRemoveButtonBottom),l=this.question.mobileFileNavigatorVisible?o.createElement(i.SurveyActionBar,{model:this.question.mobileFileNavigator}):null;return e=this.isDisplayMode?o.createElement("input",{type:"file",disabled:this.isDisplayMode,className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},style:this.isDisplayMode?{color:"transparent"}:{},onChange:this.isDisplayMode?function(){}:this.question.doChange,multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):o.createElement("input",{type:"file",disabled:this.isDisplayMode,tabIndex:-1,className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},style:this.isDisplayMode?{color:"transparent"}:{},onChange:this.isDisplayMode?function(){}:this.question.doChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy,multiple:this.question.allowMultiple,title:this.question.inputTitle,accept:this.question.acceptedTypes}),o.createElement("div",{className:this.question.fileRootCss},e,o.createElement("div",{className:this.question.cssClasses.dragArea,onDrop:this.question.onDrop,onDragOver:this.question.onDragOver,onDragLeave:this.question.onDragLeave,onDragEnter:this.question.onDragEnter},n,s,r,a,l))},t.prototype.renderFileDecorator=function(){this.question.cssClasses;var e,t=null;return e=Object(u.attachKey2click)(o.createElement("label",{role:"button",tabIndex:0,className:this.question.getChooseFileCss(),htmlFor:this.question.inputId,"aria-label":this.question.chooseButtonCaption},o.createElement("span",null,this.question.chooseButtonCaption),this.question.cssClasses.chooseFileIconId?o.createElement(s.SvgIcon,{title:this.question.chooseButtonCaption,iconName:this.question.cssClasses.chooseFileIconId,size:"auto"}):null)),this.question.isEmpty()&&(t=o.createElement("span",{className:this.question.cssClasses.noFileChosen},this.question.noFileChosenCaption)),o.createElement("div",{className:this.question.getFileDecoratorCss()},o.createElement("span",{className:this.question.cssClasses.dragAreaPlaceholder},this.question.dragAreaPlaceholder),o.createElement("div",{className:this.question.cssClasses.wrapper},e,t))},t.prototype.renderClearButton=function(e){return e?o.createElement("button",{type:"button",onClick:this.question.doClean,className:e},o.createElement("span",null,this.question.clearButtonCaption),this.question.cssClasses.removeButtonIconId?o.createElement(s.SvgIcon,{iconName:this.question.cssClasses.removeButtonIconId,size:"auto",title:this.question.clearButtonCaption}):null):null},t.prototype.renderFileSign=function(e,t){var r=this;return e&&t.name?o.createElement("div",{className:e},o.createElement("a",{href:t.content,onClick:function(e){r.question.doDownloadFile(e,t)},title:t.name,download:t.name,style:{width:this.question.imageWidth}},t.name)):null},t.prototype.renderPreview=function(){var e=this;if(!this.question.previewValue||!this.question.previewValue.length)return null;var t=this.question.previewValue.map((function(t,r){return t?o.createElement("span",{key:e.question.inputId+"_"+r,className:e.question.cssClasses.preview,style:{display:e.question.isPreviewVisible(r)?void 0:"none"}},e.renderFileSign(e.question.cssClasses.fileSign,t),o.createElement("div",{className:e.question.cssClasses.imageWrapper},e.question.canPreviewImage(t)?o.createElement("img",{src:t.content,style:{height:e.question.imageHeight,width:e.question.imageWidth},alt:"File preview"}):e.question.cssClasses.defaultImage?o.createElement(s.SvgIcon,{iconName:e.question.cssClasses.defaultImageIconId,size:"auto",className:e.question.cssClasses.defaultImage}):null,t.name&&!e.question.isReadOnly?o.createElement("div",{className:e.question.cssClasses.removeFileButton,onClick:function(){return e.question.doRemoveFile(t)}},o.createElement("span",{className:e.question.cssClasses.removeFile},e.question.removeFileCaption),e.question.cssClasses.removeFileSvgIconId?o.createElement(s.SvgIcon,{title:e.question.removeFileCaption,iconName:e.question.cssClasses.removeFileSvgIconId,size:"auto",className:e.question.cssClasses.removeFileSvg}):null):null),e.renderFileSign(e.question.cssClasses.fileSignBottom,t)):null}));return o.createElement("div",{className:this.question.cssClasses.fileList||void 0},t)},t}(a.SurveyQuestionElementBase);l.ReactQuestionFactory.Instance.registerQuestion("file",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_html.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionHtml",(function(){return l}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){this.question.locHtml.onChanged=function(){}},t.prototype.componentDidUpdate=function(e,t){this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){var e=this;this.question.locHtml.onChanged=function(){e.setState({changed:e.state&&e.state.changed?e.state.changed+1:1})}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.question.html},t.prototype.renderElement=function(){var e={__html:this.question.locHtml.renderedHtml};return o.createElement("div",{className:this.question.renderCssRoot,dangerouslySetInnerHTML:e})},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("html",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_matrix.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionMatrix",(function(){return u})),r.d(t,"SurveyQuestionMatrixRow",(function(){return c}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/reactsurveymodel.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.state={rowsChanged:0},r}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.question){var t=this;this.question.visibleRowsChangedCallback=function(){t.setState({rowsChanged:t.state.rowsChanged+1})}}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question&&(this.question.visibleRowsChangedCallback=null)},t.prototype.renderElement=function(){for(var e=this,t=this.question.cssClasses,r=this.question.hasRows?o.createElement("td",null):null,n=[],i=0;i<this.question.visibleColumns.length;i++){var s=this.question.visibleColumns[i],a="column"+i,l=this.renderLocString(s.locText),u={};this.question.columnMinWidth&&(u.minWidth=this.question.columnMinWidth,u.width=this.question.columnMinWidth),n.push(o.createElement("th",{className:this.question.cssClasses.headerCell,style:u,key:a},this.wrapCell({column:s},l,"column-header")))}var p=[],d=this.question.visibleRows;for(i=0;i<d.length;i++){var h=d[i];a="row-"+h.name+"-"+i,p.push(o.createElement(c,{key:a,question:this.question,cssClasses:t,isDisplayMode:this.isDisplayMode,row:h,isFirst:0==i}))}var f=this.question.showHeader?o.createElement("thead",null,o.createElement("tr",null,r,n)):null;return o.createElement("div",{className:t.tableWrapper,ref:function(t){return e.setControl(t)}},o.createElement("fieldset",null,o.createElement("legend",{"aria-label":this.question.locTitle.renderedHtml}),o.createElement("table",{className:this.question.getTableCss()},f,o.createElement("tbody",null,p))))},t}(i.SurveyQuestionElementBase),c=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnChange=r.handleOnChange.bind(r),r}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),t.prototype.handleOnChange=function(e){this.row.value=e.target.value,this.setState({value:this.row.value})},t.prototype.wrapCell=function(e,t,r){if(!r)return t;var n=this.question.survey,o=null;return n&&(o=a.ReactSurveyElementsWrapper.wrapMatrixCell(n,t,e,r)),null!=o?o:t},t.prototype.canRender=function(){return!!this.row},t.prototype.renderElement=function(){var e=null;if(this.question.hasRows){var t=this.renderLocString(this.row.locText),r={};this.question.rowTitleWidth&&(r.minWidth=this.question.rowTitleWidth,r.width=this.question.rowTitleWidth),e=o.createElement("td",{style:r,className:this.question.cssClasses.rowTextCell},this.wrapCell({row:this.row},t,"row-header"))}var n=this.generateTds();return o.createElement("tr",{className:this.row.rowClasses||void 0},e,n)},t.prototype.generateTds=function(){for(var e=this,t=[],r=this.row,n=0;n<this.question.visibleColumns.length;n++){var i=null,s=this.question.visibleColumns[n],a="value"+n,l=r.value==s.value,u=this.question.getItemClass(r,s),c=this.question.inputId+"_"+r.name+"_"+n;if(this.question.hasCellText){var p=this.question.isInputReadOnly?null:function(t){return function(){return e.cellClick(r,t)}};i=o.createElement("td",{key:a,className:u,onClick:p?p(s):function(){}},this.renderLocString(this.question.getCellDisplayLocText(r.name,s)))}else i=o.createElement("td",{key:a,"data-responsive-title":s.locText.renderedHtml,className:this.question.cssClasses.cell},o.createElement("label",{className:u},o.createElement("input",{id:c,type:"radio",className:this.cssClasses.itemValue,name:r.fullName,value:s.value,disabled:this.isDisplayMode,checked:l,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":s.locText.renderedHtml,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),o.createElement("span",{className:this.question.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null),o.createElement("span",{style:this.question.isMobile?void 0:{display:"none"},className:this.question.cssClasses.cellResponsiveTitle},this.renderLocString(s.locText))));t.push(i)}return t},t.prototype.cellClick=function(e,t){e.value=t.value,this.setState({value:this.row.value})},t}(i.ReactSurveyElement);s.ReactQuestionFactory.Instance.registerQuestion("matrix",(function(e){return o.createElement(u,e)}))},"./src/react/reactquestion_matrixdropdown.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionMatrixDropdown",(function(){return l}));var n,o=r("react"),i=r("./src/react/reactquestion_matrixdropdownbase.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t}(i.SurveyQuestionMatrixDropdownBase);s.ReactQuestionFactory.Instance.registerQuestion("matrixdropdown",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_matrixdropdownbase.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionMatrixDropdownBase",(function(){return g})),r.d(t,"SurveyQuestionMatrixDropdownCell",(function(){return v}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion.tsx"),a=r("./src/react/reactquestion_checkbox.tsx"),l=r("./src/react/reactquestion_radiogroup.tsx"),u=r("./src/react/panel.tsx"),c=r("./src/react/components/action-bar/action-bar.tsx"),p=r("./src/react/components/matrix/row.tsx"),d=r("./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx"),h=r("./src/react/reactquestion_comment.tsx"),f=r("./src/react/element-factory.tsx"),m=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),g=function(e){function t(t){var r=e.call(this,t)||this;return r.question.renderedTable,r.state=r.getState(),r}return m(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return void 0===e&&(e=null),{rowCounter:e?e.rowCounter+1:0}},t.prototype.updateStateOnCallback=function(){this.isRendering||this.setState(this.getState(this.state))},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.question.visibleRowsChangedCallback=function(){t.updateStateOnCallback()},this.question.onRenderedTableResetCallback=function(){t.question.renderedTable.renderedRowsChangedCallback=function(){t.updateStateOnCallback()},t.updateStateOnCallback()},this.question.renderedTable.renderedRowsChangedCallback=function(){t.updateStateOnCallback()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.visibleRowsChangedCallback=function(){},this.question.onRenderedTableResetCallback=function(){},this.question.renderedTable.renderedRowsChangedCallback=function(){}},t.prototype.renderElement=function(){return this.renderTableDiv()},t.prototype.renderTableDiv=function(){var e=this,t=this.renderHeader(),r=this.renderFooter(),n=this.renderRows(),i=this.question.showHorizontalScroll?{overflowX:"scroll"}:{};return o.createElement("div",{style:i,className:this.question.cssClasses.tableWrapper,ref:function(t){return e.setControl(t)}},o.createElement("table",{className:this.question.getTableCss()},t,n,r))},t.prototype.renderHeader=function(){var e=this.question.renderedTable;if(!e.showHeader)return null;for(var t=[],r=e.headerRow.cells,n=0;n<r.length;n++){var i=r[n],s="column"+n,a={};i.width&&(a.width=i.width),i.minWidth&&(a.minWidth=i.minWidth);var l=this.renderCellContent(i,"column-header",{}),u=i.hasTitle?o.createElement("th",{className:i.className,key:s,style:a}," ",l," "):o.createElement("td",{className:i.className,key:s,style:a});t.push(u)}return o.createElement("thead",null,o.createElement("tr",null,t))},t.prototype.renderFooter=function(){var e=this.question.renderedTable;if(!e.showFooter)return null;var t=this.renderRow("footer",e.footerRow,this.question.cssClasses,"row-footer");return o.createElement("tfoot",null,t)},t.prototype.renderRows=function(){for(var e=this.question.cssClasses,t=[],r=this.question.renderedTable.rows,n=0;n<r.length;n++)t.push(this.renderRow(r[n].id,r[n],e));return o.createElement("tbody",null,t)},t.prototype.renderRow=function(e,t,r,n){for(var i=[],s=t.cells,a=0;a<s.length;a++)i.push(this.renderCell(s[a],a,r,n));var l="row"+e;return o.createElement(o.Fragment,{key:l},o.createElement(p.MatrixRow,{model:t,parentMatrix:this.question},i))},t.prototype.renderCell=function(e,t,r,n){var i="cell"+t;if(e.hasQuestion)return o.createElement(v,{key:i,cssClasses:r,cell:e,creator:this.creator,reason:n});var s=n;s||(s=e.hasTitle?"row-header":"");var a=this.renderCellContent(e,s,r),l=null;return(e.width||e.minWidth)&&(l={},e.width&&(l.width=e.width),e.minWidth&&(l.minWidth=e.minWidth)),o.createElement("td",{className:e.className,key:i,style:l,colSpan:e.colSpans,"data-responsive-title":e.headers,title:e.getTitle()},a)},t.prototype.renderCellContent=function(e,t,r){var n=null,i=null;if((e.width||e.minWidth)&&(i={},e.width&&(i.width=e.width),e.minWidth&&(i.minWidth=e.minWidth)),e.hasTitle){t="row-header";var s=this.renderLocString(e.locTitle),a=e.column?o.createElement(y,{column:e.column,question:this.question}):null;n=o.createElement(o.Fragment,null,s,a)}if(e.isDragHandlerCell&&(n=o.createElement(o.Fragment,null,o.createElement(d.SurveyQuestionMatrixDynamicDragDropIcon,{item:{data:{row:e.row,question:this.question}}}))),e.isActionsCell&&(n=f.ReactElementFactory.Instance.createElement("sv-matrixdynamic-actions-cell",{question:this.question,cssClasses:r,cell:e,model:e.item.getData()})),e.hasPanel&&(n=o.createElement(u.SurveyPanel,{key:e.panel.id,element:e.panel,survey:this.question.survey,cssClasses:r,isDisplayMode:this.isDisplayMode,creator:this.creator})),!n)return null;var l=o.createElement(o.Fragment,null,n);return this.wrapCell(e,l,t)},t}(i.SurveyQuestionElementBase),b=function(e){function t(t){return e.call(this,t)||this}return m(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement(c.SurveyActionBar,{model:this.model,handleClick:!1})},t}(i.ReactSurveyElement);f.ReactElementFactory.Instance.registerElement("sv-matrixdynamic-actions-cell",(function(e){return o.createElement(b,e)}));var y=function(e){function t(t){return e.call(this,t)||this}return m(t,e),Object.defineProperty(t.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.column},t.prototype.renderElement=function(){return this.column.isRenderedRequired?o.createElement(o.Fragment,null,o.createElement("span",{className:this.question.cssClasses.cellRequiredText},this.column.requiredText)):null},t}(i.ReactSurveyElement),v=function(e){function t(t){return e.call(this,t)||this}return m(t,e),Object.defineProperty(t.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemCss",{get:function(){return this.cell?this.cell.className:""},enumerable:!1,configurable:!0}),t.prototype.getQuestion=function(){return e.prototype.getQuestion.call(this)||(this.cell?this.cell.question:null)},t.prototype.doAfterRender=function(){var e=this.cellRef.current;if(e&&this.cell&&this.question&&this.question.survey&&"r"!==e.getAttribute("data-rendered")){e.setAttribute("data-rendered","r");var t={cell:this.cell,cellQuestion:this.question,htmlElement:e,row:this.cell.row,column:this.cell.cell.column};this.question.survey.matrixAfterCellRender(this.question,t)}},t.prototype.getShowErrors=function(){return this.question.isVisible&&(!this.cell.isChoice||this.cell.isFirstChoice)},t.prototype.getCellStyle=function(){var t=e.prototype.getCellStyle.call(this);return(this.cell.width||this.cell.minWidth)&&(t||(t={}),this.cell.width&&(t.width=this.cell.width),this.cell.minWidth&&(t.minWidth=this.cell.minWidth)),t},t.prototype.getHeaderText=function(){return this.cell.headers},t.prototype.renderQuestion=function(){return this.cell.isChoice?this.cell.isOtherChoice?this.renderOtherComment():this.cell.isCheckbox?this.renderCellCheckboxButton():this.renderCellRadiogroupButton():s.SurveyQuestion.renderQuestionBody(this.creator,this.question)},t.prototype.renderOtherComment=function(){var e=this.cell.question,t=e.cssClasses||{};return o.createElement(h.SurveyQuestionOtherValueItem,{question:e,cssClasses:t,otherCss:t.other,isDisplayMode:e.isInputReadOnly})},t.prototype.renderCellCheckboxButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return o.createElement(a.SurveyQuestionCheckboxItem,{key:e,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,isFirst:this.cell.isFirstChoice,index:this.cell.choiceIndex.toString(),hideCaption:!0})},t.prototype.renderCellRadiogroupButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return o.createElement(l.SurveyQuestionRadioItem,{key:e,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,index:this.cell.choiceIndex.toString(),isChecked:this.cell.question.value===this.cell.item.value,isDisabled:this.cell.question.isReadOnly||!this.cell.item.isEnabled,hideCaption:!0})},t}(s.SurveyQuestionAndErrorsCell)},"./src/react/reactquestion_matrixdynamic.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionMatrixDynamic",(function(){return c})),r.d(t,"SurveyQuestionMatrixDynamicAddButton",(function(){return p}));var n,o=r("react"),i=r("./src/react/reactquestion_factory.tsx"),s=r("./src/react/reactquestion_matrixdropdownbase.tsx"),a=r("./src/react/element-factory.tsx"),l=r("./src/react/reactquestion_element.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnRowAddClick=r.handleOnRowAddClick.bind(r),r}return u(t,e),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.handleOnRowAddClick=function(e){this.matrix.addRowUI()},t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.renderedTable.showTable?this.renderTableDiv():this.renderNoRowsContent(e);return o.createElement("div",null,this.renderAddRowButtonOnTop(e),t,this.renderAddRowButtonOnBottom(e))},t.prototype.renderAddRowButtonOnTop=function(e){return this.matrix.renderedTable.showAddRowOnTop?this.renderAddRowButton(e):null},t.prototype.renderAddRowButtonOnBottom=function(e){return this.matrix.renderedTable.showAddRowOnBottom?this.renderAddRowButton(e):null},t.prototype.renderNoRowsContent=function(e){var t=this.renderLocString(this.matrix.locEmptyRowsText),r=o.createElement("div",{className:e.emptyRowsText},t),n=this.renderAddRowButton(e,!0);return o.createElement("div",{className:e.emptyRowsSection},r,n)},t.prototype.renderAddRowButton=function(e,t){return void 0===t&&(t=!1),a.ReactElementFactory.Instance.createElement("sv-matrixdynamic-add-btn",{question:this.question,cssClasses:e,isEmptySection:t})},t}(s.SurveyQuestionMatrixDropdownBase);i.ReactQuestionFactory.Instance.registerQuestion("matrixdynamic",(function(e){return o.createElement(c,e)}));var p=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnRowAddClick=r.handleOnRowAddClick.bind(r),r}return u(t,e),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.handleOnRowAddClick=function(e){this.matrix.addRowUI()},t.prototype.renderElement=function(){var e=this.renderLocString(this.matrix.locAddRowText),t=o.createElement("button",{className:this.matrix.getAddRowButtonCss(this.props.isEmptySection),type:"button",disabled:this.matrix.isInputReadOnly,onClick:this.matrix.isDesignMode?void 0:this.handleOnRowAddClick},e,o.createElement("span",{className:this.props.cssClasses.iconAdd}));return this.props.isEmptySection?t:o.createElement("div",{className:this.props.cssClasses.footer},t)},t}(l.ReactSurveyElement);a.ReactElementFactory.Instance.registerElement("sv-matrixdynamic-add-btn",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_multipletext.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionMultipleText",(function(){return c})),r.d(t,"SurveyMultipleTextItem",(function(){return p})),r.d(t,"SurveyMultipleTextItemEditor",(function(){return d}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion.tsx"),a=r("./src/react/reactquestion_factory.tsx"),l=r("./src/react/components/title/title-content.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){for(var e=this.question.cssClasses,t=this.question.getRows(),r=[],n=0;n<t.length;n++)r.push(this.renderRow(n,t[n],e));return o.createElement("table",{className:e.root},o.createElement("tbody",null,r))},t.prototype.renderRow=function(e,t,r){for(var n="item"+e,i=[],s=0;s<t.length;s++){var a=t[s];i.push(o.createElement("td",{key:"item"+s,className:this.question.cssClasses.cell},o.createElement(p,{question:this.question,item:a,creator:this.creator,cssClasses:r})))}return o.createElement("tr",{key:n,className:r.row},i)},t}(i.SurveyQuestionElementBase),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElements=function(){return[this.item,this.item.editor]},Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.item,t=this.cssClasses;return o.createElement("label",{className:this.question.getItemLabelCss(e)},o.createElement("span",{className:t.itemTitle},o.createElement(l.TitleContent,{element:e.editor,cssClasses:e.editor.cssClasses})),o.createElement(d,{cssClasses:t,itemCss:this.question.getItemCss(),question:e.editor,creator:this.creator}),this.renderItemTooltipError(e,t))},t.prototype.renderItemTooltipError=function(e,t){return this.item.editor.isErrorsModeTooltip?o.createElement(s.SurveyElementErrors,{element:e.editor,cssClasses:t,creator:this.creator,location:"tooltip",id:e.editor.id+"_errors"}):null},t}(i.ReactSurveyElement),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.renderElement=function(){return o.createElement("div",{className:this.itemCss},this.renderContent())},t}(s.SurveyQuestionAndErrorsWrapped);a.ReactQuestionFactory.Instance.registerQuestion("multipletext",(function(e){return o.createElement(c,e)}))},"./src/react/reactquestion_paneldynamic.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionPanelDynamic",(function(){return f})),r.d(t,"SurveyQuestionPanelDynamicItem",(function(){return m}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/panel.tsx"),a=r("./src/react/reactquestion_factory.tsx"),l=r("./src/react/components/action-bar/action-bar.tsx"),u=r("./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx"),c=r("./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx"),p=r("./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx"),d=r("./src/react/element-factory.tsx"),h=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(e){function t(t){return e.call(this,t)||this}return h(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.setState({panelCounter:0});var t=this;this.question.panelCountChangedCallback=function(){t.updateQuestionRendering()},this.question.currentIndexChangedCallback=function(){t.updateQuestionRendering()},this.question.renderModeChangedCallback=function(){t.updateQuestionRendering()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.panelCountChangedCallback=function(){},this.question.currentIndexChangedCallback=function(){},this.question.renderModeChangedCallback=function(){}},t.prototype.updateQuestionRendering=function(){this.setState({panelCounter:this.state?this.state.panelCounter+1:1})},t.prototype.renderElement=function(){var e=[];if(this.question.isRenderModeList)for(var t=0;t<this.question.panels.length;t++){var r=this.question.panels[t];e.push(o.createElement(m,{key:r.id,element:r,question:this.question,index:t,cssClasses:this.question.cssClasses,isDisplayMode:this.isDisplayMode,creator:this.creator}))}else null!=this.question.currentPanel&&(r=this.question.currentPanel,e.push(o.createElement(m,{key:this.question.currentIndex,element:r,question:this.question,index:this.question.currentIndex,cssClasses:this.question.cssClasses,isDisplayMode:this.isDisplayMode,creator:this.creator})));var n=this.question.isRenderModeList&&this.question.showLegacyNavigation?this.renderAddRowButton():null,i=this.question.isProgressTopShowing?this.renderNavigator():null,s=this.question.isProgressBottomShowing?this.renderNavigator():null,a=this.renderNavigatorV2(),l=this.renderPlaceholder();return o.createElement("div",{className:this.question.cssClasses.root},l,i,e,s,n,a)},t.prototype.renderNavigator=function(){if(!this.question.showLegacyNavigation)return this.question.isRangeShowing&&this.question.isProgressTopShowing?this.renderRange():null;var e=this.question.isRangeShowing?this.renderRange():null,t=this.rendrerPrevButton(),r=this.rendrerNextButton(),n=this.renderAddRowButton(),i=this.question.isProgressTopShowing?this.question.cssClasses.progressTop:this.question.cssClasses.progressBottom;return o.createElement("div",{className:i},o.createElement("div",{style:{clear:"both"}},o.createElement("div",{className:this.question.cssClasses.progressContainer},t,e,r),n,this.renderProgressText()))},t.prototype.renderProgressText=function(){return o.createElement(p.SurveyQuestionPanelDynamicProgressText,{data:{question:this.question}})},t.prototype.rendrerPrevButton=function(){return o.createElement(c.SurveyQuestionPanelDynamicPrevButton,{data:{question:this.question}})},t.prototype.rendrerNextButton=function(){return o.createElement(u.SurveyQuestionPanelDynamicNextButton,{data:{question:this.question}})},t.prototype.renderRange=function(){return o.createElement("div",{className:this.question.cssClasses.progress},o.createElement("div",{className:this.question.cssClasses.progressBar,style:{width:this.question.progress},role:"progressbar"}))},t.prototype.renderAddRowButton=function(){return d.ReactElementFactory.Instance.createElement("sv-paneldynamic-add-btn",{data:{question:this.question}})},t.prototype.renderNavigatorV2=function(){if(!this.question.showNavigation)return null;var e=this.question.isRangeShowing&&this.question.isProgressBottomShowing?this.renderRange():null;return o.createElement("div",{className:this.question.cssClasses.footer},o.createElement("hr",{className:this.question.cssClasses.separator}),e,this.question.footerToolbar.visibleActions.length?o.createElement("div",{className:this.question.cssClasses.footerButtonsContainer},o.createElement(l.SurveyActionBar,{model:this.question.footerToolbar})):null)},t.prototype.renderPlaceholder=function(){return this.question.getShowNoEntriesPlaceholder()?o.createElement("div",{className:this.question.cssClasses.noEntriesPlaceholder},o.createElement("span",null,this.renderLocString(this.question.locNoEntriesText)),this.renderAddRowButton()):null},t}(i.SurveyQuestionElementBase),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(){return this.question?this.question.survey:null},t.prototype.getCss=function(){var e=this.getSurvey();return e?e.getCss():{}},t.prototype.render=function(){var t=e.prototype.render.call(this),r=this.renderButton(),n=this.question.showSeparator(this.index)?o.createElement("hr",{className:this.question.cssClasses.separator}):null;return o.createElement(o.Fragment,null,o.createElement("div",{className:this.question.getPanelWrapperCss()},t,r),n)},t.prototype.renderButton=function(){return"right"!==this.question.panelRemoveButtonLocation||!this.question.canRemovePanel||this.question.isRenderModeList&&this.panel.isCollapsed?null:d.ReactElementFactory.Instance.createElement("sv-paneldynamic-remove-btn",{data:{question:this.question,panel:this.panel}})},t}(s.SurveyPanel);a.ReactQuestionFactory.Instance.registerQuestion("paneldynamic",(function(e){return o.createElement(f,e)}))},"./src/react/reactquestion_radiogroup.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionRadiogroup",(function(){return p})),r.d(t,"SurveyQuestionRadioItem",(function(){return d}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_comment.tsx"),a=r("./src/react/reactquestion_factory.tsx"),l=r("./src/react/reactsurveymodel.tsx"),u=r("./src/react/element-factory.tsx"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,r=null;return this.question.showClearButtonInContent&&(r=o.createElement("div",null,o.createElement("input",{type:"button",className:this.question.cssClasses.clearButton,onClick:function(){return e.question.clearValue()},value:this.question.clearButtonCaption}))),o.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),role:"presentation",ref:function(t){return e.setControl(t)}},this.question.hasColumns?this.getColumnedBody(t):this.getBody(t),this.getFooter(),this.question.isOtherSelected?this.renderOther(t):null,r)},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map((function(t,r){return e.renderItem("item_f"+r,t,!1,e.question.cssClasses)}))},t.prototype.getColumnedBody=function(e){return o.createElement("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var t=this,r=this.getStateValue();return this.question.columns.map((function(n,i){var s=n.map((function(n,o){return t.renderItem("item"+i+o,n,r,e,""+i+o)}));return o.createElement("div",{key:"column"+i,className:t.question.getColumnClass(),role:"presentation"},s)}))},t.prototype.getBody=function(e){return this.question.blockedRow?o.createElement("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):o.createElement(o.Fragment,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,t){for(var r=[],n=this.getStateValue(),o=0;o<t.length;o++){var i=t[o],s=this.renderItem("item"+o,i,n,e,""+o);r.push(s)}return r},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(e){return o.createElement("div",{className:this.question.getCommentAreaCss(!0)},o.createElement(s.SurveyQuestionOtherValueItem,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,t,r,n,o){var i=u.ReactElementFactory.Instance.createElement(this.question.itemComponent,{key:e,question:this.question,cssClasses:n,isDisplayMode:this.isDisplayMode,item:t,textStyle:this.textStyle,index:o,isChecked:r===t.value}),s=this.question.survey,a=null;return s&&(a=l.ReactSurveyElementsWrapper.wrapItemValue(s,i,this.question,t)),null!=a?a:i},t.prototype.getStateValue=function(){return this.question.isEmpty()?"":this.question.renderedValue},t}(i.SurveyQuestionElementBase),d=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnChange=r.handleOnChange.bind(r),r}return c(t,e),t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isChecked",{get:function(){return this.props.isChecked},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),t.prototype.shouldComponentUpdate=function(t,r){return!(!e.prototype.shouldComponentUpdate.call(this,t,r)||!this.question||this.question.customWidget&&!this.question.customWidgetData.isNeedRender&&!this.question.customWidget.widgetJson.isDefaultRender&&!this.question.customWidget.widgetJson.render)},t.prototype.handleOnChange=function(e){this.question.clickItemHandler(this.item)},t.prototype.canRender=function(){return!!this.question&&!!this.item},t.prototype.renderElement=function(){var e=this.question.getItemClass(this.item),t=this.question.getLabelClass(this.item),r=this.question.getControlLabelClass(this.item),n=this.hideCaption?null:o.createElement("span",{className:r},this.renderLocString(this.item.locText,this.textStyle));return o.createElement("div",{className:e,role:"presentation"},o.createElement("label",{className:t,"aria-label":this.question.getAriaItemLabel(this.item)},o.createElement("input",{"aria-describedby":this.question.ariaDescribedBy,className:this.cssClasses.itemControl,id:this.question.getItemId(this.item),type:"radio",name:this.question.questionName,checked:this.isChecked,value:this.item.value,disabled:!this.question.getItemEnabled(this.item),onChange:this.handleOnChange}),this.cssClasses.materialDecorator?o.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,n))},t}(i.ReactSurveyElement);u.ReactElementFactory.Instance.registerElement("survey-radiogroup-item",(function(e){return o.createElement(d,e)})),a.ReactQuestionFactory.Instance.registerQuestion("radiogroup",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_ranking.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionRanking",(function(){return u})),r.d(t,"SurveyQuestionRankingItem",(function(){return c}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/reactsurveymodel.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this;return o.createElement("div",{className:this.question.rootClass,ref:function(t){return e.setControl(t)}},this.getItems())},t.prototype.getItems=function(){for(var e=this,t=[],r=this.question.rankingChoices,n=function(n){var i=r[n];t.push(o.renderItem(i,n,(function(t){e.question.handleKeydown.call(e.question,t,i)}),(function(t){t.persist(),e.question.handlePointerDown.call(e.question,t,i,t.currentTarget)}),o.question.cssClasses,o.question.getItemClass(i),o.question))},o=this,i=0;i<r.length;i++)n(i);return t},t.prototype.renderItem=function(e,t,r,n,i,s,l){var u=e.value+"-"+t+"-item",p=this.renderLocString(e.locText),d=t,h=this.question.getNumberByIndex(t),f=this.question.getItemTabIndex(e),m=o.createElement(c,{key:u,text:p,index:d,indexText:h,itemTabIndex:f,handleKeydown:r,handlePointerDown:n,cssClasses:i,itemClass:s,question:l}),g=this.question.survey,b=null;return g&&(b=a.ReactSurveyElementsWrapper.wrapItemValue(g,m,this.question,e)),null!=b?b:m},t}(i.SurveyQuestionElementBase),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"text",{get:function(){return this.props.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indexText",{get:function(){return this.props.indexText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handleKeydown",{get:function(){return this.props.handleKeydown},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handlePointerDown",{get:function(){return this.props.handlePointerDown},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemClass",{get:function(){return this.props.itemClass},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemTabIndex",{get:function(){return this.props.itemTabIndex},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement("div",{tabIndex:this.itemTabIndex,className:this.itemClass,onKeyDown:this.handleKeydown,onPointerDown:this.handlePointerDown,"data-sv-drop-target-ranking-item":this.index},o.createElement("div",{tabIndex:-1,style:{outline:"none"}},o.createElement("div",{className:this.cssClasses.itemGhostNode}),o.createElement("div",{className:this.cssClasses.itemContent},o.createElement("div",{className:this.cssClasses.itemIconContainer},o.createElement("svg",{width:"10",height:"16",viewBox:"0 0 10 16",className:this.question.getIconHoverCss(),xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M6 2C6 0.9 6.9 0 8 0C9.1 0 10 0.9 10 2C10 3.1 9.1 4 8 4C6.9 4 6 3.1 6 2ZM2 0C0.9 0 0 0.9 0 2C0 3.1 0.9 4 2 4C3.1 4 4 3.1 4 2C4 0.9 3.1 0 2 0ZM8 6C6.9 6 6 6.9 6 8C6 9.1 6.9 10 8 10C9.1 10 10 9.1 10 8C10 6.9 9.1 6 8 6ZM2 6C0.9 6 0 6.9 0 8C0 9.1 0.9 10 2 10C3.1 10 4 9.1 4 8C4 6.9 3.1 6 2 6ZM8 12C6.9 12 6 12.9 6 14C6 15.1 6.9 16 8 16C9.1 16 10 15.1 10 14C10 12.9 9.1 12 8 12ZM2 12C0.9 12 0 12.9 0 14C0 15.1 0.9 16 2 16C3.1 16 4 15.1 4 14C4 12.9 3.1 12 2 12Z"})),o.createElement("svg",{width:"10",height:"24",viewBox:"0 0 10 24",className:this.question.getIconFocusCss(),xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M10 5L5 0L0 5H4V9H6V5H10Z"}),o.createElement("path",{d:"M6 19V15H4V19H0L5 24L10 19H6Z"}))),o.createElement("div",{className:this.question.getItemIndexClasses()},this.indexText),o.createElement("div",{className:this.cssClasses.controlLabel},this.text))))},t}(i.ReactSurveyElement);s.ReactQuestionFactory.Instance.registerQuestion("ranking",(function(e){return o.createElement(u,e)}))},"./src/react/reactquestion_rating.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionRating",(function(){return u}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/element-factory.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnClick=r.handleOnClick.bind(r),r}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.handleOnClick=function(e){this.question.setValueFromClick(e.target.value),this.setState({value:this.question.value})},t.prototype.renderItem=function(e,t){return a.ReactElementFactory.Instance.createElement(this.question.itemComponentName,{question:this.question,item:e,index:t,key:"value"+t,handleOnClick:this.handleOnClick,isDisplayMode:this.isDisplayMode})},t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,r=this.question.minRateDescription?this.renderLocString(this.question.locMinRateDescription):null,n=this.question.maxRateDescription?this.renderLocString(this.question.locMaxRateDescription):null;return o.createElement("div",{className:this.question.ratingRootCss,ref:function(t){return e.setControl(t)}},o.createElement("fieldset",{role:"radiogroup"},o.createElement("legend",{role:"presentation",className:"sv-hidden"}),this.question.hasMinLabel?o.createElement("span",{className:t.minText},r):null,this.question.renderedRateItems.map((function(t,r){return e.renderItem(t,r)})),this.question.hasMaxLabel?o.createElement("span",{className:t.maxText},n):null))},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("rating",(function(e){return o.createElement(u,e)}))},"./src/react/reactquestion_tagbox.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionTagbox",(function(){return c}));var n,o=r("react"),i=r("./src/react/reactquestion_factory.tsx"),s=r("./src/react/dropdown-base.tsx"),a=r("./src/react/tagbox-item.tsx"),l=r("./src/react/tagbox-filter.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.renderItem=function(e,t){return o.createElement(a.SurveyQuestionTagboxItem,{key:e,question:this.question,item:t})},t.prototype.renderInput=function(e){var t=this,r=e,n=this.question.selectedChoices.map((function(e,r){return t.renderItem("item"+r,e)}));return o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.inputReadOnly?void 0:0,onClick:this.click,disabled:this.question.isInputReadOnly,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant},o.createElement("div",{className:this.question.cssClasses.controlValue},n,o.createElement(l.TagboxFilterString,{model:r,question:this.question})),this.createClearButton())},t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.isOtherSelected?this.renderOther(e):null,r=this.renderSelect(e);return o.createElement("div",{className:this.question.renderCssRoot},r,t)},t}(s.SurveyQuestionDropdownBase);i.ReactQuestionFactory.Instance.registerQuestion("tagbox",(function(e){return o.createElement(c,e)}))},"./src/react/reactquestion_text.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionText",(function(){return u}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/components/character-counter.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.renderInput=function(){var e=this,t=this.question.getControlClass(),r=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return o.createElement("div",null,this.question.value);var n=this.question.getMaxLength()?o.createElement(a.CharacterCounterComponent,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return o.createElement(o.Fragment,null,o.createElement("input",{id:this.question.inputId,disabled:this.isDisplayMode,className:t,type:this.question.inputType,ref:function(t){return e.setControl(t)},style:this.question.inputStyle,maxLength:this.question.getMaxLength(),min:this.question.renderedMin,max:this.question.renderedMax,step:this.question.renderedStep,size:this.question.inputSize,placeholder:r,list:this.question.dataListId,autoComplete:this.question.autocomplete,onBlur:this.question.onBlur,onFocus:this.question.onFocus,onChange:this.question.onChange,onKeyUp:this.question.onKeyUp,onKeyDown:this.question.onKeyDown,onCompositionUpdate:function(t){return e.question.onCompositionUpdate(t.nativeEvent)},"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-describedby":this.question.a11y_input_ariaDescribedBy}),n)},t.prototype.renderElement=function(){return this.question.dataListId?o.createElement("div",null,this.renderInput(),this.renderDataList()):this.renderInput()},t.prototype.renderDataList=function(){if(!this.question.dataListId)return null;var e=this.question.dataList;if(0==e.length)return null;for(var t=[],r=0;r<e.length;r++)t.push(o.createElement("option",{key:"item"+r,value:e[r]}));return o.createElement("datalist",{id:this.question.dataListId},t)},t}(i.SurveyQuestionUncontrolledElement);s.ReactQuestionFactory.Instance.registerQuestion("text",(function(e){return o.createElement(u,e)}))},"./src/react/reactsurveymodel.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"ReactSurveyElementsWrapper",(function(){return i}));var n=r("survey-core"),o=r("./src/react/element-factory.tsx"),i=function(){function e(){}return e.wrapRow=function(e,t,r){var n=e.getRowWrapperComponentName(r),i=e.getRowWrapperComponentData(r);return o.ReactElementFactory.Instance.createElement(n,{element:t,row:r,componentData:i})},e.wrapElement=function(e,t,r){var n=e.getElementWrapperComponentName(r),i=e.getElementWrapperComponentData(r);return o.ReactElementFactory.Instance.createElement(n,{element:t,question:r,componentData:i})},e.wrapQuestionContent=function(e,t,r){var n=e.getQuestionContentWrapperComponentName(r),i=e.getElementWrapperComponentData(r);return o.ReactElementFactory.Instance.createElement(n,{element:t,question:r,componentData:i})},e.wrapItemValue=function(e,t,r,n){var i=e.getItemValueWrapperComponentName(n,r),s=e.getItemValueWrapperComponentData(n,r);return o.ReactElementFactory.Instance.createElement(i,{key:null==t?void 0:t.key,element:t,question:r,item:n,componentData:s})},e.wrapMatrixCell=function(e,t,r,n){void 0===n&&(n="cell");var i=e.getElementWrapperComponentName(r,n),s=e.getElementWrapperComponentData(r,n);return o.ReactElementFactory.Instance.createElement(i,{element:t,cell:r,componentData:s})},e}();n.SurveyModel.platform="react"},"./src/react/reacttimerpanel.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyTimerPanel",(function(){return u}));var n,o=r("react"),i=r("./src/react/components/svg-icon/svg-icon.tsx"),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.circleLength=440,r}return l(t,e),t.prototype.getStateElement=function(){return this.timerModel},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return-this.timerModel.progress*this.circleLength},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(!this.timerModel.isRunning)return null;var e=o.createElement("div",{className:this.timerModel.survey.getCss().timerRoot},this.timerModel.text);if(this.timerModel.showTimerAsClock){var t={strokeDasharray:this.circleLength,strokeDashoffset:this.progress},r=this.timerModel.showProgress?o.createElement(i.SvgIcon,{className:this.timerModel.getProgressCss(),style:t,iconName:"icon-timercircle",size:"auto"}):null;e=o.createElement("div",{className:this.timerModel.rootCss},r,o.createElement("div",{className:this.timerModel.textContainerCss},o.createElement("span",{className:this.timerModel.majorTextCss},this.timerModel.clockMajorText),this.timerModel.clockMinorText?o.createElement("span",{className:this.timerModel.minorTextCss},this.timerModel.clockMinorText):null))}return e},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-timerpanel",(function(e){return o.createElement(u,e)}))},"./src/react/row.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyRow",(function(){return u}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactsurveymodel.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.rootRef=o.createRef(),r.recalculateCss(),r}return l(t,e),t.prototype.recalculateCss=function(){this.row.visibleElements.map((function(e){return e.cssClasses}))},t.prototype.getStateElement=function(){return this.row},Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.row&&!!this.survey&&!!this.creator&&this.row.visible},t.prototype.renderElementContent=function(){var e=this,t=this.row.visibleElements.map((function(t,r){var n=e.createElement(t,r),i=t.cssClassesValue;return o.createElement("div",{className:i.questionWrapper,style:t.rootStyle,"data-key":n.key,key:n.key,onFocus:function(){var e=t;e&&!e.isDisposed&&e.isQuestion&&e.focusIn()}},e.row.isNeedRender?n:s.ReactElementFactory.Instance.createElement(t.skeletonComponentName,{element:t,css:e.css}))}));return o.createElement("div",{ref:this.rootRef,className:this.row.getRowCss()},t)},t.prototype.renderElement=function(){var e=this.survey,t=this.renderElementContent();return a.ReactSurveyElementsWrapper.wrapRow(e,t,this.row)||t},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this);var r=this.rootRef.current;if(r&&!this.row.isNeedRender){var n=r;setTimeout((function(){t.row.startLazyRendering(n)}),10)}},t.prototype.shouldComponentUpdate=function(t,r){return!!e.prototype.shouldComponentUpdate.call(this,t,r)&&(t.row!==this.row&&(t.row.isNeedRender=this.row.isNeedRender,this.stopLazyRendering()),this.recalculateCss(),!0)},t.prototype.stopLazyRendering=function(){this.row.stopLazyRendering(),this.row.isNeedRender=!this.row.isLazyRendering()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.stopLazyRendering()},t.prototype.createElement=function(e,t){var r=t?"-"+t:0,n=e.getType();return s.ReactElementFactory.Instance.isElementRegistered(n)||(n="question"),s.ReactElementFactory.Instance.createElement(n,{key:e.name+r,element:e,creator:this.creator,survey:this.survey,css:this.css})},t}(i.SurveyElementBase)},"./src/react/signaturepad.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionSignaturePad",(function(){return u}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/components/svg-icon/svg-icon.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.state={value:r.question.value},r}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,r=this.renderCleanButton();return o.createElement("div",{className:t.root,ref:function(t){return e.setControl(t)},style:{height:this.question.signatureHeight,width:this.question.signatureWidth}},o.createElement("div",{className:t.placeholder,style:{display:this.question.needShowPlaceholder()?"":"none"}},this.question.placeHolderText),o.createElement("div",null,o.createElement("canvas",{tabIndex:0})),r)},t.prototype.renderCleanButton=function(){var e=this;if(!this.question.canShowClearButton)return null;var t=this.question.cssClasses;return o.createElement("div",{className:t.controls},o.createElement("button",{type:"button",className:t.clearButton,title:this.question.clearButtonCaption,onClick:function(){return e.question.clearValue()}},this.question.cssClasses.clearButtonIconId?o.createElement(a.SvgIcon,{iconName:this.question.cssClasses.clearButtonIconId,size:"auto"}):o.createElement("span",null,"✖")))},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("signaturepad",(function(e){return o.createElement(u,e)}))},"./src/react/string-editor.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyLocStringEditor",(function(){return u}));var n,o=r("react"),i=r.n(o),s=r("survey-core"),a=r("./src/react/element-factory.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.onInput=function(e){r.locStr.text=e.target.innerText},r.onClick=function(e){e.preventDefault(),e.stopPropagation()},r.state={changed:0},r}return l(t,e),Object.defineProperty(t.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.locStr){var e=this;this.locStr.onChanged=function(){e.setState({changed:e.state.changed+1})}}},t.prototype.componentWillUnmount=function(){this.locStr&&(this.locStr.onChanged=function(){})},t.prototype.render=function(){if(!this.locStr)return null;if(this.locStr.hasHtml){var e={__html:this.locStr.renderedHtml};return i.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,dangerouslySetInnerHTML:e,onBlur:this.onInput,onClick:this.onClick})}return i.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,onBlur:this.onInput,onClick:this.onClick},this.locStr.renderedHtml)},t}(i.a.Component);a.ReactElementFactory.Instance.registerElement(s.LocalizableString.editableRenderer,(function(e){return i.a.createElement(u,e)}))},"./src/react/string-viewer.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyLocStringViewer",(function(){return u}));var n,o=r("react"),i=r.n(o),s=r("survey-core"),a=r("./src/react/element-factory.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.onChangedHandler=function(e,t){r.isRendering||r.setState({changed:r.state&&r.state.changed?r.state.changed+1:1})},r.rootRef=i.a.createRef(),r}return l(t,e),Object.defineProperty(t.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){this.locStr&&this.locStr.onStringChanged.remove(this.onChangedHandler)},t.prototype.componentDidUpdate=function(e,t){e.locStr&&e.locStr.onStringChanged.remove(this.onChangedHandler),this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){this.locStr&&this.locStr.onStringChanged.add(this.onChangedHandler)},t.prototype.render=function(){if(!this.locStr)return null;this.isRendering=!0;var e=this.renderString();return this.isRendering=!1,e},t.prototype.renderString=function(){if(this.locStr.hasHtml){var e={__html:this.locStr.renderedHtml};return i.a.createElement("span",{ref:this.rootRef,className:"sv-string-viewer",style:this.style,dangerouslySetInnerHTML:e})}return i.a.createElement("span",{ref:this.rootRef,className:"sv-string-viewer",style:this.style},this.locStr.renderedHtml)},t}(i.a.Component);a.ReactElementFactory.Instance.registerElement(s.LocalizableString.defaultRenderer,(function(e){return i.a.createElement(u,e)}))},"./src/react/tagbox-filter.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"TagboxFilterString",(function(){return u}));var n,o=r("react"),i=r("survey-core"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.updateDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.updateDomElement=function(){if(this.inputElement){var e=this.inputElement,t=this.model.inputStringRendered;i.Helpers.isTwoValueEquals(t,e.value)||(e.value=this.model.inputStringRendered)}},t.prototype.onChange=function(e){var t=i.settings.environment.root;e.target===t.activeElement&&(this.model.inputStringRendered=e.target.value)},t.prototype.keyhandler=function(e){this.model.inputKeyHandler(e)},t.prototype.onBlur=function(e){this.model.onBlur(e)},t.prototype.onFocus=function(e){this.model.onFocus(e)},t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this;return o.createElement("div",{className:this.question.cssClasses.hint},this.model.showHintPrefix?o.createElement("div",{className:this.question.cssClasses.hintPrefix},o.createElement("span",null,this.model.hintStringPrefix)):null,o.createElement("div",{className:this.question.cssClasses.hintSuffixWrapper},this.model.showHintString?o.createElement("div",{className:this.question.cssClasses.hintSuffix},o.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},this.model.inputStringRendered),o.createElement("span",null,this.model.hintStringSuffix)):null,o.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),inputMode:this.model.inputMode,ref:function(t){return e.inputElement=t},className:this.question.cssClasses.filterStringInput,disabled:this.question.isInputReadOnly,readOnly:!this.model.searchEnabled||void 0,size:this.model.inputStringRendered?void 0:1,role:this.model.filterStringEnabled?this.question.ariaRole:void 0,"aria-label":this.question.placeholder,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-controls":this.model.listElementId,"aria-activedescendant":this.model.ariaActivedescendant,placeholder:this.model.filterStringPlaceholder,onKeyDown:function(t){e.keyhandler(t)},onChange:function(t){e.onChange(t)},onBlur:function(t){e.onBlur(t)},onFocus:function(t){e.onFocus(t)}})))},t}(a.SurveyElementBase);s.ReactQuestionFactory.Instance.registerQuestion("sv-tagbox-filter",(function(e){return o.createElement(u,e)}))},"./src/react/tagbox-item.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionTagboxItem",(function(){return l}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/components/svg-icon/svg-icon.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.item&&!!this.question},t.prototype.renderElement=function(){var e=this,t=this.renderLocString(this.item.locText);return o.createElement("div",{className:"sv-tagbox__item"},o.createElement("div",{className:"sv-tagbox__item-text"},t),o.createElement("div",{className:this.question.cssClasses.cleanItemButton,onClick:function(t){e.question.dropdownListModel.deselectItem(e.item.value),t.stopPropagation()}},o.createElement(s.SvgIcon,{className:this.question.cssClasses.cleanItemButtonSvg,iconName:this.question.cssClasses.cleanItemButtonIconId,size:"auto"})))},t}(i.ReactSurveyElement)},"./src/settings.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return o}));var n=globalThis.document,o={enterKeyAction:"default",comparator:{trimStrings:!0,caseSensitive:!1},expressionDisableConversionChar:"#",useLocalTimeZone:!0,get commentPrefix(){return o.commentSuffix},set commentPrefix(e){o.commentSuffix=e},commentSuffix:"-Comment",webserviceEncodeParameters:!0,useCachingForChoicesRestful:!0,get useCachingForChoicesRestfull(){return o.useCachingForChoicesRestful},set useCachingForChoicesRestfull(e){o.useCachingForChoicesRestful=e},surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey",itemValueSeparator:"|",itemValueAlwaysSerializeAsObject:!1,itemValueAlwaysSerializeText:!1,defaultLocaleName:"default",storeDuplicatedTranslations:!1,matrixDefaultRowName:"default",matrixDefaultCellType:"dropdown",matrixTotalValuePostFix:"-total",matrixMaximumRowCount:1e3,matrixMaxRowCountInCondition:1,panelDynamicMaxPanelCountInCondition:1,matrixRenderRemoveAsIcon:!0,panelMaximumPanelCount:100,ratingMaximumRateValueCount:20,tagboxCloseOnSelect:!1,disableOnGettingChoicesFromWeb:!1,serializeLocalizableStringAsObject:!1,allowShowEmptyTitleInDesignMode:!0,allowShowEmptyDescriptionInDesignMode:!0,executeCompleteTriggerOnValueChanged:!1,changeNavigationButtonsOnCompleteTrigger:!0,executeSkipTriggerOnValueChanged:!0,readOnlyCommentRenderMode:"textarea",readOnlyTextRenderMode:"input",confirmActionFunc:function(e){return confirm(e)},minWidth:"300px",maxWidth:"100%",maximumConditionRunCountOnValueChanged:10,setQuestionVisibleIndexForHiddenTitle:!1,setQuestionVisibleIndexForHiddenNumber:!1,lazyRowsRendering:!1,lazyRowsRenderingStartRow:3,notifications:{lifetime:2e3},showItemsInOrder:"default",noneItemValue:"none",supportedValidators:{question:["expression"],comment:["text","regex"],text:["numeric","text","regex","email"],checkbox:["answercount"],imagepicker:["answercount"]},minDate:"",maxDate:"",showModal:void 0,supportCreatorV2:!1,showDefaultItemsInCreatorV2:!0,customIcons:{},rankingDragHandleArea:"entireItem",environment:n?{root:n,_rootElement:n.body,get rootElement(){var e;return null!==(e=this._rootElement)&&void 0!==e?e:n.body},set rootElement(e){this._rootElement=e},_popupMountContainer:n.body,get popupMountContainer(){var e;return null!==(e=this._popupMountContainer)&&void 0!==e?e:n.body},set popupMountContainer(e){this._popupMountContainer=e},svgMountContainer:n.head,stylesSheetsMountContainer:n.head}:void 0,titleTags:{survey:"h3",page:"h4",panel:"h4",question:"h5"},questions:{inputTypes:["color","date","datetime-local","email","month","number","password","range","tel","text","time","url","week"],dataList:["","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","organization-title","username","new-password","current-password","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"]},matrix:{columnWidthsByType:{file:{minWidth:"240px"},comment:{minWidth:"200px"}},rateSize:"small"}}},"./src/utils/responsivity-manager.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ResponsivityManager",(function(){return s})),r.d(t,"VerticalResponsivityManager",(function(){return a}));var n,o=r("./src/utils/utils.ts"),i=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(){function e(e,t,r,n){var o=this;void 0===n&&(n=null),this.container=e,this.model=t,this.itemsSelector=r,this.dotsItemSize=n,this.resizeObserver=void 0,this.isInitialized=!1,this.minDimensionConst=56,this.separatorSize=17,this.separatorAddConst=1,this.paddingSizeConst=8,this.dotsSizeConst=48,this.recalcMinDimensionConst=!0,this.getComputedStyle=window.getComputedStyle.bind(window),this.model.updateCallback=function(e){e?o.isInitialized=!1:setTimeout((function(){o.process()}),1)},"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(e){return o.process()})),this.resizeObserver.observe(this.container.parentElement))}return e.prototype.getDimensions=function(e){return{scroll:e.scrollWidth,offset:e.offsetWidth}},e.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetWidth;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)),t},e.prototype.calcItemSize=function(e){return e.offsetWidth},e.prototype.calcMinDimension=function(e){var t=this.minDimensionConst;return e.iconSize&&this.recalcMinDimensionConst&&(t=2*e.iconSize+this.paddingSizeConst),e.canShrink?t+(e.needSeparator?this.separatorSize:0):e.maxDimension},e.prototype.calcItemsSizes=function(){var e=this,t=this.model.actions;this.container.querySelectorAll(this.itemsSelector).forEach((function(r,n){var o=t[n];e.calcActionDimensions(o,r)}))},e.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcMinDimension(e)},Object.defineProperty(e.prototype,"isContainerVisible",{get:function(){return Object(o.isContainerVisible)(this.container)},enumerable:!1,configurable:!0}),e.prototype.process=function(){var e;if(this.isContainerVisible&&!this.model.isResponsivenessDisabled){this.isInitialized||(this.model.setActionsMode("large"),this.calcItemsSizes(),this.isInitialized=!0);var t=this.dotsItemSize;if(!this.dotsItemSize){var r=null===(e=this.container)||void 0===e?void 0:e.querySelector(".sv-dots");t=r&&this.calcItemSize(r)||this.dotsSizeConst}this.model.fit(this.getAvailableSpace(),t)}},e.prototype.dispose=function(){this.model.updateCallback=void 0,this.resizeObserver&&this.resizeObserver.disconnect()},e}(),a=function(e){function t(t,r,n,o,i){void 0===i&&(i=40);var s=e.call(this,t,r,n,o)||this;return s.minDimensionConst=i,s.recalcMinDimensionConst=!1,s}return i(t,e),t.prototype.getDimensions=function(){return{scroll:this.container.scrollHeight,offset:this.container.offsetHeight}},t.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetHeight;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)),t},t.prototype.calcItemSize=function(e){return e.offsetHeight},t.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcItemSize(t)},t}(s)},"./src/utils/utils.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"unwrap",(function(){return y})),r.d(t,"getSize",(function(){return v})),r.d(t,"doKey2ClickBlur",(function(){return x})),r.d(t,"doKey2ClickUp",(function(){return C})),r.d(t,"doKey2ClickDown",(function(){return P})),r.d(t,"sanitizeEditableContent",(function(){return k})),r.d(t,"Logger",(function(){return j})),r.d(t,"mergeValues",(function(){return I})),r.d(t,"getElementWidth",(function(){return O})),r.d(t,"isContainerVisible",(function(){return T})),r.d(t,"classesToSelector",(function(){return E})),r.d(t,"compareVersions",(function(){return o})),r.d(t,"confirmAction",(function(){return i})),r.d(t,"detectIEOrEdge",(function(){return a})),r.d(t,"detectIEBrowser",(function(){return s})),r.d(t,"loadFileFromBase64",(function(){return l})),r.d(t,"isMobile",(function(){return u})),r.d(t,"isShadowDOM",(function(){return c})),r.d(t,"getElement",(function(){return p})),r.d(t,"isElementVisible",(function(){return d})),r.d(t,"findScrollableParent",(function(){return h})),r.d(t,"scrollElementByChildId",(function(){return f})),r.d(t,"navigateToUrl",(function(){return m})),r.d(t,"createSvg",(function(){return b})),r.d(t,"getIconNameFromProxy",(function(){return g})),r.d(t,"increaseHeightByContent",(function(){return _})),r.d(t,"getOriginalEvent",(function(){return S})),r.d(t,"preventDefaults",(function(){return V})),r.d(t,"findParentByClassNames",(function(){return R}));var n=r("./src/settings.ts");function o(e,t){for(var r=/(\.0+)+$/,n=e.replace(r,"").split("."),o=t.replace(r,"").split("."),i=Math.min(n.length,o.length),s=0;s<i;s++){var a=parseInt(n[s],10)-parseInt(o[s],10);if(a)return a}return n.length-o.length}function i(e){return n.settings&&n.settings.confirmActionFunc?n.settings.confirmActionFunc(e):confirm(e)}function s(){if("undefined"==typeof window)return!1;var e=window.navigator.userAgent,t=e.indexOf("MSIE "),r=e.indexOf("Trident/");return t>-1||r>-1}function a(){if("undefined"==typeof window)return!1;if(void 0===a.isIEOrEdge){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),r=e.indexOf("Trident/"),n=e.indexOf("Edge/");a.isIEOrEdge=n>0||r>0||t>0}return a.isIEOrEdge}function l(e,t){try{for(var r=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(r.length),i=new Uint8Array(o),s=0;s<r.length;s++)i[s]=r.charCodeAt(s);var a=new Blob([o],{type:n});"undefined"!=typeof window&&window.navigator&&window.navigator.msSaveBlob&&window.navigator.msSaveOrOpenBlob(a,t)}catch(e){}}function u(){return"undefined"!=typeof window&&void 0!==window.orientation}var c=function(e){return!!e&&!(!("host"in e)||!e.host)},p=function(e){var t=n.settings.environment.root;return"string"==typeof e?t.getElementById(e):e};function d(e,t){if(void 0===t&&(t=0),void 0===n.settings.environment)return!1;var r=n.settings.environment.root,o=c(r)?r.host.clientHeight:r.documentElement.clientHeight,i=e.getBoundingClientRect(),s=-t,a=Math.max(o,window.innerHeight)+t,l=i.top,u=i.bottom;return Math.max(s,l)<=Math.min(a,u)}function h(e){var t=n.settings.environment.root;return e?e.scrollHeight>e.clientHeight&&("scroll"===getComputedStyle(e).overflowY||"auto"===getComputedStyle(e).overflowY)||e.scrollWidth>e.clientWidth&&("scroll"===getComputedStyle(e).overflowX||"auto"===getComputedStyle(e).overflowX)?e:h(e.parentElement):c(t)?t.host:t.documentElement}function f(e){var t=n.settings.environment;if(t){var r=t.root.getElementById(e);if(r){var o=h(r);o&&o.dispatchEvent(new CustomEvent("scroll"))}}}function m(e){e&&"undefined"!=typeof window&&window.location&&(window.location.href=e)}function g(e){return e&&n.settings.customIcons[e]||e}function b(e,t,r,n,o,i){if(o){"auto"!==e&&(o.style.width=(e||t||16)+"px",o.style.height=(e||r||16)+"px");var s=o.childNodes[0],a=g(n);s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+a);var l=o.getElementsByTagName("title")[0];i?(l||(l=document.createElementNS("http://www.w3.org/2000/svg","title"),o.appendChild(l)),l.textContent=i):l&&o.removeChild(l)}}function y(e){return"function"!=typeof e?e:e()}function v(e){if("number"==typeof e)return e+"px";if(e&&"string"==typeof e&&e.length>0){var t=e[e.length-1];if(t>="0"&&t<="9"||"."==t)try{return parseFloat(e)+"px"}catch(e){}}return e}var w="sv-focused--by-key";function x(e){var t=e.target;t&&t.classList&&t.classList.remove(w)}function C(e,t){if(!e.target||"true"!==e.target.contentEditable){var r=e.target;if(r){var n=e.which||e.keyCode;if(9!==n){if(t){if(!t.__keyDownReceived)return;t.__keyDownReceived=!1}13===n||32===n?r.click&&r.click():t&&!t.processEsc||27!==n||r.blur&&r.blur()}else r.classList&&!r.classList.contains(w)&&r.classList.add(w)}}}function P(e,t){if(void 0===t&&(t={processEsc:!0}),t&&(t.__keyDownReceived=!0),!e.target||"true"!==e.target.contentEditable){var r=e.which||e.keyCode,n=[13,32];t.processEsc&&n.push(27),-1!==n.indexOf(r)&&e.preventDefault()}}function _(e,t){if(e){t||(t=function(e){return window.getComputedStyle(e)});var r=t(e);e.style.height="auto",e.style.height=e.scrollHeight+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth)+"px"}}function S(e){return e.originalEvent||e}function V(e){e.preventDefault(),e.stopPropagation()}function E(e){return e.replace(/\s*?([\w-]+)\s*?/g,".$1")}function O(e){return getComputedStyle?Number.parseFloat(getComputedStyle(e).width):e.offsetWidth}function T(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function R(e,t){if(e)return t.every((function(t){return!t||e.classList.contains(t)}))?e:R(e.parentElement,t)}function k(e){if(window.getSelection&&document.createRange&&e.childNodes.length>0){var t=document.getSelection(),r=t.getRangeAt(0);r.setStart(r.endContainer,r.endOffset),r.setEndAfter(e.lastChild),t.removeAllRanges(),t.addRange(r);var n=t.toString().replace(/\n/g,"").length;e.innerText=e.innerText.replace(/\n/g,""),(r=document.createRange()).setStart(e.childNodes[0],e.innerText.length-n),r.collapse(!0),t.removeAllRanges(),t.addRange(r)}}function I(e,t){if(t&&e&&"object"==typeof t)for(var r in e){var n=e[r];!Array.isArray(n)&&n&&"object"==typeof n?(t[r]&&"object"==typeof t[r]||(t[r]={}),I(n,t[r])):t[r]=n}}var j=function(){function e(){this._result=""}return e.prototype.log=function(e){this._result+="->"+e},Object.defineProperty(e.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),e}()},react:function(t,r){t.exports=e},"react-dom":function(e,r){e.exports=t},"survey-core":function(e,t){e.exports=r}})},e.exports=n(r(7294),r(3935),r(2535))},8484:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAArSURBVHgB7cuhEQAwDMNAtUN4//m8RMtygcE5PxMQxAKnh6Q3mWzXd4mAD4cJBAQCqfbUAAAAAElFTkSuQmCC"},4154:e=>{"use strict";e.exports="data:image/svg+xml,%3C%3Fxml version=%271.0%27 encoding=%27utf-8%27%3F%3E%3C%21-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0%29 --%3E%3Csvg version=%271.1%27 id=%27Layer_1%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27 x=%270px%27 y=%270px%27 viewBox=%270 0 10 10%27 style=%27enable-background:new 0 0 10 10;%27 xml:space=%27preserve%27%3E%3Cstyle type=%27text/css%27%3E .st0%7Bfill:%231AB394;%7D%0A%3C/style%3E%3Cpolygon class=%27st0%27 points=%272,2 0,4 5,9 10,4 8,2 5,5 %27/%3E%3C/svg%3E"},1163:e=>{"use strict";e.exports="data:image/svg+xml,%3C%3Fxml version=%271.0%27 encoding=%27utf-8%27%3F%3E%3C%21-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0%29 --%3E%3Csvg version=%271.1%27 id=%27Layer_1%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27 x=%270px%27 y=%270px%27 viewBox=%270 0 10 10%27 style=%27enable-background:new 0 0 10 10;%27 xml:space=%27preserve%27%3E%3Cstyle type=%27text/css%27%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class=%27st0%27 points=%272,2 0,4 5,9 10,4 8,2 5,5 %27/%3E%3C/svg%3E%0A"},8860:e=>{"use strict";e.exports="data:image/svg+xml,%3C%3Fxml version=%271.0%27 encoding=%27utf-8%27%3F%3E%3C%21-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0%29 --%3E%3Csvg version=%271.1%27 id=%27Layer_1%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27 x=%270px%27 y=%270px%27 viewBox=%270 0 20 20%27 style=%27enable-background:new 0 0 20 20;%27 xml:space=%27preserve%27%3E%3Cstyle type=%27text/css%27%3E .st0%7Bfill:%239A9A9A;%7D%0A%3C/style%3E%3Cpolygon class=%27st0%27 points=%2719,6 17,4 10,11 3,4 1,6 10,15 %27/%3E%3C/svg%3E%0A"},937:e=>{"use strict";e.exports="data:image/svg+xml,%3C%3Fxml version=%271.0%27 encoding=%27utf-8%27%3F%3E%3C%21-- Generator: Adobe Illustrator 23.0.6, SVG Export Plug-In . SVG Version: 6.00 Build 0%29 --%3E%3Csvg version=%271.1%27 id=%27Layer_1%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27 x=%270px%27 y=%270px%27 viewBox=%270 0 72 72%27 style=%27enable-background:new 0 0 72 72;%27 xml:space=%27preserve%27%3E%3Cstyle type=%27text/css%27%3E .st0%7Bfill:%239A9A9A;%7D%0A%3C/style%3E%3Cg%3E%3Cpath class=%27st0%27 d=%27M11.9,72c-0.6-0.1-1.2-0.3-1.8-0.4C4.2,70.1,0,64.7,0,58.6c0-15.1,0-30.1,0-45.2C0,6,6,0,13.4,0 c12,0,24,0,36,0c2.4,0,4.4,1.7,4.6,4c0.2,2.4-1.3,4.4-3.6,4.9C50,9,49.7,9,49.4,9C37.6,9,25.8,9,14,9c-1.5,0-2.8,0.4-3.9,1.5 c-0.8,0.9-1.2,2-1.2,3.2c0,8.2,0,16.4,0,24.6C9,45,9,51.6,9,58.2c0,2.9,1.9,4.8,4.8,4.8c14.9,0,29.7,0,44.6,0c2.6,0,4.6-2,4.6-4.6 c0-5.9,0-11.8,0-17.7c0-2.4,1.6-4.3,3.9-4.6c2.3-0.3,4.3,1,5,3.4c0,0.1,0.1,0.2,0.1,0.2c0,6.8,0,13.6,0,20.4c0,0.1-0.1,0.3-0.1,0.4 c-0.8,5.4-4.7,9.8-10.1,11.2c-0.6,0.1-1.2,0.3-1.8,0.4C44,72,28,72,11.9,72z%27/%3E%3Cpath class=%27st0%27 d=%27M35.9,38.8c0.4-0.4,0.5-0.7,0.7-0.9c8.4-8.4,16.8-16.8,25.2-25.2c1.9-1.9,4.5-2,6.3-0.4 c1.9,1.6,2.1,4.6,0.4,6.4c-0.2,0.2-0.3,0.3-0.5,0.5c-9.5,9.5-19.1,19.1-28.6,28.6c-2.2,2.2-4.8,2.2-7,0 c-5.1-5.1-10.2-10.2-15.4-15.4c-1.3-1.3-1.7-2.8-1.2-4.5c0.5-1.7,1.6-2.8,3.4-3.1c1.6-0.4,3.1,0.1,4.2,1.3c4,4,7.9,7.9,11.9,11.9 C35.6,38.2,35.7,38.5,35.9,38.8z%27/%3E%3C/g%3E%3C/svg%3E%0A"},2204:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%272%27 fill=%27%23fff%27/%3e%3c/svg%3e"},9609:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27%2386b7fe%27/%3e%3c/svg%3e"},2469:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27%23fff%27/%3e%3c/svg%3e"},7486:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27rgba%280, 0, 0, 0.25%29%27/%3e%3c/svg%3e"},991:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27rgba%28255, 255, 255, 0.25%29%27/%3e%3c/svg%3e"},4144:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 12%27 width=%2712%27 height=%2712%27 fill=%27none%27 stroke=%27%23dc3545%27%3e%3ccircle cx=%276%27 cy=%276%27 r=%274.5%27/%3e%3cpath stroke-linejoin=%27round%27 d=%27M5.8 3.6h.4L6 6.5z%27/%3e%3ccircle cx=%276%27 cy=%278.2%27 r=%27.6%27 fill=%27%23dc3545%27 stroke=%27none%27/%3e%3c/svg%3e"},6254:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23000%27%3e%3cpath d=%27M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z%27/%3e%3c/svg%3e"},5321:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23052c65%27%3e%3cpath fill-rule=%27evenodd%27 d=%27M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z%27/%3e%3c/svg%3e"},3460:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23212529%27%3e%3cpath fill-rule=%27evenodd%27 d=%27M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z%27/%3e%3c/svg%3e"},1281:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%236ea8fe%27%3e%3cpath fill-rule=%27evenodd%27 d=%27M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z%27/%3e%3c/svg%3e"},5647:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23fff%27%3e%3cpath d=%27M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z%27/%3e%3c/svg%3e"},1692:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23fff%27%3e%3cpath d=%27M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z%27/%3e%3c/svg%3e"},6770:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3e%3cpath fill=%27none%27 stroke=%27%23343a40%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27m2 5 6 6 6-6%27/%3e%3c/svg%3e"},2105:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3e%3cpath fill=%27none%27 stroke=%27%23adb5bd%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27m2 5 6 6 6-6%27/%3e%3c/svg%3e"},8931:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3e%3cpath fill=%27none%27 stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%273%27 d=%27M6 10h8%27/%3e%3c/svg%3e"},6199:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3e%3cpath fill=%27none%27 stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%273%27 d=%27m6 10 3 3 6-6%27/%3e%3c/svg%3e"},2956:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 30 30%27%3e%3cpath stroke=%27rgba%28255, 255, 255, 0.55%29%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 stroke-width=%272%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e"},2221:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 30 30%27%3e%3cpath stroke=%27rgba%2833, 37, 41, 0.75%29%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 stroke-width=%272%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e"},5122:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 8 8%27%3e%3cpath fill=%27%23198754%27 d=%27M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z%27/%3e%3c/svg%3e"},6704:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iMTEsMTIgOSwxNCAzLDggOSwyIDExLDQgNyw4ICIvPg0KPC9zdmc+DQo="},3344:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iNSw0IDcsMiAxMyw4IDcsMTQgNSwxMiA5LDggIi8+DQo8L3N2Zz4NCg=="},7061:(e,t,r)=>{var n=r(8698).default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},r=Object.prototype,i=r.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function p(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(e){p=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),a=new O(n||[]);return s(i,"_invoke",{value:_(e,r,a)}),i}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f={};function m(){}function g(){}function b(){}var y={};p(y,l,(function(){return this}));var v=Object.getPrototypeOf,w=v&&v(v(T([])));w&&w!==r&&i.call(w,l)&&(y=w);var x=b.prototype=m.prototype=Object.create(y);function C(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function r(o,s,a,l){var u=h(e[o],e,s);if("throw"!==u.type){var c=u.arg,p=c.value;return p&&"object"==n(p)&&i.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(p).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,l)}))}l(u.arg)}var o;s(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var a=S(s,r);if(a){if(a===f)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=h(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=h(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function V(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(V,this),this.reset(!0)}function T(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:R}}function R(){return{value:void 0,done:!0}}return g.prototype=b,s(x,"constructor",{value:b,configurable:!0}),s(b,"constructor",{value:g,configurable:!0}),g.displayName=p(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,p(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},C(P.prototype),p(P.prototype,u,(function(){return this})),t.AsyncIterator=P,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var s=new P(d(e,r,n,o),i);return t.isGeneratorFunction(r)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},C(x),p(x,c,"Generator"),p(x,l,(function(){return this})),p(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return s.type="throw",s.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var a=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},8698:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4687:(e,t,r)=>{var n=r(7061)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.m=e,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.b=document.baseURI||self.location.href,r.nc=void 0,(()=>{"use strict";var e,t=r(7294),n=r(745),o=r(3379),i=r.n(o),s=r(7795),a=r.n(s),l=r(569),u=r.n(l),c=r(3565),p=r.n(c),d=r(9216),h=r.n(d),f=r(4589),m=r.n(f),g=r(4666),b={};function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y.apply(this,arguments)}b.styleTagTransform=m(),b.setAttributes=p(),b.insert=u().bind(null,"head"),b.domAPI=a(),b.insertStyleElement=h(),i()(g.Z,b),g.Z&&g.Z.locals&&g.Z.locals,function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(e||(e={}));const v="popstate";function w(e,t){if(!1===e||null==e)throw new Error(t)}function x(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function C(e,t){return{usr:e.state,key:e.key,idx:t}}function P(e,t,r,n){return void 0===r&&(r=null),y({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?S(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function _(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function S(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var V;function E(e,t,r){void 0===r&&(r="/");let n=F(("string"==typeof t?S(t):t).pathname||"/",r);if(null==n)return null;let o=O(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let i=null;for(let e=0;null==i&&e<o.length;++e)i=A(o[e],B(n));return i}function O(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");let o=(e,o,i)=>{let s={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};s.relativePath.startsWith("/")&&(w(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(n.length));let a=Q([n,s.relativePath]),l=r.concat(s);e.children&&e.children.length>0&&(w(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+a+'".'),O(e.children,t,l,a)),(null!=e.path||e.index)&&t.push({path:a,score:L(a,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of T(e.path))o(e,t,r);else o(e,t)})),t}function T(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===n.length)return o?[i,""]:[i];let s=T(n.join("/")),a=[];return a.push(...s.map((e=>""===e?i:[i,e].join("/")))),o&&a.push(...s),a.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(V||(V={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const R=/^:\w+$/,k=3,I=2,j=1,D=10,q=-2,M=e=>"*"===e;function L(e,t){let r=e.split("/"),n=r.length;return r.some(M)&&(n+=q),t&&(n+=I),r.filter((e=>!M(e))).reduce(((e,t)=>e+(R.test(t)?k:""===t?j:D)),n)}function A(e,t){let{routesMeta:r}=e,n={},o="/",i=[];for(let e=0;e<r.length;++e){let s=r[e],a=e===r.length-1,l="/"===o?t:t.slice(o.length)||"/",u=N({path:s.relativePath,caseSensitive:s.caseSensitive,end:a},l);if(!u)return null;Object.assign(n,u.params);let c=s.route;i.push({params:n,pathname:Q([o,u.pathname]),pathnameBase:H(Q([o,u.pathnameBase])),route:c}),"/"!==u.pathnameBase&&(o=Q([o,u.pathnameBase]))}return i}function N(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),x("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,((e,t)=>(n.push(t),"/([^\\/]+)")));return e.endsWith("*")?(n.push("*"),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:n.reduce(((e,t,r)=>{if("*"===t){let e=a[r]||"";s=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(r){return x(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+r+")."),e}}(a[r]||"",t),e}),{}),pathname:i,pathnameBase:s,pattern:e}}function B(e){try{return decodeURI(e)}catch(t){return x(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function F(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function z(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}const Q=e=>e.join("/").replace(/\/\/+/g,"/"),H=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),U=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",W=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const J=["post","put","patch","delete"],G=(new Set(J),["get",...J]);function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$.apply(this,arguments)}new Set(G),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,Symbol("deferred");const K=t.createContext(null),Z=t.createContext(null),X=t.createContext(null),Y=t.createContext(null),ee=t.createContext({outlet:null,matches:[],isDataRoute:!1}),te=t.createContext(null);function re(){return null!=t.useContext(Y)}function ne(){return re()||w(!1),t.useContext(Y).location}function oe(e){t.useContext(X).static||t.useLayoutEffect(e)}function ie(){let{isDataRoute:e}=t.useContext(ee);return e?function(){let{router:e}=function(e){let r=t.useContext(K);return r||w(!1),r}(pe.UseNavigateStable),r=ge(de.UseNavigateStable),n=t.useRef(!1);oe((()=>{n.current=!0}));let o=t.useCallback((function(t,o){void 0===o&&(o={}),n.current&&("number"==typeof t?e.navigate(t):e.navigate(t,$({fromRouteId:r},o)))}),[e,r]);return o}():function(){re()||w(!1);let e=t.useContext(K),{basename:r,navigator:n}=t.useContext(X),{matches:o}=t.useContext(ee),{pathname:i}=ne(),s=JSON.stringify(function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(o).map((e=>e.pathnameBase))),a=t.useRef(!1);oe((()=>{a.current=!0}));let l=t.useCallback((function(t,o){if(void 0===o&&(o={}),!a.current)return;if("number"==typeof t)return void n.go(t);let l=function(e,t,r,n){let o;void 0===n&&(n=!1),"string"==typeof e?o=S(e):(o=y({},e),w(!o.pathname||!o.pathname.includes("?"),z("?","pathname","search",o)),w(!o.pathname||!o.pathname.includes("#"),z("#","pathname","hash",o)),w(!o.search||!o.search.includes("#"),z("#","search","hash",o)));let i,s=""===e||""===o.pathname,a=s?"/":o.pathname;if(n||null==a)i=r;else{let e=t.length-1;if(a.startsWith("..")){let t=a.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:o=""}="string"==typeof e?S(e):e,i=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:i,search:U(n),hash:W(o)}}(o,i),u=a&&"/"!==a&&a.endsWith("/"),c=(s||"."===a)&&r.endsWith("/");return l.pathname.endsWith("/")||!u&&!c||(l.pathname+="/"),l}(t,JSON.parse(s),i,"path"===o.relative);null==e&&"/"!==r&&(l.pathname="/"===l.pathname?r:Q([r,l.pathname])),(o.replace?n.replace:n.push)(l,o.state,o)}),[r,n,s,i,e]);return l}()}function se(r,n,o){re()||w(!1);let{navigator:i}=t.useContext(X),{matches:s}=t.useContext(ee),a=s[s.length-1],l=a?a.params:{},u=(a&&a.pathname,a?a.pathnameBase:"/");a&&a.route;let c,p=ne();if(n){var d;let e="string"==typeof n?S(n):n;"/"===u||(null==(d=e.pathname)?void 0:d.startsWith(u))||w(!1),c=e}else c=p;let h=c.pathname||"/",f=E(r,{pathname:"/"===u?h:h.slice(u.length)||"/"}),m=function(e,r,n){var o;if(void 0===r&&(r=[]),void 0===n&&(n=null),null==e){var i;if(null==(i=n)||!i.errors)return null;e=n.matches}let s=e,a=null==(o=n)?void 0:o.errors;if(null!=a){let e=s.findIndex((e=>e.route.id&&(null==a?void 0:a[e.route.id])));e>=0||w(!1),s=s.slice(0,Math.min(s.length,e+1))}return s.reduceRight(((e,o,i)=>{let l=o.route.id?null==a?void 0:a[o.route.id]:null,u=null;n&&(u=o.route.errorElement||le);let c=r.concat(s.slice(0,i+1)),p=()=>{let r;return r=l?u:o.route.Component?t.createElement(o.route.Component,null):o.route.element?o.route.element:e,t.createElement(ce,{match:o,routeContext:{outlet:e,matches:c,isDataRoute:null!=n},children:r})};return n&&(o.route.ErrorBoundary||o.route.errorElement||0===i)?t.createElement(ue,{location:n.location,revalidation:n.revalidation,component:u,error:l,children:p(),routeContext:{outlet:null,matches:c,isDataRoute:!0}}):p()}),null)}(f&&f.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:Q([u,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:Q([u,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,o);return n&&m?t.createElement(Y.Provider,{value:{location:$({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:e.Pop}},m):m}function ae(){let e=function(){var e;let r=t.useContext(te),n=function(e){let r=t.useContext(Z);return r||w(!1),r}(de.UseRouteError),o=ge(de.UseRouteError);return r||(null==(e=n.errors)?void 0:e[o])}(),r=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},r),n?t.createElement("pre",{style:o},n):null,null)}const le=t.createElement(ae,null);class ue extends t.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?t.createElement(ee.Provider,{value:this.props.routeContext},t.createElement(te.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ce(e){let{routeContext:r,match:n,children:o}=e,i=t.useContext(K);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),t.createElement(ee.Provider,{value:r},o)}var pe,de,he,fe,me;function ge(e){let r=function(e){let r=t.useContext(ee);return r||w(!1),r}(),n=r.matches[r.matches.length-1];return n.route.id||w(!1),n.route.id}function be(e){w(!1)}function ye(r){let{basename:n="/",children:o=null,location:i,navigationType:s=e.Pop,navigator:a,static:l=!1}=r;re()&&w(!1);let u=n.replace(/^\/*/,"/"),c=t.useMemo((()=>({basename:u,navigator:a,static:l})),[u,a,l]);"string"==typeof i&&(i=S(i));let{pathname:p="/",search:d="",hash:h="",state:f=null,key:m="default"}=i,g=t.useMemo((()=>{let e=F(p,u);return null==e?null:{location:{pathname:e,search:d,hash:h,state:f,key:m},navigationType:s}}),[u,p,d,h,f,m,s]);return null==g?null:t.createElement(X.Provider,{value:c},t.createElement(Y.Provider,{children:o,value:g}))}function ve(e){let{children:t,location:r}=e;return se(we(t),r)}function we(e,r){void 0===r&&(r=[]);let n=[];return t.Children.forEach(e,((e,o)=>{if(!t.isValidElement(e))return;let i=[...r,o];if(e.type===t.Fragment)return void n.push.apply(n,we(e.props.children,i));e.type!==be&&w(!1),e.props.index&&e.props.children&&w(!1);let s={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=we(e.props.children,i)),n.push(s)})),n}function xe(r){let{basename:n,children:o,window:i}=r,s=t.useRef();null==s.current&&(s.current=function(t){return void 0===t&&(t={}),function(t,r,n,o){void 0===o&&(o={});let{window:i=document.defaultView,v5Compat:s=!1}=o,a=i.history,l=e.Pop,u=null,c=p();function p(){return(a.state||{idx:null}).idx}function d(){l=e.Pop;let t=p(),r=null==t?null:t-c;c=t,u&&u({action:l,location:f.location,delta:r})}function h(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,r="string"==typeof e?e:_(e);return w(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==c&&(c=0,a.replaceState(y({},a.state,{idx:c}),""));let f={get action(){return l},get location(){return t(i,a)},listen(e){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(v,d),u=e,()=>{i.removeEventListener(v,d),u=null}},createHref:e=>r(i,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(t,r){l=e.Push;let o=P(f.location,t,r);n&&n(o,t),c=p()+1;let d=C(o,c),h=f.createHref(o);try{a.pushState(d,"",h)}catch(e){i.location.assign(h)}s&&u&&u({action:l,location:f.location,delta:1})},replace:function(t,r){l=e.Replace;let o=P(f.location,t,r);n&&n(o,t),c=p();let i=C(o,c),d=f.createHref(o);a.replaceState(i,"",d),s&&u&&u({action:l,location:f.location,delta:0})},go:e=>a.go(e)};return f}((function(e,t){let{pathname:r,search:n,hash:o}=e.location;return P("",{pathname:r,search:n,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:_(t)}),null,t)}({window:i,v5Compat:!0}));let a=s.current,[l,u]=t.useState({action:a.action,location:a.location});return t.useLayoutEffect((()=>a.listen(u)),[a]),t.createElement(ye,{basename:n,children:o,location:l.location,navigationType:l.action,navigator:a})}function Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ce(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ce(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _e(e,t,r,n,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void r(e)}a.done?t(l):Promise.resolve(l).then(n,o)}function Se(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function s(e){_e(i,n,o,s,a,"next",e)}function a(e){_e(i,n,o,s,a,"throw",e)}s(void 0)}))}}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"}(pe||(pe={})),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"}(de||(de={})),function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(he||(he={})),new Promise((()=>{})),t.Component,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"}(fe||(fe={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(me||(me={}));var Ve=r(4687),Ee=r.n(Ve);function Oe(){return(Oe=Se(Ee().mark((function e(){var t,r;return Ee().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/user");case 3:return t=e.sent,e.next=6,t.json();case 6:return r=e.sent,e.abrupt("return",r);case 10:return e.prev=10,e.t0=e.catch(0),e.abrupt("return",{name:"Error Fetching User"});case 13:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}const Te=function(){var e=Pe((0,t.useState)(null),2),r=e[0],n=e[1];return(0,t.useEffect)((function(){(function(){return Oe.apply(this,arguments)})().then((function(e){n(e)}))}),[]),!r||r.name.match(/Anonymous/gi)?t.createElement(t.Fragment,null,t.createElement("h2",null,"Not logged in."),t.createElement("a",{href:"/login"},"Login")):t.createElement("h2",null,"Hello, ",r.name,"!")};var Re=r(4184),ke=r.n(Re);function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ie.apply(this,arguments)}function je(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function De(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function qe(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}r(1143);var Me=r(5893);const Le=t.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:Ae,Provider:Ne}=Le;function Be(e,r){const{prefixes:n}=(0,t.useContext)(Le);return e||n[r]||r}var Fe=/([A-Z])/g,ze=/^ms-/;function Qe(e){return function(e){return e.replace(Fe,"-$1").toLowerCase()}(e).replace(ze,"-ms-")}var He=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const Ue=function(e,t){var r="",n="";if("string"==typeof t)return e.style.getPropertyValue(Qe(t))||function(e,t){return function(e){var t=function(e){return e&&e.ownerDocument||document}(e);return t&&t.defaultView||window}(e).getComputedStyle(e,void 0)}(e).getPropertyValue(Qe(t));Object.keys(t).forEach((function(o){var i=t[o];i||0===i?function(e){return!(!e||!He.test(e))}(o)?n+=o+"("+i+") ":r+=Qe(o)+": "+i+";":e.style.removeProperty(Qe(o))})),n&&(r+="transform: "+n+";"),e.style.cssText+=";"+r};function We(e,t){return We=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},We(e,t)}var Je=r(3935);const Ge=t.createContext(null);var $e="unmounted",Ke="exited",Ze="entering",Xe="entered",Ye="exiting",et=function(e){var r,n;function o(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=Ke,n.appearStatus=Ze):o=Xe:o=t.unmountOnExit||t.mountOnEnter?$e:Ke,n.state={status:o},n.nextCallback=null,n}n=e,(r=o).prototype=Object.create(n.prototype),r.prototype.constructor=r,We(r,n),o.getDerivedStateFromProps=function(e,t){return e.in&&t.status===$e?{status:Ke}:null};var i=o.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Ze&&r!==Xe&&(t=Ze):r!==Ze&&r!==Xe||(t=Ye)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Ze){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:Je.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ke&&this.setState({status:$e})},i.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[Je.findDOMNode(this),n],i=o[0],s=o[1],a=this.getTimeouts(),l=n?a.appear:a.enter;e||r?(this.props.onEnter(i,s),this.safeSetState({status:Ze},(function(){t.props.onEntering(i,s),t.onTransitionEnd(l,(function(){t.safeSetState({status:Xe},(function(){t.props.onEntered(i,s)}))}))}))):this.safeSetState({status:Xe},(function(){t.props.onEntered(i)}))},i.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:Je.findDOMNode(this);t?(this.props.onExit(n),this.safeSetState({status:Ye},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Ke},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Ke},(function(){e.props.onExited(n)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:Je.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if(e===$e)return null;var r=this.props,n=r.children,o=(r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef,je(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t.createElement(Ge.Provider,{value:null},"function"==typeof n?n(e,o):t.cloneElement(t.Children.only(n),o))},o}(t.Component);function tt(){}et.contextType=Ge,et.propTypes={},et.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:tt,onEntering:tt,onEntered:tt,onExit:tt,onExiting:tt,onExited:tt},et.UNMOUNTED=$e,et.EXITED=Ke,et.ENTERING=Ze,et.ENTERED=Xe,et.EXITING=Ye;const rt=et,nt=!("undefined"==typeof window||!window.document||!window.document.createElement);var ot=!1,it=!1;try{var st={get passive(){return ot=!0},get once(){return it=ot=!0}};nt&&(window.addEventListener("test",st,st),window.removeEventListener("test",st,!0))}catch(e){}const at=function(e,t,r,n){return function(e,t,r,n){if(n&&"boolean"!=typeof n&&!it){var o=n.once,i=n.capture,s=r;!it&&o&&(s=r.__once||function e(n){this.removeEventListener(t,e,i),r.call(this,n)},r.__once=s),e.addEventListener(t,s,ot?n:i)}e.addEventListener(t,r,n)}(e,t,r,n),function(){!function(e,t,r,n){var o=n&&"boolean"!=typeof n?n.capture:n;e.removeEventListener(t,r,o),r.__once&&e.removeEventListener(t,r.__once,o)}(e,t,r,n)}};function lt(e,t,r,n){var o,i;null==r&&(i=-1===(o=Ue(e,"transitionDuration")||"").indexOf("ms")?1e3:1,r=parseFloat(o)*i||0);var s=function(e,t,r){void 0===r&&(r=5);var n=!1,o=setTimeout((function(){n||function(e,t,r,n){if(void 0===r&&(r=!1),void 0===n&&(n=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent("transitionend",r,n),e.dispatchEvent(o)}}(e,0,!0)}),t+r),i=at(e,"transitionend",(function(){n=!0}),{once:!0});return function(){clearTimeout(o),i()}}(e,r,n),a=at(e,"transitionend",t);return function(){s(),a()}}function ut(e,t){const r=Ue(e,t)||"",n=-1===r.indexOf("ms")?1e3:1;return parseFloat(r)*n}function ct(e,t){const r=ut(e,"transitionDuration"),n=ut(e,"transitionDelay"),o=lt(e,(r=>{r.target===e&&(o(),t(r))}),r+n)}const pt=function(...e){return e.filter((e=>null!=e)).reduce(((e,t)=>{if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...r){e.apply(this,r),t.apply(this,r)}}),null)};var dt=function(e){return e&&"function"!=typeof e?function(t){e.current=t}:e};const ht=t.forwardRef((({onEnter:e,onEntering:r,onEntered:n,onExit:o,onExiting:i,onExited:s,addEndListener:a,children:l,childRef:u,...c},p)=>{const d=(0,t.useRef)(null),h=(P=d,_=u,(0,t.useMemo)((function(){return function(e,t){var r=dt(e),n=dt(t);return function(e){r&&r(e),n&&n(e)}}(P,_)}),[P,_])),f=e=>{var t;h((t=e)&&"setState"in t?Je.findDOMNode(t):null!=t?t:null)},m=e=>t=>{e&&d.current&&e(d.current,t)},g=(0,t.useCallback)(m(e),[e]),b=(0,t.useCallback)(m(r),[r]),y=(0,t.useCallback)(m(n),[n]),v=(0,t.useCallback)(m(o),[o]),w=(0,t.useCallback)(m(i),[i]),x=(0,t.useCallback)(m(s),[s]),C=(0,t.useCallback)(m(a),[a]);var P,_;return(0,Me.jsx)(rt,{ref:p,...c,onEnter:g,onEntered:y,onEntering:b,onExit:v,onExited:x,onExiting:w,addEndListener:C,nodeRef:d,children:"function"==typeof l?(e,t)=>l(e,{...t,ref:f}):t.cloneElement(l,{ref:f})})})),ft={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function mt(e,t){const r=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],n=ft[e];return r+parseInt(Ue(t,n[0]),10)+parseInt(Ue(t,n[1]),10)}const gt={[Ke]:"collapse",[Ye]:"collapsing",[Ze]:"collapsing",[Xe]:"collapse show"},bt=t.forwardRef((({onEnter:e,onEntering:r,onEntered:n,onExit:o,onExiting:i,className:s,children:a,dimension:l="height",in:u=!1,timeout:c=300,mountOnEnter:p=!1,unmountOnExit:d=!1,appear:h=!1,getDimensionValue:f=mt,...m},g)=>{const b="function"==typeof l?l():l,y=(0,t.useMemo)((()=>pt((e=>{e.style[b]="0"}),e)),[b,e]),v=(0,t.useMemo)((()=>pt((e=>{const t=`scroll${b[0].toUpperCase()}${b.slice(1)}`;e.style[b]=`${e[t]}px`}),r)),[b,r]),w=(0,t.useMemo)((()=>pt((e=>{e.style[b]=null}),n)),[b,n]),x=(0,t.useMemo)((()=>pt((e=>{e.style[b]=`${f(b,e)}px`,e.offsetHeight}),o)),[o,f,b]),C=(0,t.useMemo)((()=>pt((e=>{e.style[b]=null}),i)),[b,i]);return(0,Me.jsx)(ht,{ref:g,addEndListener:ct,...m,"aria-expanded":m.role?u:null,onEnter:y,onEntering:v,onEntered:w,onExit:x,onExiting:C,childRef:a.ref,in:u,timeout:c,mountOnEnter:p,unmountOnExit:d,appear:h,children:(e,r)=>t.cloneElement(a,{...r,className:ke()(s,a.props.className,gt[e],"width"===b&&"collapse-horizontal")})})}));function yt(e,t){return Array.isArray(e)?e.includes(t):e===t}const vt=t.createContext({});vt.displayName="AccordionContext";const wt=vt,xt=t.forwardRef((({as:e="div",bsPrefix:r,className:n,children:o,eventKey:i,...s},a)=>{const{activeEventKey:l}=(0,t.useContext)(wt);return r=Be(r,"accordion-collapse"),(0,Me.jsx)(bt,{ref:a,in:yt(l,i),...s,className:ke()(n,r),children:(0,Me.jsx)(e,{children:t.Children.only(o)})})}));xt.displayName="AccordionCollapse";const Ct=xt,Pt=t.createContext({eventKey:""});Pt.displayName="AccordionItemContext";const _t=Pt,St=t.forwardRef((({as:e="div",bsPrefix:r,className:n,onEnter:o,onEntering:i,onEntered:s,onExit:a,onExiting:l,onExited:u,...c},p)=>{r=Be(r,"accordion-body");const{eventKey:d}=(0,t.useContext)(_t);return(0,Me.jsx)(Ct,{eventKey:d,onEnter:o,onEntering:i,onEntered:s,onExit:a,onExiting:l,onExited:u,children:(0,Me.jsx)(e,{ref:p,...c,className:ke()(n,r)})})}));St.displayName="AccordionBody";const Vt=St,Et=t.forwardRef((({as:e="button",bsPrefix:r,className:n,onClick:o,...i},s)=>{r=Be(r,"accordion-button");const{eventKey:a}=(0,t.useContext)(_t),l=function(e,r){const{activeEventKey:n,onSelect:o,alwaysOpen:i}=(0,t.useContext)(wt);return t=>{let s=e===n?null:e;i&&(s=Array.isArray(n)?n.includes(e)?n.filter((t=>t!==e)):[...n,e]:[e]),null==o||o(s,t),null==r||r(t)}}(a,o),{activeEventKey:u}=(0,t.useContext)(wt);return"button"===e&&(i.type="button"),(0,Me.jsx)(e,{ref:s,onClick:l,...i,"aria-expanded":Array.isArray(u)?u.includes(a):a===u,className:ke()(n,r,!yt(u,a)&&"collapsed")})}));Et.displayName="AccordionButton";const Ot=Et,Tt=t.forwardRef((({as:e="h2",bsPrefix:t,className:r,children:n,onClick:o,...i},s)=>(t=Be(t,"accordion-header"),(0,Me.jsx)(e,{ref:s,...i,className:ke()(r,t),children:(0,Me.jsx)(Ot,{onClick:o,children:n})}))));Tt.displayName="AccordionHeader";const Rt=Tt,kt=t.forwardRef((({as:e="div",bsPrefix:r,className:n,eventKey:o,...i},s)=>{r=Be(r,"accordion-item");const a=(0,t.useMemo)((()=>({eventKey:o})),[o]);return(0,Me.jsx)(_t.Provider,{value:a,children:(0,Me.jsx)(e,{ref:s,...i,className:ke()(n,r)})})}));kt.displayName="AccordionItem";const It=kt,jt=t.forwardRef(((e,r)=>{const{as:n="div",activeKey:o,bsPrefix:i,className:s,onSelect:a,flush:l,alwaysOpen:u,...c}=function(e,r){return Object.keys(r).reduce((function(n,o){var i,s=n,a=s[De(o)],l=s[o],u=je(s,[De(o),o].map(qe)),c=r[o],p=function(e,r,n){var o=(0,t.useRef)(void 0!==e),i=(0,t.useState)(r),s=i[0],a=i[1],l=void 0!==e,u=o.current;return o.current=l,!l&&u&&s!==r&&a(r),[l?e:s,(0,t.useCallback)((function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];n&&n.apply(void 0,[e].concat(r)),a(e)}),[n])]}(l,a,e[c]),d=p[0],h=p[1];return Ie({},u,((i={})[o]=d,i[c]=h,i))}),e)}(e,{activeKey:"onSelect"}),p=Be(i,"accordion"),d=(0,t.useMemo)((()=>({activeEventKey:o,onSelect:a,alwaysOpen:u})),[o,a,u]);return(0,Me.jsx)(wt.Provider,{value:d,children:(0,Me.jsx)(n,{ref:r,...c,className:ke()(s,p,l&&`${p}-flush`)})})}));jt.displayName="Accordion";const Dt=Object.assign(jt,{Button:Ot,Collapse:Ct,Item:It,Header:Rt,Body:Vt}),qt=["as","disabled"];function Mt({tagName:e,disabled:t,href:r,target:n,rel:o,role:i,onClick:s,tabIndex:a=0,type:l}){e||(e=null!=r||null!=n||null!=o?"a":"button");const u={tagName:e};if("button"===e)return[{type:l||"button",disabled:t},u];const c=n=>{(t||"a"===e&&function(e){return!e||"#"===e.trim()}(r))&&n.preventDefault(),t?n.stopPropagation():null==s||s(n)};return"a"===e&&(r||(r="#"),t&&(r=void 0)),[{role:null!=i?i:"button",disabled:void 0,tabIndex:t?void 0:a,href:r,target:"a"===e?n:void 0,"aria-disabled":t||void 0,rel:"a"===e?o:void 0,onClick:c,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),c(e))}},u]}t.forwardRef(((e,t)=>{let{as:r,disabled:n}=e,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,qt);const[i,{tagName:s}]=Mt(Object.assign({tagName:r,disabled:n},o));return(0,Me.jsx)(s,Object.assign({},o,i,{ref:t}))})).displayName="Button";const Lt=t.forwardRef((({as:e,bsPrefix:t,variant:r="primary",size:n,active:o=!1,disabled:i=!1,className:s,...a},l)=>{const u=Be(t,"btn"),[c,{tagName:p}]=Mt({tagName:e,disabled:i,...a}),d=p;return(0,Me.jsx)(d,{...c,...a,ref:l,disabled:i,className:ke()(s,u,o&&"active",r&&`${u}-${r}`,n&&`${u}-${n}`,a.href&&i&&"disabled")})}));Lt.displayName="Button";const At=Lt,Nt=t.forwardRef((({bsPrefix:e,className:t,striped:r,bordered:n,borderless:o,hover:i,size:s,variant:a,responsive:l,...u},c)=>{const p=Be(e,"table"),d=ke()(t,p,a&&`${p}-${a}`,s&&`${p}-${s}`,r&&`${p}-${"string"==typeof r?`striped-${r}`:"striped"}`,n&&`${p}-bordered`,o&&`${p}-borderless`,i&&`${p}-hover`),h=(0,Me.jsx)("table",{...u,className:d,ref:c});if(l){let e=`${p}-responsive`;return"string"==typeof l&&(e=`${e}-${l}`),(0,Me.jsx)("div",{className:e,children:h})}return h}));function Bt(){return Ft.apply(this,arguments)}function Ft(){return(Ft=Se(Ee().mark((function e(){var t,r;return Ee().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/survey/list");case 3:return t=e.sent,e.next=6,t.json();case 6:return r=e.sent,e.abrupt("return",r);case 10:return e.prev=10,e.t0=e.catch(0),console.log("handle this better.."),e.abrupt("return",[]);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}const zt=function(){var e=Pe((0,t.useState)([]),2),r=e[0],n=e[1];function o(){return(o=Se(Ee().mark((function e(){return Ee().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/survey/new",{method:"POST"});case 2:Bt().then((function(e){n(e)}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function i(e,t){return s.apply(this,arguments)}function s(){return(s=Se(Ee().mark((function e(t,r){return Ee().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/survey/"+r+"/"+t,{method:"POST"});case 2:Bt().then((function(e){n(e)}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,t.useEffect)((function(){Bt().then((function(e){n(e)}))}),[]),console.log(r);var a=r.every((function(e){return"published"==e.status})),l=r.some((function(e){return"open"==e.status})),u=ie();return t.createElement("div",null,t.createElement(At,{onClick:function(){return o.apply(this,arguments)},disabled:!a,style:{pointerEvents:"auto"},title:"Create a new survey for the next year. Only possible if all current surveys are published."},"start new survey"),t.createElement(Dt,null,r.map((function(e){return t.createElement(Dt.Item,{eventKey:e.year.toString(),key:e.year},t.createElement(Dt.Header,null,e.year," - ",e.status," -",t.createElement(At,{onClick:function(){return u("/survey/admin/inspect/".concat(e.year))},title:"Open the survey for inspection with all questions visible and any visibleIf logic added to the title."},"inspect"),t.createElement(At,{onClick:function(){return u("/survey/admin/try/".concat(e.year))},title:"Open the survey exactly as the nrens will see it, but without any nren data."},"try"),t.createElement(At,{onClick:function(){return i(e.year,"open")},disabled:l||"closed"!=e.status,style:{pointerEvents:"auto"},title:"Allow the NRENs to respond to this survey. Only 1 survey may be open at a time, and published surveys cannot be opened anymore."},"open"),t.createElement(At,{onClick:function(){return i(e.year,"close")},disabled:"open"!=e.status,style:{pointerEvents:"auto"},title:"Do not allow the NRENs to respond to this survey anymore. Only surveys with status open can be closed."},"close"),t.createElement(At,{onClick:function(){return i(e.year,"publish")},disabled:"closed"!=e.status&&"published"!=e.status||!e.responses.every((function(e){return"checked"==e.status})),style:{pointerEvents:"auto"},title:"Publish or re-publish all survey responses to the compendium website. This is only possible if the survey is closed or published already, and all repsonses are checked."},"publish")),t.createElement(Dt.Body,null,t.createElement(Nt,null,t.createElement("tbody",null,e.responses.map((function(r){return t.createElement("tr",{key:r.nren},t.createElement("td",null,r.nren),t.createElement("td",null,r.status),t.createElement("td",null,"locked by"),t.createElement("td",null,t.createElement(At,{onClick:function(){return u("/survey/show/".concat(e.year,"/").concat(r.nren))},style:{pointerEvents:"auto"},title:"Open the responses of the NREN in readonly mode. Allows marking the responses as checked if the survey is completed."},"show"),t.createElement(At,{onClick:function(){return u("/survey/respond/".concat(e.year,"/").concat(r.nren))},style:{pointerEvents:"auto"},title:"Edit the responses of the NREN."},"edit"),"remove lock (only available when locked)"))}))))))}))))};function Qt(){return(Qt=Se(Ee().mark((function e(){var t,r;return Ee().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/user/list");case 3:return t=e.sent,e.next=6,t.json();case 6:return r=e.sent,e.abrupt("return",r);case 10:return e.prev=10,e.t0=e.catch(0),console.log("handle this better.."),e.abrupt("return",[]);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}const Ht=function(){var e=Pe((0,t.useState)([]),2),r=e[0],n=e[1];return(0,t.useEffect)((function(){(function(){return Qt.apply(this,arguments)})().then((function(e){n(e)}))}),[]),t.createElement("div",null,t.createElement("table",null,r.map((function(e){return t.createElement("tr",{key:e.id},e.id," - ",e.email," - ",e.active?"active":"inactive"," - ",e.roles," - ",e.nrens.join())}))))};var Ut=r(2535),Wt=r(6352),Jt=r(6795),Gt={};Gt.styleTagTransform=m(),Gt.setAttributes=p(),Gt.insert=u().bind(null,"head"),Gt.domAPI=a(),Gt.insertStyleElement=h(),i()(Jt.Z,Gt),Jt.Z&&Jt.Z.locals&&Jt.Z.locals;var $t=r(911),Kt={};function Zt(e){return Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zt(e)}function Xt(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Zt(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Zt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Zt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function er(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yt(Object(r),!0).forEach((function(t){Xt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}Kt.styleTagTransform=m(),Kt.setAttributes=p(),Kt.insert=u().bind(null,"head"),Kt.domAPI=a(),Kt.insertStyleElement=h(),i()($t.Z,Kt),$t.Z&&$t.Z.locals&&$t.Z.locals;const tr=function(e){var r=e.completionPercentage,n=e.unansweredPercentage,o=e.pages,i=e.pageTitle,s={display:"flex",flexWrap:"wrap",height:"10px",margin:"5px",width:"".concat(100/o,"%")},a={height:"100%",transition:"width 0.3s ease"},l=er(er({},a),{},{width:"".concat(r,"%"),backgroundColor:"#1ab394"}),u=er(er({},a),{},{width:"".concat(n,"%"),backgroundColor:"#9d9d9d"});return t.createElement("div",{style:s},t.createElement("div",{style:l}),t.createElement("div",{style:u}),t.createElement("div",{style:{width:"100%",textAlign:"center"}},i))};Ut.Serializer.addProperty("itemvalue","customDescription:text"),Ut.Serializer.addProperty("question","hideCheckboxLabels:boolean");var rr=function(e){return e.New="new",e.Answered="answered",e.Unverified="unverified",e.Verified="verified",e.Edited="edited",e}(rr||{});const nr=function(e){var r=e.loadFrom,n=e.saveTo,o=void 0===n?"":n,i=e.readonly,s=void 0!==i&&i,a=Pe((0,t.useState)(),2),l=a[0],u=a[1],c=Pe((0,t.useState)([]),2),p=c[0],d=c[1],h=(0,t.useRef)(new Map),f=function(){let{matches:e}=t.useContext(ee),r=e[e.length-1];return r?r.params:{}}(),m=f.year,g=f.nren;function b(e,t){var r;h.current.set(e.name,t);var n=document.createElement("button");n.type="button",n.className="sv-action-bar-item verification",n.innerHTML=t,t==rr.Unverified?(n.innerHTML="Verify last years data",n.className+=" verification-required",n.onclick=function(){e.validate(),b(e,rr.Verified)}):n.className+=" verification-ok";var o='[data-name="'+e.name+'"]',i=null===(r=document.querySelector(o))||void 0===r?void 0:r.querySelector("h5"),s=null==i?void 0:i.querySelector(".verification");s?s.replaceWith(n):null==i||i.appendChild(n)}function y(e,t,r){if(""!=o){var n=new XMLHttpRequest;n.open("POST",o+m+"/"+g),n.setRequestHeader("Content-Type","application/json; charset=utf-8"),n.onload=n.onerror=function(){200==n.status&&t?t():200!=n.status&&r&&r()};var i={data:e.data,page:e.currentPageNo,verification_status:Object.fromEntries(h.current)};n.send(JSON.stringify(i))}}function v(){return v=Se(Ee().mark((function e(){var t,n,o,i,a;return Ee().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=function(e){var t=e[0];if(void 0===t||null==t||""==t)return!0;try{var r=new URL(t);return"http:"===r.protocol||"https:"===r.protocol}catch(e){return!1}},e.next=3,fetch(r+m+(g?"/"+g:""));case 3:return t=e.sent,e.next=6,t.json();case 6:for(o in(n=e.sent).verification_status)h.current.set(o,n.verification_status[o]);i=new Ut.Model(n.model),s&&(i.mode="display"),Ut.FunctionFactory.Instance.register("validateWebsiteUrl",a),i.setVariable("surveyyear",m),i.setVariable("previousyear",parseInt(m)-1),i.data=n.data,i.clearIncorrectValues(!0),i.currentPageNo=n.page,i.addNavigationItem({id:"sv-nav-compendium-complete",title:"Complete",visible:new Ut.ComputedUpdater((function(){return i.isLastPage})),action:function(){var e="",t=function(t,r){h.current.get(r.name)==rr.Unverified&&(""==e&&(e=r.name),r.error="Please verify that last years data is correct by editing the value or pressing the verification button!")};i.onValidateQuestion.add(t);var r=i.validate();i.onValidateQuestion.remove(t),r?i.completeLastPage():i.focusQuestion(e)},innerCss:"sv-btn sv-btn--navigation sv-footer__complete-btn"}),i.addNavigationItem({id:"sv-nav-compendium-save",title:"Save",action:function(e){console.log(e),y(i)},innerCss:"sv-btn sv-btn--navigation sv-footer__complete-btn"}),i.onComplete.add((function(e,t){t.showSaveInProgress(),y(e,(function(){return t.showSaveSuccess()}),(function(){return t.showSaveError()}))})),i.onAfterRenderQuestion.add((function(e,t){var r=h.current.get(t.question.name);r&&b(t.question,r)})),i.onValueChanged.add((function(e,t){var r=h.current.get(t.question.name);r==rr.New?b(t.question,rr.Answered):r==rr.Unverified&&b(t.question,rr.Edited)})),i.onUpdateQuestionCssClasses.add((function(e,t){t.question.hideCheckboxLabels&&(t.cssClasses.root+=" hidden-checkbox-labels")})),i.onMatrixAfterCellRender.add((function(e,t){if(0==t.column.indexValue&&"item"in t.row){var r,n=t.row.item;void 0!==n.customDescription&&(null===(r=t.htmlElement.parentElement)||void 0===r||r.children[0].setAttribute("title",n.customDescription))}})),i.onCurrentPageChanged.add((function(e){console.log("sender--\x3e "+e),x(e)})),u(i);case 25:case"end":return e.stop()}}),e)}))),v.apply(this,arguments)}var w=function(e){return null!==e.value&&void 0!==e.value},x=function(e){if(e&&e.pages){console.log("survey.page--\x3e "+e.pages);var t=[];e.pages.forEach((function(r){var n=r.questions.filter((function(e){return e.startWithNewLine})),o=n.length,i=n.filter(w).length,s=o-i,a=i/o;t.push({completionPercentage:100*a,unansweredPercentage:s/o*100,totalPages:e.pages.length,pageTitle:r.title})})),d(t)}};return(0,t.useEffect)((function(){!function(){v.apply(this,arguments)}()}),[]),(0,t.useEffect)((function(){l&&x(l)}),[l]),l?t.createElement("div",{className:"survey-container"},t.createElement("div",{className:"survey-progress"},p.map((function(e,r){return t.createElement(tr,{key:r,completionPercentage:e.completionPercentage,unansweredPercentage:e.unansweredPercentage,pages:e.totalPages,pageTitle:e.pageTitle})}))),t.createElement(Wt.Survey,{model:l})):t.createElement("span",null,"loading...")},or=function(){return t.createElement("div",{className:"app"},t.createElement(xe,null,t.createElement(ve,null,t.createElement(be,{path:"survey/admin/surveys",element:t.createElement(zt,null)}),t.createElement(be,{path:"survey/admin/users",element:t.createElement(Ht,null)}),t.createElement(be,{path:"survey/admin/inspect/:year",element:t.createElement(nr,{loadFrom:"/api/survey/inspect/"})}),t.createElement(be,{path:"survey/admin/try/:year",element:t.createElement(nr,{loadFrom:"/api/survey/try/"})}),t.createElement(be,{path:"survey/respond/:year/:nren",element:t.createElement(nr,{loadFrom:"/api/survey/load/",saveTo:"/api/survey/save/"})}),t.createElement(be,{path:"survey/show/:year/:nren",element:t.createElement(nr,{loadFrom:"/api/survey/load/",readonly:!0})}),t.createElement(be,{path:"*",element:t.createElement(Te,null)}))))};var ir=document.getElementById("root");(0,n.s)(ir).render(t.createElement(t.StrictMode,null,t.createElement(or,null)))})()})(); \ No newline at end of file +(()=>{var e={8051:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var s=o.apply(null,r);s&&e.push(s)}}else if("object"===i){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},4184:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var s=o.apply(null,r);s&&e.push(s)}}else if("object"===i){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},4666:(e,t,r)=>{"use strict";r.d(t,{Z:()=>J});var n=r(8081),o=r.n(n),i=r(3645),s=r.n(i),a=r(1667),l=r.n(a),u=new URL(r(6770),r.b),c=new URL(r(2105),r.b),p=new URL(r(6199),r.b),d=new URL(r(2204),r.b),h=new URL(r(8931),r.b),f=new URL(r(7486),r.b),m=new URL(r(9609),r.b),g=new URL(r(2469),r.b),b=new URL(r(991),r.b),y=new URL(r(5122),r.b),v=new URL(r(4144),r.b),x=new URL(r(2221),r.b),w=new URL(r(2956),r.b),C=new URL(r(3460),r.b),P=new URL(r(5321),r.b),_=new URL(r(1281),r.b),S=new URL(r(6254),r.b),V=new URL(r(5647),r.b),E=new URL(r(1692),r.b),O=s()(o()),T=l()(u),k=l()(c),R=l()(p),I=l()(d),j=l()(h),D=l()(f),q=l()(m),M=l()(g),L=l()(b),A=l()(y),N=l()(v),B=l()(x),F=l()(w),z=l()(C),Q=l()(P),H=l()(_),U=l()(S),W=l()(V),G=l()(E);O.push([e.id,`@charset "UTF-8";/*!\n * Bootstrap v5.3.0 (https://getbootstrap.com/)\n * Copyright 2011-2023 The Bootstrap Authors\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n */:root,[data-bs-theme=light]{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13,110,253;--bs-secondary-rgb:108,117,125;--bs-success-rgb:25,135,84;--bs-info-rgb:13,202,240;--bs-warning-rgb:255,193,7;--bs-danger-rgb:220,53,69;--bs-light-rgb:248,249,250;--bs-dark-rgb:33,37,41;--bs-primary-text-emphasis:#052c65;--bs-secondary-text-emphasis:#2b2f32;--bs-success-text-emphasis:#0a3622;--bs-info-text-emphasis:#055160;--bs-warning-text-emphasis:#664d03;--bs-danger-text-emphasis:#58151c;--bs-light-text-emphasis:#495057;--bs-dark-text-emphasis:#495057;--bs-primary-bg-subtle:#cfe2ff;--bs-secondary-bg-subtle:#e2e3e5;--bs-success-bg-subtle:#d1e7dd;--bs-info-bg-subtle:#cff4fc;--bs-warning-bg-subtle:#fff3cd;--bs-danger-bg-subtle:#f8d7da;--bs-light-bg-subtle:#fcfcfd;--bs-dark-bg-subtle:#ced4da;--bs-primary-border-subtle:#9ec5fe;--bs-secondary-border-subtle:#c4c8cb;--bs-success-border-subtle:#a3cfbb;--bs-info-border-subtle:#9eeaf9;--bs-warning-border-subtle:#ffe69c;--bs-danger-border-subtle:#f1aeb5;--bs-light-border-subtle:#e9ecef;--bs-dark-border-subtle:#adb5bd;--bs-white-rgb:255,255,255;--bs-black-rgb:0,0,0;--bs-font-sans-serif:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--bs-font-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-color-rgb:33,37,41;--bs-body-bg:#fff;--bs-body-bg-rgb:255,255,255;--bs-emphasis-color:#000;--bs-emphasis-color-rgb:0,0,0;--bs-secondary-color:rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb:33,37,41;--bs-secondary-bg:#e9ecef;--bs-secondary-bg-rgb:233,236,239;--bs-tertiary-color:rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb:33,37,41;--bs-tertiary-bg:#f8f9fa;--bs-tertiary-bg-rgb:248,249,250;--bs-heading-color:inherit;--bs-link-color:#0d6efd;--bs-link-color-rgb:13,110,253;--bs-link-decoration:underline;--bs-link-hover-color:#0a58ca;--bs-link-hover-color-rgb:10,88,202;--bs-code-color:#d63384;--bs-highlight-bg:#fff3cd;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, 0.175);--bs-border-radius:0.375rem;--bs-border-radius-sm:0.25rem;--bs-border-radius-lg:0.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-xxl:2rem;--bs-border-radius-2xl:var(--bs-border-radius-xxl);--bs-border-radius-pill:50rem;--bs-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg:0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset:inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width:0.25rem;--bs-focus-ring-opacity:0.25;--bs-focus-ring-color:rgba(13, 110, 253, 0.25);--bs-form-valid-color:#198754;--bs-form-valid-border-color:#198754;--bs-form-invalid-color:#dc3545;--bs-form-invalid-border-color:#dc3545}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color:#adb5bd;--bs-body-color-rgb:173,181,189;--bs-body-bg:#212529;--bs-body-bg-rgb:33,37,41;--bs-emphasis-color:#fff;--bs-emphasis-color-rgb:255,255,255;--bs-secondary-color:rgba(173, 181, 189, 0.75);--bs-secondary-color-rgb:173,181,189;--bs-secondary-bg:#343a40;--bs-secondary-bg-rgb:52,58,64;--bs-tertiary-color:rgba(173, 181, 189, 0.5);--bs-tertiary-color-rgb:173,181,189;--bs-tertiary-bg:#2b3035;--bs-tertiary-bg-rgb:43,48,53;--bs-primary-text-emphasis:#6ea8fe;--bs-secondary-text-emphasis:#a7acb1;--bs-success-text-emphasis:#75b798;--bs-info-text-emphasis:#6edff6;--bs-warning-text-emphasis:#ffda6a;--bs-danger-text-emphasis:#ea868f;--bs-light-text-emphasis:#f8f9fa;--bs-dark-text-emphasis:#dee2e6;--bs-primary-bg-subtle:#031633;--bs-secondary-bg-subtle:#161719;--bs-success-bg-subtle:#051b11;--bs-info-bg-subtle:#032830;--bs-warning-bg-subtle:#332701;--bs-danger-bg-subtle:#2c0b0e;--bs-light-bg-subtle:#343a40;--bs-dark-bg-subtle:#1a1d20;--bs-primary-border-subtle:#084298;--bs-secondary-border-subtle:#41464b;--bs-success-border-subtle:#0f5132;--bs-info-border-subtle:#087990;--bs-warning-border-subtle:#997404;--bs-danger-border-subtle:#842029;--bs-light-border-subtle:#495057;--bs-dark-border-subtle:#343a40;--bs-heading-color:inherit;--bs-link-color:#6ea8fe;--bs-link-hover-color:#8bb9fe;--bs-link-color-rgb:110,168,254;--bs-link-hover-color-rgb:139,185,254;--bs-code-color:#e685b5;--bs-border-color:#495057;--bs-border-color-translucent:rgba(255, 255, 255, 0.15);--bs-form-valid-color:#75b798;--bs-form-valid-border-color:#75b798;--bs-form-invalid-color:#ea868f;--bs-form-invalid-border-color:#ea868f}*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}hr{margin:1rem 0;color:inherit;border:0;border-top:var(--bs-border-width) solid;opacity:.25}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2;color:var(--bs-heading-color)}.h1,h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){.h1,h1{font-size:2.5rem}}.h2,h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){.h2,h2{font-size:2rem}}.h3,h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){.h3,h3{font-size:1.75rem}}.h4,h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){.h4,h4{font-size:1.5rem}}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}.small,small{font-size:.875em}.mark,mark{padding:.1875em;background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1));text-decoration:underline}a:hover{--bs-link-color-rgb:var(--bs-link-hover-color-rgb)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-secondary-color);text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:calc(1.625rem + 4.5vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-1{font-size:5rem}}.display-2{font-size:calc(1.575rem + 3.9vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-2{font-size:4.5rem}}.display-3{font-size:calc(1.525rem + 3.3vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-3{font-size:4rem}}.display-4{font-size:calc(1.475rem + 2.7vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-4{font-size:3.5rem}}.display-5{font-size:calc(1.425rem + 2.1vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-5{font-size:3rem}}.display-6{font-size:calc(1.375rem + 1.5vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-6{font-size:2.5rem}}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer::before{content:"— "}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:var(--bs-body-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:.875em;color:var(--bs-secondary-color)}.container,.container-fluid,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{--bs-gutter-x:1.5rem;--bs-gutter-y:0;width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-right:auto;margin-left:auto}@media (min-width:576px){.container,.container-sm{max-width:540px}}@media (min-width:768px){.container,.container-md,.container-sm{max-width:720px}}@media (min-width:992px){.container,.container-lg,.container-md,.container-sm{max-width:960px}}@media (min-width:1200px){.container,.container-lg,.container-md,.container-sm,.container-xl{max-width:1140px}}@media (min-width:1400px){.container,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{max-width:1320px}}:root{--bs-breakpoint-xs:0;--bs-breakpoint-sm:576px;--bs-breakpoint-md:768px;--bs-breakpoint-lg:992px;--bs-breakpoint-xl:1200px;--bs-breakpoint-xxl:1400px}.row{--bs-gutter-x:1.5rem;--bs-gutter-y:0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.6666666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--bs-gutter-x:0}.g-0,.gy-0{--bs-gutter-y:0}.g-1,.gx-1{--bs-gutter-x:0.25rem}.g-1,.gy-1{--bs-gutter-y:0.25rem}.g-2,.gx-2{--bs-gutter-x:0.5rem}.g-2,.gy-2{--bs-gutter-y:0.5rem}.g-3,.gx-3{--bs-gutter-x:1rem}.g-3,.gy-3{--bs-gutter-y:1rem}.g-4,.gx-4{--bs-gutter-x:1.5rem}.g-4,.gy-4{--bs-gutter-y:1.5rem}.g-5,.gx-5{--bs-gutter-x:3rem}.g-5,.gy-5{--bs-gutter-y:3rem}@media (min-width:576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.6666666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--bs-gutter-x:0}.g-sm-0,.gy-sm-0{--bs-gutter-y:0}.g-sm-1,.gx-sm-1{--bs-gutter-x:0.25rem}.g-sm-1,.gy-sm-1{--bs-gutter-y:0.25rem}.g-sm-2,.gx-sm-2{--bs-gutter-x:0.5rem}.g-sm-2,.gy-sm-2{--bs-gutter-y:0.5rem}.g-sm-3,.gx-sm-3{--bs-gutter-x:1rem}.g-sm-3,.gy-sm-3{--bs-gutter-y:1rem}.g-sm-4,.gx-sm-4{--bs-gutter-x:1.5rem}.g-sm-4,.gy-sm-4{--bs-gutter-y:1.5rem}.g-sm-5,.gx-sm-5{--bs-gutter-x:3rem}.g-sm-5,.gy-sm-5{--bs-gutter-y:3rem}}@media (min-width:768px){.col-md{flex:1 0 0%}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.6666666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--bs-gutter-x:0}.g-md-0,.gy-md-0{--bs-gutter-y:0}.g-md-1,.gx-md-1{--bs-gutter-x:0.25rem}.g-md-1,.gy-md-1{--bs-gutter-y:0.25rem}.g-md-2,.gx-md-2{--bs-gutter-x:0.5rem}.g-md-2,.gy-md-2{--bs-gutter-y:0.5rem}.g-md-3,.gx-md-3{--bs-gutter-x:1rem}.g-md-3,.gy-md-3{--bs-gutter-y:1rem}.g-md-4,.gx-md-4{--bs-gutter-x:1.5rem}.g-md-4,.gy-md-4{--bs-gutter-y:1.5rem}.g-md-5,.gx-md-5{--bs-gutter-x:3rem}.g-md-5,.gy-md-5{--bs-gutter-y:3rem}}@media (min-width:992px){.col-lg{flex:1 0 0%}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.6666666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--bs-gutter-x:0}.g-lg-0,.gy-lg-0{--bs-gutter-y:0}.g-lg-1,.gx-lg-1{--bs-gutter-x:0.25rem}.g-lg-1,.gy-lg-1{--bs-gutter-y:0.25rem}.g-lg-2,.gx-lg-2{--bs-gutter-x:0.5rem}.g-lg-2,.gy-lg-2{--bs-gutter-y:0.5rem}.g-lg-3,.gx-lg-3{--bs-gutter-x:1rem}.g-lg-3,.gy-lg-3{--bs-gutter-y:1rem}.g-lg-4,.gx-lg-4{--bs-gutter-x:1.5rem}.g-lg-4,.gy-lg-4{--bs-gutter-y:1.5rem}.g-lg-5,.gx-lg-5{--bs-gutter-x:3rem}.g-lg-5,.gy-lg-5{--bs-gutter-y:3rem}}@media (min-width:1200px){.col-xl{flex:1 0 0%}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.6666666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--bs-gutter-x:0}.g-xl-0,.gy-xl-0{--bs-gutter-y:0}.g-xl-1,.gx-xl-1{--bs-gutter-x:0.25rem}.g-xl-1,.gy-xl-1{--bs-gutter-y:0.25rem}.g-xl-2,.gx-xl-2{--bs-gutter-x:0.5rem}.g-xl-2,.gy-xl-2{--bs-gutter-y:0.5rem}.g-xl-3,.gx-xl-3{--bs-gutter-x:1rem}.g-xl-3,.gy-xl-3{--bs-gutter-y:1rem}.g-xl-4,.gx-xl-4{--bs-gutter-x:1.5rem}.g-xl-4,.gy-xl-4{--bs-gutter-y:1.5rem}.g-xl-5,.gx-xl-5{--bs-gutter-x:3rem}.g-xl-5,.gy-xl-5{--bs-gutter-y:3rem}}@media (min-width:1400px){.col-xxl{flex:1 0 0%}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.6666666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--bs-gutter-x:0}.g-xxl-0,.gy-xxl-0{--bs-gutter-y:0}.g-xxl-1,.gx-xxl-1{--bs-gutter-x:0.25rem}.g-xxl-1,.gy-xxl-1{--bs-gutter-y:0.25rem}.g-xxl-2,.gx-xxl-2{--bs-gutter-x:0.5rem}.g-xxl-2,.gy-xxl-2{--bs-gutter-y:0.5rem}.g-xxl-3,.gx-xxl-3{--bs-gutter-x:1rem}.g-xxl-3,.gy-xxl-3{--bs-gutter-y:1rem}.g-xxl-4,.gx-xxl-4{--bs-gutter-x:1.5rem}.g-xxl-4,.gy-xxl-4{--bs-gutter-y:1.5rem}.g-xxl-5,.gx-xxl-5{--bs-gutter-x:3rem}.g-xxl-5,.gy-xxl-5{--bs-gutter-y:3rem}}.table{--bs-table-color-type:initial;--bs-table-bg-type:initial;--bs-table-color-state:initial;--bs-table-bg-state:initial;--bs-table-color:var(--bs-body-color);--bs-table-bg:var(--bs-body-bg);--bs-table-border-color:var(--bs-border-color);--bs-table-accent-bg:transparent;--bs-table-striped-color:var(--bs-body-color);--bs-table-striped-bg:rgba(0, 0, 0, 0.05);--bs-table-active-color:var(--bs-body-color);--bs-table-active-bg:rgba(0, 0, 0, 0.1);--bs-table-hover-color:var(--bs-body-color);--bs-table-hover-bg:rgba(0, 0, 0, 0.075);width:100%;margin-bottom:1rem;vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:.5rem .5rem;color:var(--bs-table-color-state,var(--bs-table-color-type,var(--bs-table-color)));background-color:var(--bs-table-bg);border-bottom-width:var(--bs-border-width);box-shadow:inset 0 0 0 9999px var(--bs-table-bg-state,var(--bs-table-bg-type,var(--bs-table-accent-bg)))}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table-group-divider{border-top:calc(var(--bs-border-width) * 2) solid currentcolor}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem .25rem}.table-bordered>:not(caption)>*{border-width:var(--bs-border-width) 0}.table-bordered>:not(caption)>*>*{border-width:0 var(--bs-border-width)}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-color-type:var(--bs-table-striped-color);--bs-table-bg-type:var(--bs-table-striped-bg)}.table-striped-columns>:not(caption)>tr>:nth-child(2n){--bs-table-color-type:var(--bs-table-striped-color);--bs-table-bg-type:var(--bs-table-striped-bg)}.table-active{--bs-table-color-state:var(--bs-table-active-color);--bs-table-bg-state:var(--bs-table-active-bg)}.table-hover>tbody>tr:hover>*{--bs-table-color-state:var(--bs-table-hover-color);--bs-table-bg-state:var(--bs-table-hover-bg)}.table-primary{--bs-table-color:#000;--bs-table-bg:#cfe2ff;--bs-table-border-color:#bacbe6;--bs-table-striped-bg:#c5d7f2;--bs-table-striped-color:#000;--bs-table-active-bg:#bacbe6;--bs-table-active-color:#000;--bs-table-hover-bg:#bfd1ec;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-secondary{--bs-table-color:#000;--bs-table-bg:#e2e3e5;--bs-table-border-color:#cbccce;--bs-table-striped-bg:#d7d8da;--bs-table-striped-color:#000;--bs-table-active-bg:#cbccce;--bs-table-active-color:#000;--bs-table-hover-bg:#d1d2d4;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-success{--bs-table-color:#000;--bs-table-bg:#d1e7dd;--bs-table-border-color:#bcd0c7;--bs-table-striped-bg:#c7dbd2;--bs-table-striped-color:#000;--bs-table-active-bg:#bcd0c7;--bs-table-active-color:#000;--bs-table-hover-bg:#c1d6cc;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-info{--bs-table-color:#000;--bs-table-bg:#cff4fc;--bs-table-border-color:#badce3;--bs-table-striped-bg:#c5e8ef;--bs-table-striped-color:#000;--bs-table-active-bg:#badce3;--bs-table-active-color:#000;--bs-table-hover-bg:#bfe2e9;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-warning{--bs-table-color:#000;--bs-table-bg:#fff3cd;--bs-table-border-color:#e6dbb9;--bs-table-striped-bg:#f2e7c3;--bs-table-striped-color:#000;--bs-table-active-bg:#e6dbb9;--bs-table-active-color:#000;--bs-table-hover-bg:#ece1be;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-danger{--bs-table-color:#000;--bs-table-bg:#f8d7da;--bs-table-border-color:#dfc2c4;--bs-table-striped-bg:#eccccf;--bs-table-striped-color:#000;--bs-table-active-bg:#dfc2c4;--bs-table-active-color:#000;--bs-table-hover-bg:#e5c7ca;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-light{--bs-table-color:#000;--bs-table-bg:#f8f9fa;--bs-table-border-color:#dfe0e1;--bs-table-striped-bg:#ecedee;--bs-table-striped-color:#000;--bs-table-active-bg:#dfe0e1;--bs-table-active-color:#000;--bs-table-hover-bg:#e5e6e7;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-dark{--bs-table-color:#fff;--bs-table-bg:#212529;--bs-table-border-color:#373b3e;--bs-table-striped-bg:#2c3034;--bs-table-striped-color:#fff;--bs-table-active-bg:#373b3e;--bs-table-active-color:#fff;--bs-table-hover-bg:#323539;--bs-table-hover-color:#fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width:575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.form-label{margin-bottom:.5rem}.col-form-label{padding-top:calc(.375rem + var(--bs-border-width));padding-bottom:calc(.375rem + var(--bs-border-width));margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + var(--bs-border-width));padding-bottom:calc(.5rem + var(--bs-border-width));font-size:1.25rem}.col-form-label-sm{padding-top:calc(.25rem + var(--bs-border-width));padding-bottom:calc(.25rem + var(--bs-border-width));font-size:.875rem}.form-text{margin-top:.25rem;font-size:.875em;color:var(--bs-secondary-color)}.form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);background-color:var(--bs-body-bg);background-clip:padding-box;border:var(--bs-border-width) solid var(--bs-border-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--bs-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:var(--bs-body-color);background-color:var(--bs-body-bg);border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.form-control::-webkit-date-and-time-value{min-width:85px;height:1.5em;margin:0}.form-control::-webkit-datetime-edit{display:block;padding:0}.form-control::-moz-placeholder{color:var(--bs-secondary-color);opacity:1}.form-control::placeholder{color:var(--bs-secondary-color);opacity:1}.form-control:disabled{background-color:var(--bs-secondary-bg);opacity:1}.form-control::-webkit-file-upload-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;-webkit-transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control::-webkit-file-upload-button{-webkit-transition:none;transition:none}.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button{background-color:var(--bs-secondary-bg)}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:var(--bs-secondary-bg)}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;line-height:1.5;color:var(--bs-body-color);background-color:transparent;border:solid transparent;border-width:var(--bs-border-width) 0}.form-control-plaintext:focus{outline:0}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm{padding-right:0;padding-left:0}.form-control-sm{min-height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2));padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-control-sm::-webkit-file-upload-button{padding:.25rem .5rem;margin:-.25rem -.5rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}.form-control-sm::file-selector-button{padding:.25rem .5rem;margin:-.25rem -.5rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}.form-control-lg{min-height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.form-control-lg::-webkit-file-upload-button{padding:.5rem 1rem;margin:-.5rem -1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.form-control-lg::file-selector-button{padding:.5rem 1rem;margin:-.5rem -1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}textarea.form-control{min-height:calc(1.5em + .75rem + calc(var(--bs-border-width) * 2))}textarea.form-control-sm{min-height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2))}textarea.form-control-lg{min-height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2))}.form-control-color{width:3rem;height:calc(1.5em + .75rem + calc(var(--bs-border-width) * 2));padding:.375rem}.form-control-color:not(:disabled):not([readonly]){cursor:pointer}.form-control-color::-moz-color-swatch{border:0!important;border-radius:var(--bs-border-radius)}.form-control-color::-webkit-color-swatch{border:0!important;border-radius:var(--bs-border-radius)}.form-control-color.form-control-sm{height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2))}.form-control-color.form-control-lg{height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2))}.form-select{--bs-form-select-bg-img:url(${T});display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);background-color:var(--bs-body-bg);background-image:var(--bs-form-select-bg-img),var(--bs-form-select-bg-icon,none);background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.form-select{transition:none}}.form-select:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.form-select[multiple],.form-select[size]:not([size="1"]){padding-right:.75rem;background-image:none}.form-select:disabled{background-color:var(--bs-secondary-bg)}.form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 var(--bs-body-color)}.form-select-sm{padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}[data-bs-theme=dark] .form-select{--bs-form-select-bg-img:url(${k})}.form-check{display:block;min-height:1.5rem;padding-left:1.5em;margin-bottom:.125rem}.form-check .form-check-input{float:left;margin-left:-1.5em}.form-check-reverse{padding-right:1.5em;padding-left:0;text-align:right}.form-check-reverse .form-check-input{float:right;margin-right:-1.5em;margin-left:0}.form-check-input{--bs-form-check-bg:var(--bs-body-bg);width:1em;height:1em;margin-top:.25em;vertical-align:top;background-color:var(--bs-form-check-bg);background-image:var(--bs-form-check-bg-image);background-repeat:no-repeat;background-position:center;background-size:contain;border:var(--bs-border-width) solid var(--bs-border-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}.form-check-input[type=checkbox]{border-radius:.25em}.form-check-input[type=radio]{border-radius:50%}.form-check-input:active{filter:brightness(90%)}.form-check-input:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.form-check-input:checked{background-color:#0d6efd;border-color:#0d6efd}.form-check-input:checked[type=checkbox]{--bs-form-check-bg-image:url(${R})}.form-check-input:checked[type=radio]{--bs-form-check-bg-image:url(${I})}.form-check-input[type=checkbox]:indeterminate{background-color:#0d6efd;border-color:#0d6efd;--bs-form-check-bg-image:url(${j})}.form-check-input:disabled{pointer-events:none;filter:none;opacity:.5}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{cursor:default;opacity:.5}.form-switch{padding-left:2.5em}.form-switch .form-check-input{--bs-form-switch-bg:url(${D});width:2em;margin-left:-2.5em;background-image:var(--bs-form-switch-bg);background-position:left center;border-radius:2em;transition:background-position .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-switch .form-check-input{transition:none}}.form-switch .form-check-input:focus{--bs-form-switch-bg:url(${q})}.form-switch .form-check-input:checked{background-position:right center;--bs-form-switch-bg:url(${M})}.form-switch.form-check-reverse{padding-right:2.5em;padding-left:0}.form-switch.form-check-reverse .form-check-input{margin-right:-2.5em;margin-left:0}.form-check-inline{display:inline-block;margin-right:1rem}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check:disabled+.btn,.btn-check[disabled]+.btn{pointer-events:none;filter:none;opacity:.65}[data-bs-theme=dark] .form-switch .form-check-input:not(:checked):not(:focus){--bs-form-switch-bg:url(${L})}.form-range{width:100%;height:1.5rem;padding:0;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.form-range:focus{outline:0}.form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem rgba(13,110,253,.25)}.form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem rgba(13,110,253,.25)}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#0d6efd;border:0;border-radius:1rem;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.form-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.form-range::-webkit-slider-thumb:active{background-color:#b6d4fe}.form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-tertiary-bg);border-color:transparent;border-radius:1rem}.form-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#0d6efd;border:0;border-radius:1rem;-moz-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.form-range::-moz-range-thumb{-moz-transition:none;transition:none}}.form-range::-moz-range-thumb:active{background-color:#b6d4fe}.form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-tertiary-bg);border-color:transparent;border-radius:1rem}.form-range:disabled{pointer-events:none}.form-range:disabled::-webkit-slider-thumb{background-color:var(--bs-secondary-color)}.form-range:disabled::-moz-range-thumb{background-color:var(--bs-secondary-color)}.form-floating{position:relative}.form-floating>.form-control,.form-floating>.form-control-plaintext,.form-floating>.form-select{height:calc(3.5rem + calc(var(--bs-border-width) * 2));min-height:calc(3.5rem + calc(var(--bs-border-width) * 2));line-height:1.25}.form-floating>label{position:absolute;top:0;left:0;z-index:2;height:100%;padding:1rem .75rem;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border:var(--bs-border-width) solid transparent;transform-origin:0 0;transition:opacity .1s ease-in-out,transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.form-floating>label{transition:none}}.form-floating>.form-control,.form-floating>.form-control-plaintext{padding:1rem .75rem}.form-floating>.form-control-plaintext::-moz-placeholder,.form-floating>.form-control::-moz-placeholder{color:transparent}.form-floating>.form-control-plaintext::placeholder,.form-floating>.form-control::placeholder{color:transparent}.form-floating>.form-control-plaintext:not(:-moz-placeholder-shown),.form-floating>.form-control:not(:-moz-placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control-plaintext:focus,.form-floating>.form-control-plaintext:not(:placeholder-shown),.form-floating>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control-plaintext:-webkit-autofill,.form-floating>.form-control:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-select{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:not(:-moz-placeholder-shown)~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translateX(.15rem)}.form-floating>.form-control-plaintext~label,.form-floating>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-floating>.form-select~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translateX(.15rem)}.form-floating>.form-control:not(:-moz-placeholder-shown)~label::after{position:absolute;inset:1rem 0.375rem;z-index:-1;height:1.5em;content:"";background-color:var(--bs-body-bg);border-radius:var(--bs-border-radius)}.form-floating>.form-control-plaintext~label::after,.form-floating>.form-control:focus~label::after,.form-floating>.form-control:not(:placeholder-shown)~label::after,.form-floating>.form-select~label::after{position:absolute;inset:1rem 0.375rem;z-index:-1;height:1.5em;content:"";background-color:var(--bs-body-bg);border-radius:var(--bs-border-radius)}.form-floating>.form-control:-webkit-autofill~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translateX(.15rem)}.form-floating>.form-control-plaintext~label{border-width:var(--bs-border-width) 0}.form-floating>:disabled~label{color:#6c757d}.form-floating>:disabled~label::after{background-color:var(--bs-secondary-bg)}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-floating,.input-group>.form-select{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus,.input-group>.form-floating:focus-within,.input-group>.form-select:focus{z-index:5}.input-group .btn{position:relative;z-index:2}.input-group .btn:focus{z-index:5}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);text-align:center;white-space:nowrap;background-color:var(--bs-tertiary-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius)}.input-group-lg>.btn,.input-group-lg>.form-control,.input-group-lg>.form-select,.input-group-lg>.input-group-text{padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.input-group-sm>.btn,.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text{padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.input-group-lg>.form-select,.input-group-sm>.form-select{padding-right:3rem}.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select,.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select,.input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:calc(var(--bs-border-width) * -1);border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.form-floating:not(:first-child)>.form-control,.input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-valid-color)}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-success);border-radius:var(--bs-border-radius)}.is-valid~.valid-feedback,.is-valid~.valid-tooltip,.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip{display:block}.form-control.is-valid,.was-validated .form-control:valid{border-color:var(--bs-form-valid-border-color);padding-right:calc(1.5em + .75rem);background-image:url(${A});background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-valid:focus,.was-validated .form-control:valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.form-select.is-valid,.was-validated .form-select:valid{border-color:var(--bs-form-valid-border-color)}.form-select.is-valid:not([multiple]):not([size]),.form-select.is-valid:not([multiple])[size="1"],.was-validated .form-select:valid:not([multiple]):not([size]),.was-validated .form-select:valid:not([multiple])[size="1"]{--bs-form-select-bg-icon:url(${A});padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.form-select.is-valid:focus,.was-validated .form-select:valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.form-control-color.is-valid,.was-validated .form-control-color:valid{width:calc(3rem + calc(1.5em + .75rem))}.form-check-input.is-valid,.was-validated .form-check-input:valid{border-color:var(--bs-form-valid-border-color)}.form-check-input.is-valid:checked,.was-validated .form-check-input:valid:checked{background-color:var(--bs-form-valid-color)}.form-check-input.is-valid:focus,.was-validated .form-check-input:valid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:var(--bs-form-valid-color)}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.input-group>.form-control:not(:focus).is-valid,.input-group>.form-floating:not(:focus-within).is-valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-control:not(:focus):valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.was-validated .input-group>.form-select:not(:focus):valid{z-index:3}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-invalid-color)}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-danger);border-radius:var(--bs-border-radius)}.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip,.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip{display:block}.form-control.is-invalid,.was-validated .form-control:invalid{border-color:var(--bs-form-invalid-border-color);padding-right:calc(1.5em + .75rem);background-image:url(${N});background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-invalid:focus,.was-validated .form-control:invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.form-select.is-invalid,.was-validated .form-select:invalid{border-color:var(--bs-form-invalid-border-color)}.form-select.is-invalid:not([multiple]):not([size]),.form-select.is-invalid:not([multiple])[size="1"],.was-validated .form-select:invalid:not([multiple]):not([size]),.was-validated .form-select:invalid:not([multiple])[size="1"]{--bs-form-select-bg-icon:url(${N});padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.form-select.is-invalid:focus,.was-validated .form-select:invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.form-control-color.is-invalid,.was-validated .form-control-color:invalid{width:calc(3rem + calc(1.5em + .75rem))}.form-check-input.is-invalid,.was-validated .form-check-input:invalid{border-color:var(--bs-form-invalid-border-color)}.form-check-input.is-invalid:checked,.was-validated .form-check-input:invalid:checked{background-color:var(--bs-form-invalid-color)}.form-check-input.is-invalid:focus,.was-validated .form-check-input:invalid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:var(--bs-form-invalid-color)}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.input-group>.form-control:not(:focus).is-invalid,.input-group>.form-floating:not(:focus-within).is-invalid,.input-group>.form-select:not(:focus).is-invalid,.was-validated .input-group>.form-control:not(:focus):invalid,.was-validated .input-group>.form-floating:not(:focus-within):invalid,.was-validated .input-group>.form-select:not(:focus):invalid{z-index:4}.btn{--bs-btn-padding-x:0.75rem;--bs-btn-padding-y:0.375rem;--bs-btn-font-family: ;--bs-btn-font-size:1rem;--bs-btn-font-weight:400;--bs-btn-line-height:1.5;--bs-btn-color:var(--bs-body-color);--bs-btn-bg:transparent;--bs-btn-border-width:var(--bs-border-width);--bs-btn-border-color:transparent;--bs-btn-border-radius:var(--bs-border-radius);--bs-btn-hover-border-color:transparent;--bs-btn-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.15),0 1px 1px rgba(0, 0, 0, 0.075);--bs-btn-disabled-opacity:0.65;--bs-btn-focus-box-shadow:0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,.btn.active,.btn.show,.btn:first-child:active,:not(.btn-check)+.btn:active{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible,.btn:first-child:active:focus-visible,:not(.btn-check)+.btn:active:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn.disabled,.btn:disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color:#fff;--bs-btn-bg:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0b5ed7;--bs-btn-hover-border-color:#0a58ca;--bs-btn-focus-shadow-rgb:49,132,253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#0a58ca;--bs-btn-active-border-color:#0a53be;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#0d6efd;--bs-btn-disabled-border-color:#0d6efd}.btn-secondary{--bs-btn-color:#fff;--bs-btn-bg:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#5c636a;--bs-btn-hover-border-color:#565e64;--bs-btn-focus-shadow-rgb:130,138,145;--bs-btn-active-color:#fff;--bs-btn-active-bg:#565e64;--bs-btn-active-border-color:#51585e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#6c757d;--bs-btn-disabled-border-color:#6c757d}.btn-success{--bs-btn-color:#fff;--bs-btn-bg:#198754;--bs-btn-border-color:#198754;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#157347;--bs-btn-hover-border-color:#146c43;--bs-btn-focus-shadow-rgb:60,153,110;--bs-btn-active-color:#fff;--bs-btn-active-bg:#146c43;--bs-btn-active-border-color:#13653f;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#198754;--bs-btn-disabled-border-color:#198754}.btn-info{--bs-btn-color:#000;--bs-btn-bg:#0dcaf0;--bs-btn-border-color:#0dcaf0;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#31d2f2;--bs-btn-hover-border-color:#25cff2;--bs-btn-focus-shadow-rgb:11,172,204;--bs-btn-active-color:#000;--bs-btn-active-bg:#3dd5f3;--bs-btn-active-border-color:#25cff2;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#0dcaf0;--bs-btn-disabled-border-color:#0dcaf0}.btn-warning{--bs-btn-color:#000;--bs-btn-bg:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#ffca2c;--bs-btn-hover-border-color:#ffc720;--bs-btn-focus-shadow-rgb:217,164,6;--bs-btn-active-color:#000;--bs-btn-active-bg:#ffcd39;--bs-btn-active-border-color:#ffc720;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#ffc107;--bs-btn-disabled-border-color:#ffc107}.btn-danger{--bs-btn-color:#fff;--bs-btn-bg:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#bb2d3b;--bs-btn-hover-border-color:#b02a37;--bs-btn-focus-shadow-rgb:225,83,97;--bs-btn-active-color:#fff;--bs-btn-active-bg:#b02a37;--bs-btn-active-border-color:#a52834;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#dc3545;--bs-btn-disabled-border-color:#dc3545}.btn-light{--bs-btn-color:#000;--bs-btn-bg:#f8f9fa;--bs-btn-border-color:#f8f9fa;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#d3d4d5;--bs-btn-hover-border-color:#c6c7c8;--bs-btn-focus-shadow-rgb:211,212,213;--bs-btn-active-color:#000;--bs-btn-active-bg:#c6c7c8;--bs-btn-active-border-color:#babbbc;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#f8f9fa;--bs-btn-disabled-border-color:#f8f9fa}.btn-dark{--bs-btn-color:#fff;--bs-btn-bg:#212529;--bs-btn-border-color:#212529;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#424649;--bs-btn-hover-border-color:#373b3e;--bs-btn-focus-shadow-rgb:66,70,73;--bs-btn-active-color:#fff;--bs-btn-active-bg:#4d5154;--bs-btn-active-border-color:#373b3e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#212529;--bs-btn-disabled-border-color:#212529}.btn-outline-primary{--bs-btn-color:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0d6efd;--bs-btn-hover-border-color:#0d6efd;--bs-btn-focus-shadow-rgb:13,110,253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#0d6efd;--bs-btn-active-border-color:#0d6efd;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#0d6efd;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#0d6efd;--bs-gradient:none}.btn-outline-secondary{--bs-btn-color:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#6c757d;--bs-btn-hover-border-color:#6c757d;--bs-btn-focus-shadow-rgb:108,117,125;--bs-btn-active-color:#fff;--bs-btn-active-bg:#6c757d;--bs-btn-active-border-color:#6c757d;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#6c757d;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#6c757d;--bs-gradient:none}.btn-outline-success{--bs-btn-color:#198754;--bs-btn-border-color:#198754;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#198754;--bs-btn-hover-border-color:#198754;--bs-btn-focus-shadow-rgb:25,135,84;--bs-btn-active-color:#fff;--bs-btn-active-bg:#198754;--bs-btn-active-border-color:#198754;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#198754;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#198754;--bs-gradient:none}.btn-outline-info{--bs-btn-color:#0dcaf0;--bs-btn-border-color:#0dcaf0;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#0dcaf0;--bs-btn-hover-border-color:#0dcaf0;--bs-btn-focus-shadow-rgb:13,202,240;--bs-btn-active-color:#000;--bs-btn-active-bg:#0dcaf0;--bs-btn-active-border-color:#0dcaf0;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#0dcaf0;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#0dcaf0;--bs-gradient:none}.btn-outline-warning{--bs-btn-color:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#ffc107;--bs-btn-hover-border-color:#ffc107;--bs-btn-focus-shadow-rgb:255,193,7;--bs-btn-active-color:#000;--bs-btn-active-bg:#ffc107;--bs-btn-active-border-color:#ffc107;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#ffc107;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#ffc107;--bs-gradient:none}.btn-outline-danger{--bs-btn-color:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#dc3545;--bs-btn-hover-border-color:#dc3545;--bs-btn-focus-shadow-rgb:220,53,69;--bs-btn-active-color:#fff;--bs-btn-active-bg:#dc3545;--bs-btn-active-border-color:#dc3545;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#dc3545;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#dc3545;--bs-gradient:none}.btn-outline-light{--bs-btn-color:#f8f9fa;--bs-btn-border-color:#f8f9fa;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#f8f9fa;--bs-btn-hover-border-color:#f8f9fa;--bs-btn-focus-shadow-rgb:248,249,250;--bs-btn-active-color:#000;--bs-btn-active-bg:#f8f9fa;--bs-btn-active-border-color:#f8f9fa;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#f8f9fa;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#f8f9fa;--bs-gradient:none}.btn-outline-dark{--bs-btn-color:#212529;--bs-btn-border-color:#212529;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#212529;--bs-btn-hover-border-color:#212529;--bs-btn-focus-shadow-rgb:33,37,41;--bs-btn-active-color:#fff;--bs-btn-active-bg:#212529;--bs-btn-active-border-color:#212529;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#212529;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#212529;--bs-gradient:none}.btn-link{--bs-btn-font-weight:400;--bs-btn-color:var(--bs-link-color);--bs-btn-bg:transparent;--bs-btn-border-color:transparent;--bs-btn-hover-color:var(--bs-link-hover-color);--bs-btn-hover-border-color:transparent;--bs-btn-active-color:var(--bs-link-hover-color);--bs-btn-active-border-color:transparent;--bs-btn-disabled-color:#6c757d;--bs-btn-disabled-border-color:transparent;--bs-btn-box-shadow:0 0 0 #000;--bs-btn-focus-shadow-rgb:49,132,253;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-group-lg>.btn,.btn-lg{--bs-btn-padding-y:0.5rem;--bs-btn-padding-x:1rem;--bs-btn-font-size:1.25rem;--bs-btn-border-radius:var(--bs-border-radius-lg)}.btn-group-sm>.btn,.btn-sm{--bs-btn-padding-y:0.25rem;--bs-btn-padding-x:0.5rem;--bs-btn-font-size:0.875rem;--bs-btn-border-radius:var(--bs-border-radius-sm)}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion:reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media (prefers-reduced-motion:reduce){.collapsing.collapse-horizontal{transition:none}}.dropdown,.dropdown-center,.dropend,.dropstart,.dropup,.dropup-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty::after{margin-left:0}.dropdown-menu{--bs-dropdown-zindex:1000;--bs-dropdown-min-width:10rem;--bs-dropdown-padding-x:0;--bs-dropdown-padding-y:0.5rem;--bs-dropdown-spacer:0.125rem;--bs-dropdown-font-size:1rem;--bs-dropdown-color:var(--bs-body-color);--bs-dropdown-bg:var(--bs-body-bg);--bs-dropdown-border-color:var(--bs-border-color-translucent);--bs-dropdown-border-radius:var(--bs-border-radius);--bs-dropdown-border-width:var(--bs-border-width);--bs-dropdown-inner-border-radius:calc(var(--bs-border-radius) - var(--bs-border-width));--bs-dropdown-divider-bg:var(--bs-border-color-translucent);--bs-dropdown-divider-margin-y:0.5rem;--bs-dropdown-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-dropdown-link-color:var(--bs-body-color);--bs-dropdown-link-hover-color:var(--bs-body-color);--bs-dropdown-link-hover-bg:var(--bs-tertiary-bg);--bs-dropdown-link-active-color:#fff;--bs-dropdown-link-active-bg:#0d6efd;--bs-dropdown-link-disabled-color:var(--bs-tertiary-color);--bs-dropdown-item-padding-x:1rem;--bs-dropdown-item-padding-y:0.25rem;--bs-dropdown-header-color:#6c757d;--bs-dropdown-header-padding-x:1rem;--bs-dropdown-header-padding-y:0.5rem;position:absolute;z-index:var(--bs-dropdown-zindex);display:none;min-width:var(--bs-dropdown-min-width);padding:var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);margin:0;font-size:var(--bs-dropdown-font-size);color:var(--bs-dropdown-color);text-align:left;list-style:none;background-color:var(--bs-dropdown-bg);background-clip:padding-box;border:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);border-radius:var(--bs-dropdown-border-radius)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--bs-dropdown-spacer)}.dropdown-menu-start{--bs-position:start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position:end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width:576px){.dropdown-menu-sm-start{--bs-position:start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position:end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width:768px){.dropdown-menu-md-start{--bs-position:start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position:end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width:992px){.dropdown-menu-lg-start{--bs-position:start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position:end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width:1200px){.dropdown-menu-xl-start{--bs-position:start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position:end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width:1400px){.dropdown-menu-xxl-start{--bs-position:start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position:end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--bs-dropdown-spacer)}.dropup .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty::after{margin-left:0}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--bs-dropdown-spacer)}.dropend .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropend .dropdown-toggle:empty::after{margin-left:0}.dropend .dropdown-toggle::after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--bs-dropdown-spacer)}.dropstart .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropstart .dropdown-toggle::after{display:none}.dropstart .dropdown-toggle::before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropstart .dropdown-toggle:empty::after{margin-left:0}.dropstart .dropdown-toggle::before{vertical-align:0}.dropdown-divider{height:0;margin:var(--bs-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--bs-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--bs-dropdown-link-color);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0;border-radius:var(--bs-dropdown-item-border-radius,0)}.dropdown-item:focus,.dropdown-item:hover{color:var(--bs-dropdown-link-hover-color);background-color:var(--bs-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--bs-dropdown-link-active-color);text-decoration:none;background-color:var(--bs-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--bs-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--bs-dropdown-header-padding-y) var(--bs-dropdown-header-padding-x);margin-bottom:0;font-size:.875rem;color:var(--bs-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);color:var(--bs-dropdown-link-color)}.dropdown-menu-dark{--bs-dropdown-color:#dee2e6;--bs-dropdown-bg:#343a40;--bs-dropdown-border-color:var(--bs-border-color-translucent);--bs-dropdown-box-shadow: ;--bs-dropdown-link-color:#dee2e6;--bs-dropdown-link-hover-color:#fff;--bs-dropdown-divider-bg:var(--bs-border-color-translucent);--bs-dropdown-link-hover-bg:rgba(255, 255, 255, 0.15);--bs-dropdown-link-active-color:#fff;--bs-dropdown-link-active-bg:#0d6efd;--bs-dropdown-link-disabled-color:#adb5bd;--bs-dropdown-header-color:#adb5bd}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;flex:1 1 auto}.btn-group-vertical>.btn-check:checked+.btn,.btn-group-vertical>.btn-check:focus+.btn,.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn-check:checked+.btn,.btn-group>.btn-check:focus+.btn,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group{border-radius:var(--bs-border-radius)}.btn-group>.btn-group:not(:first-child),.btn-group>:not(.btn-check:first-child)+.btn{margin-left:calc(var(--bs-border-width) * -1)}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn.dropdown-toggle-split:first-child,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:nth-child(n+3),.btn-group>:not(.btn-check)+.btn{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split::after,.dropend .dropdown-toggle-split::after,.dropup .dropdown-toggle-split::after{margin-left:0}.dropstart .dropdown-toggle-split::before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn-group:not(:first-child),.btn-group-vertical>.btn:not(:first-child){margin-top:calc(var(--bs-border-width) * -1)}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn~.btn{border-top-left-radius:0;border-top-right-radius:0}.nav{--bs-nav-link-padding-x:1rem;--bs-nav-link-padding-y:0.5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color:var(--bs-link-color);--bs-nav-link-hover-color:var(--bs-link-hover-color);--bs-nav-link-disabled-color:var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);font-size:var(--bs-nav-link-font-size);font-weight:var(--bs-nav-link-font-weight);color:var(--bs-nav-link-color);text-decoration:none;background:0 0;border:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}@media (prefers-reduced-motion:reduce){.nav-link{transition:none}}.nav-link:focus,.nav-link:hover{color:var(--bs-nav-link-hover-color)}.nav-link:focus-visible{outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.nav-link.disabled{color:var(--bs-nav-link-disabled-color);pointer-events:none;cursor:default}.nav-tabs{--bs-nav-tabs-border-width:var(--bs-border-width);--bs-nav-tabs-border-color:var(--bs-border-color);--bs-nav-tabs-border-radius:var(--bs-border-radius);--bs-nav-tabs-link-hover-border-color:var(--bs-secondary-bg) var(--bs-secondary-bg) var(--bs-border-color);--bs-nav-tabs-link-active-color:var(--bs-emphasis-color);--bs-nav-tabs-link-active-bg:var(--bs-body-bg);--bs-nav-tabs-link-active-border-color:var(--bs-border-color) var(--bs-border-color) var(--bs-body-bg);border-bottom:var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color)}.nav-tabs .nav-link{margin-bottom:calc(-1 * var(--bs-nav-tabs-border-width));border:var(--bs-nav-tabs-border-width) solid transparent;border-top-left-radius:var(--bs-nav-tabs-border-radius);border-top-right-radius:var(--bs-nav-tabs-border-radius)}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{isolation:isolate;border-color:var(--bs-nav-tabs-link-hover-border-color)}.nav-tabs .nav-link.disabled,.nav-tabs .nav-link:disabled{color:var(--bs-nav-link-disabled-color);background-color:transparent;border-color:transparent}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}.nav-tabs .dropdown-menu{margin-top:calc(-1 * var(--bs-nav-tabs-border-width));border-top-left-radius:0;border-top-right-radius:0}.nav-pills{--bs-nav-pills-border-radius:var(--bs-border-radius);--bs-nav-pills-link-active-color:#fff;--bs-nav-pills-link-active-bg:#0d6efd}.nav-pills .nav-link{border-radius:var(--bs-nav-pills-border-radius)}.nav-pills .nav-link:disabled{color:var(--bs-nav-link-disabled-color);background-color:transparent;border-color:transparent}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:var(--bs-nav-pills-link-active-color);background-color:var(--bs-nav-pills-link-active-bg)}.nav-underline{--bs-nav-underline-gap:1rem;--bs-nav-underline-border-width:0.125rem;--bs-nav-underline-link-active-color:var(--bs-emphasis-color);gap:var(--bs-nav-underline-gap)}.nav-underline .nav-link{padding-right:0;padding-left:0;border-bottom:var(--bs-nav-underline-border-width) solid transparent}.nav-underline .nav-link:focus,.nav-underline .nav-link:hover{border-bottom-color:currentcolor}.nav-underline .nav-link.active,.nav-underline .show>.nav-link{font-weight:700;color:var(--bs-nav-underline-link-active-color);border-bottom-color:currentcolor}.nav-fill .nav-item,.nav-fill>.nav-link{flex:1 1 auto;text-align:center}.nav-justified .nav-item,.nav-justified>.nav-link{flex-basis:0;flex-grow:1;text-align:center}.nav-fill .nav-item .nav-link,.nav-justified .nav-item .nav-link{width:100%}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{--bs-navbar-padding-x:0;--bs-navbar-padding-y:0.5rem;--bs-navbar-color:rgba(var(--bs-emphasis-color-rgb), 0.65);--bs-navbar-hover-color:rgba(var(--bs-emphasis-color-rgb), 0.8);--bs-navbar-disabled-color:rgba(var(--bs-emphasis-color-rgb), 0.3);--bs-navbar-active-color:rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-brand-padding-y:0.3125rem;--bs-navbar-brand-margin-end:1rem;--bs-navbar-brand-font-size:1.25rem;--bs-navbar-brand-color:rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-brand-hover-color:rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-nav-link-padding-x:0.5rem;--bs-navbar-toggler-padding-y:0.25rem;--bs-navbar-toggler-padding-x:0.75rem;--bs-navbar-toggler-font-size:1.25rem;--bs-navbar-toggler-icon-bg:url(${B});--bs-navbar-toggler-border-color:rgba(var(--bs-emphasis-color-rgb), 0.15);--bs-navbar-toggler-border-radius:var(--bs-border-radius);--bs-navbar-toggler-focus-width:0.25rem;--bs-navbar-toggler-transition:box-shadow 0.15s ease-in-out;position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:var(--bs-navbar-padding-y) var(--bs-navbar-padding-x)}.navbar>.container,.navbar>.container-fluid,.navbar>.container-lg,.navbar>.container-md,.navbar>.container-sm,.navbar>.container-xl,.navbar>.container-xxl{display:flex;flex-wrap:inherit;align-items:center;justify-content:space-between}.navbar-brand{padding-top:var(--bs-navbar-brand-padding-y);padding-bottom:var(--bs-navbar-brand-padding-y);margin-right:var(--bs-navbar-brand-margin-end);font-size:var(--bs-navbar-brand-font-size);color:var(--bs-navbar-brand-color);text-decoration:none;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{color:var(--bs-navbar-brand-hover-color)}.navbar-nav{--bs-nav-link-padding-x:0;--bs-nav-link-padding-y:0.5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color:var(--bs-navbar-color);--bs-nav-link-hover-color:var(--bs-navbar-hover-color);--bs-nav-link-disabled-color:var(--bs-navbar-disabled-color);display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link.active,.navbar-nav .nav-link.show{color:var(--bs-navbar-active-color)}.navbar-nav .dropdown-menu{position:static}.navbar-text{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-navbar-color)}.navbar-text a,.navbar-text a:focus,.navbar-text a:hover{color:var(--bs-navbar-active-color)}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);font-size:var(--bs-navbar-toggler-font-size);line-height:1;color:var(--bs-navbar-color);background-color:transparent;border:var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);border-radius:var(--bs-navbar-toggler-border-radius);transition:var(--bs-navbar-toggler-transition)}@media (prefers-reduced-motion:reduce){.navbar-toggler{transition:none}}.navbar-toggler:hover{text-decoration:none}.navbar-toggler:focus{text-decoration:none;outline:0;box-shadow:0 0 0 var(--bs-navbar-toggler-focus-width)}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;background-image:var(--bs-navbar-toggler-icon-bg);background-repeat:no-repeat;background-position:center;background-size:100%}.navbar-nav-scroll{max-height:var(--bs-scroll-height,75vh);overflow-y:auto}@media (min-width:576px){.navbar-expand-sm{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}.navbar-expand-sm .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-sm .offcanvas .offcanvas-header{display:none}.navbar-expand-sm .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:768px){.navbar-expand-md{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}.navbar-expand-md .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-md .offcanvas .offcanvas-header{display:none}.navbar-expand-md .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:992px){.navbar-expand-lg{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}.navbar-expand-lg .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-lg .offcanvas .offcanvas-header{display:none}.navbar-expand-lg .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:1200px){.navbar-expand-xl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}.navbar-expand-xl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xl .offcanvas .offcanvas-header{display:none}.navbar-expand-xl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:1400px){.navbar-expand-xxl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xxl .navbar-nav{flex-direction:row}.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xxl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xxl .navbar-nav-scroll{overflow:visible}.navbar-expand-xxl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xxl .navbar-toggler{display:none}.navbar-expand-xxl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xxl .offcanvas .offcanvas-header{display:none}.navbar-expand-xxl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}.navbar-expand{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-expand .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand .offcanvas .offcanvas-header{display:none}.navbar-expand .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}.navbar-dark,.navbar[data-bs-theme=dark]{--bs-navbar-color:rgba(255, 255, 255, 0.55);--bs-navbar-hover-color:rgba(255, 255, 255, 0.75);--bs-navbar-disabled-color:rgba(255, 255, 255, 0.25);--bs-navbar-active-color:#fff;--bs-navbar-brand-color:#fff;--bs-navbar-brand-hover-color:#fff;--bs-navbar-toggler-border-color:rgba(255, 255, 255, 0.1);--bs-navbar-toggler-icon-bg:url(${F})}[data-bs-theme=dark] .navbar-toggler-icon{--bs-navbar-toggler-icon-bg:url(${F})}.card{--bs-card-spacer-y:1rem;--bs-card-spacer-x:1rem;--bs-card-title-spacer-y:0.5rem;--bs-card-title-color: ;--bs-card-subtitle-color: ;--bs-card-border-width:var(--bs-border-width);--bs-card-border-color:var(--bs-border-color-translucent);--bs-card-border-radius:var(--bs-border-radius);--bs-card-box-shadow: ;--bs-card-inner-border-radius:calc(var(--bs-border-radius) - (var(--bs-border-width)));--bs-card-cap-padding-y:0.5rem;--bs-card-cap-padding-x:1rem;--bs-card-cap-bg:rgba(var(--bs-body-color-rgb), 0.03);--bs-card-cap-color: ;--bs-card-height: ;--bs-card-color: ;--bs-card-bg:var(--bs-body-bg);--bs-card-img-overlay-padding:1rem;--bs-card-group-margin:0.75rem;position:relative;display:flex;flex-direction:column;min-width:0;height:var(--bs-card-height);color:var(--bs-body-color);word-wrap:break-word;background-color:var(--bs-card-bg);background-clip:border-box;border:var(--bs-card-border-width) solid var(--bs-card-border-color);border-radius:var(--bs-card-border-radius)}.card>hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0;border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{flex:1 1 auto;padding:var(--bs-card-spacer-y) var(--bs-card-spacer-x);color:var(--bs-card-color)}.card-title{margin-bottom:var(--bs-card-title-spacer-y);color:var(--bs-card-title-color)}.card-subtitle{margin-top:calc(-.5 * var(--bs-card-title-spacer-y));margin-bottom:0;color:var(--bs-card-subtitle-color)}.card-text:last-child{margin-bottom:0}.card-link+.card-link{margin-left:var(--bs-card-spacer-x)}.card-header{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);margin-bottom:0;color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-bottom:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-header:first-child{border-radius:var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0}.card-footer{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-top:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-footer:last-child{border-radius:0 0 var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius)}.card-header-tabs{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-bottom:calc(-1 * var(--bs-card-cap-padding-y));margin-left:calc(-.5 * var(--bs-card-cap-padding-x));border-bottom:0}.card-header-tabs .nav-link.active{background-color:var(--bs-card-bg);border-bottom-color:var(--bs-card-bg)}.card-header-pills{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-left:calc(-.5 * var(--bs-card-cap-padding-x))}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:var(--bs-card-img-overlay-padding);border-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom,.card-img-top{width:100%}.card-img,.card-img-top{border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom{border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card-group>.card{margin-bottom:var(--bs-card-group-margin)}@media (min-width:576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-header,.card-group>.card:not(:last-child) .card-img-top{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-footer,.card-group>.card:not(:last-child) .card-img-bottom{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-header,.card-group>.card:not(:first-child) .card-img-top{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-footer,.card-group>.card:not(:first-child) .card-img-bottom{border-bottom-left-radius:0}}.accordion{--bs-accordion-color:var(--bs-body-color);--bs-accordion-bg:var(--bs-body-bg);--bs-accordion-transition:color 0.15s ease-in-out,background-color 0.15s ease-in-out,border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out,border-radius 0.15s ease;--bs-accordion-border-color:var(--bs-border-color);--bs-accordion-border-width:var(--bs-border-width);--bs-accordion-border-radius:var(--bs-border-radius);--bs-accordion-inner-border-radius:calc(var(--bs-border-radius) - (var(--bs-border-width)));--bs-accordion-btn-padding-x:1.25rem;--bs-accordion-btn-padding-y:1rem;--bs-accordion-btn-color:var(--bs-body-color);--bs-accordion-btn-bg:var(--bs-accordion-bg);--bs-accordion-btn-icon:url(${z});--bs-accordion-btn-icon-width:1.25rem;--bs-accordion-btn-icon-transform:rotate(-180deg);--bs-accordion-btn-icon-transition:transform 0.2s ease-in-out;--bs-accordion-btn-active-icon:url(${Q});--bs-accordion-btn-focus-border-color:#86b7fe;--bs-accordion-btn-focus-box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);--bs-accordion-body-padding-x:1.25rem;--bs-accordion-body-padding-y:1rem;--bs-accordion-active-color:var(--bs-primary-text-emphasis);--bs-accordion-active-bg:var(--bs-primary-bg-subtle)}.accordion-button{position:relative;display:flex;align-items:center;width:100%;padding:var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);font-size:1rem;color:var(--bs-accordion-btn-color);text-align:left;background-color:var(--bs-accordion-btn-bg);border:0;border-radius:0;overflow-anchor:none;transition:var(--bs-accordion-transition)}@media (prefers-reduced-motion:reduce){.accordion-button{transition:none}}.accordion-button:not(.collapsed){color:var(--bs-accordion-active-color);background-color:var(--bs-accordion-active-bg);box-shadow:inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color)}.accordion-button:not(.collapsed)::after{background-image:var(--bs-accordion-btn-active-icon);transform:var(--bs-accordion-btn-icon-transform)}.accordion-button::after{flex-shrink:0;width:var(--bs-accordion-btn-icon-width);height:var(--bs-accordion-btn-icon-width);margin-left:auto;content:"";background-image:var(--bs-accordion-btn-icon);background-repeat:no-repeat;background-size:var(--bs-accordion-btn-icon-width);transition:var(--bs-accordion-btn-icon-transition)}@media (prefers-reduced-motion:reduce){.accordion-button::after{transition:none}}.accordion-button:hover{z-index:2}.accordion-button:focus{z-index:3;border-color:var(--bs-accordion-btn-focus-border-color);outline:0;box-shadow:var(--bs-accordion-btn-focus-box-shadow)}.accordion-header{margin-bottom:0}.accordion-item{color:var(--bs-accordion-color);background-color:var(--bs-accordion-bg);border:var(--bs-accordion-border-width) solid var(--bs-accordion-border-color)}.accordion-item:first-of-type{border-top-left-radius:var(--bs-accordion-border-radius);border-top-right-radius:var(--bs-accordion-border-radius)}.accordion-item:first-of-type .accordion-button{border-top-left-radius:var(--bs-accordion-inner-border-radius);border-top-right-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:not(:first-of-type){border-top:0}.accordion-item:last-of-type{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-item:last-of-type .accordion-button.collapsed{border-bottom-right-radius:var(--bs-accordion-inner-border-radius);border-bottom-left-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:last-of-type .accordion-collapse{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-body{padding:var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x)}.accordion-flush .accordion-collapse{border-width:0}.accordion-flush .accordion-item{border-right:0;border-left:0;border-radius:0}.accordion-flush .accordion-item:first-child{border-top:0}.accordion-flush .accordion-item:last-child{border-bottom:0}.accordion-flush .accordion-item .accordion-button,.accordion-flush .accordion-item .accordion-button.collapsed{border-radius:0}[data-bs-theme=dark] .accordion-button::after{--bs-accordion-btn-icon:url(${H});--bs-accordion-btn-active-icon:url(${H})}.breadcrumb{--bs-breadcrumb-padding-x:0;--bs-breadcrumb-padding-y:0;--bs-breadcrumb-margin-bottom:1rem;--bs-breadcrumb-bg: ;--bs-breadcrumb-border-radius: ;--bs-breadcrumb-divider-color:var(--bs-secondary-color);--bs-breadcrumb-item-padding-x:0.5rem;--bs-breadcrumb-item-active-color:var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding:var(--bs-breadcrumb-padding-y) var(--bs-breadcrumb-padding-x);margin-bottom:var(--bs-breadcrumb-margin-bottom);font-size:var(--bs-breadcrumb-font-size);list-style:none;background-color:var(--bs-breadcrumb-bg);border-radius:var(--bs-breadcrumb-border-radius)}.breadcrumb-item+.breadcrumb-item{padding-left:var(--bs-breadcrumb-item-padding-x)}.breadcrumb-item+.breadcrumb-item::before{float:left;padding-right:var(--bs-breadcrumb-item-padding-x);color:var(--bs-breadcrumb-divider-color);content:var(--bs-breadcrumb-divider, "/")}.breadcrumb-item.active{color:var(--bs-breadcrumb-item-active-color)}.pagination{--bs-pagination-padding-x:0.75rem;--bs-pagination-padding-y:0.375rem;--bs-pagination-font-size:1rem;--bs-pagination-color:var(--bs-link-color);--bs-pagination-bg:var(--bs-body-bg);--bs-pagination-border-width:var(--bs-border-width);--bs-pagination-border-color:var(--bs-border-color);--bs-pagination-border-radius:var(--bs-border-radius);--bs-pagination-hover-color:var(--bs-link-hover-color);--bs-pagination-hover-bg:var(--bs-tertiary-bg);--bs-pagination-hover-border-color:var(--bs-border-color);--bs-pagination-focus-color:var(--bs-link-hover-color);--bs-pagination-focus-bg:var(--bs-secondary-bg);--bs-pagination-focus-box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);--bs-pagination-active-color:#fff;--bs-pagination-active-bg:#0d6efd;--bs-pagination-active-border-color:#0d6efd;--bs-pagination-disabled-color:var(--bs-secondary-color);--bs-pagination-disabled-bg:var(--bs-secondary-bg);--bs-pagination-disabled-border-color:var(--bs-border-color);display:flex;padding-left:0;list-style:none}.page-link{position:relative;display:block;padding:var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);font-size:var(--bs-pagination-font-size);color:var(--bs-pagination-color);text-decoration:none;background-color:var(--bs-pagination-bg);border:var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.page-link{transition:none}}.page-link:hover{z-index:2;color:var(--bs-pagination-hover-color);background-color:var(--bs-pagination-hover-bg);border-color:var(--bs-pagination-hover-border-color)}.page-link:focus{z-index:3;color:var(--bs-pagination-focus-color);background-color:var(--bs-pagination-focus-bg);outline:0;box-shadow:var(--bs-pagination-focus-box-shadow)}.active>.page-link,.page-link.active{z-index:3;color:var(--bs-pagination-active-color);background-color:var(--bs-pagination-active-bg);border-color:var(--bs-pagination-active-border-color)}.disabled>.page-link,.page-link.disabled{color:var(--bs-pagination-disabled-color);pointer-events:none;background-color:var(--bs-pagination-disabled-bg);border-color:var(--bs-pagination-disabled-border-color)}.page-item:not(:first-child) .page-link{margin-left:calc(var(--bs-border-width) * -1)}.page-item:first-child .page-link{border-top-left-radius:var(--bs-pagination-border-radius);border-bottom-left-radius:var(--bs-pagination-border-radius)}.page-item:last-child .page-link{border-top-right-radius:var(--bs-pagination-border-radius);border-bottom-right-radius:var(--bs-pagination-border-radius)}.pagination-lg{--bs-pagination-padding-x:1.5rem;--bs-pagination-padding-y:0.75rem;--bs-pagination-font-size:1.25rem;--bs-pagination-border-radius:var(--bs-border-radius-lg)}.pagination-sm{--bs-pagination-padding-x:0.5rem;--bs-pagination-padding-y:0.25rem;--bs-pagination-font-size:0.875rem;--bs-pagination-border-radius:var(--bs-border-radius-sm)}.badge{--bs-badge-padding-x:0.65em;--bs-badge-padding-y:0.35em;--bs-badge-font-size:0.75em;--bs-badge-font-weight:700;--bs-badge-color:#fff;--bs-badge-border-radius:var(--bs-border-radius);display:inline-block;padding:var(--bs-badge-padding-y) var(--bs-badge-padding-x);font-size:var(--bs-badge-font-size);font-weight:var(--bs-badge-font-weight);line-height:1;color:var(--bs-badge-color);text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:var(--bs-badge-border-radius)}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.alert{--bs-alert-bg:transparent;--bs-alert-padding-x:1rem;--bs-alert-padding-y:1rem;--bs-alert-margin-bottom:1rem;--bs-alert-color:inherit;--bs-alert-border-color:transparent;--bs-alert-border:var(--bs-border-width) solid var(--bs-alert-border-color);--bs-alert-border-radius:var(--bs-border-radius);--bs-alert-link-color:inherit;position:relative;padding:var(--bs-alert-padding-y) var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius)}.alert-heading{color:inherit}.alert-link{font-weight:700;color:var(--bs-alert-link-color)}.alert-dismissible{padding-right:3rem}.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:1.25rem 1rem}.alert-primary{--bs-alert-color:var(--bs-primary-text-emphasis);--bs-alert-bg:var(--bs-primary-bg-subtle);--bs-alert-border-color:var(--bs-primary-border-subtle);--bs-alert-link-color:var(--bs-primary-text-emphasis)}.alert-secondary{--bs-alert-color:var(--bs-secondary-text-emphasis);--bs-alert-bg:var(--bs-secondary-bg-subtle);--bs-alert-border-color:var(--bs-secondary-border-subtle);--bs-alert-link-color:var(--bs-secondary-text-emphasis)}.alert-success{--bs-alert-color:var(--bs-success-text-emphasis);--bs-alert-bg:var(--bs-success-bg-subtle);--bs-alert-border-color:var(--bs-success-border-subtle);--bs-alert-link-color:var(--bs-success-text-emphasis)}.alert-info{--bs-alert-color:var(--bs-info-text-emphasis);--bs-alert-bg:var(--bs-info-bg-subtle);--bs-alert-border-color:var(--bs-info-border-subtle);--bs-alert-link-color:var(--bs-info-text-emphasis)}.alert-warning{--bs-alert-color:var(--bs-warning-text-emphasis);--bs-alert-bg:var(--bs-warning-bg-subtle);--bs-alert-border-color:var(--bs-warning-border-subtle);--bs-alert-link-color:var(--bs-warning-text-emphasis)}.alert-danger{--bs-alert-color:var(--bs-danger-text-emphasis);--bs-alert-bg:var(--bs-danger-bg-subtle);--bs-alert-border-color:var(--bs-danger-border-subtle);--bs-alert-link-color:var(--bs-danger-text-emphasis)}.alert-light{--bs-alert-color:var(--bs-light-text-emphasis);--bs-alert-bg:var(--bs-light-bg-subtle);--bs-alert-border-color:var(--bs-light-border-subtle);--bs-alert-link-color:var(--bs-light-text-emphasis)}.alert-dark{--bs-alert-color:var(--bs-dark-text-emphasis);--bs-alert-bg:var(--bs-dark-bg-subtle);--bs-alert-border-color:var(--bs-dark-border-subtle);--bs-alert-link-color:var(--bs-dark-text-emphasis)}@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.progress,.progress-stacked{--bs-progress-height:1rem;--bs-progress-font-size:0.75rem;--bs-progress-bg:var(--bs-secondary-bg);--bs-progress-border-radius:var(--bs-border-radius);--bs-progress-box-shadow:var(--bs-box-shadow-inset);--bs-progress-bar-color:#fff;--bs-progress-bar-bg:#0d6efd;--bs-progress-bar-transition:width 0.6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}.progress-stacked>.progress{overflow:visible}.progress-stacked>.progress>.progress-bar{width:100%}.progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media (prefers-reduced-motion:reduce){.progress-bar-animated{animation:none}}.list-group{--bs-list-group-color:var(--bs-body-color);--bs-list-group-bg:var(--bs-body-bg);--bs-list-group-border-color:var(--bs-border-color);--bs-list-group-border-width:var(--bs-border-width);--bs-list-group-border-radius:var(--bs-border-radius);--bs-list-group-item-padding-x:1rem;--bs-list-group-item-padding-y:0.5rem;--bs-list-group-action-color:var(--bs-secondary-color);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-tertiary-bg);--bs-list-group-action-active-color:var(--bs-body-color);--bs-list-group-action-active-bg:var(--bs-secondary-bg);--bs-list-group-disabled-color:var(--bs-secondary-color);--bs-list-group-disabled-bg:var(--bs-body-bg);--bs-list-group-active-color:#fff;--bs-list-group-active-bg:#0d6efd;--bs-list-group-active-border-color:#0d6efd;display:flex;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:var(--bs-list-group-border-radius)}.list-group-numbered{list-style-type:none;counter-reset:section}.list-group-numbered>.list-group-item::before{content:counters(section, ".") ". ";counter-increment:section}.list-group-item-action{width:100%;color:var(--bs-list-group-action-color);text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{z-index:1;color:var(--bs-list-group-action-hover-color);text-decoration:none;background-color:var(--bs-list-group-action-hover-bg)}.list-group-item-action:active{color:var(--bs-list-group-action-active-color);background-color:var(--bs-list-group-action-active-bg)}.list-group-item{position:relative;display:block;padding:var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);color:var(--bs-list-group-color);text-decoration:none;background-color:var(--bs-list-group-bg);border:var(--bs-list-group-border-width) solid var(--bs-list-group-border-color)}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{color:var(--bs-list-group-disabled-color);pointer-events:none;background-color:var(--bs-list-group-disabled-bg)}.list-group-item.active{z-index:2;color:var(--bs-list-group-active-color);background-color:var(--bs-list-group-active-bg);border-color:var(--bs-list-group-active-border-color)}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:calc(-1 * var(--bs-list-group-border-width));border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}@media (min-width:576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1400px){.list-group-horizontal-xxl{flex-direction:row}.list-group-horizontal-xxl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xxl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xxl>.list-group-item.active{margin-top:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 var(--bs-list-group-border-width)}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{--bs-list-group-color:var(--bs-primary-text-emphasis);--bs-list-group-bg:var(--bs-primary-bg-subtle);--bs-list-group-border-color:var(--bs-primary-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-primary-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-primary-border-subtle);--bs-list-group-active-color:var(--bs-primary-bg-subtle);--bs-list-group-active-bg:var(--bs-primary-text-emphasis);--bs-list-group-active-border-color:var(--bs-primary-text-emphasis)}.list-group-item-secondary{--bs-list-group-color:var(--bs-secondary-text-emphasis);--bs-list-group-bg:var(--bs-secondary-bg-subtle);--bs-list-group-border-color:var(--bs-secondary-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-secondary-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-secondary-border-subtle);--bs-list-group-active-color:var(--bs-secondary-bg-subtle);--bs-list-group-active-bg:var(--bs-secondary-text-emphasis);--bs-list-group-active-border-color:var(--bs-secondary-text-emphasis)}.list-group-item-success{--bs-list-group-color:var(--bs-success-text-emphasis);--bs-list-group-bg:var(--bs-success-bg-subtle);--bs-list-group-border-color:var(--bs-success-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-success-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-success-border-subtle);--bs-list-group-active-color:var(--bs-success-bg-subtle);--bs-list-group-active-bg:var(--bs-success-text-emphasis);--bs-list-group-active-border-color:var(--bs-success-text-emphasis)}.list-group-item-info{--bs-list-group-color:var(--bs-info-text-emphasis);--bs-list-group-bg:var(--bs-info-bg-subtle);--bs-list-group-border-color:var(--bs-info-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-info-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-info-border-subtle);--bs-list-group-active-color:var(--bs-info-bg-subtle);--bs-list-group-active-bg:var(--bs-info-text-emphasis);--bs-list-group-active-border-color:var(--bs-info-text-emphasis)}.list-group-item-warning{--bs-list-group-color:var(--bs-warning-text-emphasis);--bs-list-group-bg:var(--bs-warning-bg-subtle);--bs-list-group-border-color:var(--bs-warning-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-warning-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-warning-border-subtle);--bs-list-group-active-color:var(--bs-warning-bg-subtle);--bs-list-group-active-bg:var(--bs-warning-text-emphasis);--bs-list-group-active-border-color:var(--bs-warning-text-emphasis)}.list-group-item-danger{--bs-list-group-color:var(--bs-danger-text-emphasis);--bs-list-group-bg:var(--bs-danger-bg-subtle);--bs-list-group-border-color:var(--bs-danger-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-danger-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-danger-border-subtle);--bs-list-group-active-color:var(--bs-danger-bg-subtle);--bs-list-group-active-bg:var(--bs-danger-text-emphasis);--bs-list-group-active-border-color:var(--bs-danger-text-emphasis)}.list-group-item-light{--bs-list-group-color:var(--bs-light-text-emphasis);--bs-list-group-bg:var(--bs-light-bg-subtle);--bs-list-group-border-color:var(--bs-light-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-light-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-light-border-subtle);--bs-list-group-active-color:var(--bs-light-bg-subtle);--bs-list-group-active-bg:var(--bs-light-text-emphasis);--bs-list-group-active-border-color:var(--bs-light-text-emphasis)}.list-group-item-dark{--bs-list-group-color:var(--bs-dark-text-emphasis);--bs-list-group-bg:var(--bs-dark-bg-subtle);--bs-list-group-border-color:var(--bs-dark-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-dark-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-dark-border-subtle);--bs-list-group-active-color:var(--bs-dark-bg-subtle);--bs-list-group-active-bg:var(--bs-dark-text-emphasis);--bs-list-group-active-border-color:var(--bs-dark-text-emphasis)}.btn-close{--bs-btn-close-color:#000;--bs-btn-close-bg:url(${U});--bs-btn-close-opacity:0.5;--bs-btn-close-hover-opacity:0.75;--bs-btn-close-focus-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);--bs-btn-close-focus-opacity:1;--bs-btn-close-disabled-opacity:0.25;--bs-btn-close-white-filter:invert(1) grayscale(100%) brightness(200%);box-sizing:content-box;width:1em;height:1em;padding:.25em .25em;color:var(--bs-btn-close-color);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;border:0;border-radius:.375rem;opacity:var(--bs-btn-close-opacity)}.btn-close:hover{color:var(--bs-btn-close-color);text-decoration:none;opacity:var(--bs-btn-close-hover-opacity)}.btn-close:focus{outline:0;box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity)}.btn-close.disabled,.btn-close:disabled{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--bs-btn-close-disabled-opacity)}.btn-close-white{filter:var(--bs-btn-close-white-filter)}[data-bs-theme=dark] .btn-close{filter:var(--bs-btn-close-white-filter)}.toast{--bs-toast-zindex:1090;--bs-toast-padding-x:0.75rem;--bs-toast-padding-y:0.5rem;--bs-toast-spacing:1.5rem;--bs-toast-max-width:350px;--bs-toast-font-size:0.875rem;--bs-toast-color: ;--bs-toast-bg:rgba(var(--bs-body-bg-rgb), 0.85);--bs-toast-border-width:var(--bs-border-width);--bs-toast-border-color:var(--bs-border-color-translucent);--bs-toast-border-radius:var(--bs-border-radius);--bs-toast-box-shadow:var(--bs-box-shadow);--bs-toast-header-color:var(--bs-secondary-color);--bs-toast-header-bg:rgba(var(--bs-body-bg-rgb), 0.85);--bs-toast-header-border-color:var(--bs-border-color-translucent);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}.toast.showing{opacity:0}.toast:not(.show){display:none}.toast-container{--bs-toast-zindex:1090;position:absolute;z-index:var(--bs-toast-zindex);width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:100%;pointer-events:none}.toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}.toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}.toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}.toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}.modal{--bs-modal-zindex:1055;--bs-modal-width:500px;--bs-modal-padding:1rem;--bs-modal-margin:0.5rem;--bs-modal-color: ;--bs-modal-bg:var(--bs-body-bg);--bs-modal-border-color:var(--bs-border-color-translucent);--bs-modal-border-width:var(--bs-border-width);--bs-modal-border-radius:var(--bs-border-radius-lg);--bs-modal-box-shadow:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-modal-inner-border-radius:calc(var(--bs-border-radius-lg) - (var(--bs-border-width)));--bs-modal-header-padding-x:1rem;--bs-modal-header-padding-y:1rem;--bs-modal-header-padding:1rem 1rem;--bs-modal-header-border-color:var(--bs-border-color);--bs-modal-header-border-width:var(--bs-border-width);--bs-modal-title-line-height:1.5;--bs-modal-footer-gap:0.5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color:var(--bs-border-color);--bs-modal-footer-border-width:var(--bs-border-width);position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translate(0,-50px)}@media (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}.modal-backdrop{--bs-backdrop-zindex:1050;--bs-backdrop-bg:#000;--bs-backdrop-opacity:0.5;position:fixed;top:0;left:0;z-index:var(--bs-backdrop-zindex);width:100vw;height:100vh;background-color:var(--bs-backdrop-bg)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--bs-backdrop-opacity)}.modal-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin:calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto}.modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media (min-width:576px){.modal{--bs-modal-margin:1.75rem;--bs-modal-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}.modal-sm{--bs-modal-width:300px}}@media (min-width:992px){.modal-lg,.modal-xl{--bs-modal-width:800px}}@media (min-width:1200px){.modal-xl{--bs-modal-width:1140px}}.modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen .modal-footer,.modal-fullscreen .modal-header{border-radius:0}.modal-fullscreen .modal-body{overflow-y:auto}@media (max-width:575.98px){.modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-sm-down .modal-footer,.modal-fullscreen-sm-down .modal-header{border-radius:0}.modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media (max-width:767.98px){.modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-md-down .modal-footer,.modal-fullscreen-md-down .modal-header{border-radius:0}.modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media (max-width:991.98px){.modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-lg-down .modal-footer,.modal-fullscreen-lg-down .modal-header{border-radius:0}.modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media (max-width:1199.98px){.modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xl-down .modal-footer,.modal-fullscreen-xl-down .modal-header{border-radius:0}.modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media (max-width:1399.98px){.modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xxl-down .modal-footer,.modal-fullscreen-xxl-down .modal-header{border-radius:0}.modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}.tooltip{--bs-tooltip-zindex:1080;--bs-tooltip-max-width:200px;--bs-tooltip-padding-x:0.5rem;--bs-tooltip-padding-y:0.25rem;--bs-tooltip-margin: ;--bs-tooltip-font-size:0.875rem;--bs-tooltip-color:var(--bs-body-bg);--bs-tooltip-bg:var(--bs-emphasis-color);--bs-tooltip-border-radius:var(--bs-border-radius);--bs-tooltip-opacity:0.9;--bs-tooltip-arrow-width:0.8rem;--bs-tooltip-arrow-height:0.4rem;z-index:var(--bs-tooltip-zindex);display:block;margin:var(--bs-tooltip-margin);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--bs-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--bs-tooltip-arrow-width);height:var(--bs-tooltip-arrow-height)}.tooltip .tooltip-arrow::before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow,.bs-tooltip-top .tooltip-arrow{bottom:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,.bs-tooltip-top .tooltip-arrow::before{top:-1px;border-width:var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-top-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow,.bs-tooltip-end .tooltip-arrow{left:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before,.bs-tooltip-end .tooltip-arrow::before{right:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-right-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow,.bs-tooltip-bottom .tooltip-arrow{top:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before,.bs-tooltip-bottom .tooltip-arrow::before{bottom:-1px;border-width:0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-bottom-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow,.bs-tooltip-start .tooltip-arrow{right:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before,.bs-tooltip-start .tooltip-arrow::before{left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-left-color:var(--bs-tooltip-bg)}.tooltip-inner{max-width:var(--bs-tooltip-max-width);padding:var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);color:var(--bs-tooltip-color);text-align:center;background-color:var(--bs-tooltip-bg);border-radius:var(--bs-tooltip-border-radius)}.popover{--bs-popover-zindex:1070;--bs-popover-max-width:276px;--bs-popover-font-size:0.875rem;--bs-popover-bg:var(--bs-body-bg);--bs-popover-border-width:var(--bs-border-width);--bs-popover-border-color:var(--bs-border-color-translucent);--bs-popover-border-radius:var(--bs-border-radius-lg);--bs-popover-inner-border-radius:calc(var(--bs-border-radius-lg) - var(--bs-border-width));--bs-popover-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-popover-header-padding-x:1rem;--bs-popover-header-padding-y:0.5rem;--bs-popover-header-font-size:1rem;--bs-popover-header-color:inherit;--bs-popover-header-bg:var(--bs-secondary-bg);--bs-popover-body-padding-x:1rem;--bs-popover-body-padding-y:1rem;--bs-popover-body-color:var(--bs-body-color);--bs-popover-arrow-width:1rem;--bs-popover-arrow-height:0.5rem;--bs-popover-arrow-border:var(--bs-popover-border-color);z-index:var(--bs-popover-zindex);display:block;max-width:var(--bs-popover-max-width);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-popover-font-size);word-wrap:break-word;background-color:var(--bs-popover-bg);background-clip:padding-box;border:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-radius:var(--bs-popover-border-radius)}.popover .popover-arrow{display:block;width:var(--bs-popover-arrow-width);height:var(--bs-popover-arrow-height)}.popover .popover-arrow::after,.popover .popover-arrow::before{position:absolute;display:block;content:"";border-color:transparent;border-style:solid;border-width:0}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow,.bs-popover-top>.popover-arrow{bottom:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::before,.bs-popover-top>.popover-arrow::after,.bs-popover-top>.popover-arrow::before{border-width:var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::before,.bs-popover-top>.popover-arrow::before{bottom:0;border-top-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::after,.bs-popover-top>.popover-arrow::after{bottom:var(--bs-popover-border-width);border-top-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow,.bs-popover-end>.popover-arrow{left:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::before,.bs-popover-end>.popover-arrow::after,.bs-popover-end>.popover-arrow::before{border-width:calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::before,.bs-popover-end>.popover-arrow::before{left:0;border-right-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::after,.bs-popover-end>.popover-arrow::after{left:var(--bs-popover-border-width);border-right-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow,.bs-popover-bottom>.popover-arrow{top:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::before,.bs-popover-bottom>.popover-arrow::after,.bs-popover-bottom>.popover-arrow::before{border-width:0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::before,.bs-popover-bottom>.popover-arrow::before{top:0;border-bottom-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::after,.bs-popover-bottom>.popover-arrow::after{top:var(--bs-popover-border-width);border-bottom-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=bottom] .popover-header::before,.bs-popover-bottom .popover-header::before{position:absolute;top:0;left:50%;display:block;width:var(--bs-popover-arrow-width);margin-left:calc(-.5 * var(--bs-popover-arrow-width));content:"";border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-header-bg)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow,.bs-popover-start>.popover-arrow{right:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::before,.bs-popover-start>.popover-arrow::after,.bs-popover-start>.popover-arrow::before{border-width:calc(var(--bs-popover-arrow-width) * .5) 0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::before,.bs-popover-start>.popover-arrow::before{right:0;border-left-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::after,.bs-popover-start>.popover-arrow::after{right:var(--bs-popover-border-width);border-left-color:var(--bs-popover-bg)}.popover-header{padding:var(--bs-popover-header-padding-y) var(--bs-popover-header-padding-x);margin-bottom:0;font-size:var(--bs-popover-header-font-size);color:var(--bs-popover-header-color);background-color:var(--bs-popover-header-bg);border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-top-left-radius:var(--bs-popover-inner-border-radius);border-top-right-radius:var(--bs-popover-inner-border-radius)}.popover-header:empty{display:none}.popover-body{padding:var(--bs-popover-body-padding-y) var(--bs-popover-body-padding-x);color:var(--bs-popover-body-color)}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner::after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion:reduce){.carousel-item{transition:none}}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block}.active.carousel-item-end,.carousel-item-next:not(.carousel-item-start){transform:translateX(100%)}.active.carousel-item-start,.carousel-item-prev:not(.carousel-item-end){transform:translateX(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item-next.carousel-item-start,.carousel-fade .carousel-item-prev.carousel-item-end,.carousel-fade .carousel-item.active{z-index:1;opacity:1}.carousel-fade .active.carousel-item-end,.carousel-fade .active.carousel-item-start{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion:reduce){.carousel-fade .active.carousel-item-end,.carousel-fade .active.carousel-item-start{transition:none}}.carousel-control-next,.carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;padding:0;color:#fff;text-align:center;background:0 0;border:0;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion:reduce){.carousel-control-next,.carousel-control-prev{transition:none}}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{display:inline-block;width:2rem;height:2rem;background-repeat:no-repeat;background-position:50%;background-size:100% 100%}.carousel-control-prev-icon{background-image:url(${W})}.carousel-control-next-icon{background-image:url(${G})}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:2;display:flex;justify-content:center;padding:0;margin-right:15%;margin-bottom:1rem;margin-left:15%}.carousel-indicators [data-bs-target]{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;padding:0;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border:0;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion:reduce){.carousel-indicators [data-bs-target]{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:1.25rem;left:15%;padding-top:1.25rem;padding-bottom:1.25rem;color:#fff;text-align:center}.carousel-dark .carousel-control-next-icon,.carousel-dark .carousel-control-prev-icon{filter:invert(1) grayscale(100)}.carousel-dark .carousel-indicators [data-bs-target]{background-color:#000}.carousel-dark .carousel-caption{color:#000}[data-bs-theme=dark] .carousel .carousel-control-next-icon,[data-bs-theme=dark] .carousel .carousel-control-prev-icon,[data-bs-theme=dark].carousel .carousel-control-next-icon,[data-bs-theme=dark].carousel .carousel-control-prev-icon{filter:invert(1) grayscale(100)}[data-bs-theme=dark] .carousel .carousel-indicators [data-bs-target],[data-bs-theme=dark].carousel .carousel-indicators [data-bs-target]{background-color:#000}[data-bs-theme=dark] .carousel .carousel-caption,[data-bs-theme=dark].carousel .carousel-caption{color:#000}.spinner-border,.spinner-grow{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-border-width:0.25em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem;--bs-spinner-border-width:0.2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem}@media (prefers-reduced-motion:reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed:1.5s}}.offcanvas,.offcanvas-lg,.offcanvas-md,.offcanvas-sm,.offcanvas-xl,.offcanvas-xxl{--bs-offcanvas-zindex:1045;--bs-offcanvas-width:400px;--bs-offcanvas-height:30vh;--bs-offcanvas-padding-x:1rem;--bs-offcanvas-padding-y:1rem;--bs-offcanvas-color:var(--bs-body-color);--bs-offcanvas-bg:var(--bs-body-bg);--bs-offcanvas-border-width:var(--bs-border-width);--bs-offcanvas-border-color:var(--bs-border-color-translucent);--bs-offcanvas-box-shadow:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-offcanvas-transition:transform 0.3s ease-in-out;--bs-offcanvas-title-line-height:1.5}@media (max-width:575.98px){.offcanvas-sm{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:575.98px) and (prefers-reduced-motion:reduce){.offcanvas-sm{transition:none}}@media (max-width:575.98px){.offcanvas-sm.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-sm.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-sm.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-sm.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-sm.show:not(.hiding),.offcanvas-sm.showing{transform:none}.offcanvas-sm.hiding,.offcanvas-sm.show,.offcanvas-sm.showing{visibility:visible}}@media (min-width:576px){.offcanvas-sm{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-sm .offcanvas-header{display:none}.offcanvas-sm .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:767.98px){.offcanvas-md{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:767.98px) and (prefers-reduced-motion:reduce){.offcanvas-md{transition:none}}@media (max-width:767.98px){.offcanvas-md.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-md.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-md.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-md.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-md.show:not(.hiding),.offcanvas-md.showing{transform:none}.offcanvas-md.hiding,.offcanvas-md.show,.offcanvas-md.showing{visibility:visible}}@media (min-width:768px){.offcanvas-md{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-md .offcanvas-header{display:none}.offcanvas-md .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:991.98px){.offcanvas-lg{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:991.98px) and (prefers-reduced-motion:reduce){.offcanvas-lg{transition:none}}@media (max-width:991.98px){.offcanvas-lg.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-lg.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-lg.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-lg.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-lg.show:not(.hiding),.offcanvas-lg.showing{transform:none}.offcanvas-lg.hiding,.offcanvas-lg.show,.offcanvas-lg.showing{visibility:visible}}@media (min-width:992px){.offcanvas-lg{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-lg .offcanvas-header{display:none}.offcanvas-lg .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:1199.98px){.offcanvas-xl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:1199.98px) and (prefers-reduced-motion:reduce){.offcanvas-xl{transition:none}}@media (max-width:1199.98px){.offcanvas-xl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-xl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-xl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xl.show:not(.hiding),.offcanvas-xl.showing{transform:none}.offcanvas-xl.hiding,.offcanvas-xl.show,.offcanvas-xl.showing{visibility:visible}}@media (min-width:1200px){.offcanvas-xl{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-xl .offcanvas-header{display:none}.offcanvas-xl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:1399.98px){.offcanvas-xxl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:1399.98px) and (prefers-reduced-motion:reduce){.offcanvas-xxl{transition:none}}@media (max-width:1399.98px){.offcanvas-xxl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-xxl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-xxl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xxl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xxl.show:not(.hiding),.offcanvas-xxl.showing{transform:none}.offcanvas-xxl.hiding,.offcanvas-xxl.show,.offcanvas-xxl.showing{visibility:visible}}@media (min-width:1400px){.offcanvas-xxl{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-xxl .offcanvas-header{display:none}.offcanvas-xxl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}.offcanvas{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}@media (prefers-reduced-motion:reduce){.offcanvas{transition:none}}.offcanvas.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas.show:not(.hiding),.offcanvas.showing{transform:none}.offcanvas.hiding,.offcanvas.show,.offcanvas.showing{visibility:visible}.offcanvas-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.offcanvas-backdrop.fade{opacity:0}.offcanvas-backdrop.show{opacity:.5}.offcanvas-header{display:flex;align-items:center;justify-content:space-between;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x)}.offcanvas-header .btn-close{padding:calc(var(--bs-offcanvas-padding-y) * .5) calc(var(--bs-offcanvas-padding-x) * .5);margin-top:calc(-.5 * var(--bs-offcanvas-padding-y));margin-right:calc(-.5 * var(--bs-offcanvas-padding-x));margin-bottom:calc(-.5 * var(--bs-offcanvas-padding-y))}.offcanvas-title{margin-bottom:0;line-height:var(--bs-offcanvas-title-line-height)}.offcanvas-body{flex-grow:1;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);overflow-y:auto}.placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.5}.placeholder.btn::before{display:inline-block;content:""}.placeholder-xs{min-height:.6em}.placeholder-sm{min-height:.8em}.placeholder-lg{min-height:1.2em}.placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.2}}.placeholder-wave{-webkit-mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,0.8) 75%,#000 95%);mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,0.8) 75%,#000 95%);-webkit-mask-size:200% 100%;mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{100%{-webkit-mask-position:-200% 0%;mask-position:-200% 0%}}.clearfix::after{display:block;clear:both;content:""}.text-bg-primary{color:#fff!important;background-color:RGBA(13,110,253,var(--bs-bg-opacity,1))!important}.text-bg-secondary{color:#fff!important;background-color:RGBA(108,117,125,var(--bs-bg-opacity,1))!important}.text-bg-success{color:#fff!important;background-color:RGBA(25,135,84,var(--bs-bg-opacity,1))!important}.text-bg-info{color:#000!important;background-color:RGBA(13,202,240,var(--bs-bg-opacity,1))!important}.text-bg-warning{color:#000!important;background-color:RGBA(255,193,7,var(--bs-bg-opacity,1))!important}.text-bg-danger{color:#fff!important;background-color:RGBA(220,53,69,var(--bs-bg-opacity,1))!important}.text-bg-light{color:#000!important;background-color:RGBA(248,249,250,var(--bs-bg-opacity,1))!important}.text-bg-dark{color:#fff!important;background-color:RGBA(33,37,41,var(--bs-bg-opacity,1))!important}.link-primary{color:RGBA(var(--bs-primary-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-primary-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-primary-rgb),var(--bs-link-underline-opacity,1))!important}.link-primary:focus,.link-primary:hover{color:RGBA(10,88,202,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(10,88,202,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(10,88,202,var(--bs-link-underline-opacity,1))!important}.link-secondary{color:RGBA(var(--bs-secondary-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-secondary-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-secondary-rgb),var(--bs-link-underline-opacity,1))!important}.link-secondary:focus,.link-secondary:hover{color:RGBA(86,94,100,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(86,94,100,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(86,94,100,var(--bs-link-underline-opacity,1))!important}.link-success{color:RGBA(var(--bs-success-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-success-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-success-rgb),var(--bs-link-underline-opacity,1))!important}.link-success:focus,.link-success:hover{color:RGBA(20,108,67,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(20,108,67,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(20,108,67,var(--bs-link-underline-opacity,1))!important}.link-info{color:RGBA(var(--bs-info-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-info-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-info-rgb),var(--bs-link-underline-opacity,1))!important}.link-info:focus,.link-info:hover{color:RGBA(61,213,243,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(61,213,243,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(61,213,243,var(--bs-link-underline-opacity,1))!important}.link-warning{color:RGBA(var(--bs-warning-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-warning-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-warning-rgb),var(--bs-link-underline-opacity,1))!important}.link-warning:focus,.link-warning:hover{color:RGBA(255,205,57,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(255,205,57,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(255,205,57,var(--bs-link-underline-opacity,1))!important}.link-danger{color:RGBA(var(--bs-danger-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-danger-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-danger-rgb),var(--bs-link-underline-opacity,1))!important}.link-danger:focus,.link-danger:hover{color:RGBA(176,42,55,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(176,42,55,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(176,42,55,var(--bs-link-underline-opacity,1))!important}.link-light{color:RGBA(var(--bs-light-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-light-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-light-rgb),var(--bs-link-underline-opacity,1))!important}.link-light:focus,.link-light:hover{color:RGBA(249,250,251,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(249,250,251,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(249,250,251,var(--bs-link-underline-opacity,1))!important}.link-dark{color:RGBA(var(--bs-dark-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-dark-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-dark-rgb),var(--bs-link-underline-opacity,1))!important}.link-dark:focus,.link-dark:hover{color:RGBA(26,30,33,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(26,30,33,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(26,30,33,var(--bs-link-underline-opacity,1))!important}.link-body-emphasis{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,1))!important}.link-body-emphasis:focus,.link-body-emphasis:hover{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity,.75))!important;-webkit-text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,0.75))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,0.75))!important}.focus-ring:focus{outline:0;box-shadow:var(--bs-focus-ring-x,0) var(--bs-focus-ring-y,0) var(--bs-focus-ring-blur,0) var(--bs-focus-ring-width) var(--bs-focus-ring-color)}.icon-link{display:inline-flex;gap:.375rem;align-items:center;-webkit-text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,0.5));text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,0.5));text-underline-offset:0.25em;-webkit-backface-visibility:hidden;backface-visibility:hidden}.icon-link>.bi{flex-shrink:0;width:1em;height:1em;fill:currentcolor;transition:.2s ease-in-out transform}@media (prefers-reduced-motion:reduce){.icon-link>.bi{transition:none}}.icon-link-hover:focus-visible>.bi,.icon-link-hover:hover>.bi{transform:var(--bs-icon-link-transform,translate3d(.25em,0,0))}.ratio{position:relative;width:100%}.ratio::before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio:100%}.ratio-4x3{--bs-aspect-ratio:75%}.ratio-16x9{--bs-aspect-ratio:56.25%}.ratio-21x9{--bs-aspect-ratio:42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}@media (min-width:576px){.sticky-sm-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:768px){.sticky-md-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:992px){.sticky-lg-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:1200px){.sticky-xl-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:1400px){.sticky-xxl-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption),.visually-hidden:not(caption){position:absolute!important}.stretched-link::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:""}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:1px;min-height:1em;background-color:currentcolor;opacity:.25}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.object-fit-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-none{-o-object-fit:none!important;object-fit:none!important}.opacity-0{opacity:0!important}.opacity-25{opacity:.25!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.opacity-100{opacity:1!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.overflow-x-auto{overflow-x:auto!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-x-visible{overflow-x:visible!important}.overflow-x-scroll{overflow-x:scroll!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overflow-y-visible{overflow-y:visible!important}.overflow-y-scroll{overflow-y:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-inline-grid{display:inline-grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:0 .5rem 1rem rgba(0,0,0,.15)!important}.shadow-sm{box-shadow:0 .125rem .25rem rgba(0,0,0,.075)!important}.shadow-lg{box-shadow:0 1rem 3rem rgba(0,0,0,.175)!important}.shadow-none{box-shadow:none!important}.focus-ring-primary{--bs-focus-ring-color:rgba(var(--bs-primary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-secondary{--bs-focus-ring-color:rgba(var(--bs-secondary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-success{--bs-focus-ring-color:rgba(var(--bs-success-rgb), var(--bs-focus-ring-opacity))}.focus-ring-info{--bs-focus-ring-color:rgba(var(--bs-info-rgb), var(--bs-focus-ring-opacity))}.focus-ring-warning{--bs-focus-ring-color:rgba(var(--bs-warning-rgb), var(--bs-focus-ring-opacity))}.focus-ring-danger{--bs-focus-ring-color:rgba(var(--bs-danger-rgb), var(--bs-focus-ring-opacity))}.focus-ring-light{--bs-focus-ring-color:rgba(var(--bs-light-rgb), var(--bs-focus-ring-opacity))}.focus-ring-dark{--bs-focus-ring-color:rgba(var(--bs-dark-rgb), var(--bs-focus-ring-opacity))}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:-webkit-sticky!important;position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translateX(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-0{border:0!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-start-0{border-left:0!important}.border-primary{--bs-border-opacity:1;border-color:rgba(var(--bs-primary-rgb),var(--bs-border-opacity))!important}.border-secondary{--bs-border-opacity:1;border-color:rgba(var(--bs-secondary-rgb),var(--bs-border-opacity))!important}.border-success{--bs-border-opacity:1;border-color:rgba(var(--bs-success-rgb),var(--bs-border-opacity))!important}.border-info{--bs-border-opacity:1;border-color:rgba(var(--bs-info-rgb),var(--bs-border-opacity))!important}.border-warning{--bs-border-opacity:1;border-color:rgba(var(--bs-warning-rgb),var(--bs-border-opacity))!important}.border-danger{--bs-border-opacity:1;border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity))!important}.border-light{--bs-border-opacity:1;border-color:rgba(var(--bs-light-rgb),var(--bs-border-opacity))!important}.border-dark{--bs-border-opacity:1;border-color:rgba(var(--bs-dark-rgb),var(--bs-border-opacity))!important}.border-black{--bs-border-opacity:1;border-color:rgba(var(--bs-black-rgb),var(--bs-border-opacity))!important}.border-white{--bs-border-opacity:1;border-color:rgba(var(--bs-white-rgb),var(--bs-border-opacity))!important}.border-primary-subtle{border-color:var(--bs-primary-border-subtle)!important}.border-secondary-subtle{border-color:var(--bs-secondary-border-subtle)!important}.border-success-subtle{border-color:var(--bs-success-border-subtle)!important}.border-info-subtle{border-color:var(--bs-info-border-subtle)!important}.border-warning-subtle{border-color:var(--bs-warning-border-subtle)!important}.border-danger-subtle{border-color:var(--bs-danger-border-subtle)!important}.border-light-subtle{border-color:var(--bs-light-border-subtle)!important}.border-dark-subtle{border-color:var(--bs-dark-border-subtle)!important}.border-1{border-width:1px!important}.border-2{border-width:2px!important}.border-3{border-width:3px!important}.border-4{border-width:4px!important}.border-5{border-width:5px!important}.border-opacity-10{--bs-border-opacity:0.1}.border-opacity-25{--bs-border-opacity:0.25}.border-opacity-50{--bs-border-opacity:0.5}.border-opacity-75{--bs-border-opacity:0.75}.border-opacity-100{--bs-border-opacity:1}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:3rem!important;margin-left:3rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:3rem!important;padding-left:3rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:3rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:3rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}.row-gap-0{row-gap:0!important}.row-gap-1{row-gap:.25rem!important}.row-gap-2{row-gap:.5rem!important}.row-gap-3{row-gap:1rem!important}.row-gap-4{row-gap:1.5rem!important}.row-gap-5{row-gap:3rem!important}.column-gap-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.font-monospace{font-family:var(--bs-font-monospace)!important}.fs-1{font-size:calc(1.375rem + 1.5vw)!important}.fs-2{font-size:calc(1.325rem + .9vw)!important}.fs-3{font-size:calc(1.3rem + .6vw)!important}.fs-4{font-size:calc(1.275rem + .3vw)!important}.fs-5{font-size:1.25rem!important}.fs-6{font-size:1rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-lighter{font-weight:lighter!important}.fw-light{font-weight:300!important}.fw-normal{font-weight:400!important}.fw-medium{font-weight:500!important}.fw-semibold{font-weight:600!important}.fw-bold{font-weight:700!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.5!important}.lh-lg{line-height:2!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-primary{--bs-text-opacity:1;color:rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important}.text-secondary{--bs-text-opacity:1;color:rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important}.text-success{--bs-text-opacity:1;color:rgba(var(--bs-success-rgb),var(--bs-text-opacity))!important}.text-info{--bs-text-opacity:1;color:rgba(var(--bs-info-rgb),var(--bs-text-opacity))!important}.text-warning{--bs-text-opacity:1;color:rgba(var(--bs-warning-rgb),var(--bs-text-opacity))!important}.text-danger{--bs-text-opacity:1;color:rgba(var(--bs-danger-rgb),var(--bs-text-opacity))!important}.text-light{--bs-text-opacity:1;color:rgba(var(--bs-light-rgb),var(--bs-text-opacity))!important}.text-dark{--bs-text-opacity:1;color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important}.text-black{--bs-text-opacity:1;color:rgba(var(--bs-black-rgb),var(--bs-text-opacity))!important}.text-white{--bs-text-opacity:1;color:rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important}.text-body{--bs-text-opacity:1;color:rgba(var(--bs-body-color-rgb),var(--bs-text-opacity))!important}.text-muted{--bs-text-opacity:1;color:var(--bs-secondary-color)!important}.text-black-50{--bs-text-opacity:1;color:rgba(0,0,0,.5)!important}.text-white-50{--bs-text-opacity:1;color:rgba(255,255,255,.5)!important}.text-body-secondary{--bs-text-opacity:1;color:var(--bs-secondary-color)!important}.text-body-tertiary{--bs-text-opacity:1;color:var(--bs-tertiary-color)!important}.text-body-emphasis{--bs-text-opacity:1;color:var(--bs-emphasis-color)!important}.text-reset{--bs-text-opacity:1;color:inherit!important}.text-opacity-25{--bs-text-opacity:0.25}.text-opacity-50{--bs-text-opacity:0.5}.text-opacity-75{--bs-text-opacity:0.75}.text-opacity-100{--bs-text-opacity:1}.text-primary-emphasis{color:var(--bs-primary-text-emphasis)!important}.text-secondary-emphasis{color:var(--bs-secondary-text-emphasis)!important}.text-success-emphasis{color:var(--bs-success-text-emphasis)!important}.text-info-emphasis{color:var(--bs-info-text-emphasis)!important}.text-warning-emphasis{color:var(--bs-warning-text-emphasis)!important}.text-danger-emphasis{color:var(--bs-danger-text-emphasis)!important}.text-light-emphasis{color:var(--bs-light-text-emphasis)!important}.text-dark-emphasis{color:var(--bs-dark-text-emphasis)!important}.link-opacity-10{--bs-link-opacity:0.1}.link-opacity-10-hover:hover{--bs-link-opacity:0.1}.link-opacity-25{--bs-link-opacity:0.25}.link-opacity-25-hover:hover{--bs-link-opacity:0.25}.link-opacity-50{--bs-link-opacity:0.5}.link-opacity-50-hover:hover{--bs-link-opacity:0.5}.link-opacity-75{--bs-link-opacity:0.75}.link-opacity-75-hover:hover{--bs-link-opacity:0.75}.link-opacity-100{--bs-link-opacity:1}.link-opacity-100-hover:hover{--bs-link-opacity:1}.link-offset-1{text-underline-offset:0.125em!important}.link-offset-1-hover:hover{text-underline-offset:0.125em!important}.link-offset-2{text-underline-offset:0.25em!important}.link-offset-2-hover:hover{text-underline-offset:0.25em!important}.link-offset-3{text-underline-offset:0.375em!important}.link-offset-3-hover:hover{text-underline-offset:0.375em!important}.link-underline-primary{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-primary-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-primary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-secondary{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-secondary-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-secondary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-success{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-success-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-success-rgb),var(--bs-link-underline-opacity))!important}.link-underline-info{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-info-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-info-rgb),var(--bs-link-underline-opacity))!important}.link-underline-warning{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-warning-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-warning-rgb),var(--bs-link-underline-opacity))!important}.link-underline-danger{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-danger-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-danger-rgb),var(--bs-link-underline-opacity))!important}.link-underline-light{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-light-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-light-rgb),var(--bs-link-underline-opacity))!important}.link-underline-dark{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-dark-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-dark-rgb),var(--bs-link-underline-opacity))!important}.link-underline{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-underline-opacity,1))!important}.link-underline-opacity-0{--bs-link-underline-opacity:0}.link-underline-opacity-0-hover:hover{--bs-link-underline-opacity:0}.link-underline-opacity-10{--bs-link-underline-opacity:0.1}.link-underline-opacity-10-hover:hover{--bs-link-underline-opacity:0.1}.link-underline-opacity-25{--bs-link-underline-opacity:0.25}.link-underline-opacity-25-hover:hover{--bs-link-underline-opacity:0.25}.link-underline-opacity-50{--bs-link-underline-opacity:0.5}.link-underline-opacity-50-hover:hover{--bs-link-underline-opacity:0.5}.link-underline-opacity-75{--bs-link-underline-opacity:0.75}.link-underline-opacity-75-hover:hover{--bs-link-underline-opacity:0.75}.link-underline-opacity-100{--bs-link-underline-opacity:1}.link-underline-opacity-100-hover:hover{--bs-link-underline-opacity:1}.bg-primary{--bs-bg-opacity:1;background-color:rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important}.bg-secondary{--bs-bg-opacity:1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important}.bg-success{--bs-bg-opacity:1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important}.bg-info{--bs-bg-opacity:1;background-color:rgba(var(--bs-info-rgb),var(--bs-bg-opacity))!important}.bg-warning{--bs-bg-opacity:1;background-color:rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important}.bg-danger{--bs-bg-opacity:1;background-color:rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important}.bg-light{--bs-bg-opacity:1;background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important}.bg-dark{--bs-bg-opacity:1;background-color:rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important}.bg-black{--bs-bg-opacity:1;background-color:rgba(var(--bs-black-rgb),var(--bs-bg-opacity))!important}.bg-white{--bs-bg-opacity:1;background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important}.bg-body{--bs-bg-opacity:1;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important}.bg-transparent{--bs-bg-opacity:1;background-color:transparent!important}.bg-body-secondary{--bs-bg-opacity:1;background-color:rgba(var(--bs-secondary-bg-rgb),var(--bs-bg-opacity))!important}.bg-body-tertiary{--bs-bg-opacity:1;background-color:rgba(var(--bs-tertiary-bg-rgb),var(--bs-bg-opacity))!important}.bg-opacity-10{--bs-bg-opacity:0.1}.bg-opacity-25{--bs-bg-opacity:0.25}.bg-opacity-50{--bs-bg-opacity:0.5}.bg-opacity-75{--bs-bg-opacity:0.75}.bg-opacity-100{--bs-bg-opacity:1}.bg-primary-subtle{background-color:var(--bs-primary-bg-subtle)!important}.bg-secondary-subtle{background-color:var(--bs-secondary-bg-subtle)!important}.bg-success-subtle{background-color:var(--bs-success-bg-subtle)!important}.bg-info-subtle{background-color:var(--bs-info-bg-subtle)!important}.bg-warning-subtle{background-color:var(--bs-warning-bg-subtle)!important}.bg-danger-subtle{background-color:var(--bs-danger-bg-subtle)!important}.bg-light-subtle{background-color:var(--bs-light-bg-subtle)!important}.bg-dark-subtle{background-color:var(--bs-dark-bg-subtle)!important}.bg-gradient{background-image:var(--bs-gradient)!important}.user-select-all{-webkit-user-select:all!important;-moz-user-select:all!important;user-select:all!important}.user-select-auto{-webkit-user-select:auto!important;-moz-user-select:auto!important;user-select:auto!important}.user-select-none{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--bs-border-radius-sm)!important}.rounded-2{border-radius:var(--bs-border-radius)!important}.rounded-3{border-radius:var(--bs-border-radius-lg)!important}.rounded-4{border-radius:var(--bs-border-radius-xl)!important}.rounded-5{border-radius:var(--bs-border-radius-xxl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--bs-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-0{border-top-left-radius:0!important;border-top-right-radius:0!important}.rounded-top-1{border-top-left-radius:var(--bs-border-radius-sm)!important;border-top-right-radius:var(--bs-border-radius-sm)!important}.rounded-top-2{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-3{border-top-left-radius:var(--bs-border-radius-lg)!important;border-top-right-radius:var(--bs-border-radius-lg)!important}.rounded-top-4{border-top-left-radius:var(--bs-border-radius-xl)!important;border-top-right-radius:var(--bs-border-radius-xl)!important}.rounded-top-5{border-top-left-radius:var(--bs-border-radius-xxl)!important;border-top-right-radius:var(--bs-border-radius-xxl)!important}.rounded-top-circle{border-top-left-radius:50%!important;border-top-right-radius:50%!important}.rounded-top-pill{border-top-left-radius:var(--bs-border-radius-pill)!important;border-top-right-radius:var(--bs-border-radius-pill)!important}.rounded-end{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.rounded-end-1{border-top-right-radius:var(--bs-border-radius-sm)!important;border-bottom-right-radius:var(--bs-border-radius-sm)!important}.rounded-end-2{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-3{border-top-right-radius:var(--bs-border-radius-lg)!important;border-bottom-right-radius:var(--bs-border-radius-lg)!important}.rounded-end-4{border-top-right-radius:var(--bs-border-radius-xl)!important;border-bottom-right-radius:var(--bs-border-radius-xl)!important}.rounded-end-5{border-top-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-right-radius:var(--bs-border-radius-xxl)!important}.rounded-end-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.rounded-end-pill{border-top-right-radius:var(--bs-border-radius-pill)!important;border-bottom-right-radius:var(--bs-border-radius-pill)!important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-0{border-bottom-right-radius:0!important;border-bottom-left-radius:0!important}.rounded-bottom-1{border-bottom-right-radius:var(--bs-border-radius-sm)!important;border-bottom-left-radius:var(--bs-border-radius-sm)!important}.rounded-bottom-2{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-3{border-bottom-right-radius:var(--bs-border-radius-lg)!important;border-bottom-left-radius:var(--bs-border-radius-lg)!important}.rounded-bottom-4{border-bottom-right-radius:var(--bs-border-radius-xl)!important;border-bottom-left-radius:var(--bs-border-radius-xl)!important}.rounded-bottom-5{border-bottom-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-left-radius:var(--bs-border-radius-xxl)!important}.rounded-bottom-circle{border-bottom-right-radius:50%!important;border-bottom-left-radius:50%!important}.rounded-bottom-pill{border-bottom-right-radius:var(--bs-border-radius-pill)!important;border-bottom-left-radius:var(--bs-border-radius-pill)!important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-0{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-start-1{border-bottom-left-radius:var(--bs-border-radius-sm)!important;border-top-left-radius:var(--bs-border-radius-sm)!important}.rounded-start-2{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-3{border-bottom-left-radius:var(--bs-border-radius-lg)!important;border-top-left-radius:var(--bs-border-radius-lg)!important}.rounded-start-4{border-bottom-left-radius:var(--bs-border-radius-xl)!important;border-top-left-radius:var(--bs-border-radius-xl)!important}.rounded-start-5{border-bottom-left-radius:var(--bs-border-radius-xxl)!important;border-top-left-radius:var(--bs-border-radius-xxl)!important}.rounded-start-circle{border-bottom-left-radius:50%!important;border-top-left-radius:50%!important}.rounded-start-pill{border-bottom-left-radius:var(--bs-border-radius-pill)!important;border-top-left-radius:var(--bs-border-radius-pill)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}.z-n1{z-index:-1!important}.z-0{z-index:0!important}.z-1{z-index:1!important}.z-2{z-index:2!important}.z-3{z-index:3!important}@media (min-width:576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.object-fit-sm-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-sm-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-sm-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-sm-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-sm-none{-o-object-fit:none!important;object-fit:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-inline-grid{display:inline-grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:3rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:3rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:3rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:3rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:3rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:3rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:3rem!important;padding-left:3rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:3rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:3rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:3rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:3rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:3rem!important}.row-gap-sm-0{row-gap:0!important}.row-gap-sm-1{row-gap:.25rem!important}.row-gap-sm-2{row-gap:.5rem!important}.row-gap-sm-3{row-gap:1rem!important}.row-gap-sm-4{row-gap:1.5rem!important}.row-gap-sm-5{row-gap:3rem!important}.column-gap-sm-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-sm-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-sm-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-sm-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-sm-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-sm-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.object-fit-md-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-md-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-md-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-md-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-md-none{-o-object-fit:none!important;object-fit:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-inline-grid{display:inline-grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:3rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:3rem!important;margin-left:3rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:3rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:3rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:3rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:3rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:3rem!important;padding-left:3rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:3rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:3rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:3rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:3rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:3rem!important}.row-gap-md-0{row-gap:0!important}.row-gap-md-1{row-gap:.25rem!important}.row-gap-md-2{row-gap:.5rem!important}.row-gap-md-3{row-gap:1rem!important}.row-gap-md-4{row-gap:1.5rem!important}.row-gap-md-5{row-gap:3rem!important}.column-gap-md-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-md-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-md-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-md-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-md-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-md-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.object-fit-lg-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-lg-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-lg-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-lg-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-lg-none{-o-object-fit:none!important;object-fit:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-inline-grid{display:inline-grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:3rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:3rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:3rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:3rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:3rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:3rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:3rem!important;padding-left:3rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:3rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:3rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:3rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:3rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:3rem!important}.row-gap-lg-0{row-gap:0!important}.row-gap-lg-1{row-gap:.25rem!important}.row-gap-lg-2{row-gap:.5rem!important}.row-gap-lg-3{row-gap:1rem!important}.row-gap-lg-4{row-gap:1.5rem!important}.row-gap-lg-5{row-gap:3rem!important}.column-gap-lg-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-lg-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-lg-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-lg-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-lg-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-lg-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.object-fit-xl-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-xl-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-xl-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-xl-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-xl-none{-o-object-fit:none!important;object-fit:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-inline-grid{display:inline-grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:3rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:3rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:3rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:3rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:3rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:3rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:3rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:3rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:3rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:3rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:3rem!important}.row-gap-xl-0{row-gap:0!important}.row-gap-xl-1{row-gap:.25rem!important}.row-gap-xl-2{row-gap:.5rem!important}.row-gap-xl-3{row-gap:1rem!important}.row-gap-xl-4{row-gap:1.5rem!important}.row-gap-xl-5{row-gap:3rem!important}.column-gap-xl-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-xl-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-xl-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-xl-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-xl-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-xl-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}}@media (min-width:1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.object-fit-xxl-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-xxl-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-xxl-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-xxl-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-xxl-none{-o-object-fit:none!important;object-fit:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-inline-grid{display:inline-grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:3rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:3rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:3rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:3rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:3rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:3rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:3rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:3rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:3rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:3rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:3rem!important}.row-gap-xxl-0{row-gap:0!important}.row-gap-xxl-1{row-gap:.25rem!important}.row-gap-xxl-2{row-gap:.5rem!important}.row-gap-xxl-3{row-gap:1rem!important}.row-gap-xxl-4{row-gap:1.5rem!important}.row-gap-xxl-5{row-gap:3rem!important}.column-gap-xxl-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-xxl-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-xxl-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-xxl-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-xxl-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-xxl-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}}@media (min-width:1200px){.fs-1{font-size:2.5rem!important}.fs-2{font-size:2rem!important}.fs-3{font-size:1.75rem!important}.fs-4{font-size:1.5rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-inline-grid{display:inline-grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}}`,""]);const J=O},911:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(8081),o=r.n(n),i=r(3645),s=r.n(i)()(o());s.push([e.id,'@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.regular-17pt{font-family:"Open Sans",sans-serif;font-size:17pt;font-weight:normal}.bold-20pt{font-family:"Open Sans",sans-serif;font-size:20pt;font-weight:bold}.bold-caps-16pt,.toggle-btn{font-family:"Open Sans",sans-serif;font-size:16pt;font-weight:bold;text-transform:uppercase}.bold-caps-17pt{font-family:"Open Sans",sans-serif;font-size:17pt;font-weight:bold;text-transform:uppercase}.bold-caps-20pt,.geant-header{font-family:"Open Sans",sans-serif;font-size:20pt;font-weight:bold;text-transform:uppercase}.bold-caps-30pt{font-family:"Open Sans",sans-serif;font-size:30pt;font-weight:bold;text-transform:uppercase}.dark-teal{color:#003f5f}.geant-header{color:#003f5f}.bold-grey-12pt{font-family:"Open Sans",sans-serif;font-size:12pt;font-weight:bold;color:#666}.sidebar-wrapper{display:flex;position:fixed;z-index:1;top:calc(50vh - 10%);pointer-events:none}.sidebar-wrapper .menu-items{padding:10px}.sidebar-wrapper>nav{visibility:visible;opacity:1;transition-property:margin-left,opacity;transition:.25s;margin-left:0;background-color:#fff;box-shadow:0 2px 10px rgba(0,0,0,.25);border:#f79e3b 2px solid;pointer-events:auto;width:28rem}.sidebar-wrapper>nav a{padding-top:.3rem;padding-left:1.5rem;text-decoration:none}.sidebar-wrapper>nav a:hover{color:#f79e3b;text-decoration:none}nav.no-sidebar{margin-left:-80%;visibility:hidden;opacity:0}.toggle-btn{background-color:#f79e3b;color:#fff;height:3.5rem;cursor:pointer;padding-left:1rem;pointer-events:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.toggle-btn-wrapper{padding:.5rem;padding-top:.7rem}.btn-nav-box{--bs-btn-color: rgb(0, 63, 95);--bs-btn-border-color: #6c757d;--bs-btn-border-radius: none;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(247, 158, 59);--bs-btn-active-border-color: rgb(247, 158, 59);--bs-btn-hover-color: rgb(0, 63, 95);--bs-btn-hover-bg: rgb(247, 158, 59);--bs-btn-hover-border-color: rgb(247, 158, 59);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;border:2px solid #f79e3b}.btn-login{--bs-btn-color: #fff;--bs-btn-border-color: #6c757d;--bs-btn-border-radius: none;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(247, 158, 59);--bs-btn-active-border-color: rgb(247, 158, 59);--bs-btn-hover-color: rgb(0, 63, 95);--bs-btn-hover-bg: rgb(247, 158, 59);--bs-btn-hover-border-color: rgb(247, 158, 59);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;border:2px solid #f79e3b}.rounded-border{border-radius:25px;border:1px solid #b9bec5}.card{--bs-card-border-color: ""}.grow,.grey-container{display:flex;flex-direction:column;flex:1;padding-bottom:4%}.grey-container{max-width:100vw;background-color:#eaedf3}.wordwrap{max-width:60rem;word-wrap:break-word}.center{display:flex;align-items:center;justify-content:center;flex-direction:column}.center-text{display:flex;align-items:center;justify-content:center;padding-bottom:2%;flex-direction:column}.compendium-data-header{background-color:#fabe66;color:#fff;padding:10px}.compendium-data-banner{background-color:#fce7c9;color:#003f5f;padding:5px;padding-top:25px}.collapsible-box{margin:1rem;border:2px solid #f79e3b;padding:10px;width:80rem;max-width:50vw}.collapsible-content{display:flex}.collapsible-column{flex-basis:100%;padding:1rem}.link-text,.link-text-underline{text-decoration:none;color:#003753}.link-text:hover,.link-text-underline:hover{color:#003753}.link-text-underline:hover{text-decoration:underline}.page-footer{min-height:100px;background-color:#3b536b;color:#fff}.footer-link{color:#fff;text-decoration:none}.footer-link:hover{color:#fff;text-decoration:underline}.filter-dropdown-item{padding-left:1rem;cursor:pointer}.filter-dropdown-item:hover{background-color:var(--bs-dropdown-link-hover-bg)}.nren-checkbox[type=checkbox]{border-radius:0;cursor:pointer}.nren-checkbox:checked{background-color:#3b536b;border-color:#3b536b}.nren-checkbox:focus:not(:focus-visible){box-shadow:none;border-color:rgba(0,0,0,.25)}.nren-checkbox-label{cursor:pointer}.btn-compendium{--bs-btn-color: #fff;--bs-btn-bg: #003753;--bs-btn-border-color: #003753;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #3b536b;--bs-btn-hover-border-color: #3b536b;--bs-btn-focus-shadow-rgb: 49, 132, 253;--bs-btn-active-color: #f5f5f5;--bs-btn-active-bg: #3b536b;--bs-btn-active-border-color: #003753;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #0d6efd;--bs-btn-disabled-border-color: #0d6efd;--bs-btn-border-radius: none}.btn-compendium-year,.btn-compendium-year-8,.btn-compendium-year-7,.btn-compendium-year-6,.btn-compendium-year-5,.btn-compendium-year-4,.btn-compendium-year-3,.btn-compendium-year-2,.btn-compendium-year-1,.btn-compendium-year-0{--bs-btn-color: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #6c757d;--bs-btn-hover-border-color: #6c757d;--bs-btn-focus-shadow-rgb: 108, 117, 125;--bs-btn-active-color: #fff;--bs-btn-active-bg: #6c757d;--bs-btn-active-border-color: #6c757d;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #6c757d;--bs-gradient: none;--bs-btn-border-radius: none}.color-of-the-year-0{background-color:#fd7f6f}.btn-compendium-year-0{--bs-btn-active-bg: #fd7f6f}.color-of-the-year-1{background-color:#7eb0d5}.btn-compendium-year-1{--bs-btn-active-bg: #7eb0d5}.color-of-the-year-2{background-color:#ffee65}.btn-compendium-year-2{--bs-btn-active-bg: #ffee65}.color-of-the-year-3{background-color:#bd7ebe}.btn-compendium-year-3{--bs-btn-active-bg: #bd7ebe}.color-of-the-year-4{background-color:#beb9db}.btn-compendium-year-4{--bs-btn-active-bg: #beb9db}.color-of-the-year-5{background-color:#b2e061}.btn-compendium-year-5{--bs-btn-active-bg: #b2e061}.color-of-the-year-6{background-color:#ffb55a}.btn-compendium-year-6{--bs-btn-active-bg: #ffb55a}.color-of-the-year-7{background-color:#fdcce5}.btn-compendium-year-7{--bs-btn-active-bg: #fdcce5}.color-of-the-year-8{background-color:#8bd3c7}.btn-compendium-year-8{--bs-btn-active-bg: #8bd3c7}.color-of-the-year-blank{background-color:rgba(0,0,0,0)}.charging-struct-table td{text-align:center}.charging-struct-table td{text-align:center}.fit-max-content{min-width:max-content}.table-bg-highlighted tr:nth-child(even){background-color:rgba(102,121,139,.178)}.table-bg-highlighted tr:hover{background-color:rgba(102,121,139,.521)}.table-bg-highlighted li{list-style-type:square;list-style-position:inside}.compendium-table{border-collapse:separate;border-spacing:1.2em 0px}.table .blue-column,.table .nren-column{background-color:#e5f4f9}.table .orange-column,.table .year-column{background-color:#fdf2df}.nren-column{min-width:15%}.year-column{min-width:10%}.dotted-border{position:relative}.dotted-border::after{pointer-events:none;display:block;position:absolute;content:"";left:-20px;right:-10px;top:0;bottom:0;border-top:4px dotted #a7a7a7}.section-container{display:flex;margin-right:2.8em;float:right}.color-of-badge-0{background-color:rgb(157, 40, 114)}.color-of-badge-1{background-color:rgb(241, 224, 79)}.color-of-badge-2{background-color:rgb(219, 42, 76)}.color-of-badge-3{background-color:rgb(237, 141, 24)}.color-of-badge-4{background-color:rgb(137, 166, 121)}.color-of-badge-blank{background-color:rgba(0,0,0,0)}.nav-link-entry{border-radius:2px;font-family:"Open Sans",sans-serif;font-size:.9rem;font-weight:600;text-decoration:none;color:#b0cde1;padding:10px}.nav-link{display:flex;-webkit-box-align:center;align-items:center;height:60px}.nav-link .nav-link-entry:hover{color:#003753;background-color:#b0cde1}.nav-link ul{line-height:1.3;text-transform:uppercase;list-style:none}.nav-link ul li{float:left}.nav-wrapper{display:flex;-webkit-box-align:center;align-items:center;height:60px}.header-nav{width:100%}.header-nav img{float:left;margin-right:15px}.header-nav ul{line-height:1.3;text-transform:uppercase;list-style:none}.header-nav ul li{float:left}.header-nav ul li a{border-radius:2px;float:left;font-family:"Open Sans",sans-serif;font-size:.9rem;font-weight:600;text-decoration:none;color:#b0cde1;padding:10px}.header-nav ul li a:hover{color:#003753;background-color:#b0cde1}.external-page-nav-bar{background-color:#003753;color:#b0cde1;height:60px}.app{display:flex;flex-direction:column;min-height:100vh}.hidden-checkbox-labels .sv-checkbox .sv-item__control-label{visibility:hidden}.survey-title{color:#2db394}.survey-description{color:#262261;font-weight:400}.survey-title:after{content:"";display:inline-block;width:.1rem;height:1em;background-color:#2db394;margin:0 .5rem;vertical-align:middle}.survey-title-nren{color:#262261}#sv-nav-complete{width:0px;height:0px;overflow:hidden;visibility:hidden}.sv-header-flex{display:flex;justify-content:space-between;align-items:center;border-radius:2rem;color:#2db394;font-weight:bold;padding-left:1rem !important}.sv-container-modern__title{display:none}.sv-title.sv-page__title{font-size:1.5rem;font-weight:bold;color:#2db394;margin-bottom:.25rem}.sv-title.sv-panel__title{color:#262261}.sv-description{font-weight:bold;color:#262261}.sv-text{border-bottom:.2rem dotted var(--text-border-color, #d4d4d4)}.verification{min-height:1.5rem;order:2;margin-left:auto;display:inline-block;border-radius:1rem;padding:0 1rem;margin-top:.25rem;margin-bottom:.25rem;margin-right:.4rem;box-shadow:0 0 2px 2px #2db394}.verification-required{font-size:.85rem;font-weight:bold;text-transform:uppercase;background-color:#fff}.verification-ok{color:#fff;font-size:.85rem;font-weight:bold;text-transform:uppercase;background-color:#2db394;pointer-events:none}.sv-action-bar-item.verification.verification-ok:hover{cursor:auto;background-color:#2db394}.survey-content,.survey-progress{padding-right:5rem;padding-left:5rem}.survey-container{margin-top:2.5rem;max-width:100vw}@media screen and (min-width: 1441px){.survey-container{max-width:65vw}}',""]);const a=s},6795:(e,t,r)=>{"use strict";r.d(t,{Z:()=>_});var n=r(8081),o=r.n(n),i=r(3645),s=r.n(i),a=r(1667),l=r.n(a),u=new URL(r(6704),r.b),c=new URL(r(3344),r.b),p=new URL(r(1163),r.b),d=new URL(r(8860),r.b),h=new URL(r(4154),r.b),f=new URL(r(937),r.b),m=new URL(r(8484),r.b),g=s()(o()),b=l()(u),y=l()(c),v=l()(p),x=l()(d),w=l()(h),C=l()(f),P=l()(m);g.push([e.id,`/*!\n * surveyjs - Survey JavaScript library v1.9.90\n * Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/\n * License: MIT (http://www.opensource.org/licenses/mit-license.php)\n */\n@font-face{font-family:"Raleway";font-style:normal;font-weight:400;src:local("Raleway"),local("Raleway-Regular"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyCMIT5lu.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Raleway";font-style:normal;font-weight:400;src:local("Raleway"),local("Raleway-Regular"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyC0ITw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Raleway";font-style:normal;font-weight:700;src:local("Raleway Bold"),local("Raleway-Bold"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqhPAMif.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Raleway";font-style:normal;font-weight:700;src:local("Raleway Bold"),local("Raleway-Bold"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqZPAA.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Raleway";font-style:normal;font-weight:400;src:local("Raleway"),local("Raleway-Regular"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyC0ISQ.woff) format("woff")}@font-face{font-family:"Raleway";font-style:normal;font-weight:700;src:local("Raleway Bold"),local("Raleway-Bold"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqZPBg.woff) format("woff")}.sv-dragdrop-movedown{transform:translate(0, 0);animation:svdragdropmovedown .1s;animation-timing-function:ease-in-out}@keyframes svdragdropmovedown{0%{transform:translate(0, -50px)}100%{transform:translate(0, 0)}}.sv-dragdrop-moveup{transform:translate(0, 0);animation:svdragdropmoveup .1s;animation-timing-function:ease-in-out}@keyframes svdragdropmoveup{0%{transform:translate(0, 50px)}100%{transform:translate(0, 0)}}sv-popup{display:block;position:absolute;z-index:-1}.sv-popup{position:fixed;left:0;top:0;width:100vw;outline:none;z-index:2000;height:100vh}.sv-dropdown-popup{height:0}.sv-popup__container{box-shadow:0px 2px 6px rgba(0,0,0,.1);position:absolute;padding:0}.sv-popup__shadow{width:100%;height:100%;border-radius:calc(2 * var(--sjs-corner-radius, 4px))}.sv-popup__body-content{background-color:var(--background, #fff);border-radius:calc(1 * var(--sjs-corner-radius, 4px));width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:column;max-height:90vh;max-width:100vw}.sv-popup.sv-popup--modal{display:flex;align-items:center;justify-content:center;background-color:var(--background-semitransparent, rgba(144, 144, 144, 0.5));padding:calc(11 * var(--base-unit, 8px)) calc(15 * var(--base-unit, 8px));box-sizing:border-box}.sv-popup.sv-popup--modal .sv-popup__container{position:static}.sv-popup.sv-popup--modal .sv-popup__body-content{padding:calc(4 * var(--base-unit, 8px));height:auto}.sv-popup--overlay.sv-popup--overlay{width:100%;height:var(--sv-popup-overlay-height, 100vh)}.sv-popup--overlay.sv-popup--overlay .sv-popup__container{background:var(--background-semitransparent, rgba(144, 144, 144, 0.5));max-width:100vw;max-height:calc(var(--sv-popup-overlay-height, 100vh) - 1 * var(--base-unit, 8px));height:calc(var(--sv-popup-overlay-height, 100vh) - 1 * var(--base-unit, 8px));width:100%;padding-top:calc(2 * var(--base-unit, 8px));border:unset}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-content{max-height:var(--sv-popup-overlay-height, 100vh);max-width:100vw;border-radius:calc(4 * var(--sjs-corner-radius, 4px)) calc(4 * var(--sjs-corner-radius, 4px)) 0px 0px;background:var(--background, #fff);box-shadow:0px calc(1 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) rgba(0,0,0,.1);padding:calc(3 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px));height:calc(100% - (1 * var(--base-unit, 8px)))}.sv-popup--overlay.sv-popup--overlay .sv-popup__scrolling-content{height:calc(100% - 10*var(--base-unit, 8px))}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-footer{margin-top:calc(2 * var(--base-unit, 8px))}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-footer .sv-action-bar{width:100%}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-footer .sv-action{width:100%}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-footer-item{width:100%}.sv-popup--overlay.sv-popup--overlay .sv-popup__button{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:2px solid var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff))}.sv-popup--modal .sv-popup__scrolling-content{padding:2px;margin:-2px}.sv-popup__scrolling-content{height:100%;overflow:auto;display:flex;flex-direction:column}.sv-popup__scrolling-content::-webkit-scrollbar,.sv-popup__scrolling-content *::-webkit-scrollbar{height:6px;width:6px;background-color:var(--background-dim, #f3f3f3)}.sv-popup__scrolling-content::-webkit-scrollbar-thumb,.sv-popup__scrolling-content *::-webkit-scrollbar-thumb{background:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)))}.sv-popup__content{min-width:100%;height:100%;display:flex;flex-direction:column;min-height:0}.sv-popup--show-pointer.sv-popup--top .sv-popup__pointer{transform:translate(calc(-1 * var(--base-unit, 8px))) rotate(180deg)}.sv-popup--show-pointer.sv-popup--bottom .sv-popup__pointer{transform:translate(calc(-1 * var(--base-unit, 8px)), calc(-1 * var(--base-unit, 8px)))}.sv-popup--show-pointer.sv-popup--right{transform:translate(calc(1 * var(--base-unit, 8px)))}.sv-popup--show-pointer.sv-popup--right .sv-popup__pointer{transform:translate(-12px, -4px) rotate(-90deg)}.sv-popup--show-pointer.sv-popup--left{transform:translate(calc(-1 * var(--base-unit, 8px)))}.sv-popup--show-pointer.sv-popup--left .sv-popup__pointer{transform:translate(-4px, -4px) rotate(90deg)}.sv-popup__pointer{display:block;position:absolute}.sv-popup__pointer:after{content:" ";display:block;width:0;height:0;border-left:calc(1 * var(--base-unit, 8px)) solid rgba(0,0,0,0);border-right:calc(1 * var(--base-unit, 8px)) solid rgba(0,0,0,0);border-bottom:calc(1 * var(--base-unit, 8px)) solid var(--background, #fff);align-self:center}.sv-popup__body-header{font-family:Open Sans;font-size:calc(1.5 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(4 * var(--base-unit, 8px));font-style:normal;font-weight:700;margin-bottom:calc(2 * var(--base-unit, 8px));color:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-popup__body-footer{display:flex;margin-top:calc(4 * var(--base-unit, 8px))}.sv-popup__body-footer .sv-action-bar{gap:calc(1.5 * var(--base-unit, 8px))}.sv-popup__button{margin:calc(0.25 * var(--base-unit, 8px))}.sv-popup--modal .sv-list__filter,.sv-popup--overlay .sv-list__filter{padding-top:calc(1 * var(--base-unit, 8px))}.sv-popup--modal .sv-list__filter-icon,.sv-popup--overlay .sv-list__filter-icon{top:calc(2.5 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay{z-index:2001;padding:0}.sv-dropdown-popup.sv-popup--overlay .sv-popup__body-content{padding:0;border-radius:0}.sv-dropdown-popup.sv-popup--overlay .sv-popup__body-footer .sv-action-bar .sv-action{width:auto}.sv-dropdown-popup.sv-popup--overlay .sv-popup__button{background-color:rgba(0,0,0,0);color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:none;box-shadow:none;padding:calc(1 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px));border-radius:calc(12.5 * var(--base-unit, 8px));margin:0}.sv-dropdown-popup.sv-popup--overlay .sv-popup__container{max-height:calc(var(--sv-popup-overlay-height, 100vh));height:calc(var(--sv-popup-overlay-height, 100vh));padding-top:0}.sv-dropdown-popup.sv-popup--overlay .sv-popup__body-content{height:calc(var(--sv-popup-overlay-height, 100vh))}.sv-dropdown-popup.sv-popup--overlay .sv-popup__body-footer{background-color:var(--background-dim-light, #f9f9f9);margin-top:0;padding-top:calc(0.5 * var(--base-unit, 8px));padding-bottom:calc(0.5 * var(--base-unit, 8px));border-top:1px solid var(--sjs-border-light, var(--border-light, #eaeaea))}.sv-dropdown-popup.sv-popup--overlay .sv-popup__scrolling-content{height:calc(100% - 6*var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-icon .sv-svg-icon{width:calc(2 * var(--base-unit, 8px));height:calc(2 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__container{padding:0}.sv-dropdown-popup.sv-popup--overlay .sv-list{flex-grow:1;padding:calc(0.5 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter{display:flex;align-items:center;padding:calc(0.5 * var(--base-unit, 8px)) calc(1 * var(--base-unit, 8px)) calc(0.5 * var(--base-unit, 8px)) calc(2.5 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-icon{position:static;top:calc(1.5 * var(--base-unit, 8px));height:calc(2 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__empty-container{display:flex;flex-direction:column;justify-content:center;flex-grow:1;padding:calc(1 * var(--base-unit, 8px)) calc(0.5 * var(--base-unit, 8px));background-color:var(--background, #fff)}.sv-dropdown-popup.sv-popup--overlay .sv-popup__button:disabled{pointer-events:none;color:var(--sjs-general-forecolor, var(--foreground, #161616));opacity:.25}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-clear-button{height:calc(3 * var(--base-unit, 8px));width:calc(3 * var(--base-unit, 8px));padding:calc(0.5 * var(--base-unit, 8px));appearance:none;border:none;border-radius:100%;background-color:rgba(0,0,0,0)}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-clear-button svg{height:calc(2 * var(--base-unit, 8px));width:calc(2 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-clear-button svg use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-dropdown-popup.sv-popup--overlay .sv-list__input{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(3 * var(--base-unit, 8px));font-family:var(--font-family);padding:calc(0.5 * var(--base-unit, 8px)) 0 calc(0.5 * var(--base-unit, 8px)) calc(1 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__item:hover .sv-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item:focus .sv-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item--focused .sv-list__item-body{background:var(--background, #fff)}.sv-dropdown-popup.sv-popup--overlay .sv-list__item:hover.sv-list__item--selected .sv-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item:focus.sv-list__item--selected .sv-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item--focused.sv-list__item--selected .sv-list__item-body{background:var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff));font-weight:600}.sv-dropdown-popup.sv-popup--overlay .sv-list__item:hover.sv-list__item--selected .sd-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item:focus.sv-list__item--selected .sd-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item--focused.sv-list__item--selected .sd-list__item-body{background:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)));color:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-popup__body-content{--sv-popup-overlay-max-height: calc(var(--sv-popup-overlay-height, 100vh) - var(--base-unit, 8px) * 8);--sv-popup-overlay-max-width: calc(100% - var(--base-unit, 8px) * 8);position:absolute;transform:translate(-50%, -50%);left:50%;top:50%;max-height:var(--sv-popup-overlay-max-height);min-height:min(var(--sv-popup-overlay-max-height),31 * var(--base-unit, 8px));height:auto;width:auto;min-width:min(40 * var(--base-unit, 8px),var(--sv-popup-overlay-max-width));max-width:var(--sv-popup-overlay-max-width);border-radius:calc(1 * var(--sjs-corner-radius, 4px));overflow:hidden;margin:0}.sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-popup__content,.sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-popup__scrolling-content,.sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-list__container{flex-grow:1}.sv_progress-buttons__container-center{text-align:center}.sv_progress-buttons__container{display:inline-block;font-size:0;width:100%;max-width:1100px;white-space:nowrap;overflow:hidden}.sv_progress-buttons__image-button-left{display:inline-block;vertical-align:top;margin-top:22px;font-size:calc(0.875 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));width:16px;height:16px;cursor:pointer;background-image:url(${b})}.sv_progress-buttons__image-button-right{display:inline-block;vertical-align:top;margin-top:22px;font-size:calc(0.875 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));width:16px;height:16px;cursor:pointer;background-image:url(${y})}.sv_progress-buttons__image-button--hidden{visibility:hidden}.sv_progress-buttons__list-container{max-width:calc(100% - 36px);display:inline-block;overflow:hidden}.sv_progress-buttons__list{display:inline-block;width:max-content;padding-left:28px;padding-right:28px;margin-top:14px;margin-bottom:14px}.sv_progress-buttons__list li{width:138px;font-size:calc(0.875 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));font-family:var(--font-family, var(--font-family));position:relative;text-align:center;vertical-align:top;display:inline-block}.sv_progress-buttons__list li:before{width:24px;height:24px;content:"";line-height:30px;display:block;margin:0 auto 10px auto;border:3px solid;border-radius:50%;box-sizing:content-box;cursor:pointer}.sv_progress-buttons__list li:after{width:73%;height:3px;content:"";position:absolute;top:15px;left:-36.5%}.sv_progress-buttons__list li:first-child:after{content:none}.sv_progress-buttons__list .sv_progress-buttons__page-title{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:bold}.sv_progress-buttons__list .sv_progress-buttons__page-description{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv_progress-buttons__list li.sv_progress-buttons__list-element--nonclickable:before{cursor:not-allowed}.sv_progress-toc{padding:8px;max-width:336px;height:100%;background:#fff;box-sizing:border-box;min-width:256px}.sv_progress-toc .sv-list__item.sv-list__item--selected .sv-list__item-body{background:rgba(25,179,148,.1);color:#161616;font-weight:400}.sv_progress-toc .sv-list__item span{white-space:break-spaces}.sv_progress-toc .sv-list__item-body{padding-inline-start:16px;padding-inline-end:16px;border-radius:calc(1 * var(--sjs-corner-radius, 4px));padding-top:12px;padding-bottom:12px}.sv_progress-toc--left{border-right:1px solid #d6d6d6}.sv_progress-toc--right{border-left:1px solid #d6d6d6}.sv-container-modern{color:var(--text-color, #404040);font-size:var(--font-size, var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));font-family:var(--font-family, var(--font-family));margin-bottom:calc(10 * var(--base-unit, 8px))}.sv-container-modern__title{padding-left:.55em;color:var(--main-color, #1ab394);padding-top:5em;padding-bottom:.9375em}@media only screen and (min-width: 1000px){.sv-container-modern__title{margin-right:5%;margin-left:5%}}@media only screen and (max-width: 1000px){.sv-container-modern__title{margin-right:10px;margin-left:10px}}.sv-container-modern__title h3{margin:0;font-size:1.875em}.sv-container-modern__title h5{margin:0}.sv-container-modern__close{clear:right}.sv-container-modern fieldset{border:none;padding:0;margin:0}.sv-container-modern legend{border:none;padding:0;margin:0}.sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar{margin-top:2em}@media only screen and (min-width: 1000px){.sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar{margin-right:5%;margin-left:5%}}@media only screen and (max-width: 1000px){.sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar{margin-right:10px;margin-left:10px}}.sv-body__timer{padding:0 calc(1 * var(--base-unit, 8px));box-sizing:border-box}.sv-body__progress{margin-bottom:4.5em}.sv-body__progress:not(:first-child){margin-top:2.5em}.sv-root-modern{width:100%}.sv-page__title{margin:0;margin-bottom:1.333em;font-size:1.875em;padding-left:.293em}.sv-page__description{min-height:2.8em;font-size:1em;padding-left:.55em}.sv-page__title+.sv-page__description{margin-top:-2.8em}.sv-panel{box-sizing:border-box;width:100%}.sv-panel__title{font-size:1.25em;margin:0;padding:0;padding-bottom:.1em;padding-left:.44em;padding-right:.44em;position:relative}.sv-panel__footer{margin:0;padding:1em .44em 1em 0}.sv-panel__description{padding-left:.55em}.sv-panel__title--expandable{cursor:pointer;display:flex;padding-right:24px;align-items:center}.sv-panel__title--expandable:after{content:"";display:block;background-image:url(${v});background-repeat:no-repeat;background-position:center center;background-size:10px 12px;width:24px;height:24px;position:absolute;right:0}.sv-panel__title--expandable.sv-panel__title--expanded:after{transform:rotate(180deg)}.sv-panel__icon{outline:none}.sv-panel__icon:before{content:"";display:inline-block;background-image:url(${v});background-repeat:no-repeat;background-position:center center;height:.5em;width:.6em;margin-left:1.5em;vertical-align:middle}.sv-panel__icon--expanded:before{transform:rotate(180deg)}.sv-panel .sv-question__title{font-size:1em;padding-left:.55em}.sv-panel__content:not(:first-child){margin-top:.75em}.sv-panel .sv-row:not(:last-child){padding-bottom:1.875em}.sv-panel__title--error{background-color:var(--error-background-color, rgba(213, 41, 1, 0.2))}.sv-paneldynamic__progress-container{position:relative;margin-left:.75em;margin-right:250px;margin-top:20px}.sv-paneldynamic__add-btn{background-color:var(--add-button-color, #1948b3);float:right;margin-top:-18px}[dir=rtl] .sv-paneldynamic__add-btn,[style*="direction:rtl"] .sv-paneldynamic__add-btn,[style*="direction: rtl"] .sv-paneldynamic__add-btn{float:left}.sv-paneldynamic__add-btn--list-mode{float:none;margin-top:1em}.sv-paneldynamic__remove-btn{background-color:var(--remove-button-color, #ff1800);margin-top:1.25em}.sv-paneldynamic__remove-btn--right{margin-top:0;margin-left:1.25em}.sv-paneldynamic__prev-btn,.sv-paneldynamic__next-btn{box-sizing:border-box;display:inline-block;fill:var(--text-color, #404040);cursor:pointer;width:.7em;top:-0.28em;position:absolute}.sv-paneldynamic__prev-btn svg,.sv-paneldynamic__next-btn svg{display:block;height:.7em;width:.7em}.sv-paneldynamic__prev-btn{left:-1.3em;transform:rotate(90deg)}.sv-paneldynamic__next-btn{right:-1.3em;transform:rotate(270deg)}.sv-paneldynamic__prev-btn--disabled,.sv-paneldynamic__next-btn--disabled{fill:var(--disable-color, #dbdbdb);cursor:auto}.sv-paneldynamic__progress-text{color:var(--progress-text-color, #9d9d9d);font-weight:bold;font-size:.87em;margin-top:.69em;margin-left:1em}.sv-paneldynamic__separator{border:none;margin:0}.sv-paneldynamic__progress--top{margin-bottom:1em}.sv-paneldynamic__progress--bottom{margin-top:1em}.sv-paneldynamic__panel-wrapper~.sv-paneldynamic__panel-wrapper{padding-top:2.5em}.sv-paneldynamic__panel-wrapper--in-row{display:flex;flex-direction:row;align-items:center}@supports(display: flex){.sv-row{display:flex;flex-wrap:wrap}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.sv-row>.sv-row__panel,.sv-row__question:not(:last-child){float:left}}@media only screen and (-ms-high-contrast: active)and (max-width: 600px),only screen and (-ms-high-contrast: none)and (max-width: 600px){.sv-row>.sv-row__panel,.sv-row__question:not(:last-child){padding-bottom:2.5em;float:none}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){[dir=rtl] .sv-row__question:not(:last-child),[style*="direction:rtl"] .sv-row__question:not(:last-child),[style*="direction: rtl"] .sv-row__question:not(:last-child){float:right}}@media only screen and (-ms-high-contrast: active)and (max-width: 6000px),only screen and (-ms-high-contrast: none)and (max-width: 6000px){.sv-row__question--small:only-child{max-width:3000px}}@media only screen and (-ms-high-contrast: active)and (max-width: 3000px),only screen and (-ms-high-contrast: none)and (max-width: 3000px){.sv-row__question--small:only-child{max-width:1200px}}@media only screen and (-ms-high-contrast: active)and (max-width: 2000px),only screen and (-ms-high-contrast: none)and (max-width: 2000px){.sv-row__question--small:only-child{max-width:700px}}@media only screen and (-ms-high-contrast: active)and (max-width: 1000px),only screen and (-ms-high-contrast: none)and (max-width: 1000px){.sv-row__question--small:only-child{max-width:500px}}@media only screen and (-ms-high-contrast: active)and (max-width: 500px),only screen and (-ms-high-contrast: none)and (max-width: 500px){.sv-row__question--small:only-child{max-width:300px}}@media only screen and (-ms-high-contrast: active)and (max-width: 600px),only screen and (-ms-high-contrast: none)and (max-width: 600px){.sv-row>.sv-row__panel,.sv-row__question{width:100% !important;padding-right:0 !important}}.sv-row>.sv-row__panel,.sv-row__question{vertical-align:top;white-space:normal}.sv-row__question:first-child:last-child{flex:none !important}.sv-row:not(:last-child){padding-bottom:2.5em}.sv-question{overflow:auto;box-sizing:border-box;font-family:inherit;padding-left:var(--sv-element-add-padding-left, 0px);padding-right:var(--sv-element-add-padding-right, 0px)}.sv-question__title{position:relative;box-sizing:border-box;margin:0;padding:.25em .44em;cursor:default;font-size:1.25em;word-break:break-word}.sv-question__required-text{line-height:.8em;font-size:1.4em}.sv-question__description{margin:0;padding-left:.55em;font-size:1em;word-break:break-word}.sv-question__input{width:100%;height:1.81em}.sv-question__content{margin-left:.55em}.sv-question__erbox{color:var(--error-color, #d52901);font-size:.74em;font-weight:bold}.sv-question__erbox--location--top{margin-bottom:.4375em}.sv-question__erbox--location--bottom{margin-top:.4375em}.sv-question__footer{padding:.87em 0}.sv-question__title--answer{background-color:var(--answer-background-color, rgba(26, 179, 148, 0.2))}.sv-question__title--error{background-color:var(--error-background-color, rgba(213, 41, 1, 0.2))}.sv-question__header--location--top{margin-bottom:.65em}.sv-question__header--location--left{float:left;width:27%;margin-right:.875em}[dir=rtl] .sv-question__header--location--left,[style*="direction:rtl"] .sv-question__header--location--left,[style*="direction: rtl"] .sv-question__header--location--left{float:right}.sv-question__header--location--bottom{margin-top:.8em}.sv-question__content--left{overflow:hidden}.sv-question__other{margin-top:.5em}.sv-question__form-group{margin-top:.5em}.sv-question--disabled .sv-question__header{color:var(--disabled-text-color, rgba(64, 64, 64, 0.5))}.sv-image{display:inline-block}.sv-question__title--expandable{cursor:pointer;display:flex;padding-right:24px;align-items:center}.sv-question__title--expandable:after{content:"";display:block;background-image:url(${v});background-repeat:no-repeat;background-position:center center;background-size:10px 12px;width:24px;height:24px;position:absolute;right:0}.sv-question__title--expandable.sv-question__title--expanded:after{transform:rotate(180deg)}.sv-question__icon{outline:none}.sv-question__icon:before{content:"";display:inline-block;background-image:url(${v});background-repeat:no-repeat;background-position:center center;height:.5em;width:.6em;margin-left:1.5em;vertical-align:middle}.sv-question__icon--expanded:before{transform:rotate(180deg)}.sv-progress{height:.19em;background-color:var(--header-background-color, #e7e7e7);position:relative}.sv-progress__bar{position:relative;height:100%;background-color:var(--main-color, #1ab394)}.sv-progress__text{position:absolute;margin-top:.69em;color:var(--progress-text-color, #9d9d9d);font-size:.87em;font-weight:bold;padding-left:.6321em}@media only screen and (min-width: 1000px){.sv-progress__text{margin-left:5%}}@media only screen and (max-width: 1000px){.sv-progress__text{margin-left:10px}}.sv_progress-buttons__list li:before{border-color:var(--progress-buttons-color, #8dd9ca);background-color:var(--progress-buttons-color, #8dd9ca)}.sv_progress-buttons__list li:after{background-color:var(--text-border-color, #d4d4d4)}.sv_progress-buttons__list .sv_progress-buttons__page-title{color:var(--text-color, #404040)}.sv_progress-buttons__list .sv_progress-buttons__page-description{color:var(--text-color, #404040)}.sv_progress-buttons__list li.sv_progress-buttons__list-element--passed:before{border-color:var(--main-color, #1ab394);background-color:var(--main-color, #1ab394)}.sv_progress-buttons__list li.sv_progress-buttons__list-element--passed+li:after{background-color:var(--progress-buttons-color, #8dd9ca)}.sv_progress-buttons__list li.sv_progress-buttons__list-element--current:before{border-color:var(--main-color, #1ab394);background-color:#fff}.sv_progress-buttons__list li.sv_progress-buttons__list-element--passed.sv_progress-buttons__list-element--current:before{border-color:var(--main-color, #1ab394);background-color:#fff}.sv-title{font-family:var(--font-family, var(--font-family));font-weight:700;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal}.sv-description{color:var(--disabled-text-color, rgba(64, 64, 64, 0.5))}.sv-question .sv-selectbase{margin-bottom:4px}.sv-selectbase__item{margin-bottom:.425em;vertical-align:top}.sv-selectbase__item--inline{display:inline-block;padding-right:5%}.sv-selectbase__column{min-width:140px;vertical-align:top}.sv-selectbase__label{position:relative;display:block;box-sizing:border-box;cursor:inherit;margin-left:41px;min-height:30px}[dir=rtl] .sv-selectbase__label,[style*="direction:rtl"] .sv-selectbase__label,[style*="direction: rtl"] .sv-selectbase__label{margin-right:41px;margin-left:0}.sv-selectbase__decorator.sv-item__decorator{position:absolute;left:-41px}[dir=rtl] .sv-selectbase__decorator.sv-item__decorator,[style*="direction:rtl"] .sv-selectbase__decorator.sv-item__decorator,[style*="direction: rtl"] .sv-selectbase__decorator.sv-item__decorator{left:initial;right:-41px}.sv-selectbase__clear-btn{margin-top:.9em;background-color:var(--clean-button-color, #1948b3)}.sv-selectbase .sv-selectbase__item.sv-q-col-1{padding-right:0}.sv-question .sv-q-column-1{width:100%;max-width:100%;display:inline-block;padding-right:1em;box-sizing:border-box;word-break:break-word}.sv-question .sv-q-column-2{max-width:50%;display:inline-block;padding-right:1em;box-sizing:border-box;word-break:break-word}.sv-question .sv-q-column-3{max-width:33.33333%;display:inline-block;padding-right:1em;box-sizing:border-box;word-break:break-word}.sv-question .sv-q-column-4{max-width:25%;display:inline-block;padding-right:1em;box-sizing:border-box;word-break:break-word}.sv-question .sv-q-column-5{max-width:20%;display:inline-block;padding-right:1em;box-sizing:border-box;word-break:break-word}.sv-multipletext{width:100%;table-layout:fixed}.sv-multipletext__item-label{display:flex;align-items:center}.sv-multipletext__item{flex:1}.sv-multipletext__item-title{margin-right:1em;width:33%}.sv-multipletext__cell:not(:first-child){padding-left:.5em}.sv-multipletext__cell:not(:last-child){padding-right:.5em}.sv-matrix{overflow-x:auto}.sv-matrix .sv-table__cell--header{text-align:center}.sv-matrix__label{display:inline-block;margin:0}.sv-matrix__cell{min-width:10em;text-align:center}.sv-matrix__cell:first-child{text-align:left}.sv-matrix__text{cursor:pointer}.sv-matrix__text--checked{color:var(--body-background-color, white);background-color:var(--main-color, #1ab394)}.sv-matrix__text--disabled{cursor:default}.sv-matrix__text--disabled.sv-matrix__text--checked{background-color:var(--disable-color, #dbdbdb)}.sv-matrix__row--error{background-color:var(--error-background-color, rgba(213, 41, 1, 0.2))}.sv-matrixdynamic__add-btn{background-color:var(--add-button-color, #1948b3)}.sv-matrixdynamic__remove-btn{background-color:var(--remove-button-color, #ff1800)}.sv-detail-panel__icon{display:block;position:absolute;left:50%;top:50%;height:13px;width:24px;transform:translate(-50%, -50%) rotate(270deg)}.sv-detail-panel__icon--expanded{transform:translate(-50%, -50%)}.sv-detail-panel__icon:before{content:"";display:block;background-image:url(${x});background-repeat:no-repeat;background-position:center center;height:18px;width:24px}.sv-root-modern ::-webkit-scrollbar{height:6px;width:6px;background-color:var(--main-hover-color, #9f9f9f)}.sv-root-modern ::-webkit-scrollbar-thumb{background:var(--main-color, #1ab394)}.sv-table{width:100%;background-color:rgba(var(--main-hover-color, #9f9f9f), 0.1);border-collapse:separate;border-spacing:0}.sv-table tbody tr:last-child .sv-table__cell{padding-bottom:2.5em}.sv-table tr:first-child .sv-table__cell{padding-top:1.875em}.sv-table td:first-child,.sv-table th:first-child{padding-left:1.875em}.sv-table td:last-child,.sv-table th:last-child{padding-right:1.875em}.sv-table__row--detail{background-color:var(--header-background-color, #e7e7e7)}.sv-table__row--detail td{border-top:1px solid var(--text-border-color, #d4d4d4);border-bottom:1px solid var(--text-border-color, #d4d4d4);padding:1em 0}.sv-table__cell{padding:.9375em 0;box-sizing:content-box;vertical-align:top}.sv-table__cell:not(:last-child){padding-right:1em}.sv-table__cell:not(:first-child){padding-left:1em}.sv-table__cell--header{font-family:var(--font-family, var(--font-family));font-weight:bold;text-align:left}.sv-table__cell--rowText{vertical-align:middle}.sv-table__cell--detail{text-align:center;vertical-align:middle;width:32px}.sv-table__cell--detail-rowtext{vertical-align:middle}.sv-table__cell--detail-panel{padding-left:1em}.sv-table__cell--detail-button{appearance:none;position:relative;border:3px solid var(--border-color, rgba(64, 64, 64, 0.5));border-radius:50px;text-align:center;vertical-align:middle;width:32px;height:32px;padding:0;margin:0;outline:none;cursor:pointer;background:rgba(0,0,0,0)}.sv-table__empty--rows--section{text-align:center;vertical-align:middle}.sv-table__empty--rows--text{padding:20px}.sv-table__cell--actions sv-action-bar,.sv-table__cell--actions .sv-action-bar{margin-left:0;padding-left:0}.sv-footer.sv-action-bar{display:block;min-height:var(--base-line-height, 2em);padding:2.5em 0 .87em 0;margin-left:auto}.sv-footer.sv-action-bar .sv-action__content{display:block}.sv-footer.sv-action-bar .sv-action:not(:last-child) .sv-action__content{padding-right:0}.sv-btn--navigation{margin:0 1em;float:right;background-color:var(--main-color, #1ab394)}.sv-footer__complete-btn,.sv-footer__next-btn,.sv-footer__preview-btn{float:right}.sv-footer__prev-btn,.sv-footer__edit-btn{float:left}[dir=rtl] .sv-footer__complete-btn,[style*="direction:rtl"] .sv-footer__complete-btn,[style*="direction: rtl"] .sv-footer__complete-btn{float:left}[dir=rtl] .sv-footer__preview-btn,[style*="direction:rtl"] .sv-footer__preview-btn,[style*="direction: rtl"] .sv-footer__preview-btn{float:left}[dir=rtl] .sv-footer__next-btn,[style*="direction:rtl"] .sv-footer__next-btn,[style*="direction: rtl"] .sv-footer__next-btn{float:left}[dir=rtl] .sv-footer__prev-btn,[style*="direction:rtl"] .sv-footer__prev-btn,[style*="direction: rtl"] .sv-footer__prev-btn{float:right}[dir=rtl] .sv-footer__edit-btn,[style*="direction:rtl"] .sv-footer__edit-btn,[style*="direction: rtl"] .sv-footer__edit-btn{float:right}.sv-btn.sv-action-bar-item,.sv-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:1.214em;color:var(--body-background-color, white);cursor:pointer;font-family:inherit;font-size:.875em;font-weight:bold;outline:none;padding:.5em 2.786em .6em;text-align:left}.sv-btn--navigation{background-color:var(--main-color, #1ab394)}.sv-item{position:relative;cursor:pointer}.sv-item--disabled{cursor:default}.sv-item__decorator{position:relative;display:inline-block;box-sizing:border-box;width:30px;height:30px;border:solid 1px rgba(0,0,0,0);vertical-align:middle}.sv-item__svg{position:absolute;top:50%;left:50%;display:inline-block;box-sizing:border-box;width:24px;height:24px;margin-right:-50%;transform:translate(-50%, -50%)}.sv-item__control:focus+.sv-item__decorator{border-color:var(--main-color, #1ab394);outline:none}.sv-item__control-label{position:relative;top:4px}.sv-checkbox__decorator{border-radius:2px}.sv-checkbox__svg{border:3px solid var(--border-color, rgba(64, 64, 64, 0.5));border-radius:2px;fill:rgba(0,0,0,0)}.sv-checkbox--allowhover:hover .sv-checkbox__svg{border:none;background-color:var(--main-hover-color, #9f9f9f);fill:#fff}.sv-checkbox--checked .sv-checkbox__svg{border:none;background-color:var(--main-color, #1ab394);fill:#fff}.sv-checkbox--checked.sv-checkbox--disabled .sv-checkbox__svg{border:none;background-color:var(--disable-color, #dbdbdb);fill:#fff}.sv-checkbox--disabled .sv-checkbox__svg{border:3px solid var(--disable-color, #dbdbdb)}.sv-radio__decorator{border-radius:100%}.sv-radio__svg{border:3px solid var(--border-color, rgba(64, 64, 64, 0.5));border-radius:100%;fill:rgba(0,0,0,0)}.sv-radio--allowhover:hover .sv-radio__svg{fill:var(--border-color, rgba(64, 64, 64, 0.5))}.sv-radio--checked .sv-radio__svg{border-color:var(--radio-checked-color, #404040);fill:var(--radio-checked-color, #404040)}.sv-radio--disabled .sv-radio__svg{border-color:var(--disable-color, #dbdbdb)}.sv-radio--disabled.sv-radio--checked .sv-radio__svg{fill:var(--disable-color, #dbdbdb)}.sv-boolean{display:block;position:relative;line-height:1.5em}.sv-boolean__switch{float:left;box-sizing:border-box;width:4em;height:1.5em;margin-right:1.0625em;margin-left:1.3125em;padding:.125em .1875em;border-radius:.75em;margin-bottom:2px}.sv-boolean__switch{background-color:var(--main-color, #1ab394)}.sv-boolean__slider{background-color:var(--slider-color, #fff)}.sv-boolean__label--disabled{color:var(--disabled-label-color, rgba(64, 64, 64, 0.5))}.sv-boolean--disabled .sv-boolean__switch{background-color:var(--main-hover-color, #9f9f9f)}.sv-boolean--disabled .sv-boolean__slider{background-color:var(--disabled-slider-color, #cfcfcf)}.sv-boolean input:focus~.sv-boolean__switch{outline:1px solid var(--main-color, #1ab394);outline-offset:1px}[dir=rtl] .sv-boolean__switch,[style*="direction:rtl"] .sv-boolean__switch,[style*="direction: rtl"] .sv-boolean__switch{float:right}.sv-boolean__slider{display:block;width:1.25em;height:1.25em;transition-duration:.1s;transition-property:margin-left;transition-timing-function:linear;border:none;border-radius:100%}.sv-boolean--indeterminate .sv-boolean__slider{margin-left:calc(50% - .625em)}.sv-boolean--checked .sv-boolean__slider{margin-left:calc(100% - 1.25em)}.sv-boolean__label{cursor:pointer;float:left}[dir=rtl] .sv-boolean__label,[style*="direction:rtl"] .sv-boolean__label,[style*="direction: rtl"] .sv-boolean__label{float:right}[dir=rtl] .sv-boolean--indeterminate .sv-boolean__slider,[style*="direction:rtl"] .sv-boolean--indeterminate .sv-boolean__slider,[style*="direction: rtl"] .sv-boolean--indeterminate .sv-boolean__slider{margin-right:calc(50% - .625em)}[dir=rtl] .sv-boolean--checked .sv-boolean__slider,[style*="direction:rtl"] .sv-boolean--checked .sv-boolean__slider,[style*="direction: rtl"] .sv-boolean--checked .sv-boolean__slider{margin-right:calc(100% - 1.25em)}.sv-boolean__switch{background-color:var(--main-color, #1ab394)}.sv-boolean__slider{background-color:var(--slider-color, #fff)}.sv-boolean__label--disabled{color:var(--disabled-label-color, rgba(64, 64, 64, 0.5))}.sv-boolean--disabled .sv-boolean__switch{background-color:var(--main-hover-color, #9f9f9f)}.sv-boolean--disabled .sv-boolean__slider{background-color:var(--disabled-slider-color, #cfcfcf)}.sv-imagepicker__item{border:none;padding:.24em}.sv-imagepicker__item--inline{display:inline-block}.sv-imagepicker__item--inline:not(:last-child){margin-right:4%}.sv-imagepicker__image{border:.24em solid rgba(0,0,0,0);display:block;pointer-events:none}.sv-imagepicker__label{cursor:inherit}.sv-imagepicker__text{font-size:1.14em;padding-left:.24em}.sv-imagepicker__item--allowhover:hover .sv-imagepicker__image{background-color:var(--main-hover-color, #9f9f9f);border-color:var(--main-hover-color, #9f9f9f)}.sv-imagepicker__item:not(.sv-imagepicker__item--checked) .sv-imagepicker__control:focus~div .sv-imagepicker__image{background-color:var(--main-hover-color, #9f9f9f);border-color:var(--main-hover-color, #9f9f9f)}.sv-imagepicker__item--checked .sv-imagepicker__image{background-color:var(--main-color, #1ab394);border-color:var(--main-color, #1ab394)}.sv-imagepicker__item{cursor:pointer}.sv-imagepicker__item--disabled{cursor:default}.sv-imagepicker__item--disabled.sv-imagepicker__item--checked .sv-imagepicker__image{background-color:var(--disable-color, #dbdbdb);border-color:var(--disable-color, #dbdbdb)}.sv-dropdown{appearance:none;-webkit-appearance:none;-moz-appearance:none;display:block;background:rgba(0,0,0,0);background-image:url(${v});background-repeat:no-repeat,repeat;background-position:right .7em top 50%,0 0;background-size:.57em 100%;border:none;border-bottom:.06em solid var(--text-border-color, #d4d4d4);box-sizing:border-box;font-family:inherit;font-size:inherit;padding-block:.25em;padding-inline-end:1.5em;padding-inline-start:.87em;height:2.19em;width:100%;display:flex;justify-content:space-between}.sv-dropdown:focus,.sv-dropdown:focus-within{background-image:url(${w});border-color:var(--text-border-color, #d4d4d4);outline:none}.sv-dropdown::-ms-expand{display:none}.sv-dropdown--error{border-color:var(--error-color, #d52901);color:var(--error-color, #d52901)}.sv-dropdown--error::placeholder,.sv-dropdown--error::-ms-input-placeholder{color:var(--error-color, #d52901)}.sv-dropdown option{color:var(--text-color, #404040)}.sv-dropdown__value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;font-family:var(--font-family, var(--font-family));font-size:inherit;color:var(--text-color, #404040);position:relative}.sv-dropdown__value .sv-string-viewer{line-height:28px}.sv_dropdown_control__input-field-component{height:auto}.sv-dropdown__hint-prefix{opacity:.5}.sv-dropdown__hint-prefix span{word-break:unset;line-height:28px}.sv-dropdown__hint-suffix{display:flex;opacity:.5}.sv-dropdown__hint-suffix span{word-break:unset;line-height:28px}.sv-dropdown_clean-button{padding:3px 12px;margin:auto 0}.sv-dropdown_clean-button-svg{width:12px;height:12px}.sv-input.sv-dropdown:focus-within .sv-dropdown__filter-string-input{z-index:2000}.sv-dropdown__filter-string-input{border:none;outline:none;padding:0;font-family:var(--font-family, var(--font-family));font-size:inherit;background-color:rgba(0,0,0,0);width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;appearance:none;position:absolute;left:0;top:0;height:100%}.sv-dropdown--empty:not(.sv-input--disabled) .sv-dropdown__filter-string-input::placeholder{font-family:var(--font-family, var(--font-family));color:var(--text-color, #404040)}.sv-dropdown__filter-string-input::placeholder{color:var(--disabled-text-color, rgba(64, 64, 64, 0.5));font-size:inherit;width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;appearance:none}[dir=rtl] .sv-dropdown,[style*="direction:rtl"] .sv-dropdown,[style*="direction: rtl"] .sv-dropdown{background-position:left .7em top 50%,0 0}.sv-input.sv-tagbox:not(.sv-tagbox--empty):not(.sv-input--disabled){height:auto;padding:.5em;padding-inline-end:2em}.sv-tagbox_clean-button{height:1.5em;padding:.5em;margin:auto 0}.sv-tagbox__value.sv-dropdown__value{position:relative;gap:.25em;display:flex;flex-wrap:wrap;flex-grow:1;padding-inline:unset;margin-inline:unset;margin-block:unset}.sv-tagbox__item{position:relative;display:flex;color:var(--text-color, #404040);height:1.5em;padding-block:.25em;padding-inline-end:.4em;padding-inline-start:.87em;border:solid .1875em #9f9f9f;border-radius:2px;min-width:2.3125em}.sv-tagbox__item:hover{background-color:var(--main-hover-color, #9f9f9f);color:var(--body-background-color, white)}.sv-tagbox__item:hover .sv-tagbox__item_clean-button-svg use{fill:var(--body-background-color, white)}.sv-tagbox__item-text{color:inherit;font-size:1em}.sv-tagbox__item_clean-button-svg{margin:.3125em;width:1em;height:1em}.sv-tagbox__item_clean-button-svg use{fill:var(--text-color, #404040)}.sv-tagbox__filter-string-input{width:auto;display:flex;flex-grow:1;position:initial}.sv-tagbox__placeholder{position:absolute;top:0;left:0;max-width:100%;width:auto;height:100%;text-align:left;cursor:text;pointer-events:none;color:var(--main-hover-color, #9f9f9f)}.sv-tagbox{border-bottom:.06em solid var(--text-border-color, #d4d4d4)}.sv-tagbox:focus{border-color:var(--text-border-color, #d4d4d4)}.sv-tagbox--error{border-color:var(--error-color, #d52901);color:var(--error-color, #d52901)}.sv-tagbox--error::placeholder{color:var(--error-color, #d52901)}.sv-tagbox--error::-ms-input-placeholder{color:var(--error-color, #d52901)}.sv-tagbox .sv-dropdown__filter-string-input{height:auto}.sv-text{box-sizing:border-box;width:100%;height:2.19em;padding:.25em 0 .25em .87em;border:none;border-radius:0;border-bottom:.07em solid var(--text-border-color, #d4d4d4);box-shadow:none;background-color:rgba(0,0,0,0);font-family:inherit;font-size:1em}.sv-text:focus{border-color:var(--main-color, #1ab394);outline:none;box-shadow:none}.sv-text:invalid{box-shadow:none}.sv-text:-webkit-autofill{-webkit-box-shadow:0 0 0 30px #fff inset}.sv-text::placeholder{opacity:1;color:var(--text-color, #404040)}.sv-text:-ms-input-placeholder{opacity:1;color:var(--text-color, #404040)}.sv-text::-ms-input-placeholder{opacity:1;color:var(--text-color, #404040)}.sv-text[type=date]{padding-right:2px;background-image:url(${v});background-repeat:no-repeat,repeat;background-position:right .61em top 50%,0 0;background-size:.57em auto,100%}.sv-text[type=date]:focus{background-image:url(${w})}.sv-text[type=date]::-webkit-calendar-picker-indicator{color:rgba(0,0,0,0);background:rgba(0,0,0,0)}.sv-text[type=date]::-webkit-clear-button{display:none}.sv-text[type=date]::-webkit-inner-spin-button{display:none}.sv-text--error{color:var(--error-color, #d52901);border-color:var(--error-color, #d52901)}.sv-text--error::placeholder{color:var(--error-color, #d52901)}.sv-text--error::-ms-input-placeholder{color:var(--error-color, #d52901)}input.sv-text,textarea.sv-comment,select.sv-dropdown{color:var(--text-color, #404040);background-color:var(--inputs-background-color, white)}.sv-rating{color:var(--text-color, #404040);padding-bottom:3px}.sv-rating input:focus+.sv-rating__min-text+.sv-rating__item-text,.sv-rating input:focus+.sv-rating__item-text{outline:1px solid var(--main-color, #1ab394);outline-offset:2px}.sv-rating__item{position:relative;display:inline}.sv-rating__item-text{min-width:2.3125em;height:2.3125em;display:inline-block;color:var(--main-hover-color, #9f9f9f);padding:0 .3125em;border:solid .1875em var(--main-hover-color, #9f9f9f);text-align:center;font-size:1em;font-weight:bold;line-height:1.13;cursor:pointer;margin:3px 0;margin-right:.26em;box-sizing:border-box}.sv-rating__item-text>span{margin-top:.44em;display:inline-block}.sv-rating__item-text:hover{background-color:var(--main-hover-color, #9f9f9f);color:var(--body-background-color, white)}.sv-rating__item--selected .sv-rating__item-text{background-color:var(--main-color, #1ab394);color:var(--body-background-color, white);border-color:var(--main-color, #1ab394)}.sv-rating__item--selected .sv-rating__item-text:hover{background-color:var(--main-color, #1ab394)}.sv-rating__item-star>svg{height:32px;width:32px;display:inline-block;vertical-align:middle;border:1px solid rgba(0,0,0,0);fill:var(--text-color, #404040)}.sv-rating__item-star>svg.sv-star-2{display:none}.sv-rating__item-star>svg:hover{border:1px solid var(--main-hover-color, #9f9f9f)}.sv-rating__item-star--selected>svg{fill:var(--main-color, #1ab394)}.sv-rating__item-smiley>svg{height:24px;width:24px;padding:4px;display:inline-block;vertical-align:middle;border:3px solid var(--border-color, rgba(64, 64, 64, 0.5));margin:3px 0;margin-right:.26em;fill:var(--main-hover-color, #9f9f9f)}.sv-rating__item-smiley>svg>use{display:block}.sv-rating__item-smiley>svg:hover{border:3px solid var(--main-hover-color, #9f9f9f);background-color:var(--main-hover-color, #9f9f9f)}.sv-rating__item-smiley--selected>svg{background-color:var(--main-color, #1ab394);fill:var(--body-background-color, white);border:3px solid var(--main-color, #1ab394)}.sv-rating__min-text{font-size:1em;margin-right:1.25em;cursor:pointer}.sv-rating__max-text{font-size:1em;margin-left:.87em;cursor:pointer}.sv-question--disabled .sv-rating__item-text{cursor:default;color:var(--disable-color, #dbdbdb);border-color:var(--disable-color, #dbdbdb)}.sv-question--disabled .sv-rating__item-text:hover{background-color:rgba(0,0,0,0)}.sv-question--disabled .sv-rating--disabled .sv-rating__item-text:hover .sv-rating__item--selected .sv-rating__item-text{background-color:var(--disable-color, #dbdbdb);color:var(--body-background-color, white)}.sv-question--disabled .sv-rating__item--selected .sv-rating__item-text{background-color:var(--disable-color, #dbdbdb);color:var(--body-background-color, white)}.sv-question--disabled .sv-rating__min-text{cursor:default}.sv-question--disabled .sv-rating__max-text{cursor:default}.sv-comment{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:.06em solid var(--text-border-color, #d4d4d4);border-radius:0;box-sizing:border-box;padding:.25em .87em;font-family:inherit;font-size:1em;outline:none;width:100%;max-width:100%}.sv-comment:focus{border-color:var(--main-color, #1ab394)}.sv-file{position:relative}.sv-file__decorator{background-color:var(--body-container-background-color, #f4f4f4);padding:1.68em 0}.sv-file__clean-btn{background-color:var(--remove-button-color, #ff1800);margin-top:1.25em}.sv-file__choose-btn:not(.sv-file__choose-btn--disabled){background-color:var(--add-button-color, #1948b3);display:inline-block}.sv-file__choose-btn--disabled{cursor:default;background-color:var(--disable-color, #dbdbdb);display:inline-block}.sv-file__no-file-chosen{display:inline-block;font-size:.87em;margin-left:1em}.sv-file__preview{display:inline-block;padding-right:23px;position:relative;margin-top:1.25em;vertical-align:top}.sv-file__preview:not(:last-child){margin-right:31px}.sv-file__remove-svg{position:absolute;fill:#ff1800;cursor:pointer;height:16px;top:0;right:0;width:16px}.sv-file__remove-svg .sv-svg-icon{width:16px;height:16px}.sv-file__sign a{color:var(--text-color, #404040);text-align:left;text-decoration:none}.sv-file__wrapper{position:relative;display:inline-block;margin:0;margin-left:50%;transform:translate(-50%, 0);padding:0}.sv-clearfix:after{content:"";display:table;clear:both}.sv-completedpage{font-family:var(--font-family, var(--font-family));font-size:1.875em;font-weight:bold;box-sizing:border-box;height:14em;padding-top:4.5em;padding-bottom:4.5em;text-align:center;color:var(--text-color, #404040);background-color:var(--body-container-background-color, #f4f4f4)}.sv-completedpage:before{display:block;content:"";background-image:url(${C});width:72px;height:72px;margin-left:calc(50% - 36px);padding:36px 0px}@media only screen and (min-width: 1000px){.sv-completedpage{margin-right:5%;margin-left:calc(5% + .293em)}}@media only screen and (max-width: 1000px){.sv-completedpage{margin-left:calc(10px + .293em);margin-right:10px}}.sv-header{white-space:nowrap}.sv-logo--left{display:inline-block;vertical-align:top;margin-right:2em}.sv-logo--right{vertical-align:top;margin-left:2em;float:right}.sv-logo--top{display:block;width:100%;text-align:center}.sv-logo--bottom{display:block;width:100%;text-align:center}.sv-header__text{display:inline-block;vertical-align:top}.sjs_sp_container{border:1px dashed var(--disable-color, #dbdbdb)}.sjs_sp_placeholder{color:var(--foreground-light, var(--sjs-general-forecolor-light, var(--foreground-light, #909090)))}.sv-action-bar{display:flex;box-sizing:content-box;position:relative;align-items:center;margin-left:auto;overflow:hidden;white-space:nowrap}.sv-action-bar-separator{display:inline-block;width:1px;height:24px;vertical-align:middle;margin-right:16px;background-color:var(--sjs-border-default, var(--border, #d6d6d6))}.sv-action-bar--default-size-mode .sv-action-bar-separator{margin:0 calc(1 * var(--base-unit, 8px))}.sv-action-bar--small-size-mode .sv-action-bar-separator{margin:0 calc(0.5 * var(--base-unit, 8px))}.sv-action-bar-item{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;padding:calc(1 * var(--base-unit, 8px));box-sizing:border-box;border:none;border-radius:calc(0.5 * var(--sjs-corner-radius, 4px));background-color:rgba(0,0,0,0);color:var(--sjs-general-forecolor, var(--foreground, #161616));cursor:pointer;font-family:var(--font-family, var(--font-family));overflow-x:hidden;white-space:nowrap}button.sv-action-bar-item{overflow:hidden}.sv-action-bar--default-size-mode .sv-action-bar-item{height:calc(5 * var(--base-unit, 8px));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(3 * var(--base-unit, 8px));margin:0 calc(1 * var(--base-unit, 8px))}.sv-action-bar--small-size-mode .sv-action-bar-item{height:calc(4 * var(--base-unit, 8px));font-size:calc(0.75 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(2 * var(--base-unit, 8px));margin:0 calc(0.5 * var(--base-unit, 8px))}.sv-action:first-of-type .sv-action-bar-item{margin-inline-start:0}.sv-action:last-of-type .sv-action-bar-item{margin-inline-end:0}.sv-action-bar--default-size-mode .sv-action-bar-item__title--with-icon{margin-inline-start:calc(1 * var(--base-unit, 8px))}.sv-action-bar--small-size-mode .sv-action-bar-item__title--with-icon{margin-inline-start:calc(0.5 * var(--base-unit, 8px))}.sv-action-bar-item__icon svg{display:block}.sv-action-bar-item__icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-action-bar-item:not(.sv-action-bar-item--pressed):hover:enabled,.sv-action-bar-item:not(.sv-action-bar-item--pressed):focus:enabled{outline:none;background-color:var(--background-dim, #f3f3f3)}.sv-action-bar-item--active.sv-action-bar-item--pressed:focus,.sv-action-bar-item--active.sv-action-bar-item--pressed:focus-visible{outline:none}.sv-action-bar-item:not(.sv-action-bar-item--pressed):active:enabled{opacity:.5}.sv-action-bar-item:disabled{opacity:.25;cursor:default}.sv-action-bar-item__title{color:inherit;vertical-align:middle;white-space:nowrap}.sv-action-bar-item--secondary .sv-action-bar-item__icon use{fill:var(--secondary, #ff9814)}.sv-action-bar-item--active .sv-action-bar-item__icon use{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-action-bar-item-dropdown{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;height:calc(5 * var(--base-unit, 8px));padding:calc(1 * var(--base-unit, 8px));box-sizing:border-box;border:none;border-radius:calc(0.5 * var(--sjs-corner-radius, 4px));background-color:rgba(0,0,0,0);cursor:pointer;line-height:calc(3 * var(--base-unit, 8px));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));font-family:var(--font-family, var(--font-family))}.sv-expand-action:before{content:"";display:inline-block;background-image:url(${v});background-repeat:no-repeat;background-position:center center;height:10px;width:12px;margin:auto 8px}.sv-expand-action--expanded:before{transform:rotate(180deg)}.sv-dots{width:48px}.sv-dots__item{width:100%}.sv-dots__item .sv-action-bar-item__icon{margin:auto}.sv-action--hidden{width:0px;height:0px;overflow:hidden;visibility:hidden}.sv-action__content{display:flex;flex-direction:row;align-items:center}.sv-action__content>*{flex:0 0 auto}.sv-action--space{margin-left:auto}.sv-action-bar-item--pressed:not(.sv-action-bar-item--active){background-color:var(--background-dim, #f3f3f3);opacity:50%}.sv-dragged-element-shortcut{height:calc(3 * var(--base-unit, 8px));min-width:calc(12.5 * var(--base-unit, 8px));border-radius:calc(4.5 * var(--base-unit, 8px));background-color:var(--background, #fff);padding:calc(2 * var(--base-unit, 8px));cursor:grabbing;position:absolute;z-index:1000;box-shadow:0px 8px 16px rgba(0,0,0,.1);font-family:var(--font-family, var(--font-family));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));padding-left:calc(2.5 * var(--base-unit, 8px));line-height:calc(3 * var(--base-unit, 8px))}.sv-matrixdynamic__drag-icon{padding-top:calc(1.75 * var(--base-unit, 8px))}.sv-matrixdynamic__drag-icon:after{content:" ";display:block;height:calc(0.75 * var(--base-unit, 8px));width:calc(2.5 * var(--base-unit, 8px));border:1px solid #e7e7e7;box-sizing:border-box;border-radius:calc(1.25 * var(--base-unit, 8px));cursor:move;margin-top:calc(1.5 * var(--base-unit, 8px))}.sv-matrix-row--drag-drop-ghost-mod td{background-color:var(--background-dim, #f3f3f3)}.sv-matrix-row--drag-drop-ghost-mod td>*{visibility:hidden}sv-popup{display:block;position:absolute;z-index:-1}.sv-popup{position:fixed;left:0;top:0;width:100vw;outline:none;z-index:2000;height:100vh}.sv-dropdown-popup{height:0}.sv-popup__container{box-shadow:0px 2px 6px rgba(0,0,0,.1);position:absolute;padding:0}.sv-popup__shadow{width:100%;height:100%;border-radius:calc(2 * var(--sjs-corner-radius, 4px))}.sv-popup__body-content{background-color:var(--background, #fff);border-radius:calc(1 * var(--sjs-corner-radius, 4px));width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:column;max-height:90vh;max-width:100vw}.sv-popup.sv-popup--modal{display:flex;align-items:center;justify-content:center;background-color:var(--background-semitransparent, rgba(144, 144, 144, 0.5));padding:calc(11 * var(--base-unit, 8px)) calc(15 * var(--base-unit, 8px));box-sizing:border-box}.sv-popup.sv-popup--modal .sv-popup__container{position:static}.sv-popup.sv-popup--modal .sv-popup__body-content{padding:calc(4 * var(--base-unit, 8px));height:auto}.sv-popup--overlay.sv-popup--overlay{width:100%;height:var(--sv-popup-overlay-height, 100vh)}.sv-popup--overlay.sv-popup--overlay .sv-popup__container{background:var(--background-semitransparent, rgba(144, 144, 144, 0.5));max-width:100vw;max-height:calc(var(--sv-popup-overlay-height, 100vh) - 1 * var(--base-unit, 8px));height:calc(var(--sv-popup-overlay-height, 100vh) - 1 * var(--base-unit, 8px));width:100%;padding-top:calc(2 * var(--base-unit, 8px));border:unset}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-content{max-height:var(--sv-popup-overlay-height, 100vh);max-width:100vw;border-radius:calc(4 * var(--sjs-corner-radius, 4px)) calc(4 * var(--sjs-corner-radius, 4px)) 0px 0px;background:var(--background, #fff);box-shadow:0px calc(1 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) rgba(0,0,0,.1);padding:calc(3 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px));height:calc(100% - (1 * var(--base-unit, 8px)))}.sv-popup--overlay.sv-popup--overlay .sv-popup__scrolling-content{height:calc(100% - 10*var(--base-unit, 8px))}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-footer{margin-top:calc(2 * var(--base-unit, 8px))}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-footer .sv-action-bar{width:100%}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-footer .sv-action{width:100%}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-footer-item{width:100%}.sv-popup--overlay.sv-popup--overlay .sv-popup__button{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:2px solid var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff))}.sv-popup--modal .sv-popup__scrolling-content{padding:2px;margin:-2px}.sv-popup__scrolling-content{height:100%;overflow:auto;display:flex;flex-direction:column}.sv-popup__scrolling-content::-webkit-scrollbar,.sv-popup__scrolling-content *::-webkit-scrollbar{height:6px;width:6px;background-color:var(--background-dim, #f3f3f3)}.sv-popup__scrolling-content::-webkit-scrollbar-thumb,.sv-popup__scrolling-content *::-webkit-scrollbar-thumb{background:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)))}.sv-popup__content{min-width:100%;height:100%;display:flex;flex-direction:column;min-height:0}.sv-popup--show-pointer.sv-popup--top .sv-popup__pointer{transform:translate(calc(-1 * var(--base-unit, 8px))) rotate(180deg)}.sv-popup--show-pointer.sv-popup--bottom .sv-popup__pointer{transform:translate(calc(-1 * var(--base-unit, 8px)), calc(-1 * var(--base-unit, 8px)))}.sv-popup--show-pointer.sv-popup--right{transform:translate(calc(1 * var(--base-unit, 8px)))}.sv-popup--show-pointer.sv-popup--right .sv-popup__pointer{transform:translate(-12px, -4px) rotate(-90deg)}.sv-popup--show-pointer.sv-popup--left{transform:translate(calc(-1 * var(--base-unit, 8px)))}.sv-popup--show-pointer.sv-popup--left .sv-popup__pointer{transform:translate(-4px, -4px) rotate(90deg)}.sv-popup__pointer{display:block;position:absolute}.sv-popup__pointer:after{content:" ";display:block;width:0;height:0;border-left:calc(1 * var(--base-unit, 8px)) solid rgba(0,0,0,0);border-right:calc(1 * var(--base-unit, 8px)) solid rgba(0,0,0,0);border-bottom:calc(1 * var(--base-unit, 8px)) solid var(--background, #fff);align-self:center}.sv-popup__body-header{font-family:Open Sans;font-size:calc(1.5 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(4 * var(--base-unit, 8px));font-style:normal;font-weight:700;margin-bottom:calc(2 * var(--base-unit, 8px));color:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-popup__body-footer{display:flex;margin-top:calc(4 * var(--base-unit, 8px))}.sv-popup__body-footer .sv-action-bar{gap:calc(1.5 * var(--base-unit, 8px))}.sv-popup__button{margin:calc(0.25 * var(--base-unit, 8px))}.sv-popup--modal .sv-list__filter,.sv-popup--overlay .sv-list__filter{padding-top:calc(1 * var(--base-unit, 8px))}.sv-popup--modal .sv-list__filter-icon,.sv-popup--overlay .sv-list__filter-icon{top:calc(2.5 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay{z-index:2001;padding:0}.sv-dropdown-popup.sv-popup--overlay .sv-popup__body-content{padding:0;border-radius:0}.sv-dropdown-popup.sv-popup--overlay .sv-popup__body-footer .sv-action-bar .sv-action{width:auto}.sv-dropdown-popup.sv-popup--overlay .sv-popup__button{background-color:rgba(0,0,0,0);color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:none;box-shadow:none;padding:calc(1 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px));border-radius:calc(12.5 * var(--base-unit, 8px));margin:0}.sv-dropdown-popup.sv-popup--overlay .sv-popup__container{max-height:calc(var(--sv-popup-overlay-height, 100vh));height:calc(var(--sv-popup-overlay-height, 100vh));padding-top:0}.sv-dropdown-popup.sv-popup--overlay .sv-popup__body-content{height:calc(var(--sv-popup-overlay-height, 100vh))}.sv-dropdown-popup.sv-popup--overlay .sv-popup__body-footer{background-color:var(--background-dim-light, #f9f9f9);margin-top:0;padding-top:calc(0.5 * var(--base-unit, 8px));padding-bottom:calc(0.5 * var(--base-unit, 8px));border-top:1px solid var(--sjs-border-light, var(--border-light, #eaeaea))}.sv-dropdown-popup.sv-popup--overlay .sv-popup__scrolling-content{height:calc(100% - 6*var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-icon .sv-svg-icon{width:calc(2 * var(--base-unit, 8px));height:calc(2 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__container{padding:0}.sv-dropdown-popup.sv-popup--overlay .sv-list{flex-grow:1;padding:calc(0.5 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter{display:flex;align-items:center;padding:calc(0.5 * var(--base-unit, 8px)) calc(1 * var(--base-unit, 8px)) calc(0.5 * var(--base-unit, 8px)) calc(2.5 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-icon{position:static;top:calc(1.5 * var(--base-unit, 8px));height:calc(2 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__empty-container{display:flex;flex-direction:column;justify-content:center;flex-grow:1;padding:calc(1 * var(--base-unit, 8px)) calc(0.5 * var(--base-unit, 8px));background-color:var(--background, #fff)}.sv-dropdown-popup.sv-popup--overlay .sv-popup__button:disabled{pointer-events:none;color:var(--sjs-general-forecolor, var(--foreground, #161616));opacity:.25}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-clear-button{height:calc(3 * var(--base-unit, 8px));width:calc(3 * var(--base-unit, 8px));padding:calc(0.5 * var(--base-unit, 8px));appearance:none;border:none;border-radius:100%;background-color:rgba(0,0,0,0)}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-clear-button svg{height:calc(2 * var(--base-unit, 8px));width:calc(2 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-clear-button svg use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-dropdown-popup.sv-popup--overlay .sv-list__input{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(3 * var(--base-unit, 8px));font-family:var(--font-family);padding:calc(0.5 * var(--base-unit, 8px)) 0 calc(0.5 * var(--base-unit, 8px)) calc(1 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__item:hover .sv-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item:focus .sv-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item--focused .sv-list__item-body{background:var(--background, #fff)}.sv-dropdown-popup.sv-popup--overlay .sv-list__item:hover.sv-list__item--selected .sv-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item:focus.sv-list__item--selected .sv-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item--focused.sv-list__item--selected .sv-list__item-body{background:var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff));font-weight:600}.sv-dropdown-popup.sv-popup--overlay .sv-list__item:hover.sv-list__item--selected .sd-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item:focus.sv-list__item--selected .sd-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item--focused.sv-list__item--selected .sd-list__item-body{background:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)));color:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-popup__body-content{--sv-popup-overlay-max-height: calc(var(--sv-popup-overlay-height, 100vh) - var(--base-unit, 8px) * 8);--sv-popup-overlay-max-width: calc(100% - var(--base-unit, 8px) * 8);position:absolute;transform:translate(-50%, -50%);left:50%;top:50%;max-height:var(--sv-popup-overlay-max-height);min-height:min(var(--sv-popup-overlay-max-height),31 * var(--base-unit, 8px));height:auto;width:auto;min-width:min(40 * var(--base-unit, 8px),var(--sv-popup-overlay-max-width));max-width:var(--sv-popup-overlay-max-width);border-radius:calc(1 * var(--sjs-corner-radius, 4px));overflow:hidden;margin:0}.sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-popup__content,.sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-popup__scrolling-content,.sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-list__container{flex-grow:1}.sv-button-group{display:flex;align-items:center;flex-direction:row;font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));overflow:auto;border:1px solid var(--sjs-border-default, var(--border, #d6d6d6))}.sv-button-group:focus-within{box-shadow:0 0 0 1px var(--sjs-primary-backcolor, var(--primary, #19b394));border-color:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-button-group__item{display:flex;box-sizing:border-box;flex-direction:row;justify-content:center;align-items:center;appearance:none;width:100%;padding:11px calc(2 * var(--base-unit, 8px));line-height:calc(3 * var(--base-unit, 8px));outline:none;font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));font-weight:400;background:var(--background, #fff);cursor:pointer;overflow:hidden;color:var(--sjs-general-forecolor, var(--foreground, #161616));position:relative}.sv-button-group__item:not(:last-of-type){border-right:1px solid var(--sjs-border-default, var(--border, #d6d6d6))}.sv-button-group__item--hover:hover{background-color:var(--background-dim, #f3f3f3)}.sv-button-group__item-icon{display:block;height:calc(3 * var(--base-unit, 8px))}.sv-button-group__item-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-button-group__item--selected{font-weight:600;color:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-button-group__item--selected .sv-button-group__item-icon use{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-button-group__item--selected:hover{background-color:var(--background, #fff)}.sv-button-group__item-decorator{display:flex;align-items:center;max-width:100%}.sv-button-group__item-caption{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv-button-group__item-icon+.sv-button-group__item-caption{margin-left:calc(1 * var(--base-unit, 8px))}.sv-button-group__item--disabled{color:var(--sjs-general-forecolor, var(--foreground, #161616));opacity:.25;cursor:default}.sv-button-group__item--disabled .sv-button-group__item-icon use{fill:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-button-group__item--disabled:hover{background-color:var(--background, #fff)}.sv-button-group:focus-within{box-shadow:0 0 0 1px var(--sjs-primary-backcolor, var(--primary, #19b394));border-color:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-visuallyhidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.sv-hidden{display:none !important}.sv-title-actions{display:flex;align-items:center;width:100%}.sv-title-actions__title{flex-wrap:wrap;max-width:90%;min-width:50%;white-space:initial}.sv-action-title-bar{min-width:56px}.sv-title-actions .sv-title-actions__title{flex-wrap:wrap;flex:0 0 auto;max-width:unset;min-width:unset}.sv-title-actions .sv-action-title-bar{flex:1 1 auto;justify-content:flex-end;min-width:unset}.sv_window{position:fixed;bottom:3px;right:10px;background-color:#5f9ea0;padding:1px;font-family:var(--font-family, var(--font-family));font-size:calc(0.875 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:calc(1.5 * var(--sjs-corner-radius, 4px));-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);line-break:auto;z-index:100}.sv_window_title{padding:8px 14px;margin:0;font-size:calc(0.875 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:calc(1 * var(--sjs-corner-radius, 4px)) calc(1 * var(--sjs-corner-radius, 4px)) 0 0}.sv_window_content{padding:0;margin:0;max-height:80vh;overflow-y:auto}.sv_window_title a,.sv_window_title a:link,.sv_window_title a:visited{text-decoration:none;font-size:calc(0.875 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));font-style:normal;color:#000}.sv-brand-info{width:100%;font-family:var(--font-family, var(--font-family));text-align:center;color:#161616;background:#fff;padding:32px 0;box-shadow:0px -1px 0px #d6d6d6}.sv-brand-info a{color:#161616;text-decoration-line:underline}.sv-brand-info__text{font-weight:600;font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(3 * var(--base-unit, 8px));color:#161616}.sv-brand-info__logo{display:inline-block}.sv-brand-info__logo img{width:118px}.sv-brand-info__terms{font-weight:400;font-size:calc(0.75 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(2 * var(--base-unit, 8px))}.sv-brand-info__terms a{color:#909090}.sv-ranking{outline:none;user-select:none;-webkit-user-select:none}.sv-ranking-item{cursor:pointer;position:relative}.sv-ranking-item:focus .sv-ranking-item__icon--hover{visibility:hidden}.sv-ranking-item:hover:not(:focus) .sv-ranking-item__icon--hover{visibility:visible}.sv-question--disabled .sv-ranking-item:hover .sv-ranking-item__icon--hover{visibility:hidden}.sv-ranking-item:focus{outline:none}.sv-ranking-item:focus .sv-ranking-item__icon--focus{visibility:visible;top:calc(0.6 * var(--base-unit, 8px));height:calc(3 * var(--base-unit, 8px))}.sv-ranking-item:focus .sv-ranking-item__index{background:var(--background, #fff);outline:calc(0.25 * var(--base-unit, 8px)) solid var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-ranking-item__content.sv-ranking-item__content{display:flex;align-items:center;line-height:1em;padding:calc(0.5 * var(--base-unit, 8px)) 0px;border-radius:calc(12.5 * var(--base-unit, 8px))}.sv-ranking-item__icon-container{position:relative;left:0;top:0;bottom:0;flex-shrink:0;width:calc(3 * var(--base-unit, 8px));height:calc(4 * var(--base-unit, 8px))}.sv-ranking-item__icon.sv-ranking-item__icon{visibility:hidden;fill:var(--sjs-primary-backcolor, var(--primary, #19b394));position:absolute;top:calc(1 * var(--base-unit, 8px));width:calc(1.75 * var(--base-unit, 8px));height:calc(2 * var(--base-unit, 8px))}.sv-ranking-item__index.sv-ranking-item__index{display:flex;flex-shrink:0;align-items:center;justify-content:center;background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)));color:var(--sjs-general-forecolor, var(--foreground, #161616));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));border-radius:100%;border:calc(0.25 * var(--base-unit, 8px)) solid rgba(0,0,0,0);width:calc(5 * var(--base-unit, 8px));height:calc(5 * var(--base-unit, 8px));line-height:calc(3 * var(--base-unit, 8px));box-sizing:border-box;font-weight:600;margin-left:calc(0 * var(--base-unit, 8px))}.sv-ranking-item__index.sv-ranking-item__index.sv-ranking-item__index--empty:empty{background-image:url(${P});background-position:center;background-repeat:no-repeat}.sv-ranking-item__text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sjs-general-forecolor, var(--foreground, #161616));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(3 * var(--base-unit, 8px));margin:0 calc(2 * var(--base-unit, 8px))}.sd-ranking--disabled .sv-ranking-item__text{color:var(--sjs-general-forecolor, var(--foreground, #161616));opacity:.25}.sv-ranking-item__ghost.sv-ranking-item__ghost{display:none;background-color:var(--background-dim, #f3f3f3);border-radius:calc(12.5 * var(--base-unit, 8px));padding:calc(0.5 * var(--base-unit, 8px)) 0px;width:calc(25 * var(--base-unit, 8px));height:calc(5 * var(--base-unit, 8px));z-index:1;position:absolute;left:calc(5 * var(--base-unit, 8px))}[dir=rtl] .sv-ranking-item__ghost{left:initilal;right:calc(5 * var(--base-unit, 8px))}.sv-ranking-item--ghost .sv-ranking-item__ghost{display:block}.sv-ranking-item--ghost .sv-ranking-item__content{visibility:hidden}.sv-ranking-item--drag .sv-ranking-item__content{box-shadow:0px calc(1 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) rgba(0,0,0,.1);border-radius:calc(12.5 * var(--base-unit, 8px))}.sv-ranking--drag .sv-ranking-item:hover .sv-ranking-item__icon{visibility:hidden}.sv-ranking-item--drag .sv-ranking-item__icon--hover{visibility:visible}.sv-ranking--mobile .sv-ranking-item__icon--hover{visibility:visible;fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-ranking--mobile.sv-ranking--drag .sv-ranking-item--ghost .sv-ranking-item__icon.sv-ranking-item__icon--hover{visibility:hidden}.sv-ranking--mobile.sv-ranking-shortcut{max-width:80%}.sv-ranking--mobile .sv-ranking-item__index.sv-ranking-item__index{margin-left:0}.sv-ranking--mobile .sd-element--with-frame .sv-ranking-item__icon{margin-left:0}.sv-ranking--design-mode .sv-ranking-item:hover .sv-ranking-item__icon{visibility:hidden}.sv-ranking--disabled{opacity:.8}.sv-ranking-shortcut[hidden]{display:none}.sv-ranking-shortcut .sv-ranking-item__icon{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-ranking-shortcut .sv-ranking-item__text{margin-right:calc(4 * var(--base-unit, 8px))}.sv-ranking-shortcut .sv-ranking-item__icon--hover{visibility:visible}.sv-ranking-shortcut .sv-ranking-item__icon{width:calc(1.75 * var(--base-unit, 8px));height:calc(2 * var(--base-unit, 8px));top:calc(1 * var(--base-unit, 8px))}.sv-ranking-shortcut .sv-ranking-item__icon-container{margin-left:calc(1 * var(--base-unit, 8px))}.sv-list{padding:0;margin:0;overflow-y:auto;background:var(--background, #fff);font-family:var(--font-family, var(--font-family));list-style-type:none}.sv-list__empty-container{width:100%;font-family:var(--font-family, var(--font-family));box-sizing:border-box;padding:calc(1.5 * var(--base-unit, 8px)) calc(8 * var(--base-unit, 8px));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv-list__empty-text{line-height:calc(3 * var(--base-unit, 8px));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));font-weight:400;text-align:center;color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__item{width:100%;align-items:center;box-sizing:border-box;color:var(--sjs-general-forecolor, var(--foreground, #161616));cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv-list__item-body{width:100%;align-items:center;box-sizing:border-box;padding-block:calc(1 * var(--base-unit, 8px));padding-inline-end:calc(8 * var(--base-unit, 8px));padding-inline-start:calc(2 * var(--base-unit, 8px));color:var(--sjs-general-forecolor, var(--foreground, #161616));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(3 * var(--base-unit, 8px));cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv-list__item.sv-list__item--focused:not(.sv-list__item--selected){outline:none}.sv-list__item.sv-list__item--focused:not(.sv-list__item--selected) .sv-list__item-body{border:calc(0.25 * var(--base-unit, 8px)) solid var(--sjs-border-light, var(--border-light, #eaeaea));border-radius:calc(1 * var(--sjs-corner-radius, 4px));padding-block:calc(0.75 * var(--base-unit, 8px));padding-inline-end:calc(7.75 * var(--base-unit, 8px));padding-inline-start:calc(1.75 * var(--base-unit, 8px))}.sv-list__item.sv-list__item--focused:not(.sv-list__item--selected) .sv-string-viewer{margin-inline-start:calc(-0.25 * var(--base-unit, 8px))}.sv-list__item:hover,.sv-list__item:focus{outline:none}.sv-list__item:hover .sv-list__item-body,.sv-list__item:focus .sv-list__item-body{background-color:var(--sjs-questionpanel-hovercolor, var(--sjs-general-backcolor-dark, rgb(248, 248, 248)))}.sv-list__item--with-icon.sv-list__item--with-icon{padding:0}.sv-list__item--with-icon.sv-list__item--with-icon .sv-list__item-body{padding-top:calc(1.5 * var(--base-unit, 8px));padding-bottom:calc(1.5 * var(--base-unit, 8px));gap:calc(2 * var(--base-unit, 8px));display:flex}.sv-list__item-icon{float:left;width:calc(3 * var(--base-unit, 8px));height:calc(3 * var(--base-unit, 8px))}.sv-list__item-icon svg{display:block}.sv-list__item-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}[dir=rtl] .sv-list__item-icon,[style*="direction:rtl"] .sv-list__item-icon,[style*="direction: rtl"] .sv-list__item-icon{float:right}.sv-list__item-separator{margin:calc(1 * var(--base-unit, 8px)) 0;height:1px;background-color:var(--sjs-border-default, var(--border, #d6d6d6))}.sv-list__item.sv-list__item--selected .sv-list__item-body,.sv-list__item.sv-list__item--selected:hover .sv-list__item-body,.sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-body,.sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-body,li:focus .sv-list__item.sv-list__item--selected .sv-list__item-body{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff));font-weight:600}.sv-list__item.sv-list__item--selected .sv-list__item-icon use,.sv-list__item.sv-list__item--selected:hover .sv-list__item-icon use,.sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-icon use,.sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-icon use,li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use{fill:var(--background, #fff)}.sv-multi-select-list .sv-list__item.sv-list__item--selected .sv-list__item-body,.sv-multi-select-list .sv-list__item.sv-list__item--selected:hover .sv-list__item-body{background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)));color:var(--sjs-general-forecolor, var(--foreground, #161616));font-weight:400}.sv-list__item.sv-list__item--disabled .sv-list__item-body{cursor:default;color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__item span{white-space:nowrap}.sv-list__container{position:relative;display:flex;height:100%;flex-direction:column;display:flex;min-height:0}.sv-list__filter{border-bottom:1px solid var(--sjs-border-inside, var(--border-inside, rgba(0, 0, 0, 0.16)));background:var(--background, #fff);padding-bottom:calc(1 * var(--base-unit, 8px))}.sv-list__filter-icon{display:block;position:absolute;top:calc(1.5 * var(--base-unit, 8px));inset-inline-start:calc(2 * var(--base-unit, 8px))}.sv-list__filter-icon .sv-svg-icon{width:calc(3 * var(--base-unit, 8px));height:calc(3 * var(--base-unit, 8px))}.sv-list__filter-icon .sv-svg-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;background:var(--background, #fff);box-sizing:border-box;width:100%;outline:none;font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));color:var(--sjs-general-forecolor, var(--foreground, #161616));padding:calc(1.5 * var(--base-unit, 8px)) calc(3 * var(--base-unit, 8px));padding-inline-start:calc(7 * var(--base-unit, 8px));line-height:calc(3 * var(--base-unit, 8px));border:none}.sv-list__input::placeholder{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__input:disabled,.sv-list__input:disabled::placeholder{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__loading-indicator{pointer-events:none}.sv-list__loading-indicator .sv-list__item-body{background-color:rgba(0,0,0,0)}.sv-save-data_root{position:absolute;left:50%;bottom:calc(3 * var(--base-unit, 8px));background:var(--background, #fff);opacity:0;padding:calc(3 * var(--base-unit, 8px)) calc(6 * var(--base-unit, 8px));box-shadow:0px 2px 6px rgba(0,0,0,.1);border-radius:calc(2 * var(--sjs-corner-radius, 4px));color:var(--sjs-general-forecolor, var(--foreground, #161616));min-width:calc(30 * var(--base-unit, 8px));text-align:center;z-index:1600;font-family:var(--font-family, var(--font-family));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(3 * var(--base-unit, 8px));display:flex;flex-direction:row;justify-content:center;align-items:center;transform:translateX(-50%) translateY(calc(3 * var(--base-unit, 8px)));transition-timing-function:ease-in;transition-property:transform,opacity;transition-delay:.25s;transition:.5s}.sv-save-data_root.sv-save-data_root--shown{transition-timing-function:ease-out;transition-property:transform,opacity;transform:translateX(-50%) translateY(0);transition-delay:.25s;opacity:.75}.sv-save-data_root span{display:flex;flex-grow:1}.sv-save-data_root .sv-action-bar{display:flex;flex-grow:0;flex-shrink:0}.sv-save-data_root--shown.sv-save-data_success,.sv-save-data_root--shown.sv-save-data_error{opacity:1}.sv-save-data_root.sv-save-data_error{background-color:var(--red, #e60a3e);color:var(--background, #fff);font-weight:600;padding:calc(2 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) calc(6 * var(--base-unit, 8px));gap:calc(6 * var(--base-unit, 8px))}.sv-save-data_root.sv-save-data_error .sv-save-data_button{font-weight:600;font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(3 * var(--base-unit, 8px));height:calc(5 * var(--base-unit, 8px));color:#fff;background-color:var(--red, #e60a3e);border:calc(0.25 * var(--base-unit, 8px)) solid #fff;border-radius:calc(1.5 * var(--sjs-corner-radius, 4px));padding:calc(1 * var(--base-unit, 8px)) calc(3 * var(--base-unit, 8px));display:flex;align-items:center}.sv-save-data_root.sv-save-data_error .sv-save-data_button:hover,.sv-save-data_root.sv-save-data_error .sv-save-data_button:focus{color:var(--red, #e60a3e);background-color:var(--background, #fff)}.sv-save-data_root.sv-save-data_success{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));color:#fff;font-weight:600}.sjs_sp_container{position:relative}.sjs_sp_controls{position:absolute;left:0;bottom:0}.sjs_sp_controls>button{user-select:none}.sjs_sp_container>div>canvas:focus{outline:none}.sjs_sp_placeholder{display:flex;align-items:center;justify-content:center;position:absolute;z-index:0;user-select:none;pointer-events:none;width:100%;height:100%}.sv-boolean__decorator{border-radius:2px}.sv_main .sv-boolean__decorator+.sv-boolean__label{float:none;vertical-align:top;margin-left:.5em}.sv-boolean__svg{border:none;border-radius:2px;background-color:#1ab394;fill:#fff;width:24px;height:24px}.sv-boolean--allowhover:hover .sv-boolean__checked-path{display:inline-block}.sv-boolean--allowhover:hover .sv-boolean__svg{background-color:#9f9f9f;fill:#fff}.sv-boolean--allowhover:hover .sv-boolean__unchecked-path,.sv-boolean--allowhover:hover .sv-boolean__indeterminate-path{display:none}.sv-boolean__checked-path,.sv-boolean__indeterminate-path{display:none}.sv-boolean--indeterminate .sv-boolean__svg{background-color:inherit;fill:#1ab394}.sv-boolean--indeterminate .sv-boolean__indeterminate-path{display:inline-block}.sv-boolean--indeterminate .sv-boolean__unchecked-path,.sv-boolean--checked .sv-boolean__unchecked-path{display:none}.sv-boolean--checked .sv-boolean__checked-path{display:inline-block}.sv-boolean--disabled.sv-boolean--indeterminate .sv-boolean__svg{background-color:inherit;fill:#dbdbdb}.sv-boolean--disabled .sv-boolean__svg{background-color:#dbdbdb}td.sv_matrix_cell .sv_qbln,td.td.sv_matrix_cell .sv_qbln{text-align:center}td.sv_matrix_cell .sv_qbln .sv-boolean,td.td.sv_matrix_cell .sv_qbln .sv-boolean{text-align:initial}sv-components-container,.sd-components-container{display:flex}.sv-components-row{display:flex;flex-direction:row;width:100%}.sv-components-column{display:flex;flex-direction:column}.sv-components-column--expandable{flex-grow:1}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question{display:block;width:100% !important}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-question__header--location--left,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-question__header--location--left{float:none}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-selectbase__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-imagepicker__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-selectbase__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-imagepicker__item--inline{display:block}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table{display:block}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table thead,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table thead{display:none}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td.sv-table__cell--choice,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td.sv-table__cell--choice{text-align:initial}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tbody,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tr,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tbody,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tr,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td{display:block}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdropdown td:before,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdynamic td:before,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdropdown td:before,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdynamic td:before{content:attr(data-responsive-title)}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root td label.sv-matrix__label,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td label.sv-matrix__label{display:inline}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root td:after,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td:after{content:attr(data-responsive-title)}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root .sv-matrix__cell,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root .sv-matrix__cell{text-align:initial}@media(max-width: 600px){.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question{display:block;width:100% !important}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-question__header--location--left,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-question__header--location--left{float:none}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-selectbase__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-imagepicker__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-selectbase__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-imagepicker__item--inline{display:block}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table{display:block}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table thead,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table thead{display:none}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td.sv-table__cell--choice,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td.sv-table__cell--choice{text-align:initial}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tbody,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tr,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tbody,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tr,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td{display:block}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdropdown td:before,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdynamic td:before,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdropdown td:before,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdynamic td:before{content:attr(data-responsive-title)}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root td label.sv-matrix__label,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td label.sv-matrix__label{display:inline}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root td:after,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td:after{content:attr(data-responsive-title)}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root .sv-matrix__cell,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root .sv-matrix__cell{text-align:initial}}body{--sv-modern-mark: true}.sv-matrixdynamic__drag-icon{padding-top:16px}.sv-matrixdynamic__drag-icon:after{content:" ";display:block;height:6px;width:20px;border:1px solid var(--border-color, rgba(64, 64, 64, 0.5));box-sizing:border-box;border-radius:10px;cursor:move;margin-top:12px}.sv-matrix__drag-drop-ghost-position-top,.sv-matrix__drag-drop-ghost-position-bottom{position:relative}.sv-matrix__drag-drop-ghost-position-top::after,.sv-matrix__drag-drop-ghost-position-bottom::after{content:"";width:100%;height:4px;background-color:var(--main-color, #1ab394);position:absolute;left:0}.sv-matrix__drag-drop-ghost-position-top::after{top:0}.sv-matrix__drag-drop-ghost-position-bottom::after{bottom:0}.sv-skeleton-element{background-color:var(--background-dim, var(--background-dim, #f3f3f3))}\n`,""]);const _=g},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);n&&s[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),r&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=r):c[2]=r),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},1667:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},1143:e=>{"use strict";e.exports=function(e,t,r,n,o,i,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,o,i,s,a],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},4448:(e,t,r)=>{"use strict";var n=r(7294),o=r(3840);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(a[e]=t,e=0;e<t.length;e++)s.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},f={};function m(e,t,r,n,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function v(e,t,r,n){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,o,n)&&(r=null),n||null===o?function(e){return!!p.call(f,e)||!p.call(h,e)&&(d.test(e)?f[e]=!0:(h[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,y);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),C=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),V=Symbol.for("react.provider"),E=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var j=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function q(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}var M,L=Object.assign;function A(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var N=!1;function B(e,t){if(!e||N)return"";N=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=n.stack.split("\n"),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(1!==s||1!==a)do{if(s--,0>--a||o[s]!==i[a]){var l="\n"+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=a);break}}}finally{N=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?A(e):""}function F(e){switch(e.tag){case 5:return A(e.type);case 16:return A("Lazy");case 13:return A("Suspense");case 19:return A("SuspenseList");case 0:case 2:case 15:return B(e.type,!1);case 11:return B(e.type.render,!1);case 1:return B(e.type,!0);default:return""}}function z(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case P:return"Fragment";case C:return"Portal";case S:return"Profiler";case _:return"StrictMode";case T:return"Suspense";case k:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case V:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return z(e(t))}catch(e){}}return null}function Q(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return z(t);case 8:return t===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=U(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function J(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}}function $(e,t){var r=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function K(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=H(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function X(e,t){Z(e,t);var r=H(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,r):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Y(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function ee(e,t,r){"number"===t&&J(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var te=Array.isArray;function re(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+H(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ne(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(i(92));if(te(r)){if(1<r.length)throw Error(i(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:H(r)}}function ie(e,t){var r=H(t.value),n=H(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,pe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function me(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=me(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}Object.keys(he).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var be=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(be[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Pe=null,_e=null;function Se(e){if(e=xo(e)){if("function"!=typeof Ce)throw Error(i(280));var t=e.stateNode;t&&(t=Co(t),Ce(e.stateNode,e.type,t))}}function Ve(e){Pe?_e?_e.push(e):_e=[e]:Pe=e}function Ee(){if(Pe){var e=Pe,t=_e;if(_e=Pe=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function Oe(e,t){return e(t)}function Te(){}var ke=!1;function Re(e,t,r){if(ke)return e(t,r);ke=!0;try{return Oe(e,t,r)}finally{ke=!1,(null!==Pe||null!==_e)&&(Te(),Ee())}}function Ie(e,t){var r=e.stateNode;if(null===r)return null;var n=Co(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(i(231,t,typeof r));return r}var je=!1;if(c)try{var De={};Object.defineProperty(De,"passive",{get:function(){je=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ce){je=!1}function qe(e,t,r,n,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(e){this.onError(e)}}var Me=!1,Le=null,Ae=!1,Ne=null,Be={onError:function(e){Me=!0,Le=e}};function Fe(e,t,r,n,o,i,s,a,l){Me=!1,Le=null,qe.apply(Be,arguments)}function ze(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function Qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function He(e){if(ze(e)!==e)throw Error(i(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(i(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(null===o)break;var s=o.alternate;if(null===s){if(null!==(n=o.return)){r=n;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===r)return He(o),e;if(s===n)return He(o),t;s=s.sibling}throw Error(i(188))}if(r.return!==n.return)r=o,n=s;else{for(var a=!1,l=o.child;l;){if(l===r){a=!0,r=o,n=s;break}if(l===n){a=!0,n=o,r=s;break}l=l.sibling}if(!a){for(l=s.child;l;){if(l===r){a=!0,r=s,n=o;break}if(l===n){a=!0,n=s,r=o;break}l=l.sibling}if(!a)throw Error(i(189))}}if(r.alternate!==n)throw Error(i(190))}if(3!==r.tag)throw Error(i(188));return r.stateNode.current===r?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var Ge=o.unstable_scheduleCallback,Je=o.unstable_cancelCallback,$e=o.unstable_shouldYield,Ke=o.unstable_requestPaint,Ze=o.unstable_now,Xe=o.unstable_getCurrentPriorityLevel,Ye=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,rt=o.unstable_LowPriority,nt=o.unstable_IdlePriority,ot=null,it=null,st=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(at(e)/lt|0)|0},at=Math.log,lt=Math.LN2,ut=64,ct=4194304;function pt(e){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: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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,s=268435455&r;if(0!==s){var a=s&~o;0!==a?n=pt(a):0!=(i&=s)&&(n=pt(i))}else 0!=(s=r&~o)?n=pt(s):0!==i&&(n=pt(i));if(0===n)return 0;if(0!==t&&t!==n&&0==(t&o)&&((o=n&-n)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&n)&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)o=1<<(r=31-st(t)),n|=e[r],t&=~o;return n}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 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 t+5e3;default:return-1}}function ft(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return 0==(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function bt(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=r}function yt(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-st(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var vt=0;function xt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wt,Ct,Pt,_t,St,Vt=!1,Et=[],Ot=null,Tt=null,kt=null,Rt=new Map,It=new Map,jt=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function qt(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":kt=null;break;case"pointerover":case"pointerout":Rt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Mt(e,t,r,n,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=xo(t))&&Ct(t),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Lt(e){var t=vo(e.target);if(null!==t){var r=ze(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Qe(r)))return e.blockedOn=t,void St(e.priority,(function(){Pt(r)}))}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function At(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=$t(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=xo(r))&&Ct(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);xe=n,r.target.dispatchEvent(n),xe=null,t.shift()}return!0}function Nt(e,t,r){At(e)&&r.delete(t)}function Bt(){Vt=!1,null!==Ot&&At(Ot)&&(Ot=null),null!==Tt&&At(Tt)&&(Tt=null),null!==kt&&At(kt)&&(kt=null),Rt.forEach(Nt),It.forEach(Nt)}function Ft(e,t){e.blockedOn===t&&(e.blockedOn=null,Vt||(Vt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Bt)))}function zt(e){function t(t){return Ft(t,e)}if(0<Et.length){Ft(Et[0],e);for(var r=1;r<Et.length;r++){var n=Et[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==Ot&&Ft(Ot,e),null!==Tt&&Ft(Tt,e),null!==kt&&Ft(kt,e),Rt.forEach(t),It.forEach(t),r=0;r<jt.length;r++)(n=jt[r]).blockedOn===e&&(n.blockedOn=null);for(;0<jt.length&&null===(r=jt[0]).blockedOn;)Lt(r),null===r.blockedOn&&jt.shift()}var Qt=x.ReactCurrentBatchConfig,Ht=!0;function Ut(e,t,r,n){var o=vt,i=Qt.transition;Qt.transition=null;try{vt=1,Gt(e,t,r,n)}finally{vt=o,Qt.transition=i}}function Wt(e,t,r,n){var o=vt,i=Qt.transition;Qt.transition=null;try{vt=4,Gt(e,t,r,n)}finally{vt=o,Qt.transition=i}}function Gt(e,t,r,n){if(Ht){var o=$t(e,t,r,n);if(null===o)Hn(e,t,n,Jt,r),qt(e,n);else if(function(e,t,r,n,o){switch(t){case"focusin":return Ot=Mt(Ot,e,t,r,n,o),!0;case"dragenter":return Tt=Mt(Tt,e,t,r,n,o),!0;case"mouseover":return kt=Mt(kt,e,t,r,n,o),!0;case"pointerover":var i=o.pointerId;return Rt.set(i,Mt(Rt.get(i)||null,e,t,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,It.set(i,Mt(It.get(i)||null,e,t,r,n,o)),!0}return!1}(o,e,t,r,n))n.stopPropagation();else if(qt(e,n),4&t&&-1<Dt.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&wt(i),null===(i=$t(e,t,r,n))&&Hn(e,t,n,Jt,r),i===o)break;o=i}null!==o&&n.stopPropagation()}else Hn(e,t,n,null,r)}}var Jt=null;function $t(e,t,r,n){if(Jt=null,null!==(e=vo(e=we(n))))if(null===(t=ze(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=Qe(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Jt=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Ye:return 1;case et:return 4;case tt:case rt:return 16;case nt:return 536870912;default:return 16}default:return 16}}var Zt=null,Xt=null,Yt=null;function er(){if(Yt)return Yt;var e,t,r=Xt,n=r.length,o="value"in Zt?Zt.value:Zt.textContent,i=o.length;for(e=0;e<n&&r[e]===o[e];e++);var s=n-e;for(t=1;t<=s&&r[n-t]===o[i-t];t++);return Yt=o.slice(e,1<t?1-t:void 0)}function tr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rr(){return!0}function nr(){return!1}function or(e){function t(t,r,n,o,i){for(var s in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(o):o[s]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?rr:nr,this.isPropagationStopped=nr,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),t}var ir,sr,ar,lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ur=or(lr),cr=L({},lr,{view:0,detail:0}),pr=or(cr),dr=L({},cr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_r,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ar&&(ar&&"mousemove"===e.type?(ir=e.screenX-ar.screenX,sr=e.screenY-ar.screenY):sr=ir=0,ar=e),ir)},movementY:function(e){return"movementY"in e?e.movementY:sr}}),hr=or(dr),fr=or(L({},dr,{dataTransfer:0})),mr=or(L({},cr,{relatedTarget:0})),gr=or(L({},lr,{animationName:0,elapsedTime:0,pseudoElement:0})),br=L({},lr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yr=or(br),vr=or(L({},lr,{data:0})),xr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cr[e])&&!!t[e]}function _r(){return Pr}var Sr=L({},cr,{key:function(e){if(e.key){var t=xr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_r,charCode:function(e){return"keypress"===e.type?tr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Vr=or(Sr),Er=or(L({},dr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Or=or(L({},cr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_r})),Tr=or(L({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0})),kr=L({},dr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rr=or(kr),Ir=[9,13,27,32],jr=c&&"CompositionEvent"in window,Dr=null;c&&"documentMode"in document&&(Dr=document.documentMode);var qr=c&&"TextEvent"in window&&!Dr,Mr=c&&(!jr||Dr&&8<Dr&&11>=Dr),Lr=String.fromCharCode(32),Ar=!1;function Nr(e,t){switch(e){case"keyup":return-1!==Ir.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Br(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Fr=!1,zr={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 Qr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zr[e.type]:"textarea"===t}function Hr(e,t,r,n){Ve(n),0<(t=Wn(t,"onChange")).length&&(r=new ur("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Ur=null,Wr=null;function Gr(e){An(e,0)}function Jr(e){if(G(wo(e)))return e}function $r(e,t){if("change"===e)return t}var Kr=!1;if(c){var Zr;if(c){var Xr="oninput"in document;if(!Xr){var Yr=document.createElement("div");Yr.setAttribute("oninput","return;"),Xr="function"==typeof Yr.oninput}Zr=Xr}else Zr=!1;Kr=Zr&&(!document.documentMode||9<document.documentMode)}function en(){Ur&&(Ur.detachEvent("onpropertychange",tn),Wr=Ur=null)}function tn(e){if("value"===e.propertyName&&Jr(Wr)){var t=[];Hr(t,Wr,e,we(e)),Re(Gr,t)}}function rn(e,t,r){"focusin"===e?(en(),Wr=r,(Ur=t).attachEvent("onpropertychange",tn)):"focusout"===e&&en()}function nn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jr(Wr)}function on(e,t){if("click"===e)return Jr(t)}function sn(e,t){if("input"===e||"change"===e)return Jr(t)}var an="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ln(e,t){if(an(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!p.call(t,o)||!an(e[o],t[o]))return!1}return!0}function un(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cn(e,t){var r,n=un(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=un(n)}}function pn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dn(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=J((e=t.contentWindow).document)}return t}function hn(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)}function fn(e){var t=dn(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&pn(r.ownerDocument.documentElement,r)){if(null!==n&&hn(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=void 0===n.end?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=cn(r,i);var s=cn(r,n);o&&s&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mn=c&&"documentMode"in document&&11>=document.documentMode,gn=null,bn=null,yn=null,vn=!1;function xn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;vn||null==gn||gn!==J(n)||(n="selectionStart"in(n=gn)&&hn(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},yn&&ln(yn,n)||(yn=n,0<(n=Wn(bn,"onSelect")).length&&(t=new ur("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=gn)))}function wn(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Cn={animationend:wn("Animation","AnimationEnd"),animationiteration:wn("Animation","AnimationIteration"),animationstart:wn("Animation","AnimationStart"),transitionend:wn("Transition","TransitionEnd")},Pn={},_n={};function Sn(e){if(Pn[e])return Pn[e];if(!Cn[e])return e;var t,r=Cn[e];for(t in r)if(r.hasOwnProperty(t)&&t in _n)return Pn[e]=r[t];return e}c&&(_n=document.createElement("div").style,"AnimationEvent"in window||(delete Cn.animationend.animation,delete Cn.animationiteration.animation,delete Cn.animationstart.animation),"TransitionEvent"in window||delete Cn.transitionend.transition);var Vn=Sn("animationend"),En=Sn("animationiteration"),On=Sn("animationstart"),Tn=Sn("transitionend"),kn=new Map,Rn="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 toggle touchMove waiting wheel".split(" ");function In(e,t){kn.set(e,t),l(t,[e])}for(var jn=0;jn<Rn.length;jn++){var Dn=Rn[jn];In(Dn.toLowerCase(),"on"+(Dn[0].toUpperCase()+Dn.slice(1)))}In(Vn,"onAnimationEnd"),In(En,"onAnimationIteration"),In(On,"onAnimationStart"),In("dblclick","onDoubleClick"),In("focusin","onFocus"),In("focusout","onBlur"),In(Tn,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mn=new Set("cancel close invalid load scroll toggle".split(" ").concat(qn));function Ln(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,o,s,a,l,u){if(Fe.apply(this,arguments),Me){if(!Me)throw Error(i(198));var c=Le;Me=!1,Le=null,Ae||(Ae=!0,Ne=c)}}(n,t,void 0,e),e.currentTarget=null}function An(e,t){t=0!=(4&t);for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var s=n.length-1;0<=s;s--){var a=n[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;Ln(o,a,u),i=l}else for(s=0;s<n.length;s++){if(l=(a=n[s]).instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;Ln(o,a,u),i=l}}}if(Ae)throw e=Ne,Ae=!1,Ne=null,e}function Nn(e,t){var r=t[go];void 0===r&&(r=t[go]=new Set);var n=e+"__bubble";r.has(n)||(Qn(t,e,2,!1),r.add(n))}function Bn(e,t,r){var n=0;t&&(n|=4),Qn(r,e,n,t)}var Fn="_reactListening"+Math.random().toString(36).slice(2);function zn(e){if(!e[Fn]){e[Fn]=!0,s.forEach((function(t){"selectionchange"!==t&&(Mn.has(t)||Bn(t,!1,e),Bn(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Fn]||(t[Fn]=!0,Bn("selectionchange",!1,t))}}function Qn(e,t,r,n){switch(Kt(t)){case 1:var o=Ut;break;case 4:o=Wt;break;default:o=Gt}r=o.bind(null,t,r,e),o=void 0,!je||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),n?void 0!==o?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):void 0!==o?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Hn(e,t,r,n,o){var i=n;if(0==(1&t)&&0==(2&t)&&null!==n)e:for(;;){if(null===n)return;var s=n.tag;if(3===s||4===s){var a=n.stateNode.containerInfo;if(a===o||8===a.nodeType&&a.parentNode===o)break;if(4===s)for(s=n.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;s=s.return}for(;null!==a;){if(null===(s=vo(a)))return;if(5===(l=s.tag)||6===l){n=i=s;continue e}a=a.parentNode}}n=n.return}Re((function(){var n=i,o=we(r),s=[];e:{var a=kn.get(e);if(void 0!==a){var l=ur,u=e;switch(e){case"keypress":if(0===tr(r))break e;case"keydown":case"keyup":l=Vr;break;case"focusin":u="focus",l=mr;break;case"focusout":u="blur",l=mr;break;case"beforeblur":case"afterblur":l=mr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=fr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Or;break;case Vn:case En:case On:l=gr;break;case Tn:l=Tr;break;case"scroll":l=pr;break;case"wheel":l=Rr;break;case"copy":case"cut":case"paste":l=yr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Er}var c=0!=(4&t),p=!c&&"scroll"===e,d=c?null!==a?a+"Capture":null:a;c=[];for(var h,f=n;null!==f;){var m=(h=f).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==d&&null!=(m=Ie(f,d))&&c.push(Un(f,m,h))),p)break;f=f.return}0<c.length&&(a=new l(a,u,null,r,o),s.push({event:a,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||r===xe||!(u=r.relatedTarget||r.fromElement)||!vo(u)&&!u[mo])&&(l||a)&&(a=o.window===o?o:(a=o.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=n,null!==(u=(u=r.relatedTarget||r.toElement)?vo(u):null)&&(u!==(p=ze(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=n),l!==u)){if(c=hr,m="onMouseLeave",d="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(c=Er,m="onPointerLeave",d="onPointerEnter",f="pointer"),p=null==l?a:wo(l),h=null==u?a:wo(u),(a=new c(m,f+"leave",l,r,o)).target=p,a.relatedTarget=h,m=null,vo(o)===n&&((c=new c(d,f+"enter",u,r,o)).target=h,c.relatedTarget=p,m=c),p=m,l&&u)e:{for(d=u,f=0,h=c=l;h;h=Gn(h))f++;for(h=0,m=d;m;m=Gn(m))h++;for(;0<f-h;)c=Gn(c),f--;for(;0<h-f;)d=Gn(d),h--;for(;f--;){if(c===d||null!==d&&c===d.alternate)break e;c=Gn(c),d=Gn(d)}c=null}else c=null;null!==l&&Jn(s,a,l,c,!1),null!==u&&null!==p&&Jn(s,p,u,c,!0)}if("select"===(l=(a=n?wo(n):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var g=$r;else if(Qr(a))if(Kr)g=sn;else{g=nn;var b=rn}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(g=on);switch(g&&(g=g(e,n))?Hr(s,g,r,o):(b&&b(e,a,n),"focusout"===e&&(b=a._wrapperState)&&b.controlled&&"number"===a.type&&ee(a,"number",a.value)),b=n?wo(n):window,e){case"focusin":(Qr(b)||"true"===b.contentEditable)&&(gn=b,bn=n,yn=null);break;case"focusout":yn=bn=gn=null;break;case"mousedown":vn=!0;break;case"contextmenu":case"mouseup":case"dragend":vn=!1,xn(s,r,o);break;case"selectionchange":if(mn)break;case"keydown":case"keyup":xn(s,r,o)}var y;if(jr)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Fr?Nr(e,r)&&(v="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(v="onCompositionStart");v&&(Mr&&"ko"!==r.locale&&(Fr||"onCompositionStart"!==v?"onCompositionEnd"===v&&Fr&&(y=er()):(Xt="value"in(Zt=o)?Zt.value:Zt.textContent,Fr=!0)),0<(b=Wn(n,v)).length&&(v=new vr(v,e,null,r,o),s.push({event:v,listeners:b}),(y||null!==(y=Br(r)))&&(v.data=y))),(y=qr?function(e,t){switch(e){case"compositionend":return Br(t);case"keypress":return 32!==t.which?null:(Ar=!0,Lr);case"textInput":return(e=t.data)===Lr&&Ar?null:e;default:return null}}(e,r):function(e,t){if(Fr)return"compositionend"===e||!jr&&Nr(e,t)?(e=er(),Yt=Xt=Zt=null,Fr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mr&&"ko"!==t.locale?null:t.data}}(e,r))&&0<(n=Wn(n,"onBeforeInput")).length&&(o=new vr("onBeforeInput","beforeinput",null,r,o),s.push({event:o,listeners:n}),o.data=y)}An(s,t)}))}function Un(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Wn(e,t){for(var r=t+"Capture",n=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ie(e,r))&&n.unshift(Un(e,i,o)),null!=(i=Ie(e,t))&&n.push(Un(e,i,o))),e=e.return}return n}function Gn(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Jn(e,t,r,n,o){for(var i=t._reactName,s=[];null!==r&&r!==n;){var a=r,l=a.alternate,u=a.stateNode;if(null!==l&&l===n)break;5===a.tag&&null!==u&&(a=u,o?null!=(l=Ie(r,i))&&s.unshift(Un(r,l,a)):o||null!=(l=Ie(r,i))&&s.push(Un(r,l,a))),r=r.return}0!==s.length&&e.push({event:t,listeners:s})}var $n=/\r\n?/g,Kn=/\u0000|\uFFFD/g;function Zn(e){return("string"==typeof e?e:""+e).replace($n,"\n").replace(Kn,"")}function Xn(e,t,r){if(t=Zn(t),Zn(e)!==t&&r)throw Error(i(425))}function Yn(){}var eo=null,to=null;function ro(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var no="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,so="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(ao)}:no;function ao(e){setTimeout((function(){throw e}))}function lo(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&8===o.nodeType)if("/$"===(r=o.data)){if(0===n)return e.removeChild(o),void zt(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=o}while(r);zt(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),ho="__reactFiber$"+po,fo="__reactProps$"+po,mo="__reactContainer$"+po,go="__reactEvents$"+po,bo="__reactListeners$"+po,yo="__reactHandles$"+po;function vo(e){var t=e[ho];if(t)return t;for(var r=e.parentNode;r;){if(t=r[mo]||r[ho]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=co(e);null!==e;){if(r=e[ho])return r;e=co(e)}return t}r=(e=r).parentNode}return null}function xo(e){return!(e=e[ho]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Co(e){return e[fo]||null}var Po=[],_o=-1;function So(e){return{current:e}}function Vo(e){0>_o||(e.current=Po[_o],Po[_o]=null,_o--)}function Eo(e,t){_o++,Po[_o]=e.current,e.current=t}var Oo={},To=So(Oo),ko=So(!1),Ro=Oo;function Io(e,t){var r=e.type.contextTypes;if(!r)return Oo;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in r)i[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function jo(e){return null!=e.childContextTypes}function Do(){Vo(ko),Vo(To)}function qo(e,t,r){if(To.current!==Oo)throw Error(i(168));Eo(To,t),Eo(ko,r)}function Mo(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in t))throw Error(i(108,Q(e)||"Unknown",o));return L({},r,n)}function Lo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oo,Ro=To.current,Eo(To,e),Eo(ko,ko.current),!0}function Ao(e,t,r){var n=e.stateNode;if(!n)throw Error(i(169));r?(e=Mo(e,t,Ro),n.__reactInternalMemoizedMergedChildContext=e,Vo(ko),Vo(To),Eo(To,e)):Vo(ko),Eo(ko,r)}var No=null,Bo=!1,Fo=!1;function zo(e){null===No?No=[e]:No.push(e)}function Qo(){if(!Fo&&null!==No){Fo=!0;var e=0,t=vt;try{var r=No;for(vt=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}No=null,Bo=!1}catch(t){throw null!==No&&(No=No.slice(e+1)),Ge(Ye,Qo),t}finally{vt=t,Fo=!1}}return null}var Ho=[],Uo=0,Wo=null,Go=0,Jo=[],$o=0,Ko=null,Zo=1,Xo="";function Yo(e,t){Ho[Uo++]=Go,Ho[Uo++]=Wo,Wo=e,Go=t}function ei(e,t,r){Jo[$o++]=Zo,Jo[$o++]=Xo,Jo[$o++]=Ko,Ko=e;var n=Zo;e=Xo;var o=32-st(n)-1;n&=~(1<<o),r+=1;var i=32-st(t)+o;if(30<i){var s=o-o%5;i=(n&(1<<s)-1).toString(32),n>>=s,o-=s,Zo=1<<32-st(t)+o|r<<o|n,Xo=i+e}else Zo=1<<i|r<<o|n,Xo=e}function ti(e){null!==e.return&&(Yo(e,1),ei(e,1,0))}function ri(e){for(;e===Wo;)Wo=Ho[--Uo],Ho[Uo]=null,Go=Ho[--Uo],Ho[Uo]=null;for(;e===Ko;)Ko=Jo[--$o],Jo[$o]=null,Xo=Jo[--$o],Jo[$o]=null,Zo=Jo[--$o],Jo[$o]=null}var ni=null,oi=null,ii=!1,si=null;function ai(e,t){var r=Iu(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function li(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ni=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ni=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Ko?{id:Zo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=Iu(18,null,null,0)).stateNode=t,r.return=e,e.child=r,ni=e,oi=null,!0);default:return!1}}function ui(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var r=t;if(!li(e,t)){if(ui(e))throw Error(i(418));t=uo(r.nextSibling);var n=ni;t&&li(e,t)?ai(n,r):(e.flags=-4097&e.flags|2,ii=!1,ni=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ni=e}}}function pi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ni=e}function di(e){if(e!==ni)return!1;if(!ii)return pi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ro(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw hi(),Error(i(418));for(;t;)ai(e,t),t=uo(t.nextSibling)}if(pi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}oi=null}}else oi=ni?uo(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=oi;e;)e=uo(e.nextSibling)}function fi(){oi=ni=null,ii=!1}function mi(e){null===si?si=[e]:si.push(e)}var gi=x.ReactCurrentBatchConfig;function bi(e,t){if(e&&e.defaultProps){for(var r in t=L({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var yi=So(null),vi=null,xi=null,wi=null;function Ci(){wi=xi=vi=null}function Pi(e){var t=yi.current;Vo(yi),e._currentValue=t}function _i(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Si(e,t){vi=e,wi=xi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(xa=!0),e.firstContext=null)}function Vi(e){var t=e._currentValue;if(wi!==e)if(e={context:e,memoizedValue:t,next:null},null===xi){if(null===vi)throw Error(i(308));xi=e,vi.dependencies={lanes:0,firstContext:e}}else xi=xi.next=e;return t}var Ei=null;function Oi(e){null===Ei?Ei=[e]:Ei.push(e)}function Ti(e,t,r,n){var o=t.interleaved;return null===o?(r.next=r,Oi(t)):(r.next=o.next,o.next=r),t.interleaved=r,ki(e,n)}function ki(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var Ri=!1;function Ii(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ji(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Di(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function qi(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,0!=(2&Tl)){var o=n.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),n.pending=t,ki(e,r)}return null===(o=n.interleaved)?(t.next=t,Oi(n)):(t.next=o.next,o.next=t),n.interleaved=t,ki(e,r)}function Mi(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&r))){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}function Li(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var o=null,i=null;if(null!==(r=r.firstBaseUpdate)){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===i?o=i=s:i=i.next=s,r=r.next}while(null!==r);null===i?o=i=t:i=i.next=t}else o=i=t;return r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ai(e,t,r,n){var o=e.updateQueue;Ri=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(null!==a){o.shared.pending=null;var l=a,u=l.next;l.next=null,null===s?i=u:s.next=u,s=l;var c=e.alternate;null!==c&&(a=(c=c.updateQueue).lastBaseUpdate)!==s&&(null===a?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l)}if(null!==i){var p=o.baseState;for(s=0,c=u=l=null,a=i;;){var d=a.lane,h=a.eventTime;if((n&d)===d){null!==c&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var f=e,m=a;switch(d=t,h=r,m.tag){case 1:if("function"==typeof(f=m.payload)){p=f.call(h,p,d);break e}p=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(d="function"==typeof(f=m.payload)?f.call(h,p,d):f))break e;p=L({},p,d);break e;case 2:Ri=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(u=c=h,l=p):c=c.next=h,s|=d;if(null===(a=a.next)){if(null===(a=o.shared.pending))break;a=(d=a).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===c&&(l=p),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{s|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ll|=s,e.lanes=s,e.memoizedState=p}}function Ni(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(null!==o){if(n.callback=null,n=r,"function"!=typeof o)throw Error(i(191,o));o.call(n)}}}var Bi=(new n.Component).refs;function Fi(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:L({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var zi={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=tu(),o=ru(e),i=Di(n,o);i.payload=t,null!=r&&(i.callback=r),null!==(t=qi(e,i,o))&&(nu(t,e,o,n),Mi(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=tu(),o=ru(e),i=Di(n,o);i.tag=1,i.payload=t,null!=r&&(i.callback=r),null!==(t=qi(e,i,o))&&(nu(t,e,o,n),Mi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=tu(),n=ru(e),o=Di(r,n);o.tag=2,null!=t&&(o.callback=t),null!==(t=qi(e,o,n))&&(nu(t,e,n,r),Mi(t,e,n))}};function Qi(e,t,r,n,o,i,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,i,s):!(t.prototype&&t.prototype.isPureReactComponent&&ln(r,n)&&ln(o,i))}function Hi(e,t,r){var n=!1,o=Oo,i=t.contextType;return"object"==typeof i&&null!==i?i=Vi(i):(o=jo(t)?Ro:To.current,i=(n=null!=(n=t.contextTypes))?Io(e,o):Oo),t=new t(r,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=zi,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ui(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&zi.enqueueReplaceState(t,t.state,null)}function Wi(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs=Bi,Ii(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Vi(i):(i=jo(t)?Ro:To.current,o.context=Io(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Fi(e,t,i,r),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&zi.enqueueReplaceState(o,o.state,null),Ai(e,r,o,n),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Gi(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(i(309));var n=r.stateNode}if(!n)throw Error(i(147,e));var o=n,s=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=o.refs;t===Bi&&(t=o.refs={}),null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!=typeof e)throw Error(i(284));if(!r._owner)throw Error(i(290,e))}return e}function Ji(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function $i(e){return(0,e._init)(e._payload)}function Ki(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Du(e,t)).index=0,e.sibling=null,e}function s(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,r,n){return null===t||6!==t.tag?((t=Au(r,e.mode,n)).return=e,t):((t=o(t,r)).return=e,t)}function u(e,t,r,n){var i=r.type;return i===P?p(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===I&&$i(i)===t.type)?((n=o(t,r.props)).ref=Gi(e,t,r),n.return=e,n):((n=qu(r.type,r.key,r.props,null,e.mode,n)).ref=Gi(e,t,r),n.return=e,n)}function c(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Nu(r,e.mode,n)).return=e,t):((t=o(t,r.children||[])).return=e,t)}function p(e,t,r,n,i){return null===t||7!==t.tag?((t=Mu(r,e.mode,n,i)).return=e,t):((t=o(t,r)).return=e,t)}function d(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Au(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(r=qu(t.type,t.key,t.props,null,e.mode,r)).ref=Gi(e,null,t),r.return=e,r;case C:return(t=Nu(t,e.mode,r)).return=e,t;case I:return d(e,(0,t._init)(t._payload),r)}if(te(t)||q(t))return(t=Mu(t,e.mode,r,null)).return=e,t;Ji(e,t)}return null}function h(e,t,r,n){var o=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==o?null:l(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return r.key===o?u(e,t,r,n):null;case C:return r.key===o?c(e,t,r,n):null;case I:return h(e,t,(o=r._init)(r._payload),n)}if(te(r)||q(r))return null!==o?null:p(e,t,r,n,null);Ji(e,r)}return null}function f(e,t,r,n,o){if("string"==typeof n&&""!==n||"number"==typeof n)return l(t,e=e.get(r)||null,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return u(t,e=e.get(null===n.key?r:n.key)||null,n,o);case C:return c(t,e=e.get(null===n.key?r:n.key)||null,n,o);case I:return f(e,t,r,(0,n._init)(n._payload),o)}if(te(n)||q(n))return p(t,e=e.get(r)||null,n,o,null);Ji(t,n)}return null}function m(o,i,a,l){for(var u=null,c=null,p=i,m=i=0,g=null;null!==p&&m<a.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var b=h(o,p,a[m],l);if(null===b){null===p&&(p=g);break}e&&p&&null===b.alternate&&t(o,p),i=s(b,i,m),null===c?u=b:c.sibling=b,c=b,p=g}if(m===a.length)return r(o,p),ii&&Yo(o,m),u;if(null===p){for(;m<a.length;m++)null!==(p=d(o,a[m],l))&&(i=s(p,i,m),null===c?u=p:c.sibling=p,c=p);return ii&&Yo(o,m),u}for(p=n(o,p);m<a.length;m++)null!==(g=f(p,o,m,a[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),i=s(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&p.forEach((function(e){return t(o,e)})),ii&&Yo(o,m),u}function g(o,a,l,u){var c=q(l);if("function"!=typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var p=c=null,m=a,g=a=0,b=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(b=m,m=null):b=m.sibling;var v=h(o,m,y.value,u);if(null===v){null===m&&(m=b);break}e&&m&&null===v.alternate&&t(o,m),a=s(v,a,g),null===p?c=v:p.sibling=v,p=v,m=b}if(y.done)return r(o,m),ii&&Yo(o,g),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=d(o,y.value,u))&&(a=s(y,a,g),null===p?c=y:p.sibling=y,p=y);return ii&&Yo(o,g),c}for(m=n(o,m);!y.done;g++,y=l.next())null!==(y=f(m,o,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),a=s(y,a,g),null===p?c=y:p.sibling=y,p=y);return e&&m.forEach((function(e){return t(o,e)})),ii&&Yo(o,g),c}return function e(n,i,s,l){if("object"==typeof s&&null!==s&&s.type===P&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case w:e:{for(var u=s.key,c=i;null!==c;){if(c.key===u){if((u=s.type)===P){if(7===c.tag){r(n,c.sibling),(i=o(c,s.props.children)).return=n,n=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===I&&$i(u)===c.type){r(n,c.sibling),(i=o(c,s.props)).ref=Gi(n,c,s),i.return=n,n=i;break e}r(n,c);break}t(n,c),c=c.sibling}s.type===P?((i=Mu(s.props.children,n.mode,l,s.key)).return=n,n=i):((l=qu(s.type,s.key,s.props,null,n.mode,l)).ref=Gi(n,i,s),l.return=n,n=l)}return a(n);case C:e:{for(c=s.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===s.containerInfo&&i.stateNode.implementation===s.implementation){r(n,i.sibling),(i=o(i,s.children||[])).return=n,n=i;break e}r(n,i);break}t(n,i),i=i.sibling}(i=Nu(s,n.mode,l)).return=n,n=i}return a(n);case I:return e(n,i,(c=s._init)(s._payload),l)}if(te(s))return m(n,i,s,l);if(q(s))return g(n,i,s,l);Ji(n,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==i&&6===i.tag?(r(n,i.sibling),(i=o(i,s)).return=n,n=i):(r(n,i),(i=Au(s,n.mode,l)).return=n,n=i),a(n)):r(n,i)}}var Zi=Ki(!0),Xi=Ki(!1),Yi={},es=So(Yi),ts=So(Yi),rs=So(Yi);function ns(e){if(e===Yi)throw Error(i(174));return e}function os(e,t){switch(Eo(rs,t),Eo(ts,e),Eo(es,Yi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Vo(es),Eo(es,t)}function is(){Vo(es),Vo(ts),Vo(rs)}function ss(e){ns(rs.current);var t=ns(es.current),r=le(t,e.type);t!==r&&(Eo(ts,e),Eo(es,r))}function as(e){ts.current===e&&(Vo(es),Vo(ts))}var ls=So(0);function us(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.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 cs=[];function ps(){for(var e=0;e<cs.length;e++)cs[e]._workInProgressVersionPrimary=null;cs.length=0}var ds=x.ReactCurrentDispatcher,hs=x.ReactCurrentBatchConfig,fs=0,ms=null,gs=null,bs=null,ys=!1,vs=!1,xs=0,ws=0;function Cs(){throw Error(i(321))}function Ps(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!an(e[r],t[r]))return!1;return!0}function _s(e,t,r,n,o,s){if(fs=s,ms=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ds.current=null===e||null===e.memoizedState?aa:la,e=r(n,o),vs){s=0;do{if(vs=!1,xs=0,25<=s)throw Error(i(301));s+=1,bs=gs=null,t.updateQueue=null,ds.current=ua,e=r(n,o)}while(vs)}if(ds.current=sa,t=null!==gs&&null!==gs.next,fs=0,bs=gs=ms=null,ys=!1,t)throw Error(i(300));return e}function Ss(){var e=0!==xs;return xs=0,e}function Vs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===bs?ms.memoizedState=bs=e:bs=bs.next=e,bs}function Es(){if(null===gs){var e=ms.alternate;e=null!==e?e.memoizedState:null}else e=gs.next;var t=null===bs?ms.memoizedState:bs.next;if(null!==t)bs=t,gs=e;else{if(null===e)throw Error(i(310));e={memoizedState:(gs=e).memoizedState,baseState:gs.baseState,baseQueue:gs.baseQueue,queue:gs.queue,next:null},null===bs?ms.memoizedState=bs=e:bs=bs.next=e}return bs}function Os(e,t){return"function"==typeof t?t(e):t}function Ts(e){var t=Es(),r=t.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=e;var n=gs,o=n.baseQueue,s=r.pending;if(null!==s){if(null!==o){var a=o.next;o.next=s.next,s.next=a}n.baseQueue=o=s,r.pending=null}if(null!==o){s=o.next,n=n.baseState;var l=a=null,u=null,c=s;do{var p=c.lane;if((fs&p)===p)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var d={lane:p,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=d,a=n):u=u.next=d,ms.lanes|=p,Ll|=p}c=c.next}while(null!==c&&c!==s);null===u?a=n:u.next=l,an(n,t.memoizedState)||(xa=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=u,r.lastRenderedState=n}if(null!==(e=r.interleaved)){o=e;do{s=o.lane,ms.lanes|=s,Ll|=s,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function ks(e){var t=Es(),r=t.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,s=t.memoizedState;if(null!==o){r.pending=null;var a=o=o.next;do{s=e(s,a.action),a=a.next}while(a!==o);an(s,t.memoizedState)||(xa=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),r.lastRenderedState=s}return[s,n]}function Rs(){}function Is(e,t){var r=ms,n=Es(),o=t(),s=!an(n.memoizedState,o);if(s&&(n.memoizedState=o,xa=!0),n=n.queue,Hs(qs.bind(null,r,n,e),[e]),n.getSnapshot!==t||s||null!==bs&&1&bs.memoizedState.tag){if(r.flags|=2048,Ns(9,Ds.bind(null,r,n,o,t),void 0,null),null===kl)throw Error(i(349));0!=(30&fs)||js(r,t,o)}return o}function js(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=ms.updateQueue)?(t={lastEffect:null,stores:null},ms.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function Ds(e,t,r,n){t.value=r,t.getSnapshot=n,Ms(t)&&Ls(e)}function qs(e,t,r){return r((function(){Ms(t)&&Ls(e)}))}function Ms(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!an(e,r)}catch(e){return!0}}function Ls(e){var t=ki(e,1);null!==t&&nu(t,e,1,-1)}function As(e){var t=Vs();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Os,lastRenderedState:e},t.queue=e,e=e.dispatch=ra.bind(null,ms,e),[t.memoizedState,e]}function Ns(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=ms.updateQueue)?(t={lastEffect:null,stores:null},ms.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function Bs(){return Es().memoizedState}function Fs(e,t,r,n){var o=Vs();ms.flags|=e,o.memoizedState=Ns(1|t,r,void 0,void 0===n?null:n)}function zs(e,t,r,n){var o=Es();n=void 0===n?null:n;var i=void 0;if(null!==gs){var s=gs.memoizedState;if(i=s.destroy,null!==n&&Ps(n,s.deps))return void(o.memoizedState=Ns(t,r,i,n))}ms.flags|=e,o.memoizedState=Ns(1|t,r,i,n)}function Qs(e,t){return Fs(8390656,8,e,t)}function Hs(e,t){return zs(2048,8,e,t)}function Us(e,t){return zs(4,2,e,t)}function Ws(e,t){return zs(4,4,e,t)}function Gs(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Js(e,t,r){return r=null!=r?r.concat([e]):null,zs(4,4,Gs.bind(null,t,e),r)}function $s(){}function Ks(e,t){var r=Es();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Ps(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Zs(e,t){var r=Es();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Ps(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Xs(e,t,r){return 0==(21&fs)?(e.baseState&&(e.baseState=!1,xa=!0),e.memoizedState=r):(an(r,t)||(r=mt(),ms.lanes|=r,Ll|=r,e.baseState=!0),t)}function Ys(e,t){var r=vt;vt=0!==r&&4>r?r:4,e(!0);var n=hs.transition;hs.transition={};try{e(!1),t()}finally{vt=r,hs.transition=n}}function ea(){return Es().memoizedState}function ta(e,t,r){var n=ru(e);r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},na(e)?oa(t,r):null!==(r=Ti(e,t,r,n))&&(nu(r,e,n,tu()),ia(r,t,n))}function ra(e,t,r){var n=ru(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(na(e))oa(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=i(s,r);if(o.hasEagerState=!0,o.eagerState=a,an(a,s)){var l=t.interleaved;return null===l?(o.next=o,Oi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(r=Ti(e,t,o,n))&&(nu(r,e,n,o=tu()),ia(r,t,n))}}function na(e){var t=e.alternate;return e===ms||null!==t&&t===ms}function oa(e,t){vs=ys=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function ia(e,t,r){if(0!=(4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}var sa={readContext:Vi,useCallback:Cs,useContext:Cs,useEffect:Cs,useImperativeHandle:Cs,useInsertionEffect:Cs,useLayoutEffect:Cs,useMemo:Cs,useReducer:Cs,useRef:Cs,useState:Cs,useDebugValue:Cs,useDeferredValue:Cs,useTransition:Cs,useMutableSource:Cs,useSyncExternalStore:Cs,useId:Cs,unstable_isNewReconciler:!1},aa={readContext:Vi,useCallback:function(e,t){return Vs().memoizedState=[e,void 0===t?null:t],e},useContext:Vi,useEffect:Qs,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,Fs(4194308,4,Gs.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Fs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fs(4,2,e,t)},useMemo:function(e,t){var r=Vs();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Vs();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=ta.bind(null,ms,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Vs().memoizedState=e},useState:As,useDebugValue:$s,useDeferredValue:function(e){return Vs().memoizedState=e},useTransition:function(){var e=As(!1),t=e[0];return e=Ys.bind(null,e[1]),Vs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ms,o=Vs();if(ii){if(void 0===r)throw Error(i(407));r=r()}else{if(r=t(),null===kl)throw Error(i(349));0!=(30&fs)||js(n,t,r)}o.memoizedState=r;var s={value:r,getSnapshot:t};return o.queue=s,Qs(qs.bind(null,n,s,e),[e]),n.flags|=2048,Ns(9,Ds.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=Vs(),t=kl.identifierPrefix;if(ii){var r=Xo;t=":"+t+"R"+(r=(Zo&~(1<<32-st(Zo)-1)).toString(32)+r),0<(r=xs++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=ws++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},la={readContext:Vi,useCallback:Ks,useContext:Vi,useEffect:Hs,useImperativeHandle:Js,useInsertionEffect:Us,useLayoutEffect:Ws,useMemo:Zs,useReducer:Ts,useRef:Bs,useState:function(){return Ts(Os)},useDebugValue:$s,useDeferredValue:function(e){return Xs(Es(),gs.memoizedState,e)},useTransition:function(){return[Ts(Os)[0],Es().memoizedState]},useMutableSource:Rs,useSyncExternalStore:Is,useId:ea,unstable_isNewReconciler:!1},ua={readContext:Vi,useCallback:Ks,useContext:Vi,useEffect:Hs,useImperativeHandle:Js,useInsertionEffect:Us,useLayoutEffect:Ws,useMemo:Zs,useReducer:ks,useRef:Bs,useState:function(){return ks(Os)},useDebugValue:$s,useDeferredValue:function(e){var t=Es();return null===gs?t.memoizedState=e:Xs(t,gs.memoizedState,e)},useTransition:function(){return[ks(Os)[0],Es().memoizedState]},useMutableSource:Rs,useSyncExternalStore:Is,useId:ea,unstable_isNewReconciler:!1};function ca(e,t){try{var r="",n=t;do{r+=F(n),n=n.return}while(n);var o=r}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function pa(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function da(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ha="function"==typeof WeakMap?WeakMap:Map;function fa(e,t,r){(r=Di(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Ul||(Ul=!0,Wl=n),da(0,t)},r}function ma(e,t,r){(r=Di(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){da(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(r.callback=function(){da(0,t),"function"!=typeof n&&(null===Gl?Gl=new Set([this]):Gl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function ga(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new ha;var o=new Set;n.set(t,o)}else void 0===(o=n.get(t))&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=Vu.bind(null,e,t,r),t.then(e,e))}function ba(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ya(e,t,r,n,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Di(-1,1)).tag=2,qi(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var va=x.ReactCurrentOwner,xa=!1;function wa(e,t,r,n){t.child=null===e?Xi(t,null,r,n):Zi(t,e.child,r,n)}function Ca(e,t,r,n,o){r=r.render;var i=t.ref;return Si(t,o),n=_s(e,t,r,n,i,o),r=Ss(),null===e||xa?(ii&&r&&ti(t),t.flags|=1,wa(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ua(e,t,o))}function Pa(e,t,r,n,o){if(null===e){var i=r.type;return"function"!=typeof i||ju(i)||void 0!==i.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=qu(r.type,null,n,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,_a(e,t,i,n,o))}if(i=e.child,0==(e.lanes&o)){var s=i.memoizedProps;if((r=null!==(r=r.compare)?r:ln)(s,n)&&e.ref===t.ref)return Ua(e,t,o)}return t.flags|=1,(e=Du(i,n)).ref=t.ref,e.return=t,t.child=e}function _a(e,t,r,n,o){if(null!==e){var i=e.memoizedProps;if(ln(i,n)&&e.ref===t.ref){if(xa=!1,t.pendingProps=n=i,0==(e.lanes&o))return t.lanes=e.lanes,Ua(e,t,o);0!=(131072&e.flags)&&(xa=!0)}}return Ea(e,t,r,n,o)}function Sa(e,t,r){var n=t.pendingProps,o=n.children,i=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Eo(Dl,jl),jl|=r;else{if(0==(1073741824&r))return e=null!==i?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Eo(Dl,jl),jl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==i?i.baseLanes:r,Eo(Dl,jl),jl|=n}else null!==i?(n=i.baseLanes|r,t.memoizedState=null):n=r,Eo(Dl,jl),jl|=n;return wa(e,t,o,r),t.child}function Va(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Ea(e,t,r,n,o){var i=jo(r)?Ro:To.current;return i=Io(t,i),Si(t,o),r=_s(e,t,r,n,i,o),n=Ss(),null===e||xa?(ii&&n&&ti(t),t.flags|=1,wa(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ua(e,t,o))}function Oa(e,t,r,n,o){if(jo(r)){var i=!0;Lo(t)}else i=!1;if(Si(t,o),null===t.stateNode)Ha(e,t),Hi(t,r,n),Wi(t,r,n,o),n=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=r.contextType;u="object"==typeof u&&null!==u?Vi(u):Io(t,u=jo(r)?Ro:To.current);var c=r.getDerivedStateFromProps,p="function"==typeof c||"function"==typeof s.getSnapshotBeforeUpdate;p||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==n||l!==u)&&Ui(t,s,n,u),Ri=!1;var d=t.memoizedState;s.state=d,Ai(t,n,s,o),l=t.memoizedState,a!==n||d!==l||ko.current||Ri?("function"==typeof c&&(Fi(t,r,c,n),l=t.memoizedState),(a=Ri||Qi(t,r,a,n,d,l,u))?(p||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),s.props=n,s.state=l,s.context=u,n=a):("function"==typeof s.componentDidMount&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,ji(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:bi(t.type,a),s.props=u,p=t.pendingProps,d=s.context,l="object"==typeof(l=r.contextType)&&null!==l?Vi(l):Io(t,l=jo(r)?Ro:To.current);var h=r.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==p||d!==l)&&Ui(t,s,n,l),Ri=!1,d=t.memoizedState,s.state=d,Ai(t,n,s,o);var f=t.memoizedState;a!==p||d!==f||ko.current||Ri?("function"==typeof h&&(Fi(t,r,h,n),f=t.memoizedState),(u=Ri||Qi(t,r,u,n,d,f,l)||!1)?(c||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(n,f,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(n,f,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=f),s.props=n,s.state=f,s.context=l,n=u):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return Ta(e,t,r,n,i,o)}function Ta(e,t,r,n,o,i){Va(e,t);var s=0!=(128&t.flags);if(!n&&!s)return o&&Ao(t,r,!1),Ua(e,t,i);n=t.stateNode,va.current=t;var a=s&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&s?(t.child=Zi(t,e.child,null,i),t.child=Zi(t,null,a,i)):wa(e,t,a,i),t.memoizedState=n.state,o&&Ao(t,r,!0),t.child}function ka(e){var t=e.stateNode;t.pendingContext?qo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&qo(0,t.context,!1),os(e,t.containerInfo)}function Ra(e,t,r,n,o){return fi(),mi(o),t.flags|=256,wa(e,t,r,n),t.child}var Ia,ja,Da,qa,Ma={dehydrated:null,treeContext:null,retryLane:0};function La(e){return{baseLanes:e,cachePool:null,transitions:null}}function Aa(e,t,r){var n,o=t.pendingProps,s=ls.current,a=!1,l=0!=(128&t.flags);if((n=l)||(n=(null===e||null!==e.memoizedState)&&0!=(2&s)),n?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),Eo(ls,1&s),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=Lu(l,o,0,null),e=Mu(e,o,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=La(r),t.memoizedState=Ma,e):Na(t,l));if(null!==(s=e.memoizedState)&&null!==(n=s.dehydrated))return function(e,t,r,n,o,s,a){if(r)return 256&t.flags?(t.flags&=-257,Ba(e,t,a,n=pa(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=n.fallback,o=t.mode,n=Lu({mode:"visible",children:n.children},o,0,null),(s=Mu(s,o,a,null)).flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,0!=(1&t.mode)&&Zi(t,e.child,null,a),t.child.memoizedState=La(a),t.memoizedState=Ma,s);if(0==(1&t.mode))return Ba(e,t,a,null);if("$!"===o.data){if(n=o.nextSibling&&o.nextSibling.dataset)var l=n.dgst;return n=l,Ba(e,t,a,n=pa(s=Error(i(419)),n,void 0))}if(l=0!=(a&e.childLanes),xa||l){if(null!==(n=kl)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(n.suspendedLanes|a))?0:o)&&o!==s.retryLane&&(s.retryLane=o,ki(e,o),nu(n,e,o,-1))}return gu(),Ba(e,t,a,n=pa(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ou.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,oi=uo(o.nextSibling),ni=t,ii=!0,si=null,null!==e&&(Jo[$o++]=Zo,Jo[$o++]=Xo,Jo[$o++]=Ko,Zo=e.id,Xo=e.overflow,Ko=t),(t=Na(t,n.children)).flags|=4096,t)}(e,t,l,o,n,s,r);if(a){a=o.fallback,l=t.mode,n=(s=e.child).sibling;var u={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==s?((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null):(o=Du(s,u)).subtreeFlags=14680064&s.subtreeFlags,null!==n?a=Du(n,a):(a=Mu(a,l,r,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?La(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~r,t.memoizedState=Ma,o}return e=(a=e.child).sibling,o=Du(a,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Na(e,t){return(t=Lu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ba(e,t,r,n){return null!==n&&mi(n),Zi(t,e.child,null,r),(e=Na(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fa(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),_i(e.return,t,r)}function za(e,t,r,n,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function Qa(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(wa(e,t,n.children,r),0!=(2&(n=ls.current)))n=1&n|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fa(e,r,t);else if(19===e.tag)Fa(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Eo(ls,n),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(e=r.alternate)&&null===us(e)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),za(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===us(e)){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}za(t,!0,r,null,i);break;case"together":za(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ha(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ua(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ll|=t.lanes,0==(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(r=Du(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Du(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Wa(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ga(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=14680064&o.subtreeFlags,n|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Ja(e,t,r){var n=t.pendingProps;switch(ri(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ga(t),null;case 1:case 17:return jo(t.type)&&Do(),Ga(t),null;case 3:return n=t.stateNode,is(),Vo(ko),Vo(To),ps(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==si&&(au(si),si=null))),ja(e,t),Ga(t),null;case 5:as(t);var o=ns(rs.current);if(r=t.type,null!==e&&null!=t.stateNode)Da(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(i(166));return Ga(t),null}if(e=ns(es.current),di(t)){n=t.stateNode,r=t.type;var s=t.memoizedProps;switch(n[ho]=t,n[fo]=s,e=0!=(1&t.mode),r){case"dialog":Nn("cancel",n),Nn("close",n);break;case"iframe":case"object":case"embed":Nn("load",n);break;case"video":case"audio":for(o=0;o<qn.length;o++)Nn(qn[o],n);break;case"source":Nn("error",n);break;case"img":case"image":case"link":Nn("error",n),Nn("load",n);break;case"details":Nn("toggle",n);break;case"input":K(n,s),Nn("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},Nn("invalid",n);break;case"textarea":oe(n,s),Nn("invalid",n)}for(var l in ye(r,s),o=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?n.textContent!==u&&(!0!==s.suppressHydrationWarning&&Xn(n.textContent,u,e),o=["children",u]):"number"==typeof u&&n.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Xn(n.textContent,u,e),o=["children",""+u]):a.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Nn("scroll",n)}switch(r){case"input":W(n),Y(n,s,!0);break;case"textarea":W(n),se(n);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(n.onclick=Yn)}n=o,t.updateQueue=n,null!==n&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),"select"===r&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[ho]=t,e[fo]=n,Ia(e,t,!1,!1),t.stateNode=e;e:{switch(l=ve(r,n),r){case"dialog":Nn("cancel",e),Nn("close",e),o=n;break;case"iframe":case"object":case"embed":Nn("load",e),o=n;break;case"video":case"audio":for(o=0;o<qn.length;o++)Nn(qn[o],e);o=n;break;case"source":Nn("error",e),o=n;break;case"img":case"image":case"link":Nn("error",e),Nn("load",e),o=n;break;case"details":Nn("toggle",e),o=n;break;case"input":K(e,n),o=$(e,n),Nn("invalid",e);break;case"option":default:o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=L({},n,{value:void 0}),Nn("invalid",e);break;case"textarea":oe(e,n),o=ne(e,n),Nn("invalid",e)}for(s in ye(r,o),u=o)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?ge(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&pe(e,c):"children"===s?"string"==typeof c?("textarea"!==r||""!==c)&&de(e,c):"number"==typeof c&&de(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(a.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Nn("scroll",e):null!=c&&v(e,s,c,l))}switch(r){case"input":W(e),Y(e,n,!1);break;case"textarea":W(e),se(e);break;case"option":null!=n.value&&e.setAttribute("value",""+H(n.value));break;case"select":e.multiple=!!n.multiple,null!=(s=n.value)?re(e,!!n.multiple,s,!1):null!=n.defaultValue&&re(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Yn)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ga(t),null;case 6:if(e&&null!=t.stateNode)qa(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(i(166));if(r=ns(rs.current),ns(es.current),di(t)){if(n=t.stateNode,r=t.memoizedProps,n[ho]=t,(s=n.nodeValue!==r)&&null!==(e=ni))switch(e.tag){case 3:Xn(n.nodeValue,r,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xn(n.nodeValue,r,0!=(1&e.mode))}s&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[ho]=t,t.stateNode=n}return Ga(t),null;case 13:if(Vo(ls),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!=(1&t.mode)&&0==(128&t.flags))hi(),fi(),t.flags|=98560,s=!1;else if(s=di(t),null!==n&&null!==n.dehydrated){if(null===e){if(!s)throw Error(i(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(i(317));s[ho]=t}else fi(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ga(t),s=!1}else null!==si&&(au(si),si=null),s=!0;if(!s)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=r,t):((n=null!==n)!=(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ls.current)?0===ql&&(ql=3):gu())),null!==t.updateQueue&&(t.flags|=4),Ga(t),null);case 4:return is(),ja(e,t),null===e&&zn(t.stateNode.containerInfo),Ga(t),null;case 10:return Pi(t.type._context),Ga(t),null;case 19:if(Vo(ls),null===(s=t.memoizedState))return Ga(t),null;if(n=0!=(128&t.flags),null===(l=s.rendering))if(n)Wa(s,!1);else{if(0!==ql||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=us(e))){for(t.flags|=128,Wa(s,!1),null!==(n=l.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(s=r).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Eo(ls,1&ls.current|2),t.child}e=e.sibling}null!==s.tail&&Ze()>Ql&&(t.flags|=128,n=!0,Wa(s,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=us(l))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Wa(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ii)return Ga(t),null}else 2*Ze()-s.renderingStartTime>Ql&&1073741824!==r&&(t.flags|=128,n=!0,Wa(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ze(),t.sibling=null,r=ls.current,Eo(ls,n?1&r|2:1&r),t):(Ga(t),null);case 22:case 23:return du(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!=(1&t.mode)?0!=(1073741824&jl)&&(Ga(t),6&t.subtreeFlags&&(t.flags|=8192)):Ga(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function $a(e,t){switch(ri(t),t.tag){case 1:return jo(t.type)&&Do(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return is(),Vo(ko),Vo(To),ps(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return as(t),null;case 13:if(Vo(ls),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));fi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Vo(ls),null;case 4:return is(),null;case 10:return Pi(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Ia=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},ja=function(){},Da=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,ns(es.current);var i,s=null;switch(r){case"input":o=$(e,o),n=$(e,n),s=[];break;case"select":o=L({},o,{value:void 0}),n=L({},n,{value:void 0}),s=[];break;case"textarea":o=ne(e,o),n=ne(e,n),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof n.onClick&&(e.onclick=Yn)}for(c in ye(r,n),r=null,o)if(!n.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(a.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in n){var u=n[c];if(l=null!=o?o[c]:void 0,n.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(r||(r={}),r[i]=u[i])}else r||(s||(s=[]),s.push(c,r)),r=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(a.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Nn("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}r&&(s=s||[]).push("style",r);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},qa=function(e,t,r,n){r!==n&&(t.flags|=4)};var Ka=!1,Za=!1,Xa="function"==typeof WeakSet?WeakSet:Set,Ya=null;function el(e,t){var r=e.ref;if(null!==r)if("function"==typeof r)try{r(null)}catch(r){Su(e,t,r)}else r.current=null}function tl(e,t,r){try{r()}catch(r){Su(e,t,r)}}var rl=!1;function nl(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&tl(t,r,i)}o=o.next}while(o!==n)}}function ol(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function il(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"==typeof t?t(e):t.current=e}}function sl(e){var t=e.alternate;null!==t&&(e.alternate=null,sl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[ho],delete t[fo],delete t[go],delete t[bo],delete t[yo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ul(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Yn));else if(4!==n&&null!==(e=e.child))for(ul(e,t,r),e=e.sibling;null!==e;)ul(e,t,r),e=e.sibling}function cl(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(cl(e,t,r),e=e.sibling;null!==e;)cl(e,t,r),e=e.sibling}var pl=null,dl=!1;function hl(e,t,r){for(r=r.child;null!==r;)fl(e,t,r),r=r.sibling}function fl(e,t,r){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,r)}catch(e){}switch(r.tag){case 5:Za||el(r,t);case 6:var n=pl,o=dl;pl=null,hl(e,t,r),dl=o,null!==(pl=n)&&(dl?(e=pl,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):pl.removeChild(r.stateNode));break;case 18:null!==pl&&(dl?(e=pl,r=r.stateNode,8===e.nodeType?lo(e.parentNode,r):1===e.nodeType&&lo(e,r),zt(e)):lo(pl,r.stateNode));break;case 4:n=pl,o=dl,pl=r.stateNode.containerInfo,dl=!0,hl(e,t,r),pl=n,dl=o;break;case 0:case 11:case 14:case 15:if(!Za&&null!==(n=r.updateQueue)&&null!==(n=n.lastEffect)){o=n=n.next;do{var i=o,s=i.destroy;i=i.tag,void 0!==s&&(0!=(2&i)||0!=(4&i))&&tl(r,t,s),o=o.next}while(o!==n)}hl(e,t,r);break;case 1:if(!Za&&(el(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(e){Su(r,t,e)}hl(e,t,r);break;case 21:hl(e,t,r);break;case 22:1&r.mode?(Za=(n=Za)||null!==r.memoizedState,hl(e,t,r),Za=n):hl(e,t,r);break;default:hl(e,t,r)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Xa),t.forEach((function(t){var n=Tu.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function gl(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var o=r[n];try{var s=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:pl=l.stateNode,dl=!1;break e;case 3:case 4:pl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===pl)throw Error(i(160));fl(s,a,o),pl=null,dl=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){Su(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)bl(t,e),t=t.sibling}function bl(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),yl(e),4&n){try{nl(3,e,e.return),ol(3,e)}catch(t){Su(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Su(e,e.return,t)}}break;case 1:gl(t,e),yl(e),512&n&&null!==r&&el(r,r.return);break;case 5:if(gl(t,e),yl(e),512&n&&null!==r&&el(r,r.return),32&e.flags){var o=e.stateNode;try{de(o,"")}catch(t){Su(e,e.return,t)}}if(4&n&&null!=(o=e.stateNode)){var s=e.memoizedProps,a=null!==r?r.memoizedProps:s,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===s.type&&null!=s.name&&Z(o,s),ve(l,a);var c=ve(l,s);for(a=0;a<u.length;a+=2){var p=u[a],d=u[a+1];"style"===p?ge(o,d):"dangerouslySetInnerHTML"===p?pe(o,d):"children"===p?de(o,d):v(o,p,d,c)}switch(l){case"input":X(o,s);break;case"textarea":ie(o,s);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var f=s.value;null!=f?re(o,!!s.multiple,f,!1):h!==!!s.multiple&&(null!=s.defaultValue?re(o,!!s.multiple,s.defaultValue,!0):re(o,!!s.multiple,s.multiple?[]:"",!1))}o[fo]=s}catch(t){Su(e,e.return,t)}}break;case 6:if(gl(t,e),yl(e),4&n){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(t){Su(e,e.return,t)}}break;case 3:if(gl(t,e),yl(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(t){Su(e,e.return,t)}break;case 4:default:gl(t,e),yl(e);break;case 13:gl(t,e),yl(e),8192&(o=e.child).flags&&(s=null!==o.memoizedState,o.stateNode.isHidden=s,!s||null!==o.alternate&&null!==o.alternate.memoizedState||(zl=Ze())),4&n&&ml(e);break;case 22:if(p=null!==r&&null!==r.memoizedState,1&e.mode?(Za=(c=Za)||p,gl(t,e),Za=c):gl(t,e),yl(e),8192&n){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!p&&0!=(1&e.mode))for(Ya=e,p=e.child;null!==p;){for(d=Ya=p;null!==Ya;){switch(f=(h=Ya).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:el(h,h.return);var m=h.stateNode;if("function"==typeof m.componentWillUnmount){n=h,r=h.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Su(n,r,e)}}break;case 5:el(h,h.return);break;case 22:if(null!==h.memoizedState){Cl(d);continue}}null!==f?(f.return=h,Ya=f):Cl(d)}p=p.sibling}e:for(p=null,d=e;;){if(5===d.tag){if(null===p){p=d;try{o=d.stateNode,c?"function"==typeof(s=o.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=d.stateNode,a=null!=(u=d.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",a))}catch(t){Su(e,e.return,t)}}}else if(6===d.tag){if(null===p)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){Su(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;p===d&&(p=null),d=d.return}p===d&&(p=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:gl(t,e),yl(e),4&n&&ml(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(al(r)){var n=r;break e}r=r.return}throw Error(i(160))}switch(n.tag){case 5:var o=n.stateNode;32&n.flags&&(de(o,""),n.flags&=-33),cl(e,ll(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;ul(e,ll(e),s);break;default:throw Error(i(161))}}catch(t){Su(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,r){Ya=e,xl(e,t,r)}function xl(e,t,r){for(var n=0!=(1&e.mode);null!==Ya;){var o=Ya,i=o.child;if(22===o.tag&&n){var s=null!==o.memoizedState||Ka;if(!s){var a=o.alternate,l=null!==a&&null!==a.memoizedState||Za;a=Ka;var u=Za;if(Ka=s,(Za=l)&&!u)for(Ya=o;null!==Ya;)l=(s=Ya).child,22===s.tag&&null!==s.memoizedState?Pl(o):null!==l?(l.return=s,Ya=l):Pl(o);for(;null!==i;)Ya=i,xl(i,t,r),i=i.sibling;Ya=o,Ka=a,Za=u}wl(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,Ya=i):wl(e)}}function wl(e){for(;null!==Ya;){var t=Ya;if(0!=(8772&t.flags)){var r=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Za||ol(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Za)if(null===r)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:bi(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&Ni(t,s,n);break;case 3:var a=t.updateQueue;if(null!==a){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Ni(t,a,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var p=c.memoizedState;if(null!==p){var d=p.dehydrated;null!==d&&zt(d)}}}break;default:throw Error(i(163))}Za||512&t.flags&&il(t)}catch(e){Su(t,t.return,e)}}if(t===e){Ya=null;break}if(null!==(r=t.sibling)){r.return=t.return,Ya=r;break}Ya=t.return}}function Cl(e){for(;null!==Ya;){var t=Ya;if(t===e){Ya=null;break}var r=t.sibling;if(null!==r){r.return=t.return,Ya=r;break}Ya=t.return}}function Pl(e){for(;null!==Ya;){var t=Ya;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{ol(4,t)}catch(e){Su(t,r,e)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var o=t.return;try{n.componentDidMount()}catch(e){Su(t,o,e)}}var i=t.return;try{il(t)}catch(e){Su(t,i,e)}break;case 5:var s=t.return;try{il(t)}catch(e){Su(t,s,e)}}}catch(e){Su(t,t.return,e)}if(t===e){Ya=null;break}var a=t.sibling;if(null!==a){a.return=t.return,Ya=a;break}Ya=t.return}}var _l,Sl=Math.ceil,Vl=x.ReactCurrentDispatcher,El=x.ReactCurrentOwner,Ol=x.ReactCurrentBatchConfig,Tl=0,kl=null,Rl=null,Il=0,jl=0,Dl=So(0),ql=0,Ml=null,Ll=0,Al=0,Nl=0,Bl=null,Fl=null,zl=0,Ql=1/0,Hl=null,Ul=!1,Wl=null,Gl=null,Jl=!1,$l=null,Kl=0,Zl=0,Xl=null,Yl=-1,eu=0;function tu(){return 0!=(6&Tl)?Ze():-1!==Yl?Yl:Yl=Ze()}function ru(e){return 0==(1&e.mode)?1:0!=(2&Tl)&&0!==Il?Il&-Il:null!==gi.transition?(0===eu&&(eu=mt()),eu):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Kt(e.type)}function nu(e,t,r,n){if(50<Zl)throw Zl=0,Xl=null,Error(i(185));bt(e,r,n),0!=(2&Tl)&&e===kl||(e===kl&&(0==(2&Tl)&&(Al|=r),4===ql&&lu(e,Il)),ou(e,n),1===r&&0===Tl&&0==(1&t.mode)&&(Ql=Ze()+500,Bo&&Qo()))}function ou(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-st(i),a=1<<s,l=o[s];-1===l?0!=(a&r)&&0==(a&n)||(o[s]=ht(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}(e,t);var n=dt(e,e===kl?Il:0);if(0===n)null!==r&&Je(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Je(r),1===t)0===e.tag?function(e){Bo=!0,zo(e)}(uu.bind(null,e)):zo(uu.bind(null,e)),so((function(){0==(6&Tl)&&Qo()})),r=null;else{switch(xt(n)){case 1:r=Ye;break;case 4:r=et;break;case 16:default:r=tt;break;case 536870912:r=nt}r=ku(r,iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function iu(e,t){if(Yl=-1,eu=0,0!=(6&Tl))throw Error(i(327));var r=e.callbackNode;if(Pu()&&e.callbackNode!==r)return null;var n=dt(e,e===kl?Il:0);if(0===n)return null;if(0!=(30&n)||0!=(n&e.expiredLanes)||t)t=bu(e,n);else{t=n;var o=Tl;Tl|=2;var s=mu();for(kl===e&&Il===t||(Hl=null,Ql=Ze()+500,hu(e,t));;)try{vu();break}catch(t){fu(e,t)}Ci(),Vl.current=s,Tl=o,null!==Rl?t=0:(kl=null,Il=0,t=ql)}if(0!==t){if(2===t&&0!==(o=ft(e))&&(n=o,t=su(e,o)),1===t)throw r=Ml,hu(e,0),lu(e,n),ou(e,Ze()),r;if(6===t)lu(e,n);else{if(o=e.current.alternate,0==(30&n)&&!function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var o=r[n],i=o.getSnapshot;o=o.value;try{if(!an(i(),o))return!1}catch(e){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=bu(e,n))&&0!==(s=ft(e))&&(n=s,t=su(e,s)),1===t))throw r=Ml,hu(e,0),lu(e,n),ou(e,Ze()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(i(345));case 2:case 5:Cu(e,Fl,Hl);break;case 3:if(lu(e,n),(130023424&n)===n&&10<(t=zl+500-Ze())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&n)!==n){tu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=no(Cu.bind(null,e,Fl,Hl),t);break}Cu(e,Fl,Hl);break;case 4:if(lu(e,n),(4194240&n)===n)break;for(t=e.eventTimes,o=-1;0<n;){var a=31-st(n);s=1<<a,(a=t[a])>o&&(o=a),n&=~s}if(n=o,10<(n=(120>(n=Ze()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Sl(n/1960))-n)){e.timeoutHandle=no(Cu.bind(null,e,Fl,Hl),n);break}Cu(e,Fl,Hl);break;default:throw Error(i(329))}}}return ou(e,Ze()),e.callbackNode===r?iu.bind(null,e):null}function su(e,t){var r=Bl;return e.current.memoizedState.isDehydrated&&(hu(e,t).flags|=256),2!==(e=bu(e,t))&&(t=Fl,Fl=r,null!==t&&au(t)),e}function au(e){null===Fl?Fl=e:Fl.push.apply(Fl,e)}function lu(e,t){for(t&=~Nl,t&=~Al,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-st(t),n=1<<r;e[r]=-1,t&=~n}}function uu(e){if(0!=(6&Tl))throw Error(i(327));Pu();var t=dt(e,0);if(0==(1&t))return ou(e,Ze()),null;var r=bu(e,t);if(0!==e.tag&&2===r){var n=ft(e);0!==n&&(t=n,r=su(e,n))}if(1===r)throw r=Ml,hu(e,0),lu(e,t),ou(e,Ze()),r;if(6===r)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Cu(e,Fl,Hl),ou(e,Ze()),null}function cu(e,t){var r=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=r)&&(Ql=Ze()+500,Bo&&Qo())}}function pu(e){null!==$l&&0===$l.tag&&0==(6&Tl)&&Pu();var t=Tl;Tl|=1;var r=Ol.transition,n=vt;try{if(Ol.transition=null,vt=1,e)return e()}finally{vt=n,Ol.transition=r,0==(6&(Tl=t))&&Qo()}}function du(){jl=Dl.current,Vo(Dl)}function hu(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,oo(r)),null!==Rl)for(r=Rl.return;null!==r;){var n=r;switch(ri(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&Do();break;case 3:is(),Vo(ko),Vo(To),ps();break;case 5:as(n);break;case 4:is();break;case 13:case 19:Vo(ls);break;case 10:Pi(n.type._context);break;case 22:case 23:du()}r=r.return}if(kl=e,Rl=e=Du(e.current,null),Il=jl=t,ql=0,Ml=null,Nl=Al=Ll=0,Fl=Bl=null,null!==Ei){for(t=0;t<Ei.length;t++)if(null!==(n=(r=Ei[t]).interleaved)){r.interleaved=null;var o=n.next,i=r.pending;if(null!==i){var s=i.next;i.next=o,n.next=s}r.pending=n}Ei=null}return e}function fu(e,t){for(;;){var r=Rl;try{if(Ci(),ds.current=sa,ys){for(var n=ms.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}ys=!1}if(fs=0,bs=gs=ms=null,vs=!1,xs=0,El.current=null,null===r||null===r.return){ql=1,Ml=t,Rl=null;break}e:{var s=e,a=r.return,l=r,u=t;if(t=Il,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,p=l,d=p.tag;if(0==(1&p.mode)&&(0===d||11===d||15===d)){var h=p.alternate;h?(p.updateQueue=h.updateQueue,p.memoizedState=h.memoizedState,p.lanes=h.lanes):(p.updateQueue=null,p.memoizedState=null)}var f=ba(a);if(null!==f){f.flags&=-257,ya(f,a,l,0,t),1&f.mode&&ga(s,c,t),u=c;var m=(t=f).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(0==(1&t)){ga(s,c,t),gu();break e}u=Error(i(426))}else if(ii&&1&l.mode){var b=ba(a);if(null!==b){0==(65536&b.flags)&&(b.flags|=256),ya(b,a,l,0,t),mi(ca(u,l));break e}}s=u=ca(u,l),4!==ql&&(ql=2),null===Bl?Bl=[s]:Bl.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,Li(s,fa(0,u,t));break e;case 1:l=u;var y=s.type,v=s.stateNode;if(0==(128&s.flags)&&("function"==typeof y.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===Gl||!Gl.has(v)))){s.flags|=65536,t&=-t,s.lanes|=t,Li(s,ma(s,l,t));break e}}s=s.return}while(null!==s)}wu(r)}catch(e){t=e,Rl===r&&null!==r&&(Rl=r=r.return);continue}break}}function mu(){var e=Vl.current;return Vl.current=sa,null===e?sa:e}function gu(){0!==ql&&3!==ql&&2!==ql||(ql=4),null===kl||0==(268435455&Ll)&&0==(268435455&Al)||lu(kl,Il)}function bu(e,t){var r=Tl;Tl|=2;var n=mu();for(kl===e&&Il===t||(Hl=null,hu(e,t));;)try{yu();break}catch(t){fu(e,t)}if(Ci(),Tl=r,Vl.current=n,null!==Rl)throw Error(i(261));return kl=null,Il=0,ql}function yu(){for(;null!==Rl;)xu(Rl)}function vu(){for(;null!==Rl&&!$e();)xu(Rl)}function xu(e){var t=_l(e.alternate,e,jl);e.memoizedProps=e.pendingProps,null===t?wu(e):Rl=t,El.current=null}function wu(e){var t=e;do{var r=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(r=Ja(r,t,jl)))return void(Rl=r)}else{if(null!==(r=$a(r,t)))return r.flags&=32767,void(Rl=r);if(null===e)return ql=6,void(Rl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Rl=t);Rl=t=e}while(null!==t);0===ql&&(ql=5)}function Cu(e,t,r){var n=vt,o=Ol.transition;try{Ol.transition=null,vt=1,function(e,t,r,n){do{Pu()}while(null!==$l);if(0!=(6&Tl))throw Error(i(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var s=r.lanes|r.childLanes;if(function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-st(r),i=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~i}}(e,s),e===kl&&(Rl=kl=null,Il=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||Jl||(Jl=!0,ku(tt,(function(){return Pu(),null}))),s=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||s){s=Ol.transition,Ol.transition=null;var a=vt;vt=1;var l=Tl;Tl|=4,El.current=null,function(e,t){if(eo=Ht,hn(e=dn())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var o=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch(e){r=null;break e}var a=0,l=-1,u=-1,c=0,p=0,d=e,h=null;t:for(;;){for(var f;d!==r||0!==o&&3!==d.nodeType||(l=a+o),d!==s||0!==n&&3!==d.nodeType||(u=a+n),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)h=d,d=f;for(;;){if(d===e)break t;if(h===r&&++c===o&&(l=a),h===s&&++p===n&&(u=a),null!==(f=d.nextSibling))break;h=(d=h).parentNode}d=f}r=-1===l||-1===u?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(to={focusedElem:e,selectionRange:r},Ht=!1,Ya=t;null!==Ya;)if(e=(t=Ya).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Ya=e;else for(;null!==Ya;){t=Ya;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,b=m.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:bi(t.type,g),b);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(i(163))}}catch(e){Su(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Ya=e;break}Ya=t.return}m=rl,rl=!1}(e,r),bl(r,e),fn(to),Ht=!!eo,to=eo=null,e.current=r,vl(r,e,o),Ke(),Tl=l,vt=a,Ol.transition=s}else e.current=r;if(Jl&&(Jl=!1,$l=e,Kl=o),0===(s=e.pendingLanes)&&(Gl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode),ou(e,Ze()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)n((o=t[r]).value,{componentStack:o.stack,digest:o.digest});if(Ul)throw Ul=!1,e=Wl,Wl=null,e;0!=(1&Kl)&&0!==e.tag&&Pu(),0!=(1&(s=e.pendingLanes))?e===Xl?Zl++:(Zl=0,Xl=e):Zl=0,Qo()}(e,t,r,n)}finally{Ol.transition=o,vt=n}return null}function Pu(){if(null!==$l){var e=xt(Kl),t=Ol.transition,r=vt;try{if(Ol.transition=null,vt=16>e?16:e,null===$l)var n=!1;else{if(e=$l,$l=null,Kl=0,0!=(6&Tl))throw Error(i(331));var o=Tl;for(Tl|=4,Ya=e.current;null!==Ya;){var s=Ya,a=s.child;if(0!=(16&Ya.flags)){var l=s.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Ya=c;null!==Ya;){var p=Ya;switch(p.tag){case 0:case 11:case 15:nl(8,p,s)}var d=p.child;if(null!==d)d.return=p,Ya=d;else for(;null!==Ya;){var h=(p=Ya).sibling,f=p.return;if(sl(p),p===c){Ya=null;break}if(null!==h){h.return=f,Ya=h;break}Ya=f}}}var m=s.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(null!==g)}}Ya=s}}if(0!=(2064&s.subtreeFlags)&&null!==a)a.return=s,Ya=a;else e:for(;null!==Ya;){if(0!=(2048&(s=Ya).flags))switch(s.tag){case 0:case 11:case 15:nl(9,s,s.return)}var y=s.sibling;if(null!==y){y.return=s.return,Ya=y;break e}Ya=s.return}}var v=e.current;for(Ya=v;null!==Ya;){var x=(a=Ya).child;if(0!=(2064&a.subtreeFlags)&&null!==x)x.return=a,Ya=x;else e:for(a=v;null!==Ya;){if(0!=(2048&(l=Ya).flags))try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(e){Su(l,l.return,e)}if(l===a){Ya=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Ya=w;break e}Ya=l.return}}if(Tl=o,Qo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}n=!0}return n}finally{vt=r,Ol.transition=t}}return!1}function _u(e,t,r){e=qi(e,t=fa(0,t=ca(r,t),1),1),t=tu(),null!==e&&(bt(e,1,t),ou(e,t))}function Su(e,t,r){if(3===e.tag)_u(e,e,r);else for(;null!==t;){if(3===t.tag){_u(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Gl||!Gl.has(n))){t=qi(t,e=ma(t,e=ca(r,e),1),1),e=tu(),null!==t&&(bt(t,1,e),ou(t,e));break}}t=t.return}}function Vu(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&r,kl===e&&(Il&r)===r&&(4===ql||3===ql&&(130023424&Il)===Il&&500>Ze()-zl?hu(e,0):Nl|=r),ou(e,t)}function Eu(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var r=tu();null!==(e=ki(e,t))&&(bt(e,t,r),ou(e,r))}function Ou(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),Eu(e,r)}function Tu(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(i(314))}null!==n&&n.delete(t),Eu(e,r)}function ku(e,t){return Ge(e,t)}function Ru(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Iu(e,t,r,n){return new Ru(e,t,r,n)}function ju(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Du(e,t){var r=e.alternate;return null===r?((r=Iu(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function qu(e,t,r,n,o,s){var a=2;if(n=e,"function"==typeof e)ju(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case P:return Mu(r.children,o,s,t);case _:a=8,o|=8;break;case S:return(e=Iu(12,r,t,2|o)).elementType=S,e.lanes=s,e;case T:return(e=Iu(13,r,t,o)).elementType=T,e.lanes=s,e;case k:return(e=Iu(19,r,t,o)).elementType=k,e.lanes=s,e;case j:return Lu(r,o,s,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case V:a=10;break e;case E:a=9;break e;case O:a=11;break e;case R:a=14;break e;case I:a=16,n=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Iu(a,r,t,o)).elementType=e,t.type=n,t.lanes=s,t}function Mu(e,t,r,n){return(e=Iu(7,e,n,t)).lanes=r,e}function Lu(e,t,r,n){return(e=Iu(22,e,n,t)).elementType=j,e.lanes=r,e.stateNode={isHidden:!1},e}function Au(e,t,r){return(e=Iu(6,e,null,t)).lanes=r,e}function Nu(e,t,r){return(t=Iu(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bu(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fu(e,t,r,n,o,i,s,a,l){return e=new Bu(e,t,r,a,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Iu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ii(i),e}function zu(e){if(!e)return Oo;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(jo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var r=e.type;if(jo(r))return Mo(e,r,t)}return t}function Qu(e,t,r,n,o,i,s,a,l){return(e=Fu(r,n,!0,e,0,i,0,a,l)).context=zu(null),r=e.current,(i=Di(n=tu(),o=ru(r))).callback=null!=t?t:null,qi(r,i,o),e.current.lanes=o,bt(e,o,n),ou(e,n),e}function Hu(e,t,r,n){var o=t.current,i=tu(),s=ru(o);return r=zu(r),null===t.context?t.context=r:t.pendingContext=r,(t=Di(i,s)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=qi(o,t,s))&&(nu(e,o,s,i),Mi(e,o,s)),s}function Uu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Gu(e,t){Wu(e,t),(e=e.alternate)&&Wu(e,t)}_l=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||ko.current)xa=!0;else{if(0==(e.lanes&r)&&0==(128&t.flags))return xa=!1,function(e,t,r){switch(t.tag){case 3:ka(t),fi();break;case 5:ss(t);break;case 1:jo(t.type)&&Lo(t);break;case 4:os(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;Eo(yi,n._currentValue),n._currentValue=o;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(Eo(ls,1&ls.current),t.flags|=128,null):0!=(r&t.child.childLanes)?Aa(e,t,r):(Eo(ls,1&ls.current),null!==(e=Ua(e,t,r))?e.sibling:null);Eo(ls,1&ls.current);break;case 19:if(n=0!=(r&t.childLanes),0!=(128&e.flags)){if(n)return Qa(e,t,r);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Eo(ls,ls.current),n)break;return null;case 22:case 23:return t.lanes=0,Sa(e,t,r)}return Ua(e,t,r)}(e,t,r);xa=0!=(131072&e.flags)}else xa=!1,ii&&0!=(1048576&t.flags)&&ei(t,Go,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ha(e,t),e=t.pendingProps;var o=Io(t,To.current);Si(t,r),o=_s(null,t,n,e,o,r);var s=Ss();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,jo(n)?(s=!0,Lo(t)):s=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ii(t),o.updater=zi,t.stateNode=o,o._reactInternals=t,Wi(t,n,e,r),t=Ta(null,t,n,!0,s,r)):(t.tag=0,ii&&s&&ti(t),wa(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ha(e,t),e=t.pendingProps,n=(o=n._init)(n._payload),t.type=n,o=t.tag=function(e){if("function"==typeof e)return ju(e)?1:0;if(null!=e){if((e=e.$$typeof)===O)return 11;if(e===R)return 14}return 2}(n),e=bi(n,e),o){case 0:t=Ea(null,t,n,e,r);break e;case 1:t=Oa(null,t,n,e,r);break e;case 11:t=Ca(null,t,n,e,r);break e;case 14:t=Pa(null,t,n,bi(n.type,e),r);break e}throw Error(i(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,Ea(e,t,n,o=t.elementType===n?o:bi(n,o),r);case 1:return n=t.type,o=t.pendingProps,Oa(e,t,n,o=t.elementType===n?o:bi(n,o),r);case 3:e:{if(ka(t),null===e)throw Error(i(387));n=t.pendingProps,o=(s=t.memoizedState).element,ji(e,t),Ai(t,n,null,r);var a=t.memoizedState;if(n=a.element,s.isDehydrated){if(s={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Ra(e,t,n,r,o=ca(Error(i(423)),t));break e}if(n!==o){t=Ra(e,t,n,r,o=ca(Error(i(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ni=t,ii=!0,si=null,r=Xi(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(fi(),n===o){t=Ua(e,t,r);break e}wa(e,t,n,r)}t=t.child}return t;case 5:return ss(t),null===e&&ci(t),n=t.type,o=t.pendingProps,s=null!==e?e.memoizedProps:null,a=o.children,ro(n,o)?a=null:null!==s&&ro(n,s)&&(t.flags|=32),Va(e,t),wa(e,t,a,r),t.child;case 6:return null===e&&ci(t),null;case 13:return Aa(e,t,r);case 4:return os(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Zi(t,null,n,r):wa(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,Ca(e,t,n,o=t.elementType===n?o:bi(n,o),r);case 7:return wa(e,t,t.pendingProps,r),t.child;case 8:case 12:return wa(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value,Eo(yi,n._currentValue),n._currentValue=a,null!==s)if(an(s.value,a)){if(s.children===o.children&&!ko.current){t=Ua(e,t,r);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){a=s.child;for(var u=l.firstContext;null!==u;){if(u.context===n){if(1===s.tag){(u=Di(-1,r&-r)).tag=2;var c=s.updateQueue;if(null!==c){var p=(c=c.shared).pending;null===p?u.next=u:(u.next=p.next,p.next=u),c.pending=u}}s.lanes|=r,null!==(u=s.alternate)&&(u.lanes|=r),_i(s.return,r,t),l.lanes|=r;break}u=u.next}}else if(10===s.tag)a=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(a=s.return))throw Error(i(341));a.lanes|=r,null!==(l=a.alternate)&&(l.lanes|=r),_i(a,r,t),a=s.sibling}else a=s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}wa(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Si(t,r),n=n(o=Vi(o)),t.flags|=1,wa(e,t,n,r),t.child;case 14:return o=bi(n=t.type,t.pendingProps),Pa(e,t,n,o=bi(n.type,o),r);case 15:return _a(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:bi(n,o),Ha(e,t),t.tag=1,jo(n)?(e=!0,Lo(t)):e=!1,Si(t,r),Hi(t,n,o),Wi(t,n,o,r),Ta(null,t,n,!0,e,r);case 19:return Qa(e,t,r);case 22:return Sa(e,t,r)}throw Error(i(156,t.tag))};var Ju="function"==typeof reportError?reportError:function(e){console.error(e)};function $u(e){this._internalRoot=e}function Ku(e){this._internalRoot=e}function Zu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Yu(){}function ec(e,t,r,n,o){var i=r._reactRootContainer;if(i){var s=i;if("function"==typeof o){var a=o;o=function(){var e=Uu(s);a.call(e)}}Hu(t,s,e,o)}else s=function(e,t,r,n,o){if(o){if("function"==typeof n){var i=n;n=function(){var e=Uu(s);i.call(e)}}var s=Qu(t,n,e,0,null,!1,0,"",Yu);return e._reactRootContainer=s,e[mo]=s.current,zn(8===e.nodeType?e.parentNode:e),pu(),s}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof n){var a=n;n=function(){var e=Uu(l);a.call(e)}}var l=Fu(e,0,!1,null,0,!1,0,"",Yu);return e._reactRootContainer=l,e[mo]=l.current,zn(8===e.nodeType?e.parentNode:e),pu((function(){Hu(t,l,r,n)})),l}(r,t,e,o,n);return Uu(s)}Ku.prototype.render=$u.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Hu(e,t,null,null)},Ku.prototype.unmount=$u.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;pu((function(){Hu(null,e,null,null)})),t[mo]=null}},Ku.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var r=0;r<jt.length&&0!==t&&t<jt[r].priority;r++);jt.splice(r,0,e),0===r&&Lt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=pt(t.pendingLanes);0!==r&&(yt(t,1|r),ou(t,Ze()),0==(6&Tl)&&(Ql=Ze()+500,Qo()))}break;case 13:pu((function(){var t=ki(e,1);if(null!==t){var r=tu();nu(t,e,1,r)}})),Gu(e,1)}},Ct=function(e){if(13===e.tag){var t=ki(e,134217728);null!==t&&nu(t,e,134217728,tu()),Gu(e,134217728)}},Pt=function(e){if(13===e.tag){var t=ru(e),r=ki(e,t);null!==r&&nu(r,e,t,tu()),Gu(e,t)}},_t=function(){return vt},St=function(e,t){var r=vt;try{return vt=e,t()}finally{vt=r}},Ce=function(e,t,r){switch(t){case"input":if(X(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=Co(n);if(!o)throw Error(i(90));G(n),X(n,o)}}}break;case"textarea":ie(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Oe=cu,Te=pu;var tc={usingClientEntryPoint:!1,Events:[xo,wo,Co,Ve,Ee,cu]},rc={findFiberByHostInstance:vo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nc={bundleType:rc.bundleType,version:rc.version,rendererPackageName:rc.rendererPackageName,rendererConfig:rc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:rc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{ot=oc.inject(nc),it=oc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zu(t))throw Error(i(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:C,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.createRoot=function(e,t){if(!Zu(e))throw Error(i(299));var r=!1,n="",o=Ju;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Fu(e,1,!1,null,0,r,0,n,o),e[mo]=t.current,zn(8===e.nodeType?e.parentNode:e),new $u(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=Ue(t))?null:e.stateNode},t.flushSync=function(e){return pu(e)},t.hydrate=function(e,t,r){if(!Xu(t))throw Error(i(200));return ec(null,e,t,!0,r)},t.hydrateRoot=function(e,t,r){if(!Zu(e))throw Error(i(405));var n=null!=r&&r.hydratedSources||null,o=!1,s="",a=Ju;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(s=r.identifierPrefix),void 0!==r.onRecoverableError&&(a=r.onRecoverableError)),t=Qu(t,null,e,1,null!=r?r:null,o,0,s,a),e[mo]=t.current,zn(e),n)for(e=0;e<n.length;e++)o=(o=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Ku(t)},t.render=function(e,t,r){if(!Xu(t))throw Error(i(200));return ec(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!Xu(e))throw Error(i(40));return!!e._reactRootContainer&&(pu((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=cu,t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Xu(r))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ec(e,t,r,!1,n)},t.version="18.2.0-next-9e3b772b8-20220608"},745:(e,t,r)=>{"use strict";var n=r(3935);t.s=n.createRoot,n.hydrateRoot},3935:(e,t,r)=>{"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=r(4448)},5251:(e,t,r)=>{"use strict";var n=r(7294),o=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,r){var n,l={},u=null,c=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)i.call(t,n)&&!a.hasOwnProperty(n)&&(l[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===l[n]&&(l[n]=t[n]);return{$$typeof:o,type:e,key:u,ref:c,props:l,_owner:s.current}}},2408:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator,f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function b(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||f}function y(){}function v(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||f}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=b.prototype;var x=v.prototype=new y;x.constructor=v,m(x,b.prototype),x.isPureReactComponent=!0;var w=Array.isArray,C=Object.prototype.hasOwnProperty,P={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var o,i={},s=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)C.call(t,o)&&!_.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:r,type:e,key:s,ref:a,props:i,_owner:P.current}}function V(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var E=/\/+/g;function O(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,o,i,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case r:case n:l=!0}}if(l)return s=s(l=e),e=""===i?"."+O(l,0):i,w(s)?(o="",null!=e&&(o=e.replace(E,"$&/")+"/"),T(s,t,o,"",(function(e){return e}))):null!=s&&(V(s)&&(s=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,o+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(E,"$&/")+"/")+e)),t.push(s)),1;if(l=0,i=""===i?".":i+":",w(e))for(var u=0;u<e.length;u++){var c=i+O(a=e[u],u);l+=T(a,t,o,c,s)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(a=e.next()).done;)l+=T(a=a.value,t,o,c=i+O(a,u++),s);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function k(e,t,r){if(null==e)return e;var n=[],o=0;return T(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function R(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},j={transition:null},D={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:j,ReactCurrentOwner:P};t.Children={map:k,forEach:function(e,t,r){k(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return k(e,(function(){t++})),t},toArray:function(e){return k(e,(function(e){return e}))||[]},only:function(e){if(!V(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=b,t.Fragment=o,t.Profiler=s,t.PureComponent=v,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,s=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,a=P.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)C.call(t,u)&&!_.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:r,type:e.type,key:i,ref:s,props:o,_owner:a}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=V,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:R}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=j.transition;j.transition={};try{e()}finally{j.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,r){return I.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,r){return I.current.useReducer(e,t,r)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return I.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return I.current.useTransition()},t.version="18.2.0"},7294:(e,t,r)=>{"use strict";e.exports=r(2408)},5893:(e,t,r)=>{"use strict";e.exports=r(5251)},53:(e,t)=>{"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,o=e[n];if(!(0<i(o,t)))break e;e[n]=t,e[r]=o,r=n}}function n(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length,s=o>>>1;n<s;){var a=2*(n+1)-1,l=e[a],u=a+1,c=e[u];if(0>i(l,r))u<o&&0>i(c,l)?(e[n]=c,e[u]=r,n=u):(e[n]=l,e[a]=r,n=a);else{if(!(u<o&&0>i(c,r)))break e;e[n]=c,e[u]=r,n=u}}}return t}function i(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var u=[],c=[],p=1,d=null,h=3,f=!1,m=!1,g=!1,b="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=n(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,r(u,t)}t=n(c)}}function w(e){if(g=!1,x(e),!m)if(null!==n(u))m=!0,j(C);else{var t=n(c);null!==t&&D(w,t.startTime-e)}}function C(e,r){m=!1,g&&(g=!1,y(V),V=-1),f=!0;var i=h;try{for(x(r),d=n(u);null!==d&&(!(d.expirationTime>r)||e&&!T());){var s=d.callback;if("function"==typeof s){d.callback=null,h=d.priorityLevel;var a=s(d.expirationTime<=r);r=t.unstable_now(),"function"==typeof a?d.callback=a:d===n(u)&&o(u),x(r)}else o(u);d=n(u)}if(null!==d)var l=!0;else{var p=n(c);null!==p&&D(w,p.startTime-r),l=!1}return l}finally{d=null,h=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var P,_=!1,S=null,V=-1,E=5,O=-1;function T(){return!(t.unstable_now()-O<E)}function k(){if(null!==S){var e=t.unstable_now();O=e;var r=!0;try{r=S(!0,e)}finally{r?P():(_=!1,S=null)}}else _=!1}if("function"==typeof v)P=function(){v(k)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,I=R.port2;R.port1.onmessage=k,P=function(){I.postMessage(null)}}else P=function(){b(k,0)};function j(e){S=e,_||(_=!0,P())}function D(e,r){V=b((function(){e(t.unstable_now())}),r)}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(){m||f||(m=!0,j(C))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return n(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var r=h;h=t;try{return e()}finally{h=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=h;h=e;try{return t()}finally{h=r}},t.unstable_scheduleCallback=function(e,o,i){var s=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?s+i:s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:p++,callback:o,priorityLevel:e,startTime:i,expirationTime:a=i+a,sortIndex:-1},i>s?(e.sortIndex=i,r(c,e),null===n(u)&&e===n(c)&&(g?(y(V),V=-1):g=!0,D(w,i-s))):(e.sortIndex=a,r(u,e),m||f||(m=!0,j(C))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=h;return function(){var r=h;h=t;try{return e.apply(this,arguments)}finally{h=r}}}},3840:(e,t,r)=>{"use strict";e.exports=r(53)},3379:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},s=[],a=0;a<e.length;a++){var l=e[a],u=n.base?l[0]+n.base:l[0],c=i[u]||0,p="".concat(u," ").concat(c);i[u]=c+1;var d=r(p),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)t[d].references++,t[d].updater(h);else{var f=o(h,n);n.byIndex=a,t.splice(a,0,{identifier:p,updater:f,references:1})}s.push(p)}return s}function o(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,o){var i=n(e=e||[],o=o||{});return function(e){e=e||[];for(var s=0;s<i.length;s++){var a=r(i[s]);t[a].references--}for(var l=n(e,o),u=0;u<i.length;u++){var c=r(i[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}i=l}}},569:e=>{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,r)=>{"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,o&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var i=r.sourceMap;i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},2535:function(e){var t;t=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="./src/entries/core.ts")}({"./node_modules/signature_pad/dist/signature_pad.mjs":function(e,t,r){"use strict";function n(e,t,r){this.x=e,this.y=t,this.time=r||(new Date).getTime()}function o(e,t,r,n){this.startPoint=e,this.control1=t,this.control2=r,this.endPoint=n}function i(e,t){var r=this,n=t||{};this.velocityFilterWeight=n.velocityFilterWeight||.7,this.minWidth=n.minWidth||.5,this.maxWidth=n.maxWidth||2.5,this.throttle="throttle"in n?n.throttle:16,this.minDistance="minDistance"in n?n.minDistance:5,this.throttle?this._strokeMoveUpdate=function(e,t,r){var n,o,i,s=null,a=0;r||(r={});var l=function(){a=!1===r.leading?0:Date.now(),s=null,i=e.apply(n,o),s||(n=o=null)};return function(){var u=Date.now();a||!1!==r.leading||(a=u);var c=t-(u-a);return n=this,o=arguments,c<=0||c>t?(s&&(clearTimeout(s),s=null),a=u,i=e.apply(n,o),s||(n=o=null)):s||!1===r.trailing||(s=setTimeout(l,c)),i}}(i.prototype._strokeUpdate,this.throttle):this._strokeMoveUpdate=i.prototype._strokeUpdate,this.dotSize=n.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=n.penColor||"black",this.backgroundColor=n.backgroundColor||"rgba(0,0,0,0)",this.onBegin=n.onBegin,this.onEnd=n.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(e){1===e.which&&(r._mouseButtonDown=!0,r._strokeBegin(e))},this._handleMouseMove=function(e){r._mouseButtonDown&&r._strokeMoveUpdate(e)},this._handleMouseUp=function(e){1===e.which&&r._mouseButtonDown&&(r._mouseButtonDown=!1,r._strokeEnd(e))},this._handleTouchStart=function(e){if(1===e.targetTouches.length){var t=e.changedTouches[0];r._strokeBegin(t)}},this._handleTouchMove=function(e){e.preventDefault();var t=e.targetTouches[0];r._strokeMoveUpdate(t)},this._handleTouchEnd=function(e){e.target===r._canvas&&(e.preventDefault(),r._strokeEnd(e))},this.on()}r.r(t),n.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1},n.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},n.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time},o.prototype.length=function(){for(var e=0,t=void 0,r=void 0,n=0;n<=10;n+=1){var o=n/10,i=this._point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),s=this._point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(n>0){var a=i-t,l=s-r;e+=Math.sqrt(a*a+l*l)}t=i,r=s}return e},o.prototype._point=function(e,t,r,n,o){return t*(1-e)*(1-e)*(1-e)+3*r*(1-e)*(1-e)*e+3*n*(1-e)*e*e+o*e*e*e},i.prototype.clear=function(){var e=this._ctx,t=this._canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0},i.prototype.fromDataURL=function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new Image,o=r.ratio||window.devicePixelRatio||1,i=r.width||this._canvas.width/o,s=r.height||this._canvas.height/o;this._reset(),n.src=e,n.onload=function(){t._ctx.drawImage(n,0,0,i,s)},this._isEmpty=!1},i.prototype.toDataURL=function(e){var t;if("image/svg+xml"===e)return this._toSVG();for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return(t=this._canvas).toDataURL.apply(t,[e].concat(n))},i.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},i.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)},i.prototype.isEmpty=function(){return this._isEmpty},i.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)},i.prototype._strokeUpdate=function(e){var t=e.clientX,r=e.clientY,n=this._createPoint(t,r),o=this._data[this._data.length-1],i=o&&o[o.length-1],s=i&&n.distanceTo(i)<this.minDistance;if(!i||!s){var a=this._addPoint(n),l=a.curve,u=a.widths;l&&u&&this._drawCurve(l,u.start,u.end),this._data[this._data.length-1].push({x:n.x,y:n.y,time:n.time,color:this.penColor})}},i.prototype._strokeEnd=function(e){var t=this.points.length>2,r=this.points[0];if(!t&&r&&this._drawDot(r),r){var n=this._data[this._data.length-1],o=n[n.length-1];r.equals(o)||n.push({x:r.x,y:r.y,time:r.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(e)},i.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},i.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)},i.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},i.prototype._createPoint=function(e,t,r){var o=this._canvas.getBoundingClientRect();return new n(e-o.left,t-o.top,r||(new Date).getTime())},i.prototype._addPoint=function(e){var t=this.points;if(t.push(e),t.length>2){3===t.length&&t.unshift(t[0]);var r=this._calculateCurveControlPoints(t[0],t[1],t[2]).c2,n=this._calculateCurveControlPoints(t[1],t[2],t[3]).c1,i=new o(t[1],r,n,t[2]),s=this._calculateCurveWidths(i);return t.shift(),{curve:i,widths:s}}return{}},i.prototype._calculateCurveControlPoints=function(e,t,r){var o=e.x-t.x,i=e.y-t.y,s=t.x-r.x,a=t.y-r.y,l=(e.x+t.x)/2,u=(e.y+t.y)/2,c=(t.x+r.x)/2,p=(t.y+r.y)/2,d=Math.sqrt(o*o+i*i),h=Math.sqrt(s*s+a*a),f=h/(d+h),m=c+(l-c)*f,g=p+(u-p)*f,b=t.x-m,y=t.y-g;return{c1:new n(l+b,u+y),c2:new n(c+b,p+y)}},i.prototype._calculateCurveWidths=function(e){var t=e.startPoint,r=e.endPoint,n={start:null,end:null},o=this.velocityFilterWeight*r.velocityFrom(t)+(1-this.velocityFilterWeight)*this._lastVelocity,i=this._strokeWidth(o);return n.start=this._lastWidth,n.end=i,this._lastVelocity=o,this._lastWidth=i,n},i.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)},i.prototype._drawPoint=function(e,t,r){var n=this._ctx;n.moveTo(e,t),n.arc(e,t,r,0,2*Math.PI,!1),this._isEmpty=!1},i.prototype._drawCurve=function(e,t,r){var n=this._ctx,o=r-t,i=Math.floor(e.length());n.beginPath();for(var s=0;s<i;s+=1){var a=s/i,l=a*a,u=l*a,c=1-a,p=c*c,d=p*c,h=d*e.startPoint.x;h+=3*p*a*e.control1.x,h+=3*c*l*e.control2.x,h+=u*e.endPoint.x;var f=d*e.startPoint.y;f+=3*p*a*e.control1.y,f+=3*c*l*e.control2.y,f+=u*e.endPoint.y;var m=t+u*o;this._drawPoint(h,f,m)}n.closePath(),n.fill()},i.prototype._drawDot=function(e){var t=this._ctx,r="function"==typeof this.dotSize?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,r),t.closePath(),t.fill()},i.prototype._fromData=function(e,t,r){for(var o=0;o<e.length;o+=1){var i=e[o];if(i.length>1)for(var s=0;s<i.length;s+=1){var a=i[s],l=new n(a.x,a.y,a.time),u=a.color;if(0===s)this.penColor=u,this._reset(),this._addPoint(l);else if(s!==i.length-1){var c=this._addPoint(l),p=c.curve,d=c.widths;p&&d&&t(p,d,u)}}else this._reset(),r(i[0])}},i.prototype._toSVG=function(){var e=this,t=this._data,r=this._canvas,n=Math.max(window.devicePixelRatio||1,1),o=r.width/n,i=r.height/n,s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttributeNS(null,"width",r.width),s.setAttributeNS(null,"height",r.height),this._fromData(t,(function(e,t,r){var n=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){var o="M "+e.startPoint.x.toFixed(3)+","+e.startPoint.y.toFixed(3)+" C "+e.control1.x.toFixed(3)+","+e.control1.y.toFixed(3)+" "+e.control2.x.toFixed(3)+","+e.control2.y.toFixed(3)+" "+e.endPoint.x.toFixed(3)+","+e.endPoint.y.toFixed(3);n.setAttribute("d",o),n.setAttribute("stroke-width",(2.25*t.end).toFixed(3)),n.setAttribute("stroke",r),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),s.appendChild(n)}}),(function(t){var r=document.createElement("circle"),n="function"==typeof e.dotSize?e.dotSize():e.dotSize;r.setAttribute("r",n),r.setAttribute("cx",t.x),r.setAttribute("cy",t.y),r.setAttribute("fill",t.color),s.appendChild(r)}));var a='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+o+" "+i+'" width="'+o+'" height="'+i+'">',l=s.innerHTML;if(void 0===l){var u=document.createElement("dummy"),c=s.childNodes;u.innerHTML="";for(var p=0;p<c.length;p+=1)u.appendChild(c[p].cloneNode(!0));l=u.innerHTML}return"data:image/svg+xml;base64,"+btoa(a+l+"</svg>")},i.prototype.fromData=function(e){var t=this;this.clear(),this._fromData(e,(function(e,r){return t._drawCurve(e,r.start,r.end)}),(function(e){return t._drawDot(e)})),this._data=e},i.prototype.toData=function(){return this._data},t.default=i},"./src/actions/action.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"createDropdownActionModel",(function(){return h})),r.d(t,"createDropdownActionModelAdvanced",(function(){return f})),r.d(t,"BaseAction",(function(){return m})),r.d(t,"Action",(function(){return g})),r.d(t,"ActionDropdownViewModel",(function(){return b}));var n,o=r("./src/base.ts"),i=r("./src/surveyStrings.ts"),s=r("./src/jsonobject.ts"),a=r("./src/list.ts"),l=r("./src/popup.ts"),u=r("./src/utils/cssClassBuilder.ts"),c=r("./src/actions/container.ts"),p=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s};function h(e,t,r){return f(e,t,t,r)}function f(e,t,r,n){var o=new a.ListModel(t.items,(function(e){t.onSelectionChanged(e),i.toggleVisibility()}),t.allowSelection,t.selectedItem,t.onFilterStringChangedCallback);o.locOwner=n;var i=new l.PopupModel("sv-list",{model:o},null==r?void 0:r.verticalPosition,null==r?void 0:r.horizontalPosition,null==r?void 0:r.showPointer,null==r?void 0:r.isModal,null==r?void 0:r.onCancel,null==r?void 0:r.onApply,null==r?void 0:r.onHide,null==r?void 0:r.onShow,null==r?void 0:r.cssClass,null==r?void 0:r.title);i.displayMode=null==r?void 0:r.displayMode;var s=Object.assign({},e,{component:"sv-action-bar-item-dropdown",popupModel:i,action:function(t,r){e.action&&e.action(),i.isFocusedContent=!r||o.showFilter,i.toggleVisibility(),o.scrollToSelectedItem()}}),u=new g(s);return u.data=o,u}var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.iconSize=24,t}return p(t,e),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getVisible()},set:function(e){this.setVisible(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.getEnabled()},set:function(e){this.setEnabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.getComponent()},set:function(e){this.setComponent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocTitle()},set:function(e){this.setLocTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getTitle()},set:function(e){this.setTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||c.defaultActionBarCss},set:function(e){this.cssClassesValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.visible&&"popup"!==this.mode&&"removed"!==this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0!==this.enabled&&!this.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShrink",{get:function(){return!!this.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return("small"!=this.mode&&(this.showTitle||void 0===this.showTitle)||!this.iconName)&&!!this.title},enumerable:!1,configurable:!0}),t.prototype.getActionBarItemTitleCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.itemTitle).append(this.cssClasses.itemTitleWithIcon,!!this.iconName).toString()},t.prototype.getActionBarItemCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.item).append(this.cssClasses.itemAsIcon,!this.hasTitle).append(this.cssClasses.itemActive,!!this.active).append(this.cssClasses.itemPressed,!!this.pressed).append(this.innerCss).toString()},t.prototype.getActionRootCss=function(){return(new u.CssClassBuilder).append("sv-action").append(this.css).append("sv-action--space",this.needSpace).append("sv-action--hidden",!this.isVisible).toString()},t.prototype.getTooltip=function(){return this.tooltip||this.title},t.prototype.getIsTrusted=function(e){return e.originalEvent?e.originalEvent.isTrusted:e.isTrusted},d([Object(s.property)()],t.prototype,"tooltip",void 0),d([Object(s.property)()],t.prototype,"showTitle",void 0),d([Object(s.property)()],t.prototype,"innerCss",void 0),d([Object(s.property)()],t.prototype,"active",void 0),d([Object(s.property)()],t.prototype,"pressed",void 0),d([Object(s.property)()],t.prototype,"data",void 0),d([Object(s.property)()],t.prototype,"popupModel",void 0),d([Object(s.property)()],t.prototype,"needSeparator",void 0),d([Object(s.property)()],t.prototype,"template",void 0),d([Object(s.property)({defaultValue:"large"})],t.prototype,"mode",void 0),d([Object(s.property)()],t.prototype,"visibleIndex",void 0),d([Object(s.property)()],t.prototype,"disableTabStop",void 0),d([Object(s.property)()],t.prototype,"disableShrink",void 0),d([Object(s.property)()],t.prototype,"disableHide",void 0),d([Object(s.property)({defaultValue:!1})],t.prototype,"needSpace",void 0),d([Object(s.property)()],t.prototype,"ariaChecked",void 0),d([Object(s.property)()],t.prototype,"ariaExpanded",void 0),d([Object(s.property)({defaultValue:"button"})],t.prototype,"ariaRole",void 0),d([Object(s.property)()],t.prototype,"iconName",void 0),d([Object(s.property)()],t.prototype,"iconSize",void 0),d([Object(s.property)()],t.prototype,"css",void 0),t}(o.Base),g=function(e){function t(t){var r=e.call(this)||this;if(r.innerItem=t,r.locTitleChanged=function(){var e=r.locTitle.renderedHtml;r.setPropertyValue("_title",e||void 0)},r.locTitle=t?t.locTitle:null,t)for(var n in t)r[n]=t[n];return r.locTitleName&&r.locTitleChanged(),r.locStrChangedInPopupModel(),r}return p(t,e),t.prototype.raiseUpdate=function(){this.updateCallback&&this.updateCallback()},t.prototype.createLocTitle=function(){return this.createLocalizableString("title",this,!0)},t.prototype.getLocTitle=function(){return this.locTitleValue},t.prototype.setLocTitle=function(e){e||this.locTitleValue||(e=this.createLocTitle()),this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleValue=e,this.locTitleValue.onStringChanged.add(this.locTitleChanged),this.locTitleChanged()},t.prototype.getTitle=function(){return this._title},t.prototype.setTitle=function(e){this._title=e},Object.defineProperty(t.prototype,"locTitleName",{get:function(){return this.locTitle.localizationName},set:function(e){this.locTitle.localizationName=e},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTooltipChanged(),this.locStrChangedInPopupModel()},t.prototype.locStrChangedInPopupModel=function(){if(this.popupModel&&this.popupModel.contentComponentData&&this.popupModel.contentComponentData.model){var e=this.popupModel.contentComponentData.model;Array.isArray(e.actions)&&e.actions.forEach((function(e){e.locStrsChanged&&e.locStrsChanged()}))}},t.prototype.locTooltipChanged=function(){this.locTooltipName&&(this.tooltip=i.surveyLocalization.getString(this.locTooltipName,this.locTitle.locale))},t.prototype.getLocale=function(){return this.owner?this.owner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.owner?this.owner.getMarkdownHtml(e,t):void 0},t.prototype.getProcessedText=function(e){return this.owner?this.owner.getProcessedText(e):e},t.prototype.getRenderer=function(e){return this.owner?this.owner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.owner?this.owner.getRendererContext(e):e},t.prototype.setVisible=function(e){this._visible=e},t.prototype.getVisible=function(){return this._visible},t.prototype.setEnabled=function(e){this._enabled=e},t.prototype.getEnabled=function(){return this._enabled},t.prototype.setComponent=function(e){this._component=e},t.prototype.getComponent=function(){return this._component},d([Object(s.property)()],t.prototype,"id",void 0),d([Object(s.property)({defaultValue:!0,onSet:function(e,t){t.raiseUpdate()}})],t.prototype,"_visible",void 0),d([Object(s.property)({onSet:function(e,t){t.locTooltipChanged()}})],t.prototype,"locTooltipName",void 0),d([Object(s.property)()],t.prototype,"_enabled",void 0),d([Object(s.property)()],t.prototype,"action",void 0),d([Object(s.property)()],t.prototype,"_component",void 0),d([Object(s.property)()],t.prototype,"items",void 0),d([Object(s.property)({onSet:function(e,t){t.locTitleValue.text!==e&&(t.locTitleValue.text=e)}})],t.prototype,"_title",void 0),t}(m),b=function(){function e(e){this.item=e,this.funcKey="sv-dropdown-action",this.setupPopupCallbacks()}return e.prototype.setupPopupCallbacks=function(){var e=this,t=this.popupModel=this.item.popupModel;t&&t.registerPropertyChangedHandlers(["isVisible"],(function(){t.isVisible?e.item.pressed=!0:e.item.pressed=!1}),this.funcKey)},e.prototype.removePopupCallbacks=function(){this.popupModel&&this.popupModel.unregisterPropertyChangedHandlers(["isVisible"],this.funcKey)},e.prototype.dispose=function(){this.removePopupCallbacks()},e}()},"./src/actions/adaptive-container.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"AdaptiveActionContainer",(function(){return u}));var n,o=r("./src/utils/responsivity-manager.ts"),i=r("./src/actions/action.ts"),s=r("./src/actions/container.ts"),a=r("./src/surveyStrings.ts"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){var r=e.call(this)||this;return r.minVisibleItemsCount=0,r.isResponsivenessDisabled=!1,r.dotsItem=Object(i.createDropdownActionModelAdvanced)({id:"dotsItem-id"+t.ContainerID++,css:"sv-dots",innerCss:"sv-dots__item",iconName:"icon-more",visible:!1,tooltip:a.surveyLocalization.getString("more")},{items:[],onSelectionChanged:function(e){r.hiddenItemSelected(e)},allowSelection:!1}),r}return l(t,e),t.prototype.hideItemsGreaterN=function(e){var t=this.visibleActions.filter((function(e){return!e.disableHide}));e=Math.max(e,this.minVisibleItemsCount)-(this.visibleActions.length-t.length);var r=[];t.forEach((function(t){e<=0&&(t.mode="popup",r.push(t.innerItem)),e--})),this.hiddenItemsListModel.setItems(r)},t.prototype.getVisibleItemsCount=function(e){for(var t=this.visibleActions.map((function(e){return e.minDimension})),r=0,n=0;n<t.length;n++)if((r+=t[n])>e)return n;return n},t.prototype.updateItemMode=function(e,t){for(var r=this.visibleActions,n=r.length-1;n>=0;n--)t>e&&!r[n].disableShrink?(t-=r[n].maxDimension-r[n].minDimension,r[n].mode="small"):r[n].mode="large";if(t>e){var o=this.visibleActions.filter((function(e){return e.removePriority}));for(o.sort((function(e,t){return e.removePriority-t.removePriority})),n=0;n<o.length;n++)t>e&&(t-=r[n].disableShrink?o[n].maxDimension:o[n].minDimension,o[n].mode="removed")}},Object.defineProperty(t.prototype,"hiddenItemsListModel",{get:function(){return this.dotsItem.data},enumerable:!1,configurable:!0}),t.prototype.hiddenItemSelected=function(e){e&&"function"==typeof e.action&&e.action()},t.prototype.onSet=function(){var t=this;this.actions.forEach((function(e){return e.updateCallback=function(){return t.raiseUpdate(!1)}})),e.prototype.onSet.call(this)},t.prototype.onPush=function(t){var r=this;t.updateCallback=function(){return r.raiseUpdate(!1)},e.prototype.onPush.call(this,t)},t.prototype.getRenderedActions=function(){return 1===this.actions.length&&this.actions[0].iconName?this.actions:this.actions.concat([this.dotsItem])},t.prototype.raiseUpdate=function(t){this.isResponsivenessDisabled||e.prototype.raiseUpdate.call(this,t)},t.prototype.fit=function(e,t){if(!(e<=0)){this.dotsItem.visible=!1;var r=0,n=0;this.visibleActions.forEach((function(e){r+=e.minDimension,n+=e.maxDimension})),e>=n?this.setActionsMode("large"):e<r?(this.setActionsMode("small"),this.hideItemsGreaterN(this.getVisibleItemsCount(e-t)),this.dotsItem.visible=!0):this.updateItemMode(e,n)}},t.prototype.initResponsivityManager=function(e){this.responsivityManager=new o.ResponsivityManager(e,this,".sv-action:not(.sv-dots)>.sv-action__content")},t.prototype.resetResponsivityManager=function(){this.responsivityManager&&(this.responsivityManager.dispose(),this.responsivityManager=void 0)},t.prototype.setActionsMode=function(e){this.actions.forEach((function(t){return t.mode=e}))},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.resetResponsivityManager()},t.ContainerID=1,t}(s.ActionContainer)},"./src/actions/container.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"defaultActionBarCss",(function(){return p})),r.d(t,"ActionContainer",(function(){return d}));var n,o=r("./src/jsonobject.ts"),i=r("./src/base.ts"),s=r("./src/actions/action.ts"),a=r("./src/utils/cssClassBuilder.ts"),l=r("./src/utils/utils.ts"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},p={root:"sv-action-bar",defaultSizeMode:"sv-action-bar--default-size-mode",smallSizeMode:"sv-action-bar--small-size-mode",item:"sv-action-bar-item",itemActive:"sv-action-bar-item--active",itemPressed:"sv-action-bar-item--pressed",itemIcon:"sv-action-bar-item__icon",itemTitle:"sv-action-bar-item__title",itemTitleWithIcon:"sv-action-bar-item__title--with-icon"},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sizeMode="default",t}return u(t,e),t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getRenderedActions=function(){return this.actions},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.actions.forEach((function(e){e.locTitle&&e.locTitle.strChanged(),e.locStrsChanged()}))},t.prototype.raiseUpdate=function(e){this.isEmpty=!this.actions.some((function(e){return e.visible})),this.updateCallback&&this.updateCallback(e)},t.prototype.onSet=function(){var e=this;this.actions.forEach((function(t){e.setActionCssClasses(t)})),this.raiseUpdate(!0)},t.prototype.onPush=function(e){this.setActionCssClasses(e),e.owner=this,this.raiseUpdate(!0)},t.prototype.onRemove=function(e){e.owner=null,this.raiseUpdate(!0)},t.prototype.setActionCssClasses=function(e){e.cssClasses=this.cssClasses},Object.defineProperty(t.prototype,"hasActions",{get:function(){return(this.actions||[]).length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedActions",{get:function(){return this.getRenderedActions()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleActions",{get:function(){return this.actions.filter((function(e){return!1!==e.visible}))},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){var e="small"===this.sizeMode?this.cssClasses.smallSizeMode:this.cssClasses.defaultSizeMode;return(new a.CssClassBuilder).append(this.cssClasses.root+(e?" "+e:"")+(this.containerCss?" "+this.containerCss:"")).append(this.cssClasses.root+"--empty",this.isEmpty).toString()},t.prototype.getDefaultCssClasses=function(){return p},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||(this.cssClassesValue=this.getDefaultCssClasses()),this.cssClassesValue},set:function(e){var t=this;this.cssClassesValue={},this.copyCssClasses(this.cssClassesValue,this.getDefaultCssClasses()),Object(l.mergeValues)(e,this.cssClasses),this.actions.forEach((function(e){t.setActionCssClasses(e)}))},enumerable:!1,configurable:!0}),t.prototype.createAction=function(e){return e instanceof s.BaseAction?e:new s.Action(e)},t.prototype.addAction=function(e,t){void 0===t&&(t=!0);var r=this.createAction(e);return this.actions.push(r),this.sortItems(),r},t.prototype.sortItems=function(){this.actions=[].concat(this.actions.filter((function(e){return void 0===e.visibleIndex||e.visibleIndex>=0}))).sort((function(e,t){return e.visibleIndex-t.visibleIndex}))},t.prototype.setItems=function(e,t){var r=this;void 0===t&&(t=!0),this.actions=e.map((function(e){return r.createAction(e)})),t&&this.sortItems()},t.prototype.initResponsivityManager=function(e){},t.prototype.resetResponsivityManager=function(){},t.prototype.getActionById=function(e){for(var t=0;t<this.actions.length;t++)if(this.actions[t].id===e)return this.actions[t];return null},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.actions.forEach((function(e){return e.dispose()})),this.actions.length=0},c([Object(o.propertyArray)({onSet:function(e,t){t.onSet()},onPush:function(e,t,r){r.onPush(e)},onRemove:function(e,t,r){r.onRemove(e)}})],t.prototype,"actions",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"isEmpty",void 0),t}(i.Base)},"./src/base.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"Bindings",(function(){return p})),r.d(t,"Dependencies",(function(){return d})),r.d(t,"ComputedUpdater",(function(){return h})),r.d(t,"Base",(function(){return f})),r.d(t,"ArrayChanges",(function(){return m})),r.d(t,"Event",(function(){return g})),r.d(t,"EventBase",(function(){return b}));var n,o=r("./src/localizablestring.ts"),i=r("./src/helpers.ts"),s=r("./src/jsonobject.ts"),a=r("./src/settings.ts"),l=r("./src/conditions.ts"),u=r("./src/surveyStrings.ts"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(){function e(e){this.obj=e,this.properties=null,this.values=null}return e.prototype.getType=function(){return"bindings"},e.prototype.getNames=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)this.properties[t].isVisible("",this.obj)&&e.push(this.properties[t].name);return e},e.prototype.getProperties=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)e.push(this.properties[t]);return e},e.prototype.setBinding=function(e,t){this.values||(this.values={});var r=this.getJson();r!==t&&(t?this.values[e]=t:(delete this.values[e],0==Object.keys(this.values).length&&(this.values=null)),this.onChangedJSON(r))},e.prototype.clearBinding=function(e){this.setBinding(e,"")},e.prototype.isEmpty=function(){if(!this.values)return!0;for(var e in this.values)return!1;return!0},e.prototype.getValueNameByPropertyName=function(e){if(this.values)return this.values[e]},e.prototype.getPropertiesByValueName=function(e){if(!this.values)return[];var t=[];for(var r in this.values)this.values[r]==e&&t.push(r);return t},e.prototype.getJson=function(){if(!this.isEmpty()){var e={};for(var t in this.values)e[t]=this.values[t];return e}},e.prototype.setJson=function(e){var t=this.getJson();if(this.values=null,e)for(var r in this.values={},e)this.values[r]=e[r];this.onChangedJSON(t)},e.prototype.fillProperties=function(){if(null===this.properties){this.properties=[];for(var e=s.Serializer.getPropertiesByObj(this.obj),t=0;t<e.length;t++)e[t].isBindable&&this.properties.push(e[t])}},e.prototype.onChangedJSON=function(e){this.obj&&this.obj.onBindingChanged(e,this.getJson())},e}(),d=function(){function e(t,r,n){this.currentDependency=t,this.target=r,this.property=n,this.dependencies=[],this.id=""+ ++e.DependenciesCount}return e.prototype.addDependency=function(e,t){this.target===e&&this.property===t||this.dependencies.some((function(r){return r.obj===e&&r.prop===t}))||(this.dependencies.push({obj:e,prop:t,id:this.id}),e.registerPropertyChangedHandlers([t],this.currentDependency,this.id))},e.prototype.dispose=function(){this.dependencies.forEach((function(e){e.obj.unregisterPropertyChangedHandlers([e.prop],e.id)}))},e.DependenciesCount=0,e}(),h=function(){function e(t){this._updater=t,this.dependencies=void 0,this.type=e.ComputedUpdaterType}return Object.defineProperty(e.prototype,"updater",{get:function(){return this._updater},enumerable:!1,configurable:!0}),e.prototype.setDependencies=function(e){this.clearDependencies(),this.dependencies=e},e.prototype.getDependencies=function(){return this.dependencies},e.prototype.clearDependencies=function(){this.dependencies&&(this.dependencies.dispose(),this.dependencies=void 0)},e.prototype.dispose=function(){this.clearDependencies()},e.ComputedUpdaterType="__dependency_computed",e}(),f=function(){function e(){this.propertyHash={},this.eventList=[],this.isLoadingFromJsonValue=!1,this.loadingOwner=null,this.onPropertyChanged=this.addEvent(),this.onItemValuePropertyChanged=this.addEvent(),this.isCreating=!0,this.bindingsValue=new p(this),s.CustomPropertiesCollection.createProperties(this),this.onBaseCreating(),this.isCreating=!1}return e.finishCollectDependencies=function(){var t=e.currentDependencis;return e.currentDependencis=void 0,t},e.startCollectDependencies=function(t,r,n){if(void 0!==e.currentDependencis)throw new Error("Attempt to collect nested dependencies. Nested dependencies are not supported.");e.currentDependencis=new d(t,r,n)},e.collectDependency=function(t,r){void 0!==e.currentDependencis&&e.currentDependencis.addDependency(t,r)},Object.defineProperty(e,"commentSuffix",{get:function(){return a.settings.commentSuffix},set:function(e){a.settings.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"commentPrefix",{get:function(){return e.commentSuffix},set:function(t){e.commentSuffix=t},enumerable:!1,configurable:!0}),e.prototype.isValueEmpty=function(e,t){return void 0===t&&(t=!0),t&&(e=this.trimValue(e)),i.Helpers.isValueEmpty(e)},e.prototype.trimValue=function(e){return e&&("string"==typeof e||e instanceof String)?e.trim():e},e.prototype.isPropertyEmpty=function(e){return""!==e&&this.isValueEmpty(e)},e.prototype.dispose=function(){for(var e=0;e<this.eventList.length;e++)this.eventList[e].clear();this.onPropertyValueChangedCallback=void 0,this.isDisposedValue=!0},Object.defineProperty(e.prototype,"isDisposed",{get:function(){return!0===this.isDisposedValue},enumerable:!1,configurable:!0}),e.prototype.addEvent=function(){var e=new b;return this.eventList.push(e),e},e.prototype.onBaseCreating=function(){},e.prototype.getType=function(){return"base"},e.prototype.isDescendantOf=function(e){return s.Serializer.isDescendantOf(this.getType(),e)},e.prototype.getSurvey=function(e){return void 0===e&&(e=!1),null},Object.defineProperty(e.prototype,"isDesignMode",{get:function(){var e=this.getSurvey();return!!e&&e.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inSurvey",{get:function(){return!!this.getSurvey(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bindings",{get:function(){return this.bindingsValue},enumerable:!1,configurable:!0}),e.prototype.checkBindings=function(e,t){},e.prototype.updateBindings=function(e,t){var r=this.bindings.getValueNameByPropertyName(e);r&&this.updateBindingValue(r,t)},e.prototype.updateBindingValue=function(e,t){},e.prototype.getTemplate=function(){return this.getType()},Object.defineProperty(e.prototype,"isLoadingFromJson",{get:function(){return this.isLoadingFromJsonValue||this.getIsLoadingFromJson()},enumerable:!1,configurable:!0}),e.prototype.getIsLoadingFromJson=function(){return!(!this.loadingOwner||!this.loadingOwner.isLoadingFromJson)||this.isLoadingFromJsonValue},e.prototype.startLoadingFromJson=function(e){this.isLoadingFromJsonValue=!0},e.prototype.endLoadingFromJson=function(){this.isLoadingFromJsonValue=!1},e.prototype.toJSON=function(){return(new s.JsonObject).toJsonObject(this)},e.prototype.fromJSON=function(e){(new s.JsonObject).toObject(e,this),this.onSurveyLoad()},e.prototype.onSurveyLoad=function(){},e.prototype.clone=function(){var e=s.Serializer.createClass(this.getType());return e.fromJSON(this.toJSON()),e},e.prototype.getPropertyByName=function(e){return this.classMetaData||(this.classMetaData=s.Serializer.findClass(this.getType())),this.classMetaData?this.classMetaData.findProperty(e):null},e.prototype.isPropertyVisible=function(e){var t=this.getPropertyByName(e);return!!t&&t.isVisible("",this)},e.createProgressInfo=function(){return{questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0}},e.prototype.getProgressInfo=function(){return e.createProgressInfo()},e.prototype.localeChanged=function(){},e.prototype.locStrsChanged=function(){if(this.arraysInfo)for(var t in this.arraysInfo)if((n=this.arraysInfo[t])&&n.isItemValues){var r=this.getPropertyValue(t);r&&e.itemValueLocStrChanged&&e.itemValueLocStrChanged(r)}if(this.localizableStrings)for(var t in this.localizableStrings){var n;(n=this.getLocalizableString(t))&&n.strChanged()}},e.prototype.getPropertyValue=function(e,t){void 0===t&&(t=null);var r=this.getPropertyValueCore(this.propertyHash,e);if(this.isPropertyEmpty(r)){var n=this.localizableStrings?this.localizableStrings[e]:void 0;if(n)return n.text;if(null!=t)return t;var o=this.getDefaultValueFromProperty(e);if(void 0!==o)return o}return r},e.prototype.getDefaultValueFromProperty=function(e){var t=this.getPropertyByName(e);if(!(!t||t.isCustom&&this.isCreating)){var r=t.defaultValue;return this.isPropertyEmpty(r)||Array.isArray(r)?"boolean"!=t.type&&"switch"!=t.type&&(t.isCustom&&t.onGetValue?t.onGetValue(this):void 0):r}},e.prototype.getPropertyValueCore=function(t,r){return this.isLoadingFromJson||e.collectDependency(this,r),this.getPropertyValueCoreHandler?this.getPropertyValueCoreHandler(t,r):t[r]},e.prototype.geValueFromHash=function(){return this.propertyHash.value},e.prototype.setPropertyValueCore=function(e,t,r){this.setPropertyValueCoreHandler?this.isDisposedValue?console.warn("Attempt to set property '"+t+"' of a disposed object '"+this.getType()+"'"):this.setPropertyValueCoreHandler(e,t,r):e[t]=r},Object.defineProperty(e.prototype,"isEditingSurveyElement",{get:function(){var e=this.getSurvey();return!!e&&e.isEditingSurveyElement},enumerable:!1,configurable:!0}),e.prototype.iteratePropertiesHash=function(e){var t=this,r=[];for(var n in this.propertyHash)"value"===n&&this.isEditingSurveyElement&&Array.isArray(this.value)||r.push(n);r.forEach((function(r){return e(t.propertyHash,r)}))},e.prototype.setPropertyValue=function(e,t){if(!this.isLoadingFromJson){var r=this.getPropertyByName(e);r&&(t=r.settingValue(this,t))}var n=this.getPropertyValue(e);if(n&&Array.isArray(n)&&this.arraysInfo&&(!t||Array.isArray(t))){if(this.isTwoValueEquals(n,t))return;this.setArrayPropertyDirectly(e,t)}else this.setPropertyValueDirectly(e,t),this.isDisposedValue||this.isTwoValueEquals(n,t)||this.propertyValueChanged(e,n,t)},e.prototype.setArrayPropertyDirectly=function(e,t,r){void 0===r&&(r=!0);var n=this.arraysInfo[e];this.setArray(e,this.getPropertyValue(e),t,!!n&&n.isItemValues,n?r&&n.onPush:null)},e.prototype.setPropertyValueDirectly=function(e,t){this.setPropertyValueCore(this.propertyHash,e,t)},e.prototype.clearPropertyValue=function(e){this.setPropertyValueCore(this.propertyHash,e,null),delete this.propertyHash[e]},e.prototype.onPropertyValueChangedCallback=function(e,t,r,n,o){},e.prototype.itemValuePropertyChanged=function(e,t,r,n){this.onItemValuePropertyChanged.fire(this,{obj:e,name:t,oldValue:r,newValue:n,propertyName:e.ownerPropertyName})},e.prototype.onPropertyValueChanged=function(e,t,r){},e.prototype.propertyValueChanged=function(e,t,r,n,o){if(!this.isLoadingFromJson&&(this.updateBindings(e,r),this.onPropertyValueChanged(e,t,r),this.onPropertyChanged.fire(this,{name:e,oldValue:t,newValue:r}),this.doPropertyValueChangedCallback(e,t,r,n,this),this.checkConditionPropertyChanged(e),this.onPropChangeFunctions))for(var i=0;i<this.onPropChangeFunctions.length;i++)this.onPropChangeFunctions[i].name==e&&this.onPropChangeFunctions[i].func(r)},e.prototype.onBindingChanged=function(e,t){this.isLoadingFromJson||this.doPropertyValueChangedCallback("bindings",e,t)},Object.defineProperty(e.prototype,"isInternal",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.doPropertyValueChangedCallback=function(e,t,r,n,o){if(!this.isInternal){o||(o=this);var i=this.getSurvey();i||(i=this),i.onPropertyValueChangedCallback&&i.onPropertyValueChangedCallback(e,t,r,o,n),i!==this&&this.onPropertyValueChangedCallback&&this.onPropertyValueChangedCallback(e,t,r,o,n)}},e.prototype.addExpressionProperty=function(e,t,r){this.expressionInfo||(this.expressionInfo={}),this.expressionInfo[e]={onExecute:t,canRun:r}},e.prototype.getDataFilteredValues=function(){return{}},e.prototype.getDataFilteredProperties=function(){return{}},e.prototype.runConditionCore=function(e,t){if(this.expressionInfo)for(var r in this.expressionInfo)this.runConditionItemCore(r,e,t)},e.prototype.canRunConditions=function(){return!this.isDesignMode},e.prototype.checkConditionPropertyChanged=function(e){this.expressionInfo&&this.expressionInfo[e]&&this.canRunConditions()&&this.runConditionItemCore(e,this.getDataFilteredValues(),this.getDataFilteredProperties())},e.prototype.runConditionItemCore=function(e,t,r){var n=this,o=this.expressionInfo[e],i=this.getPropertyValue(e);i&&(o.canRun&&!o.canRun(this)||(o.runner||(o.runner=new l.ExpressionRunner(i),o.runner.onRunComplete=function(e){o.onExecute(n,e)}),o.runner.expression=i,o.runner.run(t,r)))},e.prototype.registerPropertyChangedHandlers=function(e,t,r){void 0===r&&(r=null);for(var n=0;n<e.length;n++)this.registerFunctionOnPropertyValueChanged(e[n],t,r)},e.prototype.unregisterPropertyChangedHandlers=function(e,t){void 0===t&&(t=null);for(var r=0;r<e.length;r++)this.unRegisterFunctionOnPropertyValueChanged(e[r],t)},e.prototype.registerFunctionOnPropertyValueChanged=function(e,t,r){if(void 0===r&&(r=null),this.onPropChangeFunctions||(this.onPropChangeFunctions=[]),r)for(var n=0;n<this.onPropChangeFunctions.length;n++){var o=this.onPropChangeFunctions[n];if(o.name==e&&o.key==r)return void(o.func=t)}this.onPropChangeFunctions.push({name:e,func:t,key:r})},e.prototype.registerFunctionOnPropertiesValueChanged=function(e,t,r){void 0===r&&(r=null),this.registerPropertyChangedHandlers(e,t,r)},e.prototype.unRegisterFunctionOnPropertyValueChanged=function(e,t){if(void 0===t&&(t=null),this.onPropChangeFunctions)for(var r=0;r<this.onPropChangeFunctions.length;r++){var n=this.onPropChangeFunctions[r];if(n.name==e&&n.key==t)return void this.onPropChangeFunctions.splice(r,1)}},e.prototype.unRegisterFunctionOnPropertiesValueChanged=function(e,t){void 0===t&&(t=null),this.unregisterPropertyChangedHandlers(e,t)},e.prototype.createCustomLocalizableObj=function(e){this.getLocalizableString(e)||this.createLocalizableString(e,this,!1,!0)},e.prototype.getLocale=function(){var e=this.getSurvey();return e?e.getLocale():""},e.prototype.getLocalizationString=function(e){return u.surveyLocalization.getString(e,this.getLocale())},e.prototype.getLocalizationFormatString=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=this.getLocalizationString(e);return n&&n.format?n.format.apply(n,t):""},e.prototype.createLocalizableString=function(e,t,r,n){var i=this;void 0===r&&(r=!1),void 0===n&&(n=!1);var s=new o.LocalizableString(t,r,e);n&&(s.localizationName=!0===n?e:n),s.onStrChanged=function(t,r){i.propertyValueChanged(e,t,r)},this.localizableStrings||(this.localizableStrings={}),this.localizableStrings[e]=s;var a=this.getPropertyByName(e);return s.disableLocalization=a&&!1===a.isLocalizable,s},e.prototype.getLocalizableString=function(e){return this.localizableStrings?this.localizableStrings[e]:null},e.prototype.getLocalizableStringText=function(t,r){void 0===r&&(r=""),e.collectDependency(this,t);var n=this.getLocalizableString(t);return n?n.text||r:""},e.prototype.setLocalizableStringText=function(e,t){var r=this.getLocalizableString(e);r&&r.text!=t&&(r.text=t)},e.prototype.addUsedLocales=function(e){if(this.localizableStrings)for(var t in this.localizableStrings)(o=this.getLocalizableString(t))&&this.AddLocStringToUsedLocales(o,e);if(this.arraysInfo)for(var t in this.arraysInfo){var r=this.getPropertyValue(t);if(r&&r.length)for(var n=0;n<r.length;n++){var o;(o=r[n])&&o.addUsedLocales&&o.addUsedLocales(e)}}},e.prototype.searchText=function(e,t){var r=[];this.getSearchableLocalizedStrings(r);for(var n=0;n<r.length;n++)r[n].setFindText(e)&&t.push({element:this,str:r[n]})},e.prototype.getSearchableLocalizedStrings=function(e){if(this.localizableStrings){var t=[];this.getSearchableLocKeys(t);for(var r=0;r<t.length;r++){var n=this.getLocalizableString(t[r]);n&&e.push(n)}}if(this.arraysInfo){var o=[];for(this.getSearchableItemValueKeys(o),r=0;r<o.length;r++){var i=this.getPropertyValue(o[r]);if(i)for(var s=0;s<i.length;s++)e.push(i[s].locText)}}},e.prototype.getSearchableLocKeys=function(e){},e.prototype.getSearchableItemValueKeys=function(e){},e.prototype.AddLocStringToUsedLocales=function(e,t){for(var r=e.getLocales(),n=0;n<r.length;n++)t.indexOf(r[n])<0&&t.push(r[n])},e.prototype.createItemValues=function(e){var t=this,r=this.createNewArray(e,(function(r){if(r.locOwner=t,r.ownerPropertyName=e,"function"==typeof r.getSurvey){var n=r.getSurvey();n&&"function"==typeof n.makeReactive&&n.makeReactive(r)}}));return this.arraysInfo[e].isItemValues=!0,r},e.prototype.notifyArrayChanged=function(e,t){e.onArrayChanged&&e.onArrayChanged(t)},e.prototype.createNewArrayCore=function(e){var t=null;return this.createArrayCoreHandler&&(t=this.createArrayCoreHandler(this.propertyHash,e)),t||(t=new Array,this.setPropertyValueCore(this.propertyHash,e,t)),t},e.prototype.ensureArray=function(e,t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!this.arraysInfo||!this.arraysInfo[e])return this.createNewArray(e,t,r)},e.prototype.createNewArray=function(e,t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=this.createNewArrayCore(e);this.arraysInfo||(this.arraysInfo={}),this.arraysInfo[e]={onPush:t,isItemValues:!1};var o=this;return n.push=function(r){var i=Object.getPrototypeOf(n).push.call(n,r);if(!o.isDisposedValue){t&&t(r,n.length-1);var s=new m(n.length-1,0,[r],[]);o.propertyValueChanged(e,n,n,s),o.notifyArrayChanged(n,s)}return i},n.shift=function(){var t=Object.getPrototypeOf(n).shift.call(n);if(!o.isDisposedValue&&t){r&&r(t);var i=new m(n.length-1,1,[],[]);o.propertyValueChanged(e,n,n,i),o.notifyArrayChanged(n,i)}return t},n.unshift=function(r){var i=Object.getPrototypeOf(n).unshift.call(n,r);if(!o.isDisposedValue){t&&t(r,n.length-1);var s=new m(0,0,[r],[]);o.propertyValueChanged(e,n,n,s),o.notifyArrayChanged(n,s)}return i},n.pop=function(){var t=Object.getPrototypeOf(n).pop.call(n);if(!o.isDisposedValue){r&&r(t);var i=new m(n.length-1,1,[],[]);o.propertyValueChanged(e,n,n,i),o.notifyArrayChanged(n,i)}return t},n.splice=function(i,s){for(var a,l=[],u=2;u<arguments.length;u++)l[u-2]=arguments[u];i||(i=0),s||(s=0);var c=(a=Object.getPrototypeOf(n).splice).call.apply(a,function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}([n,i,s],l));if(l||(l=[]),!o.isDisposedValue){if(r&&c)for(var p=0;p<c.length;p++)r(c[p]);if(t)for(p=0;p<l.length;p++)t(l[p],i+p);var d=new m(i,s,l,c);o.propertyValueChanged(e,n,n,d),o.notifyArrayChanged(n,d)}return c},n},e.prototype.getItemValueType=function(){},e.prototype.setArray=function(t,r,n,o,i){var s=[].concat(r);if(Object.getPrototypeOf(r).splice.call(r,0,r.length),n)for(var a=0;a<n.length;a++){var l=n[a];o&&e.createItemValue&&(l=e.createItemValue(l,this.getItemValueType())),Object.getPrototypeOf(r).push.call(r,l),i&&i(r[a])}var u=new m(0,s.length,r,s);this.propertyValueChanged(t,s,r,u),this.notifyArrayChanged(r,u)},e.prototype.isTwoValueEquals=function(e,t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),i.Helpers.isTwoValueEquals(e,t,!1,!r,n)},e.copyObject=function(e,t){for(var r in t){var n=t[r];"object"==typeof n&&(n={},this.copyObject(n,t[r])),e[r]=n}},e.prototype.copyCssClasses=function(t,r){r&&("string"==typeof r||r instanceof String?t.root=r:e.copyObject(t,r))},e.prototype.getValueInLowCase=function(e){return e&&"string"==typeof e?e.toLowerCase():e},e.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),[]},e.currentDependencis=void 0,e}(),m=function(e,t,r,n){this.index=e,this.deleteCount=t,this.itemsToAdd=r,this.deletedItems=n},g=function(){function e(){}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.callbacks?this.callbacks.length:0},enumerable:!1,configurable:!0}),e.prototype.fireByCreatingOptions=function(e,t){if(this.callbacks)for(var r=0;r<this.callbacks.length;r++)if(this.callbacks[r](e,t()),!this.callbacks)return},e.prototype.fire=function(e,t){if(this.callbacks)for(var r=0;r<this.callbacks.length;r++)if(this.callbacks[r](e,t),!this.callbacks)return},e.prototype.clear=function(){this.callbacks=void 0},e.prototype.add=function(e){this.hasFunc(e)||(this.callbacks||(this.callbacks=new Array),this.callbacks.push(e),this.fireCallbackChanged())},e.prototype.remove=function(e){if(this.hasFunc(e)){var t=this.callbacks.indexOf(e,0);this.callbacks.splice(t,1),this.fireCallbackChanged()}},e.prototype.hasFunc=function(e){return null!=this.callbacks&&this.callbacks.indexOf(e,0)>-1},e.prototype.fireCallbackChanged=function(){this.onCallbacksChanged&&this.onCallbacksChanged()},e}(),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t}(g)},"./src/calculatedValue.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"CalculatedValue",(function(){return u}));var n,o=r("./src/helpers.ts"),i=r("./src/base.ts"),s=r("./src/conditions.ts"),a=r("./src/jsonobject.ts"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;return n.expressionIsRunning=!1,n.isCalculated=!1,t&&(n.name=t),r&&(n.expression=r),n}return l(t,e),t.prototype.setOwner=function(e){this.data=e,this.rerunExpression()},t.prototype.getType=function(){return"calculatedvalue"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.data&&this.data.getSurvey?this.data.getSurvey():null},Object.defineProperty(t.prototype,"owner",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name")||""},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"includeIntoResult",{get:function(){return this.getPropertyValue("includeIntoResult")},set:function(e){this.setPropertyValue("includeIntoResult",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")||""},set:function(e){this.setPropertyValue("expression",e),this.rerunExpression()},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.resetCalculation=function(){this.isCalculated=!1},t.prototype.doCalculation=function(e,t,r){this.isCalculated||(this.runExpressionCore(e,t,r),this.isCalculated=!0)},t.prototype.runExpression=function(e,t){this.runExpressionCore(null,e,t)},Object.defineProperty(t.prototype,"value",{get:function(){if(this.data)return this.data.getVariable(this.name)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e){this.data&&this.data.setVariable(this.name,e)},Object.defineProperty(t.prototype,"canRunExpression",{get:function(){return!(!this.data||this.isLoadingFromJson||!this.expression||this.expressionIsRunning||!this.name)},enumerable:!1,configurable:!0}),t.prototype.rerunExpression=function(){this.canRunExpression&&this.runExpression(this.data.getFilteredValues(),this.data.getFilteredProperties())},t.prototype.runExpressionCore=function(e,t,r){this.canRunExpression&&(this.ensureExpression(t),this.locCalculation(),e&&this.runDependentExpressions(e,t,r),this.expressionRunner.run(t,r))},t.prototype.runDependentExpressions=function(e,t,r){var n=this.expressionRunner.getVariables();if(n)for(var o=0;o<e.length;o++){var i=e[o];i===this||n.indexOf(i.name)<0||(i.doCalculation(e,t,r),t[i.name]=i.value)}},t.prototype.ensureExpression=function(e){var t=this;this.expressionRunner||(this.expressionRunner=new s.ExpressionRunner(this.expression),this.expressionRunner.onRunComplete=function(e){o.Helpers.isTwoValueEquals(e,t.value)||t.setValue(e),t.unlocCalculation()})},t}(i.Base);a.Serializer.addClass("calculatedvalue",[{name:"!name",isUnique:!0},"expression:expression","includeIntoResult:boolean"],(function(){return new u}),"base")},"./src/choicesRestful.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ChoicesRestful",(function(){return p})),r.d(t,"ChoicesRestfull",(function(){return d}));var n,o=r("./src/base.ts"),i=r("./src/itemvalue.ts"),s=r("./src/jsonobject.ts"),a=r("./src/error.ts"),l=r("./src/settings.ts"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(){function e(){this.parser=new DOMParser}return e.prototype.assignValue=function(e,t,r){Array.isArray(e[t])?e[t].push(r):void 0!==e[t]?e[t]=[e[t]].concat(r):"object"==typeof r&&1===Object.keys(r).length&&Object.keys(r)[0]===t?e[t]=r[t]:e[t]=r},e.prototype.xml2Json=function(e,t){if(e.children&&e.children.length>0)for(var r=0;r<e.children.length;r++){var n=e.children[r],o={};this.xml2Json(n,o),this.assignValue(t,n.nodeName,o)}else this.assignValue(t,e.nodeName,e.textContent)},e.prototype.parseXmlString=function(e){var t=this.parser.parseFromString(e,"text/xml"),r={};return this.xml2Json(t,r),r},e}(),p=function(e){function t(){var t=e.call(this)||this;return t.lastObjHash="",t.isRunningValue=!1,t.processedUrl="",t.processedPath="",t.isUsingCacheFromUrl=void 0,t.error=null,t.createItemValue=function(e){return new i.ItemValue(e)},t}return u(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return l.settings.webserviceEncodeParameters},set:function(e){l.settings.webserviceEncodeParameters=e},enumerable:!1,configurable:!0}),t.clearCache=function(){t.itemsResult={},t.sendingSameRequests={}},t.addSameRequest=function(e){if(!e.isUsingCache)return!1;var r=e.objHash,n=t.sendingSameRequests[r];return n?(n.push(e),e.isRunningValue=!0,!0):(t.sendingSameRequests[e.objHash]=[],!1)},t.unregisterSameRequests=function(e,r){if(e.isUsingCache){var n=t.sendingSameRequests[e.objHash];if(delete t.sendingSameRequests[e.objHash],n)for(var o=0;o<n.length;o++)n[o].isRunningValue=!1,n[o].getResultCallback&&n[o].getResultCallback(r)}},t.getCachedItemsResult=function(e){var r=e.objHash,n=t.itemsResult[r];return!!n&&(e.getResultCallback&&e.getResultCallback(n),!0)},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner?this.owner.survey:null},t.prototype.run=function(e){if(void 0===e&&(e=null),this.url&&this.getResultCallback){if(this.processedText(e),!this.processedUrl)return this.doEmptyResultCallback({}),void(this.lastObjHash=this.objHash);this.lastObjHash!==this.objHash&&(this.lastObjHash=this.objHash,this.error=null,this.useChangedItemsResults()||t.addSameRequest(this)||this.sendRequest())}},Object.defineProperty(t.prototype,"isUsingCache",{get:function(){return!0===this.isUsingCacheFromUrl||!1!==this.isUsingCacheFromUrl&&l.settings.useCachingForChoicesRestful},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getIsRunning()},enumerable:!1,configurable:!0}),t.prototype.getIsRunning=function(){return this.isRunningValue},Object.defineProperty(t.prototype,"isWaitingForParameters",{get:function(){return this.url&&!this.processedUrl},enumerable:!1,configurable:!0}),t.prototype.useChangedItemsResults=function(){return t.getCachedItemsResult(this)},t.prototype.doEmptyResultCallback=function(e){var t=[];this.updateResultCallback&&(t=this.updateResultCallback(t,e)),this.getResultCallback(t)},t.prototype.processedText=function(e){var r=this.url;if(r&&(r=r.replace(t.cacheText,"").replace(t.noCacheText,"")),e){var n=e.processTextEx(r,!1,l.settings.webserviceEncodeParameters),o=e.processTextEx(this.path,!1,l.settings.webserviceEncodeParameters);n.hasAllValuesOnLastRun&&o.hasAllValuesOnLastRun?(this.processedUrl=n.text,this.processedPath=o.text):(this.processedUrl="",this.processedPath="")}else this.processedUrl=r,this.processedPath=this.path;this.onProcessedUrlCallback&&this.onProcessedUrlCallback(this.processedUrl,this.processedPath)},t.prototype.parseResponse=function(e){var t;if(e&&"function"==typeof e.indexOf&&0===e.indexOf("<"))t=(new c).parseXmlString(e);else try{t=JSON.parse(e)}catch(r){t=(e||"").split("\n").map((function(e){return e.trim(" ")})).filter((function(e){return!!e}))}return t},t.prototype.sendRequest=function(){var e=new XMLHttpRequest;e.open("GET",this.processedUrl),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var r=this,n=this.objHash;e.onload=function(){r.beforeLoadRequest(),200===e.status?r.onLoad(r.parseResponse(e.response),n):r.onError(e.statusText,e.responseText)};var o={request:e};t.onBeforeSendRequest&&t.onBeforeSendRequest(this,o),this.beforeSendRequest(),o.request.send()},t.prototype.getType=function(){return"choicesByUrl"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!(this.url||this.path||this.valueName||this.titleName||this.imageLinkName)},enumerable:!1,configurable:!0}),t.prototype.getCustomPropertiesNames=function(){for(var e=this.getCustomProperties(),t=new Array,r=0;r<e.length;r++)t.push(this.getCustomPropertyName(e[r].name));return t},t.prototype.getCustomPropertyName=function(e){return e+"Name"},t.prototype.getCustomProperties=function(){for(var e=s.Serializer.getProperties(this.itemValueType),t=[],r=0;r<e.length;r++)"value"!==e[r].name&&"text"!==e[r].name&&"visibleIf"!==e[r].name&&"enableIf"!==e[r].name&&t.push(e[r]);return t},t.prototype.setData=function(e){this.clear(),e.url&&(this.url=e.url),e.path&&(this.path=e.path),e.valueName&&(this.valueName=e.valueName),e.titleName&&(this.titleName=e.titleName),e.imageLinkName&&(this.imageLinkName=e.imageLinkName),void 0!==e.allowEmptyResponse&&(this.allowEmptyResponse=e.allowEmptyResponse),void 0!==e.attachOriginalItems&&(this.attachOriginalItems=e.attachOriginalItems);for(var t=this.getCustomPropertiesNames(),r=0;r<t.length;r++)e[t[r]]&&(this[t[r]]=e[t[r]])},t.prototype.getData=function(){if(this.isEmpty)return null;var e={};this.url&&(e.url=this.url),this.path&&(e.path=this.path),this.valueName&&(e.valueName=this.valueName),this.titleName&&(e.titleName=this.titleName),this.imageLinkName&&(e.imageLinkName=this.imageLinkName),this.allowEmptyResponse&&(e.allowEmptyResponse=this.allowEmptyResponse),this.attachOriginalItems&&(e.attachOriginalItems=this.attachOriginalItems);for(var t=this.getCustomPropertiesNames(),r=0;r<t.length;r++)this[t[r]]&&(e[t[r]]=this[t[r]]);return e},Object.defineProperty(t.prototype,"url",{get:function(){return this.getPropertyValue("url","")},set:function(e){this.setPropertyValue("url",e),this.isUsingCacheFromUrl=void 0,e&&(e.indexOf(t.cacheText)>-1?this.isUsingCacheFromUrl=!0:e.indexOf(t.noCacheText)>-1&&(this.isUsingCacheFromUrl=!1))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.getPropertyValue("path","")},set:function(e){this.setPropertyValue("path",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){this.setPropertyValue("valueName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleName",{get:function(){return this.getPropertyValue("titleName","")},set:function(e){this.setPropertyValue("titleName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageLinkName",{get:function(){return this.getPropertyValue("imageLinkName","")},set:function(e){this.setPropertyValue("imageLinkName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowEmptyResponse",{get:function(){return this.getPropertyValue("allowEmptyResponse")},set:function(e){this.setPropertyValue("allowEmptyResponse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attachOriginalItems",{get:function(){return this.getPropertyValue("attachOriginalItems")},set:function(e){this.setPropertyValue("attachOriginalItems",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemValueType",{get:function(){if(!this.owner)return"itemvalue";var e=s.Serializer.findProperty(this.owner.getType(),"choices");return e?"itemvalue[]"==e.type?"itemvalue":e.type:"itemvalue"},enumerable:!1,configurable:!0}),t.prototype.clear=function(){this.url="",this.path="",this.valueName="",this.titleName="",this.imageLinkName="";for(var e=this.getCustomPropertiesNames(),t=0;t<e.length;t++)this[e[t]]&&(this[e[t]]="")},t.prototype.beforeSendRequest=function(){this.isRunningValue=!0,this.beforeSendRequestCallback&&this.beforeSendRequestCallback()},t.prototype.beforeLoadRequest=function(){this.isRunningValue=!1},t.prototype.onLoad=function(e,r){void 0===r&&(r=null),r||(r=this.objHash);var n=new Array,o=this.getResultAfterPath(e);if(o&&o.length)for(var i=0;i<o.length;i++){var s=o[i];if(s){var l=this.getItemValueCallback?this.getItemValueCallback(s):this.getValue(s),u=this.createItemValue(l);this.setTitle(u,s),this.setCustomProperties(u,s),this.attachOriginalItems&&(u.originalItem=s);var c=this.getImageLink(s);c&&(u.imageLink=c),n.push(u)}}else this.allowEmptyResponse||(this.error=new a.WebRequestEmptyError(null,this.owner));this.updateResultCallback&&(n=this.updateResultCallback(n,e)),this.isUsingCache&&(t.itemsResult[r]=n),this.callResultCallback(n,r),t.unregisterSameRequests(this,n)},t.prototype.callResultCallback=function(e,t){t==this.objHash&&this.getResultCallback(e)},t.prototype.setCustomProperties=function(e,t){for(var r=this.getCustomProperties(),n=0;n<r.length;n++){var o=r[n],i=this.getValueCore(t,this.getPropertyBinding(o.name));this.isValueEmpty(i)||(e[o.name]=i)}},t.prototype.getPropertyBinding=function(e){return this[this.getCustomPropertyName(e)]?this[this.getCustomPropertyName(e)]:this[e]?this[e]:e},t.prototype.onError=function(e,r){this.error=new a.WebRequestError(e,r,this.owner),this.doEmptyResultCallback(r),t.unregisterSameRequests(this,[])},t.prototype.getResultAfterPath=function(e){if(!e)return e;if(!this.processedPath)return e;for(var t=this.getPathes(),r=0;r<t.length;r++)if(!(e=e[t[r]]))return null;return e},t.prototype.getPathes=function(){var e=[];return 0==(e=this.processedPath.indexOf(";")>-1?this.path.split(";"):this.processedPath.split(",")).length&&e.push(this.processedPath),e},t.prototype.getValue=function(e){return e?this.valueName?this.getValueCore(e,this.valueName):e instanceof Object?Object.keys(e).length<1?null:e[Object.keys(e)[0]]:e:null},t.prototype.setTitle=function(e,t){var r=this.titleName?this.titleName:"title",n=this.getValueCore(t,r);n&&("string"==typeof n?e.text=n:e.locText.setJson(n))},t.prototype.getImageLink=function(e){var t=this.imageLinkName?this.imageLinkName:"imageLink";return this.getValueCore(e,t)},t.prototype.getValueCore=function(e,t){if(!e)return null;if(t.indexOf(".")<0)return e[t];for(var r=t.split("."),n=0;n<r.length;n++)if(!(e=e[r[n]]))return null;return e},Object.defineProperty(t.prototype,"objHash",{get:function(){return this.processedUrl+";"+this.processedPath+";"+this.valueName+";"+this.titleName+";"+this.imageLinkName},enumerable:!1,configurable:!0}),t.cacheText="{CACHE}",t.noCacheText="{NOCACHE}",t.itemsResult={},t.sendingSameRequests={},t}(o.Base),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return p.EncodeParameters},set:function(e){p.EncodeParameters=e},enumerable:!1,configurable:!0}),t.clearCache=function(){p.clearCache()},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return p.onBeforeSendRequest},set:function(e){p.onBeforeSendRequest=e},enumerable:!1,configurable:!0}),t}(p);s.Serializer.addClass("choicesByUrl",["url","path","valueName","titleName",{name:"imageLinkName",visibleIf:function(e){return!!e&&!!e.owner&&"imagepicker"==e.owner.getType()}},{name:"allowEmptyResponse:boolean"},{name:"attachOriginalItems:boolean",visible:!1}],(function(){return new p}))},"./src/conditionProcessValue.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ProcessValue",(function(){return i}));var n=r("./src/helpers.ts"),o="@survey",i=function(){function e(){this.values=null,this.properties=null}return e.prototype.getFirstName=function(e,t){if(void 0===t&&(t=null),!e)return e;var r="";if(t&&(r=this.getFirstPropertyName(e,t)))return r;for(var n=0;n<e.length;n++){var o=e[n];if("."==o||"["==o)break;r+=o}return r},e.prototype.hasValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).hasValue},e.prototype.getValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).value},e.prototype.setValue=function(e,t,r){if(t){var n=this.getNonNestedObject(e,t,!0);n&&(e=n.value,t=n.text,e&&t&&(e[t]=r))}},e.prototype.getValueInfo=function(e){if(e.path)return e.value=this.getValueFromPath(e.path,this.values),e.hasValue=null!==e.value&&!n.Helpers.isValueEmpty(e.value),void(!e.hasValue&&e.path.length>1&&"length"==e.path[e.path.length-1]&&(e.hasValue=!0,e.value=0));var t=this.getValueCore(e.name,this.values);e.value=t.value,e.hasValue=t.hasValue,e.path=t.hasValue?t.path:null},e.prototype.getValueFromPath=function(e,t){if(2===e.length&&e[0]===o)return this.getValueFromSurvey(e[1]);for(var r=0;t&&r<e.length;){var i=e[r];if(n.Helpers.isNumber(i)&&Array.isArray(t)&&i>=t.length)return null;t=t[i],r++}return t},e.prototype.getValueCore=function(e,t){var r=this.getQuestionDirectly(e);if(r)return{hasValue:!0,value:r.value,path:[e]};var n=this.getValueFromValues(e,t);if(e&&!n.hasValue){var i=this.getValueFromSurvey(e);void 0!==i&&(n.hasValue=!0,n.value=i,n.path=[o,e])}return n},e.prototype.getQuestionDirectly=function(e){if(this.properties&&this.properties.survey)return this.properties.survey.getQuestionByValueName(e)},e.prototype.getValueFromSurvey=function(e){if(this.properties&&this.properties.survey)return this.properties.survey.getBuiltInVariableValue(e.toLocaleLowerCase())},e.prototype.getValueFromValues=function(e,t){var r={hasValue:!1,value:null,path:null},o=t;if(!o&&0!==o&&!1!==o)return r;e&&e.lastIndexOf(".length")>-1&&e.lastIndexOf(".length")===e.length-7&&(r.value=0,r.hasValue=!0);var i=this.getNonNestedObject(o,e,!1);return i?(r.path=i.path,r.value=i.text?this.getObjectValue(i.value,i.text):i.value,r.hasValue=!n.Helpers.isValueEmpty(r.value),r):r},e.prototype.getNonNestedObject=function(e,t,r){for(var o=this.getFirstPropertyName(t,e,r),i=o?[o]:null;t!=o&&e;){if("["==t[0]){var s=this.getObjInArray(e,t);if(!s)return null;e=s.value,t=s.text,i.push(s.index)}else{if(!o&&t==this.getFirstName(t))return{value:e,text:t,path:i};if(e=this.getObjectValue(e,o),n.Helpers.isValueEmpty(e)&&!r)return null;t=t.substring(o.length)}t&&"."==t[0]&&(t=t.substring(1)),(o=this.getFirstPropertyName(t,e,r))&&i.push(o)}return{value:e,text:t,path:i}},e.prototype.getObjInArray=function(e,t){if(!Array.isArray(e))return null;for(var r=1,n="";r<t.length&&"]"!=t[r];)n+=t[r],r++;return t=r<t.length?t.substring(r+1):"",(r=this.getIntValue(n))<0||r>=e.length?null:{value:e[r],text:t,index:r}},e.prototype.getFirstPropertyName=function(e,t,r){if(void 0===r&&(r=!1),!e)return e;if(t||(t={}),t.hasOwnProperty(e))return e;var n=e.toLowerCase(),o=n[0],i=o.toUpperCase();for(var s in t){var a=s[0];if(a===i||a===o){var l=s.toLowerCase();if(l==n)return s;if(n.length<=l.length)continue;var u=n[l.length];if("."!=u&&"["!=u)continue;if(l==n.substring(0,l.length))return s}}if(r&&"["!==e[0]){var c=e.indexOf(".");return c>-1&&(t[e=e.substring(0,c)]={}),e}return""},e.prototype.getObjectValue=function(e,t){return t?e[t]:null},e.prototype.getIntValue=function(e){return"0"==e||(0|e)>0&&e%1==0?Number(e):-1},e}()},"./src/conditions.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ExpressionExecutor",(function(){return a})),r.d(t,"ExpressionRunnerBase",(function(){return l})),r.d(t,"ConditionRunner",(function(){return u})),r.d(t,"ExpressionRunner",(function(){return c}));var n,o=r("./src/conditionProcessValue.ts"),i=r("./src/conditionsParser.ts"),s=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(){function e(e){this.processValue=new o.ProcessValue,this.parser=new i.ConditionsParser,this.isAsyncValue=!1,this.hasFunctionValue=!1,this.setExpression(e)}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),e.prototype.setExpression=function(e){this.expression!==e&&(this.expressionValue=e,this.operand=this.parser.parseExpression(e),this.hasFunctionValue=!!this.canRun()&&this.operand.hasFunction(),this.isAsyncValue=!!this.hasFunction()&&this.operand.hasAsyncFunction())},e.prototype.getVariables=function(){if(!this.operand)return[];var e=[];return this.operand.setVariables(e),e},e.prototype.hasFunction=function(){return this.hasFunctionValue},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.isAsyncValue},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return!!this.operand},e.prototype.run=function(e,t){var r=this;if(void 0===t&&(t=null),!this.operand)return null;if(this.processValue.values=e,this.processValue.properties=t,!this.isAsync)return this.runValues();this.asyncFuncList=[],this.operand.addToAsyncList(this.asyncFuncList);for(var n=0;n<this.asyncFuncList.length;n++)this.asyncFuncList[n].onAsyncReady=function(){r.doAsyncFunctionReady()};for(n=0;n<this.asyncFuncList.length;n++)this.asyncFuncList[n].evaluateAsync(this.processValue);return!1},e.prototype.doAsyncFunctionReady=function(){for(var e=0;e<this.asyncFuncList.length;e++)if(!this.asyncFuncList[e].isReady)return;this.runValues()},e.prototype.runValues=function(){var e=this.operand.evaluate(this.processValue);return this.onComplete&&this.onComplete(e),e},e.createExpressionExecutor=function(t){return new e(t)},e}(),l=function(){function e(e){this.expression=e}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionExecutor?this.expressionExecutor.expression:""},set:function(e){var t=this;this.expressionExecutor&&e===this.expression||(this.expressionExecutor=a.createExpressionExecutor(e),this.expressionExecutor.onComplete=function(e){t.doOnComplete(e)})},enumerable:!1,configurable:!0}),e.prototype.getVariables=function(){return this.expressionExecutor.getVariables()},e.prototype.hasFunction=function(){return this.expressionExecutor.hasFunction()},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.expressionExecutor.isAsync},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return this.expressionExecutor.canRun()},e.prototype.runCore=function(e,t){return void 0===t&&(t=null),this.expressionExecutor.run(e,t)},e.prototype.doOnComplete=function(e){},e}(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),1==this.runCore(e,t)},t.prototype.doOnComplete=function(e){this.onRunComplete&&this.onRunComplete(1==e)},t}(l),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),this.runCore(e,t)},t.prototype.doOnComplete=function(e){this.onRunComplete&&this.onRunComplete(e)},t}(l)},"./src/conditionsParser.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ConditionsParserError",(function(){return o})),r.d(t,"ConditionsParser",(function(){return i}));var n=r("./src/expressions/expressionParser.ts"),o=function(e,t){this.at=e,this.code=t},i=function(){function e(){}return e.prototype.patchExpression=function(e){return e.replace(/=>/g,">=").replace(/=</g,"<=").replace(/<>/g,"!=").replace(/equals/g,"equal ").replace(/notequals/g,"notequal ")},e.prototype.createCondition=function(e){return this.parseExpression(e)},e.prototype.parseExpression=function(t){try{var r=e.parserCache[t];return void 0===r&&((r=Object(n.parse)(this.patchExpression(t))).hasAsyncFunction()||(e.parserCache[t]=r)),r}catch(e){e instanceof n.SyntaxError&&(this.conditionError=new o(e.location.start.offset,e.message))}},Object.defineProperty(e.prototype,"error",{get:function(){return this.conditionError},enumerable:!1,configurable:!0}),e.parserCache={},e}()},"./src/defaultCss/cssmodern.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"modernCss",(function(){return o}));var n=r("./src/defaultCss/defaultV2Css.ts"),o={root:"sv-root-modern",timerRoot:"sv-body__timer",container:"sv-container-modern",header:"sv-title sv-container-modern__title",headerClose:"sv-container-modern__close",bodyContainer:"sv-components-row",body:"sv-components-column sv-components-column--expandable sv-body",bodyEmpty:"sv-body sv-body--empty",footer:"sv-footer sv-body__footer sv-clearfix",title:"",description:"",logo:"sv-logo",logoImage:"sv-logo__image",headerText:"sv-header__text",navigationButton:"sv-btn sv-btn--navigation",completedPage:"sv-completedpage",navigation:{complete:"sv-footer__complete-btn",prev:"sv-footer__prev-btn",next:"sv-footer__next-btn",start:"sv-footer__start-btn",preview:"sv-footer__preview-btn",edit:"sv-footer__edit-btn"},panel:{title:"sv-title sv-panel__title",titleExpandable:"sv-panel__title--expandable",titleExpanded:"sv-panel__title--expanded",titleCollapsed:"sv-panel__title--collapsed",titleOnError:"sv-panel__title--error",description:"sv-description sv-panel__description",container:"sv-panel sv-row__panel",content:"sv-panel__content",icon:"sv-panel__icon",iconExpanded:"sv-panel__icon--expanded",footer:"sv-panel__footer",requiredText:"sv-panel__required-text",number:"sv-question__num"},paneldynamic:{root:"sv-paneldynamic",navigation:"sv-paneldynamic__navigation",title:"sv-title sv-question__title",button:"sv-btn",buttonRemove:"sv-paneldynamic__remove-btn",buttonRemoveRight:"sv-paneldynamic__remove-btn--right",buttonAdd:"sv-paneldynamic__add-btn",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",separator:"sv-paneldynamic__separator",panelWrapper:"sv-paneldynamic__panel-wrapper",panelWrapperInRow:"sv-paneldynamic__panel-wrapper--in-row",progressBtnIcon:"icon-progressbutton",footer:""},progress:"sv-progress sv-body__progress",progressBar:"sv-progress__bar",progressText:"sv-progress__text",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv-page sv-body__page",title:"sv-title sv-page__title",description:"sv-description sv-page__description"},pageTitle:"sv-title sv-page__title",pageDescription:"sv-description sv-page__description",row:"sv-row sv-clearfix",question:{mainRoot:"sv-question sv-row__question",flowRoot:"sv-question sv-row__question sv-row__question--flow",asCell:"sv-table__cell",header:"sv-question__header",headerLeft:"sv-question__header--location--left",headerTop:"sv-question__header--location--top",headerBottom:"sv-question__header--location--bottom",content:"sv-question__content",contentLeft:"sv-question__content--left",titleLeftRoot:"",answered:"sv-question--answered",titleOnAnswer:"sv-question__title--answer",titleOnError:"sv-question__title--error",title:"sv-title sv-question__title",titleExpandable:"sv-question__title--expandable",titleExpanded:"sv-question__title--expanded",titleCollapsed:"sv-question__title--collapsed",icon:"sv-question__icon",iconExpanded:"sv-question__icon--expanded",requiredText:"sv-question__required-text",number:"sv-question__num",description:"sv-description sv-question__description",descriptionUnderInput:"sv-description sv-question__description",comment:"sv-comment",required:"sv-question--required",titleRequired:"sv-question__title--required",indent:20,footer:"sv-question__footer",formGroup:"sv-question__form-group",hasError:"",disabled:"sv-question--disabled"},image:{root:"sv-image",image:"sv_image_image"},error:{root:"sv-question__erbox",icon:"",item:"",locationTop:"sv-question__erbox--location--top",locationBottom:"sv-question__erbox--location--bottom"},checkbox:{root:"sv-selectbase",item:"sv-item sv-checkbox sv-selectbase__item",itemSelectAll:"sv-checkbox--selectall",itemNone:"sv-checkbox--none",itemDisabled:"sv-item--disabled sv-checkbox--disabled",itemChecked:"sv-checkbox--checked",itemHover:"sv-checkbox--allowhover",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-checkbox__svg",itemSvgIconId:"#icon-moderncheck",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-checkbox__decorator",other:"sv-comment sv-question__other",column:"sv-selectbase__column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag"},radiogroup:{root:"sv-selectbase",item:"sv-item sv-radio sv-selectbase__item",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemDisabled:"sv-item--disabled sv-radio--disabled",itemChecked:"sv-radio--checked",itemHover:"sv-radio--allowhover",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-radio__svg",itemSvgIconId:"#icon-modernradio",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-radio__decorator",other:"sv-comment sv-question__other",clearButton:"sv-btn sv-selectbase__clear-btn",column:"sv-selectbase__column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemSelected:"sv-button-group__item--selected",itemHover:"sv-button-group__item--hover",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},boolean:{root:"sv_qbln",rootRadio:"sv_qbln",small:"sv-row__question--small",item:"sv-boolean sv-item",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-item--disabled sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qbln",checkboxItem:"sv-boolean sv-item",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyhidden",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator ",checkboxItemDecorator:"sv-item__svg sv-boolean__svg",indeterminatePath:"sv-boolean__indeterminate-path",svgIconCheckedId:"#icon-modernbooleancheckchecked",svgIconUncheckedId:"#icon-modernbooleancheckunchecked",svgIconIndId:"#icon-modernbooleancheckind"},text:{root:"sv-text",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter",onError:"sv-text--error"},multipletext:{root:"sv-multipletext",item:"sv-multipletext__item",itemLabel:"sv-multipletext__item-label",itemTitle:"sv-multipletext__item-title",row:"sv-multipletext__row",cell:"sv-multipletext__cell"},dropdown:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",control:"sv-dropdown",selectWrapper:"",other:"sv-comment sv-question__other",onError:"sv-dropdown--error",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",filterStringInput:"sv-dropdown__filter-string-input",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",hintPrefix:"sv-dropdown__hint-prefix",hintSuffix:"sv-dropdown__hint-suffix"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",selectWrapper:"sv_select_wrapper sv-tagbox_wrapper",other:"sv-input sv-comment sv-selectbase__other",cleanButton:"sv-tagbox_clean-button sv-dropdown_clean-button",cleanButtonSvg:"sv-tagbox_clean-button-svg sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv-tagbox__item_clean-button",cleanItemButtonSvg:"sv-tagbox__item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv-input sv-tagbox sv-dropdown",controlValue:"sv-tagbox__value sv-dropdown__value",controlEmpty:"sv-dropdown--empty sv-tagbox--empty",placeholderInput:"sv-tagbox__placeholder",filterStringInput:"sv-tagbox__filter-string-input sv-dropdown__filter-string-input"},imagepicker:{root:"sv-selectbase sv-imagepicker",column:"sv-selectbase__column",item:"sv-imagepicker__item",itemInline:"sv-imagepicker__item--inline",itemChecked:"sv-imagepicker__item--checked",itemDisabled:"sv-imagepicker__item--disabled",itemHover:"sv-imagepicker__item--allowhover",label:"sv-imagepicker__label",itemControl:"sv-imagepicker__control sv-visuallyhidden",image:"sv-imagepicker__image",itemText:"sv-imagepicker__text",clearButton:"sv-btn",other:"sv-comment sv-question__other"},matrix:{tableWrapper:"sv-matrix",root:"sv-table sv-matrix-root",rowError:"sv-matrix__row--error",cell:"sv-table__cell sv-matrix__cell",headerCell:"sv-table__cell sv-table__cell--header",label:"sv-item sv-radio sv-matrix__label",itemValue:"sv-visuallyhidden sv-item__control sv-radio__control",itemChecked:"sv-radio--checked",itemDisabled:"sv-item--disabled sv-radio--disabled",itemHover:"sv-radio--allowhover",materialDecorator:"sv-item__decorator sv-radio__decorator",itemDecorator:"sv-item__svg sv-radio__svg",cellText:"sv-matrix__text",cellTextSelected:"sv-matrix__text--checked",cellTextDisabled:"sv-matrix__text--disabled",cellResponsiveTitle:"sv-hidden",itemSvgIconId:"#icon-modernradio"},matrixdropdown:{root:"sv-table sv-matrixdropdown",cell:"sv-table__cell",headerCell:"sv-table__cell sv-table__cell--header",row:"sv-table__row",rowAdditional:"sv-table__row--additional",detailRow:"sv-table__row--detail",detailRowText:"sv-table__cell--detail-rowtext",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions"},matrixdynamic:{root:"sv-table sv-matrixdynamic",cell:"sv-table__cell",headerCell:"sv-table__cell sv-table__cell--header",button:"sv-btn",buttonAdd:"sv-matrixdynamic__add-btn",buttonRemove:"sv-matrixdynamic__remove-btn",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",row:"sv-table__row",detailRow:"sv-table__row--detail",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions",emptyRowsSection:"sv-table__empty--rows--section",emptyRowsText:"sv-table__empty--rows--text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod"},rating:{root:"sv-rating",item:"sv-rating__item",selected:"sv-rating__item--selected",minText:"sv-rating__min-text",itemText:"sv-rating__item-text",maxText:"sv-rating__max-text",itemDisabled:"sv-rating--disabled",filterStringInput:"sv-dropdown__filter-string-input",control:"sv-dropdown",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",itemSmiley:"sv-rating__item-smiley",itemStar:"sv-rating__item-star",itemSmileySelected:"sv-rating__item-smiley--selected",itemStarSelected:"sv-rating__item-star--selected"},comment:{root:"sv-comment",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv-file",other:"sv-comment sv-question__other",placeholderInput:"sv-visuallyhidden",preview:"sv-file__preview",fileSignBottom:"sv-file__sign",fileDecorator:"sv-file__decorator",fileInput:"sv-visuallyhidden",noFileChosen:"sv-description sv-file__no-file-chosen",chooseFile:"sv-btn sv-file__choose-btn",controlDisabled:"sv-file__choose-btn--disabled",removeButton:"sv-hidden",removeButtonBottom:"sv-btn sv-file__clean-btn",removeFile:"sv-hidden",removeFileSvg:"sv-file__remove-svg",removeFileSvgIconId:"icon-removefile",wrapper:"sv-file__wrapper",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv-signaturepad sjs_sp_container",small:"sv-row__question--small",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}},variables:{themeMark:"--sv-modern-mark"}};n.surveyCss.modern=o},"./src/defaultCss/cssstandard.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"defaultStandardCss",(function(){return o}));var n=r("./src/defaultCss/defaultV2Css.ts"),o={root:"sv_main sv_default_css",container:"sv_container",header:"sv_header",bodyContainer:"sv-components-row",body:"sv-components-column sv-components-column--expandable sv_body",bodyEmpty:"sv_body sv_body_empty",footer:"sv_nav",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"sv_nav_btn",completedPage:"sv_completed_page",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn",preview:"sv_preview_btn",edit:"sv_edit_btn"},progress:"sv_progress",progressBar:"sv_progress_bar",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv_p_root",title:"sv_page_title",description:""},pageTitle:"sv_page_title",pageDescription:"",row:"sv_row",question:{mainRoot:"sv_q sv_qstn",flowRoot:"sv_q_flow sv_qstn",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",requiredText:"sv_q_required_text",title:"sv_q_title",titleExpandable:"sv_q_title_expandable",titleExpanded:"sv_q_title_expanded",titleCollapsed:"sv_q_title_collapsed",number:"sv_q_num",description:"sv_q_description",comment:"",required:"",titleRequired:"",hasError:"",indent:20,footer:"sv_q_footer",formGroup:"form-group",asCell:"sv_matrix_cell",icon:"sv_question_icon",iconExpanded:"sv_expanded",disabled:"sv_q--disabled"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleExpanded:"sv_p_title_expanded",titleCollapsed:"sv_p_title_collapsed",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"sv_q_erbox",icon:"",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qcbc sv_qbln",rootRadio:"sv_qcbc sv_qbln",item:"sv-boolean",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qcbc sv_qbln",checkboxItem:"sv-boolean",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyvisible",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator",checkboxItemDecorator:"sv-item__svg sv-boolean__svg"},checkbox:{root:"sv_qcbc sv_qcbx",item:"sv_q_checkbox",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemChecked:"checked",itemInline:"sv_q_checkbox_inline",label:"sv_q_checkbox_label",labelChecked:"",itemControl:"sv_q_checkbox_control_item",itemDecorator:"sv-hidden",controlLabel:"sv_q_checkbox_control_label",other:"sv_q_other sv_q_checkbox_other",column:"sv_q_select_column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag"},comment:{remainingCharacterCounter:"sv-remaining-character-counter"},dropdown:{root:"",popup:"sv-dropdown-popup",control:"sv_q_dropdown_control",controlInputFieldComponent:"sv_q_dropdown_control__input-field-component",selectWrapper:"sv_select_wrapper",other:"sv_q_dd_other",cleanButton:"sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv_q_dropdown__value",filterStringInput:"sv_q_dropdown__filter-string-input",hintPrefix:"sv_q_dropdown__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image",noImage:"sv-image__no-image",noImageSvgIconId:"icon-no-image"},matrix:{root:"sv_q_matrix",label:"sv_q_m_label",itemChecked:"checked",itemDecorator:"sv-hidden",cell:"sv_q_m_cell",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected",cellLabel:"sv_q_m_cell_label",cellResponsiveTitle:"sv-hidden"},matrixdropdown:{root:"sv_q_matrix_dropdown",cell:"sv_matrix_cell",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",rowAdditional:"sv-matrix__row--additional",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions"},matrixdynamic:{root:"sv_q_matrix_dynamic",button:"sv_matrix_dynamic_button",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",cell:"sv_matrix_cell",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions",emptyRowsSection:"sv_matrix_empty_rows_section",emptyRowsText:"sv_matrix_empty_rows_text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod"},paneldynamic:{root:"sv_panel_dynamic",title:"sv_p_title",header:"sv-paneldynamic__header sv_header",headerTab:"sv-paneldynamic__header-tab",button:"",buttonAdd:"sv-paneldynamic__add-btn",buttonRemove:"sv_p_remove_btn",buttonRemoveRight:"sv_p_remove_btn_right",buttonPrev:"sv-paneldynamic__prev-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",panelWrapper:"sv_p_wrapper",panelWrapperInRow:"sv_p_wrapper_in_row",footer:"",progressBtnIcon:"icon-progressbutton"},multipletext:{root:"sv_q_mt",itemTitle:"sv_q_mt_title",item:"sv_q_mt_item",row:"sv_q_mt_row",itemLabel:"sv_q_mt_label",itemValue:"sv_q_mt_item_value sv_q_text_root"},radiogroup:{root:"sv_qcbc",item:"sv_q_radiogroup",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",itemDecorator:"sv-hidden",label:"sv_q_radiogroup_label",labelChecked:"",itemControl:"sv_q_radiogroup_control_item",controlLabel:"",other:"sv_q_other sv_q_radiogroup_other",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemInline:"sv_q_imagepicker_inline",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column",itemNoImage:"sv_q_imgsel__no-image",itemNoImageSvgIcon:"sv_q_imgsel__no-image-svg",itemNoImageSvgIconId:"icon-no-image"},rating:{root:"sv_q_rating",item:"sv_q_rating_item",itemFixedSize:"sv_q_rating_item_fixed",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text",itemStar:"sv_q_rating__item-star",itemStarSelected:"sv_q_rating__item-star--selected",itemSmiley:"sv_q_rating__item-smiley",itemSmileySelected:"sv_q_rating__item-smiley--selected"},text:{root:"sv_q_text_root",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv_q_file",placeholderInput:"sv-visuallyhidden",preview:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv-visuallyhidden",removeFile:"sv_q_file_remove",fileDecorator:"sv-file__decorator",fileSign:"sv_q_file_sign",chooseFile:"sv_q_file_choose_button",noFileChosen:"sv_q_file_placeholder",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv_q_signaturepad sjs_sp_container",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}},variables:{themeMark:"--sv-default-mark"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv_q_row__question--small",selectWrapper:"sv_select_wrapper sv_q_tagbox_wrapper",other:"sv_q_input sv_q_comment sv_q_selectbase__other",cleanButton:"sv_q_tagbox_clean-button sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_tagbox_clean-button-svg sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv_q_tagbox-item_clean-button",cleanItemButtonSvg:"sv_q_tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv_q_input sv_q_tagbox sv_q_dropdown_control",controlValue:"sv_q_tagbox__value sv_q_dropdown__value",controlEmpty:"sv_q_dropdown--empty sv_q_tagbox--empty",placeholderInput:"sv_q_tagbox__placeholder",filterStringInput:"sv_q_tagbox__filter-string-input sv_q_dropdown__filter-string-input",hint:"sv_q_tagbox__hint",hintPrefix:"sv_q_dropdown__hint-prefix sv_q_tagbox__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix sv_q_tagbox__hint-suffix",hintSuffixWrapper:"sv_q_tagbox__hint-suffix-wrapper"}};n.surveyCss.default=o,n.surveyCss.orange=o,n.surveyCss.darkblue=o,n.surveyCss.darkrose=o,n.surveyCss.stone=o,n.surveyCss.winter=o,n.surveyCss.winterstone=o},"./src/defaultCss/defaultV2Css.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"surveyCss",(function(){return n})),r.d(t,"defaultV2Css",(function(){return o})),r.d(t,"defaultV2ThemeName",(function(){return i}));var n={currentType:"",getCss:function(){var e=this.currentType?this[this.currentType]:o;return e||(e=o),e},getAvailableThemes:function(){return Object.keys(this).filter((function(e){return-1===["currentType","getCss","getAvailableThemes"].indexOf(e)}))}},o={root:"sd-root-modern",rootMobile:"sd-root-modern--mobile",rootReadOnly:"sd-root--readonly",container:"sd-container-modern",header:"sd-title sd-container-modern__title",bodyContainer:"sv-components-row",body:"sv-components-column sv-components-column--expandable sd-body",bodyWithTimer:"sd-body--with-timer",clockTimerRoot:"sd-timer",clockTimerRootTop:"sd-timer--top",clockTimerRootBottom:"sd-timer--bottom",clockTimerProgress:"sd-timer__progress",clockTimerProgressAnimation:"sd-timer__progress--animation",clockTimerTextContainer:"sd-timer__text-container",clockTimerMinorText:"sd-timer__text--minor",clockTimerMajorText:"sd-timer__text--major",bodyEmpty:"sd-body sd-body--empty",footer:"sd-footer sd-body__navigation sd-clearfix",title:"sd-title",description:"sd-description",logo:"sd-logo",logoImage:"sd-logo__image",headerText:"sd-header__text",headerClose:"sd-hidden",navigationButton:"",bodyNavigationButton:"sd-btn",completedPage:"sd-completedpage",timerRoot:"sd-body__timer",navigation:{complete:"sd-btn--action sd-navigation__complete-btn",prev:"sd-navigation__prev-btn",next:"sd-navigation__next-btn",start:"sd-navigation__start-btn",preview:"sd-navigation__preview-btn",edit:""},panel:{asPage:"sd-panel--as-page",number:"sd-element__num",title:"sd-title sd-element__title sd-panel__title",titleExpandable:"sd-element__title--expandable",titleNumInline:"sd-element__title--num-inline",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleOnExpand:"sd-panel__title--expanded",titleOnError:"sd-panel__title--error",titleBar:"sd-action-title-bar",description:"sd-description sd-panel__description",container:"sd-element sd-element--complex sd-panel sd-row__panel",withFrame:"sd-element--with-frame",content:"sd-panel__content",icon:"sd-panel__icon",iconExpanded:"sd-panel__icon--expanded",footer:"sd-panel__footer",requiredText:"sd-panel__required-text",header:"sd-panel__header sd-element__header sd-element__header--location-top",collapsed:"sd-element--collapsed",expanded:"sd-element--expanded",nested:"sd-element--nested",invisible:"sd-element--invisible",navigationButton:"",compact:"sd-element--with-frame sd-element--compact"},paneldynamic:{mainRoot:"sd-element sd-question sd-question--paneldynamic sd-element--complex sd-question--complex sd-row__question",empty:"sd-question--empty",root:"sd-paneldynamic",navigation:"sd-paneldynamic__navigation",title:"sd-title sd-element__title sd-question__title",header:"sd-paneldynamic__header sd-element__header",headerTab:"sd-paneldynamic__header-tab",button:"sd-action sd-paneldynamic__btn",buttonRemove:"sd-action--negative sd-paneldynamic__remove-btn",buttonAdd:"sd-paneldynamic__add-btn",buttonPrev:"sd-paneldynamic__prev-btn sd-action--icon sd-action",buttonPrevDisabled:"sd-action--disabled",buttonNextDisabled:"sd-action--disabled",buttonNext:"sd-paneldynamic__next-btn sd-action--icon sd-action",progressContainer:"sd-paneldynamic__progress-container",progress:"sd-progress",progressBar:"sd-progress__bar",progressText:"sd-paneldynamic__progress-text",separator:"sd-paneldynamic__separator",panelWrapper:"sd-paneldynamic__panel-wrapper",footer:"sd-paneldynamic__footer",panelFooter:"sd-paneldynamic__panel-footer",footerButtonsContainer:"sd-paneldynamic__buttons-container",panelWrapperInRow:"sd-paneldynamic__panel-wrapper--in-row",progressBtnIcon:"icon-progressbuttonv2",noEntriesPlaceholder:"sd-paneldynamic__placeholder sd-question__placeholder",compact:"sd-element--with-frame sd-element--compact"},progress:"sd-progress sd-body__progress",progressTop:"sd-body__progress--top",progressBottom:"sd-body__progress--bottom",progressBar:"sd-progress__bar",progressText:"sd-progress__text",progressButtonsContainerCenter:"sd-progress-buttons__container-center",progressButtonsContainer:"sd-progress-buttons__container",progressButtonsImageButtonLeft:"sd-progress-buttons__image-button-left",progressButtonsImageButtonRight:"sd-progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sd-progress-buttons__image-button--hidden",progressButtonsListContainer:"sd-progress-buttons__list-container",progressButtonsList:"sd-progress-buttons__list",progressButtonsListElementPassed:"sd-progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sd-progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sd-progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sd-progress-buttons__page-title",progressButtonsPageDescription:"sd-progress-buttons__page-description",progressTextInBar:"sd-hidden",page:{root:"sd-page sd-body__page",emptyHeaderRoot:"sd-page__empty-header",title:"sd-title sd-page__title",description:"sd-description sd-page__description"},pageTitle:"sd-title sd-page__title",pageDescription:"sd-description sd-page__description",row:"sd-row sd-clearfix",rowMultiple:"sd-row--multiple",rowCompact:"sd-row--compact",pageRow:"sd-page__row",question:{mainRoot:"sd-element sd-question sd-row__question",flowRoot:"sd-element sd-question sd-row__question sd-row__question--flow",withFrame:"sd-element--with-frame",asCell:"sd-table__cell",answered:"sd-question--answered",header:"sd-question__header sd-element__header",headerLeft:"sd-question__header--location--left",headerTop:"sd-question__header--location-top sd-element__header--location-top",headerBottom:"sd-question__header--location--bottom",content:"sd-question__content",contentLeft:"sd-question__content--left",titleNumInline:"sd-element__title--num-inline",titleLeftRoot:"sd-question--left",titleOnAnswer:"sd-question__title--answer",titleOnError:"sd-question__title--error",title:"sd-title sd-element__title sd-question__title",titleExpandable:"sd-element__title--expandable",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleBar:"sd-action-title-bar",requiredText:"sd-question__required-text",number:"sd-element__num",description:"sd-description sd-question__description",descriptionUnderInput:"sd-description sd-question__description sd-question__description--under-input",comment:"sd-input sd-comment",other:"sd-input sd-comment",required:"sd-question--required",titleRequired:"sd-question__title--required",indent:20,footer:"sd-question__footer",commentArea:"sd-question__comment-area",formGroup:"sd-question__form-group",hasError:"sd-question--error",collapsed:"sd-element--collapsed",expanded:"sd-element--expanded",nested:"sd-element--nested",invisible:"sd-element--invisible",composite:"sd-element--complex",disabled:"sd-question--disabled"},image:{mainRoot:"sd-question sd-question--image",root:"sd-image",image:"sd-image__image",adaptive:"sd-image__image--adaptive",noImage:"sd-image__no-image",noImageSvgIconId:"icon-no-image",withFrame:""},html:{mainRoot:"sd-question sd-row__question sd-question--html",root:"sd-html",withFrame:""},error:{root:"sd-question__erbox",icon:"",item:"",tooltip:"sd-question__erbox--tooltip",outsideQuestion:"sd-question__erbox--outside-question",aboveQuestion:"sd-question__erbox--above-question",belowQuestion:"sd-question__erbox--below-question",locationTop:"sd-question__erbox--location--top",locationBottom:"sd-question__erbox--location--bottom"},checkbox:{root:"sd-selectbase",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-checkbox sd-selectbase__item",itemOnError:"sd-item--error",itemSelectAll:"sd-checkbox--selectall",itemNone:"sd-checkbox--none",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",itemSvgIconId:"#icon-v2check",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-checkbox__decorator",other:"sd-input sd-comment sd-selectbase__other",column:"sd-selectbase__column"},radiogroup:{root:"sd-selectbase",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-radio sd-selectbase__item",itemOnError:"sd-item--error",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-radio__decorator",other:"sd-input sd-comment sd-selectbase__other",clearButton:"",column:"sd-selectbase__column"},boolean:{mainRoot:"sd-element sd-question sd-row__question sd-question--boolean",root:"sv_qcbc sv_qbln sd-scrollable-container sd-boolean-root",rootRadio:"sv_qcbc sv_qbln sd-scrollable-container sd-scrollable-container--compact",item:"sd-boolean",itemOnError:"sd-boolean--error",control:"sd-boolean__control sd-visuallyhidden",itemChecked:"sd-boolean--checked",itemIndeterminate:"sd-boolean--indeterminate",itemDisabled:"sd-boolean--disabled",itemHover:"sd-boolean--allowhover",label:"sd-boolean__label",switch:"sd-boolean__switch",disabledLabel:"sd-checkbox__label--disabled",sliderText:"sd-boolean__thumb-text",slider:"sd-boolean__thumb",sliderGhost:"sd-boolean__thumb-ghost",radioItem:"sd-item",radioItemChecked:"sd-item--checked sd-radio--checked",radioLabel:"sd-selectbase__label",radioControlLabel:"sd-item__control-label",radioFieldset:"sd-selectbase",itemRadioDecorator:"sd-item__svg sd-radio__svg",materialRadioDecorator:"sd-item__decorator sd-radio__decorator",itemRadioControl:"sd-visuallyhidden sd-item__control sd-radio__control",rootCheckbox:"sd-selectbase",checkboxItem:"sd-item sd-selectbase__item sd-checkbox",checkboxLabel:"sd-selectbase__label",checkboxItemOnError:"sd-item--error",checkboxItemIndeterminate:"sd-checkbox--intermediate",checkboxItemChecked:"sd-item--checked sd-checkbox--checked",checkboxItemDecorator:"sd-item__svg sd-checkbox__svg",checkboxItemDisabled:"sd-checkbox--disabled",controlCheckbox:"sd-visuallyhidden sd-item__control sd-checkbox__control",checkboxMaterialDecorator:"sd-item__decorator sd-checkbox__decorator",checkboxControlLabel:"sd-item__control-label",svgIconCheckedId:"#icon-v2check"},text:{root:"sd-input sd-text",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",content:"sd-text__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},multipletext:{root:"sd-multipletext",itemLabel:"sd-multipletext__item-container sd-input",itemLabelOnError:"sd-multipletext__item-container--error",item:"sd-multipletext__item",itemTitle:"sd-multipletext__item-title",content:"sd-multipletext__content sd-question__content",row:"sd-multipletext__row",cell:"sd-multipletext__cell"},dropdown:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",item:"sd-item sd-radio sd-selectbase__item",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",cleanButton:"sd-dropdown_clean-button",cleanButtonSvg:"sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear",control:"sd-input sd-dropdown",controlInputFieldComponent:"sd-dropdown__input-field-component",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlEmpty:"sd-dropdown--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-radio__decorator",hintPrefix:"sd-dropdown__hint-prefix",hintSuffix:"sd-dropdown__hint-suffix"},imagepicker:{mainRoot:"sd-element sd-question sd-row__question",root:"sd-selectbase sd-imagepicker",rootColumn:"sd-imagepicker--column",item:"sd-imagepicker__item",itemOnError:"sd-imagepicker__item--error",itemInline:"sd-imagepicker__item--inline",itemChecked:"sd-imagepicker__item--checked",itemDisabled:"sd-imagepicker__item--disabled",itemHover:"sd-imagepicker__item--allowhover",label:"sd-imagepicker__label",itemDecorator:"sd-imagepicker__item-decorator",imageContainer:"sd-imagepicker__image-container",itemControl:"sd-imagepicker__control sd-visuallyhidden",image:"sd-imagepicker__image",itemText:"sd-imagepicker__text",other:"sd-input sd-comment",itemNoImage:"sd-imagepicker__no-image",itemNoImageSvgIcon:"sd-imagepicker__no-image-svg",itemNoImageSvgIconId:"icon-no-image",column:"sd-selectbase__column sd-imagepicker__column",checkedItemDecorator:"sd-imagepicker__check-decorator",checkedItemSvgIcon:"sd-imagepicker__check-icon",checkedItemSvgIconId:"icon-v2check_24x24"},matrix:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",tableWrapper:"sd-matrix sd-table-wrapper",root:"sd-table sd-matrix__table",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",rootAlternateRows:"sd-table--alternate-rows",rowError:"sd-matrix__row--error",cell:"sd-table__cell sd-matrix__cell",row:"sd-table__row",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-matrix__cell sd-table__cell--row-text",label:"sd-item sd-radio sd-matrix__label",itemOnError:"sd-item--error",itemValue:"sd-visuallyhidden sd-item__control sd-radio__control",itemChecked:"sd-item--checked sd-radio--checked",itemDisabled:"sd-item--disabled sd-radio--disabled",itemHover:"sd-radio--allowhover",materialDecorator:"sd-item__decorator sd-radio__decorator",itemDecorator:"sd-item__svg sd-radio__svg",cellText:"sd-matrix__text",cellTextSelected:"sd-matrix__text--checked",cellTextDisabled:"sd-matrix__text--disabled",cellResponsiveTitle:"sd-matrix__responsive-title",compact:"sd-element--with-frame sd-element--compact"},matrixdropdown:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",root:"sd-table sd-matrixdropdown",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",tableWrapper:"sd-table-wrapper",rootAlternateRows:"sd-table--alternate-rows",cell:"sd-table__cell",itemCell:"sd-table__cell--item",row:"sd-table__row",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",cellRequiredText:"sd-question__required-text",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",actionsCell:"sd-table__cell sd-table__cell--actions",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-table__question-wrapper",compact:"sd-element--with-frame sd-element--compact"},matrixdynamic:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",empty:"sd-question--empty",root:"sd-table sd-matrixdynamic",tableWrapper:"sd-table-wrapper",content:"sd-matrixdynamic__content sd-question__content",cell:"sd-table__cell",row:"sd-table__row",itemCell:"sd-table__cell--item",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",cellRequiredText:"sd-question__required-text",button:"sd-action sd-matrixdynamic__btn",detailRow:"sd-table__row sd-table__row--detail",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",detailPanelCell:"sd-table__cell--detail-panel",actionsCell:"sd-table__cell sd-table__cell--actions",buttonAdd:"sd-matrixdynamic__add-btn",buttonRemove:"sd-action--negative sd-matrixdynamic__remove-btn",iconAdd:"",iconRemove:"",dragElementDecorator:"sd-drag-element__svg",iconDragElement:"#icon-v2dragelement_16x16",footer:"sd-matrixdynamic__footer",emptyRowsSection:"sd-matrixdynamic__placeholder sd-question__placeholder",iconDrag:"sv-matrixdynamic__drag-icon",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-table__question-wrapper",compact:"sd-element--with-frame sd-element--compact"},rating:{rootDropdown:"sd-scrollable-container sd-scrollable-container--compact sd-selectbase",root:"sd-scrollable-container sd-rating",rootWrappable:"sd-scrollable-container sd-rating sd-rating--wrappable",item:"sd-rating__item",itemOnError:"sd-rating__item--error",itemHover:"sd-rating__item--allowhover",selected:"sd-rating__item--selected",itemStar:"sd-rating__item-star",itemStarOnError:"sd-rating__item-star--error",itemStarHover:"sd-rating__item-star--allowhover",itemStarSelected:"sd-rating__item-star--selected",itemStarDisabled:"sd-rating__item-star--disabled",itemStarHighlighted:"sd-rating__item-star--highlighted",itemStarUnhighlighted:"sd-rating__item-star--unhighlighted",itemStarSmall:"sd-rating__item-star--small",itemSmiley:"sd-rating__item-smiley",itemSmileyOnError:"sd-rating__item-smiley--error",itemSmileyHover:"sd-rating__item-smiley--allowhover",itemSmileySelected:"sd-rating__item-smiley--selected",itemSmileyDisabled:"sd-rating__item-smiley--disabled",itemSmileyHighlighted:"sd-rating__item-star--highlighted",itemSmileyScaleColored:"sd-rating__item-smiley--scale-colored",itemSmileyRateColored:"sd-rating__item-smiley--rate-colored",itemSmileySmall:"sd-rating__item-smiley--small",minText:"sd-rating__item-text sd-rating__min-text",itemText:"sd-rating__item-text",maxText:"sd-rating__item-text sd-rating__max-text",itemDisabled:"sd-rating__item--disabled",itemFixedSize:"sd-rating__item--fixed-size",control:"sd-input sd-dropdown",itemSmall:"sd-rating--small",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlEmpty:"sd-dropdown--empty",filterStringInput:"sd-dropdown__filter-string-input",popup:"sv-dropdown-popup",onError:"sd-input--error"},comment:{root:"sd-input sd-comment",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",content:"sd-comment__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},expression:"sd-expression",file:{root:"sd-file",other:"sd-input sd-comment",placeholderInput:"sd-visuallyhidden",preview:"sd-file__preview",fileSign:"",fileList:"sd-file__list",fileSignBottom:"sd-file__sign",dragArea:"sd-file__drag-area",dragAreaActive:"sd-file__drag-area--active",fileDecorator:"sd-file__decorator",onError:"sd-file__decorator--error",fileDecoratorDrag:"sd-file__decorator--drag",fileInput:"sd-visuallyhidden",noFileChosen:"sd-description sd-file__no-file-chosen",chooseFile:"sd-file__choose-btn",chooseFileAsText:"sd-action sd-file__choose-btn--text",chooseFileAsTextDisabled:"sd-action--disabled",chooseFileAsIcon:"sd-context-btn sd-file__choose-btn--icon",chooseFileIconId:"icon-choosefile",disabled:"sd-file__choose-btn--disabled",removeButton:"sd-context-btn sd-context-btn--negative sd-file__btn sd-file__clean-btn",removeButtonBottom:"",removeButtonIconId:"icon-clear",removeFile:"sd-hidden",removeFileSvg:"",removeFileSvgIconId:"icon-delete",wrapper:"sd-file__wrapper",defaultImage:"sd-file__default-image",defaultImageIconId:"icon-defaultfile",leftIconId:"icon-arrowleft",rightIconId:"icon-arrowright",removeFileButton:"sd-context-btn sd-context-btn--negative sd-file__remove-file-button",dragAreaPlaceholder:"sd-file__drag-area-placeholder",imageWrapper:"sd-file__image-wrapper",single:"sd-file--single",singleImage:"sd-file--single-image",mobile:"sd-file--mobile"},signaturepad:{mainRoot:"sd-element sd-question sd-question--signature sd-row__question",root:"sd-signaturepad sjs_sp_container",small:"sd-row__question--small",controls:"sjs_sp_controls sd-signaturepad__controls",placeholder:"sjs_sp_placeholder",clearButton:"sjs_sp_clear sd-context-btn sd-context-btn--negative sd-signaturepad__clear",clearButtonIconId:"icon-clear"},saveData:{root:"sv-save-data_root",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sd-ranking--disabled",rootDesignMode:"sv-ranking--design-mode",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",item:"sv-ranking-item",itemContent:"sv-ranking-item__content sd-ranking-item__content",itemIndex:"sv-ranking-item__index sd-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty sd-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking--drag",itemOnError:"sv-ranking-item--error"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},list:{root:"sv-list__container sd-list",item:"sv-list__item sd-list__item",itemBody:"sv-list__item-body sd-list__item-body",itemSelected:"sv-list__item--selected sd-list__item--selected",itemFocused:"sv-list__item--focused sd-list__item--focused"},actionBar:{root:"sd-action-bar",item:"sd-action",defaultSizeMode:"",smallSizeMode:"",itemPressed:"sd-action--pressed",itemAsIcon:"sd-action--icon",itemIcon:"sd-action__icon",itemTitle:"sd-action__title"},variables:{mobileWidth:"--sd-mobile-width",imagepickerGapBetweenItems:"--sd-imagepicker-gap",themeMark:"--sv-defaultV2-mark"},tagbox:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",item:"sd-item sd-radio sd-selectbase__item",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",cleanButton:"sd-tagbox_clean-button sd-dropdown_clean-button",cleanButtonSvg:"sd-tagbox_clean-button-svg sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear",cleanItemButton:"sd-tagbox-item_clean-button",cleanItemButtonSvg:"sd-tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sd-input sd-tagbox sd-dropdown",controlValue:"sd-tagbox__value sd-dropdown__value",controlValueItems:"sd-tagbox__value-items",placeholderInput:"sd-tagbox__placeholder",controlDisabled:"sd-input--disabled",controlEmpty:"sd-dropdown--empty sd-tagbox--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-tagbox__filter-string-input sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-checkbox__decorator",hint:"sd-tagbox__hint",hintPrefix:"sd-dropdown__hint-prefix sd-tagbox__hint-prefix",hintSuffix:"sd-dropdown__hint-suffix sd-tagbox__hint-suffix",hintSuffixWrapper:"sd-tagbox__hint-suffix-wrapper"}},i="defaultV2";n[i]=o},"./src/defaultTitle.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DefaultTitleModel",(function(){return o}));var n=r("./src/utils/cssClassBuilder.ts"),o=function(){function e(){}return e.getIconCss=function(e,t){return(new n.CssClassBuilder).append(e.icon).append(e.iconExpanded,!t).toString()},e}()},"./src/drag-drop-helper-v1.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragDropInfo",(function(){return n}));var n=function(e,t,r){void 0===r&&(r=-1),this.source=e,this.target=t,this.nestedPanelDepth=r}},"./src/drag-drop-page-helper-v1.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragDropPageHelperV1",(function(){return i}));var n=r("./src/drag-drop-helper-v1.ts"),o=r("./src/settings.ts"),i=function(){function e(e){this.page=e}return e.prototype.getDragDropInfo=function(){return this.dragDropInfo},e.prototype.dragDropStart=function(e,t,r){void 0===r&&(r=-1),this.dragDropInfo=new n.DragDropInfo(e,t,r)},e.prototype.dragDropMoveTo=function(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=!1),!this.dragDropInfo)return!1;if(this.dragDropInfo.destination=e,this.dragDropInfo.isBottom=t,this.dragDropInfo.isEdge=r,this.correctDragDropInfo(this.dragDropInfo),!this.dragDropCanDropTagert())return!1;if(!this.dragDropCanDropSource()||!this.dragDropAllowFromSurvey()){if(this.dragDropInfo.source){var n=this.page.dragDropFindRow(this.dragDropInfo.target);this.page.updateRowsRemoveElementFromRow(this.dragDropInfo.target,n)}return!1}return this.page.dragDropAddTarget(this.dragDropInfo),!0},e.prototype.correctDragDropInfo=function(e){if(e.destination){var t=e.destination.isPanel?e.destination:null;t&&(e.target.isLayoutTypeSupported(t.getChildrenLayoutType())||(e.isEdge=!0))}},e.prototype.dragDropAllowFromSurvey=function(){var e=this.dragDropInfo.destination;if(!e||!this.page.survey)return!0;var t=null,r=null,n=e.isPage||!this.dragDropInfo.isEdge&&e.isPanel?e:e.parent;if(!e.isPage){var o=e.parent;if(o){var i=o.elements,s=i.indexOf(e);s>-1&&(t=e,r=e,this.dragDropInfo.isBottom?t=s<i.length-1?i[s+1]:null:r=s>0?i[s-1]:null)}}var a={allow:!0,target:this.dragDropInfo.target,source:this.dragDropInfo.source,parent:n,insertAfter:r,insertBefore:t};return this.page.survey.dragAndDropAllow(a)},e.prototype.dragDropFinish=function(e){if(void 0===e&&(e=!1),this.dragDropInfo){var t=this.dragDropInfo.target,r=this.dragDropInfo.source,n=this.dragDropInfo.destination,i=this.page.dragDropFindRow(t),s=this.dragDropGetElementIndex(t,i);this.page.updateRowsRemoveElementFromRow(t,i);var a=[],l=[];if(!e&&i){if(this.page.isDesignMode&&o.settings.supportCreatorV2){var u=r&&r.parent&&r.parent.dragDropFindRow(r);i.panel.elements[s]&&i.panel.elements[s].startWithNewLine&&i.elements.length>1&&i.panel.elements[s]===n&&(a.push(t),l.push(i.panel.elements[s])),!(t.startWithNewLine&&i.elements.length>1)||i.panel.elements[s]&&i.panel.elements[s].startWithNewLine||l.push(t),u&&u.elements[0]===r&&u.elements[1]&&a.push(u.elements[1]),i.elements.length<=1&&a.push(t),t.startWithNewLine&&i.elements.length>1&&i.elements[0]!==n&&l.push(t)}r&&r.parent&&(this.page.survey.startMovingQuestion(),i.panel==r.parent?(i.panel.dragDropMoveElement(r,t,s),s=-1):r.parent.removeElement(r)),s>-1&&i.panel.addElement(t,s),this.page.survey.stopMovingQuestion()}return a.map((function(e){e.startWithNewLine=!0})),l.map((function(e){e.startWithNewLine=!1})),this.dragDropInfo=null,e?null:t}},e.prototype.dragDropGetElementIndex=function(e,t){if(!t)return-1;var r=t.elements.indexOf(e);if(0==t.index)return r;var n=t.panel.rows[t.index-1],o=n.elements[n.elements.length-1];return r+t.panel.elements.indexOf(o)+1},e.prototype.dragDropCanDropTagert=function(){var e=this.dragDropInfo.destination;return!(e&&!e.isPage)||this.dragDropCanDropCore(this.dragDropInfo.target,e)},e.prototype.dragDropCanDropSource=function(){var e=this.dragDropInfo.source;if(!e)return!0;var t=this.dragDropInfo.destination;if(!this.dragDropCanDropCore(e,t))return!1;if(this.page.isDesignMode&&o.settings.supportCreatorV2){if(this.page.dragDropFindRow(e)!==this.page.dragDropFindRow(t)){if(!e.startWithNewLine&&t.startWithNewLine)return!0;if(e.startWithNewLine&&!t.startWithNewLine)return!0}var r=this.page.dragDropFindRow(t);if(r&&1==r.elements.length)return!0}return this.dragDropCanDropNotNext(e,t,this.dragDropInfo.isEdge,this.dragDropInfo.isBottom)},e.prototype.dragDropCanDropCore=function(e,t){if(!t)return!0;if(this.dragDropIsSameElement(t,e))return!1;if(e.isPanel){var r=e;if(r.containsElement(t)||r.getElementByName(t.name))return!1}return!0},e.prototype.dragDropCanDropNotNext=function(e,t,r,n){if(!t||t.isPanel&&!r)return!0;if(void 0===e.parent||e.parent!==t.parent)return!0;var o=e.parent,i=o.elements.indexOf(e),s=o.elements.indexOf(t);return s<i&&!n&&s--,n&&s++,i<s?s-i>1:i-s>0},e.prototype.dragDropIsSameElement=function(e,t){return e==t||e.name==t.name},e}()},"./src/drag-drop-panel-helper-v1.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragDropPanelHelperV1",(function(){return i}));var n=r("./src/drag-drop-helper-v1.ts"),o=r("./src/settings.ts"),i=function(){function e(e){this.panel=e}return e.prototype.dragDropAddTarget=function(e){var t=this.dragDropFindRow(e.target);this.dragDropAddTargetToRow(e,t)&&this.panel.updateRowsRemoveElementFromRow(e.target,t)},e.prototype.dragDropFindRow=function(e){if(!e||e.isPage)return null;for(var t=e,r=this.panel.rows,n=0;n<r.length;n++)if(r[n].elements.indexOf(t)>-1)return r[n];for(n=0;n<this.panel.elements.length;n++){var o=this.panel.elements[n].getPanel();if(o){var i=o.dragDropFindRow(t);if(i)return i}}return null},e.prototype.dragDropMoveElement=function(e,t,r){r>e.parent.elements.indexOf(e)&&r--,this.panel.removeElement(e),this.panel.addElement(t,r)},e.prototype.updateRowsOnElementAdded=function(e,t,r,o){r||((r=new n.DragDropInfo(null,e)).target=e,r.isEdge=this.panel.elements.length>1,this.panel.elements.length<2?r.destination=o:(r.isBottom=t>0,r.destination=0==t?this.panel.elements[1]:this.panel.elements[t-1])),this.dragDropAddTargetToRow(r,null)},e.prototype.dragDropAddTargetToRow=function(e,t){if(!e.destination)return!0;if(this.dragDropAddTargetToEmptyPanel(e))return!0;var r=e.destination,n=this.dragDropFindRow(r);return!n||(e.target.startWithNewLine?this.dragDropAddTargetToNewRow(e,n,t):this.dragDropAddTargetToExistingRow(e,n,t))},e.prototype.dragDropAddTargetToEmptyPanel=function(e){if(e.destination.isPage)return this.dragDropAddTargetToEmptyPanelCore(this.panel.root,e.target,e.isBottom),!0;var t=e.destination;if(t.isPanel&&!e.isEdge){var r=t;if(e.target.template===t)return!1;if(e.nestedPanelDepth<0||e.nestedPanelDepth>=r.depth)return this.dragDropAddTargetToEmptyPanelCore(t,e.target,e.isBottom),!0}return!1},e.prototype.dragDropAddTargetToExistingRow=function(e,t,r){var n=t.elements.indexOf(e.destination);if(0==n&&!e.isBottom)if(this.panel.isDesignMode&&o.settings.supportCreatorV2);else if(t.elements[0].startWithNewLine)return t.index>0?(e.isBottom=!0,t=t.panel.rows[t.index-1],e.destination=t.elements[t.elements.length-1],this.dragDropAddTargetToExistingRow(e,t,r)):this.dragDropAddTargetToNewRow(e,t,r);var i=-1;r==t&&(i=t.elements.indexOf(e.target)),e.isBottom&&n++;var s=this.panel.findRowByElement(e.source);return(s!=t||s.elements.indexOf(e.source)!=n)&&n!=i&&(i>-1&&(t.elements.splice(i,1),i<n&&n--),t.elements.splice(n,0,e.target),t.updateVisible(),i<0)},e.prototype.dragDropAddTargetToNewRow=function(e,t,r){var n=t.panel.createRowAndSetLazy(t.panel.rows.length);this.panel.isDesignMode&&o.settings.supportCreatorV2&&n.setIsLazyRendering(!1),n.addElement(e.target);var i=t.index;if(e.isBottom&&i++,r&&r.panel==n.panel&&r.index==i)return!1;var s=this.panel.findRowByElement(e.source);return!(s&&s.panel==n.panel&&1==s.elements.length&&s.index==i||(t.panel.rows.splice(i,0,n),0))},e.prototype.dragDropAddTargetToEmptyPanelCore=function(e,t,r){var n=e.createRow();n.addElement(t),0==e.elements.length||r?e.rows.push(n):e.rows.splice(0,0,n)},e}()},"./src/dragdrop/choices.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragDropChoices",(function(){return s}));var n,o=r("./src/dragdrop/core.ts"),i=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.doDragOver=function(){"imagepicker"!==t.parentElement.getType()&&(t.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button").style.cursor="grabbing")},t.doBanDropHere=function(){"imagepicker"!==t.parentElement.getType()&&(t.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button").style.cursor="not-allowed")},t}return i(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"item-value"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,r){if("imagepicker"===this.parentElement.getType())return this.createImagePickerShortcut(this.draggedElement,e,t,r);var n=document.createElement("div");n.style.cssText=" \n cursor: grabbing;\n position: absolute;\n z-index: 1000;\n font-family: var(--font-family, $font-family);\n ";var o=t.closest("[data-sv-drop-target-item-value]").cloneNode(!0);o.style.cssText="\n min-width: 100px;\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);\n background-color: var(--background, white);\n border-radius: 36px;\n padding-right: 16px;\n margin-left: 0;\n ",o.querySelector(".svc-item-value-controls__drag-icon").style.visibility="visible",o.querySelector(".svc-item-value-controls__remove").style.backgroundColor="transparent",o.classList.remove("svc-item-value--moveup"),o.classList.remove("svc-item-value--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,n.appendChild(o);var i=t.getBoundingClientRect();return n.shortcutXOffset=r.clientX-i.x,n.shortcutYOffset=r.clientY-i.y,this.isBottom=null,n},t.prototype.createImagePickerShortcut=function(e,t,r,n){var o=document.createElement("div");o.style.cssText=" \n cursor: grabbing;\n position: absolute;\n z-index: 1000;\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1), 0px 2px 6px rgba(0, 0, 0, 0.1);\n padding: 4px;\n border-radius: 4px;\n background: white;\n ";var i=r.closest("[data-sv-drop-target-item-value]"),s=i.querySelector(".svc-image-item-value-controls"),a=i.querySelector(".sd-imagepicker__image-container"),l=i.querySelector(e.imageLink?"img":".sd-imagepicker__no-image").cloneNode(!0);return s.style.display="none",a.style.width=l.width+"px",a.style.height=l.height+"px",l.style.objectFit="cover",l.style.borderRadius="4px",o.appendChild(l),o},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.choices.filter((function(t){return""+t.value==e}))[0]},t.prototype.getVisibleChoices=function(){var e=this.parentElement;return"ranking"===e.getType()?e.rankingChoices:e.visibleChoices},t.prototype.isDropTargetValid=function(e,t){var r=this.getVisibleChoices();if("imagepicker"!==this.parentElement.getType()){var n=r.indexOf(this.dropTarget),o=r.indexOf(this.draggedElement);if(o>n&&this.dropTarget.isDragDropMoveUp)return this.dropTarget.isDragDropMoveUp=!1,!1;if(o<n&&this.dropTarget.isDragDropMoveDown)return this.dropTarget.isDragDropMoveDown=!1,!1}return-1!==r.indexOf(e)},t.prototype.calculateIsBottom=function(e){var t=this.getVisibleChoices();return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(t){if(!this.isDropTargetDoesntChanged(this.isBottom)&&this.dropTarget!==this.draggedElement){var r=this.getVisibleChoices(),n=r.indexOf(this.dropTarget),o=r.indexOf(this.draggedElement);r.splice(o,1),r.splice(n,0,this.draggedElement),"imagepicker"!==this.parentElement.getType()&&(o!==n&&(t.classList.remove("svc-item-value--moveup"),t.classList.remove("svc-item-value--movedown"),this.dropTarget.isDragDropMoveDown=!1,this.dropTarget.isDragDropMoveUp=!1),o>n&&(this.dropTarget.isDragDropMoveDown=!0),o<n&&(this.dropTarget.isDragDropMoveUp=!0),e.prototype.ghostPositionChanged.call(this))}},t.prototype.doDrop=function(){var e=this.parentElement.choices,t=this.getVisibleChoices().filter((function(t){return-1!==e.indexOf(t)})),r=e.indexOf(this.draggedElement),n=t.indexOf(this.draggedElement);return e.splice(r,1),e.splice(n,0,this.draggedElement),this.parentElement},t.prototype.clear=function(){this.parentElement&&this.updateVisibleChoices(this.parentElement),e.prototype.clear.call(this)},t.prototype.updateVisibleChoices=function(e){"ranking"===e.getType()?e.updateRankingChoices():e.updateVisibleChoices()},t}(o.DragDropCore)},"./src/dragdrop/core.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragDropCore",(function(){return i}));var n=r("./src/base.ts"),o=r("./src/dragdrop/dom-adapter.ts"),i=function(){function e(e,t,r,i){var s=this;this.surveyValue=e,this.creator=t,this._isBottom=null,this.onGhostPositionChanged=new n.EventBase,this.onDragStart=new n.EventBase,this.onDragEnd=new n.EventBase,this.onBeforeDrop=this.onDragStart,this.onAfterDrop=this.onDragEnd,this.draggedElement=null,this.dropTarget=null,this.prevDropTarget=null,this.allowDropHere=!1,this.banDropHere=function(){s.allowDropHere=!1,s.doBanDropHere(),s.dropTarget=null,s.domAdapter.draggedElementShortcut.style.cursor="not-allowed",s.isBottom=null},this.doBanDropHere=function(){},this.domAdapter=i||new o.DragDropDOMAdapter(this,r)}return Object.defineProperty(e.prototype,"isBottom",{get:function(){return!!this._isBottom},set:function(e){this._isBottom=e,this.ghostPositionChanged()},enumerable:!1,configurable:!0}),e.prototype.ghostPositionChanged=function(){this.onGhostPositionChanged.fire({},{})},Object.defineProperty(e.prototype,"dropTargetDataAttributeName",{get:function(){return"[data-sv-drop-target-"+this.draggedElementType+"]"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"survey",{get:function(){return this.surveyValue||this.creator.survey},enumerable:!1,configurable:!0}),e.prototype.startDrag=function(e,t,r,n,o){void 0===o&&(o=!1),this.domAdapter.startDrag(e,t,r,n,o)},e.prototype.dragInit=function(e,t,r,n){this.draggedElement=t,this.parentElement=r;var o=this.getShortcutText(this.draggedElement);this.domAdapter.draggedElementShortcut=this.createDraggedElementShortcut(o,n,e),this.onStartDrag()},e.prototype.onStartDrag=function(){},e.prototype.isDropTargetDoesntChanged=function(e){return this.dropTarget===this.prevDropTarget&&e===this.isBottom},e.prototype.getShortcutText=function(e){return e.shortcutText},e.prototype.createDraggedElementShortcut=function(e,t,r){var n=document.createElement("div");return n.innerText=e,n.className=this.getDraggedElementClass(),n},e.prototype.getDraggedElementClass=function(){return"sv-dragged-element-shortcut"},e.prototype.doDragOver=function(){},e.prototype.afterDragOver=function(e){},e.prototype.findDropTargetNodeFromPoint=function(e,t){this.domAdapter.draggedElementShortcut.hidden=!0;var r=document.elementFromPoint(e,t);return this.domAdapter.draggedElementShortcut.hidden=!1,r?this.findDropTargetNodeByDragOverNode(r):null},e.prototype.getDataAttributeValueByNode=function(e){var t=this,r="svDropTarget";return this.draggedElementType.split("-").forEach((function(e){r+=t.capitalizeFirstLetter(e)})),e.dataset[r]},e.prototype.getDropTargetByNode=function(e,t){var r=this.getDataAttributeValueByNode(e);return this.getDropTargetByDataAttributeValue(r,e,t)},e.prototype.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.prototype.calculateVerticalMiddleOfHTMLElement=function(e){var t=e.getBoundingClientRect();return t.y+t.height/2},e.prototype.calculateHorizontalMiddleOfHTMLElement=function(e){var t=e.getBoundingClientRect();return t.x+t.width/2},e.prototype.calculateIsBottom=function(e,t){return!1},e.prototype.findDropTargetNodeByDragOverNode=function(e){return e.closest(this.dropTargetDataAttributeName)},e.prototype.dragOver=function(e){var t=this.findDropTargetNodeFromPoint(e.clientX,e.clientY);if(t){this.dropTarget=this.getDropTargetByNode(t,e);var r=this.isDropTargetValid(this.dropTarget,t);if(this.doDragOver(),r){var n=this.calculateIsBottom(e.clientY,t);this.allowDropHere=!0,this.isDropTargetDoesntChanged(n)||(this.isBottom=null,this.isBottom=n,this.afterDragOver(t),this.prevDropTarget=this.dropTarget)}else this.banDropHere()}else this.banDropHere()},e.prototype.drop=function(){if(this.allowDropHere){var e=this.draggedElement.parent;this.onDragStart.fire(this,{fromElement:e,draggedElement:this.draggedElement});var t=this.doDrop();this.onDragEnd.fire(this,{fromElement:e,draggedElement:t,toElement:this.dropTarget})}},e.prototype.clear=function(){this.dropTarget=null,this.draggedElement=null,this.isBottom=null,this.parentElement=null},e}()},"./src/dragdrop/dom-adapter.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragDropDOMAdapter",(function(){return s}));var n=r("./src/utils/utils.ts"),o=r("./src/utils/devices.ts"),i=r("./src/settings.ts");"undefined"!=typeof window&&window.addEventListener("touchmove",(function(e){s.PreventScrolling&&e.preventDefault()}),{passive:!1});var s=function(){function e(t,r){var n=this;this.dd=t,this.longTap=r,this.scrollIntervalId=null,this.stopLongTapIfMoveEnough=function(e){e.preventDefault(),n.currentX=e.pageX,n.currentY=e.pageY,n.isMicroMovement||(document.body.style.setProperty("touch-action",""),document.body.style.setProperty("user-select",""),document.body.style.setProperty("-webkit-user-select",""),n.stopLongTap())},this.stopLongTap=function(e){clearTimeout(n.timeoutID),n.timeoutID=null,document.removeEventListener("pointerup",n.stopLongTap),document.removeEventListener("pointermove",n.stopLongTapIfMoveEnough)},this.handlePointerCancel=function(e){n.clear()},this.handleEscapeButton=function(e){27==e.keyCode&&n.clear()},this.onContextMenu=function(e){e.preventDefault(),e.stopPropagation()},this.dragOver=function(e){n.moveShortcutElement(e),n.draggedElementShortcut.style.cursor="grabbing",n.dd.dragOver(e)},this.clear=function(){cancelAnimationFrame(n.scrollIntervalId),document.removeEventListener("pointermove",n.dragOver),document.removeEventListener("pointercancel",n.handlePointerCancel),document.removeEventListener("keydown",n.handleEscapeButton),document.removeEventListener("pointerup",n.drop),n.draggedElementShortcut.removeEventListener("pointerup",n.drop),o.IsTouch&&n.draggedElementShortcut.removeEventListener("contextmenu",n.onContextMenu),i.settings.environment.rootElement.removeChild(n.draggedElementShortcut),n.dd.clear(),n.draggedElementShortcut=null,n.scrollIntervalId=null,o.IsTouch&&(n.savedTargetNode&&i.settings.environment.rootElement.removeChild(n.savedTargetNode),e.PreventScrolling=!1),document.body.style.setProperty("touch-action",""),document.body.style.setProperty("user-select",""),document.body.style.setProperty("-webkit-user-select","")},this.drop=function(){n.dd.drop(),n.clear()},this.draggedElementShortcut=null}return Object.defineProperty(e.prototype,"isMicroMovement",{get:function(){var e=Math.abs(this.currentX-this.startX),t=Math.abs(this.currentY-this.startY);return e<5&&t<5},enumerable:!1,configurable:!0}),e.prototype.startLongTapProcessing=function(e,t,r,n,o){var s=this;void 0===o&&(o=!1),this.startX=e.pageX,this.startY=e.pageY,document.body.style.setProperty("touch-action","none","important"),document.body.style.setProperty("user-select","none","important"),document.body.style.setProperty("-webkit-user-select","none","important"),this.timeoutID=setTimeout((function(){s.doStartDrag(e,t,r,n),o||(s.savedTargetNode=e.target,s.savedTargetNode.style.cssText="\n position: absolute;\n height: 1px!important;\n width: 1px!important;\n overflow: hidden;\n clip: rect(1px 1px 1px 1px);\n clip: rect(1px, 1px, 1px, 1px);\n ",i.settings.environment.rootElement.appendChild(s.savedTargetNode)),s.stopLongTap()}),this.longTap?500:0),document.addEventListener("pointerup",this.stopLongTap),document.addEventListener("pointermove",this.stopLongTapIfMoveEnough)},e.prototype.moveShortcutElement=function(e){this.doScroll(e.clientY,e.clientX);var t=this.draggedElementShortcut.offsetHeight,r=this.draggedElementShortcut.offsetWidth,o=this.draggedElementShortcut.shortcutXOffset||r/2,s=this.draggedElementShortcut.shortcutYOffset||t/2;0!==document.querySelectorAll("[dir='rtl']").length&&(o=r/2,s=t/2);var a=(Object(n.isShadowDOM)(i.settings.environment.root)?i.settings.environment.root.host:i.settings.environment.root.documentElement).clientHeight,l=(Object(n.isShadowDOM)(i.settings.environment.root)?i.settings.environment.root.host:i.settings.environment.root.documentElement).clientWidth,u=this.getShortcutBottomCoordinate(e.clientY,t,s);return this.getShortcutRightCoordinate(e.clientX,r,o)>=l?(this.draggedElementShortcut.style.left=e.pageX-e.clientX+l-r+"px",void(this.draggedElementShortcut.style.top=e.pageY-s+"px")):e.clientX-o<=0?(this.draggedElementShortcut.style.left=e.pageX-e.clientX+"px",void(this.draggedElementShortcut.style.top=e.pageY-s+"px")):u>=a?(this.draggedElementShortcut.style.left=e.pageX-o+"px",void(this.draggedElementShortcut.style.top=e.pageY-e.clientY+a-t+"px")):e.clientY-s<=0?(this.draggedElementShortcut.style.left=e.pageX-o+"px",void(this.draggedElementShortcut.style.top=e.pageY-e.clientY+"px")):(this.draggedElementShortcut.style.left=e.pageX-o+"px",void(this.draggedElementShortcut.style.top=e.pageY-s+"px"))},e.prototype.getShortcutBottomCoordinate=function(e,t,r){return e+t-r},e.prototype.getShortcutRightCoordinate=function(e,t,r){return e+t-r},e.prototype.doScroll=function(e,t){var r=this;cancelAnimationFrame(this.scrollIntervalId),this.draggedElementShortcut.hidden=!0;var o=document.elementFromPoint(t,e);this.draggedElementShortcut.hidden=!1;var i,s,a,l,u=Object(n.findScrollableParent)(o);"HTML"===u.tagName?(i=0,s=document.documentElement.clientHeight,a=0,l=document.documentElement.clientWidth):(i=u.getBoundingClientRect().top,s=u.getBoundingClientRect().bottom,a=u.getBoundingClientRect().left,l=u.getBoundingClientRect().right);var c=function(){e-i<=50?u.scrollTop-=15:s-e<=50?u.scrollTop+=15:l-t<=50?u.scrollLeft+=15:t-a<=50&&(u.scrollLeft-=15),r.scrollIntervalId=requestAnimationFrame(c)};this.scrollIntervalId=requestAnimationFrame(c)},e.prototype.doStartDrag=function(t,r,n,i){o.IsTouch&&(e.PreventScrolling=!0),3!==t.which&&(this.dd.dragInit(t,r,n,i),document.body.append(this.draggedElementShortcut),this.moveShortcutElement(t),document.addEventListener("pointermove",this.dragOver),document.addEventListener("pointercancel",this.handlePointerCancel),document.addEventListener("keydown",this.handleEscapeButton),document.addEventListener("pointerup",this.drop),o.IsTouch?this.draggedElementShortcut.addEventListener("contextmenu",this.onContextMenu):this.draggedElementShortcut.addEventListener("pointerup",this.drop))},e.prototype.startDrag=function(e,t,r,n,i){void 0===i&&(i=!1),o.IsTouch?this.startLongTapProcessing(e,t,r,n,i):this.doStartDrag(e,t,r,n)},e.PreventScrolling=!1,e}()},"./src/dragdrop/matrix-rows.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragDropMatrixRows",(function(){return s}));var n,o=r("./src/dragdrop/core.ts"),i=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fromIndex=null,t.toIndex=null,t.doDrop=function(){return t.parentElement.moveRowByIndex(t.fromIndex,t.toIndex),t.parentElement},t}return i(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"matrix-row"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,r){var n=this,o=document.createElement("div");if(o.style.cssText=" \n cursor: grabbing;\n position: absolute;\n z-index: 1000;\n font-family: var(--font-family, $font-family);\n ",t){var i=t.closest("[data-sv-drop-target-matrix-row]"),s=i.cloneNode(!0);s.style.cssText="\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1), 0px 2px 6px rgba(0, 0, 0, 0.1);\n background-color: white;\n display: flex;\n flex-grow: 0;\n flex-shrink: 0;\n align-items: center;\n line-height: 0;\n width: "+i.offsetWidth+"px;\n ",s.classList.remove("sv-matrix__drag-drop--moveup"),s.classList.remove("sv-matrix__drag-drop--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,o.appendChild(s);var a=t.getBoundingClientRect();o.shortcutXOffset=r.clientX-a.x,o.shortcutYOffset=r.clientY-a.y}return this.parentElement.renderedTable.rows.forEach((function(e,t){e.row===n.draggedElement&&(e.isGhostRow=!0)})),this.fromIndex=this.parentElement.visibleRows.indexOf(this.draggedElement),o},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.renderedTable.rows.filter((function(t){return t.row.id===e}))[0].row},t.prototype.isDropTargetValid=function(e,t){return!0},t.prototype.calculateIsBottom=function(e){var t=this.parentElement.renderedTable.rows.map((function(e){return e.row}));return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(t){var r=this;if(!this.isDropTargetDoesntChanged(this.isBottom)&&this.dropTarget!==this.draggedElement){var n,o,i,s=this.parentElement.renderedTable.rows;s.forEach((function(e,t){e.row===r.dropTarget&&(n=t),e.row===r.draggedElement&&(o=t,(i=e).isGhostRow=!0)})),s.splice(o,1),s.splice(n,0,i),this.toIndex=n,e.prototype.ghostPositionChanged.call(this)}},t.prototype.clear=function(){this.parentElement.renderedTable.rows.forEach((function(e){e.isGhostRow=!1})),this.parentElement.clearOnDrop(),this.fromIndex=null,this.toIndex=null,e.prototype.clear.call(this)},t}(o.DragDropCore)},"./src/dragdrop/ranking-choices.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragDropRankingChoices",(function(){return l}));var n,o=r("./src/dragdrop/choices.ts"),i=r("./src/utils/cssClassBuilder.ts"),s=r("./src/utils/devices.ts"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isDragOverRootNode=!1,t.doDragOver=function(){t.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item").style.cursor="grabbing"},t.doBanDropHere=function(){t.isDragOverRootNode?t.allowDropHere=!0:t.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item").style.cursor="not-allowed"},t.doDrop=function(){return t.parentElement.setValue(),t.parentElement},t}return a(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"ranking-item"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,r){var n=document.createElement("div");n.className=this.shortcutClass+" sv-ranking-shortcut",n.style.cssText=" \n cursor: grabbing;\n position: absolute;\n z-index: 1000;\n border-radius: 36px;\n min-width: 100px;\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1), 0px 2px 6px rgba(0, 0, 0, 0.1);\n background-color: var(--background, white);\n font-family: var(--font-family, $font-family);\n ";var o=t.cloneNode(!0);n.appendChild(o);var i=t.getBoundingClientRect();return n.shortcutXOffset=r.clientX-i.x,n.shortcutYOffset=r.clientY-i.y,this.parentElement&&this.parentElement.useFullItemSizeForShortcut&&(n.style.width=t.offsetWidth+"px",n.style.height=t.offsetHeight+"px"),n},Object.defineProperty(t.prototype,"shortcutClass",{get:function(){return(new i.CssClassBuilder).append(this.parentElement.cssClasses.root).append(this.parentElement.cssClasses.rootMobileMod,s.IsMobile).toString()},enumerable:!1,configurable:!0}),t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]},t.prototype.findDropTargetNodeByDragOverNode=function(t){return this.isDragOverRootNode=this.getIsDragOverRootNode(t),e.prototype.findDropTargetNodeByDragOverNode.call(this,t)},t.prototype.getIsDragOverRootNode=function(e){return"string"==typeof e.className&&-1!==e.className.indexOf("sv-ranking")},t.prototype.isDropTargetValid=function(e,t){var r=this.parentElement.rankingChoices,n=r.indexOf(this.dropTarget),o=r.indexOf(this.draggedElement);return o>n&&t.classList.contains("sv-dragdrop-moveup")||o<n&&t.classList.contains("sv-dragdrop-movedown")?(this.parentElement.dropTargetNodeMove=null,!1):-1!==r.indexOf(e)},t.prototype.calculateIsBottom=function(e){var t=this.parentElement.rankingChoices;return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(e){var t=this.parentElement.rankingChoices,r=t.indexOf(this.dropTarget),n=t.indexOf(this.draggedElement);t.splice(n,1),t.splice(r,0,this.draggedElement),this.parentElement.setPropertyValue("rankingChoices",t),this.updateDraggedElementShortcut(r+1),n!==r&&(e.classList.remove("sv-dragdrop-moveup"),e.classList.remove("sv-dragdrop-movedown"),this.parentElement.dropTargetNodeMove=null),n>r&&(this.parentElement.dropTargetNodeMove="down"),n<r&&(this.parentElement.dropTargetNodeMove="up")},t.prototype.updateDraggedElementShortcut=function(e){var t=e+"";this.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item__index").innerText=t},t.prototype.ghostPositionChanged=function(){this.parentElement.currentDropTarget=this.draggedElement,e.prototype.ghostPositionChanged.call(this)},t.prototype.clear=function(){this.parentElement&&(this.parentElement.dropTargetNodeMove=null,this.parentElement.updateRankingChoices(!0)),e.prototype.clear.call(this)},t}(o.DragDropChoices)},"./src/dropdownListModel.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DropdownListModel",(function(){return f}));var n,o=r("./src/base.ts"),i=r("./src/jsonobject.ts"),s=r("./src/list.ts"),a=r("./src/popup.ts"),l=r("./src/question_dropdown.ts"),u=r("./src/utils/cssClassBuilder.ts"),c=r("./src/utils/devices.ts"),p=r("./src/utils/utils.ts"),d=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},f=function(e){function t(t,r){var n=e.call(this)||this;return n.question=t,n.onSelectionChanged=r,n.minPageSize=25,n.loadingItemHeight=40,n._markdownMode=!1,n.selectedItemSelector=".sv-list__item--selected",n.itemSelector=".sv-list__item",n.itemsSettings={skip:0,take:0,totalCount:0,items:[]},n.isRunningLoadQuestionChoices=!1,n.popupCssClasses="sv-single-select-list",n.listModelFilterStringChanged=function(e){n.filterString!==e&&(n.filterString=e)},t.onPropertyChanged.add((function(e,t){"value"==t.name&&(n.showInputFieldComponent=n.question.showInputFieldComponent,n.showSelectedItemLocText=n.question.showSelectedItemLocText)})),n.showInputFieldComponent=n.question.showInputFieldComponent,n.showSelectedItemLocText=n.question.showSelectedItemLocText,n.listModel=n.createListModel(),n.updateAfterListModelCreated(n.listModel),n.setSearchEnabled(n.question.searchEnabled),n.createPopup(),n.resetItemsSettings(),n}return d(t,e),Object.defineProperty(t.prototype,"focusFirstInputSelector",{get:function(){return this.getFocusFirstInputSelector()},enumerable:!1,configurable:!0}),t.prototype.getFocusFirstInputSelector=function(){return c.IsTouch?this.isValueEmpty(this.question.value)?this.itemSelector:this.selectedItemSelector:!this.listModel.showFilter&&this.question.value?this.selectedItemSelector:""},t.prototype.resetItemsSettings=function(){this.itemsSettings.skip=0,this.itemsSettings.take=Math.max(this.minPageSize,this.question.choicesLazyLoadPageSize),this.itemsSettings.totalCount=0,this.itemsSettings.items=[]},t.prototype.setItems=function(e,t){this.itemsSettings.items=[].concat(this.itemsSettings.items,e),this.itemsSettings.totalCount=t,this.listModel.isAllDataLoaded=this.question.choicesLazyLoadEnabled&&this.itemsSettings.items.length==this.itemsSettings.totalCount,this.question.choices=this.itemsSettings.items},t.prototype.updateQuestionChoices=function(e){var t=this;if(!this.isRunningLoadQuestionChoices){var r=this.itemsSettings.skip+1<this.itemsSettings.totalCount;this.itemsSettings.skip&&!r||(this.isRunningLoadQuestionChoices=!0,this.question.survey.loadQuestionChoices({question:this.question,filter:this.filterString,skip:this.itemsSettings.skip,take:this.itemsSettings.take,setItems:function(r,n){t.isRunningLoadQuestionChoices=!1,t.setItems(r||[],n||0),t.popupRecalculatePosition(t.itemsSettings.skip===t.itemsSettings.take),e&&e()}}),this.itemsSettings.skip+=this.itemsSettings.take)}},t.prototype.updatePopupFocusFirstInputSelector=function(){this._popupModel.focusFirstInputSelector=this.focusFirstInputSelector},t.prototype.createPopup=function(){var e=this;this._popupModel=new a.PopupModel("sv-list",{model:this.listModel},"bottom","center",!1),this._popupModel.displayMode=c.IsTouch?"overlay":"popup",this._popupModel.positionMode="fixed",this._popupModel.isFocusedContent=c.IsTouch,this._popupModel.setWidthByTarget=!c.IsTouch,this.updatePopupFocusFirstInputSelector(),this.listModel.registerPropertyChangedHandlers(["showFilter"],(function(){e.updatePopupFocusFirstInputSelector()})),this._popupModel.cssClass=this.popupCssClasses,this._popupModel.onVisibilityChanged.add((function(t,r){r.isVisible&&(e.listModel.renderElements=!0),r.isVisible&&e.question.choicesLazyLoadEnabled&&(e.listModel.actions=[],e.updateQuestionChoices()),r.isVisible&&e.question.onOpenedCallBack&&(e.updatePopupFocusFirstInputSelector(),e.question.onOpenedCallBack()),r.isVisible||(e.onHidePopup(),e.question.choicesLazyLoadEnabled&&e.resetItemsSettings())}))},t.prototype.setFilterStringToListModel=function(e){var t=this;if(this.listModel.filterString=e,this.listModel.resetFocusedItem(),this.question.selectedItem&&this.question.selectedItem.text.indexOf(e)>=0)return this.listModel.focusedItem=this.getAvailableItems().filter((function(e){return e.id==t.question.selectedItem.value}))[0],void(this.listModel.filterString&&this.listModel.actions.map((function(e){return e.selectedValue=!1})));this.listModel.focusedItem&&this.listModel.isItemVisible(this.listModel.focusedItem)||this.listModel.focusFirstVisibleItem()},t.prototype.popupRecalculatePosition=function(e){var t=this;setTimeout((function(){t.popupModel.recalculatePosition(e)}),1)},t.prototype.onHidePopup=function(){this.resetFilterString(),this.question.suggestedItem=null,this.listModel.refresh()},t.prototype.getAvailableItems=function(){return this.question.visibleChoices},t.prototype.createListModel=function(){var e=this,t=this.getAvailableItems(),r=this.onSelectionChanged;r||(r=function(t){e.question.value=t.id,e.question.searchEnabled&&e.applyInputString(t),e._popupModel.toggleVisibility()});var n=new s.ListModel(t,r,!1,void 0,this.question.choicesLazyLoadEnabled?this.listModelFilterStringChanged:void 0,this.listElementId);return n.renderElements=!1,n.forceShowFilter=!0,n.areSameItemsCallback=function(e,t){return e===t},n},t.prototype.updateAfterListModelCreated=function(e){var t=this;e.isItemSelected=function(e){return!!e.selected},e.locOwner=this.question,e.onPropertyChanged.add((function(e,r){"hasVerticalScroller"==r.name&&(t.hasScroll=r.newValue)})),e.isAllDataLoaded=!this.question.choicesLazyLoadEnabled},t.prototype.updateCssClasses=function(e,t){this.popupModel.cssClass=(new u.CssClassBuilder).append(e).append(this.popupCssClasses).toString(),this.listModel.cssClasses=t},t.prototype.resetFilterString=function(){this.filterString&&(this.filterString=void 0)},t.prototype.clear=function(){this.inputString=null,this.hintString="",this.resetFilterString()},t.prototype.onSetFilterString=function(){var e=this;this.filterString&&!this.popupModel.isVisible&&(this.popupModel.isVisible=!0);var t=function(){e.setFilterStringToListModel(e.filterString),e.popupRecalculatePosition(!0)};this.question.choicesLazyLoadEnabled?(this.resetItemsSettings(),this.updateQuestionChoices(t)):t()},t.prototype.applyInputString=function(e){(null==e?void 0:e.locText.hasHtml)||this.question.inputFieldComponentName?(this._markdownMode=!0,this.inputString="",this.hintString=""):(this.inputString=null==e?void 0:e.title,this.hintString=null==e?void 0:e.title)},t.prototype.fixInputCase=function(){var e=this.hintStringMiddle;e&&this.inputString!=e&&(this.inputString=e)},t.prototype.applyHintString=function(e){(null==e?void 0:e.locText.hasHtml)||this.question.inputFieldComponentName?(this._markdownMode=!0,this.hintString=""):this.hintString=null==e?void 0:e.title},Object.defineProperty(t.prototype,"inputStringRendered",{get:function(){return this.inputString||""},set:function(e){this.inputString=e,this.filterString=e,this.applyHintString(this.listModel.focusedItem)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderRendered",{get:function(){return this.hintString?"":this.question.readOnlyText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"listElementId",{get:function(){return this.question.inputId+"_list"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringLC",{get:function(){var e;return(null===(e=this.hintString)||void 0===e?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputStringLC",{get:function(){var e;return(null===(e=this.inputString)||void 0===e?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintPrefix",{get:function(){return!!this.inputString&&this.hintStringLC.indexOf(this.inputStringLC)>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringPrefix",{get:function(){return this.inputString?this.hintString.substring(0,this.hintStringLC.indexOf(this.inputStringLC)):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintString",{get:function(){return!!this.question.searchEnabled&&this.hintStringLC&&this.hintStringLC.indexOf(this.inputStringLC)>=0||!this.question.searchEnabled&&this.hintStringLC&&!this.question.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringSuffix",{get:function(){return this.hintString.substring(this.hintStringLC.indexOf(this.inputStringLC)+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringMiddle",{get:function(){var e=this.hintStringLC.indexOf(this.inputStringLC);return-1==e?null:this.hintString.substring(e,e+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this._popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputReadOnly",{get:function(){return this.question.isInputReadOnly||this.searchEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filterStringEnabled",{get:function(){return!this.question.isInputReadOnly&&this.searchEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputMode",{get:function(){return c.IsTouch?"none":"text"},enumerable:!1,configurable:!0}),t.prototype.setSearchEnabled=function(e){this.listModel.searchEnabled=c.IsTouch,this.listModel.showSearchClearButton=c.IsTouch,this.searchEnabled=e},t.prototype.updateItems=function(){this.listModel.setItems(this.getAvailableItems())},t.prototype.onClick=function(e){if(this._popupModel.toggleVisibility(),this.focusItemOnClickAndPopup(),this.searchEnabled&&e&&e.target){var t=e.target.querySelector("input");t&&t.focus()}},t.prototype.focusItemOnClickAndPopup=function(){this._popupModel.isVisible&&this.question.value&&this.changeSelectionWithKeyboard(!1)},t.prototype.onClear=function(e){this.question.clearValue(),this._popupModel.isVisible=!1,e&&(e.preventDefault(),e.stopPropagation())},t.prototype.getSelectedAction=function(){return this.question.selectedItem||null},t.prototype.changeSelectionWithKeyboard=function(e){var t,r=this.listModel.focusedItem;e?this.listModel.focusPrevVisibleItem():this.listModel.focusNextVisibleItem(),this.beforeScrollToFocusedItem(r),this.scrollToFocusedItem(),this.afterScrollToFocusedItem(),this.ariaActivedescendant=null===(t=this.listModel.focusedItem)||void 0===t?void 0:t.elementId},t.prototype.beforeScrollToFocusedItem=function(e){this.question.value&&e&&(e.selectedValue=!1,this.listModel.focusedItem.selectedValue=!this.listModel.filterString,this.question.suggestedItem=this.listModel.focusedItem)},t.prototype.afterScrollToFocusedItem=function(){var e;this.question.value&&!this.listModel.filterString&&this.question.searchEnabled?this.applyInputString(this.listModel.focusedItem||this.question.selectedItem):this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.fixInputCase(),this.ariaActivedescendant=null===(e=this.listModel.focusedItem)||void 0===e?void 0:e.elementId},t.prototype.keyHandler=function(e){var t=e.which||e.keyCode;if(this.popupModel.isVisible&&38===e.keyCode)this.changeSelectionWithKeyboard(!0),e.preventDefault(),e.stopPropagation();else if(40===e.keyCode)this.popupModel.isVisible||this.popupModel.toggleVisibility(),this.changeSelectionWithKeyboard(!1),e.preventDefault(),e.stopPropagation();else if(this.popupModel.isVisible||13!==e.keyCode&&32!==e.keyCode)if(!this.popupModel.isVisible||13!==e.keyCode&&(32!==e.keyCode||this.question.searchEnabled&&this.inputString))if(46===t||8===t)this.searchEnabled||this.onClear(e);else if(27===e.keyCode)this._popupModel.isVisible=!1,this.hintString="",this.onEscape();else{if((38===e.keyCode||40===e.keyCode||32===e.keyCode&&!this.question.searchEnabled)&&(e.preventDefault(),e.stopPropagation()),32===e.keyCode&&this.question.searchEnabled)return;Object(p.doKey2ClickUp)(e,{processEsc:!1,disableTabStop:this.question.isInputReadOnly})}else 13===e.keyCode&&this.question.searchEnabled&&!this.inputString&&this.question instanceof l.QuestionDropdownModel&&!this._markdownMode&&this.question.value?(this._popupModel.isVisible=!1,this.onClear(e),this.question.survey.questionEditFinishCallback(this.question,e)):(this.listModel.selectFocusedItem(),this.onFocus(e),this.question.survey.questionEditFinishCallback(this.question,e)),e.preventDefault(),e.stopPropagation();else this.popupModel.toggleVisibility(),this.changeSelectionWithKeyboard(!1),e.preventDefault(),e.stopPropagation()},t.prototype.onEscape=function(){this.question.searchEnabled&&this.applyInputString(this.question.selectedItem)},t.prototype.onScroll=function(e){var t=e.target;t.scrollHeight-(t.scrollTop+t.offsetHeight)<=this.loadingItemHeight&&this.updateQuestionChoices()},t.prototype.onBlur=function(e){this.popupModel.isVisible&&c.IsTouch?this._popupModel.isVisible=!0:(this.popupModel.isVisible&&this.filterString&&this.listModel.selectFocusedItem(),this.resetFilterString(),this.inputString=null,this.hintString="",Object(p.doKey2ClickBlur)(e),this._popupModel.isVisible=!1,e.stopPropagation())},t.prototype.onFocus=function(e){this.setInputStringFromSelectedItem(this.question.selectedItem)},t.prototype.setInputStringFromSelectedItem=function(e){this.question.searchEnabled&&e?this.applyInputString(e):this.inputString=null},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.listModel&&this.listModel.dispose(),this.popupModel&&this.popupModel.dispose()},t.prototype.scrollToFocusedItem=function(){this.listModel.scrollToFocusedItem()},h([Object(i.property)({defaultValue:!0})],t.prototype,"searchEnabled",void 0),h([Object(i.property)({defaultValue:"",onSet:function(e,t){t.onSetFilterString()}})],t.prototype,"filterString",void 0),h([Object(i.property)({defaultValue:"",onSet:function(e,t){t.question.inputHasValue=!!e,t.showSelectedItemLocText=t.question.showSelectedItemLocText}})],t.prototype,"inputString",void 0),h([Object(i.property)({})],t.prototype,"showSelectedItemLocText",void 0),h([Object(i.property)({})],t.prototype,"showInputFieldComponent",void 0),h([Object(i.property)()],t.prototype,"ariaActivedescendant",void 0),h([Object(i.property)({defaultValue:!1,onSet:function(e,t){e?t.listModel.addScrollEventListener((function(e){t.onScroll(e)})):t.listModel.removeScrollEventListener()}})],t.prototype,"hasScroll",void 0),h([Object(i.property)({defaultValue:""})],t.prototype,"hintString",void 0),t}(o.Base)},"./src/dropdownMultiSelectListModel.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DropdownMultiSelectListModel",(function(){return d}));var n,o=r("./src/base.ts"),i=r("./src/dropdownListModel.ts"),s=r("./src/jsonobject.ts"),a=r("./src/multiSelectListModel.ts"),l=r("./src/settings.ts"),u=r("./src/utils/devices.ts"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},d=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.popupCssClasses="sv-multi-select-list",n.setHideSelectedItems(t.hideSelectedItems),n.syncFilterStringPlaceholder(),n.closeOnSelect=t.closeOnSelect,n}return c(t,e),t.prototype.updateListState=function(){this.listModel.updateState(),this.syncFilterStringPlaceholder()},t.prototype.syncFilterStringPlaceholder=function(){this.getSelectedActions().length||this.question.selectedItems.length||this.listModel.focusedItem?this.filterStringPlaceholder=void 0:this.filterStringPlaceholder=this.question.placeholder},t.prototype.getSelectedActions=function(){return this.listModel.actions.filter((function(e){return e.selected}))},t.prototype.getFocusFirstInputSelector=function(){return this.listModel.hideSelectedItems&&u.IsTouch&&!this.isValueEmpty(this.question.value)?this.itemSelector:e.prototype.getFocusFirstInputSelector.call(this)},t.prototype.createListModel=function(){var e=this,t=this.getAvailableItems(),r=this.onSelectionChanged;r||(r=function(t,r){e.resetFilterString(),"selectall"===t.value?e.selectAllItems():"added"===r&&t.value===l.settings.noneItemValue?e.selectNoneItem():"added"===r?e.selectItem(t.value):"removed"===r&&e.deselectItem(t.value),e.popupRecalculatePosition(!1),e.closeOnSelect&&(e.popupModel.isVisible=!1)});var n=new a.MultiSelectListModel(t,r,!1,void 0,this.question.choicesLazyLoadEnabled?this.listModelFilterStringChanged:void 0,this.listElementId);return n.forceShowFilter=!0,n},t.prototype.resetFilterString=function(){e.prototype.resetFilterString.call(this),this.inputString=null,this.hintString=""},Object.defineProperty(t.prototype,"shouldResetAfterCancel",{get:function(){return u.IsTouch&&!this.closeOnSelect},enumerable:!1,configurable:!0}),t.prototype.createPopup=function(){var t=this;e.prototype.createPopup.call(this),this.popupModel.onFooterActionsCreated.add((function(e,r){t.shouldResetAfterCancel&&r.actions.push({id:"sv-dropdown-done-button",title:t.doneButtonCaption,innerCss:"sv-popup__button--done",needSpace:!0,action:function(){t.popupModel.isVisible=!1},enabled:new o.ComputedUpdater((function(){return!t.isTwoValueEquals(t.question.renderedValue,t.previousValue)}))})})),this.popupModel.onVisibilityChanged.add((function(e,r){t.shouldResetAfterCancel&&r.isVisible&&(t.previousValue=[].concat(t.question.renderedValue||[]))})),this.popupModel.onCancel=function(){t.shouldResetAfterCancel&&(t.question.renderedValue=t.previousValue,t.updateListState())}},t.prototype.selectAllItems=function(){this.question.toggleSelectAll(),this.updateListState()},t.prototype.selectNoneItem=function(){this.question.renderedValue=[l.settings.noneItemValue],this.updateListState()},t.prototype.selectItem=function(e){var t=[].concat(this.question.renderedValue||[]);t.push(e),this.question.renderedValue=t,this.updateListState()},t.prototype.deselectItem=function(e){var t=[].concat(this.question.renderedValue||[]);t.splice(t.indexOf(e),1),this.question.renderedValue=t,this.applyHintString(this.listModel.focusedItem),this.updateListState()},t.prototype.clear=function(){e.prototype.clear.call(this),this.syncFilterStringPlaceholder()},t.prototype.onClear=function(t){e.prototype.onClear.call(this,t),this.updateListState()},t.prototype.setHideSelectedItems=function(e){this.listModel.hideSelectedItems=e,this.updateListState()},t.prototype.removeLastSelectedItem=function(){this.deselectItem(this.question.renderedValue[this.question.renderedValue.length-1]),this.popupRecalculatePosition(!1)},t.prototype.inputKeyHandler=function(e){8!==e.keyCode||this.filterString||(this.removeLastSelectedItem(),e.preventDefault(),e.stopPropagation())},t.prototype.setInputStringFromSelectedItem=function(e){this.question.searchEnabled&&(this.inputString=null)},t.prototype.focusItemOnClickAndPopup=function(){},t.prototype.onEscape=function(){},t.prototype.beforeScrollToFocusedItem=function(e){},t.prototype.afterScrollToFocusedItem=function(){var e;(null===(e=this.listModel.focusedItem)||void 0===e?void 0:e.selected)?this.hintString="":this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.syncFilterStringPlaceholder()},p([Object(s.property)({defaultValue:""})],t.prototype,"filterStringPlaceholder",void 0),p([Object(s.property)({defaultValue:!0})],t.prototype,"closeOnSelect",void 0),p([Object(s.property)()],t.prototype,"previousValue",void 0),p([Object(s.property)({localizable:{defaultStr:"tagboxDoneButtonCaption"}})],t.prototype,"doneButtonCaption",void 0),t}(i.DropdownListModel)},"./src/dxSurveyService.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"dxSurveyService",(function(){return o}));var n=r("./src/settings.ts"),o=function(){function e(){}return Object.defineProperty(e,"serviceUrl",{get:function(){return n.settings.surveyServiceUrl},set:function(e){n.settings.surveyServiceUrl=e},enumerable:!1,configurable:!0}),e.prototype.loadSurvey=function(t,r){var n=new XMLHttpRequest;n.open("GET",e.serviceUrl+"/getSurvey?surveyId="+t),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.onload=function(){var e=JSON.parse(n.response);r(200==n.status,e,n.response)},n.send()},e.prototype.getSurveyJsonAndIsCompleted=function(t,r,n){var o=new XMLHttpRequest;o.open("GET",e.serviceUrl+"/getSurveyAndIsCompleted?surveyId="+t+"&clientId="+r),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onload=function(){var e=JSON.parse(o.response),t=e?e.survey:null,r=e?e.isCompleted:null;n(200==o.status,t,r,o.response)},o.send()},e.prototype.sendResult=function(t,r,n,o,i){void 0===o&&(o=null),void 0===i&&(i=!1);var s=new XMLHttpRequest;s.open("POST",e.serviceUrl+"/post/"),s.setRequestHeader("Content-Type","application/json; charset=utf-8");var a={postId:t,surveyResult:JSON.stringify(r)};o&&(a.clientId=o),i&&(a.isPartialCompleted=!0);var l=JSON.stringify(a);s.onload=s.onerror=function(){n&&n(200===s.status,s.response,s)},s.send(l)},e.prototype.sendFile=function(t,r,n){var o=new XMLHttpRequest;o.onload=o.onerror=function(){n&&n(200==o.status,JSON.parse(o.response))},o.open("POST",e.serviceUrl+"/upload/",!0);var i=new FormData;i.append("file",r),i.append("postId",t),o.send(i)},e.prototype.getResult=function(t,r,n){var o=new XMLHttpRequest,i="resultId="+t+"&name="+r;o.open("GET",e.serviceUrl+"/getResult?"+i),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onload=function(){var e=null,t=null;if(200==o.status)for(var r in t=[],(e=JSON.parse(o.response)).QuestionResult){var i={name:r,value:e.QuestionResult[r]};t.push(i)}n(200==o.status,e,t,o.response)},o.send()},e.prototype.isCompleted=function(t,r,n){var o=new XMLHttpRequest,i="resultId="+t+"&clientId="+r;o.open("GET",e.serviceUrl+"/isCompleted?"+i),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onload=function(){var e=null;200==o.status&&(e=JSON.parse(o.response)),n(200==o.status,e,o.response)},o.send()},e}()},"./src/element-helper.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ElementHelper",(function(){return n}));var n=function(){function e(){}return e.focusElement=function(e){e&&e.focus()},e.visibility=function(e){var t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&(!e.parentElement||this.visibility(e.parentElement))},e.getNextElementPreorder=function(e){var t=e.nextElementSibling?e.nextElementSibling:e.parentElement.firstElementChild;return this.visibility(t)?t:this.getNextElementPreorder(t)},e.getNextElementPostorder=function(e){var t=e.previousElementSibling?e.previousElementSibling:e.parentElement.lastElementChild;return this.visibility(t)?t:this.getNextElementPostorder(t)},e.hasHorizontalScroller=function(e){return!!e&&e.scrollWidth>e.offsetWidth},e.hasVerticalScroller=function(e){return!!e&&e.scrollHeight>e.offsetHeight},e}()},"./src/entries/chunks/model.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"Version",(function(){return Ie})),r.d(t,"checkLibraryVersion",(function(){return De}));var n=r("./src/settings.ts");r.d(t,"settings",(function(){return n.settings}));var o=r("./src/helpers.ts");r.d(t,"Helpers",(function(){return o.Helpers}));var i=r("./src/validator.ts");r.d(t,"AnswerCountValidator",(function(){return i.AnswerCountValidator})),r.d(t,"EmailValidator",(function(){return i.EmailValidator})),r.d(t,"NumericValidator",(function(){return i.NumericValidator})),r.d(t,"RegexValidator",(function(){return i.RegexValidator})),r.d(t,"SurveyValidator",(function(){return i.SurveyValidator})),r.d(t,"TextValidator",(function(){return i.TextValidator})),r.d(t,"ValidatorResult",(function(){return i.ValidatorResult})),r.d(t,"ExpressionValidator",(function(){return i.ExpressionValidator})),r.d(t,"ValidatorRunner",(function(){return i.ValidatorRunner}));var s=r("./src/itemvalue.ts");r.d(t,"ItemValue",(function(){return s.ItemValue}));var a=r("./src/base.ts");r.d(t,"Base",(function(){return a.Base})),r.d(t,"Event",(function(){return a.Event})),r.d(t,"EventBase",(function(){return a.EventBase})),r.d(t,"ArrayChanges",(function(){return a.ArrayChanges})),r.d(t,"ComputedUpdater",(function(){return a.ComputedUpdater}));var l=r("./src/survey-error.ts");r.d(t,"SurveyError",(function(){return l.SurveyError}));var u=r("./src/survey-element.ts");r.d(t,"SurveyElementCore",(function(){return u.SurveyElementCore})),r.d(t,"SurveyElement",(function(){return u.SurveyElement})),r.d(t,"DragTypeOverMeEnum",(function(){return u.DragTypeOverMeEnum}));var c=r("./src/calculatedValue.ts");r.d(t,"CalculatedValue",(function(){return c.CalculatedValue}));var p=r("./src/error.ts");r.d(t,"CustomError",(function(){return p.CustomError})),r.d(t,"AnswerRequiredError",(function(){return p.AnswerRequiredError})),r.d(t,"OneAnswerRequiredError",(function(){return p.OneAnswerRequiredError})),r.d(t,"RequreNumericError",(function(){return p.RequreNumericError})),r.d(t,"ExceedSizeError",(function(){return p.ExceedSizeError}));var d=r("./src/localizablestring.ts");r.d(t,"LocalizableString",(function(){return d.LocalizableString})),r.d(t,"LocalizableStrings",(function(){return d.LocalizableStrings}));var h=r("./src/expressionItems.ts");r.d(t,"HtmlConditionItem",(function(){return h.HtmlConditionItem})),r.d(t,"UrlConditionItem",(function(){return h.UrlConditionItem}));var f=r("./src/choicesRestful.ts");r.d(t,"ChoicesRestful",(function(){return f.ChoicesRestful})),r.d(t,"ChoicesRestfull",(function(){return f.ChoicesRestfull}));var m=r("./src/functionsfactory.ts");r.d(t,"FunctionFactory",(function(){return m.FunctionFactory})),r.d(t,"registerFunction",(function(){return m.registerFunction}));var g=r("./src/conditions.ts");r.d(t,"ConditionRunner",(function(){return g.ConditionRunner})),r.d(t,"ExpressionRunner",(function(){return g.ExpressionRunner})),r.d(t,"ExpressionExecutor",(function(){return g.ExpressionExecutor}));var b=r("./src/expressions/expressions.ts");r.d(t,"Operand",(function(){return b.Operand})),r.d(t,"Const",(function(){return b.Const})),r.d(t,"BinaryOperand",(function(){return b.BinaryOperand})),r.d(t,"Variable",(function(){return b.Variable})),r.d(t,"FunctionOperand",(function(){return b.FunctionOperand})),r.d(t,"ArrayOperand",(function(){return b.ArrayOperand})),r.d(t,"UnaryOperand",(function(){return b.UnaryOperand}));var y=r("./src/conditionsParser.ts");r.d(t,"ConditionsParser",(function(){return y.ConditionsParser}));var v=r("./src/conditionProcessValue.ts");r.d(t,"ProcessValue",(function(){return v.ProcessValue}));var x=r("./src/jsonobject.ts");r.d(t,"JsonError",(function(){return x.JsonError})),r.d(t,"JsonIncorrectTypeError",(function(){return x.JsonIncorrectTypeError})),r.d(t,"JsonMetadata",(function(){return x.JsonMetadata})),r.d(t,"JsonMetadataClass",(function(){return x.JsonMetadataClass})),r.d(t,"JsonMissingTypeError",(function(){return x.JsonMissingTypeError})),r.d(t,"JsonMissingTypeErrorBase",(function(){return x.JsonMissingTypeErrorBase})),r.d(t,"JsonObject",(function(){return x.JsonObject})),r.d(t,"JsonObjectProperty",(function(){return x.JsonObjectProperty})),r.d(t,"JsonRequiredPropertyError",(function(){return x.JsonRequiredPropertyError})),r.d(t,"JsonUnknownPropertyError",(function(){return x.JsonUnknownPropertyError})),r.d(t,"Serializer",(function(){return x.Serializer})),r.d(t,"property",(function(){return x.property})),r.d(t,"propertyArray",(function(){return x.propertyArray}));var w=r("./src/question_matrixdropdownbase.ts");r.d(t,"MatrixDropdownCell",(function(){return w.MatrixDropdownCell})),r.d(t,"MatrixDropdownRowModelBase",(function(){return w.MatrixDropdownRowModelBase})),r.d(t,"QuestionMatrixDropdownModelBase",(function(){return w.QuestionMatrixDropdownModelBase}));var C=r("./src/question_matrixdropdowncolumn.ts");r.d(t,"MatrixDropdownColumn",(function(){return C.MatrixDropdownColumn})),r.d(t,"matrixDropdownColumnTypes",(function(){return C.matrixDropdownColumnTypes}));var P=r("./src/question_matrixdropdownrendered.ts");r.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return P.QuestionMatrixDropdownRenderedCell})),r.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return P.QuestionMatrixDropdownRenderedRow})),r.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return P.QuestionMatrixDropdownRenderedTable}));var _=r("./src/question_matrixdropdown.ts");r.d(t,"MatrixDropdownRowModel",(function(){return _.MatrixDropdownRowModel})),r.d(t,"QuestionMatrixDropdownModel",(function(){return _.QuestionMatrixDropdownModel}));var S=r("./src/question_matrixdynamic.ts");r.d(t,"MatrixDynamicRowModel",(function(){return S.MatrixDynamicRowModel})),r.d(t,"QuestionMatrixDynamicModel",(function(){return S.QuestionMatrixDynamicModel}));var V=r("./src/question_matrix.ts");r.d(t,"MatrixRowModel",(function(){return V.MatrixRowModel})),r.d(t,"MatrixCells",(function(){return V.MatrixCells})),r.d(t,"QuestionMatrixModel",(function(){return V.QuestionMatrixModel}));var E=r("./src/martixBase.ts");r.d(t,"QuestionMatrixBaseModel",(function(){return E.QuestionMatrixBaseModel}));var O=r("./src/question_multipletext.ts");r.d(t,"MultipleTextItemModel",(function(){return O.MultipleTextItemModel})),r.d(t,"QuestionMultipleTextModel",(function(){return O.QuestionMultipleTextModel})),r.d(t,"MultipleTextEditorModel",(function(){return O.MultipleTextEditorModel}));var T=r("./src/panel.ts");r.d(t,"PanelModel",(function(){return T.PanelModel})),r.d(t,"PanelModelBase",(function(){return T.PanelModelBase})),r.d(t,"QuestionRowModel",(function(){return T.QuestionRowModel}));var k=r("./src/flowpanel.ts");r.d(t,"FlowPanelModel",(function(){return k.FlowPanelModel}));var R=r("./src/page.ts");r.d(t,"PageModel",(function(){return R.PageModel})),r("./src/template-renderer.ts");var I=r("./src/defaultTitle.ts");r.d(t,"DefaultTitleModel",(function(){return I.DefaultTitleModel}));var j=r("./src/question.ts");r.d(t,"Question",(function(){return j.Question}));var D=r("./src/questionnonvalue.ts");r.d(t,"QuestionNonValue",(function(){return D.QuestionNonValue}));var q=r("./src/question_empty.ts");r.d(t,"QuestionEmptyModel",(function(){return q.QuestionEmptyModel}));var M=r("./src/question_baseselect.ts");r.d(t,"QuestionCheckboxBase",(function(){return M.QuestionCheckboxBase})),r.d(t,"QuestionSelectBase",(function(){return M.QuestionSelectBase}));var L=r("./src/question_checkbox.ts");r.d(t,"QuestionCheckboxModel",(function(){return L.QuestionCheckboxModel}));var A=r("./src/question_tagbox.ts");r.d(t,"QuestionTagboxModel",(function(){return A.QuestionTagboxModel}));var N=r("./src/question_ranking.ts");r.d(t,"QuestionRankingModel",(function(){return N.QuestionRankingModel}));var B=r("./src/question_comment.ts");r.d(t,"QuestionCommentModel",(function(){return B.QuestionCommentModel}));var F=r("./src/question_dropdown.ts");r.d(t,"QuestionDropdownModel",(function(){return F.QuestionDropdownModel}));var z=r("./src/questionfactory.ts");r.d(t,"QuestionFactory",(function(){return z.QuestionFactory})),r.d(t,"ElementFactory",(function(){return z.ElementFactory}));var Q=r("./src/question_file.ts");r.d(t,"QuestionFileModel",(function(){return Q.QuestionFileModel}));var H=r("./src/question_html.ts");r.d(t,"QuestionHtmlModel",(function(){return H.QuestionHtmlModel}));var U=r("./src/question_radiogroup.ts");r.d(t,"QuestionRadiogroupModel",(function(){return U.QuestionRadiogroupModel}));var W=r("./src/question_rating.ts");r.d(t,"QuestionRatingModel",(function(){return W.QuestionRatingModel})),r.d(t,"RenderedRatingItem",(function(){return W.RenderedRatingItem}));var G=r("./src/question_expression.ts");r.d(t,"QuestionExpressionModel",(function(){return G.QuestionExpressionModel}));var J=r("./src/question_textbase.ts");r.d(t,"QuestionTextBase",(function(){return J.QuestionTextBase})),r.d(t,"CharacterCounter",(function(){return J.CharacterCounter}));var $=r("./src/question_text.ts");r.d(t,"QuestionTextModel",(function(){return $.QuestionTextModel}));var K=r("./src/question_boolean.ts");r.d(t,"QuestionBooleanModel",(function(){return K.QuestionBooleanModel}));var Z=r("./src/question_imagepicker.ts");r.d(t,"QuestionImagePickerModel",(function(){return Z.QuestionImagePickerModel})),r.d(t,"ImageItemValue",(function(){return Z.ImageItemValue}));var X=r("./src/question_image.ts");r.d(t,"QuestionImageModel",(function(){return X.QuestionImageModel}));var Y=r("./src/question_signaturepad.ts");r.d(t,"QuestionSignaturePadModel",(function(){return Y.QuestionSignaturePadModel}));var ee=r("./src/question_paneldynamic.ts");r.d(t,"QuestionPanelDynamicModel",(function(){return ee.QuestionPanelDynamicModel})),r.d(t,"QuestionPanelDynamicItem",(function(){return ee.QuestionPanelDynamicItem}));var te=r("./src/surveytimer.ts");r.d(t,"SurveyTimer",(function(){return te.SurveyTimer}));var re=r("./src/surveyTimerModel.ts");r.d(t,"SurveyTimerModel",(function(){return re.SurveyTimerModel}));var ne=r("./src/surveyToc.ts");r.d(t,"tryNavigateToPage",(function(){return ne.tryNavigateToPage})),r.d(t,"createTOCListModel",(function(){return ne.createTOCListModel})),r.d(t,"getTocRootCss",(function(){return ne.getTocRootCss}));var oe=r("./src/surveyProgress.ts");r.d(t,"SurveyProgressModel",(function(){return oe.SurveyProgressModel}));var ie=r("./src/surveyProgressButtons.ts");r.d(t,"SurveyProgressButtonsModel",(function(){return ie.SurveyProgressButtonsModel}));var se=r("./src/survey.ts");r.d(t,"SurveyModel",(function(){return se.SurveyModel}));var ae=r("./src/trigger.ts");r.d(t,"SurveyTrigger",(function(){return ae.SurveyTrigger})),r.d(t,"SurveyTriggerComplete",(function(){return ae.SurveyTriggerComplete})),r.d(t,"SurveyTriggerSetValue",(function(){return ae.SurveyTriggerSetValue})),r.d(t,"SurveyTriggerVisible",(function(){return ae.SurveyTriggerVisible})),r.d(t,"SurveyTriggerCopyValue",(function(){return ae.SurveyTriggerCopyValue})),r.d(t,"SurveyTriggerRunExpression",(function(){return ae.SurveyTriggerRunExpression})),r.d(t,"Trigger",(function(){return ae.Trigger}));var le=r("./src/popup-survey.ts");r.d(t,"PopupSurveyModel",(function(){return le.PopupSurveyModel})),r.d(t,"SurveyWindowModel",(function(){return le.SurveyWindowModel}));var ue=r("./src/textPreProcessor.ts");r.d(t,"TextPreProcessor",(function(){return ue.TextPreProcessor}));var ce=r("./src/notifier.ts");r.d(t,"Notifier",(function(){return ce.Notifier}));var pe=r("./src/dxSurveyService.ts");r.d(t,"dxSurveyService",(function(){return pe.dxSurveyService}));var de=r("./src/localization/english.ts");r.d(t,"englishStrings",(function(){return de.englishStrings}));var he=r("./src/surveyStrings.ts");r.d(t,"surveyLocalization",(function(){return he.surveyLocalization})),r.d(t,"surveyStrings",(function(){return he.surveyStrings}));var fe=r("./src/questionCustomWidgets.ts");r.d(t,"QuestionCustomWidget",(function(){return fe.QuestionCustomWidget})),r.d(t,"CustomWidgetCollection",(function(){return fe.CustomWidgetCollection}));var me=r("./src/question_custom.ts");r.d(t,"QuestionCustomModel",(function(){return me.QuestionCustomModel})),r.d(t,"QuestionCompositeModel",(function(){return me.QuestionCompositeModel})),r.d(t,"ComponentQuestionJSON",(function(){return me.ComponentQuestionJSON})),r.d(t,"ComponentCollection",(function(){return me.ComponentCollection}));var ge=r("./src/stylesmanager.ts");r.d(t,"StylesManager",(function(){return ge.StylesManager}));var be=r("./src/list.ts");r.d(t,"ListModel",(function(){return be.ListModel}));var ye=r("./src/multiSelectListModel.ts");r.d(t,"MultiSelectListModel",(function(){return ye.MultiSelectListModel}));var ve=r("./src/popup.ts");r.d(t,"PopupModel",(function(){return ve.PopupModel})),r.d(t,"createDialogOptions",(function(){return ve.createDialogOptions}));var xe=r("./src/popup-view-model.ts");r.d(t,"PopupBaseViewModel",(function(){return xe.PopupBaseViewModel}));var we=r("./src/popup-dropdown-view-model.ts");r.d(t,"PopupDropdownViewModel",(function(){return we.PopupDropdownViewModel}));var Ce=r("./src/popup-modal-view-model.ts");r.d(t,"PopupModalViewModel",(function(){return Ce.PopupModalViewModel}));var Pe=r("./src/popup-utils.ts");r.d(t,"createPopupViewModel",(function(){return Pe.createPopupViewModel})),r.d(t,"createPopupModalViewModel",(function(){return Pe.createPopupModalViewModel}));var _e=r("./src/dropdownListModel.ts");r.d(t,"DropdownListModel",(function(){return _e.DropdownListModel}));var Se=r("./src/dropdownMultiSelectListModel.ts");r.d(t,"DropdownMultiSelectListModel",(function(){return Se.DropdownMultiSelectListModel}));var Ve=r("./src/question_buttongroup.ts");r.d(t,"QuestionButtonGroupModel",(function(){return Ve.QuestionButtonGroupModel})),r.d(t,"ButtonGroupItemModel",(function(){return Ve.ButtonGroupItemModel})),r.d(t,"ButtonGroupItemValue",(function(){return Ve.ButtonGroupItemValue}));var Ee=r("./src/utils/devices.ts");r.d(t,"IsMobile",(function(){return Ee.IsMobile})),r.d(t,"IsTouch",(function(){return Ee.IsTouch})),r.d(t,"_setIsTouch",(function(){return Ee._setIsTouch}));var Oe=r("./src/utils/utils.ts");r.d(t,"confirmAction",(function(){return Oe.confirmAction})),r.d(t,"detectIEOrEdge",(function(){return Oe.detectIEOrEdge})),r.d(t,"doKey2ClickUp",(function(){return Oe.doKey2ClickUp})),r.d(t,"doKey2ClickDown",(function(){return Oe.doKey2ClickDown})),r.d(t,"doKey2ClickBlur",(function(){return Oe.doKey2ClickBlur})),r.d(t,"loadFileFromBase64",(function(){return Oe.loadFileFromBase64})),r.d(t,"increaseHeightByContent",(function(){return Oe.increaseHeightByContent})),r.d(t,"createSvg",(function(){return Oe.createSvg})),r.d(t,"sanitizeEditableContent",(function(){return Oe.sanitizeEditableContent}));var Te=r("./src/utils/cssClassBuilder.ts");r.d(t,"CssClassBuilder",(function(){return Te.CssClassBuilder}));var ke=r("./src/defaultCss/defaultV2Css.ts");r.d(t,"surveyCss",(function(){return ke.surveyCss})),r.d(t,"defaultV2Css",(function(){return ke.defaultV2Css})),r.d(t,"defaultV2ThemeName",(function(){return ke.defaultV2ThemeName}));var Re=r("./src/dragdrop/core.ts");r.d(t,"DragDropCore",(function(){return Re.DragDropCore}));var Ie,je=r("./src/dragdrop/choices.ts");function De(e,t){if(Ie!=e){var r="survey-core has version '"+Ie+"' and "+t+" has version '"+e+"'. SurveyJS libraries should have the same versions to work correctly.";console.error(r)}}r.d(t,"DragDropChoices",(function(){return je.DragDropChoices})),Ie="1.9.90"},"./src/entries/core-wo-model.ts":function(e,t,r){"use strict";r.r(t);var n=r("./src/entries/chunks/model.ts");r.d(t,"Version",(function(){return n.Version})),r.d(t,"checkLibraryVersion",(function(){return n.checkLibraryVersion})),r.d(t,"settings",(function(){return n.settings})),r.d(t,"Helpers",(function(){return n.Helpers})),r.d(t,"AnswerCountValidator",(function(){return n.AnswerCountValidator})),r.d(t,"EmailValidator",(function(){return n.EmailValidator})),r.d(t,"NumericValidator",(function(){return n.NumericValidator})),r.d(t,"RegexValidator",(function(){return n.RegexValidator})),r.d(t,"SurveyValidator",(function(){return n.SurveyValidator})),r.d(t,"TextValidator",(function(){return n.TextValidator})),r.d(t,"ValidatorResult",(function(){return n.ValidatorResult})),r.d(t,"ExpressionValidator",(function(){return n.ExpressionValidator})),r.d(t,"ValidatorRunner",(function(){return n.ValidatorRunner})),r.d(t,"ItemValue",(function(){return n.ItemValue})),r.d(t,"Base",(function(){return n.Base})),r.d(t,"Event",(function(){return n.Event})),r.d(t,"EventBase",(function(){return n.EventBase})),r.d(t,"ArrayChanges",(function(){return n.ArrayChanges})),r.d(t,"ComputedUpdater",(function(){return n.ComputedUpdater})),r.d(t,"SurveyError",(function(){return n.SurveyError})),r.d(t,"SurveyElementCore",(function(){return n.SurveyElementCore})),r.d(t,"SurveyElement",(function(){return n.SurveyElement})),r.d(t,"DragTypeOverMeEnum",(function(){return n.DragTypeOverMeEnum})),r.d(t,"CalculatedValue",(function(){return n.CalculatedValue})),r.d(t,"CustomError",(function(){return n.CustomError})),r.d(t,"AnswerRequiredError",(function(){return n.AnswerRequiredError})),r.d(t,"OneAnswerRequiredError",(function(){return n.OneAnswerRequiredError})),r.d(t,"RequreNumericError",(function(){return n.RequreNumericError})),r.d(t,"ExceedSizeError",(function(){return n.ExceedSizeError})),r.d(t,"LocalizableString",(function(){return n.LocalizableString})),r.d(t,"LocalizableStrings",(function(){return n.LocalizableStrings})),r.d(t,"HtmlConditionItem",(function(){return n.HtmlConditionItem})),r.d(t,"UrlConditionItem",(function(){return n.UrlConditionItem})),r.d(t,"ChoicesRestful",(function(){return n.ChoicesRestful})),r.d(t,"ChoicesRestfull",(function(){return n.ChoicesRestfull})),r.d(t,"FunctionFactory",(function(){return n.FunctionFactory})),r.d(t,"registerFunction",(function(){return n.registerFunction})),r.d(t,"ConditionRunner",(function(){return n.ConditionRunner})),r.d(t,"ExpressionRunner",(function(){return n.ExpressionRunner})),r.d(t,"ExpressionExecutor",(function(){return n.ExpressionExecutor})),r.d(t,"Operand",(function(){return n.Operand})),r.d(t,"Const",(function(){return n.Const})),r.d(t,"BinaryOperand",(function(){return n.BinaryOperand})),r.d(t,"Variable",(function(){return n.Variable})),r.d(t,"FunctionOperand",(function(){return n.FunctionOperand})),r.d(t,"ArrayOperand",(function(){return n.ArrayOperand})),r.d(t,"UnaryOperand",(function(){return n.UnaryOperand})),r.d(t,"ConditionsParser",(function(){return n.ConditionsParser})),r.d(t,"ProcessValue",(function(){return n.ProcessValue})),r.d(t,"JsonError",(function(){return n.JsonError})),r.d(t,"JsonIncorrectTypeError",(function(){return n.JsonIncorrectTypeError})),r.d(t,"JsonMetadata",(function(){return n.JsonMetadata})),r.d(t,"JsonMetadataClass",(function(){return n.JsonMetadataClass})),r.d(t,"JsonMissingTypeError",(function(){return n.JsonMissingTypeError})),r.d(t,"JsonMissingTypeErrorBase",(function(){return n.JsonMissingTypeErrorBase})),r.d(t,"JsonObject",(function(){return n.JsonObject})),r.d(t,"JsonObjectProperty",(function(){return n.JsonObjectProperty})),r.d(t,"JsonRequiredPropertyError",(function(){return n.JsonRequiredPropertyError})),r.d(t,"JsonUnknownPropertyError",(function(){return n.JsonUnknownPropertyError})),r.d(t,"Serializer",(function(){return n.Serializer})),r.d(t,"property",(function(){return n.property})),r.d(t,"propertyArray",(function(){return n.propertyArray})),r.d(t,"MatrixDropdownCell",(function(){return n.MatrixDropdownCell})),r.d(t,"MatrixDropdownRowModelBase",(function(){return n.MatrixDropdownRowModelBase})),r.d(t,"QuestionMatrixDropdownModelBase",(function(){return n.QuestionMatrixDropdownModelBase})),r.d(t,"MatrixDropdownColumn",(function(){return n.MatrixDropdownColumn})),r.d(t,"matrixDropdownColumnTypes",(function(){return n.matrixDropdownColumnTypes})),r.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return n.QuestionMatrixDropdownRenderedCell})),r.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return n.QuestionMatrixDropdownRenderedRow})),r.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return n.QuestionMatrixDropdownRenderedTable})),r.d(t,"MatrixDropdownRowModel",(function(){return n.MatrixDropdownRowModel})),r.d(t,"QuestionMatrixDropdownModel",(function(){return n.QuestionMatrixDropdownModel})),r.d(t,"MatrixDynamicRowModel",(function(){return n.MatrixDynamicRowModel})),r.d(t,"QuestionMatrixDynamicModel",(function(){return n.QuestionMatrixDynamicModel})),r.d(t,"MatrixRowModel",(function(){return n.MatrixRowModel})),r.d(t,"MatrixCells",(function(){return n.MatrixCells})),r.d(t,"QuestionMatrixModel",(function(){return n.QuestionMatrixModel})),r.d(t,"QuestionMatrixBaseModel",(function(){return n.QuestionMatrixBaseModel})),r.d(t,"MultipleTextItemModel",(function(){return n.MultipleTextItemModel})),r.d(t,"QuestionMultipleTextModel",(function(){return n.QuestionMultipleTextModel})),r.d(t,"MultipleTextEditorModel",(function(){return n.MultipleTextEditorModel})),r.d(t,"PanelModel",(function(){return n.PanelModel})),r.d(t,"PanelModelBase",(function(){return n.PanelModelBase})),r.d(t,"QuestionRowModel",(function(){return n.QuestionRowModel})),r.d(t,"FlowPanelModel",(function(){return n.FlowPanelModel})),r.d(t,"PageModel",(function(){return n.PageModel})),r.d(t,"DefaultTitleModel",(function(){return n.DefaultTitleModel})),r.d(t,"Question",(function(){return n.Question})),r.d(t,"QuestionNonValue",(function(){return n.QuestionNonValue})),r.d(t,"QuestionEmptyModel",(function(){return n.QuestionEmptyModel})),r.d(t,"QuestionCheckboxBase",(function(){return n.QuestionCheckboxBase})),r.d(t,"QuestionSelectBase",(function(){return n.QuestionSelectBase})),r.d(t,"QuestionCheckboxModel",(function(){return n.QuestionCheckboxModel})),r.d(t,"QuestionTagboxModel",(function(){return n.QuestionTagboxModel})),r.d(t,"QuestionRankingModel",(function(){return n.QuestionRankingModel})),r.d(t,"QuestionCommentModel",(function(){return n.QuestionCommentModel})),r.d(t,"QuestionDropdownModel",(function(){return n.QuestionDropdownModel})),r.d(t,"QuestionFactory",(function(){return n.QuestionFactory})),r.d(t,"ElementFactory",(function(){return n.ElementFactory})),r.d(t,"QuestionFileModel",(function(){return n.QuestionFileModel})),r.d(t,"QuestionHtmlModel",(function(){return n.QuestionHtmlModel})),r.d(t,"QuestionRadiogroupModel",(function(){return n.QuestionRadiogroupModel})),r.d(t,"QuestionRatingModel",(function(){return n.QuestionRatingModel})),r.d(t,"RenderedRatingItem",(function(){return n.RenderedRatingItem})),r.d(t,"QuestionExpressionModel",(function(){return n.QuestionExpressionModel})),r.d(t,"QuestionTextBase",(function(){return n.QuestionTextBase})),r.d(t,"CharacterCounter",(function(){return n.CharacterCounter})),r.d(t,"QuestionTextModel",(function(){return n.QuestionTextModel})),r.d(t,"QuestionBooleanModel",(function(){return n.QuestionBooleanModel})),r.d(t,"QuestionImagePickerModel",(function(){return n.QuestionImagePickerModel})),r.d(t,"ImageItemValue",(function(){return n.ImageItemValue})),r.d(t,"QuestionImageModel",(function(){return n.QuestionImageModel})),r.d(t,"QuestionSignaturePadModel",(function(){return n.QuestionSignaturePadModel})),r.d(t,"QuestionPanelDynamicModel",(function(){return n.QuestionPanelDynamicModel})),r.d(t,"QuestionPanelDynamicItem",(function(){return n.QuestionPanelDynamicItem})),r.d(t,"SurveyTimer",(function(){return n.SurveyTimer})),r.d(t,"SurveyTimerModel",(function(){return n.SurveyTimerModel})),r.d(t,"tryNavigateToPage",(function(){return n.tryNavigateToPage})),r.d(t,"createTOCListModel",(function(){return n.createTOCListModel})),r.d(t,"getTocRootCss",(function(){return n.getTocRootCss})),r.d(t,"SurveyProgressModel",(function(){return n.SurveyProgressModel})),r.d(t,"SurveyProgressButtonsModel",(function(){return n.SurveyProgressButtonsModel})),r.d(t,"SurveyModel",(function(){return n.SurveyModel})),r.d(t,"SurveyTrigger",(function(){return n.SurveyTrigger})),r.d(t,"SurveyTriggerComplete",(function(){return n.SurveyTriggerComplete})),r.d(t,"SurveyTriggerSetValue",(function(){return n.SurveyTriggerSetValue})),r.d(t,"SurveyTriggerVisible",(function(){return n.SurveyTriggerVisible})),r.d(t,"SurveyTriggerCopyValue",(function(){return n.SurveyTriggerCopyValue})),r.d(t,"SurveyTriggerRunExpression",(function(){return n.SurveyTriggerRunExpression})),r.d(t,"Trigger",(function(){return n.Trigger})),r.d(t,"PopupSurveyModel",(function(){return n.PopupSurveyModel})),r.d(t,"SurveyWindowModel",(function(){return n.SurveyWindowModel})),r.d(t,"TextPreProcessor",(function(){return n.TextPreProcessor})),r.d(t,"Notifier",(function(){return n.Notifier})),r.d(t,"dxSurveyService",(function(){return n.dxSurveyService})),r.d(t,"englishStrings",(function(){return n.englishStrings})),r.d(t,"surveyLocalization",(function(){return n.surveyLocalization})),r.d(t,"surveyStrings",(function(){return n.surveyStrings})),r.d(t,"QuestionCustomWidget",(function(){return n.QuestionCustomWidget})),r.d(t,"CustomWidgetCollection",(function(){return n.CustomWidgetCollection})),r.d(t,"QuestionCustomModel",(function(){return n.QuestionCustomModel})),r.d(t,"QuestionCompositeModel",(function(){return n.QuestionCompositeModel})),r.d(t,"ComponentQuestionJSON",(function(){return n.ComponentQuestionJSON})),r.d(t,"ComponentCollection",(function(){return n.ComponentCollection})),r.d(t,"StylesManager",(function(){return n.StylesManager})),r.d(t,"ListModel",(function(){return n.ListModel})),r.d(t,"MultiSelectListModel",(function(){return n.MultiSelectListModel})),r.d(t,"PopupModel",(function(){return n.PopupModel})),r.d(t,"createDialogOptions",(function(){return n.createDialogOptions})),r.d(t,"PopupBaseViewModel",(function(){return n.PopupBaseViewModel})),r.d(t,"PopupDropdownViewModel",(function(){return n.PopupDropdownViewModel})),r.d(t,"PopupModalViewModel",(function(){return n.PopupModalViewModel})),r.d(t,"createPopupViewModel",(function(){return n.createPopupViewModel})),r.d(t,"createPopupModalViewModel",(function(){return n.createPopupModalViewModel})),r.d(t,"DropdownListModel",(function(){return n.DropdownListModel})),r.d(t,"DropdownMultiSelectListModel",(function(){return n.DropdownMultiSelectListModel})),r.d(t,"QuestionButtonGroupModel",(function(){return n.QuestionButtonGroupModel})),r.d(t,"ButtonGroupItemModel",(function(){return n.ButtonGroupItemModel})),r.d(t,"ButtonGroupItemValue",(function(){return n.ButtonGroupItemValue})),r.d(t,"IsMobile",(function(){return n.IsMobile})),r.d(t,"IsTouch",(function(){return n.IsTouch})),r.d(t,"_setIsTouch",(function(){return n._setIsTouch})),r.d(t,"confirmAction",(function(){return n.confirmAction})),r.d(t,"detectIEOrEdge",(function(){return n.detectIEOrEdge})),r.d(t,"doKey2ClickUp",(function(){return n.doKey2ClickUp})),r.d(t,"doKey2ClickDown",(function(){return n.doKey2ClickDown})),r.d(t,"doKey2ClickBlur",(function(){return n.doKey2ClickBlur})),r.d(t,"loadFileFromBase64",(function(){return n.loadFileFromBase64})),r.d(t,"increaseHeightByContent",(function(){return n.increaseHeightByContent})),r.d(t,"createSvg",(function(){return n.createSvg})),r.d(t,"sanitizeEditableContent",(function(){return n.sanitizeEditableContent})),r.d(t,"CssClassBuilder",(function(){return n.CssClassBuilder})),r.d(t,"surveyCss",(function(){return n.surveyCss})),r.d(t,"defaultV2Css",(function(){return n.defaultV2Css})),r.d(t,"defaultV2ThemeName",(function(){return n.defaultV2ThemeName})),r.d(t,"DragDropCore",(function(){return n.DragDropCore})),r.d(t,"DragDropChoices",(function(){return n.DragDropChoices}));var o=r("./src/defaultCss/cssstandard.ts");r.d(t,"defaultStandardCss",(function(){return o.defaultStandardCss}));var i=r("./src/defaultCss/cssmodern.ts");r.d(t,"modernCss",(function(){return i.modernCss}));var s=r("./src/svgbundle.ts");r.d(t,"SvgIconRegistry",(function(){return s.SvgIconRegistry})),r.d(t,"SvgRegistry",(function(){return s.SvgRegistry})),r.d(t,"SvgBundleViewModel",(function(){return s.SvgBundleViewModel}));var a=r("./src/rendererFactory.ts");r.d(t,"RendererFactory",(function(){return a.RendererFactory}));var l=r("./src/utils/responsivity-manager.ts");r.d(t,"ResponsivityManager",(function(){return l.ResponsivityManager})),r.d(t,"VerticalResponsivityManager",(function(){return l.VerticalResponsivityManager}));var u=r("./src/utils/utils.ts");r.d(t,"unwrap",(function(){return u.unwrap})),r.d(t,"getOriginalEvent",(function(){return u.getOriginalEvent})),r.d(t,"getElement",(function(){return u.getElement}));var c=r("./src/actions/action.ts");r.d(t,"createDropdownActionModel",(function(){return c.createDropdownActionModel})),r.d(t,"createDropdownActionModelAdvanced",(function(){return c.createDropdownActionModelAdvanced})),r.d(t,"BaseAction",(function(){return c.BaseAction})),r.d(t,"Action",(function(){return c.Action})),r.d(t,"ActionDropdownViewModel",(function(){return c.ActionDropdownViewModel}));var p=r("./src/actions/adaptive-container.ts");r.d(t,"AdaptiveActionContainer",(function(){return p.AdaptiveActionContainer}));var d=r("./src/actions/container.ts");r.d(t,"defaultActionBarCss",(function(){return d.defaultActionBarCss})),r.d(t,"ActionContainer",(function(){return d.ActionContainer}));var h=r("./src/utils/tooltip.ts");r.d(t,"TooltipManager",(function(){return h.TooltipManager}));var f=r("./src/utils/dragOrClickHelper.ts");r.d(t,"DragOrClickHelper",(function(){return f.DragOrClickHelper}))},"./src/entries/core.ts":function(e,t,r){"use strict";r.r(t);var n=r("./src/entries/core-wo-model.ts");r.d(t,"Version",(function(){return n.Version})),r.d(t,"checkLibraryVersion",(function(){return n.checkLibraryVersion})),r.d(t,"settings",(function(){return n.settings})),r.d(t,"Helpers",(function(){return n.Helpers})),r.d(t,"AnswerCountValidator",(function(){return n.AnswerCountValidator})),r.d(t,"EmailValidator",(function(){return n.EmailValidator})),r.d(t,"NumericValidator",(function(){return n.NumericValidator})),r.d(t,"RegexValidator",(function(){return n.RegexValidator})),r.d(t,"SurveyValidator",(function(){return n.SurveyValidator})),r.d(t,"TextValidator",(function(){return n.TextValidator})),r.d(t,"ValidatorResult",(function(){return n.ValidatorResult})),r.d(t,"ExpressionValidator",(function(){return n.ExpressionValidator})),r.d(t,"ValidatorRunner",(function(){return n.ValidatorRunner})),r.d(t,"ItemValue",(function(){return n.ItemValue})),r.d(t,"Base",(function(){return n.Base})),r.d(t,"Event",(function(){return n.Event})),r.d(t,"EventBase",(function(){return n.EventBase})),r.d(t,"ArrayChanges",(function(){return n.ArrayChanges})),r.d(t,"ComputedUpdater",(function(){return n.ComputedUpdater})),r.d(t,"SurveyError",(function(){return n.SurveyError})),r.d(t,"SurveyElementCore",(function(){return n.SurveyElementCore})),r.d(t,"SurveyElement",(function(){return n.SurveyElement})),r.d(t,"DragTypeOverMeEnum",(function(){return n.DragTypeOverMeEnum})),r.d(t,"CalculatedValue",(function(){return n.CalculatedValue})),r.d(t,"CustomError",(function(){return n.CustomError})),r.d(t,"AnswerRequiredError",(function(){return n.AnswerRequiredError})),r.d(t,"OneAnswerRequiredError",(function(){return n.OneAnswerRequiredError})),r.d(t,"RequreNumericError",(function(){return n.RequreNumericError})),r.d(t,"ExceedSizeError",(function(){return n.ExceedSizeError})),r.d(t,"LocalizableString",(function(){return n.LocalizableString})),r.d(t,"LocalizableStrings",(function(){return n.LocalizableStrings})),r.d(t,"HtmlConditionItem",(function(){return n.HtmlConditionItem})),r.d(t,"UrlConditionItem",(function(){return n.UrlConditionItem})),r.d(t,"ChoicesRestful",(function(){return n.ChoicesRestful})),r.d(t,"ChoicesRestfull",(function(){return n.ChoicesRestfull})),r.d(t,"FunctionFactory",(function(){return n.FunctionFactory})),r.d(t,"registerFunction",(function(){return n.registerFunction})),r.d(t,"ConditionRunner",(function(){return n.ConditionRunner})),r.d(t,"ExpressionRunner",(function(){return n.ExpressionRunner})),r.d(t,"ExpressionExecutor",(function(){return n.ExpressionExecutor})),r.d(t,"Operand",(function(){return n.Operand})),r.d(t,"Const",(function(){return n.Const})),r.d(t,"BinaryOperand",(function(){return n.BinaryOperand})),r.d(t,"Variable",(function(){return n.Variable})),r.d(t,"FunctionOperand",(function(){return n.FunctionOperand})),r.d(t,"ArrayOperand",(function(){return n.ArrayOperand})),r.d(t,"UnaryOperand",(function(){return n.UnaryOperand})),r.d(t,"ConditionsParser",(function(){return n.ConditionsParser})),r.d(t,"ProcessValue",(function(){return n.ProcessValue})),r.d(t,"JsonError",(function(){return n.JsonError})),r.d(t,"JsonIncorrectTypeError",(function(){return n.JsonIncorrectTypeError})),r.d(t,"JsonMetadata",(function(){return n.JsonMetadata})),r.d(t,"JsonMetadataClass",(function(){return n.JsonMetadataClass})),r.d(t,"JsonMissingTypeError",(function(){return n.JsonMissingTypeError})),r.d(t,"JsonMissingTypeErrorBase",(function(){return n.JsonMissingTypeErrorBase})),r.d(t,"JsonObject",(function(){return n.JsonObject})),r.d(t,"JsonObjectProperty",(function(){return n.JsonObjectProperty})),r.d(t,"JsonRequiredPropertyError",(function(){return n.JsonRequiredPropertyError})),r.d(t,"JsonUnknownPropertyError",(function(){return n.JsonUnknownPropertyError})),r.d(t,"Serializer",(function(){return n.Serializer})),r.d(t,"property",(function(){return n.property})),r.d(t,"propertyArray",(function(){return n.propertyArray})),r.d(t,"MatrixDropdownCell",(function(){return n.MatrixDropdownCell})),r.d(t,"MatrixDropdownRowModelBase",(function(){return n.MatrixDropdownRowModelBase})),r.d(t,"QuestionMatrixDropdownModelBase",(function(){return n.QuestionMatrixDropdownModelBase})),r.d(t,"MatrixDropdownColumn",(function(){return n.MatrixDropdownColumn})),r.d(t,"matrixDropdownColumnTypes",(function(){return n.matrixDropdownColumnTypes})),r.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return n.QuestionMatrixDropdownRenderedCell})),r.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return n.QuestionMatrixDropdownRenderedRow})),r.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return n.QuestionMatrixDropdownRenderedTable})),r.d(t,"MatrixDropdownRowModel",(function(){return n.MatrixDropdownRowModel})),r.d(t,"QuestionMatrixDropdownModel",(function(){return n.QuestionMatrixDropdownModel})),r.d(t,"MatrixDynamicRowModel",(function(){return n.MatrixDynamicRowModel})),r.d(t,"QuestionMatrixDynamicModel",(function(){return n.QuestionMatrixDynamicModel})),r.d(t,"MatrixRowModel",(function(){return n.MatrixRowModel})),r.d(t,"MatrixCells",(function(){return n.MatrixCells})),r.d(t,"QuestionMatrixModel",(function(){return n.QuestionMatrixModel})),r.d(t,"QuestionMatrixBaseModel",(function(){return n.QuestionMatrixBaseModel})),r.d(t,"MultipleTextItemModel",(function(){return n.MultipleTextItemModel})),r.d(t,"QuestionMultipleTextModel",(function(){return n.QuestionMultipleTextModel})),r.d(t,"MultipleTextEditorModel",(function(){return n.MultipleTextEditorModel})),r.d(t,"PanelModel",(function(){return n.PanelModel})),r.d(t,"PanelModelBase",(function(){return n.PanelModelBase})),r.d(t,"QuestionRowModel",(function(){return n.QuestionRowModel})),r.d(t,"FlowPanelModel",(function(){return n.FlowPanelModel})),r.d(t,"PageModel",(function(){return n.PageModel})),r.d(t,"DefaultTitleModel",(function(){return n.DefaultTitleModel})),r.d(t,"Question",(function(){return n.Question})),r.d(t,"QuestionNonValue",(function(){return n.QuestionNonValue})),r.d(t,"QuestionEmptyModel",(function(){return n.QuestionEmptyModel})),r.d(t,"QuestionCheckboxBase",(function(){return n.QuestionCheckboxBase})),r.d(t,"QuestionSelectBase",(function(){return n.QuestionSelectBase})),r.d(t,"QuestionCheckboxModel",(function(){return n.QuestionCheckboxModel})),r.d(t,"QuestionTagboxModel",(function(){return n.QuestionTagboxModel})),r.d(t,"QuestionRankingModel",(function(){return n.QuestionRankingModel})),r.d(t,"QuestionCommentModel",(function(){return n.QuestionCommentModel})),r.d(t,"QuestionDropdownModel",(function(){return n.QuestionDropdownModel})),r.d(t,"QuestionFactory",(function(){return n.QuestionFactory})),r.d(t,"ElementFactory",(function(){return n.ElementFactory})),r.d(t,"QuestionFileModel",(function(){return n.QuestionFileModel})),r.d(t,"QuestionHtmlModel",(function(){return n.QuestionHtmlModel})),r.d(t,"QuestionRadiogroupModel",(function(){return n.QuestionRadiogroupModel})),r.d(t,"QuestionRatingModel",(function(){return n.QuestionRatingModel})),r.d(t,"RenderedRatingItem",(function(){return n.RenderedRatingItem})),r.d(t,"QuestionExpressionModel",(function(){return n.QuestionExpressionModel})),r.d(t,"QuestionTextBase",(function(){return n.QuestionTextBase})),r.d(t,"CharacterCounter",(function(){return n.CharacterCounter})),r.d(t,"QuestionTextModel",(function(){return n.QuestionTextModel})),r.d(t,"QuestionBooleanModel",(function(){return n.QuestionBooleanModel})),r.d(t,"QuestionImagePickerModel",(function(){return n.QuestionImagePickerModel})),r.d(t,"ImageItemValue",(function(){return n.ImageItemValue})),r.d(t,"QuestionImageModel",(function(){return n.QuestionImageModel})),r.d(t,"QuestionSignaturePadModel",(function(){return n.QuestionSignaturePadModel})),r.d(t,"QuestionPanelDynamicModel",(function(){return n.QuestionPanelDynamicModel})),r.d(t,"QuestionPanelDynamicItem",(function(){return n.QuestionPanelDynamicItem})),r.d(t,"SurveyTimer",(function(){return n.SurveyTimer})),r.d(t,"SurveyTimerModel",(function(){return n.SurveyTimerModel})),r.d(t,"tryNavigateToPage",(function(){return n.tryNavigateToPage})),r.d(t,"createTOCListModel",(function(){return n.createTOCListModel})),r.d(t,"getTocRootCss",(function(){return n.getTocRootCss})),r.d(t,"SurveyProgressModel",(function(){return n.SurveyProgressModel})),r.d(t,"SurveyProgressButtonsModel",(function(){return n.SurveyProgressButtonsModel})),r.d(t,"SurveyModel",(function(){return n.SurveyModel})),r.d(t,"SurveyTrigger",(function(){return n.SurveyTrigger})),r.d(t,"SurveyTriggerComplete",(function(){return n.SurveyTriggerComplete})),r.d(t,"SurveyTriggerSetValue",(function(){return n.SurveyTriggerSetValue})),r.d(t,"SurveyTriggerVisible",(function(){return n.SurveyTriggerVisible})),r.d(t,"SurveyTriggerCopyValue",(function(){return n.SurveyTriggerCopyValue})),r.d(t,"SurveyTriggerRunExpression",(function(){return n.SurveyTriggerRunExpression})),r.d(t,"Trigger",(function(){return n.Trigger})),r.d(t,"PopupSurveyModel",(function(){return n.PopupSurveyModel})),r.d(t,"SurveyWindowModel",(function(){return n.SurveyWindowModel})),r.d(t,"TextPreProcessor",(function(){return n.TextPreProcessor})),r.d(t,"Notifier",(function(){return n.Notifier})),r.d(t,"dxSurveyService",(function(){return n.dxSurveyService})),r.d(t,"englishStrings",(function(){return n.englishStrings})),r.d(t,"surveyLocalization",(function(){return n.surveyLocalization})),r.d(t,"surveyStrings",(function(){return n.surveyStrings})),r.d(t,"QuestionCustomWidget",(function(){return n.QuestionCustomWidget})),r.d(t,"CustomWidgetCollection",(function(){return n.CustomWidgetCollection})),r.d(t,"QuestionCustomModel",(function(){return n.QuestionCustomModel})),r.d(t,"QuestionCompositeModel",(function(){return n.QuestionCompositeModel})),r.d(t,"ComponentQuestionJSON",(function(){return n.ComponentQuestionJSON})),r.d(t,"ComponentCollection",(function(){return n.ComponentCollection})),r.d(t,"StylesManager",(function(){return n.StylesManager})),r.d(t,"ListModel",(function(){return n.ListModel})),r.d(t,"MultiSelectListModel",(function(){return n.MultiSelectListModel})),r.d(t,"PopupModel",(function(){return n.PopupModel})),r.d(t,"createDialogOptions",(function(){return n.createDialogOptions})),r.d(t,"PopupBaseViewModel",(function(){return n.PopupBaseViewModel})),r.d(t,"PopupDropdownViewModel",(function(){return n.PopupDropdownViewModel})),r.d(t,"PopupModalViewModel",(function(){return n.PopupModalViewModel})),r.d(t,"createPopupViewModel",(function(){return n.createPopupViewModel})),r.d(t,"createPopupModalViewModel",(function(){return n.createPopupModalViewModel})),r.d(t,"DropdownListModel",(function(){return n.DropdownListModel})),r.d(t,"DropdownMultiSelectListModel",(function(){return n.DropdownMultiSelectListModel})),r.d(t,"QuestionButtonGroupModel",(function(){return n.QuestionButtonGroupModel})),r.d(t,"ButtonGroupItemModel",(function(){return n.ButtonGroupItemModel})),r.d(t,"ButtonGroupItemValue",(function(){return n.ButtonGroupItemValue})),r.d(t,"IsMobile",(function(){return n.IsMobile})),r.d(t,"IsTouch",(function(){return n.IsTouch})),r.d(t,"_setIsTouch",(function(){return n._setIsTouch})),r.d(t,"confirmAction",(function(){return n.confirmAction})),r.d(t,"detectIEOrEdge",(function(){return n.detectIEOrEdge})),r.d(t,"doKey2ClickUp",(function(){return n.doKey2ClickUp})),r.d(t,"doKey2ClickDown",(function(){return n.doKey2ClickDown})),r.d(t,"doKey2ClickBlur",(function(){return n.doKey2ClickBlur})),r.d(t,"loadFileFromBase64",(function(){return n.loadFileFromBase64})),r.d(t,"increaseHeightByContent",(function(){return n.increaseHeightByContent})),r.d(t,"createSvg",(function(){return n.createSvg})),r.d(t,"sanitizeEditableContent",(function(){return n.sanitizeEditableContent})),r.d(t,"CssClassBuilder",(function(){return n.CssClassBuilder})),r.d(t,"surveyCss",(function(){return n.surveyCss})),r.d(t,"defaultV2Css",(function(){return n.defaultV2Css})),r.d(t,"defaultV2ThemeName",(function(){return n.defaultV2ThemeName})),r.d(t,"DragDropCore",(function(){return n.DragDropCore})),r.d(t,"DragDropChoices",(function(){return n.DragDropChoices})),r.d(t,"defaultStandardCss",(function(){return n.defaultStandardCss})),r.d(t,"modernCss",(function(){return n.modernCss})),r.d(t,"SvgIconRegistry",(function(){return n.SvgIconRegistry})),r.d(t,"SvgRegistry",(function(){return n.SvgRegistry})),r.d(t,"SvgBundleViewModel",(function(){return n.SvgBundleViewModel})),r.d(t,"RendererFactory",(function(){return n.RendererFactory})),r.d(t,"ResponsivityManager",(function(){return n.ResponsivityManager})),r.d(t,"VerticalResponsivityManager",(function(){return n.VerticalResponsivityManager})),r.d(t,"unwrap",(function(){return n.unwrap})),r.d(t,"getOriginalEvent",(function(){return n.getOriginalEvent})),r.d(t,"getElement",(function(){return n.getElement})),r.d(t,"createDropdownActionModel",(function(){return n.createDropdownActionModel})),r.d(t,"createDropdownActionModelAdvanced",(function(){return n.createDropdownActionModelAdvanced})),r.d(t,"BaseAction",(function(){return n.BaseAction})),r.d(t,"Action",(function(){return n.Action})),r.d(t,"ActionDropdownViewModel",(function(){return n.ActionDropdownViewModel})),r.d(t,"AdaptiveActionContainer",(function(){return n.AdaptiveActionContainer})),r.d(t,"defaultActionBarCss",(function(){return n.defaultActionBarCss})),r.d(t,"ActionContainer",(function(){return n.ActionContainer})),r.d(t,"TooltipManager",(function(){return n.TooltipManager})),r.d(t,"DragOrClickHelper",(function(){return n.DragOrClickHelper}));var o=r("./src/survey.ts");r.d(t,"Model",(function(){return o.SurveyModel}))},"./src/error.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"AnswerRequiredError",(function(){return a})),r.d(t,"OneAnswerRequiredError",(function(){return l})),r.d(t,"RequreNumericError",(function(){return u})),r.d(t,"ExceedSizeError",(function(){return c})),r.d(t,"WebRequestError",(function(){return p})),r.d(t,"WebRequestEmptyError",(function(){return d})),r.d(t,"OtherEmptyError",(function(){return h})),r.d(t,"UploadingFileError",(function(){return f})),r.d(t,"RequiredInAllRowsError",(function(){return m})),r.d(t,"MinRowCountError",(function(){return g})),r.d(t,"KeyDuplicationError",(function(){return b})),r.d(t,"CustomError",(function(){return y}));var n,o=r("./src/surveyStrings.ts"),i=r("./src/survey-error.ts"),s=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return s(t,e),t.prototype.getErrorType=function(){return"required"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredError")},t}(i.SurveyError),l=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return s(t,e),t.prototype.getErrorType=function(){return"requireoneanswer"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredErrorInPanel")},t}(i.SurveyError),u=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return s(t,e),t.prototype.getErrorType=function(){return"requirenumeric"},t.prototype.getDefaultText=function(){return this.getLocalizationString("numericError")},t}(i.SurveyError),c=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,null,r)||this;return n.maxSize=t,n.locText.text=n.getText(),n}return s(t,e),t.prototype.getErrorType=function(){return"exceedsize"},t.prototype.getDefaultText=function(){return o.surveyLocalization.getString("exceedMaxSize").format(this.getTextSize())},t.prototype.getTextSize=function(){if(0===this.maxSize)return"0 Byte";var e=Math.floor(Math.log(this.maxSize)/Math.log(1024));return(this.maxSize/Math.pow(1024,e)).toFixed([0,0,2,3,3][e])+" "+["Bytes","KB","MB","GB","TB"][e]},t}(i.SurveyError),p=function(e){function t(t,r,n){void 0===n&&(n=null);var o=e.call(this,null,n)||this;return o.status=t,o.response=r,o}return s(t,e),t.prototype.getErrorType=function(){return"webrequest"},t.prototype.getDefaultText=function(){var e=this.getLocalizationString("urlRequestError");return e?e.format(this.status,this.response):""},t}(i.SurveyError),d=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return s(t,e),t.prototype.getErrorType=function(){return"webrequestempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("urlGetChoicesError")},t}(i.SurveyError),h=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return s(t,e),t.prototype.getErrorType=function(){return"otherempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("otherRequiredError")},t}(i.SurveyError),f=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return s(t,e),t.prototype.getErrorType=function(){return"uploadingfile"},t.prototype.getDefaultText=function(){return this.getLocalizationString("uploadingFile")},t}(i.SurveyError),m=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return s(t,e),t.prototype.getErrorType=function(){return"requiredinallrowserror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredInAllRowsError")},t}(i.SurveyError),g=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,null,r)||this;return n.minRowCount=t,n}return s(t,e),t.prototype.getErrorType=function(){return"minrowcounterror"},t.prototype.getDefaultText=function(){return o.surveyLocalization.getString("minRowCountError").format(this.minRowCount)},t}(i.SurveyError),b=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return s(t,e),t.prototype.getErrorType=function(){return"keyduplicationerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("keyDuplicationError")},t}(i.SurveyError),y=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return s(t,e),t.prototype.getErrorType=function(){return"custom"},t}(i.SurveyError)},"./src/expressionItems.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ExpressionItem",(function(){return l})),r.d(t,"HtmlConditionItem",(function(){return u})),r.d(t,"UrlConditionItem",(function(){return c}));var n,o=r("./src/jsonobject.ts"),i=r("./src/base.ts"),s=r("./src/conditions.ts"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this)||this;return r.expression=t,r}return a(t,e),t.prototype.getType=function(){return"expressionitem"},t.prototype.runCondition=function(e,t){return!!this.expression&&new s.ConditionRunner(this.expression).run(e,t)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.locOwner},t}(i.Base),u=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t)||this;return n.createLocalizableString("html",n),n.html=r,n}return a(t,e),t.prototype.getType=function(){return"htmlconditionitem"},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t}(l),c=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t)||this;return n.createLocalizableString("url",n),n.url=r,n}return a(t,e),t.prototype.getType=function(){return"urlconditionitem"},Object.defineProperty(t.prototype,"url",{get:function(){return this.getLocalizableStringText("url")},set:function(e){this.setLocalizableStringText("url",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locUrl",{get:function(){return this.getLocalizableString("url")},enumerable:!1,configurable:!0}),t}(l);o.Serializer.addClass("expressionitem",["expression:condition"],(function(){return new l}),"base"),o.Serializer.addClass("htmlconditionitem",[{name:"html:html",serializationProperty:"locHtml"}],(function(){return new u}),"expressionitem"),o.Serializer.addClass("urlconditionitem",[{name:"url:string",serializationProperty:"locUrl"}],(function(){return new c}),"expressionitem")},"./src/expressions/expressionParser.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SyntaxError",(function(){return s})),r.d(t,"parse",(function(){return a}));var n,o=r("./src/expressions/expressions.ts"),i=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e){function t(r,n,o,i){var s=e.call(this)||this;return s.message=r,s.expected=n,s.found=o,s.location=i,s.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s,t),s}return i(t,e),t.buildMessage=function(e,t){function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function i(e){switch(e.type){case"literal":return'"'+n(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,r,n=e.map(i);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+((s=t)?'"'+n(s)+'"':"end of input")+" found.";var s},t}(Error),a=function(e,t){t=void 0!==t?t:{};var r,n,i,a,l={},u={Expression:Ir},c=Ir,p=function(e,t){return rn(e,t,!0)},d="||",h=Er("||",!1),f="or",m=Er("or",!0),g=function(){return"or"},b="&&",y=Er("&&",!1),v="and",x=Er("and",!0),w=function(){return"and"},C=function(e,t){return rn(e,t)},P="<=",_=Er("<=",!1),S="lessorequal",V=Er("lessorequal",!0),E=function(){return"lessorequal"},O=">=",T=Er(">=",!1),k="greaterorequal",R=Er("greaterorequal",!0),I=function(){return"greaterorequal"},j="==",D=Er("==",!1),q="equal",M=Er("equal",!0),L=function(){return"equal"},A="=",N=Er("=",!1),B="!=",F=Er("!=",!1),z="notequal",Q=Er("notequal",!0),H=function(){return"notequal"},U="<",W=Er("<",!1),G="less",J=Er("less",!0),$=function(){return"less"},K=">",Z=Er(">",!1),X="greater",Y=Er("greater",!0),ee=function(){return"greater"},te="+",re=Er("+",!1),ne=function(){return"plus"},oe="-",ie=Er("-",!1),se=function(){return"minus"},ae="*",le=Er("*",!1),ue=function(){return"mul"},ce="/",pe=Er("/",!1),de=function(){return"div"},he="%",fe=Er("%",!1),me=function(){return"mod"},ge="^",be=Er("^",!1),ye="power",ve=Er("power",!0),xe=function(){return"power"},we="*=",Ce=Er("*=",!1),Pe="contains",_e=Er("contains",!0),Se="contain",Ve=Er("contain",!0),Ee=function(){return"contains"},Oe="notcontains",Te=Er("notcontains",!0),ke="notcontain",Re=Er("notcontain",!0),Ie=function(){return"notcontains"},je="anyof",De=Er("anyof",!0),qe=function(){return"anyof"},Me="allof",Le=Er("allof",!0),Ae=function(){return"allof"},Ne="(",Be=Er("(",!1),Fe=")",ze=Er(")",!1),Qe=function(e){return e},He=function(e,t){return new o.FunctionOperand(e,t)},Ue="!",We=Er("!",!1),Ge="negate",Je=Er("negate",!0),$e=function(e){return new o.UnaryOperand(e,"negate")},Ke=function(e,t){return new o.UnaryOperand(e,t)},Ze="empty",Xe=Er("empty",!0),Ye=function(){return"empty"},et="notempty",tt=Er("notempty",!0),rt=function(){return"notempty"},nt="undefined",ot=Er("undefined",!1),it="null",st=Er("null",!1),at=function(){return null},lt=function(e){return new o.Const(e)},ut="{",ct=Er("{",!1),pt="}",dt=Er("}",!1),ht=function(e){return new o.Variable(e)},ft=function(e){return e},mt="''",gt=Er("''",!1),bt=function(){return""},yt='""',vt=Er('""',!1),xt="'",wt=Er("'",!1),Ct=function(e){return"'"+e+"'"},Pt='"',_t=Er('"',!1),St="[",Vt=Er("[",!1),Et="]",Ot=Er("]",!1),Tt=function(e){return e},kt=",",Rt=Er(",",!1),It=function(e,t){if(null==e)return new o.ArrayOperand([]);var r=[e];if(Array.isArray(t))for(var n=function(e){return[].concat.apply([],e)}(t),i=3;i<n.length;i+=4)r.push(n[i]);return new o.ArrayOperand(r)},jt="true",Dt=Er("true",!0),qt=function(){return!0},Mt="false",Lt=Er("false",!0),At=function(){return!1},Nt="0x",Bt=Er("0x",!1),Ft=function(){return parseInt(Vr(),16)},zt=/^[\-]/,Qt=Or(["-"],!1,!1),Ht=function(e,t){return null==e?t:-t},Ut=".",Wt=Er(".",!1),Gt=function(){return parseFloat(Vr())},Jt=function(){return parseInt(Vr(),10)},$t="0",Kt=Er("0",!1),Zt=function(){return 0},Xt=function(e){return e.join("")},Yt="\\'",er=Er("\\'",!1),tr=function(){return"'"},rr='\\"',nr=Er('\\"',!1),or=function(){return'"'},ir=/^[^"']/,sr=Or(['"',"'"],!0,!1),ar=function(){return Vr()},lr=/^[^{}]/,ur=Or(["{","}"],!0,!1),cr=/^[0-9]/,pr=Or([["0","9"]],!1,!1),dr=/^[1-9]/,hr=Or([["1","9"]],!1,!1),fr=/^[a-zA-Z_]/,mr=Or([["a","z"],["A","Z"],"_"],!1,!1),gr={type:"other",description:"whitespace"},br=/^[ \t\n\r]/,yr=Or([" ","\t","\n","\r"],!1,!1),vr=0,xr=0,wr=[{line:1,column:1}],Cr=0,Pr=[],_r=0,Sr={};if(void 0!==t.startRule){if(!(t.startRule in u))throw new Error("Can't start parsing from rule \""+t.startRule+'".');c=u[t.startRule]}function Vr(){return e.substring(xr,vr)}function Er(e,t){return{type:"literal",text:e,ignoreCase:t}}function Or(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Tr(t){var r,n=wr[t];if(n)return n;for(r=t-1;!wr[r];)r--;for(n={line:(n=wr[r]).line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return wr[t]=n,n}function kr(e,t){var r=Tr(e),n=Tr(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function Rr(e){vr<Cr||(vr>Cr&&(Cr=vr,Pr=[]),Pr.push(e))}function Ir(){var e,t,r,n,o,i,s,a,u=34*vr+0,c=Sr[u];if(c)return vr=c.nextPos,c.result;if(e=vr,tn()!==l)if((t=Dr())!==l){for(r=[],n=vr,(o=tn())!==l&&(i=jr())!==l&&(s=tn())!==l&&(a=Dr())!==l?n=o=[o,i,s,a]:(vr=n,n=l);n!==l;)r.push(n),n=vr,(o=tn())!==l&&(i=jr())!==l&&(s=tn())!==l&&(a=Dr())!==l?n=o=[o,i,s,a]:(vr=n,n=l);r!==l&&(n=tn())!==l?(xr=e,e=p(t,r)):(vr=e,e=l)}else vr=e,e=l;else vr=e,e=l;return Sr[u]={nextPos:vr,result:e},e}function jr(){var t,r,n=34*vr+1,o=Sr[n];return o?(vr=o.nextPos,o.result):(t=vr,e.substr(vr,2)===d?(r=d,vr+=2):(r=l,0===_r&&Rr(h)),r===l&&(e.substr(vr,2).toLowerCase()===f?(r=e.substr(vr,2),vr+=2):(r=l,0===_r&&Rr(m))),r!==l&&(xr=t,r=g()),t=r,Sr[n]={nextPos:vr,result:t},t)}function Dr(){var e,t,r,n,o,i,s,a,u=34*vr+2,c=Sr[u];if(c)return vr=c.nextPos,c.result;if(e=vr,(t=Mr())!==l){for(r=[],n=vr,(o=tn())!==l&&(i=qr())!==l&&(s=tn())!==l&&(a=Mr())!==l?n=o=[o,i,s,a]:(vr=n,n=l);n!==l;)r.push(n),n=vr,(o=tn())!==l&&(i=qr())!==l&&(s=tn())!==l&&(a=Mr())!==l?n=o=[o,i,s,a]:(vr=n,n=l);r!==l?(xr=e,e=t=p(t,r)):(vr=e,e=l)}else vr=e,e=l;return Sr[u]={nextPos:vr,result:e},e}function qr(){var t,r,n=34*vr+3,o=Sr[n];return o?(vr=o.nextPos,o.result):(t=vr,e.substr(vr,2)===b?(r=b,vr+=2):(r=l,0===_r&&Rr(y)),r===l&&(e.substr(vr,3).toLowerCase()===v?(r=e.substr(vr,3),vr+=3):(r=l,0===_r&&Rr(x))),r!==l&&(xr=t,r=w()),t=r,Sr[n]={nextPos:vr,result:t},t)}function Mr(){var e,t,r,n,o,i,s,a,u=34*vr+4,c=Sr[u];if(c)return vr=c.nextPos,c.result;if(e=vr,(t=Ar())!==l){for(r=[],n=vr,(o=tn())!==l&&(i=Lr())!==l&&(s=tn())!==l&&(a=Ar())!==l?n=o=[o,i,s,a]:(vr=n,n=l);n!==l;)r.push(n),n=vr,(o=tn())!==l&&(i=Lr())!==l&&(s=tn())!==l&&(a=Ar())!==l?n=o=[o,i,s,a]:(vr=n,n=l);r!==l?(xr=e,e=t=C(t,r)):(vr=e,e=l)}else vr=e,e=l;return Sr[u]={nextPos:vr,result:e},e}function Lr(){var t,r,n=34*vr+5,o=Sr[n];return o?(vr=o.nextPos,o.result):(t=vr,e.substr(vr,2)===P?(r=P,vr+=2):(r=l,0===_r&&Rr(_)),r===l&&(e.substr(vr,11).toLowerCase()===S?(r=e.substr(vr,11),vr+=11):(r=l,0===_r&&Rr(V))),r!==l&&(xr=t,r=E()),(t=r)===l&&(t=vr,e.substr(vr,2)===O?(r=O,vr+=2):(r=l,0===_r&&Rr(T)),r===l&&(e.substr(vr,14).toLowerCase()===k?(r=e.substr(vr,14),vr+=14):(r=l,0===_r&&Rr(R))),r!==l&&(xr=t,r=I()),(t=r)===l&&(t=vr,e.substr(vr,2)===j?(r=j,vr+=2):(r=l,0===_r&&Rr(D)),r===l&&(e.substr(vr,5).toLowerCase()===q?(r=e.substr(vr,5),vr+=5):(r=l,0===_r&&Rr(M))),r!==l&&(xr=t,r=L()),(t=r)===l&&(t=vr,61===e.charCodeAt(vr)?(r=A,vr++):(r=l,0===_r&&Rr(N)),r===l&&(e.substr(vr,5).toLowerCase()===q?(r=e.substr(vr,5),vr+=5):(r=l,0===_r&&Rr(M))),r!==l&&(xr=t,r=L()),(t=r)===l&&(t=vr,e.substr(vr,2)===B?(r=B,vr+=2):(r=l,0===_r&&Rr(F)),r===l&&(e.substr(vr,8).toLowerCase()===z?(r=e.substr(vr,8),vr+=8):(r=l,0===_r&&Rr(Q))),r!==l&&(xr=t,r=H()),(t=r)===l&&(t=vr,60===e.charCodeAt(vr)?(r=U,vr++):(r=l,0===_r&&Rr(W)),r===l&&(e.substr(vr,4).toLowerCase()===G?(r=e.substr(vr,4),vr+=4):(r=l,0===_r&&Rr(J))),r!==l&&(xr=t,r=$()),(t=r)===l&&(t=vr,62===e.charCodeAt(vr)?(r=K,vr++):(r=l,0===_r&&Rr(Z)),r===l&&(e.substr(vr,7).toLowerCase()===X?(r=e.substr(vr,7),vr+=7):(r=l,0===_r&&Rr(Y))),r!==l&&(xr=t,r=ee()),t=r)))))),Sr[n]={nextPos:vr,result:t},t)}function Ar(){var e,t,r,n,o,i,s,a,u=34*vr+6,c=Sr[u];if(c)return vr=c.nextPos,c.result;if(e=vr,(t=Br())!==l){for(r=[],n=vr,(o=tn())!==l&&(i=Nr())!==l&&(s=tn())!==l&&(a=Br())!==l?n=o=[o,i,s,a]:(vr=n,n=l);n!==l;)r.push(n),n=vr,(o=tn())!==l&&(i=Nr())!==l&&(s=tn())!==l&&(a=Br())!==l?n=o=[o,i,s,a]:(vr=n,n=l);r!==l?(xr=e,e=t=p(t,r)):(vr=e,e=l)}else vr=e,e=l;return Sr[u]={nextPos:vr,result:e},e}function Nr(){var t,r,n=34*vr+7,o=Sr[n];return o?(vr=o.nextPos,o.result):(t=vr,43===e.charCodeAt(vr)?(r=te,vr++):(r=l,0===_r&&Rr(re)),r!==l&&(xr=t,r=ne()),(t=r)===l&&(t=vr,45===e.charCodeAt(vr)?(r=oe,vr++):(r=l,0===_r&&Rr(ie)),r!==l&&(xr=t,r=se()),t=r),Sr[n]={nextPos:vr,result:t},t)}function Br(){var e,t,r,n,o,i,s,a,u=34*vr+8,c=Sr[u];if(c)return vr=c.nextPos,c.result;if(e=vr,(t=zr())!==l){for(r=[],n=vr,(o=tn())!==l&&(i=Fr())!==l&&(s=tn())!==l&&(a=zr())!==l?n=o=[o,i,s,a]:(vr=n,n=l);n!==l;)r.push(n),n=vr,(o=tn())!==l&&(i=Fr())!==l&&(s=tn())!==l&&(a=zr())!==l?n=o=[o,i,s,a]:(vr=n,n=l);r!==l?(xr=e,e=t=p(t,r)):(vr=e,e=l)}else vr=e,e=l;return Sr[u]={nextPos:vr,result:e},e}function Fr(){var t,r,n=34*vr+9,o=Sr[n];return o?(vr=o.nextPos,o.result):(t=vr,42===e.charCodeAt(vr)?(r=ae,vr++):(r=l,0===_r&&Rr(le)),r!==l&&(xr=t,r=ue()),(t=r)===l&&(t=vr,47===e.charCodeAt(vr)?(r=ce,vr++):(r=l,0===_r&&Rr(pe)),r!==l&&(xr=t,r=de()),(t=r)===l&&(t=vr,37===e.charCodeAt(vr)?(r=he,vr++):(r=l,0===_r&&Rr(fe)),r!==l&&(xr=t,r=me()),t=r)),Sr[n]={nextPos:vr,result:t},t)}function zr(){var e,t,r,n,o,i,s,a,u=34*vr+10,c=Sr[u];if(c)return vr=c.nextPos,c.result;if(e=vr,(t=Hr())!==l){for(r=[],n=vr,(o=tn())!==l&&(i=Qr())!==l&&(s=tn())!==l&&(a=Hr())!==l?n=o=[o,i,s,a]:(vr=n,n=l);n!==l;)r.push(n),n=vr,(o=tn())!==l&&(i=Qr())!==l&&(s=tn())!==l&&(a=Hr())!==l?n=o=[o,i,s,a]:(vr=n,n=l);r!==l?(xr=e,e=t=p(t,r)):(vr=e,e=l)}else vr=e,e=l;return Sr[u]={nextPos:vr,result:e},e}function Qr(){var t,r,n=34*vr+11,o=Sr[n];return o?(vr=o.nextPos,o.result):(t=vr,94===e.charCodeAt(vr)?(r=ge,vr++):(r=l,0===_r&&Rr(be)),r===l&&(e.substr(vr,5).toLowerCase()===ye?(r=e.substr(vr,5),vr+=5):(r=l,0===_r&&Rr(ve))),r!==l&&(xr=t,r=xe()),t=r,Sr[n]={nextPos:vr,result:t},t)}function Hr(){var e,t,r,n,o,i,s,a,u=34*vr+12,c=Sr[u];if(c)return vr=c.nextPos,c.result;if(e=vr,(t=Wr())!==l){for(r=[],n=vr,(o=tn())!==l&&(i=Ur())!==l&&(s=tn())!==l?((a=Wr())===l&&(a=null),a!==l?n=o=[o,i,s,a]:(vr=n,n=l)):(vr=n,n=l);n!==l;)r.push(n),n=vr,(o=tn())!==l&&(i=Ur())!==l&&(s=tn())!==l?((a=Wr())===l&&(a=null),a!==l?n=o=[o,i,s,a]:(vr=n,n=l)):(vr=n,n=l);r!==l?(xr=e,e=t=C(t,r)):(vr=e,e=l)}else vr=e,e=l;return Sr[u]={nextPos:vr,result:e},e}function Ur(){var t,r,n=34*vr+13,o=Sr[n];return o?(vr=o.nextPos,o.result):(t=vr,e.substr(vr,2)===we?(r=we,vr+=2):(r=l,0===_r&&Rr(Ce)),r===l&&(e.substr(vr,8).toLowerCase()===Pe?(r=e.substr(vr,8),vr+=8):(r=l,0===_r&&Rr(_e)),r===l&&(e.substr(vr,7).toLowerCase()===Se?(r=e.substr(vr,7),vr+=7):(r=l,0===_r&&Rr(Ve)))),r!==l&&(xr=t,r=Ee()),(t=r)===l&&(t=vr,e.substr(vr,11).toLowerCase()===Oe?(r=e.substr(vr,11),vr+=11):(r=l,0===_r&&Rr(Te)),r===l&&(e.substr(vr,10).toLowerCase()===ke?(r=e.substr(vr,10),vr+=10):(r=l,0===_r&&Rr(Re))),r!==l&&(xr=t,r=Ie()),(t=r)===l&&(t=vr,e.substr(vr,5).toLowerCase()===je?(r=e.substr(vr,5),vr+=5):(r=l,0===_r&&Rr(De)),r!==l&&(xr=t,r=qe()),(t=r)===l&&(t=vr,e.substr(vr,5).toLowerCase()===Me?(r=e.substr(vr,5),vr+=5):(r=l,0===_r&&Rr(Le)),r!==l&&(xr=t,r=Ae()),t=r))),Sr[n]={nextPos:vr,result:t},t)}function Wr(){var t,r,n,o,i=34*vr+14,s=Sr[i];return s?(vr=s.nextPos,s.result):(t=vr,40===e.charCodeAt(vr)?(r=Ne,vr++):(r=l,0===_r&&Rr(Be)),r!==l&&tn()!==l&&(n=Ir())!==l&&tn()!==l?(41===e.charCodeAt(vr)?(o=Fe,vr++):(o=l,0===_r&&Rr(ze)),o===l&&(o=null),o!==l?(xr=t,t=r=Qe(n)):(vr=t,t=l)):(vr=t,t=l),t===l&&(t=function(){var t,r,n,o,i,s=34*vr+15,a=Sr[s];return a?(vr=a.nextPos,a.result):(t=vr,(r=Xr())!==l?(40===e.charCodeAt(vr)?(n=Ne,vr++):(n=l,0===_r&&Rr(Be)),n!==l&&(o=Jr())!==l?(41===e.charCodeAt(vr)?(i=Fe,vr++):(i=l,0===_r&&Rr(ze)),i===l&&(i=null),i!==l?(xr=t,t=r=He(r,o)):(vr=t,t=l)):(vr=t,t=l)):(vr=t,t=l),Sr[s]={nextPos:vr,result:t},t)}(),t===l&&(t=function(){var t,r,n,o=34*vr+16,i=Sr[o];return i?(vr=i.nextPos,i.result):(t=vr,33===e.charCodeAt(vr)?(r=Ue,vr++):(r=l,0===_r&&Rr(We)),r===l&&(e.substr(vr,6).toLowerCase()===Ge?(r=e.substr(vr,6),vr+=6):(r=l,0===_r&&Rr(Je))),r!==l&&tn()!==l&&(n=Ir())!==l?(xr=t,t=r=$e(n)):(vr=t,t=l),t===l&&(t=vr,(r=Gr())!==l&&tn()!==l?(n=function(){var t,r,n=34*vr+17,o=Sr[n];return o?(vr=o.nextPos,o.result):(t=vr,e.substr(vr,5).toLowerCase()===Ze?(r=e.substr(vr,5),vr+=5):(r=l,0===_r&&Rr(Xe)),r!==l&&(xr=t,r=Ye()),(t=r)===l&&(t=vr,e.substr(vr,8).toLowerCase()===et?(r=e.substr(vr,8),vr+=8):(r=l,0===_r&&Rr(tt)),r!==l&&(xr=t,r=rt()),t=r),Sr[n]={nextPos:vr,result:t},t)}(),n!==l?(xr=t,t=r=Ke(r,n)):(vr=t,t=l)):(vr=t,t=l)),Sr[o]={nextPos:vr,result:t},t)}(),t===l&&(t=Gr())===l&&(t=function(){var t,r,n,o,i=34*vr+20,s=Sr[i];return s?(vr=s.nextPos,s.result):(t=vr,91===e.charCodeAt(vr)?(r=St,vr++):(r=l,0===_r&&Rr(Vt)),r!==l&&(n=Jr())!==l?(93===e.charCodeAt(vr)?(o=Et,vr++):(o=l,0===_r&&Rr(Ot)),o!==l?(xr=t,t=r=Tt(n)):(vr=t,t=l)):(vr=t,t=l),Sr[i]={nextPos:vr,result:t},t)}()))),Sr[i]={nextPos:vr,result:t},t)}function Gr(){var t,r,n,o,i=34*vr+18,s=Sr[i];return s?(vr=s.nextPos,s.result):(t=vr,tn()!==l?(e.substr(vr,9)===nt?(r=nt,vr+=9):(r=l,0===_r&&Rr(ot)),r===l&&(e.substr(vr,4)===it?(r=it,vr+=4):(r=l,0===_r&&Rr(st))),r!==l?(xr=t,t=at()):(vr=t,t=l)):(vr=t,t=l),t===l&&(t=vr,tn()!==l?(r=function(){var t,r,n,o,i=34*vr+19,s=Sr[i];return s?(vr=s.nextPos,s.result):(t=vr,r=function(){var t,r,n=34*vr+22,o=Sr[n];return o?(vr=o.nextPos,o.result):(t=vr,e.substr(vr,4).toLowerCase()===jt?(r=e.substr(vr,4),vr+=4):(r=l,0===_r&&Rr(Dt)),r!==l&&(xr=t,r=qt()),(t=r)===l&&(t=vr,e.substr(vr,5).toLowerCase()===Mt?(r=e.substr(vr,5),vr+=5):(r=l,0===_r&&Rr(Lt)),r!==l&&(xr=t,r=At()),t=r),Sr[n]={nextPos:vr,result:t},t)}(),r!==l&&(xr=t,r=ft(r)),(t=r)===l&&(t=vr,r=function(){var t,r,n,o=34*vr+23,i=Sr[o];return i?(vr=i.nextPos,i.result):(t=vr,e.substr(vr,2)===Nt?(r=Nt,vr+=2):(r=l,0===_r&&Rr(Bt)),r!==l&&(n=Yr())!==l?(xr=t,t=r=Ft()):(vr=t,t=l),t===l&&(t=vr,zt.test(e.charAt(vr))?(r=e.charAt(vr),vr++):(r=l,0===_r&&Rr(Qt)),r===l&&(r=null),r!==l?(n=function(){var t,r,n,o=34*vr+24,i=Sr[o];return i?(vr=i.nextPos,i.result):(t=vr,(r=Yr())!==l?(46===e.charCodeAt(vr)?(n=Ut,vr++):(n=l,0===_r&&Rr(Wt)),n!==l&&Yr()!==l?(xr=t,t=r=Gt()):(vr=t,t=l)):(vr=t,t=l),t===l&&(t=vr,r=function(){var t,r,n=34*vr+31,o=Sr[n];if(o)return vr=o.nextPos,o.result;if(t=[],dr.test(e.charAt(vr))?(r=e.charAt(vr),vr++):(r=l,0===_r&&Rr(hr)),r!==l)for(;r!==l;)t.push(r),dr.test(e.charAt(vr))?(r=e.charAt(vr),vr++):(r=l,0===_r&&Rr(hr));else t=l;return Sr[n]={nextPos:vr,result:t},t}(),r!==l?((n=Yr())===l&&(n=null),n!==l?(xr=t,t=r=Jt()):(vr=t,t=l)):(vr=t,t=l),t===l&&(t=vr,48===e.charCodeAt(vr)?(r=$t,vr++):(r=l,0===_r&&Rr(Kt)),r!==l&&(xr=t,r=Zt()),t=r)),Sr[o]={nextPos:vr,result:t},t)}(),n!==l?(xr=t,t=r=Ht(r,n)):(vr=t,t=l)):(vr=t,t=l)),Sr[o]={nextPos:vr,result:t},t)}(),r!==l&&(xr=t,r=ft(r)),(t=r)===l&&(t=vr,(r=Xr())!==l&&(xr=t,r=ft(r)),(t=r)===l&&(t=vr,e.substr(vr,2)===mt?(r=mt,vr+=2):(r=l,0===_r&&Rr(gt)),r!==l&&(xr=t,r=bt()),(t=r)===l&&(t=vr,e.substr(vr,2)===yt?(r=yt,vr+=2):(r=l,0===_r&&Rr(vt)),r!==l&&(xr=t,r=bt()),(t=r)===l&&(t=vr,39===e.charCodeAt(vr)?(r=xt,vr++):(r=l,0===_r&&Rr(wt)),r!==l&&(n=$r())!==l?(39===e.charCodeAt(vr)?(o=xt,vr++):(o=l,0===_r&&Rr(wt)),o!==l?(xr=t,t=r=Ct(n)):(vr=t,t=l)):(vr=t,t=l),t===l&&(t=vr,34===e.charCodeAt(vr)?(r=Pt,vr++):(r=l,0===_r&&Rr(_t)),r!==l&&(n=$r())!==l?(34===e.charCodeAt(vr)?(o=Pt,vr++):(o=l,0===_r&&Rr(_t)),o!==l?(xr=t,t=r=Ct(n)):(vr=t,t=l)):(vr=t,t=l))))))),Sr[i]={nextPos:vr,result:t},t)}(),r!==l?(xr=t,t=lt(r)):(vr=t,t=l)):(vr=t,t=l),t===l&&(t=vr,tn()!==l?(123===e.charCodeAt(vr)?(r=ut,vr++):(r=l,0===_r&&Rr(ct)),r!==l?(n=function(){var e,t,r,n=34*vr+25,o=Sr[n];if(o)return vr=o.nextPos,o.result;if(e=vr,t=[],(r=Zr())!==l)for(;r!==l;)t.push(r),r=Zr();else t=l;return t!==l&&(xr=e,t=Xt(t)),e=t,Sr[n]={nextPos:vr,result:e},e}(),n!==l?(125===e.charCodeAt(vr)?(o=pt,vr++):(o=l,0===_r&&Rr(dt)),o!==l?(xr=t,t=ht(n)):(vr=t,t=l)):(vr=t,t=l)):(vr=t,t=l)):(vr=t,t=l))),Sr[i]={nextPos:vr,result:t},t)}function Jr(){var t,r,n,o,i,s,a,u,c=34*vr+21,p=Sr[c];if(p)return vr=p.nextPos,p.result;if(t=vr,(r=Ir())===l&&(r=null),r!==l){for(n=[],o=vr,(i=tn())!==l?(44===e.charCodeAt(vr)?(s=kt,vr++):(s=l,0===_r&&Rr(Rt)),s!==l&&(a=tn())!==l&&(u=Ir())!==l?o=i=[i,s,a,u]:(vr=o,o=l)):(vr=o,o=l);o!==l;)n.push(o),o=vr,(i=tn())!==l?(44===e.charCodeAt(vr)?(s=kt,vr++):(s=l,0===_r&&Rr(Rt)),s!==l&&(a=tn())!==l&&(u=Ir())!==l?o=i=[i,s,a,u]:(vr=o,o=l)):(vr=o,o=l);n!==l?(xr=t,t=r=It(r,n)):(vr=t,t=l)}else vr=t,t=l;return Sr[c]={nextPos:vr,result:t},t}function $r(){var e,t,r,n=34*vr+26,o=Sr[n];if(o)return vr=o.nextPos,o.result;if(e=vr,t=[],(r=Kr())!==l)for(;r!==l;)t.push(r),r=Kr();else t=l;return t!==l&&(xr=e,t=Xt(t)),e=t,Sr[n]={nextPos:vr,result:e},e}function Kr(){var t,r,n=34*vr+27,o=Sr[n];return o?(vr=o.nextPos,o.result):(t=vr,e.substr(vr,2)===Yt?(r=Yt,vr+=2):(r=l,0===_r&&Rr(er)),r!==l&&(xr=t,r=tr()),(t=r)===l&&(t=vr,e.substr(vr,2)===rr?(r=rr,vr+=2):(r=l,0===_r&&Rr(nr)),r!==l&&(xr=t,r=or()),(t=r)===l&&(t=vr,ir.test(e.charAt(vr))?(r=e.charAt(vr),vr++):(r=l,0===_r&&Rr(sr)),r!==l&&(xr=t,r=ar()),t=r)),Sr[n]={nextPos:vr,result:t},t)}function Zr(){var t,r,n=34*vr+28,o=Sr[n];return o?(vr=o.nextPos,o.result):(t=vr,lr.test(e.charAt(vr))?(r=e.charAt(vr),vr++):(r=l,0===_r&&Rr(ur)),r!==l&&(xr=t,r=ar()),t=r,Sr[n]={nextPos:vr,result:t},t)}function Xr(){var e,t,r,n,o,i,s=34*vr+29,a=Sr[s];if(a)return vr=a.nextPos,a.result;if(e=vr,en()!==l){if(t=[],r=vr,(n=Yr())!==l){for(o=[],i=en();i!==l;)o.push(i),i=en();o!==l?r=n=[n,o]:(vr=r,r=l)}else vr=r,r=l;for(;r!==l;)if(t.push(r),r=vr,(n=Yr())!==l){for(o=[],i=en();i!==l;)o.push(i),i=en();o!==l?r=n=[n,o]:(vr=r,r=l)}else vr=r,r=l;t!==l?(xr=e,e=ar()):(vr=e,e=l)}else vr=e,e=l;return Sr[s]={nextPos:vr,result:e},e}function Yr(){var t,r,n=34*vr+30,o=Sr[n];if(o)return vr=o.nextPos,o.result;if(t=[],cr.test(e.charAt(vr))?(r=e.charAt(vr),vr++):(r=l,0===_r&&Rr(pr)),r!==l)for(;r!==l;)t.push(r),cr.test(e.charAt(vr))?(r=e.charAt(vr),vr++):(r=l,0===_r&&Rr(pr));else t=l;return Sr[n]={nextPos:vr,result:t},t}function en(){var t,r,n=34*vr+32,o=Sr[n];if(o)return vr=o.nextPos,o.result;if(t=[],fr.test(e.charAt(vr))?(r=e.charAt(vr),vr++):(r=l,0===_r&&Rr(mr)),r!==l)for(;r!==l;)t.push(r),fr.test(e.charAt(vr))?(r=e.charAt(vr),vr++):(r=l,0===_r&&Rr(mr));else t=l;return Sr[n]={nextPos:vr,result:t},t}function tn(){var t,r,n=34*vr+33,o=Sr[n];if(o)return vr=o.nextPos,o.result;for(_r++,t=[],br.test(e.charAt(vr))?(r=e.charAt(vr),vr++):(r=l,0===_r&&Rr(yr));r!==l;)t.push(r),br.test(e.charAt(vr))?(r=e.charAt(vr),vr++):(r=l,0===_r&&Rr(yr));return _r--,t===l&&(r=l,0===_r&&Rr(gr)),Sr[n]={nextPos:vr,result:t},t}function rn(e,t,r){return void 0===r&&(r=!1),t.reduce((function(e,t){return new o.BinaryOperand(t[1],e,t[3],r)}),e)}if((r=c())!==l&&vr===e.length)return r;throw r!==l&&vr<e.length&&Rr({type:"end"}),n=Pr,i=Cr<e.length?e.charAt(Cr):null,a=Cr<e.length?kr(Cr,Cr+1):kr(Cr,Cr),new s(s.buildMessage(n,i),n,i,a)}},"./src/expressions/expressions.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"Operand",(function(){return u})),r.d(t,"BinaryOperand",(function(){return c})),r.d(t,"UnaryOperand",(function(){return p})),r.d(t,"ArrayOperand",(function(){return d})),r.d(t,"Const",(function(){return h})),r.d(t,"Variable",(function(){return f})),r.d(t,"FunctionOperand",(function(){return m})),r.d(t,"OperandMaker",(function(){return g}));var n,o=r("./src/helpers.ts"),i=r("./src/functionsfactory.ts"),s=r("./src/conditionProcessValue.ts"),a=r("./src/settings.ts"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(){function e(){}return e.prototype.toString=function(e){return void 0===e&&(e=void 0),""},e.prototype.hasFunction=function(){return!1},e.prototype.hasAsyncFunction=function(){return!1},e.prototype.addToAsyncList=function(e){},e.prototype.isEqual=function(e){return!!e&&e.getType()===this.getType()&&this.isContentEqual(e)},e.prototype.areOperatorsEquals=function(e,t){return!e&&!t||!!e&&e.isEqual(t)},e}(),c=function(e){function t(t,r,n,o){void 0===r&&(r=null),void 0===n&&(n=null),void 0===o&&(o=!1);var i=e.call(this)||this;return i.operatorName=t,i.left=r,i.right=n,i.isArithmeticValue=o,i.consumer=o?g.binaryFunctions.arithmeticOp(t):g.binaryFunctions[t],null==i.consumer&&g.throwInvalidOperatorError(t),i}return l(t,e),t.prototype.getType=function(){return"binary"},Object.defineProperty(t.prototype,"isArithmetic",{get:function(){return this.isArithmeticValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isConjunction",{get:function(){return"or"==this.operatorName||"and"==this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"conjunction",{get:function(){return this.isConjunction?this.operatorName:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftOperand",{get:function(){return this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightOperand",{get:function(){return this.right},enumerable:!1,configurable:!0}),t.prototype.isContentEqual=function(e){var t=e;return t.operator===this.operator&&this.areOperatorsEquals(this.left,t.left)&&this.areOperatorsEquals(this.right,t.right)},t.prototype.evaluateParam=function(e,t){return null==e?null:e.evaluate(t)},t.prototype.evaluate=function(e){return this.consumer.call(this,this.evaluateParam(this.left,e),this.evaluateParam(this.right,e))},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"("+g.safeToString(this.left,e)+" "+g.operatorToString(this.operatorName)+" "+g.safeToString(this.right,e)+")"},t.prototype.setVariables=function(e){null!=this.left&&this.left.setVariables(e),null!=this.right&&this.right.setVariables(e)},t.prototype.hasFunction=function(){return!!this.left&&this.left.hasFunction()||!!this.right&&this.right.hasFunction()},t.prototype.hasAsyncFunction=function(){return!!this.left&&this.left.hasAsyncFunction()||!!this.right&&this.right.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.left&&this.left.addToAsyncList(e),this.right&&this.right.addToAsyncList(e)},t}(u),p=function(e){function t(t,r){var n=e.call(this)||this;return n.expressionValue=t,n.operatorName=r,n.consumer=g.unaryFunctions[r],null==n.consumer&&g.throwInvalidOperatorError(r),n}return l(t,e),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"unary"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return g.operatorToString(this.operatorName)+" "+this.expression.toString(e)},t.prototype.isContentEqual=function(e){var t=e;return t.operator==this.operator&&this.areOperatorsEquals(this.expression,t.expression)},t.prototype.evaluate=function(e){var t=this.expression.evaluate(e);return this.consumer.call(this,t)},t.prototype.setVariables=function(e){this.expression.setVariables(e)},t}(u),d=function(e){function t(t){var r=e.call(this)||this;return r.values=t,r}return l(t,e),t.prototype.getType=function(){return"array"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"["+this.values.map((function(t){return t.toString(e)})).join(", ")+"]"},t.prototype.evaluate=function(e){return this.values.map((function(t){return t.evaluate(e)}))},t.prototype.setVariables=function(e){this.values.forEach((function(t){t.setVariables(e)}))},t.prototype.hasFunction=function(){return this.values.some((function(e){return e.hasFunction()}))},t.prototype.hasAsyncFunction=function(){return this.values.some((function(e){return e.hasAsyncFunction()}))},t.prototype.addToAsyncList=function(e){this.values.forEach((function(t){return t.addToAsyncList(e)}))},t.prototype.isContentEqual=function(e){var t=e;if(t.values.length!==this.values.length)return!1;for(var r=0;r<this.values.length;r++)if(!t.values[r].isEqual(this.values[r]))return!1;return!0},t}(u),h=function(e){function t(t){var r=e.call(this)||this;return r.value=t,r}return l(t,e),t.prototype.getType=function(){return"const"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.value.toString()},Object.defineProperty(t.prototype,"correctValue",{get:function(){return this.getCorrectValue(this.value)},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(){return this.getCorrectValue(this.value)},t.prototype.setVariables=function(e){},t.prototype.getCorrectValue=function(e){return e&&"string"==typeof e?this.isBooleanValue(e)?"true"===e.toLowerCase():e.length>1&&this.isQuote(e[0])&&this.isQuote(e[e.length-1])?e.substring(1,e.length-1):g.isNumeric(e)?0==e.indexOf("0x")?parseInt(e):e.length>1&&"0"==e[0]?e:parseFloat(e):e:e},t.prototype.isContentEqual=function(e){return e.value==this.value},t.prototype.isQuote=function(e){return"'"==e||'"'==e},t.prototype.isBooleanValue=function(e){return e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},t}(u),f=function(e){function t(r){var n=e.call(this,r)||this;return n.variableName=r,n.valueInfo={},n.useValueAsItIs=!1,n.variableName&&n.variableName.length>1&&n.variableName[0]===t.DisableConversionChar&&(n.variableName=n.variableName.substring(1),n.useValueAsItIs=!0),n}return l(t,e),Object.defineProperty(t,"DisableConversionChar",{get:function(){return a.settings.expressionDisableConversionChar},set:function(e){a.settings.expressionDisableConversionChar=e},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"variable"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var r=e(this);if(r)return r}return"{"+(this.useValueAsItIs?t.DisableConversionChar:"")+this.variableName+"}"},Object.defineProperty(t.prototype,"variable",{get:function(){return this.variableName},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(e){return this.valueInfo.name=this.variableName,e.getValueInfo(this.valueInfo),this.valueInfo.hasValue?this.getCorrectValue(this.valueInfo.value):null},t.prototype.setVariables=function(e){e.push(this.variableName)},t.prototype.getCorrectValue=function(t){return this.useValueAsItIs?t:e.prototype.getCorrectValue.call(this,t)},t.prototype.isContentEqual=function(e){return e.variable==this.variable},t}(h),m=function(e){function t(t,r){var n=e.call(this)||this;return n.originalValue=t,n.parameters=r,n.isReadyValue=!1,Array.isArray(r)&&0===r.length&&(n.parameters=new d([])),n}return l(t,e),t.prototype.getType=function(){return"function"},t.prototype.evaluateAsync=function(e){var t=this;this.isReadyValue=!1;var r=new s.ProcessValue;r.values=o.Helpers.createCopy(e.values),r.properties=o.Helpers.createCopy(e.properties),r.properties.returnResult=function(e){t.asynResult=e,t.isReadyValue=!0,t.onAsyncReady()},this.evaluateCore(r)},t.prototype.evaluate=function(e){return this.isReady?this.asynResult:this.evaluateCore(e)},t.prototype.evaluateCore=function(e){return i.FunctionFactory.Instance.run(this.originalValue,this.parameters.evaluate(e),e.properties)},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.originalValue+"("+this.parameters.toString(e)+")"},t.prototype.setVariables=function(e){this.parameters.setVariables(e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),t.prototype.hasFunction=function(){return!0},t.prototype.hasAsyncFunction=function(){return i.FunctionFactory.Instance.isAsyncFunction(this.originalValue)},t.prototype.addToAsyncList=function(e){this.hasAsyncFunction()&&e.push(this)},t.prototype.isContentEqual=function(e){var t=e;return t.originalValue==this.originalValue&&this.areOperatorsEquals(t.parameters,this.parameters)},t}(u),g=function(){function e(){}return e.throwInvalidOperatorError=function(e){throw new Error("Invalid operator: '"+e+"'")},e.safeToString=function(e,t){return null==e?"":e.toString(t)},e.toOperandString=function(t){return!t||e.isNumeric(t)||e.isBooleanValue(t)||(t="'"+t+"'"),t},e.isSpaceString=function(e){return!!e&&!e.replace(" ","")},e.isNumeric=function(t){return(!t||!(t.indexOf("-")>-1||t.indexOf("+")>1||t.indexOf("*")>-1||t.indexOf("^")>-1||t.indexOf("/")>-1||t.indexOf("%")>-1))&&!e.isSpaceString(t)&&o.Helpers.isNumber(t)},e.isBooleanValue=function(e){return!!e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},e.countDecimals=function(e){if(o.Helpers.isNumber(e)&&Math.floor(e)!==e){var t=e.toString().split(".");return t.length>1&&t[1].length||0}return 0},e.plusMinus=function(t,r,n){var o=e.countDecimals(t),i=e.countDecimals(r);if(o>0||i>0){var s=Math.max(o,i);n=parseFloat(n.toFixed(s))}return n},e.isTwoValueEquals=function(e,t){return"undefined"===e&&(e=void 0),"undefined"===t&&(t=void 0),o.Helpers.isTwoValueEquals(e,t,!0)},e.operatorToString=function(t){var r=e.signs[t];return null==r?t:r},e.unaryFunctions={empty:function(e){return o.Helpers.isValueEmpty(e)},notempty:function(t){return!e.unaryFunctions.empty(t)},negate:function(e){return!e}},e.binaryFunctions={arithmeticOp:function(t){var r=function(e,t){return o.Helpers.isValueEmpty(e)?"number"==typeof t?0:"string"==typeof e?e:"string"==typeof t?"":Array.isArray(t)?[]:0:e};return function(n,o){n=r(n,o),o=r(o,n);var i=e.binaryFunctions[t];return null==i?null:i.call(this,n,o)}},and:function(e,t){return e&&t},or:function(e,t){return e||t},plus:function(e,t){return o.Helpers.sumAnyValues(e,t)},minus:function(e,t){return o.Helpers.correctAfterPlusMinis(e,t,e-t)},mul:function(e,t){return o.Helpers.correctAfterMultiple(e,t,e*t)},div:function(e,t){return t?e/t:null},mod:function(e,t){return t?e%t:null},power:function(e,t){return Math.pow(e,t)},greater:function(e,t){return null!=e&&null!=t&&e>t},less:function(e,t){return null!=e&&null!=t&&e<t},greaterorequal:function(t,r){return!!e.binaryFunctions.equal(t,r)||e.binaryFunctions.greater(t,r)},lessorequal:function(t,r){return!!e.binaryFunctions.equal(t,r)||e.binaryFunctions.less(t,r)},equal:function(t,r){return e.isTwoValueEquals(t,r)},notequal:function(t,r){return!e.binaryFunctions.equal(t,r)},contains:function(t,r){return e.binaryFunctions.containsCore(t,r,!0)},notcontains:function(t,r){return!t&&!o.Helpers.isValueEmpty(r)||e.binaryFunctions.containsCore(t,r,!1)},anyof:function(t,r){if(o.Helpers.isValueEmpty(t)&&o.Helpers.isValueEmpty(r))return!0;if(o.Helpers.isValueEmpty(t)||!Array.isArray(t)&&0===t.length)return!1;if(o.Helpers.isValueEmpty(r))return!0;if(!Array.isArray(t))return e.binaryFunctions.contains(r,t);if(!Array.isArray(r))return e.binaryFunctions.contains(t,r);for(var n=0;n<r.length;n++)if(e.binaryFunctions.contains(t,r[n]))return!0;return!1},allof:function(t,r){if(!t&&!o.Helpers.isValueEmpty(r))return!1;if(!Array.isArray(r))return e.binaryFunctions.contains(t,r);for(var n=0;n<r.length;n++)if(!e.binaryFunctions.contains(t,r[n]))return!1;return!0},containsCore:function(t,r,n){if(!t&&0!==t&&!1!==t)return!1;if(t.length||(t=t.toString(),("string"==typeof r||r instanceof String)&&(t=t.toUpperCase(),r=r.toUpperCase())),"string"==typeof t||t instanceof String){if(!r)return!1;r=r.toString();var o=t.indexOf(r)>-1;return n?o:!o}for(var i=Array.isArray(r)?r:[r],s=0;s<i.length;s++){var a=0;for(r=i[s];a<t.length&&!e.isTwoValueEquals(t[a],r);a++);if(a==t.length)return!n}return n}},e.signs={less:"<",lessorequal:"<=",greater:">",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"and",or:"or",power:"^",mod:"%",negate:"!"},e}()},"./src/flowpanel.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"FlowPanelModel",(function(){return a}));var n,o=r("./src/jsonobject.ts"),i=r("./src/panel.ts"),s=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(t){void 0===t&&(t="");var r=e.call(this,t)||this;return r.createLocalizableString("content",r,!0),r.registerPropertyChangedHandlers(["content"],(function(){r.onContentChanged()})),r}return s(t,e),t.prototype.getType=function(){return"flowpanel"},t.prototype.getChildrenLayoutType=function(){return"flow"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onContentChanged()},Object.defineProperty(t.prototype,"content",{get:function(){return this.getLocalizableStringText("content")},set:function(e){this.setLocalizableStringText("content",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locContent",{get:function(){return this.getLocalizableString("content")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.getPropertyValue("html","")},set:function(e){this.setPropertyValue("html",e)},enumerable:!1,configurable:!0}),t.prototype.onContentChanged=function(){var e;e=this.onCustomHtmlProducing?this.onCustomHtmlProducing():this.produceHtml(),this.html=e,this.contentChangedCallback&&this.contentChangedCallback()},t.prototype.produceHtml=function(){for(var e=[],t=/{(.*?(element:)[^$].*?)}/g,r=this.content,n=0,o=null;null!==(o=t.exec(r));){o.index>n&&(e.push(r.substring(n,o.index)),n=o.index);var i=this.getQuestionFromText(o[0]);i?e.push(this.getHtmlForQuestion(i)):e.push(r.substring(n,o.index+o[0].length)),n=o.index+o[0].length}return n<r.length&&e.push(r.substring(n,r.length)),e.join("").replace(new RegExp("<br>","g"),"<br/>")},t.prototype.getQuestionFromText=function(e){return e=(e=e.substring(1,e.length-1)).replace(t.contentElementNamePrefix,"").trim(),this.getQuestionByName(e)},t.prototype.getHtmlForQuestion=function(e){return this.onGetHtmlForQuestion?this.onGetHtmlForQuestion(e):""},t.prototype.getQuestionHtmlId=function(e){return this.name+"_"+e.id},t.prototype.onAddElement=function(t,r){e.prototype.onAddElement.call(this,t,r),this.addElementToContent(t),t.renderWidth=""},t.prototype.onRemoveElement=function(t){var r=this.getElementContentText(t);this.content=this.content.replace(r,""),e.prototype.onRemoveElement.call(this,t)},t.prototype.dragDropMoveElement=function(e,t,r){},t.prototype.addElementToContent=function(e){if(!this.isLoadingFromJson){var t=this.getElementContentText(e);this.insertTextAtCursor(t)||(this.content=this.content+t)}},t.prototype.insertTextAtCursor=function(e,t){if(void 0===t&&(t=null),!this.isDesignMode||"undefined"==typeof document||!window.getSelection)return!1;var r=window.getSelection();if(r.getRangeAt&&r.rangeCount){var n=r.getRangeAt(0);if(n.deleteContents(),n.insertNode(document.createTextNode(e)),this.getContent){var o=this.getContent(t);this.content=o}return!0}return!1},t.prototype.getElementContentText=function(e){return"{"+t.contentElementNamePrefix+e.name+"}"},t.contentElementNamePrefix="element:",t}(i.PanelModel);o.Serializer.addClass("flowpanel",[{name:"content:html",serializationProperty:"locContent"}],(function(){return new a}),"panel")},"./src/functionsfactory.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"FunctionFactory",(function(){return i})),r.d(t,"registerFunction",(function(){return s}));var n=r("./src/helpers.ts"),o=r("./src/settings.ts"),i=function(){function e(){this.functionHash={},this.isAsyncHash={}}return e.prototype.register=function(e,t,r){void 0===r&&(r=!1),this.functionHash[e]=t,r&&(this.isAsyncHash[e]=!0)},e.prototype.unregister=function(e){delete this.functionHash[e],delete this.isAsyncHash[e]},e.prototype.hasFunction=function(e){return!!this.functionHash[e]},e.prototype.isAsyncFunction=function(e){return!!this.isAsyncHash[e]},e.prototype.clear=function(){this.functionHash={}},e.prototype.getAll=function(){var e=[];for(var t in this.functionHash)e.push(t);return e.sort()},e.prototype.run=function(e,t,r){void 0===r&&(r=null);var n=this.functionHash[e];if(!n)return null;var o={func:n};if(r)for(var i in r)o[i]=r[i];return o.func(t)},e.Instance=new e,e}(),s=i.Instance.register;function a(e,t){if(null!=e)if(Array.isArray(e))for(var r=0;r<e.length;r++)a(e[r],t);else n.Helpers.isNumber(e)&&(e=n.Helpers.getNumber(e)),t.push(e)}function l(e){var t=[];a(e,t);for(var r=0,o=0;o<t.length;o++)r=n.Helpers.correctAfterPlusMinis(r,t[o],r+t[o]);return r}function u(e,t){var r=[];a(e,r);for(var n=void 0,o=0;o<r.length;o++)void 0===n&&(n=r[o]),t?n>r[o]&&(n=r[o]):n<r[o]&&(n=r[o]);return n}function c(e,t,r,o,i){return!e||n.Helpers.isValueEmpty(e[t])?r:o(r,i?"string"==typeof(s=e[t])?n.Helpers.isNumber(s)?n.Helpers.getNumber(s):void 0:s:1);var s}function p(e,t,r){void 0===r&&(r=!0);var n=function(e){if(2!=e.length)return null;var t=e[0];if(!t)return null;if(!Array.isArray(t)&&!Array.isArray(Object.keys(t)))return null;var r=e[1];return"string"==typeof r||r instanceof String?{data:t,name:r}:null}(e);if(n){var o=void 0;if(Array.isArray(n.data))for(var i=0;i<n.data.length;i++)o=c(n.data[i],n.name,o,t,r);else for(var s in n.data)o=c(n.data[s],n.name,o,t,r);return o}}function d(e){var t=p(e,(function(e,t){return null==e&&(e=0),null==t||null==t?e:n.Helpers.correctAfterPlusMinis(e,t,e+t)}));return void 0!==t?t:0}function h(e){var t=p(e,(function(e,t){return null==e&&(e=0),null==t||null==t?e:e+1}),!1);return void 0!==t?t:0}function f(e){if(!e)return!1;for(var t=e.questions,r=0;r<t.length;r++)if(!t[r].validate(!1))return!1;return!0}i.Instance.register("sum",l),i.Instance.register("min",(function(e){return u(e,!0)})),i.Instance.register("max",(function(e){return u(e,!1)})),i.Instance.register("count",(function(e){var t=[];return a(e,t),t.length})),i.Instance.register("avg",(function(e){var t=[];a(e,t);var r=l(e);return t.length>0?r/t.length:0})),i.Instance.register("sumInArray",d),i.Instance.register("minInArray",(function(e){return p(e,(function(e,t){return null==e?t:null==t||null==t||e<t?e:t}))})),i.Instance.register("maxInArray",(function(e){return p(e,(function(e,t){return null==e?t:null==t||null==t||e>t?e:t}))})),i.Instance.register("countInArray",h),i.Instance.register("avgInArray",(function(e){var t=h(e);return 0==t?0:d(e)/t})),i.Instance.register("iif",(function(e){return e||3===e.length?e[0]?e[1]:e[2]:""})),i.Instance.register("getDate",(function(e){return!e&&e.length<1?null:e[0]?new Date(e[0]):null})),i.Instance.register("age",(function(e){if(!e&&e.length<1)return null;if(!e[0])return null;var t=new Date(e[0]),r=new Date,n=r.getFullYear()-t.getFullYear(),o=r.getMonth()-t.getMonth();return(o<0||0===o&&r.getDate()<t.getDate())&&(n-=n>0?1:0),n})),i.Instance.register("isContainerReady",(function(e){if(!e&&e.length<1)return!1;if(!e[0]||!this.survey)return!1;var t=e[0],r=this.survey.getPageByName(t);if(r||(r=this.survey.getPanelByName(t)),!r){var n=this.survey.getQuestionByName(t);if(!n||!Array.isArray(n.panels))return!1;if(!(e.length>1)){for(var o=0;o<n.panels.length;o++)if(!f(n.panels[o]))return!1;return!0}e[1]<n.panels.length&&(r=n.panels[e[1]])}return f(r)})),i.Instance.register("isDisplayMode",(function(){return this.survey&&this.survey.isDisplayMode})),i.Instance.register("currentDate",(function(){return new Date})),i.Instance.register("today",(function(e){var t=new Date;return o.settings.useLocalTimeZone?t.setHours(0,0,0,0):t.setUTCHours(0,0,0,0),Array.isArray(e)&&1==e.length&&t.setDate(t.getDate()+e[0]),t})),i.Instance.register("getYear",(function(e){if(1===e.length&&e[0])return new Date(e[0]).getFullYear()})),i.Instance.register("currentYear",(function(){return(new Date).getFullYear()})),i.Instance.register("diffDays",(function(e){if(!Array.isArray(e)||2!==e.length)return 0;if(!e[0]||!e[1])return 0;var t=new Date(e[0]),r=new Date(e[1]),n=Math.abs(r-t);return Math.ceil(n/864e5)}))},"./src/helpers.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"Helpers",(function(){return o}));var n=r("./src/settings.ts"),o=function(){function e(){}return e.isValueEmpty=function(t){if(Array.isArray(t)&&0===t.length)return!0;if(t&&"object"==typeof t&&t.constructor===Object){for(var r in t)if(!e.isValueEmpty(t[r]))return!1;return!0}return!t&&0!==t&&!1!==t},e.isArrayContainsEqual=function(t,r){if(!Array.isArray(t)||!Array.isArray(r))return!1;if(t.length!==r.length)return!1;for(var n=0;n<t.length;n++){for(var o=0;o<r.length&&!e.isTwoValueEquals(t[n],r[o]);o++);if(o===r.length)return!1}return!0},e.isArraysEqual=function(t,r,n,o,i){if(void 0===n&&(n=!1),!Array.isArray(t)||!Array.isArray(r))return!1;if(t.length!==r.length)return!1;if(n){for(var s=[],a=[],l=0;l<t.length;l++)s.push(t[l]),a.push(r[l]);s.sort(),a.sort(),t=s,r=a}for(l=0;l<t.length;l++)if(!e.isTwoValueEquals(t[l],r[l],n,o,i))return!1;return!0},e.compareStrings=function(e,t){if(e&&(e=e.trim()),t&&(t=t.trim()),!e&&!t)return 0;if(!e)return-1;if(!t)return 1;if(e===t)return 0;for(var r=-1,n=0;n<e.length&&n<t.length;n++){if(this.isCharDigit(e[n])&&this.isCharDigit(t[n])){r=n;break}if(e[n]!==t[n])break}if(r>-1){var o=this.getNumberFromStr(e,r),i=this.getNumberFromStr(t,r);if(!Number.isNaN(o)&&!Number.isNaN(i)&&o!==i)return o>i?1:-1}return e>t?1:-1},e.isTwoValueEquals=function(t,r,o,i,s){if(void 0===o&&(o=!1),t===r)return!0;if(Array.isArray(t)&&0===t.length&&void 0===r)return!0;if(Array.isArray(r)&&0===r.length&&void 0===t)return!0;if(null==t&&""===r)return!0;if(null==r&&""===t)return!0;if(void 0===s&&(s=n.settings.comparator.trimStrings),void 0===i&&(i=n.settings.comparator.caseSensitive),"string"==typeof t&&"string"==typeof r)return s&&(t=t.trim(),r=r.trim()),i||(t=t.toLowerCase(),r=r.toLowerCase()),t===r;if(t instanceof Date&&r instanceof Date)return t.getTime()==r.getTime();if(e.isConvertibleToNumber(t)&&e.isConvertibleToNumber(r)&&parseInt(t)===parseInt(r)&&parseFloat(t)===parseFloat(r))return!0;if(!e.isValueEmpty(t)&&e.isValueEmpty(r)||e.isValueEmpty(t)&&!e.isValueEmpty(r))return!1;if((!0===t||!1===t)&&"string"==typeof r)return t.toString()===r.toLocaleLowerCase();if((!0===r||!1===r)&&"string"==typeof t)return r.toString()===t.toLocaleLowerCase();if(!(t instanceof Object||r instanceof Object))return t==r;if(!(t instanceof Object&&r instanceof Object))return!1;if(t.equals)return t.equals(r);if(t.toJSON&&r.toJSON&&t.getType&&r.getType)return!t.isDiposed&&!r.isDiposed&&t.getType()===r.getType()&&(!t.name||t.name===r.name)&&this.isTwoValueEquals(t.toJSON(),r.toJSON(),o,i,s);if(Array.isArray(t)&&Array.isArray(r))return e.isArraysEqual(t,r,o,i,s);if(t.equalsTo&&r.equalsTo)return t.equalsTo(r);for(var a in t)if(t.hasOwnProperty(a)){if(!r.hasOwnProperty(a))return!1;if(!this.isTwoValueEquals(t[a],r[a],o,i,s))return!1}for(a in r)if(r.hasOwnProperty(a)&&!t.hasOwnProperty(a))return!1;return!0},e.randomizeArray=function(e){for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e},e.getUnbindValue=function(e){return e&&e instanceof Object&&!(e instanceof Date)?JSON.parse(JSON.stringify(e)):e},e.createCopy=function(e){var t={};if(!e)return t;for(var r in e)t[r]=e[r];return t},e.isConvertibleToNumber=function(e){return null!=e&&!Array.isArray(e)&&!isNaN(e)},e.isNumber=function(e){return!isNaN(this.getNumber(e))},e.getNumber=function(e){if("string"==typeof e&&e&&0==e.indexOf("0x")&&e.length>32)return NaN;e=this.prepareStringToNumber(e);var t=parseFloat(e);return isNaN(t)||!isFinite(e)?NaN:t},e.prepareStringToNumber=function(e){if("string"!=typeof e||!e)return e;var t=e.indexOf(",");return t>-1&&e.indexOf(",",t+1)<0?e.replace(",","."):e},e.getMaxLength=function(e,t){return e<0&&(e=t),e>0?e:null},e.getRemainingCharacterCounterText=function(e,t){return!t||t<=0?"":[e?e.length:"0",t].join("/")},e.getNumberByIndex=function(t,r){if(t<0)return"";var n=1,o="",i=".",s=!0,a="A",l="";if(r){for(var u=(l=r).length-1,c=!1,p=0;p<l.length;p++)if(e.isCharDigit(l[p])){c=!0;break}for(var d=function(){return c&&!e.isCharDigit(l[u])||e.isCharNotLetterAndDigit(l[u])};u>=0&&d();)u--;var h="";for(u<l.length-1&&(h=l.substring(u+1),l=l.substring(0,u+1)),u=l.length-1;u>=0&&!d()&&(u--,c););a=l.substring(u+1),o=l.substring(0,u+1),parseInt(a)?n=parseInt(a):1==a.length&&(s=!1),(h||o)&&(i=h)}if(s){for(var f=(t+n).toString();f.length<a.length;)f="0"+f;return o+f+i}return o+String.fromCharCode(a.charCodeAt(0)+t)+i},e.isCharNotLetterAndDigit=function(t){return t.toUpperCase()==t.toLowerCase()&&!e.isCharDigit(t)},e.isCharDigit=function(e){return e>="0"&&e<="9"},e.getNumberFromStr=function(e,t){if(!this.isCharDigit(e[t]))return NaN;for(var r="";t<e.length&&this.isCharDigit(e[t]);)r+=e[t],t++;return r?this.getNumber(r):NaN},e.countDecimals=function(t){if(e.isNumber(t)&&Math.floor(t)!==t){var r=t.toString().split(".");return r.length>1&&r[1].length||0}return 0},e.correctAfterPlusMinis=function(t,r,n){var o=e.countDecimals(t),i=e.countDecimals(r);if(o>0||i>0){var s=Math.max(o,i);n=parseFloat(n.toFixed(s))}return n},e.sumAnyValues=function(t,r){if(!e.isNumber(t)||!e.isNumber(r)){if(Array.isArray(t)&&Array.isArray(r))return[].concat(t).concat(r);if(Array.isArray(t)||Array.isArray(r)){var n=Array.isArray(t)?t:r,o=n===t?r:t;if("string"==typeof o){var i=n.join(", ");return n===t?i+o:o+i}if("number"==typeof o){for(var s=0,a=0;a<n.length;a++)"number"==typeof n[a]&&(s=e.correctAfterPlusMinis(s,n[a],s+n[a]));return e.correctAfterPlusMinis(s,o,s+o)}}return t+r}return e.correctAfterPlusMinis(t,r,t+r)},e.correctAfterMultiple=function(t,r,n){var o=e.countDecimals(t)+e.countDecimals(r);return o>0&&(n=parseFloat(n.toFixed(o))),n},e.convertArrayValueToObject=function(t,r,n){void 0===n&&(n=void 0);var o=new Array;if(!t||!Array.isArray(t))return o;for(var i=0;i<t.length;i++){var s=void 0;Array.isArray(n)&&(s=e.findObjByPropValue(n,r,t[i])),s||((s={})[r]=t[i]),o.push(s)}return o},e.findObjByPropValue=function(t,r,n){for(var o=0;o<t.length;o++)if(e.isTwoValueEquals(t[o][r],n))return t[o]},e.convertArrayObjectToValue=function(t,r){var n=new Array;if(!t||!Array.isArray(t))return n;for(var o=0;o<t.length;o++){var i=t[o]?t[o][r]:void 0;e.isValueEmpty(i)||n.push(i)}return n},e.convertDateToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())},e.convertDateTimeToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return this.convertDateToString(e)+" "+t(e.getHours())+":"+t(e.getMinutes())},e.convertValToQuestionVal=function(t,r){return t instanceof Date?"datetime-local"===r?e.convertDateTimeToString(t):e.convertDateToString(t):t},e}();String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,(function(t,r){return void 0!==e[r]?e[r]:t}))})},"./src/images sync \\.svg$":function(e,t,r){var n={"./ArrowDown_34x34.svg":"./src/images/ArrowDown_34x34.svg","./ArrowLeft.svg":"./src/images/ArrowLeft.svg","./ArrowRight.svg":"./src/images/ArrowRight.svg","./Arrow_downGREY_10x10.svg":"./src/images/Arrow_downGREY_10x10.svg","./ChooseFile.svg":"./src/images/ChooseFile.svg","./Clear.svg":"./src/images/Clear.svg","./DefaultFile.svg":"./src/images/DefaultFile.svg","./Delete.svg":"./src/images/Delete.svg","./Down_34x34.svg":"./src/images/Down_34x34.svg","./Left.svg":"./src/images/Left.svg","./ModernBooleanCheckChecked.svg":"./src/images/ModernBooleanCheckChecked.svg","./ModernBooleanCheckInd.svg":"./src/images/ModernBooleanCheckInd.svg","./ModernBooleanCheckUnchecked.svg":"./src/images/ModernBooleanCheckUnchecked.svg","./ModernCheck.svg":"./src/images/ModernCheck.svg","./ModernRadio.svg":"./src/images/ModernRadio.svg","./More.svg":"./src/images/More.svg","./ProgressButton.svg":"./src/images/ProgressButton.svg","./ProgressButtonV2.svg":"./src/images/ProgressButtonV2.svg","./RemoveFile.svg":"./src/images/RemoveFile.svg","./Right.svg":"./src/images/Right.svg","./SearchClear.svg":"./src/images/SearchClear.svg","./TimerCircle.svg":"./src/images/TimerCircle.svg","./V2Check.svg":"./src/images/V2Check.svg","./V2Check_24x24.svg":"./src/images/V2Check_24x24.svg","./V2DragElement_16x16.svg":"./src/images/V2DragElement_16x16.svg","./clear_16x16.svg":"./src/images/clear_16x16.svg","./collapseDetail.svg":"./src/images/collapseDetail.svg","./expandDetail.svg":"./src/images/expandDetail.svg","./no-image.svg":"./src/images/no-image.svg","./rating-star-2.svg":"./src/images/rating-star-2.svg","./rating-star-small-2.svg":"./src/images/rating-star-small-2.svg","./rating-star-small.svg":"./src/images/rating-star-small.svg","./rating-star.svg":"./src/images/rating-star.svg","./search.svg":"./src/images/search.svg"};function o(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id="./src/images sync \\.svg$"},"./src/images/ArrowDown_34x34.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 34 34" xml:space="preserve"><polygon class="st0" points="12,16 14,14 17,17 20,14 22,16 17,21 "></polygon></svg>'},"./src/images/ArrowLeft.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15 8.99999H4.39998L8.69998 13.3L7.29998 14.7L0.599976 7.99999L7.29998 1.29999L8.69998 2.69999L4.39998 6.99999H15V8.99999Z"></path></svg>'},"./src/images/ArrowRight.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M1 6.99999H11.6L7.3 2.69999L8.7 1.29999L15.4 7.99999L8.7 14.7L7.3 13.3L11.6 8.99999H1V6.99999Z"></path></svg>'},"./src/images/Arrow_downGREY_10x10.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 10 10" xml:space="preserve"><polygon class="st0" points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./src/images/ChooseFile.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22 9V7C22 5.9 21.1 5 20 5H12L10 3H4C2.9 3 2 3.9 2 5V9V10V21H22L24 9H22ZM4 5H9.2L10.6 6.4L11.2 7H12H20V9H4V5ZM20.3 19H4V11H21.6L20.3 19Z"></path></svg>'},"./src/images/Clear.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22.6 8.6L16.4 2.4C16 2 15.5 1.8 15 1.8C14.5 1.8 14 2 13.6 2.4L1.4 14.6C0.600003 15.4 0.600003 16.6 1.4 17.4L6 22H12L22.6 11.4C23.3 10.6 23.3 9.3 22.6 8.6ZM11.1 20H6.8L2.8 16L6.2 12.6L12.4 18.8L11.1 20ZM13.8 17.4L7.6 11.2L15 3.8L21.2 10L13.8 17.4ZM16 20H23V22H14L16 20Z"></path></svg>'},"./src/images/DefaultFile.svg":function(e,t){e.exports='<svg viewBox="0 0 56 68" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_9011_41219)"><path d="M54.83 10.83L45.17 1.17C44.7982 0.798664 44.357 0.504208 43.8714 0.303455C43.3858 0.102703 42.8654 -0.000411943 42.34 1.2368e-06H6C4.4087 1.2368e-06 2.88257 0.632142 1.75735 1.75736C0.632136 2.88258 0 4.4087 0 6V62C0 63.5913 0.632136 65.1174 1.75735 66.2426C2.88257 67.3679 4.4087 68 6 68H50C51.5913 68 53.1174 67.3679 54.2426 66.2426C55.3679 65.1174 56 63.5913 56 62V13.66C56.0004 13.1346 55.8973 12.6142 55.6965 12.1286C55.4958 11.643 55.2013 11.2018 54.83 10.83ZM44 2.83L53.17 12H48C46.9391 12 45.9217 11.5786 45.1716 10.8284C44.4214 10.0783 44 9.06087 44 8V2.83ZM54 62C54 63.0609 53.5786 64.0783 52.8284 64.8284C52.0783 65.5786 51.0609 66 50 66H6C4.93913 66 3.92172 65.5786 3.17157 64.8284C2.42142 64.0783 2 63.0609 2 62V6C2 4.93914 2.42142 3.92172 3.17157 3.17157C3.92172 2.42143 4.93913 2 6 2H42V8C42 9.5913 42.6321 11.1174 43.7574 12.2426C44.8826 13.3679 46.4087 14 48 14H54V62ZM14 24H42V26H14V24ZM14 30H42V32H14V30ZM14 36H42V38H14V36ZM14 42H42V44H14V42Z" fill="#909090"></path></g><defs><clipPath id="clip0_9011_41219"><rect width="56" height="68" fill="white"></rect></clipPath></defs></svg>'},"./src/images/Delete.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22 4H20H16V2C16 0.9 15.1 0 14 0H10C8.9 0 8 0.9 8 2V4H4H2V6H4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V6H22V4ZM10 2H14V4H10V2ZM18 20H6V6H8H16H18V20ZM14 8H16V18H14V8ZM11 8H13V18H11V8ZM8 8H10V18H8V8Z"></path></svg>'},"./src/images/Down_34x34.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 34 34" xml:space="preserve"><g><path class="st0" d="M33,34H0V0h33c0.6,0,1,0.4,1,1v32C34,33.6,33.6,34,33,34z"></path><polygon class="st1" points="12,16 14,14 17,17 20,14 22,16 17,21 "></polygon></g></svg>'},"./src/images/Left.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve"><polygon points="11,12 9,14 3,8 9,2 11,4 7,8 "></polygon></svg>'},"./src/images/ModernBooleanCheckChecked.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><polygon points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "></polygon></svg>'},"./src/images/ModernBooleanCheckInd.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"></path></svg>'},"./src/images/ModernBooleanCheckUnchecked.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="4"></rect></svg>'},"./src/images/ModernCheck.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24"><path d="M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"></path></svg>'},"./src/images/ModernRadio.svg":function(e,t){e.exports='<svg viewBox="-12 -12 24 24"><circle r="6" cx="0" cy="0"></circle></svg>'},"./src/images/More.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6 12C6 13.1 5.1 14 4 14C2.9 14 2 13.1 2 12C2 10.9 2.9 10 4 10C5.1 10 6 10.9 6 12ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10ZM20 10C18.9 10 18 10.9 18 12C18 13.1 18.9 14 20 14C21.1 14 22 13.1 22 12C22 10.9 21.1 10 20 10Z"></path></svg>'},"./src/images/ProgressButton.svg":function(e,t){e.exports='<svg viewBox="0 0 10 10"><polygon points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./src/images/ProgressButtonV2.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16"><path d="M15 8.99999H4.39998L8.69998 13.3L7.29998 14.7L0.599976 7.99999L7.29998 1.29999L8.69998 2.69999L4.39998 6.99999H15V8.99999Z"></path></svg>'},"./src/images/RemoveFile.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16"><path d="M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z M11,10l-1,1L8,9l-2,2l-1-1l2-2L5,6l1-1l2,2l2-2l1,1L9,8 L11,10z"></path></svg>'},"./src/images/Right.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve"><polygon points="5,4 7,2 13,8 7,14 5,12 9,8 "></polygon></svg>'},"./src/images/SearchClear.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.35 3.34999L12.65 2.64999L8.05002 7.24999L3.35002 2.64999L2.65002 3.34999L7.25002 8.04999L2.65002 12.65L3.35002 13.35L8.05002 8.74999L12.65 13.35L13.35 12.65L8.75002 8.04999L13.35 3.34999Z"></path></svg>'},"./src/images/TimerCircle.svg":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 160 160"><circle cx="80" cy="80" r="70" style="stroke: var(--sd-timer-stroke-background-color); stroke-width: var(--sd-timer-stroke-background-width)" stroke-dasharray="none" stroke-dashoffset="none"></circle><circle cx="80" cy="80" r="70"></circle></svg>'},"./src/images/V2Check.svg":function(e,t){e.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.00001 15.8L2.60001 10.4L4.00001 9L8.00001 13L16 5L17.4 6.4L8.00001 15.8Z"></path></svg>'},"./src/images/V2Check_24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9 20.1L1 12L3.1 9.9L9 15.9L20.9 4L23 6.1L9 20.1Z"></path></svg>'},"./src/images/V2DragElement_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M2 4C2 3.73478 2.10536 3.48043 2.29289 3.29289C2.48043 3.10536 2.73478 3 3 3H13C13.2652 3 13.5196 3.10536 13.7071 3.29289C13.8946 3.48043 14 3.73478 14 4C14 4.26522 13.8946 4.51957 13.7071 4.70711C13.5196 4.89464 13.2652 5 13 5H3C2.73478 5 2.48043 4.89464 2.29289 4.70711C2.10536 4.51957 2 4.26522 2 4ZM13 7H3C2.73478 7 2.48043 7.10536 2.29289 7.29289C2.10536 7.48043 2 7.73478 2 8C2 8.26522 2.10536 8.51957 2.29289 8.70711C2.48043 8.89464 2.73478 9 3 9H13C13.2652 9 13.5196 8.89464 13.7071 8.70711C13.8946 8.51957 14 8.26522 14 8C14 7.73478 13.8946 7.48043 13.7071 7.29289C13.5196 7.10536 13.2652 7 13 7ZM13 11H3C2.73478 11 2.48043 11.1054 2.29289 11.2929C2.10536 11.4804 2 11.7348 2 12C2 12.2652 2.10536 12.5196 2.29289 12.7071C2.48043 12.8946 2.73478 13 3 13H13C13.2652 13 13.5196 12.8946 13.7071 12.7071C13.8946 12.5196 14 12.2652 14 12C14 11.7348 13.8946 11.4804 13.7071 11.2929C13.5196 11.1054 13.2652 11 13 11Z"></path></svg>'},"./src/images/clear_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.35 3.34999L12.65 2.64999L8.05002 7.24999L3.35002 2.64999L2.65002 3.34999L7.25002 8.04999L2.65002 12.65L3.35002 13.35L8.05002 8.74999L12.65 13.35L13.35 12.65L8.75002 8.04999L13.35 3.34999Z"></path></svg>'},"./src/images/collapseDetail.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H3V9H13V7Z"></path></svg>'},"./src/images/expandDetail.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H9V3H7V7H3V9H7V13H9V9H13V7Z"></path></svg>'},"./src/images/no-image.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48"><g opacity="0.5"><path d="M14 17.01C14 16.4167 14.1759 15.8366 14.5056 15.3433C14.8352 14.8499 15.3038 14.4654 15.8519 14.2384C16.4001 14.0113 17.0033 13.9519 17.5853 14.0676C18.1672 14.1834 18.7018 14.4691 19.1213 14.8887C19.5409 15.3082 19.8266 15.8428 19.9424 16.4247C20.0581 17.0067 19.9987 17.6099 19.7716 18.1581C19.5446 18.7062 19.1601 19.1748 18.6667 19.5044C18.1734 19.8341 17.5933 20.01 17 20.01C16.2044 20.01 15.4413 19.6939 14.8787 19.1313C14.3161 18.5687 14 17.8056 14 17.01ZM27.09 24.14L20 36.01H36L27.09 24.14ZM36.72 8.14L35.57 10.01H36C36.5304 10.01 37.0391 10.2207 37.4142 10.5958C37.7893 10.9709 38 11.4796 38 12.01V36.01C38 36.5404 37.7893 37.0491 37.4142 37.4242C37.0391 37.7993 36.5304 38.01 36 38.01H18.77L17.57 40.01H36C37.0609 40.01 38.0783 39.5886 38.8284 38.8384C39.5786 38.0883 40 37.0709 40 36.01V12.01C39.9966 11.0765 39.6668 10.1737 39.0678 9.45778C38.4688 8.74188 37.6382 8.25802 36.72 8.09V8.14ZM36.86 4.5L12.86 44.5L11.14 43.5L13.23 40.01H12C10.9391 40.01 9.92172 39.5886 9.17157 38.8384C8.42143 38.0883 8 37.0709 8 36.01V12.01C8 10.9491 8.42143 9.93172 9.17157 9.18157C9.92172 8.43143 10.9391 8.01 12 8.01H32.43L35.14 3.5L36.86 4.5ZM14.43 38.01L15.63 36.01H12L19 27.01L20.56 27.8L31.23 10.01H12C11.4696 10.01 10.9609 10.2207 10.5858 10.5958C10.2107 10.9709 10 11.4796 10 12.01V36.01C10 36.5404 10.2107 37.0491 10.5858 37.4242C10.9609 37.7993 11.4696 38.01 12 38.01H14.43Z"></path></g></svg>'},"./src/images/rating-star-2.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z" fill="none" stroke-width="2"></path><path d="M24.4663 34.6154L24 34.3695L23.5336 34.6154L14.4788 39.389L16.2156 29.2691L16.3044 28.7517L15.9289 28.3848L8.57358 21.1966L18.7249 19.7094L19.245 19.6332L19.4772 19.1616L24 9.97413L28.5228 19.1616L28.755 19.6332L29.275 19.7094L39.4264 21.1966L32.0711 28.3848L31.6956 28.7517L31.7844 29.2691L33.5211 39.389L24.4663 34.6154Z" stroke-width="2"></path></g></svg>'},"./src/images/rating-star-small-2.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z" fill="none" stroke-width="2"></path><path d="M12 15.9472L8.58001 17.7572L9.23001 13.9272L6.45001 11.2072L10.29 10.6472L12 7.17725L13.71 10.6472L17.55 11.2072L14.77 13.9272L15.42 17.7572L12 15.9472Z"></path></svg>'},"./src/images/rating-star-small.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z" stroke-width="2"></path></g></svg>'},"./src/images/rating-star.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z" stroke-width="2"></path></g></svg>'},"./src/images/search.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14 2C9.6 2 6 5.6 6 10C6 11.8 6.6 13.5 7.7 14.9L2.3 20.3C1.9 20.7 1.9 21.3 2.3 21.7C2.5 21.9 2.7 22 3 22C3.3 22 3.5 21.9 3.7 21.7L9.1 16.3C10.5 17.4 12.2 18 14 18C18.4 18 22 14.4 22 10C22 5.6 18.4 2 14 2ZM14 16C10.7 16 8 13.3 8 10C8 6.7 10.7 4 14 4C17.3 4 20 6.7 20 10C20 13.3 17.3 16 14 16Z"></path></svg>'},"./src/images/smiley sync \\.svg$":function(e,t,r){var n={"./average.svg":"./src/images/smiley/average.svg","./excellent.svg":"./src/images/smiley/excellent.svg","./good.svg":"./src/images/smiley/good.svg","./normal.svg":"./src/images/smiley/normal.svg","./not-good.svg":"./src/images/smiley/not-good.svg","./perfect.svg":"./src/images/smiley/perfect.svg","./poor.svg":"./src/images/smiley/poor.svg","./terrible.svg":"./src/images/smiley/terrible.svg","./very-good.svg":"./src/images/smiley/very-good.svg","./very-poor.svg":"./src/images/smiley/very-poor.svg"};function o(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id="./src/images/smiley sync \\.svg$"},"./src/images/smiley/average.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.00572 7C6.45572 7 6.00572 6.55 6.00572 6V2C6.00572 1.45 6.45572 1 7.00572 1C7.55572 1 8.00572 1.45 8.00572 2V6C8.00572 6.55 7.55572 7 7.00572 7ZM18.0057 6V2C18.0057 1.45 17.5557 1 17.0057 1C16.4557 1 16.0057 1.45 16.0057 2V6C16.0057 6.55 16.4557 7 17.0057 7C17.5557 7 18.0057 6.55 18.0057 6ZM19.9457 21.33C20.1257 20.81 19.8557 20.24 19.3357 20.05C14.5457 18.35 9.45572 18.35 4.66572 20.05C4.14572 20.23 3.87572 20.81 4.05572 21.33C4.23572 21.85 4.80572 22.12 5.33572 21.94C9.69572 20.4 14.3057 20.4 18.6657 21.94C18.7757 21.98 18.8857 22 18.9957 22C19.4057 22 19.7957 21.74 19.9357 21.33H19.9457Z"></path></svg>'},"./src/images/smiley/excellent.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'},"./src/images/smiley/good.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.0022 23.99C11.452 23.99 11.0018 23.5402 11.0018 22.9904C11.0018 22.4407 11.452 21.9909 12.0022 21.9909C16.3137 21.9909 21.0755 19.472 22.0158 13.8344C22.1058 13.2947 22.616 12.9248 23.1662 13.0148C23.7064 13.1047 24.0765 13.6245 23.9865 14.1643C22.8561 20.9513 17.144 24 11.9922 24L12.0022 23.99ZM8.00072 5.99783V1.99957C8.00072 1.4498 7.55056 1 7.00036 1C6.45016 1 6 1.4498 6 1.99957V5.99783C6 6.54759 6.45016 6.99739 7.00036 6.99739C7.55056 6.99739 8.00072 6.54759 8.00072 5.99783ZM18.0043 5.99783V1.99957C18.0043 1.4498 17.5542 1 17.004 1C16.4538 1 16.0036 1.4498 16.0036 1.99957V5.99783C16.0036 6.54759 16.4538 6.99739 17.004 6.99739C17.5542 6.99739 18.0043 6.54759 18.0043 5.99783Z"></path></svg>'},"./src/images/smiley/normal.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 7C6.45 7 6 6.55 6 6V2C6 1.45 6.45 1 7 1C7.55 1 8 1.45 8 2V6C8 6.55 7.55 7 7 7ZM18 6V2C18 1.45 17.55 1 17 1C16.45 1 16 1.45 16 2V6C16 6.55 16.45 7 17 7C17.55 7 18 6.55 18 6ZM21 21C21 20.45 20.55 20 20 20H4C3.45 20 3 20.45 3 21C3 21.55 3.45 22 4 22H20C20.55 22 21 21.55 21 21Z"></path></svg>'},"./src/images/smiley/not-good.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.06927 7C6.51927 7 6.06927 6.55 6.06927 6V2C6.06927 1.45 6.51927 1 7.06927 1C7.61927 1 8.06927 1.45 8.06927 2V6C8.06927 6.55 7.61927 7 7.06927 7ZM18.0693 6V2C18.0693 1.45 17.6193 1 17.0693 1C16.5193 1 16.0693 1.45 16.0693 2V6C16.0693 6.55 16.5193 7 17.0693 7C17.6193 7 18.0693 6.55 18.0693 6ZM22.5693 21.9C23.0693 21.66 23.2793 21.07 23.0393 20.57C21.1093 16.52 16.9093 14 12.0693 14C7.22927 14 3.02927 16.52 1.09927 20.57C0.859273 21.07 1.06927 21.67 1.56927 21.9C2.06927 22.14 2.65927 21.93 2.89927 21.43C4.49927 18.08 8.00927 16 12.0593 16C16.1093 16 19.6293 18.08 21.2193 21.43C21.3893 21.79 21.7493 22 22.1193 22C22.2593 22 22.4093 21.97 22.5493 21.9H22.5693Z"></path></svg>'},"./src/images/smiley/perfect.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 23C6.85721 23 1.15412 19.9621 0.0134987 13.1669C-0.0765501 12.6272 0.293651 12.1076 0.833944 12.0177C1.38424 11.9277 1.89452 12.2975 1.98457 12.8371C2.92508 18.4732 7.69767 20.9914 12 20.9914C16.3023 20.9914 21.0749 18.4732 22.0154 12.8371C22.1055 12.2975 22.6158 11.9277 23.1661 12.0177C23.7063 12.1076 24.0765 12.6272 23.9865 13.1669C22.8559 19.9521 17.1428 23 11.99 23H12.01ZM21.165 6.15177C22.3056 5.01257 22.3056 3.16386 21.165 2.02465L21.0049 1.85477C19.9143 0.765533 18.1633 0.725561 17.0227 1.71487C15.8821 0.715568 14.1312 0.765533 13.0406 1.85477L12.8705 2.01466C11.7299 3.15386 11.7299 5.00257 12.8705 6.14178L17.0227 10.2889L21.175 6.14178L21.165 6.15177ZM15.742 3.27378L17.0127 4.54289L18.2834 3.27378C18.6436 2.91403 19.2239 2.91403 19.5841 3.27378L19.7442 3.43367C20.1044 3.79342 20.1044 4.37301 19.7442 4.73276L17.0127 7.46086L14.2812 4.73276C13.921 4.37301 13.921 3.79342 14.2812 3.43367L14.4413 3.27378C14.6214 3.09391 14.8515 3.00397 15.0917 3.00397C15.3318 3.00397 15.5619 3.09391 15.742 3.27378ZM11.1595 6.15177C12.3002 5.01257 12.3002 3.16386 11.1595 2.02465L10.9995 1.85477C9.90886 0.765533 8.15792 0.725561 7.0173 1.71487C5.87668 0.715568 4.12573 0.765533 3.03514 1.85477L2.86505 2.01466C1.72443 3.15386 1.72443 5.00257 2.86505 6.14178L7.0173 10.2889L11.1695 6.14178L11.1595 6.15177ZM5.7366 3.27378L7.00729 4.54289L8.27798 3.27378C8.63818 2.91403 9.21849 2.91403 9.57869 3.27378L9.73877 3.43367C10.099 3.79342 10.099 4.37301 9.73877 4.73276L7.00729 7.46086L4.27581 4.73276C3.91562 4.37301 3.91562 3.79342 4.27581 3.43367L4.4359 3.27378C4.61599 3.09391 4.84612 3.00397 5.08625 3.00397C5.32638 3.00397 5.5565 3.09391 5.7366 3.27378Z"></path></svg>'},"./src/images/smiley/poor.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.01915 7C6.46961 7 6.01998 6.55 6.01998 6V2C6.01998 1.45 6.46961 1 7.01915 1C7.56869 1 8.01832 1.45 8.01832 2V6C8.01832 6.55 7.56869 7 7.01915 7ZM18.01 6V2C18.01 1.45 17.5604 1 17.0108 1C16.4613 1 16.0117 1.45 16.0117 2V6C16.0117 6.55 16.4613 7 17.0108 7C17.5604 7 18.01 6.55 18.01 6ZM16.4213 21.58L18.01 19.99L19.2989 21.28C19.6886 21.67 20.3181 21.67 20.7077 21.28C21.0974 20.89 21.0974 20.26 20.7077 19.87L19.4188 18.58C18.6395 17.8 17.3705 17.8 16.5912 18.58L15.0025 20.17L13.4138 18.58C12.6345 17.8 11.3655 17.8 10.5862 18.58L8.9975 20.17L7.40883 18.58C6.62948 17.8 5.36053 17.8 4.58118 18.58L3.29226 19.87C2.90258 20.26 2.90258 20.89 3.29226 21.28C3.68193 21.67 4.31141 21.67 4.70108 21.28L5.99001 19.99L7.57868 21.58C8.35803 22.36 9.62698 22.36 10.4063 21.58L11.995 19.99L13.5837 21.58C13.9734 21.97 14.4829 22.16 14.9925 22.16C15.5021 22.16 16.0117 21.97 16.4013 21.58H16.4213Z"></path></svg>'},"./src/images/smiley/terrible.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4 4.9938C4 4.44362 4.45 3.99348 5 3.99348H6.59L5.3 2.70306C4.91 2.31293 4.91 1.68272 5.3 1.2926C5.69 0.902468 6.32 0.902468 6.71 1.2926L9.71 4.29357C9.8 4.3836 9.88 4.49364 9.93 4.62368C10.03 4.86376 10.03 5.14385 9.93 5.38393C9.88 5.50397 9.81 5.614 9.71 5.71404L6.71 8.71501C6.51 8.91508 6.26 9.00511 6 9.00511C5.74 9.00511 5.49 8.90508 5.29 8.71501C4.9 8.32489 4.9 7.69468 5.29 7.30456L6.58 6.01413H4.99C4.44 6.01413 3.99 5.56399 3.99 5.01381L4 4.9938ZM14.08 5.37393C14.13 5.49397 14.2 5.604 14.3 5.70403L17.3 8.70501C17.5 8.90508 17.75 8.99511 18.01 8.99511C18.27 8.99511 18.52 8.89507 18.72 8.70501C19.11 8.31488 19.11 7.68468 18.72 7.29455L17.43 6.00413H19.02C19.57 6.00413 20.02 5.55399 20.02 5.00381C20.02 4.45363 19.57 4.00348 19.02 4.00348H17.43L18.72 2.71306C19.11 2.32293 19.11 1.69273 18.72 1.3026C18.33 0.912471 17.7 0.912471 17.31 1.3026L14.31 4.30358C14.22 4.39361 14.14 4.50364 14.09 4.63368C13.99 4.87376 13.99 5.15385 14.09 5.39393L14.08 5.37393ZM22 14.9971V20.999C22 22.6496 20.65 24 19 24H5C3.35 24 2 22.6496 2 20.999V14.9971C2 13.3465 3.35 11.9961 5 11.9961H19C20.65 11.9961 22 13.3465 22 14.9971ZM19 13.9967H16V16.9977H20V14.9971C20 14.4469 19.55 13.9967 19 13.9967ZM14 16.9977V13.9967H10V16.9977H14ZM10 18.9984V21.9993H14V18.9984H10ZM4 14.9971V16.9977H8V13.9967H5C4.45 13.9967 4 14.4469 4 14.9971ZM5 21.9993H8V18.9984H4V20.999C4 21.5492 4.45 21.9993 5 21.9993ZM20 20.999V18.9984H16V21.9993H19C19.55 21.9993 20 21.5492 20 20.999Z"></path></svg>'},"./src/images/smiley/very-good.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85721 24 1.15412 20.96 0.0134987 14.16C-0.0765501 13.62 0.293651 13.1 0.833944 13.01C1.38424 12.92 1.89452 13.29 1.98457 13.83C2.92508 19.47 7.69767 21.99 12 21.99C16.3023 21.99 21.0749 19.47 22.0154 13.83C22.1055 13.29 22.6158 12.92 23.1661 13.01C23.7063 13.1 24.0765 13.62 23.9865 14.16C22.8559 20.95 17.1428 24 11.99 24H12.01ZM8.00783 6V2C8.00783 1.45 7.55759 1 7.00729 1C6.45699 1 6.00675 1.45 6.00675 2V6C6.00675 6.55 6.45699 7 7.00729 7C7.55759 7 8.00783 6.55 8.00783 6ZM18.0133 6V2C18.0133 1.45 17.563 1 17.0127 1C16.4624 1 16.0122 1.45 16.0122 2V6C16.0122 6.55 16.4624 7 17.0127 7C17.563 7 18.0133 6.55 18.0133 6Z"></path></svg>'},"./src/images/smiley/very-poor.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_15894_140103)"><path d="M4.88291 4.50999C4.47291 4.50999 4.08291 4.24999 3.94291 3.83999C3.76291 3.31999 4.03291 2.74999 4.55291 2.56999L8.32291 1.24999C8.84291 1.05999 9.41291 1.33999 9.59291 1.85999C9.77291 2.37999 9.50291 2.94999 8.98291 3.12999L5.20291 4.44999C5.09291 4.48999 4.98291 4.50999 4.87291 4.50999H4.88291ZM19.8129 3.88999C20.0229 3.37999 19.7729 2.78999 19.2629 2.58999L15.5529 1.06999C15.0429 0.859992 14.4529 1.10999 14.2529 1.61999C14.0429 2.12999 14.2929 2.71999 14.8029 2.91999L18.5029 4.42999C18.6229 4.47999 18.7529 4.49999 18.8829 4.49999C19.2729 4.49999 19.6529 4.26999 19.8129 3.87999V3.88999ZM3.50291 5.99999C2.64291 6.36999 1.79291 6.87999 1.00291 7.47999C0.79291 7.63999 0.64291 7.86999 0.59291 8.13999C0.48291 8.72999 0.87291 9.28999 1.45291 9.39999C2.04291 9.50999 2.60291 9.11999 2.71291 8.53999C2.87291 7.68999 3.12291 6.82999 3.50291 5.98999V5.99999ZM21.0429 8.54999C21.6029 10.48 24.2429 8.83999 22.7529 7.47999C21.9629 6.87999 21.1129 6.36999 20.2529 5.99999C20.6329 6.83999 20.8829 7.69999 21.0429 8.54999ZM21.5729 13.2C21.2529 14.2 22.5429 15.09 23.3629 14.39C23.8529 14 23.9229 13.29 23.5429 12.81C21.7429 10.67 22.1329 10.55 21.5829 13.2H21.5729ZM1.75291 11C1.22291 11.79 -0.14709 12.64 0.0129102 13.75C0.15291 14.36 0.75291 14.74 1.35291 14.6C2.98291 14.1 1.80291 12.22 1.75291 11ZM19.8829 17C19.8829 13.14 16.2929 9.99999 11.8829 9.99999C7.47291 9.99999 3.88291 13.14 3.88291 17C3.88291 20.86 7.47291 24 11.8829 24C16.2929 24 19.8829 20.86 19.8829 17ZM17.8829 17C17.8829 19.76 15.1929 22 11.8829 22C8.57291 22 5.88291 19.76 5.88291 17C5.88291 14.24 8.57291 12 11.8829 12C15.1929 12 17.8829 14.24 17.8829 17Z"></path></g><defs><clipPath id="clip0_15894_140103"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg>'},"./src/itemvalue.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ItemValue",(function(){return m}));var n,o=r("./src/localizablestring.ts"),i=r("./src/jsonobject.ts"),s=r("./src/helpers.ts"),a=r("./src/conditions.ts"),l=r("./src/base.ts"),u=r("./src/settings.ts"),c=r("./src/actions/action.ts"),p=r("./src/question_baseselect.ts"),d=r("./src/question.ts"),h=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},m=function(e){function t(t,r,n){void 0===r&&(r=null),void 0===n&&(n="itemvalue");var a=e.call(this)||this;return a.typeName=n,a.ownerPropertyName="",a.locTextValue=new o.LocalizableString(a,!0,"text"),a.locTextValue.onStrChanged=function(e,t){t==a.value&&(t=void 0),a.propertyValueChanged("text",e,t)},a.locTextValue.onGetTextCallback=function(e){return e||(s.Helpers.isValueEmpty(a.value)?null:a.value.toString())},r&&(a.locText.text=r),t&&"object"==typeof t?a.setData(t):a.value=t,"itemvalue"!=a.getType()&&i.CustomPropertiesCollection.createProperties(a),a.data=a,a.onCreating(),a}return h(t,e),t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},Object.defineProperty(t,"Separator",{get:function(){return u.settings.itemValueSeparator},set:function(e){u.settings.itemValueSeparator=e},enumerable:!1,configurable:!0}),t.setData=function(e,t,r){e.length=0;for(var n=0;n<t.length;n++){var o=t[n],s=o&&"function"==typeof o.getType?o.getType():null!=r?r:"itemvalue",a=i.Serializer.createClass(s);a.setData(o),o.originalItem&&(a.originalItem=o.originalItem),e.push(a)}},t.getData=function(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].getData());return t},t.getItemByValue=function(e,t){if(!Array.isArray(e))return null;for(var r=s.Helpers.isValueEmpty(t),n=0;n<e.length;n++){if(r&&s.Helpers.isValueEmpty(e[n].value))return e[n];if(s.Helpers.isTwoValueEquals(e[n].value,t,!1,!0,!1))return e[n]}return null},t.getTextOrHtmlByValue=function(e,r){var n=t.getItemByValue(e,r);return null!==n?n.locText.textOrHtml:""},t.locStrsChanged=function(e){for(var t=0;t<e.length;t++)e[t].locStrsChanged()},t.runConditionsForItems=function(e,r,n,o,i,s,a){return void 0===s&&(s=!0),t.runConditionsForItemsCore(e,r,n,o,i,!0,s,a)},t.runEnabledConditionsForItems=function(e,r,n,o,i){return t.runConditionsForItemsCore(e,null,r,n,o,!1,!0,i)},t.runConditionsForItemsCore=function(e,t,r,n,o,i,s,a){void 0===s&&(s=!0),n||(n={});for(var l=n.item,u=n.choice,c=!1,p=0;p<e.length;p++){var d=e[p];n.item=d.value,n.choice=d.value;var h=!(!s||!d.getConditionRunner)&&d.getConditionRunner(i);h||(h=r);var f=!0;h&&(f=h.run(n,o)),a&&(f=a(d,f)),t&&f&&t.push(d),f!=(i?d.isVisible:d.isEnabled)&&(c=!0,i?d.setIsVisible&&d.setIsVisible(f):d.setIsEnabled&&d.setIsEnabled(f))}return l?n.item=l:delete n.item,u?n.choice=u:delete n.choice,c},t.prototype.onCreating=function(){},t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.locOwner&&this.locOwner.getSurvey?this.locOwner.getSurvey():null},t.prototype.getLocale=function(){return this.locOwner&&this.locOwner.getLocale?this.locOwner.getLocale():""},Object.defineProperty(t.prototype,"locText",{get:function(){return this.locTextValue},enumerable:!1,configurable:!0}),t.prototype.setLocText=function(e){this.locTextValue=e},Object.defineProperty(t.prototype,"locOwner",{get:function(){return this._locOwner},set:function(e){this._locOwner=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){var t=void 0;if(!s.Helpers.isValueEmpty(e)){var r=e.toString(),n=r.indexOf(u.settings.itemValueSeparator);n>-1&&(e=r.slice(0,n),t=r.slice(n+1))}this.setPropertyValue("value",e),t&&(this.text=t),this.id=this.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasText",{get:function(){return!!this.locText.pureText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pureText",{get:function(){return this.locText.pureText},set:function(e){this.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.locText.calculatedText},set:function(e){this.locText.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedText",{get:function(){return this.locText.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.text},enumerable:!1,configurable:!0}),t.prototype.canSerializeValue=function(){var e=this.value;return null!=e&&!Array.isArray(e)&&"object"!=typeof e},t.prototype.getData=function(){var e=this.toJSON();if(e.value&&e.value.pos&&delete e.value.pos,s.Helpers.isValueEmpty(e.value))return e;var t=this.canSerializeValue();return t&&(u.settings.itemValueAlwaysSerializeAsObject||u.settings.itemValueAlwaysSerializeText)||1!=Object.keys(e).length?(u.settings.itemValueAlwaysSerializeText&&void 0===e.text&&t&&(e.text=this.value.toString()),e):this.value},t.prototype.toJSON=function(){var e={},t=i.Serializer.getProperties(this.getType());t&&0!=t.length||(t=i.Serializer.getProperties("itemvalue"));for(var r=new i.JsonObject,n=0;n<t.length;n++){var o=t[n];"text"===o.name&&!this.locText.hasNonDefaultText()&&s.Helpers.isTwoValueEquals(this.value,this.text,!1,!0,!1)||r.valueToJson(this,e,o)}return e},t.prototype.setData=function(e){if(!s.Helpers.isValueEmpty(e)){if(void 0===e.value&&void 0!==e.text&&1===Object.keys(e).length&&(e.value=e.text),void 0!==e.value){var t;t="function"==typeof e.toJSON?e.toJSON():e,(new i.JsonObject).toObject(t,this)}else this.value=e;this.locText.strChanged()}},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!0)},enumerable:!1,configurable:!0}),t.prototype.setIsVisible=function(e){this.setPropertyValue("isVisible",e)},Object.defineProperty(t.prototype,"isEnabled",{get:function(){return this.getPropertyValue("isEnabled",!0)},enumerable:!1,configurable:!0}),t.prototype.setIsEnabled=function(e){this.setPropertyValue("isEnabled",e)},t.prototype.addUsedLocales=function(e){this.AddLocStringToUsedLocales(this.locTextValue,e)},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locText.strChanged()},t.prototype.onPropertyValueChanged=function(e,t,r){"value"!==e||this.hasText||this.locText.strChanged();var n="itemValuePropertyChanged";this.locOwner&&this.locOwner[n]&&this.locOwner[n](this,e,t,r)},t.prototype.getConditionRunner=function(e){return e?this.getVisibleConditionRunner():this.getEnableConditionRunner()},t.prototype.getVisibleConditionRunner=function(){return this.visibleIf?(this.visibleConditionRunner||(this.visibleConditionRunner=new a.ConditionRunner(this.visibleIf)),this.visibleConditionRunner.expression=this.visibleIf,this.visibleConditionRunner):null},t.prototype.getEnableConditionRunner=function(){return this.enableIf?(this.enableConditionRunner||(this.enableConditionRunner=new a.ConditionRunner(this.enableIf)),this.enableConditionRunner.expression=this.enableIf,this.enableConditionRunner):null},Object.defineProperty(t.prototype,"selected",{get:function(){var e=this;return this._locOwner instanceof p.QuestionSelectBase&&void 0===this.selectedValue&&(this.selectedValue=new l.ComputedUpdater((function(){return e._locOwner.isItemSelected(e)}))),this.selectedValue},enumerable:!1,configurable:!0}),t.prototype.getComponent=function(){return this._locOwner instanceof d.Question?this.componentValue||this._locOwner.itemComponent:this.componentValue},t.prototype.setComponent=function(e){this.componentValue=e},t.prototype.getEnabled=function(){return this.isEnabled},t.prototype.setEnabled=function(e){this.setIsEnabled(e)},t.prototype.getVisible=function(){var e=void 0===this.isVisible||this.isVisible,t=void 0===this._visible||this._visible;return e&&t},t.prototype.setVisible=function(e){this._visible=e},t.prototype.getLocTitle=function(){return this.locText},t.prototype.getTitle=function(){return this.text},t.prototype.setLocTitle=function(e){},t.prototype.setTitle=function(e){},f([Object(i.property)({defaultValue:!0})],t.prototype,"_visible",void 0),f([Object(i.property)()],t.prototype,"selectedValue",void 0),f([Object(i.property)()],t.prototype,"icon",void 0),t}(c.BaseAction);l.Base.createItemValue=function(e,t){var r=null;return(r=t?i.JsonObject.metaData.createClass(t,{}):"function"==typeof e.getType?new m(null,void 0,e.getType()):new m(null)).setData(e),r},l.Base.itemValueLocStrChanged=function(e){m.locStrsChanged(e)},i.JsonObjectProperty.getItemValuesDefaultValue=function(e,t){var r=new Array;return m.setData(r,Array.isArray(e)?e:[],t),r},i.Serializer.addClass("itemvalue",["!value",{name:"text",serializationProperty:"locText"},{name:"visibleIf:condition",showMode:"form"},{name:"enableIf:condition",showMode:"form",visibleIf:function(e){return!e||"rateValues"!==e.ownerPropertyName}}],(function(e){return new m(e)}))},"./src/jsonobject.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"property",(function(){return c})),r.d(t,"propertyArray",(function(){return d})),r.d(t,"JsonObjectProperty",(function(){return h})),r.d(t,"CustomPropertiesCollection",(function(){return f})),r.d(t,"JsonMetadataClass",(function(){return m})),r.d(t,"JsonMetadata",(function(){return g})),r.d(t,"JsonError",(function(){return b})),r.d(t,"JsonUnknownPropertyError",(function(){return y})),r.d(t,"JsonMissingTypeErrorBase",(function(){return v})),r.d(t,"JsonMissingTypeError",(function(){return x})),r.d(t,"JsonIncorrectTypeError",(function(){return w})),r.d(t,"JsonRequiredPropertyError",(function(){return C})),r.d(t,"JsonObject",(function(){return P})),r.d(t,"Serializer",(function(){return _}));var n,o=r("./src/surveyStrings.ts"),i=r("./src/base.ts"),s=r("./src/helpers.ts"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};function u(e,t,r){var n=e.getLocalizableString(r);n||(n=e.createLocalizableString(r,e,!0),"object"==typeof t.localizable&&"function"==typeof t.localizable.onGetTextCallback&&(n.onGetTextCallback=t.localizable.onGetTextCallback))}function c(e){return function(t,r){var n=function(e,t){if(t&&"object"==typeof t&&t.type===i.ComputedUpdater.ComputedUpdaterType){i.Base.startCollectDependencies((function(){return e[r]=t.updater()}),e,r);var n=t.updater(),o=i.Base.finishCollectDependencies();return t.setDependencies(o),n}return t};e&&e.localizable?(Object.defineProperty(t,r,{get:function(){return function(e,t,r){u(e,t,r);var n=e.getLocalizableStringText(r);if(n)return n;if("object"==typeof t.localizable&&t.localizable.defaultStr){var i=e.getLocale?e.getLocale():"";return o.surveyLocalization.getString(t.localizable.defaultStr,i)}return""}(this,e,r)},set:function(t){u(this,e,r);var o=n(this,t);this.setLocalizableStringText(r,o),e&&e.onSet&&e.onSet(o,this)}}),Object.defineProperty(t,"object"==typeof e.localizable&&e.localizable.name?e.localizable.name:"loc"+r.charAt(0).toUpperCase()+r.slice(1),{get:function(){return u(this,e,r),this.getLocalizableString(r)}})):Object.defineProperty(t,r,{get:function(){var t=null;return e&&("function"==typeof e.getDefaultValue&&(t=e.getDefaultValue(this)),void 0!==e.defaultValue&&(t=e.defaultValue)),this.getPropertyValue(r,t)},set:function(t){var o=n(this,t);this.setPropertyValue(r,o),e&&e.onSet&&e.onSet(o,this)}})}}function p(e,t,r){e.ensureArray(r,(function(r,n){var o=t?t.onPush:null;o&&o(r,n,e)}),(function(r,n){var o=t?t.onRemove:null;o&&o(r,n,e)}))}function d(e){return function(t,r){Object.defineProperty(t,r,{get:function(){return p(this,e,r),this.getPropertyValue(r)},set:function(t){p(this,e,r);var n=this.getPropertyValue(r);t!==n&&(n?n.splice.apply(n,l([0,n.length],t||[])):this.setPropertyValue(r,t),e&&e.onSet&&e.onSet(t,this))}})}}var h=function(){function e(t,r,n){void 0===n&&(n=!1),this.name=r,this.isRequiredValue=!1,this.isUniqueValue=!1,this.isSerializable=!0,this.isLightSerializable=!0,this.isCustom=!1,this.isDynamicChoices=!1,this.isBindable=!1,this.category="",this.categoryIndex=-1,this.visibleIndex=-1,this.maxLength=-1,this.isArray=!1,this.classInfoValue=t,this.isRequiredValue=n,this.idValue=e.Index++}return Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classInfo",{get:function(){return this.classInfoValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(e){"itemvalues"===e&&(e="itemvalue[]"),"textitems"===e&&(e="textitem[]"),this.typeValue=e,this.typeValue.indexOf("[]")===this.typeValue.length-2&&(this.isArray=!0,this.className=this.typeValue.substring(0,this.typeValue.length-2))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.isRequiredValue},set:function(e){this.isRequiredValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUnique",{get:function(){return this.isUniqueValue},set:function(e){this.isUniqueValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uniquePropertyName",{get:function(){return this.uniquePropertyValue},set:function(e){this.uniquePropertyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultValue",{get:function(){var t=this.defaultValueFunc?this.defaultValueFunc():this.defaultValueValue;return e.getItemValuesDefaultValue&&P.metaData.isDescendantOf(this.className,"itemvalue")&&(t=e.getItemValuesDefaultValue(this.defaultValueValue||[],this.className)),t},set:function(e){this.defaultValueValue=e},enumerable:!1,configurable:!0}),e.prototype.isDefaultValue=function(e){return s.Helpers.isValueEmpty(this.defaultValue)?!1===e&&("boolean"==this.type||"switch"==this.type)||""===e||s.Helpers.isValueEmpty(e):s.Helpers.isTwoValueEquals(e,this.defaultValue,!1,!0,!1)},e.prototype.getValue=function(e){return this.onGetValue?this.onGetValue(e):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].getJson():e[this.name]},e.prototype.getPropertyValue=function(e){return this.isLocalizable?e[this.serializationProperty]?e[this.serializationProperty].text:null:this.getValue(e)},Object.defineProperty(e.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!1,configurable:!0}),e.prototype.settingValue=function(e,t){return!this.onSettingValue||e.isLoadingFromJson?t:this.onSettingValue(e,t)},e.prototype.setValue=function(e,t,r){this.onSetValue?this.onSetValue(e,t,r):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].setJson(t):(t&&"string"==typeof t&&("number"==this.type&&(t=parseInt(t)),"boolean"!=this.type&&"switch"!=this.type||(t="true"===t.toLowerCase())),e[this.name]=t)},e.prototype.getObjType=function(e){return this.classNamePart?e.replace(this.classNamePart,""):e},Object.defineProperty(e.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasChoices",{get:function(){return!!this.choicesValue||!!this.choicesfunc},enumerable:!1,configurable:!0}),e.prototype.getChoices=function(e,t){return void 0===t&&(t=null),null!=this.choicesValue?this.choicesValue:null!=this.choicesfunc?this.choicesfunc(e,t):null},e.prototype.setChoices=function(e,t){void 0===t&&(t=null),this.choicesValue=e,this.choicesfunc=t},e.prototype.getBaseValue=function(){return this.baseValue?"function"==typeof this.baseValue?this.baseValue():this.baseValue:""},e.prototype.setBaseValue=function(e){this.baseValue=e},Object.defineProperty(e.prototype,"readOnly",{get:function(){return null!=this.readOnlyValue&&this.readOnlyValue},set:function(e){this.readOnlyValue=e},enumerable:!1,configurable:!0}),e.prototype.isVisible=function(e,t){void 0===t&&(t=null);var r=!this.layout||this.layout==e;return!(!this.visible||!r)&&(!this.visibleIf||!t||this.visibleIf(t))},Object.defineProperty(e.prototype,"visible",{get:function(){return null==this.visibleValue||this.visibleValue},set:function(e){this.visibleValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLocalizable",{get:function(){return null!=this.isLocalizableValue&&this.isLocalizableValue},set:function(e){this.isLocalizableValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataList",{get:function(){return Array.isArray(this.dataListValue)?this.dataListValue:[]},set:function(e){this.dataListValue=e},enumerable:!1,configurable:!0}),e.prototype.mergeWith=function(t){for(var r=e.mergableValues,n=0;n<r.length;n++)this.mergeValue(t,r[n])},e.prototype.addDependedProperty=function(e){this.dependedProperties||(this.dependedProperties=[]),this.dependedProperties.indexOf(e)<0&&this.dependedProperties.push(e)},e.prototype.getDependedProperties=function(){return this.dependedProperties?this.dependedProperties:[]},e.prototype.schemaType=function(){if("choicesByUrl"!==this.className)return"string"===this.className?this.className:this.className||this.baseClassName?"array":"switch"==this.type?"boolean":"boolean"==this.type||"number"==this.type?this.type:"string"},e.prototype.schemaRef=function(){if(this.className)return this.className},e.prototype.mergeValue=function(e,t){null==this[t]&&null!=e[t]&&(this[t]=e[t])},e.Index=1,e.mergableValues=["typeValue","choicesValue","baseValue","readOnlyValue","visibleValue","isSerializable","isLightSerializable","isCustom","isBindable","isUnique","uniquePropertyName","isDynamicChoices","isLocalizableValue","className","alternativeName","layout","classNamePart","baseClassName","defaultValue","defaultValueFunc","serializationProperty","onGetValue","onSetValue","onSettingValue","displayName","category","categoryIndex","visibleIndex","nextToProperty","showMode","dependedProperties","visibleIf","onExecuteExpression","onPropertyEditorUpdate","maxLength","maxValue","minValue","dataListValue"],e}(),f=function(){function e(){}return e.addProperty=function(t,r){t=t.toLowerCase();var n=e.properties;n[t]||(n[t]=[]),n[t].push(r)},e.removeProperty=function(t,r){t=t.toLowerCase();var n=e.properties;if(n[t])for(var o=n[t],i=0;i<o.length;i++)if(o[i].name==r){n[t].splice(i,1);break}},e.removeAllProperties=function(t){t=t.toLowerCase(),delete e.properties[t]},e.addClass=function(t,r){t=t.toLowerCase(),r&&(r=r.toLowerCase()),e.parentClasses[t]=r},e.getProperties=function(t){t=t.toLowerCase();for(var r=[],n=e.properties;t;){var o=n[t];if(o)for(var i=0;i<o.length;i++)r.push(o[i]);t=e.parentClasses[t]}return r},e.createProperties=function(t){t&&t.getType&&e.createPropertiesCore(t,t.getType())},e.createPropertiesCore=function(t,r){var n=e.properties;n[r]&&e.createPropertiesInObj(t,n[r]);var o=e.parentClasses[r];o&&e.createPropertiesCore(t,o)},e.createPropertiesInObj=function(t,r){for(var n=0;n<r.length;n++)e.createPropertyInObj(t,r[n])},e.createPropertyInObj=function(t,r){if(!(e.checkIsPropertyExists(t,r.name)||r.serializationProperty&&e.checkIsPropertyExists(t,r.serializationProperty))){if(r.isLocalizable&&r.serializationProperty&&t.createCustomLocalizableObj){t.createCustomLocalizableObj(r.name);var n={get:function(){return t.getLocalizableString(r.name)}};Object.defineProperty(t,r.serializationProperty,n);var o={get:function(){return t.getLocalizableStringText(r.name,r.defaultValue)},set:function(e){t.setLocalizableStringText(r.name,e)}};Object.defineProperty(t,r.name,o)}else{var i=r.defaultValue,s=r.isArray||"multiplevalues"===r.type;"function"==typeof t.createNewArray&&(P.metaData.isDescendantOf(r.className,"itemvalue")?(t.createNewArray(r.name,(function(e){e.locOwner=t,e.ownerPropertyName=r.name})),s=!0):s&&t.createNewArray(r.name),s&&(Array.isArray(i)&&t.setPropertyValue(r.name,i),i=null)),t.getPropertyValue&&t.setPropertyValue&&(o={get:function(){return r.onGetValue?r.onGetValue(t):t.getPropertyValue(r.name,i)},set:function(e){r.onSetValue?r.onSetValue(t,e,null):t.setPropertyValue(r.name,e)}},Object.defineProperty(t,r.name,o))}"condition"!==r.type&&"expression"!==r.type||r.onExecuteExpression&&t.addExpressionProperty(r.name,r.onExecuteExpression)}},e.checkIsPropertyExists=function(e,t){return e.hasOwnProperty(t)||e[t]},e.properties={},e.parentClasses={},e}(),m=function(){function e(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=null),this.name=e,this.creator=r,this.parentName=n,e=e.toLowerCase(),this.isCustomValue=!r&&"survey"!==e,this.parentName&&(this.parentName=this.parentName.toLowerCase(),f.addClass(e,this.parentName),r&&this.makeParentRegularClass()),this.properties=new Array;for(var o=0;o<t.length;o++)this.createProperty(t[o],this.isCustom)}return e.prototype.find=function(e){for(var t=0;t<this.properties.length;t++)if(this.properties[t].name==e)return this.properties[t];return null},e.prototype.findProperty=function(e){return this.fillAllProperties(),this.hashProperties[e]},e.prototype.getAllProperties=function(){return this.fillAllProperties(),this.allProperties},e.prototype.resetAllProperties=function(){this.allProperties=void 0,this.hashProperties=void 0;for(var e=_.getChildrenClasses(this.name),t=0;t<e.length;t++)e[t].resetAllProperties()},Object.defineProperty(e.prototype,"isCustom",{get:function(){return this.isCustomValue},enumerable:!1,configurable:!0}),e.prototype.fillAllProperties=function(){var e=this;if(!this.allProperties){this.allProperties=[],this.hashProperties={};var t={};this.properties.forEach((function(e){return t[e.name]=e}));var r=this.parentName?_.findClass(this.parentName):null;r&&r.getAllProperties().forEach((function(r){var n=t[r.name];n?(n.mergeWith(r),e.addPropCore(n)):e.addPropCore(r)})),this.properties.forEach((function(t){e.hashProperties[t.name]||e.addPropCore(t)}))}},e.prototype.addPropCore=function(e){this.allProperties.push(e),this.hashProperties[e.name]=e,e.alternativeName&&(this.hashProperties[e.alternativeName]=e)},e.prototype.isOverridedProp=function(e){return!!this.parentName&&!!_.findProperty(this.parentName,e)},e.prototype.hasRegularChildClass=function(){if(this.isCustom){this.isCustomValue=!1;for(var e=0;e<this.properties.length;e++)this.properties[e].isCustom=!1;f.removeAllProperties(this.name),this.makeParentRegularClass()}},e.prototype.makeParentRegularClass=function(){if(this.parentName){var e=_.findClass(this.parentName);e&&e.hasRegularChildClass()}},e.prototype.createProperty=function(t,r){void 0===r&&(r=!1);var n="string"==typeof t?t:t.name;if(n){var o=null,i=n.indexOf(e.typeSymbol);i>-1&&(o=n.substring(i+1),n=n.substring(0,i));var a=this.getIsPropertyNameRequired(n)||!!t.isRequired;n=this.getPropertyName(n);var l=new h(this,n,a);if(o&&(l.type=o),"object"==typeof t){if(t.type&&(l.type=t.type),void 0!==t.default&&(l.defaultValue=t.default),void 0!==t.defaultFunc&&(l.defaultValueFunc=t.defaultFunc),s.Helpers.isValueEmpty(t.isSerializable)||(l.isSerializable=t.isSerializable),s.Helpers.isValueEmpty(t.isLightSerializable)||(l.isLightSerializable=t.isLightSerializable),s.Helpers.isValueEmpty(t.maxLength)||(l.maxLength=t.maxLength),s.Helpers.isValueEmpty(t.displayName)||(l.displayName=t.displayName),s.Helpers.isValueEmpty(t.category)||(l.category=t.category),s.Helpers.isValueEmpty(t.categoryIndex)||(l.categoryIndex=t.categoryIndex),s.Helpers.isValueEmpty(t.nextToProperty)||(l.nextToProperty=t.nextToProperty),s.Helpers.isValueEmpty(t.visibleIndex)||(l.visibleIndex=t.visibleIndex),s.Helpers.isValueEmpty(t.showMode)||(l.showMode=t.showMode),s.Helpers.isValueEmpty(t.maxValue)||(l.maxValue=t.maxValue),s.Helpers.isValueEmpty(t.minValue)||(l.minValue=t.minValue),s.Helpers.isValueEmpty(t.dataList)||(l.dataList=t.dataList),s.Helpers.isValueEmpty(t.isDynamicChoices)||(l.isDynamicChoices=t.isDynamicChoices),s.Helpers.isValueEmpty(t.isBindable)||(l.isBindable=t.isBindable),s.Helpers.isValueEmpty(t.isUnique)||(l.isUnique=t.isUnique),s.Helpers.isValueEmpty(t.uniqueProperty)||(l.uniquePropertyName=t.uniqueProperty),s.Helpers.isValueEmpty(t.isArray)||(l.isArray=t.isArray),!0!==t.visible&&!1!==t.visible||(l.visible=t.visible),t.visibleIf&&(l.visibleIf=t.visibleIf),t.onExecuteExpression&&(l.onExecuteExpression=t.onExecuteExpression),t.onPropertyEditorUpdate&&(l.onPropertyEditorUpdate=t.onPropertyEditorUpdate),!0===t.readOnly&&(l.readOnly=!0),t.choices){var u="function"==typeof t.choices?t.choices:null,c="function"!=typeof t.choices?t.choices:null;l.setChoices(c,u)}t.baseValue&&l.setBaseValue(t.baseValue),t.onGetValue&&(l.onGetValue=t.onGetValue),t.onSetValue&&(l.onSetValue=t.onSetValue),t.onSettingValue&&(l.onSettingValue=t.onSettingValue),t.isLocalizable&&(t.serializationProperty="loc"+l.name),t.serializationProperty&&(l.serializationProperty=t.serializationProperty,l.serializationProperty&&0==l.serializationProperty.indexOf("loc")&&(l.isLocalizable=!0)),t.isLocalizable&&(l.isLocalizable=t.isLocalizable),t.className&&(l.className=t.className),t.baseClassName&&(l.baseClassName=t.baseClassName),t.classNamePart&&(l.classNamePart=t.classNamePart),t.alternativeName&&(l.alternativeName=t.alternativeName),t.layout&&(l.layout=t.layout),t.dependsOn&&this.addDependsOnProperties(l,t.dependsOn)}return this.properties.push(l),r&&!this.isOverridedProp(l.name)&&(l.isCustom=!0,f.addProperty(this.name,l)),l}},e.prototype.addDependsOnProperties=function(e,t){if(Array.isArray(t))for(var r=0;r<t.length;r++)this.addDependsOnProperty(e,t[r]);else this.addDependsOnProperty(e,t)},e.prototype.addDependsOnProperty=function(e,t){var r=this.find(t);r||(r=_.findProperty(this.parentName,t)),r&&r.addDependedProperty(e.name)},e.prototype.getIsPropertyNameRequired=function(t){return t.length>0&&t[0]==e.requiredSymbol},e.prototype.getPropertyName=function(e){return this.getIsPropertyNameRequired(e)?e=e.slice(1):e},e.requiredSymbol="!",e.typeSymbol=":",e}(),g=function(){function e(){this.classes={},this.alternativeNames={},this.childrenClasses={}}return e.prototype.getObjPropertyValue=function(e,t){if(this.isObjWrapper(e)){var r=e.getOriginalObj();if(n=_.findProperty(r.getType(),t))return this.getObjPropertyValueCore(r,n)}var n;return(n=_.findProperty(e.getType(),t))?this.getObjPropertyValueCore(e,n):e[t]},e.prototype.setObjPropertyValue=function(e,t,r){if(e[t]!==r)if(e[t]&&e[t].setJson)e[t].setJson(r);else{if(Array.isArray(r)){for(var n=[],o=0;o<r.length;o++)n.push(r[o]);r=n}e[t]=r}},e.prototype.getObjPropertyValueCore=function(e,t){if(!t.isSerializable)return e[t.name];if(t.isLocalizable){if(t.isArray)return e[t.name];if(t.serializationProperty)return e[t.serializationProperty].text}return e.getPropertyValue(t.name)},e.prototype.isObjWrapper=function(e){return!!e.getOriginalObj&&!!e.getOriginalObj()},e.prototype.addClass=function(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=null),e=e.toLowerCase();var o=new m(e,t,r,n);return this.classes[e]=o,n&&(n=n.toLowerCase(),this.childrenClasses[n]||(this.childrenClasses[n]=[]),this.childrenClasses[n].push(o)),o},e.prototype.removeClass=function(e){var t=this.findClass(e);if(t&&(delete this.classes[t.name],t.parentName)){var r=this.childrenClasses[t.parentName].indexOf(t);r>-1&&this.childrenClasses[t.parentName].splice(r,1)}},e.prototype.overrideClassCreatore=function(e,t){this.overrideClassCreator(e,t)},e.prototype.overrideClassCreator=function(e,t){e=e.toLowerCase();var r=this.findClass(e);r&&(r.creator=t)},e.prototype.getProperties=function(e){var t=this.findClass(e);return t?t.getAllProperties():[]},e.prototype.getPropertiesByObj=function(e){if(!e||!e.getType)return[];for(var t={},r=this.getProperties(e.getType()),n=0;n<r.length;n++)t[r[n].name]=r[n];var o=e.getDynamicType?this.getProperties(e.getDynamicType()):null;if(o&&o.length>0)for(n=0;n<o.length;n++){var i=o[n];t[i.name]||(t[i.name]=i)}return Object.keys(t).map((function(e){return t[e]}))},e.prototype.getDynamicPropertiesByObj=function(e,t){if(void 0===t&&(t=null),!e||!e.getType||!e.getDynamicType&&!t)return[];var r=t||e.getDynamicType();if(!r)return[];var n=this.getProperties(r);if(!n||0==n.length)return[];for(var o={},i=this.getProperties(e.getType()),s=0;s<i.length;s++)o[i[s].name]=i[s];var a=[];for(s=0;s<n.length;s++){var l=n[s];o[l.name]||a.push(l)}return a},e.prototype.hasOriginalProperty=function(e,t){return!!this.getOriginalProperty(e,t)},e.prototype.getOriginalProperty=function(e,t){return this.findProperty(e.getType(),t)||(this.isObjWrapper(e)?this.findProperty(e.getOriginalObj().getType(),t):null)},e.prototype.getProperty=function(e,t){var r=this.findProperty(e,t);if(!r)return r;var n=this.findClass(e);if(r.classInfo===n)return r;var o=new h(n,r.name,r.isRequired);return o.mergeWith(r),o.isArray=r.isArray,n.properties.push(o),n.resetAllProperties(),o},e.prototype.findProperty=function(e,t){var r=this.findClass(e);return r?r.findProperty(t):null},e.prototype.findProperties=function(e,t){var r=new Array,n=this.findClass(e);if(!n)return r;for(var o=0;o<t.length;o++){var i=n.findProperty(t[o]);i&&r.push(i)}return r},e.prototype.getAllPropertiesByName=function(e){for(var t=new Array,r=this.getAllClasses(),n=0;n<r.length;n++)for(var o=this.findClass(r[n]),i=0;i<o.properties.length;i++)if(o.properties[i].name==e){t.push(o.properties[i]);break}return t},e.prototype.getAllClasses=function(){var e=new Array;for(var t in this.classes)e.push(t);return e},e.prototype.createClass=function(e,t){void 0===t&&(t=void 0),e=e.toLowerCase();var r=this.findClass(e);if(!r)return null;if(r.creator)return r.creator(t);for(var n=r.parentName;n;){if(!(r=this.findClass(n)))return null;if(n=r.parentName,r.creator)return this.createCustomType(e,r.creator,t)}return null},e.prototype.createCustomType=function(e,t,r){void 0===r&&(r=void 0),e=e.toLowerCase();var n=t(r),o=e,i=n.getTemplate?n.getTemplate():n.getType();return n.getType=function(){return o},n.getTemplate=function(){return i},f.createProperties(n),n},e.prototype.getChildrenClasses=function(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var r=[];return this.fillChildrenClasses(e,t,r),r},e.prototype.getRequiredProperties=function(e){for(var t=this.getProperties(e),r=[],n=0;n<t.length;n++)t[n].isRequired&&r.push(t[n].name);return r},e.prototype.addProperties=function(e,t){e=e.toLowerCase();for(var r=this.findClass(e),n=0;n<t.length;n++)this.addCustomPropertyCore(r,t[n])},e.prototype.addProperty=function(e,t){return this.addCustomPropertyCore(this.findClass(e),t)},e.prototype.addCustomPropertyCore=function(e,t){if(!e)return null;var r=e.createProperty(t,!0);return r&&e.resetAllProperties(),r},e.prototype.removeProperty=function(e,t){var r=this.findClass(e);if(!r)return!1;var n=r.find(t);n&&(this.removePropertyFromClass(r,n),r.resetAllProperties(),f.removeProperty(r.name,t))},e.prototype.removePropertyFromClass=function(e,t){var r=e.properties.indexOf(t);r<0||e.properties.splice(r,1)},e.prototype.fillChildrenClasses=function(e,t,r){var n=this.childrenClasses[e];if(n)for(var o=0;o<n.length;o++)t&&!n[o].creator||r.push(n[o]),this.fillChildrenClasses(n[o].name,t,r)},e.prototype.findClass=function(e){e=e.toLowerCase();var t=this.classes[e];if(!t){var r=this.alternativeNames[e];if(r&&r!=e)return this.findClass(r)}return t},e.prototype.isDescendantOf=function(e,t){if(!e||!t)return!1;e=e.toLowerCase(),t=t.toLowerCase();var r=this.findClass(e);if(!r)return!1;var n=r;do{if(n.name===t)return!0;n=this.classes[n.parentName]}while(n);return!1},e.prototype.addAlterNativeClassName=function(e,t){this.alternativeNames[t.toLowerCase()]=e.toLowerCase()},e.prototype.generateSchema=function(e){void 0===e&&(e=void 0),e||(e="survey");var t=this.findClass(e);if(!t)return null;var r={$schema:"http://json-schema.org/draft-07/schema#",title:"SurveyJS Library json schema",type:"object",properties:{},definitions:{locstring:this.generateLocStrClass()}};return this.generateSchemaProperties(t,r,r.definitions,!0),r},e.prototype.generateLocStrClass=function(){var e={},t=_.findProperty("survey","locale");if(t){var r=t.getChoices(null);Array.isArray(r)&&(r.indexOf("en")<0&&r.splice(0,0,"en"),r.splice(0,0,"default"),r.forEach((function(t){t&&(e[t]={type:"string"})})))}return{$id:"locstring",type:"object",properties:e}},e.prototype.generateSchemaProperties=function(e,t,r,n){if(e){var o=t.properties,i=[];"question"!==e.name&&"panel"!==e.name||(o.type={type:"string"},i.push("type"));for(var s=0;s<e.properties.length;s++){var a=e.properties[s];e.parentName&&_.findProperty(e.parentName,a.name)||(o[a.name]=this.generateSchemaProperty(a,r,n),a.isRequired&&i.push(a.name))}i.length>0&&(t.required=i)}},e.prototype.generateSchemaProperty=function(e,t,r){if(e.isLocalizable)return{oneOf:[{type:"string"},{$ref:this.getChemeRefName("locstring",r)}]};var n=e.schemaType(),o=e.schemaRef(),i={};if(n&&(i.type=n),e.hasChoices){var s=e.getChoices(null);Array.isArray(s)&&s.length>0&&(i.enum=s)}if(o&&("array"===n?"string"===e.className?i.items={type:e.className}:i.items={$ref:this.getChemeRefName(e.className,r)}:i.$ref=this.getChemeRefName(o,r),this.generateChemaClass(e.className,t,!1)),e.baseClassName){var a=this.getChildrenClasses(e.baseClassName,!0);"question"==e.baseClassName&&a.push(this.findClass("panel")),i.items={anyOf:[]};for(var l=0;l<a.length;l++){var u=a[l].name;i.items.anyOf.push({$ref:this.getChemeRefName(u,r)}),this.generateChemaClass(u,t,!1)}}return i},e.prototype.getChemeRefName=function(e,t){return t?"#/definitions/"+e:e+"#"},e.prototype.generateChemaClass=function(e,t,r){if(!t[e]){var n=this.findClass(e);if(n){var o=!!n.parentName&&"base"!=n.parentName;o&&this.generateChemaClass(n.parentName,t,r);var i={type:"object",$id:e};t[e]=i;var s={properties:{}};this.generateSchemaProperties(n,s,t,r),o?i.allOf=[{$ref:this.getChemeRefName(n.parentName,r)},{properties:s.properties}]:i.properties=s.properties,Array.isArray(s.required)&&(i.required=s.required)}}},e}(),b=function(){function e(e,t){this.type=e,this.message=t,this.description="",this.at=-1}return e.prototype.getFullDescription=function(){return this.message+(this.description?"\n"+this.description:"")},e}(),y=function(e){function t(t,r){var n=e.call(this,"unknownproperty","The property '"+t+"' in class '"+r+"' is unknown.")||this;n.propertyName=t,n.className=r;var o=P.metaData.getProperties(r);if(o){n.description="The list of available properties are: ";for(var i=0;i<o.length;i++)i>0&&(n.description+=", "),n.description+=o[i].name;n.description+="."}return n}return a(t,e),t}(b),v=function(e){function t(t,r,n){var o=e.call(this,r,n)||this;o.baseClassName=t,o.type=r,o.message=n,o.description="The following types are available: ";for(var i=P.metaData.getChildrenClasses(t,!0),s=0;s<i.length;s++)s>0&&(o.description+=", "),o.description+="'"+i[s].name+"'";return o.description+=".",o}return a(t,e),t}(b),x=function(e){function t(t,r){var n=e.call(this,r,"missingtypeproperty","The property type is missing in the object. Please take a look at property: '"+t+"'.")||this;return n.propertyName=t,n.baseClassName=r,n}return a(t,e),t}(v),w=function(e){function t(t,r){var n=e.call(this,r,"incorrecttypeproperty","The property type is incorrect in the object. Please take a look at property: '"+t+"'.")||this;return n.propertyName=t,n.baseClassName=r,n}return a(t,e),t}(v),C=function(e){function t(t,r){var n=e.call(this,"requiredproperty","The property '"+t+"' is required in class '"+r+"'.")||this;return n.propertyName=t,n.className=r,n}return a(t,e),t}(b),P=function(){function e(){this.errors=new Array,this.lightSerializing=!1}return Object.defineProperty(e,"metaData",{get:function(){return e.metaDataValue},enumerable:!1,configurable:!0}),e.prototype.toJsonObject=function(e,t){return void 0===t&&(t=!1),this.toJsonObjectCore(e,null,t)},e.prototype.toObject=function(e,t){this.toObjectCore(e,t);var r=this.getRequiredError(t,e);r&&this.addNewError(r,e)},e.prototype.toObjectCore=function(t,r){if(t){var n=null,o=void 0,i=!0;if(r.getType&&(o=r.getType(),n=e.metaData.getProperties(o),i=!!o&&!e.metaData.isDescendantOf(o,"itemvalue")),n){for(var s in r.startLoadingFromJson&&r.startLoadingFromJson(t),n=this.addDynamicProperties(r,t,n),t)if(s!==e.typePropertyName)if(s!==e.positionPropertyName){var a=this.findProperty(n,s);a?this.valueToObj(t[s],r,a):i&&this.addNewError(new y(s.toString(),o),t)}else r[s]=t[s];r.endLoadingFromJson&&r.endLoadingFromJson()}}},e.prototype.toJsonObjectCore=function(t,r,n){if(void 0===n&&(n=!1),!t||!t.getType)return t;if("function"==typeof t.getData)return t.getData();var o={};return null==r||r.className||(o[e.typePropertyName]=r.getObjType(t.getType())),this.propertiesToJson(t,e.metaData.getProperties(t.getType()),o,n),this.propertiesToJson(t,this.getDynamicProperties(t),o,n),o},e.prototype.getDynamicProperties=function(e){return _.getDynamicPropertiesByObj(e)},e.prototype.addDynamicProperties=function(e,t,r){if(!e.getDynamicPropertyName)return r;var n=e.getDynamicPropertyName();if(!n)return r;t[n]&&(e[n]=t[n]);for(var o=this.getDynamicProperties(e),i=[],s=0;s<r.length;s++)i.push(r[s]);for(s=0;s<o.length;s++)i.push(o[s]);return i},e.prototype.propertiesToJson=function(e,t,r,n){void 0===n&&(n=!1);for(var o=0;o<t.length;o++)this.valueToJson(e,r,t[o],n)},e.prototype.valueToJson=function(e,t,r,n){if(void 0===n&&(n=!1),!(!1===r.isSerializable||!1===r.isLightSerializable&&this.lightSerializing)){var o=r.getValue(e);if(n||!r.isDefaultValue(o)){if(this.isValueArray(o)){for(var i=[],s=0;s<o.length;s++)i.push(this.toJsonObjectCore(o[s],r,n));o=i.length>0?i:null}else o=this.toJsonObjectCore(o,r,n);var a="function"==typeof e.getPropertyValue&&null!==e.getPropertyValue(r.name,null);(n&&a||!r.isDefaultValue(o))&&(_.onSerializingProperty&&_.onSerializingProperty(e,r,o,t)||(t[r.name]=o))}}},e.prototype.valueToObj=function(e,t,r){if(null!=e)if(this.removePos(r,e),null!=r&&r.hasToUseSetValue)r.setValue(t,e,this);else if(this.isValueArray(e))this.valueToArray(e,t,r.name,r);else{var n=this.createNewObj(e,r);n.newObj&&(this.toObjectCore(e,n.newObj),e=n.newObj),n.error||(null!=r?r.setValue(t,e,this):t[r.name]=e)}},e.prototype.removePos=function(e,t){!e||!e.type||e.type.indexOf("value")<0||this.removePosFromObj(t)},e.prototype.removePosFromObj=function(t){if(t){if(Array.isArray(t))for(var r=0;r<t.length;r++)this.removePosFromObj(t[r]);t[e.positionPropertyName]&&delete t[e.positionPropertyName]}},e.prototype.isValueArray=function(e){return e&&Array.isArray(e)},e.prototype.createNewObj=function(t,r){var n={newObj:null,error:null},o=this.getClassNameForNewObj(t,r);return n.newObj=o?e.metaData.createClass(o,t):null,n.error=this.checkNewObjectOnErrors(n.newObj,t,r,o),n},e.prototype.getClassNameForNewObj=function(t,r){var n=null!=r&&r.className?r.className:void 0;if(n||(n=t[e.typePropertyName]),!n)return n;n=n.toLowerCase();var o=r.classNamePart;return o&&n.indexOf(o)<0&&(n+=o),n},e.prototype.checkNewObjectOnErrors=function(e,t,r,n){var o=null;return e?o=this.getRequiredError(e,t):r.baseClassName&&(o=n?new w(r.name,r.baseClassName):new x(r.name,r.baseClassName)),o&&this.addNewError(o,t),o},e.prototype.getRequiredError=function(t,r){if(!t.getType||"function"==typeof t.getData)return null;var n=t.getType(),o=e.metaData.getRequiredProperties(n);if(!Array.isArray(o))return null;for(var i=0;i<o.length;i++){var a=_.findProperty(n,o[i]);if(a&&s.Helpers.isValueEmpty(a.defaultValue)&&!r[a.name])return new C(a.name,n)}return null},e.prototype.addNewError=function(t,r){r&&r[e.positionPropertyName]&&(t.at=r[e.positionPropertyName].start),this.errors.push(t)},e.prototype.valueToArray=function(e,t,r,n){if(!t[r]||this.isValueArray(t[r])){t[r]&&e.length>0&&t[r].splice(0,t[r].length);var o=t[r]?t[r]:[];this.addValuesIntoArray(e,o,n),t[r]||(t[r]=o)}},e.prototype.addValuesIntoArray=function(e,t,r){for(var n=0;n<e.length;n++){var o=this.createNewObj(e[n],r);o.newObj?(e[n].name&&(o.newObj.name=e[n].name),e[n].valueName&&(o.newObj.valueName=e[n].valueName.toString()),t.push(o.newObj),this.toObjectCore(e[n],o.newObj)):o.error||t.push(e[n])}},e.prototype.findProperty=function(e,t){if(!e)return null;for(var r=0;r<e.length;r++){var n=e[r];if(n.name==t||n.alternativeName==t)return n}return null},e.typePropertyName="type",e.positionPropertyName="pos",e.metaDataValue=new g,e}(),_=P.metaData},"./src/list.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"defaultListCss",(function(){return p})),r.d(t,"ListModel",(function(){return d}));var n,o=r("./src/jsonobject.ts"),i=r("./src/actions/container.ts"),s=r("./src/actions/action.ts"),a=r("./src/utils/cssClassBuilder.ts"),l=r("./src/element-helper.ts"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},p={root:"sv-list__container",item:"sv-list__item",searchClearButtonIcon:"sv-list__filter-clear-button",loadingIndicator:"sv-list__loading-indicator",itemSelected:"sv-list__item--selected",itemWithIcon:"sv-list__item--with-icon",itemDisabled:"sv-list__item--disabled",itemFocused:"sv-list__item--focused",itemIcon:"sv-list__item-icon",itemSeparator:"sv-list__item-separator",itemBody:"sv-list__item-body",itemsContainer:"sv-list",filter:"sv-list__filter",filterIcon:"sv-list__filter-icon",filterInput:"sv-list__input",emptyContainer:"sv-list__empty-container",emptyText:"sv-list__empty-text"},d=function(e){function t(r,n,o,i,s,l){var u=e.call(this)||this;return u.onSelectionChanged=n,u.allowSelection=o,u.onFilterStringChangedCallback=s,u.elementId=l,u.onItemClick=function(e){u.isItemDisabled(e)||(u.isExpanded=!1,u.allowSelection&&(u.selectedItem=e),u.onSelectionChanged&&u.onSelectionChanged(e))},u.isItemDisabled=function(e){return void 0!==e.enabled&&!e.enabled},u.isItemSelected=function(e){return u.areSameItems(u.selectedItem,e)},u.isItemFocused=function(e){return u.areSameItems(u.focusedItem,e)},u.getItemClass=function(e){return(new a.CssClassBuilder).append(u.cssClasses.item).append(u.cssClasses.itemWithIcon,!!e.iconName).append(u.cssClasses.itemDisabled,u.isItemDisabled(e)).append(u.cssClasses.itemFocused,u.isItemFocused(e)).append(u.cssClasses.itemSelected,u.isItemSelected(e)).append(e.css).toString()},u.getItemIndent=function(e){return((e.level||0)+1)*t.INDENT+"px"},u.setItems(r),u.selectedItem=i,u}return u(t,e),t.prototype.hasText=function(e,t){return!t||(e.title||"").toLocaleLowerCase().indexOf(t.toLocaleLowerCase())>-1},t.prototype.isItemVisible=function(e){return e.visible&&(!this.shouldProcessFilter||this.hasText(e,this.filterString))},Object.defineProperty(t.prototype,"visibleItems",{get:function(){var e=this;return this.visibleActions.filter((function(t){return e.isItemVisible(t)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldProcessFilter",{get:function(){return!this.onFilterStringChangedCallback},enumerable:!1,configurable:!0}),t.prototype.onFilterStringChanged=function(e){var t=this;this.onFilterStringChangedCallback&&this.onFilterStringChangedCallback(e),this.isEmpty=0===this.renderedActions.filter((function(e){return t.isItemVisible(e)})).length},t.prototype.scrollToItem=function(e,t){var r=this;void 0===t&&(t=0),setTimeout((function(){if(r.listContainerHtmlElement){var n=r.listContainerHtmlElement.querySelector("."+e);n&&setTimeout((function(){n.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}),t)}}),t)},t.prototype.setItems=function(t,r){var n=this;void 0===r&&(r=!0),e.prototype.setItems.call(this,t,r),this.elementId&&this.renderedActions.forEach((function(e){e.elementId=n.elementId+e.id})),!this.isAllDataLoaded&&this.actions.length&&this.actions.push(this.loadingIndicator)},t.prototype.onSet=function(){this.showFilter=this.searchEnabled&&(this.forceShowFilter||(this.actions||[]).length>t.MINELEMENTCOUNT),e.prototype.onSet.call(this)},t.prototype.getDefaultCssClasses=function(){return p},t.prototype.areSameItems=function(e,t){return this.areSameItemsCallback?this.areSameItemsCallback(e,t):!!e&&!!t&&e.id==t.id},Object.defineProperty(t.prototype,"filterStringPlaceholder",{get:function(){return this.getLocalizationString("filterStringPlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyMessage",{get:function(){return this.isAllDataLoaded?this.getLocalizationString("emptyMessage"):this.loadingText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollableContainer",{get:function(){return this.listContainerHtmlElement.querySelector("."+this.getDefaultCssClasses().itemsContainer)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingText",{get:function(){return this.getLocalizationString("loadingFile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingIndicator",{get:function(){return this.loadingIndicatorValue||(this.loadingIndicatorValue=new s.Action({id:"loadingIndicator",title:this.loadingText,action:function(){},css:this.cssClasses.loadingIndicator})),this.loadingIndicatorValue},enumerable:!1,configurable:!0}),t.prototype.goToItems=function(e){if("ArrowDown"===e.key||40===e.keyCode){var t=e.target.parentElement.parentElement.querySelector("ul");t&&t.firstElementChild&&(l.ElementHelper.focusElement(t.firstElementChild),e.preventDefault())}},t.prototype.onMouseMove=function(e){this.resetFocusedItem()},t.prototype.onKeyDown=function(e){var t=e.target;"ArrowDown"===e.key||40===e.keyCode?(l.ElementHelper.focusElement(l.ElementHelper.getNextElementPreorder(t)),e.preventDefault()):"ArrowUp"!==e.key&&38!==e.keyCode||(l.ElementHelper.focusElement(l.ElementHelper.getNextElementPostorder(t)),e.preventDefault())},t.prototype.onPointerDown=function(e,t){},t.prototype.refresh=function(){this.filterString="",this.resetFocusedItem()},t.prototype.onClickSearchClearButton=function(e){e.currentTarget.parentElement.querySelector("input").focus(),this.refresh()},t.prototype.resetFocusedItem=function(){this.focusedItem=void 0},t.prototype.focusFirstVisibleItem=function(){this.focusedItem=this.visibleItems[0]},t.prototype.focusLastVisibleItem=function(){this.focusedItem=this.visibleItems[this.visibleItems.length-1]},t.prototype.initFocusedItem=function(){var e=this;this.focusedItem=this.visibleItems.filter((function(t){return t.visible&&e.isItemSelected(t)}))[0],this.focusedItem||this.focusFirstVisibleItem()},t.prototype.focusNextVisibleItem=function(){if(this.focusedItem){var e=this.visibleItems,t=e.indexOf(this.focusedItem),r=e[t+1];r?this.focusedItem=r:this.focusFirstVisibleItem()}else this.initFocusedItem()},t.prototype.focusPrevVisibleItem=function(){if(this.focusedItem){var e=this.visibleItems,t=e.indexOf(this.focusedItem),r=e[t-1];r?this.focusedItem=r:this.focusLastVisibleItem()}else this.initFocusedItem()},t.prototype.selectFocusedItem=function(){this.focusedItem&&this.onItemClick(this.focusedItem)},t.prototype.initListContainerHtmlElement=function(e){this.listContainerHtmlElement=e},t.prototype.onLastItemRended=function(e){this.isAllDataLoaded||e===this.actions[this.actions.length-1]&&this.listContainerHtmlElement&&(this.hasVerticalScroller=l.ElementHelper.hasVerticalScroller(this.scrollableContainer))},t.prototype.scrollToFocusedItem=function(){this.scrollToItem(this.getDefaultCssClasses().itemFocused)},t.prototype.scrollToSelectedItem=function(){this.scrollToItem(this.getDefaultCssClasses().itemSelected,110)},t.prototype.addScrollEventListener=function(e){e&&(this.scrollHandler=e),this.scrollHandler&&this.scrollableContainer.addEventListener("scroll",this.scrollHandler)},t.prototype.removeScrollEventListener=function(){this.scrollHandler&&this.scrollableContainer.removeEventListener("scroll",this.scrollHandler)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.loadingIndicatorValue&&this.loadingIndicatorValue.dispose()},t.INDENT=16,t.MINELEMENTCOUNT=10,c([Object(o.property)({defaultValue:!0,onSet:function(e,t){t.onSet()}})],t.prototype,"searchEnabled",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"showFilter",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"forceShowFilter",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"isExpanded",void 0),c([Object(o.property)({})],t.prototype,"selectedItem",void 0),c([Object(o.property)()],t.prototype,"focusedItem",void 0),c([Object(o.property)({onSet:function(e,t){t.onFilterStringChanged(t.filterString)}})],t.prototype,"filterString",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"hasVerticalScroller",void 0),c([Object(o.property)({defaultValue:!0})],t.prototype,"isAllDataLoaded",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"showSearchClearButton",void 0),c([Object(o.property)({defaultValue:!0})],t.prototype,"renderElements",void 0),t}(i.ActionContainer)},"./src/localizablestring.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"LocalizableString",(function(){return a})),r.d(t,"LocalizableStrings",(function(){return l}));var n=r("./src/helpers.ts"),o=r("./src/surveyStrings.ts"),i=r("./src/settings.ts"),s=r("./src/base.ts"),a=function(){function e(e,t,r){void 0===t&&(t=!1),this.owner=e,this.useMarkdown=t,this.name=r,this.values={},this.htmlValues={},this.onStringChanged=new s.EventBase,this.onCreating()}return Object.defineProperty(e,"defaultLocale",{get:function(){return i.settings.defaultLocaleName},set:function(e){i.settings.defaultLocaleName=e},enumerable:!1,configurable:!0}),e.prototype.getIsMultiple=function(){return!1},Object.defineProperty(e.prototype,"locale",{get:function(){if(this.owner&&this.owner.getLocale){var e=this.owner.getLocale();if(e||!this.sharedData)return e}return this.sharedData?this.sharedData.locale:""},enumerable:!1,configurable:!0}),e.prototype.strChanged=function(){this.searchableText=void 0,void 0!==this.renderedText&&(this.calculatedTextValue=this.calcText(),this.renderedText!==this.calculatedTextValue&&(this.renderedText=void 0,this.calculatedTextValue=void 0),this.htmlValues={},this.onChanged(),this.onStringChanged.fire(this,{}))},Object.defineProperty(e.prototype,"text",{get:function(){return this.pureText},set:function(e){this.setLocaleText(this.locale,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calculatedText",{get:function(){return this.renderedText=void 0!==this.calculatedTextValue?this.calculatedTextValue:this.calcText(),this.calculatedTextValue=void 0,this.renderedText},enumerable:!1,configurable:!0}),e.prototype.calcText=function(){var e=this.pureText;return e&&this.owner&&this.owner.getProcessedText&&e.indexOf("{")>-1&&(e=this.owner.getProcessedText(e)),this.onGetTextCallback&&(e=this.onGetTextCallback(e)),e},Object.defineProperty(e.prototype,"pureText",{get:function(){var e=this.locale;e||(e=this.defaultLoc);var t=this.getValue(e);if(t||e!==this.defaultLoc||(t=this.getValue(o.surveyLocalization.defaultLocale)),!t){var r=this.getRootDialect(e);r&&(t=this.getValue(r))}return t||e===this.defaultLoc||(t=this.getValue(this.defaultLoc)),!t&&this.getLocalizationName()&&(t=this.getLocalizationStr(),this.onGetLocalizationTextCallback&&(t=this.onGetLocalizationTextCallback(t))),t||(t=""),t},enumerable:!1,configurable:!0}),e.prototype.getRootDialect=function(e){if(!e)return e;var t=e.indexOf("-");return t>-1?e.substring(0,t):""},e.prototype.getLocalizationName=function(){return this.sharedData?this.sharedData.localizationName:this.localizationName},e.prototype.getLocalizationStr=function(){var e=this.getLocalizationName();return e?o.surveyLocalization.getString(e,this.locale):""},Object.defineProperty(e.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedHtml",{get:function(){return this.textOrHtml},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){return e||(e=this.defaultLoc),this.getValue(e)||""},e.prototype.getLocaleTextWithDefault=function(e){var t=this.getLocaleText(e);return!t&&this.onGetDefaultTextCallback?this.onGetDefaultTextCallback():t},e.prototype.setLocaleText=function(e,t){if(e=this.getValueLoc(e),this.storeDefaultText||t!=this.getLocaleTextWithDefault(e)){if(i.settings.storeDuplicatedTranslations||!t||!e||e==this.defaultLoc||this.getValue(e)||t!=this.getLocaleText(this.defaultLoc)){var r=this.curLocale;e||(e=this.defaultLoc);var n=this.onStrChanged&&e===r?this.pureText:void 0;delete this.htmlValues[e],t?"string"==typeof t&&(this.canRemoveLocValue(e,t)?this.setLocaleText(e,null):(this.setValue(e,t),e==this.defaultLoc&&this.deleteValuesEqualsToDefault(t))):this.getValue(e)&&this.deleteValue(e),this.fireStrChanged(e,n)}}else{if(t||e&&e!==this.defaultLoc)return;var s=o.surveyLocalization.defaultLocale,a=this.getValue(s);s&&a&&(this.setValue(s,t),this.fireStrChanged(s,a))}},Object.defineProperty(e.prototype,"curLocale",{get:function(){return this.locale?this.locale:this.defaultLoc},enumerable:!1,configurable:!0}),e.prototype.canRemoveLocValue=function(e,t){if(i.settings.storeDuplicatedTranslations)return!1;if(e===this.defaultLoc)return!1;var r=this.getRootDialect(e);if(r){var n=this.getLocaleText(r);return n?n==t:this.canRemoveLocValue(r,t)}return t==this.getLocaleText(this.defaultLoc)},e.prototype.fireStrChanged=function(e,t){if(this.strChanged(),this.onStrChanged){var r=this.pureText;e===this.curLocale&&t===r||this.onStrChanged(t,r)}},e.prototype.hasNonDefaultText=function(){var e=this.getValuesKeys();return 0!=e.length&&(e.length>1||e[0]!=this.defaultLoc)},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){if(this.sharedData)return this.sharedData.getJson();var e=this.getValuesKeys();return 0==e.length?null:1!=e.length||e[0]!=i.settings.defaultLocaleName||i.settings.serializeLocalizableStringAsObject?this.values:this.values[e[0]]},e.prototype.setJson=function(e){if(this.sharedData)this.sharedData.setJson(e);else if(this.values={},this.htmlValues={},e){if("string"==typeof e)this.setLocaleText(null,e);else for(var t in e)this.setLocaleText(t,e[t]);this.strChanged()}},Object.defineProperty(e.prototype,"renderAs",{get:function(){return this.owner&&"function"==typeof this.owner.getRenderer&&this.owner.getRenderer(this.name)||e.defaultRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderAsData",{get:function(){return this.owner&&"function"==typeof this.owner.getRendererContext&&this.owner.getRendererContext(this)||this},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return this.sharedData?this.sharedData.equals(e):!(!e||!e.values)&&n.Helpers.isTwoValueEquals(this.values,e.values,!1,!0,!1)},e.prototype.setFindText=function(e){if(this.searchText!=e){if(this.searchText=e,!this.searchableText){var t=this.textOrHtml;this.searchableText=t?t.toLowerCase():""}var r=this.searchableText,n=r&&e?r.indexOf(e):void 0;return n<0&&(n=void 0),null==n&&this.searchIndex==n||(this.searchIndex=n,this.onSearchChanged&&this.onSearchChanged()),null!=this.searchIndex}},e.prototype.onChanged=function(){},e.prototype.onCreating=function(){},e.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var e=this.locale;if(e||(e=this.defaultLoc),void 0!==this.htmlValues[e])return!!this.htmlValues[e];var t=this.calculatedText;if(!t)return!1;if(this.getLocalizationName()&&t===this.getLocalizationStr())return!1;var r=this.owner.getMarkdownHtml(t,this.name);return this.htmlValues[e]=r,!!r},e.prototype.getHtmlValue=function(){var e=this.locale;return e||(e=this.defaultLoc),this.htmlValues[e]},e.prototype.deleteValuesEqualsToDefault=function(e){if(!i.settings.storeDuplicatedTranslations)for(var t=this.getValuesKeys(),r=0;r<t.length;r++)t[r]!=this.defaultLoc&&this.getValue(t[r])==e&&this.deleteValue(t[r])},e.prototype.getValue=function(e){return this.sharedData?this.sharedData.getValue(e):this.values[this.getValueLoc(e)]},e.prototype.setValue=function(e,t){this.sharedData?this.sharedData.setValue(e,t):this.values[this.getValueLoc(e)]=t},e.prototype.deleteValue=function(e){this.sharedData?this.sharedData.deleteValue(e):delete this.values[this.getValueLoc(e)]},e.prototype.getValueLoc=function(e){return this.disableLocalization?i.settings.defaultLocaleName:e},e.prototype.getValuesKeys=function(){return this.sharedData?this.sharedData.getValuesKeys():Object.keys(this.values)},Object.defineProperty(e.prototype,"defaultLoc",{get:function(){return i.settings.defaultLocaleName},enumerable:!1,configurable:!0}),e.SerializeAsObject=!1,e.defaultRenderer="sv-string-viewer",e.editableRenderer="sv-string-editor",e}(),l=function(){function e(e){this.owner=e,this.values={}}return e.prototype.getIsMultiple=function(){return!0},Object.defineProperty(e.prototype,"locale",{get:function(){return this.owner&&this.owner.getLocale?this.owner.getLocale():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue("")},set:function(e){this.setValue("",e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return Array.isArray(this.value)?this.value.join("\n"):""},set:function(e){this.value=e?e.split("\n"):[]},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){var t=this.getValueCore(e,!e||e===this.locale);return t&&Array.isArray(t)&&0!=t.length?t.join("\n"):""},e.prototype.setLocaleText=function(e,t){var r=t?t.split("\n"):null;this.setValue(e,r)},e.prototype.getValue=function(e){return this.getValueCore(e)},e.prototype.getValueCore=function(e,t){if(void 0===t&&(t=!0),e=this.getLocale(e),this.values[e])return this.values[e];if(t){var r=i.settings.defaultLocaleName;if(e!==r&&this.values[r])return this.values[r]}return[]},e.prototype.setValue=function(e,t){e=this.getLocale(e);var r=n.Helpers.createCopy(this.values);t&&0!=t.length?this.values[e]=t:delete this.values[e],this.onValueChanged&&this.onValueChanged(r,this.values)},e.prototype.hasValue=function(e){return void 0===e&&(e=""),!this.isEmpty&&this.getValue(e).length>0},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),e.prototype.getLocale=function(e){return e||(e=this.locale)||i.settings.defaultLocaleName},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){var e=this.getValuesKeys();return 0==e.length?null:1!=e.length||e[0]!=i.settings.defaultLocaleName||i.settings.serializeLocalizableStringAsObject?n.Helpers.createCopy(this.values):this.values[e[0]]},e.prototype.setJson=function(e){if(this.values={},e)if(Array.isArray(e))this.setValue(null,e);else for(var t in e)this.setValue(t,e[t])},e.prototype.getValuesKeys=function(){return Object.keys(this.values)},e}()},"./src/localization/english.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"englishStrings",(function(){return n}));var n={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",previewText:"Preview",editText:"Edit",startSurveyText:"Start",otherItemText:"Other (describe)",noneItemText:"None",selectAllItemText:"Select All",progressText:"Page {0} of {1}",indexText:"{0} of {1}",panelDynamicProgressText:"{0} of {1}",panelDynamicTabTextFormat:"Panel {panelIndex}",questionsProgressText:"Answered {0}/{1} questions",emptySurvey:"The survey doesn't contain visible pages or questions.",completingSurvey:"Thank you for completing the survey",completingSurveyBefore:"Our records show that you have already completed this survey.",loadingSurvey:"Loading Survey...",placeholder:"Select...",ratingOptionsCaption:"Tap to rate here...",value:"value",requiredError:"Response required.",requiredErrorInPanel:"Response required: answer at least one question.",requiredInAllRowsError:"Response required: answer questions in all rows.",numericError:"The value should be numeric.",minError:"The value should not be less than {0}",maxError:"The value should not be greater than {0}",textMinLength:"Please enter at least {0} character(s).",textMaxLength:"Please enter no more than {0} character(s).",textMinMaxLength:"Please enter at least {0} and no more than {1} characters.",minRowCountError:"Please fill in at least {0} row(s).",minSelectError:"Please select at least {0} variant(s).",maxSelectError:"Please select no more than {0} variant(s).",numericMinMax:"The '{0}' should be at least {1} and at most {2}",numericMin:"The '{0}' should be at least {1}",numericMax:"The '{0}' should be at most {1}",invalidEmail:"Please enter a valid e-mail address.",invalidExpression:"The expression: {0} should return 'true'.",urlRequestError:"The request returned error '{0}'. {1}",urlGetChoicesError:"The request returned empty data or the 'path' property is incorrect",exceedMaxSize:"The file size should not exceed {0}.",otherRequiredError:"Response required: enter another value.",uploadingFile:"Your file is uploading. Please wait several seconds and try again.",loadingFile:"Loading...",chooseFile:"Choose file(s)...",noFileChosen:"No file chosen",fileDragAreaPlaceholder:"Drag and drop a file here or click the button below and choose a file to upload.",confirmDelete:"Do you want to delete the record?",keyDuplicationError:"This value should be unique.",addColumn:"Add Column",addRow:"Add Row",removeRow:"Remove",emptyRowsText:"There are no rows.",addPanel:"Add new",removePanel:"Remove",choices_Item:"item",matrix_column:"Column",matrix_row:"Row",multipletext_itemname:"text",savingData:"The results are being saved on the server...",savingDataError:"An error occurred and we could not save the results.",savingDataSuccess:"The results were saved successfully!",saveAgainButton:"Try again",timerMin:"min",timerSec:"sec",timerSpentAll:"You have spent {0} on this page and {1} in total.",timerSpentPage:"You have spent {0} on this page.",timerSpentSurvey:"You have spent {0} in total.",timerLimitAll:"You have spent {0} of {1} on this page and {2} of {3} in total.",timerLimitPage:"You have spent {0} of {1} on this page.",timerLimitSurvey:"You have spent {0} of {1} in total.",clearCaption:"Clear",signaturePlaceHolder:"Sign here",chooseFileCaption:"Choose file",removeFileCaption:"Remove this file",booleanCheckedLabel:"Yes",booleanUncheckedLabel:"No",confirmRemoveFile:"Are you sure that you want to remove this file: {0}?",confirmRemoveAllFiles:"Are you sure that you want to remove all files?",questionTitlePatternText:"Question Title",modalCancelButtonText:"Cancel",modalApplyButtonText:"Apply",filterStringPlaceholder:"Type to search...",emptyMessage:"No data to display",noEntriesText:"There are no entries yet.\nClick the button below to add a new entry.",noEntriesReadonlyText:"There are no entries.",more:"More",tagboxDoneButtonCaption:"OK"}},"./src/martixBase.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionMatrixBaseModel",(function(){return d}));var n,o=r("./src/itemvalue.ts"),i=r("./src/question.ts"),s=r("./src/jsonobject.ts"),a=r("./src/conditions.ts"),l=r("./src/helpers.ts"),u=r("./src/utils/cssClassBuilder.ts"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},d=function(e){function t(t){var r=e.call(this,t)||this;return r.generatedVisibleRows=null,r.generatedTotalRow=null,r.filteredRows=null,r.filteredColumns=null,r.columns=r.createColumnValues(),r.rows=r.createItemValues("rows"),r}return c(t,e),t.prototype.createColumnValues=function(){return this.createItemValues("columns")},t.prototype.getType=function(){return"matrixbase"},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.updateVisibilityBasedOnRows()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},set:function(e){this.setPropertyValue("showHeader",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.getPropertyValue("columns")},set:function(e){this.setPropertyValue("columns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleColumns",{get:function(){return this.filteredColumns?this.filteredColumns:this.columns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){var t=this.processRowsOnSet(e);this.setPropertyValue("rows",t),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.processRowsOnSet=function(e){return e},t.prototype.getVisibleRows=function(){return[]},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsVisibleIf",{get:function(){return this.getPropertyValue("rowsVisibleIf","")},set:function(e){this.setPropertyValue("rowsVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsVisibleIf",{get:function(){return this.getPropertyValue("columnsVisibleIf","")},set:function(e){this.setPropertyValue("columnsVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.runItemsCondition(t,r)},t.prototype.filterItems=function(){return this.areInvisibleElementsShowing?(this.onRowsChanged(),!1):!(this.isLoadingFromJson||!this.data)&&this.runItemsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.onColumnsChanged=function(){},t.prototype.onRowsChanged=function(){this.updateVisibilityBasedOnRows(),this.fireCallback(this.visibleRowsChangedCallback)},t.prototype.updateVisibilityBasedOnRows=function(){this.hideIfRowsEmpty&&(this.visible=this.rows.length>0&&(!this.filteredRows||this.filteredRows.length>0))},t.prototype.shouldRunColumnExpression=function(){return!this.survey||!this.survey.areInvisibleElementsShowing},t.prototype.hasRowsAsItems=function(){return!0},t.prototype.runItemsCondition=function(e,t){var r=null;if(this.filteredRows&&!l.Helpers.isValueEmpty(this.defaultValue)){r=[];for(var n=0;n<this.filteredRows.length;n++)r.push(this.filteredRows[n])}var o=this.hasRowsAsItems()&&this.runConditionsForRows(e,t),i=this.runConditionsForColumns(e,t);return(o=i||o)&&(this.isClearValueOnHidden&&(this.filteredColumns||this.filteredRows)&&this.clearIncorrectValues(),r&&this.restoreNewVisibleRowsValues(r),this.clearGeneratedRows(),i&&this.onColumnsChanged(),this.onRowsChanged()),o},t.prototype.clearGeneratedRows=function(){this.generatedVisibleRows=null},t.prototype.runConditionsForRows=function(e,t){var r=!!this.survey&&this.survey.areInvisibleElementsShowing,n=!r&&this.rowsVisibleIf?new a.ConditionRunner(this.rowsVisibleIf):null;this.filteredRows=[];var i=o.ItemValue.runConditionsForItems(this.rows,this.filteredRows,n,e,t,!r);return this.filteredRows.length===this.rows.length&&(this.filteredRows=null),i},t.prototype.runConditionsForColumns=function(e,t){var r=this.survey&&!this.survey.areInvisibleElementsShowing&&this.columnsVisibleIf?new a.ConditionRunner(this.columnsVisibleIf):null;this.filteredColumns=[];var n=o.ItemValue.runConditionsForItems(this.columns,this.filteredColumns,r,e,t,this.shouldRunColumnExpression());return this.filteredColumns.length===this.columns.length&&(this.filteredColumns=null),n},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var r=null,n=!1,i=this.filteredRows?this.filteredRows:this.rows,s=this.filteredColumns?this.filteredColumns:this.columns;for(var a in t)o.ItemValue.getItemByValue(i,a)&&o.ItemValue.getItemByValue(s,t[a])?(null==r&&(r={}),r[a]=t[a]):n=!0;n&&(this.value=r),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearInvisibleValuesInRows=function(){if(!this.isEmpty()){for(var e=this.getUnbindValue(this.value),t=this.rows,r=0;r<t.length;r++){var n=t[r].value;e[n]&&!t[r].isVisible&&delete e[n]}this.isTwoValueEquals(e,this.value)||(this.value=e)}},t.prototype.restoreNewVisibleRowsValues=function(e){var t=this.filteredRows?this.filteredRows:this.rows,r=this.defaultValue,n=this.getUnbindValue(this.value),i=!1;for(var s in r)o.ItemValue.getItemByValue(t,s)&&!o.ItemValue.getItemByValue(e,s)&&(null==n&&(n={}),n[s]=r[s],i=!0);i&&(this.value=n)},t.prototype.needResponsiveWidth=function(){return!0},t.prototype.getTableCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.rootAlternateRows,this.alternateRows).append(this.cssClasses.rootVerticalAlignTop,"top"===this.verticalAlign).append(this.cssClasses.rootVerticalAlignMiddle,"middle"===this.verticalAlign).toString()},Object.defineProperty(t.prototype,"columnMinWidth",{get:function(){return this.getPropertyValue("columnMinWidth","")},set:function(e){this.setPropertyValue("columnMinWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowTitleWidth",{get:function(){return this.getPropertyValue("rowTitleWidth","")},set:function(e){this.setPropertyValue("rowTitleWidth",e)},enumerable:!1,configurable:!0}),p([Object(s.property)({defaultValue:"middle"})],t.prototype,"verticalAlign",void 0),p([Object(s.property)()],t.prototype,"alternateRows",void 0),t}(i.Question);s.Serializer.addClass("matrixbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"columnsVisibleIf:condition","rowsVisibleIf:condition","columnMinWidth",{name:"showHeader:boolean",default:!0},{name:"verticalAlign",choices:["top","middle"],default:"middle"},{name:"alternateRows:boolean",default:!1}],void 0,"question")},"./src/multiSelectListModel.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"MultiSelectListModel",(function(){return a}));var n,o=r("./src/jsonobject.ts"),i=r("./src/list.ts"),s=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(t,r,n,o,i,s){var a=e.call(this,t,r,n,void 0,i,s)||this;return a.onItemClick=function(e){a.isItemDisabled(e)||(a.isExpanded=!1,a.isItemSelected(e)?(a.selectedItems.splice(a.selectedItems.indexOf(e),1)[0],a.onSelectionChanged&&a.onSelectionChanged(e,"removed")):(a.selectedItems.push(e),a.onSelectionChanged&&a.onSelectionChanged(e,"added")))},a.isItemDisabled=function(e){return void 0!==e.enabled&&!e.enabled},a.isItemSelected=function(e){return!!a.allowSelection&&a.selectedItems.filter((function(t){return a.areSameItems(t,e)})).length>0},a.setSelectedItems(o||[]),a}return s(t,e),t.prototype.updateItemState=function(){var e=this;this.actions.forEach((function(t){var r=e.isItemSelected(t);t.visible=!e.hideSelectedItems||!r}))},t.prototype.updateState=function(){var e=this;this.updateItemState(),this.isEmpty=0===this.renderedActions.filter((function(t){return e.isItemVisible(t)})).length},t.prototype.setSelectedItems=function(e){this.selectedItems=e,this.updateState()},t.prototype.selectFocusedItem=function(){e.prototype.selectFocusedItem.call(this),this.hideSelectedItems&&this.focusNextVisibleItem()},function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);i>3&&s&&Object.defineProperty(t,r,s)}([Object(o.property)()],t.prototype,"hideSelectedItems",void 0),t}(i.ListModel)},"./src/notifier.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"Notifier",(function(){return p}));var n,o=r("./src/base.ts"),i=r("./src/settings.ts"),s=r("./src/jsonobject.ts"),a=r("./src/utils/cssClassBuilder.ts"),l=r("./src/actions/container.ts"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},p=function(e){function t(t){var r=e.call(this)||this;return r.cssClasses=t,r.timeout=i.settings.notifications.lifetime,r.timer=void 0,r.actionsVisibility={},r.actionBar=new l.ActionContainer,r.actionBar.updateCallback=function(e){r.actionBar.actions.forEach((function(e){return e.cssClasses={}}))},r.css=r.cssClasses.root,r}return u(t,e),t.prototype.getCssClass=function(e){return(new a.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.info,"error"!==e&&"success"!==e).append(this.cssClasses.error,"error"===e).append(this.cssClasses.success,"success"===e).append(this.cssClasses.shown,this.active).toString()},t.prototype.updateActionsVisibility=function(e){var t=this;this.actionBar.actions.forEach((function(r){return r.visible=t.actionsVisibility[r.id]===e}))},t.prototype.notify=function(e,t,r){var n=this;void 0===t&&(t="info"),void 0===r&&(r=!1),this.isDisplayed=!0,setTimeout((function(){n.updateActionsVisibility(t),n.message=e,n.active=!0,n.css=n.getCssClass(t),n.timer&&(clearTimeout(n.timer),n.timer=void 0),r||(n.timer=setTimeout((function(){n.timer=void 0,n.active=!1,n.css=n.getCssClass(t)}),n.timeout))}),1)},t.prototype.addAction=function(e,t){e.visible=!1,e.innerCss=this.cssClasses.button;var r=this.actionBar.addAction(e);this.actionsVisibility[r.id]=t},c([Object(s.property)({defaultValue:!1})],t.prototype,"active",void 0),c([Object(s.property)({defaultValue:!1})],t.prototype,"isDisplayed",void 0),c([Object(s.property)()],t.prototype,"message",void 0),c([Object(s.property)()],t.prototype,"css",void 0),t}(o.Base)},"./src/page.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"PageModel",(function(){return u}));var n,o=r("./src/jsonobject.ts"),i=r("./src/panel.ts"),s=r("./src/utils/cssClassBuilder.ts"),a=r("./src/drag-drop-page-helper-v1.ts"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){void 0===t&&(t="");var r=e.call(this,t)||this;return r.hasShownValue=!1,r.timeSpent=0,r.locTitle.onGetTextCallback=function(e){return r.canShowPageNumber()&&e?r.num+". "+e:e},r.createLocalizableString("navigationTitle",r,!0),r.createLocalizableString("navigationDescription",r,!0),r.dragDropPageHelper=new a.DragDropPageHelperV1(r),r}return l(t,e),t.prototype.getType=function(){return"page"},t.prototype.toString=function(){return this.name},Object.defineProperty(t.prototype,"isPage",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.canShowPageNumber=function(){return this.survey&&this.survey.showPageNumbers},t.prototype.canShowTitle=function(){return this.survey&&this.survey.showPageTitles},Object.defineProperty(t.prototype,"navigationTitle",{get:function(){return this.getLocalizableStringText("navigationTitle")},set:function(e){this.setLocalizableStringText("navigationTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNavigationTitle",{get:function(){return this.getLocalizableString("navigationTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationDescription",{get:function(){return this.getLocalizableStringText("navigationDescription")},set:function(e){this.setLocalizableStringText("navigationDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNavigationDescription",{get:function(){return this.getLocalizableString("navigationDescription")},enumerable:!1,configurable:!0}),t.prototype.navigationLocStrChanged=function(){this.locNavigationTitle.strChanged(),this.locNavigationDescription.strChanged()},Object.defineProperty(t.prototype,"passed",{get:function(){return this.getPropertyValue("passed",!1)},set:function(e){this.setPropertyValue("passed",e)},enumerable:!1,configurable:!0}),t.prototype.delete=function(){this.survey&&this.removeSelfFromList(this.survey.pages)},t.prototype.onFirstRendering=function(){this.wasShown||e.prototype.onFirstRendering.call(this)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},set:function(e){this.setPropertyValue("visibleIndex",e)},enumerable:!1,configurable:!0}),t.prototype.canRenderFirstRows=function(){return!this.isDesignMode||0==this.visibleIndex},Object.defineProperty(t.prototype,"isStartPage",{get:function(){return this.survey&&this.survey.isPageStarted(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStarted",{get:function(){return this.isStartPage},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={page:{},pageTitle:"",pageDescription:"",row:"",rowMultiple:"",pageRow:"",rowCompact:""};return this.copyCssClasses(t.page,e.page),e.pageTitle&&(t.pageTitle=e.pageTitle),e.pageDescription&&(t.pageDescription=e.pageDescription),e.row&&(t.row=e.row),e.pageRow&&(t.pageRow=e.pageRow),e.rowMultiple&&(t.rowMultiple=e.rowMultiple),e.rowCompact&&(t.rowCompact=e.rowCompact),this.survey&&this.survey.updatePageCssClasses(this,t),t},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.cssClasses.page?(new s.CssClassBuilder).append(this.cssClasses.page.title).toString():""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.cssClasses.page&&this.survey?(new s.CssClassBuilder).append(this.cssClasses.page.root).append(this.cssClasses.page.emptyHeaderRoot,!(this.survey.renderedHasHeader||this.survey.isShowProgressBarOnTop&&!this.survey.isStaring)).toString():""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationButtonsVisibility",{get:function(){return this.getPropertyValue("navigationButtonsVisibility")},set:function(e){this.setPropertyValue("navigationButtonsVisibility",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isActive",{get:function(){return!!this.survey&&this.survey.currentPage===this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wasShown",{get:function(){return this.hasShownValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasShown",{get:function(){return this.wasShown},enumerable:!1,configurable:!0}),t.prototype.setWasShown=function(e){if(e!=this.hasShownValue&&(this.hasShownValue=e,!this.isDesignMode&&!0===e)){for(var t=this.elements,r=0;r<t.length;r++)t[r].isPanel&&t[r].randomizeElements(this.areQuestionsRandomized);this.randomizeElements(this.areQuestionsRandomized)}},t.prototype.scrollToTop=function(){this.survey&&this.survey.scrollElementToTop(this,null,this,this.id)},t.prototype.getAllPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var r=new Array;return this.addPanelsIntoList(r,e,t),r},t.prototype.getPanels=function(e,t){return void 0===e&&(e=!1),void 0===t&&(t=!1),this.getAllPanels(e,t)},Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!1,configurable:!0}),t.prototype.onNumChanged=function(e){},t.prototype.onVisibleChanged=function(){this.isRandomizing||(e.prototype.onVisibleChanged.call(this),null!=this.survey&&this.survey.pageVisibilityChanged(this,this.isVisible))},t.prototype.getDragDropInfo=function(){return this.dragDropPageHelper.getDragDropInfo()},t.prototype.dragDropStart=function(e,t,r){void 0===r&&(r=-1),this.dragDropPageHelper.dragDropStart(e,t,r)},t.prototype.dragDropMoveTo=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),this.dragDropPageHelper.dragDropMoveTo(e,t,r)},t.prototype.dragDropFinish=function(e){return void 0===e&&(e=!1),this.dragDropPageHelper.dragDropFinish(e)},t.prototype.ensureRowsVisibility=function(){e.prototype.ensureRowsVisibility.call(this),this.getPanels().forEach((function(e){return e.ensureRowsVisibility()}))},function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);i>3&&s&&Object.defineProperty(t,r,s)}([Object(o.property)({defaultValue:-1,onSet:function(e,t){return t.onNumChanged(e)}})],t.prototype,"num",void 0),t}(i.PanelModelBase);o.Serializer.addClass("page",[{name:"navigationButtonsVisibility",default:"inherit",choices:["inherit","show","hide"]},{name:"maxTimeToFinish:number",default:0,minValue:0},{name:"navigationTitle",visibleIf:function(e){return!!e.survey&&("buttons"===e.survey.progressBarType||e.survey.showTOC)},serializationProperty:"locNavigationTitle"},{name:"navigationDescription",visibleIf:function(e){return!!e.survey&&"buttons"===e.survey.progressBarType},serializationProperty:"locNavigationDescription"},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"}],(function(){return new u}),"panelbase")},"./src/panel.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionRowModel",(function(){return b})),r.d(t,"PanelModelBase",(function(){return y})),r.d(t,"PanelModel",(function(){return v}));var n,o=r("./src/jsonobject.ts"),i=r("./src/helpers.ts"),s=r("./src/base.ts"),a=r("./src/survey-element.ts"),l=r("./src/question.ts"),u=r("./src/questionfactory.ts"),c=r("./src/error.ts"),p=r("./src/settings.ts"),d=r("./src/utils/utils.ts"),h=r("./src/utils/cssClassBuilder.ts"),f=r("./src/drag-drop-panel-helper-v1.ts"),m=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),g=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},b=function(e){function t(r){var n=e.call(this)||this;return n.panel=r,n._scrollableParent=void 0,n._updateVisibility=void 0,n.idValue=t.getRowId(),n.visible=r.areInvisibleElementsShowing,n.createNewArray("elements"),n.createNewArray("visibleElements"),n}return m(t,e),t.getRowId=function(){return"pr_"+t.rowCounter++},t.prototype.startLazyRendering=function(e,t){var r=this;void 0===t&&(t=d.findScrollableParent),this._scrollableParent=t(e),this._scrollableParent===document.documentElement&&(this._scrollableParent=window);var n=this._scrollableParent.scrollHeight>this._scrollableParent.clientHeight;this.isNeedRender=!n,n&&(this._updateVisibility=function(){var t=Object(d.isElementVisible)(e,50);!r.isNeedRender&&t&&(r.isNeedRender=!0,r.stopLazyRendering())},setTimeout((function(){r._scrollableParent&&r._scrollableParent.addEventListener&&r._scrollableParent.addEventListener("scroll",r._updateVisibility),r.ensureVisibility()}),10))},t.prototype.ensureVisibility=function(){this._updateVisibility&&this._updateVisibility()},t.prototype.stopLazyRendering=function(){this._scrollableParent&&this._updateVisibility&&this._scrollableParent.removeEventListener&&this._scrollableParent.removeEventListener("scroll",this._updateVisibility),this._scrollableParent=void 0,this._updateVisibility=void 0},t.prototype.setIsLazyRendering=function(e){this.isLazyRenderingValue=e,this.isNeedRender=!e},t.prototype.isLazyRendering=function(){return!0===this.isLazyRenderingValue},Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"elements",{get:function(){return this.getPropertyValue("elements")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleElements",{get:function(){return this.getPropertyValue("visibleElements")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){this.setPropertyValue("visible",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNeedRender",{get:function(){return this.getPropertyValue("isneedrender",!0)},set:function(e){this.setPropertyValue("isneedrender",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisible=function(){var e=this.calcVisible();this.setWidth(),this.visible=e},t.prototype.addElement=function(e){this.elements.push(e),this.updateVisible()},Object.defineProperty(t.prototype,"index",{get:function(){return this.panel.rows.indexOf(this)},enumerable:!1,configurable:!0}),t.prototype.setWidth=function(){var e,t=this.visibleElements.length;if(0!=t){for(var r=1===this.visibleElements.length,n=0,o=[],i=0;i<this.elements.length;i++){var s=this.elements[i];if(this.setElementMaxMinWidth(s),s.isVisible){s.isSingleInRow=r;var a=this.getElementWidth(s);a&&(s.renderWidth=this.getRenderedWidthFromWidth(a),o.push(s)),n<t-1&&!this.panel.isDefaultV2Theme&&!(null===(e=this.panel.parentQuestion)||void 0===e?void 0:e.isDefaultV2Theme)?s.rightIndent=1:s.rightIndent=0,n++}else s.renderWidth=""}for(i=0;i<this.elements.length;i++)!(s=this.elements[i]).isVisible||o.indexOf(s)>-1||(0==o.length?s.renderWidth=(100/t).toFixed(6)+"%":s.renderWidth=this.getRenderedCalcWidth(s,o,t))}},t.prototype.setElementMaxMinWidth=function(e){e.width&&"string"==typeof e.width&&-1===e.width.indexOf("%")&&(e.minWidth=e.width,e.maxWidth=e.width)},t.prototype.getRenderedCalcWidth=function(e,t,r){for(var n="100%",o=0;o<t.length;o++)n+=" - "+t[o].renderWidth;var i=r-t.length;return i>1&&(n="("+n+")/"+i.toString()),"calc("+n+")"},t.prototype.getElementWidth=function(e){var t=e.width;return t&&"string"==typeof t?t.trim():""},t.prototype.getRenderedWidthFromWidth=function(e){return i.Helpers.isNumber(e)?e+"px":e},t.prototype.calcVisible=function(){for(var e=[],t=0;t<this.elements.length;t++)this.elements[t].isVisible&&e.push(this.elements[t]);return this.needToUpdateVisibleElements(e)&&this.setPropertyValue("visibleElements",e),e.length>0},t.prototype.needToUpdateVisibleElements=function(e){if(e.length!==this.visibleElements.length)return!0;for(var t=0;t<e.length;t++)if(e[t]!==this.visibleElements[t])return!0;return!1},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.stopLazyRendering()},t.prototype.getRowCss=function(){return(new h.CssClassBuilder).append(this.panel.cssClasses.row).append(this.panel.cssClasses.rowCompact,this.panel.isCompact).append(this.panel.cssClasses.pageRow,this.panel.isPage||!!this.panel.originalPage&&!this.panel.survey.isShowingPreview).append(this.panel.cssClasses.rowMultiple,this.visibleElements.length>1).toString()},t.rowCounter=100,g([Object(o.property)({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),t}(s.Base),y=function(e){function t(r){void 0===r&&(r="");var n=e.call(this,r)||this;return n.isQuestionsReady=!1,n.questionsValue=new Array,n.isRandomizing=!1,n.createNewArray("rows"),n.elementsValue=n.createNewArray("elements",n.onAddElement.bind(n),n.onRemoveElement.bind(n)),n.id=t.getPanelId(),n.addExpressionProperty("visibleIf",(function(e,t){n.visible=!0===t}),(function(e){return!n.areInvisibleElementsShowing})),n.addExpressionProperty("enableIf",(function(e,t){n.readOnly=!1===t})),n.addExpressionProperty("requiredIf",(function(e,t){n.isRequired=!0===t})),n.createLocalizableString("requiredErrorText",n),n.registerPropertyChangedHandlers(["questionTitleLocation"],(function(){n.onVisibleChanged.bind(n),n.updateElementCss(!0)})),n.registerPropertyChangedHandlers(["questionStartIndex","showQuestionNumbers"],(function(){n.updateVisibleIndexes()})),n.dragDropPanelHelper=new f.DragDropPanelHelperV1(n),n}return m(t,e),t.getPanelId=function(){return"sp_"+t.panelCounter++},t.prototype.getType=function(){return"panelbase"},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r),this.isDesignMode&&this.onVisibleChanged();for(var n=0;n<this.elements.length;n++)this.elements[n].setSurveyImpl(t,r)},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.updateDescriptionVisibility(this.description),this.markQuestionListDirty(),this.onRowsChanged()},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.canShowTitle()&&this.title.length>0||this.showTitle&&this.isDesignMode&&p.settings.allowShowEmptyTitleInDesignMode},enumerable:!1,configurable:!0}),t.prototype.canShowTitle=function(){return!0},Object.defineProperty(t.prototype,"_showDescription",{get:function(){return this.survey&&this.survey.showPageTitles&&this.hasDescription||this.showDescription&&this.isDesignMode&&p.settings.allowShowEmptyTitleInDesignMode&&p.settings.allowShowEmptyDescriptionInDesignMode},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].localeChanged()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].locStrsChanged()},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.canRandomize=function(e){return e&&"initial"!==this.questionsOrder||"random"===this.questionsOrder},t.prototype.randomizeElements=function(e){if(this.canRandomize(e)&&!this.isRandomizing){this.isRandomizing=!0;for(var t=[],r=this.elements,n=0;n<r.length;n++)t.push(r[n]);var o=i.Helpers.randomizeArray(t);this.setArrayPropertyDirectly("elements",o,!1),this.updateRows(),this.updateVisibleIndexes(),this.isRandomizing=!1}},Object.defineProperty(t.prototype,"areQuestionsRandomized",{get:function(){return"random"==("default"==this.questionsOrder&&this.survey?this.survey.questionsOrder:this.questionsOrder)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"depth",{get:function(){return null==this.parent?0:this.parent.depth+1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={panel:{},error:{},row:"",rowMultiple:"",pageRow:"",rowCompact:""};return this.copyCssClasses(t.panel,e.panel),this.copyCssClasses(t.error,e.error),e.pageRow&&(t.pageRow=e.pageRow),e.rowCompact&&(t.rowCompact=e.rowCompact),e.row&&(t.row=e.row),e.rowMultiple&&(t.rowMultiple=e.rowMultiple),this.survey&&this.survey.updatePanelCssClasses(this,t),t},Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this},t.prototype.getLayoutType=function(){return"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},Object.defineProperty(t.prototype,"questions",{get:function(){if(!this.isQuestionsReady){this.questionsValue=[];for(var e=0;e<this.elements.length;e++){var t=this.elements[e];if(t.isPanel)for(var r=t.questions,n=0;n<r.length;n++)this.questionsValue.push(r[n]);else this.questionsValue.push(t)}this.isQuestionsReady=!0}return this.questionsValue},enumerable:!1,configurable:!0}),t.prototype.getValidName=function(e){return e?e.trim():e},t.prototype.getQuestionByName=function(e){for(var t=this.questions,r=0;r<t.length;r++)if(t[r].name==e)return t[r];return null},t.prototype.getElementByName=function(e){for(var t=this.elements,r=0;r<t.length;r++){var n=t[r];if(n.name==e)return n;var o=n.getPanel();if(o){var i=o.getElementByName(e);if(i)return i}}return null},t.prototype.getQuestionByValueName=function(e){for(var t=this.questions,r=0;r<t.length;r++)if(t[r].getValueName()==e)return t[r];return null},t.prototype.getValue=function(){var e={};return this.collectValues(e,0),e},t.prototype.collectValues=function(e,t){var r=this.elements;0===t&&(r=this.questions);for(var n=0;n<r.length;n++){var o=r[n];if(o.isPanel||o.isPage){var i={};o.collectValues(i,t-1)&&(e[o.name]=i)}else{var a=o;if(!a.isEmpty()){var l=a.getValueName();if(e[l]=a.value,this.data){var u=this.data.getComment(l);u&&(e[l+s.Base.commentSuffix]=u)}}}}return!0},t.prototype.getDisplayValue=function(e){for(var t={},r=this.questions,n=0;n<r.length;n++){var o=r[n];o.isEmpty()||(t[e?o.title:o.getValueName()]=o.getDisplayValue(e))}return t},t.prototype.getComments=function(){var e={};if(!this.data)return e;for(var t=this.questions,r=0;r<t.length;r++){var n=t[r],o=this.data.getComment(n.getValueName());o&&(e[n.getValueName()]=o)}return e},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearIncorrectValues()},t.prototype.clearErrors=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearErrors();this.errors=[]},t.prototype.markQuestionListDirty=function(){this.isQuestionsReady=!1,this.parent&&this.parent.markQuestionListDirty()},Object.defineProperty(t.prototype,"elements",{get:function(){return this.elementsValue},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),this.elements},t.prototype.containsElement=function(e){for(var t=0;t<this.elements.length;t++){var r=this.elements[t];if(r==e)return!0;var n=r.getPanel();if(n&&n.containsElement(e))return!0}return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),t.prototype.searchText=function(t,r){e.prototype.searchText.call(this,t,r);for(var n=0;n<this.elements.length;n++)this.elements[n].searchText(t,r)},t.prototype.hasErrors=function(e,t,r){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===r&&(r=null),!this.validate(e,t,r)},t.prototype.validate=function(e,t,r){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===r&&(r=null),!0!==(r=r||{fireCallback:e,focuseOnFirstError:t,firstErrorQuestion:null,result:!1}).result&&(r.result=!1),this.hasErrorsCore(r),r.firstErrorQuestion&&r.firstErrorQuestion.focus(!0),!r.result},t.prototype.hasErrorsInPanels=function(e){var t=[];if(this.hasRequiredError(e,t),this.survey){var r=this.survey.validatePanel(this);r&&(t.push(r),e.result=!0)}e.fireCallback&&(this.survey&&this.survey.beforeSettingPanelErrors(this,t),this.errors=t)},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getSurveyErrorCustomText(this,e,t):e},t.prototype.hasRequiredError=function(e,t){if(this.isRequired){var r=[];if(this.addQuestionsToList(r,!0),0!=r.length){for(var n=0;n<r.length;n++)if(!r[n].isEmpty())return;e.result=!0,t.push(new c.OneAnswerRequiredError(this.requiredErrorText,this)),e.focuseOnFirstError&&!e.firstErrorQuestion&&(e.firstErrorQuestion=r[0])}}},t.prototype.hasErrorsCore=function(e){for(var t=this.elements,r=null,n=0;n<t.length;n++)if((r=t[n]).isVisible)if(r.isPanel)r.hasErrorsCore(e);else{var o=r;if(o.isReadOnly)continue;o.validate(e.fireCallback,e)||(e.focuseOnFirstError&&null==e.firstErrorQuestion&&(e.firstErrorQuestion=o),e.result=!0)}this.hasErrorsInPanels(e),this.updateContainsErrors()},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var r=this.elements,n=0;n<r.length;n++)if(r[n].containsErrors)return!0;return!1},t.prototype.updateElementVisibility=function(){for(var e=0;e<this.elements.length;e++){var t=this.elements[e];t.setPropertyValue("isVisible",t.isVisible),t.isPanel&&t.updateElementVisibility()}},t.prototype.getFirstQuestionToFocus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),!e&&!t&&this.isCollapsed)return null;for(var r=this.elements,n=0;n<r.length;n++){var o=r[n];if(o.isVisible&&(t||!o.isCollapsed))if(o.isPanel){var i=o.getFirstQuestionToFocus(e,t);if(i)return i}else{var s=o.getFirstQuestionToFocus(e);if(s)return s}}return null},t.prototype.focusFirstQuestion=function(){var e=this.getFirstQuestionToFocus();e&&e.focus()},t.prototype.focusFirstErrorQuestion=function(){var e=this.getFirstQuestionToFocus(!0);e&&e.focus()},t.prototype.addQuestionsToList=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1),this.addElementsToList(e,t,r,!1)},t.prototype.addPanelsIntoList=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1),this.addElementsToList(e,t,r,!0)},t.prototype.addElementsToList=function(e,t,r,n){t&&!this.visible||this.addElementsToListCore(e,this.elements,t,r,n)},t.prototype.addElementsToListCore=function(e,t,r,n,o){for(var i=0;i<t.length;i++){var s=t[i];r&&!s.visible||((o&&s.isPanel||!o&&!s.isPanel)&&e.push(s),s.isPanel?s.addElementsToListCore(e,s.elements,r,n,o):n&&this.addElementsToListCore(e,s.getElementsInDesign(!1),r,n,o))}},t.prototype.updateCustomWidgets=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].updateCustomWidgets()},Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitleLocation=function(){return this.onGetQuestionTitleLocation?this.onGetQuestionTitleLocation():"default"!=this.questionTitleLocation?this.questionTitleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.getProgressInfo=function(){return a.SurveyElement.getProgressInfoByElements(this.elements,this.isRequired)},Object.defineProperty(t.prototype,"root",{get:function(){for(var e=this;e.parent;)e=e.parent;return e},enumerable:!1,configurable:!0}),t.prototype.childVisibilityChanged=function(){this.getIsPageVisible(null)!==this.getPropertyValue("isVisible",!0)&&this.onVisibleChanged()},t.prototype.createRowAndSetLazy=function(e){var t=this.createRow();return t.setIsLazyRendering(this.isLazyRenderInRow(e)),t},t.prototype.createRow=function(){return new b(this)},t.prototype.onSurveyLoad=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].onSurveyLoad();this.onElementVisibilityChanged(this)},t.prototype.onFirstRendering=function(){e.prototype.onFirstRendering.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].onFirstRendering();this.onRowsChanged()},t.prototype.updateRows=function(){if(!this.isLoadingFromJson){for(var e=0;e<this.elements.length;e++)this.elements[e].isPanel&&this.elements[e].updateRows();this.onRowsChanged()}},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},enumerable:!1,configurable:!0}),t.prototype.ensureRowsVisibility=function(){this.rows.forEach((function(e){e.ensureVisibility()}))},t.prototype.onRowsChanged=function(){this.isLoadingFromJson||this.setArrayPropertyDirectly("rows",this.buildRows())},t.prototype.onAddElement=function(e,t){var r=this;if(e.setSurveyImpl(this.surveyImpl),e.parent=this,this.markQuestionListDirty(),this.canBuildRows()){var n=p.settings.supportCreatorV2?this.getDragDropInfo():void 0;this.dragDropPanelHelper.updateRowsOnElementAdded(e,t,n,this)}if(e.isPanel){var o=e;this.survey&&this.survey.panelAdded(o,t,this,this.root)}else if(this.survey){var i=e;this.survey.questionAdded(i,t,this,this.root)}this.addElementCallback&&this.addElementCallback(e),e.registerPropertyChangedHandlers(["visible","isVisible"],(function(){r.onElementVisibilityChanged(e)}),this.id),e.registerPropertyChangedHandlers(["startWithNewLine"],(function(){r.onElementStartWithNewLineChanged(e)}),this.id),this.onElementVisibilityChanged(this)},t.prototype.onRemoveElement=function(e){e.parent=null,this.markQuestionListDirty(),e.unregisterPropertyChangedHandlers(["visible","isVisible","startWithNewLine"],this.id),this.updateRowsOnElementRemoved(e),this.isRandomizing||(e.isPanel?this.survey&&this.survey.panelRemoved(e):this.survey&&this.survey.questionRemoved(e),this.removeElementCallback&&this.removeElementCallback(e),this.onElementVisibilityChanged(this))},t.prototype.onElementVisibilityChanged=function(e){this.isLoadingFromJson||this.isRandomizing||(this.updateRowsVisibility(e),this.childVisibilityChanged(),this.parent&&this.parent.onElementVisibilityChanged(this))},t.prototype.onElementStartWithNewLineChanged=function(e){this.onRowsChanged()},t.prototype.updateRowsVisibility=function(e){for(var t=this.rows,r=0;r<t.length;r++){var n=t[r];if(n.elements.indexOf(e)>-1){n.updateVisible(),n.visible&&!n.isNeedRender&&(n.isNeedRender=!0);break}}},t.prototype.canBuildRows=function(){return!this.isLoadingFromJson&&"row"==this.getChildrenLayoutType()},t.prototype.buildRows=function(){if(!this.canBuildRows())return[];for(var e=new Array,t=0;t<this.elements.length;t++){var r=this.elements[t],n=0==t||r.startWithNewLine,o=n?this.createRowAndSetLazy(e.length):e[e.length-1];n&&e.push(o),o.addElement(r)}for(t=0;t<e.length;t++)e[t].updateVisible();return e},t.prototype.isLazyRenderInRow=function(e){return!(!this.survey||!this.survey.isLazyRendering)&&(e>=p.settings.lazyRowsRenderingStartRow||!this.canRenderFirstRows())},t.prototype.canRenderFirstRows=function(){return this.isPage},t.prototype.getDragDropInfo=function(){var e=this.getPage(this.parent);return e?e.getDragDropInfo():void 0},t.prototype.updateRowsOnElementRemoved=function(e){this.canBuildRows()&&this.updateRowsRemoveElementFromRow(e,this.findRowByElement(e))},t.prototype.updateRowsRemoveElementFromRow=function(e,t){if(t&&t.panel){var r=t.elements.indexOf(e);r<0||(t.elements.splice(r,1),t.elements.length>0?(t.elements[0].startWithNewLine=!0,t.updateVisible()):t.index>=0&&t.panel.rows.splice(t.index,1))}},t.prototype.findRowByElement=function(e){for(var t=this.rows,r=0;r<t.length;r++)if(t[r].elements.indexOf(e)>-1)return t[r];return null},t.prototype.elementWidthChanged=function(e){if(!this.isLoadingFromJson){var t=this.findRowByElement(e);t&&t.updateVisible()}},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.getRenderedTitle(this.locTitle.textOrHtml)},enumerable:!1,configurable:!0}),t.prototype.getRenderedTitle=function(e){return null!=this.textProcessor?this.textProcessor.processText(e,!0):e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!==this.visible&&(this.setPropertyValue("visible",e),this.setPropertyValue("isVisible",this.isVisible),this.isLoadingFromJson||this.onVisibleChanged())},enumerable:!1,configurable:!0}),t.prototype.onVisibleChanged=function(){if(!this.isRandomizing&&(this.setPropertyValue("isVisible",this.isVisible),this.survey&&this.survey.isClearValueOnHiddenContainer&&!this.isLoadingFromJson))for(var e=this.questions,t=0;t<e.length;t++)this.isVisible?e[t].updateValueWithDefaults():e[t].clearValueIfInvisible()},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.areInvisibleElementsShowing||this.getIsPageVisible(null)},enumerable:!1,configurable:!0}),t.prototype.getIsPageVisible=function(e){if(!this.visible)return!1;for(var t=0;t<this.elements.length;t++)if(this.elements[t]!=e&&this.elements[t].isVisible)return!0;return!1},t.prototype.setVisibleIndex=function(e){if(!this.isVisible||e<0)return this.resetVisibleIndexes(),0;this.lastVisibleIndex=e;var t=e;e+=this.beforeSetVisibleIndex(e);for(var r=this.getPanelStartIndex(e),n=r,o=0;o<this.elements.length;o++)n+=this.elements[o].setVisibleIndex(n);return this.isContinueNumbering()&&(e+=n-r),e-t},t.prototype.updateVisibleIndexes=function(){void 0!==this.lastVisibleIndex&&(this.resetVisibleIndexes(),this.setVisibleIndex(this.lastVisibleIndex))},t.prototype.resetVisibleIndexes=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].setVisibleIndex(-1)},t.prototype.beforeSetVisibleIndex=function(e){return 0},t.prototype.getPanelStartIndex=function(e){return e},t.prototype.isContinueNumbering=function(){return!0},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||t},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){for(var t=0;t<this.elements.length;t++){var r=this.elements[t];r.setPropertyValue("isReadOnly",r.isReadOnly)}e.prototype.onReadOnlyChanged.call(this)},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t);for(var r=0;r<this.elements.length;r++)this.elements[r].updateElementCss(t)},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.addElement=function(e,t){return void 0===t&&(t=-1),!!this.canAddElement(e)&&(t<0||t>=this.elements.length?this.elements.push(e):this.elements.splice(t,0,e),!0)},t.prototype.insertElementAfter=function(e,t){var r=this.elements.indexOf(t);r>=0&&this.addElement(e,r+1)},t.prototype.insertElementBefore=function(e,t){var r=this.elements.indexOf(t);r>=0&&this.addElement(e,r)},t.prototype.canAddElement=function(e){return!!e&&e.isLayoutTypeSupported(this.getChildrenLayoutType())},t.prototype.addQuestion=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addPanel=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addNewQuestion=function(e,t,r){void 0===t&&(t=null),void 0===r&&(r=-1);var n=u.QuestionFactory.Instance.createQuestion(e,t);return this.addQuestion(n,r)?n:null},t.prototype.addNewPanel=function(e){void 0===e&&(e=null);var t=this.createNewPanel(e);return this.addPanel(t)?t:null},t.prototype.indexOf=function(e){return this.elements.indexOf(e)},t.prototype.createNewPanel=function(e){var t=o.Serializer.createClass("panel");return t.name=e,t},t.prototype.removeElement=function(e){var t=this.elements.indexOf(e);if(t<0){for(var r=0;r<this.elements.length;r++)if(this.elements[r].removeElement(e))return!0;return!1}return this.elements.splice(t,1),!0},t.prototype.removeQuestion=function(e){this.removeElement(e)},t.prototype.runCondition=function(e,t){if(!this.isDesignMode&&!this.isLoadingFromJson){for(var r=this.elements.slice(),n=0;n<r.length;n++)r[n].runCondition(e,t);this.runConditionCore(e,t)}},t.prototype.onAnyValueChanged=function(e){for(var t=this.elements,r=0;r<t.length;r++)t[r].onAnyValueChanged(e)},t.prototype.checkBindings=function(e,t){for(var r=this.elements,n=0;n<r.length;n++)r[n].checkBindings(e,t)},t.prototype.dragDropAddTarget=function(e){this.dragDropPanelHelper.dragDropAddTarget(e)},t.prototype.dragDropFindRow=function(e){return this.dragDropPanelHelper.dragDropFindRow(e)},t.prototype.dragDropMoveElement=function(e,t,r){this.dragDropPanelHelper.dragDropMoveElement(e,t,r)},t.prototype.needResponsiveWidth=function(){var e=!1;return this.elements.forEach((function(t){t.needResponsiveWidth()&&(e=!0)})),this.rows.forEach((function(t){t.elements.length>1&&(e=!0)})),e},Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.cssClasses.panel.header},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.cssClasses.panel.description},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"no",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){if(e.prototype.dispose.call(this),this.rows){for(var t=0;t<this.rows.length;t++)this.rows[t].dispose();this.rows.splice(0,this.rows.length)}for(t=0;t<this.elements.length;t++)this.elements[t].dispose();this.elements.splice(0,this.elements.length)},t.panelCounter=100,g([Object(o.property)({defaultValue:!0})],t.prototype,"showTitle",void 0),g([Object(o.property)({defaultValue:!0})],t.prototype,"showDescription",void 0),t}(a.SurveyElement),v=function(e){function t(t){void 0===t&&(t="");var r=e.call(this,t)||this;return r.createNewArray("footerActions"),r.registerPropertyChangedHandlers(["width"],(function(){r.parent&&r.parent.elementWidthChanged(r)})),r.registerPropertyChangedHandlers(["indent","innerIndent","rightIndent"],(function(){r.onIndentChanged()})),r}return m(t,e),t.prototype.getType=function(){return"panel"},Object.defineProperty(t.prototype,"contentId",{get:function(){return this.id+"_content"},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(t){return void 0===t&&(t=!1),t?this.parent?this.parent.getSurvey(t):null:e.prototype.getSurvey.call(this,t)},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onIndentChanged()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.onIndentChanged()},Object.defineProperty(t.prototype,"isPanel",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.delete=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},Object.defineProperty(t.prototype,"showNumber",{get:function(){return this.getPropertyValue("showNumber")},set:function(e){this.setPropertyValue("showNumber",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionStartIndex=function(){return this.questionStartIndex?this.questionStartIndex:e.prototype.getQuestionStartIndex.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no","")},enumerable:!1,configurable:!0}),t.prototype.setNo=function(e){this.setPropertyValue("no",i.Helpers.getNumberByIndex(this.visibleIndex,this.getStartIndex()))},t.prototype.beforeSetVisibleIndex=function(e){var t=-1;return!this.showNumber||!this.isDesignMode&&this.locTitle.isEmpty||(t=e),this.setPropertyValue("visibleIndex",t),this.setNo(t),t<0?0:1},t.prototype.getPanelStartIndex=function(e){return"off"==this.showQuestionNumbers?-1:"onpanel"==this.showQuestionNumbers?0:e},t.prototype.isContinueNumbering=function(){return"off"!=this.showQuestionNumbers&&"onpanel"!=this.showQuestionNumbers},t.prototype.notifySurveyOnVisibilityChanged=function(){null==this.survey||this.isLoadingFromJson||this.survey.panelVisibilityChanged(this,this.isVisible)},t.prototype.hasErrorsCore=function(t){e.prototype.hasErrorsCore.call(this,t),this.isCollapsed&&t.result&&t.fireCallback&&this.expand()},t.prototype.getRenderedTitle=function(t){if(!t){if(this.isCollapsed||this.isExpanded)return this.name;if(this.isDesignMode)return"["+this.name+"]"}return e.prototype.getRenderedTitle.call(this,t)},Object.defineProperty(t.prototype,"innerIndent",{get:function(){return this.getPropertyValue("innerIndent")},set:function(e){this.setPropertyValue("innerIndent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"innerPaddingLeft",{get:function(){return this.getPropertyValue("innerPaddingLeft","")},set:function(e){this.setPropertyValue("innerPaddingLeft",e)},enumerable:!1,configurable:!0}),t.prototype.onIndentChanged=function(){this.getSurvey()&&(this.innerPaddingLeft=this.getIndentSize(this.innerIndent),this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent))},t.prototype.getIndentSize=function(e){if(e<1)return"";var t=this.survey.css;return t&&t.question.indent?e*t.question.indent+"px":""},t.prototype.clearOnDeletingContainer=function(){this.elements.forEach((function(e){(e instanceof l.Question||e instanceof t)&&e.clearOnDeletingContainer()}))},Object.defineProperty(t.prototype,"footerActions",{get:function(){return this.getPropertyValue("footerActions")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerToolbarCss",{get:function(){var e;return this.footerToolbarCssValue||(null===(e=this.cssClasses.panel)||void 0===e?void 0:e.footer)},set:function(e){this.footerToolbarCssValue=e},enumerable:!1,configurable:!0}),t.prototype.getFooterToolbar=function(){var e,t=this;if(!this.footerToolbarValue){var r=this.footerActions;this.hasEditButton&&r.push({id:"cancel-preview",title:this.survey.editText,innerCss:this.survey.cssNavigationEdit,action:function(){t.cancelPreview()}}),r=this.onGetFooterActionsCallback?this.onGetFooterActionsCallback():null===(e=this.survey)||void 0===e?void 0:e.getUpdatedPanelFooterActions(this,r),this.footerToolbarValue=this.createActionContainer(this.allowAdaptiveActions),this.footerToolbarValue.containerCss=this.footerToolbarCss,this.footerToolbarValue.setItems(r)}return this.footerToolbarValue},Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return!(!this.survey||"preview"!==this.survey.state)&&1===this.depth},enumerable:!1,configurable:!0}),t.prototype.cancelPreview=function(){this.hasEditButton&&this.survey.cancelPreviewByPage(this)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.getCssTitle(this.cssClasses.panel)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.getCssError(this.cssClasses)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsAbovePanel",{get:function(){return this.isDefaultV2Theme},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){var t=this.isDefaultV2Theme,r=(new h.CssClassBuilder).append(this.cssClasses.error.root).append(this.cssClasses.error.outsideQuestion,t).append(this.cssClasses.error.aboveQuestion,t);return r.append("panel-error-root",r.isEmpty()).toString()},t.prototype.onVisibleChanged=function(){e.prototype.onVisibleChanged.call(this),this.notifySurveyOnVisibilityChanged()},t.prototype.needResponsiveWidth=function(){return!this.startWithNewLine||e.prototype.needResponsiveWidth.call(this)},t.prototype.focusIn=function(){this.survey&&this.survey.whenPanelFocusIn(this)},t.prototype.getHasFrameV2=function(){return e.prototype.getHasFrameV2.call(this)&&(!this.originalPage||this.survey.isShowingPreview)},t.prototype.getIsNested=function(){return e.prototype.getIsNested.call(this)&&void 0!==this.parent},t.prototype.getCssRoot=function(t){return(new h.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(t.container).append(t.asPage,!!this.originalPage&&!this.survey.isShowingPreview).append(t.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.getContainerCss=function(){return this.getCssRoot(this.cssClasses.panel)},t}(y);o.Serializer.addClass("panelbase",["name",{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"visible:switch",default:!0},"visibleIf:condition","enableIf:condition","requiredIf:condition","readOnly:boolean",{name:"questionTitleLocation",default:"default",choices:["default","top","bottom","left","hidden"]},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"questionsOrder",default:"default",choices:["default","initial","random"]}],(function(){return new y})),o.Serializer.addClass("panel",[{name:"state",default:"default",choices:["default","collapsed","expanded"]},"isRequired:switch",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"startWithNewLine:boolean",default:!0},"width",{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"maxWidth",defaultFunc:function(){return p.settings.maxWidth}},{name:"innerIndent:number",default:0,choices:[0,1,2,3]},{name:"indent:number",default:0,choices:[0,1,2,3]},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map((function(e){return{value:e.name,text:e.title}})):[]}},"showNumber:boolean",{name:"showQuestionNumbers",default:"default",choices:["default","onpanel","off"]},"questionStartIndex",{name:"allowAdaptiveActions:boolean",default:!0,visible:!1}],(function(){return new v}),"panelbase"),u.ElementFactory.Instance.registerElement("panel",(function(e){return new v(e)}))},"./src/popup-dropdown-view-model.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"PopupDropdownViewModel",(function(){return p}));var n,o=r("./src/jsonobject.ts"),i=r("./src/utils/popup.ts"),s=r("./src/popup-view-model.ts"),a=r("./src/utils/devices.ts"),l=r("./src/settings.ts"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},p=function(e){function t(t,r){var n=e.call(this,t)||this;return n.targetElement=r,n.scrollEventCallBack=function(e){if(n.isOverlay&&a.IsTouch)return e.stopPropagation(),void e.preventDefault();n.hidePopup()},n.resizeEventCallback=function(){var e=window.visualViewport;document.documentElement.style.setProperty("--sv-popup-overlay-height",e.height*e.scale+"px")},n.resizeWindowCallback=function(){n.isOverlay||n.updatePosition(!0,!1)},n.clientY=0,n.isTablet=!1,n.touchStartEventCallback=function(e){n.clientY=e.touches[0].clientY},n.touchMoveEventCallback=function(e){for(var t=e.target;t!==n.container;){if("auto"===window.getComputedStyle(t).overflowY&&t.scrollHeight!==t.offsetHeight){var r=t.scrollHeight,o=t.scrollTop,i=t.clientHeight,s=n.clientY-e.changedTouches[0].clientY;if(!(s>0&&Math.abs(r-i-o)<1||s<0&&o<=0))return}t=t.parentElement}e.preventDefault()},n.model.onRecalculatePosition.add((function(e,t){n.isOverlay||n.updatePosition(t.isResetHeight)})),n}return u(t,e),t.prototype.calculateIsTablet=function(e,r){var n=Math.min(e,r);this.isTablet=n>=t.tabletSizeBreakpoint},t.prototype._updatePosition=function(){if(this.targetElement){var e=this.targetElement.getBoundingClientRect(),t=this.container.children[0];if(t){var r=t.children[0];if(r){var n=r.querySelector(".sv-popup__scrolling-content"),o=window.getComputedStyle(r),s=parseFloat(o.marginLeft)||0,a=parseFloat(o.marginRight)||0,l=r.offsetHeight-n.offsetHeight+n.scrollHeight,u=r.getBoundingClientRect().width;this.model.setWidthByTarget&&(this.minWidth=e.width+"px");var c=this.model.verticalPosition,p=this.getActualHorizontalPosition();window&&(l=Math.ceil(Math.min(l,.9*window.innerHeight,window.visualViewport.height)),c=i.PopupUtils.updateVerticalPosition(e,l,this.model.verticalPosition,this.model.showPointer,window.innerHeight)),this.popupDirection=i.PopupUtils.calculatePopupDirection(c,p);var d=i.PopupUtils.calculatePosition(e,l,u+s+a,c,p,this.showHeader,this.model.positionMode);if(window){var h=i.PopupUtils.updateVerticalDimensions(d.top,l,window.innerHeight);h&&(this.height=h.height+"px",d.top=h.top);var f=i.PopupUtils.updateHorizontalDimensions(d.left,u,window.innerWidth,p,this.model.positionMode,{left:s,right:a});f&&(this.width=f.width?f.width+"px":void 0,d.left=f.left)}this.left=d.left+"px",this.top=d.top+"px",this.showHeader&&(this.pointerTarget=i.PopupUtils.calculatePointerTarget(e,d.top,d.left,c,p,s,a)),this.pointerTarget.top+="px",this.pointerTarget.left+="px"}}}},t.prototype.getActualHorizontalPosition=function(){var e=this.model.horizontalPosition;return!!document&&"rtl"==document.defaultView.getComputedStyle(document.body).direction&&("left"===this.model.horizontalPosition?e="right":"right"===this.model.horizontalPosition&&(e="left")),e},t.prototype.getStyleClass=function(){return e.prototype.getStyleClass.call(this).append("sv-popup--dropdown",!this.isOverlay).append("sv-popup--tablet",this.isTablet&&this.isOverlay).append("sv-popup--show-pointer",!this.isOverlay&&this.showHeader).append("sv-popup--"+this.popupDirection,!this.isOverlay&&this.showHeader)},t.prototype.getShowHeader=function(){return this.model.showPointer&&!this.isOverlay},t.prototype.getPopupHeaderTemplate=function(){return"popup-pointer"},t.prototype.updateOnShowing=function(){var e=l.settings.environment.root;this.prevActiveElement=e.activeElement,this.isOverlay?this.resetDimensionsAndPositionStyleProperties():this.updatePosition(!0,!1),this.switchFocus(),window.addEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(window.visualViewport.addEventListener("resize",this.resizeEventCallback),this.container&&(this.container.addEventListener("touchstart",this.touchStartEventCallback),this.container.addEventListener("touchmove",this.touchMoveEventCallback)),this.calculateIsTablet(window.innerWidth,window.innerHeight),this.resizeEventCallback()),window.addEventListener("scroll",this.scrollEventCallBack)},Object.defineProperty(t.prototype,"shouldCreateResizeCallback",{get:function(){return!!window.visualViewport&&this.isOverlay&&a.IsTouch},enumerable:!1,configurable:!0}),t.prototype.updatePosition=function(e,t){var r=this;void 0===t&&(t=!0),e&&(this.height="auto"),t?setTimeout((function(){r._updatePosition()}),1):this._updatePosition()},t.prototype.updateOnHiding=function(){e.prototype.updateOnHiding.call(this),window.removeEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(window.visualViewport.removeEventListener("resize",this.resizeEventCallback),this.container&&(this.container.removeEventListener("touchstart",this.touchStartEventCallback),this.container.removeEventListener("touchmove",this.touchMoveEventCallback))),window.removeEventListener("scroll",this.scrollEventCallBack),this.isDisposed||(this.top=void 0,this.left=void 0,this.height=void 0,this.width=void 0,this.minWidth=void 0)},t.tabletSizeBreakpoint=600,c([Object(o.property)()],t.prototype,"isTablet",void 0),c([Object(o.property)({defaultValue:"left"})],t.prototype,"popupDirection",void 0),c([Object(o.property)({defaultValue:{left:"0px",top:"0px"}})],t.prototype,"pointerTarget",void 0),t}(s.PopupBaseViewModel)},"./src/popup-modal-view-model.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"PopupModalViewModel",(function(){return s}));var n,o=r("./src/popup-view-model.ts"),i=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.getStyleClass=function(){return e.prototype.getStyleClass.call(this).append("sv-popup--modal",!this.isOverlay)},t.prototype.getShowFooter=function(){return!0},t.prototype.createFooterActionBar=function(){var t=this;e.prototype.createFooterActionBar.call(this),this.footerToolbarValue.addAction({id:"apply",visibleIndex:20,title:this.applyButtonText,innerCss:"sv-popup__body-footer-item sv-popup__button sv-popup__button--apply sd-btn sd-btn--action",action:function(){t.apply()}})},Object.defineProperty(t.prototype,"applyButtonText",{get:function(){return this.getLocalizationString("modalApplyButtonText")},enumerable:!1,configurable:!0}),t.prototype.apply=function(){this.model.onApply&&!this.model.onApply()||this.hidePopup()},t.prototype.clickOutside=function(){},t.prototype.onKeyDown=function(t){"Escape"!==t.key&&27!==t.keyCode||this.model.onCancel(),e.prototype.onKeyDown.call(this,t)},t}(o.PopupBaseViewModel)},"./src/popup-survey.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"PopupSurveyModel",(function(){return l})),r.d(t,"SurveyWindowModel",(function(){return u}));var n,o=r("./src/base.ts"),i=r("./src/survey.ts"),s=r("./src/jsonobject.ts"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this)||this;return n.closeOnCompleteTimeout=0,n.surveyValue=r||n.createSurvey(t),n.surveyValue.showTitle=!1,"undefined"!=typeof document&&(n.windowElement=document.createElement("div")),n.survey.onComplete.add((function(e,t){n.onSurveyComplete()})),n.registerPropertyChangedHandlers(["isShowing"],(function(){n.showingChangedCallback&&n.showingChangedCallback()})),n.registerPropertyChangedHandlers(["isExpanded"],(function(){n.onExpandedChanged()})),n.width=new o.ComputedUpdater((function(){return n.survey.width})),n.width=n.survey.width,n.updateCss(),n.onCreating(),n}return a(t,e),t.prototype.onCreating=function(){},t.prototype.getType=function(){return"popupsurvey"},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowing",{get:function(){return this.getPropertyValue("isShowing",!1)},set:function(e){this.setPropertyValue("isShowing",e)},enumerable:!1,configurable:!0}),t.prototype.show=function(){this.isShowing=!0},t.prototype.hide=function(){this.isShowing=!1},Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.getPropertyValue("isExpanded",!1)},set:function(e){this.setPropertyValue("isExpanded",e)},enumerable:!1,configurable:!0}),t.prototype.onExpandedChanged=function(){this.expandedChangedCallback&&this.expandedChangedCallback(),this.updateCssButton()},Object.defineProperty(t.prototype,"title",{get:function(){return this.survey.title},set:function(e){this.survey.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.survey.locTitle},enumerable:!1,configurable:!0}),t.prototype.expand=function(){this.isExpanded=!0},t.prototype.collapse=function(){this.isExpanded=!1},t.prototype.changeExpandCollapse=function(){this.isExpanded=!this.isExpanded},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssButton",{get:function(){return this.getPropertyValue("cssButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.getPropertyValue("cssRoot","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssBody",{get:function(){return this.getPropertyValue("cssBody","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderRoot",{get:function(){return this.getPropertyValue("cssHeaderRoot","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderTitle",{get:function(){return this.getPropertyValue("cssHeaderTitle","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("width","60%");return e&&!isNaN(e)&&(e+="px"),e},enumerable:!1,configurable:!0}),t.prototype.updateCss=function(){if(this.css&&this.css.window){var e=this.css.window;this.setPropertyValue("cssRoot",e.root),this.setPropertyValue("cssBody",e.body);var t=e.header;t&&(this.setPropertyValue("cssHeaderRoot",t.root),this.setPropertyValue("cssHeaderTitle",t.title),this.updateCssButton())}},t.prototype.updateCssButton=function(){var e=this.css.window?this.css.window.header:null;e&&this.setCssButton(this.isExpanded?e.buttonExpanded:e.buttonCollapsed)},t.prototype.setCssButton=function(e){e&&this.setPropertyValue("cssButton",e)},t.prototype.createSurvey=function(e){return new i.SurveyModel(e)},t.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(0==this.closeOnCompleteTimeout)this.hide();else{var e=this,t=null;t="undefined"!=typeof window?window.setInterval((function(){e.hide(),"undefined"!=typeof window&&window.clearInterval(t)}),1e3*this.closeOnCompleteTimeout):0}},function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);i>3&&s&&Object.defineProperty(t,r,s)}([Object(s.property)()],t.prototype,"width",void 0),t}(o.Base),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t}(l)},"./src/popup-utils.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"createPopupModalViewModel",(function(){return s})),r.d(t,"createPopupViewModel",(function(){return a}));var n=r("./src/popup.ts"),o=r("./src/popup-dropdown-view-model.ts"),i=r("./src/popup-modal-view-model.ts");function s(e){var t=new n.PopupModel(e.componentName,e.data,"top","left",!1,!0,e.onCancel,e.onApply,e.onHide,e.onShow,e.cssClass,e.title);t.displayMode=e.displayMode||"popup";var r=new i.PopupModalViewModel(t);return r.initializePopupContainer(),r}function a(e,t){return e.isModal?new i.PopupModalViewModel(e):new o.PopupDropdownViewModel(e,t)}},"./src/popup-view-model.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"FOCUS_INPUT_SELECTOR",(function(){return d})),r.d(t,"PopupBaseViewModel",(function(){return h}));var n,o=r("./src/base.ts"),i=r("./src/jsonobject.ts"),s=r("./src/utils/cssClassBuilder.ts"),a=r("./src/actions/container.ts"),l=r("./src/settings.ts"),u=r("./src/utils/utils.ts"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},d='input:not(:disabled):not([readonly]):not([type=hidden]),select:not(:disabled):not([readonly]),textarea:not(:disabled):not([readonly]), button:not(:disabled):not([readonly]), [tabindex]:not([tabindex^="-"])',h=function(e){function t(t){var r=e.call(this)||this;return r.model=t,r}return c(t,e),t.prototype.getLocale=function(){return this.locale?this.locale:e.prototype.getLocale.call(this)},t.prototype.hidePopup=function(){this.model.isVisible=!1},t.prototype.getStyleClass=function(){return(new s.CssClassBuilder).append(this.model.cssClass).append("sv-popup--"+this.model.displayMode,this.isOverlay)},t.prototype.getShowFooter=function(){return this.isOverlay},t.prototype.getShowHeader=function(){return!1},t.prototype.getPopupHeaderTemplate=function(){},t.prototype.createFooterActionBar=function(){var e=this;this.footerToolbarValue=new a.ActionContainer,this.footerToolbar.updateCallback=function(t){e.footerToolbarValue.actions.forEach((function(e){return e.cssClasses={item:"sv-popup__body-footer-item sv-popup__button sd-btn"}}))};var t=[{id:"cancel",visibleIndex:10,title:this.cancelButtonText,innerCss:"sv-popup__button--cancel sd-btn",action:function(){e.cancel()}}];t=this.model.updateFooterActions(t),this.footerToolbarValue.setItems(t)},t.prototype.resetDimensionsAndPositionStyleProperties=function(){var e="inherit";this.top=e,this.left=e,this.height=e,this.width=e,this.minWidth=e},t.prototype.setupModel=function(e){var t=this;this.model&&this.model.unregisterPropertyChangedHandlers(["isVisible"],"PopupBaseViewModel"),this._model=e;var r=function(){e.isVisible||t.updateOnHiding(),t.isVisible=e.isVisible};e.registerPropertyChangedHandlers(["isVisible"],r,"PopupBaseViewModel"),r()},Object.defineProperty(t.prototype,"model",{get:function(){return this._model},set:function(e){this.setupModel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.model.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentName",{get:function(){return this.model.contentComponentName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentData",{get:function(){return this.model.contentComponentData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isModal",{get:function(){return this.model.isModal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusedContent",{get:function(){return this.model.isFocusedContent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.getShowFooter()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getShowHeader()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupHeaderTemplate",{get:function(){return this.getPopupHeaderTemplate()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOverlay",{get:function(){return"overlay"===this.model.displayMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"styleClass",{get:function(){return this.getStyleClass().toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cancelButtonText",{get:function(){return this.getLocalizationString("modalCancelButtonText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.createFooterActionBar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.onKeyDown=function(e){"Tab"===e.key||9===e.keyCode?this.trapFocus(e):"Escape"!==e.key&&27!==e.keyCode||this.hidePopup()},t.prototype.trapFocus=function(e){var t=this.container.querySelectorAll(d),r=t[0],n=t[t.length-1];e.shiftKey?l.settings.environment.root.activeElement===r&&(n.focus(),e.preventDefault()):l.settings.environment.root.activeElement===n&&(r.focus(),e.preventDefault())},t.prototype.switchFocus=function(){this.isFocusedContent&&this.focusFirstInput()},t.prototype.updateOnShowing=function(){this.prevActiveElement=l.settings.environment.root.activeElement,this.isOverlay&&this.resetDimensionsAndPositionStyleProperties(),this.switchFocus()},t.prototype.updateOnHiding=function(){this.isFocusedContent&&this.prevActiveElement&&this.prevActiveElement.focus()},t.prototype.focusFirstInput=function(){var e=this;setTimeout((function(){if(e.container){var t=e.container.querySelector(e.model.focusFirstInputSelector||d);t?t.focus():e.container.children[0].focus()}}),100)},t.prototype.clickOutside=function(){this.hidePopup()},t.prototype.cancel=function(){this.model.onCancel(),this.hidePopup()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.unmountPopupContainer(),this.container=void 0,this.footerToolbarValue&&this.footerToolbarValue.dispose()},t.prototype.initializePopupContainer=function(){if(!this.createdContainer){var e=document.createElement("div");this.container=this.createdContainer=e}Object(u.getElement)(l.settings.environment.popupMountContainer).appendChild(this.container)},t.prototype.unmountPopupContainer=function(){this.createdContainer.remove()},p([Object(i.property)({defaultValue:"0px"})],t.prototype,"top",void 0),p([Object(i.property)({defaultValue:"0px"})],t.prototype,"left",void 0),p([Object(i.property)({defaultValue:"auto"})],t.prototype,"height",void 0),p([Object(i.property)({defaultValue:"auto"})],t.prototype,"width",void 0),p([Object(i.property)({defaultValue:"auto"})],t.prototype,"minWidth",void 0),p([Object(i.property)({defaultValue:!1})],t.prototype,"isVisible",void 0),p([Object(i.property)()],t.prototype,"locale",void 0),t}(o.Base)},"./src/popup.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"PopupModel",(function(){return l})),r.d(t,"createDialogOptions",(function(){return u}));var n,o=r("./src/base.ts"),i=r("./src/jsonobject.ts"),s=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},l=function(e){function t(t,r,n,o,i,s,a,l,u,c,p,d){void 0===n&&(n="bottom"),void 0===o&&(o="left"),void 0===i&&(i=!0),void 0===s&&(s=!1),void 0===a&&(a=function(){}),void 0===l&&(l=function(){return!0}),void 0===u&&(u=function(){}),void 0===c&&(c=function(){}),void 0===p&&(p=""),void 0===d&&(d="");var h=e.call(this)||this;return h.focusFirstInputSelector="",h.onVisibilityChanged=h.addEvent(),h.onFooterActionsCreated=h.addEvent(),h.onRecalculatePosition=h.addEvent(),h.contentComponentName=t,h.contentComponentData=r,h.verticalPosition=n,h.horizontalPosition=o,h.showPointer=i,h.isModal=s,h.onCancel=a,h.onApply=l,h.onHide=u,h.onShow=c,h.cssClass=p,h.title=d,h}return s(t,e),t.prototype.refreshInnerModel=function(){var e=this.contentComponentData.model;e&&e.refresh&&e.refresh()},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!1)},set:function(e){this.isVisible!==e&&(this.setPropertyValue("isVisible",e),this.onVisibilityChanged.fire(this,{model:this,isVisible:e}),this.refreshInnerModel(),this.isVisible?this.onShow():this.onHide())},enumerable:!1,configurable:!0}),t.prototype.toggleVisibility=function(){this.isVisible=!this.isVisible},t.prototype.recalculatePosition=function(e){this.onRecalculatePosition.fire(this,{isResetHeight:e})},t.prototype.updateFooterActions=function(e){var t={actions:e};return this.onFooterActionsCreated.fire(this,t),t.actions},a([Object(i.property)()],t.prototype,"contentComponentName",void 0),a([Object(i.property)()],t.prototype,"contentComponentData",void 0),a([Object(i.property)({defaultValue:"bottom"})],t.prototype,"verticalPosition",void 0),a([Object(i.property)({defaultValue:"left"})],t.prototype,"horizontalPosition",void 0),a([Object(i.property)({defaultValue:!1})],t.prototype,"showPointer",void 0),a([Object(i.property)({defaultValue:!1})],t.prototype,"isModal",void 0),a([Object(i.property)({defaultValue:!0})],t.prototype,"isFocusedContent",void 0),a([Object(i.property)({defaultValue:function(){}})],t.prototype,"onCancel",void 0),a([Object(i.property)({defaultValue:function(){return!0}})],t.prototype,"onApply",void 0),a([Object(i.property)({defaultValue:function(){}})],t.prototype,"onHide",void 0),a([Object(i.property)({defaultValue:function(){}})],t.prototype,"onShow",void 0),a([Object(i.property)({defaultValue:""})],t.prototype,"cssClass",void 0),a([Object(i.property)({defaultValue:""})],t.prototype,"title",void 0),a([Object(i.property)({defaultValue:"popup"})],t.prototype,"displayMode",void 0),a([Object(i.property)({defaultValue:"flex"})],t.prototype,"positionMode",void 0),t}(o.Base);function u(e,t,r,n,o,i,s,a,l){return void 0===o&&(o=function(){}),void 0===i&&(i=function(){}),void 0===l&&(l="popup"),{componentName:e,data:t,onApply:r,onCancel:n,onHide:o,onShow:i,cssClass:s,title:a,displayMode:l}}},"./src/question.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"Question",(function(){return y}));var n,o=r("./src/helpers.ts"),i=r("./src/jsonobject.ts"),s=r("./src/survey-element.ts"),a=r("./src/error.ts"),l=r("./src/validator.ts"),u=r("./src/localizablestring.ts"),c=r("./src/conditions.ts"),p=r("./src/questionCustomWidgets.ts"),d=r("./src/settings.ts"),h=r("./src/rendererFactory.ts"),f=r("./src/utils/cssClassBuilder.ts"),m=r("./src/utils/utils.ts"),g=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),b=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},y=function(e){function t(r){var n=e.call(this,r)||this;return n.customWidgetData={isNeedRender:!0},n.isReadyValue=!0,n.onReadyChanged=n.addEvent(),n.isRunningValidatorsValue=!1,n.isValueChangedInSurvey=!1,n.allowNotifyValueChanged=!0,n.id=t.getQuestionId(),n.onCreating(),n.createNewArray("validators",(function(e){e.errorOwner=n})),n.addExpressionProperty("visibleIf",(function(e,t){n.visible=!0===t}),(function(e){return!n.areInvisibleElementsShowing})),n.addExpressionProperty("enableIf",(function(e,t){n.readOnly=!1===t})),n.addExpressionProperty("requiredIf",(function(e,t){n.isRequired=!0===t})),n.createLocalizableString("commentText",n,!0,"otherItemText"),n.locTitle.onGetDefaultTextCallback=function(){return n.name},n.locTitle.storeDefaultText=!0,n.createLocalizableString("requiredErrorText",n),n.registerPropertyChangedHandlers(["width"],(function(){n.updateQuestionCss(),n.parent&&n.parent.elementWidthChanged(n)})),n.registerPropertyChangedHandlers(["isRequired"],(function(){!n.isRequired&&n.errors.length>0&&n.validate(),n.locTitle.strChanged(),n.clearCssClasses()})),n.registerPropertyChangedHandlers(["indent","rightIndent"],(function(){n.onIndentChanged()})),n.registerPropertyChangedHandlers(["showCommentArea","showOtherItem"],(function(){n.initCommentFromSurvey()})),n.registerFunctionOnPropertiesValueChanged(["no","readOnly"],(function(){n.updateQuestionCss()})),n.registerPropertyChangedHandlers(["isMobile"],(function(){n.onMobileChanged()})),n}return g(t,e),t.getQuestionId=function(){return"sq_"+t.questionCounter++},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&"div"===d.settings.readOnlyCommentRenderMode},t.prototype.setIsMobile=function(e){},t.prototype.createLocTitleProperty=function(){var t=this,r=e.prototype.createLocTitleProperty.call(this);return r.onGetTextCallback=function(e){return e||(e=t.name),t.survey?t.survey.getUpdatedQuestionTitle(t,e):e},this.locProcessedTitle=new u.LocalizableString(this,!0),this.locProcessedTitle.sharedData=r,r},t.prototype.getSurvey=function(t){return void 0===t&&(t=!1),t?this.parent?this.parent.getSurvey(t):null:this.onGetSurvey?this.onGetSurvey():e.prototype.getSurvey.call(this)},t.prototype.getValueName=function(){return this.valueName?this.valueName.toString():this.name},Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){var t=this.getValueName();this.setPropertyValue("valueName",e),this.onValueNameChanged(t)},enumerable:!1,configurable:!0}),t.prototype.onValueNameChanged=function(e){this.survey&&(this.survey.questionRenamed(this,this.name,e||this.name),this.initDataFromSurvey())},t.prototype.onNameChanged=function(e){this.locTitle.strChanged(),this.survey&&this.survey.questionRenamed(this,e,this.valueName?this.valueName:e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaInvalid",{get:function(){return this.errors.length>0?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabelledBy",{get:function(){return this.hasTitle?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescribedBy",{get:function(){return this.errors.length>0?this.id+"_errors":null},enumerable:!1,configurable:!0}),t.prototype.choicesLoaded=function(){},Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return null},t.prototype.delete=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},Object.defineProperty(t.prototype,"isFlowLayout",{get:function(){return"flow"===this.getLayoutType()},enumerable:!1,configurable:!0}),t.prototype.getLayoutType=function(){return this.parent?this.parent.getChildrenLayoutType():"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!=this.visible&&(this.setPropertyValue("visible",e),this.onVisibleChanged(),this.notifySurveyVisibilityChanged())},enumerable:!1,configurable:!0}),t.prototype.onVisibleChanged=function(){this.setPropertyValue("isVisible",this.isVisible),!this.isVisible&&this.errors&&this.errors.length>0&&(this.errors=[])},Object.defineProperty(t.prototype,"useDisplayValuesInDynamicTexts",{get:function(){return this.getPropertyValue("useDisplayValuesInDynamicTexts")},set:function(e){this.setPropertyValue("useDisplayValuesInDynamicTexts",e)},enumerable:!1,configurable:!0}),t.prototype.getUseDisplayValuesInDynamicTexts=function(){return this.useDisplayValuesInDynamicTexts},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!(this.survey&&this.survey.areEmptyElementsHidden&&this.isEmpty())&&(!!this.areInvisibleElementsShowing||this.isVisibleCore())},enumerable:!1,configurable:!0}),t.prototype.isVisibleCore=function(){return this.visible},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideNumber",{get:function(){return this.getPropertyValue("hideNumber")},set:function(e){this.setPropertyValue("hideNumber",e),this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"question"},Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},t.prototype.getProgressInfo=function(){return this.hasInput?{questionCount:1,answeredQuestionCount:this.isEmpty()?0:1,requiredQuestionCount:this.isRequired?1:0,requiredAnsweredQuestionCount:!this.isEmpty()&&this.isRequired?1:0}:e.prototype.getProgressInfo.call(this)},t.prototype.runConditions=function(){this.data&&!this.isLoadingFromJson&&(this.isDesignMode||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.locStrsChanged())},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t),this.survey&&(this.survey.questionCreated(this),!0!==r&&this.runConditions())},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.parent!==e&&(this.delete(),this.setPropertyValue("parent",e),this.updateQuestionCss(),this.onParentChanged())},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return"hidden"!==this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleLocation",{get:function(){return this.getPropertyValue("titleLocation")},set:function(e){var t="hidden"==this.titleLocation||"hidden"==e;this.setPropertyValue("titleLocation",e.toLowerCase()),this.updateQuestionCss(),t&&this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},t.prototype.getIsTitleRenderedAsString=function(){return"hidden"===this.titleLocation},t.prototype.notifySurveyVisibilityChanged=function(){this.survey&&!this.isLoadingFromJson&&(this.survey.questionVisibilityChanged(this,this.isVisible),this.isClearValueOnHidden&&(this.visible||this.clearValueIfInvisible(),this.isVisible&&this.updateValueWithDefaults()))},t.prototype.getTitleLocation=function(){if(this.isFlowLayout)return"hidden";var e=this.getTitleLocationCore();return"left"!==e||this.isAllowTitleLeft||(e="top"),e},t.prototype.getTitleLocationCore=function(){return"default"!==this.titleLocation?this.titleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},Object.defineProperty(t.prototype,"hasTitleOnLeft",{get:function(){return this.hasTitle&&"left"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnTop",{get:function(){return this.hasTitle&&"top"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnBottom",{get:function(){return this.hasTitle&&"bottom"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(!this.hasTitle)return!1;var e=this.getTitleLocation();return"left"===e||"top"===e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errorLocation",{get:function(){return this.survey?this.survey.questionErrorLocation:"top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasInput",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return this.hasInput},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputId",{get:function(){return this.id+"i"},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){return this.name},t.prototype.getDefaultTitleTagName=function(){return d.settings.titleTags.question},Object.defineProperty(t.prototype,"descriptionLocation",{get:function(){return this.getPropertyValue("descriptionLocation")},set:function(e){this.setPropertyValue("descriptionLocation",e),this.updateQuestionCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return"underTitle"==this.getDescriptionLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderInput",{get:function(){return"underInput"==this.getDescriptionLocation()},enumerable:!1,configurable:!0}),t.prototype.getDescriptionLocation=function(){return"default"!==this.descriptionLocation?this.descriptionLocation:this.survey?this.survey.questionDescriptionLocation:"underTitle"},t.prototype.needClickTitleFunction=function(){return e.prototype.needClickTitleFunction.call(this)||this.hasInput},t.prototype.processTitleClick=function(){var t=this;if(e.prototype.processTitleClick.call(this),!this.isCollapsed)return setTimeout((function(){t.focus()}),1),!0},Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentText",{get:function(){return this.getLocalizableStringText("commentText")},set:function(e){this.setLocalizableStringText("commentText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCommentText",{get:function(){return this.getLocalizableString("commentText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPlaceHolder",{get:function(){return this.commentPlaceholder},set:function(e){this.commentPlaceholder=e},enumerable:!1,configurable:!0}),t.prototype.getAllErrors=function(){return this.errors.slice()},t.prototype.getErrorByType=function(e){for(var t=0;t<this.errors.length;t++)if(this.errors[t].getErrorType()===e)return this.errors[t];return null},Object.defineProperty(t.prototype,"customWidget",{get:function(){return this.isCustomWidgetRequested||this.customWidgetValue||(this.isCustomWidgetRequested=!0,this.updateCustomWidget()),this.customWidgetValue},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidget=function(){this.customWidgetValue=p.CustomWidgetCollection.Instance.getCustomWidget(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.localeChangedCallback&&this.localeChangedCallback()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.updateCommentElements=function(){if(this.autoGrowComment&&Array.isArray(this.commentElements))for(var e=0;e<this.commentElements.length;e++){var t=this.commentElements[e];t&&Object(m.increaseHeightByContent)(t)}},t.prototype.onCommentInput=function(e){this.isInputTextUpdate?e.target&&(this.comment=e.target.value):this.updateCommentElements()},t.prototype.onCommentChange=function(e){this.comment=e.target.value,this.comment!==e.target.value&&(e.target.value=this.comment)},t.prototype.afterRenderQuestionElement=function(e){this.survey&&this.hasSingleInput&&this.survey.afterRenderQuestionInput(this,e)},t.prototype.afterRender=function(e){var t=this;this.survey&&(this.survey.afterRenderQuestion(this,e),this.afterRenderQuestionCallback&&this.afterRenderQuestionCallback(this,e),(this.supportComment()||this.supportOther())&&(this.commentElements=[],this.getCommentElementsId().forEach((function(e){var r=d.settings.environment.root.getElementById(e);r&&t.commentElements.push(r)})),this.updateCommentElements()),this.checkForResponsiveness(e))},t.prototype.getCommentElementsId=function(){return[this.commentId]},t.prototype.beforeDestroyQuestionElement=function(e){this.commentElements=void 0},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locProcessedTitle.textOrHtml||this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern&&""!==this.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern&&""!==this.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.startWithNewLine!=e&&this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={error:{}};return this.copyCssClasses(t,e.question),this.copyCssClasses(t.error,e.error),this.updateCssClasses(t,e),this.survey&&this.survey.updateQuestionCssClasses(this,t),this.onUpdateCssClassesCallback&&this.onUpdateCssClassesCallback(t),t},Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssRoot","")},enumerable:!1,configurable:!0}),t.prototype.setCssRoot=function(e){this.setPropertyValue("cssRoot",e)},t.prototype.getCssRoot=function(t){return(new f.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(this.isFlowLayout&&!this.isDesignMode?t.flowRoot:t.mainRoot).append(t.titleLeftRoot,!this.isFlowLayout&&this.hasTitleOnLeft).append(t.hasError,this.errors.length>0).append(t.small,!this.width).append(t.answered,this.isAnswered).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssHeader","")},enumerable:!1,configurable:!0}),t.prototype.setCssHeader=function(e){this.setPropertyValue("cssHeader",e)},t.prototype.getCssHeader=function(e){return(new f.CssClassBuilder).append(e.header).append(e.headerTop,this.hasTitleOnTop).append(e.headerLeft,this.hasTitleOnLeft).append(e.headerBottom,this.hasTitleOnBottom).toString()},Object.defineProperty(t.prototype,"cssContent",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssContent","")},enumerable:!1,configurable:!0}),t.prototype.setCssContent=function(e){this.setPropertyValue("cssContent",e)},t.prototype.getCssContent=function(e){return(new f.CssClassBuilder).append(e.content).append(e.contentLeft,this.hasTitleOnLeft).toString()},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssTitle","")},enumerable:!1,configurable:!0}),t.prototype.setCssTitle=function(e){this.setPropertyValue("cssTitle",e)},t.prototype.getCssTitle=function(t){return(new f.CssClassBuilder).append(e.prototype.getCssTitle.call(this,t)).append(t.titleOnAnswer,!this.containsErrors&&this.isAnswered).toString()},Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssDescription","")},enumerable:!1,configurable:!0}),t.prototype.setCssDescription=function(e){this.setPropertyValue("cssDescription",e)},t.prototype.getCssDescription=function(e){return(new f.CssClassBuilder).append(e.description,this.hasDescriptionUnderTitle).append(e.descriptionUnderInput,this.hasDescriptionUnderInput).toString()},t.prototype.getIsErrorsModeTooltip=function(){return e.prototype.getIsErrorsModeTooltip.call(this)&&!this.customWidget},t.prototype.showErrorOnCore=function(e){return!this.isErrorsModeTooltip&&!this.showErrorsAboveQuestion&&!this.showErrorsBelowQuestion&&this.errorLocation===e},Object.defineProperty(t.prototype,"showErrorOnTop",{get:function(){return this.showErrorOnCore("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorOnBottom",{get:function(){return this.showErrorOnCore("bottom")},enumerable:!1,configurable:!0}),t.prototype.getIsTooltipErrorSupportedByParent=function(){return this.parentQuestion?this.parentQuestion.getIsTooltipErrorInsideSupported():e.prototype.getIsTooltipErrorSupportedByParent.call(this)},Object.defineProperty(t.prototype,"showErrorsOutsideQuestion",{get:function(){return this.isDefaultV2Theme&&!(this.hasParent&&this.getIsTooltipErrorSupportedByParent())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsAboveQuestion",{get:function(){return this.showErrorsOutsideQuestion&&"top"===this.errorLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsBelowQuestion",{get:function(){return this.showErrorsOutsideQuestion&&"bottom"===this.errorLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssError","")},enumerable:!1,configurable:!0}),t.prototype.setCssError=function(e){this.setPropertyValue("cssError",e)},t.prototype.getCssError=function(e){return(new f.CssClassBuilder).append(e.error.root).append(e.error.outsideQuestion,this.showErrorsBelowQuestion||this.showErrorsAboveQuestion).append(e.error.belowQuestion,this.showErrorsBelowQuestion).append(e.error.aboveQuestion,this.showErrorsAboveQuestion).append(e.error.tooltip,this.isErrorsModeTooltip).append(e.error.locationTop,this.showErrorOnTop).append(e.error.locationBottom,this.showErrorOnBottom).toString()},t.prototype.getRootCss=function(){return(new f.CssClassBuilder).append(this.cssRoot).append(this.cssClasses.disabled,this.isReadOnly).append(this.cssClasses.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t),t&&this.updateQuestionCss(!0),this.onIndentChanged()},t.prototype.updateQuestionCss=function(e){this.isLoadingFromJson||!this.survey||!0!==e&&!this.cssClassesValue||this.updateElementCssCore(this.cssClasses)},t.prototype.ensureElementCss=function(){this.cssClassesValue||this.updateQuestionCss(!0)},t.prototype.updateElementCssCore=function(e){this.setCssRoot(this.getCssRoot(e)),this.setCssHeader(this.getCssHeader(e)),this.setCssContent(this.getCssContent(e)),this.setCssTitle(this.getCssTitle(e)),this.setCssDescription(this.getCssDescription(e)),this.setCssError(this.getCssError(e))},t.prototype.updateCssClasses=function(e,t){if(t.question){var r=t[this.getCssType()],n=(new f.CssClassBuilder).append(e.title).append(t.question.titleRequired,this.isRequired);e.title=n.toString();var o=(new f.CssClassBuilder).append(e.root).append(r,this.isRequired&&!!t.question.required);if(null==r)e.root=o.toString();else if("string"==typeof r||r instanceof String)e.root=o.append(r.toString()).toString();else for(var i in e.root=o.toString(),r)e[i]=r[i]}},t.prototype.getCssType=function(){return this.getType()},Object.defineProperty(t.prototype,"renderCssRoot",{get:function(){return this.cssClasses.root||void 0},enumerable:!1,configurable:!0}),t.prototype.onIndentChanged=function(){this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent)},t.prototype.getIndentSize=function(e){return e<1||!this.getSurvey()||!this.cssClasses||!this.cssClasses.indent?"":e*this.cssClasses.indent+"px"},t.prototype.focus=function(e){if(void 0===e&&(e=!1),!this.isDesignMode){this.survey&&(this.expandAllParents(this),this.survey.scrollElementToTop(this,this,null,this.id));var t=e?this.getFirstErrorInputElementId():this.getFirstInputElementId();s.SurveyElement.FocusElement(t)&&this.fireCallback(this.focusCallback)}},t.prototype.expandAllParents=function(e){e&&(e.isCollapsed&&e.expand(),this.expandAllParents(e.parent),this.expandAllParents(e.parentQuestion))},t.prototype.focusIn=function(){this.survey&&this.survey.whenQuestionFocusIn(this)},t.prototype.fireCallback=function(e){e&&e()},t.prototype.getOthersMaxLength=function(){return this.survey&&this.survey.maxOthersLength>0?this.survey.maxOthersLength:null},t.prototype.onCreating=function(){},t.prototype.getFirstQuestionToFocus=function(e){return this.hasInput&&(!e||this.currentErrorCount>0)?this:null},t.prototype.getFirstInputElementId=function(){return this.inputId},t.prototype.getFirstErrorInputElementId=function(){return this.getFirstInputElementId()},t.prototype.getProcessedTextValue=function(e){var r=e.name.toLocaleLowerCase();e.isExists=-1!==Object.keys(t.TextPreprocessorValuesMap).indexOf(r)||void 0!==this[e.name],e.value=this[t.TextPreprocessorValuesMap[r]||e.name]},t.prototype.supportComment=function(){var e=this.getPropertyByName("showCommentArea");return!e||e.visible},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCommentArea",{get:function(){return this.getPropertyValue("showCommentArea",!1)},set:function(e){this.supportComment()&&this.setPropertyValue("showCommentArea",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasComment",{get:function(){return this.showCommentArea},set:function(e){this.showCommentArea=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){return this.id+"_ariaTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentId",{get:function(){return this.id+"_comment"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"textbox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showOtherItem",{get:function(){return this.getPropertyValue("showOtherItem",!1)},set:function(e){this.supportOther()&&this.showOtherItem!=e&&(this.setPropertyValue("showOtherItem",e),this.hasOtherChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.showOtherItem},set:function(e){this.showOtherItem=e},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){},Object.defineProperty(t.prototype,"requireUpdateCommentValue",{get:function(){return this.hasComment||this.hasOther},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.parentQuestion&&this.parentQuestion.isReadOnly,r=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||r||t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInputReadOnly",{get:function(){if(void 0!==this.forceIsInputReadOnly)return this.forceIsInputReadOnly;var e=d.settings.supportCreatorV2&&this.isDesignMode;return this.isReadOnly||e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputReadOnly",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputDisabled",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.setPropertyValue("isInputReadOnly",this.isInputReadOnly),e.prototype.onReadOnlyChanged.call(this)},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){},t.prototype.runCondition=function(e,t){this.isDesignMode||(t||(t={}),t.question=this,this.runConditionCore(e,t),this.isValueChangedDirectly||(this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.runDefaultValueExpression(this.defaultValueRunner,e,t)))},Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no")},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){if(!this.hasTitle||this.hideNumber)return"";var e=o.Helpers.getNumberByIndex(this.visibleIndex,this.getStartIndex());return this.survey&&(e=this.survey.getUpdatedQuestionNo(this,e)),e},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.onSurveyLoad=function(){this.isCustomWidgetRequested=!1,this.fireCallback(this.surveyLoadCallback),this.updateValueWithDefaults(),this.isEmpty()&&this.initDataFromSurvey(),this.onIndentChanged()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.survey&&(this.initDataFromSurvey(),this.onSurveyValueChanged(this.value),this.updateValueWithDefaults(),this.onIndentChanged(),this.updateQuestionCss(),this.updateIsAnswered())},t.prototype.initDataFromSurvey=function(){if(this.data){var e=this.data.getValue(this.getValueName());o.Helpers.isValueEmpty(e)&&this.isLoadingFromJson||this.updateValueFromSurvey(e),this.initCommentFromSurvey()}},t.prototype.initCommentFromSurvey=function(){this.data&&this.requireUpdateCommentValue?this.updateCommentFromSurvey(this.data.getComment(this.getValueName())):this.updateCommentFromSurvey("")},t.prototype.runExpression=function(e){if(this.survey&&e)return this.survey.runExpression(e)},Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.survey&&this.survey.autoGrowComment},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeComment",{get:function(){return this.survey&&this.survey.allowResizeComment},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionValue",{get:function(){return this.getPropertyValue("value")},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionComment",{get:function(){return this.getPropertyValue("comment")},set:function(e){this.setPropertyValue("comment",e),this.fireCallback(this.commentChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValueCore()},set:function(e){this.setNewValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueForSurvey",{get:function(){return this.valueToDataCallback?this.valueToDataCallback(this.value):this.value},enumerable:!1,configurable:!0}),t.prototype.clearValue=function(){void 0!==this.value&&(this.value=void 0),this.comment&&(this.comment=void 0)},t.prototype.unbindValue=function(){this.clearValue()},t.prototype.createValueCopy=function(){return this.getUnbindValue(this.value)},t.prototype.getUnbindValue=function(e){return this.isValueSurveyElement(e)?e:o.Helpers.getUnbindValue(e)},t.prototype.isValueSurveyElement=function(e){return!!e&&(Array.isArray(e)?e.length>0&&this.isValueSurveyElement(e[0]):!!e.getType&&!!e.onPropertyChanged)},t.prototype.canClearValueAsInvisible=function(){return!(this.isVisible&&this.isParentVisible||this.page&&this.page.isStartPage||this.survey&&this.valueName&&this.survey.hasVisibleQuestionByValueName(this.valueName))},Object.defineProperty(t.prototype,"isParentVisible",{get:function(){for(var e=this.parent;e;){if(!e.isVisible)return!1;e=e.parent}return!0},enumerable:!1,configurable:!0}),t.prototype.clearValueIfInvisible=function(e){void 0===e&&(e="onHidden"),"none"!==this.clearIfInvisible&&("onHidden"===e&&"onComplete"===this.clearIfInvisible||("none"!==e||"default"!==this.clearIfInvisible&&"none"!==this.clearIfInvisible)&&this.clearValueIfInvisibleCore())},t.prototype.clearValueIfInvisibleCore=function(){this.canClearValueAsInvisible()&&this.clearValue()},Object.defineProperty(t.prototype,"clearIfInvisible",{get:function(){return this.getPropertyValue("clearIfInvisible")},set:function(e){this.setPropertyValue("clearIfInvisible",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.isLoadingFromJson?"":this.getDisplayValue(!0)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValue=function(e,t){void 0===t&&(t=void 0);var r=this.calcDisplayValue(e,t);return this.survey&&(r=this.survey.getQuestionDisplayValue(this,r)),this.displayValueCallback?this.displayValueCallback(r):r},t.prototype.calcDisplayValue=function(e,t){if(void 0===t&&(t=void 0),this.customWidget){var r=this.customWidget.getDisplayValue(this,t);if(r)return r}return t=null==t?this.createValueCopy():t,this.isValueEmpty(t)?this.getDisplayValueEmpty():this.getDisplayValueCore(e,t)},t.prototype.getDisplayValueCore=function(e,t){return t},t.prototype.getDisplayValueEmpty=function(){return""},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){this.isValueExpression(e)?this.defaultValueExpression=e.substring(1):(this.setPropertyValue("defaultValue",this.convertDefaultValue(e)),this.updateValueWithDefaults())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.getPropertyValue("defaultValueExpression")},set:function(e){this.setPropertyValue("defaultValueExpression",e),this.defaultValueRunner=void 0,this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.allowResizeComment?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(e){var t=this;if(e||(e={includeEmpty:!0,includeQuestionTypes:!1}),e.includeEmpty||!this.isEmpty()){var r={name:this.name,title:this.locTitle.renderedHtml,value:this.value,displayValue:this.displayValue,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}};return!0===e.includeQuestionTypes&&(r.questionType=this.getType()),(e.calculations||[]).forEach((function(e){r[e.propertyName]=t[e.propertyName]})),this.hasComment&&(r.isNode=!0,r.data=[{name:0,isComment:!0,title:"Comment",value:d.settings.commentSuffix,displayValue:this.comment,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}]),r}},Object.defineProperty(t.prototype,"correctAnswer",{get:function(){return this.getPropertyValue("correctAnswer")},set:function(e){this.setPropertyValue("correctAnswer",this.convertDefaultValue(e))},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"quizQuestionCount",{get:function(){return this.isVisible&&this.hasInput&&!this.isValueEmpty(this.correctAnswer)?this.getQuizQuestionCount():0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"correctAnswerCount",{get:function(){return this.isEmpty()||this.isValueEmpty(this.correctAnswer)?0:this.getCorrectAnswerCount()},enumerable:!1,configurable:!0}),t.prototype.getQuizQuestionCount=function(){return 1},t.prototype.getCorrectAnswerCount=function(){return this.checkIfAnswerCorrect()?1:0},t.prototype.checkIfAnswerCorrect=function(){var e=this.isTwoValueEquals(this.value,this.correctAnswer,!d.settings.comparator.caseSensitive,!0),t={result:e,correctAnswer:e?1:0};return this.survey&&this.survey.onCorrectQuestionAnswer(this,t),t.result},t.prototype.isAnswerCorrect=function(){return this.correctAnswerCount==this.quizQuestionCount},t.prototype.updateValueWithDefaults=function(){this.isLoadingFromJson||!this.isDesignMode&&this.isDefaultValueEmpty()||(this.isDesignMode||this.isEmpty())&&(this.isEmpty()&&this.isDefaultValueEmpty()||this.isClearValueOnHidden&&!this.isVisible||this.isDesignMode&&this.isContentElement&&this.isDefaultValueEmpty()||this.setDefaultValue())},Object.defineProperty(t.prototype,"isClearValueOnHidden",{get:function(){return"none"!==this.clearIfInvisible&&"onComplete"!==this.clearIfInvisible&&("onHidden"===this.clearIfInvisible||!!this.survey&&this.survey.isClearValueOnHidden)},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,t){return null},t.prototype.getDefaultValue=function(){return this.defaultValue},t.prototype.isDefaultValueEmpty=function(){return!this.defaultValueExpression&&this.isValueEmpty(this.defaultValue)},t.prototype.getDefaultRunner=function(e,t){return!e&&t&&(e=new c.ExpressionRunner(t)),e&&(e.expression=t),e},t.prototype.setDefaultValue=function(){var e=this;this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.setValueAndRunExpression(this.defaultValueRunner,this.getUnbindValue(this.defaultValue),(function(t){o.Helpers.isTwoValueEquals(e.value,t)||(e.value=t)}))},t.prototype.isValueExpression=function(e){return!!e&&"string"==typeof e&&e.length>0&&"="==e[0]},t.prototype.setValueAndRunExpression=function(e,t,r,n,o){var i=this;void 0===n&&(n=null),void 0===o&&(o=null);var s=function(e){i.runExpressionSetValue(e,r)};this.runDefaultValueExpression(e,n,o,s)||s(t)},t.prototype.convertFuncValuetoQuestionValue=function(e){return o.Helpers.convertValToQuestionVal(e)},t.prototype.runExpressionSetValue=function(e,t){t(this.convertFuncValuetoQuestionValue(e))},t.prototype.runDefaultValueExpression=function(e,t,r,n){var i=this;return void 0===t&&(t=null),void 0===r&&(r=null),!(!e||!this.data||(n||(n=function(e){i.runExpressionSetValue(e,(function(e){o.Helpers.isTwoValueEquals(i.value,e)||(i.value=e)}))}),t||(t=this.data.getFilteredValues()),r||(r=this.data.getFilteredProperties()),e&&e.canRun&&(e.onRunComplete=function(e){null==e&&(e=i.defaultValue),i.isChangingViaDefaultValue=!0,n(e),i.isChangingViaDefaultValue=!1},e.run(t,r)),0))},Object.defineProperty(t.prototype,"comment",{get:function(){return this.getQuestionComment()},set:function(e){if(e){var t=e.toString().trim();t!==e&&(e=t)===this.comment&&this.setPropertyValueDirectly("comment",e)}this.comment!=e&&(this.setQuestionComment(e),this.updateCommentElements())},enumerable:!1,configurable:!0}),t.prototype.getCommentAreaCss=function(e){return void 0===e&&(e=!1),(new f.CssClassBuilder).append("form-group",e).append(this.cssClasses.formGroup,!e).append(this.cssClasses.commentArea).toString()},t.prototype.getQuestionComment=function(){return this.questionComment},t.prototype.setQuestionComment=function(e){this.setNewComment(e)},t.prototype.isEmpty=function(){return this.isValueEmpty(this.value)},Object.defineProperty(t.prototype,"isAnswered",{get:function(){return this.getPropertyValue("isAnswered")},set:function(e){this.setPropertyValue("isAnswered",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsAnswered=function(){var e=this.isAnswered;this.setPropertyValue("isAnswered",this.getIsAnswered()),e!==this.isAnswered&&this.updateQuestionCss()},t.prototype.getIsAnswered=function(){return!this.isEmpty()},Object.defineProperty(t.prototype,"validators",{get:function(){return this.getPropertyValue("validators")},set:function(e){this.setPropertyValue("validators",e)},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},t.prototype.getSupportedValidators=function(){for(var e=[],t=this.getType();t;){var r=d.settings.supportedValidators[t];if(r)for(var n=r.length-1;n>=0;n--)e.splice(0,0,r[n]);t=i.Serializer.findClass(t).parentName}return e},t.prototype.addSupportedValidators=function(e,t){},t.prototype.addConditionObjectsByContext=function(e,t){e.push({name:this.getValueName(),text:this.processedTitle,question:this})},t.prototype.getConditionJson=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null);var r=(new i.JsonObject).toJsonObject(this);return r.type=this.getType(),r},t.prototype.hasErrors=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=null);var r=this.errors.length>0,n=this.checkForErrors(!!t&&!0===t.isOnValueChanged);return e&&(this.survey&&this.survey.beforeSettingQuestionErrors(this,n),this.errors=n),this.updateContainsErrors(),r!=n.length>0&&this.updateQuestionCss(),this.isCollapsed&&t&&e&&n.length>0&&this.expand(),n.length>0},t.prototype.validate=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=null),!this.hasErrors(e,t)},Object.defineProperty(t.prototype,"currentErrorCount",{get:function(){return this.errors.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return null!=this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),t.prototype.addError=function(e){if(e){var t;t="string"==typeof e||e instanceof String?new a.CustomError(e,this.survey):e,this.errors.push(t)}},t.prototype.removeError=function(e){var t=this.errors,r=t.indexOf(e);-1!==r&&t.splice(r,1)},t.prototype.checkForErrors=function(e){var t=new Array;return this.isVisible&&this.canCollectErrors()&&this.collectErrors(t,e),t},t.prototype.canCollectErrors=function(){return!this.isReadOnly},t.prototype.collectErrors=function(e,t){if(this.onCheckForErrors(e,t),!(e.length>0)&&this.canRunValidators(t)){var r=this.runValidators();if(r.length>0){e.length=0;for(var n=0;n<r.length;n++)e.push(r[n])}if(this.survey&&0==e.length){var o=this.fireSurveyValidation();o&&e.push(o)}}},t.prototype.canRunValidators=function(e){return!0},t.prototype.fireSurveyValidation=function(){return this.validateValueCallback?this.validateValueCallback():this.survey?this.survey.validateQuestion(this):null},t.prototype.onCheckForErrors=function(e,t){var r=this;if(!t&&this.hasRequiredError()){var n=new a.AnswerRequiredError(this.requiredErrorText,this);n.onUpdateErrorTextCallback=function(e){e.text=r.requiredErrorText},e.push(n)}},t.prototype.hasRequiredError=function(){return this.isRequired&&this.isEmpty()},Object.defineProperty(t.prototype,"isRunningValidators",{get:function(){return this.getIsRunningValidators()},enumerable:!1,configurable:!0}),t.prototype.getIsRunningValidators=function(){return this.isRunningValidatorsValue},t.prototype.runValidators=function(){var e=this;return this.validatorRunner&&(this.validatorRunner.onAsyncCompleted=null),this.validatorRunner=new l.ValidatorRunner,this.isRunningValidatorsValue=!0,this.validatorRunner.onAsyncCompleted=function(t){e.doOnAsyncCompleted(t)},this.validatorRunner.run(this)},t.prototype.doOnAsyncCompleted=function(e){for(var t=0;t<e.length;t++)this.errors.push(e[t]);this.isRunningValidatorsValue=!1,this.raiseOnCompletedAsyncValidators()},t.prototype.raiseOnCompletedAsyncValidators=function(){this.onCompletedAsyncValidators&&!this.isRunningValidators&&(this.onCompletedAsyncValidators(this.getAllErrors().length>0),this.onCompletedAsyncValidators=null)},t.prototype.setNewValue=function(e){var t=this.isAnswered;this.setNewValueInData(e),this.allowNotifyValueChanged&&this.onValueChanged(),this.isAnswered!=t&&this.updateQuestionCss()},t.prototype.isTextValue=function(){return!1},Object.defineProperty(t.prototype,"isSurveyInputTextUpdate",{get:function(){return!!this.survey&&this.survey.isUpdateValueTextOnTyping},enumerable:!1,configurable:!0}),t.prototype.getDataLocNotification=function(){return!!this.isInputTextUpdate&&"text"},Object.defineProperty(t.prototype,"isInputTextUpdate",{get:function(){return this.isSurveyInputTextUpdate&&this.isTextValue()},enumerable:!1,configurable:!0}),t.prototype.setNewValueInData=function(e){e=this.valueToData(e),this.isValueChangedInSurvey||this.setValueCore(e)},t.prototype.getValueCore=function(){return this.questionValue},t.prototype.setValueCore=function(e){this.setQuestionValue(e),null!=this.data&&this.canSetValueToSurvey()&&(e=this.valueForSurvey,this.data.setValue(this.getValueName(),e,this.getDataLocNotification(),this.allowNotifyValueChanged))},t.prototype.canSetValueToSurvey=function(){return!0},t.prototype.valueFromData=function(e){return e},t.prototype.valueToData=function(e){return e},t.prototype.onValueChanged=function(){},t.prototype.setNewComment=function(e){this.questionComment!==e&&(this.questionComment=e,null!=this.data&&this.data.setComment(this.getValueName(),e,!!this.isSurveyInputTextUpdate&&"text"))},t.prototype.getValidName=function(e){return v(e)},t.prototype.updateValueFromSurvey=function(e){e=this.getUnbindValue(e),this.valueFromDataCallback&&(e=this.valueFromDataCallback(e)),this.setQuestionValue(this.valueFromData(e)),this.updateIsAnswered()},t.prototype.updateCommentFromSurvey=function(e){this.questionComment=e},t.prototype.onChangeQuestionValue=function(e){},t.prototype.setValueChangedDirectly=function(){this.isValueChangedDirectly=!0},t.prototype.setQuestionValue=function(e,t){void 0===t&&(t=!0);var r=this.isTwoValueEquals(this.questionValue,e);r||this.isChangingViaDefaultValue||this.setValueChangedDirectly(),this.questionValue=e,r||this.onChangeQuestionValue(e),!r&&this.allowNotifyValueChanged&&this.fireCallback(this.valueChangedCallback),t&&this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(e){},t.prototype.setVisibleIndex=function(e){return(!this.isVisible||!this.hasTitle&&!d.settings.setQuestionVisibleIndexForHiddenTitle||this.hideNumber&&!d.settings.setQuestionVisibleIndexForHiddenNumber)&&(e=-1),this.setPropertyValue("visibleIndex",e),this.setPropertyValue("no",this.calcNo()),e<0?0:1},t.prototype.removeElement=function(e){return!1},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.supportGoNextPageError=function(){return!0},t.prototype.clearIncorrectValues=function(){},t.prototype.clearOnDeletingContainer=function(){},t.prototype.clearErrors=function(){this.errors=[]},t.prototype.clearUnusedValues=function(){},t.prototype.onAnyValueChanged=function(e){},t.prototype.checkBindings=function(e,t){if(!this.bindings.isEmpty()&&this.data)for(var r=this.bindings.getPropertiesByValueName(e),n=0;n<r.length;n++){var i=r[n];this.isValueEmpty(t)&&o.Helpers.isNumber(this[i])&&(t=0),this[i]=t}},t.prototype.getComponentName=function(){return h.RendererFactory.Instance.getRendererByQuestion(this)},t.prototype.isDefaultRendering=function(){return!!this.customWidget||"default"===this.renderAs||"default"===this.getComponentName()},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getSurveyErrorCustomText(this,e,t):e},t.prototype.getValidatorTitle=function(){return null},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.transformToMobileView=function(){},t.prototype.transformToDesktopView=function(){},t.prototype.needResponsiveWidth=function(){return!1},t.prototype.supportResponsiveness=function(){return!1},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme&&!this.isDesignMode},t.prototype.checkForResponsiveness=function(e){var t=this;this.needResponsiveness()&&(this.isCollapsed?this.registerPropertyChangedHandlers(["state"],(function(){t.isExpanded&&(t.initResponsiveness(e),t.unregisterPropertyChangedHandlers(["state"],"for-responsiveness"))}),"for-responsiveness"):this.initResponsiveness(e))},t.prototype.getObservedElementSelector=function(){return".sd-scrollable-container"},t.prototype.onMobileChanged=function(){this.onMobileChangedCallback&&this.onMobileChangedCallback()},t.prototype.initResponsiveness=function(e){var t=this;if(this.destroyResizeObserver(),e&&this.isDefaultRendering()){var r=this.getObservedElementSelector();if(!r)return;if(!e.querySelector(r))return;var n=!1,o=void 0;this.resizeObserver=new ResizeObserver((function(){var i=e.querySelector(r);!o&&t.isDefaultRendering()&&(o=i.scrollWidth),n=!(n||!Object(m.isContainerVisible)(i))&&t.processResponsiveness(o,Object(m.getElementWidth)(i))})),this.onMobileChangedCallback=function(){setTimeout((function(){var n=e.querySelector(r);t.processResponsiveness(o,Object(m.getElementWidth)(n))}),0)},this.resizeObserver.observe(e)}},t.prototype.getCompactRenderAs=function(){return"default"},t.prototype.getDesktopRenderAs=function(){return"default"},t.prototype.processResponsiveness=function(e,t){if(t=Math.round(t),Math.abs(e-t)>2){var r=this.renderAs;return this.renderAs=e>t?this.getCompactRenderAs():this.getDesktopRenderAs(),r!==this.renderAs}return!1},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.onMobileChangedCallback=void 0,this.renderAs=this.getDesktopRenderAs())},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.destroyResizeObserver()},t.TextPreprocessorValuesMap={title:"processedTitle",require:"requiredText"},t.questionCounter=100,b([Object(i.property)({defaultValue:!1,onSet:function(e,t){t.setIsMobile(e)}})],t.prototype,"isMobile",void 0),b([Object(i.property)()],t.prototype,"forceIsInputReadOnly",void 0),b([Object(i.property)({localizable:!0})],t.prototype,"commentPlaceholder",void 0),b([Object(i.property)()],t.prototype,"renderAs",void 0),b([Object(i.property)({defaultValue:!1})],t.prototype,"inMatrixMode",void 0),t}(s.SurveyElement);function v(e){if(!e)return e;for(e=e.trim().replace(/[\{\}]+/g,"");e&&e[0]===d.settings.expressionDisableConversionChar;)e=e.substring(1);return e}i.Serializer.addClass("question",[{name:"!name",onSettingValue:function(e,t){return v(t)}},{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"visible:switch",default:!0},{name:"useDisplayValuesInDynamicTexts:boolean",alternativeName:"useDisplayValuesInTitle",default:!0,layout:"row"},"visibleIf:condition",{name:"width"},{name:"minWidth",defaultFunc:function(){return d.settings.minWidth}},{name:"maxWidth",defaultFunc:function(){return d.settings.maxWidth}},{name:"startWithNewLine:boolean",default:!0,layout:"row"},{name:"indent:number",default:0,choices:[0,1,2,3],layout:"row"},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map((function(e){return{value:e.name,text:e.title}})):[]}},{name:"title:text",serializationProperty:"locTitle",layout:"row",dependsOn:"name",onPropertyEditorUpdate:function(e,t){e&&t&&(t.placeholder=e.name)}},{name:"titleLocation",default:"default",choices:["default","top","bottom","left","hidden"],layout:"row"},{name:"description:text",serializationProperty:"locDescription",layout:"row"},{name:"descriptionLocation",default:"default",choices:["default","underInput","underTitle"]},{name:"hideNumber:boolean",dependsOn:"titleLocation",visibleIf:function(e){if(!e)return!0;if("hidden"===e.titleLocation)return!1;var t=e?e.parent:null;if(t&&"off"===t.showQuestionNumbers)return!1;var r=e?e.survey:null;return!r||"off"!==r.showQuestionNumbers||!!t&&"onpanel"===t.showQuestionNumbers}},{name:"valueName",onSettingValue:function(e,t){return v(t)}},"enableIf:condition","defaultValue:value",{name:"defaultValueExpression:expression",category:"logic"},"correctAnswer:value",{name:"clearIfInvisible",default:"default",choices:["default","none","onComplete","onHidden"]},"isRequired:switch","requiredIf:condition",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:switch",{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"bindings:bindings",serializationProperty:"bindings",visibleIf:function(e){return e.bindings.getNames().length>0}},{name:"renderAs",default:"default",visible:!1},{name:"showCommentArea",visible:!1,default:!1,alternativeName:"hasComment",category:"general"},{name:"commentText",dependsOn:"showCommentArea",visibleIf:function(e){return e.showCommentArea},serializationProperty:"locCommentText",layout:"row"},{name:"commentPlaceholder",alternativeName:"commentPlaceHolder",serializationProperty:"locCommentPlaceholder",dependsOn:"showCommentArea",visibleIf:function(e){return e.hasComment}}]),i.Serializer.addAlterNativeClassName("question","questionbase")},"./src/questionCustomWidgets.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionCustomWidget",(function(){return o})),r.d(t,"CustomWidgetCollection",(function(){return i}));var n=r("./src/base.ts"),o=function(){function e(e,t){this.name=e,this.widgetJson=t,this.htmlTemplate=t.htmlTemplate?t.htmlTemplate:""}return e.prototype.afterRender=function(e,t){var r=this;this.widgetJson.afterRender&&(e.localeChangedCallback=function(){r.widgetJson.willUnmount&&r.widgetJson.willUnmount(e,t),r.widgetJson.afterRender(e,t)},this.widgetJson.afterRender(e,t))},e.prototype.willUnmount=function(e,t){this.widgetJson.willUnmount&&this.widgetJson.willUnmount(e,t)},e.prototype.getDisplayValue=function(e,t){return void 0===t&&(t=void 0),this.widgetJson.getDisplayValue?this.widgetJson.getDisplayValue(e,t):null},e.prototype.isFit=function(e){return!(!this.isLibraryLoaded()||!this.widgetJson.isFit)&&this.widgetJson.isFit(e)},Object.defineProperty(e.prototype,"canShowInToolbox",{get:function(){return!1!==this.widgetJson.showInToolbox&&"customtype"==i.Instance.getActivatedBy(this.name)&&(!this.widgetJson.widgetIsLoaded||this.widgetJson.widgetIsLoaded())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showInToolbox",{get:function(){return!1!==this.widgetJson.showInToolbox},set:function(e){this.widgetJson.showInToolbox=e},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.widgetJson.init&&this.widgetJson.init()},e.prototype.activatedByChanged=function(e){this.isLibraryLoaded()&&this.widgetJson.activatedByChanged&&this.widgetJson.activatedByChanged(e)},e.prototype.isLibraryLoaded=function(){return!this.widgetJson.widgetIsLoaded||1==this.widgetJson.widgetIsLoaded()},Object.defineProperty(e.prototype,"isDefaultRender",{get:function(){return this.widgetJson.isDefaultRender},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pdfQuestionType",{get:function(){return this.widgetJson.pdfQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pdfRender",{get:function(){return this.widgetJson.pdfRender},enumerable:!1,configurable:!0}),e}(),i=function(){function e(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new n.Event}return Object.defineProperty(e.prototype,"widgets",{get:function(){return this.widgetsValues},enumerable:!1,configurable:!0}),e.prototype.add=function(e,t){void 0===t&&(t="property"),this.addCustomWidget(e,t)},e.prototype.addCustomWidget=function(e,t){void 0===t&&(t="property");var r=e.name;r||(r="widget_"+this.widgets.length+1);var n=new o(r,e);return this.widgetsValues.push(n),n.init(),this.widgetsActivatedBy[r]=t,n.activatedByChanged(t),this.onCustomWidgetAdded.fire(n,null),n},e.prototype.getActivatedBy=function(e){return this.widgetsActivatedBy[e]||"property"},e.prototype.setActivatedBy=function(e,t){if(e&&t){var r=this.getCustomWidgetByName(e);r&&(this.widgetsActivatedBy[e]=t,r.activatedByChanged(t))}},e.prototype.clear=function(){this.widgetsValues=[]},e.prototype.getCustomWidgetByName=function(e){for(var t=0;t<this.widgets.length;t++)if(this.widgets[t].name==e)return this.widgets[t];return null},e.prototype.getCustomWidget=function(e){for(var t=0;t<this.widgetsValues.length;t++)if(this.widgetsValues[t].isFit(e))return this.widgetsValues[t];return null},e.Instance=new e,e}()},"./src/question_baseselect.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionSelectBase",(function(){return y})),r.d(t,"QuestionCheckboxBase",(function(){return v}));var n,o=r("./src/jsonobject.ts"),i=r("./src/survey.ts"),s=r("./src/question.ts"),a=r("./src/itemvalue.ts"),l=r("./src/surveyStrings.ts"),u=r("./src/error.ts"),c=r("./src/choicesRestful.ts"),p=r("./src/conditions.ts"),d=r("./src/helpers.ts"),h=r("./src/settings.ts"),f=r("./src/utils/cssClassBuilder.ts"),m=r("./src/utils/utils.ts"),g=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),b=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},y=function(e){function t(t){var r=e.call(this,t)||this;r.otherItemValue=new a.ItemValue("other"),r.dependedQuestions=[],r.noneItemValue=new a.ItemValue(h.settings.noneItemValue),r.isSettingDefaultValue=!1,r.isSettingComment=!1,r.isRunningChoices=!1,r.isFirstLoadChoicesFromUrl=!0,r.isUpdatingChoicesDependedQuestions=!1,r.prevIsOtherSelected=!1;var n=r.createLocalizableString("noneText",r.noneItemValue,!0,"noneItemText");r.noneItemValue.locOwner=r,r.noneItemValue.setLocText(n),r.createItemValues("choices"),r.registerPropertyChangedHandlers(["choices"],(function(){r.filterItems()||r.onVisibleChoicesChanged()})),r.registerPropertyChangedHandlers(["choicesFromQuestion","choicesFromQuestionMode","showNoneItem"],(function(){r.onVisibleChoicesChanged()})),r.registerPropertyChangedHandlers(["hideIfChoicesEmpty"],(function(){r.onVisibleChanged()})),r.createNewArray("visibleChoices"),r.setNewRestfulProperty();var o=r.createLocalizableString("otherText",r.otherItemValue,!0,"otherItemText");return r.createLocalizableString("otherErrorText",r,!0,"otherRequiredError"),r.otherItemValue.locOwner=r,r.otherItemValue.setLocText(o),r.choicesByUrl.createItemValue=function(e){return r.createItemValue(e)},r.choicesByUrl.beforeSendRequestCallback=function(){r.onBeforeSendRequest()},r.choicesByUrl.getResultCallback=function(e){r.onLoadChoicesFromUrl(e)},r.choicesByUrl.updateResultCallback=function(e,t){return r.survey?r.survey.updateChoicesFromServer(r,e,t):e},r}return g(t,e),t.prototype.getType=function(){return"selectbase"},t.prototype.dispose=function(){e.prototype.dispose.call(this);for(var t=0;t<this.dependedQuestions.length;t++)this.dependedQuestions[t].choicesFromQuestion="";this.removeFromDependedQuestion(this.getQuestionWithChoices())},Object.defineProperty(t.prototype,"otherId",{get:function(){return this.id+"_other"},enumerable:!1,configurable:!0}),t.prototype.getCommentElementsId=function(){return[this.commentId,this.otherId]},t.prototype.getItemValueType=function(){return"itemvalue"},t.prototype.createItemValue=function(e,t){var r=o.Serializer.createClass(this.getItemValueType(),e);return t&&(r.text=t),r},t.prototype.supportGoNextPageError=function(){return!this.isOtherSelected||!!this.otherValue},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),"none"!==this.choicesOrder&&this.updateVisibleChoices()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.choicesFromUrl&&(a.ItemValue.locStrsChanged(this.choicesFromUrl),a.ItemValue.locStrsChanged(this.visibleChoices))},Object.defineProperty(t.prototype,"otherValue",{get:function(){return this.showCommentArea?this.otherValueCore:this.comment},set:function(e){this.showCommentArea?this.setOtherValueInternally(e):this.comment=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherValueCore",{get:function(){return this.getPropertyValue("otherValue")},set:function(e){this.setPropertyValue("otherValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherItem",{get:function(){return this.otherItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.hasOther&&this.getHasOther(this.renderedValue)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNoneSelected",{get:function(){return this.hasNone&&this.getIsItemValue(this.renderedValue,this.noneItem)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNoneItem",{get:function(){return this.getPropertyValue("showNoneItem")},set:function(e){this.setPropertyValue("showNoneItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasNone",{get:function(){return this.showNoneItem},set:function(e){this.showNoneItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneItem",{get:function(){return this.noneItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneText",{get:function(){return this.getLocalizableStringText("noneText")},set:function(e){this.setLocalizableStringText("noneText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoneText",{get:function(){return this.getLocalizableString("noneText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesVisibleIf",{get:function(){return this.getPropertyValue("choicesVisibleIf","")},set:function(e){this.setPropertyValue("choicesVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesEnableIf",{get:function(){return this.getPropertyValue("choicesEnableIf","")},set:function(e){this.setPropertyValue("choicesEnableIf",e),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){this.filterItems()},t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.isUsingCarrayForward||(this.runItemsEnableCondition(t,r),this.runItemsCondition(t,r))},t.prototype.isTextValue=function(){return!0},t.prototype.setDefaultValue=function(){this.isSettingDefaultValue=!this.isValueEmpty(this.defaultValue)&&this.hasUnknownValue(this.defaultValue),this.prevOtherValue=void 0,e.prototype.setDefaultValue.call(this),this.isSettingDefaultValue=!1},t.prototype.getIsMultipleValue=function(){return!1},t.prototype.convertDefaultValue=function(e){if(null==e||null==e)return e;if(this.getIsMultipleValue()){if(!Array.isArray(e))return[e]}else if(Array.isArray(e)&&e.length>0)return e[0];return e},t.prototype.filterItems=function(){if(this.isLoadingFromJson||!this.data||this.areInvisibleElementsShowing)return!1;var e=this.getDataFilteredValues(),t=this.getDataFilteredProperties();return this.runItemsEnableCondition(e,t),this.runItemsCondition(e,t)},t.prototype.runItemsCondition=function(e,t){this.setConditionalChoicesRunner();var r=this.runConditionsForItems(e,t);return this.filteredChoicesValue&&this.filteredChoicesValue.length===this.activeChoices.length&&(this.filteredChoicesValue=void 0),r&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues()),r},t.prototype.runItemsEnableCondition=function(e,t){var r=this;this.setConditionalEnableChoicesRunner(),a.ItemValue.runEnabledConditionsForItems(this.activeChoices,this.conditionChoicesEnableIfRunner,e,t,(function(e,t){return t&&r.onEnableItemCallBack(e)}))&&this.clearDisabledValues(),this.onAfterRunItemsEnableCondition()},t.prototype.onAfterRunItemsEnableCondition=function(){},t.prototype.onEnableItemCallBack=function(e){return!0},t.prototype.onSelectedItemValuesChangedHandler=function(e){},t.prototype.getSingleSelectedItem=function(){var e=this.selectedItemValues;if(this.isEmpty())return null;var t=a.ItemValue.getItemByValue(this.visibleChoices,this.value);return this.onGetSingleSelectedItem(t),t||e||this.updateSelectedItemValues(),t||e||(this.isOtherSelected?this.otherItem:this.createItemValue(this.value))},t.prototype.onGetSingleSelectedItem=function(e){},t.prototype.setConditionalChoicesRunner=function(){this.choicesVisibleIf?(this.conditionChoicesVisibleIfRunner||(this.conditionChoicesVisibleIfRunner=new p.ConditionRunner(this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},t.prototype.setConditionalEnableChoicesRunner=function(){this.choicesEnableIf?(this.conditionChoicesEnableIfRunner||(this.conditionChoicesEnableIfRunner=new p.ConditionRunner(this.choicesEnableIf)),this.conditionChoicesEnableIfRunner.expression=this.choicesEnableIf):this.conditionChoicesEnableIfRunner=null},t.prototype.canSurveyChangeItemVisibility=function(){return!!this.survey&&this.survey.canChangeChoiceItemsVisibility()},t.prototype.changeItemVisisbility=function(){var e=this;return this.canSurveyChangeItemVisibility()?function(t,r){return e.survey.getChoiceItemVisibility(e,t,r)}:null},t.prototype.runConditionsForItems=function(e,t){this.filteredChoicesValue=[];var r=this.changeItemVisisbility();return a.ItemValue.runConditionsForItems(this.activeChoices,this.getFilteredChoices(),this.areInvisibleElementsShowing?null:this.conditionChoicesVisibleIfRunner,e,t,!this.survey||!this.survey.areInvisibleElementsShowing,(function(e,t){return r?r(e,t):t}))},t.prototype.getHasOther=function(e){return this.getIsItemValue(e,this.otherItem)},t.prototype.getIsItemValue=function(e,t){return e===t.value},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.rendredValueToDataCore(this.value)},enumerable:!1,configurable:!0}),t.prototype.createRestful=function(){return new c.ChoicesRestful},t.prototype.setNewRestfulProperty=function(){this.setPropertyValue("choicesByUrl",this.createRestful()),this.choicesByUrl.owner=this,this.choicesByUrl.loadingOwner=this},Object.defineProperty(t.prototype,"autoOtherMode",{get:function(){return this.getPropertyValue("autoOtherMode")},set:function(e){this.setPropertyValue("autoOtherMode",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionComment=function(){return this.showCommentArea?e.prototype.getQuestionComment.call(this):this.otherValueCore?this.otherValueCore:this.hasComment||this.getStoreOthersAsComment()?e.prototype.getQuestionComment.call(this):this.otherValueCore},t.prototype.selectOtherValueFromComment=function(e){this.value=e?this.otherItem.value:void 0},t.prototype.setQuestionComment=function(t){this.showCommentArea?e.prototype.setQuestionComment.call(this,t):(this.onUpdateCommentOnAutoOtherMode(t),this.getStoreOthersAsComment()?e.prototype.setQuestionComment.call(this,t):this.setOtherValueInternally(t),this.updateChoicesDependedQuestions())},t.prototype.onUpdateCommentOnAutoOtherMode=function(e){if(this.autoOtherMode){this.prevOtherValue=void 0;var t=this.isOtherSelected;(!t&&e||t&&!e)&&this.selectOtherValueFromComment(!!e)}},t.prototype.setOtherValueInternally=function(e){this.isSettingComment||e==this.otherValueCore||(this.isSettingComment=!0,this.otherValueCore=e,this.isOtherSelected&&!this.isRenderedValueSetting&&(this.value=this.rendredValueToData(this.renderedValue)),this.isSettingComment=!1)},t.prototype.clearValue=function(){e.prototype.clearValue.call(this),this.prevOtherValue=void 0},t.prototype.updateCommentFromSurvey=function(t){e.prototype.updateCommentFromSurvey.call(this,t),this.prevOtherValue=void 0},Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.getPropertyValue("renderedValue",null)},set:function(e){this.setPropertyValue("renderedValue",e),e=this.rendredValueToData(e),this.isTwoValueEquals(e,this.value)||(this.value=e)},enumerable:!1,configurable:!0}),t.prototype.setQuestionValue=function(t,r,n){if(void 0===r&&(r=!0),void 0===n&&(n=!0),!this.isLoadingFromJson&&!this.isTwoValueEquals(this.value,t)&&(e.prototype.setQuestionValue.call(this,t,r),this.setPropertyValue("renderedValue",this.rendredValueFromData(t)),this.updateChoicesDependedQuestions(),!this.hasComment&&n)){var o=this.isOtherSelected;if(o&&this.prevOtherValue){var i=this.prevOtherValue;this.prevOtherValue=void 0,this.otherValue=i}!o&&this.otherValue&&(this.getStoreOthersAsComment()&&!this.autoOtherMode&&(this.prevOtherValue=this.otherValue),this.otherValue="")}},t.prototype.setNewValue=function(t){t=this.valueFromData(t),(this.choicesByUrl.isRunning||this.choicesByUrl.isWaitingForParameters)&&this.isValueEmpty(t)||(this.cachedValueForUrlRequests=t),e.prototype.setNewValue.call(this,t)},t.prototype.valueFromData=function(t){var r=a.ItemValue.getItemByValue(this.activeChoices,t);return r?r.value:e.prototype.valueFromData.call(this,t)},t.prototype.rendredValueFromData=function(e){return this.getStoreOthersAsComment()?e:this.renderedValueFromDataCore(e)},t.prototype.rendredValueToData=function(e){return this.getStoreOthersAsComment()?e:this.rendredValueToDataCore(e)},t.prototype.renderedValueFromDataCore=function(e){return this.hasUnknownValue(e,!0,!1)?(this.otherValue=e,this.otherItem.value):this.valueFromData(e)},t.prototype.rendredValueToDataCore=function(e){return e==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()&&(e=this.otherValue),e},t.prototype.needConvertRenderedOtherToDataValue=function(){var e=this.otherValue;return!!e&&!!(e=e.trim())&&this.hasUnknownValue(e,!0,!1)},t.prototype.updateSelectedItemValues=function(){this.waitingGetChoiceDisplayValueResponse||(this.getIsMultipleValue()?this.updateMultipleSelectedItemValues():this.updateSingleSelectedItemValues())},t.prototype.updateSingleSelectedItemValues=function(){var e=this;!this.survey||this.isEmpty()||a.ItemValue.getItemByValue(this.choices,this.value)||(this.waitingGetChoiceDisplayValueResponse=!0,this.survey.getChoiceDisplayValue({question:this,values:[this.value],setItems:function(t){e.waitingGetChoiceDisplayValueResponse=!1,t&&t.length&&(e.selectedItemValues=e.createItemValue(e.value,t[0]))}}))},t.prototype.updateMultipleSelectedItemValues=function(){var e=this,t=this.value,r=t.some((function(t){return!a.ItemValue.getItemByValue(e.choices,t)}));this.survey&&!this.isEmpty()&&r&&(this.waitingGetChoiceDisplayValueResponse=!0,this.survey.getChoiceDisplayValue({question:this,values:t,setItems:function(t){e.waitingGetChoiceDisplayValueResponse=!1,t&&t.length&&(e.selectedItemValues=t.map((function(t,r){return e.createItemValue(e.value[r],t)})))}}))},t.prototype.hasUnknownValue=function(e,t,r,n){if(void 0===t&&(t=!1),void 0===r&&(r=!0),void 0===n&&(n=!1),!n&&this.isValueEmpty(e))return!1;if(t&&e==this.otherItem.value)return!1;if(this.hasNone&&e==this.noneItem.value)return!1;var o=r?this.getFilteredChoices():this.activeChoices;return null==a.ItemValue.getItemByValue(o,e)},t.prototype.isValueDisabled=function(e){var t=a.ItemValue.getItemByValue(this.getFilteredChoices(),e);return!!t&&!t.isEnabled},Object.defineProperty(t.prototype,"choicesByUrl",{get:function(){return this.getPropertyValue("choicesByUrl")},set:function(e){e&&(this.setNewRestfulProperty(),this.choicesByUrl.fromJSON(e.toJSON()))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestion",{get:function(){return this.getPropertyValue("choicesFromQuestion")},set:function(e){var t=this.getQuestionWithChoices();t&&t.removeFromDependedQuestion(this),this.setPropertyValue("choicesFromQuestion",e)},enumerable:!1,configurable:!0}),t.prototype.addIntoDependedQuestion=function(e){!e||e.dependedQuestions.indexOf(this)>-1||e.dependedQuestions.push(this)},t.prototype.removeFromDependedQuestion=function(e){if(e){var t=e.dependedQuestions.indexOf(this);t>-1&&e.dependedQuestions.splice(t,1)}},Object.defineProperty(t.prototype,"choicesFromQuestionMode",{get:function(){return this.getPropertyValue("choicesFromQuestionMode")},set:function(e){this.setPropertyValue("choicesFromQuestionMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfChoicesEmpty",{get:function(){return this.getPropertyValue("hideIfChoicesEmpty")},set:function(e){this.setPropertyValue("hideIfChoicesEmpty",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues",!1)},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"choicesOrder",{get:function(){return this.getPropertyValue("choicesOrder")},set:function(e){(e=e.toLowerCase())!=this.choicesOrder&&(this.setPropertyValue("choicesOrder",e),this.onVisibleChoicesChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherText",{get:function(){return this.getLocalizableStringText("otherText")},set:function(e){this.setLocalizableStringText("otherText",e),this.onVisibleChoicesChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherText",{get:function(){return this.getLocalizableString("otherText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherPlaceHolder",{get:function(){return this.otherPlaceholder},set:function(e){this.otherPlaceholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherErrorText",{get:function(){return this.getLocalizableStringText("otherErrorText")},set:function(e){this.setLocalizableStringText("otherErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherErrorText",{get:function(){return this.getLocalizableString("otherErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.getPropertyValue("visibleChoices")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabledChoices",{get:function(){for(var e=[],t=this.visibleChoices,r=0;r<t.length;r++)t[r].isEnabled&&e.push(t[r]);return e},enumerable:!1,configurable:!0}),t.prototype.updateVisibleChoices=function(){if(!this.isLoadingFromJson){var e=new Array,t=this.calcVisibleChoices();t||(t=[]);for(var r=0;r<t.length;r++)e.push(t[r]);this.setPropertyValue("visibleChoices",e)}},t.prototype.calcVisibleChoices=function(){if(this.canUseFilteredChoices())return this.getFilteredChoices();var e=this.sortVisibleChoices(this.getFilteredChoices().slice());return this.addToVisibleChoices(e,this.isAddDefaultItems),e},t.prototype.canUseFilteredChoices=function(){return!this.isAddDefaultItems&&!this.hasNone&&!this.hasOther&&"none"==this.choicesOrder},t.prototype.setCanShowOptionItemCallback=function(e){this.canShowOptionItemCallback=e,e&&this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"newItem",{get:function(){return this.newItemValue},enumerable:!1,configurable:!0}),t.prototype.addToVisibleChoices=function(e,t){t&&(this.newItemValue||(this.newItemValue=this.createItemValue("newitem")),this.canShowOptionItem(this.newItemValue,t,!1)&&e.push(this.newItemValue)),this.supportNone()&&this.canShowOptionItem(this.noneItem,t,this.hasNone)&&e.push(this.noneItem),this.supportOther()&&this.canShowOptionItem(this.otherItem,t,this.hasOther)&&e.push(this.otherItem)},t.prototype.canShowOptionItem=function(e,t,r){var n=t&&(!this.canShowOptionItemCallback||this.canShowOptionItemCallback(e))||r;return this.canSurveyChangeItemVisibility()?this.changeItemVisisbility()(e,n):n},t.prototype.isItemInList=function(e){return e===this.otherItem?this.hasOther:e===this.noneItem?this.hasNone:e!==this.newItemValue},Object.defineProperty(t.prototype,"isAddDefaultItems",{get:function(){return h.settings.supportCreatorV2&&h.settings.showDefaultItemsInCreatorV2&&this.isDesignMode&&!this.customWidget&&!this.isContentElement},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(t){var r=this;void 0===t&&(t={includeEmpty:!0,includeQuestionTypes:!1});var n=e.prototype.getPlainData.call(this,t);if(n){var o=Array.isArray(this.value)?this.value:[this.value];n.isNode=!0,n.data=(n.data||[]).concat(o.map((function(e,n){var o=a.ItemValue.getItemByValue(r.visibleChoices,e),i={name:n,title:"Choice",value:e,displayValue:r.getChoicesDisplayValue(r.visibleChoices,e),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1};return o&&(t.calculations||[]).forEach((function(e){i[e.propertyName]=o[e.propertyName]})),r.isOtherSelected&&r.otherItemValue===o&&(i.isOther=!0,i.displayValue=r.otherValue),i})))}return n},t.prototype.getDisplayValueCore=function(e,t){return this.getChoicesDisplayValue(this.visibleChoices,t)},t.prototype.getDisplayValueEmpty=function(){return a.ItemValue.getTextOrHtmlByValue(this.visibleChoices,void 0)},t.prototype.getChoicesDisplayValue=function(e,t){if(t==this.otherItemValue.value)return this.otherValue?this.otherValue:this.locOtherText.textOrHtml;var r=a.ItemValue.getTextOrHtmlByValue(e,t);return""==r&&t?t:r},t.prototype.getDisplayArrayValue=function(e,t,r){for(var n=this.visibleChoices,o=[],i=0;i<t.length;i++){var s=r?r(i):t[i],a=this.getChoicesDisplayValue(n,s);a&&o.push(a)}return o.join(", ")},t.prototype.getFilteredChoices=function(){return this.filteredChoicesValue?this.filteredChoicesValue:this.activeChoices},Object.defineProperty(t.prototype,"activeChoices",{get:function(){var e=this.getQuestionWithChoices();return this.isUsingCarrayForward=!!e,this.isUsingCarrayForward?(this.addIntoDependedQuestion(e),this.getChoicesFromQuestion(e)):this.choicesFromUrl?this.choicesFromUrl:this.getChoices()},enumerable:!1,configurable:!0}),t.prototype.getQuestionWithChoices=function(){if(!this.choicesFromQuestion||!this.data)return null;var e=this.data.findQuestionByName(this.choicesFromQuestion);return e&&e.visibleChoices&&Array.isArray(e.dependedQuestions)&&e!==this?e:null},t.prototype.getChoicesFromQuestion=function(e){for(var t=[],r="selected"==this.choicesFromQuestionMode||"unselected"!=this.choicesFromQuestionMode&&void 0,n=e.visibleChoices,o=0;o<n.length;o++)if(!this.isBuiltInChoice(n[o],e))if(void 0!==r){var i=e.isItemSelected(n[o]);(i&&r||!i&&!r)&&t.push(this.copyChoiceItem(n[o]))}else t.push(this.copyChoiceItem(n[o]));return"selected"===this.choicesFromQuestionMode&&e.isOtherSelected&&e.comment&&t.push(this.createItemValue(e.otherItem.value,e.comment)),t},t.prototype.copyChoiceItem=function(e){var t=this.createItemValue(e.value);return t.setData(e),t},Object.defineProperty(t.prototype,"hasActiveChoices",{get:function(){var e=this.visibleChoices;e&&0!=e.length||(this.onVisibleChoicesChanged(),e=this.visibleChoices);for(var t=0;t<e.length;t++)if(!this.isBuiltInChoice(e[t],this))return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.isHeadChoice=function(e,t){return!1},t.prototype.isFootChoice=function(e,t){return e===t.noneItem||e===t.otherItem||e===t.newItemValue},t.prototype.isBuiltInChoice=function(e,t){return this.isHeadChoice(e,t)||this.isFootChoice(e,t)},t.prototype.getChoices=function(){return this.choices},t.prototype.supportOther=function(){return this.isSupportProperty("showOtherItem")},t.prototype.supportNone=function(){return this.isSupportProperty("showNoneItem")},t.prototype.isSupportProperty=function(e){return!this.isDesignMode||this.getPropertyByName(e).visible},t.prototype.onCheckForErrors=function(t,r){var n=this;if(e.prototype.onCheckForErrors.call(this,t,r),this.hasOther&&this.isOtherSelected&&!this.otherValue){var o=new u.OtherEmptyError(this.otherErrorText,this);o.onUpdateErrorTextCallback=function(e){e.text=n.otherErrorText},t.push(o)}},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r),this.runChoicesByUrl(),this.isAddDefaultItems&&this.updateVisibleChoices()},t.prototype.setSurveyCore=function(t){e.prototype.setSurveyCore.call(this,t),t&&this.choicesFromQuestion&&this.onVisibleChoicesChanged()},t.prototype.getStoreOthersAsComment=function(){return!this.isSettingDefaultValue&&!this.showCommentArea&&(!0===this.storeOthersAsComment||"default"==this.storeOthersAsComment&&(null==this.survey||this.survey.storeOthersAsComment)||!this.choicesByUrl.isEmpty&&!this.choicesFromUrl)},t.prototype.onSurveyLoad=function(){this.runChoicesByUrl(),this.onVisibleChoicesChanged(),e.prototype.onSurveyLoad.call(this)},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t),t!=this.getValueName()&&this.runChoicesByUrl(),t&&t==this.choicesFromQuestion&&this.onVisibleChoicesChanged()},t.prototype.updateValueFromSurvey=function(t){var r="";this.hasOther&&!this.isRunningChoices&&!this.choicesByUrl.isRunning&&this.getStoreOthersAsComment()&&(this.hasUnknownValue(t)&&!this.getHasOther(t)?(r=this.getCommentFromValue(t),t=this.setOtherValueIntoValue(t)):r=this.data.getComment(this.getValueName())),e.prototype.updateValueFromSurvey.call(this,t),r&&this.setNewComment(r)},t.prototype.getCommentFromValue=function(e){return e},t.prototype.setOtherValueIntoValue=function(e){return this.otherItem.value},t.prototype.onOtherValueInput=function(e){this.isInputTextUpdate?e.target&&(this.otherValue=e.target.value):this.updateCommentElements()},t.prototype.onOtherValueChange=function(e){this.otherValue=e.target.value,this.otherValue!==e.target.value&&(e.target.value=this.otherValue)},t.prototype.runChoicesByUrl=function(){if(this.choicesByUrl&&!this.isLoadingFromJson&&!this.isRunningChoices){var e=this.surveyImpl?this.surveyImpl.getTextProcessor():this.textProcessor;e||(e=this.survey),e&&(this.isReadyValue=this.isChoicesLoaded||this.choicesByUrl.isEmpty,this.isRunningChoices=!0,this.choicesByUrl.run(e),this.isRunningChoices=!1)}},t.prototype.onBeforeSendRequest=function(){!0!==h.settings.disableOnGettingChoicesFromWeb||this.isReadOnly||(this.enableOnLoadingChoices=!0,this.readOnly=!0)},t.prototype.onLoadChoicesFromUrl=function(e){if(this.enableOnLoadingChoices&&(this.readOnly=!1),!this.isReadOnly){var t=[];this.choicesByUrl&&this.choicesByUrl.error&&t.push(this.choicesByUrl.error),this.errors=t}var r=null,n=!0;this.isFirstLoadChoicesFromUrl&&!this.cachedValueForUrlRequests&&this.defaultValue&&(this.cachedValueForUrlRequests=this.defaultValue,n=!1),this.isValueEmpty(this.cachedValueForUrlRequests)&&(this.cachedValueForUrlRequests=this.value),this.isFirstLoadChoicesFromUrl=!1;var o=this.createCachedValueForUrlRequests(this.cachedValueForUrlRequests,n);if(e&&(e.length>0||this.choicesByUrl.allowEmptyResponse)&&(r=new Array,a.ItemValue.setData(r,e)),r)for(var i=0;i<r.length;i++)r[i].locOwner=this;if(this.choicesFromUrl=r,this.filterItems(),this.onVisibleChoicesChanged(),r){var s=this.updateCachedValueForUrlRequests(o,r);if(s&&!this.isReadOnly){var l=!this.isTwoValueEquals(this.value,s.value);try{this.isValueEmpty(s.value)||(this.allowNotifyValueChanged=!1,this.setQuestionValue(void 0,!0,!1)),this.allowNotifyValueChanged=l,l?this.value=s.value:this.setQuestionValue(s.value)}finally{this.allowNotifyValueChanged=!0}}}this.choicesLoaded()},t.prototype.createCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var r=[],n=0;n<e.length;n++)r.push(this.createCachedValueForUrlRequests(e[n],!0));return r}return{value:e,isExists:!t||!this.hasUnknownValue(e)}},t.prototype.updateCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var r=[],n=0;n<e.length;n++){var o=this.updateCachedValueForUrlRequests(e[n],t);if(o&&!this.isValueEmpty(o.value)){var i=o.value;(s=a.ItemValue.getItemByValue(t,o.value))&&(i=s.value),r.push(i)}}return{value:r}}var s,l=e.isExists&&this.hasUnknownValue(e.value)?null:e.value;return(s=a.ItemValue.getItemByValue(t,l))&&(l=s.value),{value:l}},t.prototype.updateChoicesDependedQuestions=function(){if(!this.isLoadingFromJson&&!this.isUpdatingChoicesDependedQuestions){this.isUpdatingChoicesDependedQuestions=!0;for(var e=0;e<this.dependedQuestions.length;e++){var t=this.dependedQuestions[e];t.onVisibleChoicesChanged(),t.clearIncorrectValuesCore()}this.isUpdatingChoicesDependedQuestions=!1}},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.updateChoicesDependedQuestions()},t.prototype.onVisibleChoicesChanged=function(){this.isLoadingFromJson||(this.updateVisibleChoices(),this.onVisibleChanged(),this.visibleChoicesChangedCallback&&this.visibleChoicesChangedCallback(),this.updateChoicesDependedQuestions())},t.prototype.isVisibleCore=function(){var t=e.prototype.isVisibleCore.call(this);if(!this.hideIfChoicesEmpty||!t)return t;var r=this.getFilteredChoices();return!r||r.length>0},t.prototype.sortVisibleChoices=function(e){var t=this.choicesOrder.toLowerCase();return"asc"==t?this.sortArray(e,1):"desc"==t?this.sortArray(e,-1):"random"==t?this.randomizeArray(e):e},t.prototype.sortArray=function(e,t){return e.sort((function(e,r){return d.Helpers.compareStrings(e.calculatedText,r.calculatedText)*t}))},t.prototype.randomizeArray=function(e){return d.Helpers.randomizeArray(e)},t.prototype.clearIncorrectValues=function(){this.hasValueToClearIncorrectValues()&&(this.survey&&this.survey.questionCountByValueName(this.getValueName())>1||(!this.choicesByUrl||this.choicesByUrl.isEmpty||this.choicesFromUrl&&0!=this.choicesFromUrl.length)&&(this.clearIncorrectValuesCallback?this.clearIncorrectValuesCallback():this.clearIncorrectValuesCore()))},t.prototype.hasValueToClearIncorrectValues=function(){return!(this.survey&&this.survey.keepIncorrectValues||this.keepIncorrectValues||this.isEmpty())},t.prototype.clearValueIfInvisibleCore=function(){e.prototype.clearValueIfInvisibleCore.call(this),this.clearIncorrectValues()},t.prototype.isItemSelected=function(e){return e===this.otherItem?this.isOtherSelected:this.isItemSelectedCore(e)},t.prototype.isItemSelectedCore=function(e){return e.value===this.value},t.prototype.clearDisabledValues=function(){this.survey&&this.survey.clearValueOnDisableItems&&this.clearDisabledValuesCore()},t.prototype.clearIncorrectValuesCore=function(){var e=this.value;this.canClearValueAnUnknow(e)&&this.clearValue()},t.prototype.canClearValueAnUnknow=function(e){return!(!this.getStoreOthersAsComment()&&this.isOtherSelected)&&this.hasUnknownValue(e,!0,!0,!0)},t.prototype.clearDisabledValuesCore=function(){this.isValueDisabled(this.value)&&this.clearValue()},t.prototype.clearUnusedValues=function(){e.prototype.clearUnusedValues.call(this),this.isOtherSelected||(this.otherValue=""),this.showCommentArea||this.getStoreOthersAsComment()||this.isOtherSelected||(this.comment="")},t.prototype.getColumnClass=function(){return(new f.CssClassBuilder).append(this.cssClasses.column).append("sv-q-column-"+this.colCount,this.hasColumns).toString()},t.prototype.getItemIndex=function(e){return this.visibleChoices.indexOf(e)},t.prototype.getItemClass=function(e){var t={item:e},r=this.getItemClassCore(e,t);return t.css=r,this.survey&&this.survey.updateChoiceItemCss(this,t),t.css},t.prototype.getCurrentColCount=function(){return this.colCount},t.prototype.getItemClassCore=function(e,t){var r=(new f.CssClassBuilder).append(this.cssClasses.item).append(this.cssClasses.itemInline,!this.hasColumns&&0===this.colCount).append("sv-q-col-"+this.getCurrentColCount(),!this.hasColumns&&0!==this.colCount).append(this.cssClasses.itemOnError,this.errors.length>0),n=this.isReadOnly||!e.isEnabled,o=this.isItemSelected(e)||this.isOtherSelected&&this.otherItem.value===e.value,i=!(n||o||this.survey&&this.survey.isDesignMode),s=e===this.noneItem;return t.isDisabled=n,t.isChecked=o,t.isNone=s,r.append(this.cssClasses.itemDisabled,n).append(this.cssClasses.itemChecked,o).append(this.cssClasses.itemHover,i).append(this.cssClasses.itemNone,s).toString()},t.prototype.getLabelClass=function(e){return(new f.CssClassBuilder).append(this.cssClasses.label).append(this.cssClasses.labelChecked,this.isItemSelected(e)).toString()},t.prototype.getControlLabelClass=function(e){return(new f.CssClassBuilder).append(this.cssClasses.controlLabel).append(this.cssClasses.controlLabelChecked,this.isItemSelected(e)).toString()||void 0},Object.defineProperty(t.prototype,"headItems",{get:function(){var e=this;return this.separateSpecialChoices||this.isDesignMode?this.visibleChoices.filter((function(t){return e.isHeadChoice(t,e)})):[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footItems",{get:function(){var e=this;return this.separateSpecialChoices||this.isDesignMode?this.visibleChoices.filter((function(t){return e.isFootChoice(t,e)})):[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataChoices",{get:function(){var e=this;return this.visibleChoices.filter((function(t){return!e.isBuiltInChoice(t,e)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyItems",{get:function(){return this.hasHeadItems||this.hasFootItems?this.dataChoices:this.visibleChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasHeadItems",{get:function(){return this.headItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFootItems",{get:function(){return this.footItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){var e=[],t=this.getCurrentColCount();if(this.hasColumns&&this.visibleChoices.length>0){var r=this.separateSpecialChoices||this.isDesignMode?this.dataChoices:this.visibleChoices;if("column"==h.settings.showItemsInOrder)for(var n=0,o=r.length%t,i=0;i<t;i++){for(var s=[],a=n;a<n+Math.floor(r.length/t);a++)s.push(r[a]);o>0&&(o--,s.push(r[a]),a++),n=a,e.push(s)}else for(i=0;i<t;i++){for(s=[],a=i;a<r.length;a+=t)s.push(r[a]);e.push(s)}}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasColumns",{get:function(){return!this.isMobile&&this.getCurrentColCount()>1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowLayout",{get:function(){return 0==this.getCurrentColCount()&&!(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blockedRow",{get:function(){return 0==this.getCurrentColCount()&&(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),t.prototype.choicesLoaded=function(){this.isChoicesLoaded=!0;var e=this.isReadyValue;this.isReadyValue=!0,this.onReadyChanged&&this.onReadyChanged.fire(this,{question:this,isReady:!0,oldIsReady:e}),this.survey&&this.survey.loadedChoicesFromServer(this),this.loadedChoicesFromServerCallback&&this.loadedChoicesFromServerCallback()},t.prototype.getItemValueWrapperComponentName=function(e){var t=this.survey;return t?t.getItemValueWrapperComponentName(e,this):i.SurveyModel.TemplateRendererComponentName},t.prototype.getItemValueWrapperComponentData=function(e){var t=this.survey;return t?t.getItemValueWrapperComponentData(e,this):e},t.prototype.ariaItemChecked=function(e){return this.renderedValue===e.value?"true":"false"},t.prototype.isOtherItem=function(e){return this.hasOther&&e.value==this.otherItem.value},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.getSelectBaseRootCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.rootRow,this.rowLayout).toString()},t.prototype.getAriaItemLabel=function(e){return e.locText.renderedHtml},t.prototype.getItemId=function(e){return this.inputId+"_"+this.getItemIndex(e)},Object.defineProperty(t.prototype,"questionName",{get:function(){return this.name+"_"+this.id},enumerable:!1,configurable:!0}),t.prototype.getItemEnabled=function(e){return!this.isInputReadOnly&&e.isEnabled},t.prototype.afterRender=function(t){e.prototype.afterRender.call(this,t),this.rootElement=t},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.rootElement=void 0},t.prototype.focusOtherComment=function(){var e=this;this.rootElement&&setTimeout((function(){var t=e.rootElement.querySelector("textarea");t&&t.focus()}),10)},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.isDesignMode||this.prevIsOtherSelected||!this.isOtherSelected||this.focusOtherComment(),this.prevIsOtherSelected=this.isOtherSelected},t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"itemComponent",{get:function(){return this.getPropertyValue("itemComponent",this.getDefaultItemComponent())},set:function(e){this.setPropertyValue("itemComponent",e)},enumerable:!1,configurable:!0}),t.prototype.updateCssClasses=function(t,r){if(e.prototype.updateCssClasses.call(this,t,r),this.dropdownListModel){var n={};Object(m.mergeValues)(r.list,n),Object(m.mergeValues)(t.list,n),t.list=n}},t.prototype.calcCssClasses=function(t){var r=e.prototype.calcCssClasses.call(this,t);return this.dropdownListModel&&this.dropdownListModel.updateCssClasses(r.popup,r.list),r},b([Object(o.property)({onSet:function(e,t){t.onSelectedItemValuesChangedHandler(e)}})],t.prototype,"selectedItemValues",void 0),b([Object(o.property)()],t.prototype,"separateSpecialChoices",void 0),b([Object(o.property)({localizable:!0})],t.prototype,"otherPlaceholder",void 0),t}(s.Question),v=function(e){function t(t){return e.call(this,t)||this}return g(t,e),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",this.isFlowLayout?0:1)},set:function(e){e<0||e>5||this.isFlowLayout||(this.setPropertyValue("colCount",e),this.fireCallback(this.colCountChangedCallback))},enumerable:!1,configurable:!0}),t.prototype.clickItemHandler=function(e,t){var r=[].concat(this.renderedValue||[]),n=r.indexOf(e.value);t?n<0&&r.push(e.value):n>-1&&r.splice(n,1),this.renderedValue=r},t.prototype.onParentChanged=function(){e.prototype.onParentChanged.call(this),this.isFlowLayout&&this.setPropertyValue("colCount",null)},t.prototype.onParentQuestionChanged=function(){this.onVisibleChoicesChanged()},t.prototype.getSearchableItemValueKeys=function(e){e.push("choices")},t}(y);o.Serializer.addClass("selectbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"choicesFromQuestion:question_selectbase",{name:"choices:itemvalue[]",uniqueProperty:"value",baseValue:function(){return l.surveyLocalization.getString("choices_Item")},dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesFromQuestionMode",default:"all",choices:["all","selected","unselected"],dependsOn:"choicesFromQuestion",visibleIf:function(e){return!!e.choicesFromQuestion}},{name:"choicesOrder",default:"none",choices:["none","asc","desc","random"],dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesByUrl:restfull",className:"choicesByUrl",onGetValue:function(e){return e.choicesByUrl.getData()},onSetValue:function(e,t){e.choicesByUrl.setData(t)}},"hideIfChoicesEmpty:boolean",{name:"choicesVisibleIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesEnableIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"separateSpecialChoices:boolean",visible:!1},{name:"showOtherItem:boolean",alternativeName:"hasOther"},{name:"showNoneItem:boolean",alternativeName:"hasNone"},{name:"otherPlaceholder",alternativeName:"otherPlaceHolder",serializationProperty:"locOtherPlaceholder",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"noneText",serializationProperty:"locNoneText",dependsOn:"showNoneItem",visibleIf:function(e){return e.hasNone}},{name:"otherText",serializationProperty:"locOtherText",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"otherErrorText",serializationProperty:"locOtherErrorText",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"storeOthersAsComment",default:"default",choices:["default",!0,!1],visible:!1}],null,"question"),o.Serializer.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4,5],layout:"row"}],null,"selectbase")},"./src/question_boolean.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionBooleanModel",(function(){return p}));var n,o=r("./src/questionfactory.ts"),i=r("./src/jsonobject.ts"),s=r("./src/question.ts"),a=r("./src/utils/cssClassBuilder.ts"),l=r("./src/utils/utils.ts"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},p=function(e){function t(t){var r=e.call(this,t)||this;return r.createLocalizableString("labelFalse",r,!0,"booleanUncheckedLabel"),r.createLocalizableString("labelTrue",r,!0,"booleanCheckedLabel"),r}return u(t,e),t.prototype.getType=function(){return"boolean"},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.supportGoNextPageAutomatic=function(){return"checkbox"!==this.renderAs},Object.defineProperty(t.prototype,"isIndeterminate",{get:function(){return this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"booleanValue",{get:function(){return this.isEmpty()?null:this.value==this.getValueTrue()},set:function(e){this.isReadOnly||this.setBooleanValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkedValue",{get:function(){return this.booleanValue},set:function(e){this.booleanValue=e},enumerable:!1,configurable:!0}),t.prototype.setBooleanValue=function(e){this.isValueEmpty(e)?(this.value=null,this.booleanValueRendered=null):(this.value=1==e?this.getValueTrue():this.getValueFalse(),this.booleanValueRendered=e)},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){!0===e&&(e="true"),!1===e&&(e="false"),void 0===e&&(e="indeterminate"),this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),t.prototype.getDefaultValue=function(){return"indeterminate"==this.defaultValue||void 0===this.defaultValue?null:"true"==this.defaultValue?this.getValueTrue():this.getValueFalse()},Object.defineProperty(t.prototype,"locTitle",{get:function(){var e=this.getLocalizableString("title");return!this.isValueEmpty(this.locLabel.text)&&(this.isValueEmpty(e.text)||this.isLabelRendered&&!this.showTitle)?this.locLabel:e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelRenderedAriaID",{get:function(){return this.isLabelRendered?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLabelRendered",{get:function(){return"hidden"===this.titleLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRenderLabelDescription",{get:function(){return this.isLabelRendered&&this.hasDescription&&(this.hasDescriptionUnderTitle||this.hasDescriptionUnderInput)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelTrue",{get:function(){return this.getLocalizableStringText("labelTrue")},set:function(e){this.setLocalizableStringText("labelTrue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelTrue",{get:function(){return this.getLocalizableString("labelTrue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDeterminated",{get:function(){return null!==this.booleanValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelFalse",{get:function(){return this.getLocalizableStringText("labelFalse")},set:function(e){this.setLocalizableStringText("labelFalse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelFalse",{get:function(){return this.getLocalizableString("labelFalse")},enumerable:!1,configurable:!0}),t.prototype.getValueTrue=function(){return void 0===this.valueTrue||this.valueTrue},t.prototype.getValueFalse=function(){return void 0!==this.valueFalse&&this.valueFalse},t.prototype.setDefaultValue=function(){this.isDefaultValueSet("true",this.valueTrue)&&this.setBooleanValue(!0),this.isDefaultValueSet("false",this.valueFalse)&&this.setBooleanValue(!1),"indeterminate"==this.defaultValue&&this.setBooleanValue(null)},t.prototype.isDefaultValueSet=function(e,t){return this.defaultValue==e||void 0!==t&&this.defaultValue===t},t.prototype.getDisplayValueCore=function(e,t){return t==this.getValueTrue()?this.locLabelTrue.textOrHtml:this.locLabelFalse.textOrHtml},t.prototype.getItemCssValue=function(e){return(new a.CssClassBuilder).append(e.item).append(e.itemOnError,this.errors.length>0).append(e.itemDisabled,this.isReadOnly).append(e.itemHover,!this.isDesignMode).append(e.itemChecked,!!this.booleanValue).append(e.itemIndeterminate,null===this.booleanValue).toString()},t.prototype.getItemCss=function(){return this.getItemCssValue(this.cssClasses)},t.prototype.getCheckboxItemCss=function(){return this.getItemCssValue({item:this.cssClasses.checkboxItem,itemOnError:this.cssClasses.checkboxItemOnError,itemDisabled:this.cssClasses.checkboxItemDisabled,itemChecked:this.cssClasses.checkboxItemChecked,itemIndeterminate:this.cssClasses.checkboxItemIndeterminate})},t.prototype.getLabelCss=function(e){return(new a.CssClassBuilder).append(this.cssClasses.label).append(this.cssClasses.disabledLabel,this.booleanValue===!e||this.isReadOnly).toString()},Object.defineProperty(t.prototype,"svgIcon",{get:function(){return this.booleanValue&&this.cssClasses.svgIconCheckedId?this.cssClasses.svgIconCheckedId:null===this.booleanValue&&this.cssClasses.svgIconIndId?this.cssClasses.svgIconIndId:!this.booleanValue&&this.cssClasses.svgIconUncheckedId?this.cssClasses.svgIconUncheckedId:this.cssClasses.svgIconId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClick",{get:function(){return this.isIndeterminate&&!this.isInputReadOnly},enumerable:!1,configurable:!0}),t.prototype.getCheckedLabel=function(){return!0===this.booleanValue?this.locLabelTrue:!1===this.booleanValue?this.locLabelFalse:void 0},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),"true"===t&&"true"!==this.valueTrue&&(t=!0),"false"===t&&"false"!==this.valueFalse&&(t=!1),"indeterminate"===t&&(t=null),e.prototype.setQuestionValue.call(this,t,r)},t.prototype.onLabelClick=function(e,t){return this.allowClick&&(Object(l.preventDefaults)(e),this.booleanValue=t),!0},t.prototype.calculateBooleanValueByEvent=function(e,t){var r="rtl"==document.defaultView.getComputedStyle(e.target).direction;this.booleanValue=r?!t:t},t.prototype.onSwitchClickModel=function(e){if(!this.allowClick)return!0;Object(l.preventDefaults)(e);var t=e.offsetX/e.target.offsetWidth>.5;this.calculateBooleanValueByEvent(e,t)},t.prototype.onKeyDownCore=function(e){return"ArrowLeft"!==e.key&&"ArrowRight"!==e.key||(Object(l.preventDefaults)(e),void this.calculateBooleanValueByEvent(e,"ArrowRight"===e.key))},t.prototype.getRadioItemClass=function(e,t){var r=void 0;return e.radioItem&&(r=e.radioItem),e.radioItemChecked&&t===this.booleanValue&&(r=(r?r+" ":"")+e.radioItemChecked),r},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getCompactRenderAs=function(){return"radio"},t.prototype.createActionContainer=function(t){return e.prototype.createActionContainer.call(this,"checkbox"!==this.renderAs)},c([Object(i.property)()],t.prototype,"booleanValueRendered",void 0),c([Object(i.property)()],t.prototype,"showTitle",void 0),c([Object(i.property)({localizable:!0})],t.prototype,"label",void 0),c([Object(i.property)()],t.prototype,"valueTrue",void 0),c([Object(i.property)()],t.prototype,"valueFalse",void 0),t}(s.Question);i.Serializer.addClass("boolean",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"label:text",serializationProperty:"locLabel",isSerializable:!1,visible:!1},{name:"labelTrue:text",serializationProperty:"locLabelTrue"},{name:"labelFalse:text",serializationProperty:"locLabelFalse"},"valueTrue","valueFalse",{name:"renderAs",default:"default",visible:!1}],(function(){return new p("")}),"question"),o.QuestionFactory.Instance.registerQuestion("boolean",(function(e){return new p(e)}))},"./src/question_buttongroup.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ButtonGroupItemValue",(function(){return c})),r.d(t,"QuestionButtonGroupModel",(function(){return p})),r.d(t,"ButtonGroupItemModel",(function(){return d}));var n,o=r("./src/jsonobject.ts"),i=r("./src/itemvalue.ts"),s=r("./src/question_baseselect.ts"),a=r("./src/utils/cssClassBuilder.ts"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},c=function(e){function t(t,r,n){void 0===r&&(r=null),void 0===n&&(n="buttongroupitemvalue");var o=e.call(this,t,r,n)||this;return o.typeName=n,o}return l(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"buttongroupitemvalue"},u([Object(o.property)()],t.prototype,"iconName",void 0),u([Object(o.property)()],t.prototype,"iconSize",void 0),u([Object(o.property)()],t.prototype,"showCaption",void 0),t}(i.ItemValue),p=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getType=function(){return"buttongroup"},t.prototype.getItemValueType=function(){return"buttongroupitemvalue"},t.prototype.supportOther=function(){return!1},t}(s.QuestionCheckboxBase);o.Serializer.addClass("buttongroup",[{name:"choices:buttongroupitemvalue[]"}],(function(){return new p("")}),"checkboxbase"),o.Serializer.addClass("buttongroupitemvalue",[{name:"showCaption:boolean",default:!0},{name:"iconName:text"},{name:"iconSize:number"}],(function(e){return new c(e)}),"itemvalue");var d=function(){function e(e,t,r){this.question=e,this.item=t,this.index=r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconName",{get:function(){return this.item.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconSize",{get:function(){return this.item.iconSize||24},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"caption",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showCaption",{get:function(){return this.item.showCaption||void 0===this.item.showCaption},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.question.isRequired},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.question.isItemSelected(this.item)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"readOnly",{get:function(){return this.question.isInputReadOnly||!this.item.isEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.question.name+"_"+this.question.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.question.inputId+"_"+this.index},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return this.question.errors.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"describedBy",{get:function(){return this.question.errors.length>0?this.question.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelClass",{get:function(){return(new a.CssClassBuilder).append(this.question.cssClasses.item).append(this.question.cssClasses.itemSelected,this.selected).append(this.question.cssClasses.itemHover,!this.readOnly&&!this.selected).append(this.question.cssClasses.itemDisabled,this.question.isReadOnly||!this.item.isEnabled).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return{label:this.labelClass,icon:this.question.cssClasses.itemIcon,control:this.question.cssClasses.itemControl,caption:this.question.cssClasses.itemCaption,decorator:this.question.cssClasses.itemDecorator}},enumerable:!1,configurable:!0}),e.prototype.onChange=function(){this.question.renderedValue=this.item.value},e}()},"./src/question_checkbox.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionCheckboxModel",(function(){return p}));var n,o=r("./src/jsonobject.ts"),i=r("./src/questionfactory.ts"),s=r("./src/question_baseselect.ts"),a=r("./src/helpers.ts"),l=r("./src/itemvalue.ts"),u=r("./src/utils/cssClassBuilder.ts"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(t){var r=e.call(this,t)||this;r.selectAllItemValue=new l.ItemValue("selectall"),r.invisibleOldValues={},r.isChangingValueOnClearIncorrect=!1;var n=r.createLocalizableString("selectAllText",r.selectAllItem,!0,"selectAllItemText");return r.selectAllItem.locOwner=r,r.selectAllItem.setLocText(n),r.registerPropertyChangedHandlers(["showSelectAllItem","selectAllText"],(function(){r.onVisibleChoicesChanged()})),r}return c(t,e),t.prototype.getDefaultItemComponent=function(){return"survey-checkbox-item"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"listbox"},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"checkbox"},t.prototype.onCreating=function(){e.prototype.onCreating.call(this),this.createNewArray("renderedValue"),this.createNewArray("value")},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"valuePropertyName",{get:function(){return this.getPropertyValue("valuePropertyName")},set:function(e){this.setPropertyValue("valuePropertyName",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,t){if(e&&e===this.valuePropertyName){var r=this.value;if(Array.isArray(r)&&t<r.length)return this}return null},Object.defineProperty(t.prototype,"selectAllItem",{get:function(){return this.selectAllItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectAllText",{get:function(){return this.getLocalizableStringText("selectAllText")},set:function(e){this.setLocalizableStringText("selectAllText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locSelectAllText",{get:function(){return this.getLocalizableString("selectAllText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectAllItem",{get:function(){return this.getPropertyValue("showSelectAllItem")},set:function(e){this.setPropertyValue("showSelectAllItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelectAll",{get:function(){return this.showSelectAllItem},set:function(e){this.showSelectAllItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllSelected",{get:function(){var e=this.value;if(!e||!Array.isArray(e))return!1;if(this.isItemSelected(this.noneItem))return!1;var t=this.visibleChoices.length;this.hasOther&&t--,this.hasNone&&t--,this.hasSelectAll&&t--;var r=e.length;return this.isOtherSelected&&r--,r===t},set:function(e){e?this.selectAll():this.clearValue()},enumerable:!1,configurable:!0}),t.prototype.toggleSelectAll=function(){this.isAllSelected=!this.isAllSelected},t.prototype.selectAll=function(){for(var e=[],t=0;t<this.visibleChoices.length;t++){var r=this.visibleChoices[t];r!==this.noneItem&&r!==this.otherItem&&r!==this.selectAllItem&&e.push(r.value)}this.renderedValue=e},t.prototype.isItemSelectedCore=function(e){if(e===this.selectAllItem)return this.isAllSelected;var t=this.renderedValue;if(!t||!Array.isArray(t))return!1;for(var r=0;r<t.length;r++)if(this.isTwoValueEquals(t[r],e.value))return!0;return!1},t.prototype.getRealValue=function(e){return e&&this.valuePropertyName?e[this.valuePropertyName]:e},Object.defineProperty(t.prototype,"maxSelectedChoices",{get:function(){return this.getPropertyValue("maxSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("maxSelectedChoices",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedChoices",{get:function(){if(this.isEmpty())return[];var e=this.renderedValue,t=this.defaultSelectedItemValues?[].concat(this.defaultSelectedItemValues,this.visibleChoices):this.visibleChoices,r=e.map((function(e){return l.ItemValue.getItemByValue(t,e)})).filter((function(e){return!!e}));return r.length||this.selectedItemValues||this.updateSelectedItemValues(),this.validateItemValues(r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItems",{get:function(){return this.selectedChoices},enumerable:!1,configurable:!0}),t.prototype.validateItemValues=function(e){if(e.length)return e;var t=this.selectedItemValues;return t&&t.length?(this.defaultSelectedItemValues=[].concat(t),t):this.renderedValue.map((function(e){return new l.ItemValue(e)}))},t.prototype.onEnableItemCallBack=function(e){return!this.shouldCheckMaxSelectedChoices()||this.isItemSelected(e)},t.prototype.onAfterRunItemsEnableCondition=function(){if(this.maxSelectedChoices<1)return this.selectAllItem.setIsEnabled(!0),void this.otherItem.setIsEnabled(!0);this.hasSelectAll&&this.selectAllItem.setIsEnabled(this.maxSelectedChoices>=this.activeChoices.length),this.hasOther&&this.otherItem.setIsEnabled(!this.shouldCheckMaxSelectedChoices()||this.isOtherSelected)},t.prototype.shouldCheckMaxSelectedChoices=function(){if(this.maxSelectedChoices<1)return!1;var e=this.value;return(Array.isArray(e)?e.length:0)>=this.maxSelectedChoices},t.prototype.getItemClassCore=function(t,r){return this.value,r.isSelectAllItem=t===this.selectAllItem,(new u.CssClassBuilder).append(e.prototype.getItemClassCore.call(this,t,r)).append(this.cssClasses.itemSelectAll,r.isSelectAllItem).toString()},t.prototype.updateValueFromSurvey=function(t){e.prototype.updateValueFromSurvey.call(this,t),this.invisibleOldValues={}},t.prototype.setDefaultValue=function(){e.prototype.setDefaultValue.call(this);var t=this.defaultValue;if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=this.getRealValue(t[r]);this.canClearValueAnUnknow(n)&&this.addIntoInvisibleOldValues(n)}},t.prototype.addIntoInvisibleOldValues=function(e){this.invisibleOldValues[e]=e},t.prototype.hasValueToClearIncorrectValues=function(){return e.prototype.hasValueToClearIncorrectValues.call(this)||!a.Helpers.isValueEmpty(this.invisibleOldValues)},t.prototype.setNewValue=function(t){this.isChangingValueOnClearIncorrect||(this.invisibleOldValues={}),t=this.valueFromData(t);var r=this.value;if(t||(t=[]),r||(r=[]),!this.isTwoValueEquals(r,t)){if(this.hasNone){var n=this.noneIndexInArray(r),o=this.noneIndexInArray(t);n>-1?o>-1&&t.length>1&&t.splice(o,1):o>-1&&(t.splice(0,t.length),t.push(this.noneItem.value))}e.prototype.setNewValue.call(this,t)}},t.prototype.getIsMultipleValue=function(){return!0},t.prototype.getCommentFromValue=function(e){var t=this.getFirstUnknownIndex(e);return t<0?"":e[t]},t.prototype.setOtherValueIntoValue=function(e){var t=this.getFirstUnknownIndex(e);return t<0||e.splice(t,1,this.otherItem.value),e},t.prototype.getFirstUnknownIndex=function(e){if(!Array.isArray(e))return-1;for(var t=0;t<e.length;t++)if(this.hasUnknownValue(e[t],!1,!1))return t;return-1},t.prototype.noneIndexInArray=function(e){if(!e||!Array.isArray(e))return-1;for(var t=this.noneItem.value,r=0;r<e.length;r++)if(e[r]==t)return r;return-1},t.prototype.canUseFilteredChoices=function(){return!this.hasSelectAll&&e.prototype.canUseFilteredChoices.call(this)},t.prototype.supportSelectAll=function(){return this.isSupportProperty("showSelectAllItem")},t.prototype.addToVisibleChoices=function(t,r){this.supportSelectAll()&&this.canShowOptionItem(this.selectAllItem,r,this.hasSelectAll)&&t.unshift(this.selectAllItem),e.prototype.addToVisibleChoices.call(this,t,r)},t.prototype.isHeadChoice=function(e,t){return e===t.selectAllItem},t.prototype.isItemInList=function(t){return t==this.selectAllItem?this.hasSelectAll:e.prototype.isItemInList.call(this,t)},t.prototype.getDisplayValueCore=function(t,r){if(!Array.isArray(r))return e.prototype.getDisplayValueCore.call(this,t,r);var n=this.valuePropertyName;return this.getDisplayArrayValue(t,r,(function(e){var t=r[e];return n&&t[n]&&(t=t[n]),t}))},t.prototype.clearIncorrectValuesCore=function(){this.clearIncorrectAndDisabledValues(!1)},t.prototype.clearDisabledValuesCore=function(){this.clearIncorrectAndDisabledValues(!0)},t.prototype.clearIncorrectAndDisabledValues=function(e){var t=this.value,r=!1,n=this.restoreValuesFromInvisible();if(t||0!=n.length){if(!Array.isArray(t)||0==t.length){if(this.isChangingValueOnClearIncorrect=!0,e||(this.hasComment?this.value=null:this.clearValue()),this.isChangingValueOnClearIncorrect=!1,0==n.length)return;t=[]}for(var o=[],i=0;i<t.length;i++){var s=this.getRealValue(t[i]),a=this.canClearValueAnUnknow(s);!e&&!a||e&&!this.isValueDisabled(s)?o.push(t[i]):(r=!0,a&&this.addIntoInvisibleOldValues(t[i]))}for(i=0;i<n.length;i++)o.push(n[i]),r=!0;r&&(this.isChangingValueOnClearIncorrect=!0,0==o.length?this.clearValue():this.value=o,this.isChangingValueOnClearIncorrect=!1)}},t.prototype.restoreValuesFromInvisible=function(){for(var e=[],t=this.visibleChoices,r=0;r<t.length;r++){var n=t[r].value;a.Helpers.isTwoValueEquals(n,this.invisibleOldValues[n])&&(this.isItemSelected(t[r])||e.push(n),delete this.invisibleOldValues[n])}return e},t.prototype.getConditionJson=function(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.prototype.getConditionJson.call(this);return"contains"!=t&&"notcontains"!=t||(n.type="radiogroup"),n.maxSelectedChoices=0,n},t.prototype.isAnswerCorrect=function(){return a.Helpers.isArrayContainsEqual(this.value,this.correctAnswer)},t.prototype.setDefaultValueWithOthers=function(){this.value=this.renderedValueFromDataCore(this.defaultValue)},t.prototype.getIsItemValue=function(e,t){return!(!e||!Array.isArray(e))&&e.indexOf(t.value)>=0},t.prototype.valueFromData=function(t){if(!t)return t;if(!Array.isArray(t))return[e.prototype.valueFromData.call(this,t)];for(var r=[],n=0;n<t.length;n++){var o=l.ItemValue.getItemByValue(this.activeChoices,t[n]);o?r.push(o.value):r.push(t[n])}return r},t.prototype.rendredValueFromData=function(t){return t=this.convertValueFromObject(t),e.prototype.rendredValueFromData.call(this,t)},t.prototype.rendredValueToData=function(t){return t=e.prototype.rendredValueToData.call(this,t),this.convertValueToObject(t)},t.prototype.convertValueFromObject=function(e){return this.valuePropertyName?a.Helpers.convertArrayObjectToValue(e,this.valuePropertyName):e},t.prototype.convertValueToObject=function(e){if(!this.valuePropertyName)return e;var t=void 0;return this.survey&&this.survey.questionCountByValueName(this.getValueName())>1&&(t=this.data.getValue(this.getValueName())),a.Helpers.convertArrayValueToObject(e,this.valuePropertyName,t)},t.prototype.renderedValueFromDataCore=function(e){if(e&&Array.isArray(e)||(e=[]),!this.hasActiveChoices)return e;for(var t=0;t<e.length;t++){if(e[t]==this.otherItem.value)return e;if(this.hasUnknownValue(e[t],!0,!1)){this.otherValue=e[t];var r=e.slice();return r[t]=this.otherItem.value,r}}return e},t.prototype.rendredValueToDataCore=function(e){if(!e||!e.length)return e;for(var t=0;t<e.length;t++)if(e[t]==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()){var r=e.slice();return r[t]=this.otherValue,r}return e},t.prototype.selectOtherValueFromComment=function(e){var t=[],r=this.renderedValue;if(Array.isArray(r))for(var n=0;n<r.length;n++)r[n]!==this.otherItem.value&&t.push(r[n]);e&&t.push(this.otherItem.value),this.value=t},Object.defineProperty(t.prototype,"checkBoxSvgPath",{get:function(){return"M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"},enumerable:!1,configurable:!0}),t}(s.QuestionCheckboxBase);o.Serializer.addClass("checkbox",[{name:"showSelectAllItem:boolean",alternativeName:"hasSelectAll"},{name:"separateSpecialChoices",visible:!0},{name:"maxSelectedChoices:number",default:0},{name:"selectAllText",serializationProperty:"locSelectAllText",dependsOn:"showSelectAllItem",visibleIf:function(e){return e.hasSelectAll}},{name:"valuePropertyName",category:"data"},{name:"itemComponent",visible:!1,default:"survey-checkbox-item"}],(function(){return new p("")}),"checkboxbase"),i.QuestionFactory.Instance.registerQuestion("checkbox",(function(e){var t=new p(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_comment.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionCommentModel",(function(){return c}));var n,o=r("./src/jsonobject.ts"),i=r("./src/questionfactory.ts"),s=r("./src/question_textbase.ts"),a=r("./src/utils/utils.ts"),l=r("./src/settings.ts"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){this.setPropertyValue("rows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this.getPropertyValue("cols")},set:function(e){this.setPropertyValue("cols",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptCarriageReturn",{get:function(){return this.getPropertyValue("acceptCarriageReturn")},set:function(e){this.setPropertyValue("acceptCarriageReturn",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrow",{get:function(){return this.getPropertyValue("autoGrow")||this.survey&&this.survey.autoGrowComment},set:function(e){this.setPropertyValue("autoGrow",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResize",{get:function(){return this.getPropertyValue("allowResize")&&this.survey&&this.survey.allowResizeComment},set:function(e){this.setPropertyValue("allowResize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.allowResize?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"comment"},t.prototype.afterRenderQuestionElement=function(t){var r=l.settings.environment.root;this.element=r.getElementById(this.inputId)||t,this.updateElement(),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.updateElement=function(){var e=this;this.element&&this.autoGrow&&setTimeout((function(){return Object(a.increaseHeightByContent)(e.element)}),1)},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.element=void 0},t.prototype.onInput=function(e){this.isInputTextUpdate?this.value=e.target.value:this.updateElement(),this.updateRemainingCharacterCounter(e.target.value)},t.prototype.onKeyDown=function(e){this.acceptCarriageReturn||"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),e.stopPropagation())},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.updateElement()},t.prototype.setNewValue=function(t){!this.acceptCarriageReturn&&t&&(t=t.replace(new RegExp("(\r\n|\n|\r)","gm"),"")),e.prototype.setNewValue.call(this,t)},Object.defineProperty(t.prototype,"className",{get:function(){return(this.cssClasses?this.getControlClass():"panel-comment-root")||void 0},enumerable:!1,configurable:!0}),t}(s.QuestionTextBase);o.Serializer.addClass("comment",[{name:"maxLength:number",default:-1},{name:"cols:number",default:50,visible:!1,isSerializable:!1},{name:"rows:number",default:4},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"]},{name:"autoGrow:boolean"},{name:"allowResize:boolean",default:!0},{name:"acceptCarriageReturn:boolean",default:!0,visible:!1}],(function(){return new c("")}),"textbase"),i.QuestionFactory.Instance.registerQuestion("comment",(function(e){return new c(e)}))},"./src/question_custom.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ComponentQuestionJSON",(function(){return p})),r.d(t,"ComponentCollection",(function(){return d})),r.d(t,"QuestionCustomModelBase",(function(){return h})),r.d(t,"QuestionCustomModel",(function(){return f})),r.d(t,"QuestionCompositeModel",(function(){return g}));var n,o=r("./src/question.ts"),i=r("./src/jsonobject.ts"),s=r("./src/survey-element.ts"),a=r("./src/helpers.ts"),l=r("./src/textPreProcessor.ts"),u=r("./src/utils/cssClassBuilder.ts"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(){function e(e,t){this.name=e,this.json=t;var r=this;i.Serializer.addClass(e,[],(function(e){return d.Instance.createQuestion(e?e.name:"",r)}),"question"),this.onInit()}return e.prototype.onInit=function(){this.json.onInit&&this.json.onInit()},e.prototype.onCreated=function(e){this.json.onCreated&&this.json.onCreated(e)},e.prototype.onLoaded=function(e){this.json.onLoaded&&this.json.onLoaded(e)},e.prototype.onAfterRender=function(e,t){this.json.onAfterRender&&this.json.onAfterRender(e,t)},e.prototype.onAfterRenderContentElement=function(e,t,r){this.json.onAfterRenderContentElement&&this.json.onAfterRenderContentElement(e,t,r)},e.prototype.onUpdateQuestionCssClasses=function(e,t,r){this.json.onUpdateQuestionCssClasses&&this.json.onUpdateQuestionCssClasses(e,t,r)},e.prototype.onPropertyChanged=function(e,t,r){this.json.onPropertyChanged&&this.json.onPropertyChanged(e,t,r)},e.prototype.onValueChanged=function(e,t,r){this.json.onValueChanged&&this.json.onValueChanged(e,t,r)},e.prototype.onValueChanging=function(e,t,r){return this.json.onValueChanging?this.json.onValueChanging(e,t,r):r},e.prototype.onItemValuePropertyChanged=function(e,t,r,n,o){this.json.onItemValuePropertyChanged&&this.json.onItemValuePropertyChanged(e,{obj:t,propertyName:r,name:n,newValue:o})},e.prototype.getDisplayValue=function(e,t,r){return this.json.getDisplayValue?this.json.getDisplayValue(r):r.getDisplayValue(e,t)},Object.defineProperty(e.prototype,"isComposite",{get:function(){return!!this.json.elementsJSON||!!this.json.createElements},enumerable:!1,configurable:!0}),e}(),d=function(){function e(){this.customQuestionValues=[]}return e.prototype.add=function(e){if(e){var t=e.name;if(!t)throw"Attribute name is missed";if(t=t.toLowerCase(),this.getCustomQuestionByName(t))throw"There is already registered custom question with name '"+t+"'";if(i.Serializer.findClass(t))throw"There is already class with name '"+t+"'";var r=new p(t,e);this.onAddingJson&&this.onAddingJson(t,r.isComposite),this.customQuestionValues.push(r)}},Object.defineProperty(e.prototype,"items",{get:function(){return this.customQuestionValues},enumerable:!1,configurable:!0}),e.prototype.getCustomQuestionByName=function(e){for(var t=0;t<this.customQuestionValues.length;t++)if(this.customQuestionValues[t].name==e)return this.customQuestionValues[t];return null},e.prototype.clear=function(){for(var e=0;e<this.customQuestionValues.length;e++)i.Serializer.removeClass(this.customQuestionValues[e].name);this.customQuestionValues=[]},e.prototype.createQuestion=function(e,t){return t.isComposite?this.createCompositeModel(e,t):this.createCustomModel(e,t)},e.prototype.createCompositeModel=function(e,t){return this.onCreateComposite?this.onCreateComposite(e,t):new g(e,t)},e.prototype.createCustomModel=function(e,t){return this.onCreateCustom?this.onCreateCustom(e,t):new f(e,t)},e.Instance=new e,e}(),h=function(e){function t(t,r){var n=e.call(this,t)||this;return n.customQuestion=r,i.CustomPropertiesCollection.createProperties(n),s.SurveyElement.CreateDisabledDesignElements=!0,n.createWrapper(),s.SurveyElement.CreateDisabledDesignElements=!1,n.customQuestion&&n.customQuestion.onCreated(n),n}return c(t,e),t.prototype.getType=function(){return this.customQuestion?this.customQuestion.name:"custom"},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().locStrsChanged()},t.prototype.createWrapper=function(){},t.prototype.onPropertyValueChanged=function(t,r,n){e.prototype.onPropertyValueChanged.call(this,t,r,n),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onPropertyChanged(this,t,n)},t.prototype.itemValuePropertyChanged=function(t,r,n,o){e.prototype.itemValuePropertyChanged.call(this,t,r,n,o),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onItemValuePropertyChanged(this,t,t.ownerPropertyName,r,o)},t.prototype.onFirstRendering=function(){var t=this.getElement();t&&t.onFirstRendering(),e.prototype.onFirstRendering.call(this)},t.prototype.getProgressInfo=function(){var t=e.prototype.getProgressInfo.call(this);return this.getElement()&&(t=this.getElement().getProgressInfo()),this.isRequired&&0==t.requiredQuestionCount&&(t.requiredQuestionCount=1,this.isEmpty()||(t.answeredQuestionCount=1)),t},t.prototype.initElement=function(e){e&&(e.setSurveyImpl(this),e.disableDesignActions=!0)},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r),this.initElement(this.getElement())},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.getElement()&&(this.getElement().onSurveyLoad(),this.customQuestion.onLoaded(this))},t.prototype.afterRenderQuestionElement=function(e){},t.prototype.afterRender=function(t){e.prototype.afterRender.call(this,t),this.customQuestion&&this.customQuestion.onAfterRender(this,t)},t.prototype.onUpdateQuestionCssClasses=function(e,t){this.customQuestion&&this.customQuestion.onUpdateQuestionCssClasses(this,e,t)},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),e.prototype.setQuestionValue.call(this,t,r),this.updateElementCss()},t.prototype.setNewValue=function(t){e.prototype.setNewValue.call(this,t),this.updateElementCss()},t.prototype.getSurveyData=function(){return this},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getValue=function(e){return this.value},t.prototype.setValue=function(e,t,r,n){if(this.data){var o=this.convertDataName(e),i=this.convertDataValue(e,t);this.valueToDataCallback&&(i=this.valueToDataCallback(i)),this.data.setValue(o,i,r,n),this.updateIsAnswered(),this.updateElementCss(),this.customQuestion&&this.customQuestion.onValueChanged(this,e,t)}},t.prototype.getQuestionByName=function(e){},t.prototype.isValueChanging=function(e,t){if(this.customQuestion){var r=t;if(t=this.customQuestion.onValueChanging(this,e,t),!a.Helpers.isTwoValueEquals(t,r)){var n=this.getQuestionByName(e);if(n)return n.value=t,!0}}return!1},t.prototype.convertDataName=function(e){return this.getValueName()},t.prototype.convertDataValue=function(e,t){return t},t.prototype.getVariable=function(e){return this.data?this.data.getVariable(e):null},t.prototype.setVariable=function(e,t){this.data&&this.data.setVariable(e,t)},t.prototype.getComment=function(e){return this.data?this.data.getComment(this.getValueName()):""},t.prototype.setComment=function(e,t,r){this.data&&this.data.setComment(this.getValueName(),t,r)},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():{}},t.prototype.getFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getFilteredProperties=function(){return this.data?this.data.getFilteredProperties():{}},t.prototype.findQuestionByName=function(e){return this.data?this.data.findQuestionByName(e):null},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return-1},t.prototype.ensureRowsVisibility=function(){},t.prototype.getContentDisplayValueCore=function(t,r,n){return n?this.customQuestion.getDisplayValue(t,r,n):e.prototype.getDisplayValueCore.call(this,t,r)},t}(o.Question),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.getTemplate=function(){return"custom"},t.prototype.createWrapper=function(){this.questionWrapper=this.createQuestion()},t.prototype.getElement=function(){return this.contentQuestion},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t),this.contentQuestion&&this.contentQuestion.onAnyValueChanged(t)},t.prototype.getQuestionByName=function(e){return this.contentQuestion},t.prototype.setValue=function(t,r,n,o){this.isValueChanging(t,r)||e.prototype.setValue.call(this,t,r,n,o)},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.survey&&!this.isEmpty()&&this.setValue(this.name,this.value,!1,this.allowNotifyValueChanged)},t.prototype.hasErrors=function(t,r){if(void 0===t&&(t=!0),void 0===r&&(r=null),!this.contentQuestion)return!1;var n=this.contentQuestion.hasErrors(t,r);this.errors=[];for(var o=0;o<this.contentQuestion.errors.length;o++)this.errors.push(this.contentQuestion.errors[o]);return n||(n=e.prototype.hasErrors.call(this,t,r)),this.updateElementCss(),n},t.prototype.focus=function(t){void 0===t&&(t=!1),this.contentQuestion?this.contentQuestion.focus(t):e.prototype.focus.call(this,t)},Object.defineProperty(t.prototype,"contentQuestion",{get:function(){return this.questionWrapper},enumerable:!1,configurable:!0}),t.prototype.createQuestion=function(){var e=this,t=this.customQuestion.json,r=null;if(t.questionJSON){var n=t.questionJSON.type;if(!n||!i.Serializer.findClass(n))throw"type attribute in questionJSON is empty or incorrect";r=i.Serializer.createClass(n),this.initElement(r),r.fromJSON(t.questionJSON)}else t.createQuestion&&(r=t.createQuestion(),this.initElement(r));return r&&(r.isContentElement=!0,r.name||(r.name="question"),r.onUpdateCssClassesCallback=function(t){e.onUpdateQuestionCssClasses(r,t)}),r},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.contentQuestion&&this.isEmpty()&&!this.contentQuestion.isEmpty()&&(this.value=this.contentQuestion.value)},t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.contentQuestion&&this.contentQuestion.runCondition(t,r)},t.prototype.convertDataName=function(t){if(!this.contentQuestion)return e.prototype.convertDataName.call(this,t);var r=t.replace(this.contentQuestion.getValueName(),this.getValueName());return 0==r.indexOf(this.getValueName())?r:e.prototype.convertDataName.call(this,t)},t.prototype.convertDataValue=function(t,r){return this.convertDataName(t)==e.prototype.convertDataName.call(this,t)?this.contentQuestion.value:r},t.prototype.canSetValueToSurvey=function(){return!1},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),e.prototype.setQuestionValue.call(this,t,r),this.isLoadingFromJson||!this.contentQuestion||this.isTwoValueEquals(this.contentQuestion.value,t)||(this.contentQuestion.value=this.getUnbindValue(t))},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.contentQuestion&&this.contentQuestion.onSurveyValueChanged(t)},t.prototype.getValueCore=function(){return this.contentQuestion?this.contentQuestion.value:e.prototype.getValueCore.call(this)},t.prototype.initElement=function(t){var r=this;e.prototype.initElement.call(this,t),t&&(t.parent=this,t.afterRenderQuestionCallback=function(e,t){r.customQuestion&&r.customQuestion.onAfterRenderContentElement(r,e,t)})},t.prototype.updateElementCss=function(t){this.contentQuestion&&this.questionWrapper.updateElementCss(t),e.prototype.updateElementCss.call(this,t)},t.prototype.updateElementCssCore=function(t){this.contentQuestion&&(t=this.contentQuestion.cssClasses),e.prototype.updateElementCssCore.call(this,t)},t.prototype.getDisplayValueCore=function(t,r){return e.prototype.getContentDisplayValueCore.call(this,t,r,this.contentQuestion)},t}(h),m=function(e){function t(t,r){var n=e.call(this,r)||this;return n.composite=t,n.variableName=r,n}return c(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.composite.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.composite.contentPanel},enumerable:!1,configurable:!0}),t}(l.QuestionTextProcessor),g=function(e){function t(r,n){var o=e.call(this,r,n)||this;return o.customQuestion=n,o.settingNewValue=!1,o.textProcessing=new m(o,t.ItemVariableName),o}return c(t,e),t.prototype.createWrapper=function(){this.panelWrapper=this.createPanel()},t.prototype.getTemplate=function(){return"composite"},t.prototype.getElement=function(){return this.contentPanel},t.prototype.getCssRoot=function(t){return(new u.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(t.composite).toString()},Object.defineProperty(t.prototype,"contentPanel",{get:function(){return this.panelWrapper},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(t,r){void 0===t&&(t=!0),void 0===r&&(r=null);var n=e.prototype.hasErrors.call(this,t,r);return this.contentPanel&&this.contentPanel.hasErrors(t,!1,r)||n},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t),this.contentPanel&&this.contentPanel.updateElementCss(t)},t.prototype.getTextProcessor=function(){return this.textProcessing},t.prototype.findQuestionByName=function(t){return this.getQuestionByName(t)||e.prototype.findQuestionByName.call(this,t)},t.prototype.clearValueIfInvisibleCore=function(){e.prototype.clearValueIfInvisibleCore.call(this);for(var t=this.contentPanel.questions,r=0;r<t.length;r++)t[r].clearValueIfInvisible()},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t);for(var r=this.contentPanel.questions,n=0;n<r.length;n++)r[n].onAnyValueChanged(t)},t.prototype.createPanel=function(){var e=this,t=i.Serializer.createClass("panel");t.showQuestionNumbers="off",t.renderWidth="100%";var r=this.customQuestion.json;return r.elementsJSON&&t.fromJSON({elements:r.elementsJSON}),r.createElements&&r.createElements(t,this),this.initElement(t),t.readOnly=this.isReadOnly,t.questions.forEach((function(t){return t.onUpdateCssClassesCallback=function(r){e.onUpdateQuestionCssClasses(t,r)}})),this.setAfterRenderCallbacks(t),t},t.prototype.onReadOnlyChanged=function(){this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly),e.prototype.onReadOnlyChanged.call(this)},t.prototype.onSurveyLoad=function(){if(this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly,this.setIsContentElement(this.contentPanel)),e.prototype.onSurveyLoad.call(this),this.contentPanel){var t=this.contentPanel.getValue();a.Helpers.isValueEmpty(t)||(this.value=t)}},t.prototype.setIsContentElement=function(e){e.isContentElement=!0;for(var t=e.elements,r=0;r<t.length;r++){var n=t[r];n.isPanel?this.setIsContentElement(n):n.isContentElement=!0}},t.prototype.setVisibleIndex=function(t){var r=e.prototype.setVisibleIndex.call(this,t);return this.isVisible&&this.contentPanel&&(r+=this.contentPanel.setVisibleIndex(t)),r},t.prototype.runCondition=function(r,n){if(e.prototype.runCondition.call(this,r,n),this.contentPanel){var o=r[t.ItemVariableName];r[t.ItemVariableName]=this.contentPanel.getValue(),this.contentPanel.runCondition(r,n),delete r[t.ItemVariableName],o&&(r[t.ItemVariableName]=o)}},t.prototype.getValue=function(e){var t=this.value;return t?t[e]:null},t.prototype.getQuestionByName=function(e){return this.contentPanel?this.contentPanel.getQuestionByName(e):void 0},t.prototype.setValue=function(t,r,n,o){if(!this.settingNewValue&&!this.isValueChanging(t,r)){if(this.settingNewValue=!0,!this.isEditingSurveyElement&&this.contentPanel){var i=this.contentPanel.getValue();this.isTwoValueEquals(this.getValueCore(),i)||this.setValueCore(i)}this.setNewValueIntoQuestion(t,r),e.prototype.setValue.call(this,t,r,n,o),this.settingNewValue=!1}},t.prototype.setNewValueIntoQuestion=function(e,t){var r=this.getQuestionByName(e);r&&!this.isTwoValueEquals(t,r.value)&&(r.value=t)},t.prototype.addConditionObjectsByContext=function(e,t){if(this.contentPanel)for(var r=this.contentPanel.questions,n=this.name,o=this.title,i=0;i<r.length;i++)e.push({name:n+"."+r[i].name,text:o+"."+r[i].title,question:r[i]})},t.prototype.convertDataValue=function(e,t){var r=this.value;return r||(r={}),this.isValueEmpty(t)&&!this.isEditingSurveyElement?delete r[e]:r[e]=t,r},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),this.setValuesIntoQuestions(t),!this.isEditingSurveyElement&&this.contentPanel&&(t=this.contentPanel.getValue()),e.prototype.setQuestionValue.call(this,t,r)},t.prototype.setValuesIntoQuestions=function(e){if(this.contentPanel){this.settingNewValue=!0;for(var t=this.contentPanel.questions,r=0;r<t.length;r++){var n=t[r].getValueName(),o=e?e[n]:void 0,i=t[r];this.isTwoValueEquals(i.value,o)||(i.value=o)}this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.settingNewValue=!1}},t.prototype.getDisplayValueCore=function(t,r){return e.prototype.getContentDisplayValueCore.call(this,t,r,this.contentPanel)},t.prototype.setAfterRenderCallbacks=function(e){var t=this;if(e&&this.customQuestion)for(var r=e.questions,n=0;n<r.length;n++)r[n].afterRenderQuestionCallback=function(e,r){t.customQuestion.onAfterRenderContentElement(t,e,r)}},t.ItemVariableName="composite",t}(h)},"./src/question_dropdown.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionDropdownModel",(function(){return h}));var n,o=r("./src/jsonobject.ts"),i=r("./src/questionfactory.ts"),s=r("./src/question_baseselect.ts"),a=r("./src/itemvalue.ts"),l=r("./src/utils/cssClassBuilder.ts"),u=r("./src/dropdownListModel.ts"),c=r("./src/settings.ts"),p=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},h=function(e){function t(t){var r=e.call(this,t)||this;return r.lastSelectedItemValue=null,r.minMaxChoices=[],r.onOpened=r.addEvent(),r.createLocalizableString("placeholder",r,!1,!0),r.createLocalizableString("clearCaption",r,!1,!0),r.registerPropertyChangedHandlers(["choicesMin","choicesMax","choicesStep"],(function(){r.onVisibleChoicesChanged()})),r.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices"],(function(){r.updateReadOnlyText()})),r.updateReadOnlyText(),r}return p(t,e),t.prototype.updateReadOnlyText=function(){var e=this.selectedItem?"":this.placeholder;"select"==this.renderAs&&(this.isOtherSelected?e=this.otherText:this.isNoneSelected?e=this.noneText:this.selectedItem&&(e=this.selectedItemText)),this.readOnlyText=e},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.updateReadOnlyText()},Object.defineProperty(t.prototype,"showOptionsCaption",{get:function(){return this.allowClear},set:function(e){this.allowClear=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"dropdown"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.getSingleSelectedItem()},enumerable:!1,configurable:!0}),t.prototype.onGetSingleSelectedItem=function(e){e&&(this.lastSelectedItemValue=e)},t.prototype.supportGoNextPageAutomatic=function(){return!0},t.prototype.getChoices=function(){var t=e.prototype.getChoices.call(this);if(this.choicesMax<=this.choicesMin)return t;for(var r=[],n=0;n<t.length;n++)r.push(t[n]);if(0===this.minMaxChoices.length||this.minMaxChoices.length!==(this.choicesMax-this.choicesMin)/this.choicesStep+1)for(this.minMaxChoices=[],n=this.choicesMin;n<=this.choicesMax;n+=this.choicesStep)this.minMaxChoices.push(new a.ItemValue(n));return r.concat(this.minMaxChoices)},Object.defineProperty(t.prototype,"choicesMin",{get:function(){return this.getPropertyValue("choicesMin")},set:function(e){this.setPropertyValue("choicesMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesMax",{get:function(){return this.getPropertyValue("choicesMax")},set:function(e){this.setPropertyValue("choicesMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesStep",{get:function(){return this.getPropertyValue("choicesStep")},set:function(e){e<1&&(e=1),this.setPropertyValue("choicesStep",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete","")},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return(new l.CssClassBuilder).append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).append(this.cssClasses.controlInputFieldComponent,!!this.inputFieldComponentName).toString()},Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e=this.suggestedItem||this.selectedItem;return null==e?void 0:e.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputFieldComponentName",{get:function(){return this.inputFieldComponent||this.itemComponent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectedItemLocText",{get:function(){return!this.inputHasValue&&!this.inputFieldComponentName&&!!this.selectedItemLocText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInputFieldComponent",{get:function(){return!this.inputHasValue&&!!this.inputFieldComponentName&&!this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemText",{get:function(){var e=this.selectedItem;return e?e.text:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return"select"===this.renderAs||this.dropdownListModelValue||(this.dropdownListModelValue=new u.DropdownListModel(this)),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){var e;return null===(e=this.dropdownListModel)||void 0===e?void 0:e.popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){var e=this.popupModel;return e&&e.isVisible?"true":"false"},enumerable:!1,configurable:!0}),t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.onSelectedItemValuesChangedHandler=function(e){var t;null===(t=this.dropdownListModel)||void 0===t||t.setInputStringFromSelectedItem(e)},t.prototype.hasUnknownValue=function(t,r,n,o){return!this.choicesLazyLoadEnabled&&e.prototype.hasUnknownValue.call(this,t,r,n,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var t,r=null===(t=this.otherValue)||void 0===t?void 0:t.trim();return!!r&&e.prototype.hasUnknownValue.call(this,r,!0,!1)},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.popupModel&&this.dropdownListModel.updateItems()},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.clearValue=function(){var t;e.prototype.clearValue.call(this),this.lastSelectedItemValue=null,null===(t=this.dropdownListModel)||void 0===t||t.clear()},t.prototype.onClick=function(e){this.onOpenedCallBack&&this.onOpenedCallBack()},t.prototype.onKeyUp=function(e){46===(e.which||e.keyCode)&&(this.clearValue(),e.preventDefault(),e.stopPropagation())},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&this.dropdownListModelValue.dispose()},d([Object(o.property)()],t.prototype,"allowClear",void 0),d([Object(o.property)({onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"inputHasValue",void 0),d([Object(o.property)({defaultValue:""})],t.prototype,"readOnlyText",void 0),d([Object(o.property)()],t.prototype,"choicesLazyLoadEnabled",void 0),d([Object(o.property)({defaultValue:25})],t.prototype,"choicesLazyLoadPageSize",void 0),d([Object(o.property)()],t.prototype,"suggestedItem",void 0),t}(s.QuestionSelectBase);o.Serializer.addClass("dropdown",[{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",alternativeName:"showOptionsCaption",default:!0},{name:"choicesMin:number",default:0},{name:"choicesMax:number",default:0},{name:"choicesStep:number",default:1,minValue:1},{name:"autocomplete",alternativeName:"autoComplete",choices:c.settings.questions.dataList},{name:"renderAs",default:"default",visible:!1},{name:"searchEnabled:boolean",default:!0,visible:!1},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"inputFieldComponent",visible:!1},{name:"itemComponent",visible:!1,default:""}],(function(){return new h("")}),"selectbase"),i.QuestionFactory.Instance.registerQuestion("dropdown",(function(e){var t=new h(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_empty.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionEmptyModel",(function(){return a}));var n,o=r("./src/jsonobject.ts"),i=r("./src/question.ts"),s=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.getType=function(){return"empty"},t}(i.Question);o.Serializer.addClass("empty",[],(function(){return new a("")}),"question")},"./src/question_expression.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionExpressionModel",(function(){return c})),r.d(t,"getCurrecyCodes",(function(){return p}));var n,o=r("./src/helpers.ts"),i=r("./src/question.ts"),s=r("./src/jsonobject.ts"),a=r("./src/questionfactory.ts"),l=r("./src/conditions.ts"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){var r=e.call(this,t)||this;return r.createLocalizableString("format",r),r.registerPropertyChangedHandlers(["expression"],(function(){r.expressionRunner&&(r.expressionRunner=new l.ExpressionRunner(r.expression))})),r.registerPropertyChangedHandlers(["format","currency","displayStyle"],(function(){r.updateFormatedValue()})),r}return u(t,e),t.prototype.getType=function(){return"expression"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.getLocalizableStringText("format","")},set:function(e){this.setLocalizableStringText("format",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locFormat",{get:function(){return this.getLocalizableString("format")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.runCondition=function(t,r){var n=this;e.prototype.runCondition.call(this,t,r),!this.expression||this.expressionIsRunning||!this.runIfReadOnly&&this.isReadOnly||(this.locCalculation(),this.expressionRunner||(this.expressionRunner=new l.ExpressionRunner(this.expression)),this.expressionRunner.onRunComplete=function(e){o.Helpers.isTwoValueEquals(e,n.value)||(n.value=e),n.unlocCalculation()},this.expressionRunner.run(t,r))},t.prototype.canCollectErrors=function(){return!0},t.prototype.hasRequiredError=function(){return!1},Object.defineProperty(t.prototype,"maximumFractionDigits",{get:function(){return this.getPropertyValue("maximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("maximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minimumFractionDigits",{get:function(){return this.getPropertyValue("minimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("minimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runIfReadOnly",{get:function(){return!0===this.runIfReadOnlyValue},set:function(e){this.runIfReadOnlyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formatedValue",{get:function(){return this.getPropertyValue("formatedValue","")},enumerable:!1,configurable:!0}),t.prototype.updateFormatedValue=function(){this.setPropertyValue("formatedValue",this.getDisplayValueCore(!1,this.value))},t.prototype.onValueChanged=function(){this.updateFormatedValue()},t.prototype.updateValueFromSurvey=function(t){e.prototype.updateValueFromSurvey.call(this,t),this.updateFormatedValue()},t.prototype.getDisplayValueCore=function(e,t){var r=this.isValueEmpty(t)?this.defaultValue:t,n="";if(!this.isValueEmpty(r)){var o=this.getValueAsStr(r);n=this.format?this.format.format(o):o}return this.survey&&(n=this.survey.getExpressionDisplayValue(this,r,n)),n},Object.defineProperty(t.prototype,"displayStyle",{get:function(){return this.getPropertyValue("displayStyle")},set:function(e){this.setPropertyValue("displayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currency",{get:function(){return this.getPropertyValue("currency")},set:function(e){["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"].indexOf(e)<0||this.setPropertyValue("currency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useGrouping",{get:function(){return this.getPropertyValue("useGrouping")},set:function(e){this.setPropertyValue("useGrouping",e)},enumerable:!1,configurable:!0}),t.prototype.getValueAsStr=function(e){if("date"==this.displayStyle){var t=new Date(e);if(t&&t.toLocaleDateString)return t.toLocaleDateString()}if("none"!=this.displayStyle&&o.Helpers.isNumber(e)){var r=this.getLocale();r||(r="en");var n={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return this.maximumFractionDigits>-1&&(n.maximumFractionDigits=this.maximumFractionDigits),this.minimumFractionDigits>-1&&(n.minimumFractionDigits=this.minimumFractionDigits),e.toLocaleString(r,n)}return e.toString()},t}(i.Question);function p(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]}s.Serializer.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent","date"]},{name:"currency",choices:function(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]},default:"USD"},{name:"maximumFractionDigits:number",default:-1},{name:"minimumFractionDigits:number",default:-1},{name:"useGrouping:boolean",default:!0},{name:"enableIf",visible:!1},{name:"isRequired",visible:!1},{name:"readOnly",visible:!1},{name:"requiredErrorText",visible:!1},{name:"defaultValueExpression",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"requiredIf",visible:!1}],(function(){return new c("")}),"question"),a.QuestionFactory.Instance.registerQuestion("expression",(function(e){return new c(e)}))},"./src/question_file.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionFileModel",(function(){return m})),r.d(t,"FileLoader",(function(){return g}));var n,o=r("./src/question.ts"),i=r("./src/jsonobject.ts"),s=r("./src/questionfactory.ts"),a=r("./src/error.ts"),l=r("./src/utils/cssClassBuilder.ts"),u=r("./src/utils/utils.ts"),c=r("./src/actions/container.ts"),p=r("./src/actions/action.ts"),d=r("./src/helpers.ts"),h=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},m=function(e){function t(t){var r=e.call(this,t)||this;return r.isUploading=!1,r.isDragging=!1,r.onUploadStateChanged=r.addEvent(),r.onStateChanged=r.addEvent(),r.mobileFileNavigator=new c.ActionContainer,r.dragCounter=0,r.onDragEnter=function(e){r.isInputReadOnly||(e.preventDefault(),r.isDragging=!0,r.dragCounter++)},r.onDragOver=function(e){if(r.isInputReadOnly)return e.returnValue=!1,!1;e.dataTransfer.dropEffect="copy",e.preventDefault()},r.onDrop=function(e){if(!r.isInputReadOnly){r.isDragging=!1,r.dragCounter=0,e.preventDefault();var t=e.dataTransfer;r.onChange(t)}},r.onDragLeave=function(e){r.isInputReadOnly||(r.dragCounter--,0===r.dragCounter&&(r.isDragging=!1))},r.doChange=function(e){var t=e.target||e.srcElement;r.onChange(t)},r.doClean=function(e){e.currentTarget||e.srcElement,r.needConfirmRemoveFile&&!Object(u.confirmAction)(r.confirmRemoveAllMessage)||(r.rootElement&&(r.rootElement.querySelectorAll("input")[0].value=""),r.clear())},r.doDownloadFile=function(e,t){Object(u.detectIEOrEdge)()&&(e.preventDefault(),Object(u.loadFileFromBase64)(t.content,t.name))},r.fileIndexAction=new p.Action({id:"fileIndex",title:r.getFileIndexCaption(),enabled:!1}),r.prevFileAction=new p.Action({id:"prevPage",iconSize:16,action:function(){r.indexToShow=r.previewValue.length&&(r.indexToShow-1+r.previewValue.length)%r.previewValue.length||0,r.fileIndexAction.title=r.getFileIndexCaption()}}),r.nextFileAction=new p.Action({id:"nextPage",iconSize:16,action:function(){r.indexToShow=r.previewValue.length&&(r.indexToShow+1)%r.previewValue.length||0,r.fileIndexAction.title=r.getFileIndexCaption()}}),r.mobileFileNavigator.actions=[r.prevFileAction,r.fileIndexAction,r.nextFileAction],r}return h(t,e),Object.defineProperty(t.prototype,"mobileFileNavigatorVisible",{get:function(){return this.isMobile&&this.containsMultiplyFiles},enumerable:!1,configurable:!0}),t.prototype.updateElementCssCore=function(t){e.prototype.updateElementCssCore.call(this,t),this.prevFileAction.iconName=this.cssClasses.leftIconId,this.nextFileAction.iconName=this.cssClasses.rightIconId},t.prototype.getFileIndexCaption=function(){return this.getLocalizationFormatString("indexText",this.indexToShow+1,this.previewValue.length)},t.prototype.isPreviewVisible=function(e){return!this.isMobile||e===this.indexToShow},t.prototype.getType=function(){return"file"},t.prototype.clearOnDeletingContainer=function(){this.survey&&this.survey.clearFiles(this,this.name,this.value,null,(function(){}))},Object.defineProperty(t.prototype,"showPreview",{get:function(){return this.getPropertyValue("showPreview")},set:function(e){this.setPropertyValue("showPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowMultiple",{get:function(){return this.getPropertyValue("allowMultiple")},set:function(e){this.setPropertyValue("allowMultiple",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptedTypes",{get:function(){return this.getPropertyValue("acceptedTypes")},set:function(e){this.setPropertyValue("acceptedTypes",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeDataAsText",{get:function(){return this.getPropertyValue("storeDataAsText")},set:function(e){this.setPropertyValue("storeDataAsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"waitForUpload",{get:function(){return this.getPropertyValue("waitForUpload")},set:function(e){this.setPropertyValue("waitForUpload",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowImagesPreview",{get:function(){return this.getPropertyValue("allowImagesPreview")},set:function(e){this.setPropertyValue("allowImagesPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSize",{get:function(){return this.getPropertyValue("maxSize")},set:function(e){this.setPropertyValue("maxSize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"needConfirmRemoveFile",{get:function(){return this.getPropertyValue("needConfirmRemoveFile")},set:function(e){this.setPropertyValue("needConfirmRemoveFile",e)},enumerable:!1,configurable:!0}),t.prototype.getConfirmRemoveMessage=function(e){return this.confirmRemoveMessage.format(e)},Object.defineProperty(t.prototype,"inputTitle",{get:function(){return this.isUploading?this.loadingFileTitle:this.isEmpty()?this.chooseFileTitle:" "},enumerable:!1,configurable:!0}),t.prototype.clear=function(e){var t=this;this.survey&&(this.containsMultiplyFiles=!1,this.survey.clearFiles(this,this.name,this.value,null,(function(r,n){"success"===r&&(t.value=void 0,t.errors=[],e&&e(),t.indexToShow=0,t.fileIndexAction.title=t.getFileIndexCaption())})))},Object.defineProperty(t.prototype,"multipleRendered",{get:function(){return this.allowMultiple?"multiple":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButton",{get:function(){return!this.isReadOnly&&!this.isEmpty()&&this.cssClasses.removeButton},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButtonBottom",{get:function(){return!this.isReadOnly&&!this.isEmpty()&&this.cssClasses.removeButtonBottom},enumerable:!1,configurable:!0}),t.prototype.defaultImage=function(e){return!this.canPreviewImage(e)&&!!this.cssClasses.defaultImage},t.prototype.removeFile=function(e){this.removeFileByContent(this.value.filter((function(t){return t.name===e}))[0])},t.prototype.removeFileByContent=function(e){var t=this;this.survey&&this.survey.clearFiles(this,this.name,this.value,e.name,(function(r,n){if("success"===r){var o=t.value;Array.isArray(o)?t.value=o.filter((function(t){return!d.Helpers.isTwoValueEquals(t,e,!0)})):t.value=void 0}}))},t.prototype.loadFiles=function(e){var t=this;if(this.survey&&(this.errors=[],this.allFilesOk(e))){var r=function(){t.stateChanged("loading");var r=[];t.storeDataAsText?e.forEach((function(n){var o=new FileReader;o.onload=function(i){(r=r.concat([{name:n.name,type:n.type,content:o.result}])).length===e.length&&(t.value=(t.value||[]).concat(r))},o.readAsDataURL(n)})):t.survey&&t.survey.uploadFiles(t,t.name,e,(function(e,r){"error"===e&&t.stateChanged("error"),"success"===e&&(t.value=(t.value||[]).concat(r.map((function(e){return{name:e.file.name,type:e.file.type,content:e.content}}))))}))};this.allowMultiple?r():this.clear(r)}},t.prototype.canPreviewImage=function(e){return this.allowImagesPreview&&!!e&&this.isFileImage(e)},t.prototype.loadPreview=function(e){var t=this;if(this.previewValue.splice(0,this.previewValue.length),this.showPreview&&e){var r=Array.isArray(e)?e:e?[e]:[];this.storeDataAsText?r.forEach((function(e){var r=e.content||e;t.previewValue.push({name:e.name,type:e.type,content:r})})):(this._previewLoader&&this._previewLoader.dispose(),this.isReadyValue=!1,this._previewLoader=new g(this,(function(e,r){"loaded"===e&&r.forEach((function(e){t.previewValue.push(e)})),t.isReadyValue=!0,t.onReadyChanged&&t.onReadyChanged.fire(t,{question:t,isReady:!0,oldIsReady:!1}),t._previewLoader.dispose(),t._previewLoader=void 0})),this._previewLoader.load(r)),this.indexToShow=this.previewValue.length>0&&this.indexToShow>0?this.indexToShow-1:0,this.fileIndexAction.title=this.getFileIndexCaption(),this.containsMultiplyFiles=this.previewValue.length>1}},t.prototype.onCheckForErrors=function(t,r){e.prototype.onCheckForErrors.call(this,t,r),this.isUploading&&this.waitForUpload&&t.push(new a.UploadingFileError(this.getLocalizationString("uploadingFile"),this))},t.prototype.stateChanged=function(e){this.currentState!=e&&("loading"===e&&(this.isUploading=!0),"loaded"===e&&(this.isUploading=!1),"error"===e&&(this.isUploading=!1),this.currentState=e,this.onStateChanged.fire(this,{state:e}),this.onUploadStateChanged.fire(this,{state:e}))},t.prototype.allFilesOk=function(e){var t=this,r=this.errors?this.errors.length:0;return(e||[]).forEach((function(e){t.maxSize>0&&e.size>t.maxSize&&t.errors.push(new a.ExceedSizeError(t.maxSize,t))})),r===this.errors.length},t.prototype.isFileImage=function(e){if(!e||!e.content||!e.content.substring)return!1;var t=e.content&&e.content.substring(0,10);return"data:image"===(t=t&&t.toLowerCase())||!!e.type&&0===e.type.toLowerCase().indexOf("image/")},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);if(r&&!this.isEmpty()){r.isNode=!1;var n=Array.isArray(this.value)?this.value:[this.value];r.data=n.map((function(e,t){return{name:t,title:"File",value:e.content&&e.content||e,displayValue:e.name&&e.name||e,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}}))}return r},t.prototype.getChooseFileCss=function(){var e=this.isAnswered;return(new l.CssClassBuilder).append(this.cssClasses.chooseFile).append(this.cssClasses.controlDisabled,this.isReadOnly).append(this.cssClasses.chooseFileAsText,!e).append(this.cssClasses.chooseFileAsTextDisabled,!e&&this.isInputReadOnly).append(this.cssClasses.chooseFileAsIcon,e).toString()},t.prototype.getReadOnlyFileCss=function(){return(new l.CssClassBuilder).append("form-control").append(this.cssClasses.placeholderInput).toString()},Object.defineProperty(t.prototype,"fileRootCss",{get:function(){return(new l.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.single,!this.allowMultiple).append(this.cssClasses.singleImage,!this.allowMultiple&&this.isAnswered&&this.canPreviewImage(this.value[0])).append(this.cssClasses.mobile,this.isMobile).toString()},enumerable:!1,configurable:!0}),t.prototype.getFileDecoratorCss=function(){return(new l.CssClassBuilder).append(this.cssClasses.fileDecorator).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.fileDecoratorDrag,this.isDragging).toString()},t.prototype.onChange=function(e){if(window.FileReader&&e&&e.files&&!(e.files.length<1)){for(var t=[],r=this.allowMultiple?e.files.length:1,n=0;n<r;n++)t.push(e.files[n]);e.value="",this.loadFiles(t)}},t.prototype.onChangeQuestionValue=function(t){e.prototype.onChangeQuestionValue.call(this,t),this.stateChanged(this.isEmpty()?"empty":"loaded"),this.isLoadingFromJson||this.loadPreview(t)},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.loadPreview(this.value)},t.prototype.afterRender=function(t){this.rootElement=t,e.prototype.afterRender.call(this,t)},t.prototype.doRemoveFile=function(e){if(!this.needConfirmRemoveFile||Object(u.confirmAction)(this.getConfirmRemoveMessage(e.name))){var t=this.previewValue.indexOf(e);this.removeFileByContent(-1===t?e:this.value[t])}},f([Object(i.property)()],t.prototype,"isDragging",void 0),f([Object(i.propertyArray)({})],t.prototype,"previewValue",void 0),f([Object(i.property)({defaultValue:"empty"})],t.prototype,"currentState",void 0),f([Object(i.property)({defaultValue:0})],t.prototype,"indexToShow",void 0),f([Object(i.property)({defaultValue:!1})],t.prototype,"containsMultiplyFiles",void 0),f([Object(i.property)({localizable:{defaultStr:"confirmRemoveFile"}})],t.prototype,"confirmRemoveMessage",void 0),f([Object(i.property)({localizable:{defaultStr:"confirmRemoveAllFiles"}})],t.prototype,"confirmRemoveAllMessage",void 0),f([Object(i.property)({localizable:{defaultStr:"noFileChosen"}})],t.prototype,"noFileChosenCaption",void 0),f([Object(i.property)({localizable:{defaultStr:"chooseFileCaption"}})],t.prototype,"chooseButtonCaption",void 0),f([Object(i.property)({localizable:{defaultStr:"clearCaption"}})],t.prototype,"clearButtonCaption",void 0),f([Object(i.property)({localizable:{defaultStr:"removeFileCaption"}})],t.prototype,"removeFileCaption",void 0),f([Object(i.property)({localizable:{defaultStr:"loadingFile"}})],t.prototype,"loadingFileTitle",void 0),f([Object(i.property)({localizable:{defaultStr:"chooseFile"}})],t.prototype,"chooseFileTitle",void 0),f([Object(i.property)({localizable:{defaultStr:"fileDragAreaPlaceholder"}})],t.prototype,"dragAreaPlaceholder",void 0),t}(o.Question);i.Serializer.addClass("file",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"showPreview:boolean",default:!0},"allowMultiple:boolean",{name:"allowImagesPreview:boolean",default:!0},"imageHeight","imageWidth","acceptedTypes",{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1},{name:"maxSize:number",default:0},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"validators",visible:!1},{name:"needConfirmRemoveFile:boolean"}],(function(){return new m("")}),"question"),s.QuestionFactory.Instance.registerQuestion("file",(function(e){return new m(e)}));var g=function(){function e(e,t){this.fileQuestion=e,this.callback=t,this.loaded=[]}return e.prototype.load=function(e){var t=this;e.forEach((function(r){t.fileQuestion.survey&&t.fileQuestion.survey.downloadFile(t.fileQuestion,t.fileQuestion.name,r,(function(n,o){t.fileQuestion&&t.callback&&("success"===n?(t.loaded.push({content:o,name:r.name,type:r.type}),t.loaded.length===e.length&&t.callback("loaded",t.loaded)):t.callback("error",t.loaded))}))}))},e.prototype.dispose=function(){this.fileQuestion=void 0,this.callback=void 0},e}()},"./src/question_html.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionHtmlModel",(function(){return l}));var n,o=r("./src/questionnonvalue.ts"),i=r("./src/jsonobject.ts"),s=r("./src/questionfactory.ts"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){var r=e.call(this,t)||this;return r.createLocalizableString("html",r).onGetTextCallback=function(e){return r.survey&&!r.ignoreHtmlProgressing?r.processHtml(e):e},r}return a(t,e),t.prototype.getType=function(){return"html"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getProcessedText=function(t){return this.ignoreHtmlProgressing?t:e.prototype.getProcessedText.call(this,t)},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html","")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedHtml",{get:function(){return this.processHtml(this.html)},enumerable:!1,configurable:!0}),t.prototype.processHtml=function(e){return this.survey?this.survey.processHtml(e,"html-question"):this.html},t}(o.QuestionNonValue);i.Serializer.addClass("html",[{name:"html:html",serializationProperty:"locHtml"}],(function(){return new l("")}),"nonvalue"),s.QuestionFactory.Instance.registerQuestion("html",(function(e){return new l(e)}))},"./src/question_image.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionImageModel",(function(){return h}));var n,o=r("./src/questionnonvalue.ts"),i=r("./src/jsonobject.ts"),s=r("./src/questionfactory.ts"),a=r("./src/utils/cssClassBuilder.ts"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=["youtube.com","youtu.be"],c=[".mp4",".mov",".wmv",".flv",".avi",".mkv"],p="embed";function d(e){if(!e)return!1;e=e.toLowerCase();for(var t=0;t<u.length;t++)if(-1!==e.indexOf(u[t]))return!0;return!1}var h=function(e){function t(t){var r=e.call(this,t)||this;return r.createLocalizableString("imageLink",r,!1).onGetTextCallback=function(e){return function(e){if(!e||!d(e))return e;if(e.toLocaleLowerCase().indexOf(p)>-1)return e;for(var t="",r=e.length-1;r>=0&&"="!==e[r]&&"/"!==e[r];r--)t=e[r]+t;return"https://www.youtube.com/embed/"+t}(e)},r.createLocalizableString("altText",r,!1),r.registerPropertyChangedHandlers(["contentMode","imageLink"],(function(){return r.calculateRenderedMode()})),r}return l(t,e),t.prototype.getType=function(){return"image"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.calculateRenderedMode()},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"altText",{get:function(){return this.getLocalizableStringText("altText")},set:function(e){this.setLocalizableStringText("altText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAltText",{get:function(){return this.getLocalizableString("altText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),t.prototype.getRenderedSize=function(e){return isNaN(Number(e))?e:e+"px"},Object.defineProperty(t.prototype,"renderedHeight",{get:function(){return this.imageHeight?this.getRenderedSize(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){return this.imageWidth?this.getRenderedSize(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMode",{get:function(){return this.getPropertyValue("renderedMode","image")},enumerable:!1,configurable:!0}),t.prototype.getImageCss=function(){var e=this.getPropertyByName("imageHeight"),t=this.getPropertyByName("imageWidth"),r=e.isDefaultValue(this.imageHeight)&&t.isDefaultValue(this.imageWidth);return(new a.CssClassBuilder).append(this.cssClasses.image).append(this.cssClasses.adaptive,r).toString()},t.prototype.onLoadHandler=function(){this.contentNotLoaded=!1},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},t.prototype.setRenderedMode=function(e){this.setPropertyValue("renderedMode",e)},t.prototype.calculateRenderedMode=function(){"auto"!==this.contentMode?this.setRenderedMode(this.contentMode):this.isYoutubeVideo()?this.setRenderedMode("youtube"):this.isVideo()?this.setRenderedMode("video"):this.setRenderedMode("image")},t.prototype.isYoutubeVideo=function(){return d(this.imageLink)},t.prototype.isVideo=function(){var e=this.imageLink;if(!e)return!1;e=e.toLowerCase();for(var t=0;t<c.length;t++)if(e.endsWith(c[t]))return!0;return!1},function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);i>3&&s&&Object.defineProperty(t,r,s)}([Object(i.property)({defaultValue:!1})],t.prototype,"contentNotLoaded",void 0),t}(o.QuestionNonValue);i.Serializer.addClass("image",[{name:"imageLink",serializationProperty:"locImageLink"},{name:"altText",serializationProperty:"locAltText",alternativeName:"text",category:"general"},{name:"contentMode",default:"auto",choices:["auto","image","video","youtube"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight",default:"150"},{name:"imageWidth",default:"200"}],(function(){return new h("")}),"nonvalue"),s.QuestionFactory.Instance.registerQuestion("image",(function(e){return new h(e)}))},"./src/question_imagepicker.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ImageItemValue",(function(){return f})),r.d(t,"QuestionImagePickerModel",(function(){return m}));var n,o=r("./src/jsonobject.ts"),i=r("./src/questionfactory.ts"),s=r("./src/question_baseselect.ts"),a=r("./src/itemvalue.ts"),l=r("./src/helpers.ts"),u=r("./src/utils/cssClassBuilder.ts"),c=r("./src/settings.ts"),p=r("./src/utils/utils.ts"),d=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},f=function(e){function t(t,r,n){void 0===r&&(r=null),void 0===n&&(n="imageitemvalue");var o=e.call(this,t,r,n)||this;return o.typeName=n,o.createLocalizableString("imageLink",o,!1),o}return d(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},Object.defineProperty(t.prototype,"contentNotLoaded",{get:function(){return this.locOwner instanceof m&&"video"==this.locOwner.contentMode?this.videoNotLoaded:this.imageNotLoaded},set:function(e){this.locOwner instanceof m&&"video"==this.locOwner.contentMode?this.videoNotLoaded=e:this.imageNotLoaded=e},enumerable:!1,configurable:!0}),h([Object(o.property)({defaultValue:!1})],t.prototype,"videoNotLoaded",void 0),h([Object(o.property)({defaultValue:!1})],t.prototype,"imageNotLoaded",void 0),t}(a.ItemValue),m=function(e){function t(t){var r=e.call(this,t)||this;return r.isResponsiveValue=!1,r.onContentLoaded=function(e,t){e.contentNotLoaded=!1;var n=t.target;"video"==r.contentMode?e.aspectRatio=n.videoWidth/n.videoHeight:e.aspectRatio=n.naturalWidth/n.naturalHeight,r._width&&r.processResponsiveness(0,r._width)},r.colCount=0,r.registerPropertyChangedHandlers(["minImageWidth","maxImageWidth","minImageHeight","maxImageHeight","visibleChoices","colCount","isResponsiveValue"],(function(){r._width&&r.processResponsiveness(0,r._width)})),r.registerPropertyChangedHandlers(["imageWidth","imageHeight"],(function(){r.calcIsResponsive()})),r.calcIsResponsive(),r}return d(t,e),t.prototype.getType=function(){return"imagepicker"},t.prototype.supportGoNextPageAutomatic=function(){return!this.multiSelect},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getItemValueType=function(){return"imageitemvalue"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.isAnswerCorrect=function(){return this.multiSelect?l.Helpers.isArrayContainsEqual(this.value,this.correctAnswer):e.prototype.isAnswerCorrect.call(this)},Object.defineProperty(t.prototype,"multiSelect",{get:function(){return this.getPropertyValue("multiSelect")},set:function(e){this.setPropertyValue("multiSelect",e)},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){var t=this.value,r=e;if(this.isValueEmpty(t))return!1;if(!r.imageLink||r.contentNotLoaded)return!1;if(!this.multiSelect)return this.isTwoValueEquals(t,e.value);if(!Array.isArray(t))return!1;for(var n=0;n<t.length;n++)if(this.isTwoValueEquals(t[n],e.value))return!0;return!1},t.prototype.getItemEnabled=function(t){var r=t;return!(!r.imageLink||r.contentNotLoaded)&&e.prototype.getItemEnabled.call(this,t)},t.prototype.clearIncorrectValues=function(){if(this.multiSelect){var t=this.value;if(!t)return;if(!Array.isArray(t)||0==t.length)return void this.clearValue();for(var r=[],n=0;n<t.length;n++)this.hasUnknownValue(t[n],!0)||r.push(t[n]);if(r.length==t.length)return;0==r.length?this.clearValue():this.value=r}else e.prototype.clearIncorrectValues.call(this)},t.prototype.getDisplayValueCore=function(t,r){return this.multiSelect||Array.isArray(r)?this.getDisplayArrayValue(t,r):e.prototype.getDisplayValueCore.call(this,t,r)},Object.defineProperty(t.prototype,"showLabel",{get:function(){return this.getPropertyValue("showLabel")},set:function(e){this.setPropertyValue("showLabel",e)},enumerable:!1,configurable:!0}),t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),!this.isDesignMode&&this.multiSelect&&(this.createNewArray("renderedValue"),this.createNewArray("value")),this.calcIsResponsive()},t.prototype.getValueCore=function(){var t=e.prototype.getValueCore.call(this);return void 0!==t?t:this.multiSelect?[]:t},t.prototype.convertValToArrayForMultSelect=function(e){return this.multiSelect?this.isValueEmpty(e)||Array.isArray(e)?e:[e]:e},t.prototype.renderedValueFromDataCore=function(e){return this.convertValToArrayForMultSelect(e)},t.prototype.rendredValueToDataCore=function(e){return this.convertValToArrayForMultSelect(e)},Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageHeight",{get:function(){return((this.isResponsive?this.responsiveImageHeight:this.imageHeight)||150)+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageWidth",{get:function(){return((this.isResponsive?this.responsiveImageWidth:this.imageWidth)||200)+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.multiSelect?"checkbox":"radio"},enumerable:!1,configurable:!0}),t.prototype.isFootChoice=function(e,t){return!1},t.prototype.getSelectBaseRootCss=function(){return(new u.CssClassBuilder).append(e.prototype.getSelectBaseRootCss.call(this)).append(this.cssClasses.rootColumn,1==this.getCurrentColCount()).toString()},Object.defineProperty(t.prototype,"isResponsive",{get:function(){return this.isResponsiveValue&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exactSizesAreEmpty",{get:function(){var e=this;return!["imageHeight","imageWidth"].some((function(t){return void 0!==e[t]&&null!==e[t]}))},enumerable:!1,configurable:!0}),t.prototype.calcIsResponsive=function(){this.isResponsiveValue=this.exactSizesAreEmpty},t.prototype.getObservedElementSelector=function(){return Object(p.classesToSelector)(this.cssClasses.root)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme},t.prototype.getCurrentColCount=function(){return void 0===this.responsiveColCount||0===this.colCount?this.colCount:this.responsiveColCount},t.prototype.processResponsiveness=function(e,t){this._width=t=Math.floor(t);var r=function(e,t,r){var n=Math.floor(e/(t+r));return(n+1)*(t+r)-r<=e&&n++,n};if(this.isResponsive){var n,o=this.choices.length+(this.isDesignMode?1:0),i=this.gapBetweenItems||0,s=this.minImageWidth,a=this.maxImageWidth,l=this.maxImageHeight,u=this.minImageHeight,c=this.colCount;if(0===c)if((i+s)*o-i>t){var p=r(t,s,i);n=Math.floor((t-i*(p-1))/p)}else n=Math.floor((t-i*(o-1))/o);else{var d=r(t,s,i);d<c?(this.responsiveColCount=d>=1?d:1,c=this.responsiveColCount):this.responsiveColCount=c,n=Math.floor((t-i*(c-1))/c)}n=Math.max(s,Math.min(n,a));var h=Number.MIN_VALUE;this.choices.forEach((function(e){var t=n/e.aspectRatio;h=t>h?t:h})),h>l?h=l:h<u&&(h=u);var f=this.responsiveImageWidth,m=this.responsiveImageHeight;return this.responsiveImageWidth=n,this.responsiveImageHeight=h,f!==this.responsiveImageWidth||m!==this.responsiveImageHeight}return!1},t.prototype.afterRender=function(t){e.prototype.afterRender.call(this,t);var r=this.survey.getCss().variables;r&&(this.gapBetweenItems=Number.parseInt(window.getComputedStyle(t).getPropertyValue(r.imagepickerGapBetweenItems))||0)},h([Object(o.property)({})],t.prototype,"responsiveImageHeight",void 0),h([Object(o.property)({})],t.prototype,"responsiveImageWidth",void 0),h([Object(o.property)({})],t.prototype,"isResponsiveValue",void 0),h([Object(o.property)({})],t.prototype,"maxImageWidth",void 0),h([Object(o.property)({})],t.prototype,"minImageWidth",void 0),h([Object(o.property)({})],t.prototype,"maxImageHeight",void 0),h([Object(o.property)({})],t.prototype,"minImageHeight",void 0),h([Object(o.property)({})],t.prototype,"responsiveColCount",void 0),t}(s.QuestionCheckboxBase);o.Serializer.addClass("imageitemvalue",[],(function(e){return new f(e)}),"itemvalue"),o.Serializer.addProperty("imageitemvalue",{name:"imageLink",serializationProperty:"locImageLink"}),o.Serializer.addClass("responsiveImageSize",[],void 0,"number"),o.Serializer.addClass("imagepicker",[{name:"showOtherItem",visible:!1},{name:"otherText",visible:!1},{name:"showNoneItem",visible:!1},{name:"noneText",visible:!1},{name:"optionsCaption",visible:!1},{name:"otherErrorText",visible:!1},{name:"storeOthersAsComment",visible:!1},{name:"contentMode",default:"image",choices:["image","video"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight:number",minValue:0},{name:"imageWidth:number",minValue:0},{name:"minImageWidth:responsiveImageSize",default:200,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}},{name:"minImageHeight:responsiveImageSize",default:133,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}},{name:"maxImageWidth:responsiveImageSize",default:400,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}},{name:"maxImageHeight:responsiveImageSize",default:266,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}}],(function(){return new m("")}),"checkboxbase"),o.Serializer.addProperty("imagepicker",{name:"showLabel:boolean",default:!1}),o.Serializer.addProperty("imagepicker",{name:"colCount:number",default:0,choices:[0,1,2,3,4,5]}),o.Serializer.addProperty("imagepicker",{name:"multiSelect:boolean",default:!1}),o.Serializer.addProperty("imagepicker",{name:"choices:imageitemvalue[]"}),i.QuestionFactory.Instance.registerQuestion("imagepicker",(function(e){return new m(e)}))},"./src/question_matrix.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"MatrixRowModel",(function(){return b})),r.d(t,"MatrixCells",(function(){return y})),r.d(t,"QuestionMatrixModel",(function(){return v}));var n,o=r("./src/helpers.ts"),i=r("./src/itemvalue.ts"),s=r("./src/martixBase.ts"),a=r("./src/jsonobject.ts"),l=r("./src/base.ts"),u=r("./src/surveyStrings.ts"),c=r("./src/error.ts"),p=r("./src/questionfactory.ts"),d=r("./src/localizablestring.ts"),h=r("./src/question_dropdown.ts"),f=r("./src/settings.ts"),m=r("./src/utils/cssClassBuilder.ts"),g=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),b=function(e){function t(t,r,n,o){var i=e.call(this)||this;return i.fullName=r,i.item=t,i.data=n,i.value=o,i.cellClick=function(e){i.value=e.value},i.registerPropertyChangedHandlers(["value"],(function(){i.data&&i.data.onMatrixRowChanged(i)})),i}return g(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){e=this.data.getCorrectedRowValue(e),this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowClasses",{get:function(){var e=this.data.cssClasses,t=!!this.data.getErrorByType("requiredinallrowserror");return(new m.CssClassBuilder).append(e.row).append(e.rowError,t&&this.isValueEmpty(this.value)).toString()},enumerable:!1,configurable:!0}),t}(l.Base),y=function(){function e(e){this.cellsOwner=e,this.values={}}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==Object.keys(this.values).length},enumerable:!1,configurable:!0}),e.prototype.valuesChanged=function(){this.onValuesChanged&&this.onValuesChanged()},e.prototype.setCellText=function(e,t,r){if(e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t){if(r)this.values[e]||(this.values[e]={}),this.values[e][t]||(this.values[e][t]=this.createString()),this.values[e][t].text=r;else if(this.values[e]&&this.values[e][t]){var n=this.values[e][t];n.text="",n.isEmpty&&(delete this.values[e][t],0==Object.keys(this.values[e]).length&&delete this.values[e])}this.valuesChanged()}},e.prototype.setDefaultCellText=function(e,t){this.setCellText(f.settings.matrixDefaultRowName,e,t)},e.prototype.getCellLocText=function(e,t){return e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t&&this.values[e]&&this.values[e][t]?this.values[e][t]:null},e.prototype.getDefaultCellLocText=function(e,t){return this.getCellLocText(f.settings.matrixDefaultRowName,e)},e.prototype.getCellDisplayLocText=function(e,t){var r=this.getCellLocText(e,t);return r&&!r.isEmpty||(r=this.getCellLocText(f.settings.matrixDefaultRowName,t))&&!r.isEmpty?r:("number"==typeof t&&(t=t>=0&&t<this.columns.length?this.columns[t]:null),t&&t.locText?t.locText:null)},e.prototype.getCellText=function(e,t){var r=this.getCellLocText(e,t);return r?r.calculatedText:null},e.prototype.getDefaultCellText=function(e){var t=this.getCellLocText(f.settings.matrixDefaultRowName,e);return t?t.calculatedText:null},e.prototype.getCellDisplayText=function(e,t){var r=this.getCellDisplayLocText(e,t);return r?r.calculatedText:null},Object.defineProperty(e.prototype,"rows",{get:function(){return this.cellsOwner?this.cellsOwner.getRows():[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this.cellsOwner?this.cellsOwner.getColumns():[]},enumerable:!1,configurable:!0}),e.prototype.getCellRowColumnValue=function(e,t){if(null==e)return null;if("number"==typeof e){if(e<0||e>=t.length)return null;e=t[e].value}return e.value?e.value:e},e.prototype.getJson=function(){if(this.isEmpty)return null;var e={};for(var t in this.values){var r={},n=this.values[t];for(var o in n)r[o]=n[o].getJson();e[t]=r}return e},e.prototype.setJson=function(e){if(this.values={},e)for(var t in e)if("pos"!=t){var r=e[t];for(var n in this.values[t]={},r)if("pos"!=n){var o=this.createString();o.setJson(r[n]),this.values[t][n]=o}}this.valuesChanged()},e.prototype.locStrsChanged=function(){if(!this.isEmpty)for(var e in this.values){var t=this.values[e];for(var r in t)t[r].strChanged()}},e.prototype.createString=function(){return new d.LocalizableString(this.cellsOwner,!0)},e}(),v=function(e){function t(t){var r=e.call(this,t)||this;return r.isRowChanging=!1,r.emptyLocalizableString=new d.LocalizableString(r),r.cellsValue=new y(r),r.cellsValue.onValuesChanged=function(){r.updateHasCellText(),r.propertyValueChanged("cells",r.cells,r.cells)},r.registerPropertyChangedHandlers(["columns"],(function(){r.onColumnsChanged()})),r.registerPropertyChangedHandlers(["rows"],(function(){r.filterItems()||r.onRowsChanged()})),r.registerPropertyChangedHandlers(["hideIfRowsEmpty"],(function(){r.updateVisibilityBasedOnRows()})),r}return g(t,e),t.prototype.getType=function(){return"matrix"},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllRowRequired",{get:function(){return this.getPropertyValue("isAllRowRequired")},set:function(e){this.setPropertyValue("isAllRowRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRows",{get:function(){return this.rows.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsOrder",{get:function(){return this.getPropertyValue("rowsOrder")},set:function(e){(e=e.toLowerCase())!=this.rowsOrder&&(this.setPropertyValue("rowsOrder",e),this.onRowsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getRows=function(){return this.rows},t.prototype.getColumns=function(){return this.visibleColumns},t.prototype.addColumn=function(e,t){var r=new i.ItemValue(e,t);return this.columns.push(r),r},t.prototype.getItemClass=function(e,t){var r=e.value==t.value,n=this.isReadOnly,o=!r&&!n;return(new m.CssClassBuilder).append(this.cssClasses.cell,this.hasCellText).append(this.hasCellText?this.cssClasses.cellText:this.cssClasses.label).append(this.cssClasses.itemOnError,!this.hasCellText&&this.errors.length>0).append(this.hasCellText?this.cssClasses.cellTextSelected:this.cssClasses.itemChecked,r).append(this.hasCellText?this.cssClasses.cellTextDisabled:this.cssClasses.itemDisabled,n).append(this.cssClasses.itemHover,o&&!this.hasCellText).toString()},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.cells.locStrsChanged()},t.prototype.getQuizQuestionCount=function(){for(var e=0,t=0;t<this.rows.length;t++)this.isValueEmpty(this.correctAnswer[this.rows[t].value])||e++;return e},t.prototype.getCorrectAnswerCount=function(){for(var e=0,t=this.value,r=0;r<this.rows.length;r++){var n=this.rows[r].value;!this.isValueEmpty(t[n])&&this.isTwoValueEquals(this.correctAnswer[n],t[n])&&e++}return e},t.prototype.getVisibleRows=function(){var e=new Array,t=this.value;t||(t={});for(var r=this.filteredRows?this.filteredRows:this.rows,n=0;n<r.length;n++){var o=r[n];this.isValueEmpty(o.value)||e.push(this.createMatrixRow(o,this.id+"_"+o.value.toString().replace(/\s/g,"_"),t[o.value]))}return this.generatedVisibleRows=e,e},t.prototype.sortVisibleRows=function(e){return this.survey&&this.survey.isDesignMode?e:"random"===this.rowsOrder.toLowerCase()?o.Helpers.randomizeArray(e):e},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.rows=this.sortVisibleRows(this.rows)},t.prototype.processRowsOnSet=function(e){return this.sortVisibleRows(e)},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cells",{get:function(){return this.cellsValue},set:function(e){this.cells.setJson(e&&e.getJson?e.getJson():null)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCellText",{get:function(){return this.getPropertyValue("hasCellText",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasCellText=function(){this.setPropertyValue("hasCellText",!this.cells.isEmpty)},t.prototype.setCellText=function(e,t,r){this.cells.setCellText(e,t,r)},t.prototype.getCellText=function(e,t){return this.cells.getCellText(e,t)},t.prototype.setDefaultCellText=function(e,t){this.cells.setDefaultCellText(e,t)},t.prototype.getDefaultCellText=function(e){return this.cells.getDefaultCellText(e)},t.prototype.getCellDisplayText=function(e,t){return this.cells.getCellDisplayText(e,t)},t.prototype.getCellDisplayLocText=function(e,t){return this.cells.getCellDisplayLocText(e,t)||this.emptyLocalizableString},t.prototype.supportGoNextPageAutomatic=function(){return this.hasValuesInAllRows()},t.prototype.onCheckForErrors=function(t,r){e.prototype.onCheckForErrors.call(this,t,r),(!r||this.errors.length>0)&&this.hasErrorInRows()&&t.push(new c.RequiredInAllRowsError(null,this))},t.prototype.hasErrorInRows=function(){return!!this.isAllRowRequired&&!this.hasValuesInAllRows()},t.prototype.hasValuesInAllRows=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++)if(this.isValueEmpty(e[t].value))return!1;return!0},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.hasValuesInAllRows()},t.prototype.createMatrixRow=function(e,t,r){var n=new b(e,t,this,r);return this.onMatrixRowCreated(n),n},t.prototype.onMatrixRowCreated=function(e){},t.prototype.setQuestionValue=function(t,r){if(void 0===r&&(r=!0),e.prototype.setQuestionValue.call(this,t,this.isRowChanging||r),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length){this.isRowChanging=!0;var n=this.value;if(n||(n={}),0==this.rows.length)this.generatedVisibleRows[0].value=n;else for(var o=0;o<this.generatedVisibleRows.length;o++){var i=n[this.generatedVisibleRows[o].name];this.isValueEmpty(i)&&(i=null),this.generatedVisibleRows[o].value=i}this.updateIsAnswered(),this.isRowChanging=!1}},t.prototype.getDisplayValueCore=function(e,t){var r={};for(var n in t){var o=e?i.ItemValue.getTextOrHtmlByValue(this.rows,n):n;o||(o=n);var s=i.ItemValue.getTextOrHtmlByValue(this.columns,t[n]);s||(s=t[n]),r[o]=s}return r},t.prototype.getPlainData=function(t){var r=this;void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);if(n){var o=this.createValueCopy();n.isNode=!0,n.data=Object.keys(o||{}).map((function(e){var n=r.rows.filter((function(t){return t.value===e}))[0],s={name:e,title:n?n.text:"row",value:o[e],displayValue:i.ItemValue.getTextOrHtmlByValue(r.visibleColumns,o[e]),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1},a=i.ItemValue.getItemByValue(r.visibleColumns,o[e]);return a&&(t.calculations||[]).forEach((function(e){s[e.propertyName]=a[e.propertyName]})),s}))}return n},t.prototype.addConditionObjectsByContext=function(e,t){for(var r=0;r<this.rows.length;r++){var n=this.rows[r];n.value&&e.push({name:this.getValueName()+"."+n.value,text:this.processedTitle+"."+n.calculatedText,question:this})}},t.prototype.getConditionJson=function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!r)return e.prototype.getConditionJson.call(this);var n=new h.QuestionDropdownModel(r);n.choices=this.columns;var o=(new a.JsonObject).toJsonObject(n);return o.type=n.getType(),o},t.prototype.clearValueIfInvisibleCore=function(){e.prototype.clearValueIfInvisibleCore.call(this),this.hasRows&&this.clearInvisibleValuesInRows()},t.prototype.getFirstInputElementId=function(){var t=this.generatedVisibleRows;return t||(t=this.visibleRows),t.length>0&&this.visibleColumns.length>0?this.inputId+"_"+t[0].name+"_0":e.prototype.getFirstInputElementId.call(this)},t.prototype.onMatrixRowChanged=function(e){if(!this.isRowChanging){if(this.isRowChanging=!0,this.hasRows){var t=this.value;t||(t={}),t[e.name]=e.value,this.setNewValue(t)}else this.setNewValue(e.value);this.isRowChanging=!1}},t.prototype.getCorrectedRowValue=function(e){for(var t=0;t<this.columns.length;t++)if(e===this.columns[t].value)return e;for(t=0;t<this.columns.length;t++)if(this.isTwoValueEquals(e,this.columns[t].value))return this.columns[t].value;return e},t.prototype.getSearchableItemValueKeys=function(e){e.push("columns"),e.push("rows")},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({column:e},"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({column:e},"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({row:e},"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({row:e},"row-header")},t}(s.QuestionMatrixBaseModel);a.Serializer.addClass("matrix",["rowTitleWidth",{name:"columns:itemvalue[]",uniqueProperty:"value",baseValue:function(){return u.surveyLocalization.getString("matrix_column")}},{name:"rows:itemvalue[]",uniqueProperty:"value",baseValue:function(){return u.surveyLocalization.getString("matrix_row")}},{name:"cells:cells",serializationProperty:"cells"},{name:"rowsOrder",default:"initial",choices:["initial","random"]},"isAllRowRequired:boolean","hideIfRowsEmpty:boolean"],(function(){return new v("")}),"matrixbase"),p.QuestionFactory.Instance.registerQuestion("matrix",(function(e){var t=new v(e);return t.rows=p.QuestionFactory.DefaultRows,t.columns=p.QuestionFactory.DefaultColums,t}))},"./src/question_matrixdropdown.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"MatrixDropdownRowModel",(function(){return u})),r.d(t,"QuestionMatrixDropdownModel",(function(){return c}));var n,o=r("./src/question_matrixdropdownbase.ts"),i=r("./src/jsonobject.ts"),s=r("./src/itemvalue.ts"),a=r("./src/questionfactory.ts"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t,r,n,o){var i=e.call(this,n,o)||this;return i.name=t,i.item=r,i.buildCells(o),i}return l(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),t}(o.MatrixDropdownRowModelBase),c=function(e){function t(t){var r=e.call(this,t)||this;return r.createLocalizableString("totalText",r,!0),r.registerPropertyChangedHandlers(["rows"],(function(){r.clearGeneratedRows(),r.resetRenderedTable(),r.filterItems()||r.onRowsChanged(),r.clearIncorrectValues()})),r.registerPropertyChangedHandlers(["hideIfRowsEmpty"],(function(){r.updateVisibilityBasedOnRows()})),r}return l(t,e),t.prototype.getType=function(){return"matrixdropdown"},Object.defineProperty(t.prototype,"totalText",{get:function(){return this.getLocalizableStringText("totalText","")},set:function(e){this.setLocalizableStringText("totalText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalText",{get:function(){return this.getLocalizableString("totalText")},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return this.locTotalText},t.prototype.getRowTitleWidth=function(){return this.rowTitleWidth},Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){if(!t)return t;var r=this.visibleRows,n={};if(!r)return n;for(var o=0;o<r.length;o++){var i=r[o].rowName,a=t[i];if(a){if(e){var l=s.ItemValue.getTextOrHtmlByValue(this.rows,i);l&&(i=l)}n[i]=this.getRowDisplayValue(e,r[o],a)}}return n},t.prototype.getConditionObjectRowName=function(e){return"."+this.rows[e].value},t.prototype.getConditionObjectRowText=function(e){return"."+this.rows[e].calculatedText},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(t);return e},t.prototype.setNewValue=function(t){t&&"object"!=typeof t||e.prototype.setNewValue.call(this,t)},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var r=null,n=!1,o=this.filteredRows?this.filteredRows:this.rows;for(var i in t)s.ItemValue.getItemByValue(o,i)?(null==r&&(r={}),r[i]=t[i]):n=!0;n&&(this.value=r),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearValueIfInvisibleCore=function(){e.prototype.clearValueIfInvisibleCore.call(this),this.clearInvisibleValuesInRows()},t.prototype.generateRows=function(){var e=new Array,t=this.filteredRows?this.filteredRows:this.rows;if(!t||0===t.length)return e;var r=this.value;r||(r={});for(var n=0;n<t.length;n++)t[n].value&&e.push(this.createMatrixRow(t[n],r[t[n].value]));return e},t.prototype.createMatrixRow=function(e,t){return new u(e.value,e,this,t)},t.prototype.getSearchableItemValueKeys=function(e){e.push("rows")},t.prototype.updateProgressInfoByValues=function(e){var t=this.value;t||(t={});for(var r=0;r<this.rows.length;r++){var n=t[this.rows[r].value];this.updateProgressInfoByRow(e,n||{})}},t}(o.QuestionMatrixDropdownModelBase);i.Serializer.addClass("matrixdropdown",[{name:"rows:itemvalue[]",uniqueProperty:"value"},"rowsVisibleIf:condition","rowTitleWidth",{name:"totalText",serializationProperty:"locTotalText"},"hideIfRowsEmpty:boolean"],(function(){return new c("")}),"matrixdropdownbase"),a.QuestionFactory.Instance.registerQuestion("matrixdropdown",(function(e){var t=new c(e);return t.choices=[1,2,3,4,5],t.rows=a.QuestionFactory.DefaultRows,o.QuestionMatrixDropdownModelBase.addDefaultColumns(t),t}))},"./src/question_matrixdropdownbase.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"MatrixDropdownCell",(function(){return v})),r.d(t,"MatrixDropdownTotalCell",(function(){return x})),r.d(t,"MatrixDropdownRowModelBase",(function(){return C})),r.d(t,"MatrixDropdownTotalRowModel",(function(){return P})),r.d(t,"QuestionMatrixDropdownModelBase",(function(){return _}));var n,o=r("./src/jsonobject.ts"),i=r("./src/martixBase.ts"),s=r("./src/helpers.ts"),a=r("./src/base.ts"),l=r("./src/survey-element.ts"),u=r("./src/textPreProcessor.ts"),c=r("./src/itemvalue.ts"),p=r("./src/questionfactory.ts"),d=r("./src/functionsfactory.ts"),h=r("./src/settings.ts"),f=r("./src/error.ts"),m=r("./src/utils/cssClassBuilder.ts"),g=r("./src/question_matrixdropdowncolumn.ts"),b=r("./src/question_matrixdropdownrendered.ts"),y=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),v=function(){function e(e,t,r){this.column=e,this.row=t,this.data=r,this.questionValue=this.createQuestion(e,t,r),this.questionValue.updateCustomWidget()}return e.prototype.locStrsChanged=function(){this.question.locStrsChanged()},e.prototype.createQuestion=function(e,t,r){var n=r.createQuestion(this.row,this.column);return n.validateValueCallback=function(){return r.validateCell(t,e.name,t.value)},o.CustomPropertiesCollection.getProperties(e.getType()).forEach((function(t){var r=t.name;void 0!==e[r]&&(n[r]=e[r])})),n},Object.defineProperty(e.prototype,"question",{get:function(){return this.questionValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.question.value},set:function(e){this.question.value=e},enumerable:!1,configurable:!0}),e.prototype.runCondition=function(e,t){this.question.runCondition(e,t)},e}(),x=function(e){function t(t,r,n){var o=e.call(this,t,r,n)||this;return o.column=t,o.row=r,o.data=n,o.updateCellQuestion(),o}return y(t,e),t.prototype.createQuestion=function(e,t,r){var n=o.Serializer.createClass("expression");return n.setSurveyImpl(t),n},t.prototype.locStrsChanged=function(){this.updateCellQuestion(),e.prototype.locStrsChanged.call(this)},t.prototype.updateCellQuestion=function(){this.question.locCalculation(),this.column.updateCellQuestion(this.question,null,(function(e){delete e.defaultValue})),this.question.expression=this.getTotalExpression(),this.question.format=this.column.totalFormat,this.question.currency=this.column.totalCurrency,this.question.displayStyle=this.column.totalDisplayStyle,this.question.maximumFractionDigits=this.column.totalMaximumFractionDigits,this.question.minimumFractionDigits=this.column.totalMinimumFractionDigits,this.question.unlocCalculation(),this.question.runIfReadOnly=!0},t.prototype.getTotalExpression=function(){if(this.column.totalExpression)return this.column.totalExpression;if("none"==this.column.totalType)return"''";var e=this.column.totalType+"InArray";return d.FunctionFactory.Instance.hasFunction(e)?e+"({self}, '"+this.column.name+"')":""},t}(v),w=function(e){function t(t,r,n){var o=e.call(this,r)||this;return o.row=t,o.variableName=r,o.parentTextProcessor=n,o}return y(t,e),t.prototype.getParentTextProcessor=function(){return this.parentTextProcessor},Object.defineProperty(t.prototype,"survey",{get:function(){return this.row.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.row.value},t.prototype.getQuestionByName=function(e){return this.row.getQuestionByName(e)},t.prototype.onCustomProcessText=function(e){return e.name==C.IndexVariableName?(e.isExists=!0,e.value=this.row.rowIndex,!0):e.name==C.RowValueVariableName&&(e.isExists=!0,e.value=this.row.rowName,!0)},t}(u.QuestionTextProcessor),C=function(){function e(t,r){var n=this;this.isSettingValue=!1,this.detailPanelValue=null,this.cells=[],this.isCreatingDetailPanel=!1,this.data=t,this.subscribeToChanges(r),this.textPreProcessor=new w(this,e.RowVariableName,t?t.getParentTextProcessor():null),this.showHideDetailPanelClick=function(){if(n.getSurvey().isDesignMode)return!0;n.showHideDetailPanel()},this.idValue=e.getId()}return e.getId=function(){return"srow_"+e.idCounter++},Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rowName",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){for(var e={},t=this.questions,r=0;r<t.length;r++){var n=t[r];n.isEmpty()||(e[n.getValueName()]=n.value),n.comment&&this.getSurvey()&&this.getSurvey().storeOthersAsComment&&(e[n.getValueName()+a.Base.commentSuffix]=n.comment)}return e},set:function(e){this.isSettingValue=!0,this.subscribeToChanges(e);for(var t=this.questions,r=0;r<t.length;r++){var n=t[r],o=this.getCellValue(e,n.getValueName()),i=n.comment,s=e?e[n.getValueName()+a.Base.commentSuffix]:"";null==s&&(s=""),n.updateValueFromSurvey(o),(s||this.isTwoValueEquals(i,n.comment))&&n.updateCommentFromSurvey(s),n.onSurveyValueChanged(o)}this.isSettingValue=!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"locText",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPanel",{get:function(){return!!this.data&&this.data.hasDetailPanel(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detailPanelId",{get:function(){return this.detailPanel?this.detailPanel.id:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDetailPanelShowing",{get:function(){return!!this.data&&this.data.getIsDetailPanelShowing(this)},enumerable:!1,configurable:!0}),e.prototype.setIsDetailPanelShowing=function(e){this.data&&this.data.setIsDetailPanelShowing(this,e),this.onDetailPanelShowingChanged&&this.onDetailPanelShowingChanged()},e.prototype.showHideDetailPanel=function(){this.isDetailPanelShowing?this.hideDetailPanel():this.showDetailPanel()},e.prototype.showDetailPanel=function(){this.ensureDetailPanel(),this.detailPanelValue&&this.setIsDetailPanelShowing(!0)},e.prototype.hideDetailPanel=function(e){void 0===e&&(e=!1),this.setIsDetailPanelShowing(!1),e&&(this.detailPanelValue=null)},e.prototype.ensureDetailPanel=function(){if(!this.isCreatingDetailPanel&&!this.detailPanelValue&&this.hasPanel&&this.data){this.isCreatingDetailPanel=!0,this.detailPanelValue=this.data.createRowDetailPanel(this);var e=this.detailPanelValue.questions,t=this.data.getRowValue(this.data.getRowIndex(this));if(!s.Helpers.isValueEmpty(t))for(var r=0;r<e.length;r++){var n=e[r].getValueName();s.Helpers.isValueEmpty(t[n])||(e[r].value=t[n])}this.detailPanelValue.setSurveyImpl(this),this.isCreatingDetailPanel=!1}},e.prototype.getAllValues=function(){return this.value},e.prototype.getFilteredValues=function(){var e=this.getAllValues(),t={row:e};for(var r in e)t[r]=e[r];return t},e.prototype.getFilteredProperties=function(){return{survey:this.getSurvey(),row:this}},e.prototype.runCondition=function(t,r){this.data&&(t[e.OwnerVariableName]=this.data.value),t[e.IndexVariableName]=this.rowIndex,t[e.RowValueVariableName]=this.rowName,r||(r={}),r[e.RowVariableName]=this;for(var n=0;n<this.cells.length;n++)t[e.RowVariableName]=this.value,this.cells[n].runCondition(t,r);this.detailPanel&&this.detailPanel.runCondition(t,r)},e.prototype.clearValue=function(){for(var e=this.questions,t=0;t<e.length;t++)e[t].clearValue()},e.prototype.onAnyValueChanged=function(e){for(var t=this.questions,r=0;r<t.length;r++)t[r].onAnyValueChanged(e)},e.prototype.getDataValueCore=function(e,t){var r=this.getSurvey();return r?r.getDataValueCore(e,t):e[t]},e.prototype.getValue=function(e){var t=this.getQuestionByName(e);return t?t.value:null},e.prototype.setValue=function(e,t){this.setValueCore(e,t,!1)},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){var t=this.getQuestionByName(e);return t?t.comment:""},e.prototype.setComment=function(e,t,r){this.setValueCore(e,t,!0)},e.prototype.findQuestionByName=function(t){if(t){var r=e.RowVariableName+".";if(0===t.indexOf(r))return this.getQuestionByName(t.substring(r.length));var n=this.getSurvey();return n?n.getQuestionByName(t):null}},e.prototype.setValueCore=function(t,r,n){if(!this.isSettingValue){this.updateQuestionsValue(t,r,n);var o=this.value,i=n?t+a.Base.commentSuffix:t,s=r,l=this.getQuestionByName(t),u=this.data.onRowChanging(this,i,o);if(l&&!this.isTwoValueEquals(u,s)&&(this.isSettingValue=!0,n?l.comment=u:l.value=u,this.isSettingValue=!1,o=this.value),!this.data.isValidateOnValueChanging||!this.hasQuestonError(l)){var c=null==r&&!l||n&&!r&&!!l&&l.autoOtherMode;this.data.onRowChanged(this,i,o,c),this.onAnyValueChanged(e.RowVariableName)}}},e.prototype.updateQuestionsValue=function(e,t,r){if(this.detailPanel){var n=this.getQuestionByColumnName(e),o=this.detailPanel.getQuestionByName(e);if(n&&o){var i=this.isTwoValueEquals(t,r?n.comment:n.value)?o:n;this.isSettingValue=!0,r?i.comment=t:i.value=t,this.isSettingValue=!1}}},e.prototype.hasQuestonError=function(e){if(!e)return!1;if(e.hasErrors(!0,{isOnValueChanged:!this.data.isValidateOnValueChanging}))return!0;if(e.isEmpty())return!1;var t=this.getCellByColumnName(e.name);return!!(t&&t.column&&t.column.isUnique)&&this.data.checkIfValueInRowDuplicated(this,e)},Object.defineProperty(e.prototype,"isEmpty",{get:function(){var e=this.value;if(s.Helpers.isValueEmpty(e))return!0;for(var t in e)if(void 0!==e[t]&&null!==e[t])return!1;return!0},enumerable:!1,configurable:!0}),e.prototype.getQuestionByColumn=function(e){var t=this.getCellByColumn(e);return t?t.question:null},e.prototype.getCellByColumn=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column==e)return this.cells[t];return null},e.prototype.getCellByColumnName=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column.name==e)return this.cells[t];return null},e.prototype.getQuestionByColumnName=function(e){var t=this.getCellByColumnName(e);return t?t.question:null},Object.defineProperty(e.prototype,"questions",{get:function(){for(var e=[],t=0;t<this.cells.length;t++)e.push(this.cells[t].question);var r=this.detailPanel?this.detailPanel.questions:[];for(t=0;t<r.length;t++)e.push(r[t]);return e},enumerable:!1,configurable:!0}),e.prototype.getQuestionByName=function(e){return this.getQuestionByColumnName(e)||(this.detailPanel?this.detailPanel.getQuestionByName(e):null)},e.prototype.getQuestionsByName=function(e){var t=[],r=this.getQuestionByColumnName(e);return r&&t.push(r),this.detailPanel&&(r=this.detailPanel.getQuestionByName(e))&&t.push(r),t},e.prototype.getSharedQuestionByName=function(e){return this.data?this.data.getSharedQuestionByName(e,this):null},e.prototype.clearIncorrectValues=function(e){for(var t in e){var r=this.getQuestionByName(t);if(r){var n=r.value;r.clearIncorrectValues(),this.isTwoValueEquals(n,r.value)||this.setValue(t,r.value)}else!this.getSharedQuestionByName(t)&&t.indexOf(h.settings.matrixTotalValuePostFix)<0&&this.setValue(t,null)}},e.prototype.getLocale=function(){return this.data?this.data.getLocale():""},e.prototype.getMarkdownHtml=function(e,t){return this.data?this.data.getMarkdownHtml(e,t):void 0},e.prototype.getRenderer=function(e){return this.data?this.data.getRenderer(e):null},e.prototype.getRendererContext=function(e){return this.data?this.data.getRendererContext(e):e},e.prototype.getProcessedText=function(e){return this.data?this.data.getProcessedText(e):e},e.prototype.locStrsChanged=function(){for(var e=0;e<this.cells.length;e++)this.cells[e].locStrsChanged();this.detailPanel&&this.detailPanel.locStrsChanged()},e.prototype.updateCellQuestionOnColumnChanged=function(e,t,r){var n=this.getCellByColumn(e);n&&this.updateCellOnColumnChanged(n,t,r)},e.prototype.updateCellQuestionOnColumnItemValueChanged=function(e,t,r,n,o,i){var s=this.getCellByColumn(e);s&&this.updateCellOnColumnItemValueChanged(s,t,r,n,o,i)},e.prototype.onQuestionReadOnlyChanged=function(e){for(var t=this.questions,r=0;r<t.length;r++){var n=t[r];n.setPropertyValue("isReadOnly",n.isReadOnly)}this.detailPanel&&(this.detailPanel.readOnly=e)},e.prototype.hasErrors=function(e,t,r){var n=!1,o=this.cells;if(!o)return n;for(var i=0;i<o.length;i++)if(o[i]){var s=o[i].question;s&&s.visible&&(s.onCompletedAsyncValidators=function(e){r()},t&&!0===t.isOnValueChanged&&s.isEmpty()||(n=s.hasErrors(e,t)||n))}if(this.hasPanel){this.ensureDetailPanel();var a=this.detailPanel.hasErrors(e,!1,t);!t.hideErroredPanel&&a&&e&&(t.isSingleDetailPanel&&(t.hideErroredPanel=!0),this.showDetailPanel()),n=a||n}return n},e.prototype.updateCellOnColumnChanged=function(e,t,r){e.question[t]=r},e.prototype.updateCellOnColumnItemValueChanged=function(e,t,r,n,o,i){var s=e.question[t];if(Array.isArray(s)){var a="value"===n?i:r.value,l=c.ItemValue.getItemByValue(s,a);l&&(l[n]=o)}},e.prototype.buildCells=function(e){this.isSettingValue=!0;for(var t=this.data.columns,r=0;r<t.length;r++){var n=t[r];if(n.isVisible){var o=this.createCell(n);this.cells.push(o);var i=this.getCellValue(e,n.name);if(!s.Helpers.isValueEmpty(i)){o.question.value=i;var l=n.name+a.Base.commentSuffix;e&&!s.Helpers.isValueEmpty(e[l])&&(o.question.comment=e[l])}}}this.isSettingValue=!1},e.prototype.isTwoValueEquals=function(e,t){return s.Helpers.isTwoValueEquals(e,t,!1,!0,!1)},e.prototype.getCellValue=function(e,t){return this.editingObj?o.Serializer.getObjPropertyValue(this.editingObj,t):e?e[t]:void 0},e.prototype.createCell=function(e){return new v(e,this,this.data)},e.prototype.getSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this.textPreProcessor},Object.defineProperty(e.prototype,"rowIndex",{get:function(){return this.data?this.data.getRowIndex(this)+1:-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"editingObj",{get:function(){return this.editingObjValue},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.editingObj&&(this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=null)},e.prototype.subscribeToChanges=function(e){var t=this;e&&e.getType&&e.onPropertyChanged&&e!==this.editingObj&&(this.editingObjValue=e,this.onEditingObjPropertyChanged=function(e,r){t.updateOnSetValue(r.name,r.newValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))},e.prototype.updateOnSetValue=function(e,t){this.isSettingValue=!0;for(var r=this.getQuestionsByName(e),n=0;n<r.length;n++)r[n].value=t;this.isSettingValue=!1},e.RowVariableName="row",e.OwnerVariableName="self",e.IndexVariableName="rowIndex",e.RowValueVariableName="rowValue",e.idCounter=1,e}(),P=function(e){function t(t){var r=e.call(this,t,null)||this;return r.buildCells(null),r}return y(t,e),t.prototype.createCell=function(e){return new x(e,this,this.data)},t.prototype.setValue=function(e,t){this.data&&!this.isSettingValue&&this.data.onTotalValueChanged()},t.prototype.runCondition=function(t,r){var n,o=0;do{n=s.Helpers.getUnbindValue(this.value),e.prototype.runCondition.call(this,t,r),o++}while(!s.Helpers.isTwoValueEquals(n,this.value)&&o<3)},t.prototype.updateCellOnColumnChanged=function(e,t,r){e.updateCellQuestion()},t}(C),_=function(e){function t(t){var r=e.call(this,t)||this;return r.isRowChanging=!1,r.lockResetRenderedTable=!1,r.isDoingonAnyValueChanged=!1,r.createItemValues("choices"),r.createLocalizableString("placeholder",r,!1,!0),r.createLocalizableString("keyDuplicationError",r,!1,!0),r.detailPanelValue=r.createNewDetailPanel(),r.detailPanel.selectedElementInDesign=r,r.detailPanel.renderWidth="100%",r.detailPanel.isInteractiveDesignElement=!1,r.detailPanel.showTitle=!1,r.registerPropertyChangedHandlers(["columns","cellType"],(function(){r.updateColumnsAndRows()})),r.registerPropertyChangedHandlers(["placeholder","columnColCount","rowTitleWidth","choices"],(function(){r.clearRowsAndResetRenderedTable()})),r.registerPropertyChangedHandlers(["columnLayout","addRowLocation","hideColumnsIfEmpty","showHeader","minRowCount","isReadOnly","rowCount","hasFooter","detailPanelMode"],(function(){r.resetRenderedTable()})),r.registerPropertyChangedHandlers(["isMobile"],(function(){"vertical"===r.columnLayout&&r.resetRenderedTable()})),r}return y(t,e),Object.defineProperty(t,"defaultCellType",{get:function(){return h.settings.matrixDefaultCellType},set:function(e){h.settings.matrixDefaultCellType=e},enumerable:!1,configurable:!0}),t.addDefaultColumns=function(e){for(var t=p.QuestionFactory.DefaultColums,r=0;r<t.length;r++)e.addColumn(t[r])},t.prototype.createColumnValues=function(){var e=this;return this.createNewArray("columns",(function(t){t.colOwner=e,e.onAddColumn&&e.onAddColumn(t),e.survey&&e.survey.matrixColumnAdded(e,t)}),(function(t){t.colOwner=null,e.onRemoveColumn&&e.onRemoveColumn(t)}))},t.prototype.getType=function(){return"matrixdropdownbase"},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.clearGeneratedRows()},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateLocked",{get:function(){return this.isLoadingFromJson||this.isUpdating},enumerable:!1,configurable:!0}),t.prototype.beginUpdate=function(){this.isUpdating=!0},t.prototype.endUpdate=function(){this.isUpdating=!1,this.updateColumnsAndRows()},t.prototype.updateColumnsAndRows=function(){this.updateColumnsIndexes(this.columns),this.updateColumnsCellType(),this.generatedTotalRow=null,this.clearRowsAndResetRenderedTable()},t.prototype.itemValuePropertyChanged=function(t,r,n,o){e.prototype.itemValuePropertyChanged.call(this,t,r,n,o),"choices"===t.ownerPropertyName&&this.clearRowsAndResetRenderedTable()},Object.defineProperty(t.prototype,"columnLayout",{get:function(){return this.getPropertyValue("columnLayout")},set:function(e){this.setPropertyValue("columnLayout",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsLocation",{get:function(){return this.columnLayout},set:function(e){this.columnLayout=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isColumnLayoutHorizontal",{get:function(){return!!this.isMobile||"vertical"!=this.columnLayout},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUniqueCaseSensitive",{get:function(){return void 0!==this.isUniqueCaseSensitiveValue?this.isUniqueCaseSensitiveValue:h.settings.comparator.caseSensitive},set:function(e){this.isUniqueCaseSensitiveValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanelMode",{get:function(){return this.getPropertyValue("detailPanelMode")},set:function(e){this.setPropertyValue("detailPanelMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.detailPanel},Object.defineProperty(t.prototype,"detailElements",{get:function(){return this.detailPanel.elements},enumerable:!1,configurable:!0}),t.prototype.createNewDetailPanel=function(){return o.Serializer.createClass("panel")},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return null},Object.defineProperty(t.prototype,"canAddRow",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){return!0},t.prototype.onPointerDown=function(e,t){},t.prototype.onRowsChanged=function(){this.resetRenderedTable(),e.prototype.onRowsChanged.call(this)},t.prototype.onStartRowAddingRemoving=function(){this.lockResetRenderedTable=!0,this.setValueChangedDirectly()},t.prototype.onEndRowAdding=function(){if(this.lockResetRenderedTable=!1,this.renderedTable)if(this.renderedTable.isRequireReset())this.resetRenderedTable();else{var e=this.visibleRows.length-1;this.renderedTable.onAddedRow(this.visibleRows[e],e)}},t.prototype.onEndRowRemoving=function(e){this.lockResetRenderedTable=!1,this.renderedTable.isRequireReset()?this.resetRenderedTable():e&&this.renderedTable.onRemovedRow(e)},Object.defineProperty(t.prototype,"renderedTableValue",{get:function(){return this.getPropertyValue("renderedTable",null)},set:function(e){this.setPropertyValue("renderedTable",e)},enumerable:!1,configurable:!0}),t.prototype.clearRowsAndResetRenderedTable=function(){this.clearGeneratedRows(),this.resetRenderedTable(),this.fireCallback(this.columnsChangedCallback)},t.prototype.resetRenderedTable=function(){this.lockResetRenderedTable||this.isUpdateLocked||(this.renderedTableValue=null,this.fireCallback(this.onRenderedTableResetCallback))},t.prototype.clearGeneratedRows=function(){if(this.generatedVisibleRows){for(var t=0;t<this.generatedVisibleRows.length;t++)this.generatedVisibleRows[t].dispose();e.prototype.clearGeneratedRows.call(this)}},Object.defineProperty(t.prototype,"isRendredTableCreated",{get:function(){return!!this.renderedTableValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedTable",{get:function(){return this.renderedTableValue||(this.renderedTableValue=this.createRenderedTable(),this.onRenderedTableCreatedCallback&&this.onRenderedTableCreatedCallback(this.renderedTableValue)),this.renderedTableValue},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new b.QuestionMatrixDropdownRenderedTable(this)},t.prototype.onMatrixRowCreated=function(e){if(this.survey)for(var t={rowValue:e.value,row:e,column:null,columnName:null,cell:null,cellQuestion:null,value:null},r=0;r<this.visibleColumns.length;r++){t.column=this.visibleColumns[r],t.columnName=t.column.name;var n=e.cells[r];t.cell=n,t.cellQuestion=n.question,t.value=n.value,this.onCellCreatedCallback&&this.onCellCreatedCallback(t),this.survey.matrixCellCreated(this,t)}},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType",h.settings.matrixDefaultCellType)},set:function(e){e=e.toLowerCase(),this.setPropertyValue("cellType",e)},enumerable:!1,configurable:!0}),t.prototype.updateColumnsCellType=function(){for(var e=0;e<this.columns.length;e++)this.columns[e].defaultCellTypeChanged()},t.prototype.updateColumnsIndexes=function(e){for(var t=0;t<e.length;t++)e[t].setIndex(t)},Object.defineProperty(t.prototype,"columnColCount",{get:function(){return this.getPropertyValue("columnColCount")},set:function(e){e<0||e>4||this.setPropertyValue("columnColCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScroll",{get:function(){return this.getPropertyValue("horizontalScroll")},set:function(e){this.setPropertyValue("horizontalScroll",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e),this.detailPanel&&(this.detailPanel.allowAdaptiveActions=e)},enumerable:!1,configurable:!0}),t.prototype.getRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.hasChoices=function(){return this.choices.length>0},t.prototype.onColumnPropertyChanged=function(e,t,r){if(this.updateHasFooter(),this.generatedVisibleRows){for(var n=0;n<this.generatedVisibleRows.length;n++)this.generatedVisibleRows[n].updateCellQuestionOnColumnChanged(e,t,r);this.generatedTotalRow&&this.generatedTotalRow.updateCellQuestionOnColumnChanged(e,t,r),this.onColumnsChanged(),"isRequired"==t&&this.resetRenderedTable()}},t.prototype.onColumnItemValuePropertyChanged=function(e,t,r,n,o,i){if(this.generatedVisibleRows)for(var s=0;s<this.generatedVisibleRows.length;s++)this.generatedVisibleRows[s].updateCellQuestionOnColumnItemValueChanged(e,t,r,n,o,i)},t.prototype.onShowInMultipleColumnsChanged=function(e){this.clearGeneratedRows(),this.resetRenderedTable()},t.prototype.onColumnCellTypeChanged=function(e){this.clearGeneratedRows(),this.resetRenderedTable()},t.prototype.getRowTitleWidth=function(){return""},Object.defineProperty(t.prototype,"hasFooter",{get:function(){return this.getPropertyValue("hasFooter",!1)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return"default"},t.prototype.getShowColumnsIfEmpty=function(){return!1},t.prototype.updateShowTableAndAddRow=function(){this.renderedTable&&this.renderedTable.updateShowTableAndAddRow()},t.prototype.updateHasFooter=function(){this.setPropertyValue("hasFooter",this.hasTotal)},Object.defineProperty(t.prototype,"hasTotal",{get:function(){for(var e=0;e<this.columns.length;e++)if(this.columns[e].hasTotal)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getCellType=function(){return this.cellType},t.prototype.getCustomCellType=function(e,t,r){if(!this.survey)return r;var n={rowValue:t.value,row:t,column:e,columnName:e.name,cellType:r};return this.survey.matrixCellCreating(this,n),n.cellType},t.prototype.getConditionJson=function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!r)return e.prototype.getConditionJson.call(this);for(var n="",o=r.length-1;o>=0&&"."!=r[o];o--)n=r[o]+n;var i=this.getColumnByName(n);if(!i)return null;var s=i.createCellQuestion(null);return s?s.getConditionJson(t):null},t.prototype.clearIncorrectValues=function(){var e=this.visibleRows;if(e)for(var t=0;t<e.length;t++)e[t].clearIncorrectValues(this.getRowValue(t))},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this),this.runFuncForCellQuestions((function(e){e.clearErrors()}))},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.runFuncForCellQuestions((function(e){e.localeChanged()}))},t.prototype.runFuncForCellQuestions=function(e){if(this.generatedVisibleRows)for(var t=0;t<this.generatedVisibleRows.length;t++)for(var r=this.generatedVisibleRows[t],n=0;n<r.cells.length;n++)e(r.cells[n].question)},t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r);var n,o=0;do{n=s.Helpers.getUnbindValue(this.totalValue),this.runCellsCondition(t,r),this.runTotalsCondition(t,r),o++}while(!s.Helpers.isTwoValueEquals(n,this.totalValue)&&o<3)},t.prototype.shouldRunColumnExpression=function(){return!1},t.prototype.runCellsCondition=function(e,t){if(this.generatedVisibleRows){for(var r=this.getRowConditionValues(e),n=this.generatedVisibleRows,o=0;o<n.length;o++)n[o].runCondition(r,t);this.checkColumnsVisibility(),this.checkColumnsRenderedRequired()}},t.prototype.checkColumnsVisibility=function(){for(var e=!1,t=0;t<this.visibleColumns.length;t++)this.visibleColumns[t].visibleIf&&(e=this.isColumnVisibilityChanged(this.visibleColumns[t])||e);e&&this.resetRenderedTable()},t.prototype.checkColumnsRenderedRequired=function(){for(var e=this.generatedVisibleRows,t=0;t<this.visibleColumns.length;t++){var r=this.visibleColumns[t];if(r.requiredIf){for(var n=e.length>0,o=0;o<e.length;o++)if(!e[o].cells[t].question.isRequired){n=!1;break}r.updateIsRenderedRequired(n)}}},t.prototype.isColumnVisibilityChanged=function(e){for(var t=e.hasVisibleCell,r=!1,n=this.generatedVisibleRows,o=0;o<n.length;o++){var i=n[o].cells[e.index];if(i&&i.question&&i.question.isVisible){r=!0;break}}return t!=r&&(e.hasVisibleCell=r),t!=r},t.prototype.runTotalsCondition=function(e,t){this.generatedTotalRow&&this.generatedTotalRow.runCondition(this.getRowConditionValues(e),t)},t.prototype.getRowConditionValues=function(e){var t=e;t||(t={});var r={};return this.isValueEmpty(this.totalValue)||(r=JSON.parse(JSON.stringify(this.totalValue))),t.row={},t.totalRow=r,t},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.columns,r=0;r<t.length;r++)t[r].locStrsChanged();var n=this.generatedVisibleRows;if(n){for(r=0;r<n.length;r++)n[r].locStrsChanged();this.generatedTotalRow&&this.generatedTotalRow.locStrsChanged()}},t.prototype.getColumnByName=function(e){for(var t=0;t<this.columns.length;t++)if(this.columns[t].name==e)return this.columns[t];return null},t.prototype.getColumnName=function(e){return this.getColumnByName(e)},t.prototype.getColumnWidth=function(e){var t;return e.minWidth?e.minWidth:this.columnMinWidth?this.columnMinWidth:(null===(t=h.settings.matrix.columnWidthsByType[e.cellType])||void 0===t?void 0:t.minWidth)||""},Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return!!this.survey&&this.survey.storeOthersAsComment},enumerable:!1,configurable:!0}),t.prototype.addColumn=function(e,t){void 0===t&&(t=null);var r=new g.MatrixDropdownColumn(e,t);return this.columns.push(r),r},t.prototype.getVisibleRows=function(){var e=this;return this.isUpdateLocked?null:(this.generatedVisibleRows||(this.generatedVisibleRows=this.generateRows(),this.generatedVisibleRows.forEach((function(t){return e.onMatrixRowCreated(t)})),this.data&&this.runCellsCondition(this.data.getFilteredValues(),this.data.getFilteredProperties()),this.updateValueOnRowsGeneration(this.generatedVisibleRows),this.updateIsAnswered()),this.generatedVisibleRows)},t.prototype.updateValueOnRowsGeneration=function(e){for(var t=this.createNewValue(!0),r=this.createNewValue(),n=0;n<e.length;n++){var o=e[n];if(!o.editingObj){var i=this.getRowValue(n),s=o.value;this.isTwoValueEquals(i,s)||(r=this.getNewValueOnRowChanged(o,"",s,!1,r).value)}}this.isTwoValueEquals(t,r)||(this.isRowChanging=!0,this.setNewValue(r),this.isRowChanging=!1)},Object.defineProperty(t.prototype,"totalValue",{get:function(){return this.hasTotal&&this.visibleTotalRow?this.visibleTotalRow.value:{}},enumerable:!1,configurable:!0}),t.prototype.getVisibleTotalRow=function(){if(this.isUpdateLocked)return null;if(this.hasTotal){if(!this.generatedTotalRow&&(this.generatedTotalRow=this.generateTotalRow(),this.data)){var e={survey:this.survey};this.runTotalsCondition(this.data.getAllValues(),e)}}else this.generatedTotalRow=null;return this.generatedTotalRow},Object.defineProperty(t.prototype,"visibleTotalRow",{get:function(){return this.getVisibleTotalRow()},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.updateColumnsIndexes(this.columns),this.clearGeneratedRows(),this.generatedTotalRow=null,this.updateHasFooter()},t.prototype.getRowValue=function(e){if(e<0)return null;var t=this.visibleRows;if(e>=t.length)return null;var r=this.createNewValue();return this.getRowValueCore(t[e],r)},t.prototype.checkIfValueInRowDuplicated=function(e,t){if(!this.generatedVisibleRows)return!1;for(var r=!1,n=0;n<this.generatedVisibleRows.length;n++){var o=this.generatedVisibleRows[n];if(e!==o&&s.Helpers.isTwoValueEquals(o.getValue(t.name),t.value,!0,this.isUniqueCaseSensitive)){r=!0;break}}return r?this.addDuplicationError(t):t.clearErrors(),r},t.prototype.setRowValue=function(e,t){if(e<0)return null;var r=this.visibleRows;if(e>=r.length)return null;r[e].value=t,this.onRowChanged(r[e],"",t,!1)},t.prototype.generateRows=function(){return null},t.prototype.generateTotalRow=function(){return new P(this)},t.prototype.createNewValue=function(e){void 0===e&&(e=!1);var t=this.value?this.createValueCopy():{};return e&&this.isMatrixValueEmpty(t)?null:t},t.prototype.getRowValueCore=function(e,t,r){void 0===r&&(r=!1);var n=t&&t[e.rowName]?t[e.rowName]:null;return!n&&r&&(n={},t&&(t[e.rowName]=n)),n},t.prototype.getRowObj=function(e){var t=this.getRowValueCore(e,this.value);return t&&t.getType?t:null},t.prototype.getRowDisplayValue=function(e,t,r){if(!r)return r;if(t.editingObj)return r;for(var n=Object.keys(r),o=0;o<n.length;o++){var i=n[o],s=t.getQuestionByName(i);if(s||(s=this.getSharedQuestionByName(i,t)),s){var a=s.getDisplayValue(e,r[i]);e&&s.title&&s.title!==i?(r[s.title]=a,delete r[i]):r[i]=a}}return r},t.prototype.getPlainData=function(t){var r=this;void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);return n&&(n.isNode=!0,n.data=this.visibleRows.map((function(e){var n={name:e.rowName,title:e.text,value:e.value,displayValue:r.getRowDisplayValue(!1,e,e.value),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.cells.map((function(e){return e.question.getPlainData(t)})).filter((function(e){return!!e}))};return(t.calculations||[]).forEach((function(t){n[t.propertyName]=e[t.propertyName]})),n}))),n},t.prototype.addConditionObjectsByContext=function(e,t){var r=!!t&&(!0===t||this.columns.indexOf(t)>-1),n=this.getConditionObjectsRowIndeces();r&&n.push(-1);for(var o=0;o<n.length;o++){var i=n[o],s=i>-1?this.getConditionObjectRowName(i):"row";if(s)for(var a=i>-1?this.getConditionObjectRowText(i):"row",l=i>-1||!0===t,u=l&&-1===i?".":"",c=(l?this.getValueName():"")+u+s+".",p=(l?this.processedTitle:"")+u+a+".",d=0;d<this.columns.length;d++){var h=this.columns[d];if(-1!==i||t!==h){var f={name:c+h.name,text:p+h.fullTitle,question:this};-1===i&&!0===t&&(f.context=this),e.push(f)}}}},t.prototype.getConditionObjectRowName=function(e){return""},t.prototype.getConditionObjectRowText=function(e){return this.getConditionObjectRowName(e)},t.prototype.getConditionObjectsRowIndeces=function(){return[]},t.prototype.getProgressInfo=function(){if(this.generatedVisibleRows)return l.SurveyElement.getProgressInfoByElements(this.getCellQuestions(),this.isRequired);var e=a.Base.createProgressInfo();return this.updateProgressInfoByValues(e),0===e.requiredQuestionCount&&this.isRequired&&(e.requiredQuestionCount=1,e.requiredAnsweredQuestionCount=this.isEmpty()?0:1),e},t.prototype.updateProgressInfoByValues=function(e){},t.prototype.updateProgressInfoByRow=function(e,t){for(var r=0;r<this.columns.length;r++){var n=this.columns[r];if(n.templateQuestion.hasInput){e.questionCount+=1,e.requiredQuestionCount+=n.isRequired;var o=!s.Helpers.isValueEmpty(t[n.name]);e.answeredQuestionCount+=o?1:0,e.requiredAnsweredQuestionCount+=o&&n.isRequired?1:0}}},t.prototype.getCellQuestions=function(){var e=[];return this.runFuncForCellQuestions((function(t){e.push(t)})),e},t.prototype.onBeforeValueChanged=function(e){},t.prototype.onSetQuestionValue=function(){if(!this.isRowChanging&&(this.onBeforeValueChanged(this.value),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length)){this.isRowChanging=!0;for(var e=this.createNewValue(),t=0;t<this.generatedVisibleRows.length;t++){var r=this.generatedVisibleRows[t];this.generatedVisibleRows[t].value=this.getRowValueCore(r,e)}this.isRowChanging=!1}},t.prototype.setQuestionValue=function(t){e.prototype.setQuestionValue.call(this,t,!1),this.onSetQuestionValue(),this.updateIsAnswered()},t.prototype.supportGoNextPageAutomatic=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++){var r=this.generatedVisibleRows[t].cells;if(r)for(var n=0;n<r.length;n++){var o=r[n].question;if(o&&(!o.supportGoNextPageAutomatic()||!o.value))return!1}}return!0},t.prototype.getContainsErrors=function(){return e.prototype.getContainsErrors.call(this)||this.checkForAnswersOrErrors((function(e){return e.containsErrors}),!1)},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.checkForAnswersOrErrors((function(e){return e.isAnswered}),!0)},t.prototype.checkForAnswersOrErrors=function(e,t){void 0===t&&(t=!1);var r=this.generatedVisibleRows;if(!r)return!1;for(var n=0;n<r.length;n++){var o=r[n].cells;if(o)for(var i=0;i<o.length;i++)if(o[i]){var s=o[i].question;if(s&&s.isVisible)if(e(s)){if(!t)return!0}else if(t)return!1}}return!!t},t.prototype.hasErrors=function(t,r){void 0===t&&(t=!0),void 0===r&&(r=null);var n=this.hasErrorInRows(t,r),o=this.isValueDuplicated();return e.prototype.hasErrors.call(this,t,r)||n||o},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;if(!this.generatedVisibleRows)return!1;for(var t=0;t<this.generatedVisibleRows.length;t++){var r=this.generatedVisibleRows[t].cells;if(r)for(var n=0;n<r.length;n++)if(r[n]){var o=r[n].question;if(o&&o.isRunningValidators)return!0}}return!1},t.prototype.getAllErrors=function(){var t=e.prototype.getAllErrors.call(this),r=this.generatedVisibleRows;if(null===r)return t;for(var n=0;n<r.length;n++)for(var o=r[n],i=0;i<o.cells.length;i++){var s=o.cells[i].question.getAllErrors();s&&s.length>0&&(t=t.concat(s))}return t},t.prototype.hasErrorInRows=function(e,t){var r=this,n=this.generatedVisibleRows;this.generatedVisibleRows||(n=this.visibleRows);var o=!1;if(t||(t={}),!n)return t;t.isSingleDetailPanel="underRowSingle"===this.detailPanelMode;for(var i=0;i<n.length;i++)o=n[i].hasErrors(e,t,(function(){r.raiseOnCompletedAsyncValidators()}))||o;return o},t.prototype.isValueDuplicated=function(){if(!this.generatedVisibleRows)return!1;for(var e=this.getUniqueColumns(),t=!1,r=0;r<e.length;r++)t=this.isValueInColumnDuplicated(e[r])||t;return t},t.prototype.isValueInColumnDuplicated=function(e){for(var t=[],r=!1,n=0;n<this.generatedVisibleRows.length;n++)r=this.isValueDuplicatedInRow(this.generatedVisibleRows[n],e,t)||r;return r},t.prototype.getUniqueColumns=function(){for(var e=new Array,t=0;t<this.columns.length;t++)this.columns[t].isUnique&&e.push(this.columns[t]);return e},t.prototype.isValueDuplicatedInRow=function(e,t,r){var n=e.getQuestionByColumn(t);if(!n||n.isEmpty())return!1;for(var o=n.value,i=0;i<r.length;i++)if(s.Helpers.isTwoValueEquals(o,r[i],!0,this.isUniqueCaseSensitive))return this.addDuplicationError(n),!0;return r.push(o),!1},t.prototype.addDuplicationError=function(e){e.addError(new f.KeyDuplicationError(this.keyDuplicationError,this))},t.prototype.getFirstQuestionToFocus=function(e){return this.getFirstCellQuestion(e)},t.prototype.getFirstInputElementId=function(){var t=this.getFirstCellQuestion(!1);return t?t.inputId:e.prototype.getFirstInputElementId.call(this)},t.prototype.getFirstErrorInputElementId=function(){var t=this.getFirstCellQuestion(!0);return t?t.inputId:e.prototype.getFirstErrorInputElementId.call(this)},t.prototype.getFirstCellQuestion=function(e){if(!this.generatedVisibleRows)return null;for(var t=0;t<this.generatedVisibleRows.length;t++)for(var r=this.generatedVisibleRows[t].cells,n=0;n<r.length;n++){if(!e)return r[n].question;if(r[n].question.currentErrorCount>0)return r[n].question}return null},t.prototype.onReadOnlyChanged=function(){if(e.prototype.onReadOnlyChanged.call(this),this.generateRows)for(var t=0;t<this.visibleRows.length;t++)this.visibleRows[t].onQuestionReadOnlyChanged(this.isReadOnly)},t.prototype.createQuestion=function(e,t){return this.createQuestionCore(e,t)},t.prototype.createQuestionCore=function(e,t){var r=t.createCellQuestion(e);return r.setSurveyImpl(e),r.setParentQuestion(this),r.inMatrixMode=!0,r},t.prototype.deleteRowValue=function(e,t){return e?(delete e[t.rowName],this.isObject(e)&&0==Object.keys(e).length?null:e):e},t.prototype.onAnyValueChanged=function(e){if(!this.isUpdateLocked&&!this.isDoingonAnyValueChanged&&this.generatedVisibleRows){this.isDoingonAnyValueChanged=!0;for(var t=this.visibleRows,r=0;r<t.length;r++)t[r].onAnyValueChanged(e);var n=this.visibleTotalRow;n&&n.onAnyValueChanged(e),this.isDoingonAnyValueChanged=!1}},t.prototype.isObject=function(e){return null!==e&&"object"==typeof e},t.prototype.getOnCellValueChangedOptions=function(e,t,r){return{row:e,columnName:t,rowValue:r,value:r?r[t]:null,getCellQuestion:function(t){for(var r=0;r<e.cells.length;r++){var n=e.cells[r].column;if(n&&n.name===t)return e.cells[r].question}return null}}},t.prototype.onCellValueChanged=function(e,t,r){if(this.survey){var n=this.getOnCellValueChangedOptions(e,t,r);this.onCellValueChangedCallback&&this.onCellValueChangedCallback(n),this.survey.matrixCellValueChanged(this,n)}},t.prototype.validateCell=function(e,t,r){if(this.survey){var n=this.getOnCellValueChangedOptions(e,t,r);return this.survey.matrixCellValidate(this,n)}},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return!!this.survey&&this.survey.isValidateOnValueChanging},enumerable:!1,configurable:!0}),t.prototype.onRowChanging=function(e,t,r){if(!this.survey&&!this.cellValueChangingCallback)return r?r[t]:null;var n=this.getOnCellValueChangedOptions(e,t,r),o=this.getRowValueCore(e,this.createNewValue(),!0);return n.oldValue=o?o[t]:null,this.cellValueChangingCallback&&(n.value=this.cellValueChangingCallback(e,t,n.value,n.oldValue)),this.survey&&this.survey.matrixCellValueChanging(this,n),n.value},t.prototype.onRowChanged=function(e,t,r,n){var o=t?this.getRowObj(e):null;if(o){var i=null;r&&!n&&(i=r[t]),this.isRowChanging=!0,o[t]=i,this.isRowChanging=!1,this.onCellValueChanged(e,t,o)}else{var s=this.createNewValue(!0),a=this.getNewValueOnRowChanged(e,t,r,n,this.createNewValue());if(this.isTwoValueEquals(s,a.value))return;this.isRowChanging=!0,this.setNewValue(a.value),this.isRowChanging=!1,t&&this.onCellValueChanged(e,t,a.rowValue)}},t.prototype.getNewValueOnRowChanged=function(e,t,r,n,o){var i=this.getRowValueCore(e,o,!0);n&&delete i[t];for(var s=0;s<e.cells.length;s++)delete i[a=e.cells[s].question.getValueName()];if(r)for(var a in r=JSON.parse(JSON.stringify(r)))this.isValueEmpty(r[a])||(i[a]=r[a]);return this.isObject(i)&&0===Object.keys(i).length&&(o=this.deleteRowValue(o,e)),{value:o,rowValue:i}},t.prototype.getRowIndex=function(e){return this.generatedVisibleRows?this.visibleRows.indexOf(e):-1},t.prototype.getElementsInDesign=function(t){var r;return void 0===t&&(t=!1),r="none"==this.detailPanelMode?e.prototype.getElementsInDesign.call(this,t):t?[this.detailPanel]:this.detailElements,this.columns.concat(r)},t.prototype.hasDetailPanel=function(e){return"none"!=this.detailPanelMode&&(!!this.isDesignMode||(this.onHasDetailPanelCallback?this.onHasDetailPanelCallback(e):this.detailElements.length>0))},t.prototype.getIsDetailPanelShowing=function(e){if("none"==this.detailPanelMode)return!1;if(this.isDesignMode){var t=0==this.visibleRows.indexOf(e);return t&&(e.detailPanel||e.showDetailPanel()),t}return this.getPropertyValue("isRowShowing"+e.id,!1)},t.prototype.setIsDetailPanelShowing=function(e,t){if(t!=this.getIsDetailPanelShowing(e)&&(this.setPropertyValue("isRowShowing"+e.id,t),this.updateDetailPanelButtonCss(e),this.renderedTable&&this.renderedTable.onDetailPanelChangeVisibility(e,t),t&&"underRowSingle"===this.detailPanelMode))for(var r=this.visibleRows,n=0;n<r.length;n++)r[n].id!==e.id&&r[n].isDetailPanelShowing&&r[n].hideDetailPanel()},t.prototype.getDetailPanelButtonCss=function(e){var t=(new m.CssClassBuilder).append(this.getPropertyValue("detailButtonCss"+e.id));return t.append(this.cssClasses.detailButton,""===t.toString()).toString()},t.prototype.getDetailPanelIconCss=function(e){var t=(new m.CssClassBuilder).append(this.getPropertyValue("detailIconCss"+e.id));return t.append(this.cssClasses.detailIcon,""===t.toString()).toString()},t.prototype.getDetailPanelIconId=function(e){return this.getIsDetailPanelShowing(e)?this.cssClasses.detailIconExpandedId:this.cssClasses.detailIconId},t.prototype.updateDetailPanelButtonCss=function(e){var t=this.cssClasses,r=this.getIsDetailPanelShowing(e),n=(new m.CssClassBuilder).append(t.detailIcon).append(t.detailIconExpanded,r);this.setPropertyValue("detailIconCss"+e.id,n.toString());var o=(new m.CssClassBuilder).append(t.detailButton).append(t.detailButtonExpanded,r);this.setPropertyValue("detailButtonCss"+e.id,o.toString())},t.prototype.createRowDetailPanel=function(e){if(this.isDesignMode)return this.detailPanel;var t=this.createNewDetailPanel();t.readOnly=this.isReadOnly;var r=this.detailPanel.toJSON();return(new o.JsonObject).toObject(r,t),t.renderWidth="100%",t.updateCustomWidgets(),this.onCreateDetailPanelCallback&&this.onCreateDetailPanelCallback(e,t),t},t.prototype.getSharedQuestionByName=function(e,t){if(!this.survey||!this.valueName)return null;var r=this.getRowIndex(t);return r<0?null:this.survey.getQuestionByValueNameFromArray(this.valueName,e,r)},t.prototype.onTotalValueChanged=function(){this.data&&this.visibleTotalRow&&!this.isUpdateLocked&&!this.isSett&&this.data.setValue(this.getValueName()+h.settings.matrixTotalValuePostFix,this.totalValue,!1)},t.prototype.getParentTextProcessor=function(){if(!this.parentQuestion||!this.parent)return null;var e=this.parent.data;return e&&e.getTextProcessor?e.getTextProcessor():null},t.prototype.getQuestionFromArray=function(e,t){return t>=this.visibleRows.length?null:this.visibleRows[t].getQuestionByName(e)},t.prototype.isMatrixValueEmpty=function(e){if(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)if(this.isObject(e[t])&&Object.keys(e[t]).length>0)return!1;return!0}return 0==Object.keys(e).length}},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getCellTemplateData=function(e){return this.SurveyModel.getMatrixCellTemplateData(e)},t.prototype.getCellWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,e.row instanceof P?"row-footer":"cell")},t.prototype.getCellWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,e.row instanceof P?"row-footer":"cell")},t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"row-header")},Object.defineProperty(t.prototype,"showHorizontalScroll",{get:function(){return!this.isDefaultV2Theme&&this.horizontalScroll},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){return(new m.CssClassBuilder).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.rootScroll,this.horizontalScroll).toString()},t.prototype.getIsTooltipErrorInsideSupported=function(){return!0},t}(i.QuestionMatrixBaseModel);o.Serializer.addClass("matrixdropdownbase",[{name:"columns:matrixdropdowncolumns",className:"matrixdropdowncolumn"},{name:"columnLayout",alternativeName:"columnsLocation",default:"horizontal",choices:["horizontal","vertical"]},{name:"detailElements",visible:!1,isLightSerializable:!1},{name:"detailPanelMode",choices:["none","underRow","underRowSingle"],default:"none"},"horizontalScroll:boolean",{name:"choices:itemvalue[]",uniqueProperty:"value"},{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"cellType",default:"dropdown",choices:function(){return g.MatrixDropdownColumn.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth",{name:"allowAdaptiveActions:boolean",default:!1,visible:!1}],(function(){return new _("")}),"matrixbase")},"./src/question_matrixdropdowncolumn.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"matrixDropdownColumnTypes",(function(){return c})),r.d(t,"MatrixDropdownColumn",(function(){return p}));var n,o=r("./src/jsonobject.ts"),i=r("./src/base.ts"),s=r("./src/question_expression.ts"),a=r("./src/settings.ts"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});function u(e,t,r,n){e.storeOthersAsComment=!!r&&r.storeOthersAsComment,e.choices&&0!=e.choices.length||!e.choicesByUrl.isEmpty||(e.choices=r.choices),e.choicesByUrl.isEmpty||e.choicesByUrl.run(n.getTextProcessor())}var c={dropdown:{onCellQuestionUpdate:function(e,t,r,n){u(e,0,r,n),e.locPlaceholder&&e.locPlaceholder.isEmpty&&!r.locPlaceholder.isEmpty&&(e.optionsCaption=r.optionsCaption)}},checkbox:{onCellQuestionUpdate:function(e,t,r,n){u(e,0,r,n),e.colCount=t.colCount>-1?t.colCount:r.columnColCount}},radiogroup:{onCellQuestionUpdate:function(e,t,r,n){u(e,0,r,n),e.colCount=t.colCount>-1?t.colCount:r.columnColCount}},tagbox:{},text:{},comment:{},boolean:{onCellQuestionUpdate:function(e,t,r,n){e.renderAs=t.renderAs}},expression:{},rating:{}},p=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this)||this;return n.colOwnerValue=null,n.indexValue=-1,n._isVisible=!0,n._hasVisibleCell=!0,n.previousChoicesId=void 0,n.createLocalizableString("totalFormat",n),n.createLocalizableString("cellHint",n),n.registerPropertyChangedHandlers(["showInMultipleColumns"],(function(){n.doShowInMultipleColumnsChanged()})),n.updateTemplateQuestion(),n.name=t,r?n.title=r:n.templateQuestion.locTitle.strChanged(),n}return l(t,e),t.getColumnTypes=function(){var e=[];for(var t in c)e.push(t);return e},t.prototype.getOriginalObj=function(){return this.templateQuestion},t.prototype.getClassNameProperty=function(){return"cellType"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.colOwner?this.colOwner.survey:null},t.prototype.endLoadingFromJson=function(){var t=this;e.prototype.endLoadingFromJson.call(this),this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns,this.templateQuestion.endLoadingFromJson(),this.templateQuestion.onGetSurvey=function(){return t.getSurvey()}},t.prototype.getDynamicPropertyName=function(){return"cellType"},t.prototype.getDynamicType=function(){return"default"===this.cellType?"question":this.calcCellQuestionType(null)},Object.defineProperty(t.prototype,"colOwner",{get:function(){return this.colOwnerValue},set:function(e){this.colOwnerValue=e,e&&(this.updateTemplateQuestion(),this.setParentQuestionToTemplate(this.templateQuestion))},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTitle.strChanged()},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.templateQuestion.addUsedLocales(t)},Object.defineProperty(t.prototype,"index",{get:function(){return this.indexValue},enumerable:!1,configurable:!0}),t.prototype.setIndex=function(e){this.indexValue=e},t.prototype.getType=function(){return"matrixdropdowncolumn"},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType")},set:function(e){e=e.toLocaleLowerCase(),this.updateTemplateQuestion(e),this.setPropertyValue("cellType",e),this.colOwner&&this.colOwner.onColumnCellTypeChanged(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateQuestion",{get:function(){return this.templateQuestionValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.templateQuestion.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},enumerable:!1,configurable:!0}),t.prototype.setIsVisible=function(e){this._isVisible=e},Object.defineProperty(t.prototype,"hasVisibleCell",{get:function(){return this._hasVisibleCell},set:function(e){this._hasVisibleCell=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.templateQuestion.name},set:function(e){this.templateQuestion.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.templateQuestion.title},set:function(e){this.templateQuestion.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.templateQuestion.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.textOrHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.templateQuestion.isRequired},set:function(e){this.templateQuestion.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderedRequired",{get:function(){return this.getPropertyValue("isRenderedRequired",this.isRequired)},set:function(e){this.setPropertyValue("isRenderedRequired",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsRenderedRequired=function(e){this.isRenderedRequired=e||this.isRequired},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.isRenderedRequired&&this.getSurvey()?this.getSurvey().requiredText:this.templateQuestion.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.templateQuestion.requiredErrorText},set:function(e){this.templateQuestion.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.templateQuestion.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.templateQuestion.readOnly},set:function(e){this.templateQuestion.readOnly=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.templateQuestion.hasOther},set:function(e){this.templateQuestion.hasOther=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.templateQuestion.visibleIf},set:function(e){this.templateQuestion.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.templateQuestion.enableIf},set:function(e){this.templateQuestion.enableIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.templateQuestion.requiredIf},set:function(e){this.templateQuestion.requiredIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUnique",{get:function(){return this.getPropertyValue("isUnique")},set:function(e){this.setPropertyValue("isUnique",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInMultipleColumns",{get:function(){return this.getPropertyValue("showInMultipleColumns")},set:function(e){this.setPropertyValue("showInMultipleColumns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSupportMultipleColumns",{get:function(){return["checkbox","radiogroup"].indexOf(this.cellType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowInMultipleColumns",{get:function(){return this.showInMultipleColumns&&this.isSupportMultipleColumns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.templateQuestion.validators},set:function(e){this.templateQuestion.validators=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalType",{get:function(){return this.getPropertyValue("totalType")},set:function(e){this.setPropertyValue("totalType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalExpression",{get:function(){return this.getPropertyValue("totalExpression")},set:function(e){this.setPropertyValue("totalExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTotal",{get:function(){return"none"!=this.totalType||!!this.totalExpression},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalFormat",{get:function(){return this.getLocalizableStringText("totalFormat","")},set:function(e){this.setLocalizableStringText("totalFormat",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalFormat",{get:function(){return this.getLocalizableString("totalFormat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cellHint",{get:function(){return this.getLocalizableStringText("cellHint","")},set:function(e){this.setLocalizableStringText("cellHint",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCellHint",{get:function(){return this.getLocalizableString("cellHint")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderAs",{get:function(){return this.getPropertyValue("renderAs")},set:function(e){this.setPropertyValue("renderAs",e),this.templateQuestion&&(this.templateQuestion.renderAs=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMaximumFractionDigits",{get:function(){return this.getPropertyValue("totalMaximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMaximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMinimumFractionDigits",{get:function(){return this.getPropertyValue("totalMinimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMinimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalDisplayStyle",{get:function(){return this.getPropertyValue("totalDisplayStyle")},set:function(e){this.setPropertyValue("totalDisplayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalCurrency",{get:function(){return this.getPropertyValue("totalCurrency")},set:function(e){Object(s.getCurrecyCodes)().indexOf(e)<0||this.setPropertyValue("totalCurrency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth","")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<-1||e>4||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.colOwner?this.colOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.colOwner?this.colOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.colOwner?this.colOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.colOwner?this.colOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.colOwner?this.colOwner.getProcessedText(e):e},t.prototype.createCellQuestion=function(e){var t=this.calcCellQuestionType(e),r=this.createNewQuestion(t);return this.callOnCellQuestionUpdate(r,e),r},t.prototype.startLoadingFromJson=function(t){e.prototype.startLoadingFromJson.call(this,t),t&&!t.cellType&&t.choices&&(t.cellType=this.colOwner.getCellType())},t.prototype.updateCellQuestion=function(e,t,r){void 0===r&&(r=null),this.setQuestionProperties(e,r)},t.prototype.callOnCellQuestionUpdate=function(e,t){var r=e.getType(),n=c[r];n&&n.onCellQuestionUpdate&&n.onCellQuestionUpdate(e,this,this.colOwner,t)},t.prototype.defaultCellTypeChanged=function(){this.updateTemplateQuestion()},t.prototype.calcCellQuestionType=function(e){var t=this.getDefaultCellQuestionType();return e&&this.colOwner&&(t=this.colOwner.getCustomCellType(this,e,t)),t},t.prototype.getDefaultCellQuestionType=function(e){return e||(e=this.cellType),"default"!==e?e:this.colOwner?this.colOwner.getCellType():a.settings.matrixDefaultCellType},t.prototype.updateTemplateQuestion=function(e){var t=this,r=this.getDefaultCellQuestionType(e),n=this.templateQuestion?this.templateQuestion.getType():"";r!==n&&(this.templateQuestion&&this.removeProperties(n),this.templateQuestionValue=this.createNewQuestion(r),this.templateQuestion.locOwner=this,this.addProperties(r),this.templateQuestion.onPropertyChanged.add((function(e,r){t.propertyValueChanged(r.name,r.oldValue,r.newValue)})),this.templateQuestion.onItemValuePropertyChanged.add((function(e,r){t.doItemValuePropertyChanged(r.propertyName,r.obj,r.name,r.newValue,r.oldValue)})),this.templateQuestion.isContentElement=!0,this.isLoadingFromJson||(this.templateQuestion.onGetSurvey=function(){return t.getSurvey()}),this.templateQuestion.locTitle.strChanged())},t.prototype.createNewQuestion=function(e){var t=o.Serializer.createClass(e);return t||(t=o.Serializer.createClass("text")),t.loadingOwner=this,t.isEditableTemplateElement=!0,t.autoOtherMode=this.isShowInMultipleColumns,this.setQuestionProperties(t),this.setParentQuestionToTemplate(t),t},t.prototype.setParentQuestionToTemplate=function(e){this.colOwner&&this.colOwner.isQuestion&&e.setParentQuestion(this.colOwner)},t.prototype.setQuestionProperties=function(e,t){var r=this;if(void 0===t&&(t=null),this.templateQuestion){var n=(new o.JsonObject).toJsonObject(this.templateQuestion,!0);t&&t(n),n.type=e.getType(),"default"===this.cellType&&this.colOwner&&this.colOwner.hasChoices()&&delete n.choices,delete n.itemComponent,(new o.JsonObject).toObject(n,e),e.isContentElement=this.templateQuestion.isContentElement,this.previousChoicesId=void 0,e.loadedChoicesFromServerCallback=function(){if(r.isShowInMultipleColumns&&(!r.previousChoicesId||r.previousChoicesId===e.id)){r.previousChoicesId=e.id;var t=e.visibleChoices;r.templateQuestion.choices=t,r.propertyValueChanged("choices",t,t)}}}},t.prototype.propertyValueChanged=function(t,r,n){e.prototype.propertyValueChanged.call(this,t,r,n),"isRequired"===t&&this.updateIsRenderedRequired(n),this.colOwner&&!this.isLoadingFromJson&&(this.isShowInMultipleColumns&&["visibleChoices","choices"].indexOf(t)>-1&&this.colOwner.onShowInMultipleColumnsChanged(this),o.Serializer.hasOriginalProperty(this,t)&&this.colOwner.onColumnPropertyChanged(this,t,n))},t.prototype.doItemValuePropertyChanged=function(e,t,r,n,i){o.Serializer.hasOriginalProperty(t,r)&&(null==this.colOwner||this.isLoadingFromJson||this.colOwner.onColumnItemValuePropertyChanged(this,e,t,r,n,i))},t.prototype.doShowInMultipleColumnsChanged=function(){null==this.colOwner||this.isLoadingFromJson||this.colOwner.onShowInMultipleColumnsChanged(this),this.templateQuestion&&(this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns)},t.prototype.getProperties=function(e){return o.Serializer.getDynamicPropertiesByObj(this,e)},t.prototype.removeProperties=function(e){for(var t=this.getProperties(e),r=0;r<t.length;r++){var n=t[r];delete this[n.name],n.serializationProperty&&delete this[n.serializationProperty]}},t.prototype.addProperties=function(e){for(var t=this.templateQuestion,r=this.getProperties(e),n=0;n<r.length;n++){var o=r[n];this.addProperty(t,o.name,!1),o.serializationProperty&&this.addProperty(t,o.serializationProperty,!0),o.alternativeName&&this.addProperty(t,o.alternativeName,!1)}},t.prototype.addProperty=function(e,t,r){var n={configurable:!0,get:function(){return e[t]}};r||(n.set=function(r){e[t]=r}),Object.defineProperty(this,t,n)},t}(i.Base);o.Serializer.addClass("matrixdropdowncolumn",[{name:"!name",isUnique:!0},{name:"title",serializationProperty:"locTitle",dependsOn:"name",onPropertyEditorUpdate:function(e,t){e&&t&&(t.placeholder=e.name)}},{name:"cellHint",serializationProperty:"locCellHint",visible:!1},{name:"cellType",default:"default",choices:function(){var e=p.getColumnTypes();return e.splice(0,0,"default"),e}},{name:"colCount",default:-1,choices:[-1,0,1,2,3,4]},"isRequired:boolean","isUnique:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:boolean",{name:"minWidth",onPropertyEditorUpdate:function(e,t){e&&t&&(t.value=e.minWidth)}},"width","visibleIf:condition","enableIf:condition","requiredIf:condition",{name:"showInMultipleColumns:boolean",dependsOn:"cellType",visibleIf:function(e){return!!e&&e.isSupportMultipleColumns}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"totalType",default:"none",choices:["none","sum","count","min","max","avg"]},"totalExpression:expression",{name:"totalFormat",serializationProperty:"locTotalFormat"},{name:"totalDisplayStyle",default:"none",choices:["none","decimal","currency","percent"]},{name:"totalCurrency",choices:function(){return Object(s.getCurrecyCodes)()},default:"USD"},{name:"totalMaximumFractionDigits:number",default:-1},{name:"totalMinimumFractionDigits:number",default:-1},{name:"renderAs",default:"default",visible:!1}],(function(){return new p("")}))},"./src/question_matrixdropdownrendered.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return f})),r.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return m})),r.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return g}));var n,o=r("./src/jsonobject.ts"),i=r("./src/base.ts"),s=r("./src/itemvalue.ts"),a=r("./src/actions/action.ts"),l=r("./src/actions/adaptive-container.ts"),u=r("./src/utils/cssClassBuilder.ts"),c=r("./src/actions/container.ts"),p=r("./src/settings.ts"),d=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},f=function(){function e(){this.minWidth="",this.width="",this.colSpans=1,this.isActionsCell=!1,this.isDragHandlerCell=!1,this.classNameValue="",this.idValue=e.counter++}return Object.defineProperty(e.prototype,"hasQuestion",{get:function(){return!!this.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasTitle",{get:function(){return!!this.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPanel",{get:function(){return!!this.panel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showErrorOnTop",{get:function(){return this.showErrorOnCore("top")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showErrorOnBottom",{get:function(){return this.showErrorOnCore("bottom")},enumerable:!1,configurable:!0}),e.prototype.showErrorOnCore=function(e){return this.getShowErrorLocation(e)&&(!this.isChoice||this.isFirstChoice)},e.prototype.getShowErrorLocation=function(e){return this.hasQuestion&&this.question.showErrorOnCore(e)},Object.defineProperty(e.prototype,"item",{get:function(){return this.itemValue},set:function(e){this.itemValue=e,e&&(e.hideCaption=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isChoice",{get:function(){return!!this.item},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isItemChoice",{get:function(){return this.isChoice&&!this.isOtherChoice},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"choiceValue",{get:function(){return this.isChoice?this.item.value:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCheckbox",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("checkbox")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRadio",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("radiogroup")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFirstChoice",{get:function(){return 0===this.choiceIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){var e=(new u.CssClassBuilder).append(this.classNameValue);return this.hasQuestion&&e.append(this.question.cssClasses.hasError,this.question.errors.length>0).append(this.question.cssClasses.answered,this.question.isAnswered),e.toString()},set:function(e){this.classNameValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){if(this.cell&&this.cell.column){if(" "===this.cell.column.cellHint)return"";if(this.cell.column.cellHint)return this.cell.column.locCellHint.renderedHtml;if(this.cell.column.isShowInMultipleColumns)return this.item?this.item.locText.renderedHtml:""}return this.question&&this.question.isVisible?this.question.locTitle.renderedHtml:this.hasTitle&&this.locTitle.renderedHtml||""},enumerable:!1,configurable:!0}),e.prototype.getTitle=function(){return this.matrix&&this.matrix.showHeader?this.headers:""},e.prototype.calculateFinalClassName=function(e){var t=this.cell.question.cssClasses,r=(new u.CssClassBuilder).append(t.itemValue,!!t).append(t.asCell,!!t);return r.append(e.cell,r.isEmpty()&&!!e).append(e.choiceCell,this.isChoice).toString()},e.counter=1,e}(),m=function(e){function t(r,n){void 0===n&&(n=!1);var o=e.call(this)||this;return o.cssClasses=r,o.isDetailRow=n,o.cells=[],o.idValue=t.counter++,o}return d(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){return this.row?{"data-sv-drop-target-matrix-row":this.row.id}:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return(new u.CssClassBuilder).append(this.cssClasses.row).append(this.cssClasses.detailRow,this.isDetailRow).append(this.cssClasses.ghostRow,this.isGhostRow).append(this.cssClasses.rowAdditional,this.isAdditionalClasses).toString()},enumerable:!1,configurable:!0}),t.counter=1,h([Object(o.property)({defaultValue:!1})],t.prototype,"isGhostRow",void 0),h([Object(o.property)({defaultValue:!1})],t.prototype,"isAdditionalClasses",void 0),t}(i.Base),g=function(e){function t(t){var r=e.call(this)||this;return r.matrix=t,r.renderedRowsChangedCallback=function(){},r.hasActionCellInRowsValues={},r.build(),r}return d(t,e),Object.defineProperty(t.prototype,"showTable",{get:function(){return this.getPropertyValue("showTable",!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnTop",{get:function(){return this.getPropertyValue("showAddRowOnTop",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnBottom",{get:function(){return this.getPropertyValue("showAddRowOnBottom",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.matrix.hasFooter&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFooter",{get:function(){return!!this.footerRow},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRemoveRows",{get:function(){return this.hasRemoveRowsValue},enumerable:!1,configurable:!0}),t.prototype.isRequireReset=function(){return this.hasRemoveRows!=this.matrix.canRemoveRows||!this.matrix.isColumnLayoutHorizontal},Object.defineProperty(t.prototype,"headerRow",{get:function(){return this.headerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerRow",{get:function(){return this.footerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRowsDragAndDrop",{get:function(){return this.matrix.allowRowsDragAndDrop&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),t.prototype.build=function(){this.hasRemoveRowsValue=this.matrix.canRemoveRows,this.matrix.visibleRows,this.cssClasses=this.matrix.cssClasses,this.buildRowsActions(),this.buildHeader(),this.buildRows(),this.buildFooter(),this.updateShowTableAndAddRow()},t.prototype.updateShowTableAndAddRow=function(){var e=this.rows.length>0||this.matrix.isDesignMode||!this.matrix.getShowColumnsIfEmpty();this.setPropertyValue("showTable",e);var t=this.matrix.canAddRow&&e,r=t,n=t;r&&(r="default"===this.matrix.getAddRowLocation()?!this.matrix.isColumnLayoutHorizontal:"bottom"!==this.matrix.getAddRowLocation()),n&&"topBottom"!==this.matrix.getAddRowLocation()&&(n=!r),this.setPropertyValue("showAddRowOnTop",r),this.setPropertyValue("showAddRowOnBottom",n)},t.prototype.onAddedRow=function(e,t){if(!(this.getRenderedDataRowCount()>=this.matrix.visibleRows.length)){var r=this.getRenderedRowIndexByIndex(t);this.rowsActions.splice(t,0,this.buildRowActions(e)),this.addHorizontalRow(this.rows,e,1==this.matrix.visibleRows.length&&!this.matrix.showHeader,r),this.updateShowTableAndAddRow()}},t.prototype.getRenderedRowIndexByIndex=function(e){for(var t=0,r=0,n=0;n<this.rows.length;n++){if(r===e){this.rows[n].isDetailRow&&t++;break}t++,this.rows[n].isDetailRow||r++}return r<e?this.rows.length:t},t.prototype.getRenderedDataRowCount=function(){for(var e=0,t=0;t<this.rows.length;t++)this.rows[t].isDetailRow||e++;return e},t.prototype.onRemovedRow=function(e){var t=this.getRenderedRowIndex(e);if(!(t<0)){this.rowsActions.splice(t,1);var r=1;t<this.rows.length-1&&this.rows[t+1].isDetailRow&&r++,this.rows.splice(t,r),this.updateShowTableAndAddRow()}},t.prototype.onDetailPanelChangeVisibility=function(e,t){var r=this.getRenderedRowIndex(e);if(!(r<0)){var n=r<this.rows.length-1&&this.rows[r+1].isDetailRow?r+1:-1;if(!(t&&n>-1||!t&&n<0))if(t){var o=this.createDetailPanelRow(e,this.rows[r]);this.rows.splice(r+1,0,o)}else this.rows.splice(n,1)}},t.prototype.getRenderedRowIndex=function(e){for(var t=0;t<this.rows.length;t++)if(this.rows[t].row==e)return t;return-1},t.prototype.buildRowsActions=function(){this.rowsActions=[];for(var e=this.matrix.visibleRows,t=0;t<e.length;t++)this.rowsActions.push(this.buildRowActions(e[t]))},t.prototype.createRenderedRow=function(e,t){return void 0===t&&(t=!1),new m(e,t)},t.prototype.buildHeader=function(){var e=this.matrix.isColumnLayoutHorizontal&&this.matrix.showHeader||this.matrix.hasRowText&&!this.matrix.isColumnLayoutHorizontal;if(this.setPropertyValue("showHeader",e),e){if(this.headerRowValue=this.createRenderedRow(this.cssClasses),this.allowRowsDragAndDrop&&this.headerRow.cells.push(this.createHeaderCell(null)),this.hasActionCellInRows("start")&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.hasRowText&&this.matrix.showHeader&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.isColumnLayoutHorizontal)for(var t=0;t<this.matrix.visibleColumns.length;t++){var r=this.matrix.visibleColumns[t];r.hasVisibleCell&&(r.isShowInMultipleColumns?this.createMutlipleColumnsHeader(r):this.headerRow.cells.push(this.createHeaderCell(r)))}else{var n=this.matrix.visibleRows;for(t=0;t<n.length;t++){var o=this.createTextCell(n[t].locText);o.row=n[t],this.headerRow.cells.push(o)}this.matrix.hasFooter&&this.headerRow.cells.push(this.createTextCell(this.matrix.getFooterText()))}this.hasActionCellInRows("end")&&this.headerRow.cells.push(this.createHeaderCell(null))}},t.prototype.buildFooter=function(){if(this.showFooter){this.footerRowValue=this.createRenderedRow(this.cssClasses),this.allowRowsDragAndDrop&&this.footerRow.cells.push(this.createHeaderCell(null)),this.hasActionCellInRows("start")&&this.footerRow.cells.push(this.createHeaderCell(null)),this.matrix.hasRowText&&this.footerRow.cells.push(this.createTextCell(this.matrix.getFooterText()));for(var e=this.matrix.visibleTotalRow.cells,t=0;t<e.length;t++){var r=e[t];if(r.column.hasVisibleCell)if(r.column.isShowInMultipleColumns)this.createMutlipleColumnsFooter(this.footerRow,r);else{var n=this.createEditCell(r);r.column&&this.setHeaderCellWidth(r.column,n),this.footerRow.cells.push(n)}}this.hasActionCellInRows("end")&&this.footerRow.cells.push(this.createHeaderCell(null))}},t.prototype.buildRows=function(){var e=this.matrix.isColumnLayoutHorizontal?this.buildHorizontalRows():this.buildVerticalRows();this.rows=e},t.prototype.hasActionCellInRows=function(e){return void 0===this.hasActionCellInRowsValues[e]&&(this.hasActionCellInRowsValues[e]=this.hasActionsCellInLocaltion(e)),this.hasActionCellInRowsValues[e]},t.prototype.hasActionsCellInLocaltion=function(e){var t=this;return!("end"!=e||!this.hasRemoveRows)||this.matrix.visibleRows.some((function(r,n){return!t.isValueEmpty(t.getRowActions(n,e))}))},t.prototype.canRemoveRow=function(e){return this.matrix.canRemoveRow(e)},t.prototype.buildHorizontalRows=function(){for(var e=this.matrix.visibleRows,t=[],r=0;r<e.length;r++)this.addHorizontalRow(t,e[r],0==r&&!this.matrix.showHeader);return t},t.prototype.addHorizontalRow=function(e,t,r,n){void 0===n&&(n=-1);var o=this.createHorizontalRow(t,r);o.row=t,n<0&&(n=e.length),e.splice(n,0,o),t.isDetailPanelShowing&&e.splice(n+1,0,this.createDetailPanelRow(t,o))},t.prototype.getRowDragCell=function(e){var t=new f;return t.isDragHandlerCell=!0,t.className=this.getActionsCellClassName(),t.row=this.matrix.visibleRows[e],t},t.prototype.getActionsCellClassName=function(){return(new u.CssClassBuilder).append(this.cssClasses.actionsCell).append(this.cssClasses.verticalCell,!this.matrix.isColumnLayoutHorizontal).toString()},t.prototype.getRowActionsCell=function(e,t){var r=this.getRowActions(e,t);if(!this.isValueEmpty(r)){var n=new f,o=this.matrix.allowAdaptiveActions?new l.AdaptiveActionContainer:new c.ActionContainer;this.matrix.survey&&this.matrix.survey.getCss().actionBar&&(o.cssClasses=this.matrix.survey.getCss().actionBar),o.setItems(r);var i=new s.ItemValue(o);return n.item=i,n.isActionsCell=!0,n.className=this.getActionsCellClassName(),n.row=this.matrix.visibleRows[e],n}return null},t.prototype.getRowActions=function(e,t){var r=this.rowsActions[e];return Array.isArray(r)?r.filter((function(e){return e.location||(e.location="start"),e.location===t})):[]},t.prototype.buildRowActions=function(e){var t=[];return this.setDefaultRowActions(e,t),this.matrix.survey&&(t=this.matrix.survey.getUpdatedMatrixRowActions(this.matrix,e,t)),t},Object.defineProperty(t.prototype,"showRemoveButtonAsIcon",{get:function(){return p.settings.matrixRenderRemoveAsIcon&&this.matrix.survey&&"sd-root-modern"===this.matrix.survey.css.root},enumerable:!1,configurable:!0}),t.prototype.setDefaultRowActions=function(e,t){var r=this.matrix;this.hasRemoveRows&&this.canRemoveRow(e)&&(this.showRemoveButtonAsIcon?t.push(new a.Action({id:"remove-row",iconName:"icon-delete",component:"sv-action-bar-item",innerCss:(new u.CssClassBuilder).append(this.matrix.cssClasses.button).append(this.matrix.cssClasses.buttonRemove).toString(),location:"end",showTitle:!1,title:r.removeRowText,enabled:!r.isInputReadOnly,data:{row:e,question:r},action:function(){r.removeRowUI(e)}})):t.push(new a.Action({id:"remove-row",location:"end",enabled:!this.matrix.isInputReadOnly,component:"sv-matrix-remove-button",data:{row:e,question:this.matrix}}))),e.hasPanel&&t.push(new a.Action({id:"show-detail",title:this.matrix.getLocalizationString("editText"),showTitle:!1,location:"start",component:"sv-matrix-detail-button",data:{row:e,question:this.matrix}}))},t.prototype.createHorizontalRow=function(e,t){var r=this.createRenderedRow(this.cssClasses);if(this.allowRowsDragAndDrop){var n=this.matrix.visibleRows.indexOf(e);r.cells.push(this.getRowDragCell(n))}this.addRowActionsCell(e,r,"start"),this.matrix.hasRowText&&((s=this.createTextCell(e.locText)).row=e,r.cells.push(s),t&&this.setHeaderCellWidth(null,s),s.className=(new u.CssClassBuilder).append(s.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.detailRowText,e.hasPanel).toString());for(var o=0;o<e.cells.length;o++){var i=e.cells[o];if(i.column.hasVisibleCell)if(i.column.isShowInMultipleColumns)this.createMutlipleEditCells(r,i);else{var s=this.createEditCell(i);r.cells.push(s),t&&this.setHeaderCellWidth(i.column,s)}}return this.addRowActionsCell(e,r,"end"),r},t.prototype.addRowActionsCell=function(e,t,r){var n=this.matrix.visibleRows.indexOf(e);if(this.hasActionCellInRows(r)){var o=this.getRowActionsCell(n,r);if(o)t.cells.push(o);else{var i=new f;i.isEmpty=!0,t.cells.push(i)}}},t.prototype.createDetailPanelRow=function(e,t){var r=this.matrix.isDesignMode,n=this.createRenderedRow(this.cssClasses,!0);n.row=e;var o=new f;this.matrix.hasRowText&&(o.colSpans=2),o.isEmpty=!0,r||n.cells.push(o);var i=null;this.hasActionCellInRows("end")&&((i=new f).isEmpty=!0);var s=new f;return s.panel=e.detailPanel,s.colSpans=t.cells.length-(r?0:o.colSpans)-(i?i.colSpans:0),s.className=this.cssClasses.detailPanelCell,n.cells.push(s),i&&n.cells.push(i),"function"==typeof this.matrix.onCreateDetailPanelRenderedRowCallback&&this.matrix.onCreateDetailPanelRenderedRowCallback(n),n},t.prototype.buildVerticalRows=function(){for(var e=this.matrix.columns,t=[],r=0;r<e.length;r++){var n=e[r];n.isVisible&&n.hasVisibleCell&&(n.isShowInMultipleColumns?this.createMutlipleVerticalRows(t,n,r):t.push(this.createVerticalRow(n,r)))}return this.hasActionCellInRows("end")&&t.push(this.createEndVerticalActionRow()),t},t.prototype.createMutlipleVerticalRows=function(e,t,r){var n=this.getMultipleColumnChoices(t);if(n)for(var o=0;o<n.length;o++)e.push(this.createVerticalRow(t,r,n[o],o))},t.prototype.createVerticalRow=function(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=-1);var o=this.createRenderedRow(this.cssClasses);if(this.matrix.showHeader){var i=r?r.locText:e.locTitle,s=this.createTextCell(i);s.column=e,s.className=(new u.CssClassBuilder).append(s.className).append(this.cssClasses.rowTextCell).toString(),r||this.setRequriedToHeaderCell(e,s),o.cells.push(s)}for(var a=this.matrix.visibleRows,l=0;l<a.length;l++){var c=r,p=n>=0?n:l,d=a[l].cells[t],h=r?d.question.visibleChoices:void 0;h&&p<h.length&&(c=h[p]);var f=this.createEditCell(d,c);f.item=c,f.choiceIndex=p,o.cells.push(f)}return this.matrix.hasTotal&&o.cells.push(this.createEditCell(this.matrix.visibleTotalRow.cells[t])),o},t.prototype.createEndVerticalActionRow=function(){var e=this.createRenderedRow(this.cssClasses);this.matrix.showHeader&&e.cells.push(this.createEmptyCell());for(var t=this.matrix.visibleRows,r=0;r<t.length;r++)e.cells.push(this.getRowActionsCell(r,"end"));return this.matrix.hasTotal&&e.cells.push(this.createEmptyCell()),e},t.prototype.createMutlipleEditCells=function(e,t,r){void 0===r&&(r=!1);var n=r?this.getMultipleColumnChoices(t.column):t.question.visibleChoices;if(n)for(var o=0;o<n.length;o++){var i=this.createEditCell(t,r?void 0:n[o]);r||(this.setItemCellCssClasses(i),i.choiceIndex=o),e.cells.push(i)}},t.prototype.setItemCellCssClasses=function(e){e.className=(new u.CssClassBuilder).append(this.cssClasses.itemCell).append(this.cssClasses.radioCell,e.isRadio).append(this.cssClasses.checkboxCell,e.isCheckbox).toString()},t.prototype.createEditCell=function(e,t){void 0===t&&(t=void 0);var r=new f;return r.cell=e,r.row=e.row,r.question=e.question,r.matrix=this.matrix,r.item=t,r.isOtherChoice=!!t&&!!e.question&&e.question.otherItem===t,r.className=r.calculateFinalClassName(this.cssClasses),r},t.prototype.createMutlipleColumnsFooter=function(e,t){this.createMutlipleEditCells(e,t,!0)},t.prototype.createMutlipleColumnsHeader=function(e){var t=this.getMultipleColumnChoices(e);if(t)for(var r=0;r<t.length;r++){var n=this.createTextCell(t[r].locText);this.setHeaderCell(e,n),this.setHeaderCellCssClasses(n),this.headerRow.cells.push(n)}},t.prototype.getMultipleColumnChoices=function(e){var t=e.templateQuestion.choices;return t&&Array.isArray(t)&&0==t.length?this.matrix.choices:(t=e.templateQuestion.visibleChoices)&&Array.isArray(t)?t:null},t.prototype.setHeaderCellCssClasses=function(e,t){e.className=(new u.CssClassBuilder).append(this.cssClasses.headerCell).append(this.cssClasses.emptyCell,!!e.isEmpty).append(this.cssClasses.cell+"--"+t,!!t).toString()},t.prototype.createHeaderCell=function(e){var t=e?this.createTextCell(e.locTitle):this.createEmptyCell();t.column=e,this.setHeaderCell(e,t);var r=e&&"default"!==e.cellType?e.cellType:this.matrix.cellType;return this.setHeaderCellCssClasses(t,r),t},t.prototype.setHeaderCell=function(e,t){this.setHeaderCellWidth(e,t),this.setRequriedToHeaderCell(e,t)},t.prototype.setHeaderCellWidth=function(e,t){t.minWidth=null!=e?this.matrix.getColumnWidth(e):this.matrix.getRowTitleWidth(),t.width=null!=e?e.width:this.matrix.getRowTitleWidth()},t.prototype.setRequriedToHeaderCell=function(e,t){e&&e.isRequired&&this.matrix.survey&&(t.requiredText=this.matrix.survey.requiredText)},t.prototype.createRemoveRowCell=function(e){var t=new f;return t.row=e,t.isRemoveRow=this.canRemoveRow(e),this.cssClasses.cell&&(t.className=this.cssClasses.cell),t},t.prototype.createTextCell=function(e){var t=new f;return t.locTitle=e,e&&e.strChanged(),this.cssClasses.cell&&(t.className=this.cssClasses.cell),t},t.prototype.createEmptyCell=function(){var e=this.createTextCell(null);return e.isEmpty=!0,e},h([Object(o.propertyArray)({onPush:function(e,t,r){r.renderedRowsChangedCallback()}})],t.prototype,"rows",void 0),t}(i.Base)},"./src/question_matrixdynamic.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"MatrixDynamicRowModel",(function(){return m})),r.d(t,"QuestionMatrixDynamicModel",(function(){return g}));var n,o=r("./src/jsonobject.ts"),i=r("./src/questionfactory.ts"),s=r("./src/question_matrixdropdownbase.ts"),a=r("./src/error.ts"),l=r("./src/settings.ts"),u=r("./src/utils/utils.ts"),c=r("./src/dragdrop/matrix-rows.ts"),p=r("./src/utils/cssClassBuilder.ts"),d=r("./src/question_matrixdropdownrendered.ts"),h=r("./src/utils/dragOrClickHelper.ts"),f=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),m=function(e){function t(t,r,n){var o=e.call(this,r,n)||this;return o.index=t,o.buildCells(n),o}return f(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){var e=this.data.visibleRows.indexOf(this)+1,t=this.cells.length>1?this.cells[1].questionValue:void 0,r=this.cells.length>0?this.cells[0].questionValue:void 0;return t&&t.value||r&&r.value||""+e},enumerable:!1,configurable:!0}),t}(s.MatrixDropdownRowModelBase),g=function(e){function t(t){var r=e.call(this,t)||this;return r.rowCounter=0,r.initialRowCount=2,r.setRowCountValueFromData=!1,r.startDragMatrixRow=function(e,t){r.dragDropMatrixRows.startDrag(e,r.draggedRow,r,e.target)},r.createLocalizableString("confirmDeleteText",r,!1,"confirmDelete"),r.createLocalizableString("addRowText",r).onGetTextCallback=function(e){return e||r.defaultAddRowText},r.createLocalizableString("removeRowText",r,!1,"removeRow"),r.createLocalizableString("emptyRowsText",r,!1,!0),r.registerPropertyChangedHandlers(["hideColumnsIfEmpty","allowAddRows"],(function(){r.updateShowTableAndAddRow()})),r.registerPropertyChangedHandlers(["allowRowsDragAndDrop"],(function(){r.clearRowsAndResetRenderedTable()})),r.dragOrClickHelper=new h.DragOrClickHelper(r.startDragMatrixRow),r}return f(t,e),t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r),this.dragDropMatrixRows=new c.DragDropMatrixRows(this.survey,null,!0)},t.prototype.isBanStartDrag=function(e){var t=e.target;return"true"===t.getAttribute("contenteditable")||"INPUT"===t.nodeName},t.prototype.onPointerDown=function(e,t){t&&this.allowRowsDragAndDrop&&(this.isBanStartDrag(e)||t.isDetailPanelShowing||(this.draggedRow=t,this.dragOrClickHelper.onPointerDown(e)))},t.prototype.getType=function(){return"matrixdynamic"},Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete")},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return this.getPropertyValue("defaultRowValue")},set:function(e){this.setPropertyValue("defaultRowValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastRow",{get:function(){return this.getPropertyValue("defaultValueFromLastRow")},set:function(e){this.setPropertyValue("defaultValueFromLastRow",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultRowValue)},t.prototype.valueFromData=function(t){if(this.minRowCount<1)return e.prototype.valueFromData.call(this,t);Array.isArray(t)||(t=[]);for(var r=t.length;r<this.minRowCount;r++)t.push({});return t},t.prototype.setDefaultValue=function(){if(!this.isValueEmpty(this.defaultRowValue)&&this.isValueEmpty(this.defaultValue)){if(this.isEmpty()&&0!=this.rowCount){for(var t=[],r=0;r<this.rowCount;r++)t.push(this.defaultRowValue);this.value=t}}else e.prototype.setDefaultValue.call(this)},t.prototype.moveRowByIndex=function(e,t){var r=this.createNewValue();if(Array.isArray(r)||!(Math.max(e,t)>=r.length)){var n=r[e];r.splice(e,1),r.splice(t,0,n),this.value=r}},t.prototype.clearOnDrop=function(){this.isEditingSurveyElement||this.resetRenderedTable()},Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowCountValue},set:function(e){if(!(e<0||e>l.settings.matrixMaximumRowCount)){this.setRowCountValueFromData=!1;var t=this.rowCountValue;if(this.rowCountValue=e,this.value&&this.value.length>e){var r=this.value;r.splice(e),this.value=r}if(this.isUpdateLocked)this.initialRowCount=e;else{if(this.generatedVisibleRows||0==t){this.generatedVisibleRows||(this.generatedVisibleRows=[]),this.generatedVisibleRows.splice(e);for(var n=t;n<e;n++){var o=this.createMatrixRow(this.getValueForNewRow());this.generatedVisibleRows.push(o),this.onMatrixRowCreated(o)}this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())}this.onRowsChanged()}}},enumerable:!1,configurable:!0}),t.prototype.updateProgressInfoByValues=function(e){var t=this.value;Array.isArray(t)||(t=[]);for(var r=0;r<this.rowCount;r++){var n=r<t.length?t[r]:{};this.updateProgressInfoByRow(e,n)}},t.prototype.getValueForNewRow=function(){var e=null;return this.onGetValueForNewRowCallBack&&(e=this.onGetValueForNewRowCallBack(this)),e},Object.defineProperty(t.prototype,"allowRowsDragAndDrop",{get:function(){return!this.readOnly&&this.getPropertyValue("allowRowsDragAndDrop")},set:function(e){this.setPropertyValue("allowRowsDragAndDrop",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconDragElement",{get:function(){return this.cssClasses.iconDragElement},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new b(this)},Object.defineProperty(t.prototype,"rowCountValue",{get:function(){return this.getPropertyValue("rowCount")},set:function(e){this.setPropertyValue("rowCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minRowCount",{get:function(){return this.getPropertyValue("minRowCount")},set:function(e){e<0&&(e=0),this.setPropertyValue("minRowCount",e),e>this.maxRowCount&&(this.maxRowCount=e),this.rowCount<e&&(this.rowCount=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRowCount",{get:function(){return this.getPropertyValue("maxRowCount")},set:function(e){e<=0||(e>l.settings.matrixMaximumRowCount&&(e=l.settings.matrixMaximumRowCount),e!=this.maxRowCount&&(this.setPropertyValue("maxRowCount",e),e<this.minRowCount&&(this.minRowCount=e),this.rowCount>e&&(this.rowCount=e)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAddRows",{get:function(){return this.getPropertyValue("allowAddRows")},set:function(e){this.setPropertyValue("allowAddRows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemoveRows",{get:function(){return this.getPropertyValue("allowRemoveRows")},set:function(e){this.setPropertyValue("allowRemoveRows",e),this.isUpdateLocked||this.resetRenderedTable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canAddRow",{get:function(){return this.allowAddRows&&!this.isReadOnly&&this.rowCount<this.maxRowCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){var e=this.allowRemoveRows&&!this.isReadOnly&&this.rowCount>this.minRowCount;return this.canRemoveRowsCallback?this.canRemoveRowsCallback(e):e},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){return!this.survey||this.survey.matrixAllowRemoveRow(this,e.index,e)},t.prototype.addRowUI=function(){this.addRow(!0)},t.prototype.getQuestionToFocusOnAddingRow=function(){for(var e=this.visibleRows[this.visibleRows.length-1],t=0;t<e.cells.length;t++){var r=e.cells[t].question;if(r&&r.isVisible&&!r.isReadOnly)return r}return null},t.prototype.addRow=function(e){var t=this.rowCount,r={question:this,canAddRow:this.canAddRow};if(this.survey&&this.survey.matrixBeforeRowAdded(r),r.canAddRow&&(this.onStartRowAddingRemoving(),this.addRowCore(),this.onEndRowAdding(),this.detailPanelShowOnAdding&&this.visibleRows.length>0&&this.visibleRows[this.visibleRows.length-1].showDetailPanel(),e&&t!==this.rowCount)){var n=this.getQuestionToFocusOnAddingRow();n&&n.focus()}},Object.defineProperty(t.prototype,"detailPanelShowOnAdding",{get:function(){return this.getPropertyValue("detailPanelShowOnAdding")},set:function(e){this.setPropertyValue("detailPanelShowOnAdding",e)},enumerable:!1,configurable:!0}),t.prototype.hasRowsAsItems=function(){return!1},t.prototype.unbindValue=function(){this.clearGeneratedRows(),this.clearPropertyValue("value"),this.rowCountValue=0,e.prototype.unbindValue.call(this)},t.prototype.isValueSurveyElement=function(t){return this.isEditingSurveyElement||e.prototype.isValueSurveyElement.call(this,t)},t.prototype.addRowCore=function(){var e=this.rowCount;this.rowCount=this.rowCount+1;var t=this.getDefaultRowValue(!0),r=null;if(this.isValueEmpty(t)||(r=this.createNewValue()).length==this.rowCount&&(r[r.length-1]=t,this.value=r),this.data&&(this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.isValueEmpty(t))){var n=this.visibleRows[this.rowCount-1];this.isValueEmpty(n.value)||(r||(r=this.createNewValue()),this.isValueSurveyElement(r)||this.isTwoValueEquals(r[r.length-1],n.value)||(r[r.length-1]=n.value,this.value=r))}this.survey&&e+1==this.rowCount&&(this.survey.matrixRowAdded(this,this.visibleRows[this.visibleRows.length-1]),this.onRowsChanged())},t.prototype.getDefaultRowValue=function(e){for(var t=null,r=0;r<this.columns.length;r++){var n=this.columns[r].templateQuestion;n&&!this.isValueEmpty(n.getDefaultValue())&&((t=t||{})[this.columns[r].name]=n.getDefaultValue())}if(!this.isValueEmpty(this.defaultRowValue))for(var o in this.defaultRowValue)(t=t||{})[o]=this.defaultRowValue[o];if(e&&this.defaultValueFromLastRow){var i=this.value;if(i&&Array.isArray(i)&&i.length>=this.rowCount-1){var s=i[this.rowCount-2];for(var o in s)(t=t||{})[o]=s[o]}}return t},t.prototype.removeRowUI=function(e){if(e&&e.rowName){var t=this.visibleRows.indexOf(e);if(t<0)return;e=t}this.removeRow(e)},t.prototype.isRequireConfirmOnRowDelete=function(e){if(!this.confirmDelete)return!1;if(e<0||e>=this.rowCount)return!1;var t=this.createNewValue();return!(this.isValueEmpty(t)||!Array.isArray(t)||e>=t.length||this.isValueEmpty(t[e]))},t.prototype.removeRow=function(e,t){if(this.canRemoveRows&&!(e<0||e>=this.rowCount)){var r=this.visibleRows&&e<this.visibleRows.length?this.visibleRows[e]:null;void 0===t&&(t=this.isRequireConfirmOnRowDelete(e)),t&&!Object(u.confirmAction)(this.confirmDeleteText)||r&&this.survey&&!this.survey.matrixRowRemoving(this,e,r)||(this.onStartRowAddingRemoving(),this.removeRowCore(e),this.onEndRowRemoving(r))}},t.prototype.removeRowCore=function(e){var t=this.generatedVisibleRows?this.generatedVisibleRows[e]:null;if(this.generatedVisibleRows&&e<this.generatedVisibleRows.length&&this.generatedVisibleRows.splice(e,1),this.rowCountValue--,this.value){var r=[];(r=Array.isArray(this.value)&&e<this.value.length?this.createValueCopy():this.createNewValue()).splice(e,1),r=this.deleteRowValue(r,null),this.isRowChanging=!0,this.value=r,this.isRowChanging=!1}this.onRowsChanged(),this.survey&&this.survey.matrixRowRemoved(this,e,t)},Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowText",{get:function(){return this.getLocalizableStringText("addRowText",this.defaultAddRowText)},set:function(e){this.setLocalizableStringText("addRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAddRowText",{get:function(){return this.getLocalizableString("addRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultAddRowText",{get:function(){return this.getLocalizationString(this.isColumnLayoutHorizontal?"addRow":"addColumn")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowLocation",{get:function(){return this.getPropertyValue("addRowLocation")},set:function(e){this.setPropertyValue("addRowLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return this.addRowLocation},Object.defineProperty(t.prototype,"hideColumnsIfEmpty",{get:function(){return this.getPropertyValue("hideColumnsIfEmpty")},set:function(e){this.setPropertyValue("hideColumnsIfEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getShowColumnsIfEmpty=function(){return this.hideColumnsIfEmpty},Object.defineProperty(t.prototype,"removeRowText",{get:function(){return this.getLocalizableStringText("removeRowText")},set:function(e){this.setLocalizableStringText("removeRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRemoveRowText",{get:function(){return this.getLocalizableString("removeRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyRowsText",{get:function(){return this.getLocalizableStringText("emptyRowsText")},set:function(e){this.setLocalizableStringText("emptyRowsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEmptyRowsText",{get:function(){return this.getLocalizableString("emptyRowsText")},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){if(!t||!Array.isArray(t))return t;for(var r=this.getUnbindValue(t),n=this.visibleRows,o=0;o<n.length&&o<r.length;o++){var i=r[o];i&&(r[o]=this.getRowDisplayValue(e,n[o],i))}return r},t.prototype.getConditionObjectRowName=function(e){return"["+e.toString()+"]"},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],t=Math.max(this.rowCount,1),r=0;r<Math.min(l.settings.matrixMaxRowCountInCondition,t);r++)e.push(r);return e},t.prototype.supportGoNextPageAutomatic=function(){return!1},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onCheckForErrors=function(t,r){e.prototype.onCheckForErrors.call(this,t,r),!r&&this.hasErrorInMinRows()&&t.push(new a.MinRowCountError(this.minRowCount,this))},t.prototype.hasErrorInMinRows=function(){if(this.minRowCount<=0||!this.isRequired||!this.generatedVisibleRows)return!1;for(var e=0,t=0;t<this.generatedVisibleRows.length;t++)this.generatedVisibleRows[t].isEmpty||e++;return e<this.minRowCount},t.prototype.getUniqueColumns=function(){var t=e.prototype.getUniqueColumns.call(this);if(this.keyName){var r=this.getColumnByName(this.keyName);r&&t.indexOf(r)<0&&t.push(r)}return t},t.prototype.generateRows=function(){var e=new Array;if(0===this.rowCount)return e;for(var t=this.createNewValue(),r=0;r<this.rowCount;r++)e.push(this.createMatrixRow(this.getRowValueByIndex(t,r)));return this.isValueEmpty(this.getDefaultRowValue(!1))||(this.value=t),e},t.prototype.createMatrixRow=function(e){return new m(this.rowCounter++,this,e)},t.prototype.getInsertedDeletedIndex=function(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++)if(t[n]!==e[n].editingObj)return n;return r},t.prototype.isEditingObjectValueChanged=function(){var e=this.value;if(!this.generatedVisibleRows||!this.isValueSurveyElement(e))return!1;var t=this.lastDeletedRow;this.lastDeletedRow=void 0;var r=this.generatedVisibleRows;if(!Array.isArray(e)||Math.abs(r.length-e.length)>1)return!1;var n=this.getInsertedDeletedIndex(r,e);if(r.length>e.length){this.lastDeletedRow=r[n];var o=r[n];r.splice(n,1),this.isRendredTableCreated&&this.renderedTable.onRemovedRow(o)}else{var i;i=t&&t.editingObj===e[n]?t:this.createMatrixRow(e[n]),r.splice(n,0,i),t||this.onMatrixRowCreated(i),this.isRendredTableCreated&&this.renderedTable.onAddedRow(i,n)}return this.setPropertyValueDirectly("rowCount",e.length),!0},t.prototype.onBeforeValueChanged=function(e){if(e&&Array.isArray(e)){var t=e.length;if(t!=this.rowCount&&(this.setRowCountValueFromData||!(t<this.initialRowCount))&&!this.isEditingObjectValueChanged()&&(this.setRowCountValueFromData=!0,this.rowCountValue=t,this.generatedVisibleRows)){if(t==this.generatedVisibleRows.length+1){this.onStartRowAddingRemoving();var r=this.getRowValueByIndex(e,t-1),n=this.createMatrixRow(r);this.generatedVisibleRows.push(n),this.onMatrixRowCreated(n),this.onEndRowAdding()}else this.clearGeneratedRows(),this.generatedVisibleRows=this.visibleRows,this.onRowsChanged();this.setRowCountValueFromData=!1}}},t.prototype.createNewValue=function(){var e=this.createValueCopy();e&&Array.isArray(e)||(e=[]),e.length>this.rowCount&&e.splice(this.rowCount);var t=this.getDefaultRowValue(!1);t=t||{};for(var r=e.length;r<this.rowCount;r++)e.push(this.getUnbindValue(t));return e},t.prototype.deleteRowValue=function(e,t){for(var r=!0,n=0;n<e.length;n++)if(this.isObject(e[n])&&Object.keys(e[n]).length>0){r=!1;break}return r?null:e},t.prototype.getRowValueByIndex=function(e,t){return Array.isArray(e)&&t>=0&&t<e.length?e[t]:null},t.prototype.getRowValueCore=function(e,t,r){if(void 0===r&&(r=!1),!this.generatedVisibleRows)return{};var n=this.getRowValueByIndex(t,this.generatedVisibleRows.indexOf(e));return!n&&r&&(n={}),n},t.prototype.getAddRowButtonCss=function(e){return void 0===e&&(e=!1),(new p.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.emptyRowsButton,e).toString()},t.prototype.getRemoveRowButtonCss=function(){return(new p.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonRemove).toString()},t.prototype.getRootCss=function(){var t;return(new p.CssClassBuilder).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.empty,!(null===(t=this.renderedTable)||void 0===t?void 0:t.showTable)).toString()},t}(s.QuestionMatrixDropdownModelBase),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.setDefaultRowActions=function(t,r){e.prototype.setDefaultRowActions.call(this,t,r)},t}(d.QuestionMatrixDropdownRenderedTable);o.Serializer.addClass("matrixdynamic",[{name:"rowsVisibleIf:condition",visible:!1},{name:"allowAddRows:boolean",default:!0},{name:"allowRemoveRows:boolean",default:!0},{name:"rowCount:number",default:2,minValue:0,isBindable:!0},{name:"minRowCount:number",default:0,minValue:0},{name:"maxRowCount:number",default:l.settings.matrixMaximumRowCount},{name:"keyName"},"defaultRowValue:rowvalue","defaultValueFromLastRow:boolean",{name:"confirmDelete:boolean"},{name:"confirmDeleteText",dependsOn:"confirmDelete",visibleIf:function(e){return!e||e.confirmDelete},serializationProperty:"locConfirmDeleteText"},{name:"addRowLocation",default:"default",choices:["default","top","bottom","topBottom"]},{name:"addRowText",serializationProperty:"locAddRowText"},{name:"removeRowText",serializationProperty:"locRemoveRowText"},"hideColumnsIfEmpty:boolean",{name:"emptyRowsText:text",serializationProperty:"locEmptyRowsText",dependsOn:"hideColumnsIfEmpty",visibleIf:function(e){return!e||e.hideColumnsIfEmpty}},{name:"detailPanelShowOnAdding:boolean",dependsOn:"detailPanelMode",visibleIf:function(e){return"none"!==e.detailPanelMode}},"allowRowsDragAndDrop:switch"],(function(){return new g("")}),"matrixdropdownbase"),i.QuestionFactory.Instance.registerQuestion("matrixdynamic",(function(e){var t=new g(e);return t.choices=[1,2,3,4,5],s.QuestionMatrixDropdownModelBase.addDefaultColumns(t),t}))},"./src/question_multipletext.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"MultipleTextEditorModel",(function(){return f})),r.d(t,"MultipleTextItemModel",(function(){return m})),r.d(t,"QuestionMultipleTextModel",(function(){return g}));var n,o=r("./src/base.ts"),i=r("./src/survey-element.ts"),s=r("./src/question.ts"),a=r("./src/question_text.ts"),l=r("./src/jsonobject.ts"),u=r("./src/questionfactory.ts"),c=r("./src/helpers.ts"),p=r("./src/utils/cssClassBuilder.ts"),d=r("./src/settings.ts"),h=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),Object.defineProperty(t.prototype,"a11y_input_ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabelledBy",{get:function(){return null},enumerable:!1,configurable:!0}),t}(a.QuestionTextModel),m=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;return n.editorValue=n.createEditor(t),n.editor.questionTitleTemplateCallback=function(){return""},n.editor.titleLocation="left",r&&(n.title=r),n}return h(t,e),t.prototype.getType=function(){return"multipletextitem"},Object.defineProperty(t.prototype,"id",{get:function(){return this.editor.id},enumerable:!1,configurable:!0}),t.prototype.getOriginalObj=function(){return this.editor},Object.defineProperty(t.prototype,"name",{get:function(){return this.editor.name},set:function(e){this.editor.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editor",{get:function(){return this.editorValue},enumerable:!1,configurable:!0}),t.prototype.createEditor=function(e){return new f(e)},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.editor.addUsedLocales(t)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.editor.localeChanged()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.editor.locStrsChanged()},t.prototype.setData=function(e){this.data=e,e&&(this.editor.defaultValue=e.getItemDefaultValue(this.name),this.editor.setSurveyImpl(this),this.editor.parent=e)},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.editor.isRequired},set:function(e){this.editor.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputType",{get:function(){return this.editor.inputType},set:function(e){this.editor.inputType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.editor.title},set:function(e){this.editor.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.editor.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.editor.fullTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.editor.maxLength},set:function(e){this.editor.maxLength=e},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){var e=this.getSurvey();return c.Helpers.getMaxLength(this.maxLength,e?e.maxTextLength:-1)},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.editor.placeholder},set:function(e){this.editor.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.editor.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.editor.requiredErrorText},set:function(e){this.editor.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.editor.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.editor.size},set:function(e){this.editor.size=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.editor.validators},set:function(e){this.editor.validators=e},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},Object.defineProperty(t.prototype,"value",{get:function(){return this.data?this.data.getMultipleTextValue(this.name):null},set:function(e){null!=this.data&&this.data.setMultipleTextValue(this.name,e)},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return this.editor.isEmpty()},t.prototype.onValueChanged=function(e){this.valueChangedCallback&&this.valueChangedCallback(e)},t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},t.prototype.getTextProcessor=function(){return this.data?this.data.getTextProcessor():null},t.prototype.getValue=function(e){return this.data?this.data.getMultipleTextValue(e):null},t.prototype.setValue=function(e,t){this.data&&this.data.setMultipleTextValue(e,t)},t.prototype.getVariable=function(e){},t.prototype.setVariable=function(e,t){},t.prototype.getComment=function(e){return null},t.prototype.setComment=function(e,t){},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():this.value},t.prototype.getFilteredValues=function(){return this.getAllValues()},t.prototype.getFilteredProperties=function(){return{survey:this.getSurvey()}},t.prototype.findQuestionByName=function(e){var t=this.getSurvey();return t?t.getQuestionByName(e):null},t.prototype.getValidatorTitle=function(){return this.title},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getDataFilteredValues=function(){return this.getFilteredValues()},t.prototype.getDataFilteredProperties=function(){return this.getFilteredProperties()},t}(o.Base),g=function(e){function t(t){var r=e.call(this,t)||this;return r.isMultipleItemValueChanging=!1,r.createNewArray("items",(function(e){e.setData(r),r.survey&&r.survey.multipleTextItemAdded(r,e)})),r.registerPropertyChangedHandlers(["items","colCount"],(function(){r.fireCallback(r.colCountChangedCallback)})),r.registerPropertyChangedHandlers(["itemSize"],(function(){r.updateItemsSize()})),r}return h(t,e),t.addDefaultItems=function(e){for(var t=u.QuestionFactory.DefaultMutlipleTextItems,r=0;r<t.length;r++)e.addItem(t[r])},t.prototype.getType=function(){return"multipletext"},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r);for(var n=0;n<this.items.length;n++)this.items[n].setData(this)},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){var t;null===(t=this.items)||void 0===t||t.map((function(t,r){return t.editor.id=e+"_"+r})),this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){this.editorsOnSurveyLoad(),e.prototype.onSurveyLoad.call(this),this.fireCallback(this.colCountChangedCallback)},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),e.prototype.setQuestionValue.call(this,t,r),this.performForEveryEditor((function(e){e.editor.updateValueFromSurvey(e.value)})),this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.performForEveryEditor((function(e){e.editor.onSurveyValueChanged(e.value)}))},t.prototype.updateItemsSize=function(){this.performForEveryEditor((function(e){e.editor.updateInputSize()}))},t.prototype.editorsOnSurveyLoad=function(){this.performForEveryEditor((function(e){e.editor.onSurveyLoad()}))},t.prototype.performForEveryEditor=function(e){for(var t=0;t<this.items.length;t++){var r=this.items[t];r.editor&&e(r)}},Object.defineProperty(t.prototype,"items",{get:function(){return this.getPropertyValue("items")},set:function(e){this.setPropertyValue("items",e)},enumerable:!1,configurable:!0}),t.prototype.addItem=function(e,t){void 0===t&&(t=null);var r=this.createTextItem(e,t);return this.items.push(r),r},t.prototype.getItemByName=function(e){for(var t=0;t<this.items.length;t++)if(this.items[t].name==e)return this.items[t];return null},t.prototype.addConditionObjectsByContext=function(e,t){for(var r=0;r<this.items.length;r++){var n=this.items[r];e.push({name:this.getValueName()+"."+n.name,text:this.processedTitle+"."+n.fullTitle,question:this})}},t.prototype.getConditionJson=function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!r)return e.prototype.getConditionJson.call(this);var n=this.getItemByName(r);if(!n)return null;var o=(new l.JsonObject).toJsonObject(n);return o.type="text",o},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].locStrsChanged()},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].localeChanged()},t.prototype.supportGoNextPageAutomatic=function(){for(var e=0;e<this.items.length;e++)if(this.items[e].isEmpty())return!1;return!0},Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<1||e>5||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemSize",{get:function(){return this.getPropertyValue("itemSize")},set:function(e){this.setPropertyValue("itemSize",e)},enumerable:!1,configurable:!0}),t.prototype.getRows=function(){for(var e=this.colCount,t=this.items,r=[],n=0,o=0;o<t.length;o++)0==n&&r.push([]),r[r.length-1].push(t[o]),++n>=e&&(n=0);return r},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.onItemValueChanged()},t.prototype.createTextItem=function(e,t){return new m(e,t)},t.prototype.onItemValueChanged=function(){if(!this.isMultipleItemValueChanging)for(var e=0;e<this.items.length;e++){var t=null;this.value&&this.items[e].name in this.value&&(t=this.value[this.items[e].name]),this.items[e].onValueChanged(t)}},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.items.length;t++)if(this.items[t].editor.isRunningValidators)return!0;return!1},t.prototype.hasErrors=function(t,r){var n=this;void 0===t&&(t=!0),void 0===r&&(r=null);for(var o=!1,i=0;i<this.items.length;i++)this.items[i].editor.onCompletedAsyncValidators=function(e){n.raiseOnCompletedAsyncValidators()},r&&!0===r.isOnValueChanged&&this.items[i].editor.isEmpty()||(o=this.items[i].editor.hasErrors(t,r)||o);return e.prototype.hasErrors.call(this,t)||o},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),r=0;r<this.items.length;r++){var n=this.items[r].editor.getAllErrors();n&&n.length>0&&(t=t.concat(n))}return t},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.items.length;t++)this.items[t].editor.clearErrors()},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var r=this.items,n=0;n<r.length;n++)if(r[n].editor.containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=0;t<this.items.length;t++){var r=this.items[t].editor;if(r.isVisible&&!r.isAnswered)return!1}return!0},t.prototype.getProgressInfo=function(){for(var e=[],t=0;t<this.items.length;t++)e.push(this.items[t].editor);return i.SurveyElement.getProgressInfoByElements(e,this.isRequired)},t.prototype.getDisplayValueCore=function(e,t){if(!t)return t;for(var r={},n=0;n<this.items.length;n++){var o=this.items[n],i=t[o.name];if(!c.Helpers.isValueEmpty(i)){var s=o.name;e&&o.title&&(s=o.title),r[s]=o.editor.getDisplayValue(e,i)}}return r},t.prototype.getMultipleTextValue=function(e){return this.value?this.value[e]:null},t.prototype.setMultipleTextValue=function(e,t){this.isMultipleItemValueChanging=!0,this.isValueEmpty(t)&&(t=void 0);var r=this.value;r||(r={}),r[e]=t,this.setNewValue(r),this.isMultipleItemValueChanging=!1},t.prototype.getItemDefaultValue=function(e){return this.defaultValue?this.defaultValue[e]:null},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.getIsRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return-1},t.prototype.ensureRowsVisibility=function(){},t.prototype.getItemLabelCss=function(e){return(new p.CssClassBuilder).append(this.cssClasses.itemLabel).append(this.cssClasses.itemLabelOnError,e.editor.errors.length>0).toString()},t.prototype.getItemCss=function(){return(new p.CssClassBuilder).append(this.cssClasses.item).toString()},t.prototype.getItemTitleCss=function(){return(new p.CssClassBuilder).append(this.cssClasses.itemTitle).toString()},t.prototype.getIsTooltipErrorInsideSupported=function(){return!0},t}(s.Question);l.Serializer.addClass("multipletextitem",["name","isRequired:boolean",{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"inputType",default:"text",choices:d.settings.questions.inputTypes},{name:"title",serializationProperty:"locTitle"},{name:"maxLength:number",default:-1},{name:"size:number",minValue:0},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],(function(){return new m("")})),l.Serializer.addClass("multipletext",[{name:"!items:textitems",className:"multipletextitem"},{name:"itemSize:number",minValue:0},{name:"colCount:number",default:1,choices:[1,2,3,4,5]}],(function(){return new g("")}),"question"),u.QuestionFactory.Instance.registerQuestion("multipletext",(function(e){var t=new g(e);return g.addDefaultItems(t),t}))},"./src/question_paneldynamic.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionPanelDynamicItem",(function(){return x})),r.d(t,"QuestionPanelDynamicTemplateSurveyImpl",(function(){return w})),r.d(t,"QuestionPanelDynamicModel",(function(){return C}));var n,o=r("./src/helpers.ts"),i=r("./src/survey-element.ts"),s=r("./src/localizablestring.ts"),a=r("./src/textPreProcessor.ts"),l=r("./src/question.ts"),u=r("./src/jsonobject.ts"),c=r("./src/questionfactory.ts"),p=r("./src/error.ts"),d=r("./src/settings.ts"),h=r("./src/utils/utils.ts"),f=r("./src/utils/cssClassBuilder.ts"),m=r("./src/actions/action.ts"),g=r("./src/base.ts"),b=r("./src/actions/adaptive-container.ts"),y=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),v=function(e){function t(t,r,n){var o=e.call(this,n)||this;return o.data=t,o.panelItem=r,o.variableName=n,o.sharedQuestions={},o}return y(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.panelItem.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelItem.panel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelIndex",{get:function(){return this.data?this.data.getItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelIndex",{get:function(){return this.data?this.data.getVisibleItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.panelItem.getAllValues()},t.prototype.getQuestionByName=function(t){var r=e.prototype.getQuestionByName.call(this,t);if(r)return r;var n=this.panelIndex,o=(r=n>-1?this.data.getSharedQuestionFromArray(t,n):void 0)?r.name:t;return this.sharedQuestions[o]=t,r},t.prototype.getQuestionDisplayText=function(t){var r=this.sharedQuestions[t.name];if(!r)return e.prototype.getQuestionDisplayText.call(this,t);var n=this.panelItem.getValue(r);return t.getDisplayValue(!0,n)},t.prototype.onCustomProcessText=function(e){var r;if(e.name==x.IndexVariableName&&(r=this.panelIndex)>-1)return e.isExists=!0,e.value=r+1,!0;if(e.name==x.VisibleIndexVariableName&&(r=this.visiblePanelIndex)>-1)return e.isExists=!0,e.value=r+1,!0;if(0==e.name.toLowerCase().indexOf(x.ParentItemVariableName+".")){var n=this.data;if(n&&n.parentQuestion&&n.parent&&n.parent.data){var o=new t(n.parentQuestion,n.parent.data,x.ItemVariableName),i=x.ItemVariableName+e.name.substring(x.ParentItemVariableName.length),s=o.processValue(i,e.returnDisplayValue);e.isExists=s.isExists,e.value=s.value}return!0}return!1},t}(a.QuestionTextProcessor),x=function(){function e(t,r){this.data=t,this.panelValue=r,this.textPreProcessor=new v(t,this,e.ItemVariableName),this.setSurveyImpl()}return Object.defineProperty(e.prototype,"panel",{get:function(){return this.panelValue},enumerable:!1,configurable:!0}),e.prototype.setSurveyImpl=function(){this.panel.setSurveyImpl(this)},e.prototype.getValue=function(e){return this.getAllValues()[e]},e.prototype.setValue=function(e,t){var r=this.data.getPanelItemData(this),n=r?r[e]:void 0;if(!o.Helpers.isTwoValueEquals(t,n)){this.data.setPanelItemData(this,e,o.Helpers.getUnbindValue(t));for(var i=this.panel.questions,s=0;s<i.length;s++)i[s].getValueName()!==e&&i[s].checkBindings(e,t)}},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){return this.getValue(e+d.settings.commentSuffix)||""},e.prototype.setComment=function(e,t,r){this.setValue(e+d.settings.commentSuffix,t)},e.prototype.findQuestionByName=function(t){if(t){var r=e.ItemVariableName+".";if(0===t.indexOf(r))return this.panel.getQuestionByName(t.substring(r.length));var n=this.getSurvey();return n?n.getQuestionByName(t):null}},e.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},e.prototype.getFilteredValues=function(){var t={},r=this.data&&this.data.getRootData()?this.data.getRootData().getFilteredValues():{};for(var n in r)t[n]=r[n];if(t[e.ItemVariableName]=this.getAllValues(),this.data){var o=e.IndexVariableName,i=e.VisibleIndexVariableName;delete t[o],delete t[i],t[o.toLowerCase()]=this.data.getItemIndex(this),t[i.toLowerCase()]=this.data.getVisibleItemIndex(this);var s=this.data;s&&s.parentQuestion&&s.parent&&(t[e.ParentItemVariableName]=s.parent.getValue())}return t},e.prototype.getFilteredProperties=function(){return this.data&&this.data.getRootData()?this.data.getRootData().getFilteredProperties():{survey:this.getSurvey()}},e.prototype.getSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this.textPreProcessor},e.ItemVariableName="panel",e.ParentItemVariableName="parentpanel",e.IndexVariableName="panelIndex",e.VisibleIndexVariableName="visiblePanelIndex",e}(),w=function(){function e(e){this.data=e}return e.prototype.getSurveyData=function(){return null},e.prototype.getSurvey=function(){return this.data.getSurvey()},e.prototype.getTextProcessor=function(){return null},e}(),C=function(e){function t(t){var r=e.call(this,t)||this;return r.isAddingNewPanels=!1,r.onReadyChangedCallback=function(){r.recalculateIsReadyValue()},r.isSetPanelItemData={},r.createNewArray("panels",(function(e){r.onPanelAdded(e)}),(function(e){r.onPanelRemoved(e)})),r.createNewArray("visiblePanels"),r.templateValue=r.createAndSetupNewPanelObject(),r.template.renderWidth="100%",r.template.selectedElementInDesign=r,r.template.addElementCallback=function(e){r.addOnPropertyChangedCallback(e),r.rebuildPanels()},r.template.removeElementCallback=function(){r.rebuildPanels()},r.createLocalizableString("confirmDeleteText",r,!1,"confirmDelete"),r.createLocalizableString("keyDuplicationError",r,!1,!0),r.createLocalizableString("panelAddText",r,!1,"addPanel"),r.createLocalizableString("panelRemoveText",r,!1,"removePanel"),r.createLocalizableString("panelPrevText",r,!1,"pagePrevText"),r.createLocalizableString("panelNextText",r,!1,"pageNextText"),r.createLocalizableString("noEntriesText",r,!1,"noEntriesText"),r.createLocalizableString("templateTabTitle",r,!0,"panelDynamicTabTextFormat"),r.registerPropertyChangedHandlers(["panelsState"],(function(){r.setPanelsState()})),r.registerPropertyChangedHandlers(["isMobile"],(function(){r.updateFooterActions()})),r.registerPropertyChangedHandlers(["allowAddPanel"],(function(){r.updateNoEntriesTextDefaultLoc()})),r}return y(t,e),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getFirstQuestionToFocus=function(e){for(var t=0;t<this.visiblePanels.length;t++){var r=this.visiblePanels[t].getFirstQuestionToFocus(e);if(r)return r}return null},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r),this.setTemplatePanelSurveyImpl(),this.setPanelsSurveyImpl()},t.prototype.assignOnPropertyChangedToTemplate=function(){for(var e=this.template.elements,t=0;t<e.length;t++)this.addOnPropertyChangedCallback(e[t])},t.prototype.addOnPropertyChangedCallback=function(e){var t=this;e.isQuestion&&e.setParentQuestion(this),e.onPropertyChanged.add((function(e,r){t.onTemplateElementPropertyChanged(e,r)})),e.isPanel&&(e.addElementCallback=function(e){t.addOnPropertyChangedCallback(e)})},t.prototype.onTemplateElementPropertyChanged=function(e,t){if(!this.isLoadingFromJson&&!this.useTemplatePanel&&0!=this.panels.length&&u.Serializer.findProperty(e.getType(),t.name))for(var r=this.panels,n=0;n<r.length;n++){var o=r[n].getQuestionByName(e.name);o&&o[t.name]!==t.newValue&&(o[t.name]=t.newValue)}},Object.defineProperty(t.prototype,"useTemplatePanel",{get:function(){return this.isDesignMode&&!this.isContentElement},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"paneldynamic"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.clearOnDeletingContainer=function(){this.panels.forEach((function(e){e.clearOnDeletingContainer()}))},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.removeElement=function(e){return this.template.removeElement(e)},Object.defineProperty(t.prototype,"template",{get:function(){return this.templateValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.template},Object.defineProperty(t.prototype,"templateElements",{get:function(){return this.template.elements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitle",{get:function(){return this.template.title},set:function(e){this.template.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTitle",{get:function(){return this.template.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTabTitle",{get:function(){return this.locTemplateTabTitle.text},set:function(e){this.locTemplateTabTitle.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTabTitle",{get:function(){return this.getLocalizableString("templateTabTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateDescription",{get:function(){return this.template.description},set:function(e){this.template.description=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateDescription",{get:function(){return this.template.locDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateVisibleIf",{get:function(){return this.template.visibleIf},set:function(e){this.template.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){for(var e=[],t=0;t<this.panels.length;t++)e.push(this.panels[t].data);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panels",{get:function(){return this.getPropertyValue("panels")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanels",{get:function(){return this.getPropertyValue("visiblePanels")},enumerable:!1,configurable:!0}),t.prototype.onPanelAdded=function(e){if(this.onPanelRemovedCore(e),e.visible){for(var t=0,r=this.panels,n=0;n<r.length&&r[n]!==e;n++)r[n].visible&&t++;this.visiblePanels.splice(t,0,e),this.addTabFromToolbar(e,t),this.currentPanel||(this.currentPanel=e)}},t.prototype.onPanelRemoved=function(e){var t=this.onPanelRemovedCore(e);if(this.currentPanel===e){var r=this.visiblePanels;t>=r.length&&(t=r.length-1),this.currentPanel=t>=0?r[t]:null}},t.prototype.onPanelRemovedCore=function(e){var t=this.visiblePanels,r=t.indexOf(e);return r>-1&&(t.splice(r,1),this.removeTabFromToolbar(e)),r},Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this.isRenderModeList?-1:this.useTemplatePanel?0:this.visiblePanels.indexOf(this.currentPanel)},set:function(e){e<0||this.visiblePanelCount<1||(e>=this.visiblePanelCount&&(e=this.visiblePanelCount-1),this.currentPanel=this.visiblePanels[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPanel",{get:function(){if(this.isDesignMode)return this.template;if(this.isRenderModeList||this.useTemplatePanel)return null;var e=this.getPropertyValue("currentPanel",null);return!e&&this.visiblePanelCount>0&&(e=this.visiblePanels[0],this.currentPanel=e),e},set:function(e){this.isRenderModeList||this.useTemplatePanel||e&&this.visiblePanels.indexOf(e)<0||e===this.getPropertyValue("currentPanel")||(this.setPropertyValue("currentPanel",e),this.updateFooterActions(),this.updateTabToolbarItemsPressedState(),this.fireCallback(this.currentIndexChangedCallback))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete")},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelPrevText",{get:function(){return this.getLocalizableStringText("panelPrevText")},set:function(e){this.setLocalizableStringText("panelPrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelPrevText",{get:function(){return this.getLocalizableString("panelPrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelNextText",{get:function(){return this.getLocalizableStringText("panelNextText")},set:function(e){this.setLocalizableStringText("panelNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelNextText",{get:function(){return this.getLocalizableString("panelNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelAddText",{get:function(){return this.getLocalizableStringText("panelAddText")},set:function(e){this.setLocalizableStringText("panelAddText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelAddText",{get:function(){return this.getLocalizableString("panelAddText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveText",{get:function(){return this.getLocalizableStringText("panelRemoveText")},set:function(e){this.setLocalizableStringText("panelRemoveText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelRemoveText",{get:function(){return this.getLocalizableString("panelRemoveText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressTopShowing",{get:function(){return"progressTop"===this.renderMode||"progressTopBottom"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressBottomShowing",{get:function(){return"progressBottom"===this.renderMode||"progressTopBottom"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonVisible",{get:function(){return this.currentIndex>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonShowing",{get:function(){return this.isPrevButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonVisible",{get:function(){return this.currentIndex>=0&&this.currentIndex<this.visiblePanelCount-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonShowing",{get:function(){return this.isNextButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRangeShowing",{get:function(){return this.showRangeInProgress&&this.currentIndex>=0&&this.visiblePanelCount>1},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),e?[this.template]:this.templateElements},t.prototype.prepareValueForPanelCreating=function(){this.addingNewPanelsValue=this.value,this.isAddingNewPanels=!0,this.isNewPanelsValueChanged=!1},t.prototype.setValueAfterPanelsCreating=function(){this.isAddingNewPanels=!1,this.isNewPanelsValueChanged&&(this.isValueChangingInternally=!0,this.value=this.addingNewPanelsValue,this.isValueChangingInternally=!1)},t.prototype.getValueCore=function(){return this.isAddingNewPanels?this.addingNewPanelsValue:e.prototype.getValueCore.call(this)},t.prototype.setValueCore=function(t){this.isAddingNewPanels?(this.isNewPanelsValueChanged=!0,this.addingNewPanelsValue=t):e.prototype.setValueCore.call(this,t)},t.prototype.setIsMobile=function(e){(this.panels||[]).forEach((function(t){return t.elements.forEach((function(t){t instanceof l.Question&&(t.isMobile=e)}))}))},Object.defineProperty(t.prototype,"panelCount",{get:function(){return this.isLoadingFromJson||this.useTemplatePanel?this.getPropertyValue("panelCount"):this.panels.length},set:function(e){if(!(e<0))if(this.isLoadingFromJson||this.useTemplatePanel)this.setPropertyValue("panelCount",e);else if(e!=this.panels.length&&!this.useTemplatePanel){this.updateBindings("panelCount",e),this.prepareValueForPanelCreating();for(var t=this.panelCount;t<e;t++){var r=this.createNewPanel();this.panels.push(r),"list"==this.renderMode&&"default"!=this.panelsState&&("expand"===this.panelsState?r.expand():r.title&&r.collapse())}e<this.panelCount&&this.panels.splice(e,this.panelCount-e),this.setValueAfterPanelsCreating(),this.setValueBasedOnPanelCount(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback)}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelCount",{get:function(){return this.visiblePanels.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelsState",{get:function(){return this.getPropertyValue("panelsState")},set:function(e){this.setPropertyValue("panelsState",e)},enumerable:!1,configurable:!0}),t.prototype.setTemplatePanelSurveyImpl=function(){this.template.setSurveyImpl(this.useTemplatePanel?this.surveyImpl:new w(this))},t.prototype.setPanelsSurveyImpl=function(){for(var e=0;e<this.panels.length;e++){var t=this.panels[e];t!=this.template&&t.setSurveyImpl(t.data)}},t.prototype.setPanelsState=function(){if(!this.useTemplatePanel&&"list"==this.renderMode&&this.templateTitle)for(var e=0;e<this.panels.length;e++){var t=this.panelsState;"firstExpanded"===t&&(t=0===e?"expanded":"collapsed"),this.panels[e].state=t}},t.prototype.setValueBasedOnPanelCount=function(){var e=this.value;if(e&&Array.isArray(e)||(e=[]),e.length!=this.panelCount){for(var t=e.length;t<this.panelCount;t++)e.push({});e.length>this.panelCount&&e.splice(this.panelCount,e.length-this.panelCount),this.isValueChangingInternally=!0,this.value=e,this.isValueChangingInternally=!1}},Object.defineProperty(t.prototype,"minPanelCount",{get:function(){return this.getPropertyValue("minPanelCount")},set:function(e){e<0&&(e=0),e!=this.minPanelCount&&(this.setPropertyValue("minPanelCount",e),e>this.maxPanelCount&&(this.maxPanelCount=e),this.panelCount<e&&(this.panelCount=e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxPanelCount",{get:function(){return this.getPropertyValue("maxPanelCount")},set:function(e){e<=0||(e>d.settings.panelMaximumPanelCount&&(e=d.settings.panelMaximumPanelCount),e!=this.maxPanelCount&&(this.setPropertyValue("maxPanelCount",e),e<this.minPanelCount&&(this.minPanelCount=e),this.panelCount>e&&(this.panelCount=e)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAddPanel",{get:function(){return this.getPropertyValue("allowAddPanel")},set:function(e){this.setPropertyValue("allowAddPanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemovePanel",{get:function(){return this.getPropertyValue("allowRemovePanel")},set:function(e){this.setPropertyValue("allowRemovePanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitleLocation",{get:function(){return this.getPropertyValue("templateTitleLocation")},set:function(e){this.setPropertyValue("templateTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),!this.isLoadingFromJson&&this.survey&&this.survey.questionVisibilityChanged(this,this.visible)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveButtonLocation",{get:function(){return this.getPropertyValue("panelRemoveButtonLocation")},set:function(e){this.setPropertyValue("panelRemoveButtonLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRangeInProgress",{get:function(){return this.getPropertyValue("showRangeInProgress")},set:function(e){this.setPropertyValue("showRangeInProgress",e),this.updateFooterActions(),this.fireCallback(this.currentIndexChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderMode",{get:function(){return this.getPropertyValue("renderMode")},set:function(e){this.setPropertyValue("renderMode",e),this.updateFooterActions(),this.fireCallback(this.renderModeChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tabAlign",{get:function(){return this.getPropertyValue("tabAlign")},set:function(e){this.setPropertyValue("tabAlign",e),this.isRenderModeTab&&(this.additionalTitleToolbar.containerCss=this.getAdditionalTitleToolbarCss())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeList",{get:function(){return"list"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeTab",{get:function(){return"tab"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(this.isRenderModeTab&&this.visiblePanelCount>0)return!0;if(!this.hasTitle)return!1;var e=this.getTitleLocation();return"left"===e||"top"===e},enumerable:!1,configurable:!0}),t.prototype.setVisibleIndex=function(t){if(!this.isVisible)return 0;for(var r="onSurvey"==this.showQuestionNumbers?t:0,n=0;n<this.visiblePanels.length;n++){var o=this.setPanelVisibleIndex(this.visiblePanels[n],r,"off"!=this.showQuestionNumbers);"onSurvey"==this.showQuestionNumbers&&(r+=o)}return e.prototype.setVisibleIndex.call(this,"onSurvey"!=this.showQuestionNumbers?t:-1),"onSurvey"!=this.showQuestionNumbers?1:r-t},t.prototype.setPanelVisibleIndex=function(e,t,r){return r?e.setVisibleIndex(t):(e.setVisibleIndex(-1),0)},Object.defineProperty(t.prototype,"canAddPanel",{get:function(){return!this.isDesignMode&&!(this.isDefaultV2Theme&&!this.legacyNavigation&&!this.isRenderModeList&&this.currentIndex<this.visiblePanelCount-1)&&this.allowAddPanel&&!this.isReadOnly&&this.panelCount<this.maxPanelCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemovePanel",{get:function(){return!this.isDesignMode&&this.allowRemovePanel&&!this.isReadOnly&&this.panelCount>this.minPanelCount},enumerable:!1,configurable:!0}),t.prototype.rebuildPanels=function(){var e;if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var t=[];if(this.useTemplatePanel)new x(this,this.template),t.push(this.template);else for(var r=0;r<this.panelCount;r++)this.createNewPanel(),t.push(this.createNewPanel());(e=this.panels).splice.apply(e,function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}([0,this.panels.length],t)),this.setValueAfterPanelsCreating(),this.setPanelsState(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.updateTabToolbar()}},Object.defineProperty(t.prototype,"defaultPanelValue",{get:function(){return this.getPropertyValue("defaultPanelValue")},set:function(e){this.setPropertyValue("defaultPanelValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastPanel",{get:function(){return this.getPropertyValue("defaultValueFromLastPanel")},set:function(e){this.setPropertyValue("defaultValueFromLastPanel",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultPanelValue)},t.prototype.setDefaultValue=function(){if(!this.isValueEmpty(this.defaultPanelValue)&&this.isValueEmpty(this.defaultValue)){if(this.isEmpty()&&0!=this.panelCount){for(var t=[],r=0;r<this.panelCount;r++)t.push(this.defaultPanelValue);this.value=t}}else e.prototype.setDefaultValue.call(this)},t.prototype.isEmpty=function(){var e=this.value;if(!e||!Array.isArray(e))return!0;for(var t=0;t<e.length;t++)if(!this.isRowEmpty(e[t]))return!1;return!0},t.prototype.getProgressInfo=function(){return i.SurveyElement.getProgressInfoByElements(this.visiblePanels,this.isRequired)},t.prototype.isRowEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},t.prototype.addPanelUI=function(){if(!this.canAddPanel)return null;if(!this.canLeaveCurrentPanel())return null;var e=this.addPanel();return"list"===this.renderMode&&"default"!==this.panelsState&&e.expand(),e},t.prototype.addPanel=function(){this.panelCount++,this.isRenderModeList||(this.currentIndex=this.panelCount-1);var e=this.value,t=!1;return this.isValueEmpty(this.defaultPanelValue)||e&&Array.isArray(e)&&e.length==this.panelCount&&(t=!0,this.copyValue(e[e.length-1],this.defaultPanelValue)),this.defaultValueFromLastPanel&&e&&Array.isArray(e)&&e.length>1&&e.length==this.panelCount&&(t=!0,this.copyValue(e[e.length-1],e[e.length-2])),t&&(this.value=e),this.survey&&this.survey.dynamicPanelAdded(this),this.panels[this.panelCount-1]},t.prototype.canLeaveCurrentPanel=function(){return!("list"!==this.renderMode&&this.currentPanel&&this.currentPanel.hasErrors(!0,!0))},t.prototype.copyValue=function(e,t){for(var r in t)e[r]=t[r]},t.prototype.removePanelUI=function(e){this.canRemovePanel&&(this.confirmDelete&&!Object(h.confirmAction)(this.confirmDeleteText)||this.removePanel(e))},t.prototype.goToNextPanel=function(){return!(this.currentIndex<0||!this.canLeaveCurrentPanel()||(this.currentIndex++,0))},t.prototype.goToPrevPanel=function(){this.currentIndex<0||this.currentIndex--},t.prototype.removePanel=function(e){var t=this.getVisualPanelIndex(e);if(!(t<0||t>=this.visiblePanelCount)){var r=this.visiblePanels[t],n=this.panels.indexOf(r);n<0||this.survey&&!this.survey.dynamicPanelRemoving(this,n,r)||(this.panels.splice(n,1),this.updateBindings("panelCount",this.panelCount),!(e=this.value)||!Array.isArray(e)||n>=e.length||(this.isValueChangingInternally=!0,e.splice(n,1),this.value=e,this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,n,r),this.isValueChangingInternally=!1))}},t.prototype.getVisualPanelIndex=function(e){if(o.Helpers.isNumber(e))return e;for(var t=this.visiblePanels,r=0;r<t.length;r++)if(t[r]===e||t[r].data===e)return r;return-1},t.prototype.getPanelIndexById=function(e){for(var t=0;t<this.panels.length;t++)if(this.panels[t].id===e)return t;return-1},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.panels,r=0;r<t.length;r++)t[r].locStrsChanged();this.additionalTitleToolbar&&this.additionalTitleToolbar.locStrsChanged()},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.panels.length;e++)this.clearIncorrectValuesInPanel(e)},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.panels.length;t++)this.panels[t].clearErrors()},t.prototype.getQuestionFromArray=function(e,t){return t>=this.panelCount?null:this.panels[t].getQuestionByName(e)},t.prototype.clearIncorrectValuesInPanel=function(e){var t=this.panels[e];t.clearIncorrectValues();var r=this.value,n=r&&e<r.length?r[e]:null;if(n){var o=!1;for(var i in n)this.getSharedQuestionFromArray(i,e)||t.getQuestionByName(i)||this.iscorrectValueWithPostPrefix(t,i,d.settings.commentSuffix)||this.iscorrectValueWithPostPrefix(t,i,d.settings.matrixTotalValuePostFix)||(delete n[i],o=!0);o&&(r[e]=n,this.value=r)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t,r){return t.indexOf(r)===t.length-r.length&&!!e.getQuestionByName(t.substring(0,t.indexOf(r)))},t.prototype.getSharedQuestionFromArray=function(e,t){return this.survey&&this.valueName?this.survey.getQuestionByValueNameFromArray(this.valueName,e,t):null},t.prototype.addConditionObjectsByContext=function(e,t){for(var r=!!t&&(!0===t||this.template.questions.indexOf(t)>-1),n=new Array,o=this.template.questions,i=0;i<o.length;i++)o[i].addConditionObjectsByContext(n,t);for(var s=0;s<d.settings.panelDynamicMaxPanelCountInCondition;s++){var a="["+s+"].",l=this.getValueName()+a,u=this.processedTitle+a;for(i=0;i<n.length;i++)e.push({name:l+n[i].name,text:u+n[i].text,question:n[i].question})}if(r)for(l=!0===t?this.getValueName()+".":"",u=!0===t?this.processedTitle+".":"",i=0;i<n.length;i++)if(n[i].question!=t){var c={name:l+"panel."+n[i].name,text:u+"panel."+n[i].text,question:n[i].question};!0===t&&(c.context=this),e.push(c)}},t.prototype.getConditionJson=function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!r)return e.prototype.getConditionJson.call(this,t,r);var n=r,o=r.indexOf(".");o>-1&&(n=r.substring(0,o),r=r.substring(o+1));var i=this.template.getQuestionByName(n);return i?i.getConditionJson(t,r):null},t.prototype.onReadOnlyChanged=function(){var t=this.isReadOnly;this.template.readOnly=t;for(var r=0;r<this.panels.length;r++)this.panels[r].readOnly=t;this.updateNoEntriesTextDefaultLoc(),e.prototype.onReadOnlyChanged.call(this)},t.prototype.updateNoEntriesTextDefaultLoc=function(){var e=this.getLocalizableString("noEntriesText");e&&(e.localizationName=this.isReadOnly||!this.allowAddPanel?"noEntriesReadonlyText":"noEntriesText",e.strChanged())},t.prototype.onSurveyLoad=function(){if(this.template.readOnly=this.isReadOnly,this.template.onSurveyLoad(),this.getPropertyValue("panelCount")>0&&(this.panelCount=this.getPropertyValue("panelCount")),this.useTemplatePanel&&this.rebuildPanels(),this.setPanelsSurveyImpl(),this.setPanelsState(),this.assignOnPropertyChangedToTemplate(),this.survey)for(var t=0;t<this.panelCount;t++)this.survey.dynamicPanelAdded(this);this.recalculateIsReadyValue(),!this.isReadOnly&&this.allowAddPanel||this.updateNoEntriesTextDefaultLoc(),e.prototype.onSurveyLoad.call(this)},t.prototype.onFirstRendering=function(){this.template.onFirstRendering();for(var t=0;t<this.panels.length;t++)this.panels[t].onFirstRendering();e.prototype.onFirstRendering.call(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.panels.length;t++)this.panels[t].localeChanged()},t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.runPanelsCondition(t,r)},t.prototype.reRunCondition=function(){this.data&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runPanelsCondition=function(e,t){var r={};e&&e instanceof Object&&(r=JSON.parse(JSON.stringify(e))),this.parentQuestion&&this.parent&&(r[x.ParentItemVariableName]=this.parent.getValue());for(var n=0;n<this.panels.length;n++){var i=this.getPanelItemData(this.panels[n].data),s=o.Helpers.createCopy(r);s[x.ItemVariableName.toLowerCase()]=i,s[x.IndexVariableName.toLowerCase()]=n,this.panels[n].runCondition(s,t)}},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t);for(var r=0;r<this.panels.length;r++)this.panels[r].onAnyValueChanged(t),this.panels[r].onAnyValueChanged(x.ItemVariableName)},t.prototype.hasKeysDuplicated=function(e,t){void 0===t&&(t=null);for(var r,n=[],o=0;o<this.panels.length;o++)r=this.isValueDuplicated(this.panels[o],n,t,e)||r;return r},t.prototype.updatePanelsContainsErrors=function(){for(var e=this.changingValueQuestion.parent;e;)e.updateContainsErrors(),e=e.parent;this.updateContainsErrors()},t.prototype.hasErrors=function(t,r){if(void 0===t&&(t=!0),void 0===r&&(r=null),this.isValueChangingInternally)return!1;var n=!1;if(this.changingValueQuestion)return n=this.changingValueQuestion.hasErrors(t,r),n=this.hasKeysDuplicated(t,r)||n,this.updatePanelsContainsErrors(),n;var o=this.hasErrorInPanels(t,r);return e.prototype.hasErrors.call(this,t)||o},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var r=this.panels,n=0;n<r.length;n++)if(r[n].containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=this.visiblePanels,r=0;r<t.length;r++){var n=[];t[r].addQuestionsToList(n,!0);for(var o=0;o<n.length;o++)if(!n[o].isAnswered)return!1}return!0},t.prototype.clearValueIfInvisibleCore=function(){for(var t=0;t<this.panels.length;t++){var r=this.panels[t].questions;this.isSetPanelItemData={};for(var n=0;n<r.length;n++){var o=r[n];o.clearValueIfInvisible(),this.isSetPanelItemData[o.getValueName()]=this.maxCheckCount+1}}this.isSetPanelItemData={},e.prototype.clearValueIfInvisibleCore.call(this)},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.panels.length;t++)for(var r=this.panels[t].questions,n=0;n<r.length;n++)if(r[n].isRunningValidators)return!0;return!1},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),r=this.visiblePanels,n=0;n<r.length;n++)for(var o=r[n].questions,i=0;i<o.length;i++){var s=o[i].getAllErrors();s&&s.length>0&&(t=t.concat(s))}return t},t.prototype.getDisplayValueCore=function(e,t){var r=this.getUnbindValue(t);if(!r||!Array.isArray(r))return r;for(var n=0;n<this.panels.length&&n<r.length;n++){var o=r[n];o&&(r[n]=this.getPanelDisplayValue(n,o,e))}return r},t.prototype.getPanelDisplayValue=function(e,t,r){if(!t)return t;for(var n=this.panels[e],o=Object.keys(t),i=0;i<o.length;i++){var s=o[i],a=n.getQuestionByValueName(s);if(a||(a=this.getSharedQuestionFromArray(s,e)),a){var l=a.getDisplayValue(r,t[s]);t[s]=l,r&&a.title&&a.title!==s&&(t[a.title]=l,delete t[s])}}return t},t.prototype.hasErrorInPanels=function(e,t){for(var r=!1,n=this.visiblePanels,o=[],i=0;i<n.length;i++)this.setOnCompleteAsyncInPanel(n[i]);for(i=0;i<n.length;i++){var s=n[i].hasErrors(e,!!t&&t.focuseOnFirstError,t);s=this.isValueDuplicated(n[i],o,t,e)||s,this.isRenderModeList||!s||r||(this.currentIndex=i),r=s||r}return r},t.prototype.setOnCompleteAsyncInPanel=function(e){for(var t=this,r=e.questions,n=0;n<r.length;n++)r[n].onCompletedAsyncValidators=function(e){t.raiseOnCompletedAsyncValidators()}},t.prototype.isValueDuplicated=function(e,t,r,n){if(!this.keyName)return!1;var o=e.getQuestionByValueName(this.keyName);if(!o||o.isEmpty())return!1;var i=o.value;this.changingValueQuestion&&o!=this.changingValueQuestion&&o.hasErrors(n,r);for(var s=0;s<t.length;s++)if(i==t[s])return n&&o.addError(new p.KeyDuplicationError(this.keyDuplicationError,this)),r&&!r.firstErrorQuestion&&(r.firstErrorQuestion=o),!0;return t.push(i),!1},t.prototype.getPanelActions=function(e){var t=this,r=e.footerActions;return"right"!==this.panelRemoveButtonLocation&&r.push(new m.Action({id:"remove-panel-"+e.id,component:"sv-paneldynamic-remove-btn",visible:new g.ComputedUpdater((function(){return[t.canRemovePanel,"collapsed"!==e.state,"right"!==t.panelRemoveButtonLocation].every((function(e){return!0===e}))})),data:{question:this,panel:e}})),this.survey&&(r=this.survey.getUpdatedPanelFooterActions(e,r,this)),r},t.prototype.createNewPanel=function(){var e=this,t=this.createAndSetupNewPanelObject(),r=this.template.toJSON();(new u.JsonObject).toObject(r,t),t.renderWidth="100%",t.updateCustomWidgets(),new x(this,t),t.onFirstRendering();for(var n=t.questions,o=0;o<n.length;o++)n[o].setParentQuestion(this);return t.locStrsChanged(),t.onGetFooterActionsCallback=function(){return e.getPanelActions(t)},t.footerToolbarCss=this.cssClasses.panelFooter,t.registerPropertyChangedHandlers(["visible"],(function(){t.visible?e.onPanelAdded(t):e.onPanelRemoved(t),e.updateFooterActions()})),t},t.prototype.createAndSetupNewPanelObject=function(){var e=this.createNewPanelObject();e.isInteractiveDesignElement=!1,e.setParentQuestion(this);var t=this;return e.onGetQuestionTitleLocation=function(){return t.getTemplateQuestionTitleLocation()},e},t.prototype.getTemplateQuestionTitleLocation=function(){return"default"!=this.templateTitleLocation?this.templateTitleLocation:this.getTitleLocationCore()},t.prototype.createNewPanelObject=function(){return u.Serializer.createClass("panel")},t.prototype.setPanelCountBasedOnValue=function(){if(!this.isValueChangingInternally&&!this.useTemplatePanel){var e=this.value,t=e&&Array.isArray(e)?e.length:0;0==t&&this.getPropertyValue("panelCount")>0&&(t=this.getPropertyValue("panelCount")),this.settingPanelCountBasedOnValue=!0,this.panelCount=t,this.settingPanelCountBasedOnValue=!1}},t.prototype.setQuestionValue=function(t){if(!this.settingPanelCountBasedOnValue){e.prototype.setQuestionValue.call(this,t,!1),this.setPanelCountBasedOnValue();for(var r=0;r<this.panels.length;r++)this.panelUpdateValueFromSurvey(this.panels[r]);this.updateIsAnswered()}},t.prototype.onSurveyValueChanged=function(t){if(void 0!==t||!this.isAllPanelsEmpty()){e.prototype.onSurveyValueChanged.call(this,t);for(var r=0;r<this.panels.length;r++)this.panelSurveyValueChanged(this.panels[r]);void 0===t&&this.setValueBasedOnPanelCount(),this.recalculateIsReadyValue()}},t.prototype.isAllPanelsEmpty=function(){for(var e=0;e<this.panels.length;e++)if(!o.Helpers.isValueEmpty(this.panels[e].getValue()))return!1;return!0},t.prototype.panelUpdateValueFromSurvey=function(e){for(var t=e.questions,r=this.getPanelItemData(e.data),n=0;n<t.length;n++){var o=t[n];o.updateValueFromSurvey(r[o.getValueName()]),o.updateCommentFromSurvey(r[o.getValueName()+d.settings.commentSuffix])}},t.prototype.panelSurveyValueChanged=function(e){for(var t=e.questions,r=this.getPanelItemData(e.data),n=0;n<t.length;n++){var o=t[n];o.onSurveyValueChanged(r[o.getValueName()])}},t.prototype.recalculateIsReadyValue=function(){var e=this,t=this.isReadyValue,r=!0;this.panels.forEach((function(t){t.questions.forEach((function(t){t.isReady?t.onReadyChanged.remove(e.onReadyChangedCallback):(r=!1,t.onReadyChanged.add(e.onReadyChangedCallback))}))})),this.isReadyValue=r,t!=this.isReadyValue&&this.onReadyChanged.fire(this,{question:this,oldIsReady:t,isReady:this.isReadyValue})},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.useTemplatePanel&&(this.setTemplatePanelSurveyImpl(),this.rebuildPanels())},t.prototype.getItemIndex=function(e){var t=this.items.indexOf(e);return t>-1?t:this.items.length},t.prototype.getVisibleItemIndex=function(e){for(var t=this.visiblePanels,r=0;r<t.length;r++)if(t[r].data===e)return r;return t.length},t.prototype.getPanelItemData=function(e){var t=this.items,r=t.indexOf(e),n=this.value;return r<0&&Array.isArray(n)&&n.length>t.length&&(r=t.length),r<0||!n||!Array.isArray(n)||n.length<=r?{}:n[r]},t.prototype.setPanelItemData=function(e,t,r){if(!(this.isSetPanelItemData[t]>this.maxCheckCount)){this.isSetPanelItemData[t]||(this.isSetPanelItemData[t]=0),this.isSetPanelItemData[t]++;var n=this.items,o=n.indexOf(e);o<0&&(o=n.length);var i=this.getUnbindValue(this.value);if(i&&Array.isArray(i)||(i=[]),i.length<=o)for(var s=i.length;s<=o;s++)i.push({});if(i[o]||(i[o]={}),this.isValueEmpty(r)?delete i[o][t]:i[o][t]=r,o>=0&&o<this.panels.length&&(this.changingValueQuestion=this.panels[o].getQuestionByValueName(t)),this.value=i,this.changingValueQuestion=null,this.survey){var a={question:this,panel:e.panel,name:t,itemIndex:o,itemValue:i[o],value:r};this.survey.dynamicPanelItemValueChanged(this,a)}this.isSetPanelItemData[t]--,this.isSetPanelItemData[t]-1&&delete this.isSetPanelItemData[t]}},t.prototype.getRootData=function(){return this.data},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);return r&&(r.isNode=!0,r.data=this.panels.map((function(e,r){var n={name:e.name||r,title:e.title||"Panel",value:e.getValue(),displayValue:e.getValue(),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.questions.map((function(e){return e.getPlainData(t)})).filter((function(e){return!!e}))};return(t.calculations||[]).forEach((function(t){n[t.propertyName]=e[t.propertyName]})),n}))),r},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t);for(var r=0;r<this.panels.length;r++)this.panels[r].updateElementCss(t)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.visiblePanelCount;return this.getLocalizationFormatString("panelDynamicProgressText",this.currentIndex+1,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return(this.currentIndex+1)/this.visiblePanelCount*100+"%"},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){return(new f.CssClassBuilder).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.empty,this.getShowNoEntriesPlaceholder()).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){var e=this.isRenderModeTab&&!!this.panelCount;return(new f.CssClassBuilder).append(this.cssClasses.header).append(this.cssClasses.headerTop,this.hasTitleOnTop||e).append(this.cssClasses.headerTab,e).toString()},enumerable:!1,configurable:!0}),t.prototype.getPanelWrapperCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.panelWrapper).append(this.cssClasses.panelWrapperInRow,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getPanelRemoveButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonRemove).append(this.cssClasses.buttonRemoveRight,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getAddButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.buttonAdd+"--list-mode","list"===this.renderMode).toString()},t.prototype.getPrevButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.buttonPrev).append(this.cssClasses.buttonPrevDisabled,!this.isPrevButtonVisible).toString()},t.prototype.getNextButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.buttonNext).append(this.cssClasses.buttonNextDisabled,!this.isNextButtonVisible).toString()},Object.defineProperty(t.prototype,"noEntriesText",{get:function(){return this.getLocalizableStringText("noEntriesText")},set:function(e){this.setLocalizableStringText("noEntriesText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoEntriesText",{get:function(){return this.getLocalizableString("noEntriesText")},enumerable:!1,configurable:!0}),t.prototype.getShowNoEntriesPlaceholder=function(){return!!this.cssClasses.noEntriesPlaceholder&&!this.isDesignMode&&0===this.visiblePanelCount},t.prototype.needResponsiveWidth=function(){var e=this.getPanel();return!(!e||!e.needResponsiveWidth())},t.prototype.getAdditionalTitleToolbar=function(){return this.isRenderModeTab?(this.additionalTitleToolbarValue||(this.additionalTitleToolbarValue=new b.AdaptiveActionContainer,this.additionalTitleToolbarValue.containerCss=this.getAdditionalTitleToolbarCss(),this.additionalTitleToolbarValue.cssClasses={item:"sv-tab-item",itemPressed:"sv-tab-item--pressed",itemAsIcon:"sv-tab-item--icon",itemIcon:"sv-tab-item__icon",itemTitle:"sv-tab-item__title"}),this.additionalTitleToolbarValue):null},Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.initFooterToolbar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.updateFooterActions=function(){this.updateFooterActionsCallback&&this.updateFooterActionsCallback()},t.prototype.initFooterToolbar=function(){var e=this;this.footerToolbarValue=this.createActionContainer();var t=[],r=new m.Action({id:"sv-pd-prev-btn",title:this.panelPrevText,action:function(){e.goToPrevPanel()}}),n=new m.Action({id:"sv-pd-next-btn",title:this.panelNextText,action:function(){e.goToNextPanel()}}),o=new m.Action({id:"sv-pd-add-btn",component:"sv-paneldynamic-add-btn",data:{question:this}}),i=new m.Action({id:"sv-prev-btn-icon",component:"sv-paneldynamic-prev-btn",data:{question:this}}),s=new m.Action({id:"sv-pd-progress-text",component:"sv-paneldynamic-progress-text",data:{question:this}}),a=new m.Action({id:"sv-pd-next-btn-icon",component:"sv-paneldynamic-next-btn",data:{question:this}});t.push(r,n,o,i,s,a),this.updateFooterActionsCallback=function(){var t=e.legacyNavigation,l=e.isRenderModeList,u=e.isMobile,c=!t&&!l;r.visible=c&&e.currentIndex>0,n.visible=c&&e.currentIndex<e.visiblePanelCount-1,n.needSpace=u&&n.visible&&r.visible,o.visible=e.canAddPanel,o.needSpace=e.isMobile&&!n.visible&&r.visible,s.visible=!e.isRenderModeList&&!u,s.needSpace=!t&&!e.isMobile;var p=t&&!l;i.visible=p,a.visible=p,i.needSpace=p},this.updateFooterActionsCallback(),this.footerToolbarValue.setItems(t)},t.prototype.createTabByPanel=function(e){var t=this;if(this.isRenderModeTab){var r=new s.LocalizableString(e,!0);r.sharedData=this.locTemplateTabTitle;var n=new m.Action({id:e.id,css:"sv-tab-item__root",pressed:this.getPanelIndexById(e.id)===this.currentIndex,locTitle:r,action:function(){t.currentIndex=t.getPanelIndexById(n.id),t.updateTabToolbarItemsPressedState()}});return n}},t.prototype.getAdditionalTitleToolbarCss=function(){return(new f.CssClassBuilder).append("sv-tabs-toolbar").append("sv-tabs-toolbar--left","left"===this.tabAlign).append("sv-tabs-toolbar--right","right"===this.tabAlign).append("sv-tabs-toolbar--center","center"===this.tabAlign).toString()},t.prototype.updateTabToolbarItemsPressedState=function(){if(this.isRenderModeTab&&!(this.currentIndex<0||this.currentIndex>=this.visiblePanelCount)){var e=this.visiblePanels[this.currentIndex];this.additionalTitleToolbar.renderedActions.forEach((function(t){return t.pressed=t.id===e.id}))}},t.prototype.updateTabToolbar=function(){var e=this;if(this.isRenderModeTab){var t=[];this.visiblePanels.forEach((function(r){return t.push(e.createTabByPanel(r))})),this.additionalTitleToolbar.setItems(t)}},t.prototype.addTabFromToolbar=function(e,t){if(this.isRenderModeTab){var r=this.createTabByPanel(e);this.additionalTitleToolbar.actions.splice(t,0,r),this.updateTabToolbarItemsPressedState()}},t.prototype.removeTabFromToolbar=function(e){if(this.isRenderModeTab){var t=this.additionalTitleToolbar.getActionById(e.id);t&&(this.additionalTitleToolbar.actions.splice(this.additionalTitleToolbar.actions.indexOf(t),1),this.updateTabToolbarItemsPressedState())}},Object.defineProperty(t.prototype,"showLegacyNavigation",{get:function(){return!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigation",{get:function(){return this.visiblePanelCount>0&&!this.showLegacyNavigation&&!!this.cssClasses.footer},enumerable:!1,configurable:!0}),t.prototype.showSeparator=function(e){return this.isRenderModeList&&e<this.visiblePanelCount-1},t.maxCheckCount=3,function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);i>3&&s&&Object.defineProperty(t,r,s)}([Object(u.property)({defaultValue:!1,onSet:function(e,t){t.updateFooterActions()}})],t.prototype,"legacyNavigation",void 0),t}(l.Question);u.Serializer.addClass("paneldynamic",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"templateElements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"templateTitle:text",serializationProperty:"locTemplateTitle"},{name:"templateTabTitle",serializationProperty:"locTemplateTabTitle",visibleIf:function(e){return"tab"===e.renderMode}},{name:"templateDescription:text",serializationProperty:"locTemplateDescription"},{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"noEntriesText:text",serializationProperty:"locNoEntriesText"},{name:"allowAddPanel:boolean",default:!0},{name:"allowRemovePanel:boolean",default:!0},{name:"panelCount:number",isBindable:!0,default:0,choices:[0,1,2,3,4,5,6,7,8,9,10]},{name:"minPanelCount:number",default:0,minValue:0},{name:"maxPanelCount:number",default:d.settings.panelMaximumPanelCount},"defaultPanelValue:panelvalue","defaultValueFromLastPanel:boolean",{name:"panelsState",default:"default",choices:["default","collapsed","expanded","firstExpanded"]},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"confirmDelete:boolean"},{name:"confirmDeleteText",serializationProperty:"locConfirmDeleteText"},{name:"panelAddText",serializationProperty:"locPanelAddText"},{name:"panelRemoveText",serializationProperty:"locPanelRemoveText"},{name:"panelPrevText",serializationProperty:"locPanelPrevText"},{name:"panelNextText",serializationProperty:"locPanelNextText"},{name:"showQuestionNumbers",default:"off",choices:["off","onPanel","onSurvey"]},{name:"showRangeInProgress:boolean",default:!0},{name:"renderMode",default:"list",choices:["list","progressTop","progressBottom","progressTopBottom","tab"]},{name:"tabAlign",default:"center",choices:["center","left","right"],visibleIf:function(e){return"tab"===e.renderMode}},{name:"templateTitleLocation",default:"default",choices:["default","top","bottom","left"]},{name:"templateVisibleIf:expression",category:"logic"},{name:"panelRemoveButtonLocation",default:"bottom",choices:["bottom","right"]}],(function(){return new C("")}),"question"),c.QuestionFactory.Instance.registerQuestion("paneldynamic",(function(e){return new C(e)}))},"./src/question_radiogroup.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionRadiogroupModel",(function(){return c}));var n,o=r("./src/jsonobject.ts"),i=r("./src/questionfactory.ts"),s=r("./src/question_baseselect.ts"),a=r("./src/actions/action.ts"),l=r("./src/base.ts"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getDefaultItemComponent=function(){return"survey-radiogroup-item"},t.prototype.getType=function(){return"radiogroup"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"radiogroup"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaLabel",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.getSingleSelectedItem()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.getPropertyValue("showClearButton")},set:function(e){this.setPropertyValue("showClearButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){return this.showClearButton&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0},Object.defineProperty(t.prototype,"showClearButtonInContent",{get:function(){return!this.isDefaultV2Theme&&this.canShowClearButton},enumerable:!1,configurable:!0}),t.prototype.clickItemHandler=function(e){this.renderedValue=e.value},t.prototype.getDefaultTitleActions=function(){var e=this,t=[];if(this.isDefaultV2Theme&&!this.isDesignMode){var r=new a.Action({title:this.clearButtonCaption,id:"sv-clr-btn-"+this.id,action:function(){e.clearValue()},innerCss:this.cssClasses.clearButton,visible:new l.ComputedUpdater((function(){return e.canShowClearButton}))});t.push(r)}return t},t}(s.QuestionCheckboxBase);o.Serializer.addClass("radiogroup",[{name:"showClearButton:boolean",default:!1},{name:"separateSpecialChoices",visible:!0},{name:"itemComponent",visible:!1,default:"survey-radiogroup-item"}],(function(){return new c("")}),"checkboxbase"),i.QuestionFactory.Instance.registerQuestion("radiogroup",(function(e){var t=new c(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_ranking.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionRankingModel",(function(){return m}));var n,o=r("./src/dragdrop/ranking-choices.ts"),i=r("./src/itemvalue.ts"),s=r("./src/jsonobject.ts"),a=r("./src/questionfactory.ts"),l=r("./src/question_checkbox.ts"),u=r("./src/utils/cssClassBuilder.ts"),c=r("./src/utils/devices.ts"),p=r("./src/helpers.ts"),d=r("./src/settings.ts"),h=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},m=function(e){function t(t){var r=e.call(this,t)||this;return r.domNode=null,r.onVisibleChoicesChanged=function(){if(e.prototype.onVisibleChoicesChanged.call(r),1===r.visibleChoices.length)return r.value=[],void r.updateRankingChoices();r.isEmpty()||(r.visibleChoices.length>r.value.length&&r.addToValueByVisibleChoices(),r.visibleChoices.length<r.value.length&&r.removeFromValueByVisibleChoices()),r.updateRankingChoices()},r.localeChanged=function(){e.prototype.localeChanged.call(r),r.updateRankingChoices()},r.handlePointerDown=function(e,t,n){var o=e.target;r.isDragStartNodeValid(o)&&r.allowStartDrag&&r.dragDropRankingChoices.startDrag(e,t,r,n)},r.handleKeydown=function(e,t){if(!r.isDesignMode){var n=e.key,o=r.rankingChoices.indexOf(t);"ArrowUp"===n&&o&&(r.handleArrowUp(o,t),e.preventDefault()),"ArrowDown"===n&&o!==r.rankingChoices.length-1&&(r.handleArrowDown(o,t),e.preventDefault())}},r.handleArrowUp=function(e,t){var n=r.rankingChoices;n.splice(e,1),n.splice(e-1,0,t),r.setValue(),setTimeout((function(){r.focusItem(e-1)}),1)},r.handleArrowDown=function(e,t){var n=r.rankingChoices;n.splice(e,1),n.splice(e+1,0,t),r.setValue(),setTimeout((function(){r.focusItem(e+1)}),1)},r.focusItem=function(e){r.domNode.querySelectorAll("."+r.cssClasses.item)[e].focus()},r.setValue=function(){var e=[];r.rankingChoices.forEach((function(t){e.push(t.value)})),r.value=e},r.createNewArray("rankingChoices"),r}return h(t,e),t.prototype.getDefaultItemComponent=function(){return""},t.prototype.getType=function(){return"ranking"},t.prototype.getItemTabIndex=function(e){return this.isDesignMode?void 0:0},Object.defineProperty(t.prototype,"rootClass",{get:function(){return(new u.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.rootMobileMod,c.IsMobile).append(this.cssClasses.rootDisabled,this.isReadOnly).append(this.cssClasses.rootDesignMode,!!this.isDesignMode).append(this.cssClasses.itemOnError,this.errors.length>0).append(this.cssClasses.rootDragHandleAreaIcon,"icon"===d.settings.rankingDragHandleArea).toString()},enumerable:!1,configurable:!0}),t.prototype.getItemClassCore=function(t,r){var n=this.rankingChoices.indexOf(t),o=this.rankingChoices.indexOf(this.currentDropTarget);return(new u.CssClassBuilder).append(e.prototype.getItemClassCore.call(this,t,r)).append(this.cssClasses.itemGhostMod,this.currentDropTarget===t).append("sv-dragdrop-movedown",n===o+1&&"down"===this.dropTargetNodeMove).append("sv-dragdrop-moveup",n===o-1&&"up"===this.dropTargetNodeMove).toString()},t.prototype.isItemCurrentDropTarget=function(e){return this.dragDropRankingChoices.dropTarget===e},Object.defineProperty(t.prototype,"ghostPositionCssClass",{get:function(){return"top"===this.ghostPosition?this.cssClasses.dragDropGhostPositionTop:"bottom"===this.ghostPosition?this.cssClasses.dragDropGhostPositionBottom:""},enumerable:!1,configurable:!0}),t.prototype.getItemIndexClasses=function(){return(new u.CssClassBuilder).append(this.cssClasses.itemIndex).append(this.cssClasses.itemIndexEmptyMode,this.isEmpty()).toString()},t.prototype.getNumberByIndex=function(e){return this.isEmpty()?"":e+1+""},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r),this.updateRankingChoices()},t.prototype.isAnswerCorrect=function(){return p.Helpers.isArraysEqual(this.value,this.correctAnswer,!1)},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.isLoadingFromJson||this.updateRankingChoices()},t.prototype.addToValueByVisibleChoices=function(){var e=this.value.slice();this.visibleChoices.forEach((function(t){-1===e.indexOf(t.value)&&e.push(t.value)})),this.value=e},t.prototype.removeFromValueByVisibleChoices=function(){for(var e=this.value.slice(),t=this.visibleChoices,r=this.value.length-1;r>=0;r--)i.ItemValue.getItemByValue(t,this.value[r])||e.splice(r,1);this.value=e},Object.defineProperty(t.prototype,"rankingChoices",{get:function(){return this.getPropertyValue("rankingChoices",[])},enumerable:!1,configurable:!0}),t.prototype.updateRankingChoices=function(e){var t=this;void 0===e&&(e=!1);var r=[];1!==this.visibleChoices.length?(e&&this.setPropertyValue("rankingChoices",[]),this.isEmpty()?this.setPropertyValue("rankingChoices",this.visibleChoices):(this.value.forEach((function(e){t.visibleChoices.forEach((function(t){t.value===e&&r.push(t)}))})),this.setPropertyValue("rankingChoices",r))):this.setPropertyValue("rankingChoices",r)},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.dragDropRankingChoices=new o.DragDropRankingChoices(this.survey,null,this.longTap)},t.prototype.isDragStartNodeValid=function(e){return"icon"!==d.settings.rankingDragHandleArea||e.classList.contains(this.cssClasses.itemIconHoverMod)},Object.defineProperty(t.prototype,"allowStartDrag",{get:function(){return!this.isReadOnly&&!this.isDesignMode},enumerable:!1,configurable:!0}),t.prototype.afterRenderQuestionElement=function(t){this.domNode=t,e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t)},t.prototype.supportSelectAll=function(){return!1},t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.getIconHoverCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconHoverMod).toString()},t.prototype.getIconFocusCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconFocusMod).toString()},Object.defineProperty(t.prototype,"longTap",{get:function(){return this.getPropertyValue("longTap")},set:function(e){this.setPropertyValue("longTap",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useFullItemSizeForShortcut",{get:function(){return this.getPropertyValue("useFullItemSizeForShortcut")},set:function(e){this.setPropertyValue("useFullItemSizeForShortcut",e)},enumerable:!1,configurable:!0}),f([Object(s.property)({defaultValue:null})],t.prototype,"currentDropTarget",void 0),f([Object(s.property)({defaultValue:null})],t.prototype,"dropTargetNodeMove",void 0),t}(l.QuestionCheckboxModel);s.Serializer.addClass("ranking",[{name:"showOtherItem",visible:!1,isSerializable:!1},{name:"otherText",visible:!1,isSerializable:!1},{name:"otherErrorText",visible:!1,isSerializable:!1},{name:"storeOthersAsComment",visible:!1,isSerializable:!1},{name:"showNoneItem",visible:!1,isSerializable:!1},{name:"noneText",visible:!1,isSerializable:!1},{name:"showSelectAllItem",visible:!1,isSerializable:!1},{name:"selectAllText",visible:!1,isSerializable:!1},{name:"colCount:number",visible:!1,isSerializable:!1},{name:"maxSelectedChoices",visible:!1,isSerializable:!1},{name:"separateSpecialChoices",visible:!1,isSerializable:!1},{name:"longTap",default:!0,visible:!1,isSerializable:!1},{name:"itemComponent",visible:!1,default:""}],(function(){return new m("")}),"checkbox"),a.QuestionFactory.Instance.registerQuestion("ranking",(function(e){var t=new m(e);return t.choices=a.QuestionFactory.DefaultChoices,t}))},"./src/question_rating.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"RenderedRatingItem",(function(){return m})),r.d(t,"QuestionRatingModel",(function(){return g}));var n,o=r("./src/itemvalue.ts"),i=r("./src/question.ts"),s=r("./src/jsonobject.ts"),a=r("./src/questionfactory.ts"),l=r("./src/settings.ts"),u=r("./src/surveyStrings.ts"),c=r("./src/utils/cssClassBuilder.ts"),p=r("./src/base.ts"),d=r("./src/utils/utils.ts"),h=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},m=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this)||this;return n.itemValue=t,n.locString=r,n.locText.onStringChanged.add(n.onStringChangedCallback.bind(n)),n.onStringChangedCallback(),n}return h(t,e),t.prototype.onStringChangedCallback=function(){this.text=this.itemValue.text},Object.defineProperty(t.prototype,"value",{get:function(){return this.itemValue.getPropertyValue("value")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.locString||this.itemValue.locText},enumerable:!1,configurable:!0}),f([Object(s.property)({defaultValue:""})],t.prototype,"highlight",void 0),f([Object(s.property)({defaultValue:""})],t.prototype,"text",void 0),f([Object(s.property)()],t.prototype,"style",void 0),t}(p.Base),g=function(e){function t(t){var r=e.call(this,t)||this;return r._syncPropertiesChanging=!1,r.initColors(),r.createItemValues("rateValues"),r.createRenderedRateItems(),r.createLocalizableString("ratingOptionsCaption",r,!1,!0),r.registerFunctionOnPropertiesValueChanged(["rateMin","rateMax","minRateDescription","maxRateDescription","rateStep","displayRateDescriptionsAsExtremeItems"],(function(){return r.createRenderedRateItems()})),r.registerFunctionOnPropertiesValueChanged(["rateType"],(function(){r.setIconsToRateValues(),r.createRenderedRateItems(),r.updateRateCount()})),r.registerFunctionOnPropertiesValueChanged(["rateValues"],(function(){r.autoGenerate=!1,r.setIconsToRateValues(),r.createRenderedRateItems()})),r.registerFunctionOnPropertiesValueChanged(["rateColorMode","scaleColorMode"],(function(){r.initColors()})),r.registerFunctionOnPropertiesValueChanged(["autoGenerate"],(function(){r.autoGenerate||0!==r.rateValues.length||r.setPropertyValue("rateValues",r.visibleRateValues),r.autoGenerate&&(r.rateValues.length=0,r.updateRateMax()),r.createRenderedRateItems()})),r.createLocalizableString("minRateDescription",r,!0),r.createLocalizableString("maxRateDescription",r,!0),r.initPropertyDependencies(),r}return h(t,e),t.prototype.setIconsToRateValues=function(){var e=this;"smileys"==this.rateType&&this.rateValues.map((function(t){return t.icon=e.getItemSmiley(t)}))},t.prototype.startLoadingFromJson=function(t){e.prototype.startLoadingFromJson.call(this,t),this.jsonObj=t},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.initColors(),this.hasMinRateDescription=!!this.minRateDescription,this.hasMaxRateDescription=!!this.maxRateDescription,void 0!==this.jsonObj.rateMin&&void 0!==this.jsonObj.rateCount&&void 0===this.jsonObj.rateMax&&this.updateRateMax(),void 0!==this.jsonObj.rateMax&&void 0!==this.jsonObj.rateCount&&void 0===this.jsonObj.rateMin&&this.updateRateMin(),void 0===this.jsonObj.autoGenerate&&void 0!==this.jsonObj.rateValues&&(this.autoGenerate=!this.jsonObj.rateValues.length),this.updateRateCount(),this.setIconsToRateValues(),this.createRenderedRateItems()},t.prototype.registerSychProperties=function(e,t){var r=this;this.registerFunctionOnPropertiesValueChanged(e,(function(){r._syncPropertiesChanging||(r._syncPropertiesChanging=!0,t(),r._syncPropertiesChanging=!1)}))},t.prototype.useRateValues=function(){return!!this.rateValues.length&&!this.autoGenerate},t.prototype.updateRateMax=function(){this.rateMax=this.rateMin+this.rateStep*(this.rateCount-1)},t.prototype.updateRateMin=function(){this.rateMin=this.rateMax-this.rateStep*(this.rateCount-1)},t.prototype.updateRateCount=function(){var e=0;(e=this.useRateValues()?this.rateValues.length:Math.trunc((this.rateMax-this.rateMin)/(this.rateStep||1))+1)>10&&"smileys"==this.rateDisplayMode&&(e=10),this.rateCount=e,this.rateValues.length>e&&(this.rateValues.length=e)},t.prototype.initPropertyDependencies=function(){var e=this;this.registerSychProperties(["rateCount"],(function(){if(e.useRateValues())if(e.rateCount<e.rateValues.length){if(e.rateCount>=10&&"smileys"==e.rateDisplayMode)return;e.rateValues.splice(e.rateCount,e.rateValues.length-e.rateCount)}else for(var t=e.rateValues.length;t<e.rateCount;t++)e.rateValues.push(new o.ItemValue(u.surveyLocalization.getString("choices_Item")+(t+1)));else e.rateMax=e.rateMin+e.rateStep*(e.rateCount-1)})),this.registerSychProperties(["rateMin","rateMax","rateStep","rateValues"],(function(){e.updateRateCount()}))},Object.defineProperty(t.prototype,"rateValues",{get:function(){return this.getPropertyValue("rateValues")},set:function(e){this.setPropertyValue("rateValues",e),this.createRenderedRateItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMin",{get:function(){return this.getPropertyValue("rateMin")},set:function(e){this.setPropertyValue("rateMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMax",{get:function(){return this.getPropertyValue("rateMax")},set:function(e){this.setPropertyValue("rateMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateStep",{get:function(){return this.getPropertyValue("rateStep")},set:function(e){this.setPropertyValue("rateStep",e)},enumerable:!1,configurable:!0}),t.prototype.initColors=function(){function e(e){var t=getComputedStyle(document.documentElement),r=t.getPropertyValue&&t.getPropertyValue(e);if(!r)return null;var n=document.createElement("canvas").getContext("2d");n.fillStyle=r;var o=n.fillStyle;if(o.startsWith("rgba"))return o.substring(5,o.length-1).split(",").map((function(e){return+e.trim()}));var i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(o);return i?[parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16),1]:null}"monochrome"!==this.colorMode&&document&&(t.badColor&&t.normalColor&&t.goodColor||(t.badColor=e("--sd-rating-bad-color"),t.normalColor=e("--sd-rating-normal-color"),t.goodColor=e("--sd-rating-good-color"),t.badColorLight=e("--sd-rating-bad-color-light"),t.normalColorLight=e("--sd-rating-normal-color-light"),t.goodColorLight=e("--sd-rating-good-color-light")))},t.prototype.getDisplayValueCore=function(e,t){return o.ItemValue.getTextOrHtmlByValue(this.visibleRateValues,t)||t},Object.defineProperty(t.prototype,"visibleRateValues",{get:function(){return this.renderedRateItems.map((function(e){return e.itemValue}))},enumerable:!1,configurable:!0}),t.prototype.itemValuePropertyChanged=function(t,r,n,o){this.useRateValues()||void 0===o||(this.autoGenerate=!1),e.prototype.itemValuePropertyChanged.call(this,t,r,n,o)},t.prototype.createRenderedRateItems=function(){var e=this,t=[];if(this.useRateValues())t=this.rateValues;else{for(var r=[],n=this.rateMin,i=this.rateStep;n<=this.rateMax&&r.length<l.settings.ratingMaximumRateValueCount;){var s=new o.ItemValue(n);s.locOwner=this,s.ownerPropertyName="rateValues",r.push(s),n=this.correctValue(n+i,i)}t=r}"smileys"==this.rateType&&t.length>10&&(t=t.slice(0,10)),this.renderedRateItems=t.map((function(r,n){var o=null;return e.displayRateDescriptionsAsExtremeItems&&(0==n&&(o=new m(r,e.minRateDescription&&e.locMinRateDescription||r.locText)),n==t.length-1&&(o=new m(r,e.maxRateDescription&&e.locMaxRateDescription||r.locText))),o||(o=new m(r)),o}))},t.prototype.correctValue=function(e,t){if(!e)return e;if(Math.round(e)==e)return e;for(var r=0;Math.round(t)!=t;)t*=10,r++;return parseFloat(e.toFixed(r))},t.prototype.getType=function(){return"rating"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},t.prototype.getInputId=function(e){return this.inputId+"_"+e},t.prototype.supportGoNextPageAutomatic=function(){return!0},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"minRateDescription",{get:function(){return this.getLocalizableStringText("minRateDescription")},set:function(e){this.setLocalizableStringText("minRateDescription",e),this.hasMinRateDescription=!!this.minRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinRateDescription",{get:function(){return this.getLocalizableString("minRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRateDescription",{get:function(){return this.getLocalizableStringText("maxRateDescription")},set:function(e){this.setLocalizableStringText("maxRateDescription",e),this.hasMaxRateDescription=!!this.maxRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxRateDescription",{get:function(){return this.getLocalizableString("maxRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMinLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMinRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMaxLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMaxRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateDisplayMode",{get:function(){return this.rateType},set:function(e){this.rateType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStar",{get:function(){return"stars"==this.rateType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSmiley",{get:function(){return"smileys"==this.rateType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemComponentName",{get:function(){return this.isStar?"sv-rating-item-star":this.isSmiley?"sv-rating-item-smiley":"sv-rating-item"},enumerable:!1,configurable:!0}),t.prototype.valueToData=function(e){if(this.useRateValues()){var t=o.ItemValue.getItemByValue(this.rateValues,e);return t?t.value:e}return isNaN(e)?e:parseFloat(e)},t.prototype.setValueFromClick=function(e){this.value===parseFloat(e)?this.clearValue():this.value=e;for(var t=0;t<this.renderedRateItems.length;t++)this.renderedRateItems[t].highlight="none"},t.prototype.onItemMouseIn=function(e){if(!this.isReadOnly&&e.itemValue.isEnabled&&!this.isDesignMode){var t=!0,r=null!=this.value;if("stars"===this.rateType)for(var n=0;n<this.renderedRateItems.length;n++)this.renderedRateItems[n].highlight=(t&&!r?"highlighted":!t&&r&&"unhighlighted")||"none",this.renderedRateItems[n]==e&&(t=!1),this.renderedRateItems[n].itemValue.value==this.value&&(r=!1);else e.highlight="highlighted"}},t.prototype.onItemMouseOut=function(e){this.renderedRateItems.forEach((function(e){return e.highlight="none"}))},Object.defineProperty(t.prototype,"itemSmallMode",{get:function(){return this.inMatrixMode&&"small"==l.settings.matrix.rateSize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ratingRootCss",{get:function(){var e=("buttons"==this.displayMode||this.survey&&this.survey.isDesignMode)&&this.cssClasses.rootWrappable?this.cssClasses.rootWrappable:this.cssClasses.root;return(new c.CssClassBuilder).append(e).append(this.cssClasses.itemSmall,this.itemSmallMode&&"labels"!=this.rateType).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIcon",{get:function(){return this.itemSmallMode?"icon-rating-star-small":"icon-rating-star"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIconAlt",{get:function(){return this.itemStarIcon+"-2"},enumerable:!1,configurable:!0}),t.prototype.getItemSmiley=function(e){var t=this.useRateValues()?this.rateValues.length:this.rateMax-this.rateMin+1,r=["very-good","not-good","normal","good","average","excellent","poor","perfect","very-poor","terrible"].slice(0,t),n=["terrible","very-poor","poor","not-good","average","normal","good","very-good","excellent","perfect"].filter((function(e){return-1!=r.indexOf(e)}));return this.useRateValues()?n[this.rateValues.indexOf(e)]:n[e.value-this.rateMin]},t.prototype.getItemSmileyIconName=function(e){return"icon-"+this.getItemSmiley(e)},t.prototype.getItemClassByText=function(e,t){return this.getItemClass(e)},t.prototype.getRenderedItemColor=function(e,r){var n=r?t.badColorLight:t.badColor,o=r?t.goodColorLight:t.goodColor,i=(this.rateCount-1)/2,s=r?t.normalColorLight:t.normalColor;if(e<i?o=s:(n=s,e-=i),!n||!o)return null;for(var a=[0,0,0,0],l=0;l<4;l++)a[l]=n[l]+(o[l]-n[l])*e/i,l<3&&(a[l]=Math.trunc(a[l]));return"rgba("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+")"},t.prototype.getItemStyle=function(e,t){if(void 0===t&&(t="none"),"monochrome"===this.scaleColorMode&&"default"==this.rateColorMode)return{borderColor:null,fill:null,backgroundColor:null};var r=this.visibleRateValues.indexOf(e),n=this.getRenderedItemColor(r,!1);if(this.value!=this.renderedRateItems[r].value){var o=this.getRenderedItemColor(r,!0);return"highlighted"==t&&"colored"===this.scaleColorMode?{borderColor:n,fill:n,backgroundColor:o}:"colored"===this.scaleColorMode&&0==this.errors.length?{borderColor:n,fill:n,backgroundColor:null}:{borderColor:null,fill:null,backgroundColor:null}}return{borderColor:n,fill:null,backgroundColor:n}},t.prototype.getItemClass=function(e,t){var r=this;void 0===t&&(t="none");var n=this.value==e.value;this.isStar&&(n=this.useRateValues()?this.rateValues.indexOf(this.rateValues.filter((function(e){return e.value==r.value}))[0])>=this.rateValues.indexOf(e):this.value>=e.value);var o=!(this.isReadOnly||!e.isEnabled||this.value==e.value||this.survey&&this.survey.isDesignMode),i=this.renderedRateItems.filter((function(t){return t.itemValue==e}))[0],s=this.isStar&&"highlighted"==(null==i?void 0:i.highlight),a=this.isStar&&"unhighlighted"==(null==i?void 0:i.highlight),l=this.cssClasses.item,u=this.cssClasses.selected,p=this.cssClasses.itemDisabled,d=this.cssClasses.itemHover,h=this.cssClasses.itemOnError,f=null,m=null,g=null,b=null,y=null;this.isStar&&(l=this.cssClasses.itemStar,u=this.cssClasses.itemStarSelected,p=this.cssClasses.itemStarDisabled,d=this.cssClasses.itemStarHover,h=this.cssClasses.itemStarOnError,f=this.cssClasses.itemStarHighlighted,m=this.cssClasses.itemStarUnhighlighted,y=this.cssClasses.itemStarSmall),this.isSmiley&&(l=this.cssClasses.itemSmiley,u=this.cssClasses.itemSmileySelected,p=this.cssClasses.itemSmileyDisabled,d=this.cssClasses.itemSmileyHover,h=this.cssClasses.itemSmileyOnError,f=this.cssClasses.itemSmileyHighlighted,g=this.cssClasses.itemSmileyScaleColored,b=this.cssClasses.itemSmileyRateColored,y=this.cssClasses.itemSmileySmall);var v=!this.isStar&&!this.isSmiley&&(!this.displayRateDescriptionsAsExtremeItems||this.useRateValues()&&e!=this.rateValues[0]&&e!=this.rateValues[this.rateValues.length-1]||!this.useRateValues()&&e.value!=this.rateMin&&e.value!=this.rateMax)&&e.locText.calculatedText.length<=2&&Number.isInteger(Number(e.locText.calculatedText));return(new c.CssClassBuilder).append(l).append(u,n).append(p,this.isReadOnly).append(d,o).append(f,s).append(g,"colored"==this.scaleColorMode).append(b,"scale"==this.rateColorMode&&n).append(m,a).append(h,this.errors.length>0).append(y,this.itemSmallMode).append(this.cssClasses.itemFixedSize,v).toString()},t.prototype.getControlClass=function(){return this.isEmpty(),(new c.CssClassBuilder).append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).toString()},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("ratingOptionsCaption")},set:function(e){this.setLocalizableStringText("ratingOptionsCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("ratingOptionsCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchEnabled",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){return e.value==this.value},Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.visibleRateValues},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.displayValue||this.placeholder},enumerable:!1,configurable:!0}),t.prototype.needResponsiveWidth=function(){this.getPropertyValue("rateValues");var e=this.getPropertyValue("rateStep"),t=this.getPropertyValue("rateMax"),r=this.getPropertyValue("rateMin");return"dropdown"!=this.displayMode&&!!(this.hasMinRateDescription||this.hasMaxRateDescription||e&&(t-r)/e>9)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getCompactRenderAs=function(){return"buttons"==this.displayMode?"default":"dropdown"},t.prototype.getDesktopRenderAs=function(){return"dropdown"==this.displayMode?"dropdown":"default"},Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){var e,t=null===(e=this.dropdownListModel)||void 0===e?void 0:e.popupModel;return t?t.isVisible?"true":"false":null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e,this.updateElementCss()},enumerable:!1,configurable:!0}),t.prototype.updateCssClasses=function(t,r){if(e.prototype.updateCssClasses.call(this,t,r),this.dropdownListModel){var n={};Object(d.mergeValues)(r.list,n),Object(d.mergeValues)(t.list,n),t.list=n}},t.prototype.calcCssClasses=function(t){var r=e.prototype.calcCssClasses.call(this,t);return this.dropdownListModel&&this.dropdownListModel.updateCssClasses(r.popup,r.list),r},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&this.dropdownListModelValue.dispose()},f([Object(s.property)({defaultValue:!0})],t.prototype,"autoGenerate",void 0),f([Object(s.property)({defaultValue:5})],t.prototype,"rateCount",void 0),f([Object(s.propertyArray)()],t.prototype,"renderedRateItems",void 0),f([Object(s.property)({defaultValue:!1})],t.prototype,"hasMinRateDescription",void 0),f([Object(s.property)({defaultValue:!1})],t.prototype,"hasMaxRateDescription",void 0),f([Object(s.property)({defaultValue:!1})],t.prototype,"displayRateDescriptionsAsExtremeItems",void 0),f([Object(s.property)({defaultValue:"auto",onSet:function(e,t){t.isDesignMode||(t.renderAs="dropdown"===e?"dropdown":"default")}})],t.prototype,"displayMode",void 0),f([Object(s.property)({defaultValue:"labels"})],t.prototype,"rateType",void 0),f([Object(s.property)({defaultValue:"monochrome"})],t.prototype,"scaleColorMode",void 0),f([Object(s.property)({defaultValue:"scale"})],t.prototype,"rateColorMode",void 0),t}(i.Question);s.Serializer.addClass("rating",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"rateType",alternativeName:"rateDisplayMode",default:"labels",category:"rateValues",choices:["labels","stars","smileys"],visibleIndex:0},{name:"scaleColorMode",category:"rateValues",default:"monochrome",choices:["monochrome","colored"],visibleIf:function(e){return"smileys"==e.rateDisplayMode},visibleIndex:1},{name:"rateColorMode",category:"rateValues",default:"scale",choices:["default","scale"],visibleIf:function(e){return"smileys"==e.rateDisplayMode&&"monochrome"==e.scaleColorMode},visibleIndex:2},{name:"autoGenerate",category:"rateValues",default:!0,choices:[!0,!1],visibleIndex:4},{name:"rateCount:number",default:5,category:"rateValues",visibleIndex:3,onSettingValue:function(e,t){return t<2?2:t>l.settings.ratingMaximumRateValueCount&&t>e.rateValues.length?l.settings.ratingMaximumRateValueCount:t>10&&"smileys"==e.rateDisplayMode?10:t}},{name:"rateValues:itemvalue[]",baseValue:function(){return u.surveyLocalization.getString("choices_Item")},category:"rateValues",visibleIf:function(e){return!e.autoGenerate},visibleIndex:5},{name:"rateMin:number",default:1,onSettingValue:function(e,t){return t>e.rateMax-e.rateStep?e.rateMax-e.rateStep:t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:6},{name:"rateMax:number",default:5,onSettingValue:function(e,t){return t<e.rateMin+e.rateStep?e.rateMin+e.rateStep:t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:7},{name:"rateStep:number",default:1,minValue:.1,onSettingValue:function(e,t){return t<=0&&(t=1),t>e.rateMax-e.rateMin&&(t=e.rateMax-e.rateMin),t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:8},{name:"minRateDescription",alternativeName:"mininumRateDescription",serializationProperty:"locMinRateDescription",visibleIndex:17},{name:"maxRateDescription",alternativeName:"maximumRateDescription",serializationProperty:"locMaxRateDescription",visibleIndex:18},{name:"displayRateDescriptionsAsExtremeItems:boolean",default:!1,visibleIndex:19,visibleIf:function(e){return"labels"==e.rateType}},{name:"displayMode",default:"auto",choices:["auto","buttons","dropdown"],visibleIndex:20}],(function(){return new g("")}),"question"),a.QuestionFactory.Instance.registerQuestion("rating",(function(e){return new g(e)}))},"./src/question_signaturepad.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionSignaturePadModel",(function(){return p}));var n,o=r("./src/jsonobject.ts"),i=r("./src/questionfactory.ts"),s=r("./src/question.ts"),a=r("./node_modules/signature_pad/dist/signature_pad.mjs"),l=r("./src/utils/cssClassBuilder.ts"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},p=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getCssRoot=function(t){return(new l.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(t.small,"300"===this.signatureWidth.toString()).toString()},t.prototype.updateValue=function(){if(this.signaturePad){var e=this.signaturePad.toDataURL(this.dataFormat);this.value=e}},t.prototype.getType=function(){return"signaturepad"},t.prototype.afterRenderQuestionElement=function(t){t&&this.initSignaturePad(t),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(e){e&&this.destroySignaturePad(e)},t.prototype.initSignaturePad=function(e){var t=this,r=e.getElementsByTagName("canvas")[0],n=new a.default(r,{backgroundColor:"#ffffff"});this.isInputReadOnly&&n.off(),this.readOnlyChangedCallback=function(){t.isInputReadOnly?n.off():n.on()},n.penColor=this.penColor,n.backgroundColor=this.backgroundColor,n.onBegin=function(){t.isDrawingValue=!0,r.focus()},n.onEnd=function(){t.isDrawingValue=!1,t.updateValue()};var o=function(){var e=t.value;r.width=t.signatureWidth||300,r.height=t.signatureHeight||200,function(e){var t=e.getContext("2d"),r=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),n=e.width,o=e.height;e.width=n*r,e.height=o*r,e.style.width=n+"px",e.style.height=o+"px",t.scale(r,r)}(r),e?n.fromDataURL(e):n.clear()};o(),this.readOnlyChangedCallback(),this.signaturePad=n;var i=function(e,t){"signatureWidth"!==t.name&&"signatureHeight"!==t.name&&"value"!==t.name||o()};this.onPropertyChanged.add(i),this.signaturePad.propertyChangedHandler=i},t.prototype.destroySignaturePad=function(e){this.signaturePad&&(this.onPropertyChanged.remove(this.signaturePad.propertyChangedHandler),this.signaturePad.off()),this.readOnlyChangedCallback=null,this.signaturePad=null},Object.defineProperty(t.prototype,"signatureWidth",{get:function(){return this.getPropertyValue("signatureWidth")},set:function(e){this.setPropertyValue("signatureWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"signatureHeight",{get:function(){return this.getPropertyValue("signatureHeight")},set:function(e){this.setPropertyValue("signatureHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.getPropertyValue("height")},set:function(e){this.setPropertyValue("height",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return this.getPropertyValue("allowClear")},set:function(e){this.setPropertyValue("allowClear",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){return!this.isInputReadOnly&&this.allowClear},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"penColor",{get:function(){return this.getPropertyValue("penColor")},set:function(e){this.setPropertyValue("penColor",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this.getPropertyValue("backgroundColor")},set:function(e){this.setPropertyValue("backgroundColor",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.needShowPlaceholder=function(){return!this.isDrawingValue&&this.isEmpty()},Object.defineProperty(t.prototype,"placeHolderText",{get:function(){return this.getLocalizationString("signaturePlaceHolder")},enumerable:!1,configurable:!0}),t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),300===this.signatureWidth&&this.width&&"number"==typeof this.width&&this.width&&(console.warn("Use signatureWidth property to set width for the signature pad"),this.signatureWidth=this.width,this.width=void 0),200===this.signatureHeight&&this.height&&(console.warn("Use signatureHeight property to set width for the signature pad"),this.signatureHeight=this.height,this.height=void 0)},c([Object(o.property)({defaultValue:!1})],t.prototype,"isDrawingValue",void 0),c([Object(o.property)({defaultValue:""})],t.prototype,"dataFormat",void 0),t}(s.Question);o.Serializer.addClass("signaturepad",[{name:"signatureWidth:number",category:"general",default:300},{name:"signatureHeight:number",category:"general",default:200},{name:"height:number",category:"general",visible:!1},{name:"allowClear:boolean",category:"general",default:!0},{name:"penColor:color",category:"general",default:"#1ab394"},{name:"backgroundColor:color",category:"general",default:"#ffffff"},{name:"dataFormat",category:"general",default:"",choices:[{value:"",text:"PNG"},{value:"image/jpeg",text:"JPEG"},{value:"image/svg+xml",text:"SVG"}]},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1}],(function(){return new p("")}),"question"),i.QuestionFactory.Instance.registerQuestion("signaturepad",(function(e){return new p(e)}))},"./src/question_tagbox.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionTagboxModel",(function(){return h}));var n,o=r("./src/jsonobject.ts"),i=r("./src/questionfactory.ts"),s=r("./src/utils/cssClassBuilder.ts"),a=r("./src/question_checkbox.ts"),l=r("./src/dropdownMultiSelectListModel.ts"),u=r("./src/settings.ts"),c=r("./src/itemvalue.ts"),p=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},h=function(e){function t(t){var r=e.call(this,t)||this;return r.itemDisplayNameMap={},r.onOpened=r.addEvent(),r.createLocalizableString("placeholder",r,!1,!0),r.createLocalizableString("clearCaption",r,!1,!0),r}return p(t,e),t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.displayValue||this.placeholder},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.dropdownListModel||(this.dropdownListModel=new l.DropdownMultiSelectListModel(this))},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"tagbox"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){var e;return null===(e=this.dropdownListModel)||void 0===e?void 0:e.popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){var e=this.popupModel;return e&&e.isVisible?"true":"false"},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return(new s.CssClassBuilder).append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).toString()},t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.hasUnknownValue=function(t,r,n,o){return!this.choicesLazyLoadEnabled&&e.prototype.hasUnknownValue.call(this,t,r,n,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var t,r=null===(t=this.otherValue)||void 0===t?void 0:t.trim();return!!r&&e.prototype.hasUnknownValue.call(this,r,!0,!1)},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.popupModel&&this.dropdownListModel.updateItems()},t.prototype.validateItemValues=function(e){var t=this;this.updateItemDisplayNameMap();var r=this.renderedValue;if(e.length&&e.length===r.length)return e;var n=this.selectedItemValues;if(!e.length&&n&&n.length)return this.defaultSelectedItemValues=[].concat(n),n;var o=e.map((function(e){return e.value}));return r.filter((function(e){return-1===o.indexOf(e)})).forEach((function(r){e.push(new c.ItemValue(r,t.itemDisplayNameMap[r]))})),e.sort((function(e,t){return r.indexOf(e.value)-r.indexOf(t.value)})),e},t.prototype.updateItemDisplayNameMap=function(){var e=this,t=function(t){e.itemDisplayNameMap[t.value]=t.text};(this.defaultSelectedItemValues||[]).forEach(t),(this.selectedItemValues||[]).forEach(t),this.visibleChoices.forEach(t)},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&this.dropdownListModelValue.dispose()},t.prototype.clearValue=function(){e.prototype.clearValue.call(this),this.dropdownListModel.clear()},d([Object(o.property)()],t.prototype,"allowClear",void 0),d([Object(o.property)({defaultValue:!0,onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),d([Object(o.property)({onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setHideSelectedItems(e)}})],t.prototype,"hideSelectedItems",void 0),d([Object(o.property)()],t.prototype,"choicesLazyLoadEnabled",void 0),d([Object(o.property)({defaultValue:25})],t.prototype,"choicesLazyLoadPageSize",void 0),d([Object(o.property)({getDefaultValue:function(){return u.settings.tagboxCloseOnSelect}})],t.prototype,"closeOnSelect",void 0),t}(a.QuestionCheckboxModel);o.Serializer.addClass("tagbox",[{name:"placeholder",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",default:!0},{name:"searchEnabled:boolean",default:!0},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"hideSelectedItems:boolean",default:!1},{name:"closeOnSelect:boolean"},{name:"itemComponent",visible:!1,default:""}],(function(){return new h("")}),"checkbox"),i.QuestionFactory.Instance.registerQuestion("tagbox",(function(e){var t=new h(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_text.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionTextModel",(function(){return h}));var n,o=r("./src/questionfactory.ts"),i=r("./src/jsonobject.ts"),s=r("./src/localizablestring.ts"),a=r("./src/helpers.ts"),l=r("./src/validator.ts"),u=r("./src/error.ts"),c=r("./src/settings.ts"),p=r("./src/question_textbase.ts"),d=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e){function t(t){var r=e.call(this,t)||this;return r._isWaitingForEnter=!1,r.onCompositionUpdate=function(e){r.isInputTextUpdate&&setTimeout((function(){r.updateValueOnEvent(e)}),1),r.updateRemainingCharacterCounter(e.target.value)},r.onKeyUp=function(e){r.isInputTextUpdate?r._isWaitingForEnter&&13!==e.keyCode||(r.updateValueOnEvent(e),r._isWaitingForEnter=!1):13===e.keyCode&&r.updateValueOnEvent(e),r.updateRemainingCharacterCounter(e.target.value)},r.onKeyDown=function(e){r.isInputTextUpdate&&(r._isWaitingForEnter=229===e.keyCode),13===e.keyCode&&r.survey.questionEditFinishCallback(r,e)},r.onChange=function(e){e.target===c.settings.environment.root.activeElement?r.isInputTextUpdate&&r.updateValueOnEvent(e):r.updateValueOnEvent(e),r.updateRemainingCharacterCounter(e.target.value)},r.onBlur=function(e){r.updateValueOnEvent(e),r.updateRemainingCharacterCounter(e.target.value)},r.onFocus=function(e){r.updateRemainingCharacterCounter(e.target.value)},r.createLocalizableString("minErrorText",r,!0,"minError"),r.createLocalizableString("maxErrorText",r,!0,"maxError"),r.locDataListValue=new s.LocalizableStrings(r),r.locDataListValue.onValueChanged=function(e,t){r.propertyValueChanged("dataList",e,t)},r.registerPropertyChangedHandlers(["min","max","inputType","minValueExpression","maxValueExpression"],(function(){r.setRenderedMinMax()})),r.registerPropertyChangedHandlers(["inputType","size"],(function(){r.updateInputSize(),r.calcRenderedPlaceholder()})),r}return d(t,e),t.prototype.isTextValue=function(){return["text","number","password"].indexOf(this.inputType)>-1},t.prototype.getType=function(){return"text"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.setRenderedMinMax(),this.updateInputSize()},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType")},set:function(e){"datetime_local"!==(e=e.toLowerCase())&&"datetime"!==e||(e="datetime-local"),this.setPropertyValue("inputType",e.toLowerCase()),this.isLoadingFromJson||(this.min=void 0,this.max=void 0,this.step=void 0)},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),(this.minValueExpression||this.maxValueExpression)&&this.setRenderedMinMax(t,r)},t.prototype.getValidators=function(){var t=e.prototype.getValidators.call(this);return"email"!==this.inputType||this.validators.some((function(e){return"emailvalidator"===e.getType()}))||t.push(new l.EmailValidator),t},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"size",{get:function(){return this.getPropertyValue("size")},set:function(e){this.setPropertyValue("size",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTextInput",{get:function(){return["text","search","tel","url","email","password"].indexOf(this.inputType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputSize",{get:function(){return this.getPropertyValue("inputSize",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputSize",{get:function(){return this.getPropertyValue("inputSize")||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputWidth",{get:function(){return this.getPropertyValue("inputWidth")},enumerable:!1,configurable:!0}),t.prototype.updateInputSize=function(){var e=this.isTextInput&&this.size>0?this.size:0;this.isTextInput&&e<1&&this.parent&&this.parent.itemSize&&(e=this.parent.itemSize),this.setPropertyValue("inputSize",e),this.setPropertyValue("inputWidth",e>0?"auto":"")},Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete",null)},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.getPropertyValue("min")},set:function(e){this.isValueExpression(e)?this.minValueExpression=e.substring(1):this.setPropertyValue("min",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.getPropertyValue("max")},set:function(e){this.isValueExpression(e)?this.maxValueExpression=e.substring(1):this.setPropertyValue("max",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minValueExpression",{get:function(){return this.getPropertyValue("minValueExpression","")},set:function(e){this.setPropertyValue("minValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValueExpression",{get:function(){return this.getPropertyValue("maxValueExpression","")},set:function(e){this.setPropertyValue("maxValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMin",{get:function(){return this.getPropertyValue("renderedMin")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMax",{get:function(){return this.getPropertyValue("renderedMax")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minErrorText",{get:function(){return this.getLocalizableStringText("minErrorText")},set:function(e){this.setLocalizableStringText("minErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinErrorText",{get:function(){return this.getLocalizableString("minErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxErrorText",{get:function(){return this.getLocalizableStringText("maxErrorText")},set:function(e){this.setLocalizableStringText("maxErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxErrorText",{get:function(){return this.getLocalizableString("maxErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMinMaxType",{get:function(){return m(this)},enumerable:!1,configurable:!0}),t.prototype.onCheckForErrors=function(t,r){var n=this;if(e.prototype.onCheckForErrors.call(this,t,r),!r){if(this.isValueLessMin){var o=new u.CustomError(this.getMinMaxErrorText(this.minErrorText,this.getCalculatedMinMax(this.renderedMin)),this);o.onUpdateErrorTextCallback=function(e){e.text=n.getMinMaxErrorText(n.minErrorText,n.getCalculatedMinMax(n.renderedMin))},t.push(o)}if(this.isValueGreaterMax){var i=new u.CustomError(this.getMinMaxErrorText(this.maxErrorText,this.getCalculatedMinMax(this.renderedMax)),this);i.onUpdateErrorTextCallback=function(e){e.text=n.getMinMaxErrorText(n.maxErrorText,n.getCalculatedMinMax(n.renderedMax))},t.push(i)}}},t.prototype.canSetValueToSurvey=function(){if(!this.isMinMaxType)return!0;var e=!this.isValueLessMin&&!this.isValueGreaterMax;return"number"===this.inputType&&this.survey&&(this.survey.isValidateOnValueChanging||this.survey.isValidateOnValueChanged)&&this.hasErrors(),e},t.prototype.convertFuncValuetoQuestionValue=function(e){return a.Helpers.convertValToQuestionVal(e,this.inputType)},t.prototype.getMinMaxErrorText=function(e,t){if(a.Helpers.isValueEmpty(t))return e;var r=t.toString();return"date"===this.inputType&&t.toDateString&&(r=t.toDateString()),e.replace("{0}",r)},Object.defineProperty(t.prototype,"isValueLessMin",{get:function(){return!this.isValueEmpty(this.renderedMin)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)<this.getCalculatedMinMax(this.renderedMin)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueGreaterMax",{get:function(){return!this.isValueEmpty(this.renderedMax)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)>this.getCalculatedMinMax(this.renderedMax)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDateInputType",{get:function(){return"date"===this.inputType||"datetime-local"===this.inputType},enumerable:!1,configurable:!0}),t.prototype.getCalculatedMinMax=function(e){return this.isValueEmpty(e)?e:this.isDateInputType?new Date(e):e},t.prototype.setRenderedMinMax=function(e,t){var r=this;void 0===e&&(e=null),void 0===t&&(t=null),this.minValueRunner=this.getDefaultRunner(this.minValueRunner,this.minValueExpression),this.setValueAndRunExpression(this.minValueRunner,this.min,(function(e){!e&&r.isDateInputType&&c.settings.minDate&&(e=c.settings.minDate),r.setPropertyValue("renderedMin",e)}),e,t),this.maxValueRunner=this.getDefaultRunner(this.maxValueRunner,this.maxValueExpression),this.setValueAndRunExpression(this.maxValueRunner,this.max,(function(e){!e&&r.isDateInputType&&(e=c.settings.maxDate?c.settings.maxDate:"2999-12-31"),r.setPropertyValue("renderedMax",e)}),e,t)},Object.defineProperty(t.prototype,"step",{get:function(){return this.getPropertyValue("step")},set:function(e){this.setPropertyValue("step",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStep",{get:function(){return this.isValueEmpty(this.step)?"number"!==this.inputType?void 0:"any":this.step},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return["date","datetime-local"].indexOf(this.inputType)<0},t.prototype.supportGoNextPageError=function(){return["date","datetime-local"].indexOf(this.inputType)<0},Object.defineProperty(t.prototype,"dataList",{get:function(){return this.locDataList.value},set:function(e){this.locDataList.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDataList",{get:function(){return this.locDataListValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataListId",{get:function(){return this.locDataList.hasValue()?this.id+"_datalist":void 0},enumerable:!1,configurable:!0}),t.prototype.canRunValidators=function(e){return this.errors.length>0||!e||this.supportGoNextPageError()},t.prototype.setNewValue=function(t){t=this.correctValueType(t),e.prototype.setNewValue.call(this,t)},t.prototype.correctValueType=function(e){return!e||"number"!=this.inputType&&"range"!=this.inputType?e:a.Helpers.isNumber(e)?a.Helpers.getNumber(e):""},t.prototype.hasPlaceHolder=function(){return!this.isReadOnly&&"range"!==this.inputType},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&"div"===c.settings.readOnlyTextRenderMode},Object.defineProperty(t.prototype,"inputStyle",{get:function(){var e={};return e.width=this.inputWidth,e},enumerable:!1,configurable:!0}),t.prototype.updateValueOnEvent=function(e){var t=e.target.value;a.Helpers.isTwoValueEquals(this.value,t)||(this.value=t)},t}(p.QuestionTextBase),f=["number","range","date","datetime-local","month","time","week"];function m(e){var t=e?e.inputType:"";return!!t&&f.indexOf(t)>-1}function g(e,t){var r=e.split(t);return 2!==r.length?-1:a.Helpers.isNumber(r[0])&&a.Helpers.isNumber(r[1])?60*parseFloat(r[0])+parseFloat(r[1]):-1}function b(e,t,r,n){var o=n?r:t;if(!m(e))return o;if(a.Helpers.isValueEmpty(t)||a.Helpers.isValueEmpty(r))return o;if(0===e.inputType.indexOf("date")||"month"===e.inputType){var i="month"===e.inputType,s=new Date(i?t+"-1":t),l=new Date(i?r+"-1":r);if(!s||!l)return o;if(s>l)return n?t:r}if("week"===e.inputType||"time"===e.inputType)return function(e,t,r){var n=g(e,r),o=g(t,r);return!(n<0||o<0)&&n>o}(t,r,"week"===e.inputType?"-W":":")?n?t:r:o;if("number"===e.inputType){if(!a.Helpers.isNumber(t)||!a.Helpers.isNumber(r))return o;if(a.Helpers.getNumber(t)>a.Helpers.getNumber(r))return n?t:r}return"string"==typeof t||"string"==typeof r?o:t>r?n?t:r:o}function y(e,t){e&&e.inputType&&(t.inputType="range"!==e.inputType?e.inputType:"number",t.textUpdateMode="onBlur")}i.Serializer.addClass("text",[{name:"inputType",default:"text",choices:c.settings.questions.inputTypes},{name:"size:number",minValue:0,dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"],dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"autocomplete",alternativeName:"autoComplete",choices:c.settings.questions.dataList},{name:"min",dependsOn:"inputType",visibleIf:function(e){return m(e)},onPropertyEditorUpdate:function(e,t){y(e,t)},onSettingValue:function(e,t){return b(e,t,e.max,!1)}},{name:"max",dependsOn:"inputType",nextToProperty:"*min",visibleIf:function(e){return m(e)},onSettingValue:function(e,t){return b(e,e.min,t,!0)},onPropertyEditorUpdate:function(e,t){y(e,t)}},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return m(e)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return m(e)}},{name:"minErrorText",serializationProperty:"locMinErrorText",dependsOn:"inputType",visibleIf:function(e){return m(e)}},{name:"maxErrorText",serializationProperty:"locMaxErrorText",dependsOn:"inputType",visibleIf:function(e){return m(e)}},{name:"step:number",dependsOn:"inputType",visibleIf:function(e){return!!e&&("number"===e.inputType||"range"===e.inputType)}},{name:"maxLength:number",default:-1,dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder",dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"dataList:string[]",serializationProperty:"locDataList",dependsOn:"inputType",visibleIf:function(e){return!!e&&"text"===e.inputType}}],(function(){return new h("")}),"textbase"),o.QuestionFactory.Instance.registerQuestion("text",(function(e){return new h(e)}))},"./src/question_textbase.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"CharacterCounter",(function(){return p})),r.d(t,"QuestionTextBase",(function(){return d}));var n,o=r("./src/question.ts"),i=r("./src/jsonobject.ts"),s=r("./src/helpers.ts"),a=r("./src/utils/cssClassBuilder.ts"),l=r("./src/base.ts"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.updateRemainingCharacterCounter=function(e,t){this.remainingCharacterCounter=s.Helpers.getRemainingCharacterCounterText(e,t)},c([Object(i.property)()],t.prototype,"remainingCharacterCounter",void 0),t}(l.Base),d=function(e){function t(t){var r=e.call(this,t)||this;return r.characterCounter=new p,r}return u(t,e),t.prototype.isTextValue=function(){return!0},Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e),this.updateRemainingCharacterCounter(this.value)},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){return s.Helpers.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},t.prototype.updateRemainingCharacterCounter=function(e){this.characterCounter.updateRemainingCharacterCounter(e,this.getMaxLength())},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"textbase"},t.prototype.isEmpty=function(){return e.prototype.isEmpty.call(this)||""===this.value},Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSurveyInputTextUpdate",{get:function(){return"default"==this.textUpdateMode?!!this.survey&&this.survey.isUpdateValueTextOnTyping:"onTyping"==this.textUpdateMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedPlaceholder",{get:function(){return this.getPropertyValue("renderedPlaceholder")},enumerable:!1,configurable:!0}),t.prototype.setRenderedPlaceholder=function(e){this.setPropertyValue("renderedPlaceholder",e)},t.prototype.onReadOnlyChanged=function(){e.prototype.onReadOnlyChanged.call(this),this.calcRenderedPlaceholder()},t.prototype.onSurveyLoad=function(){this.calcRenderedPlaceholder(),e.prototype.onSurveyLoad.call(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.calcRenderedPlaceholder()},t.prototype.calcRenderedPlaceholder=function(){var e=this.placeHolder;e&&!this.hasPlaceHolder()&&(e=void 0),this.setRenderedPlaceholder(e)},t.prototype.hasPlaceHolder=function(){return!this.isReadOnly},t.prototype.setNewValue=function(t){e.prototype.setNewValue.call(this,t),this.updateRemainingCharacterCounter(t)},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),e.prototype.setQuestionValue.call(this,t,r),this.updateRemainingCharacterCounter(t)},t.prototype.getControlClass=function(){return(new a.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).toString()},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaInvalid",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabelledBy",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescribedBy",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"textbox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRequired",{get:function(){return this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaInvalid",{get:function(){return this.errors.length>0?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabel",{get:function(){return this.hasTitle?null:this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabelledBy",{get:function(){return this.hasTitle?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaDescribedBy",{get:function(){return this.errors.length>0?this.id+"_errors":null},enumerable:!1,configurable:!0}),c([Object(i.property)({localizable:!0,onSet:function(e,t){return t.calcRenderedPlaceholder()}})],t.prototype,"placeholder",void 0),t}(o.Question);i.Serializer.addClass("textbase",[],(function(){return new d("")}),"question")},"./src/questionfactory.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionFactory",(function(){return i})),r.d(t,"ElementFactory",(function(){return s}));var n=r("./src/surveyStrings.ts"),o=r("./src/jsonobject.ts"),i=function(){function e(){}return Object.defineProperty(e,"DefaultChoices",{get:function(){return[n.surveyLocalization.getString("choices_Item")+"1",n.surveyLocalization.getString("choices_Item")+"2",n.surveyLocalization.getString("choices_Item")+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultColums",{get:function(){var e=n.surveyLocalization.getString("matrix_column")+" ";return[e+"1",e+"2",e+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultRows",{get:function(){var e=n.surveyLocalization.getString("matrix_row")+" ";return[e+"1",e+"2"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultMutlipleTextItems",{get:function(){var e=n.surveyLocalization.getString("multipletext_itemname");return[e+"1",e+"2"]},enumerable:!1,configurable:!0}),e.prototype.registerQuestion=function(e,t){s.Instance.registerElement(e,t)},e.prototype.registerCustomQuestion=function(e){s.Instance.registerCustomQuestion(e)},e.prototype.unregisterElement=function(e,t){void 0===t&&(t=!1),s.Instance.unregisterElement(e,t)},e.prototype.clear=function(){s.Instance.clear()},e.prototype.getAllTypes=function(){return s.Instance.getAllTypes()},e.prototype.createQuestion=function(e,t){return s.Instance.createElement(e,t)},e.Instance=new e,e}(),s=function(){function e(){var e=this;this.creatorHash={},this.registerCustomQuestion=function(t){e.registerElement(t,(function(e){var r=o.Serializer.createClass(t);return r&&(r.name=e),r}))}}return e.prototype.registerElement=function(e,t){this.creatorHash[e]=t},e.prototype.clear=function(){this.creatorHash={}},e.prototype.unregisterElement=function(e,t){void 0===t&&(t=!1),delete this.creatorHash[e],t&&o.Serializer.removeClass(e)},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createElement=function(e,t){var r=this.creatorHash[e];return r?r(t):null},e.Instance=new e,e}()},"./src/questionnonvalue.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionNonValue",(function(){return a}));var n,o=r("./src/question.ts"),i=r("./src/jsonobject.ts"),s=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.getType=function(){return"nonvalue"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getTitleLocation=function(){return""},Object.defineProperty(t.prototype,"hasComment",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=null),!1},t.prototype.getAllErrors=function(){return[]},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.addConditionObjectsByContext=function(e,t){},t.prototype.getConditionJson=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=null),null},t}(o.Question);i.Serializer.addClass("nonvalue",[{name:"title",visible:!1},{name:"description",visible:!1},{name:"valueName",visible:!1},{name:"enableIf",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"clearIfInvisible",visible:!1},{name:"isRequired",visible:!1,isSerializable:!1},{name:"requiredErrorText",visible:!1},{name:"readOnly",visible:!1},{name:"requiredIf",visible:!1},{name:"validators",visible:!1},{name:"titleLocation",visible:!1},{name:"showCommentArea",visible:!1},{name:"useDisplayValuesInDynamicTexts",alternativeName:"useDisplayValuesInTitle",visible:!1}],(function(){return new a("")}),"question")},"./src/rendererFactory.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"RendererFactory",(function(){return n}));var n=function(){function e(){this.renderersHash={}}return e.prototype.unregisterRenderer=function(e,t){delete this.renderersHash[e][t]},e.prototype.registerRenderer=function(e,t,r){this.renderersHash[e]||(this.renderersHash[e]={}),this.renderersHash[e][t]=r},e.prototype.getRenderer=function(e,t){return this.renderersHash[e]&&this.renderersHash[e][t]||"default"},e.prototype.getRendererByQuestion=function(e){return this.getRenderer(e.getType(),e.renderAs)},e.prototype.clear=function(){this.renderersHash={}},e.Instance=new e,e}()},"./src/settings.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return o}));var n=globalThis.document,o={enterKeyAction:"default",comparator:{trimStrings:!0,caseSensitive:!1},expressionDisableConversionChar:"#",useLocalTimeZone:!0,get commentPrefix(){return o.commentSuffix},set commentPrefix(e){o.commentSuffix=e},commentSuffix:"-Comment",webserviceEncodeParameters:!0,useCachingForChoicesRestful:!0,get useCachingForChoicesRestfull(){return o.useCachingForChoicesRestful},set useCachingForChoicesRestfull(e){o.useCachingForChoicesRestful=e},surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey",itemValueSeparator:"|",itemValueAlwaysSerializeAsObject:!1,itemValueAlwaysSerializeText:!1,defaultLocaleName:"default",storeDuplicatedTranslations:!1,matrixDefaultRowName:"default",matrixDefaultCellType:"dropdown",matrixTotalValuePostFix:"-total",matrixMaximumRowCount:1e3,matrixMaxRowCountInCondition:1,panelDynamicMaxPanelCountInCondition:1,matrixRenderRemoveAsIcon:!0,panelMaximumPanelCount:100,ratingMaximumRateValueCount:20,tagboxCloseOnSelect:!1,disableOnGettingChoicesFromWeb:!1,serializeLocalizableStringAsObject:!1,allowShowEmptyTitleInDesignMode:!0,allowShowEmptyDescriptionInDesignMode:!0,executeCompleteTriggerOnValueChanged:!1,changeNavigationButtonsOnCompleteTrigger:!0,executeSkipTriggerOnValueChanged:!0,readOnlyCommentRenderMode:"textarea",readOnlyTextRenderMode:"input",confirmActionFunc:function(e){return confirm(e)},minWidth:"300px",maxWidth:"100%",maximumConditionRunCountOnValueChanged:10,setQuestionVisibleIndexForHiddenTitle:!1,setQuestionVisibleIndexForHiddenNumber:!1,lazyRowsRendering:!1,lazyRowsRenderingStartRow:3,notifications:{lifetime:2e3},showItemsInOrder:"default",noneItemValue:"none",supportedValidators:{question:["expression"],comment:["text","regex"],text:["numeric","text","regex","email"],checkbox:["answercount"],imagepicker:["answercount"]},minDate:"",maxDate:"",showModal:void 0,supportCreatorV2:!1,showDefaultItemsInCreatorV2:!0,customIcons:{},rankingDragHandleArea:"entireItem",environment:n?{root:n,_rootElement:n.body,get rootElement(){var e;return null!==(e=this._rootElement)&&void 0!==e?e:n.body},set rootElement(e){this._rootElement=e},_popupMountContainer:n.body,get popupMountContainer(){var e;return null!==(e=this._popupMountContainer)&&void 0!==e?e:n.body},set popupMountContainer(e){this._popupMountContainer=e},svgMountContainer:n.head,stylesSheetsMountContainer:n.head}:void 0,titleTags:{survey:"h3",page:"h4",panel:"h4",question:"h5"},questions:{inputTypes:["color","date","datetime-local","email","month","number","password","range","tel","text","time","url","week"],dataList:["","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","organization-title","username","new-password","current-password","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"]},matrix:{columnWidthsByType:{file:{minWidth:"240px"},comment:{minWidth:"200px"}},rateSize:"small"}}},"./src/stylesmanager.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"modernThemeColors",(function(){return s})),r.d(t,"defaultThemeColors",(function(){return a})),r.d(t,"orangeThemeColors",(function(){return l})),r.d(t,"darkblueThemeColors",(function(){return u})),r.d(t,"darkroseThemeColors",(function(){return c})),r.d(t,"stoneThemeColors",(function(){return p})),r.d(t,"winterThemeColors",(function(){return d})),r.d(t,"winterstoneThemeColors",(function(){return h})),r.d(t,"StylesManager",(function(){return f}));var n=r("./src/defaultCss/defaultV2Css.ts"),o=r("./src/settings.ts"),i=r("./src/utils/utils.ts"),s={"$main-color":"#1ab394","$add-button-color":"#1948b3","$remove-button-color":"#ff1800","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-slider-color":"#cfcfcf","$error-color":"#d52901","$text-color":"#404040","$light-text-color":"#fff","$checkmark-color":"#fff","$progress-buttons-color":"#8dd9ca","$inputs-background-color":"transparent","$main-hover-color":"#9f9f9f","$body-container-background-color":"#f4f4f4","$text-border-color":"#d4d4d4","$disabled-text-color":"rgba(64, 64, 64, 0.5)","$border-color":"rgb(64, 64, 64, 0.5)","$header-background-color":"#e7e7e7","$answer-background-color":"rgba(26, 179, 148, 0.2)","$error-background-color":"rgba(213, 41, 1, 0.2)","$radio-checked-color":"#404040","$clean-button-color":"#1948b3","$body-background-color":"#ffffff","$foreground-light":"#909090","$font-family":"Raleway"},a={"$header-background-color":"#e7e7e7","$body-container-background-color":"#f4f4f4","$main-color":"#1ab394","$main-hover-color":"#0aa384","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#6d7072","$text-input-color":"#6d7072","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#8dd9ca","$progress-buttons-line-color":"#d4d4d4"},l={"$header-background-color":"#4a4a4a","$body-container-background-color":"#f8f8f8","$main-color":"#f78119","$main-hover-color":"#e77109","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#f78119","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#f7b781","$progress-buttons-line-color":"#d4d4d4"},u={"$header-background-color":"#d9d8dd","$body-container-background-color":"#f6f7f2","$main-color":"#3c4f6d","$main-hover-color":"#2c3f5d","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#839ec9","$progress-buttons-line-color":"#d4d4d4"},c={"$header-background-color":"#ddd2ce","$body-container-background-color":"#f7efed","$main-color":"#68656e","$main-hover-color":"#58555e","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#c6bed4","$progress-buttons-line-color":"#d4d4d4"},p={"$header-background-color":"#cdccd2","$body-container-background-color":"#efedf4","$main-color":"#0f0f33","$main-hover-color":"#191955","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#0f0f33","$text-input-color":"#0f0f33","$header-color":"#0f0f33","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#747491","$progress-buttons-line-color":"#d4d4d4"},d={"$header-background-color":"#82b8da","$body-container-background-color":"#dae1e7","$main-color":"#3c3b40","$main-hover-color":"#1e1d20","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#d1c9f5","$progress-buttons-line-color":"#d4d4d4"},h={"$header-background-color":"#323232","$body-container-background-color":"#f8f8f8","$main-color":"#5ac8fa","$main-hover-color":"#06a1e7","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#acdcf2","$progress-buttons-line-color":"#d4d4d4"},f=function(){function e(){e.autoApplyTheme()}return e.autoApplyTheme=function(){if("bootstrap"!==n.surveyCss.currentType&&"bootstrapmaterial"!==n.surveyCss.currentType){var t=e.getIncludedThemeCss();1===t.length&&e.applyTheme(t[0].name)}},e.getAvailableThemes=function(){return n.surveyCss.getAvailableThemes().filter((function(e){return-1!==["defaultV2","default","modern"].indexOf(e)})).map((function(e){return{name:e,theme:n.surveyCss[e]}}))},e.getIncludedThemeCss=function(){var t=o.settings.environment.rootElement,r=e.getAvailableThemes(),n=Object(i.isShadowDOM)(t)?t.host:t;if(n){var s=getComputedStyle(n);if(s.length)return r.filter((function(e){return e.theme.variables&&s.getPropertyValue(e.theme.variables.themeMark)}))}return[]},e.findSheet=function(e){if(void 0===o.settings.environment)return null;for(var t=o.settings.environment.root.styleSheets,r=0;r<t.length;r++)if(t[r].ownerNode&&t[r].ownerNode.id===e)return t[r];return null},e.createSheet=function(t){var r=o.settings.environment.stylesSheetsMountContainer,n=document.createElement("style");return n.id=t,n.appendChild(document.createTextNode("")),Object(i.getElement)(r).appendChild(n),e.Logger&&e.Logger.log("style sheet "+t+" created"),n.sheet},e.applyTheme=function(t,r){void 0===t&&(t="default");var s=o.settings.environment.rootElement,a=Object(i.isShadowDOM)(s)?s.host:s;if(n.surveyCss.currentType=t,e.Enabled){if("bootstrap"!==t&&"bootstrapmaterial"!==t)return function(e,t){Object.keys(e||{}).forEach((function(r){var n=r.substring(1);t.style.setProperty("--"+n,e[r])}))}(e.ThemeColors[t],a),void(e.Logger&&e.Logger.log("apply theme "+t+" completed"));var l=e.ThemeCss[t];if(!l)return void(n.surveyCss.currentType="defaultV2");e.insertStylesRulesIntoDocument();var u=r||e.ThemeSelector[t]||e.ThemeSelector.default,c=(t+u).trim(),p=e.findSheet(c);if(!p){p=e.createSheet(c);var d=e.ThemeColors[t]||e.ThemeColors.default;Object.keys(l).forEach((function(e){var t=l[e];Object.keys(d||{}).forEach((function(e){return t=t.replace(new RegExp("\\"+e,"g"),d[e])}));try{0===e.indexOf("body")?p.insertRule(e+" { "+t+" }",0):p.insertRule(u+e+" { "+t+" }",0)}catch(e){}}))}}e.Logger&&e.Logger.log("apply theme "+t+" completed")},e.insertStylesRulesIntoDocument=function(){if(e.Enabled){var t=e.findSheet(e.SurveyJSStylesSheetId);t||(t=e.createSheet(e.SurveyJSStylesSheetId)),Object.keys(e.Styles).length&&Object.keys(e.Styles).forEach((function(r){try{t.insertRule(r+" { "+e.Styles[r]+" }",0)}catch(e){}})),Object.keys(e.Media).length&&Object.keys(e.Media).forEach((function(r){try{t.insertRule(e.Media[r].media+" { "+r+" { "+e.Media[r].style+" } }",0)}catch(e){}}))}},e.SurveyJSStylesSheetId="surveyjs-styles",e.Styles={},e.Media={},e.ThemeColors={modern:s,default:a,orange:l,darkblue:u,darkrose:c,stone:p,winter:d,winterstone:h},e.ThemeCss={},e.ThemeSelector={default:".sv_main ",modern:".sv-root-modern "},e.Enabled=!0,e}()},"./src/survey-element.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyElementCore",(function(){return f})),r.d(t,"DragTypeOverMeEnum",(function(){return o})),r.d(t,"SurveyElement",(function(){return m}));var n,o,i=r("./src/jsonobject.ts"),s=r("./src/base.ts"),a=r("./src/actions/adaptive-container.ts"),l=r("./src/helpers.ts"),u=r("./src/settings.ts"),c=r("./src/actions/container.ts"),p=r("./src/utils/cssClassBuilder.ts"),d=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},f=function(e){function t(){var t=e.call(this)||this;return t.createLocTitleProperty(),t}return d(t,e),t.prototype.createLocTitleProperty=function(){return this.createLocalizableString("title",this,!0)},Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.getDefaultTitleValue())},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){},t.prototype.updateDescriptionVisibility=function(e){this.hasDescription=!!e},Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTagName",{get:function(){var e=this.getDefaultTitleTagName(),t=this.getSurvey();return t?t.getElementTitleTagName(this,e):e},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleTagName=function(){return u.settings.titleTags[this.getType()]},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.title.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return this.hasTitleActions},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return null},t.prototype.getTitleOwner=function(){},Object.defineProperty(t.prototype,"isTitleOwner",{get:function(){return!!this.getTitleOwner()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTitleRenderedAsString",{get:function(){return this.getIsTitleRenderedAsString()},enumerable:!1,configurable:!0}),t.prototype.toggleState=function(){},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitle",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaLabel",{get:function(){return this.ariaLabel},enumerable:!1,configurable:!0}),t.prototype.getIsTitleRenderedAsString=function(){return!this.isTitleOwner},h([Object(i.property)()],t.prototype,"hasDescription",void 0),h([Object(i.property)({localizable:!0,onSet:function(e,t){t.updateDescriptionVisibility(t,e)}})],t.prototype,"description",void 0),t}(s.Base);!function(e){e[e.InsideEmptyPanel=1]="InsideEmptyPanel",e[e.MultilineRight=2]="MultilineRight",e[e.MultilineLeft=3]="MultilineLeft",e[e.Top=4]="Top",e[e.Right=5]="Right",e[e.Bottom=6]="Bottom",e[e.Left=7]="Left"}(o||(o={}));var m=function(e){function t(r){var n=e.call(this)||this;return n.selectedElementInDesignValue=n,n.disableDesignActions=t.CreateDisabledDesignElements,n.parentQuestionValue=null,n.isContentElement=!1,n.isEditableTemplateElement=!1,n.isInteractiveDesignElement=!0,n.isSingleInRow=!0,n.name=r,n.createNewArray("errors"),n.createNewArray("titleActions"),n.registerPropertyChangedHandlers(["isReadOnly"],(function(){n.onReadOnlyChanged()})),n.registerPropertyChangedHandlers(["errors"],(function(){n.updateVisibleErrors()})),n.registerPropertyChangedHandlers(["isSingleInRow"],(function(){n.updateElementCss(!1)})),n}return d(t,e),t.getProgressInfoByElements=function(e,t){for(var r=s.Base.createProgressInfo(),n=0;n<e.length;n++)if(e[n].isVisible){var o=e[n].getProgressInfo();r.questionCount+=o.questionCount,r.answeredQuestionCount+=o.answeredQuestionCount,r.requiredQuestionCount+=o.requiredQuestionCount,r.requiredAnsweredQuestionCount+=o.requiredAnsweredQuestionCount}return t&&r.questionCount>0&&(0==r.requiredQuestionCount&&(r.requiredQuestionCount=1),r.answeredQuestionCount>0&&(r.requiredAnsweredQuestionCount=1)),r},t.ScrollElementToTop=function(e){var t=u.settings.environment.root;if(!e||void 0===t)return!1;var r=t.getElementById(e);if(!r||!r.scrollIntoView)return!1;var n=r.getBoundingClientRect().top;return n<0&&r.scrollIntoView(),n<0},t.GetFirstNonTextElement=function(e,t){if(void 0===t&&(t=!1),!e||!e.length||0==e.length)return null;if(t){var r=e[0];"#text"===r.nodeName&&(r.data=""),"#text"===(r=e[e.length-1]).nodeName&&(r.data="")}for(var n=0;n<e.length;n++)if("#text"!=e[n].nodeName&&"#comment"!=e[n].nodeName)return e[n];return null},t.FocusElement=function(e){if(!e||"undefined"==typeof document)return!1;var r=t.focusElementCore(e);return r||setTimeout((function(){t.focusElementCore(e)}),10),r},t.focusElementCore=function(e){var t=u.settings.environment.root;if(!t)return!1;var r=t.getElementById(e);return!(!r||r.disabled||(r.focus(),0))},t.prototype.onPropertyValueChanged=function(t,r,n){e.prototype.onPropertyValueChanged.call(this,t,r,n),"state"===t&&(this.updateElementCss(!1),this.stateChangedCallback&&this.stateChangedCallback())},t.prototype.getSkeletonComponentNameCore=function(){return this.survey?this.survey.getSkeletonComponentName(this):""},Object.defineProperty(t.prototype,"parentQuestion",{get:function(){return this.parentQuestionValue},enumerable:!1,configurable:!0}),t.prototype.setParentQuestion=function(e){this.parentQuestionValue=e,this.onParentQuestionChanged()},t.prototype.onParentQuestionChanged=function(){},Object.defineProperty(t.prototype,"skeletonComponentName",{get:function(){return this.getSkeletonComponentNameCore()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state")},set:function(e){this.setPropertyValue("state",e),this.notifyStateChanged()},enumerable:!1,configurable:!0}),t.prototype.notifyStateChanged=function(){this.survey&&this.survey.elementContentVisibilityChanged(this)},Object.defineProperty(t.prototype,"isCollapsed",{get:function(){if(!this.isDesignMode)return"collapsed"===this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return"expanded"===this.state},enumerable:!1,configurable:!0}),t.prototype.collapse=function(){this.isDesignMode||(this.state="collapsed")},t.prototype.expand=function(){this.state="expanded"},t.prototype.toggleState=function(){return this.isCollapsed?(this.expand(),!0):!this.isExpanded||(this.collapse(),!1)},Object.defineProperty(t.prototype,"hasStateButton",{get:function(){return this.isExpanded||this.isCollapsed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.title||this.name},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return this.titleToolbarValue||(this.titleToolbarValue=this.createActionContainer(!0),this.titleToolbarValue.containerCss=(this.isPanel?this.cssClasses.panel.titleBar:this.cssClasses.titleBar)||"sv-action-title-bar",this.titleToolbarValue.setItems(this.getTitleActions())),this.titleToolbarValue},t.prototype.createActionContainer=function(e){var t=e?new a.AdaptiveActionContainer:new c.ActionContainer;return this.survey&&this.survey.getCss().actionBar&&(t.cssClasses=this.survey.getCss().actionBar),t},Object.defineProperty(t.prototype,"titleActions",{get:function(){return this.getPropertyValue("titleActions")},enumerable:!1,configurable:!0}),t.prototype.getTitleActions=function(){return this.isTitleActionRequested||(this.updateTitleActions(),this.isTitleActionRequested=!0),this.titleActions},t.prototype.getDefaultTitleActions=function(){return[]},t.prototype.updateTitleActions=function(){var e=this.getDefaultTitleActions();this.survey&&(e=this.survey.getUpdatedElementTitleActions(this,e)),this.setPropertyValue("titleActions",e)},Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return this.getTitleActions().length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return void 0!==this.state&&"default"!==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){return this.isPage||"default"===this.state?void 0:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){if(!this.isPage&&"default"!==this.state)return"expanded"===this.state?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){if(!this.isPage&&"default"!==this.state)return"button"},enumerable:!1,configurable:!0}),t.prototype.setSurveyImpl=function(e,t){this.surveyImplValue=e,this.surveyImplValue?(this.surveyDataValue=this.surveyImplValue.getSurveyData(),this.setSurveyCore(this.surveyImplValue.getSurvey()),this.textProcessorValue=this.surveyImplValue.getTextProcessor(),this.onSetData()):(this.setSurveyCore(null),this.surveyDataValue=null),this.survey&&this.clearCssClasses()},t.prototype.canRunConditions=function(){return e.prototype.canRunConditions.call(this)&&!!this.data},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():null},t.prototype.getDataFilteredProperties=function(){var e=this.data?this.data.getFilteredProperties():{};return e.question=this,e},Object.defineProperty(t.prototype,"surveyImpl",{get:function(){return this.surveyImplValue},enumerable:!1,configurable:!0}),t.prototype.__setData=function(e){u.settings.supportCreatorV2&&(this.surveyDataValue=e)},Object.defineProperty(t.prototype,"data",{get:function(){return this.surveyDataValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.surveyValue||this.surveyImplValue&&this.setSurveyCore(this.surveyImplValue.getSurvey()),this.surveyValue},t.prototype.setSurveyCore=function(e){this.surveyValue=e,this.surveyChangedCallback&&this.surveyChangedCallback()},Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return!!this.survey&&this.survey.areInvisibleElementsShowing&&!this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.getPropertyValue("readOnly",!1)},set:function(e){this.readOnly!=e&&(this.setPropertyValue("readOnly",e),this.isLoadingFromJson||this.setPropertyValue("isReadOnly",this.isReadOnly))},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.readOnlyChangedCallback&&this.readOnlyChangedCallback()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey?this.survey.getCss():{}},enumerable:!1,configurable:!0}),t.prototype.ensureCssClassesValue=function(){this.cssClassesValue||(this.cssClassesValue=this.calcCssClasses(this.css),this.updateElementCssCore(this.cssClassesValue))},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.survey?(this.ensureCssClassesValue(),this.cssClassesValue):this.calcCssClasses(this.css)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){var e=this.cssClasses;return e.number?e.number:e.panel?e.panel.number:void 0},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){},t.prototype.updateElementCssCore=function(e){},Object.defineProperty(t.prototype,"cssError",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.clearCssClasses()},t.prototype.clearCssClasses=function(){this.cssClassesValue=void 0},t.prototype.getIsLoadingFromJson=function(){return!!e.prototype.getIsLoadingFromJson.call(this)||!!this.survey&&this.survey.isLoadingFromJson},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){var t=this.name;this.setPropertyValue("name",this.getValidName(e)),!this.isLoadingFromJson&&t&&this.onNameChanged(t)},enumerable:!1,configurable:!0}),t.prototype.getValidName=function(e){return e},t.prototype.onNameChanged=function(e){},t.prototype.updateBindingValue=function(e,t){this.data&&!this.isTwoValueEquals(t,this.data.getValue(e))&&this.data.setValue(e,t,!1)},Object.defineProperty(t.prototype,"errors",{get:function(){return this.getPropertyValue("errors")},set:function(e){this.setPropertyValue("errors",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisibleErrors=function(){for(var e=0,t=0;t<this.errors.length;t++)this.errors[t].visible&&e++;this.hasVisibleErrors=e>0},Object.defineProperty(t.prototype,"containsErrors",{get:function(){return this.getPropertyValue("containsErrors",!1)},enumerable:!1,configurable:!0}),t.prototype.updateContainsErrors=function(){this.setPropertyValue("containsErrors",this.getContainsErrors())},t.prototype.getContainsErrors=function(){return this.errors.length>0},Object.defineProperty(t.prototype,"selectedElementInDesign",{get:function(){return this.selectedElementInDesignValue},set:function(e){this.selectedElementInDesignValue=e},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidgets=function(){},t.prototype.onSurveyLoad=function(){},t.prototype.onFirstRendering=function(){this.ensureCssClassesValue()},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.survey||this.onSurveyLoad()},t.prototype.setVisibleIndex=function(e){return 0},Object.defineProperty(t.prototype,"isPage",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.delete=function(){},t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.survey?this.survey.getSurveyMarkdownHtml(this,e,t):this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.survey&&"function"==typeof this.survey.getRendererForString?this.survey.getRendererForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRenderer?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.survey&&"function"==typeof this.survey.getRendererContextForString?this.survey.getRendererContextForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRendererContext?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.isLoadingFromJson?e:this.textProcessor?this.textProcessor.processText(e,this.getUseDisplayValuesInDynamicTexts()):this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getUseDisplayValuesInDynamicTexts=function(){return!0},t.prototype.removeSelfFromList=function(e){if(e&&Array.isArray(e)){var t=e.indexOf(this);t>-1&&e.splice(t,1)}},Object.defineProperty(t.prototype,"textProcessor",{get:function(){return this.textProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getProcessedHtml=function(e){return e&&this.textProcessor?this.textProcessor.processText(e,!0):e},t.prototype.onSetData=function(){},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),t.prototype.getPage=function(e){for(;e&&e.parent;)e=e.parent;return e&&"page"==e.getType()?e:null},t.prototype.moveToBase=function(e,t,r){if(void 0===r&&(r=null),!t)return!1;e.removeElement(this);var n=-1;return l.Helpers.isNumber(r)&&(n=parseInt(r)),-1==n&&r&&r.getType&&(n=t.indexOf(r)),t.addElement(this,n),!0},t.prototype.setPage=function(e,t){var r=this.getPage(e);"string"==typeof t&&this.getSurvey().pages.forEach((function(e){t===e.name&&(t=e)})),r!==t&&(e&&e.removeElement(this),t&&t.addElement(this,-1))},t.prototype.getSearchableLocKeys=function(e){e.push("title"),e.push("description")},Object.defineProperty(t.prototype,"isDefaultV2Theme",{get:function(){return this.survey&&"sd-root-modern"==this.survey.getCss().root},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isErrorsModeTooltip",{get:function(){return this.getIsErrorsModeTooltip()},enumerable:!1,configurable:!0}),t.prototype.getIsErrorsModeTooltip=function(){return this.isDefaultV2Theme&&this.hasParent&&this.getIsTooltipErrorSupportedByParent()},t.prototype.getIsTooltipErrorSupportedByParent=function(){var e;return null===(e=this.parent)||void 0===e?void 0:e.getIsTooltipErrorInsideSupported()},t.prototype.getIsTooltipErrorInsideSupported=function(){return!1},Object.defineProperty(t.prototype,"hasParent",{get:function(){return this.parent&&!this.parent.isPage&&(!this.parent.originalPage||this.survey.isShowingPreview)||void 0===this.parent},enumerable:!1,configurable:!0}),t.prototype.shouldAddRunnerStyles=function(){return!this.isDesignMode&&this.isDefaultV2Theme},Object.defineProperty(t.prototype,"isCompact",{get:function(){return this.survey&&this.survey.isCompact},enumerable:!1,configurable:!0}),t.prototype.getHasFrameV2=function(){return this.shouldAddRunnerStyles()&&!this.hasParent&&this.isSingleInRow},t.prototype.getIsNested=function(){return this.shouldAddRunnerStyles()&&(this.hasParent||!this.isSingleInRow)},t.prototype.getCssRoot=function(e){return(new p.CssClassBuilder).append(e.withFrame,this.getHasFrameV2()&&!this.isCompact).append(e.compact,this.isCompact&&this.getHasFrameV2()).append(e.collapsed,!!this.isCollapsed).append(e.expanded,!!this.isExpanded).append(e.nested,this.getIsNested()).toString()},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this.getPropertyValue("maxWidth")},set:function(e){this.setPropertyValue("maxWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth","")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent")},set:function(e){this.setPropertyValue("indent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!1,configurable:!0}),t.prototype.getRootStyle=function(){var e={};return this.paddingLeft&&(e["--sv-element-add-padding-left"]=this.paddingLeft),this.paddingRight&&(e["--sv-element-add-padding-right"]=this.paddingRight),e},Object.defineProperty(t.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddingLeft","")},set:function(e){this.setPropertyValue("paddingLeft",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight","")},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDescriptionVisible",{get:function(){return!!this.description||this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootStyle",{get:function(){var e={};return this.allowRootStyle&&this.renderWidth&&(e.flexGrow=1,e.flexShrink=1,e.flexBasis=this.renderWidth,e.minWidth=this.minWidth,e.maxWidth=this.maxWidth),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clickTitleFunction",{get:function(){var e=this;if(this.needClickTitleFunction())return function(){return e.processTitleClick()}},enumerable:!1,configurable:!0}),t.prototype.needClickTitleFunction=function(){return"default"!==this.state},t.prototype.processTitleClick=function(){"default"!==this.state&&this.toggleState()},Object.defineProperty(t.prototype,"additionalTitleToolbar",{get:function(){return this.getAdditionalTitleToolbar()},enumerable:!1,configurable:!0}),t.prototype.getAdditionalTitleToolbar=function(){return null},t.prototype.getCssTitle=function(e){var t="default"!==this.state;return(new p.CssClassBuilder).append(e.title).append(e.titleNumInline,(this.no||"").length>4||t).append(e.titleExpandable,t).append(e.titleExpanded,this.isExpanded).append(e.titleCollapsed,this.isCollapsed).append(e.titleDisabled,this.isReadOnly).append(e.titleOnError,this.containsErrors).toString()},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.updateDescriptionVisibility(this.description),this.errors.length>0&&this.errors.forEach((function(e){e.updateText()}))},t.CreateDisabledDesignElements=!1,h([Object(i.property)({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),h([Object(i.property)({defaultValue:!1})],t.prototype,"isDragMe",void 0),h([Object(i.property)()],t.prototype,"cssClassesValue",void 0),h([Object(i.property)({defaultValue:!1})],t.prototype,"hasVisibleErrors",void 0),h([Object(i.property)({defaultValue:!0})],t.prototype,"isSingleInRow",void 0),h([Object(i.property)({defaultValue:!0})],t.prototype,"allowRootStyle",void 0),t}(f)},"./src/survey-error.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyError",(function(){return i}));var n=r("./src/localizablestring.ts"),o=r("./src/surveyStrings.ts"),i=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this.text=e,this.errorOwner=t,this.visible=!0,this.onUpdateErrorTextCallback=void 0}return e.prototype.equalsTo=function(e){return!(!e||!e.getErrorType)&&this.getErrorType()===e.getErrorType()&&this.text===e.text&&this.visible===e.visible},Object.defineProperty(e.prototype,"locText",{get:function(){return this.locTextValue||(this.locTextValue=new n.LocalizableString(this.errorOwner,!0),this.locTextValue.storeDefaultText=!0,this.locTextValue.text=this.getText()),this.locTextValue},enumerable:!1,configurable:!0}),e.prototype.getText=function(){var e=this.text;return e||(e=this.getDefaultText()),this.errorOwner&&(e=this.errorOwner.getErrorCustomText(e,this)),e},e.prototype.getErrorType=function(){return"base"},e.prototype.getDefaultText=function(){return""},e.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},e.prototype.getLocalizationString=function(e){return o.surveyLocalization.getString(e,this.getLocale())},e.prototype.updateText=function(){this.onUpdateErrorTextCallback&&this.onUpdateErrorTextCallback(this),this.locText.text=this.getText()},e}()},"./src/survey.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyModel",(function(){return V}));var n,o=r("./src/helpers.ts"),i=r("./src/jsonobject.ts"),s=r("./src/base.ts"),a=r("./src/survey-element.ts"),l=r("./src/defaultCss/defaultV2Css.ts"),u=r("./src/textPreProcessor.ts"),c=r("./src/conditionProcessValue.ts"),p=r("./src/dxSurveyService.ts"),d=r("./src/surveyStrings.ts"),h=r("./src/error.ts"),f=r("./src/localizablestring.ts"),m=r("./src/stylesmanager.ts"),g=r("./src/surveyTimerModel.ts"),b=r("./src/conditions.ts"),y=r("./src/settings.ts"),v=r("./src/utils/utils.ts"),x=r("./src/actions/action.ts"),w=r("./src/actions/container.ts"),C=r("./src/utils/cssClassBuilder.ts"),P=r("./src/notifier.ts"),_=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),S=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},V=function(e){function t(r,n){void 0===r&&(r=null),void 0===n&&(n=null);var o=e.call(this)||this;o.valuesHash={},o.variablesHash={},o.onTriggerExecuted=o.addEvent(),o.onCompleting=o.addEvent(),o.onComplete=o.addEvent(),o.onShowingPreview=o.addEvent(),o.onNavigateToUrl=o.addEvent(),o.onStarted=o.addEvent(),o.onPartialSend=o.addEvent(),o.onCurrentPageChanging=o.addEvent(),o.onCurrentPageChanged=o.addEvent(),o.onValueChanging=o.addEvent(),o.onValueChanged=o.addEvent(),o.onVariableChanged=o.addEvent(),o.onQuestionVisibleChanged=o.addEvent(),o.onVisibleChanged=o.onQuestionVisibleChanged,o.onPageVisibleChanged=o.addEvent(),o.onPanelVisibleChanged=o.addEvent(),o.onQuestionCreated=o.addEvent(),o.onQuestionAdded=o.addEvent(),o.onQuestionRemoved=o.addEvent(),o.onPanelAdded=o.addEvent(),o.onPanelRemoved=o.addEvent(),o.onPageAdded=o.addEvent(),o.onValidateQuestion=o.addEvent(),o.onSettingQuestionErrors=o.addEvent(),o.onServerValidateQuestions=o.addEvent(),o.onValidatePanel=o.addEvent(),o.onErrorCustomText=o.addEvent(),o.onValidatedErrorsOnCurrentPage=o.addEvent(),o.onProcessHtml=o.addEvent(),o.onGetQuestionDisplayValue=o.addEvent(),o.onGetQuestionTitle=o.addEvent(),o.onGetTitleTagName=o.addEvent(),o.onGetQuestionNo=o.addEvent(),o.onProgressText=o.addEvent(),o.onTextMarkdown=o.addEvent(),o.onTextRenderAs=o.addEvent(),o.onSendResult=o.addEvent(),o.onGetResult=o.addEvent(),o.onUploadFiles=o.addEvent(),o.onDownloadFile=o.addEvent(),o.onClearFiles=o.addEvent(),o.onLoadChoicesFromServer=o.addEvent(),o.onLoadedSurveyFromService=o.addEvent(),o.onProcessTextValue=o.addEvent(),o.onUpdateQuestionCssClasses=o.addEvent(),o.onUpdatePanelCssClasses=o.addEvent(),o.onUpdatePageCssClasses=o.addEvent(),o.onUpdateChoiceItemCss=o.addEvent(),o.onAfterRenderSurvey=o.addEvent(),o.onAfterRenderHeader=o.addEvent(),o.onAfterRenderPage=o.addEvent(),o.onAfterRenderQuestion=o.addEvent(),o.onAfterRenderQuestionInput=o.addEvent(),o.onAfterRenderPanel=o.addEvent(),o.onFocusInQuestion=o.addEvent(),o.onFocusInPanel=o.addEvent(),o.onShowingChoiceItem=o.addEvent(),o.onChoicesLazyLoad=o.addEvent(),o.onGetChoiceDisplayValue=o.addEvent(),o.onMatrixRowAdded=o.addEvent(),o.onMatrixBeforeRowAdded=o.addEvent(),o.onMatrixRowRemoving=o.addEvent(),o.onMatrixRowRemoved=o.addEvent(),o.onMatrixAllowRemoveRow=o.addEvent(),o.onMatrixCellCreating=o.addEvent(),o.onMatrixCellCreated=o.addEvent(),o.onMatrixAfterCellRender=o.addEvent(),o.onMatrixCellValueChanged=o.addEvent(),o.onMatrixCellValueChanging=o.addEvent(),o.onMatrixCellValidate=o.addEvent(),o.onMatrixColumnAdded=o.addEvent(),o.onMultipleTextItemAdded=o.addEvent(),o.onDynamicPanelAdded=o.addEvent(),o.onDynamicPanelRemoved=o.addEvent(),o.onDynamicPanelRemoving=o.addEvent(),o.onTimer=o.addEvent(),o.onTimerPanelInfoText=o.addEvent(),o.onDynamicPanelItemValueChanged=o.addEvent(),o.onIsAnswerCorrect=o.addEvent(),o.onDragDropAllow=o.addEvent(),o.onScrollingElementToTop=o.addEvent(),o.onLocaleChangedEvent=o.addEvent(),o.onGetQuestionTitleActions=o.addEvent(),o.onGetPanelTitleActions=o.addEvent(),o.onGetPageTitleActions=o.addEvent(),o.onGetPanelFooterActions=o.addEvent(),o.onGetMatrixRowActions=o.addEvent(),o.onElementContentVisibilityChanged=o.addEvent(),o.onGetExpressionDisplayValue=o.addEvent(),o.jsonErrors=null,o.cssValue=null,o.hideRequiredErrors=!1,o._isMobile=!1,o._isCompact=!1,o._isDesignMode=!1,o.ignoreValidation=!1,o.isNavigationButtonPressed=!1,o.mouseDownPage=null,o.isCalculatingProgressText=!1,o.isFirstPageRendering=!0,o.isCurrentPageRendering=!0,o.isTriggerIsRunning=!1,o.triggerValues=null,o.triggerKeys=null,o.conditionValues=null,o.isValueChangedOnRunningCondition=!1,o.conditionRunnerCounter=0,o.conditionUpdateVisibleIndexes=!1,o.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,o.isEndLoadingFromJson=null,o.questionHashes={names:{},namesInsensitive:{},valueNames:{},valueNamesInsensitive:{}},o.afterRenderPageTasks=[],o.needRenderIcons=!0,o.skippedPages=[],o.skeletonComponentName="sv-skeleton","undefined"!=typeof document&&(t.stylesManager=new m.StylesManager);var i=function(e){return"<h3>"+e+"</h3>"};return o.createHtmlLocString("completedHtml","completingSurvey",i),o.createHtmlLocString("completedBeforeHtml","completingSurveyBefore",i),o.createHtmlLocString("loadingHtml","loadingSurvey",i),o.createLocalizableString("logo",o,!1),o.createLocalizableString("backgroundImage",o,!1),o.createLocalizableString("startSurveyText",o,!1,!0),o.createLocalizableString("pagePrevText",o,!1,!0),o.createLocalizableString("pageNextText",o,!1,!0),o.createLocalizableString("completeText",o,!1,!0),o.createLocalizableString("previewText",o,!1,!0),o.createLocalizableString("editText",o,!1,!0),o.createLocalizableString("questionTitleTemplate",o,!0),o.textPreProcessor=new u.TextPreProcessor,o.textPreProcessor.onProcess=function(e){o.getProcessedTextValue(e)},o.timerModelValue=new g.SurveyTimerModel(o),o.timerModelValue.onTimer=function(e){o.doTimer(e)},o.createNewArray("pages",(function(e){o.doOnPageAdded(e)}),(function(e){o.doOnPageRemoved(e)})),o.createNewArray("triggers",(function(e){e.setOwner(o)})),o.createNewArray("calculatedValues",(function(e){e.setOwner(o)})),o.createNewArray("completedHtmlOnCondition",(function(e){e.locOwner=o})),o.createNewArray("navigateToUrlOnCondition",(function(e){e.locOwner=o})),o.registerPropertyChangedHandlers(["locale"],(function(){o.onSurveyLocaleChanged()})),o.registerPropertyChangedHandlers(["firstPageIsStarted"],(function(){o.onFirstPageIsStartedChanged()})),o.registerPropertyChangedHandlers(["mode"],(function(){o.onModeChanged()})),o.registerPropertyChangedHandlers(["progressBarType"],(function(){o.updateProgressText()})),o.registerPropertyChangedHandlers(["questionStartIndex","requiredText","questionTitlePattern"],(function(){o.resetVisibleIndexes()})),o.registerPropertyChangedHandlers(["isLoading","isCompleted","isCompletedBefore","mode","isStartedState","currentPage"],(function(){o.updateState()})),o.registerPropertyChangedHandlers(["state","currentPage","showPreviewBeforeComplete"],(function(){o.onStateAndCurrentPageChanged()})),o.registerPropertyChangedHandlers(["logo","logoPosition"],(function(){o.updateHasLogo()})),o.registerPropertyChangedHandlers(["backgroundImage"],(function(){o.updateRenderBackgroundImage()})),o.onGetQuestionNo.onCallbacksChanged=function(){o.resetVisibleIndexes()},o.onProgressText.onCallbacksChanged=function(){o.updateProgressText()},o.onTextMarkdown.onCallbacksChanged=function(){o.locStrsChanged()},o.onProcessHtml.onCallbacksChanged=function(){o.locStrsChanged()},o.onGetQuestionTitle.onCallbacksChanged=function(){o.locStrsChanged()},o.onUpdatePageCssClasses.onCallbacksChanged=function(){o.currentPage&&o.currentPage.updateElementCss()},o.onUpdatePanelCssClasses.onCallbacksChanged=function(){o.currentPage&&o.currentPage.updateElementCss()},o.onUpdateQuestionCssClasses.onCallbacksChanged=function(){o.currentPage&&o.currentPage.updateElementCss()},o.onShowingChoiceItem.onCallbacksChanged=function(){o.rebuildQuestionChoices()},o.navigationBarValue=o.createNavigationBar(),o.navigationBar.locOwner=o,o.onBeforeCreating(),r&&(("string"==typeof r||r instanceof String)&&(r=JSON.parse(r)),r&&r.clientId&&(o.clientId=r.clientId),o.fromJSON(r),o.surveyId&&o.loadSurveyFromService(o.surveyId,o.clientId)),o.onCreating(),n&&o.render(n),o.updateCss(),o.setCalculatedWidthModeUpdater(),o.notifier=new P.Notifier(o.css.saveData),o.notifier.addAction(o.createTryAgainAction(),"error"),o.layoutElements.push({id:"timerpanel",template:"survey-timerpanel",component:"sv-timerpanel",data:o.timerModel}),o.layoutElements.push({id:"progress-buttons",component:"sv-progress-buttons",data:o}),o.layoutElements.push({id:"progress-questions",component:"sv-progress-questions",data:o}),o.layoutElements.push({id:"progress-pages",component:"sv-progress-pages",data:o}),o.layoutElements.push({id:"progress-correctquestions",component:"sv-progress-correctquestions",data:o}),o.layoutElements.push({id:"progress-requiredquestions",component:"sv-progress-requiredquestions",data:o}),o.addLayoutElement({id:"toc-navigation",component:"sv-progress-toc",data:o}),o.layoutElements.push({id:"navigationbuttons",component:"sv-action-bar",data:o.navigationBar}),o}return _(t,e),Object.defineProperty(t,"cssType",{get:function(){return l.surveyCss.currentType},set:function(e){m.StylesManager.applyTheme(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"platformName",{get:function(){return t.platform},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentSuffix",{get:function(){return y.settings.commentSuffix},set:function(e){y.settings.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPrefix",{get:function(){return this.commentSuffix},set:function(e){this.commentSuffix=e},enumerable:!1,configurable:!0}),t.prototype.createTryAgainAction=function(){var e=this;return{id:"save-again",title:this.getLocalizationString("saveAgainButton"),action:function(){e.isCompleted?e.saveDataOnComplete():e.doComplete()}}},t.prototype.createHtmlLocString=function(e,t,r){this.createLocalizableString(e,this,!1,t).onGetLocalizationTextCallback=r},t.prototype.getType=function(){return"survey"},t.prototype.onPropertyValueChanged=function(e,t,r){"questionsOnPageMode"===e&&this.onQuestionsOnPageModeChanged(t)},Object.defineProperty(t.prototype,"pages",{get:function(){return this.getPropertyValue("pages")},enumerable:!1,configurable:!0}),t.prototype.render=function(e){void 0===e&&(e=null),this.renderCallback&&this.renderCallback()},t.prototype.updateSurvey=function(e,t){var r=function(){if("model"==o||"children"==o)return"continue";if(0==o.indexOf("on")&&n[o]&&n[o].add){var t=e[o];n[o].add((function(e,r){t(e,r)}))}else n[o]=e[o]},n=this;for(var o in e)r();e&&e.data&&this.onValueChanged.add((function(t,r){e.data[r.name]=r.value}))},t.prototype.getCss=function(){return this.css},t.prototype.updateCompletedPageCss=function(){this.containerCss=this.css.container,this.completedCss=(new C.CssClassBuilder).append(this.css.body).append(this.css.completedPage).toString()},t.prototype.updateCss=function(){this.rootCss=this.getRootCss(),this.updateNavigationCss(),this.updateCompletedPageCss()},Object.defineProperty(t.prototype,"css",{get:function(){return this.cssValue||(this.cssValue={},this.copyCssClasses(this.cssValue,l.surveyCss.getCss())),this.cssValue},set:function(e){this.setCss(e)},enumerable:!1,configurable:!0}),t.prototype.setCss=function(e,t){void 0===t&&(t=!0),t?this.mergeValues(e,this.css):this.cssValue=e,this.updateCss(),this.updateElementCss(!1)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.css.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationComplete",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.complete)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPreview",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.preview)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationEdit",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.edit)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPrev",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.prev)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationStart",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.start)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationNext",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.next)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssSurveyNavigationButton",{get:function(){return(new C.CssClassBuilder).append(this.css.navigationButton).append(this.css.bodyNavigationButton).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyCss",{get:function(){return(new C.CssClassBuilder).append(this.css.body).append(this.css.bodyWithTimer,"none"!=this.showTimerPanel&&"running"===this.state).append(this.css.body+"--"+this.calculatedWidthMode).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyContainerCss",{get:function(){return this.css.bodyContainer},enumerable:!1,configurable:!0}),t.prototype.getNavigationCss=function(e,t){return(new C.CssClassBuilder).append(e).append(t).toString()},Object.defineProperty(t.prototype,"lazyRendering",{get:function(){return!0===this.lazyRenderingValue},set:function(e){if(this.lazyRendering!==e){this.lazyRenderingValue=e;var t=this.currentPage;t&&t.updateRows()}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRendering",{get:function(){return this.lazyRendering||y.settings.lazyRowsRendering},enumerable:!1,configurable:!0}),t.prototype.updateLazyRenderingRowsOnRemovingElements=function(){if(this.isLazyRendering){var e=this.currentPage;e&&Object(v.scrollElementByChildId)(e.id)}},Object.defineProperty(t.prototype,"triggers",{get:function(){return this.getPropertyValue("triggers")},set:function(e){this.setPropertyValue("triggers",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedValues",{get:function(){return this.getPropertyValue("calculatedValues")},set:function(e){this.setPropertyValue("calculatedValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyId",{get:function(){return this.getPropertyValue("surveyId","")},set:function(e){this.setPropertyValue("surveyId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyPostId",{get:function(){return this.getPropertyValue("surveyPostId","")},set:function(e){this.setPropertyValue("surveyPostId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientId",{get:function(){return this.getPropertyValue("clientId","")},set:function(e){this.setPropertyValue("clientId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cookieName",{get:function(){return this.getPropertyValue("cookieName","")},set:function(e){this.setPropertyValue("cookieName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sendResultOnPageNext",{get:function(){return this.getPropertyValue("sendResultOnPageNext")},set:function(e){this.setPropertyValue("sendResultOnPageNext",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyShowDataSaving",{get:function(){return this.getPropertyValue("surveyShowDataSaving")},set:function(e){this.setPropertyValue("surveyShowDataSaving",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusFirstQuestionAutomatic",{get:function(){return this.getPropertyValue("focusFirstQuestionAutomatic")},set:function(e){this.setPropertyValue("focusFirstQuestionAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusOnFirstError",{get:function(){return this.getPropertyValue("focusOnFirstError")},set:function(e){this.setPropertyValue("focusOnFirstError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigationButtons",{get:function(){return this.getPropertyValue("showNavigationButtons")},set:function(e){!0!==e&&void 0!==e||(e="bottom"),!1===e&&(e="none"),this.setPropertyValue("showNavigationButtons",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPrevButton",{get:function(){return this.getPropertyValue("showPrevButton")},set:function(e){this.setPropertyValue("showPrevButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTOC",{get:function(){return this.getPropertyValue("showTOC")},set:function(e){this.setPropertyValue("showTOC",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tocLocation",{get:function(){return this.getPropertyValue("tocLocation")},set:function(e){this.setPropertyValue("tocLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle")},set:function(e){this.setPropertyValue("showTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPageTitles",{get:function(){return this.getPropertyValue("showPageTitles")},set:function(e){this.setPropertyValue("showPageTitles",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCompletedPage",{get:function(){return this.getPropertyValue("showCompletedPage")},set:function(e){this.setPropertyValue("showCompletedPage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrl",{get:function(){return this.getPropertyValue("navigateToUrl")},set:function(e){this.setPropertyValue("navigateToUrl",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrlOnCondition",{get:function(){return this.getPropertyValue("navigateToUrlOnCondition")},set:function(e){this.setPropertyValue("navigateToUrlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.getNavigateToUrl=function(){var e=this.getExpressionItemOnRunCondition(this.navigateToUrlOnCondition),t=e?e.url:this.navigateToUrl;return t&&(t=this.processText(t,!1)),t},t.prototype.navigateTo=function(){var e={url:this.getNavigateToUrl(),allow:!0};this.onNavigateToUrl.fire(this,e),e.url&&e.allow&&Object(v.navigateToUrl)(e.url)},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.getPropertyValue("requiredText","*")},set:function(e){this.setPropertyValue("requiredText",e)},enumerable:!1,configurable:!0}),t.prototype.beforeSettingQuestionErrors=function(e,t){this.maakeRequiredErrorsInvisibgle(t),this.onSettingQuestionErrors.fire(this,{question:e,errors:t})},t.prototype.beforeSettingPanelErrors=function(e,t){this.maakeRequiredErrorsInvisibgle(t)},t.prototype.maakeRequiredErrorsInvisibgle=function(e){if(this.hideRequiredErrors)for(var t=0;t<e.length;t++){var r=e[t].getErrorType();"required"!=r&&"requireoneanswer"!=r||(e[t].visible=!1)}},Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTextLength",{get:function(){return this.getPropertyValue("maxTextLength")},set:function(e){this.setPropertyValue("maxTextLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxOthersLength",{get:function(){return this.getPropertyValue("maxOthersLength")},set:function(e){this.setPropertyValue("maxOthersLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"goNextPageAutomatic",{get:function(){return this.getPropertyValue("goNextPageAutomatic")},set:function(e){this.setPropertyValue("goNextPageAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowCompleteSurveyAutomatic",{get:function(){return this.getPropertyValue("allowCompleteSurveyAutomatic",!0)},set:function(e){this.setPropertyValue("allowCompleteSurveyAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkErrorsMode",{get:function(){return this.getPropertyValue("checkErrorsMode")},set:function(e){this.setPropertyValue("checkErrorsMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.getPropertyValue("autoGrowComment")},set:function(e){this.setPropertyValue("autoGrowComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeComment",{get:function(){return this.getPropertyValue("allowResizeComment")},set:function(e){this.setPropertyValue("allowResizeComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearInvisibleValues",{get:function(){return this.getPropertyValue("clearInvisibleValues")},set:function(e){!0===e&&(e="onComplete"),!1===e&&(e="none"),this.setPropertyValue("clearInvisibleValues",e)},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(e){void 0===e&&(e=!1);for(var t=0;t<this.pages.length;t++)this.pages[t].clearIncorrectValues();if(e){var r=this.data,n=!1;for(var o in r)if(!this.getQuestionByValueName(o)&&!this.iscorrectValueWithPostPrefix(o,y.settings.commentSuffix)&&!this.iscorrectValueWithPostPrefix(o,y.settings.matrixTotalValuePostFix)){var i=this.getCalculatedValueByName(o);i&&i.includeIntoResult||(n=!0,delete r[o])}n&&(this.data=r)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t){return e.indexOf(t)===e.length-t.length&&!!this.getQuestionByValueName(e.substring(0,e.indexOf(t)))},Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues")},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locale",{get:function(){return this.getPropertyValue("locale",d.surveyLocalization.currentLocale)},set:function(e){e!==d.surveyLocalization.defaultLocale||d.surveyLocalization.currentLocale||(e=""),this.setPropertyValue("locale",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLocaleChanged=function(){this.notifyElementsOnAnyValueOrVariableChanged("locale"),this.localeChanged(),this.onLocaleChangedEvent.fire(this,this.locale)},t.prototype.getUsedLocales=function(){var e=new Array;this.addUsedLocales(e);var t=e.indexOf("default");if(t>-1){var r=d.surveyLocalization.defaultLocale,n=e.indexOf(r);n>-1&&e.splice(n,1),t=e.indexOf("default"),e[t]=r}return e},t.prototype.localeChanged=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].localeChanged()},t.prototype.getLocale=function(){return this.locale},t.prototype.locStrsChanged=function(){if(e.prototype.locStrsChanged.call(this),this.currentPage){this.isShowStartingPage||this.updateProgressText();var t=this.activePage;t&&t.locStrsChanged();for(var r=this.visiblePages,n=0;n<r.length;n++)r[n].navigationLocStrChanged();this.navigationBar.locStrsChanged()}},t.prototype.getMarkdownHtml=function(e,t){return this.getSurveyMarkdownHtml(this,e,t)},t.prototype.getRenderer=function(e){return this.getRendererForString(this,e)},t.prototype.getRendererContext=function(e){return this.getRendererContextForString(this,e)},t.prototype.getRendererForString=function(e,t){var r={element:e,name:t,renderAs:this.getBuiltInRendererForString(e,t)};return this.onTextRenderAs.fire(this,r),r.renderAs},t.prototype.getRendererContextForString=function(e,t){return t},t.prototype.getExpressionDisplayValue=function(e,t,r){var n={question:e,value:t,displayValue:r};return this.onGetExpressionDisplayValue.fire(this,n),n.displayValue},t.prototype.getBuiltInRendererForString=function(e,t){if(this.isDesignMode)return f.LocalizableString.editableRenderer},t.prototype.getProcessedText=function(e){return this.processText(e,!0)},t.prototype.getLocString=function(e){return this.getLocalizationString(e)},t.prototype.getErrorCustomText=function(e,t){return this.getSurveyErrorCustomText(this,e,t)},t.prototype.getSurveyErrorCustomText=function(e,t,r){var n={text:t,name:r.getErrorType(),obj:e,error:r};return this.onErrorCustomText.fire(this,n),n.text},t.prototype.getQuestionDisplayValue=function(e,t){var r={question:e,displayValue:t};return this.onGetQuestionDisplayValue.fire(this,r),r.displayValue},Object.defineProperty(t.prototype,"emptySurveyText",{get:function(){return this.getLocalizationString("emptySurvey")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logo",{get:function(){return this.getLocalizableStringText("logo")},set:function(e){this.setLocalizableStringText("logo",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLogo",{get:function(){return this.getLocalizableString("logo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoWidth",{get:function(){var e=this.getPropertyValue("logoWidth");return Object(v.getSize)(e)},set:function(e){this.setPropertyValue("logoWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoHeight",{get:function(){var e=this.getPropertyValue("logoHeight");return Object(v.getSize)(e)},set:function(e){this.setPropertyValue("logoHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoPosition",{get:function(){return this.getPropertyValue("logoPosition")},set:function(e){this.setPropertyValue("logoPosition",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasLogo",{get:function(){return this.getPropertyValue("hasLogo",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasLogo=function(){this.setPropertyValue("hasLogo",!!this.logo&&"none"!==this.logoPosition)},Object.defineProperty(t.prototype,"isLogoBefore",{get:function(){return!this.isDesignMode&&this.renderedHasLogo&&("left"===this.logoPosition||"top"===this.logoPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogoAfter",{get:function(){return this.isDesignMode?this.renderedHasLogo:this.renderedHasLogo&&("right"===this.logoPosition||"bottom"===this.logoPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoClassNames",{get:function(){return(new C.CssClassBuilder).append(this.css.logo).append({left:"sv-logo--left",right:"sv-logo--right",top:"sv-logo--top",bottom:"sv-logo--bottom"}[this.logoPosition]).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasTitle",{get:function(){return this.isDesignMode?this.isPropertyVisible("title"):!this.locTitle.isEmpty&&this.showTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasDescription",{get:function(){return this.isDesignMode?this.isPropertyVisible("description"):!!this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.renderedHasTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasLogo",{get:function(){return this.isDesignMode?this.isPropertyVisible("logo"):this.hasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasHeader",{get:function(){return this.renderedHasTitle||this.renderedHasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoFit",{get:function(){return this.getPropertyValue("logoFit")},set:function(e){this.setPropertyValue("logoFit",e)},enumerable:!1,configurable:!0}),t.prototype.setIsMobile=function(e){void 0===e&&(e=!0),this.isMobile!==e&&(this._isMobile=e,this.updateCss(),this.getAllQuestions().map((function(t){return t.isMobile=e})))},Object.defineProperty(t.prototype,"isMobile",{get:function(){return this._isMobile},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompact",{get:function(){return this._isCompact},set:function(e){e!==this._isCompact&&(this._isCompact=e,this.updateElementCss())},enumerable:!1,configurable:!0}),t.prototype.isLogoImageChoosen=function(){return this.locLogo.renderedHtml},Object.defineProperty(t.prototype,"titleMaxWidth",{get:function(){if(!(Object(v.isMobile)()||this.isMobile||this.isValueEmpty(this.isLogoImageChoosen())||y.settings.supportCreatorV2)){var e=this.logoWidth;if("left"===this.logoPosition||"right"===this.logoPosition)return"calc(100% - 5px - 2em - "+e+")"}return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImage",{get:function(){return this.getLocalizableStringText("backgroundImage")},set:function(e){this.setLocalizableStringText("backgroundImage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locBackgroundImage",{get:function(){return this.getLocalizableString("backgroundImage")},enumerable:!1,configurable:!0}),t.prototype.updateRenderBackgroundImage=function(){this.renderBackgroundImage=["url(",this.getLocalizableString("backgroundImage").renderedHtml,")"].join("")},Object.defineProperty(t.prototype,"backgroundOpacity",{get:function(){return this.getPropertyValue("backgroundOpacity")},set:function(e){this.setPropertyValue("backgroundOpacity",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderBackgroundOpacity",{get:function(){return this.getPropertyByName("backgroundOpacity").isDefaultValue(this.backgroundOpacity)?"":["rgba(255, 255, 255, ",1-this.backgroundOpacity,")"].join("")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedHtml",{get:function(){return this.getLocalizableStringText("completedHtml")},set:function(e){this.setLocalizableStringText("completedHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedHtml",{get:function(){return this.getLocalizableString("completedHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedHtmlOnCondition",{get:function(){return this.getPropertyValue("completedHtmlOnCondition")},set:function(e){this.setPropertyValue("completedHtmlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.runExpression=function(e){if(!e)return null;var t=this.getFilteredValues(),r=this.getFilteredProperties();return new b.ExpressionRunner(e).run(t,r)},t.prototype.runCondition=function(e){if(!e)return!1;var t=this.getFilteredValues(),r=this.getFilteredProperties();return new b.ConditionRunner(e).run(t,r)},t.prototype.runTriggers=function(){this.checkTriggers(this.getFilteredValues(),!1)},Object.defineProperty(t.prototype,"renderedCompletedHtml",{get:function(){var e=this.getExpressionItemOnRunCondition(this.completedHtmlOnCondition);return e?e.html:this.completedHtml},enumerable:!1,configurable:!0}),t.prototype.getExpressionItemOnRunCondition=function(e){if(0==e.length)return null;for(var t=this.getFilteredValues(),r=this.getFilteredProperties(),n=0;n<e.length;n++)if(e[n].runCondition(t,r))return e[n];return null},Object.defineProperty(t.prototype,"completedBeforeHtml",{get:function(){return this.getLocalizableStringText("completedBeforeHtml")},set:function(e){this.setLocalizableStringText("completedBeforeHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedBeforeHtml",{get:function(){return this.getLocalizableString("completedBeforeHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingHtml",{get:function(){return this.getLocalizableStringText("loadingHtml")},set:function(e){this.setLocalizableStringText("loadingHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLoadingHtml",{get:function(){return this.getLocalizableString("loadingHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultLoadingHtml",{get:function(){return"<h3>"+this.getLocalizationString("loadingSurvey")+"</h3>"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationBar",{get:function(){return this.navigationBarValue},enumerable:!1,configurable:!0}),t.prototype.addNavigationItem=function(e){return e.component||(e.component="sv-nav-btn"),e.innerCss||(e.innerCss=this.cssSurveyNavigationButton),this.navigationBar.addAction(e)},Object.defineProperty(t.prototype,"startSurveyText",{get:function(){return this.getLocalizableStringText("startSurveyText")},set:function(e){this.setLocalizableStringText("startSurveyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locStartSurveyText",{get:function(){return this.getLocalizableString("startSurveyText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pagePrevText",{get:function(){return this.getLocalizableStringText("pagePrevText")},set:function(e){this.setLocalizableStringText("pagePrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPagePrevText",{get:function(){return this.getLocalizableString("pagePrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageNextText",{get:function(){return this.getLocalizableStringText("pageNextText")},set:function(e){this.setLocalizableStringText("pageNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPageNextText",{get:function(){return this.getLocalizableString("pageNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completeText",{get:function(){return this.getLocalizableStringText("completeText")},set:function(e){this.setLocalizableStringText("completeText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompleteText",{get:function(){return this.getLocalizableString("completeText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previewText",{get:function(){return this.getLocalizableStringText("previewText")},set:function(e){this.setLocalizableStringText("previewText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPreviewText",{get:function(){return this.getLocalizableString("previewText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editText",{get:function(){return this.getLocalizableStringText("editText")},set:function(e){this.setLocalizableStringText("editText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEditText",{get:function(){return this.getLocalizableString("editText")},enumerable:!1,configurable:!0}),t.prototype.getElementTitleTagName=function(e,t){if(this.onGetTitleTagName.isEmpty)return t;var r={element:e,tagName:t};return this.onGetTitleTagName.fire(this,r),r.tagName},Object.defineProperty(t.prototype,"questionTitlePattern",{get:function(){return this.getPropertyValue("questionTitlePattern","numTitleRequire")},set:function(e){"numRequireTitle"!==e&&"requireNumTitle"!==e&&"numTitle"!=e&&(e="numTitleRequire"),this.setPropertyValue("questionTitlePattern",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitlePatternOptions=function(){var e=new Array,t=this.getLocalizationString("questionTitlePatternText"),r=this.questionStartIndex?this.questionStartIndex:"1.";return e.push({value:"numTitleRequire",text:r+" "+t+" "+this.requiredText}),e.push({value:"numRequireTitle",text:r+" "+this.requiredText+" "+t}),e.push({value:"requireNumTitle",text:this.requiredText+" "+r+" "+t}),e.push({value:"numTitle",text:r+" "+t}),e},Object.defineProperty(t.prototype,"questionTitleTemplate",{get:function(){return this.getLocalizableStringText("questionTitleTemplate")},set:function(e){this.setLocalizableStringText("questionTitleTemplate",e),this.questionTitlePattern=this.getNewTitlePattern(e),this.questionStartIndex=this.getNewQuestionTitleElement(e,"no",this.questionStartIndex,"1"),this.requiredText=this.getNewQuestionTitleElement(e,"require",this.requiredText,"*")},enumerable:!1,configurable:!0}),t.prototype.getNewTitlePattern=function(e){if(e){for(var t=[];e.indexOf("{")>-1;){var r=(e=e.substring(e.indexOf("{")+1)).indexOf("}");if(r<0)break;t.push(e.substring(0,r)),e=e.substring(r+1)}if(t.length>1){if("require"==t[0])return"requireNumTitle";if("require"==t[1]&&3==t.length)return"numRequireTitle";if(t.indexOf("require")<0)return"numTitle"}if(1==t.length&&"title"==t[0])return"numTitle"}return"numTitleRequire"},t.prototype.getNewQuestionTitleElement=function(e,t,r,n){if(t="{"+t+"}",!e||e.indexOf(t)<0)return r;for(var o=e.indexOf(t),i="",s="",a=o-1;a>=0&&"}"!=e[a];a--);for(a<o-1&&(i=e.substring(a+1,o)),a=o+=t.length;a<e.length&&"{"!=e[a];a++);for(a>o&&(s=e.substring(o,a)),a=0;a<i.length&&i.charCodeAt(a)<33;)a++;for(i=i.substring(a),a=s.length-1;a>=0&&s.charCodeAt(a)<33;)a--;return s=s.substring(0,a+1),i||s?i+(r||n)+s:r},Object.defineProperty(t.prototype,"locQuestionTitleTemplate",{get:function(){return this.getLocalizableString("questionTitleTemplate")},enumerable:!1,configurable:!0}),t.prototype.getUpdatedQuestionTitle=function(e,t){if(this.onGetQuestionTitle.isEmpty)return t;var r={question:e,title:t};return this.onGetQuestionTitle.fire(this,r),r.title},t.prototype.getUpdatedQuestionNo=function(e,t){if(this.onGetQuestionNo.isEmpty)return t;var r={question:e,no:t};return this.onGetQuestionNo.fire(this,r),r.no},Object.defineProperty(t.prototype,"showPageNumbers",{get:function(){return this.getPropertyValue("showPageNumbers")},set:function(e){e!==this.showPageNumbers&&(this.setPropertyValue("showPageNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){!0===e&&(e="on"),!1===e&&(e="off"),(e="onpage"===(e=e.toLowerCase())?"onPage":e)!==this.showQuestionNumbers&&(this.setPropertyValue("showQuestionNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showProgressBar",{get:function(){return this.getPropertyValue("showProgressBar")},set:function(e){this.setPropertyValue("showProgressBar",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarType",{get:function(){return this.getPropertyValue("progressBarType")},set:function(e){"correctquestion"===e&&(e="correctQuestion"),"requiredquestion"===e&&(e="requiredQuestion"),this.setPropertyValue("progressBarType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnTop",{get:function(){return!!this.canShowProresBar()&&("top"===this.showProgressBar||"both"===this.showProgressBar)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnBottom",{get:function(){return!!this.canShowProresBar()&&("bottom"===this.showProgressBar||"both"===this.showProgressBar)},enumerable:!1,configurable:!0}),t.prototype.getProgressCssClasses=function(){return(new C.CssClassBuilder).append(this.css.progress).append(this.css.progressTop,this.isShowProgressBarOnTop).append(this.css.progressBottom,this.isShowProgressBarOnBottom).toString()},t.prototype.canShowProresBar=function(){return!this.isShowingPreview||"showAllQuestions"!=this.showPreviewBeforeComplete},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase()),this.isLoadingFromJson||this.updateElementCss(!0)},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.startedPage&&this.startedPage.updateElementCss(e);for(var t=this.visiblePages,r=0;r<t.length;r++)t[r].updateElementCss(e)},Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionDescriptionLocation",{get:function(){return this.getPropertyValue("questionDescriptionLocation")},set:function(e){this.setPropertyValue("questionDescriptionLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this.getPropertyValue("mode")},set:function(e){(e=e.toLowerCase())!=this.mode&&("edit"!=e&&"display"!=e||this.setPropertyValue("mode",e))},enumerable:!1,configurable:!0}),t.prototype.onModeChanged=function(){for(var e=0;e<this.pages.length;e++){var t=this.pages[e];t.setPropertyValue("isReadOnly",t.isReadOnly)}this.updateButtonsVisibility(),this.updateCss()},Object.defineProperty(t.prototype,"data",{get:function(){for(var e={},t=this.getValuesKeys(),r=0;r<t.length;r++){var n=t[r],o=this.getDataValueCore(this.valuesHash,n);void 0!==o&&(e[n]=o)}return this.setCalculatedValuesIntoResult(e),e},set:function(e){this.valuesHash={},this.setDataCore(e)},enumerable:!1,configurable:!0}),t.prototype.mergeData=function(e){if(e){var t=this.data;this.mergeValues(e,t),this.setDataCore(t)}},t.prototype.setDataCore=function(e){if(e)for(var t in e)this.setDataValueCore(this.valuesHash,t,e[t]);this.updateAllQuestionsValue(),this.notifyAllQuestionsOnValueChanged(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.runConditions(),this.updateAllQuestionsValue()},t.prototype.getStructuredData=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=-1),0===t)return this.data;var r={};return this.pages.forEach((function(n){if(e){var o={};n.collectValues(o,t-1)&&(r[n.name]=o)}else n.collectValues(r,t)})),r},t.prototype.setStructuredData=function(e,t){if(void 0===t&&(t=!1),e){var r={};for(var n in e)if(this.getQuestionByValueName(n))r[n]=e[n];else{var o=this.getPageByName(n);o||(o=this.getPanelByName(n)),o&&this.collectDataFromPanel(o,r,e[n])}t?this.mergeData(r):this.data=r}},t.prototype.collectDataFromPanel=function(e,t,r){for(var n in r){var o=e.getElementByName(n);o&&(o.isPanel?this.collectDataFromPanel(o,t,r[n]):t[n]=r[n])}},Object.defineProperty(t.prototype,"editingObj",{get:function(){return this.editingObjValue},set:function(e){var t=this;if(this.editingObj!=e&&(this.editingObj&&this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=e,!this.isDisposed)){if(!e)for(var r=this.getAllQuestions(),n=0;n<r.length;n++)r[n].unbindValue();this.editingObj&&(this.setDataCore({}),this.onEditingObjPropertyChanged=function(e,r){i.Serializer.hasOriginalProperty(t.editingObj,r.name)&&t.updateOnSetValue(r.name,t.editingObj[r.name],r.oldValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEditingSurveyElement",{get:function(){return!!this.editingObj},enumerable:!1,configurable:!0}),t.prototype.setCalculatedValuesIntoResult=function(e){for(var t=0;t<this.calculatedValues.length;t++){var r=this.calculatedValues[t];r.includeIntoResult&&r.name&&void 0!==this.getVariable(r.name)&&(e[r.name]=this.getVariable(r.name))}},t.prototype.getAllValues=function(){return this.data},t.prototype.getPlainData=function(e){e||(e={includeEmpty:!0,includeQuestionTypes:!1,includeValues:!1});var t=[],r=[];if(this.getAllQuestions().forEach((function(n){var o=n.getPlainData(e);o&&(t.push(o),r.push(n.valueName||n.name))})),e.includeValues)for(var n=this.getValuesKeys(),o=0;o<n.length;o++){var i=n[o];if(-1==r.indexOf(i)){var s=this.getDataValueCore(this.valuesHash,i);s&&t.push({name:i,title:i,value:s,displayValue:s,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}})}}return t},t.prototype.getFilteredValues=function(){var e={};for(var t in this.variablesHash)e[t]=this.variablesHash[t];this.addCalculatedValuesIntoFilteredValues(e);for(var r=this.getValuesKeys(),n=0;n<r.length;n++)e[t=r[n]]=this.getDataValueCore(this.valuesHash,t);return e},t.prototype.addCalculatedValuesIntoFilteredValues=function(e){for(var t=this.calculatedValues,r=0;r<t.length;r++)e[t[r].name]=t[r].value},t.prototype.getFilteredProperties=function(){return{survey:this}},t.prototype.getValuesKeys=function(){if(!this.editingObj)return Object.keys(this.valuesHash);for(var e=i.Serializer.getPropertiesByObj(this.editingObj),t=[],r=0;r<e.length;r++)t.push(e[r].name);return t},t.prototype.getDataValueCore=function(e,t){return this.editingObj?i.Serializer.getObjPropertyValue(this.editingObj,t):this.getDataFromValueHash(e,t)},t.prototype.setDataValueCore=function(e,t,r){this.editingObj?i.Serializer.setObjPropertyValue(this.editingObj,t,r):this.setDataToValueHash(e,t,r)},t.prototype.deleteDataValueCore=function(e,t){this.editingObj?this.editingObj[t]=null:this.deleteDataFromValueHash(e,t)},t.prototype.getDataFromValueHash=function(e,t){return this.valueHashGetDataCallback?this.valueHashGetDataCallback(e,t):e[t]},t.prototype.setDataToValueHash=function(e,t,r){this.valueHashSetDataCallback?this.valueHashSetDataCallback(e,t,r):e[t]=r},t.prototype.deleteDataFromValueHash=function(e,t){this.valueHashDeleteDataCallback?this.valueHashDeleteDataCallback(e,t):delete e[t]},Object.defineProperty(t.prototype,"comments",{get:function(){for(var e={},t=this.getValuesKeys(),r=0;r<t.length;r++){var n=t[r];n.indexOf(this.commentSuffix)>0&&(e[n]=this.getDataValueCore(this.valuesHash,n))}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePages",{get:function(){if(this.isDesignMode)return this.pages;for(var e=new Array,t=0;t<this.pages.length;t++)this.isPageInVisibleList(this.pages[t])&&e.push(this.pages[t]);return e},enumerable:!1,configurable:!0}),t.prototype.isPageInVisibleList=function(e){return this.isDesignMode||e.isVisible&&!e.isStartPage},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0==this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PageCount",{get:function(){return this.pageCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCount",{get:function(){return this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePageCount",{get:function(){return this.visiblePages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startedPage",{get:function(){var e=this.firstPageIsStarted&&this.pages.length>1?this.pages[0]:null;return e&&(e.onFirstRendering(),e.setWasShown(!0)),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){return this.getPropertyValue("currentPage",null)},set:function(e){if(!this.isLoadingFromJson){var t=this.getPageByObject(e);if((!e||t)&&(t||!this.isCurrentPageAvailable)){var r=this.visiblePages;if(!(null!=t&&r.indexOf(t)<0)&&t!=this.currentPage){var n=this.currentPage;this.currentPageChanging(t,n)&&(this.setPropertyValue("currentPage",t),t&&(t.onFirstRendering(),t.updateCustomWidgets(),t.setWasShown(!0)),this.locStrsChanged(),this.currentPageChanged(t,n))}}}},enumerable:!1,configurable:!0}),t.prototype.updateCurrentPage=function(){this.isCurrentPageAvailable||(this.currentPage=this.firstVisiblePage)},Object.defineProperty(t.prototype,"isCurrentPageAvailable",{get:function(){var e=this.currentPage;return!!e&&this.isPageInVisibleList(e)&&this.isPageExistsInSurvey(e)},enumerable:!1,configurable:!0}),t.prototype.isPageExistsInSurvey=function(e){return this.pages.indexOf(e)>-1||!!this.onContainsPageCallback&&this.onContainsPageCallback(e)},Object.defineProperty(t.prototype,"activePage",{get:function(){return this.getPropertyValue("activePage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowStartingPage",{get:function(){return"starting"===this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPage",{get:function(){return"running"==this.state||"preview"==this.state||this.isShowStartingPage},enumerable:!1,configurable:!0}),t.prototype.updateActivePage=function(){var e=this.isShowStartingPage?this.startedPage:this.currentPage;this.setPropertyValue("activePage",e)},t.prototype.onStateAndCurrentPageChanged=function(){this.updateActivePage(),this.updateButtonsVisibility()},t.prototype.getPageByObject=function(e){if(!e)return null;if(e.getType&&"page"==e.getType())return e;if("string"==typeof e||e instanceof String)return this.getPageByName(String(e));if(!isNaN(e)){var t=Number(e),r=this.visiblePages;return e<0||e>=r.length?null:r[t]}return e},Object.defineProperty(t.prototype,"currentPageNo",{get:function(){return this.visiblePages.indexOf(this.currentPage)},set:function(e){var t=this.visiblePages;e<0||e>=t.length||(this.currentPage=t[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.focusFirstQuestion=function(){if(!this.isFocusingQuestion){var e=this.activePage;e&&(e.scrollToTop(),e.focusFirstQuestion())}},t.prototype.scrollToTopOnPageChange=function(e){void 0===e&&(e=!0);var t=this.activePage;t&&(e&&t.scrollToTop(),this.isCurrentPageRendering&&this.focusFirstQuestionAutomatic&&!this.isFocusingQuestion&&(t.focusFirstQuestion(),this.isCurrentPageRendering=!1))},Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state","empty")},enumerable:!1,configurable:!0}),t.prototype.updateState=function(){this.setPropertyValue("state",this.calcState())},t.prototype.calcState=function(){return this.isLoading?"loading":this.isCompleted?"completed":this.isCompletedBefore?"completedbefore":!this.isDesignMode&&this.isEditMode&&this.isStartedState&&this.startedPage?"starting":this.isShowingPreview?this.currentPage?"preview":"empty":this.currentPage?"running":"empty"},Object.defineProperty(t.prototype,"isCompleted",{get:function(){return this.getPropertyValue("isCompleted",!1)},set:function(e){this.setPropertyValue("isCompleted",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPreview",{get:function(){return this.getPropertyValue("isShowingPreview",!1)},set:function(e){this.isShowingPreview!=e&&(this.setPropertyValue("isShowingPreview",e),this.onShowingPreviewChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStartedState",{get:function(){return this.getPropertyValue("isStartedState",!1)},set:function(e){this.setPropertyValue("isStartedState",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompletedBefore",{get:function(){return this.getPropertyValue("isCompletedBefore",!1)},set:function(e){this.setPropertyValue("isCompletedBefore",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLoading",{get:function(){return this.getPropertyValue("isLoading",!1)},set:function(e){this.setPropertyValue("isLoading",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedState",{get:function(){return this.getPropertyValue("completedState","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedStateText",{get:function(){return this.getPropertyValue("completedStateText","")},enumerable:!1,configurable:!0}),t.prototype.setCompletedState=function(e,t){this.setPropertyValue("completedState",e),t||("saving"==e&&(t=this.getLocalizationString("savingData")),"error"==e&&(t=this.getLocalizationString("savingDataError")),"success"==e&&(t=this.getLocalizationString("savingDataSuccess"))),this.setPropertyValue("completedStateText",t),"completed"===this.state&&this.showCompletedPage&&this.completedState&&this.notify(this.completedStateText,this.completedState)},t.prototype.notify=function(e,t){this.notifier.notify(e,t,"error"===t)},t.prototype.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),this.isCompleted=!1,this.isCompletedBefore=!1,this.isLoading=!1,this.completedByTriggers=void 0,e&&(this.data=null,this.variablesHash={}),this.timerModel.spent=0;for(var r=0;r<this.pages.length;r++)this.pages[r].timeSpent=0,this.pages[r].setWasShown(!1),this.pages[r].passed=!1;this.onFirstPageIsStartedChanged(),t&&(this.currentPage=this.firstVisiblePage),e&&this.updateValuesWithDefaults()},t.prototype.mergeValues=function(e,t){Object(v.mergeValues)(e,t)},t.prototype.updateValuesWithDefaults=function(){if(!this.isDesignMode&&!this.isLoading)for(var e=0;e<this.pages.length;e++)for(var t=this.pages[e].questions,r=0;r<t.length;r++)t[r].updateValueWithDefaults()},t.prototype.updateCustomWidgets=function(e){e&&e.updateCustomWidgets()},t.prototype.currentPageChanging=function(e,t){var r=this.createPageChangeEventOptions(e,t);r.allow=!0,r.allowChanging=!0,this.onCurrentPageChanging.fire(this,r);var n=r.allowChanging&&r.allow;return n&&(this.isCurrentPageRendering=!0),n},t.prototype.currentPageChanged=function(e,t){var r=this.createPageChangeEventOptions(e,t);r.isNextPage&&(t.passed=!0),this.onCurrentPageChanged.fire(this,r)},t.prototype.createPageChangeEventOptions=function(e,t){var r=e&&t?e.visibleIndex-t.visibleIndex:0;return{oldCurrentPage:t,newCurrentPage:e,isNextPage:1===r,isPrevPage:-1===r,isGoingForward:r>0,isGoingBackward:r<0}},t.prototype.getProgress=function(){if(null==this.currentPage)return 0;if("pages"!==this.progressBarType){var e=this.getProgressInfo();return"requiredQuestions"===this.progressBarType?e.requiredQuestionCount>=1?Math.ceil(100*e.requiredAnsweredQuestionCount/e.requiredQuestionCount):100:e.questionCount>=1?Math.ceil(100*e.answeredQuestionCount/e.questionCount):100}var t=this.visiblePages,r=t.indexOf(this.currentPage)+1;return Math.ceil(100*r/t.length)},Object.defineProperty(t.prototype,"progressValue",{get:function(){return this.getPropertyValue("progressValue",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowing",{get:function(){if(this.isDesignMode)return"none";var e=this.currentPage;return e?"show"===e.navigationButtonsVisibility?"none"===this.showNavigationButtons?"bottom":this.showNavigationButtons:"hide"===e.navigationButtonsVisibility?"none":this.showNavigationButtons:"none"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnTop",{get:function(){return this.getIsNavigationButtonsShowingOn("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnBottom",{get:function(){return this.getIsNavigationButtonsShowingOn("bottom")},enumerable:!1,configurable:!0}),t.prototype.getIsNavigationButtonsShowingOn=function(e){var t=this.isNavigationButtonsShowing;return"both"==t||t==e},Object.defineProperty(t.prototype,"isEditMode",{get:function(){return"edit"==this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return"display"==this.mode||"preview"==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateValueTextOnTyping",{get:function(){return"onTyping"==this.textUpdateMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return this._isDesignMode},enumerable:!1,configurable:!0}),t.prototype.setDesignMode=function(e){!!this._isDesignMode!=!!e&&(this._isDesignMode=!!e,this.onQuestionsOnPageModeChanged("standard"))},Object.defineProperty(t.prototype,"showInvisibleElements",{get:function(){return this.getPropertyValue("showInvisibleElements",!1)},set:function(e){var t=this.visiblePages;this.setPropertyValue("showInvisibleElements",e),this.isLoadingFromJson||(this.runConditions(),this.updateAllElementsVisibility(t))},enumerable:!1,configurable:!0}),t.prototype.updateAllElementsVisibility=function(e){for(var t=0;t<this.pages.length;t++){var r=this.pages[t];r.updateElementVisibility(),e.indexOf(r)>-1!=r.isVisible&&this.onPageVisibleChanged.fire(this,{page:r,visible:r.isVisible})}},Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return this.isDesignMode||this.showInvisibleElements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areEmptyElementsHidden",{get:function(){return this.isShowingPreview&&"showAnsweredQuestions"==this.showPreviewBeforeComplete},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCookie",{get:function(){if(!this.cookieName||"undefined"==typeof document)return!1;var e=document.cookie;return e&&e.indexOf(this.cookieName+"=true")>-1},enumerable:!1,configurable:!0}),t.prototype.setCookie=function(){this.cookieName&&"undefined"!=typeof document&&(document.cookie=this.cookieName+"=true; expires=Fri, 31 Dec 9999 0:0:0 GMT")},t.prototype.deleteCookie=function(){this.cookieName&&(document.cookie=this.cookieName+"=;")},t.prototype.nextPage=function(){return!this.isLastPage&&this.doCurrentPageComplete(!1)},t.prototype.hasErrorsOnNavigate=function(e){var t=this;if(this.ignoreValidation||!this.isEditMode)return!1;var r=function(r){r||t.doCurrentPageCompleteCore(e)};return"onComplete"===this.checkErrorsMode?!!this.isLastPage&&!0!==this.validate(!0,!0,r):!0!==this.validateCurrentPage(r)},t.prototype.checkForAsyncQuestionValidation=function(e,t){var r=this;this.clearAsyncValidationQuesitons();for(var n=function(){if(e[i].isRunningValidators){var n=e[i];n.onCompletedAsyncValidators=function(e){r.onCompletedAsyncQuestionValidators(n,t,e)},o.asyncValidationQuesitons.push(e[i])}},o=this,i=0;i<e.length;i++)n();return this.asyncValidationQuesitons.length>0},t.prototype.clearAsyncValidationQuesitons=function(){if(this.asyncValidationQuesitons)for(var e=this.asyncValidationQuesitons,t=0;t<e.length;t++)e[t].onCompletedAsyncValidators=null;this.asyncValidationQuesitons=[]},t.prototype.onCompletedAsyncQuestionValidators=function(e,t,r){if(r){if(this.clearAsyncValidationQuesitons(),t(!0),this.focusOnFirstError&&e&&e.page&&e.page===this.currentPage){for(var n=this.currentPage.questions,o=0;o<n.length;o++)if(n[o]!==e&&n[o].errors.length>0)return;e.focus(!0)}}else{for(var i=this.asyncValidationQuesitons,s=0;s<i.length;s++)if(i[s].isRunningValidators)return;t(!1)}},Object.defineProperty(t.prototype,"isCurrentPageHasErrors",{get:function(){return this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCurrentPageValid",{get:function(){return!this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),t.prototype.hasCurrentPageErrors=function(e){return this.hasPageErrors(void 0,e)},t.prototype.validateCurrentPage=function(e){return this.validatePage(void 0,e)},t.prototype.hasPageErrors=function(e,t){var r=this.validatePage(e,t);return void 0===r?r:!r},t.prototype.validatePage=function(e,t){return e||(e=this.activePage),!e||!this.checkIsPageHasErrors(e)&&(!t||!this.checkForAsyncQuestionValidation(e.questions,(function(e){return t(e)}))||void 0)},t.prototype.hasErrors=function(e,t,r){void 0===e&&(e=!0),void 0===t&&(t=!1);var n=this.validate(e,t,r);return void 0===n?n:!n},t.prototype.validate=function(e,t,r){void 0===e&&(e=!0),void 0===t&&(t=!1),r&&(e=!0);for(var n=this.visiblePages,o=null,i=!0,s=0;s<n.length;s++)n[s].validate(e,!1)||(o||(o=n[s]),i=!1);if(t&&o){this.currentPage=o;var a=o.questions;for(s=0;s<a.length;s++)if(a[s].errors.length>0){a[s].focus(!0);break}}return i&&r?!this.checkForAsyncQuestionValidation(this.getAllQuestions(),(function(e){return r(e)}))||void 0:i},t.prototype.ensureUniqueNames=function(e){if(void 0===e&&(e=null),null==e)for(var t=0;t<this.pages.length;t++)this.ensureUniqueName(this.pages[t]);else this.ensureUniqueName(e)},t.prototype.ensureUniqueName=function(e){if(e.isPage&&this.ensureUniquePageName(e),e.isPanel&&this.ensureUniquePanelName(e),e.isPage||e.isPanel)for(var t=e.elements,r=0;r<t.length;r++)this.ensureUniqueNames(t[r]);else this.ensureUniqueQuestionName(e)},t.prototype.ensureUniquePageName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getPageByName(e)}))},t.prototype.ensureUniquePanelName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getPanelByName(e)}))},t.prototype.ensureUniqueQuestionName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getQuestionByName(e)}))},t.prototype.ensureUniqueElementName=function(e,t){var r=t(e.name);if(r&&r!=e){for(var n=this.getNewName(e.name);t(n);)n=this.getNewName(e.name);e.name=n}},t.prototype.getNewName=function(e){for(var t=e.length;t>0&&e[t-1]>="0"&&e[t-1]<="9";)t--;var r=e.substring(0,t),n=0;return t<e.length&&(n=parseInt(e.substring(t))),r+ ++n},t.prototype.checkIsCurrentPageHasErrors=function(e){return void 0===e&&(e=void 0),this.checkIsPageHasErrors(this.activePage,e)},t.prototype.checkIsPageHasErrors=function(e,t){if(void 0===t&&(t=void 0),void 0===t&&(t=this.focusOnFirstError),!e)return!0;var r=!e.validate(!0,t);return this.fireValidatedErrorsOnPage(e),r},t.prototype.fireValidatedErrorsOnPage=function(e){if(!this.onValidatedErrorsOnCurrentPage.isEmpty&&e){for(var t=e.questions,r=new Array,n=new Array,o=0;o<t.length;o++){var i=t[o];if(i.errors.length>0){r.push(i);for(var s=0;s<i.errors.length;s++)n.push(i.errors[s])}}this.onValidatedErrorsOnCurrentPage.fire(this,{questions:r,errors:n,page:e})}},t.prototype.prevPage=function(){var e=this;if(this.isFirstPage||"starting"===this.state)return!1;this.resetNavigationButton();var t=this.skippedPages.find((function(t){return t.to==e.currentPage}));if(t)this.currentPage=t.from,this.skippedPages.splice(this.skippedPages.indexOf(t),1);else{var r=this.visiblePages,n=r.indexOf(this.currentPage);this.currentPage=r[n-1]}return!0},t.prototype.completeLastPage=function(){var e=this.doCurrentPageComplete(!0);return e&&this.cancelPreview(),e},t.prototype.navigationMouseDown=function(){return this.isNavigationButtonPressed=!0,!0},t.prototype.resetNavigationButton=function(){this.isNavigationButtonPressed=!1},t.prototype.nextPageUIClick=function(){if(!this.mouseDownPage||this.mouseDownPage===this.activePage)return this.mouseDownPage=null,this.nextPage()},t.prototype.nextPageMouseDown=function(){return this.mouseDownPage=this.activePage,this.navigationMouseDown()},t.prototype.showPreview=function(){return this.resetNavigationButton(),!this.hasErrorsOnNavigate(!0)&&!this.doServerValidation(!0,!0)&&(this.showPreviewCore(),!0)},t.prototype.showPreviewCore=function(){var e={allowShowPreview:!0,allow:!0};this.onShowingPreview.fire(this,e),this.isShowingPreview=e.allowShowPreview&&e.allow},t.prototype.cancelPreview=function(e){void 0===e&&(e=null),this.isShowingPreview&&(this.isShowingPreview=!1,o.Helpers.isValueEmpty(e)&&this.visiblePageCount>0&&(e=this.visiblePageCount-1),null!==e&&(this.currentPage=e))},t.prototype.cancelPreviewByPage=function(e){this.cancelPreview(e.originalPage)},t.prototype.doCurrentPageComplete=function(e){return!this.isValidatingOnServer&&(this.resetNavigationButton(),!this.hasErrorsOnNavigate(e)&&this.doCurrentPageCompleteCore(e))},t.prototype.doCurrentPageCompleteCore=function(e){return!this.doServerValidation(e)&&(e?(this.currentPage.passed=!0,this.doComplete()):(this.doNextPage(),!0))},Object.defineProperty(t.prototype,"isSinglePage",{get:function(){return"singlePage"==this.questionsOnPageMode},set:function(e){this.questionsOnPageMode=e?"singlePage":"standard"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOnPageMode",{get:function(){return this.getPropertyValue("questionsOnPageMode")},set:function(e){this.setPropertyValue("questionsOnPageMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"firstPageIsStarted",{get:function(){return this.getPropertyValue("firstPageIsStarted")},set:function(e){this.setPropertyValue("firstPageIsStarted",e)},enumerable:!1,configurable:!0}),t.prototype.isPageStarted=function(e){return this.firstPageIsStarted&&this.pages.length>1&&this.pages[0]===e},Object.defineProperty(t.prototype,"showPreviewBeforeComplete",{get:function(){return this.getPropertyValue("showPreviewBeforeComplete")},set:function(e){this.setPropertyValue("showPreviewBeforeComplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowPreviewBeforeComplete",{get:function(){var e=this.showPreviewBeforeComplete;return"showAllQuestions"==e||"showAnsweredQuestions"==e},enumerable:!1,configurable:!0}),t.prototype.onFirstPageIsStartedChanged=function(){this.isStartedState=this.firstPageIsStarted&&this.pages.length>1,this.pageVisibilityChanged(this.pages[0],!this.isStartedState)},t.prototype.onShowingPreviewChanged=function(){this.isDesignMode||(this.isShowingPreview?(this.runningPages=this.pages.slice(0,this.pages.length),this.setupPagesForPageModes(!0)):(this.runningPages&&this.restoreOrigionalPages(this.runningPages),this.runningPages=void 0),this.runConditions(),this.updateAllElementsVisibility(this.pages),this.updateVisibleIndexes(),this.currentPageNo=0)},t.prototype.onQuestionsOnPageModeChanged=function(e){this.isShowingPreview||("standard"==this.questionsOnPageMode||this.isDesignMode?(this.origionalPages&&this.restoreOrigionalPages(this.origionalPages),this.origionalPages=void 0):(e&&"standard"!=e||(this.origionalPages=this.pages.slice(0,this.pages.length)),this.setupPagesForPageModes(this.isSinglePage)),this.runConditions(),this.updateVisibleIndexes())},t.prototype.restoreOrigionalPages=function(e){this.questionHashesClear(),this.pages.splice(0,this.pages.length);for(var t=0;t<e.length;t++)this.pages.push(e[t])},t.prototype.getPageStartIndex=function(){return this.firstPageIsStarted&&this.pages.length>0?1:0},t.prototype.setupPagesForPageModes=function(t){this.questionHashesClear();var r=this.getPageStartIndex();e.prototype.startLoadingFromJson.call(this);var n=this.createPagesForQuestionOnPageMode(t,r),o=this.pages.length-r;this.pages.splice(r,o);for(var i=0;i<n.length;i++)this.pages.push(n[i]);for(e.prototype.endLoadingFromJson.call(this),i=0;i<n.length;i++)n[i].setSurveyImpl(this,!0);this.doElementsOnLoad(),this.updateCurrentPage()},t.prototype.createPagesForQuestionOnPageMode=function(e,t){return e?[this.createSinglePage(t)]:this.createPagesForEveryQuestion(t)},t.prototype.createSinglePage=function(e){var t=this.createNewPage("all");t.setSurveyImpl(this);for(var r=e;r<this.pages.length;r++){var n=this.pages[r],o=i.Serializer.createClass("panel");o.originalPage=n,t.addPanel(o);var s=(new i.JsonObject).toJsonObject(n);(new i.JsonObject).toObject(s,o),this.showPageTitles||(o.title="")}return t},t.prototype.createPagesForEveryQuestion=function(e){for(var t=[],r=e;r<this.pages.length;r++){var n=this.pages[r];n.setWasShown(!0);for(var o=0;o<n.elements.length;o++){var s=n.elements[o],a=i.Serializer.createClass(s.getType());if(a){var l=new i.JsonObject;l.lightSerializing=!0;var u=l.toJsonObject(n),c=i.Serializer.createClass(n.getType());c.fromJSON(u),c.name=s.name,c.setSurveyImpl(this),t.push(c);var p=(new i.JsonObject).toJsonObject(s);c.addElement(a),(new i.JsonObject).toObject(p,a);for(var d=0;d<c.questions.length;d++)this.questionHashesAdded(c.questions[d])}}}return t},Object.defineProperty(t.prototype,"isFirstPage",{get:function(){return this.getPropertyValue("isFirstPage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastPage",{get:function(){return this.getPropertyValue("isLastPage")},enumerable:!1,configurable:!0}),t.prototype.updateButtonsVisibility=function(){this.updateIsFirstLastPageState(),this.setPropertyValue("isShowPrevButton",this.calcIsShowPrevButton()),this.setPropertyValue("isShowNextButton",this.calcIsShowNextButton()),this.setPropertyValue("isCompleteButtonVisible",this.calcIsCompleteButtonVisible()),this.setPropertyValue("isPreviewButtonVisible",this.calcIsPreviewButtonVisible()),this.setPropertyValue("isCancelPreviewButtonVisible",this.calcIsCancelPreviewButtonVisible())},Object.defineProperty(t.prototype,"isShowPrevButton",{get:function(){return this.getPropertyValue("isShowPrevButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowNextButton",{get:function(){return this.getPropertyValue("isShowNextButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompleteButtonVisible",{get:function(){return this.getPropertyValue("isCompleteButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPreviewButtonVisible",{get:function(){return this.getPropertyValue("isPreviewButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCancelPreviewButtonVisible",{get:function(){return this.getPropertyValue("isCancelPreviewButtonVisible")},enumerable:!1,configurable:!0}),t.prototype.updateIsFirstLastPageState=function(){var e=this.currentPage;this.setPropertyValue("isFirstPage",!!e&&e===this.firstVisiblePage),this.setPropertyValue("isLastPage",!!e&&e===this.lastVisiblePage)},t.prototype.calcIsShowPrevButton=function(){if(this.isFirstPage||!this.showPrevButton||"running"!==this.state)return!1;var e=this.visiblePages[this.currentPageNo-1];return this.getPageMaxTimeToFinish(e)<=0},t.prototype.calcIsShowNextButton=function(){return"running"===this.state&&!this.isLastPage&&!this.canBeCompletedByTrigger},t.prototype.calcIsCompleteButtonVisible=function(){var e=this.state;return this.isEditMode&&("running"===this.state&&(this.isLastPage&&!this.isShowPreviewBeforeComplete||this.canBeCompletedByTrigger)||"preview"===e)},t.prototype.calcIsPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"running"==this.state&&this.isLastPage},t.prototype.calcIsCancelPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"preview"==this.state},Object.defineProperty(t.prototype,"firstVisiblePage",{get:function(){for(var e=this.pages,t=0;t<e.length;t++)if(this.isPageInVisibleList(e[t]))return e[t];return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastVisiblePage",{get:function(){for(var e=this.pages,t=e.length-1;t>=0;t--)if(this.isPageInVisibleList(e[t]))return e[t];return null},enumerable:!1,configurable:!0}),t.prototype.doComplete=function(e){if(void 0===e&&(e=!1),!this.isCompleted)return this.checkOnCompletingEvent(e)?(this.checkOnPageTriggers(!0),this.stopTimer(),this.isCompleted=!0,this.clearUnusedValues(),this.saveDataOnComplete(e),this.setCookie(),!0):(this.isCompleted=!1,!1)},t.prototype.saveDataOnComplete=function(e){var t=this;void 0===e&&(e=!1);var r=this.hasCookie,n=function(e){a=!0,t.setCompletedState("saving",e)},o=function(e){t.setCompletedState("error",e)},i=function(e){t.setCompletedState("success",e),t.navigateTo()},s=function(e){t.setCompletedState("","")},a=!1,l={isCompleteOnTrigger:e,showSaveInProgress:n,showSaveError:o,showSaveSuccess:i,clearSaveMessages:s,showDataSaving:n,showDataSavingError:o,showDataSavingSuccess:i,showDataSavingClear:s};this.onComplete.fire(this,l),!r&&this.surveyPostId&&this.sendResult(),a||this.navigateTo()},t.prototype.checkOnCompletingEvent=function(e){var t={allowComplete:!0,allow:!0,isCompleteOnTrigger:e};return this.onCompleting.fire(this,t),t.allowComplete&&t.allow},t.prototype.start=function(){return!!this.firstPageIsStarted&&!this.checkIsPageHasErrors(this.startedPage,!0)&&(this.isStartedState=!1,this.startTimerFromUI(),this.onStarted.fire(this,{}),this.updateVisibleIndexes(),this.currentPage&&this.currentPage.locStrsChanged(),!0)},Object.defineProperty(t.prototype,"isValidatingOnServer",{get:function(){return this.getPropertyValue("isValidatingOnServer",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsValidatingOnServer=function(e){e!=this.isValidatingOnServer&&(this.setPropertyValue("isValidatingOnServer",e),this.onIsValidatingOnServerChanged())},t.prototype.createServerValidationOptions=function(e,t){var r=this,n={data:{},errors:{},survey:this,complete:function(){r.completeServerValidation(n,t)}};if(e&&"onComplete"===this.checkErrorsMode)n.data=this.data;else for(var o=this.activePage.questions,i=0;i<o.length;i++){var s=o[i];if(s.visible){var a=this.getValue(s.getValueName());this.isValueEmpty(a)||(n.data[s.getValueName()]=a)}}return n},t.prototype.onIsValidatingOnServerChanged=function(){},t.prototype.doServerValidation=function(e,t){var r=this;if(void 0===t&&(t=!1),!this.onServerValidateQuestions||this.onServerValidateQuestions.isEmpty)return!1;if(!e&&"onComplete"===this.checkErrorsMode)return!1;this.setIsValidatingOnServer(!0);var n="function"==typeof this.onServerValidateQuestions;return this.serverValidationEventCount=n?1:this.onServerValidateQuestions.length,n?this.onServerValidateQuestions(this,this.createServerValidationOptions(e,t)):this.onServerValidateQuestions.fireByCreatingOptions(this,(function(){return r.createServerValidationOptions(e,t)})),!0},t.prototype.completeServerValidation=function(e,t){if(!(this.serverValidationEventCount>1&&(this.serverValidationEventCount--,e&&e.errors&&0===Object.keys(e.errors).length))&&(this.serverValidationEventCount=0,this.setIsValidatingOnServer(!1),e||e.survey)){var r=e.survey,n=!1;if(e.errors){var o=this.focusOnFirstError;for(var i in e.errors){var s=r.getQuestionByName(i);s&&s.errors&&(n=!0,s.addError(new h.CustomError(e.errors[i],this)),o&&(o=!1,s.page&&(this.currentPage=s.page),s.focus(!0)))}this.fireValidatedErrorsOnPage(this.currentPage)}n||(t?this.showPreviewCore():r.isLastPage?r.doComplete():r.doNextPage())}},t.prototype.doNextPage=function(){var e=this.currentPage;if(this.checkOnPageTriggers(!1),this.isCompleted)this.doComplete(!0);else if(this.sendResultOnPageNext&&this.sendResult(this.surveyPostId,this.clientId,!0),e===this.currentPage){var t=this.visiblePages,r=t.indexOf(this.currentPage);this.currentPage=t[r+1]}},t.prototype.setCompleted=function(){this.doComplete(!0)},t.prototype.canBeCompleted=function(e,t){if(y.settings.changeNavigationButtonsOnCompleteTrigger){var r=this.canBeCompletedByTrigger;this.completedByTriggers||(this.completedByTriggers={}),t?this.completedByTriggers[e.id]=!0:delete this.completedByTriggers[e.id],r!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility()}},Object.defineProperty(t.prototype,"canBeCompletedByTrigger",{get:function(){return!!this.completedByTriggers&&Object.keys(this.completedByTriggers).length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedHtml",{get:function(){var e=this.renderedCompletedHtml;return e?this.processHtml(e,"completed"):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedBeforeHtml",{get:function(){return this.processHtml(this.completedBeforeHtml,"completed-before")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedLoadingHtml",{get:function(){return this.processHtml(this.loadingHtml,"loading")},enumerable:!1,configurable:!0}),t.prototype.getProgressInfo=function(){var e=this.isDesignMode?this.pages:this.visiblePages;return a.SurveyElement.getProgressInfoByElements(e,!1)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.getPropertyValue("progressText","");return e||(this.updateProgressText(),e=this.getPropertyValue("progressText","")),e},enumerable:!1,configurable:!0}),t.prototype.updateProgressText=function(e){void 0===e&&(e=!1),this.isCalculatingProgressText||e&&"pages"==this.progressBarType&&this.onProgressText.isEmpty||(this.isCalculatingProgressText=!0,this.setPropertyValue("progressText",this.getProgressText()),this.setPropertyValue("progressValue",this.getProgress()),this.isCalculatingProgressText=!1)},t.prototype.getProgressText=function(){if(!this.isDesignMode&&null==this.currentPage)return"";var e={questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0,text:""},t=this.progressBarType.toLowerCase();if("questions"===t||"requiredquestions"===t||"correctquestions"===t||!this.onProgressText.isEmpty){var r=this.getProgressInfo();e.questionCount=r.questionCount,e.answeredQuestionCount=r.answeredQuestionCount,e.requiredQuestionCount=r.requiredQuestionCount,e.requiredAnsweredQuestionCount=r.requiredAnsweredQuestionCount}return e.text=this.getProgressTextCore(e),this.onProgressText.fire(this,e),e.text},t.prototype.getProgressTextCore=function(e){var t=this.progressBarType.toLowerCase();if("questions"===t)return this.getLocalizationFormatString("questionsProgressText",e.answeredQuestionCount,e.questionCount);if("requiredquestions"===t)return this.getLocalizationFormatString("questionsProgressText",e.requiredAnsweredQuestionCount,e.requiredQuestionCount);if("correctquestions"===t){var r=this.getCorrectedAnswerCount();return this.getLocalizationFormatString("questionsProgressText",r,e.questionCount)}var n=this.isDesignMode?this.pages:this.visiblePages,o=n.indexOf(this.currentPage)+1;return this.getLocalizationFormatString("progressText",o,n.length)},t.prototype.getRootCss=function(){return(new C.CssClassBuilder).append(this.css.root).append(this.css.rootMobile,this.isMobile).append(this.css.rootReadOnly,"display"===this.mode).toString()},t.prototype.afterRenderSurvey=function(e){var t=this;this.destroyResizeObserver(),Array.isArray(e)&&(e=a.SurveyElement.GetFirstNonTextElement(e));var r=e,n=this.css.variables;if(n){var o=Number.parseFloat(window.getComputedStyle(r).getPropertyValue(n.mobileWidth));if(o){var i=!1;this.resizeObserver=new ResizeObserver((function(){i=!(i||!Object(v.isContainerVisible)(r))&&t.processResponsiveness(r.offsetWidth,o)})),this.resizeObserver.observe(r)}}this.onAfterRenderSurvey.fire(this,{survey:this,htmlElement:e})},t.prototype.processResponsiveness=function(e,t){var r=e<t;return this.isMobile!==r&&(this.setIsMobile(r),!0)},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0)},t.prototype.updateQuestionCssClasses=function(e,t){this.onUpdateQuestionCssClasses.fire(this,{question:e,cssClasses:t})},t.prototype.updatePanelCssClasses=function(e,t){this.onUpdatePanelCssClasses.fire(this,{panel:e,cssClasses:t})},t.prototype.updatePageCssClasses=function(e,t){this.onUpdatePageCssClasses.fire(this,{page:e,cssClasses:t})},t.prototype.updateChoiceItemCss=function(e,t){t.question=e,this.onUpdateChoiceItemCss.fire(this,t)},t.prototype.afterRenderPage=function(e){var t=this;for(this.isDesignMode||this.isFocusingQuestion||setTimeout((function(){return t.scrollToTopOnPageChange(!t.isFirstPageRendering)}),1);this.afterRenderPageTasks.length>0;)this.afterRenderPageTasks.shift()();this.isFirstPageRendering=!1,this.onAfterRenderPage.isEmpty||this.onAfterRenderPage.fire(this,{page:this.activePage,htmlElement:e})},t.prototype.afterRenderHeader=function(e){this.onAfterRenderHeader.isEmpty||this.onAfterRenderHeader.fire(this,{htmlElement:e})},t.prototype.afterRenderQuestion=function(e,t){this.onAfterRenderQuestion.fire(this,{question:e,htmlElement:t})},t.prototype.afterRenderQuestionInput=function(e,t){if(!this.onAfterRenderQuestionInput.isEmpty){var r=e.inputId,n=y.settings.environment.root;if(r&&t.id!==r&&void 0!==n){var o=n.getElementById(r);o&&(t=o)}this.onAfterRenderQuestionInput.fire(this,{question:e,htmlElement:t})}},t.prototype.afterRenderPanel=function(e,t){this.onAfterRenderPanel.fire(this,{panel:e,htmlElement:t})},t.prototype.whenQuestionFocusIn=function(e){this.onFocusInQuestion.fire(this,{question:e})},t.prototype.whenPanelFocusIn=function(e){this.onFocusInPanel.fire(this,{panel:e})},t.prototype.rebuildQuestionChoices=function(){this.getAllQuestions().forEach((function(e){return e.surveyChoiceItemVisibilityChange()}))},t.prototype.canChangeChoiceItemsVisibility=function(){return!this.onShowingChoiceItem.isEmpty},t.prototype.getChoiceItemVisibility=function(e,t,r){var n={question:e,item:t,visible:r};return this.onShowingChoiceItem.fire(this,n),n.visible},t.prototype.loadQuestionChoices=function(e){this.onChoicesLazyLoad.fire(this,e)},t.prototype.getChoiceDisplayValue=function(e){this.onGetChoiceDisplayValue.isEmpty?e.setItems(null):this.onGetChoiceDisplayValue.fire(this,e)},t.prototype.matrixBeforeRowAdded=function(e){this.onMatrixBeforeRowAdded.fire(this,e)},t.prototype.matrixRowAdded=function(e,t){this.onMatrixRowAdded.fire(this,{question:e,row:t})},t.prototype.matrixColumnAdded=function(e,t){this.onMatrixColumnAdded.fire(this,{question:e,column:t})},t.prototype.multipleTextItemAdded=function(e,t){this.onMultipleTextItemAdded.fire(this,{question:e,item:t})},t.prototype.getQuestionByValueNameFromArray=function(e,t,r){var n=this.getQuestionsByValueName(e);if(n){for(var o=0;o<n.length;o++){var i=n[o].getQuestionFromArray(t,r);if(i)return i}return null}},t.prototype.matrixRowRemoved=function(e,t,r){this.onMatrixRowRemoved.fire(this,{question:e,rowIndex:t,row:r})},t.prototype.matrixRowRemoving=function(e,t,r){var n={question:e,rowIndex:t,row:r,allow:!0};return this.onMatrixRowRemoving.fire(this,n),n.allow},t.prototype.matrixAllowRemoveRow=function(e,t,r){var n={question:e,rowIndex:t,row:r,allow:!0};return this.onMatrixAllowRemoveRow.fire(this,n),n.allow},t.prototype.matrixCellCreating=function(e,t){t.question=e,this.onMatrixCellCreating.fire(this,t)},t.prototype.matrixCellCreated=function(e,t){t.question=e,this.onMatrixCellCreated.fire(this,t)},t.prototype.matrixAfterCellRender=function(e,t){t.question=e,this.onMatrixAfterCellRender.fire(this,t)},t.prototype.matrixCellValueChanged=function(e,t){t.question=e,this.onMatrixCellValueChanged.fire(this,t)},t.prototype.matrixCellValueChanging=function(e,t){t.question=e,this.onMatrixCellValueChanging.fire(this,t)},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return"onValueChanging"===this.checkErrorsMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnValueChanged",{get:function(){return"onValueChanged"===this.checkErrorsMode},enumerable:!1,configurable:!0}),t.prototype.matrixCellValidate=function(e,t){return t.question=e,this.onMatrixCellValidate.fire(this,t),t.error?new h.CustomError(t.error,this):null},t.prototype.dynamicPanelAdded=function(e,t,r){if(this.isLoadingFromJson||this.updateVisibleIndexes(),!this.onDynamicPanelAdded.isEmpty){var n=e.panels;void 0===t&&(r=n[t=n.length-1]),this.onDynamicPanelAdded.fire(this,{question:e,panel:r,panelIndex:t})}},t.prototype.dynamicPanelRemoved=function(e,t,r){for(var n=r?r.questions:[],o=0;o<n.length;o++)n[o].clearOnDeletingContainer();this.updateVisibleIndexes(),this.onDynamicPanelRemoved.fire(this,{question:e,panelIndex:t,panel:r})},t.prototype.dynamicPanelRemoving=function(e,t,r){var n={question:e,panelIndex:t,panel:r,allow:!0};return this.onDynamicPanelRemoving.fire(this,n),n.allow},t.prototype.dynamicPanelItemValueChanged=function(e,t){t.question=e,t.panelIndex=t.itemIndex,t.panelData=t.itemValue,this.onDynamicPanelItemValueChanged.fire(this,t)},t.prototype.dragAndDropAllow=function(e){return this.onDragDropAllow.fire(this,e),e.allow},t.prototype.elementContentVisibilityChanged=function(e){this.currentPage&&this.currentPage.ensureRowsVisibility(),this.onElementContentVisibilityChanged.fire(this,{element:e})},t.prototype.getUpdatedPanelFooterActions=function(e,t,r){var n={question:r,panel:e,actions:t};return this.onGetPanelFooterActions.fire(this,n),n.actions},t.prototype.getUpdatedElementTitleActions=function(e,t){return e.isPage?this.getUpdatedPageTitleActions(e,t):e.isPanel?this.getUpdatedPanelTitleActions(e,t):this.getUpdatedQuestionTitleActions(e,t)},t.prototype.getUpdatedQuestionTitleActions=function(e,t){var r={question:e,titleActions:t};return this.onGetQuestionTitleActions.fire(this,r),r.titleActions},t.prototype.getUpdatedPanelTitleActions=function(e,t){var r={panel:e,titleActions:t};return this.onGetPanelTitleActions.fire(this,r),r.titleActions},t.prototype.getUpdatedPageTitleActions=function(e,t){var r={page:e,titleActions:t};return this.onGetPageTitleActions.fire(this,r),r.titleActions},t.prototype.getUpdatedMatrixRowActions=function(e,t,r){var n={question:e,actions:r,row:t};return this.onGetMatrixRowActions.fire(this,n),n.actions},t.prototype.scrollElementToTop=function(e,t,r,n){var o={element:e,question:t,page:r,elementId:n,cancel:!1};this.onScrollingElementToTop.fire(this,o),o.cancel||a.SurveyElement.ScrollElementToTop(o.elementId)},t.prototype.uploadFiles=function(e,t,r,n){this.onUploadFiles.isEmpty?n("error",r):this.onUploadFiles.fire(this,{question:e,name:t,files:r||[],callback:n}),this.surveyPostId&&this.uploadFilesCore(t,r,n)},t.prototype.downloadFile=function(e,t,r,n){this.onDownloadFile.isEmpty&&n&&n("success",r.content||r),this.onDownloadFile.fire(this,{question:e,name:t,content:r.content||r,fileValue:r,callback:n})},t.prototype.clearFiles=function(e,t,r,n,o){this.onClearFiles.isEmpty&&o&&o("success",r),this.onClearFiles.fire(this,{question:e,name:t,value:r,fileName:n,callback:o})},t.prototype.updateChoicesFromServer=function(e,t,r){var n={question:e,choices:t,serverResult:r};return this.onLoadChoicesFromServer.fire(this,n),n.choices},t.prototype.loadedChoicesFromServer=function(e){this.locStrsChanged()},t.prototype.createSurveyService=function(){return new p.dxSurveyService},t.prototype.uploadFilesCore=function(e,t,r){var n=this,o=[];t.forEach((function(e){r&&r("uploading",e),n.createSurveyService().sendFile(n.surveyPostId,e,(function(n,i){n?(o.push({content:i,file:e}),o.length===t.length&&r&&r("success",o)):r&&r("error",{response:i,file:e})}))}))},t.prototype.getPage=function(e){return this.pages[e]},t.prototype.addPage=function(e,t){void 0===t&&(t=-1),null!=e&&(t<0||t>=this.pages.length?this.pages.push(e):this.pages.splice(t,0,e))},t.prototype.addNewPage=function(e,t){void 0===e&&(e=null),void 0===t&&(t=-1);var r=this.createNewPage(e);return this.addPage(r,t),r},t.prototype.removePage=function(e){var t=this.pages.indexOf(e);t<0||(this.pages.splice(t,1),this.currentPage==e&&(this.currentPage=this.pages.length>0?this.pages[0]:null))},t.prototype.getQuestionByName=function(e,t){if(void 0===t&&(t=!1),!e)return null;t&&(e=e.toLowerCase());var r=(t?this.questionHashes.namesInsensitive:this.questionHashes.names)[e];return r?r[0]:null},t.prototype.findQuestionByName=function(e){return this.getQuestionByName(e)},t.prototype.getQuestionByValueName=function(e,t){void 0===t&&(t=!1);var r=this.getQuestionsByValueName(e,t);return r?r[0]:null},t.prototype.getQuestionsByValueName=function(e,t){return void 0===t&&(t=!1),(t?this.questionHashes.valueNamesInsensitive:this.questionHashes.valueNames)[e]||null},t.prototype.getCalculatedValueByName=function(e){for(var t=0;t<this.calculatedValues.length;t++)if(e==this.calculatedValues[t].name)return this.calculatedValues[t];return null},t.prototype.getQuestionsByNames=function(e,t){void 0===t&&(t=!1);var r=[];if(!e)return r;for(var n=0;n<e.length;n++)if(e[n]){var o=this.getQuestionByName(e[n],t);o&&r.push(o)}return r},t.prototype.getPageByElement=function(e){for(var t=0;t<this.pages.length;t++){var r=this.pages[t];if(r.containsElement(e))return r}return null},t.prototype.getPageByQuestion=function(e){return this.getPageByElement(e)},t.prototype.getPageByName=function(e){for(var t=0;t<this.pages.length;t++)if(this.pages[t].name==e)return this.pages[t];return null},t.prototype.getPagesByNames=function(e){var t=[];if(!e)return t;for(var r=0;r<e.length;r++)if(e[r]){var n=this.getPageByName(e[r]);n&&t.push(n)}return t},t.prototype.getAllQuestions=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var r=new Array,n=0;n<this.pages.length;n++)this.pages[n].addQuestionsToList(r,e,t);return r},t.prototype.getQuizQuestions=function(){for(var e=new Array,t=this.getPageStartIndex();t<this.pages.length;t++)if(this.pages[t].isVisible)for(var r=this.pages[t].questions,n=0;n<r.length;n++){var o=r[n];o.quizQuestionCount>0&&e.push(o)}return e},t.prototype.getPanelByName=function(e,t){void 0===t&&(t=!1);var r=this.getAllPanels();t&&(e=e.toLowerCase());for(var n=0;n<r.length;n++){var o=r[n].name;if(t&&(o=o.toLowerCase()),o==e)return r[n]}return null},t.prototype.getAllPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var r=new Array,n=0;n<this.pages.length;n++)this.pages[n].addPanelsIntoList(r,e,t);return r},t.prototype.createNewPage=function(e){var t=i.Serializer.createClass("page");return t.name=e,t},t.prototype.questionOnValueChanging=function(e,t){if(this.editingObj){var r=i.Serializer.findProperty(this.editingObj.getType(),e);r&&(t=r.settingValue(this.editingObj,t))}if(this.onValueChanging.isEmpty)return t;var n={name:e,question:this.getQuestionByValueName(e),value:this.getUnbindValue(t),oldValue:this.getValue(e)};return this.onValueChanging.fire(this,n),n.value},t.prototype.updateQuestionValue=function(e,t){if(!this.isLoadingFromJson){var r=this.getQuestionsByValueName(e);if(r)for(var n=0;n<r.length;n++){var o=r[n].value;(o===t&&Array.isArray(o)&&this.editingObj||!this.isTwoValueEquals(o,t))&&r[n].updateValueFromSurvey(t)}}},t.prototype.checkQuestionErrorOnValueChanged=function(e){!this.isNavigationButtonPressed&&("onValueChanged"===this.checkErrorsMode||e.getAllErrors().length>0)&&this.checkQuestionErrorOnValueChangedCore(e)},t.prototype.checkQuestionErrorOnValueChangedCore=function(e){var t=e.getAllErrors().length,r=!e.validate(!0,{isOnValueChanged:!this.isValidateOnValueChanging}),n=this.checkErrorsMode.indexOf("Value")>-1;return e.page&&n&&(t>0||e.getAllErrors().length>0)&&this.fireValidatedErrorsOnPage(e.page),r},t.prototype.checkErrorsOnValueChanging=function(e,t){if(this.isLoadingFromJson)return!1;var r=this.getQuestionsByValueName(e);if(!r)return!1;for(var n=!1,o=0;o<r.length;o++){var i=r[o];this.isTwoValueEquals(i.valueForSurvey,t)||(i.value=t),this.checkQuestionErrorOnValueChangedCore(i)&&(n=!0),n=n||i.errors.length>0}return n},t.prototype.notifyQuestionOnValueChanged=function(e,t){if(!this.isLoadingFromJson){var r=this.getQuestionsByValueName(e);if(r)for(var n=0;n<r.length;n++){var o=r[n];this.checkQuestionErrorOnValueChanged(o),o.onSurveyValueChanged(t),this.onValueChanged.fire(this,{name:e,question:o,value:t})}else this.onValueChanged.fire(this,{name:e,question:null,value:t});this.isDisposed||(this.checkElementsBindings(e,t),this.notifyElementsOnAnyValueOrVariableChanged(e))}},t.prototype.checkElementsBindings=function(e,t){this.isRunningElementsBindings=!0;for(var r=0;r<this.pages.length;r++)this.pages[r].checkBindings(e,t);this.isRunningElementsBindings=!1,this.updateVisibleIndexAfterBindings&&(this.updateVisibleIndexes(),this.updateVisibleIndexAfterBindings=!1)},t.prototype.notifyElementsOnAnyValueOrVariableChanged=function(e){if("processing"!==this.isEndLoadingFromJson)if(this.isRunningConditions)this.conditionNotifyElementsOnAnyValueOrVariableChanged=!0;else{for(var t=0;t<this.pages.length;t++)this.pages[t].onAnyValueChanged(e);this.isEndLoadingFromJson||this.locStrsChanged()}},t.prototype.updateAllQuestionsValue=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++){var r=e[t],n=r.getValueName();r.updateValueFromSurvey(this.getValue(n)),r.requireUpdateCommentValue&&r.updateCommentFromSurvey(this.getComment(n))}},t.prototype.notifyAllQuestionsOnValueChanged=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].onSurveyValueChanged(this.getValue(e[t].getValueName()))},t.prototype.checkOnPageTriggers=function(e){for(var t=this.getCurrentPageQuestions(!0),r={},n=0;n<t.length;n++){var o=t[n].getValueName();r[o]=this.getValue(o)}this.addCalculatedValuesIntoFilteredValues(r),this.checkTriggers(r,!0,e)},t.prototype.getCurrentPageQuestions=function(e){void 0===e&&(e=!1);var t=[],r=this.currentPage;if(!r)return t;for(var n=0;n<r.questions.length;n++){var o=r.questions[n];(e||o.visible)&&o.name&&t.push(o)}return t},t.prototype.checkTriggers=function(e,t,r){if(void 0===r&&(r=!1),!this.isCompleted&&0!=this.triggers.length&&!this.isDisplayMode)if(this.isTriggerIsRunning)for(var n in this.triggerValues=this.getFilteredValues(),e)this.triggerKeys[n]=e[n];else{this.isTriggerIsRunning=!0,this.triggerKeys=e,this.triggerValues=this.getFilteredValues();for(var o=this.getFilteredProperties(),i=this.canBeCompletedByTrigger,s=0;s<this.triggers.length;s++)this.triggers[s].checkExpression(t,r,this.triggerKeys,this.triggerValues,o);i!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility(),this.isTriggerIsRunning=!1}},t.prototype.doElementsOnLoad=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].onSurveyLoad()},Object.defineProperty(t.prototype,"isRunningConditions",{get:function(){return!!this.conditionValues},enumerable:!1,configurable:!0}),t.prototype.runConditions=function(){if(!this.isCompleted&&"processing"!==this.isEndLoadingFromJson&&!this.isRunningConditions){this.conditionValues=this.getFilteredValues();var e=this.getFilteredProperties(),t=this.pages.indexOf(this.currentPage);this.runConditionsCore(e),this.checkIfNewPagesBecomeVisible(t),this.conditionValues=null,this.isValueChangedOnRunningCondition&&this.conditionRunnerCounter<y.settings.maximumConditionRunCountOnValueChanged?(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter++,this.runConditions()):(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter=0,this.conditionUpdateVisibleIndexes&&(this.conditionUpdateVisibleIndexes=!1,this.updateVisibleIndexes()),this.conditionNotifyElementsOnAnyValueOrVariableChanged&&(this.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,this.notifyElementsOnAnyValueOrVariableChanged("")))}},t.prototype.runConditionOnValueChanged=function(e,t){this.isRunningConditions?(this.conditionValues[e]=t,this.isValueChangedOnRunningCondition=!0):this.runConditions()},t.prototype.runConditionsCore=function(t){for(var r=this.pages,n=0;n<this.calculatedValues.length;n++)this.calculatedValues[n].resetCalculation();for(n=0;n<this.calculatedValues.length;n++)this.calculatedValues[n].doCalculation(this.calculatedValues,this.conditionValues,t);for(e.prototype.runConditionCore.call(this,this.conditionValues,t),n=0;n<r.length;n++)r[n].runCondition(this.conditionValues,t)},t.prototype.checkIfNewPagesBecomeVisible=function(e){var t=this.pages.indexOf(this.currentPage);if(!(t<=e+1))for(var r=e+1;r<t;r++)if(this.pages[r].isVisible){this.currentPage=this.pages[r];break}},t.prototype.sendResult=function(e,t,r){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===r&&(r=!1),this.isEditMode&&(r&&this.onPartialSend&&this.onPartialSend.fire(this,null),!e&&this.surveyPostId&&(e=this.surveyPostId),e&&(t&&(this.clientId=t),!r||this.clientId))){var n=this;this.surveyShowDataSaving&&this.setCompletedState("saving",""),this.createSurveyService().sendResult(e,this.data,(function(e,t,r){n.surveyShowDataSaving&&(e?n.setCompletedState("success",""):n.setCompletedState("error",t)),n.onSendResult.fire(n,{success:e,response:t,request:r})}),this.clientId,r)}},t.prototype.getResult=function(e,t){var r=this;this.createSurveyService().getResult(e,t,(function(e,t,n,o){r.onGetResult.fire(r,{success:e,data:t,dataList:n,response:o})}))},t.prototype.loadSurveyFromService=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null),e&&(this.surveyId=e),t&&(this.clientId=t);var r=this;this.isLoading=!0,this.onLoadingSurveyFromService(),t?this.createSurveyService().getSurveyJsonAndIsCompleted(this.surveyId,this.clientId,(function(e,t,n,o){r.isLoading=!1,e&&(r.isCompletedBefore="completed"==n,r.loadSurveyFromServiceJson(t))})):this.createSurveyService().loadSurvey(this.surveyId,(function(e,t,n){r.isLoading=!1,e&&r.loadSurveyFromServiceJson(t)}))},t.prototype.loadSurveyFromServiceJson=function(e){e&&(this.fromJSON(e),this.notifyAllQuestionsOnValueChanged(),this.onLoadSurveyFromService(),this.onLoadedSurveyFromService.fire(this,{}))},t.prototype.onLoadingSurveyFromService=function(){},t.prototype.onLoadSurveyFromService=function(){},t.prototype.resetVisibleIndexes=function(){for(var e=this.getAllQuestions(!0),t=0;t<e.length;t++)e[t].setVisibleIndex(-1);this.updateVisibleIndexes()},t.prototype.updateVisibleIndexes=function(){if(!this.isLoadingFromJson&&!this.isEndLoadingFromJson)if(this.isRunningConditions&&this.onQuestionVisibleChanged.isEmpty&&this.onPageVisibleChanged.isEmpty)this.conditionUpdateVisibleIndexes=!0;else if(this.isRunningElementsBindings)this.updateVisibleIndexAfterBindings=!0;else{if(this.updatePageVisibleIndexes(this.showPageNumbers),"onPage"==this.showQuestionNumbers)for(var e=this.visiblePages,t=0;t<e.length;t++)e[t].setVisibleIndex(0);else{var r="on"==this.showQuestionNumbers?0:-1;for(t=0;t<this.pages.length;t++)r+=this.pages[t].setVisibleIndex(r)}this.updateProgressText(!0)}},t.prototype.updatePageVisibleIndexes=function(e){this.updateButtonsVisibility();for(var t=0,r=0;r<this.pages.length;r++){var n=this.pages[r],o=n.isVisible&&(r>0||!n.isStartPage);n.visibleIndex=o?t++:-1,n.num=o?n.visibleIndex+1:-1}},t.prototype.fromJSON=function(e){if(e){this.questionHashesClear(),this.jsonErrors=null;var t=new i.JsonObject;t.toObject(e,this),t.errors.length>0&&(this.jsonErrors=t.errors),this.onStateAndCurrentPageChanged(),this.updateState()}},t.prototype.setJsonObject=function(e){this.fromJSON(e)},t.prototype.endLoadingFromJson=function(){this.isEndLoadingFromJson="processing",this.onFirstPageIsStartedChanged(),this.onQuestionsOnPageModeChanged("standard"),e.prototype.endLoadingFromJson.call(this),this.hasCookie&&(this.isCompletedBefore=!0),this.doElementsOnLoad(),this.isEndLoadingFromJson="conditions",this.runConditions(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.isEndLoadingFromJson=null,this.updateVisibleIndexes(),this.updateHasLogo(),this.updateRenderBackgroundImage(),this.updateCurrentPage(),this.hasDescription=!!this.description,this.setCalculatedWidthModeUpdater()},t.prototype.updateNavigationCss=function(){this.navigationBar&&(this.updateNavigationBarCss(),this.updateNavigationItemCssCallback&&this.updateNavigationItemCssCallback())},t.prototype.updateNavigationBarCss=function(){var e=this.navigationBar;e.cssClasses=this.css.actionBar,e.containerCss=this.css.footer},t.prototype.createNavigationBar=function(){var e=new w.ActionContainer;return e.setItems(this.createNavigationActions()),e},t.prototype.createNavigationActions=function(){var e=this,t="sv-nav-btn",r=new x.Action({id:"sv-nav-start",visible:new s.ComputedUpdater((function(){return e.isShowStartingPage})),visibleIndex:10,locTitle:this.locStartSurveyText,action:function(){return e.start()},component:t}),n=new x.Action({id:"sv-nav-prev",visible:new s.ComputedUpdater((function(){return e.isShowPrevButton})),visibleIndex:20,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPagePrevText,action:function(){return e.prevPage()},component:t}),o=new x.Action({id:"sv-nav-next",visible:new s.ComputedUpdater((function(){return e.isShowNextButton})),visibleIndex:30,data:{mouseDown:function(){return e.nextPageMouseDown()}},locTitle:this.locPageNextText,action:function(){return e.nextPageUIClick()},component:t}),i=new x.Action({id:"sv-nav-preview",visible:new s.ComputedUpdater((function(){return e.isPreviewButtonVisible})),visibleIndex:40,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPreviewText,action:function(){return e.showPreview()},component:t}),a=new x.Action({id:"sv-nav-complete",visible:new s.ComputedUpdater((function(){return e.isCompleteButtonVisible})),visibleIndex:50,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locCompleteText,action:function(){return e.completeLastPage()},component:t});return this.updateNavigationItemCssCallback=function(){r.innerCss=e.cssNavigationStart,n.innerCss=e.cssNavigationPrev,o.innerCss=e.cssNavigationNext,i.innerCss=e.cssNavigationPreview,a.innerCss=e.cssNavigationComplete},[r,n,o,i,a]},t.prototype.onBeforeCreating=function(){},t.prototype.onCreating=function(){},t.prototype.getProcessedTextValue=function(e){if(this.getProcessedTextValueCore(e),!this.onProcessTextValue.isEmpty){var t=this.isValueEmpty(e.value);this.onProcessTextValue.fire(this,e),e.isExists=e.isExists||t&&!this.isValueEmpty(e.value)}},t.prototype.getBuiltInVariableValue=function(e){if("pageno"===e){var t=this.currentPage;return null!=t?this.visiblePages.indexOf(t)+1:0}return"pagecount"===e?this.visiblePageCount:"correctedanswers"===e||"correctanswers"===e||"correctedanswercount"===e?this.getCorrectedAnswerCount():"incorrectedanswers"===e||"incorrectanswers"===e||"incorrectedanswercount"===e?this.getInCorrectedAnswerCount():"questioncount"===e?this.getQuizQuestionCount():void 0},t.prototype.getProcessedTextValueCore=function(e){var t=e.name.toLocaleLowerCase();if(-1===["no","require","title"].indexOf(t)){var r=this.getBuiltInVariableValue(t);if(void 0!==r)return e.isExists=!0,void(e.value=r);if("locale"===t)return e.isExists=!0,void(e.value=this.locale?this.locale:d.surveyLocalization.defaultLocale);var n=this.getVariable(t);if(void 0!==n)return e.isExists=!0,void(e.value=n);var o=this.getFirstName(t);if(o){var i=o.useDisplayValuesInDynamicTexts;e.isExists=!0;var s=o.getValueName().toLowerCase();t=(t=s+t.substring(s.length)).toLocaleLowerCase();var a={};return a[s]=e.returnDisplayValue&&i?o.getDisplayValue(!1,void 0):o.value,void(e.value=(new c.ProcessValue).getValue(t,a))}this.getProcessedValuesWithoutQuestion(e)}},t.prototype.getProcessedValuesWithoutQuestion=function(e){var t=this.getValue(e.name);if(void 0!==t)return e.isExists=!0,void(e.value=t);var r=new c.ProcessValue,n=r.getFirstName(e.name);if(n!==e.name){var i={},s=this.getValue(n);o.Helpers.isValueEmpty(s)&&(s=this.getVariable(n)),o.Helpers.isValueEmpty(s)||(i[n]=s,e.value=r.getValue(e.name,i),e.isExists=r.hasValue(e.name,i))}},t.prototype.getFirstName=function(e){var t;e=e.toLowerCase();do{t=this.getQuestionByValueName(e,!0),e=this.reduceFirstName(e)}while(!t&&e);return t},t.prototype.reduceFirstName=function(e){var t=e.lastIndexOf("."),r=e.lastIndexOf("[");if(t<0&&r<0)return"";var n=Math.max(t,r);return e.substring(0,n)},t.prototype.clearUnusedValues=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].clearUnusedValues();this.clearInvisibleQuestionValues()},t.prototype.hasVisibleQuestionByValueName=function(e){var t=this.getQuestionsByValueName(e);if(!t)return!1;for(var r=0;r<t.length;r++){var n=t[r];if(n.isVisible&&n.isParentVisible&&!n.parentQuestion)return!0}return!1},t.prototype.questionCountByValueName=function(e){var t=this.getQuestionsByValueName(e);return t?t.length:0},t.prototype.clearInvisibleQuestionValues=function(){for(var e="none"===this.clearInvisibleValues?"none":"onComplete",t=this.getAllQuestions(),r=0;r<t.length;r++)t[r].clearValueIfInvisible(e)},t.prototype.getVariable=function(e){if(!e)return null;e=e.toLowerCase();var t=this.variablesHash[e];return this.isValueEmpty(t)&&(e.indexOf(".")>-1||e.indexOf("[")>-1)&&(new c.ProcessValue).hasValue(e,this.variablesHash)?(new c.ProcessValue).getValue(e,this.variablesHash):t},t.prototype.setVariable=function(e,t){e&&(this.valuesHash&&delete this.valuesHash[e],e=e.toLowerCase(),this.variablesHash[e]=t,this.notifyElementsOnAnyValueOrVariableChanged(e),this.runConditionOnValueChanged(e,t),this.onVariableChanged.fire(this,{name:e,value:t}))},t.prototype.getVariableNames=function(){var e=[];for(var t in this.variablesHash)e.push(t);return e},t.prototype.getUnbindValue=function(e){return this.editingObj?e:o.Helpers.getUnbindValue(e)},t.prototype.getValue=function(e){if(!e||0==e.length)return null;var t=this.getDataValueCore(this.valuesHash,e);return this.getUnbindValue(t)},t.prototype.setValue=function(e,t,r,n){void 0===r&&(r=!1),void 0===n&&(n=!0);var o=t;if(n&&(o=this.questionOnValueChanging(e,t)),(!this.isValidateOnValueChanging||!this.checkErrorsOnValueChanging(e,o))&&(this.editingObj||!this.isValueEqual(e,o)||!this.isTwoValueEquals(o,t))){var i=this.getValue(e);this.isValueEmpty(o)?this.deleteDataValueCore(this.valuesHash,e):(o=this.getUnbindValue(o),this.setDataValueCore(this.valuesHash,e,o)),this.updateOnSetValue(e,o,i,r,n)}},t.prototype.updateOnSetValue=function(e,t,r,n,o){if(void 0===n&&(n=!1),void 0===o&&(o=!0),this.updateQuestionValue(e,t),!0!==n&&!this.isDisposed&&!this.isRunningElementsBindings){var i={};i[e]={newValue:t,oldValue:r},this.runConditionOnValueChanged(e,t),this.checkTriggers(i,!1),o&&this.notifyQuestionOnValueChanged(e,t),"text"!==n&&this.tryGoNextPageAutomatic(e)}},t.prototype.isValueEqual=function(e,t){""!==t&&void 0!==t||(t=null);var r=this.getValue(e);return""!==r&&void 0!==r||(r=null),null===t||null===r?t===r:this.isTwoValueEquals(t,r)},t.prototype.doOnPageAdded=function(e){e.setSurveyImpl(this),e.name||(e.name=this.generateNewName(this.pages,"page")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),this.isLoadingFromJson||(this.updateProgressText(),this.updateCurrentPage());var t={page:e};this.onPageAdded.fire(this,t)},t.prototype.doOnPageRemoved=function(e){e.setSurveyImpl(null),e===this.currentPage&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.updateProgressText(),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.generateNewName=function(e,t){for(var r={},n=0;n<e.length;n++)r[e[n].name]=!0;for(var o=1;r[t+o];)o++;return t+o},t.prototype.tryGoNextPageAutomatic=function(e){if(!this.isEndLoadingFromJson&&this.goNextPageAutomatic&&this.currentPage){var t=this.getQuestionByValueName(e);if(t&&(!t||t.visible&&t.supportGoNextPageAutomatic())&&(t.validate(!1)||t.supportGoNextPageError())){var r=this.getCurrentPageQuestions();if(!(r.indexOf(t)<0)){for(var n=0;n<r.length;n++)if(r[n].hasInput&&r[n].isEmpty())return;this.checkIsCurrentPageHasErrors(!1)||(this.isLastPage?!0===this.goNextPageAutomatic&&this.allowCompleteSurveyAutomatic&&(this.isShowPreviewBeforeComplete?this.showPreview():this.completeLastPage()):this.nextPage())}}}},t.prototype.getComment=function(e){return this.getValue(e+this.commentSuffix)||""},t.prototype.setComment=function(e,t,r){if(void 0===r&&(r=!1),t||(t=""),!this.isTwoValueEquals(t,this.getComment(e))){var n=e+this.commentSuffix;this.isValueEmpty(t)?this.deleteDataValueCore(this.valuesHash,n):this.setDataValueCore(this.valuesHash,n,t);var o=this.getQuestionsByValueName(e);if(o)for(var i=0;i<o.length;i++)o[i].updateCommentFromSurvey(t),this.checkQuestionErrorOnValueChanged(o[i]);r||this.runConditionOnValueChanged(e,this.getValue(e)),"text"!==r&&this.tryGoNextPageAutomatic(e);var s=this.getQuestionByName(e);s&&this.onValueChanged.fire(this,{name:n,question:s,value:t})}},t.prototype.clearValue=function(e){this.setValue(e,null),this.setComment(e,null)},Object.defineProperty(t.prototype,"clearValueOnDisableItems",{get:function(){return this.getPropertyValue("clearValueOnDisableItems",!1)},set:function(e){this.setPropertyValue("clearValueOnDisableItems",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClearValueOnHidden",{get:function(){return"onHidden"==this.clearInvisibleValues||this.isClearValueOnHiddenContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClearValueOnHiddenContainer",{get:function(){return"onHiddenContainer"==this.clearInvisibleValues&&!this.isShowingPreview&&!this.runningPages},enumerable:!1,configurable:!0}),t.prototype.questionVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onQuestionVisibleChanged.fire(this,{question:e,name:e.name,visible:t})},t.prototype.pageVisibilityChanged=function(e,t){this.isLoadingFromJson||((t&&!this.currentPage||e===this.currentPage)&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.onPageVisibleChanged.fire(this,{page:e,visible:t}))},t.prototype.panelVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onPanelVisibleChanged.fire(this,{panel:e,visible:t})},t.prototype.questionCreated=function(e){this.onQuestionCreated.fire(this,{question:e})},t.prototype.questionAdded=function(e,t,r,n){e.name||(e.name=this.generateNewName(this.getAllQuestions(!1,!0),"question")),e.page&&this.questionHashesAdded(e),this.currentPage||this.updateCurrentPage(),this.updateVisibleIndexes(),this.setCalculatedWidthModeUpdater(),(!this.isMovingQuestion||this.isDesignMode&&!y.settings.supportCreatorV2)&&this.onQuestionAdded.fire(this,{question:e,name:e.name,index:t,parent:r,page:n,parentPanel:r,rootPanel:n})},t.prototype.questionRemoved=function(e){this.questionHashesRemoved(e,e.name,e.getValueName()),this.updateVisibleIndexes(),this.onQuestionRemoved.fire(this,{question:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.questionRenamed=function(e,t,r){this.questionHashesRemoved(e,t,r),this.questionHashesAdded(e)},t.prototype.questionHashesClear=function(){this.questionHashes.names={},this.questionHashes.namesInsensitive={},this.questionHashes.valueNames={},this.questionHashes.valueNamesInsensitive={}},t.prototype.questionHashesPanelAdded=function(e){if(!this.isLoadingFromJson)for(var t=e.questions,r=0;r<t.length;r++)this.questionHashesAdded(t[r])},t.prototype.questionHashesAdded=function(e){this.questionHashAddedCore(this.questionHashes.names,e,e.name),this.questionHashAddedCore(this.questionHashes.namesInsensitive,e,e.name.toLowerCase()),this.questionHashAddedCore(this.questionHashes.valueNames,e,e.getValueName()),this.questionHashAddedCore(this.questionHashes.valueNamesInsensitive,e,e.getValueName().toLowerCase())},t.prototype.questionHashesRemoved=function(e,t,r){t&&(this.questionHashRemovedCore(this.questionHashes.names,e,t),this.questionHashRemovedCore(this.questionHashes.namesInsensitive,e,t.toLowerCase())),r&&(this.questionHashRemovedCore(this.questionHashes.valueNames,e,r),this.questionHashRemovedCore(this.questionHashes.valueNamesInsensitive,e,r.toLowerCase()))},t.prototype.questionHashAddedCore=function(e,t,r){var n;(n=e[r])?(n=e[r]).indexOf(t)<0&&n.push(t):e[r]=[t]},t.prototype.questionHashRemovedCore=function(e,t,r){var n=e[r];if(n){var o=n.indexOf(t);o>-1&&n.splice(o,1),0==n.length&&delete e[r]}},t.prototype.panelAdded=function(e,t,r,n){e.name||(e.name=this.generateNewName(this.getAllPanels(!1,!0),"panel")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),this.onPanelAdded.fire(this,{panel:e,name:e.name,index:t,parent:r,page:n,parentPanel:r,rootPanel:n})},t.prototype.panelRemoved=function(e){this.updateVisibleIndexes(),this.onPanelRemoved.fire(this,{panel:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.validateQuestion=function(e){if(this.onValidateQuestion.isEmpty)return null;var t={name:e.name,question:e,value:e.value,error:null};return this.onValidateQuestion.fire(this,t),t.error?new h.CustomError(t.error,this):null},t.prototype.validatePanel=function(e){if(this.onValidatePanel.isEmpty)return null;var t={name:e.name,panel:e,error:null};return this.onValidatePanel.fire(this,t),t.error?new h.CustomError(t.error,this):null},t.prototype.processHtml=function(e,t){t||(t="");var r={html:e,reason:t};return this.onProcessHtml.fire(this,r),this.processText(r.html,!0)},t.prototype.processText=function(e,t){return this.processTextEx(e,t,!1).text},t.prototype.processTextEx=function(e,t,r){var n={text:this.processTextCore(e,t,r),hasAllValuesOnLastRun:!0};return n.hasAllValuesOnLastRun=this.textPreProcessor.hasAllValuesOnLastRun,n},t.prototype.processTextCore=function(e,t,r){return void 0===r&&(r=!1),this.isDesignMode?e:this.textPreProcessor.process(e,t,r)},t.prototype.getSurveyMarkdownHtml=function(e,t,r){var n={element:e,text:t,name:r,html:null};return this.onTextMarkdown.fire(this,n),n.html},t.prototype.getCorrectedAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},t.prototype.getCorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},t.prototype.getQuizQuestionCount=function(){for(var e=this.getQuizQuestions(),t=0,r=0;r<e.length;r++)t+=e[r].quizQuestionCount;return t},t.prototype.getInCorrectedAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.getInCorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.onCorrectQuestionAnswer=function(e,t){this.onIsAnswerCorrect.isEmpty||(t.question=e,this.onIsAnswerCorrect.fire(this,t))},t.prototype.getCorrectedAnswerCountCore=function(e){for(var t=this.getQuizQuestions(),r=0,n={question:null,result:!1,correctAnswers:0,incorrectAnswers:0},o=0;o<t.length;o++){var i=t[o],s=i.quizQuestionCount;if(n.question=i,n.correctAnswers=i.correctAnswerCount,n.incorrectAnswers=s-n.correctAnswers,n.result=n.question.isAnswerCorrect(),this.onIsAnswerCorrect.fire(this,n),e){if(n.result||n.correctAnswers<s){var a=n.correctAnswers;0==a&&n.result&&(a=1),r+=a}}else(!n.result||n.incorrectAnswers<s)&&(r+=n.incorrectAnswers)}return r},t.prototype.getCorrectedAnswers=function(){return this.getCorrectedAnswerCount()},t.prototype.getInCorrectedAnswers=function(){return this.getInCorrectedAnswerCount()},Object.defineProperty(t.prototype,"showTimerPanel",{get:function(){return this.getPropertyValue("showTimerPanel")},set:function(e){this.setPropertyValue("showTimerPanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnTop",{get:function(){return"top"==this.showTimerPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnBottom",{get:function(){return"bottom"==this.showTimerPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimerPanelMode",{get:function(){return this.getPropertyValue("showTimerPanelMode")},set:function(e){this.setPropertyValue("showTimerPanelMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"widthMode",{get:function(){return this.getPropertyValue("widthMode")},set:function(e){this.setPropertyValue("widthMode",e)},enumerable:!1,configurable:!0}),t.prototype.setCalculatedWidthModeUpdater=function(){var e=this;this.calculatedWidthModeUpdater&&this.calculatedWidthModeUpdater.dispose(),this.calculatedWidthModeUpdater=new s.ComputedUpdater((function(){return e.calculateWidthMode()})),this.calculatedWidthMode=this.calculatedWidthModeUpdater},t.prototype.calculateWidthMode=function(){if("auto"==this.widthMode){var e=!1;return this.pages.forEach((function(t){t.needResponsiveWidth()&&(e=!0)})),e?"responsive":"static"}return this.widthMode},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("width");return e&&!isNaN(e)&&(e+="px"),"static"==this.getPropertyValue("calculatedWidthMode")&&e||void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfo",{get:function(){return this.getTimerInfo()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerClock",{get:function(){var e,t;if(this.currentPage){var r=this.getTimerInfo(),n=r.spent,o=r.limit,i=r.minorSpent,s=r.minorLimit;e=o>0?this.getDisplayClockTime(o-n):this.getDisplayClockTime(n),void 0!==i&&(t=s>0?this.getDisplayClockTime(s-i):this.getDisplayClockTime(i))}return{majorText:e,minorText:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoText",{get:function(){var e={text:this.getTimerInfoText()};this.onTimerPanelInfoText.fire(this,e);var t=new f.LocalizableString(this,!0);return t.text=e.text,t.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getTimerInfo=function(){var e=this.currentPage;if(!e)return{spent:0,limit:0};var t=e.timeSpent,r=this.timeSpent,n=this.getPageMaxTimeToFinish(e),o=this.maxTimeToFinish;return"page"==this.showTimerPanelMode?{spent:t,limit:n}:"survey"==this.showTimerPanelMode?{spent:r,limit:o}:n>0&&o>0?{spent:t,limit:n,minorSpent:r,minorLimit:o}:n>0?{spent:t,limit:n,minorSpent:r}:o>0?{spent:r,limit:o,minorSpent:t}:{spent:t,minorSpent:r}},t.prototype.getTimerInfoText=function(){var e=this.currentPage;if(!e)return"";var t=this.getDisplayTime(e.timeSpent),r=this.getDisplayTime(this.timeSpent),n=this.getPageMaxTimeToFinish(e),o=this.getDisplayTime(n),i=this.getDisplayTime(this.maxTimeToFinish);return"page"==this.showTimerPanelMode?this.getTimerInfoPageText(e,t,o):"survey"==this.showTimerPanelMode?this.getTimerInfoSurveyText(r,i):"all"==this.showTimerPanelMode?n<=0&&this.maxTimeToFinish<=0?this.getLocalizationFormatString("timerSpentAll",t,r):n>0&&this.maxTimeToFinish>0?this.getLocalizationFormatString("timerLimitAll",t,o,r,i):this.getTimerInfoPageText(e,t,o)+" "+this.getTimerInfoSurveyText(r,i):""},t.prototype.getTimerInfoPageText=function(e,t,r){return this.getPageMaxTimeToFinish(e)>0?this.getLocalizationFormatString("timerLimitPage",t,r):this.getLocalizationFormatString("timerSpentPage",t,r)},t.prototype.getTimerInfoSurveyText=function(e,t){var r=this.maxTimeToFinish>0?"timerLimitSurvey":"timerSpentSurvey";return this.getLocalizationFormatString(r,e,t)},t.prototype.getDisplayClockTime=function(e){var t=Math.floor(e/60),r=e%60,n=r.toString();return r<10&&(n="0"+n),t+":"+n},t.prototype.getDisplayTime=function(e){var t=Math.floor(e/60),r=e%60,n="";return t>0&&(n+=t+" "+this.getLocalizationString("timerMin")),n&&0==r?n:(n&&(n+=" "),n+r+" "+this.getLocalizationString("timerSec"))},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.timerModelValue},enumerable:!1,configurable:!0}),t.prototype.startTimer=function(){this.timerModel.start()},t.prototype.startTimerFromUI=function(){"none"!=this.showTimerPanel&&"running"===this.state&&this.startTimer()},t.prototype.stopTimer=function(){this.timerModel.stop()},Object.defineProperty(t.prototype,"timeSpent",{get:function(){return this.timerModel.spent},set:function(e){this.timerModel.spent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinishPage",{get:function(){return this.getPropertyValue("maxTimeToFinishPage",0)},set:function(e){this.setPropertyValue("maxTimeToFinishPage",e)},enumerable:!1,configurable:!0}),t.prototype.getPageMaxTimeToFinish=function(e){return!e||e.maxTimeToFinish<0?0:e.maxTimeToFinish>0?e.maxTimeToFinish:this.maxTimeToFinishPage},t.prototype.doTimer=function(e){if(this.onTimer.fire(this,{}),this.maxTimeToFinish>0&&this.maxTimeToFinish==this.timeSpent&&this.completeLastPage(),e){var t=this.getPageMaxTimeToFinish(e);t>0&&t==e.timeSpent&&(this.isLastPage?this.completeLastPage():this.nextPage())}},Object.defineProperty(t.prototype,"inSurvey",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this},t.prototype.getTextProcessor=function(){return this},t.prototype.getObjects=function(e,t){var r=[];return Array.prototype.push.apply(r,this.getPagesByNames(e)),Array.prototype.push.apply(r,this.getQuestionsByNames(t)),r},t.prototype.setTriggerValue=function(e,t,r){if(e)if(r)this.setVariable(e,t);else{var n=this.getQuestionByName(e);if(n)n.value=t;else{var o=new c.ProcessValue,i=o.getFirstName(e);if(i==e)this.setValue(e,t);else{if(!this.getQuestionByName(i))return;var s=this.getUnbindValue(this.getFilteredValues());o.setValue(s,e,t),this.setValue(i,s[i])}}}},t.prototype.copyTriggerValue=function(e,t){if(e&&t){var r=(new c.ProcessValue).getValue(t,this.getFilteredValues());this.setTriggerValue(e,r,!1)}},t.prototype.triggerExecuted=function(e){this.onTriggerExecuted.fire(this,{trigger:e})},t.prototype.startMovingQuestion=function(){this.isMovingQuestion=!0},t.prototype.stopMovingQuestion=function(){this.isMovingQuestion=!1},t.prototype.focusQuestion=function(e){var t=this,r=this.getQuestionByName(e,!0);if(!r||!r.isVisible||!r.page)return!1;this.isFocusingQuestion=!0,this.skippedPages.push({from:this.currentPage,to:r.page});var n=this.currentPage!==r.page,o=function(){r.focus(),t.isFocusingQuestion=!1,t.isCurrentPageRendering=!1};return this.afterRenderPageTasks.push(o),this.currentPage=r.page,n||(o(),this.afterRenderPageTasks.splice(this.afterRenderPageTasks.indexOf(o),1)),!0},t.prototype.questionEditFinishCallback=function(e,t){if("loseFocus"==y.settings.enterKeyAction&&t.target.blur(),"moveToNextEditor"==y.settings.enterKeyAction){var r=this.currentPage.questions,n=r.indexOf(e);n>-1&&n<r.length-1?r[n+1].focus():t.target.blur()}},t.prototype.getElementWrapperComponentName=function(e,r){return"logo-image"===r?"sv-logo-image":t.TemplateRendererComponentName},t.prototype.getQuestionContentWrapperComponentName=function(e){return t.TemplateRendererComponentName},t.prototype.getRowWrapperComponentName=function(e){return t.TemplateRendererComponentName},t.prototype.getElementWrapperComponentData=function(e,t){return e},t.prototype.getRowWrapperComponentData=function(e){return e},t.prototype.getItemValueWrapperComponentName=function(e,r){return t.TemplateRendererComponentName},t.prototype.getItemValueWrapperComponentData=function(e,t){return e},t.prototype.getMatrixCellTemplateData=function(e){return e.question},t.prototype.searchText=function(e){e&&(e=e.toLowerCase());for(var t=[],r=0;r<this.pages.length;r++)this.pages[r].searchText(e,t);return t},t.prototype.getSkeletonComponentName=function(e){return this.skeletonComponentName},t.prototype.addLayoutElement=function(e){var t=this.removeLayoutElement(e.id);return this.layoutElements.push(e),t},t.prototype.removeLayoutElement=function(e){var t=this.layoutElements.filter((function(t){return t.id===e}))[0];if(t){var r=this.layoutElements.indexOf(t);this.layoutElements.splice(r,1)}return t},t.prototype.getContainerContent=function(e){for(var t=[],r=0,n=this.layoutElements;r<n.length;r++){var o=n[r];E(o.id,"timerpanel")?("header"===e&&this.isTimerPanelShowingOnTop&&!this.isShowStartingPage&&t.push(o),"footer"===e&&this.isTimerPanelShowingOnBottom&&!this.isShowStartingPage&&t.push(o)):E(o.id,"progress-"+this.progressBarType)?("header"===e&&this.isShowProgressBarOnTop&&!this.isShowStartingPage&&t.push(o),"contentBottom"===e&&this.isShowProgressBarOnBottom&&!this.isShowStartingPage&&t.push(o)):E(o.id,"navigationbuttons")?("contentTop"===e&&-1!==["top","both"].indexOf(this.isNavigationButtonsShowing)&&t.push(o),"contentBottom"===e&&-1!==["bottom","both"].indexOf(this.isNavigationButtonsShowing)&&t.push(o)):"running"===this.state&&E(o.id,"toc-navigation")&&this.showTOC?("left"===e&&-1!==["left","both"].indexOf(this.tocLocation)&&t.push(o),"right"===e&&-1!==["right","both"].indexOf(this.tocLocation)&&t.push(o)):(Array.isArray(o.container)&&-1!==o.container.indexOf(e)||o.container===e)&&t.push(o)}return t},t.prototype.dispose=function(){if(this.currentPage=null,this.destroyResizeObserver(),e.prototype.dispose.call(this),this.editingObj=null,this.pages){for(var t=0;t<this.pages.length;t++)this.pages[t].setSurveyImpl(void 0),this.pages[t].dispose();this.pages.splice(0,this.pages.length),this.disposeCallback&&this.disposeCallback()}},t.TemplateRendererComponentName="sv-template-renderer",t.stylesManager=null,t.platform="unknown",S([Object(i.property)()],t.prototype,"completedCss",void 0),S([Object(i.property)()],t.prototype,"containerCss",void 0),S([Object(i.property)()],t.prototype,"showBrandInfo",void 0),S([Object(i.property)()],t.prototype,"_isMobile",void 0),S([Object(i.property)()],t.prototype,"_isCompact",void 0),S([Object(i.property)()],t.prototype,"renderBackgroundImage",void 0),S([Object(i.property)()],t.prototype,"backgroundImageFit",void 0),S([Object(i.property)()],t.prototype,"rootCss",void 0),S([Object(i.property)()],t.prototype,"calculatedWidthMode",void 0),S([Object(i.propertyArray)()],t.prototype,"layoutElements",void 0),t}(a.SurveyElementCore);function E(e,t){return!!e&&!!t&&e.toUpperCase()===t.toUpperCase()}i.Serializer.addClass("survey",[{name:"locale",choices:function(){return d.surveyLocalization.getLocales(!0)},onGetValue:function(e){return e.locale==d.surveyLocalization.defaultLocale?null:e.locale}},{name:"title",serializationProperty:"locTitle",dependsOn:"locale"},{name:"description:text",serializationProperty:"locDescription",dependsOn:"locale"},{name:"logo",serializationProperty:"locLogo"},{name:"logoWidth",default:"300px",minValue:0},{name:"logoHeight",default:"200px",minValue:0},{name:"logoFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"logoPosition",default:"left",choices:["none","left","right","top","bottom"]},{name:"focusFirstQuestionAutomatic:boolean",default:!0},{name:"focusOnFirstError:boolean",default:!0},{name:"completedHtml:html",serializationProperty:"locCompletedHtml"},{name:"completedBeforeHtml:html",serializationProperty:"locCompletedBeforeHtml"},{name:"completedHtmlOnCondition:htmlconditions",className:"htmlconditionitem"},{name:"loadingHtml:html",serializationProperty:"locLoadingHtml"},{name:"pages:surveypages",className:"page"},{name:"questions",alternativeName:"elements",baseClassName:"question",visible:!1,isLightSerializable:!1,onGetValue:function(e){return null},onSetValue:function(e,t,r){e.pages.splice(0,e.pages.length);var n=e.addNewPage("");r.toObject({questions:t},n)}},{name:"triggers:triggers",baseClassName:"surveytrigger",classNamePart:"trigger"},{name:"calculatedValues:calculatedvalues",className:"calculatedvalue"},{name:"surveyId",visible:!1},{name:"surveyPostId",visible:!1},{name:"surveyShowDataSaving:boolean",visible:!1},"cookieName","sendResultOnPageNext:boolean",{name:"showNavigationButtons",default:"bottom",choices:["none","top","bottom","both"]},{name:"showPrevButton:boolean",default:!0},{name:"showTitle:boolean",default:!0},{name:"showPageTitles:boolean",default:!0},{name:"showCompletedPage:boolean",default:!0},"navigateToUrl",{name:"navigateToUrlOnCondition:urlconditions",className:"urlconditionitem"},{name:"questionsOrder",default:"initial",choices:["initial","random"]},"showPageNumbers:boolean",{name:"showQuestionNumbers",default:"on",choices:["on","onPage","off"]},{name:"questionTitleLocation",default:"top",choices:["top","bottom","left"]},{name:"questionDescriptionLocation",default:"underTitle",choices:["underInput","underTitle"]},{name:"questionErrorLocation",default:"top",choices:["top","bottom"]},{name:"showProgressBar",default:"off",choices:["off","top","bottom","both"]},{name:"progressBarType",default:"pages",choices:["pages","questions","requiredQuestions","correctQuestions","buttons"]},{name:"showTOC:switch",default:!1},{name:"tocLocation",default:"left",choices:["left","right"]},{name:"mode",default:"edit",choices:["edit","display"]},{name:"storeOthersAsComment:boolean",default:!0},{name:"maxTextLength:number",default:0,minValue:0},{name:"maxOthersLength:number",default:0,minValue:0},{name:"goNextPageAutomatic:boolean",onSetValue:function(e,t){"autogonext"!==t&&(t=o.Helpers.isTwoValueEquals(t,!0)),e.setPropertyValue("goNextPageAutomatic",t)}},{name:"clearInvisibleValues",default:"onComplete",choices:["none","onComplete","onHidden","onHiddenContainer"]},{name:"checkErrorsMode",default:"onNextPage",choices:["onNextPage","onValueChanged","onValueChanging","onComplete"]},{name:"textUpdateMode",default:"onBlur",choices:["onBlur","onTyping"]},{name:"autoGrowComment:boolean",default:!1},{name:"allowResizeComment:boolean",default:!0},{name:"startSurveyText",serializationProperty:"locStartSurveyText"},{name:"pagePrevText",serializationProperty:"locPagePrevText"},{name:"pageNextText",serializationProperty:"locPageNextText"},{name:"completeText",serializationProperty:"locCompleteText"},{name:"previewText",serializationProperty:"locPreviewText"},{name:"editText",serializationProperty:"locEditText"},{name:"requiredText",default:"*"},{name:"questionStartIndex",dependsOn:["showQuestionNumbers"],visibleIf:function(e){return!e||"off"!==e.showQuestionNumbers}},{name:"questionTitlePattern",default:"numTitleRequire",dependsOn:["questionStartIndex","requiredText"],choices:function(e){return e?e.getQuestionTitlePatternOptions():[]}},{name:"questionTitleTemplate",visible:!1,isSerializable:!1,serializationProperty:"locQuestionTitleTemplate"},{name:"firstPageIsStarted:boolean",default:!1},{name:"isSinglePage:boolean",default:!1,visible:!1,isSerializable:!1},{name:"questionsOnPageMode",default:"standard",choices:["singlePage","standard","questionPerPage"]},{name:"showPreviewBeforeComplete",default:"noPreview",choices:["noPreview","showAllQuestions","showAnsweredQuestions"]},{name:"maxTimeToFinish:number",default:0,minValue:0},{name:"maxTimeToFinishPage:number",default:0,minValue:0},{name:"showTimerPanel",default:"none",choices:["none","top","bottom"]},{name:"showTimerPanelMode",default:"all",choices:["all","page","survey"]},{name:"widthMode",default:"auto",choices:["auto","static","responsive"]},"width",{name:"backgroundImage",serializationProperty:"locBackgroundImage",visible:!1},{name:"backgroundImageFit",default:"cover",choices:["auto","contain","cover"],visible:!1},{name:"backgroundOpacity:number",minValue:0,maxValue:1,default:1,visible:!1},{name:"showBrandInfo:boolean",default:!1,visible:!1}])},"./src/surveyProgress.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyProgressModel",(function(){return o}));var n=r("./src/utils/cssClassBuilder.ts"),o=function(){function e(){}return e.getProgressTextInBarCss=function(e){return(new n.CssClassBuilder).append(e.progressText).append(e.progressTextInBar).toString()},e.getProgressTextUnderBarCss=function(e){return(new n.CssClassBuilder).append(e.progressText).append(e.progressTextUnderBar).toString()},e}()},"./src/surveyProgressButtons.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyProgressButtonsModel",(function(){return o}));var n=r("./src/utils/cssClassBuilder.ts"),o=function(){function e(e){this.survey=e}return e.prototype.isListElementClickable=function(e){return!(this.survey.onServerValidateQuestions&&!this.survey.onServerValidateQuestions.isEmpty&&"onComplete"!==this.survey.checkErrorsMode)||e<=this.survey.currentPageNo+1},e.prototype.getListElementCss=function(e){if(!(e>=this.survey.visiblePages.length))return(new n.CssClassBuilder).append(this.survey.css.progressButtonsListElementPassed,this.survey.visiblePages[e].passed).append(this.survey.css.progressButtonsListElementCurrent,this.survey.currentPageNo===e).append(this.survey.css.progressButtonsListElementNonClickable,!this.isListElementClickable(e)).toString()},e.prototype.getScrollButtonCss=function(e,t){return(new n.CssClassBuilder).append(this.survey.css.progressButtonsImageButtonLeft,t).append(this.survey.css.progressButtonsImageButtonRight,!t).append(this.survey.css.progressButtonsImageButtonHidden,!e).toString()},e.prototype.clickListElement=function(e){if(!this.survey.isDesignMode)if(e<this.survey.currentPageNo)this.survey.currentPageNo=e;else if(e>this.survey.currentPageNo)for(var t=this.survey.currentPageNo;t<e&&this.survey.nextPage();t++);},e}()},"./src/surveyStrings.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"surveyLocalization",(function(){return o})),r.d(t,"surveyStrings",(function(){return i}));var n=r("./src/localization/english.ts"),o={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},supportedLocales:[],get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(e){"cz"===e&&(e="cs"),this.currentLocaleValue=e},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(e){"cz"===e&&(e="cs"),this.defaultLocaleValue=e},getLocaleStrings:function(e){return this.locales[e]},getString:function(e,t){var r=this;void 0===t&&(t=null);var n=new Array,o=function(e){var t=r.locales[e];t&&n.push(t)},i=function(e){if(e){o(e);var t=e.indexOf("-");t<1||(e=e.substring(0,t),o(e))}};i(t),i(this.currentLocale),i(this.defaultLocale),"en"!==this.defaultLocale&&o("en");for(var s=0;s<n.length;s++){var a=n[s][e];if(void 0!==a)return a}return this.onGetExternalString(e,t)},getLocales:function(e){void 0===e&&(e=!1);var t=[];t.push("");var r=this.locales;if(this.supportedLocales&&this.supportedLocales.length>0){r={};for(var n=0;n<this.supportedLocales.length;n++)r[this.supportedLocales[n]]=!0}for(var i in r)e&&i==this.defaultLocale||t.push(i);var s=function(e){if(!e)return"";var t=o.localeNames[e];return t||(t=e),t.toLowerCase()};return t.sort((function(e,t){var r=s(e),n=s(t);return r===n?0:r<n?-1:1})),t},onGetExternalString:function(e,t){}},i=n.englishStrings;o.locales.en=n.englishStrings,o.localeNames.en="english"},"./src/surveyTimerModel.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyTimerModel",(function(){return c}));var n,o=r("./src/base.ts"),i=r("./src/surveytimer.ts"),s=r("./src/jsonobject.ts"),a=r("./src/utils/cssClassBuilder.ts"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},c=function(e){function t(t){var r=e.call(this)||this;return r.timerFunc=null,r.surveyValue=t,r.onCreating(),r}return l(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),t.prototype.onCreating=function(){},t.prototype.start=function(){var e=this;this.survey&&(this.isRunning||this.isDesignMode||(this.survey.onCurrentPageChanged.add((function(){e.update()})),this.timerFunc=function(){e.doTimer()},this.setIsRunning(!0),this.update(),i.SurveyTimer.instance.start(this.timerFunc)))},t.prototype.stop=function(){this.isRunning&&(this.setIsRunning(!1),i.SurveyTimer.instance.stop(this.timerFunc))},Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getPropertyValue("isRunning",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsRunning=function(e){this.setPropertyValue("isRunning",e)},t.prototype.update=function(){this.updateText(),this.updateProgress()},t.prototype.doTimer=function(){var e=this.survey.currentPage;e&&(e.timeSpent=e.timeSpent+1),this.spent=this.spent+1,this.update(),this.onTimer&&this.onTimer(e)},t.prototype.updateProgress=function(){var e=this,t=this.survey.timerInfo,r=t.spent,n=t.limit;n?0==r?(this.progress=0,setTimeout((function(){e.progress=Math.floor((r+1)/n*100)/100}),0)):r!==n&&(this.progress=Math.floor((r+1)/n*100)/100):this.progress=void 0},t.prototype.updateText=function(){var e=this.survey.timerClock;this.clockMajorText=e.majorText,this.clockMinorText=e.minorText,this.text=this.survey.timerInfoText},Object.defineProperty(t.prototype,"showProgress",{get:function(){return void 0!==this.progress},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimerAsClock",{get:function(){return!!this.survey.getCss().clockTimerRoot},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootCss",{get:function(){return(new a.CssClassBuilder).append(this.survey.getCss().clockTimerRoot).append(this.survey.getCss().clockTimerRootTop,this.survey.isTimerPanelShowingOnTop).append(this.survey.getCss().clockTimerRootBottom,this.survey.isTimerPanelShowingOnBottom).toString()},enumerable:!1,configurable:!0}),t.prototype.getProgressCss=function(){return(new a.CssClassBuilder).append(this.survey.getCss().clockTimerProgress).append(this.survey.getCss().clockTimerProgressAnimation,this.progress>0).toString()},Object.defineProperty(t.prototype,"textContainerCss",{get:function(){return this.survey.getCss().clockTimerTextContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minorTextCss",{get:function(){return this.survey.getCss().clockTimerMinorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"majorTextCss",{get:function(){return this.survey.getCss().clockTimerMajorText},enumerable:!1,configurable:!0}),u([Object(s.property)()],t.prototype,"text",void 0),u([Object(s.property)()],t.prototype,"progress",void 0),u([Object(s.property)()],t.prototype,"clockMajorText",void 0),u([Object(s.property)()],t.prototype,"clockMinorText",void 0),u([Object(s.property)({defaultValue:0})],t.prototype,"spent",void 0),t}(o.Base)},"./src/surveyToc.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"tryNavigateToPage",(function(){return s})),r.d(t,"createTOCListModel",(function(){return a})),r.d(t,"getTocRootCss",(function(){return l}));var n=r("./src/actions/action.ts"),o=r("./src/base.ts"),i=r("./src/list.ts");function s(e,t){if(!e.isDesignMode){if(t<e.currentPageNo)e.currentPageNo=t;else if(t>e.currentPageNo)for(var r=e.currentPageNo;r<t;r++)if(!e.nextPageUIClick())return!1;return!0}}function a(e){var t=e.pages.map((function(t,r){return new n.Action({id:t.name,title:t.navigationTitle||t.title||t.name,action:function(){return void 0!==typeof document&&document.activeElement&&document.activeElement.blur&&document.activeElement.blur(),s(e,r)},visible:new o.ComputedUpdater((function(){return t.isVisible&&!t.isStartPage}))})})),r=new i.ListModel(t,(function(e){e.action()&&(r.selectedItem=e)}),!0,t.filter((function(t){return t.id===e.currentPage.name}))[0]);return r.allowSelection=!1,r.locOwner=e,e.onCurrentPageChanged.add((function(n,o){r.selectedItem=t.filter((function(t){return t.id===e.currentPage.name}))[0]})),r}function l(e){return"sv_progress-toc sv_progress-toc--"+(e.tocLocation||"").toLowerCase()}},"./src/surveytimer.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"surveyTimerFunctions",(function(){return o})),r.d(t,"SurveyTimer",(function(){return i}));var n=r("./src/base.ts"),o={setTimeout:function(e){return"undefined"==typeof window?0:window.setTimeout(e,1e3)},clearTimeout:function(e){"undefined"!=typeof window&&window.clearTimeout(e)}},i=function(){function e(){this.listenerCounter=0,this.timerId=-1,this.onTimer=new n.Event}return Object.defineProperty(e,"instance",{get:function(){return e.instanceValue||(e.instanceValue=new e),e.instanceValue},enumerable:!1,configurable:!0}),e.prototype.start=function(e){var t=this;void 0===e&&(e=null),e&&this.onTimer.add(e),this.timerId<0&&(this.timerId=o.setTimeout((function(){t.doTimer()}))),this.listenerCounter++},e.prototype.stop=function(e){void 0===e&&(e=null),e&&this.onTimer.remove(e),this.listenerCounter--,0==this.listenerCounter&&this.timerId>-1&&(o.clearTimeout(this.timerId),this.timerId=-1)},e.prototype.doTimer=function(){var e=this;if((this.onTimer.isEmpty||0==this.listenerCounter)&&(this.timerId=-1),!(this.timerId<0)){var t=this.timerId;this.onTimer.fire(this,{}),t===this.timerId&&(this.timerId=o.setTimeout((function(){e.doTimer()})))}},e.instanceValue=null,e}()},"./src/svgbundle.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SvgIconRegistry",(function(){return i})),r.d(t,"SvgRegistry",(function(){return s})),r.d(t,"SvgBundleViewModel",(function(){}));var n=r("./src/settings.ts"),o=r("./src/utils/utils.ts"),i=function(){function e(){this.icons={},this.iconPrefix="icon-"}return e.prototype.registerIconFromSymbol=function(e,t){this.icons[e]=t},e.prototype.registerIconFromSvgViaElement=function(e,t,r){void 0===r&&(r=this.iconPrefix);var n=document.createElement("div");n.innerHTML=t;var o=document.createElement("symbol"),i=n.querySelector("svg");o.innerHTML=i.innerHTML;for(var s=0;s<i.attributes.length;s++)o.setAttributeNS("http://www.w3.org/2000/svg",i.attributes[s].name,i.attributes[s].value);o.id=r+e,this.registerIconFromSymbol(e,o.outerHTML)},e.prototype.registerIconFromSvg=function(e,t,r){void 0===r&&(r=this.iconPrefix);var n=(t=t.trim()).toLowerCase();return"<svg "===n.substring(0,5)&&"</svg>"===n.substring(n.length-6,n.length)&&(this.registerIconFromSymbol(e,'<symbol id="'+r+e+'" '+t.substring(5,n.length-6)+"</symbol>"),!0)},e.prototype.registerIconsFromFolder=function(e){var t=this;e.keys().forEach((function(r){t.registerIconFromSvg(r.substring(2,r.length-4).toLowerCase(),e(r))}))},e.prototype.iconsRenderedHtml=function(){var e=this;return Object.keys(this.icons).map((function(t){return e.icons[t]})).join("")},e.prototype.renderIcons=function(){var e="sv-icon-holder-global-container";if(!n.settings.environment.root.getElementById(e)){var t=document.createElement("div");t.id=e,t.innerHTML="<svg>"+this.iconsRenderedHtml()+"</svg>",t.style.display="none",Object(o.getElement)(n.settings.environment.svgMountContainer).appendChild(t)}},e}(),s=new i,a=r("./src/images sync \\.svg$"),l=r("./src/images/smiley sync \\.svg$");s.registerIconsFromFolder(a),s.registerIconsFromFolder(l)},"./src/template-renderer.ts":function(e,t,r){"use strict";r.r(t)},"./src/textPreProcessor.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"TextPreProcessorItem",(function(){return i})),r.d(t,"TextPreProcessorValue",(function(){return s})),r.d(t,"TextPreProcessor",(function(){return a})),r.d(t,"QuestionTextProcessor",(function(){return l}));var n=r("./src/helpers.ts"),o=r("./src/conditionProcessValue.ts"),i=function(){},s=function(e,t){this.name=e,this.returnDisplayValue=t,this.isExists=!1,this.canProcess=!0},a=function(){function e(){this._unObservableValues=[void 0]}return Object.defineProperty(e.prototype,"hasAllValuesOnLastRunValue",{get:function(){return this._unObservableValues[0]},set:function(e){this._unObservableValues[0]=e},enumerable:!1,configurable:!0}),e.prototype.process=function(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=!1),this.hasAllValuesOnLastRunValue=!0,!e)return e;if(!this.onProcess)return e;for(var o=this.getItems(e),i=o.length-1;i>=0;i--){var a=o[i],l=this.getName(e.substring(a.start+1,a.end));if(l){var u=new s(l,t);if(this.onProcess(u),u.isExists){n.Helpers.isValueEmpty(u.value)&&(this.hasAllValuesOnLastRunValue=!1);var c=n.Helpers.isValueEmpty(u.value)?"":u.value;r&&(c=encodeURIComponent(c)),e=e.substring(0,a.start)+c+e.substring(a.end+1)}else u.canProcess&&(this.hasAllValuesOnLastRunValue=!1)}}return e},e.prototype.processValue=function(e,t){var r=new s(e,t);return this.onProcess&&this.onProcess(r),r},Object.defineProperty(e.prototype,"hasAllValuesOnLastRun",{get:function(){return!!this.hasAllValuesOnLastRunValue},enumerable:!1,configurable:!0}),e.prototype.getItems=function(e){for(var t=[],r=e.length,n=-1,o="",s=0;s<r;s++)if("{"==(o=e[s])&&(n=s),"}"==o){if(n>-1){var a=new i;a.start=n,a.end=s,t.push(a)}n=-1}return t},e.prototype.getName=function(e){if(e)return e.trim()},e}(),l=function(){function e(e){var t=this;this.variableName=e,this.textPreProcessor=new a,this.textPreProcessor.onProcess=function(e){t.getProcessedTextValue(e)}}return e.prototype.processValue=function(e,t){return this.textPreProcessor.processValue(e,t)},Object.defineProperty(e.prototype,"survey",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"panel",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.getValues=function(){return this.panel?this.panel.getValue():null},e.prototype.getQuestionByName=function(e){return this.panel?this.panel.getQuestionByValueName(e):null},e.prototype.getParentTextProcessor=function(){return null},e.prototype.onCustomProcessText=function(e){return!1},e.prototype.getQuestionDisplayText=function(e){return e.displayValue},e.prototype.getProcessedTextValue=function(e){if(e&&!this.onCustomProcessText(e)){var t=(new o.ProcessValue).getFirstName(e.name);if(e.isExists=t==this.variableName,e.canProcess=e.isExists,e.canProcess){e.name=e.name.replace(this.variableName+".",""),t=(new o.ProcessValue).getFirstName(e.name);var r=this.getQuestionByName(t),n={};if(r)n[t]=e.returnDisplayValue?this.getQuestionDisplayText(r):r.value;else{var i=this.panel?this.getValues():null;i&&(n[t]=i[t])}e.value=(new o.ProcessValue).getValue(e.name,n)}}},e.prototype.processText=function(e,t){return this.survey&&this.survey.isDesignMode?e:(e=this.textPreProcessor.process(e,t),e=this.processTextCore(this.getParentTextProcessor(),e,t),this.processTextCore(this.survey,e,t))},e.prototype.processTextEx=function(e,t){e=this.processText(e,t);var r=this.textPreProcessor.hasAllValuesOnLastRun,n={hasAllValuesOnLastRun:!0,text:e};return this.survey&&(n=this.survey.processTextEx(e,t,!1)),n.hasAllValuesOnLastRun=n.hasAllValuesOnLastRun&&r,n},e.prototype.processTextCore=function(e,t,r){return e?e.processText(t,r):t},e}()},"./src/trigger.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"Trigger",(function(){return d})),r.d(t,"SurveyTrigger",(function(){return h})),r.d(t,"SurveyTriggerVisible",(function(){return f})),r.d(t,"SurveyTriggerComplete",(function(){return m})),r.d(t,"SurveyTriggerSetValue",(function(){return g})),r.d(t,"SurveyTriggerSkip",(function(){return b})),r.d(t,"SurveyTriggerRunExpression",(function(){return y})),r.d(t,"SurveyTriggerCopyValue",(function(){return v}));var n,o=r("./src/helpers.ts"),i=r("./src/base.ts"),s=r("./src/jsonobject.ts"),a=r("./src/conditions.ts"),l=r("./src/expressions/expressions.ts"),u=r("./src/conditionProcessValue.ts"),c=r("./src/settings.ts"),p=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e){function t(){var r=e.call(this)||this;return r.idValue=t.idCounter++,r.usedNames=[],r.registerPropertyChangedHandlers(["operator","value","name"],(function(){r.oldPropertiesChanged()})),r.registerPropertyChangedHandlers(["expression"],(function(){r.onExpressionChanged()})),r}return p(t,e),Object.defineProperty(t,"operators",{get:function(){return null!=t.operatorsValue||(t.operatorsValue={empty:function(e,t){return!e},notempty:function(e,t){return!!e},equal:function(e,t){return e==t},notequal:function(e,t){return e!=t},contains:function(e,t){return e&&e.indexOf&&e.indexOf(t)>-1},notcontains:function(e,t){return!e||!e.indexOf||-1==e.indexOf(t)},greater:function(e,t){return e>t},less:function(e,t){return e<t},greaterorequal:function(e,t){return e>=t},lessorequal:function(e,t){return e<=t}}),t.operatorsValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"triggerbase"},t.prototype.toString=function(){var e=this.getType().replace("trigger",""),t=this.expression?this.expression:this.buildExpression();return t&&(e+=", "+t),e},Object.defineProperty(t.prototype,"operator",{get:function(){return this.getPropertyValue("operator","equal")},set:function(e){e&&(e=e.toLowerCase(),t.operators[e]&&this.setPropertyValue("operator",e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value",null)},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return!0},t.prototype.canBeExecutedOnComplete=function(){return!1},t.prototype.checkExpression=function(e,t,r,n,o){void 0===o&&(o=null),this.isExecutingOnNextPage=e,this.canBeExecuted(e)&&(t&&!this.canBeExecutedOnComplete()||this.isCheckRequired(r)&&this.conditionRunner&&this.perform(n,o))},t.prototype.check=function(e){t.operators[this.operator](e,this.value)?this.onSuccess({},null):this.onFailure()},t.prototype.perform=function(e,t){var r=this;this.conditionRunner.onRunComplete=function(n){r.triggerResult(n,e,t)},this.conditionRunner.run(e,t)},t.prototype.triggerResult=function(e,t,r){e?(this.onSuccess(t,r),this.onSuccessExecuted()):this.onFailure()},t.prototype.onSuccess=function(e,t){},t.prototype.onFailure=function(){},t.prototype.onSuccessExecuted=function(){},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.oldPropertiesChanged()},t.prototype.oldPropertiesChanged=function(){this.onExpressionChanged()},t.prototype.onExpressionChanged=function(){this.usedNames=[],this.hasFunction=!1,this.conditionRunner=null},t.prototype.buildExpression=function(){return this.name?this.isValueEmpty(this.value)&&this.isRequireValue?"":"{"+this.name+"} "+this.operator+" "+l.OperandMaker.toOperandString(this.value):""},t.prototype.isCheckRequired=function(e){if(!e)return!1;if(this.buildUsedNames(),!0===this.hasFunction)return!0;for(var t=new u.ProcessValue,r=0;r<this.usedNames.length;r++){var n=this.usedNames[r];if(e.hasOwnProperty(n))return!0;var o=t.getFirstName(n);if(e.hasOwnProperty(o)){if(n===o)return!0;var i=e[o];if(null!=i){if(!i.hasOwnProperty("oldValue")||!i.hasOwnProperty("newValue"))return!0;var s={};s[o]=i.oldValue;var a=t.getValue(n,s);s[o]=i.newValue;var l=t.getValue(n,s);if(!this.isTwoValueEquals(a,l))return!0}}}return!1},t.prototype.buildUsedNames=function(){if(!this.conditionRunner){var e=this.expression;e||(e=this.buildExpression()),e&&(this.conditionRunner=new a.ConditionRunner(e),this.hasFunction=this.conditionRunner.hasFunction(),this.usedNames=this.conditionRunner.getVariables())}},Object.defineProperty(t.prototype,"isRequireValue",{get:function(){return"empty"!==this.operator&&"notempty"!=this.operator},enumerable:!1,configurable:!0}),t.idCounter=1,t.operatorsValue=null,t}(i.Base),h=function(e){function t(){var t=e.call(this)||this;return t.ownerValue=null,t}return p(t,e),Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},enumerable:!1,configurable:!0}),t.prototype.setOwner=function(e){this.ownerValue=e},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner&&this.owner.getSurvey?this.owner.getSurvey():null},t.prototype.isRealExecution=function(){return!0},t.prototype.onSuccessExecuted=function(){this.owner&&this.isRealExecution()&&this.owner.triggerExecuted(this)},t}(d),f=function(e){function t(){var t=e.call(this)||this;return t.pages=[],t.questions=[],t}return p(t,e),t.prototype.getType=function(){return"visibletrigger"},t.prototype.onSuccess=function(e,t){this.onTrigger(this.onItemSuccess)},t.prototype.onFailure=function(){this.onTrigger(this.onItemFailure)},t.prototype.onTrigger=function(e){if(this.owner)for(var t=this.owner.getObjects(this.pages,this.questions),r=0;r<t.length;r++)e(t[r])},t.prototype.onItemSuccess=function(e){e.visible=!0},t.prototype.onItemFailure=function(e){e.visible=!1},t}(h),m=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"completetrigger"},t.prototype.isRealExecution=function(){return!c.settings.executeCompleteTriggerOnValueChanged===this.isExecutingOnNextPage},t.prototype.onSuccess=function(e,t){this.owner&&(this.isRealExecution()?this.owner.setCompleted():this.owner.canBeCompleted(this,!0))},t.prototype.onFailure=function(){this.owner.canBeCompleted(this,!1)},t}(h),g=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"setvaluetrigger"},t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName},t.prototype.onPropertyValueChanged=function(t,r,n){if(e.prototype.onPropertyValueChanged.call(this,t,r,n),"setToName"===t){var o=this.getSurvey();o&&!o.isLoadingFromJson&&o.isDesignMode&&(this.setValue=void 0)}},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValue",{get:function(){return this.getPropertyValue("setValue")},set:function(e){this.setPropertyValue("setValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVariable",{get:function(){return this.getPropertyValue("isVariable")},set:function(e){this.setPropertyValue("isVariable",e)},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.setTriggerValue(this.setToName,this.setValue,this.isVariable)},t}(h),b=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"skiptrigger"},Object.defineProperty(t.prototype,"gotoName",{get:function(){return this.getPropertyValue("gotoName","")},set:function(e){this.setPropertyValue("gotoName",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return e===!c.settings.executeSkipTriggerOnValueChanged},t.prototype.onSuccess=function(e,t){this.gotoName&&this.owner&&this.owner.focusQuestion(this.gotoName)},t}(h),y=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"runexpressiontrigger"},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runExpression",{get:function(){return this.getPropertyValue("runExpression","")},set:function(e){this.setPropertyValue("runExpression",e)},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,t){var r=this;if(this.owner&&this.runExpression){var n=new a.ExpressionRunner(this.runExpression);n.canRun&&(n.onRunComplete=function(e){r.onCompleteRunExpression(e)},n.run(e,t))}},t.prototype.onCompleteRunExpression=function(e){this.setToName&&void 0!==e&&this.owner.setTriggerValue(this.setToName,o.Helpers.convertValToQuestionVal(e),!1)},t}(h),v=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName&&!!this.fromName},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fromName",{get:function(){return this.getPropertyValue("fromName","")},set:function(e){this.setPropertyValue("fromName",e)},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"copyvaluetrigger"},t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.copyTriggerValue(this.setToName,this.fromName)},t}(h);s.Serializer.addClass("trigger",[{name:"operator",default:"equal",visible:!1},{name:"value",visible:!1},"expression:condition"]),s.Serializer.addClass("surveytrigger",[{name:"name",visible:!1}],null,"trigger"),s.Serializer.addClass("visibletrigger",["pages:pages","questions:questions"],(function(){return new f}),"surveytrigger"),s.Serializer.addClass("completetrigger",[],(function(){return new m}),"surveytrigger"),s.Serializer.addClass("setvaluetrigger",[{name:"!setToName:questionvalue"},{name:"setValue:triggervalue",dependsOn:"setToName",visibleIf:function(e){return!!e&&!!e.setToName}},{name:"isVariable:boolean",visible:!1}],(function(){return new g}),"surveytrigger"),s.Serializer.addClass("copyvaluetrigger",[{name:"!fromName:questionvalue"},{name:"!setToName:questionvalue"}],(function(){return new v}),"surveytrigger"),s.Serializer.addClass("skiptrigger",[{name:"!gotoName:question"}],(function(){return new b}),"surveytrigger"),s.Serializer.addClass("runexpressiontrigger",[{name:"setToName:questionvalue"},"runExpression:expression"],(function(){return new y}),"surveytrigger")},"./src/utils/cssClassBuilder.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"CssClassBuilder",(function(){return n}));var n=function(){function e(){this.classes=[]}return e.prototype.isEmpty=function(){return""===this.toString()},e.prototype.append=function(e,t){return void 0===t&&(t=!0),e&&t&&("string"==typeof e&&(e=e.trim()),this.classes.push(e)),this},e.prototype.toString=function(){return this.classes.join(" ")},e}()},"./src/utils/devices.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"IsMobile",(function(){return s})),r.d(t,"IsTouch",(function(){return l})),r.d(t,"_setIsTouch",(function(){return u}));var n,o=!1,i=null;"undefined"!=typeof navigator&&"undefined"!=typeof window&&navigator&&window&&(i=navigator.userAgent||navigator.vendor||window.opera),(n=i)&&("MacIntel"===navigator.platform&&navigator.maxTouchPoints>0||"iPad"===navigator.platform||/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(n)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(n.substring(0,4)))&&(o=!0);var s=o||!1,a=!1;"undefined"!=typeof window&&(a="ontouchstart"in window||navigator.maxTouchPoints>0);var l=s&&a;function u(e){l=e}},"./src/utils/dragOrClickHelper.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragOrClickHelper",(function(){return o}));var n=r("./src/entries/core.ts"),o=function(){function e(e){var t=this;this.dragHandler=e,this.onPointerUp=function(e){t.clearListeners()},this.tryToStartDrag=function(e){if(t.currentX=e.pageX,t.currentY=e.pageY,!t.isMicroMovement)return t.clearListeners(),t.dragHandler(t.pointerDownEvent,t.currentTarget,t.itemModel),!0}}return e.prototype.onPointerDown=function(e,t){n.IsTouch?this.dragHandler(e,e.currentTarget,t):(this.pointerDownEvent=e,this.currentTarget=e.currentTarget,this.startX=e.pageX,this.startY=e.pageY,document.addEventListener("pointermove",this.tryToStartDrag),this.currentTarget.addEventListener("pointerup",this.onPointerUp),this.itemModel=t)},Object.defineProperty(e.prototype,"isMicroMovement",{get:function(){var e=Math.abs(this.currentX-this.startX),t=Math.abs(this.currentY-this.startY);return e<10&&t<10},enumerable:!1,configurable:!0}),e.prototype.clearListeners=function(){this.pointerDownEvent&&(document.removeEventListener("pointermove",this.tryToStartDrag),this.currentTarget.removeEventListener("pointerup",this.onPointerUp))},e}()},"./src/utils/popup.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"PopupUtils",(function(){return n}));var n=function(){function e(){}return e.calculatePosition=function(e,t,r,n,o,i,s){void 0===s&&(s="flex");var a=e.left,l=e.top;return"flex"===s&&(a="center"==o?(e.left+e.right-r)/2:"left"==o?e.left-r:e.right),l="middle"==n?(e.top+e.bottom-t)/2:"top"==n?e.top-t:e.bottom,i&&"center"!=o&&"middle"!=n&&("top"==n?l+=e.height:l-=e.height),{left:Math.round(a),top:Math.round(l)}},e.updateVerticalDimensions=function(t,r,n){var o;return t<0?o={height:r+t,top:0}:r+t>n&&(o={height:Math.min(r,n-t-e.bottomIndent),top:t}),o},e.updateHorizontalDimensions=function(e,t,r,n,o,i){void 0===o&&(o="flex"),void 0===i&&(i={left:0,right:0}),t+=i.left+i.right;var s=void 0,a=e;return"center"===n&&("fixed"===o?(e+t>r&&(s=r-e),a-=i.left):e<0?(a=i.left,s=Math.min(t,r)):t+e>r&&(a=r-t,a=Math.max(a,i.left),s=Math.min(t,r))),"left"===n&&e<0&&(a=i.left,s=Math.min(t,r)),"right"===n&&t+e>r&&(s=r-e),{width:s-i.left-i.right,left:a}},e.updateVerticalPosition=function(e,t,r,n,o){var i=t-(e.top+(n?e.height:0)),s=t+e.bottom-(n?e.height:0)-o;return i>0&&s<=0&&"top"==r?r="bottom":s>0&&i<=0&&"bottom"==r?r="top":s>0&&i>0&&(r=i<s?"top":"bottom"),r},e.calculatePopupDirection=function(e,t){var r;return"center"==t&&"middle"!=e?r=e:"center"!=t&&(r=t),r},e.calculatePointerTarget=function(e,t,r,n,o,i,s){void 0===i&&(i=0),void 0===s&&(s=0);var a={};return"center"!=o?(a.top=e.top+e.height/2,a.left=e[o]):"middle"!=n&&(a.top=e[n],a.left=e.left+e.width/2),a.left=Math.round(a.left-r),a.top=Math.round(a.top-t),"left"==o&&(a.left-=i+s),"center"===o&&(a.left-=i),a},e.bottomIndent=16,e}()},"./src/utils/responsivity-manager.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ResponsivityManager",(function(){return s})),r.d(t,"VerticalResponsivityManager",(function(){return a}));var n,o=r("./src/utils/utils.ts"),i=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(){function e(e,t,r,n){var o=this;void 0===n&&(n=null),this.container=e,this.model=t,this.itemsSelector=r,this.dotsItemSize=n,this.resizeObserver=void 0,this.isInitialized=!1,this.minDimensionConst=56,this.separatorSize=17,this.separatorAddConst=1,this.paddingSizeConst=8,this.dotsSizeConst=48,this.recalcMinDimensionConst=!0,this.getComputedStyle=window.getComputedStyle.bind(window),this.model.updateCallback=function(e){e?o.isInitialized=!1:setTimeout((function(){o.process()}),1)},"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(e){return o.process()})),this.resizeObserver.observe(this.container.parentElement))}return e.prototype.getDimensions=function(e){return{scroll:e.scrollWidth,offset:e.offsetWidth}},e.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetWidth;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)),t},e.prototype.calcItemSize=function(e){return e.offsetWidth},e.prototype.calcMinDimension=function(e){var t=this.minDimensionConst;return e.iconSize&&this.recalcMinDimensionConst&&(t=2*e.iconSize+this.paddingSizeConst),e.canShrink?t+(e.needSeparator?this.separatorSize:0):e.maxDimension},e.prototype.calcItemsSizes=function(){var e=this,t=this.model.actions;this.container.querySelectorAll(this.itemsSelector).forEach((function(r,n){var o=t[n];e.calcActionDimensions(o,r)}))},e.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcMinDimension(e)},Object.defineProperty(e.prototype,"isContainerVisible",{get:function(){return Object(o.isContainerVisible)(this.container)},enumerable:!1,configurable:!0}),e.prototype.process=function(){var e;if(this.isContainerVisible&&!this.model.isResponsivenessDisabled){this.isInitialized||(this.model.setActionsMode("large"),this.calcItemsSizes(),this.isInitialized=!0);var t=this.dotsItemSize;if(!this.dotsItemSize){var r=null===(e=this.container)||void 0===e?void 0:e.querySelector(".sv-dots");t=r&&this.calcItemSize(r)||this.dotsSizeConst}this.model.fit(this.getAvailableSpace(),t)}},e.prototype.dispose=function(){this.model.updateCallback=void 0,this.resizeObserver&&this.resizeObserver.disconnect()},e}(),a=function(e){function t(t,r,n,o,i){void 0===i&&(i=40);var s=e.call(this,t,r,n,o)||this;return s.minDimensionConst=i,s.recalcMinDimensionConst=!1,s}return i(t,e),t.prototype.getDimensions=function(){return{scroll:this.container.scrollHeight,offset:this.container.offsetHeight}},t.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetHeight;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)),t},t.prototype.calcItemSize=function(e){return e.offsetHeight},t.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcItemSize(t)},t}(s)},"./src/utils/tooltip.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"TooltipManager",(function(){return n}));var n=function(){function e(e){var t=this;this.tooltipElement=e,this.onMouseMoveCallback=function(e){t.tooltipElement.style.left=e.clientX+12+"px",t.tooltipElement.style.top=e.clientY+12+"px"},this.targetElement=e.parentElement,this.targetElement.addEventListener("mousemove",this.onMouseMoveCallback)}return e.prototype.dispose=function(){this.targetElement.removeEventListener("mousemove",this.onMouseMoveCallback)},e}()},"./src/utils/utils.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"unwrap",(function(){return y})),r.d(t,"getSize",(function(){return v})),r.d(t,"doKey2ClickBlur",(function(){return w})),r.d(t,"doKey2ClickUp",(function(){return C})),r.d(t,"doKey2ClickDown",(function(){return P})),r.d(t,"sanitizeEditableContent",(function(){return R})),r.d(t,"Logger",(function(){return j})),r.d(t,"mergeValues",(function(){return I})),r.d(t,"getElementWidth",(function(){return O})),r.d(t,"isContainerVisible",(function(){return T})),r.d(t,"classesToSelector",(function(){return E})),r.d(t,"compareVersions",(function(){return o})),r.d(t,"confirmAction",(function(){return i})),r.d(t,"detectIEOrEdge",(function(){return a})),r.d(t,"detectIEBrowser",(function(){return s})),r.d(t,"loadFileFromBase64",(function(){return l})),r.d(t,"isMobile",(function(){return u})),r.d(t,"isShadowDOM",(function(){return c})),r.d(t,"getElement",(function(){return p})),r.d(t,"isElementVisible",(function(){return d})),r.d(t,"findScrollableParent",(function(){return h})),r.d(t,"scrollElementByChildId",(function(){return f})),r.d(t,"navigateToUrl",(function(){return m})),r.d(t,"createSvg",(function(){return b})),r.d(t,"getIconNameFromProxy",(function(){return g})),r.d(t,"increaseHeightByContent",(function(){return _})),r.d(t,"getOriginalEvent",(function(){return S})),r.d(t,"preventDefaults",(function(){return V})),r.d(t,"findParentByClassNames",(function(){return k}));var n=r("./src/settings.ts");function o(e,t){for(var r=/(\.0+)+$/,n=e.replace(r,"").split("."),o=t.replace(r,"").split("."),i=Math.min(n.length,o.length),s=0;s<i;s++){var a=parseInt(n[s],10)-parseInt(o[s],10);if(a)return a}return n.length-o.length}function i(e){return n.settings&&n.settings.confirmActionFunc?n.settings.confirmActionFunc(e):confirm(e)}function s(){if("undefined"==typeof window)return!1;var e=window.navigator.userAgent,t=e.indexOf("MSIE "),r=e.indexOf("Trident/");return t>-1||r>-1}function a(){if("undefined"==typeof window)return!1;if(void 0===a.isIEOrEdge){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),r=e.indexOf("Trident/"),n=e.indexOf("Edge/");a.isIEOrEdge=n>0||r>0||t>0}return a.isIEOrEdge}function l(e,t){try{for(var r=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(r.length),i=new Uint8Array(o),s=0;s<r.length;s++)i[s]=r.charCodeAt(s);var a=new Blob([o],{type:n});"undefined"!=typeof window&&window.navigator&&window.navigator.msSaveBlob&&window.navigator.msSaveOrOpenBlob(a,t)}catch(e){}}function u(){return"undefined"!=typeof window&&void 0!==window.orientation}var c=function(e){return!!e&&!(!("host"in e)||!e.host)},p=function(e){var t=n.settings.environment.root;return"string"==typeof e?t.getElementById(e):e};function d(e,t){if(void 0===t&&(t=0),void 0===n.settings.environment)return!1;var r=n.settings.environment.root,o=c(r)?r.host.clientHeight:r.documentElement.clientHeight,i=e.getBoundingClientRect(),s=-t,a=Math.max(o,window.innerHeight)+t,l=i.top,u=i.bottom;return Math.max(s,l)<=Math.min(a,u)}function h(e){var t=n.settings.environment.root;return e?e.scrollHeight>e.clientHeight&&("scroll"===getComputedStyle(e).overflowY||"auto"===getComputedStyle(e).overflowY)||e.scrollWidth>e.clientWidth&&("scroll"===getComputedStyle(e).overflowX||"auto"===getComputedStyle(e).overflowX)?e:h(e.parentElement):c(t)?t.host:t.documentElement}function f(e){var t=n.settings.environment;if(t){var r=t.root.getElementById(e);if(r){var o=h(r);o&&o.dispatchEvent(new CustomEvent("scroll"))}}}function m(e){e&&"undefined"!=typeof window&&window.location&&(window.location.href=e)}function g(e){return e&&n.settings.customIcons[e]||e}function b(e,t,r,n,o,i){if(o){"auto"!==e&&(o.style.width=(e||t||16)+"px",o.style.height=(e||r||16)+"px");var s=o.childNodes[0],a=g(n);s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+a);var l=o.getElementsByTagName("title")[0];i?(l||(l=document.createElementNS("http://www.w3.org/2000/svg","title"),o.appendChild(l)),l.textContent=i):l&&o.removeChild(l)}}function y(e){return"function"!=typeof e?e:e()}function v(e){if("number"==typeof e)return e+"px";if(e&&"string"==typeof e&&e.length>0){var t=e[e.length-1];if(t>="0"&&t<="9"||"."==t)try{return parseFloat(e)+"px"}catch(e){}}return e}var x="sv-focused--by-key";function w(e){var t=e.target;t&&t.classList&&t.classList.remove(x)}function C(e,t){if(!e.target||"true"!==e.target.contentEditable){var r=e.target;if(r){var n=e.which||e.keyCode;if(9!==n){if(t){if(!t.__keyDownReceived)return;t.__keyDownReceived=!1}13===n||32===n?r.click&&r.click():t&&!t.processEsc||27!==n||r.blur&&r.blur()}else r.classList&&!r.classList.contains(x)&&r.classList.add(x)}}}function P(e,t){if(void 0===t&&(t={processEsc:!0}),t&&(t.__keyDownReceived=!0),!e.target||"true"!==e.target.contentEditable){var r=e.which||e.keyCode,n=[13,32];t.processEsc&&n.push(27),-1!==n.indexOf(r)&&e.preventDefault()}}function _(e,t){if(e){t||(t=function(e){return window.getComputedStyle(e)});var r=t(e);e.style.height="auto",e.style.height=e.scrollHeight+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth)+"px"}}function S(e){return e.originalEvent||e}function V(e){e.preventDefault(),e.stopPropagation()}function E(e){return e.replace(/\s*?([\w-]+)\s*?/g,".$1")}function O(e){return getComputedStyle?Number.parseFloat(getComputedStyle(e).width):e.offsetWidth}function T(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function k(e,t){if(e)return t.every((function(t){return!t||e.classList.contains(t)}))?e:k(e.parentElement,t)}function R(e){if(window.getSelection&&document.createRange&&e.childNodes.length>0){var t=document.getSelection(),r=t.getRangeAt(0);r.setStart(r.endContainer,r.endOffset),r.setEndAfter(e.lastChild),t.removeAllRanges(),t.addRange(r);var n=t.toString().replace(/\n/g,"").length;e.innerText=e.innerText.replace(/\n/g,""),(r=document.createRange()).setStart(e.childNodes[0],e.innerText.length-n),r.collapse(!0),t.removeAllRanges(),t.addRange(r)}}function I(e,t){if(t&&e&&"object"==typeof t)for(var r in e){var n=e[r];!Array.isArray(n)&&n&&"object"==typeof n?(t[r]&&"object"==typeof t[r]||(t[r]={}),I(n,t[r])):t[r]=n}}var j=function(){function e(){this._result=""}return e.prototype.log=function(e){this._result+="->"+e},Object.defineProperty(e.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),e}()},"./src/validator.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ValidatorResult",(function(){return c})),r.d(t,"SurveyValidator",(function(){return p})),r.d(t,"ValidatorRunner",(function(){return d})),r.d(t,"NumericValidator",(function(){return h})),r.d(t,"TextValidator",(function(){return f})),r.d(t,"AnswerCountValidator",(function(){return m})),r.d(t,"RegexValidator",(function(){return g})),r.d(t,"EmailValidator",(function(){return b})),r.d(t,"ExpressionValidator",(function(){return y}));var n,o=r("./src/base.ts"),i=r("./src/error.ts"),s=r("./src/jsonobject.ts"),a=r("./src/conditions.ts"),l=r("./src/helpers.ts"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t){void 0===t&&(t=null),this.value=e,this.error=t},p=function(e){function t(){var t=e.call(this)||this;return t.createLocalizableString("text",t,!0),t}return u(t,e),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.errorOwner&&this.errorOwner.getSurvey?this.errorOwner.getSurvey():null},Object.defineProperty(t.prototype,"text",{get:function(){return this.getLocalizableStringText("text")},set:function(e){this.setLocalizableStringText("text",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.getLocalizableString("text")},enumerable:!1,configurable:!0}),t.prototype.getErrorText=function(e){return this.text?this.text:this.getDefaultErrorText(e)},t.prototype.getDefaultErrorText=function(e){return""},t.prototype.validate=function(e,t,r,n){return void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),null},Object.defineProperty(t.prototype,"isRunning",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.errorOwner?this.errorOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.errorOwner?this.errorOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.errorOwner?this.errorOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.errorOwner?this.errorOwner.getProcessedText(e):e},t.prototype.createCustomError=function(e){var t=this,r=new i.CustomError(this.getErrorText(e),this.errorOwner);return r.onUpdateErrorTextCallback=function(r){return r.text=t.getErrorText(e)},r},t.prototype.toString=function(){var e=this.getType().replace("validator","");return this.text&&(e+=", "+this.text),e},t}(o.Base),d=function(){function e(){}return e.prototype.run=function(e){var t=this,r=[],n=null,o=null;this.prepareAsyncValidators();for(var i=[],s=e.getValidators(),a=0;a<s.length;a++){var l=s[a];!n&&l.isValidateAllValues&&(n=e.getDataFilteredValues(),o=e.getDataFilteredProperties()),l.isAsync&&(this.asyncValidators.push(l),l.onAsyncCompleted=function(e){if(e&&e.error&&i.push(e.error),t.onAsyncCompleted){for(var r=0;r<t.asyncValidators.length;r++)if(t.asyncValidators[r].isRunning)return;t.onAsyncCompleted(i)}})}for(s=e.getValidators(),a=0;a<s.length;a++){var u=(l=s[a]).validate(e.validatedValue,e.getValidatorTitle(),n,o);u&&u.error&&r.push(u.error)}return 0==this.asyncValidators.length&&this.onAsyncCompleted&&this.onAsyncCompleted([]),r},e.prototype.prepareAsyncValidators=function(){if(this.asyncValidators)for(var e=0;e<this.asyncValidators.length;e++)this.asyncValidators[e].onAsyncCompleted=null;this.asyncValidators=[]},e}(),h=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;return n.minValue=t,n.maxValue=r,n}return u(t,e),t.prototype.getType=function(){return"numericvalidator"},t.prototype.validate=function(e,t,r,n){if(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),this.isValueEmpty(e))return null;if(!l.Helpers.isNumber(e))return new c(null,new i.RequreNumericError(null,this.errorOwner));var o=new c(l.Helpers.getNumber(e));return null!==this.minValue&&this.minValue>o.value||null!==this.maxValue&&this.maxValue<o.value?(o.error=this.createCustomError(t),o):"number"==typeof e?null:o},t.prototype.getDefaultErrorText=function(e){var t=e||this.getLocalizationString("value");return null!==this.minValue&&null!==this.maxValue?this.getLocalizationFormatString("numericMinMax",t,this.minValue,this.maxValue):null!==this.minValue?this.getLocalizationFormatString("numericMin",t,this.minValue):this.getLocalizationFormatString("numericMax",t,this.maxValue)},Object.defineProperty(t.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")},set:function(e){this.setPropertyValue("minValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(e){this.setPropertyValue("maxValue",e)},enumerable:!1,configurable:!0}),t}(p),f=function(e){function t(){return e.call(this)||this}return u(t,e),t.prototype.getType=function(){return"textvalidator"},t.prototype.validate=function(e,t,r,n){return void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),this.isValueEmpty(e)?null:this.allowDigits||/^[A-Za-z\s\.]*$/.test(e)?this.minLength>0&&e.length<this.minLength||this.maxLength>0&&e.length>this.maxLength?new c(null,this.createCustomError(t)):null:new c(null,this.createCustomError(t))},t.prototype.getDefaultErrorText=function(e){return this.minLength>0&&this.maxLength>0?this.getLocalizationFormatString("textMinMaxLength",this.minLength,this.maxLength):this.minLength>0?this.getLocalizationFormatString("textMinLength",this.minLength):this.getLocalizationFormatString("textMaxLength",this.maxLength)},Object.defineProperty(t.prototype,"minLength",{get:function(){return this.getPropertyValue("minLength")},set:function(e){this.setPropertyValue("minLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowDigits",{get:function(){return this.getPropertyValue("allowDigits")},set:function(e){this.setPropertyValue("allowDigits",e)},enumerable:!1,configurable:!0}),t}(p),m=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;return n.minCount=t,n.maxCount=r,n}return u(t,e),t.prototype.getType=function(){return"answercountvalidator"},t.prototype.validate=function(e,t,r,n){if(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),null==e||e.constructor!=Array)return null;var o=e.length;return 0==o?null:this.minCount&&o<this.minCount?new c(null,this.createCustomError(this.getLocalizationFormatString("minSelectError",this.minCount))):this.maxCount&&o>this.maxCount?new c(null,this.createCustomError(this.getLocalizationFormatString("maxSelectError",this.maxCount))):null},t.prototype.getDefaultErrorText=function(e){return e},Object.defineProperty(t.prototype,"minCount",{get:function(){return this.getPropertyValue("minCount")},set:function(e){this.setPropertyValue("minCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxCount",{get:function(){return this.getPropertyValue("maxCount")},set:function(e){this.setPropertyValue("maxCount",e)},enumerable:!1,configurable:!0}),t}(p),g=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this)||this;return r.regex=t,r}return u(t,e),t.prototype.getType=function(){return"regexvalidator"},t.prototype.validate=function(e,t,r,n){if(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),!this.regex||this.isValueEmpty(e))return null;var o=new RegExp(this.regex);if(Array.isArray(e))for(var i=0;i<e.length;i++){var s=this.hasError(o,e[i],t);if(s)return s}return this.hasError(o,e,t)},t.prototype.hasError=function(e,t,r){return e.test(t)?null:new c(t,this.createCustomError(r))},Object.defineProperty(t.prototype,"regex",{get:function(){return this.getPropertyValue("regex")},set:function(e){this.setPropertyValue("regex",e)},enumerable:!1,configurable:!0}),t}(p),b=function(e){function t(){var t=e.call(this)||this;return t.re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()=[\]\.,;:\s@\"]+\.)+[^<>()=[\]\.,;:\s@\"]{2,})$/i,t}return u(t,e),t.prototype.getType=function(){return"emailvalidator"},t.prototype.validate=function(e,t,r,n){return void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),e?this.re.test(e)?null:new c(e,this.createCustomError(t)):null},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationString("invalidEmail")},t}(p),y=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this)||this;return r.conditionRunner=null,r.isRunningValue=!1,r.expression=t,r}return u(t,e),t.prototype.getType=function(){return"expressionvalidator"},Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!!this.ensureConditionRunner()&&this.conditionRunner.isAsync},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!1,configurable:!0}),t.prototype.validate=function(e,t,r,n){var o=this;if(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),!this.ensureConditionRunner())return null;this.conditionRunner.onRunComplete=function(r){o.isRunningValue=!1,o.onAsyncCompleted&&o.onAsyncCompleted(o.generateError(r,e,t))},this.isRunningValue=!0;var i=this.conditionRunner.run(r,n);return this.conditionRunner.isAsync?null:(this.isRunningValue=!1,this.generateError(i,e,t))},t.prototype.generateError=function(e,t,r){return e?null:new c(t,this.createCustomError(r))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationFormatString("invalidExpression",this.expression)},t.prototype.ensureConditionRunner=function(){return this.conditionRunner?(this.conditionRunner.expression=this.expression,!0):!!this.expression&&(this.conditionRunner=new a.ConditionRunner(this.expression),!0)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t}(p);s.Serializer.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),s.Serializer.addClass("numericvalidator",["minValue:number","maxValue:number"],(function(){return new h}),"surveyvalidator"),s.Serializer.addClass("textvalidator",[{name:"minLength:number",default:0},{name:"maxLength:number",default:0},{name:"allowDigits:boolean",default:!0}],(function(){return new f}),"surveyvalidator"),s.Serializer.addClass("answercountvalidator",["minCount:number","maxCount:number"],(function(){return new m}),"surveyvalidator"),s.Serializer.addClass("regexvalidator",["regex"],(function(){return new g}),"surveyvalidator"),s.Serializer.addClass("emailvalidator",[],(function(){return new b}),"surveyvalidator"),s.Serializer.addClass("expressionvalidator",["expression:condition"],(function(){return new y}),"surveyvalidator")}})},e.exports=t()},6352:function(e,t,r){var n;n=function(e,t,r){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="./src/entries/react-ui.ts")}({"./src/entries/core-export.ts":function(e,t,r){"use strict";r.r(t);var n=r("survey-core");r.d(t,"SurveyModel",(function(){return n.SurveyModel})),r.d(t,"SurveyWindowModel",(function(){return n.SurveyWindowModel})),r.d(t,"settings",(function(){return n.settings})),r.d(t,"surveyLocalization",(function(){return n.surveyLocalization})),r.d(t,"surveyStrings",(function(){return n.surveyStrings}))},"./src/entries/react-ui-model.ts":function(e,t,r){"use strict";r.r(t);var n=r("./src/react/reactSurvey.tsx");r.d(t,"Survey",(function(){return n.Survey})),r.d(t,"attachKey2click",(function(){return n.attachKey2click}));var o=r("./src/react/reactsurveymodel.tsx");r.d(t,"ReactSurveyElementsWrapper",(function(){return o.ReactSurveyElementsWrapper}));var i=r("./src/react/reactSurveyNavigationBase.tsx");r.d(t,"SurveyNavigationBase",(function(){return i.SurveyNavigationBase}));var s=r("./src/react/reacttimerpanel.tsx");r.d(t,"SurveyTimerPanel",(function(){return s.SurveyTimerPanel}));var a=r("./src/react/page.tsx");r.d(t,"SurveyPage",(function(){return a.SurveyPage}));var l=r("./src/react/row.tsx");r.d(t,"SurveyRow",(function(){return l.SurveyRow}));var u=r("./src/react/panel.tsx");r.d(t,"SurveyPanel",(function(){return u.SurveyPanel}));var c=r("./src/react/flow-panel.tsx");r.d(t,"SurveyFlowPanel",(function(){return c.SurveyFlowPanel}));var p=r("./src/react/reactquestion.tsx");r.d(t,"SurveyQuestion",(function(){return p.SurveyQuestion})),r.d(t,"SurveyElementErrors",(function(){return p.SurveyElementErrors})),r.d(t,"SurveyQuestionAndErrorsCell",(function(){return p.SurveyQuestionAndErrorsCell}));var d=r("./src/react/reactquestion_element.tsx");r.d(t,"ReactSurveyElement",(function(){return d.ReactSurveyElement})),r.d(t,"SurveyElementBase",(function(){return d.SurveyElementBase})),r.d(t,"SurveyQuestionElementBase",(function(){return d.SurveyQuestionElementBase}));var h=r("./src/react/reactquestion_comment.tsx");r.d(t,"SurveyQuestionCommentItem",(function(){return h.SurveyQuestionCommentItem})),r.d(t,"SurveyQuestionComment",(function(){return h.SurveyQuestionComment}));var f=r("./src/react/reactquestion_checkbox.tsx");r.d(t,"SurveyQuestionCheckbox",(function(){return f.SurveyQuestionCheckbox})),r.d(t,"SurveyQuestionCheckboxItem",(function(){return f.SurveyQuestionCheckboxItem}));var m=r("./src/react/reactquestion_ranking.tsx");r.d(t,"SurveyQuestionRanking",(function(){return m.SurveyQuestionRanking})),r.d(t,"SurveyQuestionRankingItem",(function(){return m.SurveyQuestionRankingItem}));var g=r("./src/react/components/rating/rating-item.tsx");r.d(t,"RatingItem",(function(){return g.RatingItem}));var b=r("./src/react/components/rating/rating-item-star.tsx");r.d(t,"RatingItemStar",(function(){return b.RatingItemStar}));var y=r("./src/react/components/rating/rating-item-smiley.tsx");r.d(t,"RatingItemSmiley",(function(){return y.RatingItemSmiley}));var v=r("./src/react/tagbox-filter.tsx");r.d(t,"TagboxFilterString",(function(){return v.TagboxFilterString}));var x=r("./src/react/dropdown-item.tsx");r.d(t,"SurveyQuestionOptionItem",(function(){return x.SurveyQuestionOptionItem}));var w=r("./src/react/dropdown-base.tsx");r.d(t,"SurveyQuestionDropdownBase",(function(){return w.SurveyQuestionDropdownBase}));var C=r("./src/react/reactquestion_dropdown.tsx");r.d(t,"SurveyQuestionDropdown",(function(){return C.SurveyQuestionDropdown}));var P=r("./src/react/tagbox-item.tsx");r.d(t,"SurveyQuestionTagboxItem",(function(){return P.SurveyQuestionTagboxItem}));var _=r("./src/react/reactquestion_tagbox.tsx");r.d(t,"SurveyQuestionTagbox",(function(){return _.SurveyQuestionTagbox}));var S=r("./src/react/dropdown-select.tsx");r.d(t,"SurveyQuestionDropdownSelect",(function(){return S.SurveyQuestionDropdownSelect}));var V=r("./src/react/reactquestion_matrix.tsx");r.d(t,"SurveyQuestionMatrix",(function(){return V.SurveyQuestionMatrix})),r.d(t,"SurveyQuestionMatrixRow",(function(){return V.SurveyQuestionMatrixRow}));var E=r("./src/react/reactquestion_html.tsx");r.d(t,"SurveyQuestionHtml",(function(){return E.SurveyQuestionHtml}));var O=r("./src/react/reactquestion_file.tsx");r.d(t,"SurveyQuestionFile",(function(){return O.SurveyQuestionFile}));var T=r("./src/react/reactquestion_multipletext.tsx");r.d(t,"SurveyQuestionMultipleText",(function(){return T.SurveyQuestionMultipleText}));var k=r("./src/react/reactquestion_radiogroup.tsx");r.d(t,"SurveyQuestionRadiogroup",(function(){return k.SurveyQuestionRadiogroup})),r.d(t,"SurveyQuestionRadioItem",(function(){return k.SurveyQuestionRadioItem}));var R=r("./src/react/reactquestion_text.tsx");r.d(t,"SurveyQuestionText",(function(){return R.SurveyQuestionText}));var I=r("./src/react/boolean.tsx");r.d(t,"SurveyQuestionBoolean",(function(){return I.SurveyQuestionBoolean}));var j=r("./src/react/boolean-checkbox.tsx");r.d(t,"SurveyQuestionBooleanCheckbox",(function(){return j.SurveyQuestionBooleanCheckbox}));var D=r("./src/react/boolean-radio.tsx");r.d(t,"SurveyQuestionBooleanRadio",(function(){return D.SurveyQuestionBooleanRadio}));var q=r("./src/react/reactquestion_empty.tsx");r.d(t,"SurveyQuestionEmpty",(function(){return q.SurveyQuestionEmpty}));var M=r("./src/react/reactquestion_matrixdropdownbase.tsx");r.d(t,"SurveyQuestionMatrixDropdownCell",(function(){return M.SurveyQuestionMatrixDropdownCell})),r.d(t,"SurveyQuestionMatrixDropdownBase",(function(){return M.SurveyQuestionMatrixDropdownBase}));var L=r("./src/react/reactquestion_matrixdropdown.tsx");r.d(t,"SurveyQuestionMatrixDropdown",(function(){return L.SurveyQuestionMatrixDropdown}));var A=r("./src/react/reactquestion_matrixdynamic.tsx");r.d(t,"SurveyQuestionMatrixDynamic",(function(){return A.SurveyQuestionMatrixDynamic})),r.d(t,"SurveyQuestionMatrixDynamicAddButton",(function(){return A.SurveyQuestionMatrixDynamicAddButton}));var N=r("./src/react/reactquestion_paneldynamic.tsx");r.d(t,"SurveyQuestionPanelDynamic",(function(){return N.SurveyQuestionPanelDynamic}));var B=r("./src/react/reactSurveyProgress.tsx");r.d(t,"SurveyProgress",(function(){return B.SurveyProgress}));var F=r("./src/react/reactSurveyProgressButtons.tsx");r.d(t,"SurveyProgressButtons",(function(){return F.SurveyProgressButtons}));var z=r("./src/react/reactSurveyProgressToc.tsx");r.d(t,"SurveyProgressToc",(function(){return z.SurveyProgressToc}));var Q=r("./src/react/reactquestion_rating.tsx");r.d(t,"SurveyQuestionRating",(function(){return Q.SurveyQuestionRating}));var H=r("./src/react/rating-dropdown.tsx");r.d(t,"SurveyQuestionRatingDropdown",(function(){return H.SurveyQuestionRatingDropdown}));var U=r("./src/react/reactquestion_expression.tsx");r.d(t,"SurveyQuestionExpression",(function(){return U.SurveyQuestionExpression}));var W=r("./src/react/react-popup-survey.tsx");r.d(t,"PopupSurvey",(function(){return W.PopupSurvey})),r.d(t,"SurveyWindow",(function(){return W.SurveyWindow}));var G=r("./src/react/reactquestion_factory.tsx");r.d(t,"ReactQuestionFactory",(function(){return G.ReactQuestionFactory}));var J=r("./src/react/element-factory.tsx");r.d(t,"ReactElementFactory",(function(){return J.ReactElementFactory}));var $=r("./src/react/imagepicker.tsx");r.d(t,"SurveyQuestionImagePicker",(function(){return $.SurveyQuestionImagePicker}));var K=r("./src/react/image.tsx");r.d(t,"SurveyQuestionImage",(function(){return K.SurveyQuestionImage}));var Z=r("./src/react/signaturepad.tsx");r.d(t,"SurveyQuestionSignaturePad",(function(){return Z.SurveyQuestionSignaturePad}));var X=r("./src/react/reactquestion_buttongroup.tsx");r.d(t,"SurveyQuestionButtonGroup",(function(){return X.SurveyQuestionButtonGroup}));var Y=r("./src/react/reactquestion_custom.tsx");r.d(t,"SurveyQuestionCustom",(function(){return Y.SurveyQuestionCustom})),r.d(t,"SurveyQuestionComposite",(function(){return Y.SurveyQuestionComposite}));var ee=r("./src/react/components/popup/popup.tsx");r.d(t,"Popup",(function(){return ee.Popup}));var te=r("./src/react/components/list/list.tsx");r.d(t,"List",(function(){return te.List}));var re=r("./src/react/components/title/title-actions.tsx");r.d(t,"TitleActions",(function(){return re.TitleActions}));var ne=r("./src/react/components/title/title-element.tsx");r.d(t,"TitleElement",(function(){return ne.TitleElement}));var oe=r("./src/react/components/action-bar/action-bar.tsx");r.d(t,"SurveyActionBar",(function(){return oe.SurveyActionBar}));var ie=r("./src/react/components/survey-header/logo-image.tsx");r.d(t,"LogoImage",(function(){return ie.LogoImage}));var se=r("./src/react/components/survey-header/survey-header.tsx");r.d(t,"SurveyHeader",(function(){return se.SurveyHeader}));var ae=r("./src/react/components/svg-icon/svg-icon.tsx");r.d(t,"SvgIcon",(function(){return ae.SvgIcon}));var le=r("./src/react/components/matrix-actions/remove-button/remove-button.tsx");r.d(t,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return le.SurveyQuestionMatrixDynamicRemoveButton}));var ue=r("./src/react/components/matrix-actions/detail-button/detail-button.tsx");r.d(t,"SurveyQuestionMatrixDetailButton",(function(){return ue.SurveyQuestionMatrixDetailButton}));var ce=r("./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx");r.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return ce.SurveyQuestionMatrixDynamicDragDropIcon}));var pe=r("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx");r.d(t,"SurveyQuestionPanelDynamicAddButton",(function(){return pe.SurveyQuestionPanelDynamicAddButton}));var de=r("./src/react/components/paneldynamic-actions/paneldynamic-remove-btn.tsx");r.d(t,"SurveyQuestionPanelDynamicRemoveButton",(function(){return de.SurveyQuestionPanelDynamicRemoveButton}));var he=r("./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx");r.d(t,"SurveyQuestionPanelDynamicPrevButton",(function(){return he.SurveyQuestionPanelDynamicPrevButton}));var fe=r("./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx");r.d(t,"SurveyQuestionPanelDynamicNextButton",(function(){return fe.SurveyQuestionPanelDynamicNextButton}));var me=r("./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx");r.d(t,"SurveyQuestionPanelDynamicProgressText",(function(){return me.SurveyQuestionPanelDynamicProgressText}));var ge=r("./src/react/components/survey-actions/survey-nav-button.tsx");r.d(t,"SurveyNavigationButton",(function(){return ge.SurveyNavigationButton}));var be=r("./src/react/components/matrix/row.tsx");r.d(t,"MatrixRow",(function(){return be.MatrixRow}));var ye=r("./src/react/components/skeleton.tsx");r.d(t,"Skeleton",(function(){return ye.Skeleton}));var ve=r("./src/react/components/notifier.tsx");r.d(t,"NotifierComponent",(function(){return ve.NotifierComponent}));var xe=r("./src/react/components/components-container.tsx");r.d(t,"ComponentsContainer",(function(){return xe.ComponentsContainer}));var we=r("./src/react/components/character-counter.tsx");r.d(t,"CharacterCounterComponent",(function(){return we.CharacterCounterComponent}));var Ce=r("./src/react/string-viewer.tsx");r.d(t,"SurveyLocStringViewer",(function(){return Ce.SurveyLocStringViewer}));var Pe=r("./src/react/string-editor.tsx");r.d(t,"SurveyLocStringEditor",(function(){return Pe.SurveyLocStringEditor}))},"./src/entries/react-ui.ts":function(e,t,r){"use strict";r.r(t);var n=r("./src/entries/react-ui-model.ts");r.d(t,"Survey",(function(){return n.Survey})),r.d(t,"attachKey2click",(function(){return n.attachKey2click})),r.d(t,"ReactSurveyElementsWrapper",(function(){return n.ReactSurveyElementsWrapper})),r.d(t,"SurveyNavigationBase",(function(){return n.SurveyNavigationBase})),r.d(t,"SurveyTimerPanel",(function(){return n.SurveyTimerPanel})),r.d(t,"SurveyPage",(function(){return n.SurveyPage})),r.d(t,"SurveyRow",(function(){return n.SurveyRow})),r.d(t,"SurveyPanel",(function(){return n.SurveyPanel})),r.d(t,"SurveyFlowPanel",(function(){return n.SurveyFlowPanel})),r.d(t,"SurveyQuestion",(function(){return n.SurveyQuestion})),r.d(t,"SurveyElementErrors",(function(){return n.SurveyElementErrors})),r.d(t,"SurveyQuestionAndErrorsCell",(function(){return n.SurveyQuestionAndErrorsCell})),r.d(t,"ReactSurveyElement",(function(){return n.ReactSurveyElement})),r.d(t,"SurveyElementBase",(function(){return n.SurveyElementBase})),r.d(t,"SurveyQuestionElementBase",(function(){return n.SurveyQuestionElementBase})),r.d(t,"SurveyQuestionCommentItem",(function(){return n.SurveyQuestionCommentItem})),r.d(t,"SurveyQuestionComment",(function(){return n.SurveyQuestionComment})),r.d(t,"SurveyQuestionCheckbox",(function(){return n.SurveyQuestionCheckbox})),r.d(t,"SurveyQuestionCheckboxItem",(function(){return n.SurveyQuestionCheckboxItem})),r.d(t,"SurveyQuestionRanking",(function(){return n.SurveyQuestionRanking})),r.d(t,"SurveyQuestionRankingItem",(function(){return n.SurveyQuestionRankingItem})),r.d(t,"RatingItem",(function(){return n.RatingItem})),r.d(t,"RatingItemStar",(function(){return n.RatingItemStar})),r.d(t,"RatingItemSmiley",(function(){return n.RatingItemSmiley})),r.d(t,"TagboxFilterString",(function(){return n.TagboxFilterString})),r.d(t,"SurveyQuestionOptionItem",(function(){return n.SurveyQuestionOptionItem})),r.d(t,"SurveyQuestionDropdownBase",(function(){return n.SurveyQuestionDropdownBase})),r.d(t,"SurveyQuestionDropdown",(function(){return n.SurveyQuestionDropdown})),r.d(t,"SurveyQuestionTagboxItem",(function(){return n.SurveyQuestionTagboxItem})),r.d(t,"SurveyQuestionTagbox",(function(){return n.SurveyQuestionTagbox})),r.d(t,"SurveyQuestionDropdownSelect",(function(){return n.SurveyQuestionDropdownSelect})),r.d(t,"SurveyQuestionMatrix",(function(){return n.SurveyQuestionMatrix})),r.d(t,"SurveyQuestionMatrixRow",(function(){return n.SurveyQuestionMatrixRow})),r.d(t,"SurveyQuestionHtml",(function(){return n.SurveyQuestionHtml})),r.d(t,"SurveyQuestionFile",(function(){return n.SurveyQuestionFile})),r.d(t,"SurveyQuestionMultipleText",(function(){return n.SurveyQuestionMultipleText})),r.d(t,"SurveyQuestionRadiogroup",(function(){return n.SurveyQuestionRadiogroup})),r.d(t,"SurveyQuestionRadioItem",(function(){return n.SurveyQuestionRadioItem})),r.d(t,"SurveyQuestionText",(function(){return n.SurveyQuestionText})),r.d(t,"SurveyQuestionBoolean",(function(){return n.SurveyQuestionBoolean})),r.d(t,"SurveyQuestionBooleanCheckbox",(function(){return n.SurveyQuestionBooleanCheckbox})),r.d(t,"SurveyQuestionBooleanRadio",(function(){return n.SurveyQuestionBooleanRadio})),r.d(t,"SurveyQuestionEmpty",(function(){return n.SurveyQuestionEmpty})),r.d(t,"SurveyQuestionMatrixDropdownCell",(function(){return n.SurveyQuestionMatrixDropdownCell})),r.d(t,"SurveyQuestionMatrixDropdownBase",(function(){return n.SurveyQuestionMatrixDropdownBase})),r.d(t,"SurveyQuestionMatrixDropdown",(function(){return n.SurveyQuestionMatrixDropdown})),r.d(t,"SurveyQuestionMatrixDynamic",(function(){return n.SurveyQuestionMatrixDynamic})),r.d(t,"SurveyQuestionMatrixDynamicAddButton",(function(){return n.SurveyQuestionMatrixDynamicAddButton})),r.d(t,"SurveyQuestionPanelDynamic",(function(){return n.SurveyQuestionPanelDynamic})),r.d(t,"SurveyProgress",(function(){return n.SurveyProgress})),r.d(t,"SurveyProgressButtons",(function(){return n.SurveyProgressButtons})),r.d(t,"SurveyProgressToc",(function(){return n.SurveyProgressToc})),r.d(t,"SurveyQuestionRating",(function(){return n.SurveyQuestionRating})),r.d(t,"SurveyQuestionRatingDropdown",(function(){return n.SurveyQuestionRatingDropdown})),r.d(t,"SurveyQuestionExpression",(function(){return n.SurveyQuestionExpression})),r.d(t,"PopupSurvey",(function(){return n.PopupSurvey})),r.d(t,"SurveyWindow",(function(){return n.SurveyWindow})),r.d(t,"ReactQuestionFactory",(function(){return n.ReactQuestionFactory})),r.d(t,"ReactElementFactory",(function(){return n.ReactElementFactory})),r.d(t,"SurveyQuestionImagePicker",(function(){return n.SurveyQuestionImagePicker})),r.d(t,"SurveyQuestionImage",(function(){return n.SurveyQuestionImage})),r.d(t,"SurveyQuestionSignaturePad",(function(){return n.SurveyQuestionSignaturePad})),r.d(t,"SurveyQuestionButtonGroup",(function(){return n.SurveyQuestionButtonGroup})),r.d(t,"SurveyQuestionCustom",(function(){return n.SurveyQuestionCustom})),r.d(t,"SurveyQuestionComposite",(function(){return n.SurveyQuestionComposite})),r.d(t,"Popup",(function(){return n.Popup})),r.d(t,"List",(function(){return n.List})),r.d(t,"TitleActions",(function(){return n.TitleActions})),r.d(t,"TitleElement",(function(){return n.TitleElement})),r.d(t,"SurveyActionBar",(function(){return n.SurveyActionBar})),r.d(t,"LogoImage",(function(){return n.LogoImage})),r.d(t,"SurveyHeader",(function(){return n.SurveyHeader})),r.d(t,"SvgIcon",(function(){return n.SvgIcon})),r.d(t,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return n.SurveyQuestionMatrixDynamicRemoveButton})),r.d(t,"SurveyQuestionMatrixDetailButton",(function(){return n.SurveyQuestionMatrixDetailButton})),r.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return n.SurveyQuestionMatrixDynamicDragDropIcon})),r.d(t,"SurveyQuestionPanelDynamicAddButton",(function(){return n.SurveyQuestionPanelDynamicAddButton})),r.d(t,"SurveyQuestionPanelDynamicRemoveButton",(function(){return n.SurveyQuestionPanelDynamicRemoveButton})),r.d(t,"SurveyQuestionPanelDynamicPrevButton",(function(){return n.SurveyQuestionPanelDynamicPrevButton})),r.d(t,"SurveyQuestionPanelDynamicNextButton",(function(){return n.SurveyQuestionPanelDynamicNextButton})),r.d(t,"SurveyQuestionPanelDynamicProgressText",(function(){return n.SurveyQuestionPanelDynamicProgressText})),r.d(t,"SurveyNavigationButton",(function(){return n.SurveyNavigationButton})),r.d(t,"MatrixRow",(function(){return n.MatrixRow})),r.d(t,"Skeleton",(function(){return n.Skeleton})),r.d(t,"NotifierComponent",(function(){return n.NotifierComponent})),r.d(t,"ComponentsContainer",(function(){return n.ComponentsContainer})),r.d(t,"CharacterCounterComponent",(function(){return n.CharacterCounterComponent})),r.d(t,"SurveyLocStringViewer",(function(){return n.SurveyLocStringViewer})),r.d(t,"SurveyLocStringEditor",(function(){return n.SurveyLocStringEditor}));var o=r("./src/entries/core-export.ts");r.d(t,"SurveyModel",(function(){return o.SurveyModel})),r.d(t,"SurveyWindowModel",(function(){return o.SurveyWindowModel})),r.d(t,"settings",(function(){return o.settings})),r.d(t,"surveyLocalization",(function(){return o.surveyLocalization})),r.d(t,"surveyStrings",(function(){return o.surveyStrings}));var i=r("survey-core");r.d(t,"Model",(function(){return i.SurveyModel}));var s=r("./src/utils/responsivity-manager.ts");r.d(t,"ResponsivityManager",(function(){return s.ResponsivityManager})),r.d(t,"VerticalResponsivityManager",(function(){return s.VerticalResponsivityManager}));var a=r("./src/utils/utils.ts");r.d(t,"unwrap",(function(){return a.unwrap})),Object(i.checkLibraryVersion)("1.9.90","survey-react-ui")},"./src/react/boolean-checkbox.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionBooleanCheckbox",(function(){return p}));var n,o=r("react"),i=r("survey-core"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/boolean.tsx"),l=r("./src/react/components/title/title-actions.tsx"),u=r("./src/react/reactquestion_element.tsx"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.getCheckboxItemCss(),r=this.question.canRenderLabelDescription?u.SurveyElementBase.renderQuestionDescription(this.question):null;return o.createElement("div",{className:e.rootCheckbox},o.createElement("div",{className:t},o.createElement("label",{className:e.checkboxLabel},o.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:e.controlCheckbox,disabled:this.isDisplayMode,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),o.createElement("span",{className:e.checkboxMaterialDecorator},this.question.svgIcon?o.createElement("svg",{className:e.checkboxItemDecorator},o.createElement("use",{xlinkHref:this.question.svgIcon})):null,o.createElement("span",{className:"check"})),this.question.isLabelRendered&&o.createElement("span",{className:e.checkboxControlLabel,id:this.question.labelRenderedAriaID},o.createElement(l.TitleActions,{element:this.question,cssClasses:this.question.cssClasses}))),r))},t}(a.SurveyQuestionBoolean);s.ReactQuestionFactory.Instance.registerQuestion("sv-boolean-checkbox",(function(e){return o.createElement(p,e)})),i.RendererFactory.Instance.registerRenderer("boolean","checkbox","sv-boolean-checkbox")},"./src/react/boolean-radio.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionBooleanRadio",(function(){return u}));var n,o=r("react"),i=r("survey-core"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/boolean.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnChange=function(e){r.question.booleanValue="true"==e.nativeEvent.target.value},r}return l(t,e),t.prototype.renderRadioItem=function(e,t){var r=this.question.cssClasses;return o.createElement("div",{role:"presentation",className:this.question.getRadioItemClass(r,e)},o.createElement("label",{className:r.radioLabel},o.createElement("input",{type:"radio",name:this.question.name,value:e,"aria-describedby":this.question.ariaDescribedBy,checked:e===this.question.booleanValueRendered,disabled:this.question.isInputReadOnly,className:r.itemRadioControl,onChange:this.handleOnChange}),this.question.cssClasses.materialRadioDecorator?o.createElement("span",{className:r.materialRadioDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:r.itemRadioDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,o.createElement("span",{className:r.radioControlLabel},this.renderLocString(t))))},t.prototype.renderElement=function(){var e=this.question.cssClasses;return o.createElement("div",{className:e.rootRadio},o.createElement("fieldset",{role:"presentation",className:e.radioFieldset},this.renderRadioItem(!1,this.question.locLabelFalse),this.renderRadioItem(!0,this.question.locLabelTrue)))},t}(a.SurveyQuestionBoolean);s.ReactQuestionFactory.Instance.registerQuestion("sv-boolean-radio",(function(e){return o.createElement(u,e)})),i.RendererFactory.Instance.registerRenderer("boolean","radio","sv-boolean-radio")},"./src/react/boolean.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionBoolean",(function(){return l}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnChange=r.handleOnChange.bind(r),r.handleOnClick=r.handleOnClick.bind(r),r.handleOnLabelClick=r.handleOnLabelClick.bind(r),r.handleOnSwitchClick=r.handleOnSwitchClick.bind(r),r.handleOnKeyDown=r.handleOnKeyDown.bind(r),r.checkRef=o.createRef(),r}return a(t,e),t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.doCheck=function(e){this.question.booleanValue=e},t.prototype.handleOnChange=function(e){this.doCheck(e.target.checked)},t.prototype.handleOnClick=function(e){this.question.onLabelClick(e,!0)},t.prototype.handleOnSwitchClick=function(e){this.question.onSwitchClickModel(e.nativeEvent)},t.prototype.handleOnLabelClick=function(e,t){this.question.onLabelClick(e,t)},t.prototype.handleOnKeyDown=function(e){this.question.onKeyDownCore(e)},t.prototype.updateDomElement=function(){if(this.question){var t=this.checkRef.current;t&&(t.indeterminate=this.question.isIndeterminate),this.setControl(t),e.prototype.updateDomElement.call(this)}},t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,r=this.question.getItemCss();return o.createElement("div",{className:t.root,onKeyDown:this.handleOnKeyDown},o.createElement("label",{className:r,onClick:this.handleOnClick},o.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:t.control,disabled:this.isDisplayMode,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),o.createElement("div",{className:t.sliderGhost,onClick:function(t){return e.handleOnLabelClick(t,!1)}},o.createElement("span",{className:this.question.getLabelCss(!1)},this.renderLocString(this.question.locLabelFalse))),o.createElement("div",{className:t.switch,onClick:this.handleOnSwitchClick},o.createElement("span",{className:t.slider},this.question.isDeterminated&&t.sliderText?o.createElement("span",{className:t.sliderText},this.renderLocString(this.question.getCheckedLabel())):null)),o.createElement("div",{className:t.sliderGhost,onClick:function(t){return e.handleOnLabelClick(t,!0)}},o.createElement("span",{className:this.question.getLabelCss(!0)},this.renderLocString(this.question.locLabelTrue)))))},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("boolean",(function(e){return o.createElement(l,e)}))},"./src/react/components/action-bar/action-bar-item-dropdown.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyActionBarItemDropdown",(function(){return p}));var n,o=r("react"),i=r.n(o),s=r("survey-core"),a=r("./src/react/element-factory.tsx"),l=r("./src/react/components/popup/popup.tsx"),u=r("./src/react/components/action-bar/action-bar-item.tsx"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(t){var r=e.call(this,t)||this;return r.viewModel=new s.ActionDropdownViewModel(r.item),r}return c(t,e),t.prototype.renderButtonContent=function(){var t=e.prototype.renderButtonContent.call(this);return i.a.createElement(i.a.Fragment,null,t,i.a.createElement(l.Popup,{model:this.item.popupModel}))},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.viewModel.dispose()},t}(u.SurveyActionBarItem);a.ReactElementFactory.Instance.registerElement("sv-action-bar-item-dropdown",(function(e){return i.a.createElement(p,e)}))},"./src/react/components/action-bar/action-bar-item.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyAction",(function(){return d})),r.d(t,"SurveyActionBarItem",(function(){return h}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=r("./src/react/reactSurvey.tsx"),u=r("./src/react/components/svg-icon/svg-icon.tsx"),c=r("./src/react/components/action-bar/action-bar-separator.tsx"),p=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){var e=this.item.getActionRootCss(),t=this.item.needSeparator?i.a.createElement(c.SurveyActionBarSeparator,null):null,r=s.ReactElementFactory.Instance.createElement(this.item.component||"sv-action-bar-item",{item:this.item});return i.a.createElement("div",{className:e,id:this.item.id},i.a.createElement("div",{className:"sv-action__content"},t,r))},t}(a.SurveyElementBase),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){return i.a.createElement(i.a.Fragment,null,this.renderInnerButton())},t.prototype.renderText=function(){if(!this.item.hasTitle)return null;var e=this.item.getActionBarItemTitleCss();return i.a.createElement("span",{className:e},this.item.title)},t.prototype.renderButtonContent=function(){var e=this.renderText(),t=this.item.iconName?i.a.createElement(u.SvgIcon,{className:this.item.cssClasses.itemIcon,size:this.item.iconSize,iconName:this.item.iconName,title:this.item.tooltip||this.item.title}):null;return i.a.createElement(i.a.Fragment,null,t,e)},t.prototype.renderInnerButton=function(){var e=this,t=this.item.getActionBarItemCss(),r=this.item.tooltip||this.item.title,n=this.renderButtonContent(),o=this.item.disableTabStop?-1:void 0;return Object(l.attachKey2click)(i.a.createElement("button",{className:t,type:"button",disabled:this.item.disabled,onClick:function(t){return e.item.action(e.item,e.item.getIsTrusted(t))},title:r,tabIndex:o,"aria-checked":this.item.ariaChecked,"aria-expanded":this.item.ariaExpanded,role:this.item.ariaRole},n),null,{processEsc:!1})},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-action-bar-item",(function(e){return i.a.createElement(h,e)}))},"./src/react/components/action-bar/action-bar-separator.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyActionBarSeparator",(function(){return l}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e="sv-action-bar-separator "+this.props.cssClasses;return i.a.createElement("div",{className:e})},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-action-bar-separator",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/action-bar/action-bar.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyActionBar",(function(){return d}));var n=r("react"),o=r.n(n),i=r("./src/react/element-factory.tsx"),s=r("./src/react/reactquestion_element.tsx"),a=r("./src/react/components/action-bar/action-bar-item.tsx"),l=r("./src/react/components/action-bar/action-bar-item-dropdown.tsx");r.d(t,"SurveyActionBarItemDropdown",(function(){return l.SurveyActionBarItemDropdown}));var u=r("./src/react/components/action-bar/action-bar-separator.tsx");r.d(t,"SurveyActionBarSeparator",(function(){return u.SurveyActionBarSeparator}));var c,p=(c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},c(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e){function t(t){var r=e.call(this,t)||this;return r.rootRef=o.a.createRef(),r}return p(t,e),Object.defineProperty(t.prototype,"handleClick",{get:function(){return void 0===this.props.handleClick||this.props.handleClick},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.model.hasActions){var t=this.rootRef.current;t&&this.model.initResponsivityManager(t)}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model.hasActions&&this.model.resetResponsivityManager()},t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){if(!this.model.hasActions)return null;var e=this.renderItems();return o.a.createElement("div",{ref:this.rootRef,className:this.model.getRootCss(),onClick:this.handleClick?function(e){e.stopPropagation()}:void 0},e)},t.prototype.renderItems=function(){return this.model.renderedActions.map((function(e,t){return o.a.createElement(a.SurveyAction,{item:e,key:"item"+t})}))},t}(s.SurveyElementBase);i.ReactElementFactory.Instance.registerElement("sv-action-bar",(function(e){return o.a.createElement(d,e)}))},"./src/react/components/brand-info.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"BrandInfo",(function(){return a}));var n,o=r("react"),i=r.n(o),s=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){return i.a.createElement("div",{className:"sv-brand-info"},i.a.createElement("a",{className:"sv-brand-info__logo",href:"https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page"},i.a.createElement("img",{src:"https://surveyjs.io/Content/Images/poweredby.svg"})),i.a.createElement("div",{className:"sv-brand-info__text"},"Try and see how easy it is to ",i.a.createElement("a",{href:"https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey"},"create a survey")),i.a.createElement("div",{className:"sv-brand-info__terms"},i.a.createElement("a",{href:"https://surveyjs.io/TermsOfUse"},"Terms of Use & Privacy Statement")))},t}(i.a.Component)},"./src/react/components/character-counter.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"CharacterCounterComponent",(function(){return u}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getStateElement=function(){return this.props.counter},t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.props.remainingCharacterCounter},this.props.counter.remainingCharacterCounter)},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-character-counter",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/components-container.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"ComponentsContainer",(function(){return l}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.survey.getContainerContent(this.props.container),r=!1!==this.props.needRenderWrapper;return 0==t.length?null:r?i.a.createElement("div",{className:"sv-components-column"},t.map((function(t){return s.ReactElementFactory.Instance.createElement(t.component,{survey:e.props.survey,model:t.data,key:t.id})}))):i.a.createElement(i.a.Fragment,null,t.map((function(t){return s.ReactElementFactory.Instance.createElement(t.component,{survey:e.props.survey,model:t.data,key:t.id})})))},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-components-container",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/list/list-item.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"ListItem",(function(){return p}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=r("./src/react/reactSurvey.tsx"),u=r("./src/react/components/svg-icon/svg-icon.tsx"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleKeydown=function(e){t.model.onKeyDown(e)},t}return c(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this;if(!this.item)return null;var t={paddingInlineStart:this.model.getItemIndent(this.item)},r=this.model.getItemClass(this.item),n=[];if(this.item.component){var o=s.ReactElementFactory.Instance.createElement(this.item.component,{item:this.item,key:this.item.id});o&&n.push(o)}else{var a=this.renderLocString(this.item.locTitle,void 0,"locString");if(this.item.iconName){var c=i.a.createElement(u.SvgIcon,{key:1,className:this.model.cssClasses.itemIcon,iconName:this.item.iconName,size:24,"aria-label":this.item.title});n.push(c),n.push(i.a.createElement("span",{key:2},a))}else n.push(a)}var p=i.a.createElement("div",{style:t,className:this.model.cssClasses.itemBody},n),d=this.item.needSeparator?i.a.createElement("div",{className:this.model.cssClasses.itemSeparator}):null,h={display:this.model.isItemVisible(this.item)?null:"none"};return Object(l.attachKey2click)(i.a.createElement("li",{className:r,role:"option",style:h,id:this.item.elementId,"aria-selected":this.model.isItemSelected(this.item),onClick:function(t){e.model.onItemClick(e.item),t.stopPropagation()},onPointerDown:function(t){return e.model.onPointerDown(t,e.item)}},d,p))},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.model.onLastItemRended(this.item)},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-list-item",(function(e){return i.a.createElement(p,e)}))},"./src/react/components/list/list.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"List",(function(){return d}));var n,o=r("react"),i=r.n(o),s=r("survey-core"),a=r("./src/react/element-factory.tsx"),l=r("./src/react/reactquestion_element.tsx"),u=r("./src/react/components/svg-icon/svg-icon.tsx"),c=r("./src/react/components/list/list-item.tsx"),p=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e){function t(t){var r=e.call(this,t)||this;return r.handleKeydown=function(e){r.model.onKeyDown(e)},r.handleMouseMove=function(e){r.model.onMouseMove(e)},r.state={filterString:r.model.filterString||""},r.listContainerRef=i.a.createRef(),r}return p(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.listContainerRef&&this.listContainerRef.current&&this.model.initListContainerHtmlElement(this.listContainerRef.current)},t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.model.cssClasses.root,ref:this.listContainerRef},this.searchElementContent(),this.emptyContent(),this.renderList())},t.prototype.renderList=function(){if(!this.model.renderElements)return null;var e=this.renderItems(),t={display:this.model.isEmpty?"none":null};return i.a.createElement("ul",{className:this.model.cssClasses.itemsContainer,style:t,role:"listbox",id:this.model.elementId,onMouseDown:function(e){e.preventDefault()},onKeyDown:this.handleKeydown,onMouseMove:this.handleMouseMove},e)},t.prototype.renderItems=function(){var e=this;if(!this.model)return null;var t=this.model.renderedActions;return t?t.map((function(t,r){return i.a.createElement(c.ListItem,{model:e.model,item:t,key:"item"+r})})):null},t.prototype.searchElementContent=function(){var e=this;if(this.model.showFilter){var t=this.model.showSearchClearButton&&this.model.filterString?i.a.createElement("button",{className:this.model.cssClasses.searchClearButtonIcon,onClick:function(t){e.model.onClickSearchClearButton(t)}},i.a.createElement(u.SvgIcon,{iconName:"icon-searchclear",size:"auto"})):null;return i.a.createElement("div",{className:this.model.cssClasses.filter},i.a.createElement("div",{className:this.model.cssClasses.filterIcon},i.a.createElement(u.SvgIcon,{iconName:"icon-search",size:"auto"})),i.a.createElement("input",{type:"text",className:this.model.cssClasses.filterInput,"aria-label":this.model.filterStringPlaceholder,placeholder:this.model.filterStringPlaceholder,value:this.state.filterString,onKeyUp:function(t){e.model.goToItems(t)},onChange:function(t){var r=s.settings.environment.root;t.target===r.activeElement&&(e.model.filterString=t.target.value)}}),t)}return null},t.prototype.emptyContent=function(){var e={display:this.model.isEmpty?null:"none"};return i.a.createElement("div",{className:this.model.cssClasses.emptyContainer,style:e},i.a.createElement("div",{className:this.model.cssClasses.emptyText,"aria-label":this.model.emptyMessage},this.model.emptyMessage))},t}(l.SurveyElementBase);a.ReactElementFactory.Instance.registerElement("sv-list",(function(e){return i.a.createElement(d,e)}))},"./src/react/components/matrix-actions/detail-button/detail-button.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionMatrixDetailButton",(function(){return c}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=r("./src/react/components/svg-icon/svg-icon.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnShowHideClick=r.handleOnShowHideClick.bind(r),r}return u(t,e),t.prototype.getStateElement=function(){return this.props.item},Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),t.prototype.handleOnShowHideClick=function(e){this.row.showHideDetailPanelClick()},t.prototype.renderElement=function(){var e=this.row.isDetailPanelShowing,t=e,r=e?this.row.detailPanelId:void 0;return i.a.createElement("button",{type:"button",onClick:this.handleOnShowHideClick,className:this.question.getDetailPanelButtonCss(this.row),"aria-expanded":t,"aria-controls":r},i.a.createElement(l.SvgIcon,{className:this.question.getDetailPanelIconCss(this.row),iconName:this.question.getDetailPanelIconId(this.row),size:"auto"}))},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-matrix-detail-button",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return u}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return this.question.iconDragElement?i.a.createElement("svg",{className:this.question.cssClasses.dragElementDecorator},i.a.createElement("use",{xlinkHref:this.question.iconDragElement})):i.a.createElement("span",{className:this.question.cssClasses.iconDrag})},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-matrix-drag-drop-icon",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/matrix-actions/remove-button/remove-button.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return u}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnRowRemoveClick=r.handleOnRowRemoveClick.bind(r),r}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),t.prototype.handleOnRowRemoveClick=function(e){this.question.removeRowUI(this.row)},t.prototype.renderElement=function(){var e=this.renderLocString(this.question.locRemoveRowText);return i.a.createElement("button",{className:this.question.getRemoveRowButtonCss(),type:"button",onClick:this.handleOnRowRemoveClick,disabled:this.question.isInputReadOnly},e,i.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-matrix-remove-button",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/matrix/row.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"MatrixRow",(function(){return u}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.onPointerDownHandler=function(e){r.parentMatrix.onPointerDown(e.nativeEvent,r.model.row)},r}return l(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentMatrix",{get:function(){return this.props.parentMatrix},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this,t=this.model;return i.a.createElement("tr",{className:t.className,"data-sv-drop-target-matrix-row":t.row&&t.row.id,onPointerDown:function(t){return e.onPointerDownHandler(t)}},this.props.children)},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-matrix-row",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/notifier.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"NotifierComponent",(function(){return c}));var n,o=r("react"),i=r.n(o),s=r("./src/react/reactquestion_element.tsx"),a=r("./src/react/element-factory.tsx"),l=r("./src/react/components/action-bar/action-bar.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"notifier",{get:function(){return this.props.notifier},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.notifier},t.prototype.renderElement=function(){if(!this.notifier.isDisplayed)return null;var e={visibility:this.notifier.active?"visible":"hidden"};return i.a.createElement("div",{className:this.notifier.css,style:e,role:"alert","aria-live":"polite"},i.a.createElement("span",null,this.notifier.message),i.a.createElement(l.SurveyActionBar,{model:this.notifier.actionBar}))},t}(s.SurveyElementBase);a.ReactElementFactory.Instance.registerElement("sv-notifier",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionPanelDynamicAction",(function(){return u})),r.d(t,"SurveyQuestionPanelDynamicAddButton",(function(){return c}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this.props.item&&this.props.item.data||this.props.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),t}(a.ReactSurveyElement),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.addPanelUI()},t}return l(t,e),t.prototype.renderElement=function(){return this.question.canAddPanel?i.a.createElement("button",{type:"button",className:this.question.getAddButtonCss(),onClick:this.handleClick},i.a.createElement("span",{className:this.question.cssClasses.buttonAddText},this.question.panelAddText)):null},t}(u);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-add-btn",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionPanelDynamicNextButton",(function(){return c}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/components/svg-icon/svg-icon.tsx"),l=r("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.goToNextPanel()},t}return u(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{title:this.question.panelNextText,onClick:this.handleClick,className:this.question.getNextButtonCss()},i.a.createElement(a.SvgIcon,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(l.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-next-btn",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionPanelDynamicPrevButton",(function(){return c}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/components/svg-icon/svg-icon.tsx"),l=r("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.goToPrevPanel()},t}return u(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{title:this.question.panelPrevText,onClick:this.handleClick,className:this.question.getPrevButtonCss()},i.a.createElement(a.SvgIcon,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(l.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-prev-btn",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionPanelDynamicProgressText",(function(){return u}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.question.cssClasses.progressText},this.question.progressText)},t}(a.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-progress-text",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-remove-btn.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionPanelDynamicRemoveButton",(function(){return u}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.removePanelUI(t.data.panel)},t}return l(t,e),t.prototype.renderElement=function(){return i.a.createElement("button",{className:this.question.getPanelRemoveButtonCss(),onClick:this.handleClick,type:"button"},i.a.createElement("span",{className:this.question.cssClasses.buttonRemoveText},this.question.panelRemoveText),i.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(a.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-remove-btn",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/popup/popup.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"Popup",(function(){return h})),r.d(t,"PopupContainer",(function(){return f})),r.d(t,"PopupDropdownContainer",(function(){return m})),r.d(t,"showModal",(function(){return g})),r.d(t,"showDialog",(function(){return b}));var n,o=r("react-dom"),i=r.n(o),s=r("react"),a=r.n(s),l=r("survey-core"),u=r("./src/react/element-factory.tsx"),c=r("./src/react/reactquestion_element.tsx"),p=r("./src/react/components/action-bar/action-bar.tsx"),d=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e){function t(t){var r=e.call(this,t)||this;return r.containerRef=a.a.createRef(),r.createModel(),r}return d(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.createModel=function(){this.popup=Object(l.createPopupViewModel)(this.props.model,void 0),this.popup.initializePopupContainer()},t.prototype.setTargetElement=function(){if(this.containerRef.current&&!this.popup.isModal){var e=this.popup;if(!e)return;this.containerRef.current.parentElement&&(e.targetElement=this.containerRef.current.parentElement)}},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.popup.initializePopupContainer(),this.setTargetElement()},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.setTargetElement()},t.prototype.componentWillUnmount=function(){this.popup.unmountPopupContainer()},t.prototype.shouldComponentUpdate=function(t,r){var n;if(!e.prototype.shouldComponentUpdate.call(this,t,r))return!1;var o=t.model!==this.popup.model;return o&&(null===(n=this.popup)||void 0===n||n.dispose(),this.createModel()),o},t.prototype.render=function(){var e;return this.popup.model=this.model,e=this.model.isModal?i.a.createPortal(a.a.createElement(f,{model:this.popup}),this.popup.container):i.a.createPortal(a.a.createElement(m,{model:this.popup}),this.popup.container),a.a.createElement("div",{ref:this.containerRef},e)},t}(c.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("sv-popup",(function(e){return a.a.createElement(h,e)}));var f=function(e){function t(t){var r=e.call(this,t)||this;return r.prevIsVisible=!1,r.handleKeydown=function(e){r.model.onKeyDown(e)},r.clickInside=function(e){e.stopPropagation()},r}return d(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),!this.prevIsVisible&&this.model.isVisible&&this.model.updateOnShowing(),this.prevIsVisible=this.model.isVisible},t.prototype.renderContainer=function(e){var t=this,r=e.showHeader?this.renderHeaderPopup(e):null,n=e.title?this.renderHeaderContent():null,o=this.renderContent(),i=e.showFooter?this.renderFooter(this.model):null;return a.a.createElement("div",{className:"sv-popup__container",style:{left:e.left,top:e.top,height:e.height,width:e.width,minWidth:e.minWidth},onClick:function(e){t.clickInside(e)}},a.a.createElement("div",{className:"sv-popup__shadow"},r,a.a.createElement("div",{className:"sv-popup__body-content"},n,a.a.createElement("div",{className:"sv-popup__scrolling-content"},o),i)))},t.prototype.renderHeaderContent=function(){return a.a.createElement("div",{className:"sv-popup__body-header"},this.model.title)},t.prototype.renderContent=function(){var e=u.ReactElementFactory.Instance.createElement(this.model.contentComponentName,this.model.contentComponentData);return a.a.createElement("div",{className:"sv-popup__content"},e)},t.prototype.renderHeaderPopup=function(e){return null},t.prototype.renderFooter=function(e){return a.a.createElement("div",{className:"sv-popup__body-footer"},a.a.createElement(p.SurveyActionBar,{model:e.footerToolbar}))},t.prototype.render=function(){var e=this,t=this.renderContainer(this.model),r=(new l.CssClassBuilder).append("sv-popup").append(this.model.styleClass).toString(),n={display:this.model.isVisible?"":"none"};return a.a.createElement("div",{tabIndex:-1,className:r,style:n,onClick:function(t){e.model.clickOutside(),t.stopPropagation()},onKeyDown:this.handleKeydown},t)},t}(c.SurveyElementBase),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.renderHeaderPopup=function(e){var t=e;return t?a.a.createElement("span",{style:{left:t.pointerTarget.left,top:t.pointerTarget.top},className:"sv-popup__pointer"}):null},t}(f);function g(e,t,r,n,o,i,s){return void 0===s&&(s="popup"),b(Object(l.createDialogOptions)(e,t,r,n,void 0,void 0,o,i,s))}function b(e){e.onHide=function(){i.a.unmountComponentAtNode(t.container),t.unmountPopupContainer()};var t=Object(l.createPopupModalViewModel)(e);return i.a.render(a.a.createElement(f,{model:t}),t.container),t.model.isVisible=!0,t}l.settings.showModal=g},"./src/react/components/rating/rating-item-smiley.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"RatingItemSmiley",(function(){return c}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=r("./src/react/components/svg-icon/svg-icon.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this;return i.a.createElement("label",{style:this.question.getItemStyle(this.item.itemValue,this.item.highlight),className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(t){return e.question.onItemMouseIn(e.item)},onMouseOut:function(t){return e.question.onItemMouseOut(e.item)}},i.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.name,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.isDisplayMode,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),i.a.createElement(l.SvgIcon,{size:"auto",iconName:this.question.getItemSmileyIconName(this.item.itemValue),title:this.item.text}))},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-rating-item-smiley",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/rating/rating-item-star.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"RatingItemStar",(function(){return c}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=r("./src/react/components/svg-icon/svg-icon.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this;return i.a.createElement("label",{className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(t){return e.question.onItemMouseIn(e.item)},onMouseOut:function(t){return e.question.onItemMouseOut(e.item)}},i.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.name,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.isDisplayMode,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),i.a.createElement(l.SvgIcon,{className:"sv-star",size:"auto",iconName:this.question.itemStarIcon,title:this.item.text}),i.a.createElement(l.SvgIcon,{className:"sv-star-2",size:"auto",iconName:this.question.itemStarIconAlt,title:this.item.text}))},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-rating-item-star",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/rating/rating-item.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"RatingItem",(function(){return u}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this.renderLocString(this.item.locText);return i.a.createElement("label",{className:this.question.getItemClassByText(this.item.itemValue,this.item.text)},i.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.name,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.isDisplayMode,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),i.a.createElement("span",{className:this.question.cssClasses.itemText},e))},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this)},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-rating-item",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/skeleton.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"Skeleton",(function(){return l}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e;return i.a.createElement("div",{className:"sv-skeleton-element",id:null===(e=this.props.element)||void 0===e?void 0:e.id})},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-skeleton",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/survey-actions/survey-nav-button.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyNavigationButton",(function(){return u}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return this.item.isVisible},t.prototype.renderElement=function(){return i.a.createElement("input",{className:this.item.innerCss,type:"button",disabled:this.item.disabled,onMouseDown:this.item.data&&this.item.data.mouseDown,onClick:this.item.action,title:this.item.getTooltip(),value:this.item.title})},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-nav-btn",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/survey-header/logo-image.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"LogoImage",(function(){return l}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=[];return e.push(i.a.createElement("div",{key:"logo-image",className:this.survey.logoClassNames},i.a.createElement("img",{className:this.survey.css.logoImage,src:this.survey.locLogo.renderedHtml,alt:this.survey.locTitle.renderedHtml,width:this.survey.logoWidth?this.survey.logoWidth:void 0,height:this.survey.logoHeight?this.survey.logoHeight:void 0,style:{objectFit:this.survey.logoFit}}))),i.a.createElement(i.a.Fragment,null,e)},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-logo-image",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/survey-header/survey-header.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyHeader",(function(){return c}));var n,o=r("react"),i=r.n(o),s=r("./src/react/reactquestion_element.tsx"),a=r("./src/react/element-factory.tsx"),l=r("./src/react/components/title/title-element.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){var r=e.call(this,t)||this;return r.state={changed:0},r}return u(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;this.survey.locLogo.onChanged=function(){e.setState({changed:e.state.changed+1})}},t.prototype.componentWillUnmount=function(){this.survey.locLogo.onChanged=function(){}},t.prototype.renderTitle=function(){if(!this.survey.renderedHasTitle)return null;var e=s.SurveyElementBase.renderLocString(this.survey.locDescription);return i.a.createElement("div",{className:this.css.headerText,style:{maxWidth:this.survey.titleMaxWidth}},i.a.createElement(l.TitleElement,{element:this.survey}),this.survey.renderedHasDescription?i.a.createElement("h5",{className:this.css.description},e):null)},t.prototype.renderLogoImage=function(e){if(!e)return null;var t=this.survey.getElementWrapperComponentName(this.survey,"logo-image"),r=this.survey.getElementWrapperComponentData(this.survey,"logo-image");return a.ReactElementFactory.Instance.createElement(t,{data:r})},t.prototype.render=function(){return this.survey.renderedHasHeader?i.a.createElement("div",{className:this.css.header},this.renderLogoImage(this.survey.isLogoBefore),this.renderTitle(),this.renderLogoImage(this.survey.isLogoAfter),i.a.createElement("div",{className:this.css.headerClose})):null},t}(i.a.Component);a.ReactElementFactory.Instance.registerElement("survey-header",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/svg-icon/svg-icon.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SvgIcon",(function(){return u}));var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("survey-core"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.svgIconRef=i.a.createRef(),r}return l(t,e),t.prototype.updateSvg=function(){this.props.iconName&&Object(a.createSvg)(this.props.size,this.props.width,this.props.height,this.props.iconName,this.svgIconRef.current,this.props.title)},t.prototype.componentDidUpdate=function(){this.updateSvg()},t.prototype.render=function(){var e="sv-svg-icon";return this.props.className&&(e+=" "+this.props.className),this.props.iconName?i.a.createElement("svg",{className:e,style:this.props.style,onClick:this.props.onClick,ref:this.svgIconRef,role:"img","aria-label":this.props.title},i.a.createElement("use",null)):null},t.prototype.componentDidMount=function(){this.updateSvg()},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-svg-icon",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/title/title-actions.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"TitleActions",(function(){return p}));var n,o=r("react"),i=r.n(o),s=r("survey-core"),a=r("./src/react/element-factory.tsx"),l=r("./src/react/components/action-bar/action-bar.tsx"),u=r("./src/react/components/title/title-content.tsx"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=i.a.createElement(u.TitleContent,{element:this.element,cssClasses:this.cssClasses});return this.element.hasTitleActions?i.a.createElement("div",{className:"sv-title-actions"},i.a.createElement("span",{className:"sv-title-actions__title"},e),i.a.createElement(l.SurveyActionBar,{model:this.element.getTitleToolbar()})):e},t}(i.a.Component);s.RendererFactory.Instance.registerRenderer("element","title-actions","sv-title-actions"),a.ReactElementFactory.Instance.registerElement("sv-title-actions",(function(e){return i.a.createElement(p,e)}))},"./src/react/components/title/title-content.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"TitleContent",(function(){return l}));var n,o=r("react"),i=r.n(o),s=r("./src/react/reactquestion_element.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(this.element.isTitleRenderedAsString)return s.SurveyElementBase.renderLocString(this.element.locTitle);var e=this.renderTitleSpans(this.element.getTitleOwner(),this.cssClasses);return i.a.createElement(i.a.Fragment,null,e)},t.prototype.renderTitleSpans=function(e,t){var r=function(e){return i.a.createElement("span",{"data-key":e,key:e}," ")},n=[];e.isRequireTextOnStart&&(n.push(this.renderRequireText(e,t)),n.push(r("req-sp")));var o=e.no;if(o){var a=t.panel?t.panel.number:void 0;n.push(i.a.createElement("span",{"data-key":"q_num",key:"q_num",className:t.number||a,style:{position:"static"},"aria-hidden":!0},o)),n.push(r("num-sp"))}return e.isRequireTextBeforeTitle&&(n.push(this.renderRequireText(e,t)),n.push(r("req-sp"))),n.push(s.SurveyElementBase.renderLocString(e.locTitle,null,"q_title")),e.isRequireTextAfterTitle&&(n.push(r("req-sp")),n.push(this.renderRequireText(e,t))),n},t.prototype.renderRequireText=function(e,t){return i.a.createElement("span",{"data-key":"req-text",key:"req-text",className:t.requiredText||t.panel.requiredText,"aria-hidden":!0},e.requiredText)},t}(i.a.Component)},"./src/react/components/title/title-element.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"TitleElement",(function(){return u}));var n,o=r("react"),i=r.n(o),s=r("survey-core"),a=r("./src/react/components/title/title-actions.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.element;if(!e||!e.hasTitle)return null;var t=e.titleAriaLabel||void 0,r=i.a.createElement(a.TitleActions,{element:e,cssClasses:e.cssClasses}),n=void 0;e.hasTitleEvents&&(n=function(e){Object(s.doKey2ClickUp)(e.nativeEvent)});var o=e.titleTagName;return i.a.createElement(o,{className:e.cssTitle,id:e.ariaTitleId,"aria-label":t,tabIndex:e.titleTabIndex,"aria-expanded":e.titleAriaExpanded,role:e.titleAriaRole,onClick:void 0,onKeyUp:n},r)},t}(i.a.Component)},"./src/react/custom-widget.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyCustomWidget",(function(){return a}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(t){var r=e.call(this,t)||this;return r.widgetRef=o.createRef(),r}return s(t,e),t.prototype._afterRender=function(){if(this.questionBase.customWidget){var e=this.widgetRef.current;e&&(this.questionBase.customWidget.afterRender(this.questionBase,e),this.questionBase.customWidgetData.isNeedRender=!1)}},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.questionBase&&this._afterRender()},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r);var n=!!this.questionBase.customWidget&&this.questionBase.customWidget.isDefaultRender;this.questionBase&&!n&&this._afterRender()},t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.questionBase.customWidget){var t=this.widgetRef.current;t&&this.questionBase.customWidget.willUnmount(this.questionBase,t)}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&this.questionBase.visible},t.prototype.renderElement=function(){var e=this.questionBase.customWidget;if(e.isDefaultRender)return o.createElement("div",{ref:this.widgetRef},this.creator.createQuestionElement(this.questionBase));var t=null;if(e.widgetJson.render)t=e.widgetJson.render(this.questionBase);else if(e.htmlTemplate){var r={__html:e.htmlTemplate};return o.createElement("div",{ref:this.widgetRef,dangerouslySetInnerHTML:r})}return o.createElement("div",{ref:this.widgetRef},t)},t}(i.SurveyQuestionElementBase)},"./src/react/dropdown-base.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionDropdownBase",(function(){return d}));var n,o=r("react"),i=r("survey-core"),s=r("./src/react/components/popup/popup.tsx"),a=r("./src/react/components/svg-icon/svg-icon.tsx"),l=r("./src/react/element-factory.tsx"),u=r("./src/react/reactquestion_comment.tsx"),c=r("./src/react/reactquestion_element.tsx"),p=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.click=function(e){var r;null===(r=t.question.dropdownListModel)||void 0===r||r.onClick(e)},t.clear=function(e){var r;null===(r=t.question.dropdownListModel)||void 0===r||r.onClear(e)},t.keyhandler=function(e){var r;null===(r=t.question.dropdownListModel)||void 0===r||r.keyHandler(e)},t.blur=function(e){var r;null===(r=t.question.dropdownListModel)||void 0===r||r.onBlur(e),t.updateInputDomElement()},t.focus=function(e){var r;null===(r=t.question.dropdownListModel)||void 0===r||r.onFocus(e)},t}return p(t,e),t.prototype.getStateElement=function(){return this.question.dropdownListModel},t.prototype.setValueCore=function(e){this.questionBase.renderedValue=e},t.prototype.getValueCore=function(){return this.questionBase.renderedValue},t.prototype.renderSelect=function(e){var t,r,n=null;if(this.question.isReadOnly){var a=this.question.selectedItemLocText?this.renderLocString(this.question.selectedItemLocText):"";n=o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},a,o.createElement("div",null,this.question.readOnlyText))}else this.question.dropdownListModel||(this.question.dropdownListModel=new i.DropdownListModel(this.question)),n=o.createElement(o.Fragment,null,this.renderInput(this.question.dropdownListModel),o.createElement(s.Popup,{model:null===(r=null===(t=this.question)||void 0===t?void 0:t.dropdownListModel)||void 0===r?void 0:r.popupModel}));return o.createElement("div",{className:e.selectWrapper},n)},t.prototype.renderValueElement=function(e){return this.question.showInputFieldComponent?l.ReactElementFactory.Instance.createElement(this.question.inputFieldComponentName,{item:e.getSelectedAction(),question:this.question}):this.question.showSelectedItemLocText?this.renderLocString(this.question.selectedItemLocText):null},t.prototype.renderInput=function(e){var t=this,r=this.renderValueElement(e),n=i.settings.environment.root;return o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.inputReadOnly?void 0:0,onClick:this.click,disabled:this.question.isInputReadOnly,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant},e.showHintPrefix?o.createElement("div",{className:this.question.cssClasses.hintPrefix},o.createElement("span",null,e.hintStringPrefix)):null,o.createElement("div",{className:this.question.cssClasses.controlValue},e.showHintString?o.createElement("div",{className:this.question.cssClasses.hintSuffix},o.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},e.inputStringRendered),o.createElement("span",null,e.hintStringSuffix)):null,r,o.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),ref:function(e){return t.inputElement=e},className:this.question.cssClasses.filterStringInput,role:e.filterStringEnabled?this.question.ariaRole:void 0,"aria-label":this.question.placeholder,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant,placeholder:e.placeholderRendered,readOnly:!e.searchEnabled||void 0,tabIndex:e.inputReadOnly?void 0:-1,disabled:this.question.isInputReadOnly,inputMode:e.inputMode,onChange:function(t){!function(t){t.target===n.activeElement&&(e.inputStringRendered=t.target.value)}(t)},onBlur:this.blur,onFocus:this.focus})),this.createClearButton())},t.prototype.createClearButton=function(){if(!this.question.allowClear||!this.question.cssClasses.cleanButtonIconId)return null;var e={display:this.question.isEmpty()?"none":""};return o.createElement("div",{className:this.question.cssClasses.cleanButton,style:e,onClick:this.clear},o.createElement(a.SvgIcon,{className:this.question.cssClasses.cleanButtonSvg,iconName:this.question.cssClasses.cleanButtonIconId,title:this.question.clearCaption,size:"auto"}))},t.prototype.renderOther=function(e){return o.createElement("div",{className:this.question.getCommentAreaCss(!0)},o.createElement(u.SurveyQuestionOtherValueItem,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode,isOther:!0}))},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.updateInputDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateInputDomElement()},t.prototype.updateInputDomElement=function(){if(this.inputElement){var e=this.inputElement,t=this.question.dropdownListModel.inputStringRendered;i.Helpers.isTwoValueEquals(t,e.value)||(e.value=this.question.dropdownListModel.inputStringRendered)}},t}(c.SurveyQuestionUncontrolledElement)},"./src/react/dropdown-item.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionOptionItem",(function(){return a}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(t){var r=e.call(this,t)||this;return r.state={changed:0},r.setupModel(),r}return s(t,e),t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.setupModel()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.item&&(this.item.locText.onChanged=function(){})},t.prototype.setupModel=function(){if(this.item.locText){var e=this;this.item.locText.onChanged=function(){e.setState({changed:e.state.changed+1})}}},t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.item},t.prototype.renderElement=function(){return o.createElement("option",{value:this.item.value,disabled:!this.item.isEnabled},this.item.text)},t}(i.ReactSurveyElement)},"./src/react/dropdown-select.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionDropdownSelect",(function(){return c}));var n,o=r("react"),i=r("survey-core"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/reactquestion_dropdown.tsx"),l=r("./src/react/dropdown-item.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.renderSelect=function(e){var t=this,r=this.isDisplayMode?o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},this.question.readOnlyText):o.createElement("select",{id:this.question.inputId,className:this.question.getControlClass(),ref:function(e){return t.setControl(e)},autoComplete:this.question.autocomplete,onChange:this.updateValueOnEvent,onInput:this.updateValueOnEvent,onClick:function(e){t.question.onClick(e)},onKeyUp:function(e){t.question.onKeyUp(e)},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy,required:this.question.isRequired},this.question.allowClear?o.createElement("option",{value:""},this.question.placeholder):null,this.question.visibleChoices.map((function(e,t){return o.createElement(l.SurveyQuestionOptionItem,{key:"item"+t,item:e})})));return o.createElement("div",{className:e.selectWrapper},r)},t}(a.SurveyQuestionDropdown);s.ReactQuestionFactory.Instance.registerQuestion("sv-dropdown-select",(function(e){return o.createElement(c,e)})),i.RendererFactory.Instance.registerRenderer("dropdown","select","sv-dropdown-select")},"./src/react/element-factory.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"ReactElementFactory",(function(){return n}));var n=function(){function e(){this.creatorHash={}}return e.prototype.registerElement=function(e,t){this.creatorHash[e]=t},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.isElementRegistered=function(e){return!!this.creatorHash[e]},e.prototype.createElement=function(e,t){var r=this.creatorHash[e];return null==r?null:r(t)},e.Instance=new e,e}()},"./src/react/element-header.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyElementHeader",(function(){return c}));var n,o=r("react"),i=r.n(o),s=r("./src/react/components/action-bar/action-bar.tsx"),a=r("./src/react/components/title/title-element.tsx"),l=r("./src/react/reactquestion_element.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.element,t=e.hasTitle?i.a.createElement(a.TitleElement,{element:e}):null,r=e.hasDescriptionUnderTitle?l.SurveyElementBase.renderQuestionDescription(this.element):null,n=e.additionalTitleToolbar?i.a.createElement(s.SurveyActionBar,{model:e.additionalTitleToolbar}):null;return i.a.createElement("div",{className:e.cssHeader,onClick:e.clickTitleFunction},t,r,n)},t}(i.a.Component)},"./src/react/flow-panel.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyFlowPanel",(function(){return u}));var n,o=r("react"),i=r("./src/react/element-factory.tsx"),s=r("./src/react/panel.tsx"),a=r("./src/react/reactquestion.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"flowPanel",{get:function(){return this.panel},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=function(){return""},this.flowPanel.onGetHtmlForQuestion=this.renderQuestion)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=null,this.flowPanel.onGetHtmlForQuestion=null)},t.prototype.getQuestion=function(e){return this.flowPanel.getQuestionByName(e)},t.prototype.renderQuestion=function(e){return"<question>"+e.name+"</question>"},t.prototype.renderRows=function(){var e=this.renderHtml();return e?[e]:[]},t.prototype.getNodeIndex=function(){return this.renderedIndex++},t.prototype.renderHtml=function(){if(!this.flowPanel)return null;var e="<span>"+this.flowPanel.produceHtml()+"</span>";if(!DOMParser){var t={__html:e};return o.createElement("div",{dangerouslySetInnerHTML:t})}var r=(new DOMParser).parseFromString(e,"text/xml");return this.renderedIndex=0,this.renderParentNode(r)},t.prototype.renderNodes=function(e){for(var t=[],r=0;r<e.length;r++){var n=this.renderNode(e[r]);n&&t.push(n)}return t},t.prototype.getStyle=function(e){var t={};return"b"===e.toLowerCase()&&(t.fontWeight="bold"),"i"===e.toLowerCase()&&(t.fontStyle="italic"),"u"===e.toLowerCase()&&(t.textDecoration="underline"),t},t.prototype.renderParentNode=function(e){var t=e.nodeName.toLowerCase(),r=this.renderNodes(this.getChildDomNodes(e));return"div"===t?o.createElement("div",{key:this.getNodeIndex()},r):o.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(t)},r)},t.prototype.renderNode=function(e){if(!this.hasTextChildNodesOnly(e))return this.renderParentNode(e);var t=e.nodeName.toLowerCase();if("question"===t){var r=this.flowPanel.getQuestionByName(e.textContent);if(!r)return null;var n=o.createElement(a.SurveyQuestion,{key:r.name,element:r,creator:this.creator,css:this.css});return o.createElement("span",{key:this.getNodeIndex()},n)}return"div"===t?o.createElement("div",{key:this.getNodeIndex()},e.textContent):o.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(t)},e.textContent)},t.prototype.getChildDomNodes=function(e){for(var t=[],r=0;r<e.childNodes.length;r++)t.push(e.childNodes[r]);return t},t.prototype.hasTextChildNodesOnly=function(e){for(var t=e.childNodes,r=0;r<t.length;r++)if("#text"!==t[r].nodeName.toLowerCase())return!1;return!0},t.prototype.renderContent=function(e,t){return o.createElement("f-panel",{style:e},t)},t}(s.SurveyPanel);i.ReactElementFactory.Instance.registerElement("flowpanel",(function(e){return o.createElement(u,e)}))},"./src/react/image.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionImage",(function(){return u}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/components/svg-icon/svg-icon.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.question.locImageLink.onChanged=function(){t.forceUpdate()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.locImageLink.onChanged=function(){}},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.getImageCss(),r={objectFit:this.question.imageFit};this.question.imageLink&&!this.question.contentNotLoaded||(r.display="none");var n=null;"image"===this.question.renderedMode&&(n=o.createElement("img",{className:t,src:this.question.locImageLink.renderedHtml,alt:this.question.altText||this.question.title,width:this.question.renderedWidth,height:this.question.renderedHeight,style:r,onLoad:function(t){e.question.onLoadHandler()},onError:function(t){e.question.onErrorHandler()}})),"video"===this.question.renderedMode&&(n=o.createElement("video",{controls:!0,className:t,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:r,onLoadedMetadata:function(t){e.question.onLoadHandler()},onError:function(t){e.question.onErrorHandler()}})),"youtube"===this.question.renderedMode&&(n=o.createElement("iframe",{className:t,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:r}));var i=null;return this.question.imageLink&&!this.question.contentNotLoaded||(i=o.createElement("div",{className:this.question.cssClasses.noImage},o.createElement(a.SvgIcon,{iconName:this.question.cssClasses.noImageSvgIconId,size:48}))),o.createElement("div",{className:this.question.cssClasses.root},n,i)},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("image",(function(e){return o.createElement(u,e)}))},"./src/react/imagepicker.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionImagePicker",(function(){return c})),r.d(t,"SurveyQuestionImagePickerItem",(function(){return p}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/reactsurveymodel.tsx"),l=r("./src/react/components/svg-icon/svg-icon.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.question.cssClasses;return o.createElement("fieldset",{className:this.question.getSelectBaseRootCss()},o.createElement("legend",{role:"radio","aria-label":this.question.locTitle.renderedHtml}),this.question.hasColumns?this.getColumns(e):this.getItems(e))},t.prototype.getColumns=function(e){var t=this;return this.question.columns.map((function(r,n){var i=r.map((function(r,n){return t.renderItem("item"+n,r,e)}));return o.createElement("div",{key:"column"+n,className:t.question.getColumnClass(),role:"presentation"},i)}))},t.prototype.getItems=function(e){for(var t=[],r=0;r<this.question.visibleChoices.length;r++){var n=this.question.visibleChoices[r],o="item"+r;t.push(this.renderItem(o,n,e))}return t},Object.defineProperty(t.prototype,"textStyle",{get:function(){return{marginLeft:"3px",display:"inline",position:"static"}},enumerable:!1,configurable:!0}),t.prototype.renderItem=function(e,t,r){var n=o.createElement(p,{key:e,question:this.question,item:t,cssClasses:r}),i=this.question.survey,s=null;return i&&(s=a.ReactSurveyElementsWrapper.wrapItemValue(i,n,this.question,t)),null!=s?s:n},t}(i.SurveyQuestionElementBase),p=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnChange=r.handleOnChange.bind(r),r}return u(t,e),t.prototype.getStateElement=function(){return this.item},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.item.locImageLink.onChanged=function(){}},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){var e=this;this.item.locImageLink.onChanged=function(){e.setState({locImageLinkchanged:e.state&&e.state.locImageLink?e.state.locImageLink+1:1})}},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.handleOnChange=function(e){if(this.question.multiSelect)if(e.target.checked)this.question.value=this.question.value.concat(e.target.value);else{var t=this.question.value;t.splice(this.question.value.indexOf(e.target.value),1),this.question.value=t}else this.question.value=e.target.value;this.setState({value:this.question.value})},t.prototype.renderElement=function(){var e=this,t=this.item,r=this.question,n=this.cssClasses,s=r.isItemSelected(t),a=r.getItemClass(t),u=null;r.showLabel&&(u=o.createElement("span",{className:r.cssClasses.itemText},t.text?i.SurveyElementBase.renderLocString(t.locText):t.value));var c={objectFit:this.question.imageFit},p=null;if(t.locImageLink.renderedHtml&&"image"===this.question.contentMode&&(p=o.createElement("img",{className:n.image,src:t.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,alt:t.locText.renderedHtml,style:c,onLoad:function(r){e.question.onContentLoaded(t,r.nativeEvent)},onError:function(e){t.onErrorHandler(t,e.nativeEvent)}})),t.locImageLink.renderedHtml&&"video"===this.question.contentMode&&(p=o.createElement("video",{controls:!0,className:n.image,src:t.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,style:c,onLoadedMetadata:function(r){e.question.onContentLoaded(t,r.nativeEvent)},onError:function(e){t.onErrorHandler(t,e.nativeEvent)}})),!t.locImageLink.renderedHtml||t.contentNotLoaded){var d={width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,objectFit:this.question.imageFit};p=o.createElement("div",{className:n.itemNoImage,style:d},n.itemNoImageSvgIcon?o.createElement(l.SvgIcon,{className:n.itemNoImageSvgIcon,iconName:this.question.cssClasses.itemNoImageSvgIconId,size:48}):null)}return o.createElement("div",{className:a},o.createElement("label",{className:n.label},o.createElement("input",{className:n.itemControl,id:this.question.getItemId(t),type:this.question.inputType,name:this.question.questionName,checked:s,value:t.value,disabled:!this.question.getItemEnabled(t),onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),o.createElement("div",{className:this.question.cssClasses.itemDecorator},o.createElement("div",{className:this.question.cssClasses.imageContainer},this.question.cssClasses.checkedItemDecorator?o.createElement("span",{className:this.question.cssClasses.checkedItemDecorator},this.question.cssClasses.checkedItemSvgIconId?o.createElement(l.SvgIcon,{size:"auto",className:this.question.cssClasses.checkedItemSvgIcon,iconName:this.question.cssClasses.checkedItemSvgIconId}):null):null,p),u)))},t}(i.ReactSurveyElement);s.ReactQuestionFactory.Instance.registerQuestion("imagepicker",(function(e){return o.createElement(c,e)}))},"./src/react/page.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyPage",(function(){return u}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/panel-base.tsx"),a=r("./src/react/components/title/title-element.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getPanelBase=function(){return this.props.page},Object.defineProperty(t.prototype,"page",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.renderTitle(),t=this.renderDescription(),r=this.renderRows(this.panelBase.cssClasses);return o.createElement("div",{ref:this.rootRef,className:this.page.cssRoot},e,t,r)},t.prototype.renderTitle=function(){return o.createElement(a.TitleElement,{element:this.page})},t.prototype.renderDescription=function(){if(!this.page._showDescription)return null;var e=i.SurveyElementBase.renderLocString(this.page.locDescription);return o.createElement("div",{className:this.panelBase.cssClasses.page.description},e)},t}(s.SurveyPanelBase)},"./src/react/panel-base.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyPanelBase",(function(){return l}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/row.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){var r=e.call(this,t)||this;return r.renderedRowsCache={},r.rootRef=o.createRef(),r}return a(t,e),t.prototype.getStateElement=function(){return this.panelBase},t.prototype.canUsePropInState=function(t){return"elements"!==t&&e.prototype.canUsePropInState.call(this,t)},Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.getCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelBase",{get:function(){return this.getPanelBase()},enumerable:!1,configurable:!0}),t.prototype.getPanelBase=function(){return this.props.element||this.props.question},t.prototype.getSurvey=function(){return this.props.survey||(this.panelBase?this.panelBase.survey:null)},t.prototype.getCss=function(){return this.props.css},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this);var t=this.rootRef.current;t&&t.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),t.page&&this.survey&&this.survey.currentPage&&t.page.name===this.survey.currentPage.name||this.doAfterRender()},t.prototype.doAfterRender=function(){var e=this.rootRef.current;e&&this.survey&&(this.panelBase.isPanel?this.survey.afterRenderPanel(this.panelBase,e):this.survey.afterRenderPage(e))},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.survey&&!!this.panelBase&&this.panelBase.isVisible&&!!this.panelBase.survey},t.prototype.renderRows=function(e){"rows"!==this.changedStatePropName&&(this.renderedRowsCache={});for(var t=[],r=this.panelBase.rows,n=0;n<r.length;n++){var o=this.renderedRowsCache[r[n].id];o||(o=this.createRow(r[n],e),this.renderedRowsCache[r[n].id]=o),t.push(o)}return t},t.prototype.createRow=function(e,t){return o.createElement(s.SurveyRow,{key:e.id,row:e,survey:this.survey,creator:this.creator,css:t})},t}(i.SurveyElementBase)},"./src/react/panel.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyPanel",(function(){return f}));var n,o=r("react"),i=r("./src/react/reactquestion.tsx"),s=r("./src/react/reactquestion_element.tsx"),a=r("./src/react/element-factory.tsx"),l=r("./src/react/panel-base.tsx"),u=r("./src/react/reactsurveymodel.tsx"),c=r("./src/react/components/action-bar/action-bar.tsx"),p=r("./src/react/components/title/title-element.tsx"),d=r("./src/react/element-header.tsx"),h=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(e){function t(t){var r=e.call(this,t)||this;return r.hasBeenExpanded=!1,r}return h(t,e),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.renderHeader(),r=o.createElement(i.SurveyElementErrors,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator}),n={paddingLeft:this.panel.innerPaddingLeft,display:this.panel.isCollapsed?"none":void 0},s=null;if(!this.panel.isCollapsed||this.hasBeenExpanded){this.hasBeenExpanded=!0;var a=this.renderRows(this.panelBase.cssClasses),l=this.panelBase.cssClasses.panel.content;s=this.renderContent(n,a,l)}return o.createElement("div",{ref:this.rootRef,className:this.panelBase.getContainerCss(),onFocus:function(){e.panelBase&&e.panelBase.focusIn()},id:this.panelBase.id},this.panel.showErrorsAbovePanel?r:null,t,this.panel.showErrorsAbovePanel?null:r,s)},t.prototype.renderHeader=function(){return this.panel.hasTitle||this.panel.hasDescription?o.createElement(d.SurveyElementHeader,{element:this.panel}):null},t.prototype.wrapElement=function(e){var t=this.panel.survey,r=null;return t&&(r=u.ReactSurveyElementsWrapper.wrapElement(t,e,this.panel)),null!=r?r:e},t.prototype.renderContent=function(e,t,r){var n=this.renderBottom();return o.createElement("div",{style:e,className:r,id:this.panel.contentId},t,n)},t.prototype.renderTitle=function(){return this.panelBase.title?o.createElement(p.TitleElement,{element:this.panelBase}):null},t.prototype.renderDescription=function(){if(!this.panelBase.description)return null;var e=s.SurveyElementBase.renderLocString(this.panelBase.locDescription);return o.createElement("div",{className:this.panel.cssClasses.panel.description},e)},t.prototype.renderBottom=function(){var e=this.panel.getFooterToolbar();return e.hasActions?o.createElement(c.SurveyActionBar,{model:e}):null},t}(l.SurveyPanelBase);a.ReactElementFactory.Instance.registerElement("panel",(function(e){return o.createElement(f,e)}))},"./src/react/rating-dropdown.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionRatingDropdown",(function(){return u}));var n,o=r("react"),i=r("survey-core"),s=r("./src/react/dropdown-base.tsx"),a=r("./src/react/reactquestion_factory.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.renderSelect(e);return o.createElement("div",{className:this.question.cssClasses.rootDropdown},t)},t}(s.SurveyQuestionDropdownBase);a.ReactQuestionFactory.Instance.registerQuestion("sv-rating-dropdown",(function(e){return o.createElement(u,e)})),i.RendererFactory.Instance.registerRenderer("rating","dropdown","sv-rating-dropdown")},"./src/react/react-popup-survey.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"PopupSurvey",(function(){return u})),r.d(t,"SurveyWindow",(function(){return c}));var n,o=r("react"),i=r("./src/react/reactSurvey.tsx"),s=r("./src/react/reactquestion_element.tsx"),a=r("survey-core"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnExpanded=r.handleOnExpanded.bind(r),r}return l(t,e),t.prototype.getStateElements=function(){return[this.popup,this.popup.survey]},t.prototype.handleOnExpanded=function(e){this.popup.changeExpandCollapse()},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&this.popup.isShowing},t.prototype.renderElement=function(){var e=this.renderWindowHeader(),t=this.popup.isExpanded?this.renderBody():null,r={position:"fixed",bottom:3,right:10};return this.popup.renderedWidth&&(r.width=this.popup.renderedWidth,r.maxWidth=this.popup.renderedWidth),o.createElement("div",{className:this.popup.cssRoot,style:r},e,t)},t.prototype.renderWindowHeader=function(){var e={paddingRight:"10px"},t=this.popup.cssButton;t="glyphicon pull-right "+t;var r=s.SurveyElementBase.renderLocString(this.survey.locTitle);return o.createElement("div",{className:this.popup.cssHeaderRoot},o.createElement("span",{onClick:this.handleOnExpanded,style:{width:"100%",cursor:"pointer"}},o.createElement("span",{className:this.popup.cssHeaderTitle,style:e},r),o.createElement("span",{className:t,"aria-hidden":"true"})),this.popup.isExpanded?o.createElement("span",{onClick:this.handleOnExpanded,style:{float:"right",cursor:"pointer"}},o.createElement("span",{className:this.popup.cssHeaderTitle,style:e},"X")):null)},t.prototype.renderBody=function(){return o.createElement("div",{className:this.popup.cssBody},this.doRender())},t.prototype.createSurvey=function(t){t||(t={}),e.prototype.createSurvey.call(this,t),this.popup=new a.PopupSurveyModel(null,this.survey),t.closeOnCompleteTimeout&&(this.popup.closeOnCompleteTimeout=t.closeOnCompleteTimeout),this.popup.isShowing=!0,this.popup.isExpanded||!t.expanded&&!t.isExpanded||this.popup.expand()},t}(i.Survey),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t}(u)},"./src/react/reactSurvey.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"Survey",(function(){return b})),r.d(t,"attachKey2click",(function(){return y}));var n,o=r("react"),i=r("survey-core"),s=r("./src/react/page.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=r("./src/react/string-viewer.tsx"),u=r("./src/react/components/survey-header/survey-header.tsx"),c=r("./src/react/reactquestion_factory.tsx"),p=r("./src/react/element-factory.tsx"),d=r("./src/react/components/brand-info.tsx"),h=r("./src/react/components/notifier.tsx"),f=r("./src/react/components/components-container.tsx"),m=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),g=function(){return g=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)},b=function(e){function t(t){var r=e.call(this,t)||this;return r.previousJSON={},r.isSurveyUpdated=!1,r.createSurvey(t),r.updateSurvey(t,{}),r.rootRef=o.createRef(),r.rootNodeId=t.id||null,r.rootNodeClassName=t.className||"",r}return m(t,e),Object.defineProperty(t,"cssType",{get:function(){return i.surveyCss.currentType},set:function(e){i.StylesManager.applyTheme(e)},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.survey},t.prototype.onSurveyUpdated=function(){if(this.survey){var e=this.rootRef.current;e&&this.survey.afterRenderSurvey(e),this.survey.startTimerFromUI()}},t.prototype.shouldComponentUpdate=function(t,r){return!!e.prototype.shouldComponentUpdate.call(this,t,r)&&(this.isModelJSONChanged(t)&&(this.destroySurvey(),this.createSurvey(t),this.updateSurvey(t,{}),this.isSurveyUpdated=!0),!0)},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.updateSurvey(this.props,t),this.isSurveyUpdated&&(this.onSurveyUpdated(),this.isSurveyUpdated=!1)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.onSurveyUpdated()},t.prototype.destroySurvey=function(){this.survey&&(this.survey.stopTimer(),this.survey.destroyResizeObserver())},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.destroySurvey()},t.prototype.doRender=function(){var e;this.survey.needRenderIcons&&i.SvgRegistry.renderIcons(),e="completed"==this.survey.state?this.renderCompleted():"completedbefore"==this.survey.state?this.renderCompletedBefore():"loading"==this.survey.state?this.renderLoading():this.renderSurvey();var t=o.createElement(u.SurveyHeader,{survey:this.survey}),r=o.createElement("div",{className:"sv_custom_header"});this.survey.hasLogo&&(r=null);var n=this.survey.getRootCss(),s=this.rootNodeClassName?this.rootNodeClassName+" "+n:n,a={backgroundImage:this.survey.renderBackgroundImage,backgroundSize:this.survey.backgroundImageFit},l={backgroundColor:this.survey.renderBackgroundOpacity};return o.createElement("div",{id:this.rootNodeId,ref:this.rootRef,className:s,style:a},o.createElement("form",{onSubmit:function(e){e.preventDefault()},style:l},r,o.createElement("div",{className:this.css.container},t,o.createElement(f.ComponentsContainer,{survey:this.survey,container:"header",needRenderWrapper:!1}),e,o.createElement(f.ComponentsContainer,{survey:this.survey,container:"footer",needRenderWrapper:!1}))),this.survey.showBrandInfo?o.createElement(d.BrandInfo,null):null,o.createElement(h.NotifierComponent,{notifier:this.survey.notifier}))},t.prototype.renderElement=function(){return this.doRender()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},set:function(e){this.survey.css=e},enumerable:!1,configurable:!0}),t.prototype.renderCompleted=function(){if(!this.survey.showCompletedPage)return null;var e={__html:this.survey.processedCompletedHtml};return o.createElement(o.Fragment,null,o.createElement("div",{dangerouslySetInnerHTML:e,className:this.survey.completedCss}))},t.prototype.renderCompletedBefore=function(){var e={__html:this.survey.processedCompletedBeforeHtml};return o.createElement("div",{dangerouslySetInnerHTML:e,className:this.css.body})},t.prototype.renderLoading=function(){var e={__html:this.survey.processedLoadingHtml};return o.createElement("div",{dangerouslySetInnerHTML:e,className:this.css.body})},t.prototype.renderSurvey=function(){var e=this.survey.activePage?this.renderPage(this.survey.activePage):null,t=(this.survey.isShowStartingPage,this.survey.activePage?this.survey.activePage.id:""),r=this.survey.bodyCss;e||(r=this.css.bodyEmpty,e=this.renderEmptySurvey());var n={};return this.survey.renderedWidth&&(n.maxWidth=this.survey.renderedWidth),o.createElement("div",{className:this.survey.bodyContainerCss},o.createElement(f.ComponentsContainer,{survey:this.survey,container:"left"}),o.createElement("div",{id:t,className:r,style:n},o.createElement(f.ComponentsContainer,{survey:this.survey,container:"contentTop"}),e,o.createElement(f.ComponentsContainer,{survey:this.survey,container:"contentBottom"})),o.createElement(f.ComponentsContainer,{survey:this.survey,container:"right"}))},t.prototype.renderPage=function(e){return o.createElement(s.SurveyPage,{survey:this.survey,page:e,css:this.css,creator:this})},t.prototype.renderEmptySurvey=function(){return o.createElement("span",null,this.survey.emptySurveyText)},t.prototype.createSurvey=function(e){e||(e={}),this.previousJSON={},e?e.model?this.survey=e.model:e.json&&(this.previousJSON=e.json,this.survey=new i.SurveyModel(e.json)):this.survey=new i.SurveyModel,e.css&&(this.survey.css=this.css),this.setSurveyEvents()},t.prototype.isModelJSONChanged=function(e){return e.model?this.survey!==e.model:!!e.json&&!i.Helpers.isTwoValueEquals(e.json,this.previousJSON)},t.prototype.updateSurvey=function(e,t){if(e)for(var r in t=t||{},e)"model"!=r&&"children"!=r&&"json"!=r&&("css"!=r?e[r]!==t[r]&&(0==r.indexOf("on")&&this.survey[r]&&this.survey[r].add?(t[r]&&this.survey[r].remove(t[r]),this.survey[r].add(e[r])):this.survey[r]=e[r]):(this.survey.mergeValues(e.css,this.survey.getCss()),this.survey.updateNavigationCss(),this.survey.updateElementCss()))},t.prototype.setSurveyEvents=function(){var e=this;this.survey.renderCallback=function(){var t=e.state&&e.state.modelChanged?e.state.modelChanged:0;e.setState({modelChanged:t+1})},this.survey.onPartialSend.add((function(t){e.state&&e.setState(e.state)}))},t.prototype.createQuestionElement=function(e){return c.ReactQuestionFactory.Instance.createQuestion(e.isDefaultRendering()?e.getTemplate():e.getComponentName(),{question:e,isDisplayMode:e.isInputReadOnly,creator:this})},t.prototype.renderError=function(e,t,r){return o.createElement("div",{key:e},o.createElement("span",{className:r.error.icon||void 0,"aria-hidden":"true"}),o.createElement("span",{className:r.error.item||void 0},o.createElement(l.SurveyLocStringViewer,{locStr:t.locText})))},t.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},t.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},t}(a.SurveyElementBase);function y(e,t,r){return void 0===r&&(r={processEsc:!0,disableTabStop:!1}),t&&t.disableTabStop||r&&r.disableTabStop?o.cloneElement(e,{tabIndex:-1}):(r=g({},r),o.cloneElement(e,{tabIndex:0,onKeyUp:function(e){return e.preventDefault(),e.stopPropagation(),Object(i.doKey2ClickUp)(e,r),!1},onKeyDown:function(e){return Object(i.doKey2ClickDown)(e,r)},onBlur:function(e){return Object(i.doKey2ClickBlur)(e)}}))}p.ReactElementFactory.Instance.registerElement("survey",(function(e){return o.createElement(b,e)}))},"./src/react/reactSurveyNavigationBase.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyNavigationBase",(function(){return s}));var n,o=r("react"),i=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e){function t(t){var r=e.call(this,t)||this;return r.updateStateFunction=null,r.state={update:0},r}return i(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css||this.survey.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.survey){var e=this;this.updateStateFunction=function(){e.setState({update:e.state.update+1})},this.survey.onPageVisibleChanged.add(this.updateStateFunction)}},t.prototype.componentWillUnmount=function(){this.survey&&this.updateStateFunction&&(this.survey.onPageVisibleChanged.remove(this.updateStateFunction),this.updateStateFunction=null)},t}(o.Component)},"./src/react/reactSurveyProgress.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyProgress",(function(){return u}));var n,o=r("react"),i=r("survey-core"),s=r("./src/react/reactSurveyNavigationBase.tsx"),a=r("./src/react/element-factory.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"isTop",{get:function(){return this.props.isTop},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return this.survey.progressValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e={width:this.progress+"%"};return o.createElement("div",{className:this.survey.getProgressCssClasses()},o.createElement("div",{style:e,className:this.css.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100},o.createElement("span",{className:i.SurveyProgressModel.getProgressTextInBarCss(this.css)},this.progressText)),o.createElement("span",{className:i.SurveyProgressModel.getProgressTextUnderBarCss(this.css)},this.progressText))},t}(s.SurveyNavigationBase);a.ReactElementFactory.Instance.registerElement("sv-progress-pages",(function(e){return o.createElement(u,e)})),a.ReactElementFactory.Instance.registerElement("sv-progress-questions",(function(e){return o.createElement(u,e)})),a.ReactElementFactory.Instance.registerElement("sv-progress-correctquestions",(function(e){return o.createElement(u,e)})),a.ReactElementFactory.Instance.registerElement("sv-progress-requiredquestions",(function(e){return o.createElement(u,e)}))},"./src/react/reactSurveyProgressButtons.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyProgressButtons",(function(){return u}));var n,o=r("react"),i=r("survey-core"),s=r("./src/react/reactSurveyNavigationBase.tsx"),a=r("./src/react/element-factory.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.updateScroller=void 0,r.progressButtonsModel=new i.SurveyProgressButtonsModel(r.survey),r.listContainerRef=o.createRef(),r}return l(t,e),t.prototype.render=function(){var e=this;return o.createElement("div",{className:this.css.progressButtonsContainerCenter},o.createElement("div",{className:this.css.progressButtonsContainer},o.createElement("div",{className:this.getScrollButtonCss(!0),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!0)}}),o.createElement("div",{className:this.css.progressButtonsListContainer,ref:this.listContainerRef},o.createElement("ul",{className:this.css.progressButtonsList},this.getListElements())),o.createElement("div",{className:this.getScrollButtonCss(!1),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!1)}})))},t.prototype.getListElements=function(){var e=this,t=[];return this.survey.visiblePages.forEach((function(r,n){t.push(e.renderListElement(r,n))})),t},t.prototype.renderListElement=function(e,t){var r=this;return o.createElement("li",{key:"listelement"+t,className:this.getListElementCss(t),onClick:this.isListElementClickable(t)?function(){return r.clickListElement(t)}:void 0},o.createElement("div",{className:this.css.progressButtonsPageTitle,title:e.navigationTitle||e.name},e.navigationTitle||e.name),o.createElement("div",{className:this.css.progressButtonsPageDescription,title:e.navigationDescription},e.navigationDescription))},t.prototype.isListElementClickable=function(e){return this.progressButtonsModel.isListElementClickable(e)},t.prototype.getListElementCss=function(e){return this.progressButtonsModel.getListElementCss(e)},t.prototype.clickListElement=function(e){this.progressButtonsModel.clickListElement(e)},t.prototype.getScrollButtonCss=function(e){return this.progressButtonsModel.getScrollButtonCss(this.state.hasScroller,e)},t.prototype.clickScrollButton=function(e,t){e&&(e.scrollLeft+=70*(t?-1:1))},t.prototype.componentDidMount=function(){var e=this;this.updateScroller=setInterval((function(){e.listContainerRef.current&&e.setState({hasScroller:e.listContainerRef.current.scrollWidth>e.listContainerRef.current.offsetWidth})}),100)},t.prototype.componentWillUnmount=function(){void 0!==this.updateScroller&&(clearInterval(this.updateScroller),this.updateScroller=void 0)},t}(s.SurveyNavigationBase);a.ReactElementFactory.Instance.registerElement("sv-progress-buttons",(function(e){return o.createElement(u,e)}))},"./src/react/reactSurveyProgressToc.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyProgressToc",(function(){return c}));var n,o=r("react"),i=r("survey-core"),s=r("./src/react/reactSurveyNavigationBase.tsx"),a=r("./src/react/element-factory.tsx"),l=r("./src/react/components/list/list.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=Object(i.createTOCListModel)(this.props.model),t=Object(i.getTocRootCss)(this.props.model);return o.createElement("div",{className:t},o.createElement(l.List,{model:e}))},t}(s.SurveyNavigationBase);a.ReactElementFactory.Instance.registerElement("sv-progress-toc",(function(e){return o.createElement(c,e)}))},"./src/react/reactquestion.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestion",(function(){return h})),r.d(t,"SurveyElementErrors",(function(){return f})),r.d(t,"SurveyQuestionAndErrorsWrapped",(function(){return m})),r.d(t,"SurveyQuestionAndErrorsCell",(function(){return g}));var n,o=r("react"),i=r("survey-core"),s=r("./src/react/reactsurveymodel.tsx"),a=r("./src/react/element-factory.tsx"),l=r("./src/react/reactquestion_element.tsx"),u=r("./src/react/reactquestion_comment.tsx"),c=r("./src/react/custom-widget.tsx"),p=r("./src/react/element-header.tsx"),d=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e){function t(t){var r=e.call(this,t)||this;return r.isNeedFocus=!1,r.rootRef=o.createRef(),r}return d(t,e),t.renderQuestionBody=function(e,t){return t.isVisible?t.customWidget?o.createElement(c.SurveyCustomWidget,{creator:e,question:t}):e.createQuestionElement(t):null},t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.question&&(this.question.react=this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question&&(this.question.react=null);var t=this.rootRef.current;t&&t.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.doAfterRender()},t.prototype.doAfterRender=function(){if(this.isNeedFocus&&(this.question.isCollapsed||this.question.clickTitleFunction(),this.isNeedFocus=!1),this.question){var e=this.rootRef.current;e&&"r"!==e.getAttribute("data-rendered")&&(e.setAttribute("data-rendered","r"),e.setAttribute("data-name",this.question.name),this.question.afterRender&&this.question.afterRender(e))}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.question&&!!this.creator&&this.question.isVisible},t.prototype.renderQuestionContent=function(){var e=this.question,t={display:this.question.isCollapsed?"none":""},r=e.cssClasses,n=this.renderQuestion(),i=this.question.showErrorOnTop?this.renderErrors(r,"top"):null,s=this.question.showErrorOnBottom?this.renderErrors(r,"bottom"):null,a=e&&e.hasComment?this.renderComment(r):null,l=this.question.isErrorsModeTooltip?this.renderErrors(r,"tooltip"):null,u=e.hasDescriptionUnderInput?this.renderDescription():null;return o.createElement("div",{className:e.cssContent||void 0,style:t,role:"presentation"},i,n,a,s,l,u)},t.prototype.renderElement=function(){var e=this.question,t=e.cssClasses,r=this.renderHeader(e),n=e.hasTitleOnLeftTop?r:null,i=e.hasTitleOnBottom?r:null,s=this.question.showErrorsAboveQuestion?this.renderErrors(t,""):null,a=this.question.showErrorsBelowQuestion?this.renderErrors(t,""):null,l=e.getRootStyle(),u=this.wrapQuestionContent(this.renderQuestionContent());return o.createElement(o.Fragment,null,o.createElement("div",{ref:this.rootRef,id:e.id,className:e.getRootCss(),style:l,role:e.ariaRole,"aria-required":this.question.ariaRequired,"aria-invalid":this.question.ariaInvalid,"aria-labelledby":e.ariaLabelledBy,"aria-expanded":null===e.ariaExpanded?void 0:"true"===e.ariaExpanded},s,n,u,i,a))},t.prototype.wrapElement=function(e){var t=this.question.survey,r=null;return t&&(r=s.ReactSurveyElementsWrapper.wrapElement(t,e,this.question)),null!=r?r:e},t.prototype.wrapQuestionContent=function(e){var t=this.question.survey,r=null;return t&&(r=s.ReactSurveyElementsWrapper.wrapQuestionContent(t,e,this.question)),null!=r?r:e},t.prototype.renderQuestion=function(){return t.renderQuestionBody(this.creator,this.question)},t.prototype.renderDescription=function(){return l.SurveyElementBase.renderQuestionDescription(this.question)},t.prototype.renderComment=function(e){var t=l.SurveyElementBase.renderLocString(this.question.locCommentText);return o.createElement("div",{className:this.question.getCommentAreaCss()},o.createElement("div",null,t),o.createElement(u.SurveyQuestionCommentItem,{question:this.question,cssClasses:e,otherCss:e.other,isDisplayMode:this.question.isInputReadOnly}))},t.prototype.renderHeader=function(e){return o.createElement(p.SurveyElementHeader,{element:e})},t.prototype.renderErrors=function(e,t){return o.createElement(f,{element:this.question,cssClasses:e,creator:this.creator,location:t,id:this.question.id+"_errors"})},t}(l.SurveyElementBase);a.ReactElementFactory.Instance.registerElement("question",(function(e){return o.createElement(h,e)}));var f=function(e){function t(t){var r=e.call(this,t)||this;return r.state=r.getState(),r.tooltipRef=o.createRef(),r}return d(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this.props.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this.props.location},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return void 0===e&&(e=null),e?{error:e.error+1}:{error:0}},t.prototype.canRender=function(){return!!this.element&&this.element.hasVisibleErrors},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),"tooltip"==this.props.location&&(this.tooltipRef.current&&!this.tooltipManager&&(this.tooltipManager=new i.TooltipManager(this.tooltipRef.current)),this.tooltipManager&&!this.tooltipRef.current&&this.disposeTooltipManager())},t.prototype.componentWillUnmount=function(){this.tooltipManager&&this.disposeTooltipManager()},t.prototype.disposeTooltipManager=function(){var e;null===(e=this.tooltipManager)||void 0===e||e.dispose(),this.tooltipManager=void 0},t.prototype.renderElement=function(){for(var e=[],t=0;t<this.element.errors.length;t++){var r="error"+t;e.push(this.creator.renderError(r,this.element.errors[t],this.cssClasses))}return o.createElement("div",{role:"alert","aria-live":"polite",className:this.element.cssError,id:this.id,ref:this.tooltipRef},e)},t}(l.ReactSurveyElement),m=function(e){function t(t){return e.call(this,t)||this}return d(t,e),t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.getQuestion()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.getQuestion=function(){return this.props.question},Object.defineProperty(t.prototype,"itemCss",{get:function(){return this.props.itemCss},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.doAfterRender()},t.prototype.doAfterRender=function(){},t.prototype.canRender=function(){return!!this.question},t.prototype.renderErrors=function(e){return this.getShowErrors()?o.createElement(f,{element:this.question,cssClasses:this.cssClasses,creator:this.creator,location:e}):null},t.prototype.renderContent=function(){var e=this.creator.questionErrorLocation(),t=this.renderErrors(e),r=this.question.showErrorOnTop?t:null,n=this.question.showErrorOnBottom?t:null,i=this.renderQuestion();return o.createElement(o.Fragment,null,r,i,n)},t.prototype.getShowErrors=function(){return this.question.isVisible},t.prototype.renderQuestion=function(){return h.renderQuestionBody(this.creator,this.question)},t}(l.ReactSurveyElement),g=function(e){function t(t){var r=e.call(this,t)||this;return r.cellRef=o.createRef(),r}return d(t,e),t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.question){var t=this.cellRef.current;t&&t.removeAttribute("data-rendered")}},t.prototype.renderElement=function(){var e=this.getCellStyle(),t=this.question.isErrorsModeTooltip?this.renderErrors("tooltip"):null;return o.createElement("td",{ref:this.cellRef,className:this.itemCss,colSpan:this.props.cell.colSpans,"data-responsive-title":this.getHeaderText(),title:this.props.cell.getTitle(),style:e},this.wrapCell(this.props.cell,o.createElement("div",{className:this.cssClasses.cellQuestionWrapper},this.renderContent(),t)))},t.prototype.getCellStyle=function(){return null},t.prototype.getHeaderText=function(){return""},t.prototype.wrapCell=function(e,t){if(!e)return t;var r=this.question.survey,n=null;return r&&(n=s.ReactSurveyElementsWrapper.wrapMatrixCell(r,t,e,this.props.reason)),null!=n?n:t},t}(m)},"./src/react/reactquestion_buttongroup.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionButtonGroup",(function(){return c})),r.d(t,"SurveyButtonGroupItem",(function(){return p}));var n,o=r("./src/react/reactquestion_element.tsx"),i=r("react"),s=r.n(i),a=r("./src/react/components/svg-icon/svg-icon.tsx"),l=r("survey-core"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.question},t.prototype.renderElement=function(){var e=this.renderItems();return s.a.createElement("div",{className:this.question.cssClasses.root},e)},t.prototype.renderItems=function(){var e=this;return this.question.visibleChoices.map((function(t,r){return s.a.createElement(p,{key:e.question.inputId+"_"+r,item:t,question:e.question,index:r})}))},t}(o.SurveyQuestionElementBase),p=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){this.model=new l.ButtonGroupItemModel(this.question,this.item,this.index);var e=this.renderIcon(),t=this.renderInput(),r=this.renderCaption();return s.a.createElement("label",{role:"radio",className:this.model.css.label,title:this.model.caption.renderedHtml},t,s.a.createElement("div",{className:this.model.css.decorator},e,r))},t.prototype.renderIcon=function(){return this.model.iconName?s.a.createElement(a.SvgIcon,{className:this.model.css.icon,iconName:this.model.iconName,size:this.model.iconSize||24}):null},t.prototype.renderInput=function(){var e=this;return s.a.createElement("input",{className:this.model.css.control,id:this.model.id,type:"radio",name:this.model.name,checked:this.model.selected,value:this.model.value,disabled:this.model.readOnly,onChange:function(){e.model.onChange()},"aria-required":this.model.isRequired,"aria-label":this.model.caption.renderedHtml,"aria-invalid":this.model.hasErrors,"aria-describedby":this.model.describedBy,role:"radio"})},t.prototype.renderCaption=function(){if(!this.model.showCaption)return null;var e=this.renderLocString(this.model.caption);return s.a.createElement("span",{className:this.model.css.caption,title:this.model.caption.renderedHtml},e)},t}(o.SurveyElementBase)},"./src/react/reactquestion_checkbox.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionCheckbox",(function(){return p})),r.d(t,"SurveyQuestionCheckboxItem",(function(){return d}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_comment.tsx"),a=r("./src/react/reactquestion_factory.tsx"),l=r("./src/react/reactsurveymodel.tsx"),u=r("./src/react/element-factory.tsx"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses;return o.createElement("fieldset",{role:"presentation",className:this.question.getSelectBaseRootCss(),ref:function(t){return e.setControl(t)}},o.createElement("legend",{role:"presentation",className:"sv-hidden"}),this.getHeader(),this.question.hasColumns?this.getColumnedBody(t):this.getBody(t),this.getFooter(),this.question.isOtherSelected?this.renderOther():null)},t.prototype.getHeader=function(){var e=this;if(this.question.hasHeadItems)return this.question.headItems.map((function(t,r){return e.renderItem("item_h"+r,t,!1,e.question.cssClasses)}))},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map((function(t,r){return e.renderItem("item_f"+r,t,!1,e.question.cssClasses)}))},t.prototype.getColumnedBody=function(e){return o.createElement("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var t=this;return this.question.columns.map((function(r,n){var i=r.map((function(r,o){return t.renderItem("item"+o,r,0===n&&0===o,e,""+n+o)}));return o.createElement("div",{key:"column"+n,className:t.question.getColumnClass(),role:"presentation"},i)}))},t.prototype.getBody=function(e){return this.question.blockedRow?o.createElement("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):o.createElement(o.Fragment,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,t){for(var r=[],n=0;n<t.length;n++){var o=t[n],i="item"+n,s=this.renderItem(i,o,0==n,e,""+n);s&&r.push(s)}return r},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(){var e=this.question.cssClasses;return o.createElement("div",{className:this.question.getCommentAreaCss(!0)},o.createElement(s.SurveyQuestionOtherValueItem,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,t,r,n,o){var i=u.ReactElementFactory.Instance.createElement(this.question.itemComponent,{key:e,question:this.question,cssClasses:n,isDisplayMode:this.isDisplayMode,item:t,textStyle:this.textStyle,index:o,isFirst:r}),s=this.question.survey,a=null;return s&&i&&(a=l.ReactSurveyElementsWrapper.wrapItemValue(s,i,this.question,t)),null!=a?a:i},t}(i.SurveyQuestionElementBase),d=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnChange=function(e){r.question.clickItemHandler(r.item,e.target.checked)},r.selectAllChanged=function(e){r.question.toggleSelectAll()},r}return c(t,e),t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirst",{get:function(){return this.props.isFirst},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),t.prototype.shouldComponentUpdate=function(t,r){return!(!e.prototype.shouldComponentUpdate.call(this,t,r)||!this.question||this.question.customWidget&&!this.question.customWidgetData.isNeedRender&&!this.question.customWidget.widgetJson.isDefaultRender&&!this.question.customWidget.widgetJson.render)},t.prototype.canRender=function(){return!!this.item&&!!this.question},t.prototype.renderElement=function(){var e=this.question.isItemSelected(this.item);return this.renderCheckbox(e,null)},Object.defineProperty(t.prototype,"inputStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderCheckbox=function(e,t){var r=this.question.getItemId(this.item),n=(this.hideCaption||this.renderLocString(this.item.locText),this.question.getItemClass(this.item)),i=this.question.getLabelClass(this.item),s=this.item==this.question.selectAllItem?this.selectAllChanged:this.handleOnChange,a=this.hideCaption?null:o.createElement("span",{className:this.cssClasses.controlLabel},this.renderLocString(this.item.locText,this.textStyle));return o.createElement("div",{className:n,role:"presentation"},o.createElement("label",{className:i,"aria-label":this.question.getAriaItemLabel(this.item)},o.createElement("input",{className:this.cssClasses.itemControl,role:"option",type:"checkbox",name:this.question.name,value:"selectall"!=this.item.value?this.item.value:void 0,id:r,style:this.inputStyle,disabled:!this.question.getItemEnabled(this.item),checked:e,onChange:s,"aria-describedby":this.question.ariaDescribedBy}),this.cssClasses.materialDecorator?o.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,a),t)},t}(i.ReactSurveyElement);u.ReactElementFactory.Instance.registerElement("survey-checkbox-item",(function(e){return o.createElement(d,e)})),a.ReactQuestionFactory.Instance.registerQuestion("checkbox",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_comment.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionComment",(function(){return u})),r.d(t,"SurveyQuestionCommentItem",(function(){return c})),r.d(t,"SurveyQuestionOtherValueItem",(function(){return p}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/components/character-counter.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.renderElement=function(){var e=this,t=this.question.isInputTextUpdate?void 0:this.updateValueOnEvent,r=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return o.createElement("div",null,this.question.value);var n=this.question.getMaxLength()?o.createElement(a.CharacterCounterComponent,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return o.createElement(o.Fragment,null,o.createElement("textarea",{id:this.question.inputId,className:this.question.className,disabled:this.question.isInputReadOnly,readOnly:this.question.isInputReadOnly,ref:function(t){return e.setControl(t)},maxLength:this.question.getMaxLength(),placeholder:r,onBlur:t,onInput:function(t){e.question.isInputTextUpdate?e.updateValueOnEvent(t):e.question.updateElement();var r=t.target.value;e.question.updateRemainingCharacterCounter(r)},onKeyDown:function(t){e.question.onKeyDown(t)},cols:this.question.cols,rows:this.question.rows,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-describedby":this.question.a11y_input_ariaDescribedBy,style:{resize:this.question.resizeStyle}}),n)},t}(i.SurveyQuestionUncontrolledElement),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.canRender=function(){return!!this.props.question},t.prototype.onCommentChange=function(e){this.props.question.onCommentChange(e)},t.prototype.onCommentInput=function(e){this.props.question.onCommentInput(e)},t.prototype.getComment=function(){return this.props.question.comment},t.prototype.getId=function(){return this.props.question.commentId},t.prototype.getPlaceholder=function(){return this.props.question.commentPlaceholder},t.prototype.renderElement=function(){var e=this,t=this.props.question,r=this.props.otherCss||this.cssClasses.comment,n=function(t){e.setState({comment:t.target.value}),e.onCommentChange(t)},i=this.getComment(),s=this.state?this.state.comment:void 0;void 0!==s&&s.trim()!==i&&(s=i);var a=void 0!==s?s:i||"";return t.isReadOnlyRenderDiv()?o.createElement("div",null,a):o.createElement("textarea",{id:this.getId(),className:r,value:a,disabled:this.isDisplayMode,maxLength:t.getOthersMaxLength(),placeholder:this.getPlaceholder(),onChange:n,onBlur:function(t){e.onCommentChange(t),n(t)},onInput:function(t){return e.onCommentInput(t)},"aria-required":t.isRequired,"aria-label":t.locTitle.renderedHtml,style:{resize:t.resizeStyle}})},t}(i.ReactSurveyElement),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.onCommentChange=function(e){this.props.question.onOtherValueChange(e)},t.prototype.onCommentInput=function(e){this.props.question.onOtherValueInput(e)},t.prototype.getComment=function(){return this.props.question.otherValue},t.prototype.getId=function(){return this.props.question.otherId},t.prototype.getPlaceholder=function(){return this.props.question.otherPlaceholder},t}(c);s.ReactQuestionFactory.Instance.registerQuestion("comment",(function(e){return o.createElement(u,e)}))},"./src/react/reactquestion_custom.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionCustom",(function(){return c})),r.d(t,"SurveyQuestionComposite",(function(){return p}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion.tsx"),a=r("./src/react/reactquestion_factory.tsx"),l=r("./src/react/panel.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getStateElements=function(){var t=e.prototype.getStateElements.call(this);return this.question.contentQuestion&&t.push(this.question.contentQuestion),t},t.prototype.renderElement=function(){return s.SurveyQuestion.renderQuestionBody(this.creator,this.question.contentQuestion)},t}(i.SurveyQuestionUncontrolledElement),p=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.canRender=function(){return!!this.question.contentPanel},t.prototype.renderElement=function(){return o.createElement(l.SurveyPanel,{element:this.question.contentPanel,creator:this.creator,survey:this.question.survey})},t}(i.SurveyQuestionUncontrolledElement);a.ReactQuestionFactory.Instance.registerQuestion("custom",(function(e){return o.createElement(c,e)})),a.ReactQuestionFactory.Instance.registerQuestion("composite",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_dropdown.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionDropdown",(function(){return l}));var n,o=r("react"),i=r("./src/react/reactquestion_factory.tsx"),s=r("./src/react/dropdown-base.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.isOtherSelected?this.renderOther(e):null,r=this.renderSelect(e);return o.createElement("div",{className:this.question.renderCssRoot},r,t)},t}(s.SurveyQuestionDropdownBase);i.ReactQuestionFactory.Instance.registerQuestion("dropdown",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_element.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyElementBase",(function(){return u})),r.d(t,"ReactSurveyElement",(function(){return c})),r.d(t,"SurveyQuestionElementBase",(function(){return p})),r.d(t,"SurveyQuestionUncontrolledElement",(function(){return d}));var n,o=r("react"),i=r("survey-core"),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactsurveymodel.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r._allowComponentUpdate=!0,r}return l(t,e),t.renderLocString=function(e,t,r){return void 0===t&&(t=null),s.ReactElementFactory.Instance.createElement(e.renderAs,{locStr:e.renderAsData,style:t,key:r})},t.renderQuestionDescription=function(e){var r=t.renderLocString(e.locDescription);return o.createElement("div",{style:e.isDescriptionVisible?void 0:{display:"none"},className:e.cssDescription},r)},t.prototype.componentDidMount=function(){this.makeBaseElementsReact()},t.prototype.componentWillUnmount=function(){this.unMakeBaseElementsReact()},t.prototype.componentDidUpdate=function(e,t){this.makeBaseElementsReact()},t.prototype.allowComponentUpdate=function(){this._allowComponentUpdate=!0,this.forceUpdate()},t.prototype.denyComponentUpdate=function(){this._allowComponentUpdate=!1},t.prototype.shouldComponentUpdate=function(e,t){return this._allowComponentUpdate&&this.unMakeBaseElementsReact(),this._allowComponentUpdate},t.prototype.render=function(){if(!this.canRender())return null;this.startEndRendering(1);var e=this.renderElement();return this.startEndRendering(-1),e&&(e=this.wrapElement(e)),this.changedStatePropNameValue=void 0,e},t.prototype.wrapElement=function(e){return e},Object.defineProperty(t.prototype,"isRendering",{get:function(){for(var e=0,t=this.getRenderedElements();e<t.length;e++)if(t[e].reactRendering>0)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return this.getStateElements()},t.prototype.startEndRendering=function(e){for(var t=0,r=this.getRenderedElements();t<r.length;t++){var n=r[t];n.reactRendering||(n.reactRendering=0),n.reactRendering+=e}},t.prototype.canRender=function(){return!0},t.prototype.renderElement=function(){return null},Object.defineProperty(t.prototype,"changedStatePropName",{get:function(){return this.changedStatePropNameValue},enumerable:!1,configurable:!0}),t.prototype.makeBaseElementsReact=function(){for(var e=this.getStateElements(),t=0;t<e.length;t++)this.makeBaseElementReact(e[t])},t.prototype.unMakeBaseElementsReact=function(){for(var e=this.getStateElements(),t=0;t<e.length;t++)this.unMakeBaseElementReact(e[t])},t.prototype.getStateElements=function(){var e=this.getStateElement();return e?[e]:[]},t.prototype.getStateElement=function(){return null},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!1},enumerable:!1,configurable:!0}),t.prototype.renderLocString=function(e,r,n){return void 0===r&&(r=null),t.renderLocString(e,r,n)},t.prototype.canMakeReact=function(e){return!!e&&!!e.iteratePropertiesHash},t.prototype.makeBaseElementReact=function(e){var t=this;this.canMakeReact(e)&&(e.iteratePropertiesHash((function(e,r){if(t.canUsePropInState(r)){var n=e[r];Array.isArray(n)&&(n.onArrayChanged=function(e){t.isRendering||(t.changedStatePropNameValue=r,t.setState((function(e){var t={};return t[r]=n,t})))})}})),e.setPropertyValueCoreHandler=function(e,r,n){if(e[r]!==n){if(e[r]=n,!t.canUsePropInState(r))return;if(t.isRendering)return;t.changedStatePropNameValue=r,t.setState((function(e){var t={};return t[r]=n,t}))}})},t.prototype.canUsePropInState=function(e){return!0},t.prototype.unMakeBaseElementReact=function(e){this.canMakeReact(e)&&(e.setPropertyValueCoreHandler=void 0,e.iteratePropertiesHash((function(e,t){var r=e[t];Array.isArray(r)&&(r.onArrayChanged=function(){})})))},t}(o.Component),c=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),t}(u),p=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.updateDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.questionBase){var t=this.control;this.questionBase.beforeDestroyQuestionElement(t),t&&t.removeAttribute("data-rendered")}},t.prototype.updateDomElement=function(){var e=this.control;e&&"r"!==e.getAttribute("data-rendered")&&(e.setAttribute("data-rendered","r"),this.questionBase.afterRenderQuestionElement(e))},Object.defineProperty(t.prototype,"questionBase",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return[this.questionBase]},Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.questionBase&&!!this.creator},t.prototype.shouldComponentUpdate=function(t,r){return!(!e.prototype.shouldComponentUpdate.call(this,t,r)||this.questionBase.customWidget&&!this.questionBase.customWidgetData.isNeedRender&&!this.questionBase.customWidget.widgetJson.isDefaultRender&&!this.questionBase.customWidget.widgetJson.render)},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!!this.questionBase&&this.questionBase.isInputReadOnly||!1},enumerable:!1,configurable:!0}),t.prototype.wrapCell=function(e,t,r){if(!r)return t;var n=this.questionBase.survey,o=null;return n&&(o=a.ReactSurveyElementsWrapper.wrapMatrixCell(n,t,e,r)),null!=o?o:t},t.prototype.setControl=function(e){e&&(this.control=e)},t}(u),d=function(e){function t(t){var r=e.call(this,t)||this;return r.updateValueOnEvent=function(e){i.Helpers.isTwoValueEquals(r.questionBase.value,e.target.value)||r.setValueCore(e.target.value)},r.updateValueOnEvent=r.updateValueOnEvent.bind(r),r}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.setValueCore=function(e){this.questionBase.value=e},t.prototype.getValueCore=function(){return this.questionBase.value},t.prototype.updateDomElement=function(){if(this.control){var t=this.control,r=this.getValueCore();i.Helpers.isTwoValueEquals(r,t.value)||(t.value=this.getValue(r))}e.prototype.updateDomElement.call(this)},t.prototype.getValue=function(e){return i.Helpers.isValueEmpty(e)?"":e},t}(p)},"./src/react/reactquestion_empty.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionEmpty",(function(){return l}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){var r=e.call(this,t)||this;return r.state={value:r.question.value},r}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement("div",null)},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("empty",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_expression.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionExpression",(function(){return l}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses;return o.createElement("div",{id:this.question.inputId,className:t.root,ref:function(t){return e.setControl(t)}},this.question.formatedValue)},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("expression",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_factory.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"ReactQuestionFactory",(function(){return n}));var n=function(){function e(){this.creatorHash={}}return e.prototype.registerQuestion=function(e,t){this.creatorHash[e]=t},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createQuestion=function(e,t){var r=this.creatorHash[e];return null==r?null:r(t)},e.Instance=new e,e}()},"./src/react/reactquestion_file.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionFile",(function(){return p}));var n,o=r("react"),i=r("./src/react/components/action-bar/action-bar.tsx"),s=r("./src/react/components/svg-icon/svg-icon.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=r("./src/react/reactquestion_factory.tsx"),u=r("./src/react/reactSurvey.tsx"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e,t=this,r=this.renderPreview(),n=this.renderFileDecorator(),s=this.renderClearButton(this.question.showRemoveButton),a=this.renderClearButton(this.question.showRemoveButtonBottom),l=this.question.mobileFileNavigatorVisible?o.createElement(i.SurveyActionBar,{model:this.question.mobileFileNavigator}):null;return e=this.isDisplayMode?o.createElement("input",{type:"file",disabled:this.isDisplayMode,className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},style:this.isDisplayMode?{color:"transparent"}:{},onChange:this.isDisplayMode?function(){}:this.question.doChange,multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):o.createElement("input",{type:"file",disabled:this.isDisplayMode,tabIndex:-1,className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},style:this.isDisplayMode?{color:"transparent"}:{},onChange:this.isDisplayMode?function(){}:this.question.doChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy,multiple:this.question.allowMultiple,title:this.question.inputTitle,accept:this.question.acceptedTypes}),o.createElement("div",{className:this.question.fileRootCss},e,o.createElement("div",{className:this.question.cssClasses.dragArea,onDrop:this.question.onDrop,onDragOver:this.question.onDragOver,onDragLeave:this.question.onDragLeave,onDragEnter:this.question.onDragEnter},n,s,r,a,l))},t.prototype.renderFileDecorator=function(){this.question.cssClasses;var e,t=null;return e=Object(u.attachKey2click)(o.createElement("label",{role:"button",tabIndex:0,className:this.question.getChooseFileCss(),htmlFor:this.question.inputId,"aria-label":this.question.chooseButtonCaption},o.createElement("span",null,this.question.chooseButtonCaption),this.question.cssClasses.chooseFileIconId?o.createElement(s.SvgIcon,{title:this.question.chooseButtonCaption,iconName:this.question.cssClasses.chooseFileIconId,size:"auto"}):null)),this.question.isEmpty()&&(t=o.createElement("span",{className:this.question.cssClasses.noFileChosen},this.question.noFileChosenCaption)),o.createElement("div",{className:this.question.getFileDecoratorCss()},o.createElement("span",{className:this.question.cssClasses.dragAreaPlaceholder},this.question.dragAreaPlaceholder),o.createElement("div",{className:this.question.cssClasses.wrapper},e,t))},t.prototype.renderClearButton=function(e){return e?o.createElement("button",{type:"button",onClick:this.question.doClean,className:e},o.createElement("span",null,this.question.clearButtonCaption),this.question.cssClasses.removeButtonIconId?o.createElement(s.SvgIcon,{iconName:this.question.cssClasses.removeButtonIconId,size:"auto",title:this.question.clearButtonCaption}):null):null},t.prototype.renderFileSign=function(e,t){var r=this;return e&&t.name?o.createElement("div",{className:e},o.createElement("a",{href:t.content,onClick:function(e){r.question.doDownloadFile(e,t)},title:t.name,download:t.name,style:{width:this.question.imageWidth}},t.name)):null},t.prototype.renderPreview=function(){var e=this;if(!this.question.previewValue||!this.question.previewValue.length)return null;var t=this.question.previewValue.map((function(t,r){return t?o.createElement("span",{key:e.question.inputId+"_"+r,className:e.question.cssClasses.preview,style:{display:e.question.isPreviewVisible(r)?void 0:"none"}},e.renderFileSign(e.question.cssClasses.fileSign,t),o.createElement("div",{className:e.question.cssClasses.imageWrapper},e.question.canPreviewImage(t)?o.createElement("img",{src:t.content,style:{height:e.question.imageHeight,width:e.question.imageWidth},alt:"File preview"}):e.question.cssClasses.defaultImage?o.createElement(s.SvgIcon,{iconName:e.question.cssClasses.defaultImageIconId,size:"auto",className:e.question.cssClasses.defaultImage}):null,t.name&&!e.question.isReadOnly?o.createElement("div",{className:e.question.cssClasses.removeFileButton,onClick:function(){return e.question.doRemoveFile(t)}},o.createElement("span",{className:e.question.cssClasses.removeFile},e.question.removeFileCaption),e.question.cssClasses.removeFileSvgIconId?o.createElement(s.SvgIcon,{title:e.question.removeFileCaption,iconName:e.question.cssClasses.removeFileSvgIconId,size:"auto",className:e.question.cssClasses.removeFileSvg}):null):null),e.renderFileSign(e.question.cssClasses.fileSignBottom,t)):null}));return o.createElement("div",{className:this.question.cssClasses.fileList||void 0},t)},t}(a.SurveyQuestionElementBase);l.ReactQuestionFactory.Instance.registerQuestion("file",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_html.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionHtml",(function(){return l}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){this.question.locHtml.onChanged=function(){}},t.prototype.componentDidUpdate=function(e,t){this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){var e=this;this.question.locHtml.onChanged=function(){e.setState({changed:e.state&&e.state.changed?e.state.changed+1:1})}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.question.html},t.prototype.renderElement=function(){var e={__html:this.question.locHtml.renderedHtml};return o.createElement("div",{className:this.question.renderCssRoot,dangerouslySetInnerHTML:e})},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("html",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_matrix.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionMatrix",(function(){return u})),r.d(t,"SurveyQuestionMatrixRow",(function(){return c}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/reactsurveymodel.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.state={rowsChanged:0},r}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.question){var t=this;this.question.visibleRowsChangedCallback=function(){t.setState({rowsChanged:t.state.rowsChanged+1})}}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question&&(this.question.visibleRowsChangedCallback=null)},t.prototype.renderElement=function(){for(var e=this,t=this.question.cssClasses,r=this.question.hasRows?o.createElement("td",null):null,n=[],i=0;i<this.question.visibleColumns.length;i++){var s=this.question.visibleColumns[i],a="column"+i,l=this.renderLocString(s.locText),u={};this.question.columnMinWidth&&(u.minWidth=this.question.columnMinWidth,u.width=this.question.columnMinWidth),n.push(o.createElement("th",{className:this.question.cssClasses.headerCell,style:u,key:a},this.wrapCell({column:s},l,"column-header")))}var p=[],d=this.question.visibleRows;for(i=0;i<d.length;i++){var h=d[i];a="row-"+h.name+"-"+i,p.push(o.createElement(c,{key:a,question:this.question,cssClasses:t,isDisplayMode:this.isDisplayMode,row:h,isFirst:0==i}))}var f=this.question.showHeader?o.createElement("thead",null,o.createElement("tr",null,r,n)):null;return o.createElement("div",{className:t.tableWrapper,ref:function(t){return e.setControl(t)}},o.createElement("fieldset",null,o.createElement("legend",{"aria-label":this.question.locTitle.renderedHtml}),o.createElement("table",{className:this.question.getTableCss()},f,o.createElement("tbody",null,p))))},t}(i.SurveyQuestionElementBase),c=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnChange=r.handleOnChange.bind(r),r}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),t.prototype.handleOnChange=function(e){this.row.value=e.target.value,this.setState({value:this.row.value})},t.prototype.wrapCell=function(e,t,r){if(!r)return t;var n=this.question.survey,o=null;return n&&(o=a.ReactSurveyElementsWrapper.wrapMatrixCell(n,t,e,r)),null!=o?o:t},t.prototype.canRender=function(){return!!this.row},t.prototype.renderElement=function(){var e=null;if(this.question.hasRows){var t=this.renderLocString(this.row.locText),r={};this.question.rowTitleWidth&&(r.minWidth=this.question.rowTitleWidth,r.width=this.question.rowTitleWidth),e=o.createElement("td",{style:r,className:this.question.cssClasses.rowTextCell},this.wrapCell({row:this.row},t,"row-header"))}var n=this.generateTds();return o.createElement("tr",{className:this.row.rowClasses||void 0},e,n)},t.prototype.generateTds=function(){for(var e=this,t=[],r=this.row,n=0;n<this.question.visibleColumns.length;n++){var i=null,s=this.question.visibleColumns[n],a="value"+n,l=r.value==s.value,u=this.question.getItemClass(r,s),c=this.question.inputId+"_"+r.name+"_"+n;if(this.question.hasCellText){var p=this.question.isInputReadOnly?null:function(t){return function(){return e.cellClick(r,t)}};i=o.createElement("td",{key:a,className:u,onClick:p?p(s):function(){}},this.renderLocString(this.question.getCellDisplayLocText(r.name,s)))}else i=o.createElement("td",{key:a,"data-responsive-title":s.locText.renderedHtml,className:this.question.cssClasses.cell},o.createElement("label",{className:u},o.createElement("input",{id:c,type:"radio",className:this.cssClasses.itemValue,name:r.fullName,value:s.value,disabled:this.isDisplayMode,checked:l,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":s.locText.renderedHtml,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),o.createElement("span",{className:this.question.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null),o.createElement("span",{style:this.question.isMobile?void 0:{display:"none"},className:this.question.cssClasses.cellResponsiveTitle},this.renderLocString(s.locText))));t.push(i)}return t},t.prototype.cellClick=function(e,t){e.value=t.value,this.setState({value:this.row.value})},t}(i.ReactSurveyElement);s.ReactQuestionFactory.Instance.registerQuestion("matrix",(function(e){return o.createElement(u,e)}))},"./src/react/reactquestion_matrixdropdown.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionMatrixDropdown",(function(){return l}));var n,o=r("react"),i=r("./src/react/reactquestion_matrixdropdownbase.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t}(i.SurveyQuestionMatrixDropdownBase);s.ReactQuestionFactory.Instance.registerQuestion("matrixdropdown",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_matrixdropdownbase.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionMatrixDropdownBase",(function(){return g})),r.d(t,"SurveyQuestionMatrixDropdownCell",(function(){return v}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion.tsx"),a=r("./src/react/reactquestion_checkbox.tsx"),l=r("./src/react/reactquestion_radiogroup.tsx"),u=r("./src/react/panel.tsx"),c=r("./src/react/components/action-bar/action-bar.tsx"),p=r("./src/react/components/matrix/row.tsx"),d=r("./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx"),h=r("./src/react/reactquestion_comment.tsx"),f=r("./src/react/element-factory.tsx"),m=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),g=function(e){function t(t){var r=e.call(this,t)||this;return r.question.renderedTable,r.state=r.getState(),r}return m(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return void 0===e&&(e=null),{rowCounter:e?e.rowCounter+1:0}},t.prototype.updateStateOnCallback=function(){this.isRendering||this.setState(this.getState(this.state))},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.question.visibleRowsChangedCallback=function(){t.updateStateOnCallback()},this.question.onRenderedTableResetCallback=function(){t.question.renderedTable.renderedRowsChangedCallback=function(){t.updateStateOnCallback()},t.updateStateOnCallback()},this.question.renderedTable.renderedRowsChangedCallback=function(){t.updateStateOnCallback()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.visibleRowsChangedCallback=function(){},this.question.onRenderedTableResetCallback=function(){},this.question.renderedTable.renderedRowsChangedCallback=function(){}},t.prototype.renderElement=function(){return this.renderTableDiv()},t.prototype.renderTableDiv=function(){var e=this,t=this.renderHeader(),r=this.renderFooter(),n=this.renderRows(),i=this.question.showHorizontalScroll?{overflowX:"scroll"}:{};return o.createElement("div",{style:i,className:this.question.cssClasses.tableWrapper,ref:function(t){return e.setControl(t)}},o.createElement("table",{className:this.question.getTableCss()},t,n,r))},t.prototype.renderHeader=function(){var e=this.question.renderedTable;if(!e.showHeader)return null;for(var t=[],r=e.headerRow.cells,n=0;n<r.length;n++){var i=r[n],s="column"+n,a={};i.width&&(a.width=i.width),i.minWidth&&(a.minWidth=i.minWidth);var l=this.renderCellContent(i,"column-header",{}),u=i.hasTitle?o.createElement("th",{className:i.className,key:s,style:a}," ",l," "):o.createElement("td",{className:i.className,key:s,style:a});t.push(u)}return o.createElement("thead",null,o.createElement("tr",null,t))},t.prototype.renderFooter=function(){var e=this.question.renderedTable;if(!e.showFooter)return null;var t=this.renderRow("footer",e.footerRow,this.question.cssClasses,"row-footer");return o.createElement("tfoot",null,t)},t.prototype.renderRows=function(){for(var e=this.question.cssClasses,t=[],r=this.question.renderedTable.rows,n=0;n<r.length;n++)t.push(this.renderRow(r[n].id,r[n],e));return o.createElement("tbody",null,t)},t.prototype.renderRow=function(e,t,r,n){for(var i=[],s=t.cells,a=0;a<s.length;a++)i.push(this.renderCell(s[a],a,r,n));var l="row"+e;return o.createElement(o.Fragment,{key:l},o.createElement(p.MatrixRow,{model:t,parentMatrix:this.question},i))},t.prototype.renderCell=function(e,t,r,n){var i="cell"+t;if(e.hasQuestion)return o.createElement(v,{key:i,cssClasses:r,cell:e,creator:this.creator,reason:n});var s=n;s||(s=e.hasTitle?"row-header":"");var a=this.renderCellContent(e,s,r),l=null;return(e.width||e.minWidth)&&(l={},e.width&&(l.width=e.width),e.minWidth&&(l.minWidth=e.minWidth)),o.createElement("td",{className:e.className,key:i,style:l,colSpan:e.colSpans,"data-responsive-title":e.headers,title:e.getTitle()},a)},t.prototype.renderCellContent=function(e,t,r){var n=null,i=null;if((e.width||e.minWidth)&&(i={},e.width&&(i.width=e.width),e.minWidth&&(i.minWidth=e.minWidth)),e.hasTitle){t="row-header";var s=this.renderLocString(e.locTitle),a=e.column?o.createElement(y,{column:e.column,question:this.question}):null;n=o.createElement(o.Fragment,null,s,a)}if(e.isDragHandlerCell&&(n=o.createElement(o.Fragment,null,o.createElement(d.SurveyQuestionMatrixDynamicDragDropIcon,{item:{data:{row:e.row,question:this.question}}}))),e.isActionsCell&&(n=f.ReactElementFactory.Instance.createElement("sv-matrixdynamic-actions-cell",{question:this.question,cssClasses:r,cell:e,model:e.item.getData()})),e.hasPanel&&(n=o.createElement(u.SurveyPanel,{key:e.panel.id,element:e.panel,survey:this.question.survey,cssClasses:r,isDisplayMode:this.isDisplayMode,creator:this.creator})),!n)return null;var l=o.createElement(o.Fragment,null,n);return this.wrapCell(e,l,t)},t}(i.SurveyQuestionElementBase),b=function(e){function t(t){return e.call(this,t)||this}return m(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement(c.SurveyActionBar,{model:this.model,handleClick:!1})},t}(i.ReactSurveyElement);f.ReactElementFactory.Instance.registerElement("sv-matrixdynamic-actions-cell",(function(e){return o.createElement(b,e)}));var y=function(e){function t(t){return e.call(this,t)||this}return m(t,e),Object.defineProperty(t.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.column},t.prototype.renderElement=function(){return this.column.isRenderedRequired?o.createElement(o.Fragment,null,o.createElement("span",{className:this.question.cssClasses.cellRequiredText},this.column.requiredText)):null},t}(i.ReactSurveyElement),v=function(e){function t(t){return e.call(this,t)||this}return m(t,e),Object.defineProperty(t.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemCss",{get:function(){return this.cell?this.cell.className:""},enumerable:!1,configurable:!0}),t.prototype.getQuestion=function(){return e.prototype.getQuestion.call(this)||(this.cell?this.cell.question:null)},t.prototype.doAfterRender=function(){var e=this.cellRef.current;if(e&&this.cell&&this.question&&this.question.survey&&"r"!==e.getAttribute("data-rendered")){e.setAttribute("data-rendered","r");var t={cell:this.cell,cellQuestion:this.question,htmlElement:e,row:this.cell.row,column:this.cell.cell.column};this.question.survey.matrixAfterCellRender(this.question,t)}},t.prototype.getShowErrors=function(){return this.question.isVisible&&(!this.cell.isChoice||this.cell.isFirstChoice)},t.prototype.getCellStyle=function(){var t=e.prototype.getCellStyle.call(this);return(this.cell.width||this.cell.minWidth)&&(t||(t={}),this.cell.width&&(t.width=this.cell.width),this.cell.minWidth&&(t.minWidth=this.cell.minWidth)),t},t.prototype.getHeaderText=function(){return this.cell.headers},t.prototype.renderQuestion=function(){return this.cell.isChoice?this.cell.isOtherChoice?this.renderOtherComment():this.cell.isCheckbox?this.renderCellCheckboxButton():this.renderCellRadiogroupButton():s.SurveyQuestion.renderQuestionBody(this.creator,this.question)},t.prototype.renderOtherComment=function(){var e=this.cell.question,t=e.cssClasses||{};return o.createElement(h.SurveyQuestionOtherValueItem,{question:e,cssClasses:t,otherCss:t.other,isDisplayMode:e.isInputReadOnly})},t.prototype.renderCellCheckboxButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return o.createElement(a.SurveyQuestionCheckboxItem,{key:e,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,isFirst:this.cell.isFirstChoice,index:this.cell.choiceIndex.toString(),hideCaption:!0})},t.prototype.renderCellRadiogroupButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return o.createElement(l.SurveyQuestionRadioItem,{key:e,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,index:this.cell.choiceIndex.toString(),isChecked:this.cell.question.value===this.cell.item.value,isDisabled:this.cell.question.isReadOnly||!this.cell.item.isEnabled,hideCaption:!0})},t}(s.SurveyQuestionAndErrorsCell)},"./src/react/reactquestion_matrixdynamic.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionMatrixDynamic",(function(){return c})),r.d(t,"SurveyQuestionMatrixDynamicAddButton",(function(){return p}));var n,o=r("react"),i=r("./src/react/reactquestion_factory.tsx"),s=r("./src/react/reactquestion_matrixdropdownbase.tsx"),a=r("./src/react/element-factory.tsx"),l=r("./src/react/reactquestion_element.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnRowAddClick=r.handleOnRowAddClick.bind(r),r}return u(t,e),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.handleOnRowAddClick=function(e){this.matrix.addRowUI()},t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.renderedTable.showTable?this.renderTableDiv():this.renderNoRowsContent(e);return o.createElement("div",null,this.renderAddRowButtonOnTop(e),t,this.renderAddRowButtonOnBottom(e))},t.prototype.renderAddRowButtonOnTop=function(e){return this.matrix.renderedTable.showAddRowOnTop?this.renderAddRowButton(e):null},t.prototype.renderAddRowButtonOnBottom=function(e){return this.matrix.renderedTable.showAddRowOnBottom?this.renderAddRowButton(e):null},t.prototype.renderNoRowsContent=function(e){var t=this.renderLocString(this.matrix.locEmptyRowsText),r=o.createElement("div",{className:e.emptyRowsText},t),n=this.renderAddRowButton(e,!0);return o.createElement("div",{className:e.emptyRowsSection},r,n)},t.prototype.renderAddRowButton=function(e,t){return void 0===t&&(t=!1),a.ReactElementFactory.Instance.createElement("sv-matrixdynamic-add-btn",{question:this.question,cssClasses:e,isEmptySection:t})},t}(s.SurveyQuestionMatrixDropdownBase);i.ReactQuestionFactory.Instance.registerQuestion("matrixdynamic",(function(e){return o.createElement(c,e)}));var p=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnRowAddClick=r.handleOnRowAddClick.bind(r),r}return u(t,e),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.handleOnRowAddClick=function(e){this.matrix.addRowUI()},t.prototype.renderElement=function(){var e=this.renderLocString(this.matrix.locAddRowText),t=o.createElement("button",{className:this.matrix.getAddRowButtonCss(this.props.isEmptySection),type:"button",disabled:this.matrix.isInputReadOnly,onClick:this.matrix.isDesignMode?void 0:this.handleOnRowAddClick},e,o.createElement("span",{className:this.props.cssClasses.iconAdd}));return this.props.isEmptySection?t:o.createElement("div",{className:this.props.cssClasses.footer},t)},t}(l.ReactSurveyElement);a.ReactElementFactory.Instance.registerElement("sv-matrixdynamic-add-btn",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_multipletext.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionMultipleText",(function(){return c})),r.d(t,"SurveyMultipleTextItem",(function(){return p})),r.d(t,"SurveyMultipleTextItemEditor",(function(){return d}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion.tsx"),a=r("./src/react/reactquestion_factory.tsx"),l=r("./src/react/components/title/title-content.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){for(var e=this.question.cssClasses,t=this.question.getRows(),r=[],n=0;n<t.length;n++)r.push(this.renderRow(n,t[n],e));return o.createElement("table",{className:e.root},o.createElement("tbody",null,r))},t.prototype.renderRow=function(e,t,r){for(var n="item"+e,i=[],s=0;s<t.length;s++){var a=t[s];i.push(o.createElement("td",{key:"item"+s,className:this.question.cssClasses.cell},o.createElement(p,{question:this.question,item:a,creator:this.creator,cssClasses:r})))}return o.createElement("tr",{key:n,className:r.row},i)},t}(i.SurveyQuestionElementBase),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElements=function(){return[this.item,this.item.editor]},Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.item,t=this.cssClasses;return o.createElement("label",{className:this.question.getItemLabelCss(e)},o.createElement("span",{className:t.itemTitle},o.createElement(l.TitleContent,{element:e.editor,cssClasses:e.editor.cssClasses})),o.createElement(d,{cssClasses:t,itemCss:this.question.getItemCss(),question:e.editor,creator:this.creator}),this.renderItemTooltipError(e,t))},t.prototype.renderItemTooltipError=function(e,t){return this.item.editor.isErrorsModeTooltip?o.createElement(s.SurveyElementErrors,{element:e.editor,cssClasses:t,creator:this.creator,location:"tooltip",id:e.editor.id+"_errors"}):null},t}(i.ReactSurveyElement),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.renderElement=function(){return o.createElement("div",{className:this.itemCss},this.renderContent())},t}(s.SurveyQuestionAndErrorsWrapped);a.ReactQuestionFactory.Instance.registerQuestion("multipletext",(function(e){return o.createElement(c,e)}))},"./src/react/reactquestion_paneldynamic.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionPanelDynamic",(function(){return f})),r.d(t,"SurveyQuestionPanelDynamicItem",(function(){return m}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/panel.tsx"),a=r("./src/react/reactquestion_factory.tsx"),l=r("./src/react/components/action-bar/action-bar.tsx"),u=r("./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx"),c=r("./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx"),p=r("./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx"),d=r("./src/react/element-factory.tsx"),h=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(e){function t(t){return e.call(this,t)||this}return h(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.setState({panelCounter:0});var t=this;this.question.panelCountChangedCallback=function(){t.updateQuestionRendering()},this.question.currentIndexChangedCallback=function(){t.updateQuestionRendering()},this.question.renderModeChangedCallback=function(){t.updateQuestionRendering()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.panelCountChangedCallback=function(){},this.question.currentIndexChangedCallback=function(){},this.question.renderModeChangedCallback=function(){}},t.prototype.updateQuestionRendering=function(){this.setState({panelCounter:this.state?this.state.panelCounter+1:1})},t.prototype.renderElement=function(){var e=[];if(this.question.isRenderModeList)for(var t=0;t<this.question.panels.length;t++){var r=this.question.panels[t];e.push(o.createElement(m,{key:r.id,element:r,question:this.question,index:t,cssClasses:this.question.cssClasses,isDisplayMode:this.isDisplayMode,creator:this.creator}))}else null!=this.question.currentPanel&&(r=this.question.currentPanel,e.push(o.createElement(m,{key:this.question.currentIndex,element:r,question:this.question,index:this.question.currentIndex,cssClasses:this.question.cssClasses,isDisplayMode:this.isDisplayMode,creator:this.creator})));var n=this.question.isRenderModeList&&this.question.showLegacyNavigation?this.renderAddRowButton():null,i=this.question.isProgressTopShowing?this.renderNavigator():null,s=this.question.isProgressBottomShowing?this.renderNavigator():null,a=this.renderNavigatorV2(),l=this.renderPlaceholder();return o.createElement("div",{className:this.question.cssClasses.root},l,i,e,s,n,a)},t.prototype.renderNavigator=function(){if(!this.question.showLegacyNavigation)return this.question.isRangeShowing&&this.question.isProgressTopShowing?this.renderRange():null;var e=this.question.isRangeShowing?this.renderRange():null,t=this.rendrerPrevButton(),r=this.rendrerNextButton(),n=this.renderAddRowButton(),i=this.question.isProgressTopShowing?this.question.cssClasses.progressTop:this.question.cssClasses.progressBottom;return o.createElement("div",{className:i},o.createElement("div",{style:{clear:"both"}},o.createElement("div",{className:this.question.cssClasses.progressContainer},t,e,r),n,this.renderProgressText()))},t.prototype.renderProgressText=function(){return o.createElement(p.SurveyQuestionPanelDynamicProgressText,{data:{question:this.question}})},t.prototype.rendrerPrevButton=function(){return o.createElement(c.SurveyQuestionPanelDynamicPrevButton,{data:{question:this.question}})},t.prototype.rendrerNextButton=function(){return o.createElement(u.SurveyQuestionPanelDynamicNextButton,{data:{question:this.question}})},t.prototype.renderRange=function(){return o.createElement("div",{className:this.question.cssClasses.progress},o.createElement("div",{className:this.question.cssClasses.progressBar,style:{width:this.question.progress},role:"progressbar"}))},t.prototype.renderAddRowButton=function(){return d.ReactElementFactory.Instance.createElement("sv-paneldynamic-add-btn",{data:{question:this.question}})},t.prototype.renderNavigatorV2=function(){if(!this.question.showNavigation)return null;var e=this.question.isRangeShowing&&this.question.isProgressBottomShowing?this.renderRange():null;return o.createElement("div",{className:this.question.cssClasses.footer},o.createElement("hr",{className:this.question.cssClasses.separator}),e,this.question.footerToolbar.visibleActions.length?o.createElement("div",{className:this.question.cssClasses.footerButtonsContainer},o.createElement(l.SurveyActionBar,{model:this.question.footerToolbar})):null)},t.prototype.renderPlaceholder=function(){return this.question.getShowNoEntriesPlaceholder()?o.createElement("div",{className:this.question.cssClasses.noEntriesPlaceholder},o.createElement("span",null,this.renderLocString(this.question.locNoEntriesText)),this.renderAddRowButton()):null},t}(i.SurveyQuestionElementBase),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(){return this.question?this.question.survey:null},t.prototype.getCss=function(){var e=this.getSurvey();return e?e.getCss():{}},t.prototype.render=function(){var t=e.prototype.render.call(this),r=this.renderButton(),n=this.question.showSeparator(this.index)?o.createElement("hr",{className:this.question.cssClasses.separator}):null;return o.createElement(o.Fragment,null,o.createElement("div",{className:this.question.getPanelWrapperCss()},t,r),n)},t.prototype.renderButton=function(){return"right"!==this.question.panelRemoveButtonLocation||!this.question.canRemovePanel||this.question.isRenderModeList&&this.panel.isCollapsed?null:d.ReactElementFactory.Instance.createElement("sv-paneldynamic-remove-btn",{data:{question:this.question,panel:this.panel}})},t}(s.SurveyPanel);a.ReactQuestionFactory.Instance.registerQuestion("paneldynamic",(function(e){return o.createElement(f,e)}))},"./src/react/reactquestion_radiogroup.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionRadiogroup",(function(){return p})),r.d(t,"SurveyQuestionRadioItem",(function(){return d}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_comment.tsx"),a=r("./src/react/reactquestion_factory.tsx"),l=r("./src/react/reactsurveymodel.tsx"),u=r("./src/react/element-factory.tsx"),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,r=null;return this.question.showClearButtonInContent&&(r=o.createElement("div",null,o.createElement("input",{type:"button",className:this.question.cssClasses.clearButton,onClick:function(){return e.question.clearValue()},value:this.question.clearButtonCaption}))),o.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),role:"presentation",ref:function(t){return e.setControl(t)}},this.question.hasColumns?this.getColumnedBody(t):this.getBody(t),this.getFooter(),this.question.isOtherSelected?this.renderOther(t):null,r)},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map((function(t,r){return e.renderItem("item_f"+r,t,!1,e.question.cssClasses)}))},t.prototype.getColumnedBody=function(e){return o.createElement("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var t=this,r=this.getStateValue();return this.question.columns.map((function(n,i){var s=n.map((function(n,o){return t.renderItem("item"+i+o,n,r,e,""+i+o)}));return o.createElement("div",{key:"column"+i,className:t.question.getColumnClass(),role:"presentation"},s)}))},t.prototype.getBody=function(e){return this.question.blockedRow?o.createElement("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):o.createElement(o.Fragment,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,t){for(var r=[],n=this.getStateValue(),o=0;o<t.length;o++){var i=t[o],s=this.renderItem("item"+o,i,n,e,""+o);r.push(s)}return r},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(e){return o.createElement("div",{className:this.question.getCommentAreaCss(!0)},o.createElement(s.SurveyQuestionOtherValueItem,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,t,r,n,o){var i=u.ReactElementFactory.Instance.createElement(this.question.itemComponent,{key:e,question:this.question,cssClasses:n,isDisplayMode:this.isDisplayMode,item:t,textStyle:this.textStyle,index:o,isChecked:r===t.value}),s=this.question.survey,a=null;return s&&(a=l.ReactSurveyElementsWrapper.wrapItemValue(s,i,this.question,t)),null!=a?a:i},t.prototype.getStateValue=function(){return this.question.isEmpty()?"":this.question.renderedValue},t}(i.SurveyQuestionElementBase),d=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnChange=r.handleOnChange.bind(r),r}return c(t,e),t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isChecked",{get:function(){return this.props.isChecked},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),t.prototype.shouldComponentUpdate=function(t,r){return!(!e.prototype.shouldComponentUpdate.call(this,t,r)||!this.question||this.question.customWidget&&!this.question.customWidgetData.isNeedRender&&!this.question.customWidget.widgetJson.isDefaultRender&&!this.question.customWidget.widgetJson.render)},t.prototype.handleOnChange=function(e){this.question.clickItemHandler(this.item)},t.prototype.canRender=function(){return!!this.question&&!!this.item},t.prototype.renderElement=function(){var e=this.question.getItemClass(this.item),t=this.question.getLabelClass(this.item),r=this.question.getControlLabelClass(this.item),n=this.hideCaption?null:o.createElement("span",{className:r},this.renderLocString(this.item.locText,this.textStyle));return o.createElement("div",{className:e,role:"presentation"},o.createElement("label",{className:t,"aria-label":this.question.getAriaItemLabel(this.item)},o.createElement("input",{"aria-describedby":this.question.ariaDescribedBy,className:this.cssClasses.itemControl,id:this.question.getItemId(this.item),type:"radio",name:this.question.questionName,checked:this.isChecked,value:this.item.value,disabled:!this.question.getItemEnabled(this.item),onChange:this.handleOnChange}),this.cssClasses.materialDecorator?o.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,n))},t}(i.ReactSurveyElement);u.ReactElementFactory.Instance.registerElement("survey-radiogroup-item",(function(e){return o.createElement(d,e)})),a.ReactQuestionFactory.Instance.registerQuestion("radiogroup",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_ranking.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionRanking",(function(){return u})),r.d(t,"SurveyQuestionRankingItem",(function(){return c}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/reactsurveymodel.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this;return o.createElement("div",{className:this.question.rootClass,ref:function(t){return e.setControl(t)}},this.getItems())},t.prototype.getItems=function(){for(var e=this,t=[],r=this.question.rankingChoices,n=function(n){var i=r[n];t.push(o.renderItem(i,n,(function(t){e.question.handleKeydown.call(e.question,t,i)}),(function(t){t.persist(),e.question.handlePointerDown.call(e.question,t,i,t.currentTarget)}),o.question.cssClasses,o.question.getItemClass(i),o.question))},o=this,i=0;i<r.length;i++)n(i);return t},t.prototype.renderItem=function(e,t,r,n,i,s,l){var u=e.value+"-"+t+"-item",p=this.renderLocString(e.locText),d=t,h=this.question.getNumberByIndex(t),f=this.question.getItemTabIndex(e),m=o.createElement(c,{key:u,text:p,index:d,indexText:h,itemTabIndex:f,handleKeydown:r,handlePointerDown:n,cssClasses:i,itemClass:s,question:l}),g=this.question.survey,b=null;return g&&(b=a.ReactSurveyElementsWrapper.wrapItemValue(g,m,this.question,e)),null!=b?b:m},t}(i.SurveyQuestionElementBase),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"text",{get:function(){return this.props.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indexText",{get:function(){return this.props.indexText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handleKeydown",{get:function(){return this.props.handleKeydown},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handlePointerDown",{get:function(){return this.props.handlePointerDown},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemClass",{get:function(){return this.props.itemClass},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemTabIndex",{get:function(){return this.props.itemTabIndex},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement("div",{tabIndex:this.itemTabIndex,className:this.itemClass,onKeyDown:this.handleKeydown,onPointerDown:this.handlePointerDown,"data-sv-drop-target-ranking-item":this.index},o.createElement("div",{tabIndex:-1,style:{outline:"none"}},o.createElement("div",{className:this.cssClasses.itemGhostNode}),o.createElement("div",{className:this.cssClasses.itemContent},o.createElement("div",{className:this.cssClasses.itemIconContainer},o.createElement("svg",{width:"10",height:"16",viewBox:"0 0 10 16",className:this.question.getIconHoverCss(),xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M6 2C6 0.9 6.9 0 8 0C9.1 0 10 0.9 10 2C10 3.1 9.1 4 8 4C6.9 4 6 3.1 6 2ZM2 0C0.9 0 0 0.9 0 2C0 3.1 0.9 4 2 4C3.1 4 4 3.1 4 2C4 0.9 3.1 0 2 0ZM8 6C6.9 6 6 6.9 6 8C6 9.1 6.9 10 8 10C9.1 10 10 9.1 10 8C10 6.9 9.1 6 8 6ZM2 6C0.9 6 0 6.9 0 8C0 9.1 0.9 10 2 10C3.1 10 4 9.1 4 8C4 6.9 3.1 6 2 6ZM8 12C6.9 12 6 12.9 6 14C6 15.1 6.9 16 8 16C9.1 16 10 15.1 10 14C10 12.9 9.1 12 8 12ZM2 12C0.9 12 0 12.9 0 14C0 15.1 0.9 16 2 16C3.1 16 4 15.1 4 14C4 12.9 3.1 12 2 12Z"})),o.createElement("svg",{width:"10",height:"24",viewBox:"0 0 10 24",className:this.question.getIconFocusCss(),xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M10 5L5 0L0 5H4V9H6V5H10Z"}),o.createElement("path",{d:"M6 19V15H4V19H0L5 24L10 19H6Z"}))),o.createElement("div",{className:this.question.getItemIndexClasses()},this.indexText),o.createElement("div",{className:this.cssClasses.controlLabel},this.text))))},t}(i.ReactSurveyElement);s.ReactQuestionFactory.Instance.registerQuestion("ranking",(function(e){return o.createElement(u,e)}))},"./src/react/reactquestion_rating.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionRating",(function(){return u}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/element-factory.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnClick=r.handleOnClick.bind(r),r}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.handleOnClick=function(e){this.question.setValueFromClick(e.target.value),this.setState({value:this.question.value})},t.prototype.renderItem=function(e,t){return a.ReactElementFactory.Instance.createElement(this.question.itemComponentName,{question:this.question,item:e,index:t,key:"value"+t,handleOnClick:this.handleOnClick,isDisplayMode:this.isDisplayMode})},t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,r=this.question.minRateDescription?this.renderLocString(this.question.locMinRateDescription):null,n=this.question.maxRateDescription?this.renderLocString(this.question.locMaxRateDescription):null;return o.createElement("div",{className:this.question.ratingRootCss,ref:function(t){return e.setControl(t)}},o.createElement("fieldset",{role:"radiogroup"},o.createElement("legend",{role:"presentation",className:"sv-hidden"}),this.question.hasMinLabel?o.createElement("span",{className:t.minText},r):null,this.question.renderedRateItems.map((function(t,r){return e.renderItem(t,r)})),this.question.hasMaxLabel?o.createElement("span",{className:t.maxText},n):null))},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("rating",(function(e){return o.createElement(u,e)}))},"./src/react/reactquestion_tagbox.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionTagbox",(function(){return c}));var n,o=r("react"),i=r("./src/react/reactquestion_factory.tsx"),s=r("./src/react/dropdown-base.tsx"),a=r("./src/react/tagbox-item.tsx"),l=r("./src/react/tagbox-filter.tsx"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.renderItem=function(e,t){return o.createElement(a.SurveyQuestionTagboxItem,{key:e,question:this.question,item:t})},t.prototype.renderInput=function(e){var t=this,r=e,n=this.question.selectedChoices.map((function(e,r){return t.renderItem("item"+r,e)}));return o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.inputReadOnly?void 0:0,onClick:this.click,disabled:this.question.isInputReadOnly,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant},o.createElement("div",{className:this.question.cssClasses.controlValue},n,o.createElement(l.TagboxFilterString,{model:r,question:this.question})),this.createClearButton())},t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.isOtherSelected?this.renderOther(e):null,r=this.renderSelect(e);return o.createElement("div",{className:this.question.renderCssRoot},r,t)},t}(s.SurveyQuestionDropdownBase);i.ReactQuestionFactory.Instance.registerQuestion("tagbox",(function(e){return o.createElement(c,e)}))},"./src/react/reactquestion_text.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionText",(function(){return u}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/components/character-counter.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.renderInput=function(){var e=this,t=this.question.getControlClass(),r=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return o.createElement("div",null,this.question.value);var n=this.question.getMaxLength()?o.createElement(a.CharacterCounterComponent,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return o.createElement(o.Fragment,null,o.createElement("input",{id:this.question.inputId,disabled:this.isDisplayMode,className:t,type:this.question.inputType,ref:function(t){return e.setControl(t)},style:this.question.inputStyle,maxLength:this.question.getMaxLength(),min:this.question.renderedMin,max:this.question.renderedMax,step:this.question.renderedStep,size:this.question.inputSize,placeholder:r,list:this.question.dataListId,autoComplete:this.question.autocomplete,onBlur:this.question.onBlur,onFocus:this.question.onFocus,onChange:this.question.onChange,onKeyUp:this.question.onKeyUp,onKeyDown:this.question.onKeyDown,onCompositionUpdate:function(t){return e.question.onCompositionUpdate(t.nativeEvent)},"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-describedby":this.question.a11y_input_ariaDescribedBy}),n)},t.prototype.renderElement=function(){return this.question.dataListId?o.createElement("div",null,this.renderInput(),this.renderDataList()):this.renderInput()},t.prototype.renderDataList=function(){if(!this.question.dataListId)return null;var e=this.question.dataList;if(0==e.length)return null;for(var t=[],r=0;r<e.length;r++)t.push(o.createElement("option",{key:"item"+r,value:e[r]}));return o.createElement("datalist",{id:this.question.dataListId},t)},t}(i.SurveyQuestionUncontrolledElement);s.ReactQuestionFactory.Instance.registerQuestion("text",(function(e){return o.createElement(u,e)}))},"./src/react/reactsurveymodel.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"ReactSurveyElementsWrapper",(function(){return i}));var n=r("survey-core"),o=r("./src/react/element-factory.tsx"),i=function(){function e(){}return e.wrapRow=function(e,t,r){var n=e.getRowWrapperComponentName(r),i=e.getRowWrapperComponentData(r);return o.ReactElementFactory.Instance.createElement(n,{element:t,row:r,componentData:i})},e.wrapElement=function(e,t,r){var n=e.getElementWrapperComponentName(r),i=e.getElementWrapperComponentData(r);return o.ReactElementFactory.Instance.createElement(n,{element:t,question:r,componentData:i})},e.wrapQuestionContent=function(e,t,r){var n=e.getQuestionContentWrapperComponentName(r),i=e.getElementWrapperComponentData(r);return o.ReactElementFactory.Instance.createElement(n,{element:t,question:r,componentData:i})},e.wrapItemValue=function(e,t,r,n){var i=e.getItemValueWrapperComponentName(n,r),s=e.getItemValueWrapperComponentData(n,r);return o.ReactElementFactory.Instance.createElement(i,{key:null==t?void 0:t.key,element:t,question:r,item:n,componentData:s})},e.wrapMatrixCell=function(e,t,r,n){void 0===n&&(n="cell");var i=e.getElementWrapperComponentName(r,n),s=e.getElementWrapperComponentData(r,n);return o.ReactElementFactory.Instance.createElement(i,{element:t,cell:r,componentData:s})},e}();n.SurveyModel.platform="react"},"./src/react/reacttimerpanel.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyTimerPanel",(function(){return u}));var n,o=r("react"),i=r("./src/react/components/svg-icon/svg-icon.tsx"),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.circleLength=440,r}return l(t,e),t.prototype.getStateElement=function(){return this.timerModel},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return-this.timerModel.progress*this.circleLength},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(!this.timerModel.isRunning)return null;var e=o.createElement("div",{className:this.timerModel.survey.getCss().timerRoot},this.timerModel.text);if(this.timerModel.showTimerAsClock){var t={strokeDasharray:this.circleLength,strokeDashoffset:this.progress},r=this.timerModel.showProgress?o.createElement(i.SvgIcon,{className:this.timerModel.getProgressCss(),style:t,iconName:"icon-timercircle",size:"auto"}):null;e=o.createElement("div",{className:this.timerModel.rootCss},r,o.createElement("div",{className:this.timerModel.textContainerCss},o.createElement("span",{className:this.timerModel.majorTextCss},this.timerModel.clockMajorText),this.timerModel.clockMinorText?o.createElement("span",{className:this.timerModel.minorTextCss},this.timerModel.clockMinorText):null))}return e},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-timerpanel",(function(e){return o.createElement(u,e)}))},"./src/react/row.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyRow",(function(){return u}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactsurveymodel.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.rootRef=o.createRef(),r.recalculateCss(),r}return l(t,e),t.prototype.recalculateCss=function(){this.row.visibleElements.map((function(e){return e.cssClasses}))},t.prototype.getStateElement=function(){return this.row},Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.row&&!!this.survey&&!!this.creator&&this.row.visible},t.prototype.renderElementContent=function(){var e=this,t=this.row.visibleElements.map((function(t,r){var n=e.createElement(t,r),i=t.cssClassesValue;return o.createElement("div",{className:i.questionWrapper,style:t.rootStyle,"data-key":n.key,key:n.key,onFocus:function(){var e=t;e&&!e.isDisposed&&e.isQuestion&&e.focusIn()}},e.row.isNeedRender?n:s.ReactElementFactory.Instance.createElement(t.skeletonComponentName,{element:t,css:e.css}))}));return o.createElement("div",{ref:this.rootRef,className:this.row.getRowCss()},t)},t.prototype.renderElement=function(){var e=this.survey,t=this.renderElementContent();return a.ReactSurveyElementsWrapper.wrapRow(e,t,this.row)||t},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this);var r=this.rootRef.current;if(r&&!this.row.isNeedRender){var n=r;setTimeout((function(){t.row.startLazyRendering(n)}),10)}},t.prototype.shouldComponentUpdate=function(t,r){return!!e.prototype.shouldComponentUpdate.call(this,t,r)&&(t.row!==this.row&&(t.row.isNeedRender=this.row.isNeedRender,this.stopLazyRendering()),this.recalculateCss(),!0)},t.prototype.stopLazyRendering=function(){this.row.stopLazyRendering(),this.row.isNeedRender=!this.row.isLazyRendering()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.stopLazyRendering()},t.prototype.createElement=function(e,t){var r=t?"-"+t:0,n=e.getType();return s.ReactElementFactory.Instance.isElementRegistered(n)||(n="question"),s.ReactElementFactory.Instance.createElement(n,{key:e.name+r,element:e,creator:this.creator,survey:this.survey,css:this.css})},t}(i.SurveyElementBase)},"./src/react/signaturepad.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionSignaturePad",(function(){return u}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/components/svg-icon/svg-icon.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.state={value:r.question.value},r}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,r=this.renderCleanButton();return o.createElement("div",{className:t.root,ref:function(t){return e.setControl(t)},style:{height:this.question.signatureHeight,width:this.question.signatureWidth}},o.createElement("div",{className:t.placeholder,style:{display:this.question.needShowPlaceholder()?"":"none"}},this.question.placeHolderText),o.createElement("div",null,o.createElement("canvas",{tabIndex:0})),r)},t.prototype.renderCleanButton=function(){var e=this;if(!this.question.canShowClearButton)return null;var t=this.question.cssClasses;return o.createElement("div",{className:t.controls},o.createElement("button",{type:"button",className:t.clearButton,title:this.question.clearButtonCaption,onClick:function(){return e.question.clearValue()}},this.question.cssClasses.clearButtonIconId?o.createElement(a.SvgIcon,{iconName:this.question.cssClasses.clearButtonIconId,size:"auto"}):o.createElement("span",null,"✖")))},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("signaturepad",(function(e){return o.createElement(u,e)}))},"./src/react/string-editor.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyLocStringEditor",(function(){return u}));var n,o=r("react"),i=r.n(o),s=r("survey-core"),a=r("./src/react/element-factory.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.onInput=function(e){r.locStr.text=e.target.innerText},r.onClick=function(e){e.preventDefault(),e.stopPropagation()},r.state={changed:0},r}return l(t,e),Object.defineProperty(t.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.locStr){var e=this;this.locStr.onChanged=function(){e.setState({changed:e.state.changed+1})}}},t.prototype.componentWillUnmount=function(){this.locStr&&(this.locStr.onChanged=function(){})},t.prototype.render=function(){if(!this.locStr)return null;if(this.locStr.hasHtml){var e={__html:this.locStr.renderedHtml};return i.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,dangerouslySetInnerHTML:e,onBlur:this.onInput,onClick:this.onClick})}return i.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,onBlur:this.onInput,onClick:this.onClick},this.locStr.renderedHtml)},t}(i.a.Component);a.ReactElementFactory.Instance.registerElement(s.LocalizableString.editableRenderer,(function(e){return i.a.createElement(u,e)}))},"./src/react/string-viewer.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyLocStringViewer",(function(){return u}));var n,o=r("react"),i=r.n(o),s=r("survey-core"),a=r("./src/react/element-factory.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.onChangedHandler=function(e,t){r.isRendering||r.setState({changed:r.state&&r.state.changed?r.state.changed+1:1})},r.rootRef=i.a.createRef(),r}return l(t,e),Object.defineProperty(t.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){this.locStr&&this.locStr.onStringChanged.remove(this.onChangedHandler)},t.prototype.componentDidUpdate=function(e,t){e.locStr&&e.locStr.onStringChanged.remove(this.onChangedHandler),this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){this.locStr&&this.locStr.onStringChanged.add(this.onChangedHandler)},t.prototype.render=function(){if(!this.locStr)return null;this.isRendering=!0;var e=this.renderString();return this.isRendering=!1,e},t.prototype.renderString=function(){if(this.locStr.hasHtml){var e={__html:this.locStr.renderedHtml};return i.a.createElement("span",{ref:this.rootRef,className:"sv-string-viewer",style:this.style,dangerouslySetInnerHTML:e})}return i.a.createElement("span",{ref:this.rootRef,className:"sv-string-viewer",style:this.style},this.locStr.renderedHtml)},t}(i.a.Component);a.ReactElementFactory.Instance.registerElement(s.LocalizableString.defaultRenderer,(function(e){return i.a.createElement(u,e)}))},"./src/react/tagbox-filter.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"TagboxFilterString",(function(){return u}));var n,o=r("react"),i=r("survey-core"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.updateDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.updateDomElement=function(){if(this.inputElement){var e=this.inputElement,t=this.model.inputStringRendered;i.Helpers.isTwoValueEquals(t,e.value)||(e.value=this.model.inputStringRendered)}},t.prototype.onChange=function(e){var t=i.settings.environment.root;e.target===t.activeElement&&(this.model.inputStringRendered=e.target.value)},t.prototype.keyhandler=function(e){this.model.inputKeyHandler(e)},t.prototype.onBlur=function(e){this.model.onBlur(e)},t.prototype.onFocus=function(e){this.model.onFocus(e)},t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this;return o.createElement("div",{className:this.question.cssClasses.hint},this.model.showHintPrefix?o.createElement("div",{className:this.question.cssClasses.hintPrefix},o.createElement("span",null,this.model.hintStringPrefix)):null,o.createElement("div",{className:this.question.cssClasses.hintSuffixWrapper},this.model.showHintString?o.createElement("div",{className:this.question.cssClasses.hintSuffix},o.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},this.model.inputStringRendered),o.createElement("span",null,this.model.hintStringSuffix)):null,o.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),inputMode:this.model.inputMode,ref:function(t){return e.inputElement=t},className:this.question.cssClasses.filterStringInput,disabled:this.question.isInputReadOnly,readOnly:!this.model.searchEnabled||void 0,size:this.model.inputStringRendered?void 0:1,role:this.model.filterStringEnabled?this.question.ariaRole:void 0,"aria-label":this.question.placeholder,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-controls":this.model.listElementId,"aria-activedescendant":this.model.ariaActivedescendant,placeholder:this.model.filterStringPlaceholder,onKeyDown:function(t){e.keyhandler(t)},onChange:function(t){e.onChange(t)},onBlur:function(t){e.onBlur(t)},onFocus:function(t){e.onFocus(t)}})))},t}(a.SurveyElementBase);s.ReactQuestionFactory.Instance.registerQuestion("sv-tagbox-filter",(function(e){return o.createElement(u,e)}))},"./src/react/tagbox-item.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionTagboxItem",(function(){return l}));var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/components/svg-icon/svg-icon.tsx"),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.item&&!!this.question},t.prototype.renderElement=function(){var e=this,t=this.renderLocString(this.item.locText);return o.createElement("div",{className:"sv-tagbox__item"},o.createElement("div",{className:"sv-tagbox__item-text"},t),o.createElement("div",{className:this.question.cssClasses.cleanItemButton,onClick:function(t){e.question.dropdownListModel.deselectItem(e.item.value),t.stopPropagation()}},o.createElement(s.SvgIcon,{className:this.question.cssClasses.cleanItemButtonSvg,iconName:this.question.cssClasses.cleanItemButtonIconId,size:"auto"})))},t}(i.ReactSurveyElement)},"./src/settings.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return o}));var n=globalThis.document,o={enterKeyAction:"default",comparator:{trimStrings:!0,caseSensitive:!1},expressionDisableConversionChar:"#",useLocalTimeZone:!0,get commentPrefix(){return o.commentSuffix},set commentPrefix(e){o.commentSuffix=e},commentSuffix:"-Comment",webserviceEncodeParameters:!0,useCachingForChoicesRestful:!0,get useCachingForChoicesRestfull(){return o.useCachingForChoicesRestful},set useCachingForChoicesRestfull(e){o.useCachingForChoicesRestful=e},surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey",itemValueSeparator:"|",itemValueAlwaysSerializeAsObject:!1,itemValueAlwaysSerializeText:!1,defaultLocaleName:"default",storeDuplicatedTranslations:!1,matrixDefaultRowName:"default",matrixDefaultCellType:"dropdown",matrixTotalValuePostFix:"-total",matrixMaximumRowCount:1e3,matrixMaxRowCountInCondition:1,panelDynamicMaxPanelCountInCondition:1,matrixRenderRemoveAsIcon:!0,panelMaximumPanelCount:100,ratingMaximumRateValueCount:20,tagboxCloseOnSelect:!1,disableOnGettingChoicesFromWeb:!1,serializeLocalizableStringAsObject:!1,allowShowEmptyTitleInDesignMode:!0,allowShowEmptyDescriptionInDesignMode:!0,executeCompleteTriggerOnValueChanged:!1,changeNavigationButtonsOnCompleteTrigger:!0,executeSkipTriggerOnValueChanged:!0,readOnlyCommentRenderMode:"textarea",readOnlyTextRenderMode:"input",confirmActionFunc:function(e){return confirm(e)},minWidth:"300px",maxWidth:"100%",maximumConditionRunCountOnValueChanged:10,setQuestionVisibleIndexForHiddenTitle:!1,setQuestionVisibleIndexForHiddenNumber:!1,lazyRowsRendering:!1,lazyRowsRenderingStartRow:3,notifications:{lifetime:2e3},showItemsInOrder:"default",noneItemValue:"none",supportedValidators:{question:["expression"],comment:["text","regex"],text:["numeric","text","regex","email"],checkbox:["answercount"],imagepicker:["answercount"]},minDate:"",maxDate:"",showModal:void 0,supportCreatorV2:!1,showDefaultItemsInCreatorV2:!0,customIcons:{},rankingDragHandleArea:"entireItem",environment:n?{root:n,_rootElement:n.body,get rootElement(){var e;return null!==(e=this._rootElement)&&void 0!==e?e:n.body},set rootElement(e){this._rootElement=e},_popupMountContainer:n.body,get popupMountContainer(){var e;return null!==(e=this._popupMountContainer)&&void 0!==e?e:n.body},set popupMountContainer(e){this._popupMountContainer=e},svgMountContainer:n.head,stylesSheetsMountContainer:n.head}:void 0,titleTags:{survey:"h3",page:"h4",panel:"h4",question:"h5"},questions:{inputTypes:["color","date","datetime-local","email","month","number","password","range","tel","text","time","url","week"],dataList:["","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","organization-title","username","new-password","current-password","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"]},matrix:{columnWidthsByType:{file:{minWidth:"240px"},comment:{minWidth:"200px"}},rateSize:"small"}}},"./src/utils/responsivity-manager.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ResponsivityManager",(function(){return s})),r.d(t,"VerticalResponsivityManager",(function(){return a}));var n,o=r("./src/utils/utils.ts"),i=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(){function e(e,t,r,n){var o=this;void 0===n&&(n=null),this.container=e,this.model=t,this.itemsSelector=r,this.dotsItemSize=n,this.resizeObserver=void 0,this.isInitialized=!1,this.minDimensionConst=56,this.separatorSize=17,this.separatorAddConst=1,this.paddingSizeConst=8,this.dotsSizeConst=48,this.recalcMinDimensionConst=!0,this.getComputedStyle=window.getComputedStyle.bind(window),this.model.updateCallback=function(e){e?o.isInitialized=!1:setTimeout((function(){o.process()}),1)},"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(e){return o.process()})),this.resizeObserver.observe(this.container.parentElement))}return e.prototype.getDimensions=function(e){return{scroll:e.scrollWidth,offset:e.offsetWidth}},e.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetWidth;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)),t},e.prototype.calcItemSize=function(e){return e.offsetWidth},e.prototype.calcMinDimension=function(e){var t=this.minDimensionConst;return e.iconSize&&this.recalcMinDimensionConst&&(t=2*e.iconSize+this.paddingSizeConst),e.canShrink?t+(e.needSeparator?this.separatorSize:0):e.maxDimension},e.prototype.calcItemsSizes=function(){var e=this,t=this.model.actions;this.container.querySelectorAll(this.itemsSelector).forEach((function(r,n){var o=t[n];e.calcActionDimensions(o,r)}))},e.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcMinDimension(e)},Object.defineProperty(e.prototype,"isContainerVisible",{get:function(){return Object(o.isContainerVisible)(this.container)},enumerable:!1,configurable:!0}),e.prototype.process=function(){var e;if(this.isContainerVisible&&!this.model.isResponsivenessDisabled){this.isInitialized||(this.model.setActionsMode("large"),this.calcItemsSizes(),this.isInitialized=!0);var t=this.dotsItemSize;if(!this.dotsItemSize){var r=null===(e=this.container)||void 0===e?void 0:e.querySelector(".sv-dots");t=r&&this.calcItemSize(r)||this.dotsSizeConst}this.model.fit(this.getAvailableSpace(),t)}},e.prototype.dispose=function(){this.model.updateCallback=void 0,this.resizeObserver&&this.resizeObserver.disconnect()},e}(),a=function(e){function t(t,r,n,o,i){void 0===i&&(i=40);var s=e.call(this,t,r,n,o)||this;return s.minDimensionConst=i,s.recalcMinDimensionConst=!1,s}return i(t,e),t.prototype.getDimensions=function(){return{scroll:this.container.scrollHeight,offset:this.container.offsetHeight}},t.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetHeight;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)),t},t.prototype.calcItemSize=function(e){return e.offsetHeight},t.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcItemSize(t)},t}(s)},"./src/utils/utils.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"unwrap",(function(){return y})),r.d(t,"getSize",(function(){return v})),r.d(t,"doKey2ClickBlur",(function(){return w})),r.d(t,"doKey2ClickUp",(function(){return C})),r.d(t,"doKey2ClickDown",(function(){return P})),r.d(t,"sanitizeEditableContent",(function(){return R})),r.d(t,"Logger",(function(){return j})),r.d(t,"mergeValues",(function(){return I})),r.d(t,"getElementWidth",(function(){return O})),r.d(t,"isContainerVisible",(function(){return T})),r.d(t,"classesToSelector",(function(){return E})),r.d(t,"compareVersions",(function(){return o})),r.d(t,"confirmAction",(function(){return i})),r.d(t,"detectIEOrEdge",(function(){return a})),r.d(t,"detectIEBrowser",(function(){return s})),r.d(t,"loadFileFromBase64",(function(){return l})),r.d(t,"isMobile",(function(){return u})),r.d(t,"isShadowDOM",(function(){return c})),r.d(t,"getElement",(function(){return p})),r.d(t,"isElementVisible",(function(){return d})),r.d(t,"findScrollableParent",(function(){return h})),r.d(t,"scrollElementByChildId",(function(){return f})),r.d(t,"navigateToUrl",(function(){return m})),r.d(t,"createSvg",(function(){return b})),r.d(t,"getIconNameFromProxy",(function(){return g})),r.d(t,"increaseHeightByContent",(function(){return _})),r.d(t,"getOriginalEvent",(function(){return S})),r.d(t,"preventDefaults",(function(){return V})),r.d(t,"findParentByClassNames",(function(){return k}));var n=r("./src/settings.ts");function o(e,t){for(var r=/(\.0+)+$/,n=e.replace(r,"").split("."),o=t.replace(r,"").split("."),i=Math.min(n.length,o.length),s=0;s<i;s++){var a=parseInt(n[s],10)-parseInt(o[s],10);if(a)return a}return n.length-o.length}function i(e){return n.settings&&n.settings.confirmActionFunc?n.settings.confirmActionFunc(e):confirm(e)}function s(){if("undefined"==typeof window)return!1;var e=window.navigator.userAgent,t=e.indexOf("MSIE "),r=e.indexOf("Trident/");return t>-1||r>-1}function a(){if("undefined"==typeof window)return!1;if(void 0===a.isIEOrEdge){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),r=e.indexOf("Trident/"),n=e.indexOf("Edge/");a.isIEOrEdge=n>0||r>0||t>0}return a.isIEOrEdge}function l(e,t){try{for(var r=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(r.length),i=new Uint8Array(o),s=0;s<r.length;s++)i[s]=r.charCodeAt(s);var a=new Blob([o],{type:n});"undefined"!=typeof window&&window.navigator&&window.navigator.msSaveBlob&&window.navigator.msSaveOrOpenBlob(a,t)}catch(e){}}function u(){return"undefined"!=typeof window&&void 0!==window.orientation}var c=function(e){return!!e&&!(!("host"in e)||!e.host)},p=function(e){var t=n.settings.environment.root;return"string"==typeof e?t.getElementById(e):e};function d(e,t){if(void 0===t&&(t=0),void 0===n.settings.environment)return!1;var r=n.settings.environment.root,o=c(r)?r.host.clientHeight:r.documentElement.clientHeight,i=e.getBoundingClientRect(),s=-t,a=Math.max(o,window.innerHeight)+t,l=i.top,u=i.bottom;return Math.max(s,l)<=Math.min(a,u)}function h(e){var t=n.settings.environment.root;return e?e.scrollHeight>e.clientHeight&&("scroll"===getComputedStyle(e).overflowY||"auto"===getComputedStyle(e).overflowY)||e.scrollWidth>e.clientWidth&&("scroll"===getComputedStyle(e).overflowX||"auto"===getComputedStyle(e).overflowX)?e:h(e.parentElement):c(t)?t.host:t.documentElement}function f(e){var t=n.settings.environment;if(t){var r=t.root.getElementById(e);if(r){var o=h(r);o&&o.dispatchEvent(new CustomEvent("scroll"))}}}function m(e){e&&"undefined"!=typeof window&&window.location&&(window.location.href=e)}function g(e){return e&&n.settings.customIcons[e]||e}function b(e,t,r,n,o,i){if(o){"auto"!==e&&(o.style.width=(e||t||16)+"px",o.style.height=(e||r||16)+"px");var s=o.childNodes[0],a=g(n);s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+a);var l=o.getElementsByTagName("title")[0];i?(l||(l=document.createElementNS("http://www.w3.org/2000/svg","title"),o.appendChild(l)),l.textContent=i):l&&o.removeChild(l)}}function y(e){return"function"!=typeof e?e:e()}function v(e){if("number"==typeof e)return e+"px";if(e&&"string"==typeof e&&e.length>0){var t=e[e.length-1];if(t>="0"&&t<="9"||"."==t)try{return parseFloat(e)+"px"}catch(e){}}return e}var x="sv-focused--by-key";function w(e){var t=e.target;t&&t.classList&&t.classList.remove(x)}function C(e,t){if(!e.target||"true"!==e.target.contentEditable){var r=e.target;if(r){var n=e.which||e.keyCode;if(9!==n){if(t){if(!t.__keyDownReceived)return;t.__keyDownReceived=!1}13===n||32===n?r.click&&r.click():t&&!t.processEsc||27!==n||r.blur&&r.blur()}else r.classList&&!r.classList.contains(x)&&r.classList.add(x)}}}function P(e,t){if(void 0===t&&(t={processEsc:!0}),t&&(t.__keyDownReceived=!0),!e.target||"true"!==e.target.contentEditable){var r=e.which||e.keyCode,n=[13,32];t.processEsc&&n.push(27),-1!==n.indexOf(r)&&e.preventDefault()}}function _(e,t){if(e){t||(t=function(e){return window.getComputedStyle(e)});var r=t(e);e.style.height="auto",e.style.height=e.scrollHeight+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth)+"px"}}function S(e){return e.originalEvent||e}function V(e){e.preventDefault(),e.stopPropagation()}function E(e){return e.replace(/\s*?([\w-]+)\s*?/g,".$1")}function O(e){return getComputedStyle?Number.parseFloat(getComputedStyle(e).width):e.offsetWidth}function T(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function k(e,t){if(e)return t.every((function(t){return!t||e.classList.contains(t)}))?e:k(e.parentElement,t)}function R(e){if(window.getSelection&&document.createRange&&e.childNodes.length>0){var t=document.getSelection(),r=t.getRangeAt(0);r.setStart(r.endContainer,r.endOffset),r.setEndAfter(e.lastChild),t.removeAllRanges(),t.addRange(r);var n=t.toString().replace(/\n/g,"").length;e.innerText=e.innerText.replace(/\n/g,""),(r=document.createRange()).setStart(e.childNodes[0],e.innerText.length-n),r.collapse(!0),t.removeAllRanges(),t.addRange(r)}}function I(e,t){if(t&&e&&"object"==typeof t)for(var r in e){var n=e[r];!Array.isArray(n)&&n&&"object"==typeof n?(t[r]&&"object"==typeof t[r]||(t[r]={}),I(n,t[r])):t[r]=n}}var j=function(){function e(){this._result=""}return e.prototype.log=function(e){this._result+="->"+e},Object.defineProperty(e.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),e}()},react:function(t,r){t.exports=e},"react-dom":function(e,r){e.exports=t},"survey-core":function(e,t){e.exports=r}})},e.exports=n(r(7294),r(3935),r(2535))},8484:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAArSURBVHgB7cuhEQAwDMNAtUN4//m8RMtygcE5PxMQxAKnh6Q3mWzXd4mAD4cJBAQCqfbUAAAAAElFTkSuQmCC"},4154:e=>{"use strict";e.exports="data:image/svg+xml,%3C%3Fxml version=%271.0%27 encoding=%27utf-8%27%3F%3E%3C%21-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0%29 --%3E%3Csvg version=%271.1%27 id=%27Layer_1%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27 x=%270px%27 y=%270px%27 viewBox=%270 0 10 10%27 style=%27enable-background:new 0 0 10 10;%27 xml:space=%27preserve%27%3E%3Cstyle type=%27text/css%27%3E .st0%7Bfill:%231AB394;%7D%0A%3C/style%3E%3Cpolygon class=%27st0%27 points=%272,2 0,4 5,9 10,4 8,2 5,5 %27/%3E%3C/svg%3E"},1163:e=>{"use strict";e.exports="data:image/svg+xml,%3C%3Fxml version=%271.0%27 encoding=%27utf-8%27%3F%3E%3C%21-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0%29 --%3E%3Csvg version=%271.1%27 id=%27Layer_1%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27 x=%270px%27 y=%270px%27 viewBox=%270 0 10 10%27 style=%27enable-background:new 0 0 10 10;%27 xml:space=%27preserve%27%3E%3Cstyle type=%27text/css%27%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class=%27st0%27 points=%272,2 0,4 5,9 10,4 8,2 5,5 %27/%3E%3C/svg%3E%0A"},8860:e=>{"use strict";e.exports="data:image/svg+xml,%3C%3Fxml version=%271.0%27 encoding=%27utf-8%27%3F%3E%3C%21-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0%29 --%3E%3Csvg version=%271.1%27 id=%27Layer_1%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27 x=%270px%27 y=%270px%27 viewBox=%270 0 20 20%27 style=%27enable-background:new 0 0 20 20;%27 xml:space=%27preserve%27%3E%3Cstyle type=%27text/css%27%3E .st0%7Bfill:%239A9A9A;%7D%0A%3C/style%3E%3Cpolygon class=%27st0%27 points=%2719,6 17,4 10,11 3,4 1,6 10,15 %27/%3E%3C/svg%3E%0A"},937:e=>{"use strict";e.exports="data:image/svg+xml,%3C%3Fxml version=%271.0%27 encoding=%27utf-8%27%3F%3E%3C%21-- Generator: Adobe Illustrator 23.0.6, SVG Export Plug-In . SVG Version: 6.00 Build 0%29 --%3E%3Csvg version=%271.1%27 id=%27Layer_1%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27 x=%270px%27 y=%270px%27 viewBox=%270 0 72 72%27 style=%27enable-background:new 0 0 72 72;%27 xml:space=%27preserve%27%3E%3Cstyle type=%27text/css%27%3E .st0%7Bfill:%239A9A9A;%7D%0A%3C/style%3E%3Cg%3E%3Cpath class=%27st0%27 d=%27M11.9,72c-0.6-0.1-1.2-0.3-1.8-0.4C4.2,70.1,0,64.7,0,58.6c0-15.1,0-30.1,0-45.2C0,6,6,0,13.4,0 c12,0,24,0,36,0c2.4,0,4.4,1.7,4.6,4c0.2,2.4-1.3,4.4-3.6,4.9C50,9,49.7,9,49.4,9C37.6,9,25.8,9,14,9c-1.5,0-2.8,0.4-3.9,1.5 c-0.8,0.9-1.2,2-1.2,3.2c0,8.2,0,16.4,0,24.6C9,45,9,51.6,9,58.2c0,2.9,1.9,4.8,4.8,4.8c14.9,0,29.7,0,44.6,0c2.6,0,4.6-2,4.6-4.6 c0-5.9,0-11.8,0-17.7c0-2.4,1.6-4.3,3.9-4.6c2.3-0.3,4.3,1,5,3.4c0,0.1,0.1,0.2,0.1,0.2c0,6.8,0,13.6,0,20.4c0,0.1-0.1,0.3-0.1,0.4 c-0.8,5.4-4.7,9.8-10.1,11.2c-0.6,0.1-1.2,0.3-1.8,0.4C44,72,28,72,11.9,72z%27/%3E%3Cpath class=%27st0%27 d=%27M35.9,38.8c0.4-0.4,0.5-0.7,0.7-0.9c8.4-8.4,16.8-16.8,25.2-25.2c1.9-1.9,4.5-2,6.3-0.4 c1.9,1.6,2.1,4.6,0.4,6.4c-0.2,0.2-0.3,0.3-0.5,0.5c-9.5,9.5-19.1,19.1-28.6,28.6c-2.2,2.2-4.8,2.2-7,0 c-5.1-5.1-10.2-10.2-15.4-15.4c-1.3-1.3-1.7-2.8-1.2-4.5c0.5-1.7,1.6-2.8,3.4-3.1c1.6-0.4,3.1,0.1,4.2,1.3c4,4,7.9,7.9,11.9,11.9 C35.6,38.2,35.7,38.5,35.9,38.8z%27/%3E%3C/g%3E%3C/svg%3E%0A"},2204:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%272%27 fill=%27%23fff%27/%3e%3c/svg%3e"},9609:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27%2386b7fe%27/%3e%3c/svg%3e"},2469:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27%23fff%27/%3e%3c/svg%3e"},7486:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27rgba%280, 0, 0, 0.25%29%27/%3e%3c/svg%3e"},991:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27rgba%28255, 255, 255, 0.25%29%27/%3e%3c/svg%3e"},4144:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 12%27 width=%2712%27 height=%2712%27 fill=%27none%27 stroke=%27%23dc3545%27%3e%3ccircle cx=%276%27 cy=%276%27 r=%274.5%27/%3e%3cpath stroke-linejoin=%27round%27 d=%27M5.8 3.6h.4L6 6.5z%27/%3e%3ccircle cx=%276%27 cy=%278.2%27 r=%27.6%27 fill=%27%23dc3545%27 stroke=%27none%27/%3e%3c/svg%3e"},6254:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23000%27%3e%3cpath d=%27M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z%27/%3e%3c/svg%3e"},5321:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23052c65%27%3e%3cpath fill-rule=%27evenodd%27 d=%27M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z%27/%3e%3c/svg%3e"},3460:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23212529%27%3e%3cpath fill-rule=%27evenodd%27 d=%27M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z%27/%3e%3c/svg%3e"},1281:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%236ea8fe%27%3e%3cpath fill-rule=%27evenodd%27 d=%27M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z%27/%3e%3c/svg%3e"},5647:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23fff%27%3e%3cpath d=%27M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z%27/%3e%3c/svg%3e"},1692:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23fff%27%3e%3cpath d=%27M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z%27/%3e%3c/svg%3e"},6770:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3e%3cpath fill=%27none%27 stroke=%27%23343a40%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27m2 5 6 6 6-6%27/%3e%3c/svg%3e"},2105:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3e%3cpath fill=%27none%27 stroke=%27%23adb5bd%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27m2 5 6 6 6-6%27/%3e%3c/svg%3e"},8931:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3e%3cpath fill=%27none%27 stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%273%27 d=%27M6 10h8%27/%3e%3c/svg%3e"},6199:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3e%3cpath fill=%27none%27 stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%273%27 d=%27m6 10 3 3 6-6%27/%3e%3c/svg%3e"},2956:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 30 30%27%3e%3cpath stroke=%27rgba%28255, 255, 255, 0.55%29%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 stroke-width=%272%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e"},2221:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 30 30%27%3e%3cpath stroke=%27rgba%2833, 37, 41, 0.75%29%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 stroke-width=%272%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e"},5122:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 8 8%27%3e%3cpath fill=%27%23198754%27 d=%27M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z%27/%3e%3c/svg%3e"},6704:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iMTEsMTIgOSwxNCAzLDggOSwyIDExLDQgNyw4ICIvPg0KPC9zdmc+DQo="},3344:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iNSw0IDcsMiAxMyw4IDcsMTQgNSwxMiA5LDggIi8+DQo8L3N2Zz4NCg=="},7061:(e,t,r)=>{var n=r(8698).default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},r=Object.prototype,i=r.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function p(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(e){p=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),a=new O(n||[]);return s(i,"_invoke",{value:_(e,r,a)}),i}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f={};function m(){}function g(){}function b(){}var y={};p(y,l,(function(){return this}));var v=Object.getPrototypeOf,x=v&&v(v(T([])));x&&x!==r&&i.call(x,l)&&(y=x);var w=b.prototype=m.prototype=Object.create(y);function C(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function r(o,s,a,l){var u=h(e[o],e,s);if("throw"!==u.type){var c=u.arg,p=c.value;return p&&"object"==n(p)&&i.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(p).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,l)}))}l(u.arg)}var o;s(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var a=S(s,r);if(a){if(a===f)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=h(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=h(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function V(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(V,this),this.reset(!0)}function T(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:k}}function k(){return{value:void 0,done:!0}}return g.prototype=b,s(w,"constructor",{value:b,configurable:!0}),s(b,"constructor",{value:g,configurable:!0}),g.displayName=p(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,p(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},C(P.prototype),p(P.prototype,u,(function(){return this})),t.AsyncIterator=P,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var s=new P(d(e,r,n,o),i);return t.isGeneratorFunction(r)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},C(w),p(w,c,"Generator"),p(w,l,(function(){return this})),p(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return s.type="throw",s.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var a=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},8698:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4687:(e,t,r)=>{var n=r(7061)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.m=e,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&!e;)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),r.b=document.baseURI||self.location.href,r.nc=void 0,(()=>{"use strict";var e,t=r(7294),n=r(745),o=r(3379),i=r.n(o),s=r(7795),a=r.n(s),l=r(569),u=r.n(l),c=r(3565),p=r.n(c),d=r(9216),h=r.n(d),f=r(4589),m=r.n(f),g=r(4666),b={};function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y.apply(this,arguments)}b.styleTagTransform=m(),b.setAttributes=p(),b.insert=u().bind(null,"head"),b.domAPI=a(),b.insertStyleElement=h(),i()(g.Z,b),g.Z&&g.Z.locals&&g.Z.locals,function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(e||(e={}));const v="popstate";function x(e,t){if(!1===e||null==e)throw new Error(t)}function w(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function C(e,t){return{usr:e.state,key:e.key,idx:t}}function P(e,t,r,n){return void 0===r&&(r=null),y({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?S(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function _(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function S(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var V;function E(e,t,r){void 0===r&&(r="/");let n=F(("string"==typeof t?S(t):t).pathname||"/",r);if(null==n)return null;let o=O(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let i=null;for(let e=0;null==i&&e<o.length;++e)i=A(o[e],B(n));return i}function O(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");let o=(e,o,i)=>{let s={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};s.relativePath.startsWith("/")&&(x(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(n.length));let a=Q([n,s.relativePath]),l=r.concat(s);e.children&&e.children.length>0&&(x(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+a+'".'),O(e.children,t,l,a)),(null!=e.path||e.index)&&t.push({path:a,score:L(a,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of T(e.path))o(e,t,r);else o(e,t)})),t}function T(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===n.length)return o?[i,""]:[i];let s=T(n.join("/")),a=[];return a.push(...s.map((e=>""===e?i:[i,e].join("/")))),o&&a.push(...s),a.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(V||(V={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const k=/^:\w+$/,R=3,I=2,j=1,D=10,q=-2,M=e=>"*"===e;function L(e,t){let r=e.split("/"),n=r.length;return r.some(M)&&(n+=q),t&&(n+=I),r.filter((e=>!M(e))).reduce(((e,t)=>e+(k.test(t)?R:""===t?j:D)),n)}function A(e,t){let{routesMeta:r}=e,n={},o="/",i=[];for(let e=0;e<r.length;++e){let s=r[e],a=e===r.length-1,l="/"===o?t:t.slice(o.length)||"/",u=N({path:s.relativePath,caseSensitive:s.caseSensitive,end:a},l);if(!u)return null;Object.assign(n,u.params);let c=s.route;i.push({params:n,pathname:Q([o,u.pathname]),pathnameBase:H(Q([o,u.pathnameBase])),route:c}),"/"!==u.pathnameBase&&(o=Q([o,u.pathnameBase]))}return i}function N(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),w("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,((e,t)=>(n.push(t),"/([^\\/]+)")));return e.endsWith("*")?(n.push("*"),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:n.reduce(((e,t,r)=>{if("*"===t){let e=a[r]||"";s=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(r){return w(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+r+")."),e}}(a[r]||"",t),e}),{}),pathname:i,pathnameBase:s,pattern:e}}function B(e){try{return decodeURI(e)}catch(t){return w(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function F(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function z(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}const Q=e=>e.join("/").replace(/\/\/+/g,"/"),H=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),U=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",W=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const G=["post","put","patch","delete"],J=(new Set(G),["get",...G]);function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$.apply(this,arguments)}new Set(J),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,Symbol("deferred");const K=t.createContext(null),Z=t.createContext(null),X=t.createContext(null),Y=t.createContext(null),ee=t.createContext({outlet:null,matches:[],isDataRoute:!1}),te=t.createContext(null);function re(){return null!=t.useContext(Y)}function ne(){return re()||x(!1),t.useContext(Y).location}function oe(e){t.useContext(X).static||t.useLayoutEffect(e)}function ie(){let{isDataRoute:e}=t.useContext(ee);return e?function(){let{router:e}=function(e){let r=t.useContext(K);return r||x(!1),r}(pe.UseNavigateStable),r=ge(de.UseNavigateStable),n=t.useRef(!1);oe((()=>{n.current=!0}));let o=t.useCallback((function(t,o){void 0===o&&(o={}),n.current&&("number"==typeof t?e.navigate(t):e.navigate(t,$({fromRouteId:r},o)))}),[e,r]);return o}():function(){re()||x(!1);let e=t.useContext(K),{basename:r,navigator:n}=t.useContext(X),{matches:o}=t.useContext(ee),{pathname:i}=ne(),s=JSON.stringify(function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(o).map((e=>e.pathnameBase))),a=t.useRef(!1);oe((()=>{a.current=!0}));let l=t.useCallback((function(t,o){if(void 0===o&&(o={}),!a.current)return;if("number"==typeof t)return void n.go(t);let l=function(e,t,r,n){let o;void 0===n&&(n=!1),"string"==typeof e?o=S(e):(o=y({},e),x(!o.pathname||!o.pathname.includes("?"),z("?","pathname","search",o)),x(!o.pathname||!o.pathname.includes("#"),z("#","pathname","hash",o)),x(!o.search||!o.search.includes("#"),z("#","search","hash",o)));let i,s=""===e||""===o.pathname,a=s?"/":o.pathname;if(n||null==a)i=r;else{let e=t.length-1;if(a.startsWith("..")){let t=a.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:o=""}="string"==typeof e?S(e):e,i=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:i,search:U(n),hash:W(o)}}(o,i),u=a&&"/"!==a&&a.endsWith("/"),c=(s||"."===a)&&r.endsWith("/");return l.pathname.endsWith("/")||!u&&!c||(l.pathname+="/"),l}(t,JSON.parse(s),i,"path"===o.relative);null==e&&"/"!==r&&(l.pathname="/"===l.pathname?r:Q([r,l.pathname])),(o.replace?n.replace:n.push)(l,o.state,o)}),[r,n,s,i,e]);return l}()}function se(r,n,o){re()||x(!1);let{navigator:i}=t.useContext(X),{matches:s}=t.useContext(ee),a=s[s.length-1],l=a?a.params:{},u=(a&&a.pathname,a?a.pathnameBase:"/");a&&a.route;let c,p=ne();if(n){var d;let e="string"==typeof n?S(n):n;"/"===u||(null==(d=e.pathname)?void 0:d.startsWith(u))||x(!1),c=e}else c=p;let h=c.pathname||"/",f=E(r,{pathname:"/"===u?h:h.slice(u.length)||"/"}),m=function(e,r,n){var o;if(void 0===r&&(r=[]),void 0===n&&(n=null),null==e){var i;if(null==(i=n)||!i.errors)return null;e=n.matches}let s=e,a=null==(o=n)?void 0:o.errors;if(null!=a){let e=s.findIndex((e=>e.route.id&&(null==a?void 0:a[e.route.id])));e>=0||x(!1),s=s.slice(0,Math.min(s.length,e+1))}return s.reduceRight(((e,o,i)=>{let l=o.route.id?null==a?void 0:a[o.route.id]:null,u=null;n&&(u=o.route.errorElement||le);let c=r.concat(s.slice(0,i+1)),p=()=>{let r;return r=l?u:o.route.Component?t.createElement(o.route.Component,null):o.route.element?o.route.element:e,t.createElement(ce,{match:o,routeContext:{outlet:e,matches:c,isDataRoute:null!=n},children:r})};return n&&(o.route.ErrorBoundary||o.route.errorElement||0===i)?t.createElement(ue,{location:n.location,revalidation:n.revalidation,component:u,error:l,children:p(),routeContext:{outlet:null,matches:c,isDataRoute:!0}}):p()}),null)}(f&&f.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:Q([u,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:Q([u,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,o);return n&&m?t.createElement(Y.Provider,{value:{location:$({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:e.Pop}},m):m}function ae(){let e=function(){var e;let r=t.useContext(te),n=function(e){let r=t.useContext(Z);return r||x(!1),r}(de.UseRouteError),o=ge(de.UseRouteError);return r||(null==(e=n.errors)?void 0:e[o])}(),r=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},r),n?t.createElement("pre",{style:o},n):null,null)}const le=t.createElement(ae,null);class ue extends t.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?t.createElement(ee.Provider,{value:this.props.routeContext},t.createElement(te.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ce(e){let{routeContext:r,match:n,children:o}=e,i=t.useContext(K);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),t.createElement(ee.Provider,{value:r},o)}var pe,de,he,fe,me;function ge(e){let r=function(e){let r=t.useContext(ee);return r||x(!1),r}(),n=r.matches[r.matches.length-1];return n.route.id||x(!1),n.route.id}function be(e){x(!1)}function ye(r){let{basename:n="/",children:o=null,location:i,navigationType:s=e.Pop,navigator:a,static:l=!1}=r;re()&&x(!1);let u=n.replace(/^\/*/,"/"),c=t.useMemo((()=>({basename:u,navigator:a,static:l})),[u,a,l]);"string"==typeof i&&(i=S(i));let{pathname:p="/",search:d="",hash:h="",state:f=null,key:m="default"}=i,g=t.useMemo((()=>{let e=F(p,u);return null==e?null:{location:{pathname:e,search:d,hash:h,state:f,key:m},navigationType:s}}),[u,p,d,h,f,m,s]);return null==g?null:t.createElement(X.Provider,{value:c},t.createElement(Y.Provider,{children:o,value:g}))}function ve(e){let{children:t,location:r}=e;return se(xe(t),r)}function xe(e,r){void 0===r&&(r=[]);let n=[];return t.Children.forEach(e,((e,o)=>{if(!t.isValidElement(e))return;let i=[...r,o];if(e.type===t.Fragment)return void n.push.apply(n,xe(e.props.children,i));e.type!==be&&x(!1),e.props.index&&e.props.children&&x(!1);let s={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=xe(e.props.children,i)),n.push(s)})),n}function we(r){let{basename:n,children:o,window:i}=r,s=t.useRef();null==s.current&&(s.current=function(t){return void 0===t&&(t={}),function(t,r,n,o){void 0===o&&(o={});let{window:i=document.defaultView,v5Compat:s=!1}=o,a=i.history,l=e.Pop,u=null,c=p();function p(){return(a.state||{idx:null}).idx}function d(){l=e.Pop;let t=p(),r=null==t?null:t-c;c=t,u&&u({action:l,location:f.location,delta:r})}function h(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,r="string"==typeof e?e:_(e);return x(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==c&&(c=0,a.replaceState(y({},a.state,{idx:c}),""));let f={get action(){return l},get location(){return t(i,a)},listen(e){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(v,d),u=e,()=>{i.removeEventListener(v,d),u=null}},createHref:e=>r(i,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(t,r){l=e.Push;let o=P(f.location,t,r);n&&n(o,t),c=p()+1;let d=C(o,c),h=f.createHref(o);try{a.pushState(d,"",h)}catch(e){i.location.assign(h)}s&&u&&u({action:l,location:f.location,delta:1})},replace:function(t,r){l=e.Replace;let o=P(f.location,t,r);n&&n(o,t),c=p();let i=C(o,c),d=f.createHref(o);a.replaceState(i,"",d),s&&u&&u({action:l,location:f.location,delta:0})},go:e=>a.go(e)};return f}((function(e,t){let{pathname:r,search:n,hash:o}=e.location;return P("",{pathname:r,search:n,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:_(t)}),null,t)}({window:i,v5Compat:!0}));let a=s.current,[l,u]=t.useState({action:a.action,location:a.location});return t.useLayoutEffect((()=>a.listen(u)),[a]),t.createElement(ye,{basename:n,children:o,location:l.location,navigationType:l.action,navigator:a})}function Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Pe(e,t){if(e){if("string"==typeof e)return Ce(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ce(e,t):void 0}}function _e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(e,t)||Pe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Se(e,t,r,n,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void r(e)}a.done?t(l):Promise.resolve(l).then(n,o)}function Ve(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function s(e){Se(i,n,o,s,a,"next",e)}function a(e){Se(i,n,o,s,a,"throw",e)}s(void 0)}))}}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"}(pe||(pe={})),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"}(de||(de={})),function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(he||(he={})),new Promise((()=>{})),t.Component,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"}(fe||(fe={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(me||(me={}));var Ee=r(4687),Oe=r.n(Ee),Te=r(4184),ke=r.n(Te);function Re(){return Re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Re.apply(this,arguments)}function Ie(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function je(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function De(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}r(1143);var qe=r(5893);const Me=t.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:Le,Provider:Ae}=Me;function Ne(e,r){const{prefixes:n}=(0,t.useContext)(Me);return e||n[r]||r}function Be(){const{breakpoints:e}=(0,t.useContext)(Me);return e}function Fe(){const{minBreakpoint:e}=(0,t.useContext)(Me);return e}var ze=/([A-Z])/g,Qe=/^ms-/;function He(e){return function(e){return e.replace(ze,"-$1").toLowerCase()}(e).replace(Qe,"-ms-")}var Ue=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const We=function(e,t){var r="",n="";if("string"==typeof t)return e.style.getPropertyValue(He(t))||function(e,t){return function(e){var t=function(e){return e&&e.ownerDocument||document}(e);return t&&t.defaultView||window}(e).getComputedStyle(e,void 0)}(e).getPropertyValue(He(t));Object.keys(t).forEach((function(o){var i=t[o];i||0===i?function(e){return!(!e||!Ue.test(e))}(o)?n+=o+"("+i+") ":r+=He(o)+": "+i+";":e.style.removeProperty(He(o))})),n&&(r+="transform: "+n+";"),e.style.cssText+=";"+r};function Ge(e,t){return Ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ge(e,t)}var Je=r(3935);const $e=t.createContext(null);var Ke="unmounted",Ze="exited",Xe="entering",Ye="entered",et="exiting",tt=function(e){var r,n;function o(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=Ze,n.appearStatus=Xe):o=Ye:o=t.unmountOnExit||t.mountOnEnter?Ke:Ze,n.state={status:o},n.nextCallback=null,n}n=e,(r=o).prototype=Object.create(n.prototype),r.prototype.constructor=r,Ge(r,n),o.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ke?{status:Ze}:null};var i=o.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Xe&&r!==Ye&&(t=Xe):r!==Xe&&r!==Ye||(t=et)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Xe){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:Je.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ze&&this.setState({status:Ke})},i.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[Je.findDOMNode(this),n],i=o[0],s=o[1],a=this.getTimeouts(),l=n?a.appear:a.enter;e||r?(this.props.onEnter(i,s),this.safeSetState({status:Xe},(function(){t.props.onEntering(i,s),t.onTransitionEnd(l,(function(){t.safeSetState({status:Ye},(function(){t.props.onEntered(i,s)}))}))}))):this.safeSetState({status:Ye},(function(){t.props.onEntered(i)}))},i.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:Je.findDOMNode(this);t?(this.props.onExit(n),this.safeSetState({status:et},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Ze},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Ze},(function(){e.props.onExited(n)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:Je.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if(e===Ke)return null;var r=this.props,n=r.children,o=(r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef,Ie(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t.createElement($e.Provider,{value:null},"function"==typeof n?n(e,o):t.cloneElement(t.Children.only(n),o))},o}(t.Component);function rt(){}tt.contextType=$e,tt.propTypes={},tt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:rt,onEntering:rt,onEntered:rt,onExit:rt,onExiting:rt,onExited:rt},tt.UNMOUNTED=Ke,tt.EXITED=Ze,tt.ENTERING=Xe,tt.ENTERED=Ye,tt.EXITING=et;const nt=tt,ot=!("undefined"==typeof window||!window.document||!window.document.createElement);var it=!1,st=!1;try{var at={get passive(){return it=!0},get once(){return st=it=!0}};ot&&(window.addEventListener("test",at,at),window.removeEventListener("test",at,!0))}catch(e){}const lt=function(e,t,r,n){return function(e,t,r,n){if(n&&"boolean"!=typeof n&&!st){var o=n.once,i=n.capture,s=r;!st&&o&&(s=r.__once||function e(n){this.removeEventListener(t,e,i),r.call(this,n)},r.__once=s),e.addEventListener(t,s,it?n:i)}e.addEventListener(t,r,n)}(e,t,r,n),function(){!function(e,t,r,n){var o=n&&"boolean"!=typeof n?n.capture:n;e.removeEventListener(t,r,o),r.__once&&e.removeEventListener(t,r.__once,o)}(e,t,r,n)}};function ut(e,t,r,n){var o,i;null==r&&(i=-1===(o=We(e,"transitionDuration")||"").indexOf("ms")?1e3:1,r=parseFloat(o)*i||0);var s=function(e,t,r){void 0===r&&(r=5);var n=!1,o=setTimeout((function(){n||function(e,t,r,n){if(void 0===r&&(r=!1),void 0===n&&(n=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent("transitionend",r,n),e.dispatchEvent(o)}}(e,0,!0)}),t+r),i=lt(e,"transitionend",(function(){n=!0}),{once:!0});return function(){clearTimeout(o),i()}}(e,r,n),a=lt(e,"transitionend",t);return function(){s(),a()}}function ct(e,t){const r=We(e,t)||"",n=-1===r.indexOf("ms")?1e3:1;return parseFloat(r)*n}function pt(e,t){const r=ct(e,"transitionDuration"),n=ct(e,"transitionDelay"),o=ut(e,(r=>{r.target===e&&(o(),t(r))}),r+n)}const dt=function(...e){return e.filter((e=>null!=e)).reduce(((e,t)=>{if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...r){e.apply(this,r),t.apply(this,r)}}),null)};var ht=function(e){return e&&"function"!=typeof e?function(t){e.current=t}:e};const ft=t.forwardRef((({onEnter:e,onEntering:r,onEntered:n,onExit:o,onExiting:i,onExited:s,addEndListener:a,children:l,childRef:u,...c},p)=>{const d=(0,t.useRef)(null),h=(P=d,_=u,(0,t.useMemo)((function(){return function(e,t){var r=ht(e),n=ht(t);return function(e){r&&r(e),n&&n(e)}}(P,_)}),[P,_])),f=e=>{var t;h((t=e)&&"setState"in t?Je.findDOMNode(t):null!=t?t:null)},m=e=>t=>{e&&d.current&&e(d.current,t)},g=(0,t.useCallback)(m(e),[e]),b=(0,t.useCallback)(m(r),[r]),y=(0,t.useCallback)(m(n),[n]),v=(0,t.useCallback)(m(o),[o]),x=(0,t.useCallback)(m(i),[i]),w=(0,t.useCallback)(m(s),[s]),C=(0,t.useCallback)(m(a),[a]);var P,_;return(0,qe.jsx)(nt,{ref:p,...c,onEnter:g,onEntered:y,onEntering:b,onExit:v,onExited:w,onExiting:x,addEndListener:C,nodeRef:d,children:"function"==typeof l?(e,t)=>l(e,{...t,ref:f}):t.cloneElement(l,{ref:f})})})),mt={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function gt(e,t){const r=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],n=mt[e];return r+parseInt(We(t,n[0]),10)+parseInt(We(t,n[1]),10)}const bt={[Ze]:"collapse",[et]:"collapsing",[Xe]:"collapsing",[Ye]:"collapse show"},yt=t.forwardRef((({onEnter:e,onEntering:r,onEntered:n,onExit:o,onExiting:i,className:s,children:a,dimension:l="height",in:u=!1,timeout:c=300,mountOnEnter:p=!1,unmountOnExit:d=!1,appear:h=!1,getDimensionValue:f=gt,...m},g)=>{const b="function"==typeof l?l():l,y=(0,t.useMemo)((()=>dt((e=>{e.style[b]="0"}),e)),[b,e]),v=(0,t.useMemo)((()=>dt((e=>{const t=`scroll${b[0].toUpperCase()}${b.slice(1)}`;e.style[b]=`${e[t]}px`}),r)),[b,r]),x=(0,t.useMemo)((()=>dt((e=>{e.style[b]=null}),n)),[b,n]),w=(0,t.useMemo)((()=>dt((e=>{e.style[b]=`${f(b,e)}px`,e.offsetHeight}),o)),[o,f,b]),C=(0,t.useMemo)((()=>dt((e=>{e.style[b]=null}),i)),[b,i]);return(0,qe.jsx)(ft,{ref:g,addEndListener:pt,...m,"aria-expanded":m.role?u:null,onEnter:y,onEntering:v,onEntered:x,onExit:w,onExiting:C,childRef:a.ref,in:u,timeout:c,mountOnEnter:p,unmountOnExit:d,appear:h,children:(e,r)=>t.cloneElement(a,{...r,className:ke()(s,a.props.className,bt[e],"width"===b&&"collapse-horizontal")})})}));function vt(e,t){return Array.isArray(e)?e.includes(t):e===t}const xt=t.createContext({});xt.displayName="AccordionContext";const wt=xt,Ct=t.forwardRef((({as:e="div",bsPrefix:r,className:n,children:o,eventKey:i,...s},a)=>{const{activeEventKey:l}=(0,t.useContext)(wt);return r=Ne(r,"accordion-collapse"),(0,qe.jsx)(yt,{ref:a,in:vt(l,i),...s,className:ke()(n,r),children:(0,qe.jsx)(e,{children:t.Children.only(o)})})}));Ct.displayName="AccordionCollapse";const Pt=Ct,_t=t.createContext({eventKey:""});_t.displayName="AccordionItemContext";const St=_t,Vt=t.forwardRef((({as:e="div",bsPrefix:r,className:n,onEnter:o,onEntering:i,onEntered:s,onExit:a,onExiting:l,onExited:u,...c},p)=>{r=Ne(r,"accordion-body");const{eventKey:d}=(0,t.useContext)(St);return(0,qe.jsx)(Pt,{eventKey:d,onEnter:o,onEntering:i,onEntered:s,onExit:a,onExiting:l,onExited:u,children:(0,qe.jsx)(e,{ref:p,...c,className:ke()(n,r)})})}));Vt.displayName="AccordionBody";const Et=Vt,Ot=t.forwardRef((({as:e="button",bsPrefix:r,className:n,onClick:o,...i},s)=>{r=Ne(r,"accordion-button");const{eventKey:a}=(0,t.useContext)(St),l=function(e,r){const{activeEventKey:n,onSelect:o,alwaysOpen:i}=(0,t.useContext)(wt);return t=>{let s=e===n?null:e;i&&(s=Array.isArray(n)?n.includes(e)?n.filter((t=>t!==e)):[...n,e]:[e]),null==o||o(s,t),null==r||r(t)}}(a,o),{activeEventKey:u}=(0,t.useContext)(wt);return"button"===e&&(i.type="button"),(0,qe.jsx)(e,{ref:s,onClick:l,...i,"aria-expanded":Array.isArray(u)?u.includes(a):a===u,className:ke()(n,r,!vt(u,a)&&"collapsed")})}));Ot.displayName="AccordionButton";const Tt=Ot,kt=t.forwardRef((({as:e="h2",bsPrefix:t,className:r,children:n,onClick:o,...i},s)=>(t=Ne(t,"accordion-header"),(0,qe.jsx)(e,{ref:s,...i,className:ke()(r,t),children:(0,qe.jsx)(Tt,{onClick:o,children:n})}))));kt.displayName="AccordionHeader";const Rt=kt,It=t.forwardRef((({as:e="div",bsPrefix:r,className:n,eventKey:o,...i},s)=>{r=Ne(r,"accordion-item");const a=(0,t.useMemo)((()=>({eventKey:o})),[o]);return(0,qe.jsx)(St.Provider,{value:a,children:(0,qe.jsx)(e,{ref:s,...i,className:ke()(n,r)})})}));It.displayName="AccordionItem";const jt=It,Dt=t.forwardRef(((e,r)=>{const{as:n="div",activeKey:o,bsPrefix:i,className:s,onSelect:a,flush:l,alwaysOpen:u,...c}=function(e,r){return Object.keys(r).reduce((function(n,o){var i,s=n,a=s[je(o)],l=s[o],u=Ie(s,[je(o),o].map(De)),c=r[o],p=function(e,r,n){var o=(0,t.useRef)(void 0!==e),i=(0,t.useState)(r),s=i[0],a=i[1],l=void 0!==e,u=o.current;return o.current=l,!l&&u&&s!==r&&a(r),[l?e:s,(0,t.useCallback)((function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];n&&n.apply(void 0,[e].concat(r)),a(e)}),[n])]}(l,a,e[c]),d=p[0],h=p[1];return Re({},u,((i={})[o]=d,i[c]=h,i))}),e)}(e,{activeKey:"onSelect"}),p=Ne(i,"accordion"),d=(0,t.useMemo)((()=>({activeEventKey:o,onSelect:a,alwaysOpen:u})),[o,a,u]);return(0,qe.jsx)(wt.Provider,{value:d,children:(0,qe.jsx)(n,{ref:r,...c,className:ke()(s,p,l&&`${p}-flush`)})})}));Dt.displayName="Accordion";const qt=Object.assign(Dt,{Button:Tt,Collapse:Pt,Item:jt,Header:Rt,Body:Et}),Mt=["as","disabled"];function Lt({tagName:e,disabled:t,href:r,target:n,rel:o,role:i,onClick:s,tabIndex:a=0,type:l}){e||(e=null!=r||null!=n||null!=o?"a":"button");const u={tagName:e};if("button"===e)return[{type:l||"button",disabled:t},u];const c=n=>{(t||"a"===e&&function(e){return!e||"#"===e.trim()}(r))&&n.preventDefault(),t?n.stopPropagation():null==s||s(n)};return"a"===e&&(r||(r="#"),t&&(r=void 0)),[{role:null!=i?i:"button",disabled:void 0,tabIndex:t?void 0:a,href:r,target:"a"===e?n:void 0,"aria-disabled":t||void 0,rel:"a"===e?o:void 0,onClick:c,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),c(e))}},u]}t.forwardRef(((e,t)=>{let{as:r,disabled:n}=e,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,Mt);const[i,{tagName:s}]=Lt(Object.assign({tagName:r,disabled:n},o));return(0,qe.jsx)(s,Object.assign({},o,i,{ref:t}))})).displayName="Button";const At=t.forwardRef((({as:e,bsPrefix:t,variant:r="primary",size:n,active:o=!1,disabled:i=!1,className:s,...a},l)=>{const u=Ne(t,"btn"),[c,{tagName:p}]=Lt({tagName:e,disabled:i,...a}),d=p;return(0,qe.jsx)(d,{...c,...a,ref:l,disabled:i,className:ke()(s,u,o&&"active",r&&`${u}-${r}`,n&&`${u}-${n}`,a.href&&i&&"disabled")})}));At.displayName="Button";const Nt=At,Bt=t.forwardRef((({bsPrefix:e,className:t,striped:r,bordered:n,borderless:o,hover:i,size:s,variant:a,responsive:l,...u},c)=>{const p=Ne(e,"table"),d=ke()(t,p,a&&`${p}-${a}`,s&&`${p}-${s}`,r&&`${p}-${"string"==typeof r?`striped-${r}`:"striped"}`,n&&`${p}-bordered`,o&&`${p}-borderless`,i&&`${p}-hover`),h=(0,qe.jsx)("table",{...u,className:d,ref:c});if(l){let e=`${p}-responsive`;return"string"==typeof l&&(e=`${e}-${l}`),(0,qe.jsx)("div",{className:e,children:h})}return h}));function Ft(){return zt.apply(this,arguments)}function zt(){return(zt=Ve(Oe().mark((function e(){var t,r;return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/survey/list");case 3:return t=e.sent,e.next=6,t.json();case 6:return r=e.sent,e.abrupt("return",r);case 10:return e.prev=10,e.t0=e.catch(0),console.log("handle this better.."),e.abrupt("return",[]);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}const Qt=function(){var e=_e((0,t.useState)([]),2),r=e[0],n=e[1];function o(){return(o=Ve(Oe().mark((function e(){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/survey/new",{method:"POST"});case 2:Ft().then((function(e){n(e)}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function i(e,t){return s.apply(this,arguments)}function s(){return(s=Ve(Oe().mark((function e(t,r){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/survey/"+r+"/"+t,{method:"POST"});case 2:Ft().then((function(e){n(e)}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,t.useEffect)((function(){Ft().then((function(e){n(e)}))}),[]),console.log(r);var a=r.every((function(e){return"published"==e.status})),l=r.some((function(e){return"open"==e.status})),u=ie();return t.createElement("div",null,t.createElement(Nt,{onClick:function(){return o.apply(this,arguments)},disabled:!a,style:{pointerEvents:"auto"},title:"Create a new survey for the next year. Only possible if all current surveys are published."},"start new survey"),t.createElement(qt,null,r.map((function(e){return t.createElement(qt.Item,{eventKey:e.year.toString(),key:e.year},t.createElement(qt.Header,null,e.year," - ",e.status," -",t.createElement(Nt,{onClick:function(){return u("/survey/admin/inspect/".concat(e.year))},title:"Open the survey for inspection with all questions visible and any visibleIf logic added to the title."},"inspect"),t.createElement(Nt,{onClick:function(){return u("/survey/admin/try/".concat(e.year))},title:"Open the survey exactly as the nrens will see it, but without any nren data."},"try"),t.createElement(Nt,{onClick:function(){return i(e.year,"open")},disabled:l||"closed"!=e.status,style:{pointerEvents:"auto"},title:"Allow the NRENs to respond to this survey. Only 1 survey may be open at a time, and published surveys cannot be opened anymore."},"open"),t.createElement(Nt,{onClick:function(){return i(e.year,"close")},disabled:"open"!=e.status,style:{pointerEvents:"auto"},title:"Do not allow the NRENs to respond to this survey anymore. Only surveys with status open can be closed."},"close"),t.createElement(Nt,{onClick:function(){return i(e.year,"publish")},disabled:"closed"!=e.status&&"published"!=e.status||!e.responses.every((function(e){return"checked"==e.status})),style:{pointerEvents:"auto"},title:"Publish or re-publish all survey responses to the compendium website. This is only possible if the survey is closed or published already, and all repsonses are checked."},"publish")),t.createElement(qt.Body,null,t.createElement(Bt,null,t.createElement("tbody",null,e.responses.map((function(r){return t.createElement("tr",{key:r.nren},t.createElement("td",null,r.nren),t.createElement("td",null,r.status),t.createElement("td",null,"locked by"),t.createElement("td",null,t.createElement(Nt,{onClick:function(){return u("/survey/show/".concat(e.year,"/").concat(r.nren))},style:{pointerEvents:"auto"},title:"Open the responses of the NREN in readonly mode. Allows marking the responses as checked if the survey is completed."},"show"),t.createElement(Nt,{onClick:function(){return u("/survey/respond/".concat(e.year,"/").concat(r.nren))},style:{pointerEvents:"auto"},title:"Edit the responses of the NREN."},"edit"),"remove lock (only available when locked)"))}))))))}))))};function Ht(e){return function(e){if(Array.isArray(e))return Ce(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Pe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ut(){return(Ut=Ve(Oe().mark((function e(){var t,r;return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/user");case 2:return t=e.sent,e.next=5,t.json();case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Wt={name:"",email:"",permissions:{admin:!1,active:!1},editable:!1,id:"",nrens:[],oidc_sub:"",role:""},Gt=(0,t.createContext)({user:Wt,logout:function(){}});const Jt=function(e){var r=e.children,n=_e((0,t.useState)(Wt),2),o=n[0],i=n[1];function s(){return(s=Ve(Oe().mark((function e(){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/logout");case 2:i(Wt);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,t.useEffect)((function(){(function(){return Ut.apply(this,arguments)})().then((function(e){i(e)}))}),[]),t.createElement(Gt.Provider,{value:{user:o,logout:function(){return s.apply(this,arguments)}}},r)};function $t(){return($t=Ve(Oe().mark((function e(){var t,r;return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/user/list");case 3:return t=e.sent,e.next=6,t.json();case 6:return r=e.sent,e.abrupt("return",r);case 10:return e.prev=10,e.t0=e.catch(0),console.log("handle this better.."),e.abrupt("return",[]);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function Kt(){return(Kt=Ve(Oe().mark((function e(){var t,r;return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/nren/list");case 3:return t=e.sent,e.next=6,t.json();case 6:return r=e.sent,e.abrupt("return",r);case 10:return e.prev=10,e.t0=e.catch(0),console.log("handle this better.."),e.abrupt("return",[]);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}const Zt=function(){var e=_e((0,t.useState)([]),2),r=e[0],n=e[1],o=_e((0,t.useState)([]),2),i=o[0],s=o[1],a=(0,t.useContext)(Gt).user;console.log(a),(0,t.useEffect)((function(){(function(){return $t.apply(this,arguments)})().then((function(e){n(e)})),function(){return Kt.apply(this,arguments)}().then((function(e){s(e.sort((function(e,t){return e.name.localeCompare(t.name)})))}))}),[]);var l=function(e,t){var o=r.findIndex((function(e){return e.id===t.id})),i=Ht(r),s=e.target,a=s.name,l=s.type;t[a]="checkbox"===l?!!e.target.checked:e.target.value,"nrens"===e.target.name&&(i[o].nrens=[e.target.value],console.log("updated nren")),n(i)};return t.createElement("div",null,t.createElement("h1",null," User Management Page"),t.createElement(Bt,null,t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",{className:"pt-3",style:{border:"1px solid #ddd"}}," Id "),t.createElement("th",{className:"pt-3",style:{border:"1px solid #ddd"}}," Active "),t.createElement("th",{className:"pt-3",style:{border:"1px solid #ddd"}}," Roles "),t.createElement("th",{className:"pt-3",style:{border:"1px solid #ddd"}}," Email"),t.createElement("th",{className:"pt-3",style:{border:"1px solid #ddd"}}," Full Name"),t.createElement("th",{className:"pt-3",style:{border:"1px solid #ddd"}}," OIDC Sub"),t.createElement("th",{className:"pt-3",style:{border:"1px solid #ddd"}}," NREN"),t.createElement("th",{className:"pt-3",style:{border:"1px solid #ddd"}},"Actions"))),t.createElement("tbody",null,r.map((function(e){var o,s,u,c;return t.createElement("tr",{key:e.id},t.createElement("td",{style:{border:"1px dotted #ddd"}},e.id),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.editable?t.createElement("input",{type:"checkbox",name:"active",checked:e.permissions.active,onChange:function(t){return l(t,e)}}):e.permissions.active?"Active":"Inactive"),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.editable?t.createElement("select",{name:"roles",value:e.role,onChange:function(t){return l(t,e)}},t.createElement("option",{value:"admin"},"Admin"),t.createElement("option",{value:"user"},"User")):e.role),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.email),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.name),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.oidc_sub),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.editable?i.length>0?t.createElement("select",{name:"nrens",multiple:!1,defaultValue:e.nrens.length>0?null===(o=i.find((function(t){return t.name==e.nrens[0]||t.id==e.nrens[0]})))||void 0===o?void 0:o.id:void 0,onChange:function(t){return l(t,e)}},t.createElement("option",null,"Select NREN"),i.map((function(e){return t.createElement("option",{key:e.id,value:e.id},e.name)}))):t.createElement("div",null,"No options available"):((null===(s=e.nrens)||void 0===s?void 0:s.length)||0)>0?(u=e.nrens[0],null===(c=i.find((function(e){return e.id==u||e.name==u})))||void 0===c?void 0:c.name):"NREN not selected"),t.createElement("td",{style:{border:"1px dotted #ddd"}},"admin"==(null==a?void 0:a.role)&&e.editable?t.createElement(Nt,{onClick:function(){return function(e){var t=r.findIndex((function(t){return t.id===e.id})),o=Ht(r);o[t].editable=!1,n(o),function(e){var t={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)};fetch("/api/user",t).then((function(e){return e.json()})).catch((function(e){e.response.json().then((function(e){console.log(e)}))}))}(e)}(e)}},"Save"):"admin"!=(null==a?void 0:a.role)||e.editable?null:t.createElement(Nt,{onClick:function(){return function(e){var t=r.findIndex((function(t){return t.id===e.id})),o=Ht(r);o[t].editable=!0,n(o)}(e)}},"Edit")))})))))};var Xt=r(2535),Yt=r(6352),er=function(e){return e.New="new",e.Answered="answered",e.Unverified="unverified",e.Verified="verified",e.Edited="edited",e}({});const tr=function(e){var r=e.surveyModel,n=e.verificationStatus;function o(e){var t=e[0];if(void 0===t||null==t||""==t)return!0;try{var r=new URL(t);return"http:"===r.protocol||"https:"===r.protocol}catch(e){return!1}}return(0,t.useEffect)((function(){function e(t,r){var o;n.current.set(t.name,r);var i=document.createElement("button");i.type="button",i.className="sv-action-bar-item verification",i.innerHTML=r,r==er.Unverified?(i.innerHTML="No change from previous year",i.className+=" verification-required",i.onclick=function(){t.validate(),e(t,er.Verified)}):i.className+=" verification-ok";var s='[data-name="'+t.name+'"]',a=null===(o=document.querySelector(s))||void 0===o?void 0:o.querySelector("h5");a&&!a.classList.contains("sv-header-flex")&&a.classList.add("sv-header-flex");var l=null==a?void 0:a.querySelector(".verification");l?l.replaceWith(i):null==a||a.appendChild(i)}Xt.FunctionFactory.Instance.register("validateWebsiteUrl",o),r.onAfterRenderQuestion.add((function(t,r){var o=n.current.get(r.question.name);o&&e(r.question,o)})),r.onValueChanged.add((function(t,r){var o=n.current.get(r.question.name);o==er.New?e(r.question,er.Answered):o==er.Unverified&&e(r.question,er.Edited)})),r.onUpdateQuestionCssClasses.add((function(e,t){t.question.hideCheckboxLabels&&(t.cssClasses.root+=" hidden-checkbox-labels")})),r.onMatrixAfterCellRender.add((function(e,t){if(0==t.column.indexValue&&"item"in t.row){var r,n=t.row.item;void 0!==n.customDescription&&(null===(r=t.htmlElement.parentElement)||void 0===r||r.children[0].setAttribute("title",n.customDescription))}}))}),[r,n]),t.createElement(Yt.Survey,{model:r})};function rr(e){return rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rr(e)}function nr(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==rr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==rr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===rr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const or=t.forwardRef((({bsPrefix:e,fluid:t=!1,as:r="div",className:n,...o},i)=>{const s=Ne(e,"container"),a="string"==typeof t?`-${t}`:"-fluid";return(0,qe.jsx)(r,{ref:i,...o,className:ke()(n,t?`${s}${a}`:s)})}));or.displayName="Container";const ir=or,sr=t.forwardRef((({bsPrefix:e,className:t,as:r="div",...n},o)=>{const i=Ne(e,"row"),s=Be(),a=Fe(),l=`${i}-cols`,u=[];return s.forEach((e=>{const t=n[e];let r;delete n[e],null!=t&&"object"==typeof t?({cols:r}=t):r=t;const o=e!==a?`-${e}`:"";null!=r&&u.push(`${l}${o}-${r}`)})),(0,qe.jsx)(r,{ref:o,...n,className:ke()(t,i,...u)})}));sr.displayName="Row";const ar=sr,lr=t.forwardRef(((e,t)=>{const[{className:r,...n},{as:o="div",bsPrefix:i,spans:s}]=function({as:e,bsPrefix:t,className:r,...n}){t=Ne(t,"col");const o=Be(),i=Fe(),s=[],a=[];return o.forEach((e=>{const r=n[e];let o,l,u;delete n[e],"object"==typeof r&&null!=r?({span:o,offset:l,order:u}=r):o=r;const c=e!==i?`-${e}`:"";o&&s.push(!0===o?`${t}${c}`:`${t}${c}-${o}`),null!=u&&a.push(`order${c}-${u}`),null!=l&&a.push(`offset${c}-${l}`)})),[{...n,className:ke()(r,...s,...a)},{as:e,bsPrefix:t,spans:s}]}(e);return(0,qe.jsx)(o,{...n,ref:t,className:ke()(r,!s.length&&i)})}));lr.displayName="Col";const ur=lr;function cr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cr(Object(r),!0).forEach((function(t){nr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const dr=function(e){var r=e.surveyModel,n=e.pageNoSetter,o=_e((0,t.useState)([]),2),i=o[0],s=o[1],a=function(e){return null!==e.value&&void 0!==e.value};(0,t.useEffect)((function(){var e=function(e){if(e&&e.pages){var t=[];e.pages.forEach((function(r){var n=r.questions.filter((function(e){return e.startWithNewLine})),o=n.length,i=n.filter(a).length,s=o-i,l=i/o;t.push({completionPercentage:100*l,unansweredPercentage:s/o*100,totalPages:e.pages.length,pageTitle:r.title})})),s(t)}};r.onValueChanged.add((function(t){e(t)})),e(r)}),[r]);var l={height:"0.5rem",transition:"width 0.3s ease"};return t.createElement(ir,{className:"survey-progress"},t.createElement(ar,null,i.map((function(e,o){return t.createElement(ur,{xs:12,md:!0,key:o,onClick:function(){return n(o)},style:{cursor:"pointer",margin:"0.5rem"}},t.createElement("div",null,t.createElement("span",{style:{whiteSpace:"nowrap",fontSize:"1.5rem",marginRight:"0.25rem",fontWeight:"bold",color:"#2db394"}},o+1),t.createElement("span",{style:pr({whiteSpace:"nowrap"},r.currentPageNo==o&&{fontWeight:"bold"})},e.pageTitle),t.createElement("div",{style:{display:"flex",flexWrap:"wrap"}},t.createElement("div",{style:pr(pr({},l),{},{width:"".concat(e.completionPercentage,"%"),backgroundColor:"#262261"})}),t.createElement("div",{style:pr(pr({},l),{},{width:"".concat(e.unansweredPercentage,"%"),backgroundColor:"#cdcdcd"})}))))}))))},hr=function(e){var r=e.surveyModel,n=e.endSurvey,o=e.saveSurvey,i=(e.validatePage,e.children),s=e.readonly,a=_e((0,t.useState)(0),2),l=a[0],u=a[1];(0,t.useEffect)((function(){u(r.currentPageNo)}),[r]);var c=function(e,r){return t.createElement("button",{className:"sv-btn sv-btn--navigation",onClick:r},e)},p=function(){return s?t.createElement(t.Fragment,null):t.createElement("div",{className:"navigation-block"},t.createElement("div",{className:"navigation-progress-container"},t.createElement("div",{className:"navigation-buttons-container"},l===r.visiblePages.length-1&&c("Complete Survey",n),c("Save progress",o))))};return t.createElement(ir,null,t.createElement(ar,null,p()),t.createElement(ar,null,t.createElement(dr,{surveyModel:r,pageNoSetter:function(e){u(e),r.currentPageNo=e}}),i),t.createElement(ar,null,p()))};var fr=r(6795),mr={};mr.styleTagTransform=m(),mr.setAttributes=p(),mr.insert=u().bind(null,"head"),mr.domAPI=a(),mr.insertStyleElement=h(),i()(fr.Z,mr),fr.Z&&fr.Z.locals&&fr.Z.locals;var gr=r(911),br={};br.styleTagTransform=m(),br.setAttributes=p(),br.insert=u().bind(null,"head"),br.domAPI=a(),br.insertStyleElement=h(),i()(gr.Z,br),gr.Z&&gr.Z.locals&&gr.Z.locals,Xt.Serializer.addProperty("itemvalue","customDescription:text"),Xt.Serializer.addProperty("question","hideCheckboxLabels:boolean");const yr=function(e){var r=e.loadFrom,n=e.saveTo,o=void 0===n?"":n,i=e.readonly,s=void 0!==i&&i,a=_e((0,t.useState)(),2),l=a[0],u=a[1],c=(0,t.useRef)(new Map),p=function(){let{matches:e}=t.useContext(ee),r=e[e.length-1];return r?r.params:{}}(),d=p.year,h=p.nren;if((0,t.useEffect)((function(){!function(){f.apply(this,arguments)}()}),[]),void 0===l)return"loading survey...";function f(){return f=Ve(Oe().mark((function e(){var t,n,o,i;return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(r+d+(h?"/"+h:""));case 2:return t=e.sent,e.next=5,t.json();case 5:for(o in(n=e.sent).verification_status)c.current.set(o,n.verification_status[o]);(i=new Xt.Model(n.model)).setVariable("surveyyear",d),i.setVariable("previousyear",parseInt(d)-1),i.data=n.data,i.clearIncorrectValues(!0),i.currentPageNo=n.page,i.showNavigationButtons=!1,i.showTOC=!1,s&&(i.mode="display"),u(i);case 17:case"end":return e.stop()}}),e)}))),f.apply(this,arguments)}function m(e,t,r){if(""!=o){var n=new XMLHttpRequest;n.open("POST",o+d+"/"+h),n.setRequestHeader("Content-Type","application/json; charset=utf-8"),n.onload=n.onerror=function(){200==n.status&&t?t():200!=n.status&&r&&r()};var i={data:e.data,page:e.currentPageNo,verification_status:Object.fromEntries(c.current)};n.send(JSON.stringify(i))}}return t.createElement(ir,{className:"survey-container"},t.createElement(ar,{className:"survey-content"},t.createElement("h2",null,t.createElement("span",{className:"survey-title"},"Compendium Survey"),t.createElement("span",{className:"survey-title-nren"},h)),t.createElement("span",{className:"survey-description"},"How to complete this survey - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam commodo tempus pulvinar. Aenean interdum lectus nec diam porttitor interdum. Sed efficitur, magna ut dignissim consequat, purus lacus aliquam tortor, ut dignissim orci ligula ac ligula.")),t.createElement(ar,null,t.createElement(hr,{surveyModel:l,endSurvey:function(){var e="",t=function(t,r){c.current.get(r.name)==er.Unverified&&(""==e&&(e=r.name),r.error="Please verify that last years data is correct by editing the value or pressing the verification button!")};l.onValidateQuestion.add(t);var r=l.validate();l.onValidateQuestion.remove(t),r?(l.options.showSaveInProgress(),m(l,(function(){return l.showSaveSuccess()}),(function(){return l.showSaveError()}))):l.focusQuestion(e)},saveSurvey:function(){m(l)},validatePage:function(){var e="",t=function(t,r){c.current.get(r.name)==er.Unverified&&(""==e&&(e=r.name),r.error="Please verify that last years data is correct by editing the value or pressing the verification button!")};l.onValidateQuestion.add(t);var r=l.validateCurrentPage();l.onValidateQuestion.remove(t),r||l.focusQuestion(e)},readonly:s},t.createElement(tr,{surveyModel:l,verificationStatus:c}))))};var vr=r(8051),xr=r.n(vr);const wr=t.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:Cr,Provider:Pr}=wr;function _r(e,r){const{prefixes:n}=(0,t.useContext)(wr);return e||n[r]||r}function Sr(){const{breakpoints:e}=(0,t.useContext)(wr);return e}function Vr(){const{minBreakpoint:e}=(0,t.useContext)(wr);return e}const Er=t.forwardRef((({bsPrefix:e,fluid:t,as:r="div",className:n,...o},i)=>{const s=_r(e,"container"),a="string"==typeof t?`-${t}`:"-fluid";return(0,qe.jsx)(r,{ref:i,...o,className:xr()(n,t?`${s}${a}`:s)})}));Er.displayName="Container",Er.defaultProps={fluid:!1};const Or=Er,Tr=t.forwardRef((({bsPrefix:e,className:t,as:r="div",...n},o)=>{const i=_r(e,"row"),s=Sr(),a=Vr(),l=`${i}-cols`,u=[];return s.forEach((e=>{const t=n[e];let r;delete n[e],null!=t&&"object"==typeof t?({cols:r}=t):r=t;const o=e!==a?`-${e}`:"";null!=r&&u.push(`${l}${o}-${r}`)})),(0,qe.jsx)(r,{ref:o,...n,className:xr()(t,i,...u)})}));Tr.displayName="Row";const kr=Tr,Rr=t.forwardRef(((e,t)=>{const[{className:r,...n},{as:o="div",bsPrefix:i,spans:s}]=function({as:e,bsPrefix:t,className:r,...n}){t=_r(t,"col");const o=Sr(),i=Vr(),s=[],a=[];return o.forEach((e=>{const r=n[e];let o,l,u;delete n[e],"object"==typeof r&&null!=r?({span:o,offset:l,order:u}=r):o=r;const c=e!==i?`-${e}`:"";o&&s.push(!0===o?`${t}${c}`:`${t}${c}-${o}`),null!=u&&a.push(`order${c}-${u}`),null!=l&&a.push(`offset${c}-${l}`)})),[{...n,className:xr()(r,...s,...a)},{as:e,bsPrefix:t,spans:s}]}(e);return(0,qe.jsx)(o,{...n,ref:t,className:xr()(r,!s.length&&i)})}));Rr.displayName="Col";const Ir=Rr,jr=r.p+"9ab20ac1d835b50b2e01.svg",Dr=function(){return t.createElement("div",{className:"external-page-nav-bar"},t.createElement(Or,null,t.createElement(kr,null,t.createElement(Ir,{xs:10},t.createElement("div",{className:"nav-wrapper"},t.createElement("nav",{className:"header-nav"},t.createElement("a",{href:"https://geant.org/"},t.createElement("img",{src:jr})),t.createElement("ul",null,t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://network.geant.org/"},"NETWORK")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://geant.org/services/"},"SERVICES")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://community.geant.org/"},"COMMUNITY")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://tnc23.geant.org/"},"TNC")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://geant.org/projects/"},"PROJECTS")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://connect.geant.org/"},"CONNECT")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://impact.geant.org/"},"IMPACT")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://careers.geant.org/"},"CAREERS")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://about.geant.org/"},"ABOUT")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://connect.geant.org/community-news"},"NEWS")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://resources.geant.org/"},"RESOURCES")))))))))},qr=function(){var e,r=(0,t.useContext)(Gt).user,n=ie(),o=void 0!==r.id,i=!!o&&!!r.nrens.length,s=i?r.nrens[0]:"";return t.createElement(ir,{className:"py-5 grey-container"},t.createElement(ar,null,t.createElement("div",{className:"center-text"},t.createElement("h1",{className:"geant-header"},"THE GÉANT COMPENDIUM OF NRENS SURVEY"),t.createElement("div",{className:"wordwrap pt-4"},t.createElement("p",{style:{textAlign:"center"}},"Hello, Welcome to the GÉANT Compendium Survey. NREN Compendium administrators can click here (link) to complete their registration to fill in the 2023 Compendium survey. Once your registration has been confirmed you will receive an email from the Compendium administration team. If you are not sure whether you are a Compendium Administrator for your NREN, please contact your GÉANT Partner Relations relationship manager. Thank you."),t.createElement("span",null,"Current registration status:"),t.createElement("br",null),t.createElement("br",null),t.createElement("p",null,o?"You are logged in":"You are not logged in",o&&!i?", but your access to the survey has not been approved":(e=(new Date).getFullYear(),n("/survey/respond/".concat(e,"/").concat(s)),t.createElement(t.Fragment,null)))))))},Mr=function(){return t.createElement("div",{className:"app"},t.createElement(we,null,t.createElement(Jt,null,t.createElement(Dr,null),t.createElement(ve,null,t.createElement(be,{path:"survey/admin/surveys",element:t.createElement(Qt,null)}),t.createElement(be,{path:"survey/admin/users",element:t.createElement(Zt,null)}),t.createElement(be,{path:"survey/admin/inspect/:year",element:t.createElement(yr,{loadFrom:"/api/survey/inspect/"})}),t.createElement(be,{path:"survey/admin/try/:year",element:t.createElement(yr,{loadFrom:"/api/survey/try/"})}),t.createElement(be,{path:"survey/respond/:year/:nren",element:t.createElement(yr,{loadFrom:"/api/survey/load/",saveTo:"/api/survey/save/"})}),t.createElement(be,{path:"survey/show/:year/:nren",element:t.createElement(yr,{loadFrom:"/api/survey/load/",readonly:!0})}),t.createElement(be,{path:"*",element:t.createElement(qr,null)})))))};var Lr=document.getElementById("root");(0,n.s)(Lr).render(t.createElement(t.StrictMode,null,t.createElement(Mr,null)))})()})(); \ No newline at end of file diff --git a/setup.py b/setup.py index cff824461116549b44c867775c42ac7878d2dffc..142e85999615a310da2e91b4c34ba0107797d836 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name='compendium-v2', - version="0.21", + version="0.22", author='GEANT', author_email='swd@geant.org', description='Flask and React project for displaying ' diff --git a/survey-frontend/package-lock.json b/survey-frontend/package-lock.json index d297ea7f733ba8a0b34aaa305b29f24e76b44fb6..b0b911765cb008cb93808935e3f427dddd9b7316 100644 --- a/survey-frontend/package-lock.json +++ b/survey-frontend/package-lock.json @@ -6286,6 +6286,48 @@ "node": "^10.12.0 || >=12.0.0" } }, + "node_modules/file-loader": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-6.2.0.tgz", + "integrity": "sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "loader-utils": "^2.0.0", + "schema-utils": "^3.0.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/file-loader/node_modules/schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, "node_modules/file-type": { "version": "12.4.2", "resolved": "https://registry.npmjs.org/file-type/-/file-type-12.4.2.tgz", diff --git a/survey-frontend/src/App.tsx b/survey-frontend/src/App.tsx index f0fb675e254ec3514831435ea4578721b4da90d1..4253ad86c795a9e3179be47685d00e432cfd55ae 100644 --- a/survey-frontend/src/App.tsx +++ b/survey-frontend/src/App.tsx @@ -1,25 +1,29 @@ import React, { ReactElement } from "react"; import { BrowserRouter as Router, Routes, Route } from "react-router-dom"; -import ShowUser from './ShowUser'; import SurveyManagementComponent from './SurveyManagementComponent'; import UserManagementComponent from './UserManagementComponent'; -import SurveyComponent from "./SurveyComponent"; - +import SurveyContainerComponent from "./SurveyContainerComponent"; +import ExternalPageNavBar from "shared/ExternalPageNavBar" +import UserProvider from "./providers/UserProvider"; +import Landing from "./Landing"; function App(): ReactElement { return ( <div className="app"> <Router> - <Routes> - <Route path="survey/admin/surveys" element={<SurveyManagementComponent />} /> - <Route path="survey/admin/users" element={<UserManagementComponent />} /> - <Route path="survey/admin/inspect/:year" element={<SurveyComponent loadFrom={'/api/survey/inspect/'} />}/> - <Route path="survey/admin/try/:year" element={<SurveyComponent loadFrom={'/api/survey/try/'} />}/> - <Route path="survey/respond/:year/:nren" element={<SurveyComponent loadFrom={'/api/survey/load/'} saveTo={'/api/survey/save/'} />}/> - <Route path="survey/show/:year/:nren" element={<SurveyComponent loadFrom={'/api/survey/load/'} readonly />}/> - <Route path="*" element={<ShowUser />} /> - </Routes> + <UserProvider> + <ExternalPageNavBar /> + <Routes> + <Route path="survey/admin/surveys" element={<SurveyManagementComponent />} /> + <Route path="survey/admin/users" element={<UserManagementComponent />} /> + <Route path="survey/admin/inspect/:year" element={<SurveyContainerComponent loadFrom={'/api/survey/inspect/'} />} /> + <Route path="survey/admin/try/:year" element={<SurveyContainerComponent loadFrom={'/api/survey/try/'} />} /> + <Route path="survey/respond/:year/:nren" element={<SurveyContainerComponent loadFrom={'/api/survey/load/'} saveTo={'/api/survey/save/'} />} /> + <Route path="survey/show/:year/:nren" element={<SurveyContainerComponent loadFrom={'/api/survey/load/'} readonly />} /> + <Route path="*" element={<Landing />} /> + </Routes> + </UserProvider> </Router> </div> ); diff --git a/survey-frontend/src/Landing.tsx b/survey-frontend/src/Landing.tsx new file mode 100644 index 0000000000000000000000000000000000000000..0381503d23fc3a2f6c4cf9451eeaf99901983246 --- /dev/null +++ b/survey-frontend/src/Landing.tsx @@ -0,0 +1,53 @@ +import React, { ReactElement, useContext } from "react"; +import { useNavigate } from "react-router-dom"; +import { Container, Row } from "react-bootstrap"; +import { userContext } from "./providers/UserProvider"; + +function Landing(): ReactElement { + const { user } = useContext(userContext); + const navigate = useNavigate(); + + const loggedIn = user.id !== undefined; + const hasNren = loggedIn ? !!user.nrens.length : false; + + const activeNren = hasNren ? user.nrens[0] : ''; + + const moveToSurvey = () => { + const currentYear = new Date().getFullYear(); + navigate(`/survey/respond/${currentYear}/${activeNren}`); + return <></> + } + + return ( + <Container className="py-5 grey-container"> + <Row> + <div className="center-text"> + <h1 className="geant-header">THE GÉANT COMPENDIUM OF NRENS SURVEY</h1> + + + <div className="wordwrap pt-4"> + <p style={{ textAlign: "center" }}> + Hello, Welcome to the GÉANT Compendium Survey. + NREN Compendium administrators can click here (link) to complete their registration to fill in the 2023 Compendium survey. + Once your registration has been confirmed you will receive an email from the Compendium administration team. + If you are not sure whether you are a Compendium Administrator for your NREN, please contact your GÉANT Partner Relations relationship manager. + Thank you. + </p> + + <span>Current registration status:</span> + <br /> + <br /> + <p> + {loggedIn ? "You are logged in" : "You are not logged in"} + {loggedIn && !hasNren ? ", but your access to the survey has not been approved" : moveToSurvey()} + </p> + </div> + + + </div> + </Row> + </Container > + ); +} + +export default Landing; diff --git a/survey-frontend/src/ProgressBar.tsx b/survey-frontend/src/ProgressBar.tsx index 062a5c74228ae3ba102413e0f9830868279ec612..728abfc5c8ca5939245e8b1e5c06845c8100ebb8 100644 --- a/survey-frontend/src/ProgressBar.tsx +++ b/survey-frontend/src/ProgressBar.tsx @@ -1,48 +1,102 @@ -import React from "react"; - -function ProgressBar({ - completionPercentage, - unansweredPercentage, - pages, - pageTitle, -}) { - const progressBarContainerStyle: React.CSSProperties = { - display: "flex", - flexWrap: "wrap", - height: "10px", - margin: "5px", - width: `${100 / pages}%`, - }; - - const progressBarFillStyle: React.CSSProperties = { - height: "100%", - transition: "width 0.3s ease", - }; - - const progressBarFillStyleCopy: React.CSSProperties = { - ...progressBarFillStyle, - width: `${completionPercentage}%`, - backgroundColor: "#1ab394", - }; - const unansweredProgressBarFillStyle: React.CSSProperties = { - ...progressBarFillStyle, - width: `${unansweredPercentage}%`, - backgroundColor: "#9d9d9d", - }; - - const pageTitleStyle: React.CSSProperties ={ - width: "100%", - textAlign: "center" - } - - - return ( - <div style={progressBarContainerStyle}> - <div style={progressBarFillStyleCopy} /> - <div style={unansweredProgressBarFillStyle} /> - <div style={pageTitleStyle}>{pageTitle}</div> - </div> - ); +import React, { useEffect, useState } from "react"; +import { Col, Container, Row } from "react-bootstrap"; + +interface Progress { + completionPercentage: number; + unansweredPercentage: number; + totalPages: number; + pageTitle: string; +} + + +function ProgressBar({ surveyModel, pageNoSetter }) { + const [progress, setProgress] = useState<Progress[]>([]); + + + const filterCallback = (question) => { + return question.value !== null && question.value !== undefined; + }; + + + + useEffect(() => { + const calculateProgress = (survey) => { + if (survey && survey.pages) { + const progressArray: Progress[] = []; + survey.pages.forEach((page) => { + const sectionQuestions = page.questions.filter( + (question) => question.startWithNewLine + ); + const questionCount = sectionQuestions.length; + const answeredCount = sectionQuestions.filter(filterCallback).length; + const unansweredCount = questionCount - answeredCount; + const completionPercentage = answeredCount / questionCount; + + + progressArray.push({ + completionPercentage: completionPercentage * 100, + unansweredPercentage: (unansweredCount / questionCount) * 100, + totalPages: survey.pages.length, + pageTitle: page.title, + }); + }); + setProgress(progressArray); + } + }; + + surveyModel.onValueChanged.add((sender) => { + calculateProgress(sender); + }); + + calculateProgress(surveyModel); + }, [surveyModel]); + + + const progressBarStyle: React.CSSProperties = { + height: "0.5rem", + transition: "width 0.3s ease", + }; + + return ( + <Container className="survey-progress"> + <Row> + {progress.map((sectionProgress, index) => ( + <Col xs={12} md key={index} onClick={() => pageNoSetter(index)} style={{ cursor: "pointer", margin: '0.5rem' }}> + <div> + <span style={{ + whiteSpace: "nowrap", + fontSize: "1.5rem", + marginRight: "0.25rem", + fontWeight: "bold", + color: "#2db394", + }}>{index + 1}</span> + <span style={{ + whiteSpace: "nowrap", + ...(surveyModel.currentPageNo == index) && { + fontWeight: "bold", + }, + }}>{sectionProgress.pageTitle}</span> + <div style={{ display: "flex", flexWrap: "wrap" }}> + + <div style={{ + ...progressBarStyle, + width: `${sectionProgress.completionPercentage}%`, + backgroundColor: "#262261", + }} /> + <div style={{ + ...progressBarStyle, + width: `${sectionProgress.unansweredPercentage}%`, + backgroundColor: "#cdcdcd", + }} /> + + </div> + </div> + + </Col> + + ))} + </Row> + </Container>); } export default ProgressBar; diff --git a/survey-frontend/src/Schema.tsx b/survey-frontend/src/Schema.tsx new file mode 100644 index 0000000000000000000000000000000000000000..b3bc786d5df529e45b4d5345289c3aa6c85ba164 --- /dev/null +++ b/survey-frontend/src/Schema.tsx @@ -0,0 +1,28 @@ +export interface User { + id: string, + email: string, + role: string, + name: string, + oidc_sub: string, + nrens: string[], + permissions: { + admin: boolean, + active: boolean, + }, + editable: boolean, +} + +export interface Nren { + id: string, + name: string, + country: string +} + +export enum VerificationStatus { + New = "new", // a question that was not answered last year + Answered = "answered", // a question that was not answered last year but has an answer now + Unverified = "unverified", // a question that has its answered copied from last year + Verified = "verified", // a question for which last years answer was verified + Edited = "edited" // a question for which last years answer was edited +} + diff --git a/survey-frontend/src/SurveyComponent.tsx b/survey-frontend/src/SurveyComponent.tsx index cf20f9a36efc0640e10e11a44a5076ecf6aaee28..bc9607b3bc31e1e1c1a419648c139cfd06d13f45 100644 --- a/survey-frontend/src/SurveyComponent.tsx +++ b/survey-frontend/src/SurveyComponent.tsx @@ -1,281 +1,105 @@ -import React, { useState, useEffect, useRef } from "react"; -import { Model, Serializer, ComputedUpdater, Question, FunctionFactory } from "survey-core"; +import React, { useEffect } from "react"; +import { Question, FunctionFactory } from "survey-core"; import { Survey } from "survey-react-ui"; -import "survey-core/modern.min.css"; -import './survey.scss'; -import ProgressBar from "./ProgressBar"; -import { useParams } from "react-router-dom"; +import { VerificationStatus } from './Schema'; -Serializer.addProperty("itemvalue", "customDescription:text"); -Serializer.addProperty("question", "hideCheckboxLabels:boolean"); +function SurveyComponent({ surveyModel, verificationStatus }) { -interface Progress { - completionPercentage: number; - unansweredPercentage: number; - totalPages: number; - pageTitle: string; -} -enum VerificationStatus { - New = "new", // a question that was not answered last year - Answered = "answered", // a question that was not answered last year but has an answer now - Unverified = "unverified", // a question that has its answered copied from last year - Verified = "verified", // a question for which last years answer was verified - Edited = "edited" // a question for which last years answer was edited -} - - -function SurveyComponent({ loadFrom, saveTo = '', readonly = false}) { - const [surveyModel, setSurveyModel] = useState<Model>(); - const [progress, setProgress] = useState<Progress[]>([]); - const verificationStatus = useRef<Map<string, VerificationStatus>>(new Map()); - const { year, nren } = useParams(); - - function setVerifyButton(question: Question, state: VerificationStatus) { - - verificationStatus.current.set(question.name, state); - - const btn = document.createElement("button"); - btn.type = "button"; - btn.className = "sv-action-bar-item verification"; - btn.innerHTML = state; - - if (state == VerificationStatus.Unverified) { - btn.innerHTML = "Verify last years data"; - btn.className += " verification-required"; - btn.onclick = function () { - question.validate(); - setVerifyButton(question, VerificationStatus.Verified) - } - } else { - btn.className += " verification-ok"; - } - - const selector = '[data-name="' + question.name + '"]'; - const header = document.querySelector(selector)?.querySelector('h5'); - const old = header?.querySelector(".verification"); - if (old) { - old.replaceWith(btn); - } else { - header?.appendChild(btn); - } - } - - // const surveyComplete = useCallback((sender) => { - // console.log(sender.data); - // }, []); - - function saveSurveyData (survey, success?, failure?) { - if (saveTo == '') { - return; - } - const xhr = new XMLHttpRequest(); - xhr.open("POST", saveTo + year + '/' + nren); - xhr.setRequestHeader("Content-Type", "application/json; charset=utf-8"); - xhr.onload = xhr.onerror = () => { - if (xhr.status == 200 && success) { - success(); - } else if (xhr.status != 200 && failure) { - failure(); - } - } - const saveData = { - data: survey.data, - page: survey.currentPageNo, - verification_status: Object.fromEntries(verificationStatus.current) - } - xhr.send(JSON.stringify(saveData)); - } - - async function getModel() { - const response = await fetch(loadFrom + year + (nren ? '/' + nren : '')) // year is always set, nren stays empty for inspect and try - const json = await response.json(); - for (const questionName in json["verification_status"]) { - verificationStatus.current.set(questionName, json["verification_status"][questionName]); - } - const survey = new Model(json['model']); - - if (readonly) { - survey.mode = 'display'; + function validateWebsiteUrl(params) { + const value = params[0]; + if (value === undefined || value == null || value == '') { + return true; + } + try { + const url = new URL(value); + return url.protocol === 'http:' || url.protocol === 'https:'; + } catch (err) { + return false; + } } - function validateWebsiteUrl (params) { - const value = params[0]; - if (value === undefined || value == null || value == '') { - return true; - } - try { - const url = new URL(value); - return url.protocol === 'http:' || url.protocol === 'https:'; - } catch (err) { - return false; - } - } + useEffect(() => { - FunctionFactory.Instance.register("validateWebsiteUrl", validateWebsiteUrl); - survey.setVariable('surveyyear', year); - survey.setVariable('previousyear', parseInt(year!) - 1); + function setVerifyButton(question: Question, state: VerificationStatus) { - survey.data = json['data']; - survey.clearIncorrectValues(true); // TODO test if this really removes all old values and such + verificationStatus.current.set(question.name, state); - survey.currentPageNo = json['page']; + const btn = document.createElement("button"); + btn.type = "button"; + btn.className = "sv-action-bar-item verification"; + btn.innerHTML = state; - survey.addNavigationItem({ - id: "sv-nav-compendium-complete", - title: "Complete", - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-expect-error: visible may be a ComputedUpdater but the types are not (yet?) aware of this - visible: new ComputedUpdater(() => survey.isLastPage), - action: () => { - let firstValidationError = ''; - const verificationValidator = (survey, options) => { - const status = verificationStatus.current.get(options.name); - if (status == VerificationStatus.Unverified) { - if (firstValidationError == '') { - firstValidationError = options.name; + if (state == VerificationStatus.Unverified) { + btn.innerHTML = "No change from previous year"; + btn.className += " verification-required"; + btn.onclick = function () { + question.validate(); + setVerifyButton(question, VerificationStatus.Verified) + } + } else { + btn.className += " verification-ok"; } - options.error = 'Please verify that last years data is correct by editing the value or pressing the verification button!'; - } - }; - survey.onValidateQuestion.add(verificationValidator); - const validSurvey = survey.validate(); - survey.onValidateQuestion.remove(verificationValidator); - if (validSurvey) { - survey.completeLastPage(); // continue with usual completion process - } else { - survey.focusQuestion(firstValidationError); - } - }, - innerCss: "sv-btn sv-btn--navigation sv-footer__complete-btn" - }); - - survey.addNavigationItem({ - id: "sv-nav-compendium-save", - title: "Save", - action: (context) => { - console.log(context); - saveSurveyData(survey); - // notification doesnt show up in the right place, maybe fix with CSS. Also see settings.notifications.lifetime if you want to fix this - // but probably easier/better to just use react popup everywhere instead - // survey.notify('Saved!', "success"); - }, - innerCss: "sv-btn sv-btn--navigation sv-footer__complete-btn" - }); - - survey.onComplete.add((sender, options) => { - options.showSaveInProgress(); - saveSurveyData(sender, () => options.showSaveSuccess(), () => options.showSaveError()); - }); - survey.onAfterRenderQuestion.add(function (survey, options) { - const status = verificationStatus.current.get(options.question.name); - if (status) { - setVerifyButton(options.question, status); - } - }); + const selector = '[data-name="' + question.name + '"]'; + const header = document.querySelector(selector)?.querySelector('h5'); - survey.onValueChanged.add(function (survey, options) { - const currentStatus = verificationStatus.current.get(options.question.name); - if (currentStatus == VerificationStatus.New) { - setVerifyButton(options.question, VerificationStatus.Answered); - } else if (currentStatus == VerificationStatus.Unverified) { - setVerifyButton(options.question, VerificationStatus.Edited); - } - }); - - survey.onUpdateQuestionCssClasses.add(function (_, options) { - if (options.question.hideCheckboxLabels) { - const classes = options.cssClasses; - classes.root += " hidden-checkbox-labels"; - } - }); - - survey.onMatrixAfterCellRender.add((survey, options) => { - // get the customDescription for matrix rows and set it in the title - // attribute so that it shows up as a hover popup - // NB I would have preferred using onAfterRenderQuestion, but unfortunately that is - // not always triggered on re-renders (specifically when extra column become visble or invisible) + // check if the header has class 'sv-header-flex' and if not, add it + if (header && !header.classList.contains('sv-header-flex')) { + header.classList.add('sv-header-flex'); + } - if (options.column['indexValue'] == 0 && 'item' in options.row) { - const item = options.row['item'] as object; - if (item['customDescription'] !== undefined) { - options.htmlElement.parentElement?.children[0].setAttribute( - "title", - item['customDescription'] - ); + const old = header?.querySelector(".verification"); + if (old) { + old.replaceWith(btn); + } else { + header?.appendChild(btn); + } } - } - }); - - survey.onCurrentPageChanged.add((sender) => { - console.log("sender--> " + sender); - calculateProgress(sender); - }); - setSurveyModel(survey); - } - const filterCallback = (question) => { - return question.value !== null && question.value !== undefined; - }; + FunctionFactory.Instance.register("validateWebsiteUrl", validateWebsiteUrl); - const calculateProgress = (survey) => { - // console.log("survey--> "+ survey); - if (survey && survey.pages) { - console.log("survey.page--> " + survey.pages); - const progressArray: Progress[] = []; - survey.pages.forEach((page) => { - const sectionQuestions = page.questions.filter( - (question) => question.startWithNewLine - ); - const questionCount = sectionQuestions.length; - const answeredCount = sectionQuestions.filter(filterCallback).length; - const unansweredCount = questionCount - answeredCount; - const completionPercentage = answeredCount / questionCount; + surveyModel.onAfterRenderQuestion.add(function (survey, options) { + const status = verificationStatus.current.get(options.question.name); + if (status) { + setVerifyButton(options.question, status); + } + }); + surveyModel.onValueChanged.add(function (survey, options) { + const currentStatus = verificationStatus.current.get(options.question.name); + if (currentStatus == VerificationStatus.New) { + setVerifyButton(options.question, VerificationStatus.Answered); + } else if (currentStatus == VerificationStatus.Unverified) { + setVerifyButton(options.question, VerificationStatus.Edited); + } + }); - progressArray.push({ - completionPercentage: completionPercentage * 100, - unansweredPercentage: (unansweredCount / questionCount) * 100, - totalPages: survey.pages.length, - pageTitle: page.title, + surveyModel.onUpdateQuestionCssClasses.add(function (_, options) { + if (options.question.hideCheckboxLabels) { + const classes = options.cssClasses; + classes.root += " hidden-checkbox-labels"; + } }); - }); - setProgress(progressArray); - } - }; - useEffect(() => { - getModel(); - }, []); + surveyModel.onMatrixAfterCellRender.add((survey, options) => { + // get the customDescription for matrix rows and set it in the title + // attribute so that it shows up as a hover popup + // NB I would have preferred using onAfterRenderQuestion, but unfortunately that is + // not always triggered on re-renders (specifically when extra column become visble or invisible) + + if (options.column['indexValue'] == 0 && 'item' in options.row) { + const item = options.row['item'] as object; + if (item['customDescription'] !== undefined) { + options.htmlElement.parentElement?.children[0].setAttribute("title", item['customDescription']); + } + } + }); - useEffect(() => { - if (surveyModel) { - calculateProgress(surveyModel); - } - }, [surveyModel]); + }, [surveyModel, verificationStatus]); - if (surveyModel) { - return ( - <div className="survey-container"> - <div className="survey-progress"> - {progress.map((sectionProgress, index) => ( - <ProgressBar - key={index} - completionPercentage={sectionProgress.completionPercentage} - unansweredPercentage={sectionProgress.unansweredPercentage} - pages={sectionProgress.totalPages} - pageTitle={sectionProgress.pageTitle} - /> - ))} - </div> - <Survey model={surveyModel} /> - </div> - ); - } else { - return <span>loading...</span>; - } + return <Survey model={surveyModel} /> } export default SurveyComponent; diff --git a/survey-frontend/src/SurveyContainerComponent.tsx b/survey-frontend/src/SurveyContainerComponent.tsx new file mode 100644 index 0000000000000000000000000000000000000000..c419e97113f61234846d1e7c625b4ee699d589ac --- /dev/null +++ b/survey-frontend/src/SurveyContainerComponent.tsx @@ -0,0 +1,139 @@ +import React, { useEffect, useRef, useState } from "react"; +import { Model, Serializer } from "survey-core"; +import { useParams } from "react-router-dom"; +import SurveyComponent from "./SurveyComponent"; +import SurveyNavigationComponent from "./SurveyNavigationComponent"; +import { VerificationStatus } from './Schema'; +import "survey-core/modern.min.css"; +import './survey.scss'; +import { Container, Row } from "react-bootstrap"; + +Serializer.addProperty("itemvalue", "customDescription:text"); +Serializer.addProperty("question", "hideCheckboxLabels:boolean"); + + +function SurveyContainerComponent({ loadFrom, saveTo = '', readonly = false }) { + const [surveyModel, setSurveyModel] = useState<Model>(); + const verificationStatus = useRef<Map<string, VerificationStatus>>(new Map()); + const { year, nren } = useParams(); + + useEffect(() => { + getModel(); + }, []); + + if (surveyModel === undefined) { + return 'loading survey...' + } + + async function getModel() { + const response = await fetch(loadFrom + year + (nren ? '/' + nren : '')) // year is always set, nren stays empty for inspect and try + const json = await response.json(); + + for (const questionName in json["verification_status"]) { + verificationStatus.current.set(questionName, json["verification_status"][questionName]); + } + + const survey = new Model(json['model']); + survey.setVariable('surveyyear', year); + survey.setVariable('previousyear', parseInt(year!) - 1); + + survey.data = json['data']; + survey.clearIncorrectValues(true); // TODO test if this really removes all old values and such + survey.currentPageNo = json['page']; + survey.showNavigationButtons = false; + survey.showTOC = false; + if (readonly) { + survey.mode = 'display'; + } + + setSurveyModel(survey); + } + + function saveSurveyData(survey, success?, failure?) { + if (saveTo == '') { + return; + } + const xhr = new XMLHttpRequest(); + xhr.open("POST", saveTo + year + '/' + nren); + xhr.setRequestHeader("Content-Type", "application/json; charset=utf-8"); + xhr.onload = xhr.onerror = () => { + if (xhr.status == 200 && success) { + success(); + } else if (xhr.status != 200 && failure) { + failure(); + } + } + const saveData = { + data: survey.data, + page: survey.currentPageNo, + verification_status: Object.fromEntries(verificationStatus.current) + } + xhr.send(JSON.stringify(saveData)); + } + + const saveSurvey = () => { saveSurveyData(surveyModel); }; + + const endSurvey = () => { + let firstValidationError = ''; + const verificationValidator = (survey, options) => { + const status = verificationStatus.current.get(options.name); + if (status == VerificationStatus.Unverified) { + if (firstValidationError == '') { + firstValidationError = options.name; + } + options.error = 'Please verify that last years data is correct by editing the value or pressing the verification button!'; + } + }; + surveyModel.onValidateQuestion.add(verificationValidator); + const validSurvey = surveyModel.validate(); + surveyModel.onValidateQuestion.remove(verificationValidator); + if (validSurvey) { + // TODO replace the following with our own notifications: + surveyModel.options.showSaveInProgress(); + saveSurveyData(surveyModel, () => surveyModel.showSaveSuccess(), () => surveyModel.showSaveError()); + } else { + surveyModel.focusQuestion(firstValidationError); + } + }; + + const validatePage = () => { + // TODO remove duplication with funtion above and perhaps also first focus normal validation errors and only afterwards the verification validation errors + let firstValidationError = ''; + const verificationValidator = (survey, options) => { + const status = verificationStatus.current.get(options.name); + if (status == VerificationStatus.Unverified) { + if (firstValidationError == '') { + firstValidationError = options.name; + } + options.error = 'Please verify that last years data is correct by editing the value or pressing the verification button!'; + } + }; + surveyModel.onValidateQuestion.add(verificationValidator); + const validSurvey = surveyModel.validateCurrentPage(); + surveyModel.onValidateQuestion.remove(verificationValidator); + if (validSurvey) { + // TODO some notification + } else { + surveyModel.focusQuestion(firstValidationError); + } + } + + return ( + <Container className="survey-container"> + <Row className="survey-content"> + <h2><span className="survey-title">Compendium Survey</span><span className="survey-title-nren">{nren}</span></h2> + <span className="survey-description">How to complete this survey - + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam commodo tempus pulvinar. Aenean interdum lectus nec diam porttitor interdum. + Sed efficitur, magna ut dignissim consequat, purus lacus aliquam tortor, ut dignissim orci ligula ac ligula.</span> + + </Row> + <Row> + <SurveyNavigationComponent surveyModel={surveyModel} endSurvey={endSurvey} saveSurvey={saveSurvey} validatePage={validatePage} readonly={readonly}> + <SurveyComponent surveyModel={surveyModel} verificationStatus={verificationStatus} /> + </SurveyNavigationComponent> + </Row> + </Container> + ); +} + +export default SurveyContainerComponent; diff --git a/survey-frontend/src/SurveyNavigationComponent.tsx b/survey-frontend/src/SurveyNavigationComponent.tsx new file mode 100644 index 0000000000000000000000000000000000000000..3a7acc588db4a9b66b3f75d63b7623f4e1492a36 --- /dev/null +++ b/survey-frontend/src/SurveyNavigationComponent.tsx @@ -0,0 +1,64 @@ +import React, { useEffect, useState } from "react"; +import ProgressBar from './ProgressBar'; +import { Container, Row } from "react-bootstrap"; + + +function SurveyNavigationComponent({ surveyModel, endSurvey, saveSurvey, validatePage, children, readonly }) { + const [pageNo, setPageNo] = useState(0); + useEffect(() => { + setPageNo(surveyModel.currentPageNo) + }, [surveyModel]); + + const pageNoSetter = (page) => { + setPageNo(page); + surveyModel.currentPageNo = page; + } + const decrementPageNo = () => { pageNoSetter(surveyModel.currentPageNo - 1); }; + const incrementPageNo = () => { pageNoSetter(surveyModel.currentPageNo + 1); }; + + const renderButton = (text, func) => { + // TODO add sv-footer__complete-btn for complete button, and save button perhaps too? + return ( + <button className="sv-btn sv-btn--navigation" onClick={func}> + {text} + </button> + ); + }; + + const renderExternalNavigation = () => { + if (readonly) { + return <></>; + } + return ( + <div className="navigation-block"> + <div className="navigation-progress-container"> + <div className="navigation-buttons-container"> + {(pageNo === surveyModel.visiblePages.length - 1) && renderButton('Complete Survey', endSurvey)} + {renderButton('Save progress', saveSurvey)} + {/* {(pageNo !== surveyModel.visiblePages.length - 1) && renderButton('Next Page', incrementPageNo)} */} + {/* {renderButton('Validate Page', validatePage)} */} + {/* {pageNo !== 0 && renderButton('Previous Page', decrementPageNo)} */} + </div> + </div> + </div> + ); + }; + + return ( + <Container> + <Row> + {renderExternalNavigation()} + </Row> + <Row> + <ProgressBar surveyModel={surveyModel} pageNoSetter={pageNoSetter} /> + {children} + </Row> + <Row> + {renderExternalNavigation()} + </Row> + + </Container> + ); +} + +export default SurveyNavigationComponent; diff --git a/survey-frontend/src/UserManagementComponent.tsx b/survey-frontend/src/UserManagementComponent.tsx index 5c0235b874d6f02370d524daceacba0c901bd287..78d8b5dd9ca1bbc0d22c070bc510977e8dbe903f 100644 --- a/survey-frontend/src/UserManagementComponent.tsx +++ b/survey-frontend/src/UserManagementComponent.tsx @@ -1,4 +1,7 @@ -import React, { useState, useEffect } from "react"; +import React, { useState, useEffect, useContext } from "react"; +import { Button, Table } from "react-bootstrap"; +import { userContext } from "./providers/UserProvider"; +import { User, Nren } from "./Schema"; async function fetchUsers(): Promise<User[]> { @@ -12,33 +15,188 @@ async function fetchUsers(): Promise<User[]> { } } -interface User { - id: string, - email: string, - roles: string, - active: boolean, - nrens: string[] +async function fetchNrens(): Promise<Nren[]> { + try { + const response = await fetch('/api/nren/list'); + const userList = await response.json(); + return userList + } catch (error) { + console.log('handle this better..'); + return []; + } } +const saveUser = (user) => { + const requestOptions = { + method: 'PUT', + headers: { + 'Content-Type': 'application/json', + }, + body: JSON.stringify(user), + }; + + fetch('/api/user', requestOptions) + .then((response) => { + return response.json(); + }) + .catch((error) => { + const response = error.response; + response.json().then((json) => { + console.log(json); + }); + }); +}; + + function UserManagementComponent() { const [users, setUsers] = useState<User[]>([]); + const [nrens, setNrens] = useState<Nren[]>([]); + const { user: loggedInUser } = useContext(userContext); + console.log(loggedInUser) useEffect(() => { // Fetch user fetchUsers().then((userList) => { setUsers(userList); }); + + fetchNrens().then((nrenList) => { + setNrens(nrenList.sort((a, b) => a.name.localeCompare(b.name))) + }) }, []); + const handleEdit = (user: User) => { + const index = users.findIndex((u) => u.id === user.id); + const updatedUsers = [...users]; + updatedUsers[index].editable = true; + setUsers(updatedUsers); + }; + + const handleSave = (user: User) => { + const index = users.findIndex((u) => u.id === user.id); + const updatedUsers = [...users]; + updatedUsers[index].editable = false; + setUsers(updatedUsers); + + // Persist the changes to the server + saveUser(user); + }; + + const handleInputChange = (event: React.ChangeEvent<HTMLInputElement | HTMLSelectElement>, user: User) => { + const index = users.findIndex((u) => u.id === user.id); + const updatedUsers = [...users]; + + const { name, type } = event.target; + if (type === 'checkbox') { + user[name] = (event.target as HTMLInputElement).checked ? true : false; + } else { + user[name] = (event.target as HTMLInputElement).value; + } + + if (event.target.name === 'nrens') { + updatedUsers[index].nrens = [event.target.value]; + console.log("updated nren") + } + setUsers(updatedUsers); + }; + + const findNren = (value) => { + return nrens.find((nren) => { + return nren.id == value || nren.name == value + })?.name + } + return ( <div> - <table> - {users.map(user => ( - <tr key={user.id}> - {user.id} - {user.email} - {user.active ? 'active' : 'inactive'} - {user.roles} - {user.nrens.join()} - </tr> - ))} - </table> + <h1> User Management Page</h1> + <Table> + <thead> + <tr> + <th className='pt-3' style={{ border: "1px solid #ddd" }}> Id </th> + <th className='pt-3' style={{ border: "1px solid #ddd" }}> Active </th> + <th className='pt-3' style={{ border: "1px solid #ddd" }}> Roles </th> + <th className='pt-3' style={{ border: "1px solid #ddd" }}> Email</th> + <th className='pt-3' style={{ border: "1px solid #ddd" }}> Full Name</th> + <th className='pt-3' style={{ border: "1px solid #ddd" }}> OIDC Sub</th> + <th className='pt-3' style={{ border: "1px solid #ddd" }}> NREN</th> + <th className="pt-3" style={{ border: "1px solid #ddd" }}>Actions</th> + </tr> + </thead> + <tbody> + {users.map(user => ( + <tr key={user.id}> + <td style={{ border: "1px dotted #ddd" }}>{user.id}</td> + <td style={{ border: "1px dotted #ddd" }}> + {user.editable ? ( + <input + type="checkbox" + name="active" + checked={user.permissions.active} + onChange={(event) => handleInputChange(event, user)} + /> + ) : ((user.permissions.active ? 'Active' : 'Inactive'))} + </td> + <td style={{ border: "1px dotted #ddd" }}> + {user.editable ? ( + <select + name="roles" + value={user.role} + onChange={(event) => handleInputChange(event, user)}> + <option value="admin">Admin</option> + <option value="user">User</option> + </select> + ) : ( + user.role + )} + </td> + + <td style={{ border: "1px dotted #ddd" }}> + {(user.email)} + </td> + <td style={{ border: "1px dotted #ddd" }}> + {(user.name)} + </td> + <td style={{ border: "1px dotted #ddd" }}> + {(user.oidc_sub)} + </td> + <td style={{ border: '1px dotted #ddd' }}> + {user.editable ? ( + nrens.length > 0 ? ( + <select + name="nrens" + multiple={false} + defaultValue={user.nrens.length > 0 ? nrens.find((nren) => { + return nren.name == user.nrens[0] || nren.id == user.nrens[0] + })?.id : undefined} + onChange={(event) => handleInputChange(event, user)}> + <option> + Select NREN + </option> + {nrens.map((nren) => ( + <option key={nren.id} value={nren.id}> + {nren.name} + </option> + ))} + </select> + ) : ( + <div>No options available</div> + ) + ) : ( + (user.nrens?.length || 0) > 0 ? findNren(user.nrens[0]) : "NREN not selected" + )} + </td> + <td style={{ border: "1px dotted #ddd" }}> + {loggedInUser?.role == 'admin' && user.editable ? ( + <Button onClick={() => handleSave(user)}>Save</Button> + ) : loggedInUser?.role == 'admin' && !user.editable ? ( + <Button onClick={() => handleEdit(user)}>Edit</Button> + ) : null} + </td> + </tr> + ))} + </tbody> + + </Table> </div> ); diff --git a/survey-frontend/src/providers/UserProvider.tsx b/survey-frontend/src/providers/UserProvider.tsx new file mode 100644 index 0000000000000000000000000000000000000000..44bc874497441c86d5cf2006f73bfab76f3ae62c --- /dev/null +++ b/survey-frontend/src/providers/UserProvider.tsx @@ -0,0 +1,48 @@ +import React, { createContext, useState, useEffect } from 'react'; +import { User } from '../Schema'; + +interface Props { + children: React.ReactNode; +} + + +async function fetchUser(): Promise<User> { + const response = await fetch('/api/user'); + const user = await response.json(); + return user +} + +const anonymousUser: User = { 'name': '', email: '', permissions: { admin: false, active: false }, editable: false, id: '', nrens: [], oidc_sub: '', role: '' }; + +const userContext = createContext<{ + user: User; + logout: () => void; +}>({ + user: anonymousUser, + logout: () => { } +}); + + +const UserProvider: React.FC<Props> = ({ children }) => { + const [user, setUser] = useState<User>(anonymousUser); + + async function logoutUser() { + await fetch('/logout'); + setUser(anonymousUser); + } + + useEffect(() => { + fetchUser().then(user => { + setUser(user) + }); + }, []); + + return ( + <userContext.Provider value={{ user, logout: logoutUser }}> + {children} + </userContext.Provider> + ); +}; + +export { userContext }; +export default UserProvider; \ No newline at end of file diff --git a/survey-frontend/src/survey.scss b/survey-frontend/src/survey.scss index ecaccf3b53bb806ed8ccbd0d5d69cd53e133a551..f13086b80725fb2ab443ba8a6004765827b68cf8 100644 --- a/survey-frontend/src/survey.scss +++ b/survey-frontend/src/survey.scss @@ -1,8 +1,32 @@ +@import '../../compendium-frontend/src/main.scss'; .hidden-checkbox-labels .sv-checkbox .sv-item__control-label { visibility: hidden; } +.survey-title { + color: #2db394; +} + +.survey-description { + color: #262261; + font-weight: 400; +} + +.survey-title:after { + content: ''; + display: inline-block; + width: 0.1rem; + height: 1em; + background-color: #2db394; + margin: 0 .5rem; + vertical-align: middle; +} + +.survey-title-nren { + color: #262261; +} + #sv-nav-complete { width: 0px; height: 0px; @@ -10,22 +34,94 @@ visibility: hidden; } +.sv-header-flex { + display: flex; + justify-content: space-between; + align-items: center; + border-radius: 2rem; + color: #2db394; + font-weight: bold; + padding-left: 1rem !important; +} + +.sv-container-modern__title { + display: none; +} + +.sv-title.sv-page__title { + // display: none; + // all: unset; + font-size: 1.5rem; + font-weight: bold; + color: #2db394; + margin-bottom: 0.25rem; +} + +.sv-title.sv-panel__title { + color: #262261 +} + +.sv-description { + font-weight: bold; + color: #262261 +} + +.sv-text { + border-bottom: .2rem dotted var(--text-border-color, #d4d4d4) +} + .verification { + min-height: 1.5rem; + order: 2; // Make sure the button comes last + margin-left: auto; // Push button to the right display: inline-block; - margin-left: 20px; + border-radius: 1rem; + padding: 0 1rem; + margin-top: 0.25rem; + margin-bottom: 0.25rem; + margin-right: .4rem; + box-shadow: 0 0 2px 2px #2db394; } .verification-required { - color: red; - border-style: solid; - border-width: 1px; + font-size: 0.85rem; + font-weight: bold; + text-transform: uppercase; + background-color: white; +} + +.verification-ok { + color: white; + font-size: 0.85rem; + font-weight: bold; + text-transform: uppercase; + background-color: #2db394; + + // disable hover/clicking/... for the button when verified + pointer-events: none; + } .sv-action-bar-item.verification.verification-ok:hover { cursor: auto; - background-color: transparent; + background-color: #2db394; } +.survey-content, .survey-progress { - display: flex; + padding-right: 5rem; + padding-left: 5rem; +} + +.survey-container { + + margin-top: 2.5rem; + + // limit the width on very large screens + @media screen and (min-width: 1441px) { + max-width: 65vw; + } + + // default to 100vw + max-width: 100vw; } \ No newline at end of file diff --git a/survey-frontend/src/types/images.d.ts b/survey-frontend/src/types/images.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..1a6a03f450bc6b85f3cf7d5643592fa48df7558d --- /dev/null +++ b/survey-frontend/src/types/images.d.ts @@ -0,0 +1,6 @@ +declare module '*png'; +declare module '*svg'; +declare module '*jpg'; +declare module '*jpeg'; +declare module '*gif'; +declare module '*webp'; diff --git a/survey-frontend/webpack.config.ts b/survey-frontend/webpack.config.ts index c0a0f579118fc4c8370e4ffd2f61ef3d431f2e31..96951f64685032f6cfabfbd517d031e84740e0d9 100644 --- a/survey-frontend/webpack.config.ts +++ b/survey-frontend/webpack.config.ts @@ -41,39 +41,15 @@ const config: Configuration = { }, { test: /\.(png|svg|jpe?g|gif)$/, - include: /images/, - use: [ - { - loader: "file-loader", - options: { - name: "[name].[ext]", - outputPath: "images/" - }, - }, - { - loader: "image-webpack-loader", - options: { - query: { - mozjpeg: { - progressive: true, - }, - gifsicle: { - interlaced: true, - }, - optipng: { - optimizationLevel: 7, - }, - }, - }, - }, - ], + type: 'asset/resource' }, ], }, resolve: { - extensions: [".tsx", ".ts", ".js", ".html"], + extensions: [".tsx", ".ts", ".js", ".html", '.svg'], alias: { shared: path.resolve(__dirname, '../compendium-frontend/src/shared/'), + react: path.resolve('./node_modules/react'), // necessary to prevent react from being loaded twice in shared components }, }, output: { diff --git a/test/__init__.py b/test/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/test/conftest.py b/test/conftest.py index fa53adf02f5980e1f43bb42020b82baad7ab484e..001aee506856395d69d023cb33d57a2aef8bb204 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -3,9 +3,12 @@ import os import pytest import random +from sqlalchemy import select +from flask_login import LoginManager # type: ignore import compendium_v2 from compendium_v2.db import db, model, survey_model from compendium_v2.survey_db import model as survey_db_model +from compendium_v2.auth.session_management import setup_login_manager, User, ROLES def _test_data_csv(filename): @@ -22,6 +25,38 @@ def dummy_config(): } +@pytest.fixture +def mocked_admin_user(app, mocker): + with app.app_context(): + user = User(email='testemail123@email.local', fullname='testfullname', oidc_sub='fakesub', roles=ROLES.admin) + + nren2 = db.session.scalar(select(model.NREN).filter(model.NREN.name == 'nren2')) + user.nrens.append(nren2) + db.session.add(user) + db.session.commit() + + def user_loader(*args): + return user + mocker.patch('flask_login.utils._get_user', user_loader) + yield user + + +@pytest.fixture +def mocked_user(app, mocker): + with app.app_context(): + user = User(email='testemail123@email.local', fullname='testfullname', oidc_sub='fakesub') + + nren2 = db.session.scalar(select(model.NREN).filter(model.NREN.name == 'nren2')) + user.nrens.append(nren2) + db.session.add(user) + db.session.commit() + + def user_loader(*args): + return user + mocker.patch('flask_login.utils._get_user', user_loader) + yield user + + @pytest.fixture def test_budget_data(app): with app.app_context(): @@ -124,7 +159,7 @@ def test_survey_data(app): survey2022 = survey_model.Survey( year=2022, survey={'part1': [{'title': 'ha', 'visibleIf': 'false'}]}, - status=survey_model.SurveyStatus.published + status=survey_model.SurveyStatus.open ) db.session.add_all([survey2021, survey2022]) @@ -141,6 +176,11 @@ def test_survey_data(app): @pytest.fixture def app(dummy_config): app = compendium_v2._create_app_with_db(dummy_config) + app.config['LOGIN_DISABLED'] = True # disable login and admin_required decorators + login_manager = LoginManager() + login_manager.init_app(app) + login_manager.login_view = 'authentication.login' + setup_login_manager(login_manager) with app.app_context(): db.create_all(bind_key=None) yield app diff --git a/test/test_survey.py b/test/test_survey.py index b4b4d4f6aa64d0d62bc353139cf131988732ac05..d832cc1a689b7d2dc6afc71f5a36deac1c379eb8 100644 --- a/test/test_survey.py +++ b/test/test_survey.py @@ -1,5 +1,7 @@ import json import jsonschema +from compendium_v2.db import db +from compendium_v2.db.survey_model import Survey, SurveyStatus from compendium_v2.routes.survey import LIST_SURVEYS_RESPONSE_SCHEMA, SURVEY_RESPONSE_SCHEMA, VerificationStatus @@ -13,7 +15,20 @@ def test_survey_route_list_response(client, test_survey_data): assert result -def test_survey_route_new(client, test_survey_data): +def test_survey_route_new(app, client, test_survey_data, mocked_user): + rv = client.post( + '/api/survey/new', + headers={'Accept': ['application/json']}) + assert rv.status_code == 400 + result = json.loads(rv.data.decode('utf-8')) + assert not result.get('success') + + # mark all surveys as published + with app.app_context(): + for survey in db.session.query(Survey).all(): + survey.status = SurveyStatus.published + db.session.commit() + rv = client.post( '/api/survey/new', headers={'Accept': ['application/json']}) @@ -27,13 +42,26 @@ def test_survey_route_new(client, test_survey_data): assert rv.status_code != 200 -def test_survey_route_open_close(client, test_survey_data): +def test_survey_route_open_close(app, client, test_survey_data, mocked_user): + rv = client.post( + '/api/survey/new', + headers={'Accept': ['application/json']}) + assert rv.status_code == 400 + result = json.loads(rv.data.decode('utf-8')) + assert not result.get('success') + + # mark all surveys as published + with app.app_context(): + for survey in db.session.query(Survey).all(): + survey.status = SurveyStatus.published + db.session.commit() + rv = client.post( '/api/survey/new', headers={'Accept': ['application/json']}) assert rv.status_code == 200 result = json.loads(rv.data.decode('utf-8')) - assert result == {'success': True} + assert result.get('success') rv = client.post( '/api/survey/open/2023', @@ -60,13 +88,25 @@ def test_survey_route_open_close(client, test_survey_data): assert rv.status_code != 200 -def test_survey_route_publish(client, test_survey_data): +def test_survey_route_publish(app, client, test_survey_data, mocked_admin_user): + rv = client.post( + '/api/survey/publish/2022', + headers={'Accept': ['application/json']}) + assert rv.status_code == 400 + result = json.loads(rv.data.decode('utf-8')) + assert not result.get('success') + + with app.app_context(): + survey = db.session.scalar(Survey.query.filter(Survey.year == 2022)) + survey.status = SurveyStatus.closed + db.session.commit() + rv = client.post( '/api/survey/publish/2022', headers={'Accept': ['application/json']}) assert rv.status_code == 200 result = json.loads(rv.data.decode('utf-8')) - assert result == {'success': True} + assert result.get('success') def test_survey_route_try_response(client, test_survey_data): @@ -89,7 +129,7 @@ def test_survey_route_inspect_response(client, test_survey_data): assert result -def test_survey_route_save_load_response(client, test_survey_data): +def test_survey_route_save_load_response(client, test_survey_data, mocked_user): rv = client.post( '/api/survey/save/2021/nren2', headers={'Accept': ['application/json']}, @@ -98,9 +138,10 @@ def test_survey_route_save_load_response(client, test_survey_data): 'page': 3, 'verification_status': {'q1': VerificationStatus.Verified} }) - assert rv.status_code == 200 + assert rv.status_code == 400 result = json.loads(rv.data.decode('utf-8')) - assert result == {'success': True} + assert not result.get('success') + assert result.get('message') == 'Survey is closed' rv = client.get( '/api/survey/load/2021/nren2', @@ -108,9 +149,21 @@ def test_survey_route_save_load_response(client, test_survey_data): assert rv.status_code == 200 result = json.loads(rv.data.decode('utf-8')) jsonschema.validate(result, SURVEY_RESPONSE_SCHEMA) - assert result['page'] == 3 - assert result['data'] == {'q1': 'yes', 'q2': ['no']} - assert result['verification_status'] == {'q1': VerificationStatus.Verified} + assert result['page'] == 0 + assert result['data'] == {} + assert result['verification_status'] == {} + + rv = client.post( + '/api/survey/save/2022/nren2', + headers={'Accept': ['application/json']}, + json={ + 'data': {'q1': 'yes', 'q2': ['no']}, + 'page': 3, + 'verification_status': {'q1': VerificationStatus.Verified} + }) + assert rv.status_code == 200 + result = json.loads(rv.data.decode('utf-8')) + assert result.get('success') rv = client.get( '/api/survey/load/2022/nren2', @@ -118,6 +171,6 @@ def test_survey_route_save_load_response(client, test_survey_data): assert rv.status_code == 200 result = json.loads(rv.data.decode('utf-8')) jsonschema.validate(result, SURVEY_RESPONSE_SCHEMA) - assert result['page'] == 0 + assert result['page'] == 3 assert result['data'] == {'q1': 'yes', 'q2': ['no']} - assert result['verification_status'] == {'q1': VerificationStatus.Unverified, 'q2': VerificationStatus.Unverified} + assert result['verification_status'] == {'q1': VerificationStatus.Verified} diff --git a/tox.ini b/tox.ini index 4d1400a460c13450c3a4545da95f55b40edd8992..2048200ca807664178fa405de7335b3488d2c1f0 100644 --- a/tox.ini +++ b/tox.ini @@ -8,18 +8,19 @@ max-line-length = 120 [mypy] exclude = .tox +[coverage:run] +concurrency = multiprocessing,thread + [testenv] deps = - coverage + pytest-xdist + pytest-cov flake8 -r requirements.txt commands = coverage erase - coverage run --source compendium_v2 -m pytest {posargs} - coverage xml - coverage html - coverage report --fail-under 80 + pytest -n auto --cov compendium_v2 --cov-fail-under=80 --cov-report html --cov-report xml --cov-report term -p no:checkdocs flake8 mypy {toxinidir}/compendium_v2/ {toxinidir}/test/ sphinx-build -M html docs/source docs/build -E