From b6166c2871f8351835f8aac3c6da17a0d2314601 Mon Sep 17 00:00:00 2001 From: Henning Noeth Date: Fri, 13 Dec 2024 10:38:11 +0100 Subject: [PATCH] build(deps): npm --- .../tobago-example-demo/package-lock.json | 14 +- .../tobago-example-demo/package.json | 2 +- tobago-theme/package-lock.json | 229 ++++++++---------- tobago-theme/package.json | 12 +- .../src/main/js/faces.js | 2 +- .../src/main/js/faces.js.map | 2 +- 6 files changed, 122 insertions(+), 139 deletions(-) diff --git a/tobago-example/tobago-example-demo/package-lock.json b/tobago-example/tobago-example-demo/package-lock.json index 1bd2185a83..339cd9e337 100644 --- a/tobago-example/tobago-example-demo/package-lock.json +++ b/tobago-example/tobago-example-demo/package-lock.json @@ -22,7 +22,7 @@ "npm-run-all": "^4.1.5", "postcss-cli": "^11.0.0", "rollup": "^4.28.1", - "sass": "^1.82.0", + "sass": "^1.83.0", "tslint": "^6.1.3", "typescript": "^5.7.2" } @@ -2450,9 +2450,9 @@ } }, "node_modules/sass": { - "version": "1.82.0", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.82.0.tgz", - "integrity": "sha512-j4GMCTa8elGyN9A7x7bEglx0VgSpNUG4W4wNedQ33wSMdnkqQCT8HTwOaVSV4e6yQovcu/3Oc4coJP/l0xhL2Q==", + "version": "1.83.0", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.83.0.tgz", + "integrity": "sha512-qsSxlayzoOjdvXMVLkzF84DJFc2HZEL/rFyGIKbbilYtAvlCxyuzUeff9LawTn4btVnLKg75Z8MMr1lxU1lfGw==", "dev": true, "license": "MIT", "dependencies": { @@ -4552,9 +4552,9 @@ } }, "sass": { - "version": "1.82.0", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.82.0.tgz", - "integrity": "sha512-j4GMCTa8elGyN9A7x7bEglx0VgSpNUG4W4wNedQ33wSMdnkqQCT8HTwOaVSV4e6yQovcu/3Oc4coJP/l0xhL2Q==", + "version": "1.83.0", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.83.0.tgz", + "integrity": "sha512-qsSxlayzoOjdvXMVLkzF84DJFc2HZEL/rFyGIKbbilYtAvlCxyuzUeff9LawTn4btVnLKg75Z8MMr1lxU1lfGw==", "dev": true, "requires": { "@parcel/watcher": "^2.4.1", diff --git a/tobago-example/tobago-example-demo/package.json b/tobago-example/tobago-example-demo/package.json index b9bab2ae9d..43face9170 100644 --- a/tobago-example/tobago-example-demo/package.json +++ b/tobago-example/tobago-example-demo/package.json @@ -49,7 +49,7 @@ "npm-run-all": "^4.1.5", "postcss-cli": "^11.0.0", "rollup": "^4.28.1", - "sass": "^1.82.0", + "sass": "^1.83.0", "tslint": "^6.1.3", "typescript": "^5.7.2" } diff --git a/tobago-theme/package-lock.json b/tobago-theme/package-lock.json index 2548fe984b..388a1777ba 100644 --- a/tobago-theme/package-lock.json +++ b/tobago-theme/package-lock.json @@ -12,7 +12,7 @@ "@trevoreyre/autocomplete-js": "3.0.3", "bootstrap": "5.3.3", "bootstrap-icons": "1.11.3", - "jsf.js_next_gen": "4.0.4-beta.4", + "jsf.js_next_gen": "4.0.4-beta.5", "lit-html": "3.2.1" }, "devDependencies": { @@ -21,21 +21,21 @@ "@rollup/plugin-replace": "^6.0.1", "@rollup/plugin-terser": "^0.4.4", "@rollup/plugin-typescript": "^12.1.1", - "@stylistic/eslint-plugin-ts": "^2.11.0", + "@stylistic/eslint-plugin-ts": "^2.12.1", "@types/bootstrap": "^5.2.10", "@types/jest": "^29.5.14", - "@typescript-eslint/eslint-plugin": "^8.17.0", - "@typescript-eslint/parser": "^8.17.0", + "@typescript-eslint/eslint-plugin": "^8.18.0", + "@typescript-eslint/parser": "^8.18.0", "autoprefixer": "^10.4.20", "clean-css-cli": "^5.6.3", "eslint": "^9.16.0", - "eslint-plugin-compat": "^6.0.1", + "eslint-plugin-compat": "^6.0.2", "jest": "^29.7.0", "ncp": "^2.0.0", "npm-run-all": "^4.1.5", "postcss-cli": "^11.0.0", "rollup": "^4.28.1", - "sass": "^1.82.0", + "sass": "^1.83.0", "ts-jest": "^29.2.5", "typescript": "^5.7.2" } @@ -1361,9 +1361,9 @@ "dev": true }, "node_modules/@mdn/browser-compat-data": { - "version": "5.5.45", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-5.5.45.tgz", - "integrity": "sha512-ZSQFGihUPlFxG2S9sUWS2tjDKQNTVVEgN62Au5yFcnbYsC183T1JrLz6I5H467Hw8WMCjwRuOEFQSpBW6IvZCg==", + "version": "5.6.23", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-5.6.23.tgz", + "integrity": "sha512-6h/L/id7JiuCcLKNZSliMfl9S159/ditQ/wc4TPlHJ/gcqoo4PNGggVaY6VcvVef9VFGuhh+UW27iAnEzQn+Kw==", "dev": true, "license": "CC0-1.0" }, @@ -1928,9 +1928,9 @@ } }, "node_modules/@stylistic/eslint-plugin-ts": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin-ts/-/eslint-plugin-ts-2.11.0.tgz", - "integrity": "sha512-ZBxnfSjzxUiwCibbVCeYCYwZw+P5xaQw+pNA8B8uR42fdMQIOhUstXjJuS2nTHoW5CF4+vGSxbL4gklI8WxhyA==", + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin-ts/-/eslint-plugin-ts-2.12.1.tgz", + "integrity": "sha512-Xx1NIioeW6LLlOfq5L/dLSrUXvi6q80UXDNbn/rXjKCzFT4a8wKwtp1q25kssdr1JEXI9a6tOHwFsh4Em+MoGg==", "dev": true, "license": "MIT", "dependencies": { @@ -2109,17 +2109,17 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.17.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.17.0.tgz", - "integrity": "sha512-HU1KAdW3Tt8zQkdvNoIijfWDMvdSweFYm4hWh+KwhPstv+sCmWb89hCIP8msFm9N1R/ooh9honpSuvqKWlYy3w==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.18.0.tgz", + "integrity": "sha512-NR2yS7qUqCL7AIxdJUQf2MKKNDVNaig/dEB0GBLU7D+ZdHgK1NoH/3wsgO3OnPVipn51tG3MAwaODEGil70WEw==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.17.0", - "@typescript-eslint/type-utils": "8.17.0", - "@typescript-eslint/utils": "8.17.0", - "@typescript-eslint/visitor-keys": "8.17.0", + "@typescript-eslint/scope-manager": "8.18.0", + "@typescript-eslint/type-utils": "8.18.0", + "@typescript-eslint/utils": "8.18.0", + "@typescript-eslint/visitor-keys": "8.18.0", "graphemer": "^1.4.0", "ignore": "^5.3.1", "natural-compare": "^1.4.0", @@ -2134,25 +2134,21 @@ }, "peerDependencies": { "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", - "eslint": "^8.57.0 || ^9.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" } }, "node_modules/@typescript-eslint/parser": { - "version": "8.17.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.17.0.tgz", - "integrity": "sha512-Drp39TXuUlD49F7ilHHCG7TTg8IkA+hxCuULdmzWYICxGXvDXmDmWEjJYZQYgf6l/TFfYNE167m7isnc3xlIEg==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.18.0.tgz", + "integrity": "sha512-hgUZ3kTEpVzKaK3uNibExUYm6SKKOmTU2BOxBSvOYwtJEPdVQ70kZJpPjstlnhCHcuc2WGfSbpKlb/69ttyN5Q==", "dev": true, - "license": "BSD-2-Clause", + "license": "MITClause", "dependencies": { - "@typescript-eslint/scope-manager": "8.17.0", - "@typescript-eslint/types": "8.17.0", - "@typescript-eslint/typescript-estree": "8.17.0", - "@typescript-eslint/visitor-keys": "8.17.0", + "@typescript-eslint/scope-manager": "8.18.0", + "@typescript-eslint/types": "8.18.0", + "@typescript-eslint/typescript-estree": "8.18.0", + "@typescript-eslint/visitor-keys": "8.18.0", "debug": "^4.3.4" }, "engines": { @@ -2163,23 +2159,19 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.17.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.17.0.tgz", - "integrity": "sha512-/ewp4XjvnxaREtqsZjF4Mfn078RD/9GmiEAtTeLQ7yFdKnqwTOgRMSvFz4et9U5RiJQ15WTGXPLj89zGusvxBg==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.18.0.tgz", + "integrity": "sha512-PNGcHop0jkK2WVYGotk/hxj+UFLhXtGPiGtiaWgVBVP1jhMoMCHlTyJA+hEj4rszoSdLTK3fN4oOatrL0Cp+Xw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.17.0", - "@typescript-eslint/visitor-keys": "8.17.0" + "@typescript-eslint/types": "8.18.0", + "@typescript-eslint/visitor-keys": "8.18.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2190,14 +2182,14 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.17.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.17.0.tgz", - "integrity": "sha512-q38llWJYPd63rRnJ6wY/ZQqIzPrBCkPdpIsaCfkR3Q4t3p6sb422zougfad4TFW9+ElIFLVDzWGiGAfbb/v2qw==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.18.0.tgz", + "integrity": "sha512-er224jRepVAVLnMF2Q7MZJCq5CsdH2oqjP4dT7K6ij09Kyd+R21r7UVJrF0buMVdZS5QRhDzpvzAxHxabQadow==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/typescript-estree": "8.17.0", - "@typescript-eslint/utils": "8.17.0", + "@typescript-eslint/typescript-estree": "8.18.0", + "@typescript-eslint/utils": "8.18.0", "debug": "^4.3.4", "ts-api-utils": "^1.3.0" }, @@ -2209,18 +2201,14 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" } }, "node_modules/@typescript-eslint/types": { - "version": "8.17.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.17.0.tgz", - "integrity": "sha512-gY2TVzeve3z6crqh2Ic7Cr+CAv6pfb0Egee7J5UAVWCpVvDI/F71wNfolIim4FE6hT15EbpZFVUj9j5i38jYXA==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.18.0.tgz", + "integrity": "sha512-FNYxgyTCAnFwTrzpBGq+zrnoTO4x0c1CKYY5MuUTzpScqmY5fmsh2o3+57lqdI3NZucBDCzDgdEbIaNfAjAHQA==", "dev": true, "license": "MIT", "engines": { @@ -2232,14 +2220,14 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.17.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.17.0.tgz", - "integrity": "sha512-JqkOopc1nRKZpX+opvKqnM3XUlM7LpFMD0lYxTqOTKQfCWAmxw45e3qlOCsEqEB2yuacujivudOFpCnqkBDNMw==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.18.0.tgz", + "integrity": "sha512-rqQgFRu6yPkauz+ms3nQpohwejS8bvgbPyIDq13cgEDbkXt4LH4OkDMT0/fN1RUtzG8e8AKJyDBoocuQh8qNeg==", "dev": true, - "license": "BSD-2-Clause", + "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.17.0", - "@typescript-eslint/visitor-keys": "8.17.0", + "@typescript-eslint/types": "8.18.0", + "@typescript-eslint/visitor-keys": "8.18.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -2254,10 +2242,8 @@ "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "peerDependencies": { + "typescript": ">=4.8.4 <5.8.0" } }, "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { @@ -2287,16 +2273,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.17.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.17.0.tgz", - "integrity": "sha512-bQC8BnEkxqG8HBGKwG9wXlZqg37RKSMY7v/X8VEWD8JG2JuTHuNK0VFvMPMUKQcbk6B+tf05k+4AShAEtCtJ/w==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.18.0.tgz", + "integrity": "sha512-p6GLdY383i7h5b0Qrfbix3Vc3+J2k6QWw6UMUeY5JGfm3C5LbZ4QIZzJNoNOfgyRe0uuYKjvVOsO/jD4SJO+xg==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "8.17.0", - "@typescript-eslint/types": "8.17.0", - "@typescript-eslint/typescript-estree": "8.17.0" + "@typescript-eslint/scope-manager": "8.18.0", + "@typescript-eslint/types": "8.18.0", + "@typescript-eslint/typescript-estree": "8.18.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2306,22 +2292,18 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.17.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.17.0.tgz", - "integrity": "sha512-1Hm7THLpO6ww5QU6H/Qp+AusUUl+z/CAm3cNZZ0jQvon9yicgO7Rwd+/WWRpMKLYV6p2UvdbR27c86rzCPpreg==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.18.0.tgz", + "integrity": "sha512-pCh/qEA8Lb1wVIqNvBke8UaRjJ6wrAWkJO5yyIbs8Yx6TNGYyfNjOo61tLv+WwLvoLPp4BQ8B7AHKijl8NGUfw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.17.0", + "@typescript-eslint/types": "8.18.0", "eslint-visitor-keys": "^4.2.0" }, "engines": { @@ -2483,12 +2465,13 @@ } }, "node_modules/ast-metadata-inferer": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/ast-metadata-inferer/-/ast-metadata-inferer-0.8.0.tgz", - "integrity": "sha512-jOMKcHht9LxYIEQu+RVd22vtgrPaVCtDRQ/16IGmurdzxvYbDd5ynxjnyrzLnieG96eTcAyaoj/wN/4/1FyyeA==", + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/ast-metadata-inferer/-/ast-metadata-inferer-0.8.1.tgz", + "integrity": "sha512-ht3Dm6Zr7SXv6t1Ra6gFo0+kLDglHGrEbYihTkcycrbHw7WCcuhBzPlJYHEsIpycaUwzsJHje+vUcxXUX4ztTA==", "dev": true, + "license": "MIT", "dependencies": { - "@mdn/browser-compat-data": "^5.2.34" + "@mdn/browser-compat-data": "^5.6.19" } }, "node_modules/async": { @@ -2710,9 +2693,9 @@ } }, "node_modules/browserslist": { - "version": "4.23.3", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.3.tgz", - "integrity": "sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA==", + "version": "4.24.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.2.tgz", + "integrity": "sha512-ZIc+Q62revdMcqC6aChtW4jz3My3klmCO1fEmINZY/8J3EpBg5/A/D0AKmBveUh6pgoeycoMkVMko84tuYS+Gg==", "dev": true, "funding": [ { @@ -2730,10 +2713,10 @@ ], "license": "MIT", "dependencies": { - "caniuse-lite": "^1.0.30001646", - "electron-to-chromium": "^1.5.4", + "caniuse-lite": "^1.0.30001669", + "electron-to-chromium": "^1.5.41", "node-releases": "^2.0.18", - "update-browserslist-db": "^1.1.0" + "update-browserslist-db": "^1.1.1" }, "bin": { "browserslist": "cli.js" @@ -2801,9 +2784,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001651", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001651.tgz", - "integrity": "sha512-9Cf+Xv1jJNe1xPZLGuUXLNkE1BoDkqRqYyFJ9TDYSqhduqA4hu4oR9HluGoWYQC/aj8WHjsGVV+bwkh0+tegRg==", + "version": "1.0.30001688", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001688.tgz", + "integrity": "sha512-Nmqpru91cuABu/DTCXbM2NSRHzM2uVHfPnhJ/1zEAJx/ILBRVmz3pzH4N7DZqbdG0gWClsCC05Oj0mJ/1AWMbA==", "dev": true, "funding": [ { @@ -3175,9 +3158,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.6", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.6.tgz", - "integrity": "sha512-jwXWsM5RPf6j9dPYzaorcBSUg6AiqocPEyMpkchkvntaH9HGfOOMZwxMJjDY/XEs3T5dM7uyH1VhRMkqUU9qVw==", + "version": "1.5.73", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.73.tgz", + "integrity": "sha512-8wGNxG9tAG5KhGd3eeA0o6ixhiNdgr0DcHWm85XPCphwZgD1lIEoi6t3VERayWao7SF7AAZTw6oARGJeVjH8Kg==", "dev": true, "license": "ISC" }, @@ -3288,9 +3271,9 @@ } }, "node_modules/escalade": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", - "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", "dev": true, "license": "MIT", "engines": { @@ -3370,16 +3353,16 @@ } }, "node_modules/eslint-plugin-compat": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-compat/-/eslint-plugin-compat-6.0.1.tgz", - "integrity": "sha512-0MeIEuoy8kWkOhW38kK8hU4vkb6l/VvyjpuYDymYOXmUY9NvTgyErF16lYuX+HPS5hkmym7lfA+XpYZiWYWmYA==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-compat/-/eslint-plugin-compat-6.0.2.tgz", + "integrity": "sha512-1ME+YfJjmOz1blH0nPZpHgjMGK4kjgEeoYqGCqoBPQ/mGu/dJzdoP0f1C8H2jcWZjzhZjAMccbM/VdXhPORIfA==", "dev": true, "license": "MIT", "dependencies": { "@mdn/browser-compat-data": "^5.5.35", - "ast-metadata-inferer": "^0.8.0", - "browserslist": "^4.23.1", - "caniuse-lite": "^1.0.30001639", + "ast-metadata-inferer": "^0.8.1", + "browserslist": "^4.24.2", + "caniuse-lite": "^1.0.30001687", "find-up": "^5.0.0", "globals": "^15.7.0", "lodash.memoize": "^4.1.2", @@ -5214,9 +5197,9 @@ } }, "node_modules/jsf.js_next_gen": { - "version": "4.0.4-beta.4", - "resolved": "https://registry.npmjs.org/jsf.js_next_gen/-/jsf.js_next_gen-4.0.4-beta.4.tgz", - "integrity": "sha512-7Ey3/eSesFl9DLbyTBPzKWz8QjUJ7BGSE+mommstWfcE0WHOqADFXprOM8lTamYf7xkOQEVMF87Qx3qwI1038w==", + "version": "4.0.4-beta.5", + "resolved": "https://registry.npmjs.org/jsf.js_next_gen/-/jsf.js_next_gen-4.0.4-beta.5.tgz", + "integrity": "sha512-jvs9qjSmJoAALH5JpLH2L4JgofXt506B8wXpYiPZfGhVFSdPegjxkbyMp2WTnwYHO/WcU4RmcANqlsH3Kl9HvA==", "license": "Apache-2.0", "dependencies": { "mona-dish": "0.28.12" @@ -5930,9 +5913,9 @@ "dev": true }, "node_modules/picocolors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", - "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", "dev": true, "license": "ISC" }, @@ -6583,9 +6566,9 @@ } }, "node_modules/sass": { - "version": "1.82.0", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.82.0.tgz", - "integrity": "sha512-j4GMCTa8elGyN9A7x7bEglx0VgSpNUG4W4wNedQ33wSMdnkqQCT8HTwOaVSV4e6yQovcu/3Oc4coJP/l0xhL2Q==", + "version": "1.83.0", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.83.0.tgz", + "integrity": "sha512-qsSxlayzoOjdvXMVLkzF84DJFc2HZEL/rFyGIKbbilYtAvlCxyuzUeff9LawTn4btVnLKg75Z8MMr1lxU1lfGw==", "dev": true, "license": "MIT", "dependencies": { @@ -7212,9 +7195,9 @@ } }, "node_modules/update-browserslist-db": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz", - "integrity": "sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.1.tgz", + "integrity": "sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A==", "dev": true, "funding": [ { @@ -7232,8 +7215,8 @@ ], "license": "MIT", "dependencies": { - "escalade": "^3.1.2", - "picocolors": "^1.0.1" + "escalade": "^3.2.0", + "picocolors": "^1.1.0" }, "bin": { "update-browserslist-db": "cli.js" diff --git a/tobago-theme/package.json b/tobago-theme/package.json index 6c4f42679a..ea3b7de55b 100644 --- a/tobago-theme/package.json +++ b/tobago-theme/package.json @@ -70,7 +70,7 @@ "@trevoreyre/autocomplete-js": "3.0.3", "bootstrap": "5.3.3", "bootstrap-icons": "1.11.3", - "jsf.js_next_gen": "4.0.4-beta.4", + "jsf.js_next_gen": "4.0.4-beta.5", "lit-html": "3.2.1" }, "devDependencies": { @@ -79,21 +79,21 @@ "@rollup/plugin-replace": "^6.0.1", "@rollup/plugin-terser": "^0.4.4", "@rollup/plugin-typescript": "^12.1.1", - "@stylistic/eslint-plugin-ts": "^2.11.0", + "@stylistic/eslint-plugin-ts": "^2.12.1", "@types/bootstrap": "^5.2.10", "@types/jest": "^29.5.14", - "@typescript-eslint/eslint-plugin": "^8.17.0", - "@typescript-eslint/parser": "^8.17.0", + "@typescript-eslint/eslint-plugin": "^8.18.0", + "@typescript-eslint/parser": "^8.18.0", "autoprefixer": "^10.4.20", "clean-css-cli": "^5.6.3", "eslint": "^9.16.0", - "eslint-plugin-compat": "^6.0.1", + "eslint-plugin-compat": "^6.0.2", "jest": "^29.7.0", "ncp": "^2.0.0", "npm-run-all": "^4.1.5", "postcss-cli": "^11.0.0", "rollup": "^4.28.1", - "sass": "^1.82.0", + "sass": "^1.83.0", "ts-jest": "^29.2.5", "typescript": "^5.7.2" } diff --git a/tobago-theme/tobago-theme-standard/src/main/js/faces.js b/tobago-theme/tobago-theme-standard/src/main/js/faces.js index 7137894b8e..b6063c5c98 100644 --- a/tobago-theme/tobago-theme-standard/src/main/js/faces.js +++ b/tobago-theme/tobago-theme-standard/src/main/js/faces.js @@ -1,3 +1,3 @@ /*! For license information please see faces.js.LICENSE.txt */ -(()=>{"use strict";var e={771:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.deepEqual=t.shallowMerge=t.simpleShallowMerge=t.deepCopy=t.buildPath=t.resolve=t.appendIf=t.assignIf=t.append=t.assign=void 0;const r=n(86);class s{constructor(e){this.parent=e}set value(e){}get value(){return this.parent}}function l(e,...t){if(t.length<1)return new s(e);const n=d(e,...t);return new class{set value(e){n.target[n.key]=e}get value(){return n.target[n.key]}}}function o(e,...t){if(t.length<1)return new s(e);const n=d(e,...t);return new class{set value(e){Array.isArray(e)||(e=[e]),n.target[n.key]?(Array.isArray(n.target[n.key])||(n.target[n.key]=[n.target[n.key]]),n.target[n.key].push(...e)):n.target[n.key]=e}}}function i(e){let t=e.indexOf("[");return t>=0?e.substring(0,t):e}function a(e){let t=e.indexOf("["),n=e.indexOf("]");return t>=0&&n>0&&te.split("["))).map((e=>-1!=e.indexOf("]")?"["+e:e)).filter((e=>""!=e))}function d(e,...t){t=c(t);let n=e,r=null,s=null,l=-1;for(let e=0;e({arr:e,keys:Object.keys(e)}))).forEach((({arr:n,keys:l})=>{l.forEach((l=>{let o=n[l];!Array.isArray(o)&&t&&(o=new r.Es2019Array(...[o])),e||!(null==s?void 0:s[l])?function(e,t,n,s,l){if(e)if(void 0===(null==t?void 0:t[n]))t[n]=l;else if(Array.isArray(t[n])){let e=t[n],r=[];l.forEach((t=>{-1==e.indexOf(t)&&r.push(t)})),t[n].push(...r)}else{let e=t[n],s=[];l.forEach((t=>{e!=t&&s.push(t)})),t[n]=new r.Es2019Array(...[]),t[n].push(e),t[n].push(...s)}else t[n]=s[n]}(t,s,l,n,o):!e&&(null==s?void 0:s[l])&&function(e,t,n,s,l){if(e)if(void 0===(null==t?void 0:t[n]))t[n]=l;else if(Array.isArray(t[n]))t[n].push(...l);else{let e=t[n];t[n]=new r.Es2019Array(...[]),t[n].push(e),t[n].push(...l)}}(t,s,l,0,o)}))})),s}t.assign=l,t.append=o,t.assignIf=function(e,t,...n){return!e||n.length<1?new s(t):l(t,...n)},t.appendIf=function(e,t,...n){return!e||n.length<1?new s(t):o(t,...n)},t.resolve=function(e,...t){let n=null;t=c(t);let r=e;for(let e=0;ee(t,n[r])))}if("object"==typeof t&&"object"==typeof n){let r=Object.keys(t),s=Object.keys(n);return r.length==s.length&&r.every((e=>-1!=s.indexOf(e)))&&r.every((r=>e(t[r],n[r])))}return!1}},517:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Config=t.CONFIG_ANY=t.CONFIG_VALUE=void 0;const r=n(86),s=n(204);var l=n(519).Lang.objAssign;const o=n(771);class i extends s.ValueEmbedder{constructor(e,t,n){super(e,t),this.arrPos=null!=n?n:-1}get value(){return""==this.key&&this.arrPos>=0?this._value[this.arrPos]:this.key&&this.arrPos>=0?this._value[this.key][this.arrPos]:this._value[this.key]}set value(e){""==this.key&&this.arrPos>=0?this._value[this.arrPos]=e:this.key&&this.arrPos>=0?this._value[this.key][this.arrPos]=e:this._value[this.key]=e}}i.absent=i.fromNullable(null),t.CONFIG_VALUE="__END_POINT__",t.CONFIG_ANY="__ANY_POINT__";class a extends s.Optional{constructor(e,t){super(e),this.configDef=t}get shallowCopy(){return this.shallowCopy$()}shallowCopy$(){let e=new a({});return e.shallowMerge(this.value),e}get deepCopy(){return this.deepCopy$()}deepCopy$(){return new a(l({},this.value))}static fromNullable(e){return new a(e)}shallowMerge(e,t=!0,n=!1){let r=(0,o.shallowMerge)(t,n,this.value,e.value);Array.isArray(this._value)?(this._value.length=0,this._value.push(...r)):(Object.getOwnPropertyNames(this._value).forEach((e=>delete this._value[e])),Object.getOwnPropertyNames(r).forEach((e=>this._value[e]=r[e])))}append(...e){return(0,o.append)(this._value,...e)}appendIf(e,...t){return(0,o.appendIf)(e,this._value,...t)}assign(...e){return(0,o.assign)(this.value,...e)}assignIf(e,...t){return(0,o.assignIf)(e,this._value,...t)}getIf(...e){return this.assertAccessPath(...e),this.getClass().fromNullable((0,o.resolve)(this.value,...e))}get(e){return this.getClass().fromNullable(super.get(e).value)}delete(e){return e in this.value&&delete this.value[e],this}toJson(){return JSON.stringify(this.value)}getClass(){return a}setVal(e){this._value=e}assertAccessPath(...e){var n,l,o,i,a,u,c,d,h;if(e=this.preprocessKeys(...e),!this.configDef)return;let E=s.Optional.fromNullable(Object.keys(this.configDef).map((e=>{let t={};return t[e]=this.configDef[e],t})));for(let v=0;v{var t;return!(null===(t=null==e?void 0:e[_])||void 0===t||!t)})))||void 0===n?void 0:n[_])||void 0===l?void 0:l[f]):s.Optional.fromNullable(null!==(a=null===(i=null===(o=E.value)||void 0===o?void 0:o[_])||void 0===i?void 0:i[f])&&void 0!==a?a:null):Array.isArray(E.value)?s.Optional.fromNullable(null===(u=E.value)||void 0===u?void 0:u[f]):s.Optional.absent:Array.isArray(E.value)?s.Optional.fromNullable(null===(c=new r.Es2019Array(...E.value).find((e=>{var t;return!(null===(t=null==e?void 0:e[_])||void 0===t||!t)})))||void 0===c?void 0:c[_]):s.Optional.fromNullable(null!==(h=null===(d=E.value)||void 0===d?void 0:d[_])&&void 0!==h?h:null),!E.isPresent())throw Error("Access Path to config invalid");if(E.value==t.CONFIG_ANY)return}}isNoArray(e){return-1==e}isArray(e){return!this.isNoArray(e)}}t.Config=a},331:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(s,l){function o(e){try{a(r.next(e))}catch(e){l(e)}}function i(e){try{a(r.throw(e))}catch(e){l(e)}}function a(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,i)}a((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.DQ$=t.DQ=t.DomQueryCollector=t.DomQuery=t.Style=t.ElementAttribute=void 0;const s=n(204),l=n(785),o=n(519),i=n(228),a=n(86);var u=o.Lang.trim,c=o.Lang.isString,d=o.Lang.equalsIgnoreCase,h=o.Lang.objToArray;const E=n(771);class v extends s.ValueEmbedder{constructor(e){super(null==e?void 0:e[0],"nonce"),this.rootElems=e}isAbsent(){const e=this.value;return void 0===e||""==e}get value(){var e,t,n,r,s;return null!==(n=null===(t=null===(e=null==this?void 0:this.rootElems)||void 0===e?void 0:e[0])||void 0===t?void 0:t.nonce)&&void 0!==n?n:null===(s=null===(r=null==this?void 0:this.rootElems)||void 0===r?void 0:r[0])||void 0===s?void 0:s.getAttribute("nonce")}set value(e){var t;(null===(t=null==this?void 0:this.rootElems)||void 0===t?void 0:t.length)&&this.rootElems.forEach((t=>{void 0!==(null==t?void 0:t.nonce)?t.nonce=e:t.setAttribute("nonce",e)}))}}var _;!function(e){e.SELECT="select",e.BUTTON="button",e.SUBMIT="submit",e.RESET="reset",e.IMAGE="image",e.RADIO="radio",e.CHECKBOX="checkbox"}(_||(_={}));class f extends s.ValueEmbedder{constructor(e,t,n=null){super(e,t),this.element=e,this.name=t,this.defaultVal=n}get value(){let e=this.element.get(0).orElse().values;return e.length?e[0].getAttribute(this.name):this.defaultVal}set value(e){let t=this.element.get(0).orElse().values;for(let n=0;n!0;class A{constructor(...e){if(this.rootNode=[],this.pos=-1,this._limits=-1,!s.Optional.fromNullable(e).isAbsent()&&e.length)for(let t=0;t!!e.checked))}set checked(e){this.eachElem((t=>t.checked=e))}get elements(){return this.querySelectorAll("input, checkbox, select, textarea, fieldset")}get deepElements(){return this.querySelectorAllDeep("input, select, textarea, checkbox, fieldset")}querySelectorAllDeep(e){let t=[],n=this.querySelectorAll(e);n.length&&t.push(n);let r=this.querySelectorAll("*").shadowRoot;if(r.length){let n=r.querySelectorAllDeep(e);n.length&&t.push(n)}return new A(...t)}get disabled(){return this.attr("disabled").isPresent()}set disabled(e){e?this.attr("disabled").value="disabled":this.removeAttribute("disabled")}removeAttribute(e){this.eachElem((t=>t.removeAttribute(e)))}get childNodes(){let e=[];return this.eachElem((t=>{e=e.concat(h(t.childNodes))})),new A(...e)}get asArray(){return new a.Es2019Array(...this.rootNode).filter((e=>null!=e)).map((e=>A.byId(e)))}get offsetWidth(){return new a.Es2019Array(...this.rootNode).filter((e=>null!=e)).map((e=>e.offsetWidth)).reduce(((e,t)=>e+t),0)}get offsetHeight(){return new a.Es2019Array(...this.rootNode).filter((e=>null!=e)).map((e=>e.offsetHeight)).reduce(((e,t)=>e+t),0)}get offsetLeft(){return new a.Es2019Array(...this.rootNode).filter((e=>null!=e)).map((e=>e.offsetLeft)).reduce(((e,t)=>e+t),0)}get offsetTop(){return new a.Es2019Array(this.rootNode).filter((e=>null!=e)).map((e=>e.offsetTop)).reduce(((e,t)=>e+t),0)}get asNodeArray(){return new a.Es2019Array(...this.rootNode.filter((e=>null!=e)))}get nonce(){return new v(this.rootNode)}static querySelectorAllDeep(e){return new A(document).querySelectorAllDeep(e)}static querySelectorAll(e){return-1!=e.indexOf("/shadow/")?new A(document)._querySelectorAllDeep(e):new A(document)._querySelectorAll(e)}static byId(e,t=!1){return c(e)?t?new A(document).byIdDeep(e):new A(document).byId(e):new A(e)}static byTagName(e){return c(e)?new A(document).byTagName(e):new A(e)}static globalEval(e,t){return new A(document).globalEval(e,t)}static globalEvalSticky(e,t){return new A(document).globalEvalSticky(e,t)}static fromMarkup(e){const t=document.implementation.createHTMLDocument("");let n=(e=u(e)).toLowerCase();if(-1!=n.search(/"].join(""),r=["<",t," "].join("");return 0==e.indexOf(n)||0==e.indexOf(r)},r=new A(document.createElement("div"));return t(n,"thead")||t(n,"tbody")?(r.html(`${e}
`),r.querySelectorAll("table").get(0).childNodes.detach()):t(n,"tfoot")?(r.html(``),r.querySelectorAll("table").get(2).childNodes.detach()):t(n,"tr")?(r.html(`
${e}
`),r.querySelectorAll("tbody").get(0).childNodes.detach()):t(n,"td")?(r.html(`${e}
`),r.querySelectorAll("tr").get(0).childNodes.detach()):(r.html(e),r.childNodes.detach())}}get(e){return e{e.parentNode&&e.parentNode.removeChild(e)}))}querySelectorAll(e){return-1!=e.indexOf("/shadow/")?this._querySelectorAllDeep(e):this._querySelectorAll(e)}closest(e){return-1!=e.indexOf("/shadow/")?this._closestDeep(e):this._closest(e)}byId(e,t){let n=[];return t&&(n=n.concat(...new a.Es2019Array(...(null==this?void 0:this.rootNode)||[]).filter((t=>e==t.id)).map((e=>new A(e))))),n=n.concat(this.querySelectorAll(`[id="${e}"]`)),new A(...n)}byIdDeep(e,t){let n=[];t&&(n=n.concat(new a.Es2019Array(...(null==this?void 0:this.rootNode)||[]).filter((t=>e==t.id)).map((e=>new A(e)))));let r=this.querySelectorAllDeep(`[id="${e}"]`);return r.length&&n.push(r),new A(...n)}byTagName(e,t,n){var r;let s=[];return t&&(s=new a.Es2019Array(...null!==(r=null==this?void 0:this.rootNode)&&void 0!==r?r:[]).filter((t=>(null==t?void 0:t.tagName)==e)).reduce(((e,t)=>e.concat([t])),s)),n?s.push(this.querySelectorAllDeep(e)):s.push(this.querySelectorAll(e)),new A(...s)}attr(e,t=null){return new f(this,e,t)}style(e,t=null){return new p(this,e,t)}hasClass(e){let t=!1;return this.eachElem((n=>{if(t=n.classList.contains(e),t)return!1})),t}addClass(e){return this.eachElem((t=>t.classList.add(e))),this}removeClass(e){return this.eachElem((t=>t.classList.remove(e))),this}isMultipartCandidate(e=!1){const t="input[type='file']";return this.matchesSelector(t)||(e?this.querySelectorAllDeep(t):this.querySelectorAll(t)).first().isPresent()}html(e){return s.Optional.fromNullable(e).isAbsent()?this.isPresent()?s.Optional.fromNullable(this.innerHTML):s.Optional.absent:(this.innerHTML=e,this)}dispatchEvent(e){return this.eachElem((t=>t.dispatchEvent(e))),this}set innerHTML(e){this.eachElem((t=>t.innerHTML=e))}get innerHTML(){let e=[];return this.eachElem((t=>e.push(t.innerHTML))),e.join("")}set innerHtml(e){this.innerHTML=e}get innerHtml(){return this.innerHTML}filterSelector(e){let t=[];return this.eachElem((n=>{this._mozMatchesSelector(n,e)&&t.push(n)})),new A(...t)}matchesSelector(e){return this.asArray.some((t=>this._mozMatchesSelector(t.getAsElem(0).value,e)))}getIf(...e){let t=this.childNodes;for(let n=0;ne){return this.rootNode.length>1&&e(this.rootNode[0],0),this}lastElem(e=e=>e){return this.rootNode.length>1&&e(this.rootNode[this.rootNode.length-1],0),this}each(e){return new a.Es2019Array(...this.rootNode).forEach(((t,n)=>{if(null!=t)return e(A.byId(t),n)})),this}replace(e){return this.each((t=>{let n=t.getAsElem(0).value,r=n.parentElement,s=n.nextElementSibling,l=n.previousElementSibling;null!=s?new A(s).insertBefore(e):l?new A(l).insertAfter(e):new A(r).append(e),t.delete()})),e}first(e=e=>e){return this.rootNode.length>=1?(e(this.get(0),0),this.get(0)):this}last(e=e=>e){if(this.rootNode.length>=1){let t=this.get(this.rootNode.length-1);return e(t,0),t}return this}filter(e){let t=[];return this.each((n=>{e(n)&&t.push(n)})),new A(...t)}globalEval(e,t){var n,r,s;const l=null!==(r=null===(n=document.getElementsByTagName("head"))||void 0===n?void 0:n[0])&&void 0!==r?r:null===(s=document.documentElement.getElementsByTagName("head"))||void 0===s?void 0:s[0],o=document.createElement("script");t&&(void 0!==(null==o?void 0:o.nonce)?o.nonce=t:o.setAttribute("nonce",t)),o.type="text/javascript",o.innerHTML=e;let i=l.appendChild(o);return l.removeChild(i),this}globalEvalSticky(e,t){let n=document.getElementsByTagName("head")[0]||document.documentElement,r=document.createElement("script");return this.applyNonce(t,r),r.type="text/javascript",r.innerHTML=e,n.appendChild(r),this}detach(){return this.eachElem((e=>{e.parentNode.removeChild(e)})),this}appendTo(e){return o.Lang.isString(e)?(this.appendTo(A.querySelectorAll(e)),this):(this.eachElem((t=>{e.getAsElem(0).orElseLazy((()=>({appendChild:()=>{}}))).value.appendChild(t)})),this)}loadScriptEval(e,t=0,n){return this._loadScriptEval(!1,e,t,n),this}loadScriptEvalSticky(e,t=0,n){return this._loadScriptEval(!0,e,t,n),this}insertAfter(...e){this.each((t=>{let n=t.getAsElem(0).value,r=n.parentNode;for(let t=0;t{s?(r.insertBefore(e,s),n=s):r.appendChild(e)}))}}));let t=[];return t.push(this),t=t.concat(e),new A(...t)}insertBefore(...e){this.each((t=>{let n=t.getAsElem(0).value,r=n.parentNode;for(let t=0;t{r.insertBefore(e,n)}))}));let t=[];return t.push(this),t=t.concat(e),new A(...t)}orElse(...e){return this.isPresent()?this:new A(...e)}orElseLazy(e){return this.isPresent()?this:new A(e())}allParents(e){let t=this.parent(),n=[];for(;t.isPresent();)t.matchesSelector(e)&&n.push(t),t=t.parent();return new A(...n)}firstParent(e){let t=this.parent();for(;t.isPresent();){if(t.matchesSelector(e))return t;t=t.parent()}return A.absent}parentsWhileMatch(e){const t=[];let n=this.parent().filter((t=>t.matchesSelector(e)));for(;n.isPresent();)t.push(n),n=n.parent().filter((t=>t.matchesSelector(e)));return new A(...t)}parent(){let e=[];return this.eachElem((t=>{let n=t.parentNode||t.host||t.shadowRoot;n&&-1==e.indexOf(n)&&e.push(n)})),new A(...e)}copyAttrs(e){return e.eachElem((e=>{let t=h(e.attributes);for(let e of t){let t=e.value,n=e.name;switch(n){case"id":this.id.value=t;break;case"disabled":this.resolveAttributeHolder("disabled").disabled=t;break;case"checked":this.resolveAttributeHolder("checked").checked=t;break;case"nonce":break;default:this.attr(n).value=t}}})),e.nonce.isPresent((()=>{this.nonce.value=e.nonce.value})),this}outerHTML(e,t,n,r=!1){var s;if(this.isAbsent())return;let l=null===(s=null===document||void 0===document?void 0:document.activeElement)||void 0===s?void 0:s.id,o=l?A.getCaretPosition(document.activeElement):null,i=A.fromMarkup(e),a=[],u=this.getAsElem(0).value,c=i.get(0),d=u.parentNode,h=c.getAsElem(0).value;if(d.replaceChild(h,u),a.push(new A(h)),this.isAbsent())return this;let E=[];i.length>1&&(E=E.concat(...i.values.slice(1)),a.push(A.byId(h).insertAfter(new A(...E)))),t&&this.runScripts(),n&&this.runCss();let v=A.byId(l);return l&&v.isPresent()&&null!=o&&void 0!==o&&v.eachElem((e=>A.setCaretPosition(e,o))),i}runScripts(e=!1,t=T){const n=t=>{if(t.length){let n=[];new a.Es2019Array(...t).forEach((t=>{t.nonce?(n.length&&(this.globalEval(n.join("\n")),n.length=0),e?this.globalEvalSticky(t.evalText,t.nonce):this.globalEval(t.evalText,t.nonce)):n.push(t.evalText)})),n.length&&(e?this.globalEvalSticky(n.join("\n")):this.globalEval(n.join("\n")),n.length=0),t=[]}return t};let r=[],s=["","script","text/javascript","text/ecmascript","ecmascript"],l=l=>{var o,i,a,c;let h=l.tagName,E=(null!==(o=null==l?void 0:l.type)&&void 0!==o?o:"").toLowerCase();if(h&&d(h,"script")&&-1!=s.indexOf(E)){let s=l.getAttribute("src");if(void 0!==s&&null!=s&&s.length>0){let o=null!==(i=null==l?void 0:l.nonce)&&void 0!==i?i:l.getAttribute("nonce").value;t(s)&&(r=n(r),e?o?this.loadScriptEvalSticky(s,0,o):this.loadScriptEvalSticky(s,0):o?this.loadScriptEval(s,0,o):this.loadScriptEval(s,0))}else{let e=u(l.text||l.innerText||l.innerHTML),t=!0;for(;t;)t=!1,"\x3c!--"==e.substring(0,4)&&(e=e.substring(4),t=!0),"//\x3c!--"==e.substring(0,4)&&(e=e.substring(6),t=!0),"//[...e.values])).sort(((e,t)=>t.compareDocumentPosition(e)-3)).forEach((e=>l(e))),n(r)}catch(e){console&&console.error&&console.error(e.message||e.description)}finally{l=null}return this}runCss(){return new A(this.filterSelector("link, style"),this.querySelectorAll("link, style")).asArray.flatMap((e=>[...e.values])).sort(((e,t)=>e.compareDocumentPosition(t)-3)).forEach((e=>(e=>{const t=A.byId(e),n=t.tagName.orElse("").value;let r=A.fromMarkup(`<${n.toLowerCase()} />`);r=r.copyAttrs(t),r.innerHTML=e.innerHTML,t.replace(r)})(e))),this}click(){return this.fireEvent("click"),this}addEventListener(e,t,n){return this.eachElem((r=>r.addEventListener(e,t,n))),this}removeEventListener(e,t,n){return this.eachElem((r=>r.removeEventListener(e,t,n))),this}fireEvent(e,t={}){let n={bubbles:!0,cancelable:!0};n=(0,E.simpleShallowMerge)(n,t),this.eachElem((t=>{let r;if(t.ownerDocument)r=t.ownerDocument;else{if(9!=t.nodeType)throw new Error("Invalid node passed to fireEvent: "+t.id);r=t}if(t.dispatchEvent){let r=Event;switch(e){case"click":case"mousedown":case"mouseup":case"mousemove":r=this.global().MouseEvent;break;case"keyup":case"keydown":case"keypress":r=this.global().KeyboardEvent;break;case"focus":case"change":case"blur":case"select":break;default:throw"fireEvent: Couldn't find an event class for event '"+e+"'."}let s=new r(e,n);s.synthetic=!0,t.dispatchEvent(s)}else if(t.fireEvent){let s=r.createEventObject();s.synthetic=!0,Object.keys(n).forEach((e=>s[e]=n[e])),t.fireEvent("on"+e,s)}}))}textContent(e=""){return this.asArray.map((e=>e.getAsElem(0).orElseLazy((()=>({textContent:""}))).value.textContent||"")).reduce(((t,n)=>[t,e,n].join("")),"")}innerText(e=""){return this.asArray.map((e=>e.getAsElem(0).orElseLazy((()=>({innerText:""}))).value.innerText||"")).reduce(((t,n)=>[t,n].join(e)),"")}encodeFormElement(e={}){if(this.name.isAbsent())return;let t=(0,E.simpleShallowMerge)(e);return this.each((e=>{var n,r;if(e.name.isAbsent())return;let s=e.name.value,l=e.tagName.orElse("__none__").value.toLowerCase(),o=e.type.orElse("__none__").value.toLowerCase();if(o=o.toLowerCase(),("input"==l||"textarea"==l||"select"==l)&&null!=s&&""!=s&&!e.disabled){if("select"==l){let n=e.getAsElem(0).value;if(n.selectedIndex>=0){let e=n.options.length;for(let r=0;re.childNodes.asArray)).filter((e=>{var t,n;return 4==(null===(n=null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.value)||void 0===n?void 0:n.nodeType)})).reduce(((e,t)=>{var n,r,s;return e.push(null!==(s=null===(r=null===(n=null==t?void 0:t.value)||void 0===n?void 0:n.value)||void 0===r?void 0:r.data)&&void 0!==s?s:""),e}),[]).join("")}subNodes(e,t){return s.Optional.fromNullable(t).isAbsent()&&(t=this.length),new A(...this.rootNode.slice(e,Math.min(t,this.length)))}limits(e){return this._limits=e,this}hasNext(){let e=-1!=this._limits&&this.pos>=this._limits-1,t=this.pos>=this.values.length-1;return!(e||t)}next(){return this.hasNext()?(this.pos++,new A(this.values[this.pos])):null}lookAhead(e=1){return this.values.length-1{let r;if(!(null==n?void 0:n.attachShadow))throw new Error("Shadow dom creation not supported by the browser, please use a shim, to gain this functionality");r=A.byId(n.attachShadow(e)),t.push(r)})),new A(...t)}waitUntilDom(e,t={attributes:!0,childList:!0,subtree:!0,timeout:500,interval:100}){return r(this,void 0,void 0,(function*(){return function(e,t,n={attributes:!0,childList:!0,subtree:!0,timeout:500,interval:100}){return new Promise(((r,s)=>{let l=null;const o=new Error("Mutation observer timeout");function i(e,t){let r=null;return t(e)?e:(r=n.childList?t(e)?e:e.childNodes.filter((e=>t(e))).first().value.value:n.subtree?t(e)?e:e.querySelectorAll(" * ").filter((e=>t(e))).first().value.value:t(e)?e:null,r)}let a=e;if(a=i(a,t))r(new A(a));else if("undefined"!=typeof MutationObserver){const i=setTimeout((()=>(l.disconnect(),s(o))),n.timeout),a=n=>{const s=new A(n.map((e=>e.target))).filter((e=>t(e))).first();s.isPresent()&&(clearTimeout(i),l.disconnect(),r(new A(s||e)))};l=new MutationObserver(a);let u=Object.assign({},n);delete u.timeout,e.eachElem((e=>{l.observe(e,u)}))}else{let l=setInterval((()=>{let n=i(e,t);n&&(a&&(clearTimeout(a),clearInterval(l),l=null),r(new A(n||e)))}),n.interval),a=setTimeout((()=>{l&&(clearInterval(l),s(o))}),n.timeout)}}))}(this,e,t)}))}get shadowElements(){let e=(this.querySelectorAll("*").filter((e=>e.hasShadow)).allElems()||[]).map((e=>e.shadowRoot));return new A(...e)}get shadowRoot(){let e=[];for(let t=0;t({done:!this.hasNext(),value:this.next()})}}concat(e,t=!0){let n=this.asArray;const r=new A(...n.concat(e.asArray));if(!t)return r;let s={};return new A(...r.asArray.filter((e=>{const t=!(null==s?void 0:s[e.value.value.outerHTML]);return s[e.value.value.outerHTML]=!0,t})))}append(e){return this.each((t=>e.appendTo(t))),this}prependTo(e){return e.eachElem((e=>{e.prepend(...this.allElems())})),this}prepend(e){return this.eachElem((t=>{t.prepend(...e.allElems())})),this}_querySelectorAll(e){var t,n;if(!(null===(t=null==this?void 0:this.rootNode)||void 0===t?void 0:t.length))return this;let r=[];for(let t=0;t=0&&n.item(r)!==e;);return r>-1};return r.call(e,t)}_loadScriptEval(e,t,n=0,r){let s=this.createSourceNode(t,r),l=this.createSourceNode(null,r),o=`nonce_${Date.now()}_${Math.random()}`;l.innerHTML=`document.head["${o}"] = true`;let i=document.head;if(i.appendChild(l),i.removeChild(l),i[o]){try{n?setTimeout((()=>{i.appendChild(s),e||i.removeChild(s)}),n):(i.appendChild(s),e||i.removeChild(s))}finally{delete i[o]}return this}}resolveAttributeHolder(e="value"){let t=[];return t[e]=null,e in this.getAsElem(0).value?this.getAsElem(0).value:t}createSourceNode(e,t){let n=document.createElement("script");return n.type="text/javascript",t&&(void 0!==(null==n?void 0:n.nonce)?n.nonce=t:n.setAttribute("nonce",t)),e&&(n.src=e),n}applyNonce(e,t){e&&(void 0!==(null==t?void 0:t.nonce)?t.nonce=e:t.setAttribute("nonce",e))}}t.DomQuery=A,A.absent=new A,A.global=i._global$,t.DomQueryCollector=class{constructor(){this.data=[]}collect(e){this.data.push(e)}get finalValue(){return new A(...this.data)}},t.DQ=A,t.DQ$=A.querySelectorAll},86:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Es2019Array=t._Es2019Array=void 0;class n extends Array{constructor(...e){super(...e),e._another?this._another=e._another:this._another=e,this.flatMap=e=>this._flatMap(e),this.flat=(e=1)=>this._flat(e)}map(e,t){return new r(...Array.prototype.map.call(this._another,e,t))}concat(...e){return new r(...Array.prototype.concat.call(this._another,...e))}reverse(){return new r(...Array.prototype.reverse.call(this._another))}slice(e,t){return new r(...Array.prototype.slice.call(this._another,e,t))}splice(e,t){return new r(...Array.prototype.splice.call(this._another,e,t))}filter(e,t){return new r(...Array.prototype.filter.call(this._another,e,t))}reduce(e,t){return Array.prototype.reduce.call(this._another,e,t)}_flat(e=1){return this._flatResolve(this._another,e)}_flatResolve(e,n=1){if(0==n)return e;let r=[];return e.forEach((e=>{e=Array.isArray(e)?e:[e];let t=this._flatResolve(e,n-1);r=r.concat(t)})),new t.Es2019Array(...r)}_flatMap(e){let t=this.map((t=>e(t)));return this._flatResolve(t)}}function r(...e){let t=new n(...e);return new Proxy(t,{get:(e,t,n)=>"symbol"==typeof t?e._another[t]:isNaN(parseInt(t))?e[t]:e._another[t],set:(e,t,n)=>(e[t]=n,e._another[t]=n,!0)})}t._Es2019Array=r,t.Es2019Array=Array.prototype.flatMap?function(...e){return(null==e?void 0:e.flatMap)?e:r(...e)}:r},228:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t._global$=void 0,t._global$=function(){var e;let t="undefined"!=typeof globalThis&&globalThis.window?globalThis.window:"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:void 0!==n.g&&(null===n.g||void 0===n.g?void 0:n.g.window)?n.g.window:void 0!==n.g?n.g:null;return null!==(e=null==t?void 0:t.window)&&void 0!==e?e:t}},519:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Lang=void 0;const r=n(204),s=n(86);var l;!function(e){function t(e){let t=/\s/,n=(e=e.replace(/^\s\s*/,"")).length;for(;t.test(e.charAt(--n)););return e.slice(0,n+1)}function n(e){return!!arguments.length&&null!=e&&("string"==typeof e||e instanceof String)}e.saveResolve=function(e,t=null){try{let n=e();return r.Optional.fromNullable(null!=n?n:t)}catch(e){return r.Optional.absent}},e.saveResolveLazy=function(e,t=null){try{let n=e();return r.Optional.fromNullable(null!=n?n:t())}catch(e){return r.Optional.absent}},e.strToArray=function(e,n=/\./gi){let r=[];return e.split(n).forEach((e=>{r.push(t(e))})),r},e.trim=t,e.objToArray=function(e,t=0,n=[]){return"__undefined__"==(null!=e?e:"__undefined__")?null!=n?n:null:e instanceof Array&&!t&&!n?e:new s.Es2019Array(...n.concat(Array.prototype.slice.call(e,t)))},e.equalsIgnoreCase=function(e,t){let n=null!=t?t:"___no_value__";return(null!=e?e:"___no_value__").toLowerCase()===n.toLowerCase()},e.assertType=function(e,t){return n(t)?typeof e==t:e instanceof t},e.isString=n,e.isFunc=function(e){return e instanceof Function||"function"==typeof e},e.objAssign=function(e,...t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");let n=Object(e);return Object.assign?(t.forEach((e=>Object.assign(n,e))),n):(t.filter((e=>null!=e)).forEach((e=>{let t=e;Object.keys(t).filter((e=>Object.prototype.hasOwnProperty.call(t,e))).forEach((e=>n[e]=t[e]))})),n)}}(l||(t.Lang=l={}))},204:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ValueEmbedder=t.Optional=t.Monad=void 0;const r=n(86);class s{constructor(e){this._value=e}get value(){return this._value}map(e){e||(e=e=>e);let t=e(this.value);return new s(t)}flatMap(e){let t=this.map(e);for(;(null==t?void 0:t.value)instanceof s;)t=t.value;return t}}t.Monad=s;class l extends s{constructor(e){super(e)}get value(){return this._value instanceof s?this._value.flatMap().value:this._value}static fromNullable(e){return new l(e)}isAbsent(){return void 0===this.value||null==this.value}isPresent(e){let t=this.isAbsent();return!t&&e&&e.call(this,this),!t}ifPresentLazy(e=()=>{}){return this.isPresent.call(this,e),this}orElse(e){return this.isPresent()?this:null==e?l.absent:this.flatMap((()=>e))}orElseLazy(e){return this.isPresent()?this:this.flatMap(e)}flatMap(e){let t=super.flatMap(e);return t instanceof l?t.flatMap():l.fromNullable(t.value)}getIf(...e){e=this.preprocessKeys(...e);let t=this;for(let n=0;n=0){if(t=this.getClass().fromNullable(t.value instanceof Array?t.value.length=0){if(t.getIfPresent(r).isAbsent())return t;if(t=t.getIfPresent(r).value instanceof Array?this.getClass().fromNullable(t.getIfPresent(r).value[s]):this.getClass().absent,t.isAbsent())return t}else{if(t=t.getIfPresent(r),t.isAbsent())return t;s>-1&&(t=this.getClass().fromNullable(t.value[s]))}}return t}match(e){return!this.isAbsent()&&e(this.value)}get(e=l.absent){return this.isAbsent()?this.getClass().fromNullable(e).flatMap():this.getClass().fromNullable(this.value).flatMap()}toJson(){return JSON.stringify(this.value)}getClass(){return l}arrayIndex(e){let t=e.indexOf("["),n=e.indexOf("]");return t>=0&&n>0&&t=0?e.substring(0,t):e}getIfPresent(e){return this.isAbsent()?this.getClass().absent:this.getClass().fromNullable(this.value[e]).flatMap()}resolve(e){if(this.isAbsent())return l.absent;try{return l.fromNullable(e(this.value))}catch(e){return l.absent}}preprocessKeys(...e){return new r.Es2019Array(...e).flatMap((e=>new r.Es2019Array(...e.split(/]\s*\[/gi)).map((e=>(-1==(e=e.replace(/^\s+|\s+$/g,"")).indexOf("[")&&-1!=e.indexOf("]")&&(e="["+e),-1==e.indexOf("]")&&-1!=e.indexOf("[")&&(e+="]"),e)))))}}t.Optional=l,l.absent=l.fromNullable(null);class o extends l{constructor(e,t="value"){super(e),this.key=t}get value(){return this._value?this._value[this.key]:null}set value(e){this._value&&(this._value[this.key]=e)}orElse(e){let t={};return t[this.key]=e,this.isPresent()?this:new o(t,this.key)}orElseLazy(e){if(this.isPresent())return this;{let t={};return t[this.key]=e(),new o(t,this.key)}}getClass(){return o}static fromNullable(e,t="value"){return new o(e,t)}}t.ValueEmbedder=o,o.absent=o.fromNullable(null)},785:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayCollector=t.QueryFormStringCollector=t.QueryFormDataCollector=t.FormDataCollector=t.ConfigCollector=t.AssocArrayCollector=t.Run=t.ArrayAssocArrayCollector=t.InverseArrayCollector=t.ShimArrayCollector=t.MappedStreamDataSource=t.FilteredStreamDatasource=t.ArrayStreamDataSource=t.SequenceDataSource=t.MultiStreamDatasource=t.calculateSkips=t.ITERATION_STATUS=void 0;const r=n(86),s=n(517);var l;function o(e){let t=1;for(;e.lookAhead(t)!=l.EO_STRM;)t++;return--t}!function(e){e.EO_STRM="__EO_STRM__",e.BEF_STRM="___BEF_STRM__"}(l||(t.ITERATION_STATUS=l={})),t.calculateSkips=o,t.MultiStreamDatasource=class{constructor(e,...t){this.first=e,this.selectedPos=0,this.strms=[e].concat(...t),this.activeStrm=this.strms[this.selectedPos]}current(){return this.activeStrm.current()}hasNext(){return!!this.activeStrm.hasNext()||!(this.selectedPos>=this.strms.length)&&-1!=this.findNextStrm()}findNextStrm(){let e=!1,t=this.selectedPos;for(;!e&&tthis.total-1?l.EO_STRM:this.value+e}reset(){this.value=this.start-1}current(){return this.start-1?l.BEF_STRM:this.value}},t.ArrayStreamDataSource=class{constructor(...e){this.dataPos=-1,this.value=e}lookAhead(e=1){return this.dataPos+e>this.value.length-1?l.EO_STRM:this.value[this.dataPos+e]}hasNext(){return this.value.length-1>this.dataPos}next(){var e;return this.dataPos++,null!==(e=null==this?void 0:this.value[this.dataPos])&&void 0!==e?e:l.EO_STRM}reset(){this.dataPos=-1}current(){return this.value[Math.max(0,this.dataPos)]}},t.FilteredStreamDatasource=class{constructor(e,t){this._current=l.BEF_STRM,this._filterIdx={},this._unfilteredPos=0,this.filterFunc=e,this.inputDataSource=t}hasNext(){let e,t=1,n=!1;for(;!n&&(e=this.inputDataSource.lookAhead(t))!=l.EO_STRM;)this.filterFunc(e)?(this._filterIdx[this._unfilteredPos+t]=!0,n=!0):t++;return n}next(){var e,t;let n=l.EO_STRM;for(;this.inputDataSource.hasNext();){this._unfilteredPos++;let r=this.inputDataSource.next();if(r!=l.EO_STRM&&(null!==(t=null===(e=this._filterIdx)||void 0===e?void 0:e[this._unfilteredPos])&&void 0!==t&&t||this.filterFunc(r))){this._filterIdx[this._unfilteredPos]=!0,n=r;break}}return this._current=n,n}lookAhead(e=1){var t;let n;for(let r=1;e>0&&(n=this.inputDataSource.lookAhead(r))!=l.EO_STRM;r++)((null===(t=this._filterIdx)||void 0===t?void 0:t[this._unfilteredPos+r])||this.filterFunc(n))&&(e--,this._filterIdx[this._unfilteredPos+r]=!0);return n}current(){return this._current}reset(){this._current=l.BEF_STRM,this._filterIdx={},this._unfilteredPos=0,this.inputDataSource.reset()}},t.MappedStreamDataSource=class{constructor(e,t){this.mapFunc=e,this.inputDataSource=t}hasNext(){return this.inputDataSource.hasNext()}next(){return this.mapFunc(this.inputDataSource.next())}reset(){this.inputDataSource.reset()}current(){return this.mapFunc(this.inputDataSource.current())}lookAhead(e=1){const t=this.inputDataSource.lookAhead(e);return t==l.EO_STRM?t:this.mapFunc(t)}},t.ShimArrayCollector=class{constructor(){this.data=new r.Es2019Array(...[])}collect(e){this.data.push(e)}get finalValue(){return this.data}},t.InverseArrayCollector=class{constructor(){this.data=[]}collect(e){this.data.unshift(e)}get finalValue(){return this.data}},t.ArrayAssocArrayCollector=class{constructor(){this.finalValue={}}collect(e){var t,n,r,s;let l=null!==(t=null==e?void 0:e[0])&&void 0!==t?t:e;this.finalValue[l]=null!==(r=null===(n=this.finalValue)||void 0===n?void 0:n[l])&&void 0!==r?r:[],this.finalValue[l].push(null===(s=null==e?void 0:e[1])||void 0===s||s)}},t.Run=class{collect(e){}get finalValue(){return null}},t.AssocArrayCollector=class{constructor(){this.finalValue={}}collect(e){var t,n;this.finalValue[null!==(t=e[0])&&void 0!==t?t:e]=null===(n=e[1])||void 0===n||n}},t.ConfigCollector=class{constructor(){this.finalValue=new s.Config({})}collect(e){this.finalValue.append(e.key).value=e.value}},t.FormDataCollector=class{constructor(){this.finalValue=new FormData}collect(e){this.finalValue.append(e.key,e.value)}},t.QueryFormDataCollector=class{constructor(){this.finalValue=new FormData}collect(e){let t=e.encodeFormElement();t.isPresent()&&this.finalValue.append(e.name.value,t.get(e.name).value)}},t.QueryFormStringCollector=class{constructor(){this.formData=[]}collect(e){let t=e.encodeFormElement();t.isPresent()&&this.formData.push([e.name.value,t.get(e.name).value])}get finalValue(){return new r.Es2019Array(...this.formData).map((e=>e.join("="))).reduce(((e,t)=>[e,t].join("&")))}},t.ArrayCollector=class{constructor(){this.data=[]}collect(e){this.data.push(e)}get finalValue(){return this.data}}},100:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XQ=t.XMLQuery=void 0;const r=n(519),s=n(331);var l=r.Lang.isString;const o=n(228);class i extends s.DomQuery{constructor(e,t="text/xml"){var n;l(e)?super(null==(n=e)?null:r.Lang.saveResolveLazy((()=>new((0,o._global$)().DOMParser)),(()=>(()=>{let e=new ActiveXObject("Microsoft.XMLDOM");return e.async=!1,{parseFromString:(t,n)=>e.loadXML(t)}})())).value.parseFromString(n,t)):super(e)}isXMLParserError(){return this.querySelectorAll("parsererror").isPresent()}toString(){let e=[];return this.eachElem((t=>{var n,r,s,l;let i=null!==(l=null===(s=null===(r=null===(n=(0,o._global$)())||void 0===n?void 0:n.XMLSerializer)||void 0===r?void 0:r.constructor())||void 0===s?void 0:s.serializeToString(t))&&void 0!==l?l:null==t?void 0:t.xml;i&&e.push(i)})),e.join("")}parserErrorText(e){return this.querySelectorAll("parsererror").textContent(e)}static parseXML(e){return new i(e)}static parseHTML(e){return new i(e,"text/html")}static fromString(e,t="text/xml"){return new i(e,t)}}t.XMLQuery=i,t.XQ=i},257:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t._Es2019Array=t.Es2019Array=t.Assoc=t.CONFIG_VALUE=t.CONFIG_ANY=t.Config=t.shallowMerge=t.simpleShallowMerge=t.append=t.assignIf=t.assign=t.XQ=t.XMLQuery=t.ValueEmbedder=t.Optional=t.Monad=t.Lang=t.DQ$=t.DQ=t.DomQueryCollector=t.ElementAttribute=t.DomQuery=void 0;var o=n(331);Object.defineProperty(t,"DomQuery",{enumerable:!0,get:function(){return o.DomQuery}}),Object.defineProperty(t,"ElementAttribute",{enumerable:!0,get:function(){return o.ElementAttribute}}),Object.defineProperty(t,"DomQueryCollector",{enumerable:!0,get:function(){return o.DomQueryCollector}}),Object.defineProperty(t,"DQ",{enumerable:!0,get:function(){return o.DQ}}),Object.defineProperty(t,"DQ$",{enumerable:!0,get:function(){return o.DQ$}});var i=n(519);Object.defineProperty(t,"Lang",{enumerable:!0,get:function(){return i.Lang}});var a=n(204);Object.defineProperty(t,"Monad",{enumerable:!0,get:function(){return a.Monad}}),Object.defineProperty(t,"Optional",{enumerable:!0,get:function(){return a.Optional}}),Object.defineProperty(t,"ValueEmbedder",{enumerable:!0,get:function(){return a.ValueEmbedder}});var u=n(100);Object.defineProperty(t,"XMLQuery",{enumerable:!0,get:function(){return u.XMLQuery}}),Object.defineProperty(t,"XQ",{enumerable:!0,get:function(){return u.XQ}});var c=n(771);Object.defineProperty(t,"assign",{enumerable:!0,get:function(){return c.assign}}),Object.defineProperty(t,"assignIf",{enumerable:!0,get:function(){return c.assignIf}}),Object.defineProperty(t,"append",{enumerable:!0,get:function(){return c.append}}),Object.defineProperty(t,"simpleShallowMerge",{enumerable:!0,get:function(){return c.simpleShallowMerge}}),Object.defineProperty(t,"shallowMerge",{enumerable:!0,get:function(){return c.shallowMerge}});var d=n(517);Object.defineProperty(t,"Config",{enumerable:!0,get:function(){return d.Config}});var h=n(517);Object.defineProperty(t,"CONFIG_ANY",{enumerable:!0,get:function(){return h.CONFIG_ANY}});var E=n(517);Object.defineProperty(t,"CONFIG_VALUE",{enumerable:!0,get:function(){return E.CONFIG_VALUE}}),t.Assoc=l(n(771));var v=n(86);Object.defineProperty(t,"Es2019Array",{enumerable:!0,get:function(){return v.Es2019Array}}),Object.defineProperty(t,"_Es2019Array",{enumerable:!0,get:function(){return v._Es2019Array}})},973:(e,t,n)=>{t.$A=t.J_=void 0;const r=n(644),s=n(54),l=n(19),o=n(351);var i,a;!function(e){let t,n,l;e.specversion=4e5,e.implversion=0,e.separatorchar=function(){const e="#{facesContext.namingContainerSeparatorChar}";return e.match(/\#\{facesContext.namingContainerSeparatorChar\}/gi)?r.Implementation.getSeparatorChar():e}(),e.contextpath="#{facesContext.externalContext.requestContextPath}",e.getProjectStage=function(){return r.Implementation.getProjectStage()},e.getViewState=function(e){return r.Implementation.getViewState(e)},e.getClientWindow=function(e){return r.Implementation.getClientWindow(e)},function(e){e.request=function(e,t,n){r.Implementation.request(e,t,n)},e.response=function(e,t){r.Implementation.response(e,t)},e.addOnError=function(e){r.Implementation.addOnError(e)},e.addOnEvent=function(e){r.Implementation.addOnEvent(e)}}(t=e.ajax||(e.ajax={})),function(e){e.chain=function(e,t,...n){return r.Implementation.chain(e,t,...n)}}(n=e.util||(e.util={})),function(e){e.init=function(e,t,n,r,l,o,i,a,u){s.PushImpl.init(e,t,n,r,l,o,i,a,u)},e.open=function(e){s.PushImpl.open(e)},e.close=function(e){s.PushImpl.close(e)}}(l=e.push||(e.push={}))}(i||(t.J_=i={})),function(e){e.ab=function(e,t,n,r,s,l={}){var i,a;n&&(l[o.CTX_OPTIONS_PARAMS]=null!==(i=null==l?void 0:l[o.CTX_OPTIONS_PARAMS])&&void 0!==i?i:{},l[o.CTX_OPTIONS_PARAMS][(0,o.$nsp)(o.P_BEHAVIOR_EVENT)]=n),r&&(l[o.CTX_OPTIONS_EXECUTE]=r),s&&(l[o.CTX_PARAM_RENDER]=s),(null!==(a=null===window||void 0===window?void 0:window.faces)&&void 0!==a?a:window.jsf).ajax.request(e,t,l)};const t=[];let n=null;e.onDomReady=function(e){"complete"!==document.readyState?(t.push(e),n||(n=()=>{window.removeEventListener("DOMContentLoaded",n),n=null;try{t.forEach((e=>e()))}finally{t.length=0}},window.addEventListener("DOMContentLoaded",n))):(n&&n(),e())},e.oam=l.oam}(a||(t.$A=a={}))},644:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Implementation=void 0;const r=n(121),s=n(229),l=n(257),o=n(22),i=n(780),a=n(234),u=n(471),c=n(351),d=n(7),h=n(680),E=n(666);var v,_,f;!function(e){e.Production="Production",e.Development="Development",e.SystemTest="SystemTest",e.UnitTest="UnitTest"}(v||(v={})),function(e){e.onerror="onerror",e.onevent="onevent",e.render="render",e.execute="execute",e.myfaces="myfaces",e.delay="delay",e.timeout="timeout",e.resetValues="resetValues",e.windowId="windowId",e.params="params"}(_||(_={})),function(e){var t=l.Lang.trim,n=u.ExtLang.getMessage,f=u.ExtLang.getGlobalConfig,p=o.Assertions.assert,T=u.ExtLang.ofAssoc,A=u.ExtLang.collectAssoc;let m=null,R=null,g=[],S=[];function y(){const e=i.ExtDomQuery.searchJsfJsFor(/stage=([^&;]*)/).value;return e in v?e:v.Production}function O(e,t=function(e){}){t(e),S.forEach((t=>{t(e)})),f("defaultErrorOutput",console?console.error:alert)(e)}function P(e,t){const n=(0,d.resolveViewRootId)(t);n&&(e.assign(c.NAMED_VIEWROOT).value=!0,e.assign(c.NAMING_CONTAINER_ID).value=n)}function M(e,n,r,s,o,i=""){const a=(0,c.$faces)().separatorchar;let u=r?t(r).split(/\s+/gi):[],d=[],h={};const E=e=>{const t=i.length?i+a:c.EMPTY_STR;let n=s.id.value;const r=n.substring(0,n.lastIndexOf(a)),o=r.length?r+a:c.EMPTY_STR,u=0===e.indexOf(a);let d;return u||i.length&&0==e.indexOf(t)?d=[t,e=0==(e=u?e.substring(1):e).indexOf(t)?e.substring(t.length):e].join(c.EMPTY_STR):(0==n.indexOf(t)&&(n=n.substring(t.length)),d=0==e.indexOf(n)?[t,e].join(c.EMPTY_STR):[o,e].join(c.EMPTY_STR)),l.DQ.byId(d).isPresent()?d:e};for(let t=0;t{let l=function(e,n,r){if("string"!=typeof r)return!1!==r.call(e,n);{let s=t(r);return 0==s.indexOf("function ")&&(s=`return ${s} (event)`),!1!==new Function("event",s).call(e,n)}}(e,n,r);return!1===l&&(s=!1),s})),s},e.request=function(t,n,r){var s,a,u,h,E,v,f,p,m,R,g,S,y,O,I,N,C,w,b,D,L,x,X,V,k,F,j,U,H;const{options:Q,elem:G,elementId:q,windowId:W,isResetValues:$}=(0,d.resolveDefaults)(n,r,t),Y=new i.ExtConfig({}),B=new i.ExtConfig({});o.Assertions.assertRequestIntegrity(Q,G);const z=(0,d.resolveForm)(G,n),J=(0,d.resolveViewId)(z),K=z.id.value,Z=(0,d.resolveDelay)(Q),ee=(0,d.resolveTimeout)(Q);var te;Y.assignIf(!!W,c.P_WINDOW_ID).value=W,Y.assign(c.CTX_PARAM_REQ_PASS_THR).value=(te=Q.value,T(te).filter((e=>!(e[0]in _))).reduce(A,{}));const ne=(re=Q.getIf(c.CTX_OPTIONS_PARAMS).orElse({}).value,Array.isArray(re)?re.reduce(A,{}):re);var re;let se=Y.getIf(c.CTX_PARAM_REQ_PASS_THR);var le,oe,ie,ae;se.$nspEnabled=!1,se.shallowMerge(new l.Config(ne),!0),se.$nspEnabled=!0,Y.assignIf(!!n,c.CTX_PARAM_REQ_PASS_THR,c.P_EVT).value=null==n?void 0:n.type,Y.assign(c.SOURCE).value=q,Y.assign(c.VIEW_ID).value=J,Y.assign(c.ON_EVENT).value=null===(s=Q.value)||void 0===s?void 0:s.onevent,Y.assign(c.ON_ERROR).value=null===(a=Q.value)||void 0===a?void 0:a.onerror,Y.assign(c.MYFACES).value=null===(u=Q.value)||void 0===u?void 0:u.myfaces,Y.assign(c.CTX_PARAM_REQ_PASS_THR,c.P_AJAX_SOURCE).value=q,Y.assign(c.CTX_PARAM_REQ_PASS_THR,c.P_AJAX).value=!0,Y.assignIf($,c.CTX_PARAM_REQ_PASS_THR,c.P_RESET_VALUES).value=!0,B.assign(c.CTX_PARAM_SRC_FRM_ID).value=K,B.assign(c.CTX_PARAM_UPLOAD_PREINIT).value=null===(v=null===(E=null===(h=Q.value)||void 0===h?void 0:h.myfaces)||void 0===E?void 0:E.upload)||void 0===v?void 0:v.preinit,B.assign(c.CTX_PARAM_UPLOAD_LOADSTART).value=null===(m=null===(p=null===(f=Q.value)||void 0===f?void 0:f.myfaces)||void 0===p?void 0:p.upload)||void 0===m?void 0:m.loadstart,B.assign(c.CTX_PARAM_UPLOAD_ON_PROGRESS).value=null===(S=null===(g=null===(R=Q.value)||void 0===R?void 0:R.myfaces)||void 0===g?void 0:g.upload)||void 0===S?void 0:S.progress,B.assign(c.CTX_PARAM_UPLOAD_LOADEND).value=null===(I=null===(O=null===(y=Q.value)||void 0===y?void 0:y.myfaces)||void 0===O?void 0:O.upload)||void 0===I?void 0:I.loadend,B.assign(c.CTX_PARAM_UPLOAD_LOAD).value=null===(w=null===(C=null===(N=Q.value)||void 0===N?void 0:N.myfaces)||void 0===C?void 0:C.upload)||void 0===w?void 0:w.load,B.assign(c.CTX_PARAM_UPLOAD_ERROR).value=null===(L=null===(D=null===(b=Q.value)||void 0===b?void 0:b.myfaces)||void 0===D?void 0:D.upload)||void 0===L?void 0:L.error,B.assign(c.CTX_PARAM_UPLOAD_ABORT).value=null===(V=null===(X=null===(x=Q.value)||void 0===x?void 0:x.myfaces)||void 0===X?void 0:X.upload)||void 0===V?void 0:V.abort,B.assign(c.CTX_PARAM_UPLOAD_TIMEOUT).value=null===(j=null===(F=null===(k=Q.value)||void 0===k?void 0:k.myfaces)||void 0===F?void 0:F.upload)||void 0===j?void 0:j.timeout,Y.assign(c.CTX_PARAM_REQ_PASS_THR,K).value=K,B.assign(c.CTX_PARAM_SRC_CTL_ID).value=q,B.assign(c.CTX_PARAM_PPS).value=null!==(H=null===(U=function(e){var t;return null===(t=T(e).filter((e=>"myfaces"==e[0])).reduce(A,{}))||void 0===t?void 0:t[c.MYFACES]}(Q.value))||void 0===U?void 0:U[c.MYFACES_OPTION_PPS])&&void 0!==H&&H,function(e,t){let n=(0,c.$faces)().getClientWindow(e.getAsElem(0).value);n&&(t.assign(c.CTX_PARAM_REQ_PASS_THR,c.P_CLIENT_WINDOW).value=n)}(z,Y),oe=Y,ie=z,ae=q,(le=Q).getIf(c.CTX_OPTIONS_EXECUTE).isPresent()?(le.assign(c.CTX_OPTIONS_EXECUTE).value=[le.getIf(c.CTX_OPTIONS_EXECUTE).value,c.IDENT_THIS].join(" "),M(oe.getIf(c.CTX_PARAM_REQ_PASS_THR).get({}),c.P_EXECUTE,le.getIf(c.CTX_OPTIONS_EXECUTE).value,ie,ae,oe.getIf(c.VIEW_ID).value)):oe.assign(c.CTX_PARAM_REQ_PASS_THR,c.P_EXECUTE).value=ae,function(e,t,n,r){e.getIf(c.CTX_PARAM_RENDER).isPresent()&&M(t.getIf(c.CTX_PARAM_REQ_PASS_THR).get({}),c.P_RENDER,e.getIf(c.CTX_PARAM_RENDER).value,n,r,t.getIf(c.VIEW_ID).value)}(Q,Y,z,q),P(B,z),e.queueHandler.addRequestToQueue(G,z,Y,B,Z,ee)},e.response=function(e,t){r.Response.processResponse(e,t)},e.addOnError=function(e){S.push(e)},e.addOnEvent=function(e){g.push(e)},e.sendEvent=function(e,t=function(e){}){t(e),g.forEach((t=>t(e)))},e.stdErrorHandler=function(t,n,r,s=!1){try{O(a.ErrorData.fromClient(r))}finally{s&&e.requestQueue.clear()}},e.sendError=O,e.getClientWindow=function(e){const t="___mf_id_altered__",n="___init____";let r=e?l.DQ.byId(e):(0,l.DQ$)("form"),s=r.filterSelector(`input[name='${(0,c.$nsp)(c.P_CLIENT_WINDOW)}']`).orElseLazy((()=>r.querySelectorAll(`input[name='${(0,c.$nsp)(c.P_CLIENT_WINDOW)}']`))).asArray.map((e=>e.val)).reduce(((e,r)=>e==n?r:e==t||e!=r?t:r),n);return p(t!=s,"Multiple different windowIds found in document"),s!=n?s:(function(){const e=window.location.href,t=new RegExp("[\\?&]jfwid=([^&#\\;]*)").exec(e);return null!=t?l.Optional.fromNullable(t[1]):l.Optional.fromNullable(null)}()||i.ExtDomQuery.searchJsfJsFor(/jfwid=([^&;]*)/).orElse(null)).value},e.getViewState=function(e){let t=l.DQ.byId(e,!0);if(!t.isTag(c.HTML_TAG_FORM))throw new Error(n("ERR_VIEWSTATE"));const r=new l.Config({});P(r,l.DQ.byId(e));let s=t.deepElements.encodeFormElement();return(0,h.encodeFormData)(new i.ExtConfig(s),(0,d.resoveNamingContainerMapper)(r))},e.queueHandler={addRequestToQueue:function(t,n,r,l,o=0,i=0){e.requestQueue=null!==e.requestQueue&&void 0!==e.requestQueue?e.requestQueue:new E.XhrQueueController,e.requestQueue.enqueue(new s.XhrRequest(r,l,i),o)}}}(f||(t.Implementation=f={}))},54:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PushImpl=void 0;const r=n(351),s=n(257);var l;!function(e){const t=s.DQ.global().location.protocol.replace("http","ws")+"//";e.sockets={},e.components={},e.clientIdsByTokens={},e.reset=function(){e.sockets={},e.components={},e.clientIdsByTokens={}},e.init=function(r,l,i,a,u,c,d,h,E){var v,_,f;if(d=o(d),!s.DQ.global().WebSocket)return void d(-1,i);let p=l.substr(l.indexOf("?")+1);e.components[r]||(e.components[r]={channelToken:p,onopen:o(a),onmessage:o(u),onerror:o(c),onclose:d,behaviors:h,autoconnect:E},e.clientIdsByTokens[p]||(e.clientIdsByTokens[p]=[]),e.clientIdsByTokens[p].push(r),e.sockets[p]||(e.sockets[p]=new n(p,function(e){if(e.indexOf("://")<0){let n=s.DQ.global().location.hostname+":"+s.DQ.global().location.port;return t+n+e}return e}(l),i))),E&&(null!==(_=null===(v=s.DQ.global())||void 0===v?void 0:v.faces)&&void 0!==_?_:null===(f=s.DQ.global())||void 0===f?void 0:f.jsf).push.open(r)},e.open=function(t){var n;l(null===(n=e.components[t])||void 0===n?void 0:n.channelToken).open()},e.close=function(t){l(e.components[t].channelToken).close()};class n{constructor(e,t,n){this.channelToken=e,this.url=t,this.channel=n,this.reconnectAttempts=0}open(){this.socket&&1==this.socket.readyState||(this.socket=new WebSocket(this.url),this.bindCallbacks())}onopen(t){var n,r;if(!this.reconnectAttempts){let t=e.clientIdsByTokens[this.channelToken];for(let s=t.length-1;s>=0;s--){let l=t[s];null===(r=null===(n=e.components[l])||void 0===n?void 0:n.onopen)||void 0===r||r.call(n,this.channel)}}this.reconnectAttempts=0}onerror(t){var n,r,s;let l=JSON.parse(null!==(n=null==t?void 0:t.data)&&void 0!==n?n:null);for(let n=e.clientIdsByTokens[this.channelToken].length-1;n>=0;n--){let o=e.clientIdsByTokens[this.channelToken][n];if(document.getElementById(o))try{null===(s=null===(r=e.components[o])||void 0===r?void 0:r.onerror)||void 0===s||s.call(r,l,this.channel,t)}catch(e){}else e.clientIdsByTokens[this.channelToken].splice(n,1)}0==e.clientIdsByTokens[this.channelToken].length&&this.close()}onmmessage(t){var n,r,s;let l=JSON.parse(t.data);for(let o=e.clientIdsByTokens[this.channelToken].length-1;o>=0;o--){let i=e.clientIdsByTokens[this.channelToken][o];if(document.getElementById(i)){try{null===(r=null===(n=e.components[i])||void 0===n?void 0:n.onmessage)||void 0===r||r.call(n,l,this.channel,t)}catch(e){}let o=null===(s=null===e.components||void 0===e.components?void 0:e.components[i])||void 0===s?void 0:s.behaviors,a=null==o?void 0:o[l];if(a&&a.length)for(let e=0;e=r.MAX_RECONNECT_ATTEMPTS){let r=e.clientIdsByTokens[this.channelToken];for(let l=r.length-1;l>=0;l--){let o=r[l];null===(s=null===(n=null===e.components||void 0===e.components?void 0:e.components[o])||void 0===n?void 0:n.onclose)||void 0===s||s.call(n,null==t?void 0:t.code,null==this?void 0:this.channel,t)}}else setTimeout(this.open,r.RECONNECT_INTERVAL*this.reconnectAttempts++)}close(){if(this.socket){let e=this.socket;this.socket=null,e.close()}}bindCallbacks(){this.socket.onopen=e=>this.onopen(e),this.socket.onmessage=e=>this.onmmessage(e),this.socket.onclose=e=>this.onclose(e),this.socket.onerror=e=>this.onerror(e)}}function l(t){let n=e.sockets[t];if(n)return n;throw new Error("Unknown channelToken: "+t)}function o(e=()=>{}){return"function"!=typeof e&&(e=s.DQ.global()[e]),e}}(l||(t.PushImpl=l={}))},351:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CTX_OPTIONS_PARAMS=t.TIMEOUT_EVENT=t.CLIENT_ERROR=t.SERVER_ERROR=t.MALFORMEDXML=t.EMPTY_RESPONSE=t.HTTP_ERROR=t.RESPONSE_XML=t.RESPONSE_TEXT=t.ERROR_MESSAGE=t.ERROR_NAME=t.STATUS=t.SOURCE=t.SUCCESS=t.COMPLETE=t.BEGIN=t.ON_EVENT=t.ON_ERROR=t.EVENT=t.ERROR=t.WINDOW_ID=t.CTX_PARAM_RENDER=t.P_BEHAVIOR_EVENT=t.P_WINDOW_ID=t.P_RESET_VALUES=t.P_EVT=t.P_RENDER_OVERRIDE=t.P_RENDER=t.P_EXECUTE=t.P_AJAX=t.IDENT_FORM=t.IDENT_THIS=t.IDENT_NONE=t.IDENT_ALL=t.HTML_CLIENT_WINDOW=t.HTML_VIEWSTATE=t.EMPTY_MAP=t.EMPTY_STR=t.EMPTY_FUNC=t.P_RESOURCE=t.P_VIEWBODY=t.P_VIEWHEAD=t.P_VIEWROOT=t.P_CLIENT_WINDOW=t.P_VIEWSTATE=t.VIEW_ID=t.NAMING_CONTAINER_ID=t.P_AJAX_SOURCE=t.NAMED_VIEWROOT=t.XML_ATTR_NAMED_VIEWROOT=void 0,t.XML_TAG_CHANGES=t.XML_TAG_PARTIAL_RESP=t.ATTR_ID=t.ATTR_VALUE=t.ATTR_NAME=t.ATTR_URL=t.MYFACES_OPTION_PPS=t.ERR_NO_PARTIAL_RESPONSE=t.PHASE_PROCESS_RESPONSE=t.SEL_RESPONSE_XML=t.SEL_CLIENT_WINDOW_ELEM=t.SEL_VIEWSTATE_ELEM=t.HTML_TAG_STYLE=t.HTML_TAG_SCRIPT=t.HTML_TAG_LINK=t.HTML_TAG_BODY=t.HTML_TAG_FORM=t.HTML_TAG_HEAD=t.STD_ACCEPT=t.NO_TIMEOUT=t.MULTIPART=t.URL_ENCODED=t.STATE_EVT_COMPLETE=t.STATE_EVT_TIMEOUT=t.STATE_EVT_BEGIN=t.REQ_TYPE_POST=t.REQ_TYPE_GET=t.ENCODED_URL=t.VAL_AJAX=t.REQ_ACCEPT=t.HEAD_FACES_REQ=t.CONTENT_TYPE=t.CTX_PARAM_PPS=t.CTX_PARAM_REQ_PASS_THR=t.CTX_PARAM_SRC_CTL_ID=t.CTX_PARAM_UPLOAD_TIMEOUT=t.CTX_PARAM_UPLOAD_ABORT=t.CTX_PARAM_UPLOAD_ERROR=t.CTX_PARAM_UPLOAD_LOAD=t.CTX_PARAM_UPLOAD_LOADEND=t.CTX_PARAM_UPLOAD_LOADSTART=t.CTX_PARAM_UPLOAD_PREINIT=t.CTX_PARAM_UPLOAD_ON_PROGRESS=t.CTX_PARAM_SRC_FRM_ID=t.CTX_PARAM_MF_INTERNAL=t.CTX_OPTIONS_EXECUTE=t.CTX_OPTIONS_RESET=t.CTX_OPTIONS_TIMEOUT=t.DELAY_NONE=t.CTX_OPTIONS_DELAY=void 0,t.$nsp=t.$faces=t.UNKNOWN=t.MAX_RECONNECT_ATTEMPTS=t.RECONNECT_INTERVAL=t.APPLIED_CLIENT_WINDOW=t.APPLIED_VST=t.REASON_EXPIRED=t.MF_NONE=t.MYFACES=t.DEFERRED_HEAD_INSERTS=t.UPDATE_ELEMS=t.UPDATE_FORMS=t.XML_TAG_ATTR=t.XML_TAG_AFTER=t.XML_TAG_BEFORE=t.XML_TAG_REDIRECT=t.XML_TAG_EXTENSION=t.XML_TAG_ATTRIBUTES=t.XML_TAG_ERROR=t.XML_TAG_EVAL=t.XML_TAG_INSERT=t.XML_TAG_DELETE=t.XML_TAG_UPDATE=void 0,t.XML_ATTR_NAMED_VIEWROOT="namedViewRoot",t.NAMED_VIEWROOT="namedViewRoot",t.P_AJAX_SOURCE="jakarta.faces.source",t.NAMING_CONTAINER_ID="myfaces.NamingContainerId",t.VIEW_ID="myfaces.viewId",t.P_VIEWSTATE="jakarta.faces.ViewState",t.P_CLIENT_WINDOW="jakarta.faces.ClientWindow",t.P_VIEWROOT="jakarta.faces.ViewRoot",t.P_VIEWHEAD="jakarta.faces.ViewHead",t.P_VIEWBODY="jakarta.faces.ViewBody",t.P_RESOURCE="jakarta.faces.Resource",t.EMPTY_FUNC=Object.freeze((()=>{})),t.EMPTY_STR="",t.EMPTY_MAP=Object.freeze({}),t.HTML_VIEWSTATE=[""].join(t.EMPTY_STR),t.HTML_CLIENT_WINDOW=[""].join(t.EMPTY_STR),t.IDENT_ALL="@all",t.IDENT_NONE="@none",t.IDENT_THIS="@this",t.IDENT_FORM="@form",t.P_AJAX="jakarta.faces.partial.ajax",t.P_EXECUTE="jakarta.faces.partial.execute",t.P_RENDER="jakarta.faces.partial.render",t.P_RENDER_OVERRIDE="_myfaces.rendeOverride",t.P_EVT="jakarta.faces.partial.event",t.P_RESET_VALUES="jakarta.faces.partial.resetValues",t.P_WINDOW_ID="jakarta.faces.windowId",t.P_BEHAVIOR_EVENT="jakarta.faces.behavior.event",t.CTX_PARAM_RENDER="render",t.WINDOW_ID="windowId",t.ERROR="error",t.EVENT="event",t.ON_ERROR="onerror",t.ON_EVENT="onevent",t.BEGIN="begin",t.COMPLETE="complete",t.SUCCESS="success",t.SOURCE="source",t.STATUS="status",t.ERROR_NAME="error-name",t.ERROR_MESSAGE="error-message",t.RESPONSE_TEXT="responseText",t.RESPONSE_XML="responseXML",t.HTTP_ERROR="httpError",t.EMPTY_RESPONSE="emptyResponse",t.MALFORMEDXML="malformedXML",t.SERVER_ERROR="serverError",t.CLIENT_ERROR="clientError",t.TIMEOUT_EVENT="timeout",t.CTX_OPTIONS_PARAMS="params",t.CTX_OPTIONS_DELAY="delay",t.DELAY_NONE="none",t.CTX_OPTIONS_TIMEOUT="timeout",t.CTX_OPTIONS_RESET="resetValues",t.CTX_OPTIONS_EXECUTE="execute",t.CTX_PARAM_MF_INTERNAL="myfaces.internal",t.CTX_PARAM_SRC_FRM_ID="myfaces.source.formId",t.CTX_PARAM_UPLOAD_ON_PROGRESS="myfaces.upload.progress",t.CTX_PARAM_UPLOAD_PREINIT="myfaces.upload.preinit",t.CTX_PARAM_UPLOAD_LOADSTART="myfaces.upload.loadstart",t.CTX_PARAM_UPLOAD_LOADEND="myfaces.upload.loadend",t.CTX_PARAM_UPLOAD_LOAD="myfaces.upload.load",t.CTX_PARAM_UPLOAD_ERROR="myfaces.upload.error",t.CTX_PARAM_UPLOAD_ABORT="myfaces.upload.abort",t.CTX_PARAM_UPLOAD_TIMEOUT="myfaces.upload.timeout",t.CTX_PARAM_SRC_CTL_ID="myfaces.source.controlId",t.CTX_PARAM_REQ_PASS_THR="myfaces.request.passThrough",t.CTX_PARAM_PPS="myfaces.request.pps",t.CONTENT_TYPE="Content-Type",t.HEAD_FACES_REQ="Faces-Request",t.REQ_ACCEPT="Accept",t.VAL_AJAX="partial/ajax",t.ENCODED_URL="jakarta.faces.encodedURL",t.REQ_TYPE_GET="GET",t.REQ_TYPE_POST="POST",t.STATE_EVT_BEGIN="begin",t.STATE_EVT_TIMEOUT="TIMEOUT_EVENT",t.STATE_EVT_COMPLETE="complete",t.URL_ENCODED="application/x-www-form-urlencoded",t.MULTIPART="multipart/form-data",t.NO_TIMEOUT=0,t.STD_ACCEPT="text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",t.HTML_TAG_HEAD="HEAD",t.HTML_TAG_FORM="FORM",t.HTML_TAG_BODY="BODY",t.HTML_TAG_LINK="LINK",t.HTML_TAG_SCRIPT="SCRIPT",t.HTML_TAG_STYLE="STYLE",t.SEL_VIEWSTATE_ELEM="[name='"+t.P_VIEWSTATE+"']",t.SEL_CLIENT_WINDOW_ELEM="[name='"+t.P_CLIENT_WINDOW+"']",t.SEL_RESPONSE_XML="responseXML",t.PHASE_PROCESS_RESPONSE="processResponse",t.ERR_NO_PARTIAL_RESPONSE="Partial response not set",t.MYFACES_OPTION_PPS="pps",t.ATTR_URL="url",t.ATTR_NAME="name",t.ATTR_VALUE="value",t.ATTR_ID="id",t.XML_TAG_PARTIAL_RESP="partial-response",t.XML_TAG_CHANGES="changes",t.XML_TAG_UPDATE="update",t.XML_TAG_DELETE="delete",t.XML_TAG_INSERT="insert",t.XML_TAG_EVAL="eval",t.XML_TAG_ERROR="error",t.XML_TAG_ATTRIBUTES="attributes",t.XML_TAG_EXTENSION="extension",t.XML_TAG_REDIRECT="redirect",t.XML_TAG_BEFORE="before",t.XML_TAG_AFTER="after",t.XML_TAG_ATTR="attribute",t.UPDATE_FORMS="myfaces.updateForms",t.UPDATE_ELEMS="myfaces.updateElems",t.DEFERRED_HEAD_INSERTS="myfaces.headElems",t.MYFACES="myfaces",t.MF_NONE="__mf_none__",t.REASON_EXPIRED="Expired",t.APPLIED_VST="myfaces.appliedViewState",t.APPLIED_CLIENT_WINDOW="myfaces.appliedClientWindow",t.RECONNECT_INTERVAL=500,t.MAX_RECONNECT_ATTEMPTS=25,t.UNKNOWN="UNKNOWN",t.$faces=function(){var e;return null!==(e=null===window||void 0===window?void 0:window.faces)&&void 0!==e?e:null===window||void 0===window?void 0:window.jsf},t.$nsp=function(e){return e&&(null==e?void 0:e.replace)?(null===window||void 0===window?void 0:window.faces)?e.replace(/javax\.faces/gi,"jakarta.faces"):e.replace(/jakarta\.faces/gi,"javax.faces"):e}},315:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StateHolder=void 0;const r=n(351);t.StateHolder=class{constructor(e,t){this.id=e,this.value=t;let n=e.indexOf(r.P_VIEWSTATE);this.nameSpace=n>0?e.substr(0,n-1):r.EMPTY_STR}get hasNameSpace(){var e;return!!(null!==(e=null==this?void 0:this.nameSpace)&&void 0!==e?e:r.EMPTY_STR).length}}},207:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Messages=void 0,t.Messages=class{constructor(){this.MSG_TEST="Testmessage",this.MSG_DEV_MODE="Note, this message is only sent, because project stage is development and no other error listeners are registered.",this.MSG_AFFECTED_CLASS="Affected Class=",this.MSG_AFFECTED_METHOD="Affected Method=",this.MSG_ERROR_NAME="Error Name=",this.MSG_ERROR_MESSAGE="Error Message=",this.MSG_SERVER_ERROR_NAME="Server Error Name=",this.MSG_ERROR_DESC="Error Description=",this.MSG_ERROR_NO="Error Number=",this.MSG_ERROR_LINENO="Error Line Number=",this.ERR_FORM="Sourceform could not be determined, either because element is not attached to a form or we have multiple forms with named elements of the same identifier or name, stopping the ajax processing",this.ERR_VIEWSTATE="faces.viewState= param value not of type form!",this.ERR_TRANSPORT="Transport type {0} does not exist",this.ERR_EVT_PASS="an event must be passed down (either a an event object null or undefined) ",this.ERR_CONSTRUCT="Parts of the response couldn't be retrieved when constructing the event data= {0} ",this.ERR_MALFORMEDXML="The server response could not be parsed, the server has returned with a response which is not xml !",this.ERR_SOURCE_FUNC="source cannot be a function (probably source and event were not defined or set to null",this.ERR_EV_OR_UNKNOWN="An event object or unknown must be passed as second parameter",this.ERR_SOURCE_NOSTR="source cannot be a string",this.ERR_SOURCE_DEF_NULL="source must be defined or null",this.ERR_MUST_STRING="{0}: {1} namespace must be of type String",this.ERR_REF_OR_ID="{0}: {1} a reference node or identifier must be provided",this.ERR_PARAM_GENERIC="{0}: parameter {1} must be of type {2}",this.ERR_PARAM_STR="{0}: {1} param must be of type string",this.ERR_PARAM_STR_RE="{0}: {1} param must be of type string or a regular expression",this.ERR_PARAM_MIXMAPS="{0}: both a source as well as a destination map must be provided",this.ERR_MUST_BE_PROVIDED="{0}: an {1} and a {2} must be provided",this.ERR_MUST_BE_PROVIDED1="{0}: {1} must be set",this.ERR_REPLACE_EL="replaceElements called while evalNodes is not an array",this.ERR_EMPTY_RESPONSE="{0}: The response cannot be null or empty!",this.ERR_ITEM_ID_NOTFOUND="{0}: item with identifier {1} could not be found",this.ERR_PPR_IDREQ="{0}: Error in PPR Insert, id must be present",this.ERR_PPR_INSERTBEFID="{0}: Error in PPR Insert, before id or after id must be present",this.ERR_PPR_INSERTBEFID_1="{0}: Error in PPR Insert, before node of id {1} does not exist in document",this.ERR_PPR_INSERTBEFID_2="{0}: Error in PPR Insert, after node of id {1} does not exist in document",this.ERR_PPR_DELID="{0}: Error in delete, id not in xml markup",this.ERR_PPR_UNKNOWNCID="{0}: Unknown Html-Component-ID= {1}",this.ERR_NO_VIEWROOTATTR="{0}: Changing of ViewRoot attributes is not supported",this.ERR_NO_HEADATTR="{0}: Changing of Head attributes is not supported",this.ERR_RED_URL="{0}: Redirect without url",this.ERR_REQ_FAILED_UNKNOWN="Request failed with unknown status",this.ERR_REQU_FAILED="Request failed with status {0} and reason {1}",this.UNKNOWN="UNKNOWN"}}},22:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Assertions=void 0;const r=n(257),s=n(351),l=n(471);var o;!function(e){function t(t,n=s.EMPTY_STR,r=s.EMPTY_STR,l="Assertion Error"){if(!t)throw e.raiseError(new Error,n,r,l)}function n(t,n,l=s.EMPTY_STR,o=s.EMPTY_STR,i="Type Assertion Error"){if(t&&!r.Lang.assertType(t,n))throw e.raiseError(new Error,l,o,i)}function o(e,t=s.EMPTY_STR,r=s.EMPTY_STR,l="Assertion Error"){n(e,"function",t,r,l)}e.assertRequestIntegrity=function(e,n){o(e.getIf(s.ON_ERROR).value),o(e.getIf(s.ON_EVENT).value),t(n.isPresent(),l.ExtLang.getMessage("ERR_MUST_BE_PROVIDED1","{0}: source must be provided or exist","source element id"),"faces.ajax.request","ArgNotSet")},e.assertUrlExists=function(t){if(t.attr(s.ATTR_URL).isAbsent())throw e.raiseError(new Error,l.ExtLang.getMessage("ERR_RED_URL",null,"processRedirect"),"processRedirect")},e.assertValidXMLResponse=function(e){t(!e.isAbsent(),s.EMPTY_RESPONSE,s.PHASE_PROCESS_RESPONSE),t(!e.isXMLParserError(),e.parserErrorText(s.EMPTY_STR),s.PHASE_PROCESS_RESPONSE),t(e.querySelectorAll(s.XML_TAG_PARTIAL_RESP).isPresent(),s.ERR_NO_PARTIAL_RESPONSE,s.PHASE_PROCESS_RESPONSE)},e.raiseError=function(e,t,n,r,o){let i=null!=r?r:s.MALFORMEDXML,a=null!=o?o:s.MALFORMEDXML,u=null!=t?t:s.EMPTY_STR;return l.ExtLang.makeException(e,i,a,"Response",n||(arguments.caller?arguments.caller.toString():"_raiseError"),u)},e.assert=t,e.assertType=n,e.assertFunction=o,e.assertDelay=function(e){if(!(e>=0))throw new Error("Invalid delay value: "+e)}}(o||(t.Assertions=o={}))},726:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncRunnable=void 0,t.AsyncRunnable=class{constructor(){this.catchFunctions=[],this.thenFunctions=[]}resolve(e){this.thenFunctions.reduce(((e,t)=>t(e)),e)}reject(e){this.catchFunctions.reduce(((e,t)=>t(e)),e)}catch(e){return this.catchFunctions.push(e),this}finally(e){return this.catchFunctions.push(e),this.thenFunctions.push(e),this}then(e){return this.thenFunctions.push(e),this}}},780:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtConfig=t.ExtDQ=t.ExtDomQuery=void 0;const r=n(257),s=n(351),l=e=>e&&!(-1==(null==e?void 0:e.search(/\/jakarta\.faces\.resource.*\/faces\.js.*/))&&-1==(null==e?void 0:e.search(/\/faces-development\.js.*/))&&-1==(null==e?void 0:e.search(/\/faces-uncompressed\.js.*/))&&-1==(null==e?void 0:e.search(/\/faces[^.]*\.js.*ln=jakarta.faces.*/gi))&&-1==(null==e?void 0:e.search(/\/javax\.faces\.resource.*\/jsf\.js.*/))&&-1==(null==e?void 0:e.search(/\/jsf-development\.js.*/))&&-1==(null==e?void 0:e.search(/\/jsf-uncompressed\.js.*/))&&-1==(null==e?void 0:e.search(/\/jsf[^.]*\.js.*ln=javax.faces.*/gi))),o="src";class i extends r.DQ{static get windowId(){return new i(document.body).windowId}static get nonce(){return new i(document.body).nonce}get windowId(){const e=function(){let e=window.location.href,t=new RegExp("[\\?&]windowId=([^&#\\;]*)").exec(e);return null!=t?t[1]:null};if(this.value.isPresent()){let t=this.querySelectorAll("form input[name='"+s.P_WINDOW_ID+"']");if(t.length>1)throw Error("Multiple different windowIds found in document");return r.Optional.fromNullable(t.isPresent()?t.getAsElem(0).value.value:e())}return r.Optional.fromNullable(e())}get nonce(){var e;let t=new a(window.myfaces).getIf("config","cspMeta","nonce");if(t.value)return r.ValueEmbedder.fromNullable(t);let n=new r.DQ(document.currentScript).nonce;if(n.isPresent())return r.ValueEmbedder.fromNullable(n);let s=r.Optional.fromNullable(null===(e=r.DQ.querySelectorAll("script[src], link[src]").asArray.filter((e=>e.nonce.isPresent()&&null!=e.attr(o))).filter((e=>l(e.attr(o).value))))||void 0===e?void 0:e[0]);return(null==s?void 0:s.value)?new r.DomQuery(s.value).nonce:r.ValueEmbedder.absent}static searchJsfJsFor(e){return new i(document).searchJsfJsFor(e)}searchJsfJsFor(e){var t;return r.Optional.fromNullable(null===(t=r.DQ.querySelectorAll("script[src], link[src]").asArray.filter((e=>l(e.attr(o).value))).map((t=>t.attr(o).value.match(e))).filter((e=>null!=e&&e.length>1)).map((e=>decodeURIComponent(e[1]))))||void 0===t?void 0:t[0])}globalEval(e,t){return new i(super.globalEval(e,null!=t?t:this.nonce.value))}globalEvalSticky(e,t){return new i(super.globalEvalSticky(e,null!=t?t:this.nonce.value))}runScripts(e=!1,t){return super.runScripts(e,(e=>{var n,r;return(null===(n=null==t?void 0:t(e))||void 0===n||n)&&!l(e)&&!(-1!=(r=e).search(/\/faces[^.]*\.js.*ln=myfaces.testscripts.*/gi)||-1!=r.search(/\/jsf[^.]*\.js.*ln=myfaces.testscripts.*/gi))}))}runHeadInserts(e=!0){let t=i.byId(document.head),n=[];this.filter((function(n){if(!e)return!0;const r=n.tagName.value;if(!r)return!0;let s=n.attr("href").orElseLazy((()=>n.attr("src").value)).orElseLazy((()=>n.attr("rel").value));return!s.isPresent()||!t.querySelectorAll(`${r}[href='${s.value}']`).length&&!t.querySelectorAll(`${r}[src='${s.value}']`).length&&!t.querySelectorAll(`${r}[rel='${s.value}']`).length})).each((e=>{"SCRIPT"!=e.tagName.value?(new i(...n).runScripts(!0),n=[],t.append(e)):n.push(e)})),new i(...n).runScripts(!0)}static byId(e,t=!1){var n,l,o;const a=r.DomQuery.byId(e,t);if("development"==(0,s.$faces)().getProjectStage().toLowerCase()&&(null===window||void 0===window?void 0:window.console)&&a.isAbsent()&&e){let t=null!==(o=null!==(l=null===(n=null==e?void 0:e.id)||void 0===n?void 0:n.value)&&void 0!==l?l:null==e?void 0:e.id)&&void 0!==o?o:e.toString();console.error("Element "+t+"not found")}return new i(a)}filter(e){return new i(super.filter(e))}}t.ExtDomQuery=i,t.ExtDQ=i;class a extends r.Config{constructor(e){super(e),this.$nspEnabled=!0}assignIf(e,...t){const n=this.remap(t);return super.assignIf(e,...n)}assign(...e){const t=this.remap(e);return super.assign(...t)}append(...e){return super.append(...e)}appendIf(e,...t){const n=this.remap(t);return super.appendIf(e,...n)}getIf(...e){const t=this.remap(e);return super.getIf(...t)}get(e){return super.get((0,s.$nsp)(e))}delete(e){return super.delete((0,s.$nsp)(e))}static fromNullable(e){return new a(e)}getClass(){return a}shallowCopy$(){const e=super.shallowCopy$();return new a(e)}get deepCopy(){return new a(super.deepCopy$())}remap(e){return this.$nspEnabled?new r.Es2019Array(...e).map((e=>(0,s.$nsp)(e))):e}}t.ExtConfig=a},680:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFormInputsAsArr=t.fixEmptyParameters=t.resolveFiles=t.decodeEncodedValues=t.encodeFormData=void 0;const r=n(257),s=n(780),l=n(351);function o(e){return e.split(/&/gi).filter((e=>!!(e||"").replace(/\s+/g,""))).map((e=>{let t=decodeURIComponent(e),n=t.indexOf("=");return-1==n?[t]:[t.substring(0,n),t.substring(n+1)]}))}function i(e){return e.querySelectorAllDeep("input[type='file']").asArray.map((e=>[e.name.value||e.id.value,e.filesFromElem(0)])).flatMap((([e,t])=>[...t].map((t=>[e,t]))))}t.encodeFormData=function(e,t=(e,t)=>[e,t],n=l.EMPTY_STR){if(e.isAbsent())return n;const o=e.value;return new r.Es2019Array(...Object.keys(o)).filter((e=>o.hasOwnProperty(e))).flatMap((e=>o[e].map((n=>t(e,n))))).filter((([,e])=>!(e instanceof s.ExtDomQuery.global().File))).map((e=>`${encodeURIComponent(e[0])}=${encodeURIComponent(e[1])}`)).join("&")},t.decodeEncodedValues=o,t.resolveFiles=i,t.fixEmptyParameters=function(e){var t,n;return e.length<3?[null!==(t=null==e?void 0:e[0])&&void 0!==t?t:[],null!==(n=null==e?void 0:e[1])&&void 0!==n?n:[]]:e},t.getFormInputsAsArr=function(e){const t=function(e){return o((0,l.$faces)().getViewState(e.getAsElem(0).value))}(e),n=i(e);return t.concat(n)}},248:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HiddenInputBuilder=void 0;const r=n(257),s=n(351);t.HiddenInputBuilder=class{constructor(e){this.selector=e,this.namedViewRoot=!1;const t=-1!=e.indexOf((0,s.$nsp)(s.P_VIEWSTATE));this.name=t?s.P_VIEWSTATE:s.P_CLIENT_WINDOW,this.template=t?s.HTML_VIEWSTATE:s.HTML_CLIENT_WINDOW}withNamingContainerId(e){return this.namingContainerId=e,this}withParent(e){return this.parent=e,this}withNamedViewRoot(e){return this.namedViewRoot=e,this}build(){var e,t,n;const l=(0,s.$faces)().separatorchar;let o=(0,r.DQ$)(`[name*='${(0,s.$nsp)(this.name)}']`).asArray.map((e=>{let t=e.id.orElse("0").value;return t=t.substring(t.lastIndexOf(l)+1),parseInt(t)})).filter((e=>!isNaN(e))).reduce(((e,t)=>Math.max(e,t)),0);o++;const i=r.DQ.fromMarkup((0,s.$nsp)(this.template));return i.id.value=((null===(e=this.namingContainerId)||void 0===e?void 0:e.length)?[this.namingContainerId,(0,s.$nsp)(this.name),o]:[(0,s.$nsp)(this.name),o]).join(l),this.namedViewRoot?i.name.value=(null===(t=this.namingContainerId)||void 0===t?void 0:t.length)?[this.namingContainerId,(0,s.$nsp)(this.name)].join(l):(0,s.$nsp)(this.name):i.name.value=(0,s.$nsp)(this.name),null===(n=null==this?void 0:this.parent)||void 0===n||n.append(i),i}}},471:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtLang=void 0;const r=n(257),s=n(207),l=n(351),o=n(7),i=n(257);var a;!function(e){let t;function n(e,n,...r){var o,i;t=null!=t?t:new s.Messages;let a=null!==(i=null!==(o=t[e])&&void 0!==o?o:n)&&void 0!==i?i:e;return r.forEach(((e,t)=>{a=a.replace(new RegExp(["\\{",t,"\\}"].join(l.EMPTY_STR),"g"),e)})),a}function a(e,t,n,r,s,o){var i;return new Error(null!==(i=o+(null!=r?r:"impl/util/Lang/")+s)&&void 0!==i?i:l.EMPTY_STR+arguments.caller.toString())}e.getLanguage=function(){var e,t;let n=null!==(t=null===(e=navigator.languages)||void 0===e?void 0:e[0])&&void 0!==t?t:null===navigator||void 0===navigator?void 0:navigator.language;return n=n.split("-")[0],n},e.failSaveResolve=function(e,t=null){return r.Lang.saveResolve(e,t)},e.failSaveExecute=function(e,t=null){r.Lang.saveResolve(e,t)},e.getMessage=n,e.keyValToStr=function(e,t,n="\n"){return[e,t].join(n)},e.makeException=a,e.getGlobalConfig=function(e,t){var n,r,s;return null!==(s=null===(r=null===(n=null===window||void 0===window?void 0:window.myfaces)||void 0===n?void 0:n.config)||void 0===r?void 0:r[e])&&void 0!==s?s:t},e.getForm=function(e,t){let s=new r.DQ(e),i=t?new r.DQ((0,o.getEventTarget)(t)):r.DomQuery.absent;if(s.isTag(l.HTML_TAG_FORM))return s;if(s.attr(l.HTML_TAG_FORM).isPresent()){let e=s.attr(l.HTML_TAG_FORM).value,t=r.DQ.byId(e,!0);if(t.isPresent())return t}let u=s.firstParent(l.HTML_TAG_FORM).orElseLazy((()=>s.byTagName(l.HTML_TAG_FORM,!0))).orElseLazy((()=>i.firstParent(l.HTML_TAG_FORM))).orElseLazy((()=>i.byTagName(l.HTML_TAG_FORM))).first();return u=u.orElseLazy((()=>r.DQ.byTagName(l.HTML_TAG_FORM))),function(e){if(e.isAbsent()||e.length>1)throw a(new Error,null,null,"Impl","getForm",n("ERR_FORM"))}(u),u},e.getLocalOrGlobalConfig=function(e,t,n){var r,s,l,o,i,a,u;return null!==(u=null!==(o=null===(l=null===(s=null===(r=e.value)||void 0===r?void 0:r.myfaces)||void 0===s?void 0:s.config)||void 0===l?void 0:l[t])&&void 0!==o?o:null===(a=null===(i=null===window||void 0===window?void 0:window.myfaces)||void 0===i?void 0:i.config)||void 0===a?void 0:a[t])&&void 0!==u?u:n},e.ofAssoc=function(e){return new i.Es2019Array(...Object.keys(e)).map((t=>[t,e[t]]))},e.collectAssoc=function(e,t){return e[t[0]]=t[1],e};let u={};e.debounce=function(e,t,n){function r(){clearTimeout(u[e]),delete u[e]}(null==u?void 0:u[e])&&r(),n>0?u[e]=setTimeout((()=>{try{t()}finally{r()}}),n):t()}}(a||(t.ExtLang=a={}))},666:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XhrQueueController=void 0;var r=n(471).ExtLang.debounce;t.XhrQueueController=class{constructor(){this.queue=[],this.taskRunning=!1}enqueue(e,t=0){r("xhrQueue",(()=>{const t=this.enrichRunnable(e);this.taskRunning?this.queue.push(t):(this.signalTaskRunning(),t.start())}),t)}next(){this.updateTaskRunning();const e=this.queue.shift();null==e||e.start()}clear(){this.queue.length=0,this.updateTaskRunning()}get isEmpty(){return!this.queue.length}enrichRunnable(e){return e.then((()=>this.next())).catch((()=>this.clear()))}signalTaskRunning(){this.taskRunning=!0}updateTaskRunning(){this.taskRunning=!this.isEmpty}}},234:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorData=t.ErrorType=void 0;const r=n(351),s=n(257),l=n(560);var o,i=n(471).ExtLang.getMessage;!function(e){e.SERVER_ERROR="serverError",e.HTTP_ERROR="httpError",e.CLIENT_ERROR="clientErrror",e.TIMEOUT="timeout"}(o||(t.ErrorType=o={}));class a extends l.EventData{constructor(e,t,n,l=null,i=null,a=-1,u=null,c=o.CLIENT_ERROR){super(),this.type="error",this.source=s.DQ.byId(e).value.orElse(e).value,this.type=r.ERROR,this.errorName=t,this.errorMessage=n,this.responseCode=`${a}`,this.responseText=l,this.responseXML=i,this.status=u,this.description=`Status: ${this.status}\nResponse Code: ${this.responseCode}\nError Message: ${this.errorMessage}`,this.typeDetails=c,c==o.SERVER_ERROR&&(this.serverErrorName=this.errorName,this.serverErrorMessage=this.errorMessage)}static fromClient(e){var t,n,s,l;return new a(null!==(t=null==e?void 0:e.source)&&void 0!==t?t:"client",null!==(n=null==e?void 0:e.name)&&void 0!==n?n:r.EMPTY_STR,null!==(s=null==e?void 0:e.message)&&void 0!==s?s:r.EMPTY_STR,null!==(l=null==e?void 0:e.stack)&&void 0!==l?l:r.EMPTY_STR)}static fromHttpConnection(e,t,n,s,l,i,u=r.EMPTY_STR){return new a(e,t,n,s,l,i,u,o.HTTP_ERROR)}static fromGeneric(e,t,n=o.SERVER_ERROR){let s=this.getMsg,l=s(e,r.SOURCE),i=s(e,r.ERROR_NAME),u=s(e,r.ERROR_MESSAGE),c=s(e,r.STATUS),d=s(e,r.RESPONSE_TEXT),h=e.getIf(r.RESPONSE_XML).value;return new a(l,i,u,d,h,t,c,n)}static getMsg(e,t){return i(e.getIf(t).orElse(r.EMPTY_STR).value)}static fromServerError(e){return this.fromGeneric(e,-1)}}t.ErrorData=a},560:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EventData=void 0;const r=n(257),s=n(351);class l{static createFromRequest(e,t,n){var o;let i=new l;i.type=s.EVENT,i.status=n;let a=t.getIf(s.SOURCE).orElseLazy((()=>t.getIf(s.P_AJAX_SOURCE).value)).orElseLazy((()=>t.getIf(s.CTX_PARAM_REQ_PASS_THR,s.P_AJAX_SOURCE).value)).value;return a&&(i.source=r.DQ.byId(a,!0).first().value.value),n!==s.BEGIN&&(i.responseCode=null===(o=null==e?void 0:e.status)||void 0===o?void 0:o.toString(),i.responseText=null==e?void 0:e.responseText,i.responseXML=null==e?void 0:e.responseXML),i}}t.EventData=l},7:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resolveDefaults=t.getEventTarget=t.resolveWindowId=t.resolveDelay=t.resolveTimeout=t.resoveNamingContainerMapper=t.resolveViewRootId=t.resolveViewId=t.resolveForm=t.resolveFinalUrl=t.resolveTargetUrl=t.resolveHandlerFunc=void 0;const r=n(257),s=n(351),l=n(471),o=n(780),i=n(22);function a(e){return void 0===e.elements[s.ENCODED_URL]?e.action:e.elements[s.ENCODED_URL].value}function u(e){var t,n;return null!==(n=null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.windowId)&&void 0!==n?n:o.ExtDomQuery.windowId.value}t.resolveHandlerFunc=function(e,t,n){return(t=t||new r.Config({})).getIf(n).orElseLazy((()=>e.getIf(n).value)).orElse(s.EMPTY_FUNC).value},t.resolveTargetUrl=a,t.resolveFinalUrl=function(e,t,n=s.REQ_TYPE_POST){return a(e.getAsElem(0).value)+(n==s.REQ_TYPE_GET?"?"+t.toString():s.EMPTY_STR)},t.resolveForm=function(e,t){return l.ExtLang.getForm(e.getAsElem(0).value,t)},t.resolveViewId=function(e){const t=e.querySelectorAll(`input[type='hidden'][name*='${(0,s.$nsp)(s.P_VIEWSTATE)}']`).id.orElse("").value,n=(0,s.$faces)().separatorchar,r=t.split(n,2)[0],l=-1===r.indexOf((0,s.$nsp)(s.P_VIEWSTATE))?r:"";return 0===e.id.value.indexOf(l)?l:""},t.resolveViewRootId=function(e){const t=e.querySelectorAll(`input[type='hidden'][name*='${(0,s.$nsp)(s.P_VIEWSTATE)}']`).attr("name").orElse("").value,n=(0,s.$faces)().separatorchar,r=t.split(n,2)[0];return-1===r.indexOf((0,s.$nsp)(s.P_VIEWSTATE))?r:""},t.resoveNamingContainerMapper=function(e){if(!e.getIf(s.NAMED_VIEWROOT).isPresent())return(e,t)=>[e,t];const t=e.getIf(s.NAMING_CONTAINER_ID).value+(0,s.$faces)().separatorchar;return(e,n)=>0==e.indexOf(t)?[e,n]:[t+e,n]},t.resolveTimeout=function(e){var t;let n=l.ExtLang.getLocalOrGlobalConfig;return null!==(t=e.getIf(s.CTX_OPTIONS_TIMEOUT).value)&&void 0!==t?t:n(e.value,s.CTX_OPTIONS_TIMEOUT,0)},t.resolveDelay=function(e){let t=e.getIf(s.CTX_OPTIONS_DELAY).orElse(0).value;return t=s.DELAY_NONE===t?0:t,i.Assertions.assertDelay(t),t},t.resolveWindowId=u,t.getEventTarget=function(e){var t,n;let r=e,s=null!==(n=null!==(t=null==r?void 0:r.srcElement)&&void 0!==t?t:null==r?void 0:r.target)&&void 0!==n?n:null==r?void 0:r.source;for(;s&&1!=s.nodeType;)s=s.parentNode;return s},t.resolveDefaults=function(e,t,n=null){var s;const l=r.DQ.byId(n||e.target,!0),i=new o.ExtConfig(t).deepCopy;return{options:i,elem:l,elementId:l.id.value,windowId:u(i),isResetValues:!0===(null===(s=i.value)||void 0===s?void 0:s.resetValues)}}},413:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSourceForm=t.resolveSourceElement=t.resolveContexts=t.resolveResponseXML=void 0;const r=n(257),s=n(22),l=n(257),o=n(351),i=n(780);t.resolveResponseXML=function(e){let t=new r.XMLQuery((0,o.$nsp)(e.getIf(o.SEL_RESPONSE_XML).value));return s.Assertions.assertValidXMLResponse(t),t},t.resolveContexts=function(e){let t=i.ExtConfig.fromNullable(e),n=t.getIf(o.CTX_PARAM_MF_INTERNAL);return n.isPresent()||(n=i.ExtConfig.fromNullable({})),n.assign(o.DEFERRED_HEAD_INSERTS).value=[],n.assign(o.UPDATE_FORMS).value=[],n.assign(o.UPDATE_ELEMS).value=[],{externalContext:t,internalContext:n}},t.resolveSourceElement=function(e,t){let n=function(e,t){return t.getIf(o.CTX_PARAM_SRC_CTL_ID).orElseLazy((()=>e.getIf(o.SOURCE,"id").value))}(e,t);return l.DQ.byId(n.value,!0)},t.resolveSourceForm=function(e,t){let n=e.getIf(o.CTX_PARAM_SRC_FRM_ID),r=new l.DQ(n.isPresent()?document.forms[n.value]:null);return r=r.orElseLazy((()=>t.firstParent(o.HTML_TAG_FORM))).orElseLazy((()=>t.querySelectorAll(o.HTML_TAG_FORM))).orElseLazy((()=>l.DQ.querySelectorAll(o.HTML_TAG_FORM))),r}},121:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Response=void 0;const r=n(257),s=n(797),l=n(351),o=n(413),i=n(780);var a;!function(e){e.processResponse=function(e,n){let a=i.ExtConfig.fromNullable(e),{externalContext:u,internalContext:c}=(0,o.resolveContexts)(n),d=(0,o.resolveResponseXML)(a),h=new s.ResponseProcessor(a,u,c);c.assign(l.RESPONSE_XML).value=d,d.querySelectorAll(l.XML_TAG_PARTIAL_RESP).each((e=>function(e,n,s){var o;let i=null===(o=null==e?void 0:e.id)||void 0===o?void 0:o.value;s.assignIf(!!i,l.NAMING_CONTAINER_ID).value=i,n.updateNamedViewRootState();const a=[l.XML_TAG_ERROR,l.XML_TAG_REDIRECT,l.XML_TAG_CHANGES].join(",");e.querySelectorAll(a).each((e=>{switch(e.tagName.value){case l.XML_TAG_ERROR:n.error(e);break;case l.XML_TAG_REDIRECT:n.redirect(e);break;case l.XML_TAG_CHANGES:!function(e,n){const s=[l.XML_TAG_UPDATE,l.XML_TAG_EVAL,l.XML_TAG_INSERT,l.XML_TAG_DELETE,l.XML_TAG_ATTRIBUTES,l.XML_TAG_EXTENSION].join(", ");e.querySelectorAll(s).each((e=>{switch(e.tagName.value){case l.XML_TAG_UPDATE:!function(e,t){(function(e,t){return e.processViewState(t)||e.processClientWindow(t)})(t,e)||function(e,t){let n=e.cDATAAsString;switch(e.id.value){case(0,l.$nsp)(l.P_VIEWROOT):t.replaceViewRoot(r.DQ.fromMarkup(n.substring(n.indexOf("{Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseProcessor=void 0;const r=n(257),s=n(644),l=n(22),o=n(234),i=n(315),a=n(560),u=n(351),c=n(780),d=n(248);var h=r.Lang.trim,E=n(471).ExtLang.ofAssoc;class v{constructor(e,t,n){this.request=e,this.externalContext=t,this.internalContext=n}replaceHead(e){const t=e.querySelectorAll(u.HTML_TAG_HEAD);if(!t.isPresent())return;const n=c.ExtDomQuery.querySelectorAll(u.HTML_TAG_HEAD);n.childNodes.delete(),this.addToHead(t),n.copyAttrs(t)}addToHead(e){const t=new c.ExtDomQuery(e),n=[u.HTML_TAG_SCRIPT];t.filter((e=>-1==n.indexOf(e.tagName.orElse("").value))).runHeadInserts(!0);const s="HEAD"===e.tagName.value?e.childNodes:e,l=new r.DomQuery(...s.asArray.filter((e=>-1!=n.indexOf(e.tagName.orElse("").value))));this.addToHeadDeferred(l)}addToHeadDeferred(e){this.internalContext.assign(u.DEFERRED_HEAD_INSERTS).value.push(e)}replaceBody(e){const t=e.querySelectorAll(u.HTML_TAG_BODY);if(!t.isPresent())return;const n=t.innerHTML,r=c.ExtDomQuery.querySelectorAll(u.HTML_TAG_BODY),s=r.querySelectorAll(u.HTML_TAG_FORM);r.html(n).copyAttrs(t),this.externalContext.assign((0,u.$nsp)(u.P_RENDER_OVERRIDE)).value="@all",this.storeForPostProcessing(s,r)}eval(e){c.ExtDomQuery.globalEval(e.cDATAAsString)}error(e){const t=new c.ExtConfig({});t.assign(u.SOURCE).value=this.externalContext.getIf(u.P_AJAX_SOURCE).get(0).value,t.assign(u.ERROR_NAME).value=e.querySelectorAll(u.ERROR_NAME).textContent(u.EMPTY_STR),t.assign(u.ERROR_MESSAGE).value=e.querySelectorAll(u.ERROR_MESSAGE).cDATAAsString;const n=this.internalContext.get(u.RESPONSE_XML).isPresent();t.assignIf(n,u.RESPONSE_XML).value=this.internalContext.getIf(u.RESPONSE_XML).value.get(0).value;const r=o.ErrorData.fromServerError(t);this.triggerOnError(r),s.Implementation.sendError(r)}redirect(e){l.Assertions.assertUrlExists(e);const t=h(e.attr(u.ATTR_URL).value);t!=u.EMPTY_STR&&(window.location.href=t)}update(e,t){const n=c.ExtDomQuery.byId(e.id.value,!0).outerHTML(t,!1,!1),r=null==n?void 0:n.firstParent(u.HTML_TAG_FORM).orElseLazy((()=>n.byTagName(u.HTML_TAG_FORM,!0)));r&&this.storeForPostProcessing(r,n)}delete(e){r.DQ.byId(e.id.value,!0).delete()}attributes(e){const t=r.DQ.byId(e.id.value,!0);e.byTagName(u.XML_TAG_ATTR).each((e=>{t.attr(e.attr(u.ATTR_NAME).value).value=e.attr(u.ATTR_VALUE).value}))}replaceViewRoot(e){this.replaceHead(e),this.replaceBody(e)}insert(e){const t=e.attr(u.XML_TAG_BEFORE),n=e.attr(u.XML_TAG_AFTER),s=r.DQ.fromMarkup(e.cDATAAsString);t.isPresent()&&(r.DQ.byId(t.value,!0).insertBefore(s),this.internalContext.assign(u.UPDATE_ELEMS).value.push(s)),n.isPresent()&&(r.DQ.byId(n.value,!0).insertAfter(s),this.internalContext.assign(u.UPDATE_ELEMS).value.push(s))}insertWithSubTags(e){const t=e.querySelectorAll(u.XML_TAG_BEFORE),n=e.querySelectorAll(u.XML_TAG_AFTER);t.each((e=>{const t=e.attr(u.ATTR_ID),n=r.DQ.fromMarkup(e.cDATAAsString);t.isPresent()&&(r.DQ.byId(t.value,!0).insertBefore(n),this.internalContext.assign(u.UPDATE_ELEMS).value.push(n))})),n.each((e=>{const t=e.attr(u.ATTR_ID),n=r.DQ.fromMarkup(e.cDATAAsString);t.isPresent()&&(r.DQ.byId(t.value,!0).insertAfter(n),this.internalContext.assign(u.UPDATE_ELEMS).value.push(n))}))}processViewState(e){if(v.isViewStateNode(e)){const t=e.cDATAAsString;return this.internalContext.assign(u.APPLIED_VST,e.id.value).value=new i.StateHolder((0,u.$nsp)(e.id.value),t),!0}return!1}processClientWindow(e){if(v.isClientWindowNode(e)){const t=e.cDATAAsString;return this.internalContext.assign(u.APPLIED_CLIENT_WINDOW,e.id.value).value=new i.StateHolder((0,u.$nsp)(e.id.value),t),!0}}globalEval(){new c.ExtDomQuery(...this.internalContext.getIf(u.DEFERRED_HEAD_INSERTS).value).runHeadInserts(!0);let e=new c.ExtDomQuery(...this.internalContext.getIf(u.UPDATE_ELEMS).value);e.runCss(),e.runScripts()}fixViewStates(){E(this.internalContext.getIf(u.APPLIED_VST).orElse({}).value).forEach((([,e])=>{const t=this.internalContext.getIf(u.NAMING_CONTAINER_ID),n=!!this.internalContext.getIf(u.NAMED_VIEWROOT).value,r=this.getContainerForms(t).filter((e=>this.isInExecuteOrRender(e)));this.appendViewStateToForms(r,n,e.value,t.orElse("").value)}))}fixClientWindow(){E(this.internalContext.getIf(u.APPLIED_CLIENT_WINDOW).orElse({}).value).forEach((([,e])=>{const t=this.internalContext.getIf(u.NAMING_CONTAINER_ID),n=!!this.internalContext.getIf(u.NAMED_VIEWROOT).value,r=this.getContainerForms(t).filter((e=>this.isInExecuteOrRender(e)));this.appendClientWindowToForms(r,n,e.value,t.orElse("").value)}))}updateNamedViewRootState(){let e=this.internalContext.getIf(u.NAMING_CONTAINER_ID),t=this.internalContext.getIf(u.NAMED_VIEWROOT);if(e.isPresent()&&(t.isAbsent()||!t.value)){const t=(0,u.$faces)().separatorchar;this.internalContext.assign(u.NAMED_VIEWROOT).value=!!document.getElementById(e.value)||(0,r.DQ$)(`input[name*='${(0,u.$nsp)(u.P_VIEWSTATE)}']`).filter((n=>0==n.attr("name").value.indexOf(e.value+t))).length>0}}done(){const e=a.EventData.createFromRequest(this.request.value,this.externalContext,u.SUCCESS),t=this.externalContext.getIf(u.ON_EVENT).orElseLazy((()=>this.internalContext.getIf(u.ON_EVENT).value)).orElse(u.EMPTY_FUNC).value;s.Implementation.sendEvent(e,t)}appendViewStateToForms(e,t,n,r=""){this.assignState(e,(0,u.$nsp)(u.SEL_VIEWSTATE_ELEM),t,n,r)}appendClientWindowToForms(e,t,n,r=""){this.assignState(e,(0,u.$nsp)(u.SEL_CLIENT_WINDOW_ELEM),t,n,r)}assignState(e,t,n,r,s){e.each((e=>{e.querySelectorAll(t).orElseLazy((()=>(e=>new d.HiddenInputBuilder(t).withNamingContainerId(s).withParent(e).withNamedViewRoot(n).build())(e))).val=r}))}storeForPostProcessing(e,t){this.storeForUpdate(e),this.storeForEval(t)}storeForUpdate(e){this.internalContext.assign(u.UPDATE_FORMS).value.push(e)}storeForEval(e){this.internalContext.assign(u.UPDATE_ELEMS).value.push(e)}static isViewStateNode(e){var t,n,r,s,l,o;const i=(0,u.$faces)().separatorchar;return void 0!==(null===(t=null==e?void 0:e.id)||void 0===t?void 0:t.value)&&((null===(n=null==e?void 0:e.id)||void 0===n?void 0:n.value)==(0,u.$nsp)(u.P_VIEWSTATE)||-1!=(null===(s=null===(r=null==e?void 0:e.id)||void 0===r?void 0:r.value)||void 0===s?void 0:s.indexOf([i,(0,u.$nsp)(u.P_VIEWSTATE)].join(u.EMPTY_STR)))||-1!=(null===(o=null===(l=null==e?void 0:e.id)||void 0===l?void 0:l.value)||void 0===o?void 0:o.indexOf([(0,u.$nsp)(u.P_VIEWSTATE),i].join(u.EMPTY_STR))))}static isClientWindowNode(e){var t,n,r,s,l,o;const i=(0,u.$faces)().separatorchar;return void 0!==(null===(t=null==e?void 0:e.id)||void 0===t?void 0:t.value)&&((null===(n=null==e?void 0:e.id)||void 0===n?void 0:n.value)==(0,u.$nsp)(u.P_CLIENT_WINDOW)||-1!=(null===(s=null===(r=null==e?void 0:e.id)||void 0===r?void 0:r.value)||void 0===s?void 0:s.indexOf([i,(0,u.$nsp)(u.P_CLIENT_WINDOW)].join(u.EMPTY_STR)))||-1!=(null===(o=null===(l=null==e?void 0:e.id)||void 0===l?void 0:l.value)||void 0===o?void 0:o.indexOf([(0,u.$nsp)(u.P_CLIENT_WINDOW),i].join(u.EMPTY_STR))))}triggerOnError(e){this.externalContext.getIf(u.ON_ERROR).orElseLazy((()=>this.internalContext.getIf(u.ON_ERROR).value)).orElse(u.EMPTY_FUNC).value(e)}isInExecuteOrRender(e){const t=this.externalContext.getIf((0,u.$nsp)(u.P_EXECUTE)).orElse("@none").value.split(/\s+/gi),n=this.externalContext.getIf(u.P_RENDER_OVERRIDE).orElseLazy((()=>this.externalContext.getIf((0,u.$nsp)(u.P_RENDER)).value)).orElse(u.IDENT_NONE).value.split(/\s+/gi);return[...t.concat(...n)].filter((t=>{if(-1!=[u.IDENT_ALL,u.IDENT_NONE].indexOf(t))return!0;const n=this.getNameOrIdSelector(t);return e.matchesSelector(n)||e.querySelectorAll(n).isPresent()||e.firstParent(n).isPresent()})).length>0}getContainerForms(e){return e.isPresent()?(0,r.DQ$)(this.getNameOrIdSelector(e.value)).orElseLazy((()=>r.DQ.byTagName(u.HTML_TAG_BODY))).byTagName(u.HTML_TAG_FORM,!0):r.DQ.byTagName(u.HTML_TAG_FORM)}getNameOrIdSelector(e){return`[id='${e}'], [name='${e}']`}}t.ResponseProcessor=v},944:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XhrFormData=void 0;const r=n(257),s=n(351),l=n(680);var o=n(471).ExtLang.ofAssoc;const i=n(257),a=(e,t)=>[e,t];class u extends r.Config{constructor(e,t=a,n,r){super({}),this.dataSource=e,this.paramsMapper=t,this.partialIds=r,this.isMultipartRequest=!1,this.resolveRequestType(this.dataSource,n),this.encodeSubmittableFields(this.dataSource,this.partialIds),this.applyViewState(this.dataSource)}toFormData(){return o(this.value).flatMap((([e,t])=>Array.isArray(t)?new i.Es2019Array(...t).map((t=>({key:e,value:t}))):[{key:e,value:t}])).map((({key:e,value:t})=>({key:e=this.remapKeyForNamingContainer(e),value:t}))).reduce(((e,{key:t,value:n})=>(e.append(t,n),e)),new FormData)}toString(e=s.EMPTY_STR){return(0,l.encodeFormData)(this,this.paramsMapper,e)}resolveRequestType(e,t){t&&-1==t.indexOf(s.IDENT_NONE)&&(this.isMultipartRequest=e.isMultipartCandidate(!0))}applyViewState(e){if(this.getIf((0,s.$nsp)(s.P_VIEWSTATE)).isPresent())return;let t=e.querySelectorAllDeep(`[name*='${(0,s.$nsp)(s.P_VIEWSTATE)}'`),n=t.inputValue;this.appendIf(n.isPresent(),this.remapKeyForNamingContainer(t.name.value)).value=n.value}encodeSubmittableFields(e,t=[]){const n=t.map((e=>this.remapKeyForNamingContainer(e)));(0,l.getFormInputsAsArr)(e).map(l.fixEmptyParameters).map((([e,t])=>this.paramsMapper(e,t))).filter((([e,t])=>!n.length||0==e.indexOf("@")||-1!=n.indexOf(e))).forEach((([e,t])=>this.append(e).value=t))}remapKeyForNamingContainer(e){return this.paramsMapper(e,"")[0]}}t.XhrFormData=u},229:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XhrRequest=void 0;const r=n(726),s=n(257),l=n(644),o=n(944),i=n(234),a=n(560),u=n(471),c=n(351),d=n(7);var h=u.ExtLang.failSaveExecute;const E=n(780);class v extends r.AsyncRunnable{constructor(e,t,n=c.NO_TIMEOUT,r=c.REQ_TYPE_POST,s=c.URL_ENCODED){super(),this.requestContext=e,this.internalContext=t,this.timeout=n,this.ajaxType=r,this.contentType=s,this.stopProgress=!1,this.xhrObject=new XMLHttpRequest,this.registerXhrCallbacks((e=>this.resolve(e)),(e=>this.reject(e)))}start(){let e=h,t=this.xhrObject,n=s.DQ.byId(this.internalContext.getIf(c.CTX_PARAM_SRC_FRM_ID).value),r=()=>this.requestContext.getIf(c.CTX_PARAM_REQ_PASS_THR,c.P_EXECUTE).get(c.IDENT_NONE).value.split(/\s+/gi);try{const s=r(),l=!0===this.internalContext.getIf(c.CTX_PARAM_PPS).value?s:[],i=new o.XhrFormData(n,(0,d.resoveNamingContainerMapper)(this.internalContext),s,l);this.contentType=i.isMultipartRequest?"undefined":this.contentType,this.requestContext.$nspEnabled=!1;const a=this.requestContext,u=a.getIf(c.CTX_PARAM_REQ_PASS_THR);u.$nspEnabled=!1;try{i.shallowMerge(u,!0,!0)}finally{this.requestContext.$nspEnabled=!0,u.$nspEnabled=!0}this.appendIssuingItem(i),this.responseContext=u.deepCopy;const h=this.responseContext;h.assign(c.CTX_PARAM_MF_INTERNAL).value=this.internalContext.value,h.assign(c.ON_EVENT).value=a.getIf(c.ON_EVENT).value,h.assign(c.ON_ERROR).value=a.getIf(c.ON_ERROR).value,t.open(this.ajaxType,(0,d.resolveFinalUrl)(n,i,this.ajaxType),!0),this.timeout&&(t.timeout=this.timeout),"undefined"!=this.contentType&&e((()=>t.setRequestHeader(c.CONTENT_TYPE,`${this.contentType}; charset=utf-8`))),e((()=>t.setRequestHeader(c.HEAD_FACES_REQ,c.VAL_AJAX))),e((()=>t.setRequestHeader(c.REQ_ACCEPT,c.STD_ACCEPT))),this.sendEvent(c.BEGIN),this.sendRequest(i)}catch(e){throw this.handleErrorAndClearQueue(e),e}return this}cancel(){try{this.xhrObject.abort()}catch(e){this.handleError(e)}}registerXhrCallbacks(e,t){var n,r;const s=this.xhrObject;s.onabort=()=>{this.onAbort(e,t)},s.ontimeout=()=>{this.onTimeout(e,t)},s.onload=()=>{this.onResponseReceived(e)},s.onloadend=()=>{this.onResponseProcessed(this.xhrObject,e)},(null==s?void 0:s.upload)&&(null===(r=(n=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_PREINIT)).value)||void 0===r||r.call(n,s.upload),s.upload.addEventListener("progress",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_ON_PROGRESS)).value)||void 0===n||n.call(t,s.upload,e)})),s.upload.addEventListener("load",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_LOAD)).value)||void 0===n||n.call(t,s.upload,e)})),s.upload.addEventListener("loadstart",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_LOADSTART)).value)||void 0===n||n.call(t,s.upload,e)})),s.upload.addEventListener("loadend",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_LOADEND)).value)||void 0===n||n.call(t,s.upload,e)})),s.upload.addEventListener("abort",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_ABORT)).value)||void 0===n||n.call(t,s.upload,e)})),s.upload.addEventListener("timeout",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_TIMEOUT)).value)||void 0===n||n.call(t,s.upload,e)})),s.upload.addEventListener("error",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_ERROR)).value)||void 0===n||n.call(t,s.upload,e)}))),s.onerror=e=>{if(this.isCancelledResponse(this.xhrObject))return this.stopProgress=!0,void t();this.stopProgress||this.handleError(e)}}isCancelledResponse(e){return 0===(null==e?void 0:e.status)&&4===(null==e?void 0:e.readyState)&&""===(null==e?void 0:e.responseText)&&null===(null==e?void 0:e.responseXML)}onAbort(e,t){this.handleHttpError(t)}onTimeout(e,t){this.sendEvent(c.STATE_EVT_TIMEOUT),this.handleHttpError(e)}onResponseReceived(e){var t;this.sendEvent(c.COMPLETE),this.processRequestErrors(e)||(0,c.$faces)().ajax.response(this.xhrObject,null!==(t=this.responseContext.value)&&void 0!==t?t:{})}processRequestErrors(e){var t,n,r;const l=new s.XMLQuery(null===(t=this.xhrObject)||void 0===t?void 0:t.responseXML),o=null!==(r=null===(n=this.xhrObject)||void 0===n?void 0:n.status)&&void 0!==r?r:-1;if(l.isXMLParserError()){const t="Invalid Response",n="The response xml is invalid";return this.handleGenericResponseError(t,n,c.MALFORMEDXML,e),!0}if(l.isAbsent()){const t="Empty Response",n="The response has provided no data";return this.handleGenericResponseError(t,n,c.EMPTY_RESPONSE,e),!0}return(o>=300||o<200)&&(this.handleHttpError(e),!0)}handleGenericResponseError(e,t,n,r){var s,l,o,a;const u=new i.ErrorData(this.internalContext.getIf(c.CTX_PARAM_SRC_CTL_ID).value,e,t,null!==(l=null===(s=this.xhrObject)||void 0===s?void 0:s.responseText)&&void 0!==l?l:"",null!==(a=null===(o=this.xhrObject)||void 0===o?void 0:o.responseXML)&&void 0!==a?a:null,this.xhrObject.status,n);this.finalizeError(u,r)}handleHttpError(e,t="Generic HTTP Serror"){var n,r,s,l,o,a;this.stopProgress=!0;const u=new i.ErrorData(this.internalContext.getIf(c.CTX_PARAM_SRC_CTL_ID).value,c.HTTP_ERROR,t,null!==(r=null===(n=this.xhrObject)||void 0===n?void 0:n.responseText)&&void 0!==r?r:"",null!==(l=null===(s=this.xhrObject)||void 0===s?void 0:s.responseXML)&&void 0!==l?l:null,null!==(a=null===(o=this.xhrObject)||void 0===o?void 0:o.status)&&void 0!==a?a:-1,c.HTTP_ERROR);this.finalizeError(u,e)}finalizeError(e,t){try{this.handleError(e,!0)}finally{t(e),this.stopProgress=!0}}onResponseProcessed(e,t){this.stopProgress||t(e)}sendRequest(e){const t=this.ajaxType!=c.REQ_TYPE_GET;e.isMultipartRequest?this.xhrObject.send(t?e.toFormData():null):this.xhrObject.send(t?e.toString():null)}sendEvent(e){var t;const n=a.EventData.createFromRequest(this.xhrObject,this.requestContext,e);try{let e=(0,d.resolveHandlerFunc)(this.requestContext,this.responseContext,c.ON_EVENT);l.Implementation.sendEvent(n,e)}catch(e){throw e.source=null!==(t=null==e?void 0:e.source)&&void 0!==t?t:this.requestContext.getIf(c.SOURCE).value,this.handleErrorAndClearQueue(e),e}}handleErrorAndClearQueue(e,t=!1){this.handleError(e,t),this.reject(e)}handleError(e,t=!1){var n;const r=t?i.ErrorData.fromHttpConnection(e.source,e.type,null!==(n=e.message)&&void 0!==n?n:c.EMPTY_STR,e.responseText,e.responseXML,e.responseCode,e.status):i.ErrorData.fromClient(e),s=(0,d.resolveHandlerFunc)(this.requestContext,this.responseContext,c.ON_ERROR);l.Implementation.sendError(r,s)}appendIssuingItem(e){var t,n;const r=this.internalContext.getIf(c.CTX_PARAM_SRC_CTL_ID).value,l=null!==(n=null===(t=e.getIf((0,c.$nsp)(c.P_BEHAVIOR_EVENT)).value)||void 0===t?void 0:t[0])&&void 0!==n?n:null,o=!!l&&"click"!=l;if(r&&e.getIf(r).isAbsent()&&!o){const t=s.DQ.byId(r),n=t.inputValue,l=new E.ExtConfig({}),o=t.type.orElse("").value.toLowerCase();if(!(o!=v.TYPE_CHECKBOX&&o!=v.TYPE_RADIO||t.checked))return;o==v.TYPE_CHECKBOX||o==v.TYPE_RADIO?l.assign(r).value=n.orElse(!0).value:n.isPresent()&&(l.assign(r).value=n.value),e.shallowMerge(l,!0,!0)}}}t.XhrRequest=v,v.TYPE_CHECKBOX="checkbox",v.TYPE_RADIO="radio"},19:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.oam=void 0;const r=n(257),s=n(471);var l;!function(e){var t=s.ExtLang.ofAssoc;e.setHiddenInput=function(e,t,n){r.DQ.byId(document.forms[e]).each((e=>{const s=e.querySelectorAll(`input[type='hidden'][name='${t}']`);if(s.isPresent())s.inputValue.value=n;else{const s=r.DQ.fromMarkup(``);s.inputValue.value=n,s.appendTo(e)}}))},e.clearHiddenInput=function(e,t){var n,s,l;let o=null===(l=null===(s=null===(n=document.forms)||void 0===n?void 0:n[e])||void 0===s?void 0:s.elements)||void 0===l?void 0:l[t];o&&r.DQ.byId(o).delete()},e.submitForm=function(e,n=null,s=null,l={}){var o,i,a,u,c,d;l=l||{};let h="clearFormHiddenParams_"+e.replace(/-/g,"$:").replace(/:/g,"_");null===(o=null===window||void 0===window?void 0:window[h])||void 0===o||o.call(window,e),(null===(u=null===(a=null===(i=null===window||void 0===window?void 0:window.myfaces)||void 0===i?void 0:i.core)||void 0===a?void 0:a.config)||void 0===u?void 0:u.autoScroll)&&(null===window||void 0===window?void 0:window.getScrolling)&&myfaces.oam.setHiddenInput(e,"autoScroll",null===window||void 0===window?void 0:window.getScrolling());let E=Array.isArray(l)?[...l]:t(l);return E.forEach((([t,n])=>myfaces.oam.setHiddenInput(e,t,n))),myfaces.oam.setHiddenInput(e,`${e}:_idcl`,null!=n?n:""),r.DQ.byId(null!==(d=null===(c=document.forms)||void 0===c?void 0:c[e])&&void 0!==d?d:document.getElementById(e)).each((t=>{var n;const r=t.getAsElem(0).value,l=t.getAsElem(0).value.getAttribute("target");"null"!=s&&s&&t.getAsElem(0).value.setAttribute("target",s);const o=null===(n=null==r?void 0:r.onsubmit)||void 0===n?void 0:n.call(r,null);try{(o||void 0===o)&&r.submit()}catch(e){null===window||void 0===window||window.console.error(e)}finally{null==l||"null"==l?t.getAsElem(0).value.removeAttribute("target"):t.getAsElem(0).value.setAttribute("target",l),E.forEach((([t,n])=>{myfaces.oam.clearHiddenInput(e,t)})),myfaces.oam.clearHiddenInput(e,`${e}:_idcl`)}})),!1}}(l||(t.oam=l={}))}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var l=t[r]={exports:{}};return e[r].call(l.exports,l,l.exports,n),l.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var r={};(()=>{var e,t,s,l=r;if(Object.defineProperty(l,"__esModule",{value:!0}),l.myfaces=l.faces=void 0,!window.faces){const t=n(973).J_;window.faces=null!==(e=null===window||void 0===window?void 0:window.faces)&&void 0!==e?e:t}if(!(null===(t=null===window||void 0===window?void 0:window.myfaces)||void 0===t?void 0:t.ab)){const e=n(973).$A;window.myfaces=null!==(s=null===window||void 0===window?void 0:window.myfaces)&&void 0!==s?s:{},Object.keys(e).forEach((t=>{var n,r;return window.myfaces[t]=null!==(r=null===(n=window.myfaces)||void 0===n?void 0:n[t])&&void 0!==r?r:e[t]}))}l.faces=window.faces,l.myfaces=window.myfaces})();var s=window;for(var l in r)s[l]=r[l];r.__esModule&&Object.defineProperty(s,"__esModule",{value:!0})})(); +(()=>{"use strict";var e={771:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.deepEqual=t.shallowMerge=t.simpleShallowMerge=t.deepCopy=t.buildPath=t.resolve=t.appendIf=t.assignIf=t.append=t.assign=void 0;const r=n(86);class s{constructor(e){this.parent=e}set value(e){}get value(){return this.parent}}function l(e,...t){if(t.length<1)return new s(e);const n=d(e,...t);return new class{set value(e){n.target[n.key]=e}get value(){return n.target[n.key]}}}function o(e,...t){if(t.length<1)return new s(e);const n=d(e,...t);return new class{set value(e){Array.isArray(e)||(e=[e]),n.target[n.key]?(Array.isArray(n.target[n.key])||(n.target[n.key]=[n.target[n.key]]),n.target[n.key].push(...e)):n.target[n.key]=e}}}function i(e){let t=e.indexOf("[");return t>=0?e.substring(0,t):e}function a(e){let t=e.indexOf("["),n=e.indexOf("]");return t>=0&&n>0&&te.split("["))).map((e=>-1!=e.indexOf("]")?"["+e:e)).filter((e=>""!=e))}function d(e,...t){t=c(t);let n=e,r=null,s=null,l=-1;for(let e=0;e({arr:e,keys:Object.keys(e)}))).forEach((({arr:n,keys:l})=>{l.forEach((l=>{let o=n[l];!Array.isArray(o)&&t&&(o=new r.Es2019Array(...[o])),e||!(null==s?void 0:s[l])?function(e,t,n,s,l){if(e)if(void 0===(null==t?void 0:t[n]))t[n]=l;else if(Array.isArray(t[n])){let e=t[n],r=[];l.forEach((t=>{-1==e.indexOf(t)&&r.push(t)})),t[n].push(...r)}else{let e=t[n],s=[];l.forEach((t=>{e!=t&&s.push(t)})),t[n]=new r.Es2019Array(...[]),t[n].push(e),t[n].push(...s)}else t[n]=s[n]}(t,s,l,n,o):!e&&(null==s?void 0:s[l])&&function(e,t,n,s,l){if(e)if(void 0===(null==t?void 0:t[n]))t[n]=l;else if(Array.isArray(t[n]))t[n].push(...l);else{let e=t[n];t[n]=new r.Es2019Array(...[]),t[n].push(e),t[n].push(...l)}}(t,s,l,0,o)}))})),s}t.assign=l,t.append=o,t.assignIf=function(e,t,...n){return!e||n.length<1?new s(t):l(t,...n)},t.appendIf=function(e,t,...n){return!e||n.length<1?new s(t):o(t,...n)},t.resolve=function(e,...t){let n=null;t=c(t);let r=e;for(let e=0;ee(t,n[r])))}if("object"==typeof t&&"object"==typeof n){let r=Object.keys(t),s=Object.keys(n);return r.length==s.length&&r.every((e=>-1!=s.indexOf(e)))&&r.every((r=>e(t[r],n[r])))}return!1}},517:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Config=t.CONFIG_ANY=t.CONFIG_VALUE=void 0;const r=n(86),s=n(204);var l=n(519).Lang.objAssign;const o=n(771);class i extends s.ValueEmbedder{constructor(e,t,n){super(e,t),this.arrPos=null!=n?n:-1}get value(){return""==this.key&&this.arrPos>=0?this._value[this.arrPos]:this.key&&this.arrPos>=0?this._value[this.key][this.arrPos]:this._value[this.key]}set value(e){""==this.key&&this.arrPos>=0?this._value[this.arrPos]=e:this.key&&this.arrPos>=0?this._value[this.key][this.arrPos]=e:this._value[this.key]=e}}i.absent=i.fromNullable(null),t.CONFIG_VALUE="__END_POINT__",t.CONFIG_ANY="__ANY_POINT__";class a extends s.Optional{constructor(e,t){super(e),this.configDef=t}get shallowCopy(){return this.shallowCopy$()}shallowCopy$(){let e=new a({});return e.shallowMerge(this.value),e}get deepCopy(){return this.deepCopy$()}deepCopy$(){return new a(l({},this.value))}static fromNullable(e){return new a(e)}shallowMerge(e,t=!0,n=!1){let r=(0,o.shallowMerge)(t,n,this.value,e.value);Array.isArray(this._value)?(this._value.length=0,this._value.push(...r)):(Object.getOwnPropertyNames(this._value).forEach((e=>delete this._value[e])),Object.getOwnPropertyNames(r).forEach((e=>this._value[e]=r[e])))}append(...e){return(0,o.append)(this._value,...e)}appendIf(e,...t){return(0,o.appendIf)(e,this._value,...t)}assign(...e){return(0,o.assign)(this.value,...e)}assignIf(e,...t){return(0,o.assignIf)(e,this._value,...t)}getIf(...e){return this.assertAccessPath(...e),this.getClass().fromNullable((0,o.resolve)(this.value,...e))}get(e){return this.getClass().fromNullable(super.get(e).value)}delete(e){return e in this.value&&delete this.value[e],this}toJson(){return JSON.stringify(this.value)}getClass(){return a}setVal(e){this._value=e}assertAccessPath(...e){var n,l,o,i,a,u,c,d,h;if(e=this.preprocessKeys(...e),!this.configDef)return;let E=s.Optional.fromNullable(Object.keys(this.configDef).map((e=>{let t={};return t[e]=this.configDef[e],t})));for(let v=0;v{var t;return!(null===(t=null==e?void 0:e[_])||void 0===t||!t)})))||void 0===n?void 0:n[_])||void 0===l?void 0:l[f]):s.Optional.fromNullable(null!==(a=null===(i=null===(o=E.value)||void 0===o?void 0:o[_])||void 0===i?void 0:i[f])&&void 0!==a?a:null):Array.isArray(E.value)?s.Optional.fromNullable(null===(u=E.value)||void 0===u?void 0:u[f]):s.Optional.absent:Array.isArray(E.value)?s.Optional.fromNullable(null===(c=new r.Es2019Array(...E.value).find((e=>{var t;return!(null===(t=null==e?void 0:e[_])||void 0===t||!t)})))||void 0===c?void 0:c[_]):s.Optional.fromNullable(null!==(h=null===(d=E.value)||void 0===d?void 0:d[_])&&void 0!==h?h:null),!E.isPresent())throw Error("Access Path to config invalid");if(E.value==t.CONFIG_ANY)return}}isNoArray(e){return-1==e}isArray(e){return!this.isNoArray(e)}}t.Config=a},331:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(s,l){function o(e){try{a(r.next(e))}catch(e){l(e)}}function i(e){try{a(r.throw(e))}catch(e){l(e)}}function a(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,i)}a((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.DQ$=t.DQ=t.DomQueryCollector=t.DomQuery=t.Style=t.ElementAttribute=void 0;const s=n(204),l=n(785),o=n(519),i=n(228),a=n(86);var u=o.Lang.trim,c=o.Lang.isString,d=o.Lang.equalsIgnoreCase,h=o.Lang.objToArray;const E=n(771);class v extends s.ValueEmbedder{constructor(e){super(null==e?void 0:e[0],"nonce"),this.rootElems=e}isAbsent(){const e=this.value;return void 0===e||""==e}get value(){var e,t,n,r,s;return null!==(n=null===(t=null===(e=null==this?void 0:this.rootElems)||void 0===e?void 0:e[0])||void 0===t?void 0:t.nonce)&&void 0!==n?n:null===(s=null===(r=null==this?void 0:this.rootElems)||void 0===r?void 0:r[0])||void 0===s?void 0:s.getAttribute("nonce")}set value(e){var t;(null===(t=null==this?void 0:this.rootElems)||void 0===t?void 0:t.length)&&this.rootElems.forEach((t=>{void 0!==(null==t?void 0:t.nonce)?t.nonce=e:t.setAttribute("nonce",e)}))}}var _;!function(e){e.SELECT="select",e.BUTTON="button",e.SUBMIT="submit",e.RESET="reset",e.IMAGE="image",e.RADIO="radio",e.CHECKBOX="checkbox"}(_||(_={}));class f extends s.ValueEmbedder{constructor(e,t,n=null){super(e,t),this.element=e,this.name=t,this.defaultVal=n}get value(){let e=this.element.get(0).orElse().values;return e.length?e[0].getAttribute(this.name):this.defaultVal}set value(e){let t=this.element.get(0).orElse().values;for(let n=0;n!0;class A{constructor(...e){if(this.rootNode=[],this.pos=-1,this._limits=-1,!s.Optional.fromNullable(e).isAbsent()&&e.length)for(let t=0;t!!e.checked))}set checked(e){this.eachElem((t=>t.checked=e))}get elements(){return this.querySelectorAll("input, checkbox, select, textarea, fieldset")}get deepElements(){return this.querySelectorAllDeep("input, select, textarea, checkbox, fieldset")}querySelectorAllDeep(e){let t=[],n=this.querySelectorAll(e);n.length&&t.push(n);let r=this.querySelectorAll("*").shadowRoot;if(r.length){let n=r.querySelectorAllDeep(e);n.length&&t.push(n)}return new A(...t)}get disabled(){return this.attr("disabled").isPresent()}set disabled(e){e?this.attr("disabled").value="disabled":this.removeAttribute("disabled")}removeAttribute(e){this.eachElem((t=>t.removeAttribute(e)))}get childNodes(){let e=[];return this.eachElem((t=>{e=e.concat(h(t.childNodes))})),new A(...e)}get asArray(){return new a.Es2019Array(...this.rootNode).filter((e=>null!=e)).map((e=>A.byId(e)))}get offsetWidth(){return new a.Es2019Array(...this.rootNode).filter((e=>null!=e)).map((e=>e.offsetWidth)).reduce(((e,t)=>e+t),0)}get offsetHeight(){return new a.Es2019Array(...this.rootNode).filter((e=>null!=e)).map((e=>e.offsetHeight)).reduce(((e,t)=>e+t),0)}get offsetLeft(){return new a.Es2019Array(...this.rootNode).filter((e=>null!=e)).map((e=>e.offsetLeft)).reduce(((e,t)=>e+t),0)}get offsetTop(){return new a.Es2019Array(this.rootNode).filter((e=>null!=e)).map((e=>e.offsetTop)).reduce(((e,t)=>e+t),0)}get asNodeArray(){return new a.Es2019Array(...this.rootNode.filter((e=>null!=e)))}get nonce(){return new v(this.rootNode)}static querySelectorAllDeep(e){return new A(document).querySelectorAllDeep(e)}static querySelectorAll(e){return-1!=e.indexOf("/shadow/")?new A(document)._querySelectorAllDeep(e):new A(document)._querySelectorAll(e)}static byId(e,t=!1){return c(e)?t?new A(document).byIdDeep(e):new A(document).byId(e):new A(e)}static byTagName(e){return c(e)?new A(document).byTagName(e):new A(e)}static globalEval(e,t){return new A(document).globalEval(e,t)}static globalEvalSticky(e,t){return new A(document).globalEvalSticky(e,t)}static fromMarkup(e){const t=document.implementation.createHTMLDocument("");let n=(e=u(e)).toLowerCase();if(-1!=n.search(/"].join(""),r=["<",t," "].join("");return 0==e.indexOf(n)||0==e.indexOf(r)},r=new A(document.createElement("div"));return t(n,"thead")||t(n,"tbody")?(r.html(`${e}
`),r.querySelectorAll("table").get(0).childNodes.detach()):t(n,"tfoot")?(r.html(``),r.querySelectorAll("table").get(2).childNodes.detach()):t(n,"tr")?(r.html(`
${e}
`),r.querySelectorAll("tbody").get(0).childNodes.detach()):t(n,"td")?(r.html(`${e}
`),r.querySelectorAll("tr").get(0).childNodes.detach()):(r.html(e),r.childNodes.detach())}}get(e){return e{e.parentNode&&e.parentNode.removeChild(e)}))}querySelectorAll(e){return-1!=e.indexOf("/shadow/")?this._querySelectorAllDeep(e):this._querySelectorAll(e)}closest(e){return-1!=e.indexOf("/shadow/")?this._closestDeep(e):this._closest(e)}byId(e,t){let n=[];return t&&(n=n.concat(...new a.Es2019Array(...(null==this?void 0:this.rootNode)||[]).filter((t=>e==t.id)).map((e=>new A(e))))),n=n.concat(this.querySelectorAll(`[id="${e}"]`)),new A(...n)}byIdDeep(e,t){let n=[];t&&(n=n.concat(new a.Es2019Array(...(null==this?void 0:this.rootNode)||[]).filter((t=>e==t.id)).map((e=>new A(e)))));let r=this.querySelectorAllDeep(`[id="${e}"]`);return r.length&&n.push(r),new A(...n)}byTagName(e,t,n){var r;let s=[];return t&&(s=new a.Es2019Array(...null!==(r=null==this?void 0:this.rootNode)&&void 0!==r?r:[]).filter((t=>(null==t?void 0:t.tagName)==e)).reduce(((e,t)=>e.concat([t])),s)),n?s.push(this.querySelectorAllDeep(e)):s.push(this.querySelectorAll(e)),new A(...s)}attr(e,t=null){return new f(this,e,t)}style(e,t=null){return new p(this,e,t)}hasClass(e){let t=!1;return this.eachElem((n=>{if(t=n.classList.contains(e),t)return!1})),t}addClass(e){return this.eachElem((t=>t.classList.add(e))),this}removeClass(e){return this.eachElem((t=>t.classList.remove(e))),this}isMultipartCandidate(e=!1){const t="input[type='file']";return this.matchesSelector(t)||(e?this.querySelectorAllDeep(t):this.querySelectorAll(t)).first().isPresent()}html(e){return s.Optional.fromNullable(e).isAbsent()?this.isPresent()?s.Optional.fromNullable(this.innerHTML):s.Optional.absent:(this.innerHTML=e,this)}dispatchEvent(e){return this.eachElem((t=>t.dispatchEvent(e))),this}set innerHTML(e){this.eachElem((t=>t.innerHTML=e))}get innerHTML(){let e=[];return this.eachElem((t=>e.push(t.innerHTML))),e.join("")}set innerHtml(e){this.innerHTML=e}get innerHtml(){return this.innerHTML}filterSelector(e){let t=[];return this.eachElem((n=>{this._mozMatchesSelector(n,e)&&t.push(n)})),new A(...t)}matchesSelector(e){return this.asArray.some((t=>this._mozMatchesSelector(t.getAsElem(0).value,e)))}getIf(...e){let t=this.childNodes;for(let n=0;ne){return this.rootNode.length>1&&e(this.rootNode[0],0),this}lastElem(e=e=>e){return this.rootNode.length>1&&e(this.rootNode[this.rootNode.length-1],0),this}each(e){return new a.Es2019Array(...this.rootNode).forEach(((t,n)=>{if(null!=t)return e(A.byId(t),n)})),this}replace(e){return this.each((t=>{let n=t.getAsElem(0).value,r=n.parentElement,s=n.nextElementSibling,l=n.previousElementSibling;null!=s?new A(s).insertBefore(e):l?new A(l).insertAfter(e):new A(r).append(e),t.delete()})),e}first(e=e=>e){return this.rootNode.length>=1?(e(this.get(0),0),this.get(0)):this}last(e=e=>e){if(this.rootNode.length>=1){let t=this.get(this.rootNode.length-1);return e(t,0),t}return this}filter(e){let t=[];return this.each((n=>{e(n)&&t.push(n)})),new A(...t)}globalEval(e,t){var n,r,s;const l=null!==(r=null===(n=document.getElementsByTagName("head"))||void 0===n?void 0:n[0])&&void 0!==r?r:null===(s=document.documentElement.getElementsByTagName("head"))||void 0===s?void 0:s[0],o=document.createElement("script");t&&(void 0!==(null==o?void 0:o.nonce)?o.nonce=t:o.setAttribute("nonce",t)),o.type="text/javascript",o.innerHTML=e;let i=l.appendChild(o);return l.removeChild(i),this}globalEvalSticky(e,t){let n=document.getElementsByTagName("head")[0]||document.documentElement,r=document.createElement("script");return this.applyNonce(t,r),r.type="text/javascript",r.innerHTML=e,n.appendChild(r),this}detach(){return this.eachElem((e=>{e.parentNode.removeChild(e)})),this}appendTo(e){return o.Lang.isString(e)?(this.appendTo(A.querySelectorAll(e)),this):(this.eachElem((t=>{e.getAsElem(0).orElseLazy((()=>({appendChild:()=>{}}))).value.appendChild(t)})),this)}loadScriptEval(e,t=0,n){return this._loadScriptEval(!1,e,t,n),this}loadScriptEvalSticky(e,t=0,n){return this._loadScriptEval(!0,e,t,n),this}insertAfter(...e){this.each((t=>{let n=t.getAsElem(0).value,r=n.parentNode;for(let t=0;t{s?(r.insertBefore(e,s),n=s):r.appendChild(e)}))}}));let t=[];return t.push(this),t=t.concat(e),new A(...t)}insertBefore(...e){this.each((t=>{let n=t.getAsElem(0).value,r=n.parentNode;for(let t=0;t{r.insertBefore(e,n)}))}));let t=[];return t.push(this),t=t.concat(e),new A(...t)}orElse(...e){return this.isPresent()?this:new A(...e)}orElseLazy(e){return this.isPresent()?this:new A(e())}allParents(e){let t=this.parent(),n=[];for(;t.isPresent();)t.matchesSelector(e)&&n.push(t),t=t.parent();return new A(...n)}firstParent(e){let t=this.parent();for(;t.isPresent();){if(t.matchesSelector(e))return t;t=t.parent()}return A.absent}parentsWhileMatch(e){const t=[];let n=this.parent().filter((t=>t.matchesSelector(e)));for(;n.isPresent();)t.push(n),n=n.parent().filter((t=>t.matchesSelector(e)));return new A(...t)}parent(){let e=[];return this.eachElem((t=>{let n=t.parentNode||t.host||t.shadowRoot;n&&-1==e.indexOf(n)&&e.push(n)})),new A(...e)}copyAttrs(e){return e.eachElem((e=>{let t=h(e.attributes);for(let e of t){let t=e.value,n=e.name;switch(n){case"id":this.id.value=t;break;case"disabled":this.resolveAttributeHolder("disabled").disabled=t;break;case"checked":this.resolveAttributeHolder("checked").checked=t;break;case"nonce":break;default:this.attr(n).value=t}}})),e.nonce.isPresent((()=>{this.nonce.value=e.nonce.value})),this}outerHTML(e,t,n,r=!1){var s;if(this.isAbsent())return;let l=null===(s=null===document||void 0===document?void 0:document.activeElement)||void 0===s?void 0:s.id,o=l?A.getCaretPosition(document.activeElement):null,i=A.fromMarkup(e),a=[],u=this.getAsElem(0).value,c=i.get(0),d=u.parentNode,h=c.getAsElem(0).value;if(d.replaceChild(h,u),a.push(new A(h)),this.isAbsent())return this;let E=[];i.length>1&&(E=E.concat(...i.values.slice(1)),a.push(A.byId(h).insertAfter(new A(...E)))),t&&this.runScripts(),n&&this.runCss();let v=A.byId(l);return l&&v.isPresent()&&null!=o&&void 0!==o&&v.eachElem((e=>A.setCaretPosition(e,o))),i}runScripts(e=!1,t=T){const n=t=>{if(t.length){let n=[];new a.Es2019Array(...t).forEach((t=>{t.nonce?(n.length&&(this.globalEval(n.join("\n")),n.length=0),e?this.globalEvalSticky(t.evalText,t.nonce):this.globalEval(t.evalText,t.nonce)):n.push(t.evalText)})),n.length&&(e?this.globalEvalSticky(n.join("\n")):this.globalEval(n.join("\n")),n.length=0),t=[]}return t};let r=[],s=["","script","text/javascript","text/ecmascript","ecmascript"],l=l=>{var o,i,a,c;let h=l.tagName,E=(null!==(o=null==l?void 0:l.type)&&void 0!==o?o:"").toLowerCase();if(h&&d(h,"script")&&-1!=s.indexOf(E)){let s=l.getAttribute("src");if(void 0!==s&&null!=s&&s.length>0){let o=null!==(i=null==l?void 0:l.nonce)&&void 0!==i?i:l.getAttribute("nonce").value;t(s)&&(r=n(r),e?o?this.loadScriptEvalSticky(s,0,o):this.loadScriptEvalSticky(s,0):o?this.loadScriptEval(s,0,o):this.loadScriptEval(s,0))}else{let e=u(l.text||l.innerText||l.innerHTML),t=!0;for(;t;)t=!1,"\x3c!--"==e.substring(0,4)&&(e=e.substring(4),t=!0),"//\x3c!--"==e.substring(0,4)&&(e=e.substring(6),t=!0),"//[...e.values])).sort(((e,t)=>t.compareDocumentPosition(e)-3)).forEach((e=>l(e))),n(r)}catch(e){console&&console.error&&console.error(e.message||e.description)}finally{l=null}return this}runCss(){return new A(this.filterSelector("link, style"),this.querySelectorAll("link, style")).asArray.flatMap((e=>[...e.values])).sort(((e,t)=>e.compareDocumentPosition(t)-3)).forEach((e=>(e=>{const t=A.byId(e),n=t.tagName.orElse("").value;let r=A.fromMarkup(`<${n.toLowerCase()} />`);r=r.copyAttrs(t),r.innerHTML=e.innerHTML,t.replace(r)})(e))),this}click(){return this.fireEvent("click"),this}addEventListener(e,t,n){return this.eachElem((r=>r.addEventListener(e,t,n))),this}removeEventListener(e,t,n){return this.eachElem((r=>r.removeEventListener(e,t,n))),this}fireEvent(e,t={}){let n={bubbles:!0,cancelable:!0};n=(0,E.simpleShallowMerge)(n,t),this.eachElem((t=>{let r;if(t.ownerDocument)r=t.ownerDocument;else{if(9!=t.nodeType)throw new Error("Invalid node passed to fireEvent: "+t.id);r=t}if(t.dispatchEvent){let r=Event;switch(e){case"click":case"mousedown":case"mouseup":case"mousemove":r=this.global().MouseEvent;break;case"keyup":case"keydown":case"keypress":r=this.global().KeyboardEvent;break;case"focus":case"change":case"blur":case"select":break;default:throw"fireEvent: Couldn't find an event class for event '"+e+"'."}let s=new r(e,n);s.synthetic=!0,t.dispatchEvent(s)}else if(t.fireEvent){let s=r.createEventObject();s.synthetic=!0,Object.keys(n).forEach((e=>s[e]=n[e])),t.fireEvent("on"+e,s)}}))}textContent(e=""){return this.asArray.map((e=>e.getAsElem(0).orElseLazy((()=>({textContent:""}))).value.textContent||"")).reduce(((t,n)=>[t,e,n].join("")),"")}innerText(e=""){return this.asArray.map((e=>e.getAsElem(0).orElseLazy((()=>({innerText:""}))).value.innerText||"")).reduce(((t,n)=>[t,n].join(e)),"")}encodeFormElement(e={}){if(this.name.isAbsent())return;let t=(0,E.simpleShallowMerge)(e);return this.each((e=>{var n,r;if(e.name.isAbsent())return;let s=e.name.value,l=e.tagName.orElse("__none__").value.toLowerCase(),o=e.type.orElse("__none__").value.toLowerCase();if(o=o.toLowerCase(),("input"==l||"textarea"==l||"select"==l)&&null!=s&&""!=s&&!e.disabled){if("select"==l){let n=e.getAsElem(0).value;if(n.selectedIndex>=0){let e=n.options.length;for(let r=0;re.childNodes.asArray)).filter((e=>{var t,n;return 4==(null===(n=null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.value)||void 0===n?void 0:n.nodeType)})).reduce(((e,t)=>{var n,r,s;return e.push(null!==(s=null===(r=null===(n=null==t?void 0:t.value)||void 0===n?void 0:n.value)||void 0===r?void 0:r.data)&&void 0!==s?s:""),e}),[]).join("")}subNodes(e,t){return s.Optional.fromNullable(t).isAbsent()&&(t=this.length),new A(...this.rootNode.slice(e,Math.min(t,this.length)))}limits(e){return this._limits=e,this}hasNext(){let e=-1!=this._limits&&this.pos>=this._limits-1,t=this.pos>=this.values.length-1;return!(e||t)}next(){return this.hasNext()?(this.pos++,new A(this.values[this.pos])):null}lookAhead(e=1){return this.values.length-1{let r;if(!(null==n?void 0:n.attachShadow))throw new Error("Shadow dom creation not supported by the browser, please use a shim, to gain this functionality");r=A.byId(n.attachShadow(e)),t.push(r)})),new A(...t)}waitUntilDom(e,t={attributes:!0,childList:!0,subtree:!0,timeout:500,interval:100}){return r(this,void 0,void 0,(function*(){return function(e,t,n={attributes:!0,childList:!0,subtree:!0,timeout:500,interval:100}){return new Promise(((r,s)=>{let l=null;const o=new Error("Mutation observer timeout");function i(e,t){let r=null;return t(e)?e:(r=n.childList?t(e)?e:e.childNodes.filter((e=>t(e))).first().value.value:n.subtree?t(e)?e:e.querySelectorAll(" * ").filter((e=>t(e))).first().value.value:t(e)?e:null,r)}let a=e;if(a=i(a,t))r(new A(a));else if("undefined"!=typeof MutationObserver){const i=setTimeout((()=>(l.disconnect(),s(o))),n.timeout),a=n=>{const s=new A(n.map((e=>e.target))).filter((e=>t(e))).first();s.isPresent()&&(clearTimeout(i),l.disconnect(),r(new A(s||e)))};l=new MutationObserver(a);let u=Object.assign({},n);delete u.timeout,e.eachElem((e=>{l.observe(e,u)}))}else{let l=setInterval((()=>{let n=i(e,t);n&&(a&&(clearTimeout(a),clearInterval(l),l=null),r(new A(n||e)))}),n.interval),a=setTimeout((()=>{l&&(clearInterval(l),s(o))}),n.timeout)}}))}(this,e,t)}))}get shadowElements(){let e=(this.querySelectorAll("*").filter((e=>e.hasShadow)).allElems()||[]).map((e=>e.shadowRoot));return new A(...e)}get shadowRoot(){let e=[];for(let t=0;t({done:!this.hasNext(),value:this.next()})}}concat(e,t=!0){let n=this.asArray;const r=new A(...n.concat(e.asArray));if(!t)return r;let s={};return new A(...r.asArray.filter((e=>{const t=!(null==s?void 0:s[e.value.value.outerHTML]);return s[e.value.value.outerHTML]=!0,t})))}append(e){return this.each((t=>e.appendTo(t))),this}prependTo(e){return e.eachElem((e=>{e.prepend(...this.allElems())})),this}prepend(e){return this.eachElem((t=>{t.prepend(...e.allElems())})),this}_querySelectorAll(e){var t,n;if(!(null===(t=null==this?void 0:this.rootNode)||void 0===t?void 0:t.length))return this;let r=[];for(let t=0;t=0&&n.item(r)!==e;);return r>-1};return r.call(e,t)}_loadScriptEval(e,t,n=0,r){let s=this.createSourceNode(t,r),l=this.createSourceNode(null,r),o=`nonce_${Date.now()}_${Math.random()}`;l.innerHTML=`document.head["${o}"] = true`;let i=document.head;if(i.appendChild(l),i.removeChild(l),i[o]){try{n?setTimeout((()=>{i.appendChild(s),e||i.removeChild(s)}),n):(i.appendChild(s),e||i.removeChild(s))}finally{delete i[o]}return this}}resolveAttributeHolder(e="value"){let t=[];return t[e]=null,e in this.getAsElem(0).value?this.getAsElem(0).value:t}createSourceNode(e,t){let n=document.createElement("script");return n.type="text/javascript",t&&(void 0!==(null==n?void 0:n.nonce)?n.nonce=t:n.setAttribute("nonce",t)),e&&(n.src=e),n}applyNonce(e,t){e&&(void 0!==(null==t?void 0:t.nonce)?t.nonce=e:t.setAttribute("nonce",e))}}t.DomQuery=A,A.absent=new A,A.global=i._global$,t.DomQueryCollector=class{constructor(){this.data=[]}collect(e){this.data.push(e)}get finalValue(){return new A(...this.data)}},t.DQ=A,t.DQ$=A.querySelectorAll},86:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Es2019Array=t._Es2019Array=void 0;class n extends Array{constructor(...e){super(...e),e._another?this._another=e._another:this._another=e,this.flatMap=e=>this._flatMap(e),this.flat=(e=1)=>this._flat(e)}map(e,t){return new r(...Array.prototype.map.call(this._another,e,t))}concat(...e){return new r(...Array.prototype.concat.call(this._another,...e))}reverse(){return new r(...Array.prototype.reverse.call(this._another))}slice(e,t){return new r(...Array.prototype.slice.call(this._another,e,t))}splice(e,t){return new r(...Array.prototype.splice.call(this._another,e,t))}filter(e,t){return new r(...Array.prototype.filter.call(this._another,e,t))}reduce(e,t){return Array.prototype.reduce.call(this._another,e,t)}_flat(e=1){return this._flatResolve(this._another,e)}_flatResolve(e,n=1){if(0==n)return e;let r=[];return e.forEach((e=>{e=Array.isArray(e)?e:[e];let t=this._flatResolve(e,n-1);r=r.concat(t)})),new t.Es2019Array(...r)}_flatMap(e){let t=this.map((t=>e(t)));return this._flatResolve(t)}}function r(...e){let t=new n(...e);return new Proxy(t,{get:(e,t,n)=>"symbol"==typeof t?e._another[t]:isNaN(parseInt(t))?e[t]:e._another[t],set:(e,t,n)=>(e[t]=n,e._another[t]=n,!0)})}t._Es2019Array=r,t.Es2019Array=Array.prototype.flatMap?function(...e){return(null==e?void 0:e.flatMap)?e:r(...e)}:r},228:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t._global$=void 0,t._global$=function(){var e;let t="undefined"!=typeof globalThis&&globalThis.window?globalThis.window:"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:void 0!==n.g&&(null===n.g||void 0===n.g?void 0:n.g.window)?n.g.window:void 0!==n.g?n.g:null;return null!==(e=null==t?void 0:t.window)&&void 0!==e?e:t}},519:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Lang=void 0;const r=n(204),s=n(86);var l;!function(e){function t(e){let t=/\s/,n=(e=e.replace(/^\s\s*/,"")).length;for(;t.test(e.charAt(--n)););return e.slice(0,n+1)}function n(e){return!!arguments.length&&null!=e&&("string"==typeof e||e instanceof String)}e.saveResolve=function(e,t=null){try{let n=e();return r.Optional.fromNullable(null!=n?n:t)}catch(e){return r.Optional.absent}},e.saveResolveLazy=function(e,t=null){try{let n=e();return r.Optional.fromNullable(null!=n?n:t())}catch(e){return r.Optional.absent}},e.strToArray=function(e,n=/\./gi){let r=[];return e.split(n).forEach((e=>{r.push(t(e))})),r},e.trim=t,e.objToArray=function(e,t=0,n=[]){return"__undefined__"==(null!=e?e:"__undefined__")?null!=n?n:null:e instanceof Array&&!t&&!n?e:new s.Es2019Array(...n.concat(Array.prototype.slice.call(e,t)))},e.equalsIgnoreCase=function(e,t){let n=null!=t?t:"___no_value__";return(null!=e?e:"___no_value__").toLowerCase()===n.toLowerCase()},e.assertType=function(e,t){return n(t)?typeof e==t:e instanceof t},e.isString=n,e.isFunc=function(e){return e instanceof Function||"function"==typeof e},e.objAssign=function(e,...t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");let n=Object(e);return Object.assign?(t.forEach((e=>Object.assign(n,e))),n):(t.filter((e=>null!=e)).forEach((e=>{let t=e;Object.keys(t).filter((e=>Object.prototype.hasOwnProperty.call(t,e))).forEach((e=>n[e]=t[e]))})),n)}}(l||(t.Lang=l={}))},204:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ValueEmbedder=t.Optional=t.Monad=void 0;const r=n(86);class s{constructor(e){this._value=e}get value(){return this._value}map(e){e||(e=e=>e);let t=e(this.value);return new s(t)}flatMap(e){let t=this.map(e);for(;(null==t?void 0:t.value)instanceof s;)t=t.value;return t}}t.Monad=s;class l extends s{constructor(e){super(e)}get value(){return this._value instanceof s?this._value.flatMap().value:this._value}static fromNullable(e){return new l(e)}isAbsent(){return void 0===this.value||null==this.value}isPresent(e){let t=this.isAbsent();return!t&&e&&e.call(this,this),!t}ifPresentLazy(e=()=>{}){return this.isPresent.call(this,e),this}orElse(e){return this.isPresent()?this:null==e?l.absent:this.flatMap((()=>e))}orElseLazy(e){return this.isPresent()?this:this.flatMap(e)}flatMap(e){let t=super.flatMap(e);return t instanceof l?t.flatMap():l.fromNullable(t.value)}getIf(...e){e=this.preprocessKeys(...e);let t=this;for(let n=0;n=0){if(t=this.getClass().fromNullable(t.value instanceof Array?t.value.length=0){if(t.getIfPresent(r).isAbsent())return t;if(t=t.getIfPresent(r).value instanceof Array?this.getClass().fromNullable(t.getIfPresent(r).value[s]):this.getClass().absent,t.isAbsent())return t}else{if(t=t.getIfPresent(r),t.isAbsent())return t;s>-1&&(t=this.getClass().fromNullable(t.value[s]))}}return t}match(e){return!this.isAbsent()&&e(this.value)}get(e=l.absent){return this.isAbsent()?this.getClass().fromNullable(e).flatMap():this.getClass().fromNullable(this.value).flatMap()}toJson(){return JSON.stringify(this.value)}getClass(){return l}arrayIndex(e){let t=e.indexOf("["),n=e.indexOf("]");return t>=0&&n>0&&t=0?e.substring(0,t):e}getIfPresent(e){return this.isAbsent()?this.getClass().absent:this.getClass().fromNullable(this.value[e]).flatMap()}resolve(e){if(this.isAbsent())return l.absent;try{return l.fromNullable(e(this.value))}catch(e){return l.absent}}preprocessKeys(...e){return new r.Es2019Array(...e).flatMap((e=>new r.Es2019Array(...e.split(/]\s*\[/gi)).map((e=>(-1==(e=e.replace(/^\s+|\s+$/g,"")).indexOf("[")&&-1!=e.indexOf("]")&&(e="["+e),-1==e.indexOf("]")&&-1!=e.indexOf("[")&&(e+="]"),e)))))}}t.Optional=l,l.absent=l.fromNullable(null);class o extends l{constructor(e,t="value"){super(e),this.key=t}get value(){return this._value?this._value[this.key]:null}set value(e){this._value&&(this._value[this.key]=e)}orElse(e){let t={};return t[this.key]=e,this.isPresent()?this:new o(t,this.key)}orElseLazy(e){if(this.isPresent())return this;{let t={};return t[this.key]=e(),new o(t,this.key)}}getClass(){return o}static fromNullable(e,t="value"){return new o(e,t)}}t.ValueEmbedder=o,o.absent=o.fromNullable(null)},785:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayCollector=t.QueryFormStringCollector=t.QueryFormDataCollector=t.FormDataCollector=t.ConfigCollector=t.AssocArrayCollector=t.Run=t.ArrayAssocArrayCollector=t.InverseArrayCollector=t.ShimArrayCollector=t.MappedStreamDataSource=t.FilteredStreamDatasource=t.ArrayStreamDataSource=t.SequenceDataSource=t.MultiStreamDatasource=t.calculateSkips=t.ITERATION_STATUS=void 0;const r=n(86),s=n(517);var l;function o(e){let t=1;for(;e.lookAhead(t)!=l.EO_STRM;)t++;return--t}!function(e){e.EO_STRM="__EO_STRM__",e.BEF_STRM="___BEF_STRM__"}(l||(t.ITERATION_STATUS=l={})),t.calculateSkips=o,t.MultiStreamDatasource=class{constructor(e,...t){this.first=e,this.selectedPos=0,this.strms=[e].concat(...t),this.activeStrm=this.strms[this.selectedPos]}current(){return this.activeStrm.current()}hasNext(){return!!this.activeStrm.hasNext()||!(this.selectedPos>=this.strms.length)&&-1!=this.findNextStrm()}findNextStrm(){let e=!1,t=this.selectedPos;for(;!e&&tthis.total-1?l.EO_STRM:this.value+e}reset(){this.value=this.start-1}current(){return this.start-1?l.BEF_STRM:this.value}},t.ArrayStreamDataSource=class{constructor(...e){this.dataPos=-1,this.value=e}lookAhead(e=1){return this.dataPos+e>this.value.length-1?l.EO_STRM:this.value[this.dataPos+e]}hasNext(){return this.value.length-1>this.dataPos}next(){var e;return this.dataPos++,null!==(e=null==this?void 0:this.value[this.dataPos])&&void 0!==e?e:l.EO_STRM}reset(){this.dataPos=-1}current(){return this.value[Math.max(0,this.dataPos)]}},t.FilteredStreamDatasource=class{constructor(e,t){this._current=l.BEF_STRM,this._filterIdx={},this._unfilteredPos=0,this.filterFunc=e,this.inputDataSource=t}hasNext(){let e,t=1,n=!1;for(;!n&&(e=this.inputDataSource.lookAhead(t))!=l.EO_STRM;)this.filterFunc(e)?(this._filterIdx[this._unfilteredPos+t]=!0,n=!0):t++;return n}next(){var e,t;let n=l.EO_STRM;for(;this.inputDataSource.hasNext();){this._unfilteredPos++;let r=this.inputDataSource.next();if(r!=l.EO_STRM&&(null!==(t=null===(e=this._filterIdx)||void 0===e?void 0:e[this._unfilteredPos])&&void 0!==t&&t||this.filterFunc(r))){this._filterIdx[this._unfilteredPos]=!0,n=r;break}}return this._current=n,n}lookAhead(e=1){var t;let n;for(let r=1;e>0&&(n=this.inputDataSource.lookAhead(r))!=l.EO_STRM;r++)((null===(t=this._filterIdx)||void 0===t?void 0:t[this._unfilteredPos+r])||this.filterFunc(n))&&(e--,this._filterIdx[this._unfilteredPos+r]=!0);return n}current(){return this._current}reset(){this._current=l.BEF_STRM,this._filterIdx={},this._unfilteredPos=0,this.inputDataSource.reset()}},t.MappedStreamDataSource=class{constructor(e,t){this.mapFunc=e,this.inputDataSource=t}hasNext(){return this.inputDataSource.hasNext()}next(){return this.mapFunc(this.inputDataSource.next())}reset(){this.inputDataSource.reset()}current(){return this.mapFunc(this.inputDataSource.current())}lookAhead(e=1){const t=this.inputDataSource.lookAhead(e);return t==l.EO_STRM?t:this.mapFunc(t)}},t.ShimArrayCollector=class{constructor(){this.data=new r.Es2019Array(...[])}collect(e){this.data.push(e)}get finalValue(){return this.data}},t.InverseArrayCollector=class{constructor(){this.data=[]}collect(e){this.data.unshift(e)}get finalValue(){return this.data}},t.ArrayAssocArrayCollector=class{constructor(){this.finalValue={}}collect(e){var t,n,r,s;let l=null!==(t=null==e?void 0:e[0])&&void 0!==t?t:e;this.finalValue[l]=null!==(r=null===(n=this.finalValue)||void 0===n?void 0:n[l])&&void 0!==r?r:[],this.finalValue[l].push(null===(s=null==e?void 0:e[1])||void 0===s||s)}},t.Run=class{collect(e){}get finalValue(){return null}},t.AssocArrayCollector=class{constructor(){this.finalValue={}}collect(e){var t,n;this.finalValue[null!==(t=e[0])&&void 0!==t?t:e]=null===(n=e[1])||void 0===n||n}},t.ConfigCollector=class{constructor(){this.finalValue=new s.Config({})}collect(e){this.finalValue.append(e.key).value=e.value}},t.FormDataCollector=class{constructor(){this.finalValue=new FormData}collect(e){this.finalValue.append(e.key,e.value)}},t.QueryFormDataCollector=class{constructor(){this.finalValue=new FormData}collect(e){let t=e.encodeFormElement();t.isPresent()&&this.finalValue.append(e.name.value,t.get(e.name).value)}},t.QueryFormStringCollector=class{constructor(){this.formData=[]}collect(e){let t=e.encodeFormElement();t.isPresent()&&this.formData.push([e.name.value,t.get(e.name).value])}get finalValue(){return new r.Es2019Array(...this.formData).map((e=>e.join("="))).reduce(((e,t)=>[e,t].join("&")))}},t.ArrayCollector=class{constructor(){this.data=[]}collect(e){this.data.push(e)}get finalValue(){return this.data}}},100:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XQ=t.XMLQuery=void 0;const r=n(519),s=n(331);var l=r.Lang.isString;const o=n(228);class i extends s.DomQuery{constructor(e,t="text/xml"){var n;l(e)?super(null==(n=e)?null:r.Lang.saveResolveLazy((()=>new((0,o._global$)().DOMParser)),(()=>(()=>{let e=new ActiveXObject("Microsoft.XMLDOM");return e.async=!1,{parseFromString:(t,n)=>e.loadXML(t)}})())).value.parseFromString(n,t)):super(e)}isXMLParserError(){return this.querySelectorAll("parsererror").isPresent()}toString(){let e=[];return this.eachElem((t=>{var n,r,s,l;let i=null!==(l=null===(s=null===(r=null===(n=(0,o._global$)())||void 0===n?void 0:n.XMLSerializer)||void 0===r?void 0:r.constructor())||void 0===s?void 0:s.serializeToString(t))&&void 0!==l?l:null==t?void 0:t.xml;i&&e.push(i)})),e.join("")}parserErrorText(e){return this.querySelectorAll("parsererror").textContent(e)}static parseXML(e){return new i(e)}static parseHTML(e){return new i(e,"text/html")}static fromString(e,t="text/xml"){return new i(e,t)}}t.XMLQuery=i,t.XQ=i},257:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t._Es2019Array=t.Es2019Array=t.Assoc=t.CONFIG_VALUE=t.CONFIG_ANY=t.Config=t.shallowMerge=t.simpleShallowMerge=t.append=t.assignIf=t.assign=t.XQ=t.XMLQuery=t.ValueEmbedder=t.Optional=t.Monad=t.Lang=t.DQ$=t.DQ=t.DomQueryCollector=t.ElementAttribute=t.DomQuery=void 0;var o=n(331);Object.defineProperty(t,"DomQuery",{enumerable:!0,get:function(){return o.DomQuery}}),Object.defineProperty(t,"ElementAttribute",{enumerable:!0,get:function(){return o.ElementAttribute}}),Object.defineProperty(t,"DomQueryCollector",{enumerable:!0,get:function(){return o.DomQueryCollector}}),Object.defineProperty(t,"DQ",{enumerable:!0,get:function(){return o.DQ}}),Object.defineProperty(t,"DQ$",{enumerable:!0,get:function(){return o.DQ$}});var i=n(519);Object.defineProperty(t,"Lang",{enumerable:!0,get:function(){return i.Lang}});var a=n(204);Object.defineProperty(t,"Monad",{enumerable:!0,get:function(){return a.Monad}}),Object.defineProperty(t,"Optional",{enumerable:!0,get:function(){return a.Optional}}),Object.defineProperty(t,"ValueEmbedder",{enumerable:!0,get:function(){return a.ValueEmbedder}});var u=n(100);Object.defineProperty(t,"XMLQuery",{enumerable:!0,get:function(){return u.XMLQuery}}),Object.defineProperty(t,"XQ",{enumerable:!0,get:function(){return u.XQ}});var c=n(771);Object.defineProperty(t,"assign",{enumerable:!0,get:function(){return c.assign}}),Object.defineProperty(t,"assignIf",{enumerable:!0,get:function(){return c.assignIf}}),Object.defineProperty(t,"append",{enumerable:!0,get:function(){return c.append}}),Object.defineProperty(t,"simpleShallowMerge",{enumerable:!0,get:function(){return c.simpleShallowMerge}}),Object.defineProperty(t,"shallowMerge",{enumerable:!0,get:function(){return c.shallowMerge}});var d=n(517);Object.defineProperty(t,"Config",{enumerable:!0,get:function(){return d.Config}});var h=n(517);Object.defineProperty(t,"CONFIG_ANY",{enumerable:!0,get:function(){return h.CONFIG_ANY}});var E=n(517);Object.defineProperty(t,"CONFIG_VALUE",{enumerable:!0,get:function(){return E.CONFIG_VALUE}}),t.Assoc=l(n(771));var v=n(86);Object.defineProperty(t,"Es2019Array",{enumerable:!0,get:function(){return v.Es2019Array}}),Object.defineProperty(t,"_Es2019Array",{enumerable:!0,get:function(){return v._Es2019Array}})},973:(e,t,n)=>{t.$A=t.J_=void 0;const r=n(644),s=n(54),l=n(19),o=n(351);var i,a;!function(e){let t,n,l;e.specversion=4e5,e.implversion=0,e.separatorchar=function(){const e="#{facesContext.namingContainerSeparatorChar}";return e.match(/\#\{facesContext.namingContainerSeparatorChar\}/gi)?r.Implementation.getSeparatorChar():e}(),e.contextpath="#{facesContext.externalContext.requestContextPath}",e.getProjectStage=function(){return r.Implementation.getProjectStage()},e.getViewState=function(e){return r.Implementation.getViewState(e)},e.getClientWindow=function(e){return r.Implementation.getClientWindow(e)},function(e){e.request=function(e,t,n){r.Implementation.request(e,t,n)},e.response=function(e,t){r.Implementation.response(e,t)},e.addOnError=function(e){r.Implementation.addOnError(e)},e.addOnEvent=function(e){r.Implementation.addOnEvent(e)}}(t=e.ajax||(e.ajax={})),function(e){e.chain=function(e,t,...n){return r.Implementation.chain(e,t,...n)}}(n=e.util||(e.util={})),function(e){e.init=function(e,t,n,r,l,o,i,a,u){s.PushImpl.init(e,t,n,r,l,o,i,a,u)},e.open=function(e){s.PushImpl.open(e)},e.close=function(e){s.PushImpl.close(e)}}(l=e.push||(e.push={}))}(i||(t.J_=i={})),function(e){e.ab=function(e,t,n,r,s,l={}){var i,a;n&&(l[o.CTX_OPTIONS_PARAMS]=null!==(i=null==l?void 0:l[o.CTX_OPTIONS_PARAMS])&&void 0!==i?i:{},l[o.CTX_OPTIONS_PARAMS][(0,o.$nsp)(o.P_BEHAVIOR_EVENT)]=n),r&&(l[o.CTX_OPTIONS_EXECUTE]=r),s&&(l[o.CTX_PARAM_RENDER]=s),(null!==(a=null===window||void 0===window?void 0:window.faces)&&void 0!==a?a:window.jsf).ajax.request(e,t,l)};const t=[];let n=null;e.onDomReady=function(e){"complete"!==document.readyState?(t.push(e),n||(n=()=>{window.removeEventListener("DOMContentLoaded",n),n=null;try{t.forEach((e=>e()))}finally{t.length=0}},window.addEventListener("DOMContentLoaded",n))):(n&&n(),e())},e.oam=l.oam}(a||(t.$A=a={}))},644:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Implementation=void 0;const r=n(121),s=n(229),l=n(257),o=n(22),i=n(780),a=n(234),u=n(471),c=n(351),d=n(7),h=n(680),E=n(666);var v,_,f;!function(e){e.Production="Production",e.Development="Development",e.SystemTest="SystemTest",e.UnitTest="UnitTest"}(v||(v={})),function(e){e.onerror="onerror",e.onevent="onevent",e.render="render",e.execute="execute",e.myfaces="myfaces",e.delay="delay",e.timeout="timeout",e.resetValues="resetValues",e.windowId="windowId",e.params="params"}(_||(_={})),function(e){var t=l.Lang.trim,n=u.ExtLang.getMessage,f=u.ExtLang.getGlobalConfig,p=o.Assertions.assert,T=u.ExtLang.ofAssoc,A=u.ExtLang.collectAssoc;let m=null,R=null,g=[],S=[];function y(){const e=i.ExtDomQuery.searchJsfJsFor(/stage=([^&;]*)/).value;return e in v?e:v.Production}function O(e,t=function(e){}){t(e),S.forEach((t=>{t(e)})),f("defaultErrorOutput",console?console.error:alert)(e)}function P(e,t){const n=(0,d.resolveViewRootId)(t);n&&(e.assign(c.NAMED_VIEWROOT).value=!0,e.assign(c.NAMING_CONTAINER_ID).value=n)}function M(e,n,r,s,o,i=""){const a=(0,c.$faces)().separatorchar;let u=r?t(r).split(/\s+/gi):[],d=[],h={};const E=e=>{const t=i.length?i+a:c.EMPTY_STR;let n=s.id.value;const r=n.substring(0,n.lastIndexOf(a)),o=r.length?r+a:c.EMPTY_STR,u=0===e.indexOf(a);let d;return u||i.length&&0==e.indexOf(t)?d=[t,e=0==(e=u?e.substring(1):e).indexOf(t)?e.substring(t.length):e].join(c.EMPTY_STR):(0==n.indexOf(t)&&(n=n.substring(t.length)),d=0==e.indexOf(n)?[t,e].join(c.EMPTY_STR):[o,e].join(c.EMPTY_STR)),l.DQ.byId(d).isPresent()?d:e};for(let t=0;t{let l=function(e,n,r){if("string"!=typeof r)return!1!==r.call(e,n);{let s=t(r);return 0==s.indexOf("function ")&&(s=`return ${s} (event)`),!1!==new Function("event",s).call(e,n)}}(e,n,r);return!1===l&&(s=!1),s})),s},e.request=function(t,n,r){var s,a,u,h,E,v,f,p,m,R,g,S,y,O,I,N,C,w,b,D,L,x,X,V,k,F,j,U,H;const{options:Q,elem:G,elementId:q,windowId:W,isResetValues:$}=(0,d.resolveDefaults)(n,r,t),Y=new i.ExtConfig({}),B=new i.ExtConfig({});o.Assertions.assertRequestIntegrity(Q,G);const z=(0,d.resolveForm)(G,n),J=(0,d.resolveViewId)(z),K=z.id.value,Z=(0,d.resolveDelay)(Q),ee=(0,d.resolveTimeout)(Q);var te;Y.assignIf(!!W,c.P_WINDOW_ID).value=W,Y.assign(c.CTX_PARAM_REQ_PASS_THR).value=(te=Q.value,T(te).filter((e=>!(e[0]in _))).reduce(A,{}));const ne=(re=Q.getIf(c.CTX_OPTIONS_PARAMS).orElse({}).value,Array.isArray(re)?re.reduce(A,{}):re);var re;let se=Y.getIf(c.CTX_PARAM_REQ_PASS_THR);var le,oe,ie,ae;se.$nspEnabled=!1,se.shallowMerge(new l.Config(ne),!0),se.$nspEnabled=!0,Y.assignIf(!!n,c.CTX_PARAM_REQ_PASS_THR,c.P_EVT).value=null==n?void 0:n.type,Y.assign(c.SOURCE).value=q,Y.assign(c.VIEW_ID).value=J,Y.assign(c.ON_EVENT).value=null===(s=Q.value)||void 0===s?void 0:s.onevent,Y.assign(c.ON_ERROR).value=null===(a=Q.value)||void 0===a?void 0:a.onerror,Y.assign(c.MYFACES).value=null===(u=Q.value)||void 0===u?void 0:u.myfaces,Y.assign(c.CTX_PARAM_REQ_PASS_THR,c.P_AJAX_SOURCE).value=q,Y.assign(c.CTX_PARAM_REQ_PASS_THR,c.P_AJAX).value=!0,Y.assignIf($,c.CTX_PARAM_REQ_PASS_THR,c.P_RESET_VALUES).value=!0,B.assign(c.CTX_PARAM_SRC_FRM_ID).value=K,B.assign(c.CTX_PARAM_UPLOAD_PREINIT).value=null===(v=null===(E=null===(h=Q.value)||void 0===h?void 0:h.myfaces)||void 0===E?void 0:E.upload)||void 0===v?void 0:v.preinit,B.assign(c.CTX_PARAM_UPLOAD_LOADSTART).value=null===(m=null===(p=null===(f=Q.value)||void 0===f?void 0:f.myfaces)||void 0===p?void 0:p.upload)||void 0===m?void 0:m.loadstart,B.assign(c.CTX_PARAM_UPLOAD_ON_PROGRESS).value=null===(S=null===(g=null===(R=Q.value)||void 0===R?void 0:R.myfaces)||void 0===g?void 0:g.upload)||void 0===S?void 0:S.progress,B.assign(c.CTX_PARAM_UPLOAD_LOADEND).value=null===(I=null===(O=null===(y=Q.value)||void 0===y?void 0:y.myfaces)||void 0===O?void 0:O.upload)||void 0===I?void 0:I.loadend,B.assign(c.CTX_PARAM_UPLOAD_LOAD).value=null===(w=null===(C=null===(N=Q.value)||void 0===N?void 0:N.myfaces)||void 0===C?void 0:C.upload)||void 0===w?void 0:w.load,B.assign(c.CTX_PARAM_UPLOAD_ERROR).value=null===(L=null===(D=null===(b=Q.value)||void 0===b?void 0:b.myfaces)||void 0===D?void 0:D.upload)||void 0===L?void 0:L.error,B.assign(c.CTX_PARAM_UPLOAD_ABORT).value=null===(V=null===(X=null===(x=Q.value)||void 0===x?void 0:x.myfaces)||void 0===X?void 0:X.upload)||void 0===V?void 0:V.abort,B.assign(c.CTX_PARAM_UPLOAD_TIMEOUT).value=null===(j=null===(F=null===(k=Q.value)||void 0===k?void 0:k.myfaces)||void 0===F?void 0:F.upload)||void 0===j?void 0:j.timeout,Y.assign(c.CTX_PARAM_REQ_PASS_THR,K).value=K,B.assign(c.CTX_PARAM_SRC_CTL_ID).value=q,B.assign(c.CTX_PARAM_PPS).value=null!==(H=null===(U=function(e){var t;return null===(t=T(e).filter((e=>"myfaces"==e[0])).reduce(A,{}))||void 0===t?void 0:t[c.MYFACES]}(Q.value))||void 0===U?void 0:U[c.MYFACES_OPTION_PPS])&&void 0!==H&&H,function(e,t){let n=(0,c.$faces)().getClientWindow(e.getAsElem(0).value);n&&(t.assign(c.CTX_PARAM_REQ_PASS_THR,c.P_CLIENT_WINDOW).value=n)}(z,Y),oe=Y,ie=z,ae=q,(le=Q).getIf(c.CTX_OPTIONS_EXECUTE).isPresent()?(le.assign(c.CTX_OPTIONS_EXECUTE).value=[le.getIf(c.CTX_OPTIONS_EXECUTE).value,c.IDENT_THIS].join(" "),M(oe.getIf(c.CTX_PARAM_REQ_PASS_THR).get({}),c.P_EXECUTE,le.getIf(c.CTX_OPTIONS_EXECUTE).value,ie,ae,oe.getIf(c.VIEW_ID).value)):oe.assign(c.CTX_PARAM_REQ_PASS_THR,c.P_EXECUTE).value=ae,function(e,t,n,r){e.getIf(c.CTX_PARAM_RENDER).isPresent()&&M(t.getIf(c.CTX_PARAM_REQ_PASS_THR).get({}),c.P_RENDER,e.getIf(c.CTX_PARAM_RENDER).value,n,r,t.getIf(c.VIEW_ID).value)}(Q,Y,z,q),P(B,z),e.queueHandler.addRequestToQueue(G,z,Y,B,Z,ee)},e.response=function(e,t){r.Response.processResponse(e,t)},e.addOnError=function(e){S.push(e)},e.addOnEvent=function(e){g.push(e)},e.sendEvent=function(e,t=function(e){}){t(e),g.forEach((t=>t(e)))},e.stdErrorHandler=function(t,n,r,s=!1){try{O(a.ErrorData.fromClient(r))}finally{s&&e.requestQueue.clear()}},e.sendError=O,e.getClientWindow=function(e){const t="___mf_id_altered__",n="___init____";let r=e?l.DQ.byId(e):(0,l.DQ$)("form"),s=r.filterSelector(`input[name='${(0,c.$nsp)(c.P_CLIENT_WINDOW)}']`).orElseLazy((()=>r.querySelectorAll(`input[name='${(0,c.$nsp)(c.P_CLIENT_WINDOW)}']`))).asArray.map((e=>e.val)).reduce(((e,r)=>e==n?r:e==t||e!=r?t:r),n);return p(t!=s,"Multiple different windowIds found in document"),s!=n?s:(function(){const e=window.location.href,t=new RegExp("[\\?&]jfwid=([^&#\\;]*)").exec(e);return null!=t?l.Optional.fromNullable(t[1]):l.Optional.fromNullable(null)}()||i.ExtDomQuery.searchJsfJsFor(/jfwid=([^&;]*)/).orElse(null)).value},e.getViewState=function(e){let t=l.DQ.byId(e,!0);if(!t.isTag(c.HTML_TAG_FORM))throw new Error(n("ERR_VIEWSTATE"));const r=new l.Config({});P(r,l.DQ.byId(e));let s=t.deepElements.encodeFormElement();return(0,h.encodeFormData)(new i.ExtConfig(s),(0,d.resoveNamingContainerMapper)(r))},e.queueHandler={addRequestToQueue:function(t,n,r,l,o=0,i=0){e.requestQueue=null!==e.requestQueue&&void 0!==e.requestQueue?e.requestQueue:new E.XhrQueueController,e.requestQueue.enqueue(new s.XhrRequest(r,l,i),o)}}}(f||(t.Implementation=f={}))},54:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PushImpl=void 0;const r=n(351),s=n(257);var l;!function(e){const t=s.DQ.global().location.protocol.replace("http","ws")+"//";e.sockets={},e.components={},e.clientIdsByTokens={},e.reset=function(){e.sockets={},e.components={},e.clientIdsByTokens={}},e.init=function(r,l,i,a,u,c,d,h,E){var v,_,f;if(d=o(d),!s.DQ.global().WebSocket)return void d(-1,i);let p=l.substr(l.indexOf("?")+1);e.components[r]||(e.components[r]={channelToken:p,onopen:o(a),onmessage:o(u),onerror:o(c),onclose:d,behaviors:h,autoconnect:E},e.clientIdsByTokens[p]||(e.clientIdsByTokens[p]=[]),e.clientIdsByTokens[p].push(r),e.sockets[p]||(e.sockets[p]=new n(p,function(e){if(e.indexOf("://")<0){let n=s.DQ.global().location.hostname+":"+s.DQ.global().location.port;return t+n+e}return e}(l),i))),E&&(null!==(_=null===(v=s.DQ.global())||void 0===v?void 0:v.faces)&&void 0!==_?_:null===(f=s.DQ.global())||void 0===f?void 0:f.jsf).push.open(r)},e.open=function(t){var n;l(null===(n=e.components[t])||void 0===n?void 0:n.channelToken).open()},e.close=function(t){l(e.components[t].channelToken).close()};class n{constructor(e,t,n){this.channelToken=e,this.url=t,this.channel=n,this.reconnectAttempts=0}open(){this.socket&&1==this.socket.readyState||(this.socket=new WebSocket(this.url),this.bindCallbacks())}onopen(t){var n,r;if(!this.reconnectAttempts){let t=e.clientIdsByTokens[this.channelToken];for(let s=t.length-1;s>=0;s--){let l=t[s];null===(r=null===(n=e.components[l])||void 0===n?void 0:n.onopen)||void 0===r||r.call(n,this.channel)}}this.reconnectAttempts=0}onerror(t){var n,r,s;let l=JSON.parse(null!==(n=null==t?void 0:t.data)&&void 0!==n?n:null);for(let n=e.clientIdsByTokens[this.channelToken].length-1;n>=0;n--){let o=e.clientIdsByTokens[this.channelToken][n];if(document.getElementById(o))try{null===(s=null===(r=e.components[o])||void 0===r?void 0:r.onerror)||void 0===s||s.call(r,l,this.channel,t)}catch(e){}else e.clientIdsByTokens[this.channelToken].splice(n,1)}0==e.clientIdsByTokens[this.channelToken].length&&this.close()}onmmessage(t){var n,r,s;let l=JSON.parse(t.data);for(let o=e.clientIdsByTokens[this.channelToken].length-1;o>=0;o--){let i=e.clientIdsByTokens[this.channelToken][o];if(document.getElementById(i)){try{null===(r=null===(n=e.components[i])||void 0===n?void 0:n.onmessage)||void 0===r||r.call(n,l,this.channel,t)}catch(e){}let o=null===(s=null===e.components||void 0===e.components?void 0:e.components[i])||void 0===s?void 0:s.behaviors,a=null==o?void 0:o[l];if(a&&a.length)for(let e=0;e=r.MAX_RECONNECT_ATTEMPTS){let r=e.clientIdsByTokens[this.channelToken];for(let l=r.length-1;l>=0;l--){let o=r[l];null===(s=null===(n=null===e.components||void 0===e.components?void 0:e.components[o])||void 0===n?void 0:n.onclose)||void 0===s||s.call(n,null==t?void 0:t.code,null==this?void 0:this.channel,t)}}else setTimeout(this.open,r.RECONNECT_INTERVAL*this.reconnectAttempts++)}close(){if(this.socket){let e=this.socket;this.socket=null,e.close()}}bindCallbacks(){this.socket.onopen=e=>this.onopen(e),this.socket.onmessage=e=>this.onmmessage(e),this.socket.onclose=e=>this.onclose(e),this.socket.onerror=e=>this.onerror(e)}}function l(t){let n=e.sockets[t];if(n)return n;throw new Error("Unknown channelToken: "+t)}function o(e=()=>{}){return"function"!=typeof e&&(e=s.DQ.global()[e]),e}}(l||(t.PushImpl=l={}))},351:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CTX_OPTIONS_PARAMS=t.TIMEOUT_EVENT=t.CLIENT_ERROR=t.SERVER_ERROR=t.MALFORMEDXML=t.EMPTY_RESPONSE=t.HTTP_ERROR=t.RESPONSE_XML=t.RESPONSE_TEXT=t.ERROR_MESSAGE=t.ERROR_NAME=t.STATUS=t.SOURCE=t.SUCCESS=t.COMPLETE=t.BEGIN=t.ON_EVENT=t.ON_ERROR=t.EVENT=t.ERROR=t.WINDOW_ID=t.CTX_PARAM_RENDER=t.P_BEHAVIOR_EVENT=t.P_WINDOW_ID=t.P_RESET_VALUES=t.P_EVT=t.P_RENDER_OVERRIDE=t.P_RENDER=t.P_EXECUTE=t.P_AJAX=t.IDENT_FORM=t.IDENT_THIS=t.IDENT_NONE=t.IDENT_ALL=t.HTML_CLIENT_WINDOW=t.HTML_VIEWSTATE=t.EMPTY_MAP=t.EMPTY_STR=t.EMPTY_FUNC=t.P_RESOURCE=t.P_VIEWBODY=t.P_VIEWHEAD=t.P_VIEWROOT=t.P_CLIENT_WINDOW=t.P_VIEWSTATE=t.VIEW_ID=t.NAMING_CONTAINER_ID=t.P_AJAX_SOURCE=t.NAMED_VIEWROOT=t.XML_ATTR_NAMED_VIEWROOT=void 0,t.XML_TAG_CHANGES=t.XML_TAG_PARTIAL_RESP=t.ATTR_ID=t.ATTR_VALUE=t.ATTR_NAME=t.ATTR_URL=t.MYFACES_OPTION_PPS=t.ERR_NO_PARTIAL_RESPONSE=t.PHASE_PROCESS_RESPONSE=t.SEL_RESPONSE_XML=t.SEL_CLIENT_WINDOW_ELEM=t.SEL_VIEWSTATE_ELEM=t.HTML_TAG_STYLE=t.HTML_TAG_SCRIPT=t.HTML_TAG_LINK=t.HTML_TAG_BODY=t.HTML_TAG_FORM=t.HTML_TAG_HEAD=t.STD_ACCEPT=t.NO_TIMEOUT=t.MULTIPART=t.URL_ENCODED=t.STATE_EVT_COMPLETE=t.STATE_EVT_TIMEOUT=t.STATE_EVT_BEGIN=t.REQ_TYPE_POST=t.REQ_TYPE_GET=t.ENCODED_URL=t.VAL_AJAX=t.REQ_ACCEPT=t.HEAD_FACES_REQ=t.CONTENT_TYPE=t.CTX_PARAM_PPS=t.CTX_PARAM_REQ_PASS_THR=t.CTX_PARAM_SRC_CTL_ID=t.CTX_PARAM_UPLOAD_TIMEOUT=t.CTX_PARAM_UPLOAD_ABORT=t.CTX_PARAM_UPLOAD_ERROR=t.CTX_PARAM_UPLOAD_LOAD=t.CTX_PARAM_UPLOAD_LOADEND=t.CTX_PARAM_UPLOAD_LOADSTART=t.CTX_PARAM_UPLOAD_PREINIT=t.CTX_PARAM_UPLOAD_ON_PROGRESS=t.CTX_PARAM_SRC_FRM_ID=t.CTX_PARAM_MF_INTERNAL=t.CTX_OPTIONS_EXECUTE=t.CTX_OPTIONS_RESET=t.CTX_OPTIONS_TIMEOUT=t.DELAY_NONE=t.CTX_OPTIONS_DELAY=void 0,t.$nsp=t.$faces=t.UNKNOWN=t.MAX_RECONNECT_ATTEMPTS=t.RECONNECT_INTERVAL=t.APPLIED_CLIENT_WINDOW=t.APPLIED_VST=t.REASON_EXPIRED=t.MF_NONE=t.MYFACES=t.DEFERRED_HEAD_INSERTS=t.UPDATE_ELEMS=t.UPDATE_FORMS=t.XML_TAG_ATTR=t.XML_TAG_AFTER=t.XML_TAG_BEFORE=t.XML_TAG_REDIRECT=t.XML_TAG_EXTENSION=t.XML_TAG_ATTRIBUTES=t.XML_TAG_ERROR=t.XML_TAG_EVAL=t.XML_TAG_INSERT=t.XML_TAG_DELETE=t.XML_TAG_UPDATE=void 0,t.XML_ATTR_NAMED_VIEWROOT="namedViewRoot",t.NAMED_VIEWROOT="namedViewRoot",t.P_AJAX_SOURCE="jakarta.faces.source",t.NAMING_CONTAINER_ID="myfaces.NamingContainerId",t.VIEW_ID="myfaces.viewId",t.P_VIEWSTATE="jakarta.faces.ViewState",t.P_CLIENT_WINDOW="jakarta.faces.ClientWindow",t.P_VIEWROOT="jakarta.faces.ViewRoot",t.P_VIEWHEAD="jakarta.faces.ViewHead",t.P_VIEWBODY="jakarta.faces.ViewBody",t.P_RESOURCE="jakarta.faces.Resource",t.EMPTY_FUNC=Object.freeze((()=>{})),t.EMPTY_STR="",t.EMPTY_MAP=Object.freeze({}),t.HTML_VIEWSTATE=[""].join(t.EMPTY_STR),t.HTML_CLIENT_WINDOW=[""].join(t.EMPTY_STR),t.IDENT_ALL="@all",t.IDENT_NONE="@none",t.IDENT_THIS="@this",t.IDENT_FORM="@form",t.P_AJAX="jakarta.faces.partial.ajax",t.P_EXECUTE="jakarta.faces.partial.execute",t.P_RENDER="jakarta.faces.partial.render",t.P_RENDER_OVERRIDE="_myfaces.rendeOverride",t.P_EVT="jakarta.faces.partial.event",t.P_RESET_VALUES="jakarta.faces.partial.resetValues",t.P_WINDOW_ID="jakarta.faces.windowId",t.P_BEHAVIOR_EVENT="jakarta.faces.behavior.event",t.CTX_PARAM_RENDER="render",t.WINDOW_ID="windowId",t.ERROR="error",t.EVENT="event",t.ON_ERROR="onerror",t.ON_EVENT="onevent",t.BEGIN="begin",t.COMPLETE="complete",t.SUCCESS="success",t.SOURCE="source",t.STATUS="status",t.ERROR_NAME="error-name",t.ERROR_MESSAGE="error-message",t.RESPONSE_TEXT="responseText",t.RESPONSE_XML="responseXML",t.HTTP_ERROR="httpError",t.EMPTY_RESPONSE="emptyResponse",t.MALFORMEDXML="malformedXML",t.SERVER_ERROR="serverError",t.CLIENT_ERROR="clientError",t.TIMEOUT_EVENT="timeout",t.CTX_OPTIONS_PARAMS="params",t.CTX_OPTIONS_DELAY="delay",t.DELAY_NONE="none",t.CTX_OPTIONS_TIMEOUT="timeout",t.CTX_OPTIONS_RESET="resetValues",t.CTX_OPTIONS_EXECUTE="execute",t.CTX_PARAM_MF_INTERNAL="myfaces.internal",t.CTX_PARAM_SRC_FRM_ID="myfaces.source.formId",t.CTX_PARAM_UPLOAD_ON_PROGRESS="myfaces.upload.progress",t.CTX_PARAM_UPLOAD_PREINIT="myfaces.upload.preinit",t.CTX_PARAM_UPLOAD_LOADSTART="myfaces.upload.loadstart",t.CTX_PARAM_UPLOAD_LOADEND="myfaces.upload.loadend",t.CTX_PARAM_UPLOAD_LOAD="myfaces.upload.load",t.CTX_PARAM_UPLOAD_ERROR="myfaces.upload.error",t.CTX_PARAM_UPLOAD_ABORT="myfaces.upload.abort",t.CTX_PARAM_UPLOAD_TIMEOUT="myfaces.upload.timeout",t.CTX_PARAM_SRC_CTL_ID="myfaces.source.controlId",t.CTX_PARAM_REQ_PASS_THR="myfaces.request.passThrough",t.CTX_PARAM_PPS="myfaces.request.pps",t.CONTENT_TYPE="Content-Type",t.HEAD_FACES_REQ="Faces-Request",t.REQ_ACCEPT="Accept",t.VAL_AJAX="partial/ajax",t.ENCODED_URL="jakarta.faces.encodedURL",t.REQ_TYPE_GET="GET",t.REQ_TYPE_POST="POST",t.STATE_EVT_BEGIN="begin",t.STATE_EVT_TIMEOUT="TIMEOUT_EVENT",t.STATE_EVT_COMPLETE="complete",t.URL_ENCODED="application/x-www-form-urlencoded",t.MULTIPART="multipart/form-data",t.NO_TIMEOUT=0,t.STD_ACCEPT="text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",t.HTML_TAG_HEAD="HEAD",t.HTML_TAG_FORM="FORM",t.HTML_TAG_BODY="BODY",t.HTML_TAG_LINK="LINK",t.HTML_TAG_SCRIPT="SCRIPT",t.HTML_TAG_STYLE="STYLE",t.SEL_VIEWSTATE_ELEM="[name='"+t.P_VIEWSTATE+"']",t.SEL_CLIENT_WINDOW_ELEM="[name='"+t.P_CLIENT_WINDOW+"']",t.SEL_RESPONSE_XML="responseXML",t.PHASE_PROCESS_RESPONSE="processResponse",t.ERR_NO_PARTIAL_RESPONSE="Partial response not set",t.MYFACES_OPTION_PPS="pps",t.ATTR_URL="url",t.ATTR_NAME="name",t.ATTR_VALUE="value",t.ATTR_ID="id",t.XML_TAG_PARTIAL_RESP="partial-response",t.XML_TAG_CHANGES="changes",t.XML_TAG_UPDATE="update",t.XML_TAG_DELETE="delete",t.XML_TAG_INSERT="insert",t.XML_TAG_EVAL="eval",t.XML_TAG_ERROR="error",t.XML_TAG_ATTRIBUTES="attributes",t.XML_TAG_EXTENSION="extension",t.XML_TAG_REDIRECT="redirect",t.XML_TAG_BEFORE="before",t.XML_TAG_AFTER="after",t.XML_TAG_ATTR="attribute",t.UPDATE_FORMS="myfaces.updateForms",t.UPDATE_ELEMS="myfaces.updateElems",t.DEFERRED_HEAD_INSERTS="myfaces.headElems",t.MYFACES="myfaces",t.MF_NONE="__mf_none__",t.REASON_EXPIRED="Expired",t.APPLIED_VST="myfaces.appliedViewState",t.APPLIED_CLIENT_WINDOW="myfaces.appliedClientWindow",t.RECONNECT_INTERVAL=500,t.MAX_RECONNECT_ATTEMPTS=25,t.UNKNOWN="UNKNOWN",t.$faces=function(){var e;return null!==(e=null===window||void 0===window?void 0:window.faces)&&void 0!==e?e:null===window||void 0===window?void 0:window.jsf},t.$nsp=function(e){return e&&(null==e?void 0:e.replace)?(null===window||void 0===window?void 0:window.faces)?e.replace(/javax\.faces/gi,"jakarta.faces"):e.replace(/jakarta\.faces/gi,"javax.faces"):e}},315:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StateHolder=void 0;const r=n(351);t.StateHolder=class{constructor(e,t){this.id=e,this.value=t;let n=e.indexOf(r.P_VIEWSTATE);this.nameSpace=n>0?e.substr(0,n-1):r.EMPTY_STR}get hasNameSpace(){var e;return!!(null!==(e=null==this?void 0:this.nameSpace)&&void 0!==e?e:r.EMPTY_STR).length}}},207:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Messages=void 0,t.Messages=class{constructor(){this.MSG_TEST="Testmessage",this.MSG_DEV_MODE="Note, this message is only sent, because project stage is development and no other error listeners are registered.",this.MSG_AFFECTED_CLASS="Affected Class=",this.MSG_AFFECTED_METHOD="Affected Method=",this.MSG_ERROR_NAME="Error Name=",this.MSG_ERROR_MESSAGE="Error Message=",this.MSG_SERVER_ERROR_NAME="Server Error Name=",this.MSG_ERROR_DESC="Error Description=",this.MSG_ERROR_NO="Error Number=",this.MSG_ERROR_LINENO="Error Line Number=",this.ERR_FORM="Sourceform could not be determined, either because element is not attached to a form or we have multiple forms with named elements of the same identifier or name, stopping the ajax processing",this.ERR_VIEWSTATE="faces.viewState= param value not of type form!",this.ERR_TRANSPORT="Transport type {0} does not exist",this.ERR_EVT_PASS="an event must be passed down (either a an event object null or undefined) ",this.ERR_CONSTRUCT="Parts of the response couldn't be retrieved when constructing the event data= {0} ",this.ERR_MALFORMEDXML="The server response could not be parsed, the server has returned with a response which is not xml !",this.ERR_SOURCE_FUNC="source cannot be a function (probably source and event were not defined or set to null",this.ERR_EV_OR_UNKNOWN="An event object or unknown must be passed as second parameter",this.ERR_SOURCE_NOSTR="source cannot be a string",this.ERR_SOURCE_DEF_NULL="source must be defined or null",this.ERR_MUST_STRING="{0}: {1} namespace must be of type String",this.ERR_REF_OR_ID="{0}: {1} a reference node or identifier must be provided",this.ERR_PARAM_GENERIC="{0}: parameter {1} must be of type {2}",this.ERR_PARAM_STR="{0}: {1} param must be of type string",this.ERR_PARAM_STR_RE="{0}: {1} param must be of type string or a regular expression",this.ERR_PARAM_MIXMAPS="{0}: both a source as well as a destination map must be provided",this.ERR_MUST_BE_PROVIDED="{0}: an {1} and a {2} must be provided",this.ERR_MUST_BE_PROVIDED1="{0}: {1} must be set",this.ERR_REPLACE_EL="replaceElements called while evalNodes is not an array",this.ERR_EMPTY_RESPONSE="{0}: The response cannot be null or empty!",this.ERR_ITEM_ID_NOTFOUND="{0}: item with identifier {1} could not be found",this.ERR_PPR_IDREQ="{0}: Error in PPR Insert, id must be present",this.ERR_PPR_INSERTBEFID="{0}: Error in PPR Insert, before id or after id must be present",this.ERR_PPR_INSERTBEFID_1="{0}: Error in PPR Insert, before node of id {1} does not exist in document",this.ERR_PPR_INSERTBEFID_2="{0}: Error in PPR Insert, after node of id {1} does not exist in document",this.ERR_PPR_DELID="{0}: Error in delete, id not in xml markup",this.ERR_PPR_UNKNOWNCID="{0}: Unknown Html-Component-ID= {1}",this.ERR_NO_VIEWROOTATTR="{0}: Changing of ViewRoot attributes is not supported",this.ERR_NO_HEADATTR="{0}: Changing of Head attributes is not supported",this.ERR_RED_URL="{0}: Redirect without url",this.ERR_REQ_FAILED_UNKNOWN="Request failed with unknown status",this.ERR_REQU_FAILED="Request failed with status {0} and reason {1}",this.UNKNOWN="UNKNOWN"}}},22:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Assertions=void 0;const r=n(257),s=n(351),l=n(471);var o;!function(e){function t(t,n=s.EMPTY_STR,r=s.EMPTY_STR,l="Assertion Error"){if(!t)throw e.raiseError(new Error,n,r,l)}function n(t,n,l=s.EMPTY_STR,o=s.EMPTY_STR,i="Type Assertion Error"){if(t&&!r.Lang.assertType(t,n))throw e.raiseError(new Error,l,o,i)}function o(e,t=s.EMPTY_STR,r=s.EMPTY_STR,l="Assertion Error"){n(e,"function",t,r,l)}e.assertRequestIntegrity=function(e,n){o(e.getIf(s.ON_ERROR).value),o(e.getIf(s.ON_EVENT).value),t(n.isPresent(),l.ExtLang.getMessage("ERR_MUST_BE_PROVIDED1","{0}: source must be provided or exist","source element id"),"faces.ajax.request","ArgNotSet")},e.assertUrlExists=function(t){if(t.attr(s.ATTR_URL).isAbsent())throw e.raiseError(new Error,l.ExtLang.getMessage("ERR_RED_URL",null,"processRedirect"),"processRedirect")},e.assertValidXMLResponse=function(e){t(!e.isAbsent(),s.EMPTY_RESPONSE,s.PHASE_PROCESS_RESPONSE),t(!e.isXMLParserError(),e.parserErrorText(s.EMPTY_STR),s.PHASE_PROCESS_RESPONSE),t(e.querySelectorAll(s.XML_TAG_PARTIAL_RESP).isPresent(),s.ERR_NO_PARTIAL_RESPONSE,s.PHASE_PROCESS_RESPONSE)},e.raiseError=function(e,t,n,r,o){let i=null!=r?r:s.MALFORMEDXML,a=null!=o?o:s.MALFORMEDXML,u=null!=t?t:s.EMPTY_STR;return l.ExtLang.makeException(e,i,a,"Response",n||(arguments.caller?arguments.caller.toString():"_raiseError"),u)},e.assert=t,e.assertType=n,e.assertFunction=o,e.assertDelay=function(e){if(!(e>=0))throw new Error("Invalid delay value: "+e)}}(o||(t.Assertions=o={}))},726:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncRunnable=void 0,t.AsyncRunnable=class{constructor(){this.catchFunctions=[],this.thenFunctions=[]}resolve(e){this.thenFunctions.reduce(((e,t)=>t(e)),e)}reject(e){this.catchFunctions.reduce(((e,t)=>t(e)),e)}catch(e){return this.catchFunctions.push(e),this}finally(e){return this.catchFunctions.push(e),this.thenFunctions.push(e),this}then(e){return this.thenFunctions.push(e),this}}},780:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtConfig=t.ExtDQ=t.ExtDomQuery=void 0;const r=n(257),s=n(351),l=e=>e&&!(-1==(null==e?void 0:e.search(/\/jakarta\.faces\.resource.*\/faces\.js.*/))&&-1==(null==e?void 0:e.search(/\/faces-development\.js.*/))&&-1==(null==e?void 0:e.search(/\/faces-uncompressed\.js.*/))&&-1==(null==e?void 0:e.search(/\/faces[^.]*\.js.*ln=jakarta.faces.*/gi))&&-1==(null==e?void 0:e.search(/\/javax\.faces\.resource.*\/jsf\.js.*/))&&-1==(null==e?void 0:e.search(/\/jsf-development\.js.*/))&&-1==(null==e?void 0:e.search(/\/jsf-uncompressed\.js.*/))&&-1==(null==e?void 0:e.search(/\/jsf[^.]*\.js.*ln=javax.faces.*/gi))),o="src";class i extends r.DQ{static get windowId(){return new i(document.body).windowId}static get nonce(){return new i(document.body).nonce}get windowId(){const e=function(){let e=window.location.href,t=new RegExp("[\\?&]windowId=([^&#\\;]*)").exec(e);return null!=t?t[1]:null};if(this.value.isPresent()){let t=this.querySelectorAll("form input[name='"+s.P_WINDOW_ID+"']");if(t.length>1)throw Error("Multiple different windowIds found in document");return r.Optional.fromNullable(t.isPresent()?t.getAsElem(0).value.value:e())}return r.Optional.fromNullable(e())}get nonce(){var e;let t=new a(window.myfaces).getIf("config","cspMeta","nonce");if(t.value)return r.ValueEmbedder.fromNullable(t);let n=new r.DQ(document.currentScript).nonce;if(n.isPresent())return r.ValueEmbedder.fromNullable(n);let s=r.Optional.fromNullable(null===(e=r.DQ.querySelectorAll("script[src], link[src]").asArray.filter((e=>e.nonce.isPresent()&&null!=e.attr(o))).filter((e=>l(e.attr(o).value))))||void 0===e?void 0:e[0]);return(null==s?void 0:s.value)?new r.DomQuery(s.value).nonce:r.ValueEmbedder.absent}static searchJsfJsFor(e){return new i(document).searchJsfJsFor(e)}searchJsfJsFor(e){var t;return r.Optional.fromNullable(null===(t=r.DQ.querySelectorAll("script[src], link[src]").asArray.filter((e=>l(e.attr(o).value))).map((t=>t.attr(o).value.match(e))).filter((e=>null!=e&&e.length>1)).map((e=>decodeURIComponent(e[1]))))||void 0===t?void 0:t[0])}globalEval(e,t){return new i(super.globalEval(e,null!=t?t:this.nonce.value))}globalEvalSticky(e,t){return new i(super.globalEvalSticky(e,null!=t?t:this.nonce.value))}runScripts(e=!1,t){return super.runScripts(e,(e=>{var n,r;return(null===(n=null==t?void 0:t(e))||void 0===n||n)&&!l(e)&&!(-1!=(r=e).search(/\/faces[^.]*\.js.*ln=myfaces.testscripts.*/gi)||-1!=r.search(/\/jsf[^.]*\.js.*ln=myfaces.testscripts.*/gi))}))}runHeadInserts(e=!0){let t=i.byId(document.head),n=[];this.filter((function(n){if(!e)return!0;const r=n.tagName.value;if(!r)return!0;let s=n.attr("href").orElseLazy((()=>n.attr("src").value)).orElseLazy((()=>n.attr("rel").value));return!s.isPresent()||!t.querySelectorAll(`${r}[href='${s.value}']`).length&&!t.querySelectorAll(`${r}[src='${s.value}']`).length&&!t.querySelectorAll(`${r}[rel='${s.value}']`).length})).each((e=>{"SCRIPT"!=e.tagName.value?(new i(...n).runScripts(!0),n=[],t.append(e)):n.push(e)})),new i(...n).runScripts(!0)}static byId(e,t=!1){var n,l,o;const a=r.DomQuery.byId(e,t);if("development"==(0,s.$faces)().getProjectStage().toLowerCase()&&(null===window||void 0===window?void 0:window.console)&&a.isAbsent()&&e){let t=null!==(o=null!==(l=null===(n=null==e?void 0:e.id)||void 0===n?void 0:n.value)&&void 0!==l?l:null==e?void 0:e.id)&&void 0!==o?o:e.toString();console.error("Element "+t+"not found")}return new i(a)}filter(e){return new i(super.filter(e))}}t.ExtDomQuery=i,t.ExtDQ=i;class a extends r.Config{constructor(e){super(e),this.$nspEnabled=!0}assignIf(e,...t){const n=this.remap(t);return super.assignIf(e,...n)}assign(...e){const t=this.remap(e);return super.assign(...t)}append(...e){return super.append(...e)}appendIf(e,...t){const n=this.remap(t);return super.appendIf(e,...n)}getIf(...e){const t=this.remap(e);return super.getIf(...t)}get(e){return super.get((0,s.$nsp)(e))}delete(e){return super.delete((0,s.$nsp)(e))}static fromNullable(e){return new a(e)}getClass(){return a}shallowCopy$(){const e=super.shallowCopy$();return new a(e)}get deepCopy(){return new a(super.deepCopy$())}remap(e){return this.$nspEnabled?new r.Es2019Array(...e).map((e=>(0,s.$nsp)(e))):e}}t.ExtConfig=a},680:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFormInputsAsArr=t.fixEmptyParameters=t.resolveFiles=t.decodeEncodedValues=t.encodeFormData=void 0;const r=n(257),s=n(780),l=n(351);function o(e){return e.split(/&/gi).filter((e=>!!(e||"").replace(/\s+/g,""))).map((e=>{let t=decodeURIComponent(e),n=t.indexOf("=");return-1==n?[t]:[t.substring(0,n),t.substring(n+1)]}))}function i(e){return e.querySelectorAllDeep("input[type='file']").asArray.map((e=>[e.name.value||e.id.value,e.filesFromElem(0)])).flatMap((([e,t])=>[...t].map((t=>[e,t]))))}t.encodeFormData=function(e,t=(e,t)=>[e,t],n=l.EMPTY_STR){if(e.isAbsent())return n;const o=e.value;return new r.Es2019Array(...Object.keys(o)).filter((e=>o.hasOwnProperty(e))).flatMap((e=>o[e].map((n=>t(e,n))))).filter((([,e])=>!(e instanceof s.ExtDomQuery.global().File))).map((e=>`${encodeURIComponent(e[0])}=${encodeURIComponent(e[1])}`)).join("&")},t.decodeEncodedValues=o,t.resolveFiles=i,t.fixEmptyParameters=function(e){var t,n;return e.length<3?[null!==(t=null==e?void 0:e[0])&&void 0!==t?t:[],null!==(n=null==e?void 0:e[1])&&void 0!==n?n:[]]:e},t.getFormInputsAsArr=function(e){const t=function(e){return o((0,l.$faces)().getViewState(e.getAsElem(0).value))}(e),n=i(e);return t.concat(n)}},248:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HiddenInputBuilder=void 0;const r=n(257),s=n(351);t.HiddenInputBuilder=class{constructor(e){this.selector=e,this.namedViewRoot=!1;const t=-1!=e.indexOf((0,s.$nsp)(s.P_VIEWSTATE));this.name=t?s.P_VIEWSTATE:s.P_CLIENT_WINDOW,this.template=t?s.HTML_VIEWSTATE:s.HTML_CLIENT_WINDOW}withNamingContainerId(e){return this.namingContainerId=e,this}withParent(e){return this.parent=e,this}withNamedViewRoot(e){return this.namedViewRoot=e,this}build(){var e,t,n;const l=(0,s.$faces)().separatorchar;let o=(0,r.DQ$)(`[name*='${(0,s.$nsp)(this.name)}']`).asArray.map((e=>{let t=e.id.orElse("0").value;return t=t.substring(t.lastIndexOf(l)+1),parseInt(t)})).filter((e=>!isNaN(e))).reduce(((e,t)=>Math.max(e,t)),0);o++;const i=r.DQ.fromMarkup((0,s.$nsp)(this.template));return i.id.value=((null===(e=this.namingContainerId)||void 0===e?void 0:e.length)?[this.namingContainerId,(0,s.$nsp)(this.name),o]:[(0,s.$nsp)(this.name),o]).join(l),this.namedViewRoot?i.name.value=(null===(t=this.namingContainerId)||void 0===t?void 0:t.length)?[this.namingContainerId,(0,s.$nsp)(this.name)].join(l):(0,s.$nsp)(this.name):i.name.value=(0,s.$nsp)(this.name),null===(n=null==this?void 0:this.parent)||void 0===n||n.append(i),i}}},471:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtLang=void 0;const r=n(257),s=n(207),l=n(351),o=n(7),i=n(257);var a;!function(e){let t;function n(e,n,...r){var o,i;t=null!=t?t:new s.Messages;let a=null!==(i=null!==(o=t[e])&&void 0!==o?o:n)&&void 0!==i?i:e;return r.forEach(((e,t)=>{a=a.replace(new RegExp(["\\{",t,"\\}"].join(l.EMPTY_STR),"g"),e)})),a}function a(e,t,n,r,s,o){var i;return new Error(null!==(i=o+(null!=r?r:"impl/util/Lang/")+s)&&void 0!==i?i:l.EMPTY_STR+arguments.caller.toString())}e.getLanguage=function(){var e,t;let n=null!==(t=null===(e=navigator.languages)||void 0===e?void 0:e[0])&&void 0!==t?t:null===navigator||void 0===navigator?void 0:navigator.language;return n=n.split("-")[0],n},e.failSaveResolve=function(e,t=null){return r.Lang.saveResolve(e,t)},e.failSaveExecute=function(e,t=null){r.Lang.saveResolve(e,t)},e.getMessage=n,e.keyValToStr=function(e,t,n="\n"){return[e,t].join(n)},e.makeException=a,e.getGlobalConfig=function(e,t){var n,r,s;return null!==(s=null===(r=null===(n=null===window||void 0===window?void 0:window.myfaces)||void 0===n?void 0:n.config)||void 0===r?void 0:r[e])&&void 0!==s?s:t},e.getForm=function(e,t){let s=new r.DQ(e),i=t?new r.DQ((0,o.getEventTarget)(t)):r.DomQuery.absent;if(s.isTag(l.HTML_TAG_FORM))return s;if(s.attr(l.HTML_TAG_FORM).isPresent()){let e=s.attr(l.HTML_TAG_FORM).value,t=r.DQ.byId(e,!0);if(t.isPresent())return t}let u=s.firstParent(l.HTML_TAG_FORM).orElseLazy((()=>s.byTagName(l.HTML_TAG_FORM,!0))).orElseLazy((()=>i.firstParent(l.HTML_TAG_FORM))).orElseLazy((()=>i.byTagName(l.HTML_TAG_FORM))).first();return u=u.orElseLazy((()=>r.DQ.byTagName(l.HTML_TAG_FORM))),function(e){if(e.isAbsent()||e.length>1)throw a(new Error,null,null,"Impl","getForm",n("ERR_FORM"))}(u),u},e.getLocalOrGlobalConfig=function(e,t,n){var r,s,l,o,i,a,u;return null!==(u=null!==(o=null===(l=null===(s=null===(r=e.value)||void 0===r?void 0:r.myfaces)||void 0===s?void 0:s.config)||void 0===l?void 0:l[t])&&void 0!==o?o:null===(a=null===(i=null===window||void 0===window?void 0:window.myfaces)||void 0===i?void 0:i.config)||void 0===a?void 0:a[t])&&void 0!==u?u:n},e.ofAssoc=function(e){return new i.Es2019Array(...Object.keys(e)).map((t=>[t,e[t]]))},e.collectAssoc=function(e,t){return e[t[0]]=t[1],e};let u={};e.debounce=function(e,t,n){function r(){clearTimeout(u[e]),delete u[e]}(null==u?void 0:u[e])&&r(),n>0?u[e]=setTimeout((()=>{try{t()}finally{r()}}),n):t()}}(a||(t.ExtLang=a={}))},666:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XhrQueueController=void 0;var r=n(471).ExtLang.debounce;t.XhrQueueController=class{constructor(){this.queue=[],this.taskRunning=!1}enqueue(e,t=0){r("xhrQueue",(()=>{const t=this.enrichRunnable(e);this.taskRunning?this.queue.push(t):(this.signalTaskRunning(),t.start())}),t)}next(){this.updateTaskRunning();const e=this.queue.shift();null==e||e.start()}clear(){this.queue.length=0,this.updateTaskRunning()}get isEmpty(){return!this.queue.length}enrichRunnable(e){return e.then((()=>this.next())).catch((()=>this.clear()))}signalTaskRunning(){this.taskRunning=!0}updateTaskRunning(){this.taskRunning=!this.isEmpty}}},234:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorData=t.ErrorType=void 0;const r=n(351),s=n(257),l=n(560);var o,i=n(471).ExtLang.getMessage;!function(e){e.SERVER_ERROR="serverError",e.HTTP_ERROR="httpError",e.CLIENT_ERROR="clientErrror",e.TIMEOUT="timeout"}(o||(t.ErrorType=o={}));class a extends l.EventData{constructor(e,t,n,l=null,i=null,a=-1,u=null,c=o.CLIENT_ERROR){super(),this.type="error",this.source=s.DQ.byId(e).value.orElse(e).value,this.type=r.ERROR,this.errorName=t,this.errorMessage=n,this.responseCode=a,this.responseText=l,this.responseXML=i,this.status=u,this.description=`Status: ${this.status}\nResponse Code: ${this.responseCode}\nError Message: ${this.errorMessage}`,this.typeDetails=c,c==o.SERVER_ERROR&&(this.serverErrorName=this.errorName,this.serverErrorMessage=this.errorMessage)}static fromClient(e){var t,n,s,l;return new a(null!==(t=null==e?void 0:e.source)&&void 0!==t?t:"client",null!==(n=null==e?void 0:e.name)&&void 0!==n?n:r.EMPTY_STR,null!==(s=null==e?void 0:e.message)&&void 0!==s?s:r.EMPTY_STR,null!==(l=null==e?void 0:e.stack)&&void 0!==l?l:r.EMPTY_STR)}static fromHttpConnection(e,t,n,s,l,i,u=r.EMPTY_STR){return new a(e,t,n,s,l,i,u,o.HTTP_ERROR)}static fromGeneric(e,t,n=o.SERVER_ERROR){let s=this.getMsg,l=s(e,r.SOURCE),i=s(e,r.ERROR_NAME),u=s(e,r.ERROR_MESSAGE),c=s(e,r.STATUS),d=s(e,r.RESPONSE_TEXT),h=e.getIf(r.RESPONSE_XML).value;return new a(l,i,u,d,h,t,c,n)}static getMsg(e,t){return i(e.getIf(t).orElse(r.EMPTY_STR).value)}static fromServerError(e){return this.fromGeneric(e,-1)}}t.ErrorData=a},560:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EventData=void 0;const r=n(257),s=n(351);class l{static createFromRequest(e,t,n){let o=new l;o.type=s.EVENT,o.status=n;let i=t.getIf(s.SOURCE).orElseLazy((()=>t.getIf(s.P_AJAX_SOURCE).value)).orElseLazy((()=>t.getIf(s.CTX_PARAM_REQ_PASS_THR,s.P_AJAX_SOURCE).value)).value;return i&&(o.source=r.DQ.byId(i,!0).first().value.value),n!==s.BEGIN&&(o.responseCode=null==e?void 0:e.status,o.responseText=null==e?void 0:e.responseText,o.responseXML=null==e?void 0:e.responseXML),o}}t.EventData=l},7:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resolveDefaults=t.getEventTarget=t.resolveWindowId=t.resolveDelay=t.resolveTimeout=t.resoveNamingContainerMapper=t.resolveViewRootId=t.resolveViewId=t.resolveForm=t.resolveFinalUrl=t.resolveTargetUrl=t.resolveHandlerFunc=void 0;const r=n(257),s=n(351),l=n(471),o=n(780),i=n(22);function a(e){return void 0===e.elements[s.ENCODED_URL]?e.action:e.elements[s.ENCODED_URL].value}function u(e){var t,n;return null!==(n=null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.windowId)&&void 0!==n?n:o.ExtDomQuery.windowId.value}t.resolveHandlerFunc=function(e,t,n){return(t=t||new r.Config({})).getIf(n).orElseLazy((()=>e.getIf(n).value)).orElse(s.EMPTY_FUNC).value},t.resolveTargetUrl=a,t.resolveFinalUrl=function(e,t,n=s.REQ_TYPE_POST){return a(e.getAsElem(0).value)+(n==s.REQ_TYPE_GET?"?"+t.toString():s.EMPTY_STR)},t.resolveForm=function(e,t){return l.ExtLang.getForm(e.getAsElem(0).value,t)},t.resolveViewId=function(e){const t=e.querySelectorAll(`input[type='hidden'][name*='${(0,s.$nsp)(s.P_VIEWSTATE)}']`).id.orElse("").value,n=(0,s.$faces)().separatorchar,r=t.split(n,2)[0],l=-1===r.indexOf((0,s.$nsp)(s.P_VIEWSTATE))?r:"";return 0===e.id.value.indexOf(l)?l:""},t.resolveViewRootId=function(e){const t=e.querySelectorAll(`input[type='hidden'][name*='${(0,s.$nsp)(s.P_VIEWSTATE)}']`).attr("name").orElse("").value,n=(0,s.$faces)().separatorchar,r=t.split(n,2)[0];return-1===r.indexOf((0,s.$nsp)(s.P_VIEWSTATE))?r:""},t.resoveNamingContainerMapper=function(e){if(!e.getIf(s.NAMED_VIEWROOT).isPresent())return(e,t)=>[e,t];const t=e.getIf(s.NAMING_CONTAINER_ID).value+(0,s.$faces)().separatorchar;return(e,n)=>0==e.indexOf(t)?[e,n]:[t+e,n]},t.resolveTimeout=function(e){var t;let n=l.ExtLang.getLocalOrGlobalConfig;return null!==(t=e.getIf(s.CTX_OPTIONS_TIMEOUT).value)&&void 0!==t?t:n(e.value,s.CTX_OPTIONS_TIMEOUT,0)},t.resolveDelay=function(e){let t=e.getIf(s.CTX_OPTIONS_DELAY).orElse(0).value;return t=s.DELAY_NONE===t?0:t,i.Assertions.assertDelay(t),t},t.resolveWindowId=u,t.getEventTarget=function(e){var t,n;let r=e,s=null!==(n=null!==(t=null==r?void 0:r.srcElement)&&void 0!==t?t:null==r?void 0:r.target)&&void 0!==n?n:null==r?void 0:r.source;for(;s&&1!=s.nodeType;)s=s.parentNode;return s},t.resolveDefaults=function(e,t,n=null){var s;const l=r.DQ.byId(n||e.target,!0),i=new o.ExtConfig(t).deepCopy;return{options:i,elem:l,elementId:l.id.value,windowId:u(i),isResetValues:!0===(null===(s=i.value)||void 0===s?void 0:s.resetValues)}}},413:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSourceForm=t.resolveSourceElement=t.resolveContexts=t.resolveResponseXML=void 0;const r=n(257),s=n(22),l=n(257),o=n(351),i=n(780);t.resolveResponseXML=function(e){let t=new r.XMLQuery((0,o.$nsp)(e.getIf(o.SEL_RESPONSE_XML).value));return s.Assertions.assertValidXMLResponse(t),t},t.resolveContexts=function(e){let t=i.ExtConfig.fromNullable(e),n=t.getIf(o.CTX_PARAM_MF_INTERNAL);return n.isPresent()||(n=i.ExtConfig.fromNullable({})),n.assign(o.DEFERRED_HEAD_INSERTS).value=[],n.assign(o.UPDATE_FORMS).value=[],n.assign(o.UPDATE_ELEMS).value=[],{externalContext:t,internalContext:n}},t.resolveSourceElement=function(e,t){let n=function(e,t){return t.getIf(o.CTX_PARAM_SRC_CTL_ID).orElseLazy((()=>e.getIf(o.SOURCE,"id").value))}(e,t);return l.DQ.byId(n.value,!0)},t.resolveSourceForm=function(e,t){let n=e.getIf(o.CTX_PARAM_SRC_FRM_ID),r=new l.DQ(n.isPresent()?document.forms[n.value]:null);return r=r.orElseLazy((()=>t.firstParent(o.HTML_TAG_FORM))).orElseLazy((()=>t.querySelectorAll(o.HTML_TAG_FORM))).orElseLazy((()=>l.DQ.querySelectorAll(o.HTML_TAG_FORM))),r}},121:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Response=void 0;const r=n(257),s=n(797),l=n(351),o=n(413),i=n(780);var a;!function(e){e.processResponse=function(e,n){let a=i.ExtConfig.fromNullable(e),{externalContext:u,internalContext:c}=(0,o.resolveContexts)(n),d=(0,o.resolveResponseXML)(a),h=new s.ResponseProcessor(a,u,c);c.assign(l.RESPONSE_XML).value=d,d.querySelectorAll(l.XML_TAG_PARTIAL_RESP).each((e=>function(e,n,s){var o;let i=null===(o=null==e?void 0:e.id)||void 0===o?void 0:o.value;s.assignIf(!!i,l.NAMING_CONTAINER_ID).value=i,n.updateNamedViewRootState();const a=[l.XML_TAG_ERROR,l.XML_TAG_REDIRECT,l.XML_TAG_CHANGES].join(",");e.querySelectorAll(a).each((e=>{switch(e.tagName.value){case l.XML_TAG_ERROR:n.error(e);break;case l.XML_TAG_REDIRECT:n.redirect(e);break;case l.XML_TAG_CHANGES:!function(e,n){const s=[l.XML_TAG_UPDATE,l.XML_TAG_EVAL,l.XML_TAG_INSERT,l.XML_TAG_DELETE,l.XML_TAG_ATTRIBUTES,l.XML_TAG_EXTENSION].join(", ");e.querySelectorAll(s).each((e=>{switch(e.tagName.value){case l.XML_TAG_UPDATE:!function(e,t){(function(e,t){return e.processViewState(t)||e.processClientWindow(t)})(t,e)||function(e,t){let n=e.cDATAAsString;switch(e.id.value){case(0,l.$nsp)(l.P_VIEWROOT):t.replaceViewRoot(r.DQ.fromMarkup(n.substring(n.indexOf("{Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseProcessor=void 0;const r=n(257),s=n(644),l=n(22),o=n(234),i=n(315),a=n(560),u=n(351),c=n(780),d=n(248);var h=r.Lang.trim,E=n(471).ExtLang.ofAssoc;class v{constructor(e,t,n){this.request=e,this.externalContext=t,this.internalContext=n}replaceHead(e){const t=e.querySelectorAll(u.HTML_TAG_HEAD);if(!t.isPresent())return;const n=c.ExtDomQuery.querySelectorAll(u.HTML_TAG_HEAD);n.childNodes.delete(),this.addToHead(t),n.copyAttrs(t)}addToHead(e){const t=new c.ExtDomQuery(e),n=[u.HTML_TAG_SCRIPT];t.filter((e=>-1==n.indexOf(e.tagName.orElse("").value))).runHeadInserts(!0);const s="HEAD"===e.tagName.value?e.childNodes:e,l=new r.DomQuery(...s.asArray.filter((e=>-1!=n.indexOf(e.tagName.orElse("").value))));this.addToHeadDeferred(l)}addToHeadDeferred(e){this.internalContext.assign(u.DEFERRED_HEAD_INSERTS).value.push(e)}replaceBody(e){const t=e.querySelectorAll(u.HTML_TAG_BODY);if(!t.isPresent())return;const n=t.innerHTML,r=c.ExtDomQuery.querySelectorAll(u.HTML_TAG_BODY),s=r.querySelectorAll(u.HTML_TAG_FORM);r.html(n).copyAttrs(t),this.externalContext.assign((0,u.$nsp)(u.P_RENDER_OVERRIDE)).value="@all",this.storeForPostProcessing(s,r)}eval(e){c.ExtDomQuery.globalEval(e.cDATAAsString)}error(e){const t=new c.ExtConfig({});t.assign(u.SOURCE).value=this.externalContext.getIf(u.P_AJAX_SOURCE).get(0).value,t.assign(u.ERROR_NAME).value=e.querySelectorAll(u.ERROR_NAME).textContent(u.EMPTY_STR),t.assign(u.ERROR_MESSAGE).value=e.querySelectorAll(u.ERROR_MESSAGE).cDATAAsString;const n=this.internalContext.get(u.RESPONSE_XML).isPresent();t.assignIf(n,u.RESPONSE_XML).value=this.internalContext.getIf(u.RESPONSE_XML).value.get(0).value;const r=o.ErrorData.fromServerError(t);this.triggerOnError(r),s.Implementation.sendError(r)}redirect(e){l.Assertions.assertUrlExists(e);const t=h(e.attr(u.ATTR_URL).value);t!=u.EMPTY_STR&&(window.location.href=t)}update(e,t){const n=c.ExtDomQuery.byId(e.id.value,!0).outerHTML(t,!1,!1),r=null==n?void 0:n.firstParent(u.HTML_TAG_FORM).orElseLazy((()=>n.byTagName(u.HTML_TAG_FORM,!0)));r&&this.storeForPostProcessing(r,n)}delete(e){r.DQ.byId(e.id.value,!0).delete()}attributes(e){const t=r.DQ.byId(e.id.value,!0);e.byTagName(u.XML_TAG_ATTR).each((e=>{t.attr(e.attr(u.ATTR_NAME).value).value=e.attr(u.ATTR_VALUE).value}))}replaceViewRoot(e){this.replaceHead(e),this.replaceBody(e)}insert(e){const t=e.attr(u.XML_TAG_BEFORE),n=e.attr(u.XML_TAG_AFTER),s=r.DQ.fromMarkup(e.cDATAAsString);t.isPresent()&&(r.DQ.byId(t.value,!0).insertBefore(s),this.internalContext.assign(u.UPDATE_ELEMS).value.push(s)),n.isPresent()&&(r.DQ.byId(n.value,!0).insertAfter(s),this.internalContext.assign(u.UPDATE_ELEMS).value.push(s))}insertWithSubTags(e){const t=e.querySelectorAll(u.XML_TAG_BEFORE),n=e.querySelectorAll(u.XML_TAG_AFTER);t.each((e=>{const t=e.attr(u.ATTR_ID),n=r.DQ.fromMarkup(e.cDATAAsString);t.isPresent()&&(r.DQ.byId(t.value,!0).insertBefore(n),this.internalContext.assign(u.UPDATE_ELEMS).value.push(n))})),n.each((e=>{const t=e.attr(u.ATTR_ID),n=r.DQ.fromMarkup(e.cDATAAsString);t.isPresent()&&(r.DQ.byId(t.value,!0).insertAfter(n),this.internalContext.assign(u.UPDATE_ELEMS).value.push(n))}))}processViewState(e){if(v.isViewStateNode(e)){const t=e.cDATAAsString;return this.internalContext.assign(u.APPLIED_VST,e.id.value).value=new i.StateHolder((0,u.$nsp)(e.id.value),t),!0}return!1}processClientWindow(e){if(v.isClientWindowNode(e)){const t=e.cDATAAsString;return this.internalContext.assign(u.APPLIED_CLIENT_WINDOW,e.id.value).value=new i.StateHolder((0,u.$nsp)(e.id.value),t),!0}}globalEval(){new c.ExtDomQuery(...this.internalContext.getIf(u.DEFERRED_HEAD_INSERTS).value).runHeadInserts(!0);let e=new c.ExtDomQuery(...this.internalContext.getIf(u.UPDATE_ELEMS).value);e.runCss(),e.runScripts()}fixViewStates(){E(this.internalContext.getIf(u.APPLIED_VST).orElse({}).value).forEach((([,e])=>{const t=this.internalContext.getIf(u.NAMING_CONTAINER_ID),n=!!this.internalContext.getIf(u.NAMED_VIEWROOT).value,r=this.getContainerForms(t).filter((e=>this.isInExecuteOrRender(e)));this.appendViewStateToForms(r,n,e.value,t.orElse("").value)}))}fixClientWindow(){E(this.internalContext.getIf(u.APPLIED_CLIENT_WINDOW).orElse({}).value).forEach((([,e])=>{const t=this.internalContext.getIf(u.NAMING_CONTAINER_ID),n=!!this.internalContext.getIf(u.NAMED_VIEWROOT).value,r=this.getContainerForms(t).filter((e=>this.isInExecuteOrRender(e)));this.appendClientWindowToForms(r,n,e.value,t.orElse("").value)}))}updateNamedViewRootState(){let e=this.internalContext.getIf(u.NAMING_CONTAINER_ID),t=this.internalContext.getIf(u.NAMED_VIEWROOT);if(e.isPresent()&&(t.isAbsent()||!t.value)){const t=(0,u.$faces)().separatorchar;this.internalContext.assign(u.NAMED_VIEWROOT).value=!!document.getElementById(e.value)||(0,r.DQ$)(`input[name*='${(0,u.$nsp)(u.P_VIEWSTATE)}']`).filter((n=>0==n.attr("name").value.indexOf(e.value+t))).length>0}}done(){const e=a.EventData.createFromRequest(this.request.value,this.externalContext,u.SUCCESS),t=this.externalContext.getIf(u.ON_EVENT).orElseLazy((()=>this.internalContext.getIf(u.ON_EVENT).value)).orElse(u.EMPTY_FUNC).value;s.Implementation.sendEvent(e,t)}appendViewStateToForms(e,t,n,r=""){this.assignState(e,(0,u.$nsp)(u.SEL_VIEWSTATE_ELEM),t,n,r)}appendClientWindowToForms(e,t,n,r=""){this.assignState(e,(0,u.$nsp)(u.SEL_CLIENT_WINDOW_ELEM),t,n,r)}assignState(e,t,n,r,s){e.each((e=>{e.querySelectorAll(t).orElseLazy((()=>(e=>new d.HiddenInputBuilder(t).withNamingContainerId(s).withParent(e).withNamedViewRoot(n).build())(e))).val=r}))}storeForPostProcessing(e,t){this.storeForUpdate(e),this.storeForEval(t)}storeForUpdate(e){this.internalContext.assign(u.UPDATE_FORMS).value.push(e)}storeForEval(e){this.internalContext.assign(u.UPDATE_ELEMS).value.push(e)}static isViewStateNode(e){var t,n,r,s,l,o;const i=(0,u.$faces)().separatorchar;return void 0!==(null===(t=null==e?void 0:e.id)||void 0===t?void 0:t.value)&&((null===(n=null==e?void 0:e.id)||void 0===n?void 0:n.value)==(0,u.$nsp)(u.P_VIEWSTATE)||-1!=(null===(s=null===(r=null==e?void 0:e.id)||void 0===r?void 0:r.value)||void 0===s?void 0:s.indexOf([i,(0,u.$nsp)(u.P_VIEWSTATE)].join(u.EMPTY_STR)))||-1!=(null===(o=null===(l=null==e?void 0:e.id)||void 0===l?void 0:l.value)||void 0===o?void 0:o.indexOf([(0,u.$nsp)(u.P_VIEWSTATE),i].join(u.EMPTY_STR))))}static isClientWindowNode(e){var t,n,r,s,l,o;const i=(0,u.$faces)().separatorchar;return void 0!==(null===(t=null==e?void 0:e.id)||void 0===t?void 0:t.value)&&((null===(n=null==e?void 0:e.id)||void 0===n?void 0:n.value)==(0,u.$nsp)(u.P_CLIENT_WINDOW)||-1!=(null===(s=null===(r=null==e?void 0:e.id)||void 0===r?void 0:r.value)||void 0===s?void 0:s.indexOf([i,(0,u.$nsp)(u.P_CLIENT_WINDOW)].join(u.EMPTY_STR)))||-1!=(null===(o=null===(l=null==e?void 0:e.id)||void 0===l?void 0:l.value)||void 0===o?void 0:o.indexOf([(0,u.$nsp)(u.P_CLIENT_WINDOW),i].join(u.EMPTY_STR))))}triggerOnError(e){this.externalContext.getIf(u.ON_ERROR).orElseLazy((()=>this.internalContext.getIf(u.ON_ERROR).value)).orElse(u.EMPTY_FUNC).value(e)}isInExecuteOrRender(e){const t=this.externalContext.getIf((0,u.$nsp)(u.P_EXECUTE)).orElse("@none").value.split(/\s+/gi),n=this.externalContext.getIf(u.P_RENDER_OVERRIDE).orElseLazy((()=>this.externalContext.getIf((0,u.$nsp)(u.P_RENDER)).value)).orElse(u.IDENT_NONE).value.split(/\s+/gi);return[...t.concat(...n)].filter((t=>{if(-1!=[u.IDENT_ALL,u.IDENT_NONE].indexOf(t))return!0;const n=this.getNameOrIdSelector(t);return e.matchesSelector(n)||e.querySelectorAll(n).isPresent()||e.firstParent(n).isPresent()})).length>0}getContainerForms(e){return e.isPresent()?(0,r.DQ$)(this.getNameOrIdSelector(e.value)).orElseLazy((()=>r.DQ.byTagName(u.HTML_TAG_BODY))).byTagName(u.HTML_TAG_FORM,!0):r.DQ.byTagName(u.HTML_TAG_FORM)}getNameOrIdSelector(e){return`[id='${e}'], [name='${e}']`}}t.ResponseProcessor=v},944:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XhrFormData=void 0;const r=n(257),s=n(351),l=n(680);var o=n(471).ExtLang.ofAssoc;const i=n(257),a=(e,t)=>[e,t];class u extends r.Config{constructor(e,t=a,n,r){super({}),this.dataSource=e,this.paramsMapper=t,this.partialIds=r,this.isMultipartRequest=!1,this.resolveRequestType(this.dataSource,n),this.encodeSubmittableFields(this.dataSource,this.partialIds),this.applyViewState(this.dataSource)}toFormData(){return o(this.value).flatMap((([e,t])=>Array.isArray(t)?new i.Es2019Array(...t).map((t=>({key:e,value:t}))):[{key:e,value:t}])).map((({key:e,value:t})=>({key:e=this.remapKeyForNamingContainer(e),value:t}))).reduce(((e,{key:t,value:n})=>(e.append(t,n),e)),new FormData)}toString(e=s.EMPTY_STR){return(0,l.encodeFormData)(this,this.paramsMapper,e)}resolveRequestType(e,t){t&&-1==t.indexOf(s.IDENT_NONE)&&(this.isMultipartRequest=e.isMultipartCandidate(!0))}applyViewState(e){if(this.getIf((0,s.$nsp)(s.P_VIEWSTATE)).isPresent())return;let t=e.querySelectorAllDeep(`[name*='${(0,s.$nsp)(s.P_VIEWSTATE)}'`),n=t.inputValue;this.appendIf(n.isPresent(),this.remapKeyForNamingContainer(t.name.value)).value=n.value}encodeSubmittableFields(e,t=[]){const n=t.map((e=>this.remapKeyForNamingContainer(e)));(0,l.getFormInputsAsArr)(e).map(l.fixEmptyParameters).map((([e,t])=>this.paramsMapper(e,t))).filter((([e,t])=>!n.length||0==e.indexOf("@")||-1!=n.indexOf(e))).forEach((([e,t])=>this.append(e).value=t))}remapKeyForNamingContainer(e){return this.paramsMapper(e,"")[0]}}t.XhrFormData=u},229:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XhrRequest=void 0;const r=n(726),s=n(257),l=n(644),o=n(944),i=n(234),a=n(560),u=n(471),c=n(351),d=n(7);var h=u.ExtLang.failSaveExecute;const E=n(780);class v extends r.AsyncRunnable{constructor(e,t,n=c.NO_TIMEOUT,r=c.REQ_TYPE_POST,s=c.URL_ENCODED){super(),this.requestContext=e,this.internalContext=t,this.timeout=n,this.ajaxType=r,this.contentType=s,this.stopProgress=!1,this.xhrObject=new XMLHttpRequest,this.registerXhrCallbacks((e=>this.resolve(e)),(e=>this.reject(e)))}start(){let e=h,t=this.xhrObject,n=s.DQ.byId(this.internalContext.getIf(c.CTX_PARAM_SRC_FRM_ID).value),r=()=>this.requestContext.getIf(c.CTX_PARAM_REQ_PASS_THR,c.P_EXECUTE).get(c.IDENT_NONE).value.split(/\s+/gi);try{const s=r(),l=!0===this.internalContext.getIf(c.CTX_PARAM_PPS).value?s:[],i=new o.XhrFormData(n,(0,d.resoveNamingContainerMapper)(this.internalContext),s,l);this.contentType=i.isMultipartRequest?"undefined":this.contentType,this.requestContext.$nspEnabled=!1;const a=this.requestContext,u=a.getIf(c.CTX_PARAM_REQ_PASS_THR);u.$nspEnabled=!1;try{i.shallowMerge(u,!0,!0)}finally{this.requestContext.$nspEnabled=!0,u.$nspEnabled=!0}this.appendIssuingItem(i),this.responseContext=u.deepCopy;const h=this.responseContext;h.assign(c.CTX_PARAM_MF_INTERNAL).value=this.internalContext.value,h.assign(c.ON_EVENT).value=a.getIf(c.ON_EVENT).value,h.assign(c.ON_ERROR).value=a.getIf(c.ON_ERROR).value,t.open(this.ajaxType,(0,d.resolveFinalUrl)(n,i,this.ajaxType),!0),this.timeout&&(t.timeout=this.timeout),"undefined"!=this.contentType&&e((()=>t.setRequestHeader(c.CONTENT_TYPE,`${this.contentType}; charset=utf-8`))),e((()=>t.setRequestHeader(c.HEAD_FACES_REQ,c.VAL_AJAX))),e((()=>t.setRequestHeader(c.REQ_ACCEPT,c.STD_ACCEPT))),this.sendEvent(c.BEGIN),this.sendRequest(i)}catch(e){throw this.handleErrorAndClearQueue(e),e}return this}cancel(){try{this.xhrObject.abort()}catch(e){this.handleError(e)}}registerXhrCallbacks(e,t){var n,r;const s=this.xhrObject;s.onabort=()=>{this.onAbort(e,t)},s.ontimeout=()=>{this.onTimeout(e,t)},s.onload=()=>{this.onResponseReceived(e)},s.onloadend=()=>{this.onResponseProcessed(this.xhrObject,e)},(null==s?void 0:s.upload)&&(null===(r=(n=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_PREINIT)).value)||void 0===r||r.call(n,s.upload),s.upload.addEventListener("progress",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_ON_PROGRESS)).value)||void 0===n||n.call(t,s.upload,e)})),s.upload.addEventListener("load",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_LOAD)).value)||void 0===n||n.call(t,s.upload,e)})),s.upload.addEventListener("loadstart",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_LOADSTART)).value)||void 0===n||n.call(t,s.upload,e)})),s.upload.addEventListener("loadend",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_LOADEND)).value)||void 0===n||n.call(t,s.upload,e)})),s.upload.addEventListener("abort",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_ABORT)).value)||void 0===n||n.call(t,s.upload,e)})),s.upload.addEventListener("timeout",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_TIMEOUT)).value)||void 0===n||n.call(t,s.upload,e)})),s.upload.addEventListener("error",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_ERROR)).value)||void 0===n||n.call(t,s.upload,e)}))),s.onerror=e=>{if(this.isCancelledResponse(this.xhrObject))return this.stopProgress=!0,void t();this.stopProgress||this.handleError(e)}}isCancelledResponse(e){return 0===(null==e?void 0:e.status)&&4===(null==e?void 0:e.readyState)&&""===(null==e?void 0:e.responseText)&&null===(null==e?void 0:e.responseXML)}onAbort(e,t){this.handleHttpError(t)}onTimeout(e,t){this.sendEvent(c.STATE_EVT_TIMEOUT),this.handleHttpError(e)}onResponseReceived(e){var t;this.sendEvent(c.COMPLETE),this.processRequestErrors(e)||(0,c.$faces)().ajax.response(this.xhrObject,null!==(t=this.responseContext.value)&&void 0!==t?t:{})}processRequestErrors(e){var t,n,r;const l=new s.XMLQuery(null===(t=this.xhrObject)||void 0===t?void 0:t.responseXML),o=null!==(r=null===(n=this.xhrObject)||void 0===n?void 0:n.status)&&void 0!==r?r:-1;if(l.isXMLParserError()){const t="Invalid Response",n="The response xml is invalid";return this.handleGenericResponseError(t,n,c.MALFORMEDXML,e),!0}if(l.isAbsent()){const t="Empty Response",n="The response has provided no data";return this.handleGenericResponseError(t,n,c.EMPTY_RESPONSE,e),!0}return(o>=300||o<200)&&(this.handleHttpError(e),!0)}handleGenericResponseError(e,t,n,r){var s,l,o,a;const u=new i.ErrorData(this.internalContext.getIf(c.CTX_PARAM_SRC_CTL_ID).value,e,t,null!==(l=null===(s=this.xhrObject)||void 0===s?void 0:s.responseText)&&void 0!==l?l:"",null!==(a=null===(o=this.xhrObject)||void 0===o?void 0:o.responseXML)&&void 0!==a?a:null,this.xhrObject.status,n);this.finalizeError(u,r)}handleHttpError(e,t="Generic HTTP Serror"){var n,r,s,l,o,a;this.stopProgress=!0;const u=new i.ErrorData(this.internalContext.getIf(c.CTX_PARAM_SRC_CTL_ID).value,c.HTTP_ERROR,t,null!==(r=null===(n=this.xhrObject)||void 0===n?void 0:n.responseText)&&void 0!==r?r:"",null!==(l=null===(s=this.xhrObject)||void 0===s?void 0:s.responseXML)&&void 0!==l?l:null,null!==(a=null===(o=this.xhrObject)||void 0===o?void 0:o.status)&&void 0!==a?a:-1,c.HTTP_ERROR);this.finalizeError(u,e)}finalizeError(e,t){try{this.handleError(e,!0)}finally{t(e),this.stopProgress=!0}}onResponseProcessed(e,t){this.stopProgress||t(e)}sendRequest(e){const t=this.ajaxType!=c.REQ_TYPE_GET;e.isMultipartRequest?this.xhrObject.send(t?e.toFormData():null):this.xhrObject.send(t?e.toString():null)}sendEvent(e){var t;const n=a.EventData.createFromRequest(this.xhrObject,this.requestContext,e);try{let e=(0,d.resolveHandlerFunc)(this.requestContext,this.responseContext,c.ON_EVENT);l.Implementation.sendEvent(n,e)}catch(e){throw e.source=null!==(t=null==e?void 0:e.source)&&void 0!==t?t:this.requestContext.getIf(c.SOURCE).value,this.handleErrorAndClearQueue(e),e}}handleErrorAndClearQueue(e,t=!1){this.handleError(e,t),this.reject(e)}handleError(e,t=!1){var n;const r=t?i.ErrorData.fromHttpConnection(e.source,e.type,null!==(n=e.message)&&void 0!==n?n:c.EMPTY_STR,e.responseText,e.responseXML,e.responseCode,e.status):i.ErrorData.fromClient(e),s=(0,d.resolveHandlerFunc)(this.requestContext,this.responseContext,c.ON_ERROR);l.Implementation.sendError(r,s)}appendIssuingItem(e){var t,n;const r=this.internalContext.getIf(c.CTX_PARAM_SRC_CTL_ID).value,l=null!==(n=null===(t=e.getIf((0,c.$nsp)(c.P_BEHAVIOR_EVENT)).value)||void 0===t?void 0:t[0])&&void 0!==n?n:null,o=!!l&&"click"!=l;if(r&&e.getIf(r).isAbsent()&&!o){const t=s.DQ.byId(r),n=t.inputValue,l=new E.ExtConfig({}),o=t.type.orElse("").value.toLowerCase();if(!(o!=v.TYPE_CHECKBOX&&o!=v.TYPE_RADIO||t.checked))return;o==v.TYPE_CHECKBOX||o==v.TYPE_RADIO?l.assign(r).value=n.orElse(!0).value:n.isPresent()&&(l.assign(r).value=n.value),e.shallowMerge(l,!0,!0)}}}t.XhrRequest=v,v.TYPE_CHECKBOX="checkbox",v.TYPE_RADIO="radio"},19:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.oam=void 0;const r=n(257),s=n(471);var l;!function(e){var t=s.ExtLang.ofAssoc;e.setHiddenInput=function(e,t,n){r.DQ.byId(document.forms[e]).each((e=>{const s=e.querySelectorAll(`input[type='hidden'][name='${t}']`);if(s.isPresent())s.inputValue.value=n;else{const s=r.DQ.fromMarkup(``);s.inputValue.value=n,s.appendTo(e)}}))},e.clearHiddenInput=function(e,t){var n,s,l;let o=null===(l=null===(s=null===(n=document.forms)||void 0===n?void 0:n[e])||void 0===s?void 0:s.elements)||void 0===l?void 0:l[t];o&&r.DQ.byId(o).delete()},e.submitForm=function(e,n=null,s=null,l={}){var o,i,a,u,c,d;l=l||{};let h="clearFormHiddenParams_"+e.replace(/-/g,"$:").replace(/:/g,"_");null===(o=null===window||void 0===window?void 0:window[h])||void 0===o||o.call(window,e),(null===(u=null===(a=null===(i=null===window||void 0===window?void 0:window.myfaces)||void 0===i?void 0:i.core)||void 0===a?void 0:a.config)||void 0===u?void 0:u.autoScroll)&&(null===window||void 0===window?void 0:window.getScrolling)&&myfaces.oam.setHiddenInput(e,"autoScroll",null===window||void 0===window?void 0:window.getScrolling());let E=Array.isArray(l)?[...l]:t(l);return E.forEach((([t,n])=>myfaces.oam.setHiddenInput(e,t,n))),myfaces.oam.setHiddenInput(e,`${e}:_idcl`,null!=n?n:""),r.DQ.byId(null!==(d=null===(c=document.forms)||void 0===c?void 0:c[e])&&void 0!==d?d:document.getElementById(e)).each((t=>{var n;const r=t.getAsElem(0).value,l=t.getAsElem(0).value.getAttribute("target");"null"!=s&&s&&t.getAsElem(0).value.setAttribute("target",s);const o=null===(n=null==r?void 0:r.onsubmit)||void 0===n?void 0:n.call(r,null);try{(o||void 0===o)&&r.submit()}catch(e){null===window||void 0===window||window.console.error(e)}finally{null==l||"null"==l?t.getAsElem(0).value.removeAttribute("target"):t.getAsElem(0).value.setAttribute("target",l),E.forEach((([t,n])=>{myfaces.oam.clearHiddenInput(e,t)})),myfaces.oam.clearHiddenInput(e,`${e}:_idcl`)}})),!1}}(l||(t.oam=l={}))}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var l=t[r]={exports:{}};return e[r].call(l.exports,l,l.exports,n),l.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var r={};(()=>{var e,t,s,l=r;if(Object.defineProperty(l,"__esModule",{value:!0}),l.myfaces=l.faces=void 0,!window.faces){const t=n(973).J_;window.faces=null!==(e=null===window||void 0===window?void 0:window.faces)&&void 0!==e?e:t}if(!(null===(t=null===window||void 0===window?void 0:window.myfaces)||void 0===t?void 0:t.ab)){const e=n(973).$A;window.myfaces=null!==(s=null===window||void 0===window?void 0:window.myfaces)&&void 0!==s?s:{},Object.keys(e).forEach((t=>{var n,r;return window.myfaces[t]=null!==(r=null===(n=window.myfaces)||void 0===n?void 0:n[t])&&void 0!==r?r:e[t]}))}l.faces=window.faces,l.myfaces=window.myfaces})();var s=window;for(var l in r)s[l]=r[l];r.__esModule&&Object.defineProperty(s,"__esModule",{value:!0})})(); //# sourceMappingURL=faces.js.map \ No newline at end of file diff --git a/tobago-theme/tobago-theme-standard/src/main/js/faces.js.map b/tobago-theme/tobago-theme-standard/src/main/js/faces.js.map index a059d4fc89..d6859b43b6 100644 --- a/tobago-theme/tobago-theme-standard/src/main/js/faces.js.map +++ b/tobago-theme/tobago-theme-standard/src/main/js/faces.js.map @@ -1 +1 @@ -{"version":3,"file":"faces.js","mappings":";yNAuBA,cAKA,MAAMA,EACF,WAAAC,CAAoBC,GAAA,KAAAA,OAAAA,CAAc,CAElC,SAAIC,CAAMA,GACV,CACA,SAAIA,GACA,OAAOC,KAAKF,MAChB,EASJ,SAAgBG,EAAUC,KAAiCC,GACvD,GAAIA,EAAWC,OAAS,EACpB,OAAO,IAAIR,EAAaM,GAE5B,MAAMG,EAAeC,EAAUJ,KAA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7gC,KAAKihC,EAAOD,QAASC,EAAQA,EAAOD,QAASJ,GAGpEK,EAAOD,OACf,CCtBAJ,EAAoB1uB,EAAI,WACvB,GAA0B,iBAAfF,WAAyB,OAAOA,WAC3C,IACC,OAAO/e,MAAQ,IAAIwgB,SAAS,cAAb,EAChB,CAAE,MAAOhM,GACR,GAAsB,iBAAXwK,OAAqB,OAAOA,MACxC,CACA,CAPuB,gCC8BxB,8EAAIA,OAAOyF,MAAO,CAEd,MAAMA,EAAQ,UACdzF,OAAc,MAAiB,QAAb,EAAM,OAANA,aAAM,IAANA,YAAM,EAANA,OAAQyF,aAAK,QAAIA,EAEvC,KAAmB,QAAf,EAAM,OAANzF,aAAM,IAANA,YAAM,EAANA,OAAQ0F,eAAO,eAAEoC,IAAI,CACrB,MAAMpC,EAAU,UAGf1F,OAAwB,QAAmB,QAAf,EAAM,OAANA,aAAM,IAANA,YAAM,EAANA,OAAQ0F,eAAO,QAAI,CAAC,EACjD/hB,OAAOD,KAAKgiB,GAAS9hB,SAAQrC,IAAM,QAAC,OAAAye,OAAO0F,QAAQnkB,GAA4B,QAArB,EAAc,QAAd,EAAAye,OAAO0F,eAAO,eAAGnkB,UAAI,QAAImkB,EAAQnkB,EAAI,IAExF,EAAAkkB,MAAQzF,OAAOyF,MACf,EAAAC,QAAU1F,OAAO0F","sources":["webpack://jsf.js_next_gen/./node_modules/mona-dish/src/main/typescript/AssocArray.ts","webpack://jsf.js_next_gen/./node_modules/mona-dish/src/main/typescript/Config.ts","webpack://jsf.js_next_gen/./node_modules/mona-dish/src/main/typescript/DomQuery.ts","webpack://jsf.js_next_gen/./node_modules/mona-dish/src/main/typescript/Es2019Array.ts","webpack://jsf.js_next_gen/./node_modules/mona-dish/src/main/typescript/Global.ts","webpack://jsf.js_next_gen/./node_modules/mona-dish/src/main/typescript/Lang.ts","webpack://jsf.js_next_gen/./node_modules/mona-dish/src/main/typescript/Monad.ts","webpack://jsf.js_next_gen/./node_modules/mona-dish/src/main/typescript/SourcesCollectors.ts","webpack://jsf.js_next_gen/./node_modules/mona-dish/src/main/typescript/XmlQuery.ts","webpack://jsf.js_next_gen/./node_modules/mona-dish/src/main/typescript/index_core.ts","webpack://jsf.js_next_gen/./src/main/typescript/api/_api.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/AjaxImpl.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/PushImpl.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/core/Const.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/core/ImplTypes.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/i18n/Messages.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/util/Assertions.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/util/AsyncRunnable.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/util/ExtDomQuery.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/util/FileUtils.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/util/HiddenInputBuilder.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/util/Lang.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/util/XhrQueueController.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/xhrCore/ErrorData.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/xhrCore/EventData.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/xhrCore/RequestDataResolver.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/xhrCore/ResonseDataResolver.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/xhrCore/Response.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/xhrCore/ResponseProcessor.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/xhrCore/XhrFormData.ts","webpack://jsf.js_next_gen/./src/main/typescript/impl/xhrCore/XhrRequest.ts","webpack://jsf.js_next_gen/./src/main/typescript/myfaces/OamSubmit.ts","webpack://jsf.js_next_gen/webpack/bootstrap","webpack://jsf.js_next_gen/webpack/runtime/global","webpack://jsf.js_next_gen/./src/main/typescript/api/faces.ts"],"sourcesContent":["/*!\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with\n * the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * various helpers to deal with associative\n * arrays. If someone feels uncomfortable using\n * The config system, this is similar!\n */\nimport {IValueHolder} from \"./Monad\";\nimport {Es2019Array} from \"./Es2019Array\";\n\n/**\n * A nop as assign functionality (aka ignore assign)\n */\nclass IgnoreAssign implements IValueHolder {\n constructor(private parent: any) {}\n\n set value(value: any | Array) {\n }\n get value(): any | Array {\n return this.parent;\n }\n};\n\n/**\n * uses the known pattern from config\n * assign(target, key1, key2, key3).value = value;\n * @param target\n * @param keys\n */\nexport function assign(target: {[key: string]: any}, ...accessPath: string[]): IValueHolder {\n if (accessPath.length < 1) {\n return new IgnoreAssign(target);\n }\n const lastPathItem = buildPath(target, ...accessPath);\n let assigner: IValueHolder = new (class {\n set value(value: T | Array) {\n lastPathItem.target[lastPathItem.key] = value;\n }\n\n get value(): T | Array {\n return lastPathItem.target[lastPathItem.key];\n }\n })();\n return assigner;\n}\n\n\nexport function append(target: {[key: string]: any}, ...accessPath: string[]): IValueHolder {\n if (accessPath.length < 1) {\n return new IgnoreAssign(target);\n }\n const lastPathItem = buildPath(target, ...accessPath);\n let appender: IValueHolder = new (class {\n set value(value: T | Array) {\n if(!Array.isArray(value)) {\n value = [value];\n }\n if(!lastPathItem.target[lastPathItem.key]) {\n lastPathItem.target[lastPathItem.key] = value\n } else {\n if(!Array.isArray(lastPathItem.target[lastPathItem.key])) {\n lastPathItem.target[lastPathItem.key] = [lastPathItem.target[lastPathItem.key]];\n }\n lastPathItem.target[lastPathItem.key].push(...value);\n }\n }\n })();\n return appender;\n}\n\n/**\n * uses the known pattern from config\n * assign(target, key1, key2, key3).value = value;\n * @param target\n * @param keys\n */\nexport function assignIf(condition: boolean, target: {[key: string]: any}, ...accessPath: string[]): IValueHolder {\n if ((!condition) || accessPath.length < 1) {\n return new IgnoreAssign(target);\n }\n return assign(target, ...accessPath);\n}\n\n\n/**\n * uses the known pattern from config\n * assign(target, key1, key2, key3).value = value;\n * @param target\n * @param keys\n */\nexport function appendIf(condition: boolean, target: {[key: string]: any}, ...accessPath: string[]): IValueHolder {\n if ((!condition) || accessPath.length < 1) {\n return new IgnoreAssign(target);\n }\n return append(target, ...accessPath);\n}\n\nexport function resolve(target, ...accessPath: string[]): T | null {\n let ret = null;\n accessPath = flattenAccessPath(accessPath);\n let currPtr = target;\n for(let cnt = 0; cnt < accessPath.length; cnt++) {\n let accessKeyIndex: number | string = accessPath[cnt];\n accessKeyIndex = arrayIndex(accessKeyIndex) != -1 ? arrayIndex(accessKeyIndex) : accessKeyIndex;\n currPtr = currPtr?.[accessKeyIndex];\n if('undefined' == typeof currPtr) {\n return null;\n }\n ret = currPtr;\n }\n return currPtr;\n}\n\n\nfunction keyVal(key: string): string {\n let start = key.indexOf(\"[\");\n\n if (start >= 0) {\n return key.substring(0, start);\n } else {\n return key;\n }\n}\n\nfunction arrayIndex(key: string): number {\n let start = key.indexOf(\"[\");\n let end = key.indexOf(\"]\");\n if (start >= 0 && end > 0 && start < end) {\n return parseInt(key.substring(start + 1, end));\n } else {\n return -1;\n }\n}\n\nfunction isArrayPos(currKey: string, arrPos: number): boolean {\n return currKey === \"\" && arrPos >= 0;\n}\n\nfunction isNoArray(arrPos: number): boolean {\n return arrPos == -1;\n}\n\nfunction alloc(arr: Array, length: number, defaultVal = {}) {\n let toAdd = [];\n toAdd.length = length;\n toAdd[length - 1] = defaultVal;\n arr.push(...toAdd);\n}\n\n\nfunction flattenAccessPath(accessPath: string[]) {\n return new Es2019Array(...accessPath).flatMap(path => path.split(\"[\"))\n .map(path => path.indexOf(\"]\") != -1 ? \"[\" + path : path)\n .filter(path => path != \"\");\n}\n\n/**\n * builds up a path, only done if no data is present!\n * @param target\n * @param accessPath\n * @returns the last assignable entry\n */\nexport function buildPath(target, ...accessPath: string[]) {\n accessPath = flattenAccessPath(accessPath);\n //we now have a pattern of having the array accessors always in separate items\n let parentPtr = target;\n let parKeyArrPos = null;\n let currKey = null;\n let arrPos = -1;\n\n for (let cnt = 0; cnt < accessPath.length; cnt++) {\n currKey = keyVal(accessPath[cnt]);\n arrPos = arrayIndex(accessPath[cnt]);\n //it now is either key or arrPos\n if (arrPos != -1) {\n //case root(array)[5] -> root must be array and allocate 5 elements\n //case root.item[5] root.item must be array and of 5 elements\n if(!Array.isArray(parentPtr)) {\n throw Error(\"Associative array referenced as index array in path reference\");\n }\n\n //we need to look ahead for proper allocation\n //not end reached\n let nextArrPos = -1;\n if(cnt < accessPath.length - 1) {\n nextArrPos = arrayIndex(accessPath[cnt + 1])\n }\n let dataPresent = 'undefined' != typeof parentPtr?.[arrPos];\n //no data present check here is needed, because alloc only reserves if not present\n alloc(parentPtr, arrPos + 1, nextArrPos != -1 ?[]: {});\n parKeyArrPos = arrPos;\n //we now go to the reserved element\n if(cnt == accessPath.length - 1) {\n parentPtr[arrPos] = (dataPresent) ? parentPtr[arrPos] : null;\n } else {\n parentPtr = parentPtr[arrPos];\n }\n } else {\n if(Array.isArray(parentPtr)) {\n throw Error(\"Index array referenced as associative array in path reference\");\n }\n //again look ahead whether the next value is an array or assoc array\n let nextArrPos = -1;\n if(cnt < accessPath.length - 1) {\n nextArrPos = arrayIndex(accessPath[cnt + 1])\n }\n parKeyArrPos = currKey;\n let dataPresent = 'undefined' != typeof parentPtr?.[currKey];\n if(cnt == accessPath.length - 1) {\n if(!dataPresent) {\n parentPtr[currKey] = null;\n }\n } else {\n if(!dataPresent) {\n parentPtr[currKey] = nextArrPos == -1 ? {} : [];\n }\n parentPtr = parentPtr[currKey];\n }\n }\n }\n\n return {target: parentPtr, key: parKeyArrPos};\n\n}\n\nexport function deepCopy(fromAssoc: {[key: string]: any}): {[key: string]: any} {\n return JSON.parse(JSON.stringify(fromAssoc));\n}\n\n/**\n * simple left to right merge\n *\n * @param assocArrays\n */\nexport function simpleShallowMerge(...assocArrays) {\n return shallowMerge(true, false, ...assocArrays);\n}\n\nfunction _appendWithOverwrite(withAppend: boolean, target: { [p: string]: any }, key, arr, toAssign) {\n if (!withAppend) {\n target[key] = arr[key];\n } else {\n //overwrite means in this case, no double entries!\n //we do not a deep compare for now a single value compare suffices\n if ('undefined' == typeof target?.[key]) {\n target[key] = toAssign\n } else if (!Array.isArray(target[key])) {\n\n let oldVal = target[key];\n let newVals = [];\n //TODO maybe deep deep compare here, but on the other hand it is\n //shallow\n toAssign.forEach(item => {\n if (oldVal != item) {\n newVals.push(item);\n }\n });\n target[key] = new Es2019Array(...[]);\n target[key].push(oldVal);\n target[key].push(...newVals);\n } else {\n let oldVal = target[key];\n let newVals = [];\n //TODO deep compare here\n toAssign.forEach(item => {\n if (oldVal.indexOf(item) == -1) {\n newVals.push(item);\n }\n });\n\n target[key].push(...newVals);\n }\n }\n}\n\nfunction _appendWithoutOverwrite(withAppend: boolean, target: { [p: string]: any }, key, arr, toAssign) {\n if (!withAppend) {\n return;\n } else {\n //overwrite means in this case, no double entries!\n //we do not a deep compare for now a single value compare suffices\n if ('undefined' == typeof target?.[key]) {\n target[key] = toAssign\n } else if (!Array.isArray(target[key])) {\n let oldVal = target[key];\n target[key] = new Es2019Array(...[]);\n target[key].push(oldVal);\n target[key].push(...toAssign);\n } else {\n target[key].push(...toAssign);\n }\n }\n}\n\n/**\n * Shallow merge as in config, but on raw associative arrays\n *\n * @param overwrite overwrite existing keys, if they exist with their subtrees\n * @param withAppend if a key exist append the values or drop them\n * Combination overwrite withappend filters doubles out of merged arrays\n * @param assocArrays array of assoc arres reduced right to left\n */\nexport function shallowMerge(overwrite = true, withAppend = false, ...assocArrays) {\n let target: {[key: string]: any} = {};\n new Es2019Array(...assocArrays).map(arr => {\n return {arr, keys: Object.keys(arr)};\n }).forEach(({arr, keys}) => {\n keys.forEach(key => {\n let toAssign = arr[key];\n if(!Array.isArray(toAssign) && withAppend) {\n toAssign = new Es2019Array(...[toAssign]);\n }\n if(overwrite || !target?.[key]) {\n _appendWithOverwrite(withAppend, target, key, arr, toAssign);\n } else if(!overwrite && target?.[key]) {\n _appendWithoutOverwrite(withAppend, target, key, arr, toAssign);\n }\n\n\n\n })\n });\n return target;\n}\n\n//TODO test this, slightly altered from https://medium.com/@pancemarko/deep-equality-in-javascript-determining-if-two-objects-are-equal-bf98cf47e934\n//he overlooked some optimizations and a shortcut at typeof!\nexport function deepEqual(obj1, obj2) {\n if(obj1 == obj2) {\n return false;\n }\n if(typeof obj1 != typeof obj2) {\n return false;\n }\n if(Array.isArray(obj1) && Array.isArray(obj2)) {\n if(obj1.length != obj2.length) {\n return;\n }\n //arrays must be equal, order as well, there is no way around it\n //this is the major limitation we have\n return obj1.every((item, cnt) => deepEqual(item, obj2[cnt]));\n }\n //string number and other primitives are filtered out here\n if(\"object\" == typeof obj1 && \"object\" == typeof obj2) {\n let keys1 = Object.keys(obj1);\n let keys2 = Object.keys(obj2);\n if(keys1.length != keys2.length) {\n return false;\n }\n return keys1.every(key => keys2.indexOf(key) != -1) &&\n keys1.every(key => deepEqual(obj1[key], obj2[key]));\n }\n return false;\n //done here no match found\n}\n\n","import {Es2019Array} from \"./Es2019Array\";\nimport {IValueHolder, Optional, ValueEmbedder} from \"./Monad\";\nimport {Lang} from \"./Lang\";\nimport objAssign = Lang.objAssign;\nimport {append, appendIf, assign, assignIf, resolve, shallowMerge} from \"./AssocArray\";\n\n/**\n * specialized value embedder\n * for our Configuration\n */\nclass ConfigEntry extends ValueEmbedder {\n\n /*default value for absent*/\n static absent = ConfigEntry.fromNullable(null);\n\n /**\n * arrayed value positions\n */\n arrPos: number;\n\n constructor(rootElem: any, key: any, arrPos?: number) {\n super(rootElem, key);\n\n this.arrPos = arrPos ?? -1;\n }\n\n get value() {\n if (this.key == \"\" && this.arrPos >= 0) {\n return this._value[this.arrPos];\n } else if (this.key && this.arrPos >= 0) {\n return this._value[this.key][this.arrPos];\n }\n return this._value[this.key];\n }\n\n set value(val: T) {\n if (this.key == \"\" && this.arrPos >= 0) {\n this._value[this.arrPos] = val;\n return;\n } else if (this.key && this.arrPos >= 0) {\n this._value[this.key][this.arrPos] = val;\n return;\n }\n this._value[this.key] = val;\n }\n}\n\nexport const CONFIG_VALUE = \"__END_POINT__\";\nexport const CONFIG_ANY = \"__ANY_POINT__\";\nexport type ConfigDef = { [key: string]: any };\n\n/**\n * Config, basically an optional wrapper for a json structure\n * (not Side - effect free, since we can alter the internal config state\n * without generating a new config), not sure if we should make it side - effect free\n * since this would swallow a lot of performance and ram\n */\nexport class Config extends Optional {\n constructor(root: any, private configDef ?: ConfigDef) {\n super(root);\n }\n\n /**\n * shallow copy getter, copies only the first level, references the deeper nodes\n * in a shared manner\n */\n get shallowCopy(): Config {\n return this.shallowCopy$();\n }\n\n protected shallowCopy$(): Config {\n let ret = new Config({});\n ret.shallowMerge(this.value);\n return ret;\n }\n\n /**\n * deep copy, copies all config nodes\n */\n get deepCopy(): Config {\n return this.deepCopy$();\n }\n\n protected deepCopy$(): Config {\n return new Config(objAssign({}, this.value));\n }\n\n /**\n * creates a config from an initial value or null\n * @param value\n */\n static fromNullable(value?: T | null): Config {\n return new Config(value);\n }\n\n /**\n * simple merge for the root configs\n */\n shallowMerge(other: Config, overwrite = true, withAppend = false) {\n //shallow merge must be mutable so we have to remap\n let newThis = shallowMerge(overwrite, withAppend, this.value, other.value);\n if (Array.isArray(this._value)) {\n this._value.length = 0;\n this._value.push(...(newThis as any));\n } else {\n Object.getOwnPropertyNames(this._value).forEach(key => delete this._value[key]);\n Object.getOwnPropertyNames(newThis).forEach(key => this._value[key] = newThis[key]);\n }\n }\n\n /**\n * assigns a single value as array, or appends it\n * to an existing value mapping a single value to array\n *\n *\n * usage myConfig.append(\"foobaz\").value = \"newValue\"\n * myConfig.append(\"foobaz\").value = \"newValue2\"\n *\n * resulting in myConfig.foobaz == [\"newValue, newValue2\"]\n *\n * @param {string[]} accessPath\n */\n append(...accessPath: string[]): IValueHolder {\n return append(this._value, ...accessPath);\n }\n\n /**\n * appends to an existing entry (or extends into an array and appends)\n * if the condition is met\n * @param {boolean} condition\n * @param {string[]} accessPath\n */\n appendIf(condition: boolean, ...accessPath: string[]): IValueHolder {\n return appendIf(condition, this._value, ...accessPath);\n }\n\n /**\n * assigns a new value on the given access path\n * @param accessPath\n */\n assign(...accessPath): IValueHolder {\n return assign(this.value, ...accessPath);\n }\n\n\n /**\n * assign a value if the condition is set to true, otherwise skip it\n *\n * @param condition the condition, the access accessPath into the config\n * @param accessPath\n */\n assignIf(condition: boolean, ...accessPath: Array): IValueHolder {\n return assignIf(condition, this._value, ...accessPath);\n }\n\n /**\n * get if the access path is present (get is reserved as getter with a default, on the current path)\n * TODO will be renamed to something more meaningful and deprecated, the name is ambiguous\n * @param accessPath the access path\n */\n getIf(...accessPath: Array): Config {\n this.assertAccessPath(...accessPath);\n return this.getClass().fromNullable(resolve(this.value, ...accessPath));\n }\n\n\n /**\n * gets the current node and if none is present returns a config with a default value\n * @param defaultVal\n */\n get(defaultVal: any): Config {\n return this.getClass().fromNullable(super.get(defaultVal).value);\n }\n\n //empties the current config entry\n delete(key: string): Config {\n if (key in this.value) {\n delete this.value[key];\n }\n return this;\n }\n\n /**\n * converts the entire config into a json object\n */\n toJson(): any {\n return JSON.stringify(this.value);\n }\n\n\n protected getClass(): any {\n return Config;\n }\n\n private setVal(val: any) {\n this._value = val;\n }\n\n\n /**\n * asserts the access path for a semi typed access\n * @param accessPath\n * @private\n */\n private assertAccessPath(...accessPath: Array) {\n accessPath = this.preprocessKeys(...accessPath);\n if (!this.configDef) {\n //untyped\n return;\n }\n\n const ERR_ACCESS_PATH = \"Access Path to config invalid\";\n let currAccessPos: any = Optional.fromNullable(Object.keys(this.configDef).map(key => {\n let ret = {};\n ret[key] = this.configDef[key];\n return ret;\n }));\n\n for (let cnt = 0; cnt < accessPath.length; cnt++) {\n let currKey = this.keyVal(accessPath[cnt]);\n let arrPos: any = this.arrayIndex(accessPath[cnt]);\n\n //key index\n if (this.isArray(arrPos)) {\n if (currKey != \"\") {\n currAccessPos = Array.isArray(currAccessPos.value) ?\n Optional.fromNullable(new Es2019Array(...currAccessPos.value)\n .find(item => {\n return !!(item?.[currKey] ?? false)\n })?.[currKey]?.[arrPos]) :\n Optional.fromNullable(currAccessPos.value?.[currKey]?.[arrPos] ?? null);\n\n } else {\n currAccessPos = (Array.isArray(currAccessPos.value)) ?\n Optional.fromNullable(currAccessPos.value?.[arrPos]) : Optional.absent;\n }\n //we noe store either the current array or the filtered look ahead to go further\n } else {\n //we now have an array and go further with a singular key\n currAccessPos = (Array.isArray(currAccessPos.value)) ? Optional.fromNullable(new Es2019Array(...currAccessPos.value)\n .find(item => {\n return !!(item?.[currKey] ?? false);\n })?.[currKey]) :\n Optional.fromNullable(currAccessPos.value?.[currKey] ?? null);\n }\n if (!currAccessPos.isPresent()) {\n throw Error(ERR_ACCESS_PATH)\n }\n if (currAccessPos.value == CONFIG_ANY) {\n return;\n }\n }\n }\n\n private isNoArray(arrPos: number) {\n return arrPos == -1;\n }\n\n private isArray(arrPos: number) {\n return !this.isNoArray(arrPos);\n }\n\n}","/*!\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with\n * the License. You may obtain a copy of the License at\n *\n * http:// www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {IValueHolder, Optional, ValueEmbedder} from \"./Monad\";\nimport {XMLQuery} from \"./XmlQuery\";\n\nimport {ICollector, IStreamDataSource, ITERATION_STATUS} from \"./SourcesCollectors\";\nimport {Lang} from \"./Lang\";\nimport {_global$} from \"./Global\";\nimport {Es2019Array} from \"./Es2019Array\";\nimport trim = Lang.trim;\n\nimport isString = Lang.isString;\nimport eqi = Lang.equalsIgnoreCase;\nimport objToArray = Lang.objToArray;\nimport {append, assign, simpleShallowMerge} from \"./AssocArray\";\nimport {IDomQuery} from \"./IDomQuery\";\n\ndeclare var ownerDocument: any;\n\n/**\n * in order to poss custom parameters we need to extend the mutation observer init\n */\nexport interface WAIT_OPTS extends MutationObserverInit {\n timeout?: number;\n /**\n * interval on non legacy browsers\n */\n interval?: number;\n}\n\n\nclass NonceValueEmbedder extends ValueEmbedder {\n\n constructor(private rootElems: HTMLElement[]) {\n super(rootElems?.[0], \"nonce\");\n }\n\n isAbsent(): boolean {\n const value = this.value;\n return 'undefined' == typeof value || '' == value;\n }\n\n get value(): string {\n return (this?.rootElems?.[0] as HTMLElement)?.nonce ?? (this?.rootElems?.[0] as HTMLElement)?.getAttribute(\"nonce\")\n }\n\n\n set value(newVal: string) {\n if (!this?.rootElems?.length) {\n return;\n }\n\n this.rootElems.forEach((rootElem: HTMLElement) => {\n if(\"undefined\" != typeof rootElem?.nonce) {\n rootElem.nonce = newVal\n } else {\n rootElem.setAttribute(\"nonce\", newVal);\n }\n });\n\n }\n}\n\n/**\n *\n * // - submit checkboxes and radio inputs only if checked\n if ((tagName != \"select\" && elemType != \"button\"\n && elemType != \"reset\" && elemType != \"submit\" && elemType != \"image\")\n && ((elemType != \"checkbox\" && elemType != \"radio\"\n */\n\nenum ALLOWED_SUBMITTABLE_ELEMENTS {\n SELECT = \"select\",\n BUTTON = \"button\",\n SUBMIT = \"submit\",\n RESET = \"reset\",\n IMAGE = \"image\",\n RADIO = \"radio\",\n CHECKBOX = \"checkbox\"\n\n}\n\n/**\n * helper to fix a common problem that a system has to wait, until a certain condition is reached.\n * Depending on the browser this uses either the Mutation Observer or a semi compatible interval as fallback.\n * @param root the root DomQuery element to start from\n * @param condition the condition lambda to be fulfilled\n * @param options options for the search\n */\nfunction waitUntilDom(root: DomQuery, condition: (element: DomQuery) => boolean, options: WAIT_OPTS = {\n attributes: true,\n childList: true,\n subtree: true,\n timeout: 500,\n interval: 100\n}): Promise {\n return new Promise((success, error) => {\n let observer: MutationObserver = null;\n const MUT_ERROR = new Error(\"Mutation observer timeout\");\n\n // we do the same but for now ignore the options on the dom query\n // we cannot use absent here, because the condition might search for an absent element\n function findElement(root: DomQuery, condition: (element: DomQuery) => boolean): DomQuery | null {\n let found = null;\n if (!!condition(root)) {\n return root;\n }\n if (options.childList) {\n found = (condition(root)) ? root : root.childNodes.filter(item => condition(item)).first().value.value;\n } else if (options.subtree) {\n found = (condition(root)) ? root : root.querySelectorAll(\" * \").filter(item => condition(item)).first().value.value;\n } else {\n found = (condition(root)) ? root : null;\n }\n return found;\n }\n\n let foundElement = root;\n if (!!(foundElement = findElement(foundElement, condition))) {\n success(new DomQuery(foundElement));\n return;\n }\n\n if ('undefined' != typeof MutationObserver) {\n const mutTimeout = setTimeout(() => {\n observer.disconnect();\n return error(MUT_ERROR);\n }, options.timeout);\n\n const callback: MutationCallback = (mutationList: MutationRecord[]) => {\n const found = new DomQuery(mutationList.map((mut) => mut.target)).filter(item => condition(item)).first();\n if (found.isPresent()) {\n clearTimeout(mutTimeout);\n observer.disconnect();\n success(new DomQuery(found || root));\n }\n }\n observer = new MutationObserver(callback);\n\n // browsers might ignore it, but we cannot break the api in the case\n // hence no timeout is passed\n let observableOpts = {...options};\n delete observableOpts.timeout;\n root.eachElem(item => {\n observer.observe(item, observableOpts)\n })\n } else { // fallback for legacy browsers without mutation observer\n\n let interval = setInterval(() => {\n let found = findElement(root, condition);\n if (!!found) {\n if (timeout) {\n clearTimeout(timeout);\n clearInterval(interval);\n interval = null;\n }\n success(new DomQuery(found || root));\n }\n }, options.interval);\n let timeout = setTimeout(() => {\n if (interval) {\n clearInterval(interval);\n error(MUT_ERROR);\n }\n }, options.timeout)\n\n }\n });\n}\n\nexport class ElementAttribute extends ValueEmbedder {\n\n constructor(private element: DomQuery, private name: string, private defaultVal: string = null) {\n super(element, name);\n }\n\n get value(): string {\n let val: Element[] = this.element.get(0).orElse(...[]).values;\n if (!val.length) {\n return this.defaultVal;\n }\n return val[0].getAttribute(this.name);\n }\n\n set value(value: string) {\n let val: Element[] = this.element.get(0).orElse(...[]).values;\n for (let cnt = 0; cnt < val.length; cnt++) {\n val[cnt].setAttribute(this.name, value);\n }\n val[0].setAttribute(this.name, value);\n }\n\n protected getClass(): any {\n return ElementAttribute;\n }\n\n static fromNullable(value?: any, valueKey: string = \"value\"): ElementAttribute {\n return new ElementAttribute(value, valueKey);\n }\n\n}\n\nexport class Style extends ValueEmbedder {\n\n constructor(private element: DomQuery, private name: string, private defaultVal: string = null) {\n super(element, name);\n }\n\n get value(): string {\n let val: Element[] = this.element.values;\n if (!val.length) {\n return this.defaultVal;\n }\n return (val[0] as HTMLElement).style[this.name];\n }\n\n set value(value: string) {\n let val: HTMLElement[] = this.element.values as HTMLElement[];\n for (let cnt = 0; cnt < val.length; cnt++) {\n val[cnt].style[this.name] = value;\n }\n }\n\n protected getClass(): any {\n return ElementAttribute;\n }\n\n static fromNullable(value?: any, valueKey: string = \"value\"): ElementAttribute {\n return new ElementAttribute(value, valueKey);\n }\n\n}\n\n/**\n * small helper for the specialized jsf case\n * @constructor\n */\nconst DEFAULT_WHITELIST = () => {\n return true;\n};\n\n\n\n/**\n * Monadic DomNode representation, ala jquery\n * This is a thin wrapper over querySelectorAll\n * to get slim monadic support\n * to reduce implementation code on the users side.\n * This is vital for frameworks which want to rely on\n * plain dom but still do not want to lose\n * the reduced code footprint of querying dom trees and traversing\n * by using functional patterns.\n *\n * Also, a few convenience methods are added to reduce\n * the code footprint of standard dom processing\n * operations like eval\n *\n * in most older systems\n * Note parts of this code still stem from the Dom.js I have written 10 years\n * ago, those parts look a bit ancient and will be replaced over time.\n *\n */\nexport class DomQuery implements IDomQuery, IStreamDataSource, Iterable {\n\n static absent = new DomQuery();\n\n /**\n * reference to the environmental global object\n */\n static global = _global$;\n\n private rootNode: Array = [];\n\n pos = -1;\n\n constructor(...rootNode: Array | string>) {\n\n if (Optional.fromNullable(rootNode).isAbsent() || !rootNode.length) {\n return;\n } else {\n // we need to flatten out the arrays\n\n for (let cnt = 0; cnt < rootNode.length; cnt++) {\n if (!rootNode[cnt]) {\n // we skip possible null entries which can happen in\n // certain corner conditions due to the constructor re-wrapping single elements into arrays.\n } else if (isString(rootNode[cnt])) {\n let foundElement = DomQuery.querySelectorAll(rootNode[cnt]);\n if (!foundElement.isAbsent()) {\n rootNode.push(...foundElement.values)\n }\n } else if (rootNode[cnt] instanceof DomQuery) {\n this.rootNode.push(...(rootNode[cnt]).values);\n } else {\n this.rootNode.push(rootNode[cnt]);\n }\n }\n }\n }\n\n\n /**\n * returns the first element\n */\n get value(): Optional {\n return this.getAsElem(0);\n }\n\n get values(): Element[] {\n return this.allElems();\n }\n\n get global(): any {\n return _global$;\n }\n\n get stream(): any {\n throw Error(\"Not implemented, include Stream.ts for this to work\")\n }\n\n get lazyStream(): any {\n throw Error(\"Not implemented, include Stream.ts for this to work\")\n }\n\n /**\n * returns the id of the first element\n */\n get id(): ValueEmbedder {\n return new ElementAttribute(this.get(0), \"id\");\n }\n\n /**\n * length of the entire query set\n */\n get length(): number {\n return this.rootNode.length\n }\n\n /**\n * convenience method for tagName\n */\n get tagName(): Optional {\n return >this.getAsElem(0).getIf(\"tagName\");\n }\n\n /**\n * convenience method for nodeName\n */\n get nodeName(): Optional {\n return >this.getAsElem(0).getIf(\"nodeName\");\n }\n\n isTag(tagName: string): boolean {\n return !this.isAbsent()\n && (this.nodeName.orElse(\"__none___\")\n .value.toLowerCase() == tagName.toLowerCase()\n || this.tagName.orElse(\"__none___\")\n .value.toLowerCase() == tagName.toLowerCase()\n )\n }\n\n /**\n * convenience property for type\n *\n * returns null in case of no type existing otherwise\n * the type of the first element\n */\n get type(): Optional {\n return this.getAsElem(0).getIf(\"type\");\n }\n\n /**\n * convenience property for name\n *\n * returns null in case of no type existing otherwise\n * the name of the first element\n */\n get name(): ValueEmbedder {\n return new ValueEmbedder(this.getAsElem(0).value, \"name\");\n }\n\n /**\n * convenience property for value\n *\n * returns null in case of no type existing otherwise\n * the value of the first element\n */\n get inputValue(): ValueEmbedder {\n if (this.getAsElem(0).getIf(\"value\").isPresent()) {\n return new ValueEmbedder(this.getAsElem(0).value);\n } else {\n return ValueEmbedder.absent;\n }\n }\n\n get val(): string | boolean {\n return this.inputValue.value;\n }\n\n set val(value: string | boolean) {\n this.inputValue.value = value;\n }\n\n get nodeId(): string {\n return this.id.value;\n }\n\n set nodeId(value: string) {\n this.id.value = value;\n }\n\n get checked(): boolean {\n return new Es2019Array(...this.values).every(el => !!(el).checked);\n }\n\n set checked(newChecked: boolean) {\n this.eachElem(el => (el).checked = newChecked);\n }\n\n get elements(): DomQuery {\n // a simple querySelectorAll should suffice\n return this.querySelectorAll(\"input, checkbox, select, textarea, fieldset\");\n }\n\n get deepElements(): DomQuery {\n let elemStr = \"input, select, textarea, checkbox, fieldset\";\n return this.querySelectorAllDeep(elemStr);\n }\n\n /**\n * a deep search which treats the single isolated shadow dom areas\n * separately and runs the query on each shadow dom\n * @param queryStr\n */\n querySelectorAllDeep(queryStr: string): DomQuery {\n let found: Array = [];\n let queryRes = this.querySelectorAll(queryStr);\n if (queryRes.length) {\n found.push(queryRes);\n }\n let shadowRoots = this.querySelectorAll(\"*\").shadowRoot;\n if (shadowRoots.length) {\n let shadowRes = shadowRoots.querySelectorAllDeep(queryStr);\n if (shadowRes.length) {\n found.push(shadowRes);\n }\n }\n return new DomQuery(...found);\n }\n\n\n /**\n * disabled flag\n */\n get disabled(): boolean {\n return this.attr(\"disabled\").isPresent();\n }\n\n set disabled(disabled: boolean) {\n // this.attr(\"disabled\").value = disabled + \"\";\n if (!disabled) {\n this.removeAttribute(\"disabled\");\n } else {\n this.attr(\"disabled\").value = \"disabled\";\n }\n\n }\n\n removeAttribute(name: string) {\n this.eachElem(item => item.removeAttribute(name));\n }\n\n get childNodes(): DomQuery {\n let childNodeArr: Array = [];\n this.eachElem((item: Element) => {\n childNodeArr = childNodeArr.concat(objToArray(item.childNodes));\n });\n return new DomQuery(...childNodeArr);\n }\n\n\n get asArray(): DomQuery[] {\n // filter not supported by IE11\n let items = new Es2019Array(...this.rootNode).filter(item => {\n return item != null\n }).map(item => {\n return DomQuery.byId(item)\n });\n return items as DomQuery[];\n }\n\n get offsetWidth(): number {\n return new Es2019Array(...this.rootNode)\n .filter(item => item != null)\n .map(elem => (elem as HTMLElement).offsetWidth)\n .reduce((accumulate, incoming) => accumulate + incoming, 0);\n }\n\n get offsetHeight(): number {\n return new Es2019Array(...this.rootNode)\n .filter(item => item != null)\n .map(elem => (elem as HTMLElement).offsetHeight)\n .reduce((accumulate, incoming) => accumulate + incoming, 0);\n }\n\n get offsetLeft(): number {\n return new Es2019Array(...this.rootNode)\n .filter(item => item != null)\n .map(elem => (elem as HTMLElement).offsetLeft)\n .reduce((accumulate, incoming) => accumulate + incoming, 0);\n }\n\n get offsetTop(): number {\n return new Es2019Array(this.rootNode)\n .filter(item => item != null)\n .map(elem => (elem as any).offsetTop)\n .reduce((accumulate, incoming) => accumulate + incoming, 0);\n }\n\n get asNodeArray(): Array {\n return new Es2019Array(...this.rootNode.filter(item => item != null));\n }\n\n get nonce(): ValueEmbedder {\n return new NonceValueEmbedder(this.rootNode as HTMLElement[]);\n }\n\n static querySelectorAllDeep(selector: string) {\n return new DomQuery(document).querySelectorAllDeep(selector);\n }\n\n /**\n * easy query selector all producer\n *\n * @param selector the selector\n * @returns a results dom query object\n */\n static querySelectorAll(selector: string): DomQuery {\n if (selector.indexOf(\"/shadow/\") != -1) {\n return new DomQuery(document)._querySelectorAllDeep(selector);\n } else {\n return new DomQuery(document)._querySelectorAll(selector);\n }\n }\n\n /**\n * byId producer\n *\n * @param selector id\n * @param deep true if you want to go into shadow areas\n * @return a DomQuery containing the found elements\n */\n static byId(selector: string | DomQuery | Element, deep = false): DomQuery {\n if (isString(selector)) {\n return (!deep) ? new DomQuery(document).byId(selector) : new DomQuery(document).byIdDeep(selector);\n } else {\n return new DomQuery(selector);\n }\n }\n\n /**\n * byTagName producer\n *\n * @param selector name\n * @return a DomQuery containing the found elements\n */\n static byTagName(selector: string | DomQuery | Element): DomQuery {\n if (isString(selector)) {\n return new DomQuery(document).byTagName(selector);\n } else {\n return new DomQuery(selector);\n }\n }\n\n static globalEval(code: string, nonce?: string): DomQuery {\n return new DomQuery(document).globalEval(code, nonce);\n }\n\n static globalEvalSticky(code: string, nonce?: string): DomQuery {\n return new DomQuery(document).globalEvalSticky(code, nonce);\n }\n\n /**\n * builds the ie nodes properly in a placeholder\n * and bypasses a non script insert bug that way\n * @param markup the markup code to be executed from\n */\n static fromMarkup(markup: string): DomQuery {\n\n // https:// developer.mozilla.org/de/docs/Web/API/DOMParser license creative commons\n const doc = document.implementation.createHTMLDocument(\"\");\n markup = trim(markup);\n let lowerMarkup = markup.toLowerCase();\n if (lowerMarkup.search(/\"].join(\"\");\n let tag2 = [\"<\", tagName, \" \"].join(\"\");\n return (str.indexOf(tag1) == 0) || (str.indexOf(tag2) == 0);\n };\n\n let dummyPlaceHolder = new DomQuery(document.createElement(\"div\"));\n\n // table needs special treatment due to the browsers auto creation\n if (startsWithTag(lowerMarkup, \"thead\") || startsWithTag(lowerMarkup, \"tbody\")) {\n dummyPlaceHolder.html(`${markup}
`);\n return dummyPlaceHolder.querySelectorAll(\"table\").get(0).childNodes.detach();\n } else if (startsWithTag(lowerMarkup, \"tfoot\")) {\n dummyPlaceHolder.html(``);\n return dummyPlaceHolder.querySelectorAll(\"table\").get(2).childNodes.detach();\n } else if (startsWithTag(lowerMarkup, \"tr\")) {\n dummyPlaceHolder.html(`
${markup}
`);\n return dummyPlaceHolder.querySelectorAll(\"tbody\").get(0).childNodes.detach();\n } else if (startsWithTag(lowerMarkup, \"td\")) {\n dummyPlaceHolder.html(`${markup}
`);\n return dummyPlaceHolder.querySelectorAll(\"tr\").get(0).childNodes.detach();\n }\n\n dummyPlaceHolder.html(markup);\n return dummyPlaceHolder.childNodes.detach();\n }\n\n }\n\n /**\n * returns the nth element as DomQuery\n * from the internal elements\n * note if you try to reach a non-existing element position\n * you will get back an absent entry\n *\n * @param index the nth index\n */\n get(index: number): DomQuery {\n return (index < this.rootNode.length) ? new DomQuery(this.rootNode[index]) : DomQuery.absent;\n }\n\n\n /**\n * returns the nth element as optional of an Element object\n * @param index the number from the index\n * @param defaults the default value if the index is overrun default Optional\\.absent\n */\n getAsElem(index: number, defaults: Optional = Optional.absent): Optional {\n return (index < this.rootNode.length) ? Optional.fromNullable(this.rootNode[index]) : defaults;\n }\n\n /**\n * returns the files from a given element\n * @param index\n */\n filesFromElem(index: number): Array {\n return (index < this.rootNode.length) ? (this.rootNode[index])?.files ? (this.rootNode[index]).files : [] : [];\n }\n\n /**\n * returns the value array< of all elements\n */\n allElems(): Array {\n return this.rootNode;\n }\n\n /**\n * absent no values reached?\n */\n isAbsent(): boolean {\n return this.length == 0;\n }\n\n /**\n * should make the code clearer\n * note if you pass a function\n * this refers to the active DomQuery object\n */\n isPresent(presentRunnable ?: (elem ?: DomQuery) => void): boolean {\n let absent = this.isAbsent();\n if (!absent && presentRunnable) {\n presentRunnable.call(this, this)\n }\n return !absent;\n }\n\n /**\n * should make the code clearer\n * note if you pass a function\n * this refers to the active DomQuery object\n *\n *\n * @param presentRunnable\n */\n ifPresentLazy(presentRunnable: (elem ?: DomQuery) => void = function () {\n }): DomQuery {\n this.isPresent.call(this, presentRunnable);\n return this;\n }\n\n /**\n * remove all affected nodes from this query object from the dom tree\n */\n delete() {\n this.eachElem((node: Element) => {\n if (node.parentNode) {\n node.parentNode.removeChild(node);\n }\n });\n }\n\n querySelectorAll(selector): DomQuery {\n // We could merge both methods, but for now this is more readable\n if (selector.indexOf(\"/shadow/\") != -1) {\n return this._querySelectorAllDeep(selector);\n } else {\n return this._querySelectorAll(selector);\n }\n }\n\n closest(selector): DomQuery {\n // We could merge both methods, but for now this is more readable\n if (selector.indexOf(\"/shadow/\") != -1) {\n return this._closestDeep(selector);\n } else {\n return this._closest(selector);\n }\n }\n\n\n /**\n * core byId method\n * @param id the id to search for\n * @param includeRoot also match the root element?\n */\n byId(id: string, includeRoot?: boolean): DomQuery {\n let res: Array = [];\n if (includeRoot) {\n res = res.concat(...\n new Es2019Array(...(this?.rootNode || []))\n .filter(((item) => id == item.id) as any)\n .map(item => new DomQuery(item))\n );\n }\n\n // for some strange kind of reason the # selector fails\n // on hidden elements we use the attributes match selector\n // that works\n res = res.concat(this.querySelectorAll(`[id=\"${id}\"]`));\n return new DomQuery(...res);\n }\n\n\n byIdDeep(id: string, includeRoot?: boolean): DomQuery {\n let res: Array = [];\n if (includeRoot) {\n res = res.concat(\n new Es2019Array(...(this?.rootNode || []))\n .filter(item => id == item.id)\n .map(item => new DomQuery(item))\n );\n }\n\n let subItems = this.querySelectorAllDeep(`[id=\"${id}\"]`);\n if (subItems.length) {\n res.push(subItems);\n }\n\n return new DomQuery(...res);\n }\n\n /**\n * same as byId just for the tag name\n * @param tagName the tag-name to search for\n * @param includeRoot shall the root element be part of this search\n * @param deep do we also want to go into shadow dom areas\n */\n byTagName(tagName: string, includeRoot ?: boolean, deep ?: boolean): DomQuery {\n let res: Array = [];\n if (includeRoot) {\n res = new Es2019Array(...(this?.rootNode ?? []))\n .filter(element => element?.tagName == tagName)\n .reduce((reduction: any, item: Element) => reduction.concat([item]), res);\n }\n\n (deep) ? res.push(this.querySelectorAllDeep(tagName)) : res.push(this.querySelectorAll(tagName));\n return new DomQuery(...res);\n }\n\n /**\n * attr accessor, usage myQuery.attr(\"class\").value = \"bla\"\n * or let value myQuery.attr(\"class\").value\n * @param attr the attribute to set\n * @param defaultValue the default value in case nothing is presented (defaults to null)\n */\n attr(attr: string, defaultValue: string = null): ElementAttribute {\n return new ElementAttribute(this, attr, defaultValue);\n }\n\n style(cssProperty: string, defaultValue: string = null): Style {\n return new Style(this, cssProperty, defaultValue);\n }\n\n\n /**\n * Checks for an existing class in the class attributes\n *\n * @param clazz the class to search for\n */\n hasClass(clazz: string) {\n let hasIt = false;\n this.eachElem(node => {\n hasIt = node.classList.contains(clazz);\n if (hasIt) {\n return false;\n }\n });\n return hasIt;\n }\n\n /**\n * appends a class string if not already in the element(s)\n *\n * @param clazz the style class to append\n */\n addClass(clazz: string): DomQuery {\n this.eachElem(item => item.classList.add(clazz))\n return this;\n }\n\n /**\n * remove the style class if in the class definitions\n *\n * @param clazz\n */\n removeClass(clazz: string): DomQuery {\n this.eachElem(item => item.classList.remove(clazz));\n return this;\n }\n\n /**\n * checks whether we have a multipart element in our children\n * or are one\n */\n isMultipartCandidate(deep = false): boolean {\n const FILE_INPUT = \"input[type='file']\";\n return this.matchesSelector(FILE_INPUT) ||\n ((!deep) ? this.querySelectorAll(FILE_INPUT) :\n this.querySelectorAllDeep(FILE_INPUT)).first().isPresent();\n }\n\n /**\n * innerHtml\n * equivalent to jQueries html\n * as setter the html is set and the\n * DomQuery is given back\n * as getter the html string is returned\n *\n * @param newInnerHTML the inner html to be inserted\n */\n html(newInnerHTML?: string): DomQuery | Optional {\n if (Optional.fromNullable(newInnerHTML).isAbsent()) {\n return this.isPresent() ? Optional.fromNullable(this.innerHTML) : Optional.absent;\n }\n this.innerHTML = newInnerHTML;\n\n return this;\n }\n\n /**\n * Standard dispatch event method, delegated from node\n */\n dispatchEvent(evt: Event): DomQuery {\n this.eachElem(elem => elem.dispatchEvent(evt));\n return this;\n }\n\n /**\n * abbreviation property to use innerHTML directly like on the dom tree\n * @param newInnerHTML the new inner html which should be attached to \"this\" domQuery\n */\n set innerHTML(newInnerHTML: string) {\n this.eachElem(elem => elem.innerHTML = newInnerHTML);\n }\n\n /**\n * getter abbreviation to use innerHTML directly\n */\n get innerHTML(): string {\n let retArr = [];\n this.eachElem(elem => retArr.push(elem.innerHTML));\n return retArr.join(\"\");\n }\n\n /**\n * since the dom allows both innerHTML and innerHtml we also have to implement both\n * @param newInnerHtml see above\n */\n set innerHtml(newInnerHtml: string) {\n this.innerHTML = newInnerHtml;\n }\n\n /**\n * same here, getter for allowing innerHtml directly\n */\n get innerHtml(): string {\n return this.innerHTML;\n }\n\n /**\n * filters the current dom query elements\n * upon a given selector\n *\n * @param selector\n */\n filterSelector(selector: string): DomQuery {\n let matched = [];\n\n this.eachElem(item => {\n if (this._mozMatchesSelector(item, selector)) {\n matched.push(item)\n }\n });\n return new DomQuery(...matched);\n }\n\n /**\n * checks whether any item in this domQuery level matches the selector\n * if there is one element only attached, as root the match is only\n * performed on this element.\n * @param selector\n */\n matchesSelector(selector: string): boolean {\n return this.asArray\n .some(item => this._mozMatchesSelector(item.getAsElem(0).value, selector));\n }\n\n /**\n * easy node traversal, you can pass\n * a set of node selectors which are joined as direct children\n *\n * Note!!! The root nodes are not in the getIf, those are always the child nodes\n *\n * @param nodeSelector\n */\n getIf(...nodeSelector: Array): DomQuery {\n\n let selectorStage: DomQuery = this.childNodes;\n for (let cnt = 0; cnt < nodeSelector.length; cnt++) {\n selectorStage = selectorStage.filterSelector(nodeSelector[cnt]);\n if (selectorStage.isAbsent()) {\n return selectorStage;\n }\n }\n return selectorStage;\n }\n\n eachElem(func: (item: Element, cnt?: number) => any): DomQuery {\n\n for (let cnt = 0, len = this.rootNode.length; cnt < len; cnt++) {\n if (func(this.rootNode[cnt], cnt) === false) {\n break;\n }\n }\n return this;\n }\n\n firstElem(func: (item: Element, cnt?: number) => any = item => item): DomQuery {\n if (this.rootNode.length > 1) {\n func(this.rootNode[0], 0);\n }\n return this;\n }\n\n lastElem(func: (item: Element, cnt?: number) => any = item => item): DomQuery {\n if (this.rootNode.length > 1) {\n func(this.rootNode[this.rootNode.length - 1], 0);\n }\n return this;\n }\n\n each(func: (item: DomQuery, cnt?: number) => any): DomQuery {\n new Es2019Array(...this.rootNode)\n .forEach((item, cnt) => {\n // we could use a filter, but for the best performance we don´t\n if (item == null) {\n return;\n }\n return func(DomQuery.byId(item), cnt);\n });\n\n return this;\n }\n\n /**\n * replace convenience function, replaces one or more elements with\n * a set of elements passed as DomQuery\n * @param toReplace the replaced nodes as reference (original node has been replaced)\n */\n replace(toReplace: DomQuery): DomQuery {\n this.each(item => {\n let asElem = item.getAsElem(0).value;\n let parent = asElem.parentElement;\n let nextElement = asElem.nextElementSibling;\n let previousElement = asElem.previousElementSibling;\n if(nextElement != null) {\n new DomQuery(nextElement).insertBefore(toReplace);\n } else if(previousElement) {\n new DomQuery(previousElement).insertAfter(toReplace)\n } else {\n new DomQuery(parent).append(toReplace);\n }\n item.delete();\n });\n return toReplace;\n }\n\n /**\n * returns a new dom query containing only the first element max\n *\n * @param func a an optional callback function to perform an operation on the first element\n */\n first(func: (item: DomQuery, cnt?: number) => any = (item) => item): DomQuery {\n if (this.rootNode.length >= 1) {\n func(this.get(0), 0);\n return this.get(0);\n }\n return this;\n }\n\n /**\n * returns a new dom query containing only the first element max\n *\n * @param func a an optional callback function to perform an operation on the first element\n */\n last(func: (item: DomQuery, cnt?: number) => any = (item) => item): DomQuery {\n if (this.rootNode.length >= 1) {\n let lastNode = this.get(this.rootNode.length - 1);\n func(lastNode, 0);\n return lastNode;\n }\n return this;\n }\n\n /**\n * filter function which filters a subset\n *\n * @param func\n */\n filter(func: (item: DomQuery) => boolean): DomQuery {\n let reArr: Array = [];\n this.each((item: DomQuery) => {\n func(item) ? reArr.push(item) : null;\n });\n return new DomQuery(...reArr);\n }\n\n /**\n * global eval head appendix method\n * no other methods are supported anymore\n * @param code the code to be evaluated\n * @param nonce optional nonce key for higher security\n */\n globalEval(code: string, nonce ?: string): DomQuery {\n const head = document.getElementsByTagName(\"head\")?.[0]\n ?? document.documentElement.getElementsByTagName(\"head\")?.[0];\n const script = document.createElement(\"script\");\n if (nonce) {\n if ('undefined' != typeof script?.nonce) {\n script.nonce = nonce;\n } else {\n script.setAttribute(\"nonce\", nonce);\n }\n }\n script.type = \"text/javascript\";\n script.innerHTML = code;\n let newScriptElement = head.appendChild(script);\n head.removeChild(newScriptElement);\n return this;\n }\n\n /**\n * global eval head appendix method\n * no other methods are supported anymore\n * @param code the code to be evaluated\n * @param nonce optional nonce key for higher security\n */\n globalEvalSticky(code: string, nonce ?: string): DomQuery {\n let head = document.getElementsByTagName(\"head\")[0] || document.documentElement;\n let script = document.createElement(\"script\");\n this.applyNonce(nonce, script);\n script.type = \"text/javascript\";\n script.innerHTML = code;\n head.appendChild(script);\n return this;\n }\n\n /**\n * detaches a set of nodes from their parent elements\n * in a browser independent manner\n * @return {Array} an array of nodes with the detached dom nodes\n */\n detach(): DomQuery {\n this.eachElem((item: Element) => {\n item.parentNode.removeChild(item);\n });\n return this;\n }\n\n /**\n * appends the current set of elements\n * to the element or first element passed via elem\n * @param elem\n */\n appendTo(elem: DomQuery | string): DomQuery {\n if (Lang.isString(elem)) {\n this.appendTo(DomQuery.querySelectorAll(elem as string));\n return this;\n }\n this.eachElem((item) => {\n let value1: Element = (elem as DomQuery).getAsElem(0).orElseLazy(() => {\n return {\n appendChild: () => {\n }\n }\n }).value;\n value1.appendChild(item);\n });\n return this;\n }\n\n /**\n * loads and evaluates a script from a source uri\n *\n * @param src the source to be loaded and evaluated\n * @param delay in milliseconds execution default (0 == no delay)\n * @param nonce optional nonce value to allow increased security via nonce crypto token\n */\n loadScriptEval(src: string, delay: number = 0, nonce?: string) {\n this._loadScriptEval(false, src, delay, nonce);\n\n return this;\n }\n\n\n /**\n * loads and evaluates a script from a source uri\n *\n * @param src the source to be loaded and evaluated\n * @param delay in milliseconds execution default (0 == no delay)\n * @param nonce optional nonce parameter for increased security via nonce crypto token\n */\n loadScriptEvalSticky(src: string, delay: number = 0, nonce?: string) {\n this._loadScriptEval(true, src, delay, nonce);\n\n return this;\n }\n\n insertAfter(...toInsertParams: Array): DomQuery {\n\n this.each(existingItem => {\n let existingElement = existingItem.getAsElem(0).value;\n let rootNode = existingElement.parentNode;\n for (let cnt = 0; cnt < toInsertParams.length; cnt++) {\n let nextSibling: Element = existingElement.nextSibling;\n toInsertParams[cnt].eachElem(insertElem => {\n if (nextSibling) {\n rootNode.insertBefore(insertElem, nextSibling);\n existingElement = nextSibling;\n } else {\n rootNode.appendChild(insertElem);\n }\n });\n\n }\n });\n\n let res = [];\n res.push(this);\n res = res.concat(toInsertParams);\n return new DomQuery(...res);\n }\n\n insertBefore(...toInsertParams: Array): DomQuery {\n this.each(existingItem => {\n let existingElement = existingItem.getAsElem(0).value;\n let rootNode = existingElement.parentNode;\n for (let cnt = 0; cnt < toInsertParams.length; cnt++) {\n toInsertParams[cnt].eachElem(insertElem => {\n rootNode.insertBefore(insertElem, existingElement);\n });\n }\n });\n let res = [];\n res.push(this);\n res = res.concat(toInsertParams);\n return new DomQuery(...res);\n }\n\n orElse(...elseValue: any): DomQuery {\n if (this.isPresent()) {\n return this;\n } else {\n return new DomQuery(...elseValue);\n }\n }\n\n orElseLazy(func: () => any): DomQuery {\n if (this.isPresent()) {\n return this;\n } else {\n return new DomQuery(func());\n }\n }\n\n /**\n * find all parents in the hierarchy for which the selector matches\n * @param selector\n */\n allParents(selector: string): DomQuery {\n let parent = this.parent();\n let ret = [];\n while(parent.isPresent()) {\n if(parent.matchesSelector(selector)) {\n ret.push(parent);\n }\n parent = parent.parent();\n }\n return new DomQuery(...ret);\n }\n\n /**\n * finds the first parent in the hierarchy for which the selector matches\n * @param selector\n */\n firstParent(selector: string): DomQuery {\n let parent = this.parent();\n while(parent.isPresent()) {\n if(parent.matchesSelector(selector)) {\n return parent;\n }\n parent = parent.parent();\n }\n return DomQuery.absent;\n }\n\n /**\n * fetches all parents as long as the filter criterium matches\n * @param selector\n */\n parentsWhileMatch(selector: string): DomQuery {\n const retArr: Array = [];\n let parent = this.parent().filter(item => item.matchesSelector(selector));\n while(parent.isPresent()) {\n retArr.push(parent);\n parent = parent.parent().filter(item => item.matchesSelector(selector));\n }\n\n return new DomQuery(...retArr);\n }\n\n parent(): DomQuery {\n let ret = [];\n this.eachElem((item: Element) => {\n let parent = item.parentNode || (item).host || item.shadowRoot;\n if (parent && ret.indexOf(parent) == -1) {\n ret.push(parent);\n }\n });\n\n return new DomQuery(...ret);\n }\n\n copyAttrs(sourceItem: DomQuery | XMLQuery): DomQuery {\n sourceItem.eachElem((sourceNode: Element) => {\n let attrs: Array = objToArray(sourceNode.attributes);\n for (let item of attrs) {\n let value: string = item.value;\n let name: string = item.name;\n\n switch (name) {\n case \"id\":\n this.id.value = value;\n break;\n case \"disabled\":\n this.resolveAttributeHolder(\"disabled\").disabled = value;\n break;\n case \"checked\":\n this.resolveAttributeHolder(\"checked\").checked = value;\n break;\n case \"nonce\":\n // nonce will be handled below!\n break;\n default:\n this.attr(name).value = value;\n }\n }\n });\n\n //special nonce handling\n sourceItem.nonce.isPresent(() => {\n this.nonce.value = sourceItem.nonce.value;\n });\n\n return this;\n }\n\n /**\n * outerHTML convenience method\n * browsers only support innerHTML but\n * for instance for your jsf.js we have a full\n * replace pattern which needs outerHTML processing\n *\n * @param markup the markup which should replace the root element\n * @param runEmbeddedScripts if true the embedded scripts are executed\n * @param runEmbeddedCss if true the embedded css are executed\n * @param deep should this also work for shadow dom (run scripts etc...)\n */\n outerHTML(markup: string, runEmbeddedScripts ?: boolean, runEmbeddedCss ?: boolean, deep = false): DomQuery {\n if (this.isAbsent()) {\n return;\n }\n\n let focusElementId = document?.activeElement?.id;\n let caretPosition = (focusElementId) ? DomQuery.getCaretPosition(document.activeElement) : null;\n let nodes = DomQuery.fromMarkup(markup);\n let res = [];\n let toReplace = this.getAsElem(0).value;\n let firstInsert = nodes.get(0);\n let parentNode = toReplace.parentNode;\n let replaced = firstInsert.getAsElem(0).value;\n parentNode.replaceChild(replaced, toReplace);\n res.push(new DomQuery(replaced));\n // no replacement possible\n if (this.isAbsent()) {\n return this;\n }\n\n let insertAdditionalItems = [];\n\n if (nodes.length > 1) {\n insertAdditionalItems = insertAdditionalItems.concat(...nodes.values.slice(1));\n res.push(DomQuery.byId(replaced).insertAfter(new DomQuery(...insertAdditionalItems)));\n }\n\n if (runEmbeddedScripts) {\n this.runScripts();\n }\n if (runEmbeddedCss) {\n this.runCss();\n }\n\n let focusElement = DomQuery.byId(focusElementId);\n if (focusElementId && focusElement.isPresent() &&\n caretPosition != null && \"undefined\" != typeof caretPosition) {\n focusElement.eachElem(item => DomQuery.setCaretPosition(item, caretPosition));\n }\n\n return nodes;\n }\n\n /**\n * Run through the given nodes in the DomQuery execute the inline scripts\n * @param sticky if set to true the evaluated elements will stick to the head, default false\n * @param whitelisted: optional whitelist function which can filter out script tags which are not processed\n * defaults to the standard jsf.js exclusion (we use this code for myfaces)\n */\n runScripts(sticky = false, whitelisted: (val: string) => boolean = DEFAULT_WHITELIST): DomQuery {\n const evalCollectedScripts = (scriptsToProcess: { evalText: string, nonce: string }[]) => {\n if (scriptsToProcess.length) {\n // script source means we have to eval the existing\n // scripts before we run the 'include' command\n // this.globalEval(finalScripts.join(\"\\n\"));\n let joinedScripts = [];\n new Es2019Array(...scriptsToProcess).forEach(item => {\n if (!item.nonce) {\n joinedScripts.push(item.evalText)\n } else {\n if (joinedScripts.length) {\n this.globalEval(joinedScripts.join(\"\\n\"));\n joinedScripts.length = 0;\n }\n\n (!sticky) ?\n this.globalEval(item.evalText, item.nonce) :\n this.globalEvalSticky(item.evalText, item.nonce);\n }\n });\n if (joinedScripts.length) {\n (!sticky) ? this.globalEval(joinedScripts.join(\"\\n\")) :\n this.globalEvalSticky(joinedScripts.join(\"\\n\"));\n joinedScripts.length = 0;\n }\n\n scriptsToProcess = [];\n }\n return scriptsToProcess;\n }\n\n let finalScripts = [],\n allowedItemTypes = [\"\", \"script\", \"text/javascript\", \"text/ecmascript\", \"ecmascript\"],\n execScript = (item) => {\n let tagName = item.tagName;\n let itemType = (item?.type ?? '').toLowerCase();\n if (tagName &&\n eqi(tagName, \"script\") &&\n allowedItemTypes.indexOf(itemType) != -1) {\n let src = item.getAttribute('src');\n if ('undefined' != typeof src\n && null != src\n && src.length > 0\n ) {\n let nonce = item?.nonce ?? item.getAttribute('nonce').value;\n // we have to move this into an inner if because chrome otherwise chokes\n // due to changing the and order instead of relying on left to right\n // if jsf.js is already registered we do not replace it anymore\n if (whitelisted(src)) {\n // we run the collected scripts, before we run the 'include' command\n finalScripts = evalCollectedScripts(finalScripts);\n if (!sticky) {\n (!!nonce) ? this.loadScriptEval(src, 0, nonce) :\n // if no nonce is set we do not pass any once\n this.loadScriptEval(src, 0);\n } else {\n (!!nonce) ? this.loadScriptEvalSticky(src, 0, nonce) :\n // if no nonce is set we do not pass any once\n this.loadScriptEvalSticky(src, 0);\n }\n }\n\n } else {\n // embedded script auto eval\n // probably not needed anymore\n let evalText = trim(item.text || item.innerText || item.innerHTML);\n let go = true;\n\n while (go) {\n go = false;\n if (evalText.substring(0, 4) == \"