Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Wrap browser extension in wxt for multi-browser compilation (#581)
Leendert de Borst28a0c7eb1f3f
diff --git a/browser-extension/.editorconfig b/browser-extension/.editorconfignew file mode 100644index 000000000..429f1a67a--- /dev/null+++ b/browser-extension/.editorconfig@@ -0,0 +1,28 @@+# Child EditorConfig file that enforces 2 space indent for Typescript projects+root = false++# Unix-style newlines with a newline ending every file+[*]+end_of_line = lf+insert_final_newline = true+charset = utf-8+trim_trailing_whitespace = true++# TypeScript and JavaScript files+[*.{ts,tsx,js,jsx}]+indent_style = space+indent_size = 2++# JSON files+[*.json]+indent_style = space+indent_size = 2++# YAML files+[*.{yml,yaml}]+indent_style = space+indent_size = 2++# Markdown files+[*.md]+trim_trailing_whitespace = false\ No newline at end of filediff --git a/browser-extension/.gitignore b/browser-extension/.gitignorenew file mode 100644index 000000000..a25695382--- /dev/null+++ b/browser-extension/.gitignore@@ -0,0 +1,26 @@+# Logs+logs+*.log+npm-debug.log*+yarn-debug.log*+yarn-error.log*+pnpm-debug.log*+lerna-debug.log*++node_modules+.output+stats.html+stats-*.json+.wxt+web-ext.config.ts++# Editor directories and files+.vscode/*+!.vscode/extensions.json+.idea+.DS_Store+*.suo+*.ntvs*+*.njsproj+*.sln+*.sw?diff --git a/browser-extension/README.md b/browser-extension/README.mdnew file mode 100644index 000000000..b53d061d2--- /dev/null+++ b/browser-extension/README.md@@ -0,0 +1,18 @@+This folder contains the source code for the browser extensions for AliasVault.++The browser extension is built using WXT and React.++To build the browser extension, run the following command:++```bash+npm install+npm run build+```++This will build the browser extension and save it in the `.output/chrome-mv3` folder.++To load the browser extension in Chrome, follow these steps:++1. Open Chrome and navigate to `chrome://extensions/`.+2. Enable "Developer mode" if it is not already enabled.+3. Click on "Load unpacked" and select the `.output/chrome-mv3` folder.diff --git a/browser-extension/package-lock.json b/browser-extension/package-lock.jsonnew file mode 100644index 000000000..c3873a599--- /dev/null+++ b/browser-extension/package-lock.json@@ -0,0 +1,9705 @@+{+ "name": "aliasvault-browser-extension",+ "version": "0.0.0",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "aliasvault-browser-extension",+ "version": "0.0.0",+ "hasInstallScript": true,+ "dependencies": {+ "argon2-browser": "^1.18.0",+ "buffer": "^6.0.3",+ "react": "^19.0.0",+ "react-dom": "^19.0.0",+ "react-router-dom": "^7.1.4",+ "secure-remote-password": "github:LinusU/secure-remote-password#73e5f732b6ca0cdbdc19da1a0c5f48cdbad2cbf0",+ "sql.js": "^1.12.0"+ },+ "devDependencies": {+ "@types/chrome": "^0.0.280",+ "@types/react": "^19.0.1",+ "@types/react-dom": "^19.0.2",+ "@wxt-dev/module-react": "^1.1.2",+ "autoprefixer": "^10.4.20",+ "jsdom": "^26.0.0",+ "postcss": "^8.5.1",+ "tailwindcss": "^3.4.17",+ "typescript": "^5.6.3",+ "vite-plugin-static-copy": "^2.2.0",+ "wxt": "^0.19.13"+ }+ },+ "node_modules/@1natsu/wait-element": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/@1natsu/wait-element/-/wait-element-4.1.2.tgz",+ "integrity": "sha512-qWxSJD+Q5b8bKOvESFifvfZ92DuMsY+03SBNjTO34ipJLP6mZ9yK4bQz/vlh48aEQXoJfaZBqUwKL5BdI5iiWw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "defu": "^6.1.4",+ "many-keys-map": "^2.0.1"+ }+ },+ "node_modules/@aklinker1/rollup-plugin-visualizer": {+ "version": "5.12.0",+ "resolved": "https://registry.npmjs.org/@aklinker1/rollup-plugin-visualizer/-/rollup-plugin-visualizer-5.12.0.tgz",+ "integrity": "sha512-X24LvEGw6UFmy0lpGJDmXsMyBD58XmX1bbwsaMLhNoM+UMQfQ3b2RtC+nz4b/NoRK5r6QJSKJHBNVeUdwqybaQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "open": "^8.4.0",+ "picomatch": "^2.3.1",+ "source-map": "^0.7.4",+ "yargs": "^17.5.1"+ },+ "bin": {+ "rollup-plugin-visualizer": "dist/bin/cli.js"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "rollup": "2.x || 3.x || 4.x"+ },+ "peerDependenciesMeta": {+ "rollup": {+ "optional": true+ }+ }+ },+ "node_modules/@aklinker1/rollup-plugin-visualizer/node_modules/define-lazy-prop": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz",+ "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/@aklinker1/rollup-plugin-visualizer/node_modules/is-docker": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",+ "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "is-docker": "cli.js"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/@aklinker1/rollup-plugin-visualizer/node_modules/is-wsl": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",+ "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-docker": "^2.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/@aklinker1/rollup-plugin-visualizer/node_modules/open": {+ "version": "8.4.2",+ "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz",+ "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "define-lazy-prop": "^2.0.0",+ "is-docker": "^2.1.1",+ "is-wsl": "^2.2.0"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/@alloc/quick-lru": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz",+ "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/@ampproject/remapping": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz",+ "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.5",+ "@jridgewell/trace-mapping": "^0.3.24"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@asamuzakjp/css-color": {+ "version": "2.8.3",+ "resolved": "https://registry.npmjs.org/@asamuzakjp/css-color/-/css-color-2.8.3.tgz",+ "integrity": "sha512-GIc76d9UI1hCvOATjZPyHFmE5qhRccp3/zGfMPapK3jBi+yocEzp6BBB0UnfRYP9NP4FANqUZYb0hnfs3TM3hw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@csstools/css-calc": "^2.1.1",+ "@csstools/css-color-parser": "^3.0.7",+ "@csstools/css-parser-algorithms": "^3.0.4",+ "@csstools/css-tokenizer": "^3.0.3",+ "lru-cache": "^10.4.3"+ }+ },+ "node_modules/@asamuzakjp/css-color/node_modules/lru-cache": {+ "version": "10.4.3",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",+ "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/@babel/code-frame": {+ "version": "7.26.2",+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz",+ "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-validator-identifier": "^7.25.9",+ "js-tokens": "^4.0.0",+ "picocolors": "^1.0.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/compat-data": {+ "version": "7.26.8",+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.26.8.tgz",+ "integrity": "sha512-oH5UPLMWR3L2wEFLnFJ1TZXqHufiTKAiLfqw5zkhS4dKXLJ10yVztfil/twG8EDTA4F/tvVNw9nOl4ZMslB8rQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/core": {+ "version": "7.26.9",+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.26.9.tgz",+ "integrity": "sha512-lWBYIrF7qK5+GjY5Uy+/hEgp8OJWOD/rpy74GplYRhEauvbHDeFB8t5hPOZxCZ0Oxf4Cc36tK51/l3ymJysrKw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@ampproject/remapping": "^2.2.0",+ "@babel/code-frame": "^7.26.2",+ "@babel/generator": "^7.26.9",+ "@babel/helper-compilation-targets": "^7.26.5",+ "@babel/helper-module-transforms": "^7.26.0",+ "@babel/helpers": "^7.26.9",+ "@babel/parser": "^7.26.9",+ "@babel/template": "^7.26.9",+ "@babel/traverse": "^7.26.9",+ "@babel/types": "^7.26.9",+ "convert-source-map": "^2.0.0",+ "debug": "^4.1.0",+ "gensync": "^1.0.0-beta.2",+ "json5": "^2.2.3",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/babel"+ }+ },+ "node_modules/@babel/generator": {+ "version": "7.26.9",+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.26.9.tgz",+ "integrity": "sha512-kEWdzjOAUMW4hAyrzJ0ZaTOu9OmpyDIQicIh0zg0EEcEkYXZb2TjtBhnHi2ViX7PKwZqF4xwqfAm299/QMP3lg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.26.9",+ "@babel/types": "^7.26.9",+ "@jridgewell/gen-mapping": "^0.3.5",+ "@jridgewell/trace-mapping": "^0.3.25",+ "jsesc": "^3.0.2"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-compilation-targets": {+ "version": "7.26.5",+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.26.5.tgz",+ "integrity": "sha512-IXuyn5EkouFJscIDuFF5EsiSolseme1s0CZB+QxVugqJLYmKdxI1VfIBOst0SUu4rnk2Z7kqTwmoO1lp3HIfnA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/compat-data": "^7.26.5",+ "@babel/helper-validator-option": "^7.25.9",+ "browserslist": "^4.24.0",+ "lru-cache": "^5.1.1",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-imports": {+ "version": "7.25.9",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz",+ "integrity": "sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/traverse": "^7.25.9",+ "@babel/types": "^7.25.9"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-transforms": {+ "version": "7.26.0",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.26.0.tgz",+ "integrity": "sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-module-imports": "^7.25.9",+ "@babel/helper-validator-identifier": "^7.25.9",+ "@babel/traverse": "^7.25.9"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "node_modules/@babel/helper-plugin-utils": {+ "version": "7.26.5",+ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.26.5.tgz",+ "integrity": "sha512-RS+jZcRdZdRFzMyr+wcsaqOmld1/EqTghfaBGQQd/WnRdzdlvSZ//kF7U8VQTxf1ynZ4cjUcYgjVGx13ewNPMg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-string-parser": {+ "version": "7.25.9",+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz",+ "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-identifier": {+ "version": "7.25.9",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz",+ "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-option": {+ "version": "7.25.9",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz",+ "integrity": "sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helpers": {+ "version": "7.26.9",+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.26.9.tgz",+ "integrity": "sha512-Mz/4+y8udxBKdmzt/UjPACs4G3j5SshJJEFFKxlCGPydG4JAHXxjWjAwjd09tf6oINvl1VfMJo+nB7H2YKQ0dA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/template": "^7.26.9",+ "@babel/types": "^7.26.9"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/parser": {+ "version": "7.26.9",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.9.tgz",+ "integrity": "sha512-81NWa1njQblgZbQHxWHpxxCzNsa3ZwvFqpUg7P+NNUU6f3UU2jBEg4OlF/J6rl8+PQGh1q6/zWScd001YwcA5A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.26.9"+ },+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/plugin-transform-react-jsx-self": {+ "version": "7.25.9",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.25.9.tgz",+ "integrity": "sha512-y8quW6p0WHkEhmErnfe58r7x0A70uKphQm8Sp8cV7tjNQwK56sNVK0M73LK3WuYmsuyrftut4xAkjjgU0twaMg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.25.9"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "node_modules/@babel/plugin-transform-react-jsx-source": {+ "version": "7.25.9",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.25.9.tgz",+ "integrity": "sha512-+iqjT8xmXhhYv4/uiYd8FNQsraMFZIfxVSqxxVSZP0WbbSAWvBXAul0m/zu+7Vv4O/3WtApy9pmaTMiumEZgfg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.25.9"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "node_modules/@babel/runtime": {+ "version": "7.24.7",+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.7.tgz",+ "integrity": "sha512-UwgBRMjJP+xv857DCngvqXI3Iq6J4v0wXmwc6sapg+zyhbwmQX67LUEFrkK5tbyJ30jGuG3ZvWpBiB9LCy1kWw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "regenerator-runtime": "^0.14.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/template": {+ "version": "7.26.9",+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.26.9.tgz",+ "integrity": "sha512-qyRplbeIpNZhmzOysF/wFMuP9sctmh2cFzRAZOn1YapxBsE1i9bJIY586R/WBLfLcmcBlM8ROBiQURnnNy+zfA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.26.2",+ "@babel/parser": "^7.26.9",+ "@babel/types": "^7.26.9"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/traverse": {+ "version": "7.26.9",+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.26.9.tgz",+ "integrity": "sha512-ZYW7L+pL8ahU5fXmNbPF+iZFHCv5scFak7MZ9bwaRPLUhHh7QQEMjZUg0HevihoqCM5iSYHN61EyCoZvqC+bxg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.26.2",+ "@babel/generator": "^7.26.9",+ "@babel/parser": "^7.26.9",+ "@babel/template": "^7.26.9",+ "@babel/types": "^7.26.9",+ "debug": "^4.3.1",+ "globals": "^11.1.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/types": {+ "version": "7.26.9",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.9.tgz",+ "integrity": "sha512-Y3IR1cRnOxOCDvMmNiym7XpXQ93iGDDPHx+Zj+NM+rg0fBaShfQLkg+hKPaZCEvg5N/LeCo4+Rj/i3FuJsIQaw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-string-parser": "^7.25.9",+ "@babel/helper-validator-identifier": "^7.25.9"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@csstools/color-helpers": {+ "version": "5.0.2",+ "resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-5.0.2.tgz",+ "integrity": "sha512-JqWH1vsgdGcw2RR6VliXXdA0/59LttzlU8UlRT/iUUsEeWfYq8I+K0yhihEUTTHLRm1EXvpsCx3083EU15ecsA==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/csstools"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/csstools"+ }+ ],+ "license": "MIT-0",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@csstools/css-calc": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/@csstools/css-calc/-/css-calc-2.1.2.tgz",+ "integrity": "sha512-TklMyb3uBB28b5uQdxjReG4L80NxAqgrECqLZFQbyLekwwlcDDS8r3f07DKqeo8C4926Br0gf/ZDe17Zv4wIuw==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/csstools"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/csstools"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "@csstools/css-parser-algorithms": "^3.0.4",+ "@csstools/css-tokenizer": "^3.0.3"+ }+ },+ "node_modules/@csstools/css-color-parser": {+ "version": "3.0.8",+ "resolved": "https://registry.npmjs.org/@csstools/css-color-parser/-/css-color-parser-3.0.8.tgz",+ "integrity": "sha512-pdwotQjCCnRPuNi06jFuP68cykU1f3ZWExLe/8MQ1LOs8Xq+fTkYgd+2V8mWUWMrOn9iS2HftPVaMZDaXzGbhQ==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/csstools"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/csstools"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "@csstools/color-helpers": "^5.0.2",+ "@csstools/css-calc": "^2.1.2"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "@csstools/css-parser-algorithms": "^3.0.4",+ "@csstools/css-tokenizer": "^3.0.3"+ }+ },+ "node_modules/@csstools/css-parser-algorithms": {+ "version": "3.0.4",+ "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-3.0.4.tgz",+ "integrity": "sha512-Up7rBoV77rv29d3uKHUIVubz1BTcgyUK72IvCQAbfbMv584xHcGKCKbWh7i8hPrRJ7qU4Y8IO3IY9m+iTB7P3A==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/csstools"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/csstools"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "@csstools/css-tokenizer": "^3.0.3"+ }+ },+ "node_modules/@csstools/css-tokenizer": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-3.0.3.tgz",+ "integrity": "sha512-UJnjoFsmxfKUdNYdWgOB0mWUypuLvAfQPH1+pyvRJs6euowbFkFC6P13w1l8mJyi3vxYMxc9kld5jZEGRQs6bw==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/csstools"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/csstools"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@devicefarmer/adbkit": {+ "version": "3.2.6",+ "resolved": "https://registry.npmjs.org/@devicefarmer/adbkit/-/adbkit-3.2.6.tgz",+ "integrity": "sha512-8lO1hSeTgtxcOHhp4tTWq/JaOysp5KNbbyFoxNEBnwkCDZu/Bji3ZfOaG++Riv9jN6c9bgdLBOZqJTC5VJPRKQ==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@devicefarmer/adbkit-logcat": "^2.1.2",+ "@devicefarmer/adbkit-monkey": "~1.2.1",+ "bluebird": "~3.7",+ "commander": "^9.1.0",+ "debug": "~4.3.1",+ "node-forge": "^1.3.1",+ "split": "~1.0.1"+ },+ "bin": {+ "adbkit": "bin/adbkit"+ },+ "engines": {+ "node": ">= 0.10.4"+ }+ },+ "node_modules/@devicefarmer/adbkit-logcat": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/@devicefarmer/adbkit-logcat/-/adbkit-logcat-2.1.3.tgz",+ "integrity": "sha512-yeaGFjNBc/6+svbDeul1tNHtNChw6h8pSHAt5D+JsedUrMTN7tla7B15WLDyekxsuS2XlZHRxpuC6m92wiwCNw==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">= 4"+ }+ },+ "node_modules/@devicefarmer/adbkit-monkey": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/@devicefarmer/adbkit-monkey/-/adbkit-monkey-1.2.1.tgz",+ "integrity": "sha512-ZzZY/b66W2Jd6NHbAhLyDWOEIBWC11VizGFk7Wx7M61JZRz7HR9Cq5P+65RKWUU7u6wgsE8Lmh9nE4Mz+U2eTg==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">= 0.10.4"+ }+ },+ "node_modules/@devicefarmer/adbkit/node_modules/debug": {+ "version": "4.3.7",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz",+ "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.0.tgz",+ "integrity": "sha512-O7vun9Sf8DFjH2UtqK8Ku3LkquL9SZL8OLY1T5NZkA34+wG3OQF7cl4Ql8vdNzM6fzBbYfLaiRLIOZ+2FOCgBQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.0.tgz",+ "integrity": "sha512-PTyWCYYiU0+1eJKmw21lWtC+d08JDZPQ5g+kFyxP0V+es6VPPSUhM6zk8iImp2jbV6GwjX4pap0JFbUQN65X1g==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm64": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.0.tgz",+ "integrity": "sha512-grvv8WncGjDSyUBjN9yHXNt+cq0snxXbDxy5pJtzMKGmmpPxeAmAhWxXI+01lU5rwZomDgD3kJwulEnhTRUd6g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-x64": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.0.tgz",+ "integrity": "sha512-m/ix7SfKG5buCnxasr52+LI78SQ+wgdENi9CqyCXwjVR2X4Jkz+BpC3le3AoBPYTC9NHklwngVXvbJ9/Akhrfg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.0.tgz",+ "integrity": "sha512-mVwdUb5SRkPayVadIOI78K7aAnPamoeFR2bT5nszFUZ9P8UpK4ratOdYbZZXYSqPKMHfS1wdHCJk1P1EZpRdvw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.0.tgz",+ "integrity": "sha512-DgDaYsPWFTS4S3nWpFcMn/33ZZwAAeAFKNHNa1QN0rI4pUjgqf0f7ONmXf6d22tqTY+H9FNdgeaAa+YIFUn2Rg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.0.tgz",+ "integrity": "sha512-VN4ocxy6dxefN1MepBx/iD1dH5K8qNtNe227I0mnTRjry8tj5MRk4zprLEdG8WPyAPb93/e4pSgi1SoHdgOa4w==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.0.tgz",+ "integrity": "sha512-mrSgt7lCh07FY+hDD1TxiTyIHyttn6vnjesnPoVDNmDfOmggTLXRv8Id5fNZey1gl/V2dyVK1VXXqVsQIiAk+A==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.0.tgz",+ "integrity": "sha512-vkB3IYj2IDo3g9xX7HqhPYxVkNQe8qTK55fraQyTzTX/fxaDtXiEnavv9geOsonh2Fd2RMB+i5cbhu2zMNWJwg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.0.tgz",+ "integrity": "sha512-9QAQjTWNDM/Vk2bgBl17yWuZxZNQIF0OUUuPZRKoDtqF2k4EtYbpyiG5/Dk7nqeK6kIJWPYldkOcBqjXjrUlmg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.0.tgz",+ "integrity": "sha512-43ET5bHbphBegyeqLb7I1eYn2P/JYGNmzzdidq/w0T8E2SsYL1U6un2NFROFRg1JZLTzdCoRomg8Rvf9M6W6Gg==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.0.tgz",+ "integrity": "sha512-fC95c/xyNFueMhClxJmeRIj2yrSMdDfmqJnyOY4ZqsALkDrrKJfIg5NTMSzVBr5YW1jf+l7/cndBfP3MSDpoHw==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.0.tgz",+ "integrity": "sha512-nkAMFju7KDW73T1DdH7glcyIptm95a7Le8irTQNO/qtkoyypZAnjchQgooFUDQhNAy4iu08N79W4T4pMBwhPwQ==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.0.tgz",+ "integrity": "sha512-NhyOejdhRGS8Iwv+KKR2zTq2PpysF9XqY+Zk77vQHqNbo/PwZCzB5/h7VGuREZm1fixhs4Q/qWRSi5zmAiO4Fw==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.0.tgz",+ "integrity": "sha512-5S/rbP5OY+GHLC5qXp1y/Mx//e92L1YDqkiBbO9TQOvuFXM+iDqUNG5XopAnXoRH3FjIUDkeGcY1cgNvnXp/kA==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.0.tgz",+ "integrity": "sha512-XM2BFsEBz0Fw37V0zU4CXfcfuACMrppsMFKdYY2WuTS3yi8O1nFOhil/xhKTmE1nPmVyvQJjJivgDT+xh8pXJA==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-x64": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.0.tgz",+ "integrity": "sha512-9yl91rHw/cpwMCNytUDxwj2XjFpxML0y9HAOH9pNVQDpQrBxHy01Dx+vaMu0N1CKa/RzBD2hB4u//nfc+Sd3Cw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-arm64": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.0.tgz",+ "integrity": "sha512-RuG4PSMPFfrkH6UwCAqBzauBWTygTvb1nxWasEJooGSJ/NwRw7b2HOwyRTQIU97Hq37l3npXoZGYMy3b3xYvPw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.0.tgz",+ "integrity": "sha512-jl+qisSB5jk01N5f7sPCsBENCOlPiS/xptD5yxOx2oqQfyourJwIKLRA2yqWdifj3owQZCL2sn6o08dBzZGQzA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-arm64": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.0.tgz",+ "integrity": "sha512-21sUNbq2r84YE+SJDfaQRvdgznTD8Xc0oc3p3iW/a1EVWeNj/SdUCbm5U0itZPQYRuRTW20fPMWMpcrciH2EJw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.0.tgz",+ "integrity": "sha512-2gwwriSMPcCFRlPlKx3zLQhfN/2WjJ2NSlg5TKLQOJdV0mSxIcYNTMhk3H3ulL/cak+Xj0lY1Ym9ysDV1igceg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.0.tgz",+ "integrity": "sha512-bxI7ThgLzPrPz484/S9jLlvUAHYMzy6I0XiU1ZMeAEOBcS0VePBFxh1JjTQt3Xiat5b6Oh4x7UC7IwKQKIJRIg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.0.tgz",+ "integrity": "sha512-ZUAc2YK6JW89xTbXvftxdnYy3m4iHIkDtK3CLce8wg8M2L+YZhIvO1DKpxrd0Yr59AeNNkTiic9YLf6FTtXWMw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.0.tgz",+ "integrity": "sha512-eSNxISBu8XweVEWG31/JzjkIGbGIJN/TrRoiSVZwZ6pkC6VX4Im/WV2cz559/TXLcYbcrDN8JtKgd9DJVIo8GA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-x64": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.0.tgz",+ "integrity": "sha512-ZENoHJBxA20C2zFzh6AI4fT6RraMzjYw4xKWemRTRmRVtN9c5DcH9r/f2ihEkMjOW5eGgrwCslG/+Y/3bL+DHQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@isaacs/cliui": {+ "version": "8.0.2",+ "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",+ "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "string-width": "^5.1.2",+ "string-width-cjs": "npm:string-width@^4.2.0",+ "strip-ansi": "^7.0.1",+ "strip-ansi-cjs": "npm:strip-ansi@^6.0.1",+ "wrap-ansi": "^8.1.0",+ "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@isaacs/cliui/node_modules/emoji-regex": {+ "version": "9.2.2",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",+ "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@isaacs/cliui/node_modules/string-width": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz",+ "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "eastasianwidth": "^0.2.0",+ "emoji-regex": "^9.2.2",+ "strip-ansi": "^7.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/@isaacs/cliui/node_modules/wrap-ansi": {+ "version": "8.1.0",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz",+ "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^6.1.0",+ "string-width": "^5.0.1",+ "strip-ansi": "^7.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },+ "node_modules/@jridgewell/gen-mapping": {+ "version": "0.3.8",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz",+ "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/set-array": "^1.2.1",+ "@jridgewell/sourcemap-codec": "^1.4.10",+ "@jridgewell/trace-mapping": "^0.3.24"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/resolve-uri": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/set-array": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz",+ "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.5.0",+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz",+ "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@jridgewell/trace-mapping": {+ "version": "0.3.25",+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz",+ "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/resolve-uri": "^3.1.0",+ "@jridgewell/sourcemap-codec": "^1.4.14"+ }+ },+ "node_modules/@nodelib/fs.scandir": {+ "version": "2.1.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.stat": "2.0.5",+ "run-parallel": "^1.1.9"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@nodelib/fs.stat": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@nodelib/fs.walk": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.scandir": "2.1.5",+ "fastq": "^1.6.0"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@pkgjs/parseargs": {+ "version": "0.11.0",+ "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz",+ "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/@pnpm/config.env-replace": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@pnpm/config.env-replace/-/config.env-replace-1.1.0.tgz",+ "integrity": "sha512-htyl8TWnKL7K/ESFa1oW2UB5lVDxuF5DpM7tBi6Hu2LNL3mWkIzNLG6N4zoCUP1lCKNxWy/3iu8mS8MvToGd6w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12.22.0"+ }+ },+ "node_modules/@pnpm/network.ca-file": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/@pnpm/network.ca-file/-/network.ca-file-1.0.2.tgz",+ "integrity": "sha512-YcPQ8a0jwYU9bTdJDpXjMi7Brhkr1mXsXrUJvjqM2mQDgkRiz8jFaQGOdaLxgjtUfQgZhKy/O3cG/YwmgKaxLA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "graceful-fs": "4.2.10"+ },+ "engines": {+ "node": ">=12.22.0"+ }+ },+ "node_modules/@pnpm/network.ca-file/node_modules/graceful-fs": {+ "version": "4.2.10",+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz",+ "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/@pnpm/npm-conf": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/@pnpm/npm-conf/-/npm-conf-2.3.1.tgz",+ "integrity": "sha512-c83qWb22rNRuB0UaVCI0uRPNRr8Z0FWnEIvT47jiHAmOIUHbBOg5XvV7pM5x+rKn9HRpjxquDbXYSXr3fAKFcw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@pnpm/config.env-replace": "^1.1.0",+ "@pnpm/network.ca-file": "^1.0.1",+ "config-chain": "^1.1.11"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@rollup/pluginutils": {+ "version": "5.1.4",+ "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.1.4.tgz",+ "integrity": "sha512-USm05zrsFxYLPdWWq+K3STlWiT/3ELn3RcV5hJMghpeAIhxfsUIg6mt12CBJBInWMV4VneoV7SfGv8xIwo2qNQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "^1.0.0",+ "estree-walker": "^2.0.2",+ "picomatch": "^4.0.2"+ },+ "engines": {+ "node": ">=14.0.0"+ },+ "peerDependencies": {+ "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0"+ },+ "peerDependenciesMeta": {+ "rollup": {+ "optional": true+ }+ }+ },+ "node_modules/@rollup/pluginutils/node_modules/estree-walker": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",+ "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@rollup/pluginutils/node_modules/picomatch": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz",+ "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/@rollup/rollup-android-arm-eabi": {+ "version": "4.34.9",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.34.9.tgz",+ "integrity": "sha512-qZdlImWXur0CFakn2BJ2znJOdqYZKiedEPEVNTBrpfPjc/YuTGcaYZcdmNFTkUj3DU0ZM/AElcM8Ybww3xVLzA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-android-arm64": {+ "version": "4.34.9",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.34.9.tgz",+ "integrity": "sha512-4KW7P53h6HtJf5Y608T1ISKvNIYLWRKMvfnG0c44M6In4DQVU58HZFEVhWINDZKp7FZps98G3gxwC1sb0wXUUg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-darwin-arm64": {+ "version": "4.34.9",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.34.9.tgz",+ "integrity": "sha512-0CY3/K54slrzLDjOA7TOjN1NuLKERBgk9nY5V34mhmuu673YNb+7ghaDUs6N0ujXR7fz5XaS5Aa6d2TNxZd0OQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-darwin-x64": {+ "version": "4.34.9",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.34.9.tgz",+ "integrity": "sha512-eOojSEAi/acnsJVYRxnMkPFqcxSMFfrw7r2iD9Q32SGkb/Q9FpUY1UlAu1DH9T7j++gZ0lHjnm4OyH2vCI7l7Q==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-arm64": {+ "version": "4.34.9",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.34.9.tgz",+ "integrity": "sha512-2lzjQPJbN5UnHm7bHIUKFMulGTQwdvOkouJDpPysJS+QFBGDJqcfh+CxxtG23Ik/9tEvnebQiylYoazFMAgrYw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-x64": {+ "version": "4.34.9",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.34.9.tgz",+ "integrity": "sha512-SLl0hi2Ah2H7xQYd6Qaiu01kFPzQ+hqvdYSoOtHYg/zCIFs6t8sV95kaoqjzjFwuYQLtOI0RZre/Ke0nPaQV+g==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {+ "version": "4.34.9",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.34.9.tgz",+ "integrity": "sha512-88I+D3TeKItrw+Y/2ud4Tw0+3CxQ2kLgu3QvrogZ0OfkmX/DEppehus7L3TS2Q4lpB+hYyxhkQiYPJ6Mf5/dPg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {+ "version": "4.34.9",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.34.9.tgz",+ "integrity": "sha512-3qyfWljSFHi9zH0KgtEPG4cBXHDFhwD8kwg6xLfHQ0IWuH9crp005GfoUUh/6w9/FWGBwEHg3lxK1iHRN1MFlA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-gnu": {+ "version": "4.34.9",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.34.9.tgz",+ "integrity": "sha512-6TZjPHjKZUQKmVKMUowF3ewHxctrRR09eYyvT5eFv8w/fXarEra83A2mHTVJLA5xU91aCNOUnM+DWFMSbQ0Nxw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-musl": {+ "version": "4.34.9",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.34.9.tgz",+ "integrity": "sha512-LD2fytxZJZ6xzOKnMbIpgzFOuIKlxVOpiMAXawsAZ2mHBPEYOnLRK5TTEsID6z4eM23DuO88X0Tq1mErHMVq0A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loongarch64-gnu": {+ "version": "4.34.9",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.34.9.tgz",+ "integrity": "sha512-dRAgTfDsn0TE0HI6cmo13hemKpVHOEyeciGtvlBTkpx/F65kTvShtY/EVyZEIfxFkV5JJTuQ9tP5HGBS0hfxIg==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-powerpc64le-gnu": {+ "version": "4.34.9",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.34.9.tgz",+ "integrity": "sha512-PHcNOAEhkoMSQtMf+rJofwisZqaU8iQ8EaSps58f5HYll9EAY5BSErCZ8qBDMVbq88h4UxaNPlbrKqfWP8RfJA==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {+ "version": "4.34.9",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.34.9.tgz",+ "integrity": "sha512-Z2i0Uy5G96KBYKjeQFKbbsB54xFOL5/y1P5wNBsbXB8yE+At3oh0DVMjQVzCJRJSfReiB2tX8T6HUFZ2k8iaKg==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-s390x-gnu": {+ "version": "4.34.9",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.34.9.tgz",+ "integrity": "sha512-U+5SwTMoeYXoDzJX5dhDTxRltSrIax8KWwfaaYcynuJw8mT33W7oOgz0a+AaXtGuvhzTr2tVKh5UO8GVANTxyQ==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-gnu": {+ "version": "4.34.9",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.34.9.tgz",+ "integrity": "sha512-FwBHNSOjUTQLP4MG7y6rR6qbGw4MFeQnIBrMe161QGaQoBQLqSUEKlHIiVgF3g/mb3lxlxzJOpIBhaP+C+KP2A==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-musl": {+ "version": "4.34.9",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.34.9.tgz",+ "integrity": "sha512-cYRpV4650z2I3/s6+5/LONkjIz8MBeqrk+vPXV10ORBnshpn8S32bPqQ2Utv39jCiDcO2eJTuSlPXpnvmaIgRA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-win32-arm64-msvc": {+ "version": "4.34.9",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.34.9.tgz",+ "integrity": "sha512-z4mQK9dAN6byRA/vsSgQiPeuO63wdiDxZ9yg9iyX2QTzKuQM7T4xlBoeUP/J8uiFkqxkcWndWi+W7bXdPbt27Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-ia32-msvc": {+ "version": "4.34.9",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.34.9.tgz",+ "integrity": "sha512-KB48mPtaoHy1AwDNkAJfHXvHp24H0ryZog28spEs0V48l3H1fr4i37tiyHsgKZJnCmvxsbATdZGBpbmxTE3a9w==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-msvc": {+ "version": "4.34.9",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.34.9.tgz",+ "integrity": "sha512-AyleYRPU7+rgkMWbEh71fQlrzRfeP6SyMnRf9XX4fCdDPAJumdSBqYEcWPMzVQ4ScAl7E4oFfK0GUVn77xSwbw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@sindresorhus/is": {+ "version": "5.6.0",+ "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-5.6.0.tgz",+ "integrity": "sha512-TV7t8GKYaJWsn00tFDqBw8+Uqmr8A0fRU1tvTQhyZzGv0sJCGRQL3JGMI3ucuKo3XIZdUP+Lx7/gh2t3lewy7g==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.16"+ },+ "funding": {+ "url": "https://github.com/sindresorhus/is?sponsor=1"+ }+ },+ "node_modules/@szmarczak/http-timer": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-5.0.1.tgz",+ "integrity": "sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "defer-to-connect": "^2.0.1"+ },+ "engines": {+ "node": ">=14.16"+ }+ },+ "node_modules/@types/babel__core": {+ "version": "7.20.5",+ "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",+ "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.20.7",+ "@babel/types": "^7.20.7",+ "@types/babel__generator": "*",+ "@types/babel__template": "*",+ "@types/babel__traverse": "*"+ }+ },+ "node_modules/@types/babel__generator": {+ "version": "7.6.8",+ "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz",+ "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.0.0"+ }+ },+ "node_modules/@types/babel__template": {+ "version": "7.4.4",+ "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",+ "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.1.0",+ "@babel/types": "^7.0.0"+ }+ },+ "node_modules/@types/babel__traverse": {+ "version": "7.20.6",+ "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.6.tgz",+ "integrity": "sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.20.7"+ }+ },+ "node_modules/@types/chrome": {+ "version": "0.0.280",+ "resolved": "https://registry.npmjs.org/@types/chrome/-/chrome-0.0.280.tgz",+ "integrity": "sha512-AotSmZrL9bcZDDmSI1D9dE7PGbhOur5L0cKxXd7IqbVizQWCY4gcvupPUVsQ4FfDj3V2tt/iOpomT9EY0s+w1g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/filesystem": "*",+ "@types/har-format": "*"+ }+ },+ "node_modules/@types/cookie": {+ "version": "0.6.0",+ "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.6.0.tgz",+ "integrity": "sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==",+ "license": "MIT"+ },+ "node_modules/@types/estree": {+ "version": "1.0.6",+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz",+ "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/filesystem": {+ "version": "0.0.36",+ "resolved": "https://registry.npmjs.org/@types/filesystem/-/filesystem-0.0.36.tgz",+ "integrity": "sha512-vPDXOZuannb9FZdxgHnqSwAG/jvdGM8Wq+6N4D/d80z+D4HWH+bItqsZaVRQykAn6WEVeEkLm2oQigyHtgb0RA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/filewriter": "*"+ }+ },+ "node_modules/@types/filewriter": {+ "version": "0.0.33",+ "resolved": "https://registry.npmjs.org/@types/filewriter/-/filewriter-0.0.33.tgz",+ "integrity": "sha512-xFU8ZXTw4gd358lb2jw25nxY9QAgqn2+bKKjKOYfNCzN4DKCFetK7sPtrlpg66Ywe3vWY9FNxprZawAh9wfJ3g==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/har-format": {+ "version": "1.2.16",+ "resolved": "https://registry.npmjs.org/@types/har-format/-/har-format-1.2.16.tgz",+ "integrity": "sha512-fluxdy7ryD3MV6h8pTfTYpy/xQzCFC7m89nOH9y94cNqJ1mDIDPut7MnRHI3F6qRmh/cT2fUjG1MLdCNb4hE9A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/http-cache-semantics": {+ "version": "4.0.4",+ "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.4.tgz",+ "integrity": "sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/minimatch": {+ "version": "3.0.5",+ "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz",+ "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/node": {+ "version": "22.13.9",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.9.tgz",+ "integrity": "sha512-acBjXdRJ3A6Pb3tqnw9HZmyR3Fiol3aGxRCK1x3d+6CDAMjl7I649wpSd+yNURCjbOUGu9tqtLKnTGxmK6CyGw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "undici-types": "~6.20.0"+ }+ },+ "node_modules/@types/react": {+ "version": "19.0.10",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-19.0.10.tgz",+ "integrity": "sha512-JuRQ9KXLEjaUNjTWpzuR231Z2WpIwczOkBEIvbHNCzQefFIT0L8IqE6NV6ULLyC1SI/i234JnDoMkfg+RjQj2g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "csstype": "^3.0.2"+ }+ },+ "node_modules/@types/react-dom": {+ "version": "19.0.4",+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.0.4.tgz",+ "integrity": "sha512-4fSQ8vWFkg+TGhePfUzVmat3eC14TXYSsiiDSLI0dVLsrm9gZFABjPy/Qu6TKgl1tq1Bu1yDsuQgY3A3DOjCcg==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "^19.0.0"+ }+ },+ "node_modules/@types/webextension-polyfill": {+ "version": "0.12.3",+ "resolved": "https://registry.npmjs.org/@types/webextension-polyfill/-/webextension-polyfill-0.12.3.tgz",+ "integrity": "sha512-F58aDVSeN/MjUGazXo/cPsmR76EvqQhQ1v4x23hFjUX0cfAJYE+JBWwiOGW36/VJGGxoH74sVlRIF3z7SJCKyg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/yauzl": {+ "version": "2.10.3",+ "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz",+ "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@types/node": "*"+ }+ },+ "node_modules/@vitejs/plugin-react": {+ "version": "4.3.4",+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.3.4.tgz",+ "integrity": "sha512-SCCPBJtYLdE8PX/7ZQAs1QAZ8Jqwih+0VBLum1EGqmCCQal+MIUqLCzj3ZUy8ufbC0cAM4LRlSTm7IQJwWT4ug==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/core": "^7.26.0",+ "@babel/plugin-transform-react-jsx-self": "^7.25.9",+ "@babel/plugin-transform-react-jsx-source": "^7.25.9",+ "@types/babel__core": "^7.20.5",+ "react-refresh": "^0.14.2"+ },+ "engines": {+ "node": "^14.18.0 || >=16.0.0"+ },+ "peerDependencies": {+ "vite": "^4.2.0 || ^5.0.0 || ^6.0.0"+ }+ },+ "node_modules/@webext-core/fake-browser": {+ "version": "1.3.2",+ "resolved": "https://registry.npmjs.org/@webext-core/fake-browser/-/fake-browser-1.3.2.tgz",+ "integrity": "sha512-jFyPWWz+VkHAC9DRIiIPOyu6X/KlC8dYqSKweHz6tsDb86QawtVgZSpYcM+GOQBlZc5DHFo92jJ7cIq4uBnU0A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "lodash.merge": "^4.6.2"+ }+ },+ "node_modules/@webext-core/isolated-element": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@webext-core/isolated-element/-/isolated-element-1.1.2.tgz",+ "integrity": "sha512-CNHYhsIR8TPkPb+4yqTIuzaGnVn/Fshev5fyoPW+/8Cyc93tJbCjP9PC1XSK6fDWu+xASdPHLZaoa2nWAYoxeQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-potential-custom-element-name": "^1.0.1"+ }+ },+ "node_modules/@webext-core/match-patterns": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/@webext-core/match-patterns/-/match-patterns-1.0.3.tgz",+ "integrity": "sha512-NY39ACqCxdKBmHgw361M9pfJma8e4AZo20w9AY+5ZjIj1W2dvXC8J31G5fjfOGbulW9w4WKpT8fPooi0mLkn9A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@wxt-dev/module-react": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/@wxt-dev/module-react/-/module-react-1.1.3.tgz",+ "integrity": "sha512-ede2FLS3sdJwtyI61jvY1UiF194ouv3wxm+fCYjfP4FfvoXQbif8UuusYBC0KSa/L2AL9Cfa/lEvsdNYrKFUaA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitejs/plugin-react": "^4.3.4"+ },+ "peerDependencies": {+ "wxt": ">=0.19.16"+ }+ },+ "node_modules/@wxt-dev/storage": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@wxt-dev/storage/-/storage-1.1.0.tgz",+ "integrity": "sha512-veya6MAc8B531W/zgm7JcCQa254B2YsMb3h9D48kUUghBDMKXqoioKSfVWEF+TbbswsMP3H9qfZ2bobNKcP+2g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "async-mutex": "^0.5.0",+ "dequal": "^2.0.3"+ }+ },+ "node_modules/acorn": {+ "version": "8.14.1",+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz",+ "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "acorn": "bin/acorn"+ },+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/adm-zip": {+ "version": "0.5.16",+ "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.16.tgz",+ "integrity": "sha512-TGw5yVi4saajsSEgz25grObGHEUaDrniwvA2qwSC060KfqGPdglhvPMA2lPIoxs3PQIItj2iag35fONcQqgUaQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12.0"+ }+ },+ "node_modules/agent-base": {+ "version": "7.1.3",+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz",+ "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/ansi-align": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz",+ "integrity": "sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "string-width": "^4.1.0"+ }+ },+ "node_modules/ansi-align/node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/ansi-align/node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/ansi-align/node_modules/is-fullwidth-code-point": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/ansi-align/node_modules/string-width": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/ansi-align/node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/ansi-escapes": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-7.0.0.tgz",+ "integrity": "sha512-GdYO7a61mR0fOlAsvC9/rIHf7L96sBc6dEWzeOu+KAea5bZyQRPIpojrVoI4AXGJS/ycu/fBTdLrUkA4ODrvjw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "environment": "^1.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/ansi-regex": {+ "version": "6.1.0",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz",+ "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"+ }+ },+ "node_modules/ansi-styles": {+ "version": "6.2.1",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz",+ "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/any-promise": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",+ "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/anymatch": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",+ "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "normalize-path": "^3.0.0",+ "picomatch": "^2.0.4"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/arg": {+ "version": "5.0.2",+ "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",+ "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/argon2-browser": {+ "version": "1.18.0",+ "resolved": "https://registry.npmjs.org/argon2-browser/-/argon2-browser-1.18.0.tgz",+ "integrity": "sha512-ImVAGIItnFnvET1exhsQB7apRztcoC5TnlSqernMJDUjbc/DLq3UEYeXFrLPrlaIl8cVfwnXb6wX2KpFf2zxHw==",+ "license": "MIT"+ },+ "node_modules/array-buffer-to-hex": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/array-buffer-to-hex/-/array-buffer-to-hex-1.0.0.tgz",+ "integrity": "sha512-arycdkxgK1cj6s03GDb96tlCxOl1n3kg9M2OHseUc6Pqyqp+lgfceFPmG507eI5V+oxOSEnlOw/dFc7LXBXF4Q==",+ "license": "MIT"+ },+ "node_modules/array-differ": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-4.0.0.tgz",+ "integrity": "sha512-Q6VPTLMsmXZ47ENG3V+wQyZS1ZxXMxFyYzA+Z/GMrJ6yIutAIEf9wTyroTzmGjNfox9/h3GdGBCVh43GVFx4Uw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/array-union": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/array-union/-/array-union-3.0.1.tgz",+ "integrity": "sha512-1OvF9IbWwaeiM9VhzYXVQacMibxpXOMYVNIvMtKRyX9SImBXpKcFr8XvFDeEslCyuH/t6KRt7HEO94AlP8Iatw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/async": {+ "version": "3.2.6",+ "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz",+ "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/async-mutex": {+ "version": "0.5.0",+ "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.5.0.tgz",+ "integrity": "sha512-1A94B18jkJ3DYq284ohPxoXbfTA5HsQ7/Mf4DEhcyLx3Bz27Rh59iScbB6EPiP+B+joue6YCxcMXSbFC1tZKwA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tslib": "^2.4.0"+ }+ },+ "node_modules/asynckit": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",+ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/at-least-node": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz",+ "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">= 4.0.0"+ }+ },+ "node_modules/autoprefixer": {+ "version": "10.4.20",+ "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.20.tgz",+ "integrity": "sha512-XY25y5xSv/wEoqzDyXXME4AFfkZI0P23z6Fs3YgymDnKJkCGOnkL0iTxCa85UTqaSgfcqyf3UA6+c7wUvx/16g==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/autoprefixer"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "browserslist": "^4.23.3",+ "caniuse-lite": "^1.0.30001646",+ "fraction.js": "^4.3.7",+ "normalize-range": "^0.1.2",+ "picocolors": "^1.0.1",+ "postcss-value-parser": "^4.2.0"+ },+ "bin": {+ "autoprefixer": "bin/autoprefixer"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ },+ "peerDependencies": {+ "postcss": "^8.1.0"+ }+ },+ "node_modules/balanced-match": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/base64-js": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT"+ },+ "node_modules/big-integer": {+ "version": "1.6.52",+ "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.52.tgz",+ "integrity": "sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==",+ "dev": true,+ "license": "Unlicense",+ "engines": {+ "node": ">=0.6"+ }+ },+ "node_modules/binary-extensions": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",+ "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/bl": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/bl/-/bl-5.1.0.tgz",+ "integrity": "sha512-tv1ZJHLfTDnXE6tMHv73YgSJaWR2AFuPwMntBe7XL/GBFHnT0CLnsHMogfk5+GzCDC5ZWarSCYaIGATZt9dNsQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "buffer": "^6.0.3",+ "inherits": "^2.0.4",+ "readable-stream": "^3.4.0"+ }+ },+ "node_modules/bl/node_modules/readable-stream": {+ "version": "3.6.2",+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",+ "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "inherits": "^2.0.3",+ "string_decoder": "^1.1.1",+ "util-deprecate": "^1.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/bluebird": {+ "version": "3.7.2",+ "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz",+ "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/boolbase": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",+ "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/boxen": {+ "version": "7.1.1",+ "resolved": "https://registry.npmjs.org/boxen/-/boxen-7.1.1.tgz",+ "integrity": "sha512-2hCgjEmP8YLWQ130n2FerGv7rYpfBmnmp9Uy2Le1vge6X3gZIfSmEzP5QTDElFxcvVcXlEn8Aq6MU/PZygIOog==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-align": "^3.0.1",+ "camelcase": "^7.0.1",+ "chalk": "^5.2.0",+ "cli-boxes": "^3.0.0",+ "string-width": "^5.1.2",+ "type-fest": "^2.13.0",+ "widest-line": "^4.0.1",+ "wrap-ansi": "^8.1.0"+ },+ "engines": {+ "node": ">=14.16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/boxen/node_modules/emoji-regex": {+ "version": "9.2.2",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",+ "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/boxen/node_modules/string-width": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz",+ "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "eastasianwidth": "^0.2.0",+ "emoji-regex": "^9.2.2",+ "strip-ansi": "^7.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/boxen/node_modules/type-fest": {+ "version": "2.19.0",+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz",+ "integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==",+ "dev": true,+ "license": "(MIT OR CC0-1.0)",+ "engines": {+ "node": ">=12.20"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/boxen/node_modules/wrap-ansi": {+ "version": "8.1.0",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz",+ "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^6.1.0",+ "string-width": "^5.0.1",+ "strip-ansi": "^7.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },+ "node_modules/bplist-parser": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.2.0.tgz",+ "integrity": "sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "big-integer": "^1.6.44"+ },+ "engines": {+ "node": ">= 5.10.0"+ }+ },+ "node_modules/brace-expansion": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",+ "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0"+ }+ },+ "node_modules/braces": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",+ "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fill-range": "^7.1.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/browserslist": {+ "version": "4.24.4",+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.4.tgz",+ "integrity": "sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/browserslist"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "caniuse-lite": "^1.0.30001688",+ "electron-to-chromium": "^1.5.73",+ "node-releases": "^2.0.19",+ "update-browserslist-db": "^1.1.1"+ },+ "bin": {+ "browserslist": "cli.js"+ },+ "engines": {+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"+ }+ },+ "node_modules/buffer": {+ "version": "6.0.3",+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz",+ "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "base64-js": "^1.3.1",+ "ieee754": "^1.2.1"+ }+ },+ "node_modules/buffer-crc32": {+ "version": "0.2.13",+ "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",+ "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "*"+ }+ },+ "node_modules/buffer-from": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",+ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/bundle-name": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.0.tgz",+ "integrity": "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "run-applescript": "^7.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/bunyan": {+ "version": "1.8.15",+ "resolved": "https://registry.npmjs.org/bunyan/-/bunyan-1.8.15.tgz",+ "integrity": "sha512-0tECWShh6wUysgucJcBAoYegf3JJoZWibxdqhTm7OHPeT42qdjkZ29QCMcKwbgU1kiH+auSIasNRXMLWXafXig==",+ "dev": true,+ "engines": [+ "node >=0.10.0"+ ],+ "license": "MIT",+ "bin": {+ "bunyan": "bin/bunyan"+ },+ "optionalDependencies": {+ "dtrace-provider": "~0.8",+ "moment": "^2.19.3",+ "mv": "~2",+ "safe-json-stringify": "~1"+ }+ },+ "node_modules/c12": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/c12/-/c12-3.0.2.tgz",+ "integrity": "sha512-6Tzk1/TNeI3WBPpK0j/Ss4+gPj3PUJYbWl/MWDJBThFvwNGNkXtd7Cz8BJtD4aRwoGHtzQD0SnxamgUiBH0/Nw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "chokidar": "^4.0.3",+ "confbox": "^0.1.8",+ "defu": "^6.1.4",+ "dotenv": "^16.4.7",+ "exsolve": "^1.0.0",+ "giget": "^2.0.0",+ "jiti": "^2.4.2",+ "ohash": "^2.0.5",+ "pathe": "^2.0.3",+ "perfect-debounce": "^1.0.0",+ "pkg-types": "^2.0.0",+ "rc9": "^2.1.2"+ },+ "peerDependencies": {+ "magicast": "^0.3.5"+ },+ "peerDependenciesMeta": {+ "magicast": {+ "optional": true+ }+ }+ },+ "node_modules/c12/node_modules/giget": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/giget/-/giget-2.0.0.tgz",+ "integrity": "sha512-L5bGsVkxJbJgdnwyuheIunkGatUF/zssUoxxjACCseZYAVbaqdh9Tsmmlkl8vYan09H7sbvKt4pS8GqKLBrEzA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "citty": "^0.1.6",+ "consola": "^3.4.0",+ "defu": "^6.1.4",+ "node-fetch-native": "^1.6.6",+ "nypm": "^0.6.0",+ "pathe": "^2.0.3"+ },+ "bin": {+ "giget": "dist/cli.mjs"+ }+ },+ "node_modules/c12/node_modules/nypm": {+ "version": "0.6.0",+ "resolved": "https://registry.npmjs.org/nypm/-/nypm-0.6.0.tgz",+ "integrity": "sha512-mn8wBFV9G9+UFHIrq+pZ2r2zL4aPau/by3kJb3cM7+5tQHMt6HGQB8FDIeKFYp8o0D2pnH6nVsO88N4AmUxIWg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "citty": "^0.1.6",+ "consola": "^3.4.0",+ "pathe": "^2.0.3",+ "pkg-types": "^2.0.0",+ "tinyexec": "^0.3.2"+ },+ "bin": {+ "nypm": "dist/cli.mjs"+ },+ "engines": {+ "node": "^14.16.0 || >=16.10.0"+ }+ },+ "node_modules/c12/node_modules/ohash": {+ "version": "2.0.11",+ "resolved": "https://registry.npmjs.org/ohash/-/ohash-2.0.11.tgz",+ "integrity": "sha512-RdR9FQrFwNBNXAr4GixM8YaRZRJ5PUWbKYbE5eOsrwAjJW0q2REGcf79oYPsLyskQCZG1PLN+S/K1V00joZAoQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/cac": {+ "version": "6.7.14",+ "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz",+ "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/cacheable-lookup": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-7.0.0.tgz",+ "integrity": "sha512-+qJyx4xiKra8mZrcwhjMRMUhD5NR1R8esPkzIYxX96JiecFoxAXFuz/GpR3+ev4PE1WamHip78wV0vcmPQtp8w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.16"+ }+ },+ "node_modules/cacheable-request": {+ "version": "10.2.14",+ "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-10.2.14.tgz",+ "integrity": "sha512-zkDT5WAF4hSSoUgyfg5tFIxz8XQK+25W/TLVojJTMKBaxevLBBtLxgqguAuVQB8PVW79FVjHcU+GJ9tVbDZ9mQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/http-cache-semantics": "^4.0.2",+ "get-stream": "^6.0.1",+ "http-cache-semantics": "^4.1.1",+ "keyv": "^4.5.3",+ "mimic-response": "^4.0.0",+ "normalize-url": "^8.0.0",+ "responselike": "^3.0.0"+ },+ "engines": {+ "node": ">=14.16"+ }+ },+ "node_modules/cacheable-request/node_modules/get-stream": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",+ "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/call-bind-apply-helpers": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/camelcase": {+ "version": "7.0.1",+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-7.0.1.tgz",+ "integrity": "sha512-xlx1yCK2Oc1APsPXDL2LdlNP6+uu8OCDdhOBSVT279M/S+y75O30C2VuD8T2ogdePBBl7PfPF4504tnLgX3zfw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/camelcase-css": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz",+ "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/caniuse-lite": {+ "version": "1.0.30001702",+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001702.tgz",+ "integrity": "sha512-LoPe/D7zioC0REI5W73PeR1e1MLCipRGq/VkovJnd6Df+QVqT+vT33OXCp8QUd7kA7RZrHWxb1B36OQKI/0gOA==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "CC-BY-4.0"+ },+ "node_modules/chalk": {+ "version": "5.4.1",+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz",+ "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^12.17.0 || ^14.13 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/chalk/chalk?sponsor=1"+ }+ },+ "node_modules/chokidar": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz",+ "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "readdirp": "^4.0.1"+ },+ "engines": {+ "node": ">= 14.16.0"+ },+ "funding": {+ "url": "https://paulmillr.com/funding/"+ }+ },+ "node_modules/chownr": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz",+ "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/chrome-launcher": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/chrome-launcher/-/chrome-launcher-1.1.0.tgz",+ "integrity": "sha512-rJYWeEAERwWIr3c3mEVXwNiODPEdMRlRxHc47B1qHPOolHZnkj7rMv1QSUfPoG6MgatWj5AxSpnKKR4QEwEQIQ==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@types/node": "*",+ "escape-string-regexp": "^4.0.0",+ "is-wsl": "^2.2.0",+ "lighthouse-logger": "^2.0.1"+ },+ "bin": {+ "print-chrome-path": "bin/print-chrome-path.js"+ },+ "engines": {+ "node": ">=12.13.0"+ }+ },+ "node_modules/chrome-launcher/node_modules/escape-string-regexp": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/chrome-launcher/node_modules/is-docker": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",+ "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "is-docker": "cli.js"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/chrome-launcher/node_modules/is-wsl": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",+ "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-docker": "^2.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/ci-info": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.1.0.tgz",+ "integrity": "sha512-HutrvTNsF48wnxkzERIXOe5/mlcfFcbfCmwcg6CJnizbSue78AbDt+1cgl26zwn61WFxhcPykPfZrbqjGmBb4A==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/sibiraj-s"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/citty": {+ "version": "0.1.6",+ "resolved": "https://registry.npmjs.org/citty/-/citty-0.1.6.tgz",+ "integrity": "sha512-tskPPKEs8D2KPafUypv2gxwJP8h/OaJmC82QQGGDQcHvXX43xF2VDACcJVmZ0EuSxkpO9Kc4MlrA3q0+FG58AQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "consola": "^3.2.3"+ }+ },+ "node_modules/cli-boxes": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-3.0.0.tgz",+ "integrity": "sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/cli-cursor": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-5.0.0.tgz",+ "integrity": "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "restore-cursor": "^5.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/cli-highlight": {+ "version": "2.1.11",+ "resolved": "https://registry.npmjs.org/cli-highlight/-/cli-highlight-2.1.11.tgz",+ "integrity": "sha512-9KDcoEVwyUXrjcJNvHD0NFc/hiwe/WPVYIleQh2O1N2Zro5gWJZ/K+3DGn8w8P/F6FxOgzyC5bxDyHIgCSPhGg==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "chalk": "^4.0.0",+ "highlight.js": "^10.7.1",+ "mz": "^2.4.0",+ "parse5": "^5.1.1",+ "parse5-htmlparser2-tree-adapter": "^6.0.0",+ "yargs": "^16.0.0"+ },+ "bin": {+ "highlight": "bin/highlight"+ },+ "engines": {+ "node": ">=8.0.0",+ "npm": ">=5.0.0"+ }+ },+ "node_modules/cli-highlight/node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/cli-highlight/node_modules/ansi-styles": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "color-convert": "^2.0.1"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/cli-highlight/node_modules/chalk": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^4.1.0",+ "supports-color": "^7.1.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/chalk?sponsor=1"+ }+ },+ "node_modules/cli-highlight/node_modules/cliui": {+ "version": "7.0.4",+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",+ "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "string-width": "^4.2.0",+ "strip-ansi": "^6.0.0",+ "wrap-ansi": "^7.0.0"+ }+ },+ "node_modules/cli-highlight/node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/cli-highlight/node_modules/is-fullwidth-code-point": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/cli-highlight/node_modules/string-width": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/cli-highlight/node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/cli-highlight/node_modules/wrap-ansi": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^4.0.0",+ "string-width": "^4.1.0",+ "strip-ansi": "^6.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },+ "node_modules/cli-highlight/node_modules/yargs": {+ "version": "16.2.0",+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz",+ "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cliui": "^7.0.2",+ "escalade": "^3.1.1",+ "get-caller-file": "^2.0.5",+ "require-directory": "^2.1.1",+ "string-width": "^4.2.0",+ "y18n": "^5.0.5",+ "yargs-parser": "^20.2.2"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/cli-highlight/node_modules/yargs-parser": {+ "version": "20.2.9",+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz",+ "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/cli-spinners": {+ "version": "2.9.2",+ "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz",+ "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/cli-truncate": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-4.0.0.tgz",+ "integrity": "sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "slice-ansi": "^5.0.0",+ "string-width": "^7.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/cliui": {+ "version": "8.0.1",+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",+ "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "string-width": "^4.2.0",+ "strip-ansi": "^6.0.1",+ "wrap-ansi": "^7.0.0"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/cliui/node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/cliui/node_modules/ansi-styles": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "color-convert": "^2.0.1"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/cliui/node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/cliui/node_modules/is-fullwidth-code-point": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/cliui/node_modules/string-width": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/cliui/node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/cliui/node_modules/wrap-ansi": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^4.0.0",+ "string-width": "^4.1.0",+ "strip-ansi": "^6.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },+ "node_modules/clone": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz",+ "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.8"+ }+ },+ "node_modules/color-convert": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "color-name": "~1.1.4"+ },+ "engines": {+ "node": ">=7.0.0"+ }+ },+ "node_modules/color-name": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/colorette": {+ "version": "2.0.20",+ "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz",+ "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/combined-stream": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "delayed-stream": "~1.0.0"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/commander": {+ "version": "9.5.0",+ "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz",+ "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^12.20.0 || >=14"+ }+ },+ "node_modules/concat-map": {+ "version": "0.0.1",+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/concat-stream": {+ "version": "1.6.2",+ "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz",+ "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==",+ "dev": true,+ "engines": [+ "node >= 0.8"+ ],+ "license": "MIT",+ "dependencies": {+ "buffer-from": "^1.0.0",+ "inherits": "^2.0.3",+ "readable-stream": "^2.2.2",+ "typedarray": "^0.0.6"+ }+ },+ "node_modules/confbox": {+ "version": "0.1.8",+ "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz",+ "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/config-chain": {+ "version": "1.1.13",+ "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz",+ "integrity": "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ini": "^1.3.4",+ "proto-list": "~1.2.1"+ }+ },+ "node_modules/config-chain/node_modules/ini": {+ "version": "1.3.8",+ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",+ "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/configstore": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/configstore/-/configstore-6.0.0.tgz",+ "integrity": "sha512-cD31W1v3GqUlQvbBCGcXmd2Nj9SvLDOP1oQ0YFuLETufzSPaKp11rYBsSOm7rCsW3OnIRAFM3OxRhceaXNYHkA==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "dot-prop": "^6.0.1",+ "graceful-fs": "^4.2.6",+ "unique-string": "^3.0.0",+ "write-file-atomic": "^3.0.3",+ "xdg-basedir": "^5.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/yeoman/configstore?sponsor=1"+ }+ },+ "node_modules/consola": {+ "version": "3.4.0",+ "resolved": "https://registry.npmjs.org/consola/-/consola-3.4.0.tgz",+ "integrity": "sha512-EiPU8G6dQG0GFHNR8ljnZFki/8a+cQwEQ+7wpxdChl02Q8HXlwEZWD5lqAF8vC2sEC3Tehr8hy7vErz88LHyUA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^14.18.0 || >=16.10.0"+ }+ },+ "node_modules/convert-source-map": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/cookie": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.0.2.tgz",+ "integrity": "sha512-9Kr/j4O16ISv8zBBhJoi4bXOYNTkFLOqSL3UDB0njXxCXNezjeyVrJyGOWtgfs/q2km1gwBcfH8q1yEGoMYunA==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/core-util-is": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz",+ "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/cross-spawn": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "path-key": "^3.1.0",+ "shebang-command": "^2.0.0",+ "which": "^2.0.1"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/crypto-digest-sync": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/crypto-digest-sync/-/crypto-digest-sync-1.0.0.tgz",+ "integrity": "sha512-UQBOB5z+HF4iA8shKQ3PPwhCmdFAihwcytD1Qh4uiz78x04cZZmKtZ1F1VyAjkrA8uEZqXt2tMXfj3dJHtcbng==",+ "license": "MIT"+ },+ "node_modules/crypto-random-hex": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/crypto-random-hex/-/crypto-random-hex-1.0.0.tgz",+ "integrity": "sha512-1DuZQ03El13TRgfrqbbjW40Gvi4OKInny/Wxqj23/JMXe214C/3Tlz92bKXWDW3NZT5RjXUGdYW4qiIOUPf+cA==",+ "license": "MIT",+ "dependencies": {+ "array-buffer-to-hex": "^1.0.0"+ }+ },+ "node_modules/crypto-random-string": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-4.0.0.tgz",+ "integrity": "sha512-x8dy3RnvYdlUcPOjkEHqozhiwzKNSq7GcPuXFbnyMOCHxX8V3OgIg/pYuabl2sbUPfIJaeAQB7PMOK8DFIdoRA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "type-fest": "^1.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/crypto-random-string/node_modules/type-fest": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-1.4.0.tgz",+ "integrity": "sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==",+ "dev": true,+ "license": "(MIT OR CC0-1.0)",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/css-select": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz",+ "integrity": "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "boolbase": "^1.0.0",+ "css-what": "^6.1.0",+ "domhandler": "^5.0.2",+ "domutils": "^3.0.1",+ "nth-check": "^2.0.1"+ },+ "funding": {+ "url": "https://github.com/sponsors/fb55"+ }+ },+ "node_modules/css-what": {+ "version": "6.1.0",+ "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz",+ "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">= 6"+ },+ "funding": {+ "url": "https://github.com/sponsors/fb55"+ }+ },+ "node_modules/cssesc": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",+ "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "cssesc": "bin/cssesc"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/cssom": {+ "version": "0.5.0",+ "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.5.0.tgz",+ "integrity": "sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/cssstyle": {+ "version": "4.2.1",+ "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-4.2.1.tgz",+ "integrity": "sha512-9+vem03dMXG7gDmZ62uqmRiMRNtinIZ9ZyuF6BdxzfOD+FdN5hretzynkn0ReS2DO2GSw76RWHs0UmJPI2zUjw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@asamuzakjp/css-color": "^2.8.2",+ "rrweb-cssom": "^0.8.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/csstype": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",+ "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/data-urls": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-5.0.0.tgz",+ "integrity": "sha512-ZYP5VBHshaDAiVZxjbRVcFJpc+4xGgT0bK3vzy1HLN8jTO975HEbuYzZJcHoQEY5K1a0z8YayJkyVETa08eNTg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "whatwg-mimetype": "^4.0.0",+ "whatwg-url": "^14.0.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/debounce": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/debounce/-/debounce-1.2.1.tgz",+ "integrity": "sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/debug": {+ "version": "4.4.0",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz",+ "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/decimal.js": {+ "version": "10.5.0",+ "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.5.0.tgz",+ "integrity": "sha512-8vDa8Qxvr/+d94hSh5P3IJwI5t8/c0KsMp+g8bNw9cY2icONa5aPfvKeieW1WlG0WQYwwhJ7mjui2xtiePQSXw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/decompress-response": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",+ "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mimic-response": "^3.1.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/decompress-response/node_modules/mimic-response": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",+ "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/deep-extend": {+ "version": "0.6.0",+ "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",+ "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4.0.0"+ }+ },+ "node_modules/default-browser": {+ "version": "5.2.1",+ "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.2.1.tgz",+ "integrity": "sha512-WY/3TUME0x3KPYdRRxEJJvXRHV4PyPoUsxtZa78lwItwRQRHhd2U9xOscaT/YTf8uCXIAjeJOFBVEh/7FtD8Xg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "bundle-name": "^4.1.0",+ "default-browser-id": "^5.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/default-browser-id": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.0.tgz",+ "integrity": "sha512-A6p/pu/6fyBcA1TRz/GqWYPViplrftcW2gZC9q79ngNCKAeR/X3gcEdXQHl4KNXV+3wgIJ1CPkJQ3IHM6lcsyA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/defaults": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz",+ "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "clone": "^1.0.2"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/defer-to-connect": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz",+ "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/define-lazy-prop": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz",+ "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/defu": {+ "version": "6.1.4",+ "resolved": "https://registry.npmjs.org/defu/-/defu-6.1.4.tgz",+ "integrity": "sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/delayed-stream": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",+ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/dequal": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",+ "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/destr": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/destr/-/destr-2.0.3.tgz",+ "integrity": "sha512-2N3BOUU4gYMpTP24s5rF5iP7BDr7uNTCs4ozw3kf/eKfvWSIu93GEBi5m427YoyJoeOzQ5smuu4nNAPGb8idSQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/didyoumean": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",+ "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==",+ "dev": true,+ "license": "Apache-2.0"+ },+ "node_modules/dlv": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",+ "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/dom-serializer": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz",+ "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "domelementtype": "^2.3.0",+ "domhandler": "^5.0.2",+ "entities": "^4.2.0"+ },+ "funding": {+ "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1"+ }+ },+ "node_modules/domelementtype": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz",+ "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/fb55"+ }+ ],+ "license": "BSD-2-Clause"+ },+ "node_modules/domhandler": {+ "version": "5.0.3",+ "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz",+ "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "domelementtype": "^2.3.0"+ },+ "engines": {+ "node": ">= 4"+ },+ "funding": {+ "url": "https://github.com/fb55/domhandler?sponsor=1"+ }+ },+ "node_modules/domutils": {+ "version": "3.2.2",+ "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.2.2.tgz",+ "integrity": "sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "dom-serializer": "^2.0.0",+ "domelementtype": "^2.3.0",+ "domhandler": "^5.0.3"+ },+ "funding": {+ "url": "https://github.com/fb55/domutils?sponsor=1"+ }+ },+ "node_modules/dot-prop": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-6.0.1.tgz",+ "integrity": "sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-obj": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/dotenv": {+ "version": "16.4.7",+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz",+ "integrity": "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://dotenvx.com"+ }+ },+ "node_modules/dotenv-expand": {+ "version": "12.0.1",+ "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-12.0.1.tgz",+ "integrity": "sha512-LaKRbou8gt0RNID/9RoI+J2rvXsBRPMV7p+ElHlPhcSARbCPDYcYG2s1TIzAfWv4YSgyY5taidWzzs31lNV3yQ==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "dotenv": "^16.4.5"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://dotenvx.com"+ }+ },+ "node_modules/dtrace-provider": {+ "version": "0.8.8",+ "resolved": "https://registry.npmjs.org/dtrace-provider/-/dtrace-provider-0.8.8.tgz",+ "integrity": "sha512-b7Z7cNtHPhH9EJhNNbbeqTcXB8LGFFZhq1PGgEvpeHlzd36bhbdTWoE/Ba/YguqpBSlAPKnARWhVlhunCMwfxg==",+ "dev": true,+ "hasInstallScript": true,+ "license": "BSD-2-Clause",+ "optional": true,+ "dependencies": {+ "nan": "^2.14.0"+ },+ "engines": {+ "node": ">=0.10"+ }+ },+ "node_modules/dunder-proto": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.1",+ "es-errors": "^1.3.0",+ "gopd": "^1.2.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/eastasianwidth": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz",+ "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/electron-to-chromium": {+ "version": "1.5.112",+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.112.tgz",+ "integrity": "sha512-oen93kVyqSb3l+ziUgzIOlWt/oOuy4zRmpwestMn4rhFWAoFJeFuCVte9F2fASjeZZo7l/Cif9TiyrdW4CwEMA==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/emoji-regex": {+ "version": "10.4.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.4.0.tgz",+ "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/encode-utf8": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/encode-utf8/-/encode-utf8-1.0.3.tgz",+ "integrity": "sha512-ucAnuBEhUK4boH2HjVYG5Q2mQyPorvv0u/ocS+zhdw0S8AlHYY+GOFhP1Gio5z4icpP2ivFSvhtFjQi8+T9ppw==",+ "license": "MIT"+ },+ "node_modules/end-of-stream": {+ "version": "1.4.4",+ "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",+ "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "once": "^1.4.0"+ }+ },+ "node_modules/entities": {+ "version": "4.5.0",+ "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",+ "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=0.12"+ },+ "funding": {+ "url": "https://github.com/fb55/entities?sponsor=1"+ }+ },+ "node_modules/environment": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/environment/-/environment-1.1.0.tgz",+ "integrity": "sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/error-ex": {+ "version": "1.3.2",+ "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",+ "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-arrayish": "^0.2.1"+ }+ },+ "node_modules/es-define-property": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-errors": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-module-lexer": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.6.0.tgz",+ "integrity": "sha512-qqnD1yMU6tk/jnaMosogGySTZP8YtUgAffA9nMN+E/rjxcfRQ6IEk7IiozUjgxKoFHBGjTLnrHB/YC45r/59EQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/es-object-atoms": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",+ "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-set-tostringtag": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",+ "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.6",+ "has-tostringtag": "^1.0.2",+ "hasown": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es6-error": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz",+ "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/esbuild": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.0.tgz",+ "integrity": "sha512-BXq5mqc8ltbaN34cDqWuYKyNhX8D/Z0J1xdtdQ8UcIIIyJyz+ZMKUt58tF3SrZ85jcfN/PZYhjR5uDQAYNVbuw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.25.0",+ "@esbuild/android-arm": "0.25.0",+ "@esbuild/android-arm64": "0.25.0",+ "@esbuild/android-x64": "0.25.0",+ "@esbuild/darwin-arm64": "0.25.0",+ "@esbuild/darwin-x64": "0.25.0",+ "@esbuild/freebsd-arm64": "0.25.0",+ "@esbuild/freebsd-x64": "0.25.0",+ "@esbuild/linux-arm": "0.25.0",+ "@esbuild/linux-arm64": "0.25.0",+ "@esbuild/linux-ia32": "0.25.0",+ "@esbuild/linux-loong64": "0.25.0",+ "@esbuild/linux-mips64el": "0.25.0",+ "@esbuild/linux-ppc64": "0.25.0",+ "@esbuild/linux-riscv64": "0.25.0",+ "@esbuild/linux-s390x": "0.25.0",+ "@esbuild/linux-x64": "0.25.0",+ "@esbuild/netbsd-arm64": "0.25.0",+ "@esbuild/netbsd-x64": "0.25.0",+ "@esbuild/openbsd-arm64": "0.25.0",+ "@esbuild/openbsd-x64": "0.25.0",+ "@esbuild/sunos-x64": "0.25.0",+ "@esbuild/win32-arm64": "0.25.0",+ "@esbuild/win32-ia32": "0.25.0",+ "@esbuild/win32-x64": "0.25.0"+ }+ },+ "node_modules/escalade": {+ "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": {+ "node": ">=6"+ }+ },+ "node_modules/escape-goat": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-4.0.0.tgz",+ "integrity": "sha512-2Sd4ShcWxbx6OY1IHyla/CVNwvg7XwZVoXZHcSu9w9SReNP1EzzD5T8NWKIR38fIqEns9kDWKUQTXXAmlDrdPg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/escape-string-regexp": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz",+ "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/estree-walker": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",+ "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "^1.0.0"+ }+ },+ "node_modules/eventemitter3": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz",+ "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/execa": {+ "version": "8.0.1",+ "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz",+ "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cross-spawn": "^7.0.3",+ "get-stream": "^8.0.1",+ "human-signals": "^5.0.0",+ "is-stream": "^3.0.0",+ "merge-stream": "^2.0.0",+ "npm-run-path": "^5.1.0",+ "onetime": "^6.0.0",+ "signal-exit": "^4.1.0",+ "strip-final-newline": "^3.0.0"+ },+ "engines": {+ "node": ">=16.17"+ },+ "funding": {+ "url": "https://github.com/sindresorhus/execa?sponsor=1"+ }+ },+ "node_modules/exsolve": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.0.2.tgz",+ "integrity": "sha512-ZEcIMbthn2zeX4/wD/DLxDUjuCltHXT8Htvm/JFlTkdYgWh2+HGppgwwNUnIVxzxP7yJOPtuBAec0dLx6lVY8w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/extract-zip": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz",+ "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "debug": "^4.1.1",+ "get-stream": "^5.1.0",+ "yauzl": "^2.10.0"+ },+ "bin": {+ "extract-zip": "cli.js"+ },+ "engines": {+ "node": ">= 10.17.0"+ },+ "optionalDependencies": {+ "@types/yauzl": "^2.9.1"+ }+ },+ "node_modules/extract-zip/node_modules/get-stream": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz",+ "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "pump": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/fast-glob": {+ "version": "3.3.3",+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",+ "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.stat": "^2.0.2",+ "@nodelib/fs.walk": "^1.2.3",+ "glob-parent": "^5.1.2",+ "merge2": "^1.3.0",+ "micromatch": "^4.0.8"+ },+ "engines": {+ "node": ">=8.6.0"+ }+ },+ "node_modules/fastq": {+ "version": "1.19.1",+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz",+ "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "reusify": "^1.0.4"+ }+ },+ "node_modules/fd-slicer": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",+ "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "pend": "~1.2.0"+ }+ },+ "node_modules/filesize": {+ "version": "10.1.6",+ "resolved": "https://registry.npmjs.org/filesize/-/filesize-10.1.6.tgz",+ "integrity": "sha512-sJslQKU2uM33qH5nqewAwVB2QgR6w1aMNsYUp3aN5rMRyXEwJGmZvaWzeJFNTOXWlHQyBFCWrdj3fV/fsTOX8w==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">= 10.4.0"+ }+ },+ "node_modules/fill-range": {+ "version": "7.1.1",+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",+ "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "to-regex-range": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/firefox-profile": {+ "version": "4.6.0",+ "resolved": "https://registry.npmjs.org/firefox-profile/-/firefox-profile-4.6.0.tgz",+ "integrity": "sha512-I9rAm1w8U3CdhgO4EzTJsCvgcbvynZn9lOySkZf78wUdUIQH2w9QOKf3pAX+THt2XMSSR3kJSuM8P7bYux9j8g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "adm-zip": "~0.5.x",+ "fs-extra": "~9.0.1",+ "ini": "~2.0.0",+ "minimist": "^1.2.5",+ "xml2js": "^0.5.0"+ },+ "bin": {+ "firefox-profile": "lib/cli.js"+ }+ },+ "node_modules/firefox-profile/node_modules/fs-extra": {+ "version": "9.0.1",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.0.1.tgz",+ "integrity": "sha512-h2iAoN838FqAFJY2/qVpzFXy+EBxfVE220PalAqQLDVsFOHLJrZvut5puAbCdNv6WJk+B8ihI+k0c7JK5erwqQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "at-least-node": "^1.0.0",+ "graceful-fs": "^4.2.0",+ "jsonfile": "^6.0.1",+ "universalify": "^1.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/firefox-profile/node_modules/universalify": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-1.0.0.tgz",+ "integrity": "sha512-rb6X1W158d7pRQBg5gkR8uPaSfiids68LTJQYOtEUhoJUWBdaQHsuT/EUduxXYxcrt4r5PJ4fuHW1MHT6p0qug==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 10.0.0"+ }+ },+ "node_modules/foreground-child": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz",+ "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "cross-spawn": "^7.0.6",+ "signal-exit": "^4.0.1"+ },+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/form-data": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.2.tgz",+ "integrity": "sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "asynckit": "^0.4.0",+ "combined-stream": "^1.0.8",+ "es-set-tostringtag": "^2.1.0",+ "mime-types": "^2.1.12"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/form-data-encoder": {+ "version": "2.1.4",+ "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-2.1.4.tgz",+ "integrity": "sha512-yDYSgNMraqvnxiEXO4hi88+YZxaHC6QKzb5N84iRCTDeRO7ZALpir/lVmf/uXUhnwUr2O4HU8s/n6x+yNjQkHw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 14.17"+ }+ },+ "node_modules/formdata-node": {+ "version": "6.0.3",+ "resolved": "https://registry.npmjs.org/formdata-node/-/formdata-node-6.0.3.tgz",+ "integrity": "sha512-8e1++BCiTzUno9v5IZ2J6bv4RU+3UKDmqWUQD0MIMVCd9AdhWkO1gw57oo1mNEX1dMq2EGI+FbWz4B92pscSQg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 18"+ }+ },+ "node_modules/fraction.js": {+ "version": "4.3.7",+ "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz",+ "integrity": "sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "*"+ },+ "funding": {+ "type": "patreon",+ "url": "https://github.com/sponsors/rawify"+ }+ },+ "node_modules/fs-extra": {+ "version": "11.3.0",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.0.tgz",+ "integrity": "sha512-Z4XaCL6dUDHfP/jT25jJKMmtxvuwbkrD1vNSMFlo9lNLY2c5FHYSQgHPRZUjAB26TpDEoW9HCOgplrdbaPV/ew==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "graceful-fs": "^4.2.0",+ "jsonfile": "^6.0.1",+ "universalify": "^2.0.0"+ },+ "engines": {+ "node": ">=14.14"+ }+ },+ "node_modules/fs-minipass": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz",+ "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "minipass": "^3.0.0"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/fs-minipass/node_modules/minipass": {+ "version": "3.3.6",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",+ "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "yallist": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/fs-minipass/node_modules/yallist": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/fsevents": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"+ }+ },+ "node_modules/function-bind": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/fx-runner": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/fx-runner/-/fx-runner-1.4.0.tgz",+ "integrity": "sha512-rci1g6U0rdTg6bAaBboP7XdRu01dzTAaKXxFf+PUqGuCv6Xu7o8NZdY1D5MvKGIjb6EdS1g3VlXOgksir1uGkg==",+ "dev": true,+ "license": "MPL-2.0",+ "dependencies": {+ "commander": "2.9.0",+ "shell-quote": "1.7.3",+ "spawn-sync": "1.0.15",+ "when": "3.7.7",+ "which": "1.2.4",+ "winreg": "0.0.12"+ },+ "bin": {+ "fx-runner": "bin/fx-runner"+ }+ },+ "node_modules/fx-runner/node_modules/commander": {+ "version": "2.9.0",+ "resolved": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz",+ "integrity": "sha512-bmkUukX8wAOjHdN26xj5c4ctEV22TQ7dQYhSmuckKhToXrkUn0iIaolHdIxYYqD55nhpSPA9zPQ1yP57GdXP2A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "graceful-readlink": ">= 1.0.0"+ },+ "engines": {+ "node": ">= 0.6.x"+ }+ },+ "node_modules/fx-runner/node_modules/isexe": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-1.1.2.tgz",+ "integrity": "sha512-d2eJzK691yZwPHcv1LbeAOa91yMJ9QmfTgSO1oXB65ezVhXQsxBac2vEB4bMVms9cGzaA99n6V2viHMq82VLDw==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/fx-runner/node_modules/which": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/which/-/which-1.2.4.tgz",+ "integrity": "sha512-zDRAqDSBudazdfM9zpiI30Fu9ve47htYXcGi3ln0wfKu2a7SmrT6F3VDoYONu//48V8Vz4TdCRNPjtvyRO3yBA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "is-absolute": "^0.1.7",+ "isexe": "^1.1.1"+ },+ "bin": {+ "which": "bin/which"+ }+ },+ "node_modules/gensync": {+ "version": "1.0.0-beta.2",+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/get-caller-file": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": "6.* || 8.* || >= 10.*"+ }+ },+ "node_modules/get-east-asian-width": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.3.0.tgz",+ "integrity": "sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/get-intrinsic": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "es-define-property": "^1.0.1",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.1.1",+ "function-bind": "^1.1.2",+ "get-proto": "^1.0.1",+ "gopd": "^1.2.0",+ "has-symbols": "^1.1.0",+ "hasown": "^2.0.2",+ "math-intrinsics": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/get-port-please": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/get-port-please/-/get-port-please-3.1.2.tgz",+ "integrity": "sha512-Gxc29eLs1fbn6LQ4jSU4vXjlwyZhF5HsGuMAa7gqBP4Rw4yxxltyDUuF5MBclFzDTXO+ACchGQoeela4DSfzdQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/get-proto": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "dunder-proto": "^1.0.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/get-stream": {+ "version": "8.0.1",+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz",+ "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/giget": {+ "version": "1.2.5",+ "resolved": "https://registry.npmjs.org/giget/-/giget-1.2.5.tgz",+ "integrity": "sha512-r1ekGw/Bgpi3HLV3h1MRBIlSAdHoIMklpaQ3OQLFcRw9PwAj2rqigvIbg+dBUI51OxVI2jsEtDywDBjSiuf7Ug==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "citty": "^0.1.6",+ "consola": "^3.4.0",+ "defu": "^6.1.4",+ "node-fetch-native": "^1.6.6",+ "nypm": "^0.5.4",+ "pathe": "^2.0.3",+ "tar": "^6.2.1"+ },+ "bin": {+ "giget": "dist/cli.mjs"+ }+ },+ "node_modules/giget/node_modules/nypm": {+ "version": "0.5.4",+ "resolved": "https://registry.npmjs.org/nypm/-/nypm-0.5.4.tgz",+ "integrity": "sha512-X0SNNrZiGU8/e/zAB7sCTtdxWTMSIO73q+xuKgglm2Yvzwlo8UoC5FNySQFCvl84uPaeADkqHUZUkWy4aH4xOA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "citty": "^0.1.6",+ "consola": "^3.4.0",+ "pathe": "^2.0.3",+ "pkg-types": "^1.3.1",+ "tinyexec": "^0.3.2",+ "ufo": "^1.5.4"+ },+ "bin": {+ "nypm": "dist/cli.mjs"+ },+ "engines": {+ "node": "^14.16.0 || >=16.10.0"+ }+ },+ "node_modules/giget/node_modules/pkg-types": {+ "version": "1.3.1",+ "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz",+ "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "confbox": "^0.1.8",+ "mlly": "^1.7.4",+ "pathe": "^2.0.1"+ }+ },+ "node_modules/glob": {+ "version": "6.0.4",+ "resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz",+ "integrity": "sha512-MKZeRNyYZAVVVG1oZeLaWie1uweH40m9AZwIwxyPbTSX4hHrVYSzLg0Ro5Z5R7XKkIX+Cc6oD1rqeDJnwsB8/A==",+ "deprecated": "Glob versions prior to v9 are no longer supported",+ "dev": true,+ "license": "ISC",+ "optional": true,+ "dependencies": {+ "inflight": "^1.0.4",+ "inherits": "2",+ "minimatch": "2 || 3",+ "once": "^1.3.0",+ "path-is-absolute": "^1.0.0"+ },+ "engines": {+ "node": "*"+ }+ },+ "node_modules/glob-parent": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/glob-to-regexp": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz",+ "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==",+ "dev": true,+ "license": "BSD-2-Clause"+ },+ "node_modules/glob/node_modules/brace-expansion": {+ "version": "1.1.11",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "balanced-match": "^1.0.0",+ "concat-map": "0.0.1"+ }+ },+ "node_modules/glob/node_modules/minimatch": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",+ "dev": true,+ "license": "ISC",+ "optional": true,+ "dependencies": {+ "brace-expansion": "^1.1.7"+ },+ "engines": {+ "node": "*"+ }+ },+ "node_modules/global-dirs": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-3.0.1.tgz",+ "integrity": "sha512-NBcGGFbBA9s1VzD41QXDG+3++t9Mn5t1FpLdhESY6oKY4gYTFpX4wO3sqGUa0Srjtbfj3szX0RnemmrVRUdULA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ini": "2.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/globals": {+ "version": "11.12.0",+ "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz",+ "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/gopd": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/got": {+ "version": "12.6.1",+ "resolved": "https://registry.npmjs.org/got/-/got-12.6.1.tgz",+ "integrity": "sha512-mThBblvlAF1d4O5oqyvN+ZxLAYwIJK7bpMxgYqPD9okW0C3qm5FFn7k811QrcuEBwaogR3ngOFoCfs6mRv7teQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@sindresorhus/is": "^5.2.0",+ "@szmarczak/http-timer": "^5.0.1",+ "cacheable-lookup": "^7.0.0",+ "cacheable-request": "^10.2.8",+ "decompress-response": "^6.0.0",+ "form-data-encoder": "^2.1.2",+ "get-stream": "^6.0.1",+ "http2-wrapper": "^2.1.10",+ "lowercase-keys": "^3.0.0",+ "p-cancelable": "^3.0.0",+ "responselike": "^3.0.0"+ },+ "engines": {+ "node": ">=14.16"+ },+ "funding": {+ "url": "https://github.com/sindresorhus/got?sponsor=1"+ }+ },+ "node_modules/got/node_modules/get-stream": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",+ "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/graceful-fs": {+ "version": "4.2.11",+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/graceful-readlink": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz",+ "integrity": "sha512-8tLu60LgxF6XpdbK8OW3FA+IfTNBn1ZHGHKF4KQbEeSkajYw5PlYJcKluntgegDPTg8UkHjpet1T82vk6TQ68w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/growly": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz",+ "integrity": "sha512-+xGQY0YyAWCnqy7Cd++hc2JqMYzlm0dG30Jd0beaA64sROr8C4nt8Yc9V5Ro3avlSUDTN0ulqP/VBKi1/lLygw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/has-flag": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/has-symbols": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-tostringtag": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",+ "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-symbols": "^1.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-yarn": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-3.0.0.tgz",+ "integrity": "sha512-IrsVwUHhEULx3R8f/aA8AHuEzAorplsab/v8HBzEiIukwq5i/EC+xmOW+HfP1OaDP+2JkgT1yILHN2O3UFIbcA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/hasown": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/hex-to-array-buffer": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/hex-to-array-buffer/-/hex-to-array-buffer-1.1.0.tgz",+ "integrity": "sha512-vvl3IM8FfT1uOnHtEqyjkDK9Luqz6MQrH82qIvVnjyXxRhkeaEZyRRPiBgf2yym3nweRVEfayxt/1SoTXZYd4Q==",+ "license": "MIT"+ },+ "node_modules/highlight.js": {+ "version": "10.7.3",+ "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.7.3.tgz",+ "integrity": "sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": "*"+ }+ },+ "node_modules/hookable": {+ "version": "5.5.3",+ "resolved": "https://registry.npmjs.org/hookable/-/hookable-5.5.3.tgz",+ "integrity": "sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/html-encoding-sniffer": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-4.0.0.tgz",+ "integrity": "sha512-Y22oTqIU4uuPgEemfz7NDJz6OeKf12Lsu+QC+s3BVpda64lTiMYCyGwg5ki4vFxkMwQdeZDl2adZoqUgdFuTgQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "whatwg-encoding": "^3.1.1"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/html-escaper": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-3.0.3.tgz",+ "integrity": "sha512-RuMffC89BOWQoY0WKGpIhn5gX3iI54O6nRA0yC124NYVtzjmFWBIiFd8M0x+ZdX0P9R4lADg1mgP8C7PxGOWuQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/htmlparser2": {+ "version": "10.0.0",+ "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-10.0.0.tgz",+ "integrity": "sha512-TwAZM+zE5Tq3lrEHvOlvwgj1XLWQCtaaibSN11Q+gGBAS7Y1uZSWwXXRe4iF6OXnaq1riyQAPFOBtYc77Mxq0g==",+ "dev": true,+ "funding": [+ "https://github.com/fb55/htmlparser2?sponsor=1",+ {+ "type": "github",+ "url": "https://github.com/sponsors/fb55"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "domelementtype": "^2.3.0",+ "domhandler": "^5.0.3",+ "domutils": "^3.2.1",+ "entities": "^6.0.0"+ }+ },+ "node_modules/htmlparser2/node_modules/entities": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.0.tgz",+ "integrity": "sha512-aKstq2TDOndCn4diEyp9Uq/Flu2i1GlLkc6XIDQSDMuaFE3OPW5OphLCyQ5SpSJZTb4reN+kTcYru5yIfXoRPw==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=0.12"+ },+ "funding": {+ "url": "https://github.com/fb55/entities?sponsor=1"+ }+ },+ "node_modules/http-cache-semantics": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz",+ "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==",+ "dev": true,+ "license": "BSD-2-Clause"+ },+ "node_modules/http-proxy-agent": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",+ "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "agent-base": "^7.1.0",+ "debug": "^4.3.4"+ },+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/http2-wrapper": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-2.2.1.tgz",+ "integrity": "sha512-V5nVw1PAOgfI3Lmeaj2Exmeg7fenjhRUgz1lPSezy1CuhPYbgQtbQj4jZfEAEMlaL+vupsvhjqCyjzob0yxsmQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "quick-lru": "^5.1.1",+ "resolve-alpn": "^1.2.0"+ },+ "engines": {+ "node": ">=10.19.0"+ }+ },+ "node_modules/https-proxy-agent": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",+ "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "agent-base": "^7.1.2",+ "debug": "4"+ },+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/human-signals": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz",+ "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=16.17.0"+ }+ },+ "node_modules/iconv-lite": {+ "version": "0.6.3",+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",+ "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "safer-buffer": ">= 2.1.2 < 3.0.0"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/ieee754": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",+ "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "BSD-3-Clause"+ },+ "node_modules/immediate": {+ "version": "3.0.6",+ "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz",+ "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/import-lazy": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-4.0.0.tgz",+ "integrity": "sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/import-meta-resolve": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-4.1.0.tgz",+ "integrity": "sha512-I6fiaX09Xivtk+THaMfAwnA3MVA5Big1WHF1Dfx9hFuvNIWpXnorlkzhcQf6ehrqQiiZECRt1poOAkPmer3ruw==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/imurmurhash": {+ "version": "0.1.4",+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.8.19"+ }+ },+ "node_modules/inflight": {+ "version": "1.0.6",+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",+ "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",+ "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",+ "dev": true,+ "license": "ISC",+ "optional": true,+ "dependencies": {+ "once": "^1.3.0",+ "wrappy": "1"+ }+ },+ "node_modules/inherits": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/ini": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz",+ "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/is-absolute": {+ "version": "0.1.7",+ "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-0.1.7.tgz",+ "integrity": "sha512-Xi9/ZSn4NFapG8RP98iNPMOeaV3mXPisxKxzKtHVqr3g56j/fBn+yZmnxSVAA8lmZbl2J9b/a4kJvfU3hqQYgA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-relative": "^0.1.0"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-arrayish": {+ "version": "0.2.1",+ "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",+ "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/is-binary-path": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "binary-extensions": "^2.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/is-ci": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz",+ "integrity": "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ci-info": "^3.2.0"+ },+ "bin": {+ "is-ci": "bin.js"+ }+ },+ "node_modules/is-ci/node_modules/ci-info": {+ "version": "3.9.0",+ "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz",+ "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/sibiraj-s"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/is-core-module": {+ "version": "2.16.1",+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",+ "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "hasown": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-docker": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz",+ "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "is-docker": "cli.js"+ },+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/is-extglob": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-fullwidth-code-point": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz",+ "integrity": "sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/is-glob": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-extglob": "^2.1.1"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-inside-container": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz",+ "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-docker": "^3.0.0"+ },+ "bin": {+ "is-inside-container": "cli.js"+ },+ "engines": {+ "node": ">=14.16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/is-installed-globally": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz",+ "integrity": "sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "global-dirs": "^3.0.0",+ "is-path-inside": "^3.0.2"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/is-interactive": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-2.0.0.tgz",+ "integrity": "sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/is-npm": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-6.0.0.tgz",+ "integrity": "sha512-JEjxbSmtPSt1c8XTkVrlujcXdKV1/tvuQ7GwKcAlyiVLeYFQ2VHat8xfrDJsIkhCdF/tZ7CiIR3sy141c6+gPQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/is-number": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.12.0"+ }+ },+ "node_modules/is-obj": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz",+ "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/is-path-inside": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz",+ "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/is-plain-object": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz",+ "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "isobject": "^3.0.1"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-potential-custom-element-name": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz",+ "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/is-primitive": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-3.0.1.tgz",+ "integrity": "sha512-GljRxhWvlCNRfZyORiH77FwdFwGcMO620o37EOYC0ORWdq+WYNVqW0w2Juzew4M+L81l6/QS3t5gkkihyRqv9w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-relative": {+ "version": "0.1.3",+ "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-0.1.3.tgz",+ "integrity": "sha512-wBOr+rNM4gkAZqoLRJI4myw5WzzIdQosFAAbnvfXP5z1LyzgAI3ivOKehC5KfqlQJZoihVhirgtCBj378Eg8GA==",+ "dev": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-stream": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz",+ "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/is-typedarray": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",+ "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/is-unicode-supported": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-2.1.0.tgz",+ "integrity": "sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/is-wsl": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.0.tgz",+ "integrity": "sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-inside-container": "^1.0.0"+ },+ "engines": {+ "node": ">=16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/is-yarn-global": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.4.1.tgz",+ "integrity": "sha512-/kppl+R+LO5VmhYSEWARUFjodS25D68gvj8W7z0I7OWhUla5xWu8KL6CtB2V0R6yqhnRgbcaREMr4EEM6htLPQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/isarray": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",+ "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/isexe": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/isobject": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz",+ "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/jackspeak": {+ "version": "3.4.3",+ "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz",+ "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "@isaacs/cliui": "^8.0.2"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ },+ "optionalDependencies": {+ "@pkgjs/parseargs": "^0.11.0"+ }+ },+ "node_modules/jiti": {+ "version": "2.4.2",+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.4.2.tgz",+ "integrity": "sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "jiti": "lib/jiti-cli.mjs"+ }+ },+ "node_modules/js-tokens": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/jsbn": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz",+ "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==",+ "license": "MIT"+ },+ "node_modules/jsdom": {+ "version": "26.0.0",+ "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-26.0.0.tgz",+ "integrity": "sha512-BZYDGVAIriBWTpIxYzrXjv3E/4u8+/pSG5bQdIYCbNCGOvsPkDQfTVLAIXAf9ETdCpduCVTkDe2NNZ8NIwUVzw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cssstyle": "^4.2.1",+ "data-urls": "^5.0.0",+ "decimal.js": "^10.4.3",+ "form-data": "^4.0.1",+ "html-encoding-sniffer": "^4.0.0",+ "http-proxy-agent": "^7.0.2",+ "https-proxy-agent": "^7.0.6",+ "is-potential-custom-element-name": "^1.0.1",+ "nwsapi": "^2.2.16",+ "parse5": "^7.2.1",+ "rrweb-cssom": "^0.8.0",+ "saxes": "^6.0.0",+ "symbol-tree": "^3.2.4",+ "tough-cookie": "^5.0.0",+ "w3c-xmlserializer": "^5.0.0",+ "webidl-conversions": "^7.0.0",+ "whatwg-encoding": "^3.1.1",+ "whatwg-mimetype": "^4.0.0",+ "whatwg-url": "^14.1.0",+ "ws": "^8.18.0",+ "xml-name-validator": "^5.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "canvas": "^3.0.0"+ },+ "peerDependenciesMeta": {+ "canvas": {+ "optional": true+ }+ }+ },+ "node_modules/jsdom/node_modules/parse5": {+ "version": "7.2.1",+ "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.2.1.tgz",+ "integrity": "sha512-BuBYQYlv1ckiPdQi/ohiivi9Sagc9JG+Ozs0r7b/0iK3sKmrb0b9FdWdBbOdx6hBCM/F9Ir82ofnBhtZOjCRPQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "entities": "^4.5.0"+ },+ "funding": {+ "url": "https://github.com/inikulin/parse5?sponsor=1"+ }+ },+ "node_modules/jsesc": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "jsesc": "bin/jsesc"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/json-buffer": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/json-parse-even-better-errors": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-3.0.2.tgz",+ "integrity": "sha512-fi0NG4bPjCHunUJffmLd0gxssIgkNmArMvis4iNah6Owg1MCJjWhEcDLmsK6iGkJq3tHwbDkTlce70/tmXN4cQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^14.17.0 || ^16.13.0 || >=18.0.0"+ }+ },+ "node_modules/json5": {+ "version": "2.2.3",+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "json5": "lib/cli.js"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/jsonfile": {+ "version": "6.1.0",+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",+ "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "universalify": "^2.0.0"+ },+ "optionalDependencies": {+ "graceful-fs": "^4.1.6"+ }+ },+ "node_modules/jszip": {+ "version": "3.10.1",+ "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.1.tgz",+ "integrity": "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==",+ "dev": true,+ "license": "(MIT OR GPL-3.0-or-later)",+ "dependencies": {+ "lie": "~3.3.0",+ "pako": "~1.0.2",+ "readable-stream": "~2.3.6",+ "setimmediate": "^1.0.5"+ }+ },+ "node_modules/keyv": {+ "version": "4.5.4",+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",+ "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "json-buffer": "3.0.1"+ }+ },+ "node_modules/kleur": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz",+ "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/latest-version": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-7.0.0.tgz",+ "integrity": "sha512-KvNT4XqAMzdcL6ka6Tl3i2lYeFDgXNCuIX+xNx6ZMVR1dFq+idXd9FLKNMOIx0t9mJ9/HudyX4oZWXZQ0UJHeg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "package-json": "^8.1.0"+ },+ "engines": {+ "node": ">=14.16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/lie": {+ "version": "3.3.0",+ "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz",+ "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "immediate": "~3.0.5"+ }+ },+ "node_modules/lighthouse-logger": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/lighthouse-logger/-/lighthouse-logger-2.0.1.tgz",+ "integrity": "sha512-ioBrW3s2i97noEmnXxmUq7cjIcVRjT5HBpAYy8zE11CxU9HqlWHHeRxfeN1tn8F7OEMVPIC9x1f8t3Z7US9ehQ==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "debug": "^2.6.9",+ "marky": "^1.2.2"+ }+ },+ "node_modules/lighthouse-logger/node_modules/debug": {+ "version": "2.6.9",+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ms": "2.0.0"+ }+ },+ "node_modules/lighthouse-logger/node_modules/ms": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",+ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/lilconfig": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz",+ "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/antonk52"+ }+ },+ "node_modules/lines-and-columns": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-2.0.4.tgz",+ "integrity": "sha512-wM1+Z03eypVAVUCE7QdSqpVIvelbOakn1M0bPDoA4SGWPx3sNDVUiMo3L6To6WWGClB7VyXnhQ4Sn7gxiJbE6A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ }+ },+ "node_modules/linkedom": {+ "version": "0.18.9",+ "resolved": "https://registry.npmjs.org/linkedom/-/linkedom-0.18.9.tgz",+ "integrity": "sha512-Pfvhwjs46nBrcQdauQjMXDJZqj6VwN7KStT84xQqmIgD9bPH6UVJ/ESW8y4VHVF2h7di0/P+f4Iln4U5emRcmg==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "css-select": "^5.1.0",+ "cssom": "^0.5.0",+ "html-escaper": "^3.0.3",+ "htmlparser2": "^10.0.0",+ "uhyphen": "^0.2.0"+ }+ },+ "node_modules/listr2": {+ "version": "8.2.5",+ "resolved": "https://registry.npmjs.org/listr2/-/listr2-8.2.5.tgz",+ "integrity": "sha512-iyAZCeyD+c1gPyE9qpFu8af0Y+MRtmKOncdGoA2S5EY8iFq99dmmvkNnHiWo+pj0s7yH7l3KPIgee77tKpXPWQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cli-truncate": "^4.0.0",+ "colorette": "^2.0.20",+ "eventemitter3": "^5.0.1",+ "log-update": "^6.1.0",+ "rfdc": "^1.4.1",+ "wrap-ansi": "^9.0.0"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/local-pkg": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-1.1.1.tgz",+ "integrity": "sha512-WunYko2W1NcdfAFpuLUoucsgULmgDBRkdxHxWQ7mK0cQqwPiy8E1enjuRBrhLtZkB5iScJ1XIPdhVEFK8aOLSg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mlly": "^1.7.4",+ "pkg-types": "^2.0.1",+ "quansync": "^0.2.8"+ },+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/antfu"+ }+ },+ "node_modules/lodash.camelcase": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz",+ "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/lodash.kebabcase": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz",+ "integrity": "sha512-N8XRTIMMqqDgSy4VLKPnJ/+hpGZN+PHQiJnSenYqPaVV/NCqEogTnAdZLQiGKhxX+JCs8waWq2t1XHWKOmlY8g==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/lodash.merge": {+ "version": "4.6.2",+ "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",+ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/lodash.snakecase": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz",+ "integrity": "sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/log-symbols": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-6.0.0.tgz",+ "integrity": "sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "chalk": "^5.3.0",+ "is-unicode-supported": "^1.3.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/log-symbols/node_modules/is-unicode-supported": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz",+ "integrity": "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/log-update": {+ "version": "6.1.0",+ "resolved": "https://registry.npmjs.org/log-update/-/log-update-6.1.0.tgz",+ "integrity": "sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-escapes": "^7.0.0",+ "cli-cursor": "^5.0.0",+ "slice-ansi": "^7.1.0",+ "strip-ansi": "^7.1.0",+ "wrap-ansi": "^9.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/log-update/node_modules/is-fullwidth-code-point": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-5.0.0.tgz",+ "integrity": "sha512-OVa3u9kkBbw7b8Xw5F9P+D/T9X+Z4+JruYVNapTjPYZYUznQ5YfWeFkOj606XYYW8yugTfC8Pj0hYqvi4ryAhA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "get-east-asian-width": "^1.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/log-update/node_modules/slice-ansi": {+ "version": "7.1.0",+ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-7.1.0.tgz",+ "integrity": "sha512-bSiSngZ/jWeX93BqeIAbImyTbEihizcwNjFoRUIY/T1wWQsfsm2Vw1agPKylXvQTU7iASGdHhyqRlqQzfz+Htg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^6.2.1",+ "is-fullwidth-code-point": "^5.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/chalk/slice-ansi?sponsor=1"+ }+ },+ "node_modules/lowercase-keys": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-3.0.0.tgz",+ "integrity": "sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/lru-cache": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "yallist": "^3.0.2"+ }+ },+ "node_modules/magic-string": {+ "version": "0.30.17",+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz",+ "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.0"+ }+ },+ "node_modules/magicast": {+ "version": "0.3.5",+ "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.3.5.tgz",+ "integrity": "sha512-L0WhttDl+2BOsybvEOLK7fW3UA0OQ0IQ2d6Zl2x/a6vVRs3bAY0ECOSHHeL5jD+SbOpOCUEi0y1DgHEn9Qn1AQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.25.4",+ "@babel/types": "^7.25.4",+ "source-map-js": "^1.2.0"+ }+ },+ "node_modules/make-error": {+ "version": "1.3.6",+ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",+ "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/many-keys-map": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/many-keys-map/-/many-keys-map-2.0.1.tgz",+ "integrity": "sha512-DHnZAD4phTbZ+qnJdjoNEVU1NecYoSdbOOoVmTDH46AuxDkEVh3MxTVpXq10GtcTC6mndN9dkv1rNfpjRcLnOw==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/fregante"+ }+ },+ "node_modules/marky": {+ "version": "1.2.5",+ "resolved": "https://registry.npmjs.org/marky/-/marky-1.2.5.tgz",+ "integrity": "sha512-q9JtQJKjpsVxCRVgQ+WapguSbKC3SQ5HEzFGPAJMStgh3QjCawp00UKv3MTTAArTmGmmPUvllHZoNbZ3gs0I+Q==",+ "dev": true,+ "license": "Apache-2.0"+ },+ "node_modules/math-intrinsics": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/merge-stream": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",+ "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/merge2": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/micromatch": {+ "version": "4.0.8",+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",+ "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "braces": "^3.0.3",+ "picomatch": "^2.3.1"+ },+ "engines": {+ "node": ">=8.6"+ }+ },+ "node_modules/mime-db": {+ "version": "1.52.0",+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/mime-types": {+ "version": "2.1.35",+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mime-db": "1.52.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/mimic-fn": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz",+ "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/mimic-function": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/mimic-function/-/mimic-function-5.0.1.tgz",+ "integrity": "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/mimic-response": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-4.0.0.tgz",+ "integrity": "sha512-e5ISH9xMYU0DzrT+jl8q2ze9D6eWBto+I8CNpe+VI+K2J/F/k3PdkdTdz4wvGVH4NTpo+NRYTVIuMQEMMcsLqg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/minimatch": {+ "version": "10.0.1",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.1.tgz",+ "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^2.0.1"+ },+ "engines": {+ "node": "20 || >=22"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/minimist": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",+ "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/minipass": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz",+ "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/minizlib": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz",+ "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "minipass": "^3.0.0",+ "yallist": "^4.0.0"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/minizlib/node_modules/minipass": {+ "version": "3.3.6",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",+ "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "yallist": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/minizlib/node_modules/yallist": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/mkdirp": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",+ "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "mkdirp": "bin/cmd.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/mlly": {+ "version": "1.7.4",+ "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.7.4.tgz",+ "integrity": "sha512-qmdSIPC4bDJXgZTCR7XosJiNKySV7O215tsPtDN9iEO/7q/76b/ijtgRu/+epFXSJhijtTCCGp3DWS549P3xKw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "acorn": "^8.14.0",+ "pathe": "^2.0.1",+ "pkg-types": "^1.3.0",+ "ufo": "^1.5.4"+ }+ },+ "node_modules/mlly/node_modules/pkg-types": {+ "version": "1.3.1",+ "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz",+ "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "confbox": "^0.1.8",+ "mlly": "^1.7.4",+ "pathe": "^2.0.1"+ }+ },+ "node_modules/moment": {+ "version": "2.30.1",+ "resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz",+ "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": "*"+ }+ },+ "node_modules/ms": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/multimatch": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/multimatch/-/multimatch-6.0.0.tgz",+ "integrity": "sha512-I7tSVxHGPlmPN/enE3mS1aOSo6bWBfls+3HmuEeCUBCE7gWnm3cBXCBkpurzFjVRwC6Kld8lLaZ1Iv5vOcjvcQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/minimatch": "^3.0.5",+ "array-differ": "^4.0.0",+ "array-union": "^3.0.1",+ "minimatch": "^3.0.4"+ },+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/multimatch/node_modules/brace-expansion": {+ "version": "1.1.11",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0",+ "concat-map": "0.0.1"+ }+ },+ "node_modules/multimatch/node_modules/minimatch": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^1.1.7"+ },+ "engines": {+ "node": "*"+ }+ },+ "node_modules/mv": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/mv/-/mv-2.1.1.tgz",+ "integrity": "sha512-at/ZndSy3xEGJ8i0ygALh8ru9qy7gWW1cmkaqBN29JmMlIvM//MEO9y1sk/avxuwnPcfhkejkLsuPxH81BrkSg==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "mkdirp": "~0.5.1",+ "ncp": "~2.0.0",+ "rimraf": "~2.4.0"+ },+ "engines": {+ "node": ">=0.8.0"+ }+ },+ "node_modules/mv/node_modules/mkdirp": {+ "version": "0.5.6",+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz",+ "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "minimist": "^1.2.6"+ },+ "bin": {+ "mkdirp": "bin/cmd.js"+ }+ },+ "node_modules/mz": {+ "version": "2.7.0",+ "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz",+ "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "any-promise": "^1.0.0",+ "object-assign": "^4.0.1",+ "thenify-all": "^1.0.0"+ }+ },+ "node_modules/nan": {+ "version": "2.22.2",+ "resolved": "https://registry.npmjs.org/nan/-/nan-2.22.2.tgz",+ "integrity": "sha512-DANghxFkS1plDdRsX0X9pm0Z6SJNN6gBdtXfanwoZ8hooC5gosGFSBGRYHUVPz1asKA/kMRqDRdHrluZ61SpBQ==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/nano-spawn": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/nano-spawn/-/nano-spawn-0.2.0.tgz",+ "integrity": "sha512-IjZBIOLxSlxu+m/kacg9JuP93oUpRemeV0mEuCy64nzBKKIL9m0aLJHtVPcVuzJDHFhElzjpwbW4a3tMzgKoZQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18.19"+ },+ "funding": {+ "url": "https://github.com/sindresorhus/nano-spawn?sponsor=1"+ }+ },+ "node_modules/nanoid": {+ "version": "3.3.8",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz",+ "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }+ },+ "node_modules/ncp": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz",+ "integrity": "sha512-zIdGUrPRFTUELUvr3Gmc7KZ2Sw/h1PiVM0Af/oHB6zgnV1ikqSfRk+TOufi79aHYCW3NiOXmr1BP5nWbzojLaA==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "bin": {+ "ncp": "bin/ncp"+ }+ },+ "node_modules/node-fetch-native": {+ "version": "1.6.6",+ "resolved": "https://registry.npmjs.org/node-fetch-native/-/node-fetch-native-1.6.6.tgz",+ "integrity": "sha512-8Mc2HhqPdlIfedsuZoc3yioPuzp6b+L5jRCRY1QzuWZh2EGJVQrGppC6V6cF0bLdbW0+O2YpqCA25aF/1lvipQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/node-forge": {+ "version": "1.3.1",+ "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz",+ "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==",+ "dev": true,+ "license": "(BSD-3-Clause OR GPL-2.0)",+ "engines": {+ "node": ">= 6.13.0"+ }+ },+ "node_modules/node-notifier": {+ "version": "10.0.1",+ "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-10.0.1.tgz",+ "integrity": "sha512-YX7TSyDukOZ0g+gmzjB6abKu+hTGvO8+8+gIFDsRCU2t8fLV/P2unmt+LGFaIa4y64aX98Qksa97rgz4vMNeLQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "growly": "^1.3.0",+ "is-wsl": "^2.2.0",+ "semver": "^7.3.5",+ "shellwords": "^0.1.1",+ "uuid": "^8.3.2",+ "which": "^2.0.2"+ }+ },+ "node_modules/node-notifier/node_modules/is-docker": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",+ "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "is-docker": "cli.js"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/node-notifier/node_modules/is-wsl": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",+ "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-docker": "^2.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/node-notifier/node_modules/semver": {+ "version": "7.7.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",+ "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/node-releases": {+ "version": "2.0.19",+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz",+ "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/normalize-path": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/normalize-range": {+ "version": "0.1.2",+ "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz",+ "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/normalize-url": {+ "version": "8.0.1",+ "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-8.0.1.tgz",+ "integrity": "sha512-IO9QvjUMWxPQQhs60oOu10CRkWCiZzSUkzbXGGV9pviYl1fXYcvkzQ5jV9z8Y6un8ARoVRl4EtC6v6jNqbaJ/w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/npm-run-path": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz",+ "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "path-key": "^4.0.0"+ },+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/npm-run-path/node_modules/path-key": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz",+ "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/nth-check": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz",+ "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "boolbase": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/fb55/nth-check?sponsor=1"+ }+ },+ "node_modules/nwsapi": {+ "version": "2.2.18",+ "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.18.tgz",+ "integrity": "sha512-p1TRH/edngVEHVbwqWnxUViEmq5znDvyB+Sik5cmuLpGOIfDf/39zLiq3swPF8Vakqn+gvNiOQAZu8djYlQILA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/nypm": {+ "version": "0.3.12",+ "resolved": "https://registry.npmjs.org/nypm/-/nypm-0.3.12.tgz",+ "integrity": "sha512-D3pzNDWIvgA+7IORhD/IuWzEk4uXv6GsgOxiid4UU3h9oq5IqV1KtPDi63n4sZJ/xcWlr88c0QM2RgN5VbOhFA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "citty": "^0.1.6",+ "consola": "^3.2.3",+ "execa": "^8.0.1",+ "pathe": "^1.1.2",+ "pkg-types": "^1.2.0",+ "ufo": "^1.5.4"+ },+ "bin": {+ "nypm": "dist/cli.mjs"+ },+ "engines": {+ "node": "^14.16.0 || >=16.10.0"+ }+ },+ "node_modules/nypm/node_modules/pathe": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz",+ "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/nypm/node_modules/pkg-types": {+ "version": "1.3.1",+ "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz",+ "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "confbox": "^0.1.8",+ "mlly": "^1.7.4",+ "pathe": "^2.0.1"+ }+ },+ "node_modules/nypm/node_modules/pkg-types/node_modules/pathe": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",+ "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/object-assign": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/object-hash": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz",+ "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/ofetch": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/ofetch/-/ofetch-1.4.1.tgz",+ "integrity": "sha512-QZj2DfGplQAr2oj9KzceK9Hwz6Whxazmn85yYeVuS3u9XTMOGMRx0kO95MQ+vLsj/S/NwBDMMLU5hpxvI6Tklw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "destr": "^2.0.3",+ "node-fetch-native": "^1.6.4",+ "ufo": "^1.5.4"+ }+ },+ "node_modules/ohash": {+ "version": "1.1.6",+ "resolved": "https://registry.npmjs.org/ohash/-/ohash-1.1.6.tgz",+ "integrity": "sha512-TBu7PtV8YkAZn0tSxobKY2n2aAQva936lhRrj6957aDaCf9IEtqsKbgMzXE/F/sjqYOwmrukeORHNLe5glk7Cg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/once": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "wrappy": "1"+ }+ },+ "node_modules/onetime": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz",+ "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mimic-fn": "^4.0.0"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/open": {+ "version": "10.1.0",+ "resolved": "https://registry.npmjs.org/open/-/open-10.1.0.tgz",+ "integrity": "sha512-mnkeQ1qP5Ue2wd+aivTD3NHd/lZ96Lu0jgf0pwktLPtx6cTZiH7tyeGRRHs0zX0rbrahXPnXlUnbeXyaBBuIaw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "default-browser": "^5.2.1",+ "define-lazy-prop": "^3.0.0",+ "is-inside-container": "^1.0.0",+ "is-wsl": "^3.1.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/ora": {+ "version": "8.2.0",+ "resolved": "https://registry.npmjs.org/ora/-/ora-8.2.0.tgz",+ "integrity": "sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "chalk": "^5.3.0",+ "cli-cursor": "^5.0.0",+ "cli-spinners": "^2.9.2",+ "is-interactive": "^2.0.0",+ "is-unicode-supported": "^2.0.0",+ "log-symbols": "^6.0.0",+ "stdin-discarder": "^0.2.2",+ "string-width": "^7.2.0",+ "strip-ansi": "^7.1.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/os-shim": {+ "version": "0.1.3",+ "resolved": "https://registry.npmjs.org/os-shim/-/os-shim-0.1.3.tgz",+ "integrity": "sha512-jd0cvB8qQ5uVt0lvCIexBaROw1KyKm5sbulg2fWOHjETisuCzWyt+eTZKEMs8v6HwzoGs8xik26jg7eCM6pS+A==",+ "dev": true,+ "engines": {+ "node": ">= 0.4.0"+ }+ },+ "node_modules/p-cancelable": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-3.0.0.tgz",+ "integrity": "sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12.20"+ }+ },+ "node_modules/p-map": {+ "version": "7.0.3",+ "resolved": "https://registry.npmjs.org/p-map/-/p-map-7.0.3.tgz",+ "integrity": "sha512-VkndIv2fIB99swvQoA65bm+fsmt6UNdGeIB0oxBs+WhAhdh08QA04JXpI7rbB9r08/nkbysKoya9rtDERYOYMA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/package-json": {+ "version": "8.1.1",+ "resolved": "https://registry.npmjs.org/package-json/-/package-json-8.1.1.tgz",+ "integrity": "sha512-cbH9IAIJHNj9uXi196JVsRlt7cHKak6u/e6AkL/bkRelZ7rlL3X1YKxsZwa36xipOEKAsdtmaG6aAJoM1fx2zA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "got": "^12.1.0",+ "registry-auth-token": "^5.0.1",+ "registry-url": "^6.0.0",+ "semver": "^7.3.7"+ },+ "engines": {+ "node": ">=14.16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/package-json-from-dist": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",+ "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==",+ "dev": true,+ "license": "BlueOak-1.0.0"+ },+ "node_modules/package-json/node_modules/semver": {+ "version": "7.7.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",+ "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/pad-start": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/pad-start/-/pad-start-1.0.2.tgz",+ "integrity": "sha512-EBN8Ez1SVRcZT1XsIE4WkdnZ5coLoaChkIgAET6gIlaLhXqCz9upVk0DQWFtOYkrpTVvbEppRUnqhTiJrBdkfw==",+ "license": "MIT"+ },+ "node_modules/pako": {+ "version": "1.0.11",+ "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz",+ "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==",+ "dev": true,+ "license": "(MIT AND Zlib)"+ },+ "node_modules/parse-json": {+ "version": "7.1.1",+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-7.1.1.tgz",+ "integrity": "sha512-SgOTCX/EZXtZxBE5eJ97P4yGM5n37BwRU+YMsH4vNzFqJV/oWFXXCmwFlgWUM4PrakybVOueJJ6pwHqSVhTFDw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.21.4",+ "error-ex": "^1.3.2",+ "json-parse-even-better-errors": "^3.0.0",+ "lines-and-columns": "^2.0.3",+ "type-fest": "^3.8.0"+ },+ "engines": {+ "node": ">=16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/parse5": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.1.tgz",+ "integrity": "sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/parse5-htmlparser2-tree-adapter": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz",+ "integrity": "sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "parse5": "^6.0.1"+ }+ },+ "node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz",+ "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/path-is-absolute": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",+ "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/path-key": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/path-parse": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/path-scurry": {+ "version": "1.11.1",+ "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz",+ "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "lru-cache": "^10.2.0",+ "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"+ },+ "engines": {+ "node": ">=16 || 14 >=14.18"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/path-scurry/node_modules/lru-cache": {+ "version": "10.4.3",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",+ "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/pathe": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",+ "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/pend": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",+ "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/perfect-debounce": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-1.0.0.tgz",+ "integrity": "sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/picocolors": {+ "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"+ },+ "node_modules/picomatch": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/pify": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",+ "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/pirates": {+ "version": "4.0.6",+ "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz",+ "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/pkg-types": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.1.0.tgz",+ "integrity": "sha512-wmJwA+8ihJixSoHKxZJRBQG1oY8Yr9pGLzRmSsNms0iNWyHHAlZCa7mmKiFR10YPZuz/2k169JiS/inOjBCZ2A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "confbox": "^0.2.1",+ "exsolve": "^1.0.1",+ "pathe": "^2.0.3"+ }+ },+ "node_modules/pkg-types/node_modules/confbox": {+ "version": "0.2.1",+ "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.2.1.tgz",+ "integrity": "sha512-hkT3yDPFbs95mNCy1+7qNKC6Pro+/ibzYxtM2iqEigpf0sVw+bg4Zh9/snjsBcf990vfIsg5+1U7VyiyBb3etg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/postcss": {+ "version": "8.5.3",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.3.tgz",+ "integrity": "sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/postcss"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "nanoid": "^3.3.8",+ "picocolors": "^1.1.1",+ "source-map-js": "^1.2.1"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "node_modules/postcss-import": {+ "version": "15.1.0",+ "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz",+ "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "postcss-value-parser": "^4.0.0",+ "read-cache": "^1.0.0",+ "resolve": "^1.1.7"+ },+ "engines": {+ "node": ">=14.0.0"+ },+ "peerDependencies": {+ "postcss": "^8.0.0"+ }+ },+ "node_modules/postcss-js": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz",+ "integrity": "sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "camelcase-css": "^2.0.1"+ },+ "engines": {+ "node": "^12 || ^14 || >= 16"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ "peerDependencies": {+ "postcss": "^8.4.21"+ }+ },+ "node_modules/postcss-load-config": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.2.tgz",+ "integrity": "sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "lilconfig": "^3.0.0",+ "yaml": "^2.3.4"+ },+ "engines": {+ "node": ">= 14"+ },+ "peerDependencies": {+ "postcss": ">=8.0.9",+ "ts-node": ">=9.0.0"+ },+ "peerDependenciesMeta": {+ "postcss": {+ "optional": true+ },+ "ts-node": {+ "optional": true+ }+ }+ },+ "node_modules/postcss-nested": {+ "version": "6.2.0",+ "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz",+ "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "postcss-selector-parser": "^6.1.1"+ },+ "engines": {+ "node": ">=12.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.14"+ }+ },+ "node_modules/postcss-selector-parser": {+ "version": "6.1.2",+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz",+ "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cssesc": "^3.0.0",+ "util-deprecate": "^1.0.2"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/postcss-value-parser": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",+ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/process-nextick-args": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",+ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/promise-toolbox": {+ "version": "0.21.0",+ "resolved": "https://registry.npmjs.org/promise-toolbox/-/promise-toolbox-0.21.0.tgz",+ "integrity": "sha512-NV8aTmpwrZv+Iys54sSFOBx3tuVaOBvvrft5PNppnxy9xpU/akHbaWIril22AB22zaPgrgwKdD0KsrM0ptUtpg==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "make-error": "^1.3.2"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/prompts": {+ "version": "2.4.2",+ "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz",+ "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "kleur": "^3.0.3",+ "sisteransi": "^1.0.5"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/proto-list": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz",+ "integrity": "sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/publish-browser-extension": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/publish-browser-extension/-/publish-browser-extension-3.0.0.tgz",+ "integrity": "sha512-gwjH8mIepNqID2VqKIxzT6lmtvkcc5tcWYzrGSUdkeUFFFSHhGp9xx01EZ7j8wPq50dDe0XU5VNbHMAqr6wWAA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cac": "^6.7.14",+ "cli-highlight": "^2.1.11",+ "consola": "^3.2.3",+ "dotenv": "^16.3.1",+ "extract-zip": "^2.0.1",+ "formdata-node": "^6.0.3",+ "listr2": "^8.0.1",+ "lodash.camelcase": "^4.3.0",+ "lodash.kebabcase": "^4.1.1",+ "lodash.snakecase": "^4.1.1",+ "ofetch": "^1.3.3",+ "open": "^9.1.0",+ "ora": "^6.3.1",+ "prompts": "^2.4.2",+ "zod": "^3.22.4"+ },+ "bin": {+ "publish-extension": "bin/publish-extension.cjs"+ },+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ }+ },+ "node_modules/publish-browser-extension/node_modules/bundle-name": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-3.0.0.tgz",+ "integrity": "sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "run-applescript": "^5.0.0"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/publish-browser-extension/node_modules/cli-cursor": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-4.0.0.tgz",+ "integrity": "sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "restore-cursor": "^4.0.0"+ },+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/publish-browser-extension/node_modules/default-browser": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-4.0.0.tgz",+ "integrity": "sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "bundle-name": "^3.0.0",+ "default-browser-id": "^3.0.0",+ "execa": "^7.1.1",+ "titleize": "^3.0.0"+ },+ "engines": {+ "node": ">=14.16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/publish-browser-extension/node_modules/default-browser-id": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-3.0.0.tgz",+ "integrity": "sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "bplist-parser": "^0.2.0",+ "untildify": "^4.0.0"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/publish-browser-extension/node_modules/execa": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/execa/-/execa-7.2.0.tgz",+ "integrity": "sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cross-spawn": "^7.0.3",+ "get-stream": "^6.0.1",+ "human-signals": "^4.3.0",+ "is-stream": "^3.0.0",+ "merge-stream": "^2.0.0",+ "npm-run-path": "^5.1.0",+ "onetime": "^6.0.0",+ "signal-exit": "^3.0.7",+ "strip-final-newline": "^3.0.0"+ },+ "engines": {+ "node": "^14.18.0 || ^16.14.0 || >=18.0.0"+ },+ "funding": {+ "url": "https://github.com/sindresorhus/execa?sponsor=1"+ }+ },+ "node_modules/publish-browser-extension/node_modules/get-stream": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",+ "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/publish-browser-extension/node_modules/human-signals": {+ "version": "4.3.1",+ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz",+ "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=14.18.0"+ }+ },+ "node_modules/publish-browser-extension/node_modules/is-docker": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",+ "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "is-docker": "cli.js"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/publish-browser-extension/node_modules/is-unicode-supported": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz",+ "integrity": "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/publish-browser-extension/node_modules/is-wsl": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",+ "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-docker": "^2.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/publish-browser-extension/node_modules/log-symbols": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-5.1.0.tgz",+ "integrity": "sha512-l0x2DvrW294C9uDCoQe1VSU4gf529FkSZ6leBl4TiqZH/e+0R7hSfHQBNut2mNygDgHwvYHfFLn6Oxb3VWj2rA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "chalk": "^5.0.0",+ "is-unicode-supported": "^1.1.0"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/publish-browser-extension/node_modules/mimic-fn": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",+ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/publish-browser-extension/node_modules/open": {+ "version": "9.1.0",+ "resolved": "https://registry.npmjs.org/open/-/open-9.1.0.tgz",+ "integrity": "sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "default-browser": "^4.0.0",+ "define-lazy-prop": "^3.0.0",+ "is-inside-container": "^1.0.0",+ "is-wsl": "^2.2.0"+ },+ "engines": {+ "node": ">=14.16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/publish-browser-extension/node_modules/ora": {+ "version": "6.3.1",+ "resolved": "https://registry.npmjs.org/ora/-/ora-6.3.1.tgz",+ "integrity": "sha512-ERAyNnZOfqM+Ao3RAvIXkYh5joP220yf59gVe2X/cI6SiCxIdi4c9HZKZD8R6q/RDXEje1THBju6iExiSsgJaQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "chalk": "^5.0.0",+ "cli-cursor": "^4.0.0",+ "cli-spinners": "^2.6.1",+ "is-interactive": "^2.0.0",+ "is-unicode-supported": "^1.1.0",+ "log-symbols": "^5.1.0",+ "stdin-discarder": "^0.1.0",+ "strip-ansi": "^7.0.1",+ "wcwidth": "^1.0.1"+ },+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/publish-browser-extension/node_modules/restore-cursor": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-4.0.0.tgz",+ "integrity": "sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "onetime": "^5.1.0",+ "signal-exit": "^3.0.2"+ },+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/publish-browser-extension/node_modules/restore-cursor/node_modules/onetime": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",+ "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mimic-fn": "^2.1.0"+ },+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/publish-browser-extension/node_modules/run-applescript": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-5.0.0.tgz",+ "integrity": "sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "execa": "^5.0.0"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/publish-browser-extension/node_modules/run-applescript/node_modules/execa": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",+ "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cross-spawn": "^7.0.3",+ "get-stream": "^6.0.0",+ "human-signals": "^2.1.0",+ "is-stream": "^2.0.0",+ "merge-stream": "^2.0.0",+ "npm-run-path": "^4.0.1",+ "onetime": "^5.1.2",+ "signal-exit": "^3.0.3",+ "strip-final-newline": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sindresorhus/execa?sponsor=1"+ }+ },+ "node_modules/publish-browser-extension/node_modules/run-applescript/node_modules/human-signals": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",+ "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=10.17.0"+ }+ },+ "node_modules/publish-browser-extension/node_modules/run-applescript/node_modules/is-stream": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",+ "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/publish-browser-extension/node_modules/run-applescript/node_modules/npm-run-path": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",+ "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "path-key": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/publish-browser-extension/node_modules/run-applescript/node_modules/onetime": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",+ "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mimic-fn": "^2.1.0"+ },+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/publish-browser-extension/node_modules/run-applescript/node_modules/strip-final-newline": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",+ "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/publish-browser-extension/node_modules/signal-exit": {+ "version": "3.0.7",+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/publish-browser-extension/node_modules/stdin-discarder": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/stdin-discarder/-/stdin-discarder-0.1.0.tgz",+ "integrity": "sha512-xhV7w8S+bUwlPTb4bAOUQhv8/cSS5offJuX8GQGq32ONF0ZtDWKfkdomM3HMRA+LhX6um/FZ0COqlwsjD53LeQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "bl": "^5.0.0"+ },+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/pump": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz",+ "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "end-of-stream": "^1.1.0",+ "once": "^1.3.1"+ }+ },+ "node_modules/punycode": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/pupa": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/pupa/-/pupa-3.1.0.tgz",+ "integrity": "sha512-FLpr4flz5xZTSJxSeaheeMKN/EDzMdK7b8PTOC6a5PYFKTucWbdqjgqaEyH0shFiSJrVB1+Qqi4Tk19ccU6Aug==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "escape-goat": "^4.0.0"+ },+ "engines": {+ "node": ">=12.20"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/quansync": {+ "version": "0.2.8",+ "resolved": "https://registry.npmjs.org/quansync/-/quansync-0.2.8.tgz",+ "integrity": "sha512-4+saucphJMazjt7iOM27mbFCk+D9dd/zmgMDCzRZ8MEoBfYp7lAvoN38et/phRQF6wOPMy/OROBGgoWeSKyluA==",+ "dev": true,+ "funding": [+ {+ "type": "individual",+ "url": "https://github.com/sponsors/antfu"+ },+ {+ "type": "individual",+ "url": "https://github.com/sponsors/sxzz"+ }+ ],+ "license": "MIT"+ },+ "node_modules/queue-microtask": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT"+ },+ "node_modules/quick-lru": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz",+ "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/rc": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",+ "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",+ "dev": true,+ "license": "(BSD-2-Clause OR MIT OR Apache-2.0)",+ "dependencies": {+ "deep-extend": "^0.6.0",+ "ini": "~1.3.0",+ "minimist": "^1.2.0",+ "strip-json-comments": "~2.0.1"+ },+ "bin": {+ "rc": "cli.js"+ }+ },+ "node_modules/rc/node_modules/ini": {+ "version": "1.3.8",+ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",+ "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/rc/node_modules/strip-json-comments": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",+ "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/rc9": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/rc9/-/rc9-2.1.2.tgz",+ "integrity": "sha512-btXCnMmRIBINM2LDZoEmOogIZU7Qe7zn4BpomSKZ/ykbLObuBdvG+mFq11DL6fjH1DRwHhrlgtYWG96bJiC7Cg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "defu": "^6.1.4",+ "destr": "^2.0.3"+ }+ },+ "node_modules/react": {+ "version": "19.0.0",+ "resolved": "https://registry.npmjs.org/react/-/react-19.0.0.tgz",+ "integrity": "sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/react-dom": {+ "version": "19.0.0",+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.0.0.tgz",+ "integrity": "sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ==",+ "license": "MIT",+ "dependencies": {+ "scheduler": "^0.25.0"+ },+ "peerDependencies": {+ "react": "^19.0.0"+ }+ },+ "node_modules/react-refresh": {+ "version": "0.14.2",+ "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.14.2.tgz",+ "integrity": "sha512-jCvmsr+1IUSMUyzOkRcvnVbX3ZYC6g9TDrDbFuFmRDq7PD4yaGbLKNQL6k2jnArV8hjYxh7hVhAZB6s9HDGpZA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/react-router": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.2.0.tgz",+ "integrity": "sha512-fXyqzPgCPZbqhrk7k3hPcCpYIlQ2ugIXDboHUzhJISFVy2DEPsmHgN588MyGmkIOv3jDgNfUE3kJi83L28s/LQ==",+ "license": "MIT",+ "dependencies": {+ "@types/cookie": "^0.6.0",+ "cookie": "^1.0.1",+ "set-cookie-parser": "^2.6.0",+ "turbo-stream": "2.4.0"+ },+ "engines": {+ "node": ">=20.0.0"+ },+ "peerDependencies": {+ "react": ">=18",+ "react-dom": ">=18"+ },+ "peerDependenciesMeta": {+ "react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/react-router-dom": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.2.0.tgz",+ "integrity": "sha512-cU7lTxETGtQRQbafJubvZKHEn5izNABxZhBY0Jlzdv0gqQhCPQt2J8aN5ZPjS6mQOXn5NnirWNh+FpE8TTYN0Q==",+ "license": "MIT",+ "dependencies": {+ "react-router": "7.2.0"+ },+ "engines": {+ "node": ">=20.0.0"+ },+ "peerDependencies": {+ "react": ">=18",+ "react-dom": ">=18"+ }+ },+ "node_modules/read-cache": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",+ "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "pify": "^2.3.0"+ }+ },+ "node_modules/readable-stream": {+ "version": "2.3.8",+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",+ "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "core-util-is": "~1.0.0",+ "inherits": "~2.0.3",+ "isarray": "~1.0.0",+ "process-nextick-args": "~2.0.0",+ "safe-buffer": "~5.1.1",+ "string_decoder": "~1.1.1",+ "util-deprecate": "~1.0.1"+ }+ },+ "node_modules/readdirp": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz",+ "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 14.18.0"+ },+ "funding": {+ "type": "individual",+ "url": "https://paulmillr.com/funding/"+ }+ },+ "node_modules/regenerator-runtime": {+ "version": "0.14.1",+ "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",+ "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/registry-auth-token": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-5.1.0.tgz",+ "integrity": "sha512-GdekYuwLXLxMuFTwAPg5UKGLW/UXzQrZvH/Zj791BQif5T05T0RsaLfHc9q3ZOKi7n+BoprPD9mJ0O0k4xzUlw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@pnpm/npm-conf": "^2.1.0"+ },+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/registry-url": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-6.0.1.tgz",+ "integrity": "sha512-+crtS5QjFRqFCoQmvGduwYWEBng99ZvmFvF+cUJkGYF1L1BfU8C6Zp9T7f5vPAwyLkUExpvK+ANVZmGU49qi4Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "rc": "1.2.8"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/require-directory": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/resolve": {+ "version": "1.22.10",+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz",+ "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-core-module": "^2.16.0",+ "path-parse": "^1.0.7",+ "supports-preserve-symlinks-flag": "^1.0.0"+ },+ "bin": {+ "resolve": "bin/resolve"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/resolve-alpn": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz",+ "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/responselike": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/responselike/-/responselike-3.0.0.tgz",+ "integrity": "sha512-40yHxbNcl2+rzXvZuVkrYohathsSJlMTXKryG5y8uciHv1+xDLHQpgjG64JUO9nrEq2jGLH6IZ8BcZyw3wrweg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "lowercase-keys": "^3.0.0"+ },+ "engines": {+ "node": ">=14.16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/restore-cursor": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-5.1.0.tgz",+ "integrity": "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "onetime": "^7.0.0",+ "signal-exit": "^4.1.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/restore-cursor/node_modules/onetime": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-7.0.0.tgz",+ "integrity": "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mimic-function": "^5.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/reusify": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",+ "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "iojs": ">=1.0.0",+ "node": ">=0.10.0"+ }+ },+ "node_modules/rfdc": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz",+ "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/rimraf": {+ "version": "2.4.5",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.4.5.tgz",+ "integrity": "sha512-J5xnxTyqaiw06JjMftq7L9ouA448dw/E7dKghkP9WpKNuwmARNNg+Gk8/u5ryb9N/Yo2+z3MCwuqFK/+qPOPfQ==",+ "deprecated": "Rimraf versions prior to v4 are no longer supported",+ "dev": true,+ "license": "ISC",+ "optional": true,+ "dependencies": {+ "glob": "^6.0.1"+ },+ "bin": {+ "rimraf": "bin.js"+ }+ },+ "node_modules/rollup": {+ "version": "4.34.9",+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.34.9.tgz",+ "integrity": "sha512-nF5XYqWWp9hx/LrpC8sZvvvmq0TeTjQgaZHYmAgwysT9nh8sWnZhBnM8ZyVbbJFIQBLwHDNoMqsBZBbUo4U8sQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "1.0.6"+ },+ "bin": {+ "rollup": "dist/bin/rollup"+ },+ "engines": {+ "node": ">=18.0.0",+ "npm": ">=8.0.0"+ },+ "optionalDependencies": {+ "@rollup/rollup-android-arm-eabi": "4.34.9",+ "@rollup/rollup-android-arm64": "4.34.9",+ "@rollup/rollup-darwin-arm64": "4.34.9",+ "@rollup/rollup-darwin-x64": "4.34.9",+ "@rollup/rollup-freebsd-arm64": "4.34.9",+ "@rollup/rollup-freebsd-x64": "4.34.9",+ "@rollup/rollup-linux-arm-gnueabihf": "4.34.9",+ "@rollup/rollup-linux-arm-musleabihf": "4.34.9",+ "@rollup/rollup-linux-arm64-gnu": "4.34.9",+ "@rollup/rollup-linux-arm64-musl": "4.34.9",+ "@rollup/rollup-linux-loongarch64-gnu": "4.34.9",+ "@rollup/rollup-linux-powerpc64le-gnu": "4.34.9",+ "@rollup/rollup-linux-riscv64-gnu": "4.34.9",+ "@rollup/rollup-linux-s390x-gnu": "4.34.9",+ "@rollup/rollup-linux-x64-gnu": "4.34.9",+ "@rollup/rollup-linux-x64-musl": "4.34.9",+ "@rollup/rollup-win32-arm64-msvc": "4.34.9",+ "@rollup/rollup-win32-ia32-msvc": "4.34.9",+ "@rollup/rollup-win32-x64-msvc": "4.34.9",+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/rrweb-cssom": {+ "version": "0.8.0",+ "resolved": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.8.0.tgz",+ "integrity": "sha512-guoltQEx+9aMf2gDZ0s62EcV8lsXR+0w8915TC3ITdn2YueuNjdAYh/levpU9nFaoChh9RUS5ZdQMrKfVEN9tw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/run-applescript": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.0.0.tgz",+ "integrity": "sha512-9by4Ij99JUr/MCFBUkDKLWK3G9HVXmabKz9U5MlIAIuvuzkiOicRYs8XJLxX+xahD+mLiiCYDqF9dKAgtzKP1A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/run-parallel": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",+ "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "queue-microtask": "^1.2.2"+ }+ },+ "node_modules/safe-buffer": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",+ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/safe-json-stringify": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/safe-json-stringify/-/safe-json-stringify-1.2.0.tgz",+ "integrity": "sha512-gH8eh2nZudPQO6TytOvbxnuhYBOvDBBLW52tz5q6X58lJcd/tkmqFR+5Z9adS8aJtURSXWThWy/xJtJwixErvg==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/safer-buffer": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/sax": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.1.tgz",+ "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/saxes": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz",+ "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "xmlchars": "^2.2.0"+ },+ "engines": {+ "node": ">=v12.22.7"+ }+ },+ "node_modules/scheduler": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.25.0.tgz",+ "integrity": "sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==",+ "license": "MIT"+ },+ "node_modules/scule": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/scule/-/scule-1.3.0.tgz",+ "integrity": "sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/secure-remote-password": {+ "version": "0.3.0",+ "resolved": "git+ssh://[email protected]/LinusU/secure-remote-password.git#73e5f732b6ca0cdbdc19da1a0c5f48cdbad2cbf0",+ "integrity": "sha512-UT5eya0NtNvT+R/+L4DgReCLvCJttVTl4g4oy0sQ4aiRYspyHJf/X/ZA+zB2ZrZBXe7gyNpMnhQNT9MXFNPwvA==",+ "license": "MIT",+ "dependencies": {+ "array-buffer-to-hex": "^1.0.0",+ "crypto-digest-sync": "^1.0.0",+ "crypto-random-hex": "^1.0.0",+ "encode-utf8": "^1.0.1",+ "hex-to-array-buffer": "^1.1.0",+ "jsbn": "^1.1.0",+ "pad-start": "^1.0.2"+ }+ },+ "node_modules/semver": {+ "version": "6.3.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ }+ },+ "node_modules/semver-diff": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-4.0.0.tgz",+ "integrity": "sha512-0Ju4+6A8iOnpL/Thra7dZsSlOHYAHIeMxfhWQRI1/VLcT3WDBZKKtQt/QkBOsiIN9ZpuvHE6cGZ0x4glCMmfiA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "semver": "^7.3.5"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/semver-diff/node_modules/semver": {+ "version": "7.7.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",+ "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/set-cookie-parser": {+ "version": "2.7.1",+ "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.1.tgz",+ "integrity": "sha512-IOc8uWeOZgnb3ptbCURJWNjWUPcO3ZnTTdzsurqERrP6nPyv+paC55vJM0LpOlT2ne+Ix+9+CRG1MNLlyZ4GjQ==",+ "license": "MIT"+ },+ "node_modules/set-value": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/set-value/-/set-value-4.1.0.tgz",+ "integrity": "sha512-zTEg4HL0RwVrqcWs3ztF+x1vkxfm0lP+MQQFPiMJTKVceBwEV0A569Ou8l9IYQG8jOZdMVI1hGsc0tmeD2o/Lw==",+ "dev": true,+ "funding": [+ "https://github.com/sponsors/jonschlinkert",+ "https://paypal.me/jonathanschlinkert",+ "https://jonschlinkert.dev/sponsor"+ ],+ "license": "MIT",+ "dependencies": {+ "is-plain-object": "^2.0.4",+ "is-primitive": "^3.0.1"+ },+ "engines": {+ "node": ">=11.0"+ }+ },+ "node_modules/setimmediate": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz",+ "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/shebang-command": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "shebang-regex": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/shebang-regex": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/shell-quote": {+ "version": "1.7.3",+ "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.3.tgz",+ "integrity": "sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/shellwords": {+ "version": "0.1.1",+ "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz",+ "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/signal-exit": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",+ "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/sisteransi": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz",+ "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/slice-ansi": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-5.0.0.tgz",+ "integrity": "sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^6.0.0",+ "is-fullwidth-code-point": "^4.0.0"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/slice-ansi?sponsor=1"+ }+ },+ "node_modules/source-map": {+ "version": "0.7.4",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz",+ "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/source-map-js": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/source-map-support": {+ "version": "0.5.21",+ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz",+ "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "buffer-from": "^1.0.0",+ "source-map": "^0.6.0"+ }+ },+ "node_modules/source-map-support/node_modules/source-map": {+ "version": "0.6.1",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/spawn-sync": {+ "version": "1.0.15",+ "resolved": "https://registry.npmjs.org/spawn-sync/-/spawn-sync-1.0.15.tgz",+ "integrity": "sha512-9DWBgrgYZzNghseho0JOuh+5fg9u6QWhAWa51QC7+U5rCheZ/j1DrEZnyE0RBBRqZ9uEXGPgSSM0nky6burpVw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "dependencies": {+ "concat-stream": "^1.4.7",+ "os-shim": "^0.1.2"+ }+ },+ "node_modules/split": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz",+ "integrity": "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "through": "2"+ },+ "engines": {+ "node": "*"+ }+ },+ "node_modules/sql.js": {+ "version": "1.12.0",+ "resolved": "https://registry.npmjs.org/sql.js/-/sql.js-1.12.0.tgz",+ "integrity": "sha512-Bi+43yMx/tUFZVYD4AUscmdL6NHn3gYQ+CM+YheFWLftOmrEC/Mz6Yh7E96Y2WDHYz3COSqT+LP6Z79zgrwJlA==",+ "license": "MIT"+ },+ "node_modules/stdin-discarder": {+ "version": "0.2.2",+ "resolved": "https://registry.npmjs.org/stdin-discarder/-/stdin-discarder-0.2.2.tgz",+ "integrity": "sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/string_decoder": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",+ "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "safe-buffer": "~5.1.0"+ }+ },+ "node_modules/string-width": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^10.3.0",+ "get-east-asian-width": "^1.0.0",+ "strip-ansi": "^7.1.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/string-width-cjs": {+ "name": "string-width",+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/string-width-cjs/node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/string-width-cjs/node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/string-width-cjs/node_modules/is-fullwidth-code-point": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/string-width-cjs/node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/strip-ansi": {+ "version": "7.1.0",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz",+ "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^6.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"+ }+ },+ "node_modules/strip-ansi-cjs": {+ "name": "strip-ansi",+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/strip-ansi-cjs/node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/strip-bom": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-5.0.0.tgz",+ "integrity": "sha512-p+byADHF7SzEcVnLvc/r3uognM1hUhObuHXxJcgLCfD194XAkaLbjq3Wzb0N5G2tgIjH0dgT708Z51QxMeu60A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/strip-final-newline": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz",+ "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/strip-json-comments": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-5.0.1.tgz",+ "integrity": "sha512-0fk9zBqO67Nq5M/m45qHCJxylV/DhBlIOVExqgOMiCCrzrhU6tCibRXNqE3jwJLftzE9SNuZtYbpzcO+i9FiKw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/strip-literal": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-2.1.1.tgz",+ "integrity": "sha512-631UJ6O00eNGfMiWG78ck80dfBab8X6IVFB51jZK5Icd7XAs60Z5y7QdSd/wGIklnWvRbUNloVzhOKKmutxQ6Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "js-tokens": "^9.0.1"+ },+ "funding": {+ "url": "https://github.com/sponsors/antfu"+ }+ },+ "node_modules/strip-literal/node_modules/js-tokens": {+ "version": "9.0.1",+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-9.0.1.tgz",+ "integrity": "sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/sucrase": {+ "version": "3.35.0",+ "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.0.tgz",+ "integrity": "sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.2",+ "commander": "^4.0.0",+ "glob": "^10.3.10",+ "lines-and-columns": "^1.1.6",+ "mz": "^2.7.0",+ "pirates": "^4.0.1",+ "ts-interface-checker": "^0.1.9"+ },+ "bin": {+ "sucrase": "bin/sucrase",+ "sucrase-node": "bin/sucrase-node"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ }+ },+ "node_modules/sucrase/node_modules/commander": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz",+ "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/sucrase/node_modules/glob": {+ "version": "10.4.5",+ "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz",+ "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "foreground-child": "^3.1.0",+ "jackspeak": "^3.1.2",+ "minimatch": "^9.0.4",+ "minipass": "^7.1.2",+ "package-json-from-dist": "^1.0.0",+ "path-scurry": "^1.11.1"+ },+ "bin": {+ "glob": "dist/esm/bin.mjs"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/sucrase/node_modules/lines-and-columns": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",+ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/sucrase/node_modules/minimatch": {+ "version": "9.0.5",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",+ "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^2.0.1"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/sucrase/node_modules/minipass": {+ "version": "7.1.2",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz",+ "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=16 || 14 >=14.17"+ }+ },+ "node_modules/supports-color": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-flag": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/supports-preserve-symlinks-flag": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/symbol-tree": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz",+ "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/tailwindcss": {+ "version": "3.4.17",+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.17.tgz",+ "integrity": "sha512-w33E2aCvSDP0tW9RZuNXadXlkHXqFzSkQew/aIa2i/Sj8fThxwovwlXHSPXTbAHwEIhBFXAedUhP2tueAKP8Og==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@alloc/quick-lru": "^5.2.0",+ "arg": "^5.0.2",+ "chokidar": "^3.6.0",+ "didyoumean": "^1.2.2",+ "dlv": "^1.1.3",+ "fast-glob": "^3.3.2",+ "glob-parent": "^6.0.2",+ "is-glob": "^4.0.3",+ "jiti": "^1.21.6",+ "lilconfig": "^3.1.3",+ "micromatch": "^4.0.8",+ "normalize-path": "^3.0.0",+ "object-hash": "^3.0.0",+ "picocolors": "^1.1.1",+ "postcss": "^8.4.47",+ "postcss-import": "^15.1.0",+ "postcss-js": "^4.0.1",+ "postcss-load-config": "^4.0.2",+ "postcss-nested": "^6.2.0",+ "postcss-selector-parser": "^6.1.2",+ "resolve": "^1.22.8",+ "sucrase": "^3.35.0"+ },+ "bin": {+ "tailwind": "lib/cli.js",+ "tailwindcss": "lib/cli.js"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/tailwindcss/node_modules/chokidar": {+ "version": "3.6.0",+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",+ "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "anymatch": "~3.1.2",+ "braces": "~3.0.2",+ "glob-parent": "~5.1.2",+ "is-binary-path": "~2.1.0",+ "is-glob": "~4.0.1",+ "normalize-path": "~3.0.0",+ "readdirp": "~3.6.0"+ },+ "engines": {+ "node": ">= 8.10.0"+ },+ "funding": {+ "url": "https://paulmillr.com/funding/"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/tailwindcss/node_modules/chokidar/node_modules/glob-parent": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/tailwindcss/node_modules/glob-parent": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.3"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "node_modules/tailwindcss/node_modules/jiti": {+ "version": "1.21.7",+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz",+ "integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "jiti": "bin/jiti.js"+ }+ },+ "node_modules/tailwindcss/node_modules/readdirp": {+ "version": "3.6.0",+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",+ "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "picomatch": "^2.2.1"+ },+ "engines": {+ "node": ">=8.10.0"+ }+ },+ "node_modules/tar": {+ "version": "6.2.1",+ "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz",+ "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "chownr": "^2.0.0",+ "fs-minipass": "^2.0.0",+ "minipass": "^5.0.0",+ "minizlib": "^2.1.1",+ "mkdirp": "^1.0.3",+ "yallist": "^4.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/tar/node_modules/yallist": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/thenify": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz",+ "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "any-promise": "^1.0.0"+ }+ },+ "node_modules/thenify-all": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz",+ "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "thenify": ">= 3.1.0 < 4"+ },+ "engines": {+ "node": ">=0.8"+ }+ },+ "node_modules/through": {+ "version": "2.3.8",+ "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",+ "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/tinyexec": {+ "version": "0.3.2",+ "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz",+ "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/titleize": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/titleize/-/titleize-3.0.0.tgz",+ "integrity": "sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/tldts": {+ "version": "6.1.83",+ "resolved": "https://registry.npmjs.org/tldts/-/tldts-6.1.83.tgz",+ "integrity": "sha512-FHxxNJJ0WNsEBPHyC1oesQb3rRoxpuho/z2g3zIIAhw1WHJeQsUzK1jYK8TI1/iClaa4fS3Z2TCA9mtxXsENSg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tldts-core": "^6.1.83"+ },+ "bin": {+ "tldts": "bin/cli.js"+ }+ },+ "node_modules/tldts-core": {+ "version": "6.1.83",+ "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-6.1.83.tgz",+ "integrity": "sha512-I2wb9OJc6rXyh9d4aInhSNWChNI+ra6qDnFEGEwe9OoA68lE4Temw29bOkf1Uvwt8VZS079t1BFZdXVBmmB4dw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/tmp": {+ "version": "0.2.3",+ "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.3.tgz",+ "integrity": "sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.14"+ }+ },+ "node_modules/to-regex-range": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-number": "^7.0.0"+ },+ "engines": {+ "node": ">=8.0"+ }+ },+ "node_modules/tough-cookie": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-5.1.2.tgz",+ "integrity": "sha512-FVDYdxtnj0G6Qm/DhNPSb8Ju59ULcup3tuJxkFb5K8Bv2pUXILbf0xZWU8PX8Ov19OXljbUyveOFwRMwkXzO+A==",+ "dev": true,+ "license": "BSD-3-Clause",+ "dependencies": {+ "tldts": "^6.1.32"+ },+ "engines": {+ "node": ">=16"+ }+ },+ "node_modules/tr46": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-5.0.0.tgz",+ "integrity": "sha512-tk2G5R2KRwBd+ZN0zaEXpmzdKyOYksXwywulIX95MBODjSzMIuQnQ3m8JxgbhnL1LeVo7lqQKsYa1O3Htl7K5g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "punycode": "^2.3.1"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/ts-interface-checker": {+ "version": "0.1.13",+ "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz",+ "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==",+ "dev": true,+ "license": "Apache-2.0"+ },+ "node_modules/tslib": {+ "version": "2.8.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",+ "dev": true,+ "license": "0BSD"+ },+ "node_modules/turbo-stream": {+ "version": "2.4.0",+ "resolved": "https://registry.npmjs.org/turbo-stream/-/turbo-stream-2.4.0.tgz",+ "integrity": "sha512-FHncC10WpBd2eOmGwpmQsWLDoK4cqsA/UT/GqNoaKOQnT8uzhtCbg3EoUDMvqpOSAI0S26mr0rkjzbOO6S3v1g==",+ "license": "ISC"+ },+ "node_modules/type-fest": {+ "version": "3.13.1",+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-3.13.1.tgz",+ "integrity": "sha512-tLq3bSNx+xSpwvAJnzrK0Ep5CLNWjvFTOp71URMaAEWBfRb9nnJiBoUe0tF8bI4ZFO3omgBR6NvnbzVUT3Ly4g==",+ "dev": true,+ "license": "(MIT OR CC0-1.0)",+ "engines": {+ "node": ">=14.16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/typedarray": {+ "version": "0.0.6",+ "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",+ "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/typedarray-to-buffer": {+ "version": "3.1.5",+ "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz",+ "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-typedarray": "^1.0.0"+ }+ },+ "node_modules/typescript": {+ "version": "5.8.2",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz",+ "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },+ "engines": {+ "node": ">=14.17"+ }+ },+ "node_modules/ufo": {+ "version": "1.5.4",+ "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.5.4.tgz",+ "integrity": "sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/uhyphen": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/uhyphen/-/uhyphen-0.2.0.tgz",+ "integrity": "sha512-qz3o9CHXmJJPGBdqzab7qAYuW8kQGKNEuoHFYrBwV6hWIMcpAmxDLXojcHfFr9US1Pe6zUswEIJIbLI610fuqA==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/undici-types": {+ "version": "6.20.0",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz",+ "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/unimport": {+ "version": "3.14.6",+ "resolved": "https://registry.npmjs.org/unimport/-/unimport-3.14.6.tgz",+ "integrity": "sha512-CYvbDaTT04Rh8bmD8jz3WPmHYZRG/NnvYVzwD6V1YAlvvKROlAeNDUBhkBGzNav2RKaeuXvlWYaa1V4Lfi/O0g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@rollup/pluginutils": "^5.1.4",+ "acorn": "^8.14.0",+ "escape-string-regexp": "^5.0.0",+ "estree-walker": "^3.0.3",+ "fast-glob": "^3.3.3",+ "local-pkg": "^1.0.0",+ "magic-string": "^0.30.17",+ "mlly": "^1.7.4",+ "pathe": "^2.0.1",+ "picomatch": "^4.0.2",+ "pkg-types": "^1.3.0",+ "scule": "^1.3.0",+ "strip-literal": "^2.1.1",+ "unplugin": "^1.16.1"+ }+ },+ "node_modules/unimport/node_modules/picomatch": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz",+ "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/unimport/node_modules/pkg-types": {+ "version": "1.3.1",+ "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz",+ "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "confbox": "^0.1.8",+ "mlly": "^1.7.4",+ "pathe": "^2.0.1"+ }+ },+ "node_modules/unique-string": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-3.0.0.tgz",+ "integrity": "sha512-VGXBUVwxKMBUznyffQweQABPRRW1vHZAbadFZud4pLFAqRGvv/96vafgjWFqzourzr8YonlQiPgH0YCJfawoGQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "crypto-random-string": "^4.0.0"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/universalify": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",+ "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 10.0.0"+ }+ },+ "node_modules/unplugin": {+ "version": "1.16.1",+ "resolved": "https://registry.npmjs.org/unplugin/-/unplugin-1.16.1.tgz",+ "integrity": "sha512-4/u/j4FrCKdi17jaxuJA0jClGxB1AvU2hw/IuayPc4ay1XGaJs/rbb4v5WKwAjNifjmXK9PIFyuPiaK8azyR9w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "acorn": "^8.14.0",+ "webpack-virtual-modules": "^0.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/untildify": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz",+ "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/update-browserslist-db": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz",+ "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/browserslist"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "escalade": "^3.2.0",+ "picocolors": "^1.1.1"+ },+ "bin": {+ "update-browserslist-db": "cli.js"+ },+ "peerDependencies": {+ "browserslist": ">= 4.21.0"+ }+ },+ "node_modules/update-notifier": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-6.0.2.tgz",+ "integrity": "sha512-EDxhTEVPZZRLWYcJ4ZXjGFN0oP7qYvbXWzEgRm/Yql4dHX5wDbvh89YHP6PK1lzZJYrMtXUuZZz8XGK+U6U1og==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "boxen": "^7.0.0",+ "chalk": "^5.0.1",+ "configstore": "^6.0.0",+ "has-yarn": "^3.0.0",+ "import-lazy": "^4.0.0",+ "is-ci": "^3.0.1",+ "is-installed-globally": "^0.4.0",+ "is-npm": "^6.0.0",+ "is-yarn-global": "^0.4.0",+ "latest-version": "^7.0.0",+ "pupa": "^3.1.0",+ "semver": "^7.3.7",+ "semver-diff": "^4.0.0",+ "xdg-basedir": "^5.1.0"+ },+ "engines": {+ "node": ">=14.16"+ },+ "funding": {+ "url": "https://github.com/yeoman/update-notifier?sponsor=1"+ }+ },+ "node_modules/update-notifier/node_modules/semver": {+ "version": "7.7.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",+ "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/util-deprecate": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/uuid": {+ "version": "8.3.2",+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",+ "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "uuid": "dist/bin/uuid"+ }+ },+ "node_modules/vite": {+ "version": "6.2.0",+ "resolved": "https://registry.npmjs.org/vite/-/vite-6.2.0.tgz",+ "integrity": "sha512-7dPxoo+WsT/64rDcwoOjk76XHj+TqNTIvHKcuMQ1k4/SeHDaQt5GFAeLYzrimZrMpn/O6DtdI03WUjdxuPM0oQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "esbuild": "^0.25.0",+ "postcss": "^8.5.3",+ "rollup": "^4.30.1"+ },+ "bin": {+ "vite": "bin/vite.js"+ },+ "engines": {+ "node": "^18.0.0 || ^20.0.0 || >=22.0.0"+ },+ "funding": {+ "url": "https://github.com/vitejs/vite?sponsor=1"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ },+ "peerDependencies": {+ "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",+ "jiti": ">=1.21.0",+ "less": "*",+ "lightningcss": "^1.21.0",+ "sass": "*",+ "sass-embedded": "*",+ "stylus": "*",+ "sugarss": "*",+ "terser": "^5.16.0",+ "tsx": "^4.8.1",+ "yaml": "^2.4.2"+ },+ "peerDependenciesMeta": {+ "@types/node": {+ "optional": true+ },+ "jiti": {+ "optional": true+ },+ "less": {+ "optional": true+ },+ "lightningcss": {+ "optional": true+ },+ "sass": {+ "optional": true+ },+ "sass-embedded": {+ "optional": true+ },+ "stylus": {+ "optional": true+ },+ "sugarss": {+ "optional": true+ },+ "terser": {+ "optional": true+ },+ "tsx": {+ "optional": true+ },+ "yaml": {+ "optional": true+ }+ }+ },+ "node_modules/vite-node": {+ "version": "3.0.7",+ "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-3.0.7.tgz",+ "integrity": "sha512-2fX0QwX4GkkkpULXdT1Pf4q0tC1i1lFOyseKoonavXUNlQ77KpW2XqBGGNIm/J4Ows4KxgGJzDguYVPKwG/n5A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cac": "^6.7.14",+ "debug": "^4.4.0",+ "es-module-lexer": "^1.6.0",+ "pathe": "^2.0.3",+ "vite": "^5.0.0 || ^6.0.0"+ },+ "bin": {+ "vite-node": "vite-node.mjs"+ },+ "engines": {+ "node": "^18.0.0 || ^20.0.0 || >=22.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/vite-plugin-static-copy": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/vite-plugin-static-copy/-/vite-plugin-static-copy-2.3.0.tgz",+ "integrity": "sha512-LLKwhhHetGaCnWz4mas4qqjjguDka6/6b4+SeIohRroj8aCE7QTfiZECfPecslFQkWZ3HdQuq5kOPmWZjNYlKA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "chokidar": "^3.5.3",+ "fast-glob": "^3.2.11",+ "fs-extra": "^11.1.0",+ "p-map": "^7.0.3",+ "picocolors": "^1.0.0"+ },+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ },+ "peerDependencies": {+ "vite": "^5.0.0 || ^6.0.0"+ }+ },+ "node_modules/vite-plugin-static-copy/node_modules/chokidar": {+ "version": "3.6.0",+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",+ "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "anymatch": "~3.1.2",+ "braces": "~3.0.2",+ "glob-parent": "~5.1.2",+ "is-binary-path": "~2.1.0",+ "is-glob": "~4.0.1",+ "normalize-path": "~3.0.0",+ "readdirp": "~3.6.0"+ },+ "engines": {+ "node": ">= 8.10.0"+ },+ "funding": {+ "url": "https://paulmillr.com/funding/"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/vite-plugin-static-copy/node_modules/readdirp": {+ "version": "3.6.0",+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",+ "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "picomatch": "^2.2.1"+ },+ "engines": {+ "node": ">=8.10.0"+ }+ },+ "node_modules/w3c-xmlserializer": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz",+ "integrity": "sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "xml-name-validator": "^5.0.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/watchpack": {+ "version": "2.4.1",+ "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.1.tgz",+ "integrity": "sha512-8wrBCMtVhqcXP2Sup1ctSkga6uc2Bx0IIvKyT7yTFier5AXHooSI+QyQQAtTb7+E0IUCCKyTFmXqdqgum2XWGg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "glob-to-regexp": "^0.4.1",+ "graceful-fs": "^4.1.2"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "node_modules/wcwidth": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz",+ "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "defaults": "^1.0.3"+ }+ },+ "node_modules/web-ext-run": {+ "version": "0.2.2",+ "resolved": "https://registry.npmjs.org/web-ext-run/-/web-ext-run-0.2.2.tgz",+ "integrity": "sha512-GD59q5/1wYQJXTHrljMZaBa3cCz+Jj3FMDLYgKyAa34TPcHSuMaGqp7TcLJ66PCe43C3hmbEAZd8QCpAB34eiw==",+ "dev": true,+ "license": "MPL-2.0",+ "dependencies": {+ "@babel/runtime": "7.24.7",+ "@devicefarmer/adbkit": "3.2.6",+ "bunyan": "1.8.15",+ "chrome-launcher": "1.1.0",+ "debounce": "1.2.1",+ "es6-error": "4.1.1",+ "firefox-profile": "4.6.0",+ "fs-extra": "11.2.0",+ "fx-runner": "1.4.0",+ "mkdirp": "3.0.1",+ "multimatch": "6.0.0",+ "mz": "2.7.0",+ "node-notifier": "10.0.1",+ "parse-json": "7.1.1",+ "promise-toolbox": "0.21.0",+ "set-value": "4.1.0",+ "source-map-support": "0.5.21",+ "strip-bom": "5.0.0",+ "strip-json-comments": "5.0.1",+ "tmp": "0.2.3",+ "update-notifier": "6.0.2",+ "watchpack": "2.4.1",+ "ws": "8.18.0",+ "zip-dir": "2.0.0"+ },+ "engines": {+ "node": ">=18.0.0",+ "npm": ">=8.0.0"+ }+ },+ "node_modules/web-ext-run/node_modules/fs-extra": {+ "version": "11.2.0",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz",+ "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "graceful-fs": "^4.2.0",+ "jsonfile": "^6.0.1",+ "universalify": "^2.0.0"+ },+ "engines": {+ "node": ">=14.14"+ }+ },+ "node_modules/web-ext-run/node_modules/mkdirp": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz",+ "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "mkdirp": "dist/cjs/src/bin.js"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/webextension-polyfill": {+ "version": "0.12.0",+ "resolved": "https://registry.npmjs.org/webextension-polyfill/-/webextension-polyfill-0.12.0.tgz",+ "integrity": "sha512-97TBmpoWJEE+3nFBQ4VocyCdLKfw54rFaJ6EVQYLBCXqCIpLSZkwGgASpv4oPt9gdKCJ80RJlcmNzNn008Ag6Q==",+ "dev": true,+ "license": "MPL-2.0"+ },+ "node_modules/webidl-conversions": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz",+ "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/webpack-virtual-modules": {+ "version": "0.6.2",+ "resolved": "https://registry.npmjs.org/webpack-virtual-modules/-/webpack-virtual-modules-0.6.2.tgz",+ "integrity": "sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/whatwg-encoding": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz",+ "integrity": "sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "iconv-lite": "0.6.3"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/whatwg-mimetype": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz",+ "integrity": "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/whatwg-url": {+ "version": "14.1.1",+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-14.1.1.tgz",+ "integrity": "sha512-mDGf9diDad/giZ/Sm9Xi2YcyzaFpbdLpJPr+E9fSkyQ7KpQD4SdFcugkRQYzhmfI4KeV4Qpnn2sKPdo+kmsgRQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tr46": "^5.0.0",+ "webidl-conversions": "^7.0.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/when": {+ "version": "3.7.7",+ "resolved": "https://registry.npmjs.org/when/-/when-3.7.7.tgz",+ "integrity": "sha512-9lFZp/KHoqH6bPKjbWqa+3Dg/K/r2v0X/3/G2x4DBGchVS2QX2VXL3cZV994WQVnTM1/PD71Az25nAzryEUugw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/which": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "isexe": "^2.0.0"+ },+ "bin": {+ "node-which": "bin/node-which"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/widest-line": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-4.0.1.tgz",+ "integrity": "sha512-o0cyEG0e8GPzT4iGHphIOh0cJOV8fivsXxddQasHPHfoZf1ZexrfeA21w2NaEN1RHE+fXlfISmOE8R9N3u3Qig==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "string-width": "^5.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/widest-line/node_modules/emoji-regex": {+ "version": "9.2.2",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",+ "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/widest-line/node_modules/string-width": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz",+ "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "eastasianwidth": "^0.2.0",+ "emoji-regex": "^9.2.2",+ "strip-ansi": "^7.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/winreg": {+ "version": "0.0.12",+ "resolved": "https://registry.npmjs.org/winreg/-/winreg-0.0.12.tgz",+ "integrity": "sha512-typ/+JRmi7RqP1NanzFULK36vczznSNN8kWVA9vIqXyv8GhghUlwhGp1Xj3Nms1FsPcNnsQrJOR10N58/nQ9hQ==",+ "dev": true,+ "license": "BSD"+ },+ "node_modules/wrap-ansi": {+ "version": "9.0.0",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.0.tgz",+ "integrity": "sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^6.2.1",+ "string-width": "^7.0.0",+ "strip-ansi": "^7.1.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },+ "node_modules/wrap-ansi-cjs": {+ "name": "wrap-ansi",+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^4.0.0",+ "string-width": "^4.1.0",+ "strip-ansi": "^6.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },+ "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "color-convert": "^2.0.1"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/wrap-ansi-cjs/node_modules/is-fullwidth-code-point": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/wrap-ansi-cjs/node_modules/string-width": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/wrappy": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/write-file-atomic": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz",+ "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "imurmurhash": "^0.1.4",+ "is-typedarray": "^1.0.0",+ "signal-exit": "^3.0.2",+ "typedarray-to-buffer": "^3.1.5"+ }+ },+ "node_modules/write-file-atomic/node_modules/signal-exit": {+ "version": "3.0.7",+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/ws": {+ "version": "8.18.0",+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz",+ "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10.0.0"+ },+ "peerDependencies": {+ "bufferutil": "^4.0.1",+ "utf-8-validate": ">=5.0.2"+ },+ "peerDependenciesMeta": {+ "bufferutil": {+ "optional": true+ },+ "utf-8-validate": {+ "optional": true+ }+ }+ },+ "node_modules/wxt": {+ "version": "0.19.28",+ "resolved": "https://registry.npmjs.org/wxt/-/wxt-0.19.28.tgz",+ "integrity": "sha512-rChoeK1kRK6GzSY2CgnFtCzRhKJD2pT6tjqrJ6NhJPYfkhvhDs4i3eVTYMxyaVyhPYrMxaXW/De0FO5Eu4nWlQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@1natsu/wait-element": "^4.1.2",+ "@aklinker1/rollup-plugin-visualizer": "5.12.0",+ "@types/chrome": "^0.0.280",+ "@types/webextension-polyfill": "^0.12.1",+ "@webext-core/fake-browser": "^1.3.1",+ "@webext-core/isolated-element": "^1.1.2",+ "@webext-core/match-patterns": "^1.0.3",+ "@wxt-dev/storage": "^1.0.0",+ "async-mutex": "^0.5.0",+ "c12": "^3.0.2",+ "cac": "^6.7.14",+ "chokidar": "^4.0.3",+ "ci-info": "^4.1.0",+ "consola": "^3.2.3",+ "defu": "^6.1.4",+ "dotenv": "^16.4.5",+ "dotenv-expand": "^12.0.1",+ "esbuild": "^0.25.0",+ "fast-glob": "^3.3.2",+ "filesize": "^10.1.6",+ "fs-extra": "^11.2.0",+ "get-port-please": "^3.1.2",+ "giget": "^1.2.3",+ "hookable": "^5.5.3",+ "import-meta-resolve": "^4.1.0",+ "is-wsl": "^3.1.0",+ "jiti": "^2.4.2",+ "json5": "^2.2.3",+ "jszip": "^3.10.1",+ "linkedom": "^0.18.5",+ "magicast": "^0.3.5",+ "minimatch": "^10.0.1",+ "nano-spawn": "^0.2.0",+ "normalize-path": "^3.0.0",+ "nypm": "^0.3.12",+ "ohash": "^1.1.4",+ "open": "^10.1.0",+ "ora": "^8.1.1",+ "perfect-debounce": "^1.0.0",+ "picocolors": "^1.1.1",+ "prompts": "^2.4.2",+ "publish-browser-extension": "^2.3.0 || ^3.0.0",+ "scule": "^1.3.0",+ "unimport": "^3.13.1",+ "vite": "^5.0.0 || ^6.0.0",+ "vite-node": "^2.1.4 || ^3.0.0",+ "web-ext-run": "^0.2.1",+ "webextension-polyfill": "^0.12.0"+ },+ "bin": {+ "wxt": "bin/wxt.mjs",+ "wxt-publish-extension": "bin/wxt-publish-extension.cjs"+ },+ "funding": {+ "url": "https://github.com/sponsors/wxt-dev"+ },+ "peerDependenciesMeta": {+ "@types/chrome": {+ "optional": true+ }+ }+ },+ "node_modules/xdg-basedir": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-5.1.0.tgz",+ "integrity": "sha512-GCPAHLvrIH13+c0SuacwvRYj2SxJXQ4kaVTT5xgL3kPrz56XxkF21IGhjSE1+W0aw7gpBWRGXLCPnPby6lSpmQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/xml-name-validator": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz",+ "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/xml2js": {+ "version": "0.5.0",+ "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz",+ "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "sax": ">=0.6.0",+ "xmlbuilder": "~11.0.0"+ },+ "engines": {+ "node": ">=4.0.0"+ }+ },+ "node_modules/xmlbuilder": {+ "version": "11.0.1",+ "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz",+ "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4.0"+ }+ },+ "node_modules/xmlchars": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz",+ "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/y18n": {+ "version": "5.0.8",+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/yallist": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/yaml": {+ "version": "2.7.0",+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.0.tgz",+ "integrity": "sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "yaml": "bin.mjs"+ },+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/yargs": {+ "version": "17.7.2",+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",+ "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cliui": "^8.0.1",+ "escalade": "^3.1.1",+ "get-caller-file": "^2.0.5",+ "require-directory": "^2.1.1",+ "string-width": "^4.2.3",+ "y18n": "^5.0.5",+ "yargs-parser": "^21.1.1"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/yargs-parser": {+ "version": "21.1.1",+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",+ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/yargs/node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/yargs/node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/yargs/node_modules/is-fullwidth-code-point": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/yargs/node_modules/string-width": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/yargs/node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/yauzl": {+ "version": "2.10.0",+ "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",+ "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "buffer-crc32": "~0.2.3",+ "fd-slicer": "~1.1.0"+ }+ },+ "node_modules/zip-dir": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/zip-dir/-/zip-dir-2.0.0.tgz",+ "integrity": "sha512-uhlsJZWz26FLYXOD6WVuq+fIcZ3aBPGo/cFdiLlv3KNwpa52IF3ISV8fLhQLiqVu5No3VhlqlgthN6gehil1Dg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "async": "^3.2.0",+ "jszip": "^3.2.2"+ }+ },+ "node_modules/zod": {+ "version": "3.24.2",+ "resolved": "https://registry.npmjs.org/zod/-/zod-3.24.2.tgz",+ "integrity": "sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/colinhacks"+ }+ }+ }+}diff --git a/browser-extension/package.json b/browser-extension/package.jsonnew file mode 100644index 000000000..050fed7a1--- /dev/null+++ b/browser-extension/package.json@@ -0,0 +1,39 @@+{+ "name": "aliasvault-browser-extension",+ "description": "AliasVault Browser Extension",+ "private": true,+ "version": "0.0.0",+ "type": "module",+ "scripts": {+ "dev": "wxt",+ "dev:firefox": "wxt -b firefox",+ "build": "wxt build",+ "build:firefox": "wxt build -b firefox",+ "zip": "wxt zip",+ "zip:firefox": "wxt zip -b firefox",+ "compile": "tsc --noEmit",+ "postinstall": "wxt prepare"+ },+ "dependencies": {+ "react": "^19.0.0",+ "react-dom": "^19.0.0",+ "argon2-browser": "^1.18.0",+ "buffer": "^6.0.3",+ "react-router-dom": "^7.1.4",+ "secure-remote-password": "github:LinusU/secure-remote-password#73e5f732b6ca0cdbdc19da1a0c5f48cdbad2cbf0",+ "sql.js": "^1.12.0"+ },+ "devDependencies": {+ "@types/chrome": "^0.0.280",+ "@types/react": "^19.0.1",+ "@types/react-dom": "^19.0.2",+ "@wxt-dev/module-react": "^1.1.2",+ "typescript": "^5.6.3",+ "wxt": "^0.19.13",+ "autoprefixer": "^10.4.20",+ "jsdom": "^26.0.0",+ "postcss": "^8.5.1",+ "tailwindcss": "^3.4.17",+ "vite-plugin-static-copy": "^2.2.0"+ }+}diff --git a/browser-extension/postcss.config.js b/browser-extension/postcss.config.jsnew file mode 100644index 000000000..2c02c5436--- /dev/null+++ b/browser-extension/postcss.config.js@@ -0,0 +1,6 @@+export default {+ plugins: {+ tailwindcss: {},+ autoprefixer: {},+ },+ };\ No newline at end of filediff --git a/browser-extension/src/assets/react.svg b/browser-extension/src/assets/react.svgnew file mode 100644index 000000000..8e0e0f15c--- /dev/null+++ b/browser-extension/src/assets/react.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>diff --git a/browser-extension/src/assets/tailwind.css b/browser-extension/src/assets/tailwind.cssnew file mode 100644index 000000000..bd6213e1d--- /dev/null+++ b/browser-extension/src/assets/tailwind.css@@ -0,0 +1,3 @@+@tailwind base;+@tailwind components;+@tailwind utilities;\ No newline at end of filediff --git a/browser-extension/src/entrypoints/background.ts b/browser-extension/src/entrypoints/background.tsnew file mode 100644index 000000000..a9117ec9a--- /dev/null+++ b/browser-extension/src/entrypoints/background.ts@@ -0,0 +1,53 @@+import { browser } from "wxt/browser";+import { setupContextMenus, handleContextMenuClick } from './background/ContextMenu';+import { handleClearVault, handleCreateIdentity, handleGetCredentials, handleGetDefaultEmailDomain, handleGetDerivedKey, handleGetVault, handleStoreVault, handleSyncVault } from './background/VaultMessageHandler';+import { handleOpenPopup, handlePopupWithCredential } from './background/PopupMessageHandler';++export default defineBackground({+ main() {+ // Set up context menus+ setupContextMenus();+ browser.contextMenus.onClicked.addListener(handleContextMenuClick as any);++ // Listen for messages from popup+ browser.runtime.onMessage.addListener((message: any, sender: any) => {+ switch (message.type) {+ // Vault-related messages+ case 'STORE_VAULT':+ return handleStoreVault(message, sender);++ case 'SYNC_VAULT':+ return handleSyncVault(sender);++ case 'GET_VAULT':+ return handleGetVault(sender);++ case 'CLEAR_VAULT':+ return handleClearVault(sender);++ case 'GET_CREDENTIALS':+ return handleGetCredentials(sender);++ case 'CREATE_IDENTITY':+ return handleCreateIdentity(message, sender);++ case 'GET_DEFAULT_EMAIL_DOMAIN':+ return handleGetDefaultEmailDomain(sender);++ case 'GET_DERIVED_KEY':+ return handleGetDerivedKey(sender);++ // Popup-related messages+ case 'OPEN_POPUP':+ return handleOpenPopup(message, sender);++ case 'OPEN_POPUP_WITH_CREDENTIAL':+ return handlePopupWithCredential(message, sender);++ default:+ console.error(`Unknown message type: ${message.type}`);+ return;+ }+ });+ }+});\ No newline at end of filediff --git a/browser-extension/src/entrypoints/background/ContextMenu.ts b/browser-extension/src/entrypoints/background/ContextMenu.tsnew file mode 100644index 000000000..cd5d601e7--- /dev/null+++ b/browser-extension/src/entrypoints/background/ContextMenu.ts@@ -0,0 +1,120 @@+import { PasswordGenerator } from '../../utils/generators/Password/PasswordGenerator';++/**+ * Setup the context menus.+ */+export function setupContextMenus() : void {+ // Create root menu+ chrome.contextMenus.create({+ id: "aliasvault-root",+ title: "AliasVault",+ contexts: ["all"]+ });++ // Add fill option first (only for editable fields)+ chrome.contextMenus.create({+ id: "aliasvault-activate-form",+ parentId: "aliasvault-root",+ title: "Autofill with AliasVault",+ contexts: ["editable"],+ });++ // Add separator (only for editable fields)+ chrome.contextMenus.create({+ id: "aliasvault-separator",+ parentId: "aliasvault-root",+ type: "separator",+ contexts: ["editable"],+ });++ // Add password generator option+ chrome.contextMenus.create({+ id: "aliasvault-generate-password",+ parentId: "aliasvault-root",+ title: "Generate random password (copy to clipboard)",+ contexts: ["all"]+ });+}++/**+ * Handle context menu clicks.+ */+export function handleContextMenuClick(info: chrome.contextMenus.OnClickData, tab?: chrome.tabs.Tab) : void {+ if (info.menuItemId === "aliasvault-generate-password") {+ // Initialize password generator+ const passwordGenerator = new PasswordGenerator();+ const password = passwordGenerator.generateRandomPassword();++ // Use chrome.scripting to write password to clipboard from active tab+ if (tab?.id) {+ chrome.scripting.executeScript({+ target: { tabId: tab.id },+ func: copyPasswordToClipboard,+ args: [password]+ });+ }+ }++ if (info.menuItemId === "aliasvault-activate-form" && tab?.id) {+ // First get the active element's identifier+ chrome.scripting.executeScript({+ target: { tabId: tab.id },+ func: getActiveElementIdentifier,+ }, (results) => {+ const elementIdentifier = results[0]?.result;+ if (elementIdentifier) {+ // Then send message to content script with proper error handling+ chrome.tabs.sendMessage(+ tab.id,+ {+ type: 'OPEN_ALIASVAULT_POPUP',+ elementIdentifier+ }+ ).catch(error => {+ console.error('Error sending message to content script:', error);+ });+ }+ });+ }+}++/**+ * Copy provided password to clipboard.+ */+function copyPasswordToClipboard(generatedPassword: string) : void {+ navigator.clipboard.writeText(generatedPassword).then(() => {+ showToast('Password copied to clipboard');+ });++ /**+ * Show a toast notification.+ */+ function showToast(message: string) : void {+ const notification = document.createElement('div');+ notification.textContent = message;+ notification.style.cssText = `+ position: fixed;+ top: 20px;+ right: 20px;+ padding: 16px;+ background: #4CAF50;+ color: white;+ border-radius: 4px;+ z-index: 9999;+ box-shadow: 0 2px 5px rgba(0,0,0,0.2);+ `;+ document.body.appendChild(notification);+ setTimeout(() => notification.remove(), 3000);+ }+}++/**+ * Activate AliasVault for the active input element.+ */+function getActiveElementIdentifier() : string {+ const target = document.activeElement;+ if (target instanceof HTMLInputElement) {+ return target.id || target.name || '';+ }+ return '';+}\ No newline at end of filediff --git a/browser-extension/src/entrypoints/background/PopupMessageHandler.ts b/browser-extension/src/entrypoints/background/PopupMessageHandler.tsnew file mode 100644index 000000000..3c0f43c4d--- /dev/null+++ b/browser-extension/src/entrypoints/background/PopupMessageHandler.ts@@ -0,0 +1,29 @@+/* eslint-disable @typescript-eslint/no-explicit-any */++/**+ * Handle opening the popup.+ */+export function handleOpenPopup(message: any, sendResponse: (response: any) => void) : void {+ chrome.windows.create({+ url: chrome.runtime.getURL('index.html?mode=inline_unlock'),+ type: 'popup',+ width: 400,+ height: 600,+ focused: true+ });+ sendResponse({ success: true });+}++/**+ * Handle opening the popup with a credential.+ */+export function handlePopupWithCredential(message: any, sendResponse: (response: any) => void) : void {+ chrome.windows.create({+ url: chrome.runtime.getURL(`index.html?popup=true#/credentials/${message.credentialId}`),+ type: 'popup',+ width: 400,+ height: 600,+ focused: true+ });+ sendResponse({ success: true });+}\ No newline at end of filediff --git a/browser-extension/src/entrypoints/background/VaultMessageHandler.ts b/browser-extension/src/entrypoints/background/VaultMessageHandler.tsnew file mode 100644index 000000000..2cb73c4de--- /dev/null+++ b/browser-extension/src/entrypoints/background/VaultMessageHandler.ts@@ -0,0 +1,344 @@+/* eslint-disable @typescript-eslint/no-explicit-any */+import EncryptionUtility from '../../utils/EncryptionUtility';+import SqliteClient from '../../utils/SqliteClient';+import { WebApiService } from '../../utils/WebApiService';+import { Vault } from '../../utils/types/webapi/Vault';+import { Credential } from '../../utils/types/Credential';+import { VaultResponse } from '../../utils/types/webapi/VaultResponse';+import { VaultPostResponse } from '../../utils/types/webapi/VaultPostResponse';+import { storage } from 'wxt/storage';++/**+ * Store the vault in browser storage.+ */+export async function handleStoreVault(+ message: any,+ sendResponse: (response: any) => void+) : Promise<void> {+ try {+ const vaultResponse = message.vaultResponse as VaultResponse;+ const encryptedVaultBlob = vaultResponse.vault.blob;++ // Store encrypted vault and derived key in session storage.+ await storage.setItems([+ { key: 'session:encryptedVault', value: encryptedVaultBlob },+ { key: 'session:derivedKey', value: message.derivedKey },+ { key: 'session:publicEmailDomains', value: vaultResponse.vault.publicEmailDomainList },+ { key: 'session:privateEmailDomains', value: vaultResponse.vault.privateEmailDomainList },+ { key: 'session:vaultRevisionNumber', value: vaultResponse.vault.currentRevisionNumber }+ ]);++ sendResponse({ success: true });+ } catch (error) {+ console.error('Failed to store vault:', error);+ sendResponse({ success: false, error: 'Failed to store vault' });+ }+}++/**+ * Sync the vault with the server to check if a newer vault is available. If so, the vault will be updated.+ */+export async function handleSyncVault(+ sendResponse: (response: any) => void+) : Promise<void> {+ const webApi = new WebApiService(() => {});+ const statusResponse = await webApi.getStatus();+ const statusError = webApi.validateStatusResponse(statusResponse);+ if (statusError !== null) {+ sendResponse({ success: false, error: statusError });+ return;+ }++ const vaultRevisionNumber = await storage.getItem('session:vaultRevisionNumber') as number;++ if (statusResponse.vaultRevision > vaultRevisionNumber) {+ // Retrieve the latest vault from the server.+ const vaultResponse = await webApi.get<VaultResponse>('Vault');++ // Store encrypted vault in chrome.storage.session+ await storage.setItems([+ { key: 'session:encryptedVault', value: vaultResponse.vault.blob },+ { key: 'session:publicEmailDomains', value: vaultResponse.vault.publicEmailDomainList },+ { key: 'session:privateEmailDomains', value: vaultResponse.vault.privateEmailDomainList },+ { key: 'session:vaultRevisionNumber', value: vaultResponse.vault.currentRevisionNumber }+ ]);+ }++ sendResponse({ success: true });+}++/**+ * Get the vault from browser storage.+ */+export async function handleGetVault(+ sendResponse: (response: any) => void+) : Promise<void> {+ try {+ const encryptedVault = await storage.getItem('session:encryptedVault') as string;+ const derivedKey = await storage.getItem('session:derivedKey') as string;+ const publicEmailDomains = await storage.getItem('session:publicEmailDomains') as string[];+ const privateEmailDomains = await storage.getItem('session:privateEmailDomains') as string[];+ const vaultRevisionNumber = await storage.getItem('session:vaultRevisionNumber') as number;++ if (!encryptedVault) {+ console.error('Vault not available');+ sendResponse({ vault: null });+ return;+ }++ const decryptedVault = await EncryptionUtility.symmetricDecrypt(+ encryptedVault,+ derivedKey+ );++ sendResponse({+ vault: decryptedVault,+ publicEmailDomains: publicEmailDomains ?? [],+ privateEmailDomains: privateEmailDomains ?? [],+ vaultRevisionNumber: vaultRevisionNumber ?? 0+ });+ } catch (error) {+ console.error('Failed to get vault:', error);+ sendResponse({ vault: null, error: 'Failed to get vault' });+ }+}++/**+ * Clear the vault from browser storage.+ */+export function handleClearVault(+ sendResponse: (response: any) => void+) : void {+ storage.removeItems([+ 'session:encryptedVault',+ 'session:derivedKey',+ 'session:publicEmailDomains',+ 'session:privateEmailDomains',+ 'session:vaultRevisionNumber'+ ]);+ sendResponse({ success: true });+}++/**+ * Get all credentials.+ */+export async function handleGetCredentials(+ sendResponse: (response: any) => void+) : Promise<void> {+ // Get derived key from chrome.storage.session.+ const derivedKey = await storage.getItem('session:derivedKey') as string;++ if (!derivedKey) {+ sendResponse({ credentials: [], status: 'LOCKED' });+ return;+ }++ try {+ const sqliteClient = await createVaultSqliteClient();+ const credentials = sqliteClient.getAllCredentials();+ sendResponse({ credentials: credentials, status: 'OK' });+ } catch (error) {+ console.error('Error getting credentials:', error);+ sendResponse({ credentials: [], status: 'LOCKED', error: 'Failed to get credentials' });+ }+}++/**+ * Create an identity.+ */+export async function handleCreateIdentity(+ message: { credential: Credential },+ sendResponse: (response: any) => void+) : Promise<void> {+ // Get derived key from chrome.storage.session.+ const derivedKey = await storage.getItem('session:derivedKey') as string;++ if (!derivedKey) {+ sendResponse({ success: false, error: 'Vault is locked' });+ return;+ }++ try {+ const sqliteClient = await createVaultSqliteClient();++ // Add the new credential to the vault/database.+ sqliteClient.createCredential(message.credential);++ // Upload the new vault to the server.+ await uploadNewVaultToServer(sqliteClient);++ sendResponse({ success: true });+ } catch (error) {+ console.error('Failed to create identity:', error);+ sendResponse({ success: false, error: 'Failed to create identity' });+ }+}++/**+ * Get the email addresses for a vault.+ */+export async function getEmailAddressesForVault(+ sqliteClient: SqliteClient+): Promise<string[]> {+ // TODO: create separate query to only get email addresses to avoid loading all credentials.+ const credentials = sqliteClient.getAllCredentials();++ // Get metadata from storage+ const privateEmailDomains = await storage.getItem('session:privateEmailDomains') as string[];++ const emailAddresses = credentials+ .filter(cred => cred.Email != null)+ .map(cred => cred.Email)+ .filter((email, index, self) => self.indexOf(email) === index);++ return emailAddresses.filter(email => {+ const domain = email.split('@')[1];+ return privateEmailDomains.includes(domain);+ });+}++/**+ * Get default email domain for a vault.+ */+export function handleGetDefaultEmailDomain(+ sendResponse: (response: any) => void+) : void {+ // Wrap async operations in an IIFE+ (async () => {+ try {+ const privateEmailDomains = await storage.getItem('session:privateEmailDomains') as string[];+ const publicEmailDomains = await storage.getItem('session:publicEmailDomains') as string[];++ const sqliteClient = await createVaultSqliteClient();+ const defaultEmailDomain = sqliteClient.getDefaultEmailDomain();++ /**+ * Check if a domain is valid.+ */+ const isValidDomain = (domain: string) : boolean => {+ const isValid = (domain &&+ domain !== 'DISABLED.TLD' &&+ (privateEmailDomains.includes(domain) || publicEmailDomains.includes(domain))) as boolean;++ return isValid;+ };++ // First check if the default domain that is configured in the vault is still valid.+ if (defaultEmailDomain && isValidDomain(defaultEmailDomain)) {+ sendResponse({ domain: defaultEmailDomain });+ return;+ }++ // If default domain is not valid, fall back to first available private domain.+ const firstPrivate = privateEmailDomains.find(isValidDomain);++ if (firstPrivate) {+ sendResponse({ domain: firstPrivate });+ return;+ }++ // Return first valid public domain if no private domains are available.+ const firstPublic = publicEmailDomains.find(isValidDomain);++ if (firstPublic) {+ sendResponse({ domain: firstPublic });+ return;+ }++ // Return null if no valid domains are found+ sendResponse({ domain: null });+ } catch (error) {+ console.error('Error getting default email domain:', error);+ sendResponse({ domain: null, error: 'Failed to get default email domain' });+ }+ })();+}++/**+ * Get the derived key for the encrypted vault.+ */+export async function handleGetDerivedKey(+ sendResponse: (response: any) => void+) : Promise<void> {+ // Get derived key from chrome.storage.session.+ const derivedKey = await storage.getItem('session:derivedKey') as string;+ sendResponse(derivedKey ?? null);+}++/**+ * Upload a new version of the vault to the server using the provided sqlite client.+ */+async function uploadNewVaultToServer(sqliteClient: SqliteClient) : Promise<void> {+ const updatedVaultData = sqliteClient.exportToBase64();++ // Get derived key from chrome.storage.session.+ const derivedKey = await storage.getItem('session:derivedKey') as string;++ const encryptedVault = await EncryptionUtility.symmetricEncrypt(+ updatedVaultData,+ derivedKey+ );++ // Store updated encrypted vault in chrome.storage.session.+ await storage.setItems([+ { key: 'session:encryptedVault', value: encryptedVault }+ ]);++ // Get metadata from storage+ const vaultRevisionNumber = await storage.getItem('session:vaultRevisionNumber') as number;++ // Upload new encrypted vault to server.+ const username = await storage.getItem('local:username') as string;+ const emailAddresses = await getEmailAddressesForVault(sqliteClient);++ const newVault: Vault = {+ blob: encryptedVault,+ createdAt: new Date().toISOString(),+ credentialsCount: sqliteClient.getAllCredentials().length,+ currentRevisionNumber: vaultRevisionNumber,+ emailAddressList: emailAddresses,+ privateEmailDomainList: [], // Empty on purpose, API will not use this for vault updates.+ publicEmailDomainList: [], // Empty on purpose, API will not use this for vault updates.+ encryptionPublicKey: '', // Empty on purpose, only required if new public/private key pair is generated.+ client: '', // Empty on purpose, API will not use this for vault updates.+ updatedAt: new Date().toISOString(),+ username: username,+ version: sqliteClient.getDatabaseVersion() ?? '0.0.0'+ };++ const webApi = new WebApiService(() => {});+ const response = await webApi.post<Vault, VaultPostResponse>('Vault', newVault);++ // Check if response is successful (.status === 0)+ if (response.status === 0) {+ // Update the vault revision number in chrome.storage.session.+ await storage.setItem('session:vaultRevisionNumber', response.newRevisionNumber);+ } else {+ throw new Error('Failed to upload new vault to server');+ }+}++/**+ * Create a new sqlite client for the stored vault.+ */+async function createVaultSqliteClient() : Promise<SqliteClient> {+ // Get the encrypted vault from chrome.storage.session.+ const encryptedVault = await storage.getItem('session:encryptedVault') as string;+ const derivedKey = await storage.getItem('session:derivedKey') as string;++ if (!encryptedVault || !derivedKey) {+ throw new Error('No vault or derived key found');+ }++ // Decrypt the vault.+ const decryptedVault = await EncryptionUtility.symmetricDecrypt(+ encryptedVault,+ derivedKey+ );++ // Initialize the SQLite client with the decrypted vault.+ const sqliteClient = new SqliteClient();+ await sqliteClient.initializeFromBase64(decryptedVault);++ return sqliteClient;+}diff --git a/browser-extension/src/entrypoints/content.ts b/browser-extension/src/entrypoints/content.tsnew file mode 100644index 000000000..264a52820--- /dev/null+++ b/browser-extension/src/entrypoints/content.ts@@ -0,0 +1,6 @@+export default defineContentScript({+ matches: ['*://*.google.com/*'],+ main() {+ console.log('Hello content.');+ },+});diff --git a/browser-extension/src/entrypoints/contentScript/Filter.ts b/browser-extension/src/entrypoints/contentScript/Filter.tsnew file mode 100644index 000000000..f421485fe--- /dev/null+++ b/browser-extension/src/entrypoints/contentScript/Filter.ts@@ -0,0 +1,73 @@+import { Credential } from "../../utils/types/Credential";++/**+ * Filter credentials based on current URL and page context to determine which credentials to show+ * in the autofill popup.+ */+export function filterCredentials(credentials: Credential[], currentUrl: string, pageTitle: string): Credential[] {+ const urlObject = new URL(currentUrl);+ const baseUrl = `${urlObject.protocol}//${urlObject.hostname}`;++ // 1. Exact URL match+ let filtered = credentials.filter(cred =>+ cred.ServiceUrl?.toLowerCase() === currentUrl.toLowerCase()+ );++ // 2. Base URL match with fuzzy domain comparison if no exact matches+ filtered = filtered.concat(credentials.filter(cred => {+ if (!cred.ServiceUrl) {+ return false;+ }+ try {+ const credUrlObject = new URL(cred.ServiceUrl);+ const currentUrlObject = new URL(baseUrl);++ // Extract root domains by splitting on dots and taking last two parts+ const credDomainParts = credUrlObject.hostname.toLowerCase().split('.');+ const currentDomainParts = currentUrlObject.hostname.toLowerCase().split('.');++ // Get root domain (last two parts, e.g., 'aliasvaul.net')+ const credRootDomain = credDomainParts.slice(-2).join('.');+ const currentRootDomain = currentDomainParts.slice(-2).join('.');++ // Compare protocols and root domains+ return credUrlObject.protocol === currentUrlObject.protocol &&+ credRootDomain === currentRootDomain;+ } catch {+ return false;+ }+ }));++ // 3. Page title word match if still no matches+ if (filtered.length === 0 && pageTitle.length > 0) {+ // TODO: make bad words list configurable per language.+ const badWords = new Set([+ 'login', 'signin', 'sign', 'register', 'signup', 'account',+ 'portal', 'dashboard', 'home', 'welcome', 'authentication',+ 'page', 'site', 'secure', 'password', 'access', 'member',+ 'user', 'profile', 'auth', 'session', 'inloggen',+ 'registreren', 'registratie', 'free', 'gratis', 'create',+ 'new', 'aanmelden', 'inschrijven', 'nieuwsbrief', 'schrijf',+ 'your', 'jouw'+ ]);++ const titleWords = pageTitle.toLowerCase()+ .split(/\s+/)+ .filter(word =>+ word.length > 3 && // Filter out words shorter than 4 characters+ !badWords.has(word.toLowerCase()) // Filter out generic words+ );++ filtered = credentials.filter(cred =>+ titleWords.some(word =>+ cred.ServiceName.toLowerCase().includes(word)+ )+ );+ }++ // Ensure we have unique credentials+ const uniqueCredentials = Array.from(new Map(filtered.map(cred => [cred.Id, cred])).values());++ // Show max 3 results+ return uniqueCredentials.slice(0, 3);+}diff --git a/browser-extension/src/entrypoints/contentScript/Form.ts b/browser-extension/src/entrypoints/contentScript/Form.tsnew file mode 100644index 000000000..e85170a8a--- /dev/null+++ b/browser-extension/src/entrypoints/contentScript/Form.ts@@ -0,0 +1,237 @@+import { FormDetector } from "../../utils/formDetector/FormDetector";+import { FormFiller } from "../../utils/formDetector/FormFiller";+import { Credential } from "../../utils/types/Credential";+import { openAutofillPopup } from "./Popup";+/**+ * Global timestamp to track popup debounce time.+ * This is used to not show the popup again for a specific amount of time.+ * Used after autofill events to prevent spamming the popup from automatic+ * triggered browser events which can cause "focus" events to trigger.+ */+let popupDebounceTime = 0;++/**+ * Check if popup can be shown based on debounce time.+ */+export function canShowPopup() : boolean {+ if (Date.now() < popupDebounceTime) {+ return false;+ }++ return true;+}++/**+ * Hide popup for a specific amount of time.+ */+export function hidePopupFor(ms: number) : void {+ popupDebounceTime = Date.now() + ms;+}++/**+ * Fill credential into current form.+ *+ * @param credential - The credential to fill.+ * @param input - The input element that triggered the popup. Required when filling credentials to know which form to fill.+ */+export function fillCredential(credential: Credential, input: HTMLInputElement) : void {+ // Set debounce time to 800ms to prevent the popup from being shown again within 800ms because of autofill events.+ hidePopupFor(800);++ const formDetector = new FormDetector(document, input);+ const form = formDetector.getForm();++ if (!form) {+ // No form found, so we can't fill anything.+ return;+ }++ const formFiller = new FormFiller(form, triggerInputEvents);+ formFiller.fillFields(credential);+}++/**+ * Inject icon for a focused input element+ */+export function injectIcon(input: HTMLInputElement): void {+ const aliasvaultIconSvg = `<?xml version="1.0" encoding="UTF-8"?>+<svg enable-background="new 0 0 500 500" version="1.1" viewBox="0 0 500 500" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">+<path d="m459.87 294.95c0.016205 5.4005 0.03241 10.801-0.35022 16.873-1.111 6.3392-1.1941 12.173-2.6351 17.649-10.922 41.508-36.731 69.481-77.351 83.408-7.2157 2.4739-14.972 3.3702-22.479 4.995-23.629 0.042205-47.257 0.11453-70.886 0.12027-46.762 0.011322-93.523-0.01416-140.95-0.43411-8.59-2.0024-16.766-2.8352-24.398-5.3326-21.595-7.0666-39.523-19.656-53.708-37.552-10.227-12.903-17.579-27.17-21.28-43.221-1.475-6.3967-2.4711-12.904-3.6852-19.361-0.051849-5.747-0.1037-11.494 0.26915-17.886 4.159-42.973 27.68-71.638 63.562-92.153 0-0.70761-0.001961-1.6988 3.12e-4 -2.69 0.022484-9.8293-1.3071-19.894 0.35664-29.438 3.2391-18.579 11.08-35.272 23.763-49.773 12.098-13.832 26.457-23.989 43.609-30.029 7.813-2.7512 16.14-4.0417 24.234-5.9948 7.392-0.025734 14.784-0.05146 22.835 0.32253 4.1959 0.95392 7.7946 1.2538 11.258 2.1053 17.16 4.2192 32.287 12.176 45.469 24.104 2.2558 2.0411 4.372 6.6241 9.621 3.868 16.839-8.8419 34.718-11.597 53.603-8.594 16.791 2.6699 31.602 9.4308 44.236 20.636 11.531 10.227 19.84 22.841 25.393 37.236 6.3436 16.445 10.389 33.163 6.0798 49.389 7.9587 8.9321 15.807 16.704 22.421 25.414 9.162 12.065 15.33 25.746 18.144 40.776 0.97046 5.1848 1.9111 10.375 2.8654 15.563m-71.597 71.012c5.5615-5.2284 12.002-9.7986 16.508-15.817 10.474-13.992 14.333-29.916 11.288-47.446-2.2496-12.95-8.1973-24.076-17.243-33.063-12.746-12.663-28.865-18.614-46.786-18.569-69.912 0.17712-139.82 0.56831-209.74 0.96176-15.922 0.089599-29.168 7.4209-39.685 18.296-14.45 14.944-20.408 33.343-16.655 54.368 2.2763 12.754 8.2167 23.748 17.158 32.66 13.299 13.255 30.097 18.653 48.728 18.651 59.321-0.005188 118.64 0.042358 177.96-0.046601 9.5912-0.014374 19.181-0.86588 28.773-0.88855 10.649-0.025146 19.978-3.825 29.687-9.1074z" fill="#EEC170"/>+<path d="m162.77 293c15.654 4.3883 20.627 22.967 10.304 34.98-5.3104 6.1795-14.817 8.3208-24.278 5.0472-7.0723-2.4471-12.332-10.362-12.876-17.933-1.0451-14.542 11.089-23.176 21.705-23.046 1.5794 0.019287 3.1517 0.61566 5.1461 0.95184z" fill="#EEC170"/>+<path d="m227.18 293.64c7.8499 2.3973 11.938 8.2143 13.524 15.077 1.8591 8.0439-0.44817 15.706-7.1588 21.121-6.7633 5.4572-14.417 6.8794-22.578 3.1483-8.2972-3.7933-12.836-10.849-12.736-19.438 0.1687-14.497 14.13-25.368 28.948-19.908z" fill="#EEC170"/>+<path d="m261.57 319.07c-2.495-14.418 4.6853-22.603 14.596-26.108 9.8945-3.4995 23.181 3.4303 26.267 13.779 4.6504 15.591-7.1651 29.064-21.665 28.161-8.5254-0.53088-17.202-6.5094-19.198-15.831z" fill="#EEC170"/>+<path d="m336.91 333.41c-9.0175-4.2491-15.337-14.349-13.829-21.682 3.0825-14.989 13.341-20.304 23.018-19.585 10.653 0.79141 17.93 7.407 19.765 17.547 1.9588 10.824-4.1171 19.939-13.494 23.703-5.272 2.1162-10.091 1.5086-15.46 0.017883z" fill="#EEC170"/>+</svg>`;++ const ICON_HTML = `+<div class="aliasvault-input-icon" style="+ display: flex;+ align-items: center;+ justify-content: center;+ position: absolute;+ cursor: pointer;+ width: 24px;+ height: 24px;+ pointer-events: auto;+ opacity: 0;+ transition: opacity 0.2s ease-in-out;+">+ <img src="data:image/svg+xml;base64,${btoa(aliasvaultIconSvg)}" style="width: 100%; height: 100%;" />+</div>+`;++ // Generate unique ID if input doesn't have one+ if (!input.id) {+ input.id = `aliasvault-input-${Math.random().toString(36).substring(2, 11)}`;+ }++ // Create an overlay container at document level if it doesn't exist+ let overlayContainer = document.getElementById('aliasvault-overlay-container');+ if (!overlayContainer) {+ overlayContainer = document.createElement('div');+ overlayContainer.id = 'aliasvault-overlay-container';+ overlayContainer.style.cssText = `+ position: fixed;+ top: 0;+ left: 0;+ width: 100%;+ height: 100%;+ pointer-events: none;+ z-index: 2147483640;+ `;+ document.body.appendChild(overlayContainer);+ }++ // Create the icon element from the HTML template+ const iconContainer = document.createElement('div');+ iconContainer.innerHTML = ICON_HTML;+ const icon = iconContainer.firstElementChild as HTMLElement;+ icon.setAttribute('data-icon-for', input.id);++ // Enable pointer events just for the icon+ icon.style.pointerEvents = 'auto';++ /**+ * Update position of the icon.+ */+ const updateIconPosition = () : void => {+ const rect = input.getBoundingClientRect();+ icon.style.position = 'fixed';+ icon.style.top = `${rect.top + (rect.height - 24) / 2}px`;+ icon.style.left = `${rect.right - 32}px`;+ };++ // Update position initially and on relevant events+ updateIconPosition();+ window.addEventListener('scroll', updateIconPosition, true);+ window.addEventListener('resize', updateIconPosition);++ // Add click event to trigger the autofill popup and refocus the input+ icon.addEventListener('click', (e: MouseEvent) => {+ e.preventDefault();+ e.stopPropagation();+ setTimeout(() => input.focus(), 0);+ openAutofillPopup(input);+ });++ // Append the icon to the overlay container+ overlayContainer.appendChild(icon);++ // Fade in the icon+ requestAnimationFrame(() => {+ icon.style.opacity = '1';+ });++ /**+ * Remove the icon when the input loses focus.+ */+ const handleBlur = (): void => {+ icon.style.opacity = '0';+ setTimeout(() => {+ icon.remove();+ input.removeEventListener('blur', handleBlur);+ input.removeEventListener('keydown', handleKeyPress);+ window.removeEventListener('scroll', updateIconPosition, true);+ window.removeEventListener('resize', updateIconPosition);++ // Remove overlay container if it's empty+ if (!overlayContainer.children.length) {+ overlayContainer.remove();+ }+ }, 200);+ };++ /**+ * Handle key press to dismiss icon.+ */+ const handleKeyPress = (e: KeyboardEvent): void => {+ // Dismiss on Enter, Escape, or Tab.+ if (e.key === 'Enter' || e.key === 'Escape' || e.key === 'Tab') {+ handleBlur();+ }+ };++ input.addEventListener('blur', handleBlur);+ input.addEventListener('keydown', handleKeyPress);+}++/**+ * Trigger input events for an element to trigger form validation+ * which some websites require before the "continue" button is enabled.+ */+function triggerInputEvents(element: HTMLInputElement | HTMLSelectElement) : void {+ // Create an overlay div that will show the highlight effect+ const overlay = document.createElement('div');++ /**+ * Update position of the overlay.+ */+ const updatePosition = () : void => {+ const rect = element.getBoundingClientRect();+ overlay.style.cssText = `+ position: fixed;+ z-index: 999999991;+ pointer-events: none;+ top: ${rect.top}px;+ left: ${rect.left}px;+ width: ${rect.width}px;+ height: ${rect.height}px;+ background-color: rgba(244, 149, 65, 0.3);+ border-radius: ${getComputedStyle(element).borderRadius};+ animation: fadeOut 1.4s ease-out forwards;+ `;+ };++ updatePosition();++ // Add scroll event listener+ window.addEventListener('scroll', updatePosition);++ // Add keyframe animation+ const style = document.createElement('style');+ style.textContent = `+ @keyframes fadeOut {+ 0% { opacity: 1; transform: scale(1.02); }+ 100% { opacity: 0; transform: scale(1); }+ }+ `;+ document.head.appendChild(style);+ document.body.appendChild(overlay);++ // Remove overlay and cleanup after animation+ setTimeout(() => {+ window.removeEventListener('scroll', updatePosition);+ overlay.remove();+ style.remove();+ }, 1400);++ // Trigger events+ element.dispatchEvent(new Event('input', { bubbles: true }));+ element.dispatchEvent(new Event('change', { bubbles: true }));++ if (element.type === 'radio') {+ element.dispatchEvent(new MouseEvent('mousedown', { bubbles: true }));+ element.dispatchEvent(new MouseEvent('mouseup', { bubbles: true }));+ element.dispatchEvent(new MouseEvent('click', { bubbles: true }));+ }+}diff --git a/browser-extension/src/entrypoints/contentScript/Popup.ts b/browser-extension/src/entrypoints/contentScript/Popup.tsnew file mode 100644index 000000000..1097e892d--- /dev/null+++ b/browser-extension/src/entrypoints/contentScript/Popup.ts@@ -0,0 +1,1256 @@+import { isDarkMode } from './Shared';+import { Credential } from '../../utils/types/Credential';+import { fillCredential } from './Form';+import { filterCredentials } from './Filter';+import { IdentityGeneratorEn } from '../../utils/generators/Identity/implementations/IdentityGeneratorEn';+import { PasswordGenerator } from '../../utils/generators/Password/PasswordGenerator';++/**+ * Placeholder base64 image for credentials without a logo.+ */+const placeholderBase64 = 'UklGRjoEAABXRUJQVlA4IC4EAAAwFwCdASqAAIAAPpFCm0olo6Ihp5IraLASCWUA0eb/0s56RrLtCnYfLPiBshdXWMx8j1Ez65f169iA4xUDBTEV6ylMQeCIj2b7RngGi7gKZ9WjKdSoy9R8JcgOmjCMlDmLG20KhNo/i/Dc/Ah5GAvGfm8kfniV3AkR6fxN6eKwjDc6xrDgSfS48G5uGV6WzQt24YAVlLSK9BMwndzfHnePK1KFchFrL7O3ulB8cGNCeomu4o+l0SrS/JKblJ4WTzj0DAD++lCUEouSfgRKdiV2TiYCD+H+l3tANKSPQFPQuzi7rbvxqGeRmXB9kDwURaoSTTpYjA9REMUi9uA6aV7PWtBNXgUzMLowYMZeos6Xvyhb34GmufswMHA5ZyYpxzjTphOak4ZjNOiz8aScO5ygiTx99SqwX/uL+HSeVOSraHw8IymrMwm+jLxqN8BS8dGcItLlm/ioulqH2j4V8glDgSut+ExkxiD7m8TGPrrjCQNJbRDzpOFsyCyfBZupvp8QjGKW2KGziSZeIWes4aTB9tRmeEBhnUrmTDZQuXcc67Fg82KHrSfaeeOEq6jjuUjQ8wUnzM4Zz3dhrwSyslVz/WvnKqYkr4V/TTXPFF5EjF4rM1bHZ8bK63EfTnK41+n3n4gEFoYP4mXkNH0hntnYcdTqiE7Gn+q0BpRRxnkpBSZlA6Wa70jpW0FGqkw5e591A5/H+OV+60WAo+4Mi+NlsKrvLZ9EiVaPnoEFZlJQx1fA777AJ2MjXJ4KSsrWDWJi1lE8yPs8V6XvcC0chDTYt8456sKXAagCZyY+fzQriFMaddXyKQdG8qBqcdYjAsiIcjzaRFBBoOK9sU+sFY7N6B6+xtrlu3c37rQKkI3O2EoiJOris54EjJ5OFuumA0M6riNUuBf/MEPFBVx1JRcUEs+upEBsCnwYski7FT3TTqHrx7v5AjgFN97xhPTkmVpu6sxRnWBi1fxIRp8eWZeFM6mUcGgVk1WeVb1yhdV9hoMo2TsNEPE0tHo/wvuSJSzbZo7wibeXM9v/rRfKcx7X93rfiXVnyQ9f/5CaAQ4lxedPp/6uzLtOS4FyL0bCNeZ6L5w+AiuyWCTDFIYaUzhwfG+/YTQpWyeZCdQIKzhV+3GeXI2cxoP0ER/DlOKymf1gm+zRU3sqf1lBVQ0y+mK/Awl9bS3uaaQmI0FUyUwHUKP7PKuXnO+LcwDv4OfPT6hph8smc1EtMe5ib/apar/qZ9dyaEaElALJ1KKxnHziuvVl8atk1fINSQh7OtXDyqbPw9o/nGIpTnv5iFmwmWJLis2oyEgPkJqyx0vYI8rjkVEzKc8eQavAJBYSpjMwM193Swt+yJyjvaGYWPnqExxKiNarpB2WSO7soCAZXhS1uEYHryrK47BH6W1dRiruqT0xpLih3MXiwU3VDwAAAA==';++/**+ * Response from the background script.+ */+type CredentialResponse = {+ status: 'OK' | 'LOCKED';+ credentials?: Credential[];+}++/**+ * Create basic popup with default style.+ */+export function createBasePopup(input: HTMLInputElement) : HTMLElement {+ // Remove existing popup and its event listeners+ removeExistingPopup();++ const popup = document.createElement('div');+ popup.id = 'aliasvault-credential-popup';++ // Set popup width to match input width, with min/max constraints+ const popupWidth = 320;++ popup.style.cssText = `+ all: unset;+ position: absolute;+ z-index: 999999991;+ background: ${isDarkMode() ? '#1f2937' : 'white'};+ border: 1px solid ${isDarkMode() ? '#374151' : '#ccc'};+ border-radius: 4px;+ box-shadow: 0 2px 10px ${isDarkMode() ? 'rgba(0,0,0,0.6)' : 'rgba(0,0,0,0.4)'};+ width: ${popupWidth}px;+ letter-spacing: 0 !important;+ color: ${isDarkMode() ? '#f8f9fa' : '#000000'};+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;+ `;++ // Position popup below input+ const rect = input.getBoundingClientRect();+ popup.style.top = `${rect.bottom + window.scrollY + 4}px`;+ popup.style.left = `${rect.left + window.scrollX + 2}px`;++ return popup;+}++/**+ * Create a loading popup.+ */+export function createLoadingPopup(input: HTMLInputElement, message: string) : HTMLElement {+ /**+ * Get the loading wrapper HTML.+ */+ const getLoadingHtml = (message: string): string => `+ <div style="+ display: flex;+ align-items: center;+ justify-content: center;+ padding: 20px;+ gap: 8px;+ ">+ <svg style="all:unset; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2;" viewBox="0 0 24 24">+ <circle cx="12" cy="12" r="10"+ fill="none"+ stroke="${isDarkMode() ? '#e5e7eb' : '#374151'}"+ stroke-width="2"+ stroke-dasharray="30 60"+ stroke-linecap="round">+ <animateTransform+ attributeName="transform"+ attributeType="XML"+ type="rotate"+ from="0 12 12"+ to="360 12 12"+ dur="1s"+ repeatCount="indefinite"+ />+ </circle>+ </svg>+ <span style="font-size: 14px; font-weight: 500; line-height: normal;">${message}</span>+ </div>+`;++ const popup = createBasePopup(input);+ popup.innerHTML = getLoadingHtml(message);++ document.body.appendChild(popup);+ return popup;+}++/**+ * Update the credential list content in the popup.+ *+ * @param credentials - The credentials to display.+ * @param credentialList - The credential list element.+ * @param input - The input element that triggered the popup. Required when filling credentials to know which form to fill.+ */+export function updatePopupContent(credentials: Credential[], credentialList: HTMLElement | null, input: HTMLInputElement) : void {+ if (!credentialList) {+ credentialList = document.getElementById('aliasvault-credential-list') as HTMLElement;+ }++ if (!credentialList) {+ return;+ }++ // Clear existing content+ credentialList.innerHTML = '';++ // Add credentials using the shared function+ const credentialElements = createCredentialList(credentials, input);+ credentialElements.forEach(element => credentialList.appendChild(element));+}++/**+ * Remove existing popup (if any exists).+ */+export function removeExistingPopup() : void {+ const existing = document.getElementById('aliasvault-credential-popup');+ if (existing) {+ existing.remove();+ }+}++/**+ * Create auto-fill popup+ */+export function createAutofillPopup(input: HTMLInputElement, credentials: Credential[] | undefined) : void {+ // Disable browser's native autocomplete to avoid conflicts with AliasVault's autocomplete.+ input.setAttribute('autocomplete', 'false');++ const popup = createBasePopup(input);++ // Create credential list container with ID+ const credentialList = document.createElement('div');+ credentialList.id = 'aliasvault-credential-list';+ credentialList.style.cssText = `+ max-height: 180px;+ overflow-y: auto;+ scrollbar-width: thin;+ scrollbar-color: ${isDarkMode() ? '#4b5563 #1f2937' : '#d1d5db #ffffff'};+ line-height: 1.3;+ `;+ popup.appendChild(credentialList);++ // Add initial credentials+ if (!credentials) {+ credentials = [];+ }++ const filteredCredentials = filterCredentials(+ credentials,+ window.location.href,+ document.title+ );++ updatePopupContent(filteredCredentials, credentialList, input);++ // Add divider+ const divider = document.createElement('div');+ divider.style.cssText = `+ height: 1px;+ background: ${isDarkMode() ? '#374151' : '#e5e7eb'};+ margin-bottom: 8px;+ `;+ popup.appendChild(divider);++ // Add action buttons container+ const actionContainer = document.createElement('div');+ actionContainer.style.cssText = `+ display: flex;+ padding-left: 8px;+ padding-right: 8px;+ padding-bottom: 8px;+ gap: 8px;+ `;++ // Create New button+ const createButton = document.createElement('button');+ createButton.style.cssText = `+ flex: 1;+ padding: 6px 12px;+ border-radius: 4px;+ background: ${isDarkMode() ? '#374151' : '#f3f4f6'};+ color: ${isDarkMode() ? '#e5e7eb' : '#374151'};+ font-size: 14px;+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;+ cursor: pointer;+ border: none;+ display: flex;+ align-items: center;+ justify-content: center;+ gap: 4px;+ transition: background-color 0.2s ease;+ line-height: 1;+ text-transform: none;+ font-weight: 500;+ margin: 0;+ min-width: auto;+ max-width: auto;+ min-height: auto;+ max-height: auto;+ `;++ createButton.innerHTML = `+ <svg style="all:unset; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2;" viewBox="0 0 24 24">+ <line x1="12" y1="5" x2="12" y2="19"></line>+ <line x1="5" y1="12" x2="19" y2="12"></line>+ </svg>+ New+ `;++ // Add hover event listeners+ createButton.addEventListener('mouseenter', () => {+ createButton.style.backgroundColor = isDarkMode() ? '#d68338' : '#f49541'; // primary-600 : primary-500+ });++ createButton.addEventListener('mouseleave', () => {+ createButton.style.backgroundColor = isDarkMode() ? '#374151' : '#f3f4f6';+ });++ /**+ * Handle create button click+ */+ const handleCreateClick = async (e: Event) : Promise<void> => {+ e.preventDefault();+ e.stopPropagation();+ e.stopImmediatePropagation();++ // Determine service name based on conditions+ let suggestedName = document.title;++ // First try to extract the last part after common divider characters using a safe pattern+ const dividerRegex = /[|\-–—/\\][^|\-–—/\\]*$/;+ const dividerMatch = dividerRegex.exec(document.title);+ if (dividerMatch && dividerMatch[0].trim().split(/\s+/).length === 1) {+ // If we found a match and it's a single word, use it+ suggestedName = dividerMatch[0].trim();+ } else {+ // Fall back to previous logic for long titles+ const wordCount = document.title.trim().split(/\s+/).length;+ if (wordCount > 3) {+ // Extract main domain + extension by taking last 2 parts of hostname+ const domainParts = window.location.hostname.replace(/^www\./, '').split('.');+ const mainDomain = domainParts.slice(-2).join('.');+ suggestedName = mainDomain;+ }+ }++ const serviceName = await createEditNamePopup(suggestedName);+ if (!serviceName) {+ // User cancelled+ return;+ }++ const loadingPopup = createLoadingPopup(input, 'Creating new alias...');++ try {+ // Sync with api to ensure we have the latest vault.+ await chrome.runtime.sendMessage({ type: 'SYNC_VAULT' });++ // Retrieve default email domain from background+ const response = await new Promise<{ domain: string }>((resolve) => {+ chrome.runtime.sendMessage({ type: 'GET_DEFAULT_EMAIL_DOMAIN' }, resolve);+ });++ const domain = response.domain;++ // Generate new identity locally+ const identityGenerator = new IdentityGeneratorEn();+ const identity = await identityGenerator.generateRandomIdentity();++ const passwordGenerator = new PasswordGenerator();+ const password = passwordGenerator.generateRandomPassword();++ // Extract favicon from page and get the bytes+ const faviconBytes = await getFaviconBytes(document);++ /**+ * Get a valid service URL from the current page.+ */+ const getValidServiceUrl = (): string | null => {+ try {+ // Check if we're in an iframe with invalid/null source+ if (window !== window.top && (!window.location.href || window.location.href === 'about:srcdoc')) {+ return null;+ }++ const url = new URL(window.location.href);++ // Validate the domain/origin+ if (!url.origin || url.origin === 'null' || !url.hostname) {+ return null;+ }++ // Check for valid protocol (only http/https)+ if (!(/^https?:$/).exec(url.protocol)) {+ return null;+ }++ return url.origin + url.pathname;+ } catch (error) {+ console.debug('Error validating service URL:', error);+ return null;+ }+ };++ // Get valid service URL, defaults to empty string if invalid+ const serviceUrl = getValidServiceUrl() ?? '';++ // Submit new identity to backend to persist in db+ const credential: Credential = {+ Id: '',+ ServiceName: serviceName,+ ServiceUrl: serviceUrl,+ Email: `${identity.emailPrefix}@${domain}`,+ Logo: faviconBytes ? new Uint8Array(faviconBytes) : undefined,+ Username: identity.nickName,+ Password: password,+ Notes: '',+ Alias: {+ FirstName: identity.firstName,+ LastName: identity.lastName,+ NickName: identity.nickName,+ BirthDate: identity.birthDate.toISOString(),+ Gender: identity.gender,+ Email: `${identity.emailPrefix}@${domain}`+ }+ };++ chrome.runtime.sendMessage({ type: 'CREATE_IDENTITY', credential }, () => {+ // Close popup.+ removeExistingPopup();++ // Fill the form with the new identity immediately.+ fillCredential(credential, input);+ });+ } catch (error) {+ console.error('Error creating identity:', error);+ loadingPopup.innerHTML = `+ <div style="padding: 16px; color: #ef4444;">+ Failed to create identity. Please try again.+ </div>+ `;+ setTimeout(() => {+ removeExistingPopup();+ }, 2000);+ }+ };++ // Add click listener with capture and prevent removal.+ createButton.addEventListener('click', handleCreateClick, {+ capture: true,+ passive: false+ });++ // Backup click handling using mousedown/mouseup if needed.+ let isMouseDown = false;+ createButton.addEventListener('mousedown', (e) => {+ e.preventDefault();+ e.stopPropagation();+ isMouseDown = true;+ }, { capture: true });++ createButton.addEventListener('mouseup', (e) => {+ e.preventDefault();+ e.stopPropagation();+ if (isMouseDown) {+ handleCreateClick(e);+ }+ isMouseDown = false;+ }, { capture: true });++ // Create search input.+ const searchInput = document.createElement('input');+ searchInput.type = 'text';+ searchInput.dataset.aliasvaultIgnore = 'true';+ searchInput.placeholder = 'Search vault...';+ searchInput.style.cssText = `+ all: unset;+ flex: 2;+ padding: 6px 12px;+ border-radius: 4px;+ background: ${isDarkMode() ? '#374151' : '#f3f4f6'};+ color: ${isDarkMode() ? '#e5e7eb' : '#374151'};+ font-size: 14px;+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;+ border: 1px solid ${isDarkMode() ? '#4b5563' : '#e5e7eb'};+ outline: none;+ line-height: 1;+ box-shadow: none;+ margin: 0;+ height: auto;+ text-align: left;+ `;++ // Add focus styles.+ searchInput.addEventListener('focus', () => {+ searchInput.style.borderColor = '#2563eb';+ searchInput.style.boxShadow = '0 0 0 2px rgba(37, 99, 235, 0.2)';+ });++ searchInput.addEventListener('blur', () => {+ searchInput.style.borderColor = isDarkMode() ? '#4b5563' : '#e5e7eb';+ searchInput.style.boxShadow = 'none';+ });++ // Handle search input.+ let searchTimeout: NodeJS.Timeout;++ searchInput.addEventListener('input', () => {+ clearTimeout(searchTimeout);+ const searchTerm = searchInput.value.toLowerCase();++ chrome.runtime.sendMessage({ type: 'GET_CREDENTIALS' }, (response: CredentialResponse) => {+ if (response.status === 'OK' && response.credentials) {+ // Ensure we have unique credentials+ const uniqueCredentials = Array.from(new Map(response.credentials.map(cred => [cred.Id, cred])).values());+ let filteredCredentials;++ if (searchTerm === '') {+ // If search is empty, use original URL-based filtering+ filteredCredentials = filterCredentials(+ uniqueCredentials,+ window.location.href,+ document.title+ ).sort((a, b) => {+ // First compare by service name+ const serviceNameComparison = (a.ServiceName ?? '').localeCompare(b.ServiceName ?? '');+ if (serviceNameComparison !== 0) {+ return serviceNameComparison;+ }++ // If service names are equal, compare by username/nickname+ return (a.Username ?? '').localeCompare(b.Username ?? '');+ });+ } else {+ // Otherwise filter based on search term+ filteredCredentials = uniqueCredentials.filter(cred =>+ cred.ServiceName.toLowerCase().includes(searchTerm) ||+ cred.Username.toLowerCase().includes(searchTerm) ||+ cred.Email.toLowerCase().includes(searchTerm) ||+ cred.ServiceUrl?.toLowerCase().includes(searchTerm)+ ).sort((a, b) => {+ // First compare by service name+ const serviceNameComparison = (a.ServiceName ?? '').localeCompare(b.ServiceName ?? '');+ if (serviceNameComparison !== 0) {+ return serviceNameComparison;+ }++ // If service names are equal, compare by username/nickname+ return (a.Username ?? '').localeCompare(b.Username ?? '');+ });+ }++ // Update popup content with filtered results+ updatePopupContent(filteredCredentials, credentialList, input);+ }+ });+ });++ // Close button+ const closeButton = document.createElement('button');+ closeButton.style.cssText = `+ padding: 6px;+ border-radius: 4px;+ background: ${isDarkMode() ? '#374151' : '#f3f4f6'};+ color: ${isDarkMode() ? '#e5e7eb' : '#374151'};+ font-size: 14px;+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;+ cursor: pointer;+ border: none;+ display: flex;+ align-items: center;+ justify-content: center;+ transition: all 0.2s ease;+ text-transform: none;+ font-weight: 500;+ margin: 0;+ min-width: auto;+ max-width: auto;+ min-height: auto;+ max-height: auto;+ `;++ closeButton.innerHTML = `+ <svg style="all:unset; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2;" viewBox="0 0 24 24">+ <line x1="18" y1="6" x2="6" y2="18"></line>+ <line x1="6" y1="6" x2="18" y2="18"></line>+ </svg>+`;++ // Add hover event listeners+ closeButton.addEventListener('mouseenter', () => {+ closeButton.style.backgroundColor = isDarkMode() ? '#dc2626' : '#ef4444'; // red-600 : red-500+ closeButton.style.color = '#ffffff'; // White text on hover+ });++ closeButton.addEventListener('mouseleave', () => {+ closeButton.style.backgroundColor = isDarkMode() ? '#374151' : '#f3f4f6';+ closeButton.style.color = isDarkMode() ? '#e5e7eb' : '#374151';+ });++ closeButton.addEventListener('click', async () => {+ await disableAutoShowPopup();+ removeExistingPopup();+ });++ actionContainer.appendChild(searchInput);+ actionContainer.appendChild(createButton);+ actionContainer.appendChild(closeButton);+ popup.appendChild(actionContainer);++ /**+ * Handle clicking outside the popup.+ */+ const handleClickOutside = (event: MouseEvent) : void => {+ const popup = document.getElementById('aliasvault-credential-popup');+ const target = event.target as Node;++ // If popup doesn't exist, remove the listener+ if (!popup) {+ document.removeEventListener('mousedown', handleClickOutside);+ return;+ }++ // Ignore clicks on the popup and its children+ if (popup.contains(target)) {+ return;+ }++ // Check if click target is an input field+ const inputFields = document.querySelectorAll('input');+ for (const input of inputFields) {+ if (input.contains(target)) {+ return;+ }+ }++ removeExistingPopup();+ };++ // Add the event listener for clicking outside+ document.addEventListener('mousedown', handleClickOutside);+ document.body.appendChild(popup);+}++/**+ * Create vault locked popup.+ */+export function createVaultLockedPopup(input: HTMLInputElement): void {+ const popup = createBasePopup(input);++ // Adjust popup css+ popup.style.padding = '12px 16px';+ popup.style.cursor = 'pointer';++ // Add hover effect to the entire popup+ popup.addEventListener('mouseenter', () => {+ popup.style.backgroundColor = isDarkMode() ? '#374151' : '#f0f0f0';+ });++ popup.addEventListener('mouseleave', () => {+ popup.style.backgroundColor = isDarkMode() ? '#1f2937' : 'white';+ });++ // Make the whole popup clickable to open the main extension login popup.+ popup.addEventListener('click', () => {+ chrome.runtime.sendMessage({ type: 'OPEN_POPUP' });+ removeExistingPopup();+ });++ // Create container for message and button+ const container = document.createElement('div');+ container.style.cssText = `+ display: flex;+ align-items: center;+ position: relative;+ `;++ // Add message+ const messageElement = document.createElement('div');+ messageElement.style.cssText = `+ color: ${isDarkMode() ? '#d1d5db' : '#666'};+ font-size: 14px;+ padding-right: 32px;+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;+ `;+ messageElement.textContent = 'AliasVault is locked.';+ container.appendChild(messageElement);++ // Add unlock button with SVG icon+ const button = document.createElement('button');+ button.title = 'Unlock AliasVault';+ button.style.cssText = `+ position: absolute;+ right: 0;+ background: none;+ border: none;+ cursor: pointer;+ padding: 4px;+ display: flex;+ align-items: center;+ justify-content: center;+ color: ${isDarkMode() ? '#d68338' : '#f49541'};+ border-radius: 4px;+ `;+ button.innerHTML = `+ <svg style="all:unset; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;" viewBox="0 0 24 24">+ <rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect>+ <path d="M7 11V7a5 5 0 0 1 10 0v4"></path>+ </svg>+ `;++ container.appendChild(button);+ popup.appendChild(container);++ /**+ * Add event listener to document to close popup when clicking outside.+ */+ const handleClickOutside = (event: MouseEvent): void => {+ if (!popup.contains(event.target as Node)) {+ removeExistingPopup();+ document.removeEventListener('mousedown', handleClickOutside);+ }+ };++ setTimeout(() => {+ document.addEventListener('mousedown', handleClickOutside);+ }, 100);++ document.body.appendChild(popup);+}++/**+ * Create credential list content for popup+ *+ * @param credentials - The credentials to display.+ * @param input - The input element that triggered the popup. Required when filling credentials to know which form to fill.+ */+function createCredentialList(credentials: Credential[], input: HTMLInputElement): HTMLElement[] {+ const elements: HTMLElement[] = [];++ if (credentials.length > 0) {+ credentials.forEach(cred => {+ const item = document.createElement('div');+ item.style.cssText = `+ padding: 6px 16px;+ cursor: pointer;+ display: flex;+ align-items: center;+ gap: 8px;+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;+ transition: background-color 0.2s ease;+ border-radius: 4px;+ width: 100%;+ box-sizing: border-box;+ text-align: left;+ `;++ // Create container for credential info (logo + username)+ const credentialInfo = document.createElement('div');+ credentialInfo.style.cssText = `+ display: flex;+ align-items: center;+ gap: 16px;+ flex-grow: 1;+ padding: 4px;+ border-radius: 4px;+ transition: background-color 0.2s ease;+ min-width: 0; /* Enable text truncation */+ `;++ const imgElement = document.createElement('img');+ imgElement.style.width = '20px';+ imgElement.style.height = '20px';++ // Handle base64 image data+ if (cred.Logo) {+ try {+ const logoBytes = toUint8Array(cred.Logo);+ const base64Logo = base64Encode(logoBytes);+ // Detect image type from first few bytes+ const mimeType = detectMimeType(logoBytes);+ imgElement.src = `data:${mimeType};base64,${base64Logo}`;+ } catch (error) {+ console.error('Error setting logo:', error);+ imgElement.src = `data:image/x-icon;base64,${placeholderBase64}`;+ }+ } else {+ imgElement.src = `data:image/x-icon;base64,${placeholderBase64}`;+ }++ credentialInfo.appendChild(imgElement);+ const credTextContainer = document.createElement('div');+ credTextContainer.style.cssText = `+ display: flex;+ flex-direction: column;+ flex-grow: 1;+ min-width: 0; /* Enable text truncation */+ margin-right: 8px; /* Add space between text and popout icon */+ `;++ // Service name (primary text)+ const serviceName = document.createElement('div');+ serviceName.style.cssText = `+ font-weight: 500;+ white-space: nowrap;+ overflow: hidden;+ font-size: 14px;+ text-overflow: ellipsis;+ color: ${isDarkMode() ? '#f3f4f6' : '#111827'};+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;+ `;+ serviceName.textContent = cred.ServiceName;++ // Details container (secondary text)+ const detailsContainer = document.createElement('div');+ detailsContainer.style.cssText = `+ font-size: 0.85em;+ white-space: nowrap;+ overflow: hidden;+ font-size: 12px;+ text-overflow: ellipsis;+ color: ${isDarkMode() ? '#9ca3af' : '#6b7280'};+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;+ `;++ // Combine full name (if available) and username+ const details = [];+ if (cred.Alias?.FirstName && cred.Alias?.LastName) {+ details.push(`${cred.Alias.FirstName} ${cred.Alias.LastName}`);+ }+ details.push(cred.Username);+ detailsContainer.textContent = details.join(' · ');++ credTextContainer.appendChild(serviceName);+ credTextContainer.appendChild(detailsContainer);+ credentialInfo.appendChild(credTextContainer);++ // Add popout icon+ const popoutIcon = document.createElement('div');+ popoutIcon.style.cssText = `+ display: flex;+ align-items: center;+ padding: 4px;+ opacity: 0.6;+ border-radius: 4px;+ flex-shrink: 0; /* Prevent icon from shrinking */+ `;+ popoutIcon.innerHTML = `+ <svg style="all:unset; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2;" viewBox="0 0 24 24">+ <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path>+ <polyline points="15 3 21 3 21 9"></polyline>+ <line x1="10" y1="14" x2="21" y2="3"></line>+ </svg>+ `;++ // Add hover effects+ popoutIcon.addEventListener('mouseenter', () => {+ popoutIcon.style.opacity = '1';+ popoutIcon.style.backgroundColor = isDarkMode() ? '#ffffff' : '#000000';+ popoutIcon.style.color = isDarkMode() ? '#000000' : '#ffffff';+ });++ popoutIcon.addEventListener('mouseleave', () => {+ popoutIcon.style.opacity = '0.6';+ popoutIcon.style.backgroundColor = 'transparent';+ popoutIcon.style.color = isDarkMode() ? '#ffffff' : '#000000';+ });++ // Handle popout click+ popoutIcon.addEventListener('click', (e) => {+ e.stopPropagation(); // Prevent credential fill+ chrome.runtime.sendMessage({+ type: 'OPEN_POPUP_WITH_CREDENTIAL',+ credentialId: cred.Id+ });+ removeExistingPopup();+ });++ item.appendChild(credentialInfo);+ item.appendChild(popoutIcon);++ // Update hover effect for the entire item+ item.addEventListener('mouseenter', () => {+ item.style.backgroundColor = isDarkMode() ? '#2d3748' : '#f3f4f6';+ popoutIcon.style.opacity = '1';+ });++ item.addEventListener('mouseleave', () => {+ item.style.backgroundColor = 'transparent';+ popoutIcon.style.opacity = '0.6';+ });++ // Update click handler to only trigger on credentialInfo+ credentialInfo.addEventListener('click', () => {+ fillCredential(cred, input);+ removeExistingPopup();+ });++ elements.push(item);+ });+ } else {+ const noMatches = document.createElement('div');+ noMatches.style.cssText = `+ padding-left: 10px;+ padding-top: 8px;+ padding-bottom: 8px;+ font-size: 14px;+ color: ${isDarkMode() ? '#9ca3af' : '#6b7280'};+ font-style: italic;+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;+ text-align: left;+ `;+ noMatches.textContent = 'No matches found';+ elements.push(noMatches);+ }++ return elements;+}++export const DISABLED_SITES_KEY = 'aliasvault_disabled_sites';+export const GLOBAL_POPUP_ENABLED_KEY = 'aliasvault_global_popup_enabled';++/**+ * Check if auto-popup is disabled for current site+ */+export async function isAutoShowPopupDisabled(): Promise<boolean> {+ const settings = await chrome.storage.local.get([DISABLED_SITES_KEY, GLOBAL_POPUP_ENABLED_KEY]);+ const disabledUrls = settings[DISABLED_SITES_KEY] ?? [];+ const isGloballyEnabled = settings[GLOBAL_POPUP_ENABLED_KEY] !== false;+ const currentHostname = window.location.hostname;++ return !isGloballyEnabled || disabledUrls.includes(currentHostname);+}++/**+ * Disable auto-popup for current site+ */+export async function disableAutoShowPopup(): Promise<void> {+ const result = await chrome.storage.local.get(DISABLED_SITES_KEY);+ const disabledSites = result[DISABLED_SITES_KEY] ?? [];+ if (!disabledSites.includes(window.location.hostname)) {+ disabledSites.push(window.location.hostname);+ await chrome.storage.local.set({ [DISABLED_SITES_KEY]: disabledSites });+ }+}++/**+ * Create edit name popup. Part of the "create new alias" flow.+ */+export async function createEditNamePopup(defaultName: string): Promise<string | null> {+ // Close existing popup+ removeExistingPopup();++ return new Promise((resolve) => {+ // Create modal overlay+ const overlay = document.createElement('div');+ overlay.id = 'aliasvault-create-popup';+ overlay.style.cssText = `+ position: fixed;+ top: 0;+ left: 0;+ right: 0;+ bottom: 0;+ background: rgba(0, 0, 0, 0.5);+ z-index: 999999995;+ display: flex;+ align-items: center;+ justify-content: center;+ `;++ const popup = document.createElement('div');+ popup.style.cssText = `+ position: relative;+ z-index: 1000000000;+ background: ${isDarkMode() ? '#1f2937' : 'white'};+ border: 1px solid ${isDarkMode() ? '#374151' : '#ccc'};+ border-radius: 8px;+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),+ 0 2px 4px -1px rgba(0, 0, 0, 0.06),+ 0 20px 25px -5px rgba(0, 0, 0, 0.1);+ padding: 24px;+ width: 400px;+ max-width: 90vw;+ transform: scale(0.95);+ opacity: 0;+ transition: transform 0.2s ease, opacity 0.2s ease;+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;+ `;++ popup.innerHTML = `+ <h3 style="margin: 0 0 16px 0; font-size: 18px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; font-weight: 600; color: ${isDarkMode() ? '#f8f9fa' : '#000000'}">+ New alias name+ </h3>+ <input+ type="text"+ id="service-name-input"+ data-aliasvault-ignore="true"+ value="${defaultName}"+ style="+ width: 100%;+ padding: 8px 12px;+ margin-bottom: 24px;+ border: 1px solid ${isDarkMode() ? '#374151' : '#ccc'};+ border-radius: 6px;+ background: ${isDarkMode() ? '#374151' : 'white'};+ color: ${isDarkMode() ? '#f8f9fa' : '#000000'};+ font-size: 14px;+ transition: border-color 0.2s ease, box-shadow 0.2s ease;+ height: auto;+ font-weight: 500;+ line-height: normal;+ "+ >+ <div style="display: flex; justify-content: flex-end; gap: 12px;">+ <button id="cancel-btn" style="+ padding: 8px 16px;+ border-radius: 6px;+ border: 1px solid ${isDarkMode() ? '#374151' : '#e5e7eb'};+ background: transparent;+ color: ${isDarkMode() ? '#f8f9fa' : '#000000'};+ cursor: pointer;+ font-size: 14px;+ transition: all 0.2s ease;+ line-height: 1;+ text-transform: none;+ font-weight: 500;+ margin: 0;+ ">Cancel</button>+ <button id="save-btn" style="+ padding: 8px 16px;+ border-radius: 6px;+ border: none;+ background: ${isDarkMode() ? '#d68338' : '#f49541'};+ color: white;+ cursor: pointer;+ font-size: 14px;+ transition: all 0.2s ease;+ line-height: 1;+ text-transform: none;+ font-weight: 500;+ margin: 0;+ ">Save</button>+ </div>+ `;++ overlay.appendChild(popup);+ document.body.appendChild(overlay);++ // Add hover and focus styles+ const input = popup.querySelector('#service-name-input') as HTMLInputElement;+ const saveBtn = popup.querySelector('#save-btn') as HTMLButtonElement;+ const cancelBtn = popup.querySelector('#cancel-btn') as HTMLButtonElement;++ input.addEventListener('focus', () => {+ input.style.borderColor = '#';+ input.style.boxShadow = '0 0 0 3px rgba(37, 99, 235, 0.1)';+ });++ input.addEventListener('blur', () => {+ input.style.borderColor = isDarkMode() ? '#374151' : '#ccc';+ input.style.boxShadow = 'none';+ });++ saveBtn.addEventListener('mouseenter', () => {+ saveBtn.style.background = isDarkMode() ? '#c97731' : '#e88a3c';+ saveBtn.style.transform = 'translateY(-1px)';+ });++ saveBtn.addEventListener('mouseleave', () => {+ saveBtn.style.background = isDarkMode() ? '#d68338' : '#f49541';+ saveBtn.style.transform = 'translateY(0)';+ });++ cancelBtn.addEventListener('mouseenter', () => {+ cancelBtn.style.background = isDarkMode() ? '#374151' : '#f3f4f6';+ });++ cancelBtn.addEventListener('mouseleave', () => {+ cancelBtn.style.background = 'transparent';+ });++ // Animate in+ requestAnimationFrame(() => {+ popup.style.transform = 'scale(1)';+ popup.style.opacity = '1';+ });++ // Select input text+ input.select();++ /**+ * Close the popup.+ */+ const closePopup = (value: string | null) : void => {+ popup.style.transform = 'scale(0.95)';+ popup.style.opacity = '0';+ setTimeout(() => {+ overlay.remove();+ resolve(value);+ }, 200);+ };++ // Handle save+ saveBtn.addEventListener('click', () => {+ const value = input.value.trim();+ if (value) {+ closePopup(value);+ }+ });++ // Handle cancel+ cancelBtn.addEventListener('click', () => {+ closePopup(null);+ });++ // Handle Enter key+ input.addEventListener('keyup', (e) => {+ if (e.key === 'Enter') {+ const value = input.value.trim();+ if (value) {+ closePopup(value);+ }+ }+ });++ // Handle click outside+ overlay.addEventListener('click', (e) => {+ if (e.target === overlay) {+ // Check if there's any text selected in the input+ const selectedText = input.value.substring(input.selectionStart ?? 0, input.selectionEnd ?? 0);++ // Only close if no text is selected+ if (!selectedText) {+ closePopup(null);+ }+ }+ });+ });+};++/**+ * Open (or refresh) the autofill popup including check if vault is locked.+ */+export function openAutofillPopup(input: HTMLInputElement) : void {+ /**+ * Handle the Enter key.+ */+ const handleEnterKey = (e: KeyboardEvent) : void => {+ if (e.key === 'Enter') {+ removeExistingPopup();+ // Remove the event listener to clean up+ document.removeEventListener('keydown', handleEnterKey);+ }+ };+ document.addEventListener('keydown', handleEnterKey);++ chrome.runtime.sendMessage({ type: 'GET_CREDENTIALS' }, (response: CredentialResponse) => {+ switch (response.status) {+ case 'OK':+ createAutofillPopup(input, response.credentials);+ break;++ case 'LOCKED':+ createVaultLockedPopup(input);+ break;+ }+ });+}++/**+ * Convert various binary data formats to Uint8Array+ */+function toUint8Array(buffer: Uint8Array | number[] | {[key: number]: number}): Uint8Array {+ if (buffer instanceof Uint8Array) {+ return buffer;+ }++ if (Array.isArray(buffer)) {+ return new Uint8Array(buffer);+ }++ const length = Object.keys(buffer).length;+ const arr = new Uint8Array(length);+ for (let i = 0; i < length; i++) {+ arr[i] = buffer[i];+ }++ return arr;+}++/**+ * Base64 encode binary data.+ */+function base64Encode(buffer: Uint8Array | number[] | {[key: number]: number}): string | null {+ try {+ const arr = Array.from(toUint8Array(buffer));+ return btoa(arr.reduce((data, byte) => data + String.fromCharCode(byte), ''));+ } catch (error) {+ console.error('Error encoding to base64:', error);+ return null;+ }+}++/**+ * Get favicon bytes from page and resize if necessary.+ */+async function getFaviconBytes(document: Document): Promise<Uint8Array | null> {+ const MAX_SIZE_BYTES = 50 * 1024; // 50KB max size before resizing+ const TARGET_WIDTH = 96; // Resize target width++ const faviconLinks = [+ ...Array.from(document.querySelectorAll('link[rel="icon"][type="image/svg+xml"]')),+ ...Array.from(document.querySelectorAll('link[rel="icon"][sizes="192x192"], link[rel="icon"][sizes="128x128"]')),+ ...Array.from(document.querySelectorAll('link[rel="apple-touch-icon"], link[rel="apple-touch-icon-precomposed"]')),+ ...Array.from(document.querySelectorAll('link[rel="icon"], link[rel="shortcut icon"]')),+ { href: `${window.location.origin}/favicon.ico` }+ ] as HTMLLinkElement[];++ const uniqueLinks = Array.from(new Map(faviconLinks.map(link => [link.href, link])).values());++ for (const link of uniqueLinks) {+ const imageData = await fetchAndProcessFavicon(link.href, MAX_SIZE_BYTES, TARGET_WIDTH);+ if (imageData) {+ return imageData;+ }+ }++ return null;+}++/**+ * Attempt to fetch and process a favicon from a given URL+ */+async function fetchAndProcessFavicon(url: string, maxSize: number, targetWidth: number): Promise<Uint8Array | null> {+ try {+ const response = await fetch(url);+ if (!response.ok) {+ return null;+ }++ const contentType = response.headers.get('content-type');+ if (!contentType?.startsWith('image/')) {+ return null;+ }++ const arrayBuffer = await response.arrayBuffer();+ if (arrayBuffer.byteLength === 0) {+ return null;+ }++ let imageData = new Uint8Array(arrayBuffer);++ // If image is too large, attempt to resize+ if (imageData.byteLength > maxSize) {+ const resizedBlob = await resizeImage(imageData, contentType, targetWidth);+ if (resizedBlob) {+ imageData = new Uint8Array(await resizedBlob.arrayBuffer());+ }+ }++ // Return only if within size limits+ return imageData.byteLength <= maxSize ? imageData : null;+ } catch (error) {+ console.error('Error fetching favicon:', url, error);+ return null;+ }+}++/**+ * Resizes an image using OffscreenCanvas and compresses it.+ */+async function resizeImage(imageData: Uint8Array, contentType: string, targetWidth: number): Promise<Blob | null> {+ return new Promise((resolve) => {+ const blob = new Blob([imageData], { type: contentType });+ const img = new Image();++ /**+ * Handle image load.+ */+ img.onload = () : void => {+ const scale = targetWidth / img.width;+ const targetHeight = Math.floor(img.height * scale);++ const canvas = new OffscreenCanvas(targetWidth, targetHeight);+ const ctx = canvas.getContext("2d");++ if (!ctx) {+ resolve(null);+ return;+ }++ ctx.drawImage(img, 0, 0, targetWidth, targetHeight);+ canvas.convertToBlob({ type: "image/png", quality: 0.7 }).then(resolve).catch(() => resolve(null));+ };++ /**+ * Handle image load error.+ */+ img.onerror = () : void => {+ resolve(null);+ };++ img.src = URL.createObjectURL(blob);+ });+}++/**+ * Detect MIME type from file signature (magic numbers)+ */+function detectMimeType(bytes: Uint8Array): string {+ /**+ * Check if the file is an SVG file.+ */+ const isSvg = () : boolean => {+ const header = new TextDecoder().decode(bytes.slice(0, 5)).toLowerCase();+ return header.includes('<?xml') || header.includes('<svg');+ };++ /**+ * Check if the file is an ICO file.+ */+ const isIco = () : boolean => {+ return bytes[0] === 0x00 && bytes[1] === 0x00 && bytes[2] === 0x01 && bytes[3] === 0x00;+ };++ /**+ * Check if the file is an PNG file.+ */+ const isPng = () : boolean => {+ return bytes[0] === 0x89 && bytes[1] === 0x50 && bytes[2] === 0x4E && bytes[3] === 0x47;+ };++ if (isSvg()) {+ return 'image/svg+xml';+ }+ if (isIco()) {+ return 'image/x-icon';+ }+ if (isPng()) {+ return 'image/png';+ }++ return 'image/x-icon';+}diff --git a/browser-extension/src/entrypoints/contentScript/Shared.ts b/browser-extension/src/entrypoints/contentScript/Shared.tsnew file mode 100644index 000000000..1949eb217--- /dev/null+++ b/browser-extension/src/entrypoints/contentScript/Shared.ts@@ -0,0 +1,6 @@+/**+ * Check if the current theme is dark.+ */+export function isDarkMode(): boolean {+ return window.matchMedia('(prefers-color-scheme: dark)').matches;+}\ No newline at end of filediff --git a/browser-extension/src/entrypoints/popup/App.tsx b/browser-extension/src/entrypoints/popup/App.tsxnew file mode 100644index 000000000..74cdd7909--- /dev/null+++ b/browser-extension/src/entrypoints/popup/App.tsx@@ -0,0 +1,111 @@+import React, { useState, useEffect } from 'react';+import { HashRouter as Router, Routes, Route } from 'react-router-dom';+import { useAuth } from './context/AuthContext';+import { useMinDurationLoading } from '../../hooks/useMinDurationLoading';+import Header from './components/Layout/Header';+import BottomNav from './components/Layout/BottomNav';+import AuthSettings from './pages/AuthSettings';+import CredentialsList from './pages/CredentialsList';+import EmailsList from './pages/EmailsList';+import LoadingSpinner from './components/LoadingSpinner';+import Home from './pages/Home';+import CredentialDetails from './pages/CredentialDetails';+import EmailDetails from './pages/EmailDetails';+import Settings from './pages/Settings';+import GlobalStateChangeHandler from './components/GlobalStateChangeHandler';+import { useLoading } from './context/LoadingContext';+import Logout from './pages/Logout';+import './style.css';++/**+ * Route configuration.+ */+type RouteConfig = {+ path: string;+ element: React.ReactNode;+ showBackButton?: boolean;+ title?: string;+};++/**+ * App component.+ */+const App: React.FC = () => {+ const authContext = useAuth();+ const { isInitialLoading } = useLoading();+ const [isLoading, setIsLoading] = useMinDurationLoading(true, 150);+ const [message, setMessage] = useState<string | null>(null);++ // Add these route configurations+ const routes: RouteConfig[] = [+ { path: '/', element: <Home />, showBackButton: false },+ { path: '/auth-settings', element: <AuthSettings />, showBackButton: true, title: 'Settings' },+ { path: '/credentials', element: <CredentialsList />, showBackButton: false },+ { path: '/credentials/:id', element: <CredentialDetails />, showBackButton: true, title: 'Credential details' },+ { path: '/emails', element: <EmailsList />, showBackButton: false },+ { path: '/emails/:id', element: <EmailDetails />, showBackButton: true, title: 'Email details' },+ { path: '/settings', element: <Settings />, showBackButton: false },+ { path: '/logout', element: <Logout />, showBackButton: false },+ ];++ useEffect(() => {+ if (!isInitialLoading) {+ setIsLoading(false);+ }+ }, [isInitialLoading, setIsLoading]);++ /**+ * Print global message if it exists.+ */+ useEffect(() => {+ if (authContext.globalMessage) {+ setMessage(authContext.globalMessage);+ } else {+ setMessage(null);+ }+ }, [authContext, authContext.globalMessage]);++ return (+ <Router>+ <div className="min-h-screen min-w-[350px] bg-white dark:bg-gray-900 flex flex-col">+ {isLoading && (+ <div className="fixed inset-0 bg-white dark:bg-gray-900 z-50 flex items-center justify-center">+ <LoadingSpinner />+ </div>+ )}++ <GlobalStateChangeHandler />+ <Header+ routes={routes}+ />++ <main+ className="flex-1 overflow-y-auto bg-gray-100 dark:bg-gray-900"+ style={{+ paddingTop: '64px',+ height: 'calc(100vh - 120px)',+ }}+ >+ <div className="p-4 mb-16">+ {message && (+ <p className="text-red-500 mb-4">{message}</p>+ )}+ <Routes>+ {routes.map((route) => (+ <Route+ key={route.path}+ path={route.path}+ element={route.element}+ />+ ))}+ </Routes>+ </div>+ </main>++ <BottomNav />+ </div>+ </Router>+ );+};++export default App;diff --git a/browser-extension/src/entrypoints/popup/Index.tsx b/browser-extension/src/entrypoints/popup/Index.tsxnew file mode 100644index 000000000..2e103ecbf--- /dev/null+++ b/browser-extension/src/entrypoints/popup/Index.tsx@@ -0,0 +1,19 @@+import ReactDOM from 'react-dom/client';+import App from './App';+import { AuthProvider } from './context/AuthContext';+import { WebApiProvider } from './context/WebApiContext';+import { DbProvider } from './context/DbContext';+import { LoadingProvider } from './context/LoadingContext';++const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);+root.render(+ <DbProvider>+ <AuthProvider>+ <WebApiProvider>+ <LoadingProvider>+ <App />+ </LoadingProvider>+ </WebApiProvider>+ </AuthProvider>+ </DbProvider>+);diff --git a/browser-extension/src/entrypoints/popup/components/Button.tsx b/browser-extension/src/entrypoints/popup/components/Button.tsxnew file mode 100644index 000000000..caabef46a--- /dev/null+++ b/browser-extension/src/entrypoints/popup/components/Button.tsx@@ -0,0 +1,35 @@+import React from 'react';++type ButtonProps = {+ onClick: () => void;+ children: React.ReactNode;+ type?: 'button' | 'submit' | 'reset';+ variant?: 'primary' | 'secondary';+};++/**+ * Button component+ */+const Button: React.FC<ButtonProps> = ({+ onClick,+ children,+ type = 'button',+ variant = 'primary'+}) => {+ const colorClasses = {+ primary: 'bg-primary-500 hover:bg-primary-600',+ secondary: 'bg-gray-500 hover:bg-gray-600'+ };++ return (+ <button+ className={`${colorClasses[variant]} text-white font-medium rounded-lg px-4 py-2 text-sm w-full`}+ onClick={onClick}+ type={type}+ >+ {children}+ </button>+ );+};++export default Button;\ No newline at end of filediff --git a/browser-extension/src/entrypoints/popup/components/EmailPreview.tsx b/browser-extension/src/entrypoints/popup/components/EmailPreview.tsxnew file mode 100644index 000000000..4143e14e9--- /dev/null+++ b/browser-extension/src/entrypoints/popup/components/EmailPreview.tsx@@ -0,0 +1,171 @@+import React, { useState, useEffect } from 'react';+import { useWebApi } from '../context/WebApiContext';+import { useDb } from '../context/DbContext';+import EncryptionUtility from '../../../utils/EncryptionUtility';+import { MailboxEmail } from '../../../utils/types/webapi/MailboxEmail';+import { Link } from 'react-router-dom';+import { AppInfo } from '../../../utils/AppInfo';++type EmailPreviewProps = {+ email: string;+}++/**+ * This component shows a preview of the latest emails in the inbox.+ */+export const EmailPreview: React.FC<EmailPreviewProps> = ({ email }) => {+ const [emails, setEmails] = useState<MailboxEmail[]>([]);+ const [loading, setLoading] = useState(true);+ const [lastEmailId, setLastEmailId] = useState<number>(0);+ const [isSpamOk, setIsSpamOk] = useState(false);+ const webApi = useWebApi();+ const dbContext = useDb();++ /**+ * Checks if the email is a public domain.+ */+ const isPublicDomain = async (emailAddress: string): Promise<boolean> => {+ // Get metadata from storage+ const storageResult = await chrome.storage.session.get(['publicEmailDomains']);+ return storageResult.publicEmailDomains.some(domain => emailAddress.toLowerCase().endsWith(domain));+ };++ useEffect(() => {+ /**+ * Loads the latest emails from the server and decrypts them locally if needed.+ */+ const loadEmails = async (): Promise<void> => {+ try {+ const isPublic = await isPublicDomain(email);+ setIsSpamOk(isPublic);++ if (isPublic) {+ // For public domains (SpamOK), use the SpamOK API directly+ const emailPrefix = email.split('@')[0];+ const response = await fetch(`https://api.spamok.com/v2/EmailBox/${emailPrefix}`, {+ headers: {+ 'X-Asdasd-Platform-Id': 'av-chrome',+ 'X-Asdasd-Platform-Version': AppInfo.VERSION,+ }+ });+ const data = await response.json();++ // Only show the latest 2 emails to save space in UI+ const latestMails = data?.mails+ ?.toSorted((a: MailboxEmail, b: MailboxEmail) =>+ new Date(b.dateSystem).getTime() - new Date(a.dateSystem).getTime())+ ?.slice(0, 2) ?? [];++ if (loading && latestMails.length > 0) {+ setLastEmailId(latestMails[0].id);+ }++ setEmails(latestMails);+ } else {+ // For private domains, use existing encrypted email logic+ const response = await webApi.get(`EmailBox/${email}`);+ const data = response as { mails: MailboxEmail[] };++ // Only show the latest 2 emails to save space in UI+ const latestMails = data.mails+ .toSorted((a, b) => new Date(b.dateSystem).getTime() - new Date(a.dateSystem).getTime())+ .slice(0, 2);++ if (latestMails) {+ // Loop through all emails and decrypt them locally+ const decryptedEmails: MailboxEmail[] = await EncryptionUtility.decryptEmailList(+ latestMails,+ dbContext.sqliteClient!.getAllEncryptionKeys()+ );++ if (loading && decryptedEmails.length > 0) {+ setLastEmailId(decryptedEmails[0].id);+ }++ setEmails(decryptedEmails);+ }+ }+ } catch (err) {+ console.error('Error loading emails:', err);+ }+ setLoading(false);+ };++ loadEmails();+ // Set up auto-refresh interval+ const interval = setInterval(loadEmails, 2000);+ return () : void => clearInterval(interval);+ }, [email, loading, webApi, dbContext]);++ if (loading) {+ return (+ <div className="text-gray-500 dark:text-gray-400 mb-4">+ <div className="flex items-center gap-2 mb-2">+ <h2 className="text-xl font-semibold text-gray-900 dark:text-white">Recent emails</h2>+ <div className="w-2 h-2 bg-green-500 rounded-full animate-pulse" />+ </div>+ Loading emails...+ </div>+ );+ }+ if (emails.length === 0) {+ return (+ <div className="text-gray-500 dark:text-gray-400 mb-4">+ <div className="flex items-center gap-2 mb-2">+ <h2 className="text-xl font-semibold text-gray-900 dark:text-white">Recent emails</h2>+ <div className="w-2 h-2 bg-green-500 rounded-full animate-pulse" />+ </div>+ No emails received yet.+ </div>+ );+ }++ return (+ <div className="space-y-2 mb-4">+ <div className="flex items-center gap-2 mb-2">+ <h2 className="text-xl font-semibold text-gray-900 dark:text-white">Recent emails</h2>+ <div className="w-2 h-2 bg-green-500 rounded-full animate-pulse" />+ </div>++ {emails.map((mail) => (+ isSpamOk ? (+ <a+ key={mail.id}+ href={`https://spamok.com/${email.split('@')[0]}/${mail.id}`}+ target="_blank"+ rel="noopener noreferrer"+ className={`flex justify-between items-center p-2 rounded cursor-pointer bg-white dark:bg-gray-800 shadow hover:shadow-md transition-all border border-gray-200 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-700 ${+ mail.id > lastEmailId ? 'bg-yellow-50 dark:bg-yellow-900/30' : ''+ }`}+ >+ <div className="truncate flex-1">+ <span className="text-sm text-gray-900 dark:text-white">+ {mail.subject.substring(0, 30)}{mail.subject.length > 30 ? '...' : ''}+ </span>+ </div>+ <div className="text-xs text-gray-500 dark:text-gray-400 ml-2">+ {new Date(mail.dateSystem).toLocaleDateString()}+ </div>+ </a>+ ) : (+ <Link+ key={mail.id}+ to={`/emails/${mail.id}`}+ className={`flex justify-between items-center p-2 rounded cursor-pointer bg-white dark:bg-gray-800 shadow hover:shadow-md transition-all border border-gray-200 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-700 ${+ mail.id > lastEmailId ? 'bg-yellow-50 dark:bg-yellow-900/30' : ''+ }`}+ >+ <span className="truncate flex-1">+ <span className="text-sm text-gray-900 dark:text-white">+ {mail.subject.substring(0, 30)}{mail.subject.length > 30 ? '...' : ''}+ </span>+ </span>+ <span className="text-xs text-gray-500 dark:text-gray-400 ml-2">+ {new Date(mail.dateSystem).toLocaleDateString()}+ </span>+ </Link>+ )+ ))}+ </div>+ );+};\ No newline at end of filediff --git a/browser-extension/src/entrypoints/popup/components/FormInputCopyToClipboard.tsx b/browser-extension/src/entrypoints/popup/components/FormInputCopyToClipboard.tsxnew file mode 100644index 000000000..2d7491cca--- /dev/null+++ b/browser-extension/src/entrypoints/popup/components/FormInputCopyToClipboard.tsx@@ -0,0 +1,90 @@+import React, { useState, useEffect } from 'react';+import { ClipboardCopyService } from '../utils/ClipboardCopyService';++/**+ * Form input copy to clipboard props.+ */+type FormInputCopyToClipboardProps = {+ id: string;+ label: string;+ value: string;+ type?: 'text' | 'password';+}++const clipboardService = new ClipboardCopyService();++/**+ * Form input copy to clipboard component.+ */+export const FormInputCopyToClipboard: React.FC<FormInputCopyToClipboardProps> = ({+ id,+ label,+ value,+ type = 'text'+}) => {+ const [showPassword, setShowPassword] = useState(false);+ const [copied, setCopied] = useState(false);++ useEffect(() => {+ const unsubscribe = clipboardService.subscribe((copiedId) : void => {+ setCopied(copiedId === id);+ });+ return () : void => {+ unsubscribe();+ };+ }, [id]);++ /**+ * Copy to clipboard.+ */+ const copyToClipboard = async () : Promise<void> => {+ try {+ await navigator.clipboard.writeText(value);+ clipboardService.setCopied(id);++ // Reset copied state after 2 seconds+ setTimeout(() => {+ if (clipboardService.getCopiedId() === id) {+ clipboardService.setCopied('');+ }+ }, 2000);+ } catch (err) {+ console.error('Failed to copy text:', err);+ }+ };++ return (+ <div>+ <label htmlFor={id} className="block mb-2 text-sm font-medium text-gray-700 dark:text-gray-300">+ {label}+ </label>+ <div className="relative">+ <input+ type={type === 'password' && !showPassword ? 'password' : 'text'}+ id={id}+ readOnly+ value={value}+ onClick={copyToClipboard}+ className={`w-full px-3 py-2.5 bg-white border ${+ copied ? 'border-green-500 border-2' : 'border-gray-300'+ } text-gray-900 sm:text-sm rounded-lg shadow-sm focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white dark:placeholder-gray-400`}+ />+ <div className="absolute right-2 top-1/2 -translate-y-1/2 flex items-center gap-2">+ {copied && (+ <span className="text-green-500 dark:text-green-400">+ Copied!+ </span>+ )}+ {type === 'password' && (+ <button+ onClick={() => setShowPassword(!showPassword)}+ className="px-3 py-1 text-sm text-gray-600 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white transition-colors duration-200"+ >+ {showPassword ? 'Hide' : 'Show'}+ </button>+ )}+ </div>+ </div>+ </div>+ );+};\ No newline at end of filediff --git a/browser-extension/src/entrypoints/popup/components/GlobalStateChangeHandler.tsx b/browser-extension/src/entrypoints/popup/components/GlobalStateChangeHandler.tsxnew file mode 100644index 000000000..016d3749c--- /dev/null+++ b/browser-extension/src/entrypoints/popup/components/GlobalStateChangeHandler.tsx@@ -0,0 +1,40 @@+import React, { useEffect, useRef } from 'react';+import { useNavigate } from 'react-router-dom';+import { useAuth } from '../context/AuthContext';++/**+ * Global state change handler component which listens for global state changes and e.g. redirects user to login+ * page if login state changes.+ */+const GlobalStateChangeHandler: React.FC = () => {+ const authContext = useAuth();+ const navigate = useNavigate();+ const lastLoginState = useRef(authContext.isLoggedIn);+ const initialRender = useRef(true);++ /**+ * Listen for auth logged in changes and redirect to home page if logged in state changes to handle logins and logouts.+ */+ useEffect(() => {+ // Only navigate when auth state is different from the last state we acted on.+ if (lastLoginState.current !== authContext.isLoggedIn) {+ lastLoginState.current = authContext.isLoggedIn;++ /**+ * Skip the first auth state change to avoid redirecting when popup opens for the first time+ * which already causes the auth state to change from false to true.+ */+ if (initialRender.current) {+ initialRender.current = false;+ return;+ }++ // Redirect to home page if logged in state changes.+ navigate('/');+ }+ }, [authContext.isLoggedIn]); // eslint-disable-line react-hooks/exhaustive-deps++ return null;+};++export default GlobalStateChangeHandler;\ No newline at end of filediff --git a/browser-extension/src/entrypoints/popup/components/Layout/BottomNav.tsx b/browser-extension/src/entrypoints/popup/components/Layout/BottomNav.tsxnew file mode 100644index 000000000..5309ac00a--- /dev/null+++ b/browser-extension/src/entrypoints/popup/components/Layout/BottomNav.tsx@@ -0,0 +1,89 @@+import React, { useState, useEffect } from 'react';+import { useNavigate, useLocation } from 'react-router-dom';+import { useAuth } from '../../context/AuthContext';+import { useDb } from '../../context/DbContext';++type TabName = 'credentials' | 'emails' | 'settings';++/**+ * Bottom nav component.+ */+const BottomNav: React.FC = () => {+ const authContext = useAuth();+ const dbContext = useDb();+ const navigate = useNavigate();+ const location = useLocation();+ const [currentTab, setCurrentTab] = useState<TabName>('credentials');++ // Add effect to update currentTab based on route+ useEffect(() => {+ const path = location.pathname.substring(1) as TabName;+ if (['credentials', 'emails', 'settings'].includes(path)) {+ setCurrentTab(path);+ }+ }, [location]);++ /**+ * Handle tab change.+ */+ const handleTabChange = (tab: TabName) : void => {+ setCurrentTab(tab);+ navigate(`/${tab}`);+ };++ if (!authContext.isLoggedIn || !dbContext.dbAvailable) {+ return null;+ }++ // Detect if the user is coming from the unlock page with mode=inline_unlock.+ const urlParams = new URLSearchParams(window.location.search);+ const isInlineUnlockMode = urlParams.get('mode') === 'inline_unlock';++ if (isInlineUnlockMode) {+ // Do not show the bottom nav for inline unlock mode.+ return null;+ }++ return (+ <div className="fixed bottom-0 left-0 right-0 bg-white dark:bg-gray-800 border-t border-gray-200 dark:border-gray-700">+ <div className="flex justify-around items-center h-14">+ <button+ onClick={() => handleTabChange('credentials')}+ className={`flex flex-col items-center justify-center w-1/3 h-full ${+ currentTab === 'credentials' ? 'text-primary-600 dark:text-primary-500' : 'text-gray-500 dark:text-gray-400'+ }`}+ >+ <svg className="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z" />+ </svg>+ <span className="text-xs mt-1">Credentials</span>+ </button>+ <button+ onClick={() => handleTabChange('emails')}+ className={`flex flex-col items-center justify-center w-1/3 h-full ${+ currentTab === 'emails' ? 'text-primary-600 dark:text-primary-500' : 'text-gray-500 dark:text-gray-400'+ }`}+ >+ <svg className="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />+ </svg>+ <span className="text-xs mt-1">Emails</span>+ </button>+ <button+ onClick={() => handleTabChange('settings')}+ className={`flex flex-col items-center justify-center w-1/3 h-full ${+ currentTab === 'settings' ? 'text-primary-600 dark:text-primary-500' : 'text-gray-500 dark:text-gray-400'+ }`}+ >+ <svg className="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" />+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />+ </svg>+ <span className="text-xs mt-1">Settings</span>+ </button>+ </div>+ </div>+ );+};++export default BottomNav;\ No newline at end of filediff --git a/browser-extension/src/entrypoints/popup/components/Layout/Header.tsx b/browser-extension/src/entrypoints/popup/components/Layout/Header.tsxnew file mode 100644index 000000000..4a9288cff--- /dev/null+++ b/browser-extension/src/entrypoints/popup/components/Layout/Header.tsx@@ -0,0 +1,137 @@+import React from 'react';+import { UserMenu } from './UserMenu';+import { useNavigate, useLocation } from 'react-router-dom';+import { useAuth } from '../../context/AuthContext';+import { AppInfo } from '../../../../utils/AppInfo';+import { storage } from 'wxt/storage';++/**+ * Header props.+ */+type HeaderProps = {+ routes?: {+ path: string;+ showBackButton?: boolean;+ title?: string;+ }[];+}++/**+ * Header component.+ */+const Header: React.FC<HeaderProps> = ({+ routes = []+}) => {+ const authContext = useAuth();+ const navigate = useNavigate();+ const location = useLocation();++ /**+ * Open the client tab.+ */+ const openClientTab = async () : Promise<void> => {+ const settingClientUrl = await storage.getItem('local:clientUrl') as string;+ let clientUrl = AppInfo.DEFAULT_CLIENT_URL;+ if (settingClientUrl && settingClientUrl.length > 0) {+ clientUrl = settingClientUrl;+ }++ window.open(clientUrl, '_blank');+ };++ // Updated route matching logic to handle URL parameters+ const currentRoute = routes?.find(route => {+ // Convert route pattern to regex+ const pattern = route.path.replace(/:\w+/g, '[^/]+');+ const regex = new RegExp(`^${pattern}$`);+ return regex.test(location.pathname);+ });++ /**+ * Handle settings.+ */+ const handleSettings = () : void => {+ navigate('/auth-settings');+ };++ /**+ * Handle logo click.+ */+ const logoClick = () : void => {+ // If logged in, navigate to credentials.+ if (authContext.isLoggedIn) {+ navigate('/credentials');+ } else {+ // If not logged in, navigate to index.+ navigate('/');+ }+ };++ return (+ <header className="fixed z-30 w-full bg-white border-b border-gray-200 dark:bg-gray-800 dark:border-gray-700">+ <div className="flex items-center h-16 px-4">+ {currentRoute?.showBackButton ? (+ <button+ id="back"+ onClick={() => navigate(-1)}+ className="flex items-center gap-2 hover:bg-gray-100 dark:hover:bg-gray-700 pr-2 pt-1.5 pb-1.5 rounded-lg group"+ >+ <div className="flex items-center">+ <svg className="w-5 h-5 text-gray-500 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M15 19l-7-7 7-7" />+ </svg>+ {currentRoute.title && (+ <h1 className="text-lg font-medium text-gray-900 dark:text-white ml-2">+ {currentRoute.title}+ </h1>+ )}+ </div>+ </button>+ ) : (+ <div className="flex items-center">+ <button+ onClick={() => logoClick()}+ className="flex items-center hover:opacity-80 transition-opacity"+ >+ <img src="/assets/images/logo.svg" alt="AliasVault" className="h-8 w-8 mr-2" />+ <h1 className="text-gray-900 dark:text-white text-xl font-bold">AliasVault</h1>+ <span className="text-primary-500 text-[10px] ml-1 font-normal">BETA</span>+ </button>+ </div>+ )}++ <div className="flex-grow" />++ <div className="flex items-center">+ {!currentRoute?.showBackButton ? (+ <button+ onClick={openClientTab}+ className="p-2"+ >+ <svg xmlns="http://www.w3.org/2000/svg" className="h-4 w-4 text-gray-400" viewBox="0 0 20 20" fill="currentColor">+ <path d="M11 3a1 1 0 100 2h2.586l-6.293 6.293a1 1 0 101.414 1.414L15 6.414V9a1 1 0 102 0V4a1 1 0 00-1-1h-5z" />+ <path d="M5 5a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2v-3a1 1 0 10-2 0v3H5V7h3a1 1 0 000-2H5z" />+ </svg>+ </button>+ ) : (<></>)}+ </div>+ {!authContext.isLoggedIn ? (+ <button+ id="settings"+ onClick={(handleSettings)}+ className="p-1 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700"+ >+ <span className="sr-only">Settings</span>+ <svg className="w-5 h-5" aria-hidden="true" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">+ <path fillRule="evenodd" d="M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z" clipRule="evenodd" />+ </svg>+ </button>+ ) : (+ <UserMenu />+ )}+ </div>+ </header>+ );+};++export default Header;\ No newline at end of filediff --git a/browser-extension/src/entrypoints/popup/components/Layout/UserMenu.tsx b/browser-extension/src/entrypoints/popup/components/Layout/UserMenu.tsxnew file mode 100644index 000000000..f171ba087--- /dev/null+++ b/browser-extension/src/entrypoints/popup/components/Layout/UserMenu.tsx@@ -0,0 +1,91 @@+import React, { useState, useRef, useEffect } from 'react';+import { useAuth } from '../../context/AuthContext';+import { useNavigate } from 'react-router-dom';+import { useLoading } from '../../context/LoadingContext';++/**+ * User menu component.+ */+export const UserMenu: React.FC = () => {+ const authContext = useAuth();+ const [isUserMenuOpen, setIsUserMenuOpen] = useState(false);+ const menuRef = useRef<HTMLDivElement>(null);+ const buttonRef = useRef<HTMLButtonElement>(null);+ const navigate = useNavigate();+ const { showLoading, hideLoading } = useLoading();++ useEffect(() => {+ /**+ * Handle clicking outside the user menu.+ */+ const handleClickOutside = (event: MouseEvent) : void => {+ if (+ menuRef.current &&+ buttonRef.current &&+ !menuRef.current.contains(event.target as Node) &&+ !buttonRef.current.contains(event.target as Node)+ ) {+ setIsUserMenuOpen(false);+ }+ };++ document.addEventListener('mousedown', handleClickOutside);+ return () : void => {+ document.removeEventListener('mousedown', handleClickOutside);+ };+ }, []);++ /**+ * Toggle the user menu.+ */+ const toggleUserMenu = () : void => {+ setIsUserMenuOpen(!isUserMenuOpen);+ };++ /**+ * Handle logging out.+ */+ const onLogout = async () : Promise<void> => {+ showLoading();+ navigate('/logout', { replace: true });+ hideLoading();+ };++ return (+ <div className="relative flex items-center">+ <div className="relative">+ <button+ ref={buttonRef}+ onClick={toggleUserMenu}+ className="flex items-center text-sm text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"+ >+ <span className="sr-only">Open menu</span>+ <svg className="w-6 h-6" aria-hidden="true" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">+ <path fillRule="evenodd" d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z" clipRule="evenodd" />+ </svg>+ </button>++ {isUserMenuOpen && (+ <div+ ref={menuRef}+ className="absolute right-0 z-50 mt-2 w-48 py-1 bg-white rounded-lg shadow-lg dark:bg-gray-700 border border-gray-200 dark:border-gray-600"+ >+ <div className="px-4 py-3 border-b border-gray-200 dark:border-gray-600">+ <span className="block text-sm font-semibold text-gray-900 dark:text-white">+ {authContext.username}+ </span>+ </div>+ <button+ onClick={onLogout}+ className="w-full text-left px-4 py-2 text-sm text-red-600 hover:bg-gray-100 dark:text-red-400 dark:hover:bg-gray-600"+ >+ Logout+ </button>+ </div>+ )}+ </div>+ </div>+ );+};++export default UserMenu;\ No newline at end of filediff --git a/browser-extension/src/entrypoints/popup/components/LoadingSpinner.tsx b/browser-extension/src/entrypoints/popup/components/LoadingSpinner.tsxnew file mode 100644index 000000000..1ae18c186--- /dev/null+++ b/browser-extension/src/entrypoints/popup/components/LoadingSpinner.tsx@@ -0,0 +1,39 @@+import React from 'react';++/**+ * Loading spinner component used throughout the app for showing a loading spinner+ * inline in the page.+ */+const LoadingSpinner: React.FC = () => {+ const spinnerStyle: React.CSSProperties = {+ width: '40px',+ height: '40px',+ borderRadius: '50%',+ animation: 'spin 1s linear infinite',+ };++ const spinner = (+ <>+ <style>+ {`+ @keyframes spin {+ 0% { transform: rotate(0deg); }+ 100% { transform: rotate(360deg); }+ }+ `}+ </style>+ <div+ className="border-[4px] border-solid border-current/10 dark:border-white/10 border-t-current dark:border-t-white"+ style={spinnerStyle}+ />+ </>+ );++ return (+ <div className="inline-flex items-center">+ {spinner}+ </div>+ );+};++export default LoadingSpinner;diff --git a/browser-extension/src/entrypoints/popup/components/LoadingSpinnerFullScreen.tsx b/browser-extension/src/entrypoints/popup/components/LoadingSpinnerFullScreen.tsxnew file mode 100644index 000000000..e08037740--- /dev/null+++ b/browser-extension/src/entrypoints/popup/components/LoadingSpinnerFullScreen.tsx@@ -0,0 +1,48 @@+import React from 'react';+import { useLoading } from '../context/LoadingContext';++/**+ * Loading spinner full screen component used throughout the app for showing a loading spinner+ * that covers the entire screen.+ */+const LoadingSpinnerFullScreen: React.FC = () => {+ const { isLoading } = useLoading();++ if (!isLoading) {+ return null;+ }++ const spinnerStyle: React.CSSProperties = {+ width: '40px',+ height: '40px',+ borderRadius: '50%',+ animation: 'spin 1s linear infinite',+ };++ const spinner = (+ <>+ <style>+ {`+ @keyframes spin {+ 0% { transform: rotate(0deg); }+ 100% { transform: rotate(360deg); }+ }+ `}+ </style>+ <div+ className="border-[4px] border-solid border-current/10 dark:border-white/10 border-t-current dark:border-t-white"+ style={spinnerStyle}+ />+ </>+ );++ return (+ <div className="fixed inset-0 w-full h-full z-50 bg-gray-200 dark:bg-gray-500 bg-opacity-90 flex items-center justify-center">+ <div className="relative">+ {spinner}+ </div>+ </div>+ );+};++export default LoadingSpinnerFullScreen;diff --git a/browser-extension/src/entrypoints/popup/components/LoginServerInfo.tsx b/browser-extension/src/entrypoints/popup/components/LoginServerInfo.tsxnew file mode 100644index 000000000..861173f04--- /dev/null+++ b/browser-extension/src/entrypoints/popup/components/LoginServerInfo.tsx@@ -0,0 +1,48 @@+import React, { useState, useEffect } from 'react';+import { useNavigate } from 'react-router-dom';+import { AppInfo } from '../../../utils/AppInfo';+import { storage } from 'wxt/storage';++/**+ * Component for displaying the login server information.+ */+const LoginServerInfo: React.FC = () => {+ const [baseUrl, setBaseUrl] = useState<string>('');+ const navigate = useNavigate();++ useEffect(() => {+ /**+ * Loads the base URL for the login server.+ */+ const loadApiUrl = async () : Promise<void> => {+ const apiUrl = await storage.getItem('local:apiUrl') as string;+ setBaseUrl(apiUrl ?? AppInfo.DEFAULT_API_URL);+ };+ loadApiUrl();+ }, []);++ const isDefaultServer = !baseUrl || baseUrl === AppInfo.DEFAULT_API_URL;+ const displayUrl = isDefaultServer ? 'aliasvault.net' : new URL(baseUrl).hostname;++ /**+ * Handles the click event for the login server information.+ */+ const handleClick = () : void => {+ navigate('/auth-settings');+ };++ return (+ <div className="text-xs text-gray-600 dark:text-gray-400 mb-4">+ (Connecting to{' '}+ <button+ onClick={handleClick}+ type="button"+ className="text-orange-500 hover:text-orange-600 dark:text-orange-400 dark:hover:text-orange-500 underline"+ >+ {displayUrl}+ </button>)+ </div>+ );+};++export default LoginServerInfo;\ No newline at end of filediff --git a/browser-extension/src/entrypoints/popup/components/ReloadButton.tsx b/browser-extension/src/entrypoints/popup/components/ReloadButton.tsxnew file mode 100644index 000000000..86c90ecb2--- /dev/null+++ b/browser-extension/src/entrypoints/popup/components/ReloadButton.tsx@@ -0,0 +1,34 @@+import React from 'react';++/**+ * Reload button props.+ */+type ReloadButtonProps = {+ onClick: () => void;+};++/**+ * Reload button component.+ */+const ReloadButton: React.FC<ReloadButtonProps> = ({ onClick }) => {+ return (+ <div+ className="px-2 items-center"+ >+ <div className="relative inline-flex items-center">+ <button onClick={onClick} className="absolute p-2 hover:bg-gray-200 rounded-2xl">+ <svg xmlns="http://www.w3.org/2000/svg" className="h-4 w-4 text-gray-400" viewBox="0 0 20 20" fill="currentColor">+ <path fillRule="evenodd" d="M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z" clipRule="evenodd" />+ </svg>+ </button>+ <svg aria-hidden="true" className="inline w-8 h-8 text-gray-200 dark:text-gray-600" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor" />+ <path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentFill" />+ </svg>+ </div>+ <span className="sr-only">Loading...</span>+ </div>+ );+};++export default ReloadButton;\ No newline at end of filediff --git a/browser-extension/src/entrypoints/popup/context/AuthContext.tsx b/browser-extension/src/entrypoints/popup/context/AuthContext.tsxnew file mode 100644index 000000000..552d3cabf--- /dev/null+++ b/browser-extension/src/entrypoints/popup/context/AuthContext.tsx@@ -0,0 +1,122 @@+import React, { createContext, useContext, useState, useEffect, useMemo, useCallback } from 'react';+import { useDb } from './DbContext';+import { storage } from 'wxt/storage';+import { browser } from 'wxt/browser';++type AuthContextType = {+ isLoggedIn: boolean;+ isInitialized: boolean;+ username: string | null;+ setAuthTokens: (username: string, accessToken: string, refreshToken: string) => Promise<void>;+ login: () => Promise<void>;+ logout: (errorMessage?: string) => Promise<void>;+ globalMessage: string | null;+ clearGlobalMessage: () => void;+}++/**+ * Auth context.+ */+const AuthContext = createContext<AuthContextType | undefined>(undefined);++/**+ * AuthProvider to provide the authentication state to the app that components can use.+ */+export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({ children }) => {+ const [isLoggedIn, setIsLoggedIn] = useState(false);+ const [isInitialized, setIsInitialized] = useState(false);+ const [username, setUsername] = useState<string | null>(null);+ const [globalMessage, setGlobalMessage] = useState<string | null>(null);+ const dbContext = useDb();++ /**+ * Check for tokens in chrome storage on initial load.+ */+ useEffect(() => {+ /**+ * Initialize the authentication state.+ */+ const initializeAuth = async () : Promise<void> => {+ const accessToken = await storage.getItem('local:accessToken') as string;+ const refreshToken = await storage.getItem('local:refreshToken') as string;+ const username = await storage.getItem('local:username') as string;+ if (accessToken && refreshToken && username) {+ setUsername(username);+ setIsLoggedIn(true);+ }+ setIsInitialized(true);+ };++ initializeAuth();+ }, []);++ /**+ * Set auth tokens in chrome storage as part of the login process. After db is initialized, the login method should be called as well.+ */+ const setAuthTokens = useCallback(async (username: string, accessToken: string, refreshToken: string) : Promise<void> => {+ await storage.setItem('local:username', username);+ await storage.setItem('local:accessToken', accessToken);+ await storage.setItem('local:refreshToken', refreshToken);++ setUsername(username);+ }, []);++ /**+ * Set logged in status to true which refreshes the app.+ */+ const login = useCallback(async () : Promise<void> => {+ setIsLoggedIn(true);+ }, []);++ /**+ * Logout the user and clear the auth tokens from chrome storage.+ */+ const logout = useCallback(async (errorMessage?: string) : Promise<void> => {+ await browser.runtime.sendMessage({ type: 'CLEAR_VAULT' });+ await storage.removeItems(['local:username', 'local:accessToken', 'local:refreshToken']);+ dbContext?.clearDatabase();++ // Set local storage global message that will be shown on the login page.+ if (errorMessage) {+ setGlobalMessage(errorMessage);+ }++ setUsername(null);+ setIsLoggedIn(false);+ }, [dbContext]);++ /**+ * Clear global message (called after displaying the message).+ */+ const clearGlobalMessage = useCallback(() : void => {+ setGlobalMessage(null);+ }, []);++ const contextValue = useMemo(() => ({+ isLoggedIn,+ isInitialized,+ username,+ setAuthTokens,+ login,+ logout,+ globalMessage,+ clearGlobalMessage,+ }), [isLoggedIn, isInitialized, username, globalMessage, setAuthTokens, login, logout, clearGlobalMessage]);++ return (+ <AuthContext.Provider value={contextValue}>+ {children}+ </AuthContext.Provider>+ );+};++/**+ * Hook to use the AuthContext+ */+export const useAuth = () : AuthContextType => {+ const context = useContext(AuthContext);+ if (context === undefined) {+ throw new Error('useAuth must be used within an AuthProvider');+ }+ return context;+};\ No newline at end of filediff --git a/browser-extension/src/entrypoints/popup/context/DbContext.tsx b/browser-extension/src/entrypoints/popup/context/DbContext.tsxnew file mode 100644index 000000000..873fd75dd--- /dev/null+++ b/browser-extension/src/entrypoints/popup/context/DbContext.tsx@@ -0,0 +1,150 @@+import React, { createContext, useContext, useState, useEffect, useCallback, useMemo } from 'react';+import SqliteClient from '../../../utils/SqliteClient';+import { VaultResponse } from '../../../utils/types/webapi/VaultResponse';+import EncryptionUtility from '../../../utils/EncryptionUtility';++type DbContextType = {+ sqliteClient: SqliteClient | null;+ dbInitialized: boolean;+ dbAvailable: boolean;+ initializeDatabase: (vaultResponse: VaultResponse, derivedKey: string) => Promise<void>;+ clearDatabase: () => void;+ vaultRevision: number;+ publicEmailDomains: string[];+ privateEmailDomains: string[];+}++const DbContext = createContext<DbContextType | undefined>(undefined);++/**+ * DbProvider to provide the SQLite client to the app that components can use to make database queries.+ */+export const DbProvider: React.FC<{ children: React.ReactNode }> = ({ children }) => {+ /**+ * SQLite client.+ */+ const [sqliteClient, setSqliteClient] = useState<SqliteClient | null>(null);++ /**+ * Database initialization state. If true, the database has been initialized and the dbAvailable state is correct.+ */+ const [dbInitialized, setDbInitialized] = useState(false);++ /**+ * Database availability state. If true, the database is available. If false, the database is not available and needs to be unlocked or retrieved again from the API.+ */+ const [dbAvailable, setDbAvailable] = useState(false);++ /**+ * Public email domains.+ */+ const [publicEmailDomains, setPublicEmailDomains] = useState<string[]>([]);++ /**+ * Vault revision.+ */+ const [vaultRevision, setVaultRevision] = useState(0);++ /**+ * Private email domains.+ */+ const [privateEmailDomains, setPrivateEmailDomains] = useState<string[]>([]);++ const initializeDatabase = useCallback(async (vaultResponse: VaultResponse, derivedKey: string) => {+ // Attempt to decrypt the blob.+ const decryptedBlob = await EncryptionUtility.symmetricDecrypt(+ vaultResponse.vault.blob,+ derivedKey+ );++ // Initialize the SQLite client.+ const client = new SqliteClient();+ await client.initializeFromBase64(decryptedBlob);++ setSqliteClient(client);+ setDbInitialized(true);+ setDbAvailable(true);+ setPublicEmailDomains(vaultResponse.vault.publicEmailDomainList);+ setPrivateEmailDomains(vaultResponse.vault.privateEmailDomainList);+ setVaultRevision(vaultResponse.vault.currentRevisionNumber);++ /*+ * Store encrypted vault in background worker.+ */+ chrome.runtime.sendMessage({+ type: 'STORE_VAULT',+ derivedKey: derivedKey,+ vaultResponse: vaultResponse,+ });+ }, []);++ const checkStoredVault = useCallback(async () => {+ try {+ const response = await chrome.runtime.sendMessage({ type: 'GET_VAULT' });+ if (response?.vault) {+ const client = new SqliteClient();+ await client.initializeFromBase64(response.vault);++ setSqliteClient(client);+ setDbInitialized(true);+ setDbAvailable(true);+ setPublicEmailDomains(response.publicEmailDomains);+ setPrivateEmailDomains(response.privateEmailDomains);+ setVaultRevision(response.vaultRevisionNumber);+ } else {+ setDbInitialized(true);+ setDbAvailable(false);+ }+ } catch (error) {+ console.error('Error retrieving vault from background:', error);+ setDbInitialized(true);+ setDbAvailable(false);+ }+ }, []);++ /**+ * Check if database is initialized and try to retrieve vault from background+ */+ useEffect(() : void => {+ if (!dbInitialized) {+ checkStoredVault();+ }+ }, [dbInitialized, checkStoredVault]);++ /**+ * Clear database and remove from background worker, called when logging out.+ */+ const clearDatabase = useCallback(() : void => {+ setSqliteClient(null);+ setDbInitialized(false);+ chrome.runtime.sendMessage({ type: 'CLEAR_VAULT' });+ }, []);++ const contextValue = useMemo(() => ({+ sqliteClient,+ dbInitialized,+ dbAvailable,+ initializeDatabase,+ clearDatabase,+ vaultRevision,+ publicEmailDomains,+ privateEmailDomains+ }), [sqliteClient, dbInitialized, dbAvailable, initializeDatabase, clearDatabase, vaultRevision, publicEmailDomains, privateEmailDomains]);++ return (+ <DbContext.Provider value={contextValue}>+ {children}+ </DbContext.Provider>+ );+};++/**+ * Hook to use the DbContext+ */+export const useDb = () : DbContextType => {+ const context = useContext(DbContext);+ if (context === undefined) {+ throw new Error('useDb must be used within a DbProvider');+ }+ return context;+};diff --git a/browser-extension/src/entrypoints/popup/context/LoadingContext.tsx b/browser-extension/src/entrypoints/popup/context/LoadingContext.tsxnew file mode 100644index 000000000..93a5138ff--- /dev/null+++ b/browser-extension/src/entrypoints/popup/context/LoadingContext.tsx@@ -0,0 +1,71 @@+import React, { createContext, useContext, useState, useMemo } from 'react';+import LoadingSpinnerFullScreen from '../components/LoadingSpinnerFullScreen';++type LoadingContextType = {+ isLoading: boolean;+ showLoading: () => void;+ hideLoading: () => void;+ isInitialLoading: boolean;+ setIsInitialLoading: (isInitialLoading: boolean) => void;+}++/**+ * Loading context.+ */+const LoadingContext = createContext<LoadingContextType | undefined>(undefined);++/**+ * Loading provider+ */+export const LoadingProvider: React.FC<{ children: React.ReactNode }> = ({ children }) => {+ /**+ * Initial loading state for when extension is first loaded. This initial loading state is+ * hidden by the component that is rendered when the extension is first loaded to prevent+ * multiple loading spinners from being shown.+ */+ const [isInitialLoading, setIsInitialLoading] = useState(true);++ /**+ * Loading state that can be used by other components during normal operation.+ */+ const [isLoading, setIsLoading] = useState(false);++ /**+ * Show loading spinner+ */+ const showLoading = (): void => setIsLoading(true);++ /**+ * Hide loading spinner+ */+ const hideLoading = (): void => setIsLoading(false);++ const value = useMemo(+ () => ({+ isLoading,+ showLoading,+ hideLoading,+ isInitialLoading,+ setIsInitialLoading,+ }),+ [isLoading, isInitialLoading]+ );++ return (+ <LoadingContext.Provider value={value}>+ <LoadingSpinnerFullScreen />+ {children}+ </LoadingContext.Provider>+ );+};++/**+ * Hook to use loading state+ */+export const useLoading = (): LoadingContextType => {+ const context = useContext(LoadingContext);+ if (context === undefined) {+ throw new Error('useLoading must be used within a LoadingProvider');+ }+ return context;+};\ No newline at end of filediff --git a/browser-extension/src/entrypoints/popup/context/WebApiContext.tsx b/browser-extension/src/entrypoints/popup/context/WebApiContext.tsxnew file mode 100644index 000000000..b97e361b0--- /dev/null+++ b/browser-extension/src/entrypoints/popup/context/WebApiContext.tsx@@ -0,0 +1,50 @@+import React, { createContext, useContext, useEffect, useState } from 'react';+import { WebApiService } from '../../../utils/WebApiService';+import { useAuth } from './AuthContext';++const WebApiContext = createContext<WebApiService | null>(null);++/**+ * WebApiProvider to provide the WebApiService to the app that components can use.+ */+export const WebApiProvider: React.FC<{ children: React.ReactNode }> = ({ children }) => {+ const { logout } = useAuth();+ const [webApiService, setWebApiService] = useState<WebApiService | null>(null);++ /**+ * Initialize WebApiService+ */+ useEffect(() : void => {+ const service = new WebApiService(+ (statusError: string | null) => {+ if (statusError) {+ logout(statusError);+ } else {+ logout();+ }+ }+ );+ setWebApiService(service);+ }, [logout]);++ if (!webApiService) {+ return null;+ }++ return (+ <WebApiContext.Provider value={webApiService}>+ {children}+ </WebApiContext.Provider>+ );+};++/**+ * Hook to use the WebApiService+ */+export const useWebApi = () : WebApiService => {+ const context = useContext(WebApiContext);+ if (!context) {+ throw new Error('useWebApi must be used within a WebApiProvider');+ }+ return context;+};diff --git a/browser-extension/src/entrypoints/popup/index.html b/browser-extension/src/entrypoints/popup/index.htmlnew file mode 100644index 000000000..c576d4b69--- /dev/null+++ b/browser-extension/src/entrypoints/popup/index.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<html lang="en">+<head>+ <meta charset="UTF-8" />+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />+ <title>AliasVault</title>+ <link href="~/assets/tailwind.css" rel="stylesheet" />+</head>+<body class="bg-white dark:bg-gray-900">+ <div id="root"></div>+ <script type="module" src="./Index.tsx"></script>+</body>+</html>diff --git a/browser-extension/src/entrypoints/popup/pages/AuthSettings.tsx b/browser-extension/src/entrypoints/popup/pages/AuthSettings.tsxnew file mode 100644index 000000000..80396c1a0--- /dev/null+++ b/browser-extension/src/entrypoints/popup/pages/AuthSettings.tsx@@ -0,0 +1,130 @@+import React, { useState, useEffect } from 'react';+import { AppInfo } from '../../../utils/AppInfo';++type ApiOption = {+ label: string;+ value: string;+};++const DEFAULT_OPTIONS: ApiOption[] = [+ { label: 'Aliasvault.net', value: AppInfo.DEFAULT_API_URL },+ { label: 'Self-hosted', value: 'custom' }+];++/**+ * Auth settings page only shown when user is not logged in.+ */+const AuthSettings: React.FC = () => {+ const [selectedOption, setSelectedOption] = useState<string>('');+ const [customUrl, setCustomUrl] = useState<string>('');+ const [customClientUrl, setCustomClientUrl] = useState<string>('');++ useEffect(() => {+ const loadStoredSettings = async () => {+ const apiUrl = await storage.getItem('local:apiUrl') as string;+ const clientUrl = await storage.getItem('local:clientUrl') as string;+ const matchingOption = DEFAULT_OPTIONS.find(opt => opt.value === apiUrl);++ if (matchingOption) {+ setSelectedOption(matchingOption.value);+ } else if (apiUrl) {+ setSelectedOption('custom');+ setCustomUrl(apiUrl);+ setCustomClientUrl(clientUrl ?? '');+ } else {+ setSelectedOption(DEFAULT_OPTIONS[0].value);+ }+ };++ loadStoredSettings();+ }, []);++ /**+ * Handle option change+ */+ const handleOptionChange = async (e: React.ChangeEvent<HTMLSelectElement>) : Promise<void> => {+ const value = e.target.value;+ setSelectedOption(value);+ if (value !== 'custom') {+ await storage.setItem('local:apiUrl', '');+ await storage.setItem('local:clientUrl', '');+ }+ };++ /**+ * Handle custom API URL change+ */+ const handleCustomUrlChange = async (e: React.ChangeEvent<HTMLInputElement>) : Promise<void> => {+ const value = e.target.value;+ setCustomUrl(value);+ await storage.setItem('local:apiUrl', value);+ };++ /**+ * Handle custom client URL change+ * @param e+ */+ const handleCustomClientUrlChange = async (e: React.ChangeEvent<HTMLInputElement>) : Promise<void> => {+ const value = e.target.value;+ setCustomClientUrl(value);+ await storage.setItem('local:clientUrl', value);+ };++ return (+ <div className="p-4">+ <div className="mb-6">+ <label htmlFor="api-connection" className="block text-sm font-medium text-gray-700 dark:text-gray-200 mb-2">+ API Connection+ </label>+ <select+ value={selectedOption}+ onChange={handleOptionChange}+ className="w-full bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-primary-500 focus:border-primary-500 p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white"+ >+ {DEFAULT_OPTIONS.map(option => (+ <option key={option.value} value={option.value}>+ {option.label}+ </option>+ ))}+ </select>+ </div>++ {selectedOption === 'custom' && (+ <>+ <div className="mb-6">+ <label htmlFor="custom-client-url" className="block text-sm font-medium text-gray-700 dark:text-gray-200 mb-2">+ Custom client URL+ </label>+ <input+ id="custom-client-url"+ type="text"+ value={customClientUrl}+ onChange={handleCustomClientUrlChange}+ placeholder="https://my-aliasvault-instance.com"+ className="w-full bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-primary-500 focus:border-primary-500 p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white"+ />+ </div>+ <div className="mb-6">+ <label htmlFor="custom-api-url" className="block text-sm font-medium text-gray-700 dark:text-gray-200 mb-2">+ Custom API URL+ </label>+ <input+ id="custom-api-url"+ type="text"+ value={customUrl}+ onChange={handleCustomUrlChange}+ placeholder="https://my-aliasvault-instance.com/api"+ className="w-full bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-primary-500 focus:border-primary-500 p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white"+ />+ </div>+ </>+ )}++ <div className="text-center text-gray-400 dark:text-gray-600">+ Version: {AppInfo.VERSION}+ </div>+ </div>+ );+};++export default AuthSettings;diff --git a/browser-extension/src/entrypoints/popup/pages/CredentialDetails.tsx b/browser-extension/src/entrypoints/popup/pages/CredentialDetails.tsxnew file mode 100644index 000000000..b613a70ad--- /dev/null+++ b/browser-extension/src/entrypoints/popup/pages/CredentialDetails.tsx@@ -0,0 +1,227 @@+import React, { useState, useEffect } from 'react';+import { useNavigate, useParams } from 'react-router-dom';+import { useDb } from '../context/DbContext';+import { Credential } from '../../../utils/types/Credential';+import { Buffer } from 'buffer';+import { FormInputCopyToClipboard } from '../components/FormInputCopyToClipboard';+import { EmailPreview } from '../components/EmailPreview';+import { useLoading } from '../context/LoadingContext';++/**+ * Credential details page.+ */+const CredentialDetails: React.FC = () => {+ const { id } = useParams();+ const navigate = useNavigate();+ const dbContext = useDb();+ const [credential, setCredential] = useState<Credential | null>(null);+ const { setIsInitialLoading } = useLoading();++ /**+ * Check if the current page is a popup.+ */+ const isPopup = () : boolean => {+ const urlParams = new URLSearchParams(window.location.search);+ return urlParams.get('popup') === 'true';+ };++ /**+ * Open the credential details in a new popup.+ */+ const openInNewPopup = () : void => {+ const width = 380;+ const height = 600;+ const left = window.screen.width / 2 - width / 2;+ const top = window.screen.height / 2 - height / 2;++ window.open(+ `index.html?popup=true#/credentials/${id}`,+ 'CredentialDetails',+ `width=${width},height=${height},left=${left},top=${top},popup=true`+ );++ // Close the current tab+ window.close();+ };++ /**+ * Checks if the email domain is supported for email preview.+ *+ * @param email The email address to check+ * @returns True if the domain is supported, false otherwise+ */+ const isEmailDomainSupported = (email: string): boolean => {+ // Extract domain from email+ const domain = email.split('@')[1]?.toLowerCase();++ if (!domain) {+ return false;+ }++ // Check if domain is in public or private domains+ const publicDomains = dbContext.publicEmailDomains ?? [];+ const privateDomains = dbContext.privateEmailDomains ?? [];++ // Check if the domain ends with any of the supported domains+ return [...publicDomains, ...privateDomains].some(supportedDomain =>+ domain === supportedDomain || domain.endsWith(`.${supportedDomain}`)+ );+ };++ useEffect(() => {+ // For popup windows, ensure we have proper history state for navigation+ if (isPopup()) {+ // Clear existing history and create fresh entries+ window.history.replaceState({}, '', `index.html#/credentials`);+ window.history.pushState({}, '', `index.html#/credentials/${id}`);+ }++ if (!dbContext?.sqliteClient || !id) {+ return;+ }++ try {+ const result = dbContext.sqliteClient.getCredentialById(id);+ if (result) {+ setCredential(result);+ setIsInitialLoading(false);+ } else {+ console.error('Credential not found');+ navigate('/credentials');+ }+ } catch (err) {+ console.error('Error loading credential:', err);+ }+ }, [dbContext.sqliteClient, id, navigate, setIsInitialLoading]);++ if (!credential) {+ return <div>Loading...</div>;+ }++ return (+ <div className="">+ <div className="space-y-6">+ <div className="flex items-center justify-between mb-6">+ <div className="flex items-center">+ <img+ src={credential.Logo ? `data:image/x-icon;base64,${Buffer.from(credential.Logo).toString('base64')}` : '/assets/images/service-placeholder.webp'}+ alt={credential.ServiceName}+ className="w-12 h-12 rounded-lg mr-4"+ />+ <div>+ <h1 className="text-2xl font-bold text-gray-900 dark:text-white">{credential.ServiceName}</h1>+ {credential.ServiceUrl && (+ <a+ href={credential.ServiceUrl}+ target="_blank"+ rel="noopener noreferrer"+ className="text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300"+ >+ {credential.ServiceUrl}+ </a>+ )}+ </div>+ </div>+ <button+ onClick={openInNewPopup}+ className="text-gray-600 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white"+ title="Open in new window"+ >+ <svg+ className="w-5 h-5"+ fill="none"+ stroke="currentColor"+ viewBox="0 0 24 24"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth={2}+ d="M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4"+ />+ </svg>+ </button>+ </div>++ {credential.Email && (+ <>+ {isEmailDomainSupported(credential.Email) && (+ <div className="mt-6">+ <EmailPreview+ email={credential.Email}+ />+ </div>+ )}+ </>+ )}+ </div>++ <div className="grid gap-6">+ <div className="space-y-4 lg:col-span-2 xl:col-span-1">+ <h2 className="text-xl font-semibold text-gray-900 dark:text-white">Login credentials</h2>+ <FormInputCopyToClipboard+ id="email"+ label="Email"+ value={credential.Email ?? ''}+ />+ <FormInputCopyToClipboard+ id="username"+ label="Username"+ value={credential.Username}+ />+ <FormInputCopyToClipboard+ id="password"+ label="Password"+ value={credential.Password}+ type="password"+ />++ <div className="space-y-4">+ <h2 className="text-xl font-semibold text-gray-900 dark:text-white">Alias</h2>+ <FormInputCopyToClipboard+ id="fullName"+ label="Full Name"+ value={`${credential.Alias.FirstName} ${credential.Alias.LastName}`}+ />+ <FormInputCopyToClipboard+ id="firstName"+ label="First Name"+ value={credential.Alias.FirstName}+ />+ <FormInputCopyToClipboard+ id="lastName"+ label="Last Name"+ value={credential.Alias.LastName}+ />+ <FormInputCopyToClipboard+ id="birthDate"+ label="Birth Date"+ value={credential.Alias.BirthDate ? new Date(credential.Alias.BirthDate).toISOString().split('T')[0] : ''}+ />+ {credential.Alias.NickName && (+ <FormInputCopyToClipboard+ id="nickName"+ label="Nickname"+ value={credential.Alias.NickName}+ />+ )}+ </div>+ </div>++ {credential.Notes && (+ <div className="space-y-4 lg:col-span-2 xl:col-span-1">+ <h2 className="text-xl font-semibold text-gray-900 dark:text-white">Notes</h2>+ <div className="p-4 bg-gray-50 rounded-lg dark:bg-gray-700">+ <p className="text-gray-900 dark:text-gray-100 whitespace-pre-wrap">+ {credential.Notes}+ </p>+ </div>+ </div>+ )}+ </div>+ </div>+ );+};++export default CredentialDetails;\ No newline at end of filediff --git a/browser-extension/src/entrypoints/popup/pages/CredentialsList.tsx b/browser-extension/src/entrypoints/popup/pages/CredentialsList.tsxnew file mode 100644index 000000000..8df0aee7d--- /dev/null+++ b/browser-extension/src/entrypoints/popup/pages/CredentialsList.tsx@@ -0,0 +1,186 @@+import React, { useState, useEffect, useCallback } from 'react';+import { useDb } from '../context/DbContext';+import { Credential } from '../../../utils/types/Credential';+import { Buffer } from 'buffer';+import { useNavigate } from 'react-router-dom';+import { useLoading } from '../context/LoadingContext';+import { useWebApi } from '../context/WebApiContext';+import { VaultResponse } from '../../../utils/types/webapi/VaultResponse';+import ReloadButton from '../components/ReloadButton';+import LoadingSpinner from '../components/LoadingSpinner';+import { useMinDurationLoading } from '../../../hooks/useMinDurationLoading';++/**+ * Credentials list page.+ */+const CredentialsList: React.FC = () => {+ const dbContext = useDb();+ const webApi = useWebApi();+ const [credentials, setCredentials] = useState<Credential[]>([]);+ const [searchTerm, setSearchTerm] = useState('');+ const navigate = useNavigate();+ const { showLoading, hideLoading, setIsInitialLoading } = useLoading();++ /**+ * Loading state with minimum duration for more fluid UX.+ */+ const [isLoading, setIsLoading] = useMinDurationLoading(true, 100);++ /**+ * Retrieve latest vault and refresh the credentials list.+ */+ const onRefresh = useCallback(async () : Promise<void> => {+ if (!dbContext?.sqliteClient) {+ return;+ }++ // Do status check first to ensure the extension is (still) supported.+ const statusResponse = await webApi.getStatus();+ const statusError = webApi.validateStatusResponse(statusResponse);+ if (statusError !== null) {+ await webApi.logout(statusError);+ return;+ }++ try {+ // If the vault revision is the same or lower, (re)load existing credentials.+ if (statusResponse.vaultRevision <= dbContext.vaultRevision) {+ const results = dbContext.sqliteClient.getAllCredentials();+ setCredentials(results);+ return;+ }++ /**+ * If the vault revision is higher, fetch the latest vault and initialize the SQLite context again.+ * This will trigger a new credentials list refresh.+ */+ const vaultResponseJson = await webApi.get<VaultResponse>('Vault');++ const vaultError = webApi.validateVaultResponse(vaultResponseJson);+ if (vaultError) {+ await webApi.logout(vaultError);+ hideLoading();+ return;+ }++ // Get derived key from background worker+ const passwordHashBase64 = await chrome.runtime.sendMessage({ type: 'GET_DERIVED_KEY' });++ // Initialize the SQLite context again with the newly retrieved decrypted blob+ await dbContext.initializeDatabase(vaultResponseJson, passwordHashBase64);+ } catch (err) {+ console.error('Refresh error:', err);+ }+ }, [dbContext, webApi, hideLoading]);++ /**+ * Manually refresh the credentials list.+ */+ const onManualRefresh = async (): Promise<void> => {+ showLoading();+ await onRefresh();+ hideLoading();+ };++ /**+ * Load credentials list on mount and on sqlite client change.+ */+ useEffect(() => {+ /**+ * Refresh credentials list when sqlite client is available.+ */+ const refreshCredentials = async () : Promise<void> => {+ if (dbContext?.sqliteClient) {+ setIsLoading(true);+ await onRefresh();+ setIsLoading(false);++ // Hide the global app initial loading state after the credentials list is loaded.+ setIsInitialLoading(false);+ }+ };++ refreshCredentials();+ }, [dbContext?.sqliteClient, onRefresh, setIsLoading, setIsInitialLoading]);++ // Add this function to filter credentials+ const filteredCredentials = credentials.filter(cred => {+ const searchLower = searchTerm.toLowerCase();+ return (+ cred.ServiceName.toLowerCase().includes(searchLower) ||+ cred.Username.toLowerCase().includes(searchLower) ||+ (cred.Email?.toLowerCase().includes(searchLower))+ );+ });++ if (isLoading) {+ return (+ <div className="flex justify-center items-center p-8">+ <LoadingSpinner />+ </div>+ );+ }++ return (+ <div>+ <div className="flex justify-between items-center mb-4">+ <h2 className="text-gray-900 dark:text-white text-xl">Credentials</h2>+ <ReloadButton onClick={onManualRefresh} />+ </div>++ {credentials.length > 0 ? (+ <input+ type="text"+ placeholder="Search credentials..."+ value={searchTerm}+ onChange={(e) => setSearchTerm(e.target.value)}+ autoFocus+ className="w-full p-2 mb-4 border dark:border-gray-600 rounded bg-white dark:bg-gray-800 text-gray-900 dark:text-white focus:ring-blue-500 focus:border-blue-500"+ />+ ) : (+ <></>+ )}++ {credentials.length === 0 ? (+ <div className="text-gray-500 dark:text-gray-400 space-y-2 mb-10">+ <p className="text-sm">+ Welcome to AliasVault!+ </p>+ <p className="text-sm">+ To use the AliasVault browser extension: navigate to a website and use the AliasVault autofill popup to create a new credential.+ </p>+ <p className="text-sm">+ If you want to create manual identities, open the full AliasVault app via the popout icon in the top right corner.+ </p>+ </div>+ ) : (+ <ul className="space-y-2">+ {filteredCredentials.map(cred => (+ <li key={cred.Id}>+ <button+ onClick={() => navigate(`/credentials/${cred.Id}`)}+ className="w-full p-2 border dark:border-gray-600 rounded flex items-center bg-white dark:bg-gray-800 cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500"+ >+ <img+ src={cred.Logo ? `data:image/x-icon;base64,${Buffer.from(cred.Logo).toString('base64')}` : '/assets/images/service-placeholder.webp'}+ alt={cred.ServiceName}+ className="w-8 h-8 mr-2 flex-shrink-0"+ onError={(e) => {+ const target = e.target as HTMLImageElement;+ target.src = '/assets/images/service-placeholder.webp';+ }}+ />+ <div className="text-left">+ <p className="font-medium text-gray-900 dark:text-white">{cred.ServiceName}</p>+ <p className="text-sm text-gray-600 dark:text-gray-400">{cred.Username}</p>+ </div>+ </button>+ </li>+ ))}+ </ul>+ )}+ </div>+ );+};++export default CredentialsList;\ No newline at end of filediff --git a/browser-extension/src/entrypoints/popup/pages/EmailDetails.tsx b/browser-extension/src/entrypoints/popup/pages/EmailDetails.tsxnew file mode 100644index 000000000..27facdc9b--- /dev/null+++ b/browser-extension/src/entrypoints/popup/pages/EmailDetails.tsx@@ -0,0 +1,281 @@+import React, { useEffect, useState } from 'react';+import { useParams, useNavigate } from 'react-router-dom';+import { Email } from '../../../utils/types/webapi/Email';+import { useDb } from '../context/DbContext';+import { useWebApi } from '../context/WebApiContext';+import LoadingSpinner from '../components/LoadingSpinner';+import { useMinDurationLoading } from '../../../hooks/useMinDurationLoading';+import EncryptionUtility from '../../../utils/EncryptionUtility';+import { Attachment } from '../../../utils/types/webapi/Attachment';+import { useLoading } from '../context/LoadingContext';+import ConversionUtility from '../utils/ConversionUtility';++/**+ * Email details page.+ */+const EmailDetails: React.FC = () => {+ const { id } = useParams<{ id: string }>();+ const navigate = useNavigate();+ const dbContext = useDb();+ const webApi = useWebApi();+ const [error, setError] = useState<string | null>(null);+ const [email, setEmail] = useState<Email | null>(null);+ const [isLoading, setIsLoading] = useMinDurationLoading(true, 150);+ const { setIsInitialLoading } = useLoading();++ /**+ * Make sure the initial loading state is set to false when this component is loaded itself.+ */+ useEffect(() => {+ if (!isLoading) {+ setIsInitialLoading(false);+ }+ }, [setIsInitialLoading, isLoading]);++ useEffect(() => {+ // For popup windows, ensure we have proper history state for navigation+ if (isPopup()) {+ // Clear existing history and create fresh entries+ window.history.replaceState({}, '', `index.html#/emails`);+ window.history.pushState({}, '', `index.html#/emails/${id}`);+ }++ /**+ * Load the email.+ */+ const loadEmail = async () : Promise<void> => {+ try {+ setIsLoading(true);+ setError(null);++ if (!dbContext?.sqliteClient || !id) {+ return;+ }++ const response = await webApi.get<Email>(`Email/${id}`);++ // Decrypt email locally using public/private key pairs+ const encryptionKeys = dbContext.sqliteClient.getAllEncryptionKeys();+ const decryptedEmail = await EncryptionUtility.decryptEmail(response, encryptionKeys);+ setEmail(decryptedEmail);+ } catch (err) {+ setError(err instanceof Error ? err.message : 'An error occurred');+ } finally {+ setIsLoading(false);+ }+ };++ loadEmail();+ }, [id, dbContext?.sqliteClient, webApi, setIsLoading]);++ /**+ * Handle deleting an email.+ */+ const handleDelete = async () : Promise<void> => {+ try {+ await webApi.delete(`Email/${id}`);+ navigate('/emails');+ } catch (err) {+ setError(err instanceof Error ? err.message : 'Failed to delete email');+ }+ };++ /**+ * Check if the current page is a popup.+ */+ const isPopup = () : boolean => {+ const urlParams = new URLSearchParams(window.location.search);+ return urlParams.get('popup') === 'true';+ };++ /**+ * Open the credential details in a new popup.+ */+ const openInNewPopup = () : void => {+ const width = 800;+ const height = 1000;+ const left = window.screen.width / 2 - width / 2;+ const top = window.screen.height / 2 - height / 2;++ window.open(+ `index.html?popup=true#/emails/${id}`,+ 'EmailDetails',+ `width=${width},height=${height},left=${left},top=${top},popup=true`+ );++ // Close the current tab+ window.close();+ };++ /**+ * Handle downloading an attachment.+ */+ const handleDownloadAttachment = async (attachment: Attachment): Promise<void> => {+ try {+ // Get the encrypted attachment bytes from the API+ const base64EncryptedAttachment = await webApi.downloadBlobAndConvertToBase64(`Email/${id}/attachments/${attachment.id}`);++ if (!dbContext?.sqliteClient || !email) {+ setError('Database context or email not available');+ return;+ }++ // Get encryption keys for decryption+ const encryptionKeys = dbContext.sqliteClient.getAllEncryptionKeys();++ // Decrypt the attachment using ArrayBuffer+ const decryptedBytes = await EncryptionUtility.decryptAttachment(base64EncryptedAttachment, email, encryptionKeys);++ if (!decryptedBytes) {+ setError('Failed to decrypt attachment');+ return;+ }++ // Create blob from decrypted bytes with proper MIME type+ const blob = new Blob([decryptedBytes], { type: attachment.mimeType ?? 'application/octet-stream' });++ // Create download link and trigger download+ const url = window.URL.createObjectURL(blob);+ const a = document.createElement('a');+ a.href = url;+ a.download = attachment.filename;+ document.body.appendChild(a);+ a.click();++ // Cleanup+ window.URL.revokeObjectURL(url);+ document.body.removeChild(a);+ } catch (err) {+ console.error('handleDownloadAttachment error', err);+ setError(err instanceof Error ? err.message : 'Failed to download attachment');+ }+ };++ if (isLoading) {+ return (+ <div className="flex justify-center items-center p-8">+ <LoadingSpinner />+ </div>+ );+ }++ if (error) {+ return <div className="text-red-500">Error: {error}</div>;+ }++ if (!email) {+ return <div className="text-gray-500">Email not found</div>;+ }++ return (+ <div className="max-w-4xl mx-auto">+ <div className="bg-white dark:bg-gray-800 rounded-lg shadow-md">+ {/* Header */}+ <div className="p-6 border-b border-gray-200 dark:border-gray-700">+ <div className="flex justify-between items-start mb-4">+ <h1 className="text-2xl font-bold text-gray-900 dark:text-white">{email.subject}</h1>+ <div className="flex space-x-2">+ <button+ onClick={openInNewPopup}+ className="text-gray-600 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white"+ title="Open in new window"+ >+ <svg+ className="w-5 h-5"+ fill="none"+ stroke="currentColor"+ viewBox="0 0 24 24"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth={2}+ d="M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4"+ />+ </svg>+ </button>+ <button+ onClick={handleDelete}+ className="p-2 text-red-500 hover:text-red-600 rounded-md hover:bg-red-100 dark:hover:bg-red-900/20"+ title="Delete email"+ >+ <svg+ className="w-5 h-5"+ fill="none"+ stroke="currentColor"+ viewBox="0 0 24 24"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth={2}+ d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"+ />+ </svg>+ </button>+ </div>+ </div>+ <div className="space-y-1 text-sm text-gray-600 dark:text-gray-400">+ <p>From: {email.fromDisplay} ({email.fromLocal}@{email.fromDomain})</p>+ <p>To: {email.toLocal}@{email.toDomain}</p>+ <p>Date: {new Date(email.dateSystem).toLocaleString()}</p>+ </div>+ </div>++ {/* Email Body */}+ <div className="bg-white">+ {email.messageHtml ? (+ <iframe+ srcDoc={ConversionUtility.convertAnchorTagsToOpenInNewTab(email.messageHtml)}+ className="w-full min-h-[500px] border-0"+ title="Email content"+ />+ ) : (+ <pre className="whitespace-pre-wrap text-gray-700 dark:text-gray-300">+ {email.messagePlain}+ </pre>+ )}+ </div>++ {/* Attachments */}+ {email.attachments && email.attachments.length > 0 && (+ <div className="p-6 border-t border-gray-200 dark:border-gray-700">+ <h2 className="text-lg font-semibold mb-4 text-gray-900 dark:text-white">+ Attachments+ </h2>+ <div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4">+ {email.attachments.map((attachment) => (+ <button+ key={attachment.id}+ onClick={() => handleDownloadAttachment(attachment)}+ className="flex items-center space-x-2 text-sm text-gray-600 dark:text-gray-400 hover:text-primary-600 dark:hover:text-primary-400 text-left"+ >+ <svg+ className="w-4 h-4"+ fill="none"+ stroke="currentColor"+ viewBox="0 0 24 24"+ >+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth={2}+ d="M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13"+ />+ </svg>+ <span>+ {attachment.filename} ({Math.ceil(attachment.filesize / 1024)} KB)+ </span>+ </button>+ ))}+ </div>+ </div>+ )}+ </div>+ </div>+ );+};++export default EmailDetails;\ No newline at end of filediff --git a/browser-extension/src/entrypoints/popup/pages/EmailsList.tsx b/browser-extension/src/entrypoints/popup/pages/EmailsList.tsxnew file mode 100644index 000000000..913af1fe0--- /dev/null+++ b/browser-extension/src/entrypoints/popup/pages/EmailsList.tsx@@ -0,0 +1,159 @@+import React, { useEffect, useState, useCallback } from 'react';+import { MailboxBulkRequest, MailboxBulkResponse } from '../../../utils/types/webapi/MailboxBulk';+import { MailboxEmail } from '../../../utils/types/webapi/MailboxEmail';+import { useDb } from '../context/DbContext';+import { useWebApi } from '../context/WebApiContext';+import LoadingSpinner from '../components/LoadingSpinner';+import { useMinDurationLoading } from '../../../hooks/useMinDurationLoading';+import EncryptionUtility from '../../../utils/EncryptionUtility';+import ReloadButton from '../components/ReloadButton';+import { Link } from 'react-router-dom';+/**+ * Emails list page.+ */+const EmailsList: React.FC = () => {+ const dbContext = useDb();+ const webApi = useWebApi();+ const [error, setError] = useState<string | null>(null);+ const [emails, setEmails] = useState<MailboxEmail[]>([]);++ /**+ * Loading state with minimum duration for more fluid UX.+ */+ const [isLoading, setIsLoading] = useMinDurationLoading(true, 100);++ /**+ * Loads emails from the web API.+ */+ const loadEmails = useCallback(async () : Promise<void> => {+ try {+ setIsLoading(true);+ setError(null);++ if (!dbContext?.sqliteClient) {+ return;+ }++ // Get unique email addresses from all credentials.+ const emailAddresses = dbContext.sqliteClient.getAllEmailAddresses();++ try {+ // For now we only show the latest 50 emails. No pagination.+ const data = await webApi.post<MailboxBulkRequest, MailboxBulkResponse>('EmailBox/bulk', {+ addresses: emailAddresses,+ page: 1,+ pageSize: 50,+ });++ // Decrypt emails locally using private key associated with the email address.+ const encryptionKeys = dbContext.sqliteClient.getAllEncryptionKeys();++ // Decrypt emails locally using public/private key pairs.+ const decryptedEmails = await EncryptionUtility.decryptEmailList(data.mails, encryptionKeys);++ setEmails(decryptedEmails);+ } catch (error) {+ console.error(error);+ throw new Error('Failed to load emails');+ }+ } catch (err) {+ setError(err instanceof Error ? err.message : 'An error occurred');+ } finally {+ setIsLoading(false);+ }+ }, [dbContext?.sqliteClient, webApi, setIsLoading]);++ useEffect(() => {+ loadEmails();+ }, [loadEmails]);++ /**+ * Formats the date display for emails+ */+ const formatEmailDate = (dateSystem: string): string => {+ const now = new Date();+ const emailDate = new Date(dateSystem);+ const secondsAgo = Math.floor((now.getTime() - emailDate.getTime()) / 1000);++ if (secondsAgo < 60) {+ return 'just now';+ } else if (secondsAgo < 3600) {+ // Less than 1 hour ago+ const minutes = Math.floor(secondsAgo / 60);+ return `${minutes} ${minutes === 1 ? 'min' : 'mins'} ago`;+ } else if (secondsAgo < 86400) {+ // Less than 24 hours ago+ const hours = Math.floor(secondsAgo / 3600);+ return `${hours} ${hours === 1 ? 'hr' : 'hrs'} ago`;+ } else if (secondsAgo < 172800) {+ // Less than 48 hours ago+ return 'yesterday';+ } else {+ // Older than 48 hours+ return emailDate.toLocaleDateString('en-GB', {+ day: '2-digit',+ month: '2-digit'+ });+ }+ };++ if (isLoading) {+ return (+ <div className="flex justify-center items-center p-8">+ <LoadingSpinner />+ </div>+ );+ }++ if (error) {+ return <div className="text-red-500">Error: {error}</div>;+ }++ if (emails.length === 0) {+ return (+ <div>+ <div className="flex justify-between items-center mb-4">+ <h2 className="text-gray-900 dark:text-white text-xl">Emails</h2>+ <ReloadButton onClick={loadEmails} />+ </div>+ <div className="text-gray-500 dark:text-gray-400 space-y-2">+ <p className="text-sm">+ You have not received any emails at your private email addresses yet. When you receive a new email, it will appear here.+ </p>+ </div>+ </div>+ );+ }++ return (+ <div>+ <div className="flex justify-between items-center mb-4">+ <h2 className="text-gray-900 dark:text-white text-xl">Emails</h2>+ <ReloadButton onClick={loadEmails} />+ </div>+ <div className="space-y-2">+ {emails.map((email) => (+ <Link+ key={email.id}+ to={`/emails/${email.id}`}+ className="block p-4 bg-white dark:bg-gray-800 rounded-lg shadow hover:shadow-md transition-shadow border border-gray-200 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-700"+ >+ <div className="flex justify-between items-start mb-2">+ <div className="text-sm text-gray-900 dark:text-white mb-1 font-bold">+ {email.subject}+ </div>+ <div className="text-sm text-gray-500 dark:text-gray-400">+ {formatEmailDate(email.dateSystem)}+ </div>+ </div>+ <div className="text-sm text-gray-600 dark:text-gray-300 line-clamp-2">+ {email.messagePreview}+ </div>+ </Link>+ ))}+ </div>+ </div>+ );+};++export default EmailsList;diff --git a/browser-extension/src/entrypoints/popup/pages/Home.tsx b/browser-extension/src/entrypoints/popup/pages/Home.tsxnew file mode 100644index 000000000..e2995e7a9--- /dev/null+++ b/browser-extension/src/entrypoints/popup/pages/Home.tsx@@ -0,0 +1,61 @@+import React, { useState, useEffect } from 'react';+import { useAuth } from '../context/AuthContext';+import Unlock from './Unlock';+import Login from './Login';+import UnlockSuccess from './UnlockSuccess';+import { useNavigate } from 'react-router-dom';+import { useDb } from '../context/DbContext';+import { useLoading } from '../context/LoadingContext';++/**+ * Home page that shows the correct page based on the user's authentication state.+ */+const Home: React.FC = () => {+ const authContext = useAuth();+ const dbContext = useDb();+ const navigate = useNavigate();+ const { setIsInitialLoading } = useLoading();+ const [isInlineUnlockMode, setIsInlineUnlockMode] = useState(false);++ // Initialization state.+ const isFullyInitialized = authContext.isInitialized && dbContext.dbInitialized;+ const isAuthenticated = authContext.isLoggedIn;+ const isDatabaseAvailable = dbContext.dbAvailable;+ const requireLoginOrUnlock = isFullyInitialized && (!isAuthenticated || !isDatabaseAvailable || isInlineUnlockMode);++ useEffect(() => {+ // Detect if the user is coming from the unlock page with mode=inline_unlock.+ const urlParams = new URLSearchParams(window.location.search);+ const isInlineUnlockMode = urlParams.get('mode') === 'inline_unlock';+ setIsInlineUnlockMode(isInlineUnlockMode);++ // Redirect to credentials if fully initialized and doesn't need unlock.+ if (isFullyInitialized && !requireLoginOrUnlock) {+ navigate('/credentials', { replace: true });+ }+ }, [isFullyInitialized, requireLoginOrUnlock, isInlineUnlockMode, navigate]);++ // Show loading state if not fully initialized or when about to redirect to credentials.+ if (!isFullyInitialized || (isFullyInitialized && !requireLoginOrUnlock)) {+ // Global loading spinner will be shown by the parent component.+ return null;+ }++ setIsInitialLoading(false);++ if (!isAuthenticated) {+ return <Login />;+ }++ if (!isDatabaseAvailable) {+ return <Unlock />;+ }++ if (isInlineUnlockMode) {+ return <UnlockSuccess onClose={() => setIsInlineUnlockMode(false)} />;+ }++ return null;+};++export default Home;\ No newline at end of filediff --git a/browser-extension/src/entrypoints/popup/pages/Login.tsx b/browser-extension/src/entrypoints/popup/pages/Login.tsxnew file mode 100644index 000000000..5cf58f536--- /dev/null+++ b/browser-extension/src/entrypoints/popup/pages/Login.tsx@@ -0,0 +1,342 @@+import React, { useEffect, useState } from 'react';+import { useAuth } from '../context/AuthContext';+import { useDb } from '../context/DbContext';+import { useWebApi } from '../context/WebApiContext';+import { Buffer } from 'buffer';+import Button from '../components/Button';+import EncryptionUtility from '../../../utils/EncryptionUtility';+import SrpUtility from '../utils/SrpUtility';+import { useLoading } from '../context/LoadingContext';+import { VaultResponse } from '../../../utils/types/webapi/VaultResponse';+import { LoginResponse } from '../../../utils/types/webapi/Login';+import LoginServerInfo from '../components/LoginServerInfo';+import { AppInfo } from '../../../utils/AppInfo';++/**+ * Login page+ */+const Login: React.FC = () => {+ const authContext = useAuth();+ const dbContext = useDb();+ const [credentials, setCredentials] = useState({+ username: '',+ password: '',+ });+ const { showLoading, hideLoading } = useLoading();+ const [rememberMe, setRememberMe] = useState(true);+ const [loginResponse, setLoginResponse] = useState<LoginResponse | null>(null);+ const [passwordHashString, setPasswordHashString] = useState<string | null>(null);+ const [passwordHashBase64, setPasswordHashBase64] = useState<string | null>(null);+ const [twoFactorRequired, setTwoFactorRequired] = useState(false);+ const [twoFactorCode, setTwoFactorCode] = useState('');+ const [clientUrl, setClientUrl] = useState<string | null>(null);+ const [error, setError] = useState<string | null>(null);+ const webApi = useWebApi();+ const srpUtil = new SrpUtility(webApi);++ useEffect(() => {+ /**+ * Load the client URL from the storage.+ */+ const loadClientUrl = async () : Promise<void> => {+ const settingClientUrl = await storage.getItem('local:clientUrl') as string;+ let clientUrl = AppInfo.DEFAULT_CLIENT_URL;+ if (settingClientUrl && settingClientUrl.length > 0) {+ clientUrl = settingClientUrl;+ }++ setClientUrl(clientUrl);+ };+ loadClientUrl();+ }, []);++ /**+ * Handle submit+ */+ const handleSubmit = async (e: React.FormEvent) : Promise<void> => {+ e.preventDefault();+ setError(null);++ try {+ showLoading();++ // Clear global message if set with every login attempt.+ authContext.clearGlobalMessage();++ // Use the srpUtil instance instead of the imported singleton+ const loginResponse = await srpUtil.initiateLogin(credentials.username);++ // 1. Derive key from password using Argon2id+ const passwordHash = await EncryptionUtility.deriveKeyFromPassword(+ credentials.password,+ loginResponse.salt,+ loginResponse.encryptionType,+ loginResponse.encryptionSettings+ );++ // Convert uint8 array to uppercase hex string which is expected by the server.+ const passwordHashString = Buffer.from(passwordHash).toString('hex').toUpperCase();++ // Get the derived key as base64 string required for decryption.+ const passwordHashBase64 = Buffer.from(passwordHash).toString('base64');++ // 2. Validate login with SRP protocol+ const validationResponse = await srpUtil.validateLogin(+ credentials.username,+ passwordHashString,+ rememberMe,+ loginResponse+ );++ // 3. Handle 2FA if required+ if (validationResponse.requiresTwoFactor) {+ // Store login response as we need it for 2FA validation+ setLoginResponse(loginResponse);+ // Store password hash string as we need it for 2FA validation+ setPasswordHashString(passwordHashString);+ // Store password hash base64 as we need it for decryption+ setPasswordHashBase64(passwordHashBase64);+ setTwoFactorRequired(true);+ // Show app.+ hideLoading();+ return;+ }++ // Check if token was returned.+ if (!validationResponse.token) {+ throw new Error('Login failed -- no token returned');+ }++ // Try to get latest vault manually providing auth token.+ const vaultResponseJson = await webApi.fetch<VaultResponse>('Vault', { method: 'GET', headers: {+ 'Authorization': `Bearer ${validationResponse.token.token}`+ } });++ const vaultError = webApi.validateVaultResponse(vaultResponseJson);+ if (vaultError) {+ setError(vaultError);+ hideLoading();+ return;+ }++ // All is good. Store auth info which is required to make requests to the web API.+ await authContext.setAuthTokens(credentials.username, validationResponse.token.token, validationResponse.token.refreshToken);++ // Initialize the SQLite context with the new vault data.+ await dbContext.initializeDatabase(vaultResponseJson, passwordHashBase64);++ // Set logged in status to true which refreshes the app.+ await authContext.login();++ // Show app.+ hideLoading();+ } catch {+ setError('Could not reach AliasVault server. Please try again later or contact support if the problem persists.');+ hideLoading();+ }+ };++ /**+ * Handle two factor submit.+ */+ const handleTwoFactorSubmit = async (e: React.FormEvent) : Promise<void> => {+ e.preventDefault();+ setError(null);++ if (!passwordHashString || !passwordHashBase64 || !loginResponse) {+ throw new Error('Required login data not found');+ }++ try {+ showLoading();++ const validationResponse = await srpUtil.validateLogin2Fa(+ credentials.username,+ passwordHashString,+ rememberMe,+ loginResponse,+ parseInt(twoFactorCode)+ );++ // Check if token was returned.+ if (!validationResponse.token) {+ throw new Error('Login failed -- no token returned');+ }++ // Try to get latest vault manually providing auth token.+ const vaultResponseJson = await webApi.fetch<VaultResponse>('Vault', { method: 'GET', headers: {+ 'Authorization': `Bearer ${validationResponse.token.token}`+ } });++ const vaultError = webApi.validateVaultResponse(vaultResponseJson);+ if (vaultError) {+ setError(vaultError);+ hideLoading();+ return;+ }++ // All is good. Store auth info which is required to make requests to the web API.+ await authContext.setAuthTokens(credentials.username, validationResponse.token.token, validationResponse.token.refreshToken);++ // Initialize the SQLite context with the new vault data.+ await dbContext.initializeDatabase(vaultResponseJson, passwordHashBase64);++ // Set logged in status to true which refreshes the app.+ await authContext.login();++ // Reset 2FA state and login response as it's no longer needed+ setTwoFactorRequired(false);+ setTwoFactorCode('');+ setPasswordHashString(null);+ setPasswordHashBase64(null);+ setLoginResponse(null);+ hideLoading();+ } catch (err) {+ setError('Invalid authentication code. Please try again.');+ console.error('2FA error:', err);+ hideLoading();+ }+ };++ /**+ * Handle change+ */+ const handleChange = (e: React.ChangeEvent<HTMLInputElement>) : void => {+ const { name, value } = e.target;+ setCredentials(prev => ({+ ...prev,+ [name]: value+ }));+ };++ if (twoFactorRequired) {+ return (+ <div className="max-w-md">+ <form onSubmit={handleTwoFactorSubmit} className="bg-white dark:bg-gray-700 w-full shadow-md rounded px-8 pt-6 pb-8 mb-4">+ {error && (+ <div className="mb-4 text-red-500 dark:text-red-400 text-sm">+ {error}+ </div>+ )}+ <div className="mb-6">+ <p className="text-gray-700 dark:text-gray-200 mb-4">+ Please enter the authentication code from your authenticator app.+ </p>+ <label className="block text-gray-700 dark:text-gray-200 text-sm font-bold mb-2" htmlFor="twoFactorCode">+ Authentication Code+ </label>+ <input+ className="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 dark:text-gray-200 dark:bg-gray-800 dark:border-gray-600 leading-tight focus:outline-none focus:shadow-outline"+ id="twoFactorCode"+ type="text"+ value={twoFactorCode}+ onChange={(e) => setTwoFactorCode(e.target.value)}+ placeholder="Enter 6-digit code"+ required+ />+ </div>+ <div className="flex flex-col w-full space-y-2">+ <Button type="submit">+ Verify+ </Button>+ <Button+ type="button"+ onClick={() => {+ // Reset the form.+ setCredentials({+ username: '',+ password: ''+ });+ setTwoFactorRequired(false);+ setTwoFactorCode('');+ setPasswordHashString(null);+ setPasswordHashBase64(null);+ setLoginResponse(null);+ setError(null);+ }}+ variant="secondary"+ >+ Cancel+ </Button>+ </div>+ <p className="text-xs text-gray-500 dark:text-gray-400 mt-4 text-center">+ Note: if you don't have access to your authenticator device, you can reset your 2FA with a recovery code by logging in via the website.+ </p>+ </form>+ </div>+ );+ }++ return (+ <div className="max-w-md">+ <form onSubmit={handleSubmit} className="bg-white dark:bg-gray-700 w-full shadow-md rounded px-8 pt-6 pb-8 mb-4">+ {error && (+ <div className="mb-4 text-red-500 dark:text-red-400 text-sm">+ {error}+ </div>+ )}+ <h2 className="text-xl font-bold dark:text-gray-200">Log in to AliasVault</h2>+ <LoginServerInfo />+ <div className="mb-4">+ <label className="block text-gray-700 dark:text-gray-200 text-sm font-bold mb-2" htmlFor="username">+ Username or email+ </label>+ <input+ className="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 dark:text-gray-200 dark:bg-gray-800 dark:border-gray-600 leading-tight focus:outline-none focus:shadow-outline"+ id="username"+ type="text"+ name="username"+ placeholder="name / [email protected]"+ value={credentials.username}+ onChange={handleChange}+ required+ />+ </div>+ <div className="mb-4">+ <label className="block text-gray-700 dark:text-gray-200 text-sm font-bold mb-2" htmlFor="password">+ Password+ </label>+ <input+ className="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 dark:text-gray-200 dark:bg-gray-800 dark:border-gray-600 mb-3 leading-tight focus:outline-none focus:shadow-outline"+ id="password"+ type="password"+ name="password"+ placeholder="Enter your password"+ value={credentials.password}+ onChange={handleChange}+ required+ />+ </div>+ <div className="mb-6">+ <label className="flex items-center">+ <input+ type="checkbox"+ checked={rememberMe}+ onChange={(e) => setRememberMe(e.target.checked)}+ className="mr-2"+ />+ <span className="text-sm text-gray-700 dark:text-gray-200">Remember me</span>+ </label>+ </div>+ <div className="flex w-full">+ <Button type="submit">+ Login+ </Button>+ </div>+ </form>+ <div className="text-center text-sm text-gray-600 dark:text-gray-400">+ No account yet?{' '}+ <a+ href={clientUrl ?? ''}+ target="_blank"+ rel="noopener noreferrer"+ className="text-orange-500 hover:text-orange-600 dark:text-orange-400 dark:hover:text-orange-500"+ >+ Create new vault+ </a>+ </div>+ </div>+ );+};++export default Login;diff --git a/browser-extension/src/entrypoints/popup/pages/Logout.tsx b/browser-extension/src/entrypoints/popup/pages/Logout.tsxnew file mode 100644index 000000000..9a2c253f8--- /dev/null+++ b/browser-extension/src/entrypoints/popup/pages/Logout.tsx@@ -0,0 +1,32 @@+import React, { useEffect } from 'react';+import { useNavigate } from 'react-router-dom';+import { useAuth } from '../context/AuthContext';+import { useWebApi } from '../context/WebApiContext';++/**+ * Logout page.+ */+const Logout: React.FC = () => {+ const authContext = useAuth();+ const webApi = useWebApi();+ const navigate = useNavigate();+ /**+ * Logout and navigate to home page.+ */+ useEffect(() => {+ /**+ * Perform logout via async method to ensure logout is completed before navigating to home page.+ */+ const performLogout = async () : Promise<void> => {+ await webApi.logout();+ navigate('/');+ };++ performLogout();+ }, [authContext, navigate, webApi]);++ // Return null since this is just a functional component that handles logout.+ return null;+};++export default Logout;diff --git a/browser-extension/src/entrypoints/popup/pages/Settings.tsx b/browser-extension/src/entrypoints/popup/pages/Settings.tsxnew file mode 100644index 000000000..87c9882b7--- /dev/null+++ b/browser-extension/src/entrypoints/popup/pages/Settings.tsx@@ -0,0 +1,189 @@+import React, { useEffect, useState, useCallback } from 'react';+import { DISABLED_SITES_KEY, GLOBAL_POPUP_ENABLED_KEY } from '../../contentScript/Popup';+import { AppInfo } from '../../../utils/AppInfo';++/**+ * Popup settings type.+ */+type PopupSettings = {+ disabledUrls: string[];+ currentUrl: string;+ isEnabled: boolean;+ isGloballyEnabled: boolean;+}++/**+ * Settings page component.+ */+const Settings: React.FC = () => {+ const [settings, setSettings] = useState<PopupSettings>({+ disabledUrls: [],+ currentUrl: '',+ isEnabled: true,+ isGloballyEnabled: true+ });++ /**+ * Get current tab in browser.+ */+ const getCurrentTab = async () : Promise<chrome.tabs.Tab> => {+ const queryOptions = { active: true, currentWindow: true };+ const [tab] = await chrome.tabs.query(queryOptions);+ return tab;+ };++ /**+ * Load settings.+ */+ const loadSettings = useCallback(async () : Promise<void> => {+ const tab = await getCurrentTab();+ const currentUrl = new URL(tab.url ?? '').hostname;++ // Load settings from chrome.storage.local+ chrome.storage.local.get([DISABLED_SITES_KEY, GLOBAL_POPUP_ENABLED_KEY], (result) => {+ const disabledUrls = result[DISABLED_SITES_KEY] ?? [];+ const isGloballyEnabled = result[GLOBAL_POPUP_ENABLED_KEY] !== false; // Default to true if not set++ setSettings({+ disabledUrls,+ currentUrl,+ isEnabled: !disabledUrls.includes(currentUrl),+ isGloballyEnabled+ });+ });+ }, []);++ useEffect(() => {+ loadSettings();+ }, [loadSettings]);++ /**+ * Toggle current site.+ */+ const toggleCurrentSite = async () : Promise<void> => {+ const { currentUrl, disabledUrls, isEnabled } = settings;+ let newDisabledUrls = [...disabledUrls];++ if (isEnabled) {+ newDisabledUrls.push(currentUrl);+ } else {+ newDisabledUrls = newDisabledUrls.filter(url => url !== currentUrl);+ }++ const storageData = { [DISABLED_SITES_KEY]: newDisabledUrls };+ await chrome.storage.local.set(storageData);++ setSettings(prev => ({+ ...prev,+ disabledUrls: newDisabledUrls,+ isEnabled: !isEnabled+ }));+ };++ /**+ * Reset settings.+ */+ const resetSettings = async () : Promise<void> => {+ const storageData = { [DISABLED_SITES_KEY]: [] };+ await chrome.storage.local.set(storageData);++ setSettings(prev => ({+ ...prev,+ disabledUrls: [],+ isEnabled: true+ }));+ };++ /**+ * Toggle global popup.+ */+ const toggleGlobalPopup = async () : Promise<void> => {+ const newGloballyEnabled = !settings.isGloballyEnabled;++ await chrome.storage.local.set({+ [GLOBAL_POPUP_ENABLED_KEY]: newGloballyEnabled+ });++ setSettings(prev => ({+ ...prev,+ isGloballyEnabled: newGloballyEnabled+ }));+ };++ return (+ <div className="space-y-6">+ <div className="flex justify-between items-center mb-4">+ <h2 className="text-gray-900 dark:text-white text-xl">Settings</h2>+ </div>++ {/* Global Settings Section */}+ <section>+ <h3 className="text-md font-semibold text-gray-900 dark:text-white mb-3">Global Settings</h3>+ <div className="bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700">+ <div className="p-4">+ <div className="flex items-center justify-between">+ <div>+ <p className="text-sm font-medium text-gray-900 dark:text-white">Automatically open popup</p>+ <p className={`text-sm mt-1 ${settings.isGloballyEnabled ? 'text-gray-600 dark:text-gray-400' : 'text-red-600 dark:text-red-400'}`}>+ {settings.isGloballyEnabled ? 'Active on all sites (unless disabled below)' : 'Disabled on all sites'}+ </p>+ </div>+ <button+ onClick={toggleGlobalPopup}+ className={`px-4 py-2 rounded-md transition-colors ${+ settings.isGloballyEnabled+ ? 'bg-red-500 hover:bg-red-600 text-white'+ : 'bg-green-500 hover:bg-green-600 text-white'+ }`}+ >+ {settings.isGloballyEnabled ? 'Disable' : 'Enable'}+ </button>+ </div>+ </div>+ </div>+ </section>++ {/* Site-Specific Settings Section */}+ <section>+ <h3 className="text-md font-semibold text-gray-900 dark:text-white mb-3">Site-Specific Settings</h3>+ <div className="bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700">+ <div className="p-4">+ <div className="flex items-center justify-between">+ <div>+ <p className="text-sm font-medium text-gray-900 dark:text-white">Open popup on: {settings.currentUrl}</p>+ <p className={`text-sm mt-1 ${settings.isEnabled ? 'text-gray-600 dark:text-gray-400' : 'text-red-600 dark:text-red-400'}`}>+ {settings.isEnabled ? 'Popup is active' : 'Popup is disabled'}+ </p>+ </div>+ <button+ onClick={toggleCurrentSite}+ className={`px-4 py-2 rounded-md transition-colors ${+ settings.isEnabled+ ? 'bg-red-500 hover:bg-red-600 text-white'+ : 'bg-green-500 hover:bg-green-600 text-white'+ }`}+ >+ {settings.isEnabled ? 'Disable' : 'Enable'}+ </button>+ </div>++ <div className="mt-4">+ <button+ onClick={resetSettings}+ className="w-full px-4 py-2 bg-gray-100 hover:bg-gray-200 dark:bg-gray-700 dark:hover:bg-gray-600 rounded-md text-gray-700 dark:text-gray-300 transition-colors text-sm"+ >+ Reset all site-specific settings+ </button>+ </div>+ </div>+ </div>+ </section>++ <div className="text-center text-gray-400 dark:text-gray-600">+ Version: {AppInfo.VERSION}+ </div>+ </div>+ );+};++export default Settings;\ No newline at end of filediff --git a/browser-extension/src/entrypoints/popup/pages/Unlock.tsx b/browser-extension/src/entrypoints/popup/pages/Unlock.tsxnew file mode 100644index 000000000..73c80080d--- /dev/null+++ b/browser-extension/src/entrypoints/popup/pages/Unlock.tsx@@ -0,0 +1,126 @@+import React, { useEffect, useState } from 'react';+import { useDb } from '../context/DbContext';+import { useAuth } from '../context/AuthContext';+import { useWebApi } from '../context/WebApiContext';+import { Buffer } from 'buffer';+import Button from '../components/Button';+import EncryptionUtility from '../../../utils/EncryptionUtility';+import SrpUtility from '../utils/SrpUtility';+import { VaultResponse } from '../../../utils/types/webapi/VaultResponse';+import { useLoading } from '../context/LoadingContext';++/**+ * Unlock page+ */+const Unlock: React.FC = () => {+ const authContext = useAuth();+ const dbContext = useDb();++ const webApi = useWebApi();+ const srpUtil = new SrpUtility(webApi);++ const [password, setPassword] = useState('');+ const [error, setError] = useState<string | null>(null);+ const { showLoading, hideLoading } = useLoading();++ useEffect(() => {+ /**+ * Make status call to API which acts as health check.+ */+ const checkStatus = async () : Promise<void> => {+ const statusResponse = await webApi.getStatus();+ const statusError = webApi.validateStatusResponse(statusResponse);+ if (statusError !== null) {+ await webApi.logout(statusError);+ }+ };++ checkStatus();+ }, [webApi, authContext]);++ /**+ * Handle submit+ */+ const handleSubmit = async (e: React.FormEvent) : Promise<void> => {+ e.preventDefault();+ setError(null);+ showLoading();++ try {+ // 1. Initiate login to get salt and server ephemeral+ const loginResponse = await srpUtil.initiateLogin(authContext.username!);++ // Derive key from password using user's encryption settings+ const passwordHash = await EncryptionUtility.deriveKeyFromPassword(+ password,+ loginResponse.salt,+ loginResponse.encryptionType,+ loginResponse.encryptionSettings+ );++ // Make API call to get latest vault+ const vaultResponseJson = await webApi.get<VaultResponse>('Vault');++ const vaultError = webApi.validateVaultResponse(vaultResponseJson);+ if (vaultError) {+ setError(vaultError);+ hideLoading();+ return;+ }++ // Get the derived key as base64 string required for decryption.+ const passwordHashBase64 = Buffer.from(passwordHash).toString('base64');++ // Initialize the SQLite context with the new vault data.+ await dbContext.initializeDatabase(vaultResponseJson, passwordHashBase64);+ } catch (err) {+ setError('Failed to unlock vault. Please check your password and try again.');+ console.error('Unlock error:', err);+ } finally {+ hideLoading();+ }+ };++ return (+ <div className="max-w-md">+ <form onSubmit={handleSubmit} className="bg-white dark:bg-gray-700 w-full shadow-md rounded px-8 pt-6 pb-8 mb-4">+ <h2 className="text-2xl font-bold text-gray-900 dark:text-white break-all overflow-hidden mb-4">{authContext.username}</h2>++ <p className="text-base text-gray-500 dark:text-gray-200 mb-6">+ Enter your master password to unlock your vault.+ </p>++ {error && (+ <div className="mb-4 text-red-500 dark:text-red-400 text-sm">+ {error}+ </div>+ )}++ <div className="mb-6">+ <label className="block text-gray-700 dark:text-gray-200 text-sm font-bold mb-2" htmlFor="password">+ Password+ </label>+ <input+ className="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 dark:text-gray-200 dark:bg-gray-800 dark:border-gray-600 mb-3 leading-tight focus:outline-none focus:shadow-outline"+ id="password"+ type="password"+ value={password}+ onChange={(e) => setPassword(e.target.value)}+ placeholder="Enter your password"+ required+ />+ </div>++ <Button type="submit">+ Unlock+ </Button>++ <div className="text-sm font-medium text-gray-500 dark:text-gray-200 mt-6">+ Switch accounts? <a href="/logout" className="text-primary-700 hover:underline dark:text-primary-500">Log out</a>+ </div>+ </form>+ </div>+ );+};++export default Unlock;diff --git a/browser-extension/src/entrypoints/popup/pages/UnlockSuccess.tsx b/browser-extension/src/entrypoints/popup/pages/UnlockSuccess.tsxnew file mode 100644index 000000000..de751f12f--- /dev/null+++ b/browser-extension/src/entrypoints/popup/pages/UnlockSuccess.tsx@@ -0,0 +1,45 @@+import React from 'react';++/**+ * Unlock success component shown when the vault is successfully unlocked in a separate popup+ * asking the user if they want to close the popup.+ */+const UnlockSuccess: React.FC<{+ onClose: () => void;+}> = ({ onClose }) => (+ <div className="flex flex-col items-center justify-center p-6 text-center">+ <div className="mb-4 text-green-600 dark:text-green-400">+ <svg className="w-12 h-12 mx-auto" fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" />+ </svg>+ </div>+ <h2 className="text-xl font-semibold mb-4 text-gray-900 dark:text-white">+ Your vault is successfully unlocked+ </h2>+ <p className="mb-6 text-gray-600 dark:text-gray-400">+ You can now use autofill in login forms in your browser.+ </p>+ <div className="space-y-3 w-full">+ <button+ onClick={() => window.close()}+ className="w-full px-4 py-2 text-white bg-primary-600 rounded hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2"+ >+ Close this popup+ </button>+ <button+ onClick={() => {+ // Remove mode=inline from URL before closing+ const url = new URL(window.location.href);+ url.searchParams.delete('mode');+ window.history.replaceState({}, '', url);+ onClose();+ }}+ className="w-full px-4 py-2 text-gray-700 bg-gray-100 rounded hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-600"+ >+ Browse vault contents+ </button>+ </div>+ </div>+);++export default UnlockSuccess;diff --git a/browser-extension/src/entrypoints/popup/style.css b/browser-extension/src/entrypoints/popup/style.cssnew file mode 100644index 000000000..e69de29bbdiff --git a/browser-extension/src/entrypoints/popup/utils/ClipboardCopyService.tsx b/browser-extension/src/entrypoints/popup/utils/ClipboardCopyService.tsxnew file mode 100644index 000000000..322dd05be--- /dev/null+++ b/browser-extension/src/entrypoints/popup/utils/ClipboardCopyService.tsx@@ -0,0 +1,39 @@+/**+ * Clipboard copy service that keeps track of the last copied ID so it can be shown in the UI.+ */+export class ClipboardCopyService {+ private currentCopiedId: string = '';+ private onCopyCallbacks: ((id: string) => void)[] = [];++ /**+ * Set the copied ID.+ */+ public setCopied(id: string) : void {+ this.currentCopiedId = id;+ this.notifySubscribers();+ }++ /**+ * Get the copied ID.+ */+ public getCopiedId(): string {+ return this.currentCopiedId;+ }++ /**+ * Subscribe to clipboard copy events.+ */+ public subscribe(callback: (id: string) => void) {+ this.onCopyCallbacks.push(callback);+ return () : void => {+ this.onCopyCallbacks = this.onCopyCallbacks.filter(cb => cb !== callback);+ };+ }++ /**+ * Notify subscribers.+ */+ private notifySubscribers() : void {+ this.onCopyCallbacks.forEach(callback => callback(this.currentCopiedId));+ }+}\ No newline at end of filediff --git a/browser-extension/src/entrypoints/popup/utils/ConversionUtility.tsx b/browser-extension/src/entrypoints/popup/utils/ConversionUtility.tsxnew file mode 100644index 000000000..16480816b--- /dev/null+++ b/browser-extension/src/entrypoints/popup/utils/ConversionUtility.tsx@@ -0,0 +1,54 @@+/**+ * Utility class for conversion operations.+ */+class ConversionUtility {+ /**+ * Convert all anchor tags to open in a new tab.+ * @param html HTML input.+ * @returns HTML with all anchor tags converted to open in a new tab when clicked on.+ *+ * Note: same implementation exists in c-sharp version in AliasVault.Shared.Utilities.ConversionUtility.cs+ */+ public convertAnchorTagsToOpenInNewTab(html: string): string {+ try {+ // Create a DOM parser+ const parser = new DOMParser();+ const doc = parser.parseFromString(html, 'text/html');++ // Select all anchor tags with href attribute+ const anchors = doc.querySelectorAll('a[href]');++ if (anchors.length > 0) {+ anchors.forEach((anchor: Element) => {+ // Handle target attribute+ if (!anchor.hasAttribute('target') || anchor.getAttribute('target') !== '_blank') {+ anchor.setAttribute('target', '_blank');+ }++ // Handle rel attribute for security+ if (!anchor.hasAttribute('rel')) {+ anchor.setAttribute('rel', 'noopener noreferrer');+ } else {+ const relValue = anchor.getAttribute('rel') ?? '';+ const relValues = new Set(relValue.split(' ').filter(val => val.trim() !== ''));++ relValues.add('noopener');+ relValues.add('noreferrer');++ anchor.setAttribute('rel', Array.from(relValues).join(' '));+ }+ });+ }++ return doc.documentElement.outerHTML;+ } catch (ex) {+ // Log the exception+ console.error(`Error in convertAnchorTagsToOpenInNewTab: ${ex instanceof Error ? ex.message : String(ex)}`);++ // Return the original HTML if an error occurs+ return html;+ }+ }+}++export default new ConversionUtility();diff --git a/browser-extension/src/entrypoints/popup/utils/SrpUtility.tsx b/browser-extension/src/entrypoints/popup/utils/SrpUtility.tsxnew file mode 100644index 000000000..e903d5690--- /dev/null+++ b/browser-extension/src/entrypoints/popup/utils/SrpUtility.tsx@@ -0,0 +1,97 @@+import srp from 'secure-remote-password/client'+import { WebApiService } from '../../../utils/WebApiService';+import { LoginRequest, LoginResponse } from '../../../utils/types/webapi/Login';+import { ValidateLoginRequest, ValidateLoginRequest2Fa, ValidateLoginResponse } from '../../../utils/types/webapi/ValidateLogin';++/**+ * Utility class for SRP authentication operations.+ */+class SrpUtility {+ private readonly webApiService: WebApiService;++ /**+ * Constructor for the SrpUtility class.+ *+ * @param {WebApiService} webApiService - The WebApiService instance.+ */+ public constructor(webApiService: WebApiService) {+ this.webApiService = webApiService;+ }++ /**+ * Initiate login with server.+ */+ public async initiateLogin(username: string): Promise<LoginResponse> {+ return this.webApiService.post<LoginRequest, LoginResponse>('Auth/login', {+ username: username.toLowerCase().trim()+ });+ }++ /**+ * Validate login with server using locally generated ephemeral and session proof.+ */+ public async validateLogin(+ username: string,+ passwordHashString: string,+ rememberMe: boolean,+ loginResponse: LoginResponse+ ): Promise<ValidateLoginResponse> {+ // Generate client ephemeral+ const clientEphemeral = srp.generateEphemeral()++ // Derive private key+ const privateKey = srp.derivePrivateKey(loginResponse.salt, username, passwordHashString);++ // Derive session+ const sessionProof = srp.deriveSession(+ clientEphemeral.secret,+ loginResponse.serverEphemeral,+ loginResponse.salt,+ username,+ privateKey+ );++ return this.webApiService.post<ValidateLoginRequest, ValidateLoginResponse>('Auth/validate', {+ username: username.toLowerCase().trim(),+ rememberMe: rememberMe,+ clientPublicEphemeral: clientEphemeral.public,+ clientSessionProof: sessionProof.proof,+ });+ }++ /**+ * Validate login with 2FA with server using locally generated ephemeral and session proof.+ */+ public async validateLogin2Fa(+ username: string,+ passwordHashString: string,+ rememberMe: boolean,+ loginResponse: LoginResponse,+ code2Fa: number+ ): Promise<ValidateLoginResponse> {+ // Generate client ephemeral+ const clientEphemeral = srp.generateEphemeral()++ // Derive private key+ const privateKey = srp.derivePrivateKey(loginResponse.salt, username, passwordHashString);++ // Derive session+ const sessionProof = srp.deriveSession(+ clientEphemeral.secret,+ loginResponse.serverEphemeral,+ loginResponse.salt,+ username,+ privateKey+ );++ return this.webApiService.post<ValidateLoginRequest2Fa, ValidateLoginResponse>('Auth/validate-2fa', {+ username: username.toLowerCase().trim(),+ rememberMe: rememberMe,+ clientPublicEphemeral: clientEphemeral.public,+ clientSessionProof: sessionProof.proof,+ code2Fa: code2Fa,+ });+ }+}++export default SrpUtility;diff --git a/browser-extension/src/hooks/useMinDurationLoading.ts b/browser-extension/src/hooks/useMinDurationLoading.tsnew file mode 100644index 000000000..6f6ee9f41--- /dev/null+++ b/browser-extension/src/hooks/useMinDurationLoading.ts@@ -0,0 +1,59 @@+import { useState, useEffect, useCallback, useRef } from 'react';++/**+ * Hook that ensures a loading state persists for a minimum duration before being set to false.+ * This improves the user experience by preventing the loading state from flickering.+ *+ * @param initialState - Initial loading state+ * @param minDuration - Minimum duration in milliseconds+ * @returns [isLoading, setIsLoading] - Loading state and setter+ */+export const useMinDurationLoading = (+ initialState: boolean = false,+ minDuration: number = 300+): [boolean, (value: boolean) => void] => {+ const [isLoading, setIsLoading] = useState(initialState);+ const timeoutRef = useRef<NodeJS.Timeout | null>(null);+ const startTimeRef = useRef<number | null>(null);++ const setLoadingState = useCallback((value: boolean) => {+ if (value) {+ // Starting to load+ setIsLoading(true);+ startTimeRef.current = Date.now();+ } else {+ // Finishing loading - ensure minimum duration+ const elapsedTime = startTimeRef.current ? Date.now() - startTimeRef.current : 0;+ const remainingTime = Math.max(0, minDuration - elapsedTime);++ if (remainingTime === 0) {+ setIsLoading(false);+ } else {+ if (timeoutRef.current) {+ clearTimeout(timeoutRef.current);+ }+ timeoutRef.current = setTimeout(() => {+ setIsLoading(false);+ }, remainingTime);+ }+ }+ }, [minDuration]);++ // Handle initial loading state only once+ useEffect(() => {+ if (initialState) {+ setIsLoading(true);+ startTimeRef.current = Date.now();+ }+ }, [initialState, setIsLoading]);++ useEffect(() => {+ return (): void => {+ if (timeoutRef.current) {+ clearTimeout(timeoutRef.current);+ }+ };+ }, []);++ return [isLoading, setLoadingState];+};\ No newline at end of filediff --git a/browser-extension/src/public/assets/images/avatar.webp b/browser-extension/src/public/assets/images/avatar.webpnew file mode 100644index 000000000..d52d725f1Binary files /dev/null and b/browser-extension/src/public/assets/images/avatar.webp differdiff --git a/browser-extension/src/public/assets/images/logo.svg b/browser-extension/src/public/assets/images/logo.svgnew file mode 100644index 000000000..5876600fe--- /dev/null+++ b/browser-extension/src/public/assets/images/logo.svg@@ -0,0 +1,8 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg enable-background="new 0 0 500 500" version="1.1" viewBox="0 0 500 500" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">+<path d="m459.87 294.95c0.016205 5.4005 0.03241 10.801-0.35022 16.873-1.111 6.3392-1.1941 12.173-2.6351 17.649-10.922 41.508-36.731 69.481-77.351 83.408-7.2157 2.4739-14.972 3.3702-22.479 4.995-23.629 0.042205-47.257 0.11453-70.886 0.12027-46.762 0.011322-93.523-0.01416-140.95-0.43411-8.59-2.0024-16.766-2.8352-24.398-5.3326-21.595-7.0666-39.523-19.656-53.708-37.552-10.227-12.903-17.579-27.17-21.28-43.221-1.475-6.3967-2.4711-12.904-3.6852-19.361-0.051849-5.747-0.1037-11.494 0.26915-17.886 4.159-42.973 27.68-71.638 63.562-92.153 0-0.70761-0.001961-1.6988 3.12e-4 -2.69 0.022484-9.8293-1.3071-19.894 0.35664-29.438 3.2391-18.579 11.08-35.272 23.763-49.773 12.098-13.832 26.457-23.989 43.609-30.029 7.813-2.7512 16.14-4.0417 24.234-5.9948 7.392-0.025734 14.784-0.05146 22.835 0.32253 4.1959 0.95392 7.7946 1.2538 11.258 2.1053 17.16 4.2192 32.287 12.176 45.469 24.104 2.2558 2.0411 4.372 6.6241 9.621 3.868 16.839-8.8419 34.718-11.597 53.603-8.594 16.791 2.6699 31.602 9.4308 44.236 20.636 11.531 10.227 19.84 22.841 25.393 37.236 6.3436 16.445 10.389 33.163 6.0798 49.389 7.9587 8.9321 15.807 16.704 22.421 25.414 9.162 12.065 15.33 25.746 18.144 40.776 0.97046 5.1848 1.9111 10.375 2.8654 15.563m-71.597 71.012c5.5615-5.2284 12.002-9.7986 16.508-15.817 10.474-13.992 14.333-29.916 11.288-47.446-2.2496-12.95-8.1973-24.076-17.243-33.063-12.746-12.663-28.865-18.614-46.786-18.569-69.912 0.17712-139.82 0.56831-209.74 0.96176-15.922 0.089599-29.168 7.4209-39.685 18.296-14.45 14.944-20.408 33.343-16.655 54.368 2.2763 12.754 8.2167 23.748 17.158 32.66 13.299 13.255 30.097 18.653 48.728 18.651 59.321-0.005188 118.64 0.042358 177.96-0.046601 9.5912-0.014374 19.181-0.86588 28.773-0.88855 10.649-0.025146 19.978-3.825 29.687-9.1074z" fill="#EEC170"/>+<path d="m162.77 293c15.654 4.3883 20.627 22.967 10.304 34.98-5.3104 6.1795-14.817 8.3208-24.278 5.0472-7.0723-2.4471-12.332-10.362-12.876-17.933-1.0451-14.542 11.089-23.176 21.705-23.046 1.5794 0.019287 3.1517 0.61566 5.1461 0.95184z" fill="#EEC170"/>+<path d="m227.18 293.64c7.8499 2.3973 11.938 8.2143 13.524 15.077 1.8591 8.0439-0.44817 15.706-7.1588 21.121-6.7633 5.4572-14.417 6.8794-22.578 3.1483-8.2972-3.7933-12.836-10.849-12.736-19.438 0.1687-14.497 14.13-25.368 28.948-19.908z" fill="#EEC170"/>+<path d="m261.57 319.07c-2.495-14.418 4.6853-22.603 14.596-26.108 9.8945-3.4995 23.181 3.4303 26.267 13.779 4.6504 15.591-7.1651 29.064-21.665 28.161-8.5254-0.53088-17.202-6.5094-19.198-15.831z" fill="#EEC170"/>+<path d="m336.91 333.41c-9.0175-4.2491-15.337-14.349-13.829-21.682 3.0825-14.989 13.341-20.304 23.018-19.585 10.653 0.79141 17.93 7.407 19.765 17.547 1.9588 10.824-4.1171 19.939-13.494 23.703-5.272 2.1162-10.091 1.5086-15.46 0.017883z" fill="#EEC170"/>+</svg>diff --git a/browser-extension/src/public/assets/images/service-placeholder.webp b/browser-extension/src/public/assets/images/service-placeholder.webpnew file mode 100644index 000000000..85460a537Binary files /dev/null and b/browser-extension/src/public/assets/images/service-placeholder.webp differdiff --git a/browser-extension/src/public/icon/128.png b/browser-extension/src/public/icon/128.pngnew file mode 100644index 000000000..b23a87716Binary files /dev/null and b/browser-extension/src/public/icon/128.png differdiff --git a/browser-extension/src/public/icon/16.png b/browser-extension/src/public/icon/16.pngnew file mode 100644index 000000000..4d1313369Binary files /dev/null and b/browser-extension/src/public/icon/16.png differdiff --git a/browser-extension/src/public/icon/192.png b/browser-extension/src/public/icon/192.pngnew file mode 100644index 000000000..5d57b8e67Binary files /dev/null and b/browser-extension/src/public/icon/192.png differdiff --git a/browser-extension/src/public/icon/32.png b/browser-extension/src/public/icon/32.pngnew file mode 100644index 000000000..33e4db954Binary files /dev/null and b/browser-extension/src/public/icon/32.png differdiff --git a/browser-extension/src/public/icon/48.png b/browser-extension/src/public/icon/48.pngnew file mode 100644index 000000000..945fc66a2Binary files /dev/null and b/browser-extension/src/public/icon/48.png differdiff --git a/browser-extension/src/public/icon/512.png b/browser-extension/src/public/icon/512.pngnew file mode 100644index 000000000..a542ffc61Binary files /dev/null and b/browser-extension/src/public/icon/512.png differdiff --git a/browser-extension/src/utils/AppInfo.ts b/browser-extension/src/utils/AppInfo.tsnew file mode 100644index 000000000..682142e7a--- /dev/null+++ b/browser-extension/src/utils/AppInfo.ts@@ -0,0 +1,103 @@+/**+ * AppInfo class which contains information about the application version+ * and default server URLs.+ */+export class AppInfo {+ /**+ * The current extension version. This should be updated with each release of the extension.+ */+ public static readonly VERSION = '0.12.3';++ /**+ * The minimum supported AliasVault server (API) version. If the server version is below this, the+ * client will throw an error stating that the server should be updated.+ */+ public static readonly MIN_SERVER_VERSION = '0.12.0-dev';++ /**+ * The minimum supported AliasVault client vault version.+ */+ public static readonly MIN_VAULT_VERSION = '1.4.1';++ /*+ * The client name to use in the X-AliasVault-Client header.+ * TODO: make this configurable when adding other browser support (e.g. Firefox).+ */+ public static readonly CLIENT_NAME = 'chrome';++ /**+ * The default AliasVault client URL.+ */+ public static readonly DEFAULT_CLIENT_URL = 'https://app.aliasvault.net';++ /**+ * The default AliasVault web API URL.+ */+ public static readonly DEFAULT_API_URL = 'https://app.aliasvault.net/api';++ /**+ * Prevent instantiation of this utility class+ */+ private constructor() {}++ /**+ * Checks if a given vault version is supported+ * @param vaultVersion The version to check+ * @returns boolean indicating if the version is supported+ */+ public static isVaultVersionSupported(vaultVersion: string): boolean {+ return this.versionGreaterThanOrEqualTo(vaultVersion, this.MIN_VAULT_VERSION);+ }++ /**+ * Checks if a given server version is supported+ * @param serverVersion The version to check+ * @returns boolean indicating if the version is supported+ */+ public static isServerVersionSupported(serverVersion: string): boolean {+ return this.versionGreaterThanOrEqualTo(serverVersion, this.MIN_SERVER_VERSION);+ }++ /**+ * Checks if version1 is greater than or equal to version2, following SemVer rules.+ * Pre-release versions (e.g., -alpha, -beta) are considered lower than release versions.+ * @param version1 First version string (e.g., "1.2.3" or "1.2.3-beta")+ * @param version2 Second version string (e.g., "1.2.0" or "1.2.0-alpha")+ * @returns true if version1 >= version2, false otherwise+ */+ public static versionGreaterThanOrEqualTo(version1: string, version2: string): boolean {+ // Split versions into core and pre-release parts+ const [core1, preRelease1] = version1.split('-');+ const [core2, preRelease2] = version2.split('-');++ const parts1 = core1.split('.').map(Number);+ const parts2 = core2.split('.').map(Number);++ // Compare core versions first+ for (let i = 0; i < Math.max(parts1.length, parts2.length); i++) {+ const part1 = parts1[i] ?? 0;+ const part2 = parts2[i] ?? 0;++ if (part1 > part2) {+ return true;+ }+ if (part1 < part2) {+ return false;+ }+ }++ // If core versions are equal, check pre-release versions.+ if (!preRelease1 && preRelease2) {+ return true;+ }+ if (preRelease1 && !preRelease2) {+ return false;+ }+ if (!preRelease1 && !preRelease2) {+ return true;+ }++ // Both have pre-release versions, compare them lexically+ return preRelease1 >= preRelease2;+ }+}diff --git a/browser-extension/src/utils/EncryptionUtility.tsx b/browser-extension/src/utils/EncryptionUtility.tsxnew file mode 100644index 000000000..5cbf40848--- /dev/null+++ b/browser-extension/src/utils/EncryptionUtility.tsx@@ -0,0 +1,316 @@+import argon2 from 'argon2-browser/dist/argon2-bundled.min.js';+import { Email } from './types/webapi/Email';+import { EncryptionKey } from './types/EncryptionKey';+import { MailboxEmail } from './types/webapi/MailboxEmail';+import { Buffer } from 'buffer';++/**+ * Utility class for encryption operations including:+ * - Argon2id key derivation+ * - AES-GCM symmetric encryption/decryption+ * - RSA-OAEP asymmetric encryption/decryption+ */+class EncryptionUtility {+ /**+ * Derives a key from a password using Argon2id+ */+ public static async deriveKeyFromPassword(+ password: string,+ salt: string,+ encryptionType: string = 'Argon2id',+ encryptionSettings: string = '{"Iterations":1,"MemorySize":1024,"DegreeOfParallelism":4}'+ ): Promise<Uint8Array> {+ const settings = JSON.parse(encryptionSettings);++ try {+ if (encryptionType !== 'Argon2Id') {+ throw new Error('Unsupported encryption type');+ }++ const hash = await argon2.hash({+ pass: password,+ salt: salt,+ time: settings.Iterations,+ mem: settings.MemorySize,+ parallelism: settings.DegreeOfParallelism,+ hashLen: 32,+ type: 2, // 0 = Argon2d, 1 = Argon2i, 2 = Argon2id+ });++ // Return bytes+ return hash.hash;+ } catch (error) {+ console.error('Argon2 hashing failed:', error);+ throw error;+ }+ }++ /**+ * Encrypts data using AES-GCM symmetric encryption+ */+ public static async symmetricEncrypt(plaintext: string, base64Key: string): Promise<string> {+ if (!plaintext) {+ return plaintext;+ }++ const key = await crypto.subtle.importKey(+ "raw",+ Uint8Array.from(atob(base64Key), c => c.charCodeAt(0)),+ {+ name: "AES-GCM",+ length: 256,+ },+ false,+ ["encrypt"]+ );++ const iv = crypto.getRandomValues(new Uint8Array(12));+ const encoder = new TextEncoder();+ const encoded = encoder.encode(plaintext);++ const ciphertext = await crypto.subtle.encrypt(+ { name: "AES-GCM", iv: iv },+ key,+ encoded+ );++ const combined = new Uint8Array(iv.length + ciphertext.byteLength);+ combined.set(iv, 0);+ combined.set(new Uint8Array(ciphertext), iv.length);++ return btoa(+ Array.from(combined)+ .map(byte => String.fromCharCode(byte))+ .join('')+ );+ }++ /**+ * Decrypts data using AES-GCM symmetric encryption+ */+ public static async symmetricDecrypt(base64Ciphertext: string, base64Key: string): Promise<string> {+ if (!base64Ciphertext) {+ return base64Ciphertext;+ }++ const key = await crypto.subtle.importKey(+ "raw",+ Uint8Array.from(atob(base64Key), c => c.charCodeAt(0)),+ {+ name: "AES-GCM",+ length: 256,+ },+ false,+ ["decrypt"]+ );++ const ivAndCiphertext = Uint8Array.from(atob(base64Ciphertext), c => c.charCodeAt(0));+ const iv = ivAndCiphertext.slice(0, 12);+ const ciphertext = ivAndCiphertext.slice(12);++ const decrypted = await crypto.subtle.decrypt(+ { name: "AES-GCM", iv: iv },+ key,+ ciphertext+ );++ const decoder = new TextDecoder();+ return decoder.decode(decrypted);+ }++ /**+ * Generates a new RSA key pair for asymmetric encryption+ */+ public static async generateRsaKeyPair(): Promise<{ publicKey: string, privateKey: string }> {+ const keyPair = await crypto.subtle.generateKey(+ {+ name: "RSA-OAEP",+ modulusLength: 2048,+ publicExponent: new Uint8Array([1, 0, 1]),+ hash: "SHA-256",+ },+ true,+ ["encrypt", "decrypt"]+ );++ const publicKey = await crypto.subtle.exportKey("jwk", keyPair.publicKey);+ const privateKey = await crypto.subtle.exportKey("jwk", keyPair.privateKey);++ return {+ publicKey: JSON.stringify(publicKey),+ privateKey: JSON.stringify(privateKey)+ };+ }++ /**+ * Encrypts data using RSA-OAEP asymmetric encryption with a public key+ */+ public static async encryptWithPublicKey(plaintext: string, publicKey: string): Promise<string> {+ const publicKeyObj = await crypto.subtle.importKey(+ "jwk",+ JSON.parse(publicKey),+ {+ name: "RSA-OAEP",+ hash: "SHA-256",+ },+ false,+ ["encrypt"]+ );++ const encodedPlaintext = new TextEncoder().encode(plaintext);+ const cipherBuffer = await crypto.subtle.encrypt(+ {+ name: "RSA-OAEP"+ },+ publicKeyObj,+ encodedPlaintext+ );++ return btoa(String.fromCharCode.apply(null, Array.from(new Uint8Array(cipherBuffer))));+ }++ /**+ * Decrypts data using RSA-OAEP asymmetric encryption with a private key+ */+ public static async decryptWithPrivateKey(ciphertext: string, privateKey: string): Promise<Uint8Array> {+ try {+ const privateKeyObj = await crypto.subtle.importKey(+ "jwk",+ JSON.parse(privateKey),+ {+ name: "RSA-OAEP",+ hash: "SHA-256",+ },+ true,+ ["decrypt"]+ );++ const cipherBuffer = Uint8Array.from(atob(ciphertext), c => c.charCodeAt(0));+ const plaintextBuffer = await crypto.subtle.decrypt(+ {+ name: "RSA-OAEP",+ hash: "SHA-256",+ },+ privateKeyObj,+ cipherBuffer+ );++ return new Uint8Array(plaintextBuffer);+ } catch (error) {+ console.error('RSA decryption failed:', error);+ throw new Error(`Failed to decrypt: ${error.message}`);+ }+ }++ /**+ * Decrypts an individual email based on the provided public/private key pairs.+ */+ public static async decryptEmail(+ email: Email,+ encryptionKeys: EncryptionKey[]+ ): Promise<Email> {+ try {+ const encryptionKey = encryptionKeys.find(key => key.PublicKey === email.encryptionKey);++ if (!encryptionKey) {+ throw new Error('Encryption key not found');+ }++ // Decrypt symmetric key with asymmetric private key+ const symmetricKey = await EncryptionUtility.decryptWithPrivateKey(+ email.encryptedSymmetricKey,+ encryptionKey.PrivateKey+ );+ const symmetricKeyBase64 = Buffer.from(symmetricKey).toString('base64');++ // Create a new object to avoid mutating the original+ const decryptedEmail = { ...email };++ // Decrypt all email fields+ decryptedEmail.subject = await EncryptionUtility.symmetricDecrypt(email.subject, symmetricKeyBase64);+ decryptedEmail.fromDisplay = await EncryptionUtility.symmetricDecrypt(email.fromDisplay, symmetricKeyBase64);+ decryptedEmail.fromDomain = await EncryptionUtility.symmetricDecrypt(email.fromDomain, symmetricKeyBase64);+ decryptedEmail.fromLocal = await EncryptionUtility.symmetricDecrypt(email.fromLocal, symmetricKeyBase64);++ if (email.messageHtml) {+ decryptedEmail.messageHtml = await EncryptionUtility.symmetricDecrypt(email.messageHtml, symmetricKeyBase64);+ }+ if (email.messagePlain) {+ decryptedEmail.messagePlain = await EncryptionUtility.symmetricDecrypt(email.messagePlain, symmetricKeyBase64);+ }++ return decryptedEmail;+ } catch (err) {+ throw new Error(err instanceof Error ? err.message : 'Failed to decrypt email');+ }+ }++ /**+ * Decrypts a list of emails based on the provided public/private key pairs.+ */+ public static async decryptEmailList(+ emails: MailboxEmail[],+ encryptionKeys: EncryptionKey[]+ ): Promise<MailboxEmail[]> {+ return Promise.all(emails.map(async email => {+ try {+ const encryptionKey = encryptionKeys.find(key => key.PublicKey === email.encryptionKey);++ if (!encryptionKey) {+ throw new Error('Encryption key not found');+ }++ // Decrypt symmetric key with asymmetric private key+ const symmetricKey = await EncryptionUtility.decryptWithPrivateKey(+ email.encryptedSymmetricKey,+ encryptionKey.PrivateKey+ );+ const symmetricKeyBase64 = Buffer.from(symmetricKey).toString('base64');++ // Create a new object to avoid mutating the original+ const decryptedEmail = { ...email };++ // Decrypt all email fields+ decryptedEmail.subject = await EncryptionUtility.symmetricDecrypt(email.subject, symmetricKeyBase64);+ decryptedEmail.fromDisplay = await EncryptionUtility.symmetricDecrypt(email.fromDisplay, symmetricKeyBase64);+ decryptedEmail.fromDomain = await EncryptionUtility.symmetricDecrypt(email.fromDomain, symmetricKeyBase64);+ decryptedEmail.fromLocal = await EncryptionUtility.symmetricDecrypt(email.fromLocal, symmetricKeyBase64);++ if (email.messagePreview) {+ decryptedEmail.messagePreview = await EncryptionUtility.symmetricDecrypt(email.messagePreview, symmetricKeyBase64);+ }++ return decryptedEmail;+ } catch (err) {+ throw new Error(err instanceof Error ? err.message : 'Failed to decrypt email');+ }+ }));+ }++ /**+ * Decrypts an attachment based on the provided public/private key pairs and returns the decrypted bytes as a base64 string.+ */+ public static async decryptAttachment(base64EncryptedAttachment: string, email: Email, encryptionKeys: EncryptionKey[]): Promise<string> {+ try {+ const encryptionKey = encryptionKeys.find(key => key.PublicKey === email.encryptionKey);++ if (!encryptionKey) {+ throw new Error('Encryption key not found');+ }++ // Decrypt symmetric key with asymmetric private key+ const symmetricKey = await EncryptionUtility.decryptWithPrivateKey(+ email.encryptedSymmetricKey,+ encryptionKey.PrivateKey+ );+ const symmetricKeyBase64 = Buffer.from(symmetricKey).toString('base64');++ const encryptedBytesString = await EncryptionUtility.symmetricDecrypt(base64EncryptedAttachment, symmetricKeyBase64);+ return encryptedBytesString;+ } catch (err) {+ throw new Error(err instanceof Error ? err.message : 'Failed to decrypt attachment');+ }+ }+}++export default EncryptionUtility;diff --git a/browser-extension/src/utils/SqliteClient.tsx b/browser-extension/src/utils/SqliteClient.tsxnew file mode 100644index 000000000..71c60df98--- /dev/null+++ b/browser-extension/src/utils/SqliteClient.tsx@@ -0,0 +1,426 @@+import initSqlJs, { Database } from 'sql.js';+import { Credential } from './types/Credential';+import { EncryptionKey } from './types/EncryptionKey';++/**+ * Client for interacting with the SQLite database.+ */+class SqliteClient {+ private db: Database | null = null;++ /**+ * Initialize the SQLite database from a base64 string+ */+ public async initializeFromBase64(base64String: string): Promise<void> {+ try {+ // Convert base64 to Uint8Array+ const binaryString = atob(base64String);+ const bytes = new Uint8Array(binaryString.length);+ for (let i = 0; i < binaryString.length; i++) {+ bytes[i] = binaryString.charCodeAt(i);+ }++ // Initialize SQL.js with the WASM file from the local file system.+ const SQL = await initSqlJs({+ /**+ * Locates SQL.js files from the local file system.+ * @param file - The name of the file to locate+ * @returns The complete URL path to the file+ */+ locateFile: (file: string) => `src/${file}`+ });++ // Create database from the binary data+ this.db = new SQL.Database(bytes);+ } catch (error) {+ console.error('Error initializing SQLite database:', error);+ throw error;+ }+ }++ /**+ * Export the SQLite database to a base64 string+ * @returns Base64 encoded string of the database+ */+ public exportToBase64(): string {+ if (!this.db) {+ throw new Error('Database not initialized');+ }++ try {+ // Export database to Uint8Array+ const binaryArray = this.db.export();++ // Convert Uint8Array to base64 string+ let binaryString = '';+ for (let i = 0; i < binaryArray.length; i++) {+ binaryString += String.fromCharCode(binaryArray[i]);+ }+ return btoa(binaryString);+ } catch (error) {+ console.error('Error exporting SQLite database:', error);+ throw error;+ }+ }++ /**+ * Execute a SELECT query+ */+ public executeQuery<T>(query: string, params: (string | number | null | Uint8Array)[] = []): T[] {+ if (!this.db) {+ throw new Error('Database not initialized');+ }++ try {+ const stmt = this.db.prepare(query);+ stmt.bind(params);++ const results: T[] = [];+ while (stmt.step()) {+ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ results.push(stmt.getAsObject() as any);+ }+ stmt.free();++ return results;+ } catch (error) {+ console.error('Error executing query:', error);+ throw error;+ }+ }++ /**+ * Execute an INSERT, UPDATE, or DELETE query+ */+ public executeUpdate(query: string, params: (string | number | null | Uint8Array)[] = []): number {+ if (!this.db) {+ throw new Error('Database not initialized');+ }++ try {+ const stmt = this.db.prepare(query);+ stmt.bind(params);+ stmt.step();+ const changes = this.db.getRowsModified();+ stmt.free();+ return changes;+ } catch (error) {+ console.error('Error executing update:', error);+ throw error;+ }+ }++ /**+ * Close the database connection and free resources.+ */+ public close(): void {+ if (this.db) {+ this.db.close();+ this.db = null;+ }+ }++ /**+ * Fetch a single credential with its associated service information.+ * @param credentialId - The ID of the credential to fetch.+ * @returns Credential object with service details or null if not found.+ */+ public getCredentialById(credentialId: string): Credential | null {+ const query = `+ SELECT DISTINCT+ c.Id,+ c.Username,+ c.Notes,+ c.ServiceId,+ s.Name as ServiceName,+ s.Url as ServiceUrl,+ s.Logo as Logo,+ a.FirstName,+ a.LastName,+ a.NickName,+ a.BirthDate,+ a.Gender,+ a.Email,+ p.Value as Password+ FROM Credentials c+ LEFT JOIN Services s ON c.ServiceId = s.Id+ LEFT JOIN Aliases a ON c.AliasId = a.Id+ LEFT JOIN Passwords p ON p.CredentialId = c.Id+ WHERE c.IsDeleted = 0+ AND c.Id = ?`;++ const results = this.executeQuery(query, [credentialId]);++ if (results.length === 0) {+ return null;+ }++ // Convert the first row to a Credential object+ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ const row = results[0] as any;+ return {+ Id: row.Id,+ Username: row.Username,+ Password: row.Password,+ Email: row.Email,+ ServiceName: row.ServiceName,+ ServiceUrl: row.ServiceUrl,+ Logo: row.Logo,+ Notes: row.Notes,+ Alias: {+ FirstName: row.FirstName,+ LastName: row.LastName,+ NickName: row.NickName,+ BirthDate: row.BirthDate,+ Gender: row.Gender,+ Email: row.Email+ }+ };+ }++ /**+ * Fetch all credentials with their associated service information.+ * @returns Array of Credential objects with service details.+ */+ public getAllCredentials(): Credential[] {+ const query = `+ SELECT DISTINCT+ c.Id,+ c.Username,+ c.Notes,+ c.ServiceId,+ s.Name as ServiceName,+ s.Url as ServiceUrl,+ s.Logo as Logo,+ a.FirstName,+ a.LastName,+ a.NickName,+ a.BirthDate,+ a.Gender,+ a.Email,+ p.Value as Password+ FROM Credentials c+ LEFT JOIN Services s ON c.ServiceId = s.Id+ LEFT JOIN Aliases a ON c.AliasId = a.Id+ LEFT JOIN Passwords p ON p.CredentialId = c.Id+ WHERE c.IsDeleted = 0+ ORDER BY c.CreatedAt DESC`;++ const results = this.executeQuery(query);++ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ return results.map((row: any) => ({+ Id: row.Id,+ Username: row.Username,+ Password: row.Password,+ Email: row.Email,+ ServiceName: row.ServiceName,+ ServiceUrl: row.ServiceUrl,+ Logo: row.Logo,+ Notes: row.Notes,+ Alias: {+ FirstName: row.FirstName,+ LastName: row.LastName,+ NickName: row.NickName,+ BirthDate: row.BirthDate,+ Gender: row.Gender,+ Email: row.Email+ }+ }));+ }++ /**+ * Fetch all unique email addresses from all credentials.+ * @returns Array of email addresses.+ */+ public getAllEmailAddresses(): string[] {+ const query = `+ SELECT DISTINCT+ a.Email+ FROM Credentials c+ LEFT JOIN Aliases a ON c.AliasId = a.Id+ WHERE a.Email IS NOT NULL AND a.Email != '' AND c.IsDeleted = 0+ `;++ const results = this.executeQuery(query);++ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ return results.map((row: any) => row.Email);+ }++ /**+ * Fetch all encryption keys.+ */+ public getAllEncryptionKeys(): EncryptionKey[] {+ return this.executeQuery<EncryptionKey>(`SELECT+ x.PublicKey,+ x.PrivateKey,+ x.IsPrimary+ FROM EncryptionKeys x`);+ }++ /**+ * Get setting from database for a given key.+ * Returns empty string if setting is not found.+ */+ public getSetting(key: string): string {+ const results = this.executeQuery<{ Value: string }>(`SELECT+ s.Value+ FROM Settings s+ WHERE s.Key = ?`, [key]);++ return results.length > 0 ? results[0].Value : '';+ }++ /**+ * Get the default email domain from the database.+ */+ public getDefaultEmailDomain(): string {+ return this.getSetting('DefaultEmailDomain');+ }++ /**+ * Create a new credential with associated entities+ * @param credential The credential object to insert+ * @returns The number of rows modified+ */+ public createCredential(credential: Credential): number {+ if (!this.db) {+ throw new Error('Database not initialized');+ }++ try {+ this.db.run('BEGIN TRANSACTION');++ // 1. Insert Service+ let logoData = null;+ try {+ if (credential.Logo) {+ // Handle object-like array conversion+ if (typeof credential.Logo === 'object' && !ArrayBuffer.isView(credential.Logo)) {+ const values = Object.values(credential.Logo);+ logoData = new Uint8Array(values);+ // Handle existing array types+ } else if (Array.isArray(credential.Logo) || credential.Logo instanceof ArrayBuffer || credential.Logo instanceof Uint8Array) {+ logoData = new Uint8Array(credential.Logo);+ }+ }+ } catch (error) {+ console.warn('Failed to convert logo to Uint8Array:', error);+ logoData = null;+ }++ const serviceQuery = `+ INSERT INTO Services (Id, Name, Url, Logo, CreatedAt, UpdatedAt)+ VALUES (?, ?, ?, ?, ?, ?)`;+ const serviceId = crypto.randomUUID().toUpperCase();+ const currentDateTime = new Date().toISOString()+ .replace('T', ' ')+ .replace('Z', '')+ .substring(0, 23);+ this.executeUpdate(serviceQuery, [+ serviceId,+ credential.ServiceName,+ credential.ServiceUrl ?? null,+ logoData,+ currentDateTime,+ currentDateTime+ ]);++ // 2. Insert Alias+ const aliasQuery = `+ INSERT INTO Aliases (Id, FirstName, LastName, NickName, BirthDate, Gender, Email, CreatedAt, UpdatedAt)+ VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`;+ const aliasId = crypto.randomUUID().toUpperCase();+ this.executeUpdate(aliasQuery, [+ aliasId,+ credential.Alias.FirstName ?? null,+ credential.Alias.LastName ?? null,+ credential.Alias.NickName ?? null,+ credential.Alias.BirthDate ?? null,+ credential.Alias.Gender ?? null,+ credential.Alias.Email ?? null,+ currentDateTime,+ currentDateTime+ ]);++ // 3. Insert Credential+ const credentialQuery = `+ INSERT INTO Credentials (Id, Username, Notes, ServiceId, AliasId, CreatedAt, UpdatedAt)+ VALUES (?, ?, ?, ?, ?, ?, ?)`;+ const credentialId = crypto.randomUUID().toUpperCase();+ this.executeUpdate(credentialQuery, [+ credentialId,+ credential.Username,+ credential.Notes ?? null,+ serviceId,+ aliasId,+ currentDateTime,+ currentDateTime+ ]);++ // 4. Insert Password+ if (credential.Password) {+ const passwordQuery = `+ INSERT INTO Passwords (Id, Value, CredentialId, CreatedAt, UpdatedAt)+ VALUES (?, ?, ?, ?, ?)`;+ const passwordId = crypto.randomUUID().toUpperCase();+ this.executeUpdate(passwordQuery, [+ passwordId,+ credential.Password,+ credentialId,+ currentDateTime,+ currentDateTime+ ]);+ }++ this.db.run('COMMIT');+ return 1;++ } catch (error) {+ this.db.run('ROLLBACK');+ console.error('Error creating credential:', error);+ throw error;+ }+ }++ /**+ * Get the current database version from the migrations history.+ * Returns the semantic version (e.g., "1.4.1") from the latest migration.+ * Returns null if no migrations are found.+ */+ public getDatabaseVersion(): string | null {+ if (!this.db) {+ throw new Error('Database not initialized');+ }++ try {+ // Query the migrations history table for the latest migration+ const results = this.executeQuery<{ MigrationId: string }>(`+ SELECT MigrationId+ FROM __EFMigrationsHistory+ ORDER BY MigrationId DESC+ LIMIT 1`);++ if (results.length === 0) {+ return null;+ }++ // Extract version using regex - matches patterns like "20240917191243_1.4.1-RenameAttachmentsPlural"+ const migrationId = results[0].MigrationId;+ const versionRegex = /_(\d+\.\d+\.\d+)-/;+ const versionMatch = versionRegex.exec(migrationId);++ if (versionMatch?.[1]) {+ return versionMatch[1];+ }++ return null;+ } catch (error) {+ console.error('Error getting database version:', error);+ throw error;+ }+ }+}++export default SqliteClient;\ No newline at end of filediff --git a/browser-extension/src/utils/WebApiService.ts b/browser-extension/src/utils/WebApiService.tsnew file mode 100644index 000000000..00347b910--- /dev/null+++ b/browser-extension/src/utils/WebApiService.ts@@ -0,0 +1,339 @@+import { AppInfo } from "./AppInfo";+import { StatusResponse } from "./types/webapi/StatusResponse";+import { VaultResponse } from "./types/webapi/VaultResponse";++type RequestInit = globalThis.RequestInit;++/**+ * Type for the token response from the API.+ */+type TokenResponse = {+ token: string;+ refreshToken: string;+}++/**+ * Service class for interacting with the web API.+ */+export class WebApiService {+ /**+ * Constructor for the WebApiService class.+ *+ * @param {Function} authContextLogout - Function to handle logout.+ */+ public constructor(private readonly authContextLogout: (statusError: string | null) => void) { }++ /**+ * Get the base URL for the API from settings.+ */+ private async getBaseUrl(): Promise<string> {+ const result = await storage.getItem('local:apiUrl') as string;+ if (result && result.length > 0) {+ return result.replace(/\/$/, '') + '/v1/';+ }++ return AppInfo.DEFAULT_API_URL.replace(/\/$/, '') + '/v1/';+ }++ /**+ * Fetch data from the API.+ */+ public async fetch<T>(+ endpoint: string,+ options: RequestInit = {},+ parseJson: boolean = true+ ): Promise<T> {+ const baseUrl = await this.getBaseUrl();+ const url = baseUrl + endpoint;+ const headers = new Headers(options.headers ?? {});++ // Add authorization header if we have an access token+ const accessToken = await this.getAccessToken();+ if (accessToken) {+ headers.set('Authorization', `Bearer ${accessToken}`);+ }++ // Add client version header+ headers.set('X-AliasVault-Client', `${AppInfo.CLIENT_NAME}-${AppInfo.VERSION}`);++ const requestOptions: RequestInit = {+ ...options,+ headers,+ };++ try {+ const response = await fetch(url, requestOptions);++ if (response.status === 401) {+ const newToken = await this.refreshAccessToken();+ if (newToken) {+ headers.set('Authorization', `Bearer ${newToken}`);+ const retryResponse = await fetch(url, {+ ...requestOptions,+ headers,+ });++ if (!retryResponse.ok) {+ throw new Error('Request failed after token refresh');+ }++ return parseJson ? retryResponse.json() : retryResponse as unknown as T;+ } else {+ this.authContextLogout(null);+ throw new Error('Session expired');+ }+ }++ if (!response.ok) {+ throw new Error(`HTTP error! status: ${response.status}`);+ }++ return parseJson ? response.json() : response as unknown as T;+ } catch (error) {+ console.error('API request failed:', error);+ throw error;+ }+ }++ /**+ * Refresh the access token.+ */+ private async refreshAccessToken(): Promise<string | null> {+ const refreshToken = await this.getRefreshToken();+ if (!refreshToken) {+ return null;+ }++ try {+ const baseUrl = await this.getBaseUrl();++ const response = await fetch(`${baseUrl}Auth/refresh`, {+ method: 'POST',+ headers: {+ 'Content-Type': 'application/json',+ 'X-Ignore-Failure': 'true',+ 'X-AliasVault-Client': `${AppInfo.CLIENT_NAME}-${AppInfo.VERSION}`,+ },+ body: JSON.stringify({+ token: await this.getAccessToken(),+ refreshToken: refreshToken,+ }),+ });++ if (!response.ok) {+ throw new Error('Failed to refresh token');+ }++ const tokenResponse: TokenResponse = await response.json();+ this.updateTokens(tokenResponse.token, tokenResponse.refreshToken);+ return tokenResponse.token;+ } catch {+ this.authContextLogout('Your session has expired. Please login again.');+ return null;+ }+ }++ /**+ * Issue GET request to the API.+ */+ public async get<T>(endpoint: string): Promise<T> {+ return this.fetch<T>(endpoint, { method: 'GET' });+ }++ /**+ * Issue GET request to the API expecting a file download and return it as a Base64 string.+ */+ public async downloadBlobAndConvertToBase64(endpoint: string): Promise<string> {+ try {+ const response = await this.fetch<Response>(endpoint, {+ method: 'GET',+ headers: {+ 'Accept': 'application/octet-stream',+ }+ }, false);++ // Ensure we get the response as a blob+ const blob = await response.blob();+ return await this.blobToBase64(blob);+ } catch (error) {+ console.error('Error fetching and converting to Base64:', error);+ throw error;+ }+ }++ /**+ * Issue POST request to the API.+ */+ public async post<TRequest, TResponse>(+ endpoint: string,+ data: TRequest,+ parseJson: boolean = true+ ): Promise<TResponse> {+ return this.fetch<TResponse>(endpoint, {+ method: 'POST',+ headers: {+ 'Content-Type': 'application/json',+ },+ body: JSON.stringify(data),+ }, parseJson);+ }++ /**+ * Issue PUT request to the API.+ */+ public async put<TRequest, TResponse>(endpoint: string, data: TRequest): Promise<TResponse> {+ return this.fetch<TResponse>(endpoint, {+ method: 'PUT',+ headers: {+ 'Content-Type': 'application/json',+ },+ body: JSON.stringify(data),+ });+ }++ /**+ * Issue DELETE request to the API.+ */+ public async delete<T>(endpoint: string): Promise<T> {+ return this.fetch<T>(endpoint, { method: 'DELETE' }, false);+ }++ /**+ * Logout and revoke tokens via WebApi and remove local storage tokens via AuthContext.+ */+ public async logout(statusError: string | null = null): Promise<void> {+ // Logout and revoke tokens via WebApi.+ try {+ const refreshToken = await this.getRefreshToken();+ if (!refreshToken) {+ return;+ }++ await this.post('Auth/revoke', {+ token: await this.getAccessToken(),+ refreshToken: refreshToken,+ }, false);+ } catch (err) {+ console.error('WebApi logout error:', err);+ }++ // Logout and remove tokens from local storage via AuthContext.+ this.authContextLogout(statusError);+ }++ /**+ * Calls the status endpoint to check if the auth tokens are still valid, app is supported and the vault is up to date.+ */+ public async getStatus(): Promise<StatusResponse> {+ try {+ return await this.get<StatusResponse>('Auth/status');+ } catch {+ /**+ * If the status endpoint is not available, return a default status response which will trigger+ * a logout and error message.+ */+ return {+ clientVersionSupported: true,+ serverVersion: '0.0.0',+ vaultRevision: 0+ };+ }+ }++ /**+ * Validates the status response and returns an error message if validation fails.+ */+ public validateStatusResponse(statusResponse: StatusResponse): string | null {+ if (statusResponse.serverVersion === '0.0.0') {+ return 'The AliasVault server is not available. Please try again later or contact support if the problem persists.';+ }++ if (!statusResponse.clientVersionSupported) {+ return 'This version of the AliasVault browser extension is outdated. Please update your browser extension to the latest version.';+ }++ if (!AppInfo.isServerVersionSupported(statusResponse.serverVersion)) {+ return 'The AliasVault server needs to be updated to a newer version in order to use this browser extension. Please contact support if you need help.';+ }++ return null;+ }++ /**+ * Validates the vault response and returns an error message if validation fails+ */+ public validateVaultResponse(vaultResponseJson: VaultResponse): string | null {+ /**+ * Status 0 = OK, vault is ready.+ * Status 1 = Merge required, which only the web client supports.+ */+ if (vaultResponseJson.status !== 0) {+ return 'Your vault needs to be updated. Please login on the AliasVault website and follow the steps.';+ }++ if (!vaultResponseJson.vault?.blob) {+ return 'Your account does not have a vault yet. Please complete the tutorial in the AliasVault web client before using the browser extension.';+ }++ if (!AppInfo.isVaultVersionSupported(vaultResponseJson.vault.version)) {+ return 'Your vault is outdated. Please login via the web client to update your vault.';+ }++ return null;+ }++ /**+ * Get the current access token from storage.+ */+ private async getAccessToken(): Promise<string | null> {+ const token = await chrome.storage.local.get('accessToken');+ return token.accessToken ?? null;+ }++ /**+ * Get the current refresh token from storage.+ */+ private async getRefreshToken(): Promise<string | null> {+ const token = await chrome.storage.local.get('refreshToken');+ return token.refreshToken ?? null;+ }++ /**+ * Update both access and refresh tokens in storage.+ */+ private async updateTokens(accessToken: string, refreshToken: string): Promise<void> {+ await chrome.storage.local.set({+ accessToken,+ refreshToken+ });+ }++ /**+ * Convert a Blob to a Base64 string.+ */+ private async blobToBase64(blob: Blob): Promise<string> {+ return new Promise((resolve, reject) => {+ const reader = new FileReader();++ /**+ * When the reader has finished loading, convert the result to a Base64 string.+ */+ reader.onloadend = (): void => {+ const result = reader.result;+ if (typeof result === 'string') {+ resolve(result.split(',')[1]); // Remove the data URL prefix+ } else {+ reject(new Error('Failed to convert Blob to Base64.'));+ }+ };++ /**+ * If the reader encounters an error, reject the promise with a proper Error object.+ */+ reader.onerror = (): void => {+ reject(new Error('Failed to read blob as Data URL'));+ };+ reader.readAsDataURL(blob);+ });+ }+}diff --git a/browser-extension/src/utils/__tests__/AppInfo.test.ts b/browser-extension/src/utils/__tests__/AppInfo.test.tsnew file mode 100644index 000000000..6b72cceae--- /dev/null+++ b/browser-extension/src/utils/__tests__/AppInfo.test.ts@@ -0,0 +1,38 @@+import { AppInfo } from '../AppInfo';+import { describe, it, expect } from 'vitest';++describe('AppInfo', () => {+ describe('isVersionSupported', () => {+ it('should support exact version match', () => {+ expect(AppInfo.versionGreaterThanOrEqualTo('1.0.0', '1.0.0')).toBe(true);+ });++ it('should support higher patch versions', () => {+ expect(AppInfo.versionGreaterThanOrEqualTo('1.0.5', '1.0.0')).toBe(true);+ expect(AppInfo.versionGreaterThanOrEqualTo('1.0.10', '1.0.2')).toBe(true);+ });++ it('should support higher minor versions', () => {+ expect(AppInfo.versionGreaterThanOrEqualTo('1.2.0', '1.0.0')).toBe(true);+ expect(AppInfo.versionGreaterThanOrEqualTo('1.5.0', '1.3.0')).toBe(true);+ });++ it('should support higher major versions', () => {+ expect(AppInfo.versionGreaterThanOrEqualTo('2.0.0', '1.0.0')).toBe(true);+ expect(AppInfo.versionGreaterThanOrEqualTo('3.0.0', '2.5.1')).toBe(true);+ });++ it('should handle development versions', () => {+ expect(AppInfo.versionGreaterThanOrEqualTo('1.4.0', '1.4.0-dev')).toBe(true);+ expect(AppInfo.versionGreaterThanOrEqualTo('2.0.0-dev', '1.9.9')).toBe(true);+ expect(AppInfo.versionGreaterThanOrEqualTo('1.5.0-dev', '1.5.1')).toBe(false);+ });++ it('should reject lower versions', () => {+ expect(AppInfo.versionGreaterThanOrEqualTo('1.0.0', '1.0.1')).toBe(false);+ expect(AppInfo.versionGreaterThanOrEqualTo('1.0.0', '1.4.1')).toBe(false);+ expect(AppInfo.versionGreaterThanOrEqualTo('1.4.0', '1.5.0')).toBe(false);+ expect(AppInfo.versionGreaterThanOrEqualTo('1.9.9', '2.0.0')).toBe(false);+ });+ });+});diff --git a/browser-extension/src/utils/formDetector/FieldPatterns.ts b/browser-extension/src/utils/formDetector/FieldPatterns.tsnew file mode 100644index 000000000..ee6a99289--- /dev/null+++ b/browser-extension/src/utils/formDetector/FieldPatterns.ts@@ -0,0 +1,151 @@+/**+ * Type for field patterns. These patterns are used to detect individual fields in the form.+ */+export type FieldPatterns = {+ username: string[];+ firstName: string[];+ lastName: string[];+ fullName: string[];+ email: string[];+ emailConfirm: string[];+ password: string[];+ birthdate: string[];+ gender: string[];+ birthDateDay: string[];+ birthDateMonth: string[];+ birthDateYear: string[];+}++/**+ * Type for gender option patterns. These patterns are used to detect individual gender options (radio/select) in the form.+ */+export type GenderOptionPatterns = {+ male: string[];+ female: string[];+ other: string[];+}++/**+ * Type for date option patterns. These patterns are used to detect individual date options (select) in the form.+ * Each array in months must contain exactly 12 elements representing the months in a specific language.+ */+export type DateOptionPatterns = {+ months: string[][];+}++/**+ * English field patterns to detect English form fields.+ */+export const EnglishFieldPatterns: FieldPatterns = {+ username: ['username', 'login', 'identifier', 'user'],+ fullName: ['fullname', 'full-name', 'full name'],+ firstName: ['firstname', 'first-name', 'first_name', 'fname', 'name', 'given-name'],+ lastName: ['lastname', 'last-name', 'last_name', 'lname', 'surname', 'family-name'],+ email: ['email', 'mail', 'emailaddress'],+ emailConfirm: ['confirm', 'verification', 'repeat', 'retype', 'verify'],+ password: ['password', 'pwd', 'pass'],+ birthdate: ['birthdate', 'birth-date', 'dob', 'date-of-birth'],+ gender: ['gender', 'sex'],+ birthDateDay: ['birth-day', 'birthday', 'day', 'birthdate_d'],+ birthDateMonth: ['birth-month', 'birthmonth', 'month', 'birthdate_m'],+ birthDateYear: ['birth-year', 'birthyear', 'year', 'birthdate_y']+};++/**+ * English gender option patterns.+ */+export const EnglishGenderOptionPatterns: GenderOptionPatterns = {+ male: ['male', 'man', 'm', 'gender1', 'mr', 'mr.'],+ female: ['female', 'woman', 'f', 'gender2', 'mrs', 'mrs.', 'ms', 'ms.'],+ other: ['other', 'diverse', 'custom', 'prefer not', 'unknown', 'gender3']+};++/**+ * English date option patterns. These are used to detect the month name in the date field.+ */+export const EnglishDateOptionPatterns: DateOptionPatterns = {+ months: [+ ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december']+ ],+};++/**+ * Dutch field patterns used to detect Dutch form fields.+ */+export const DutchFieldPatterns: FieldPatterns = {+ username: ['gebruikersnaam', 'gebruiker', 'login', 'identifier'],+ fullName: ['volledige naam'],+ firstName: ['voornaam', 'naam'],+ lastName: ['achternaam'],+ email: ['e-mailadres', 'e-mail'],+ emailConfirm: ['bevestig', 'herhaal', 'verificatie'],+ password: ['wachtwoord', 'pwd'],+ birthdate: ['geboortedatum', 'geboorte-datum'],+ gender: ['geslacht', 'aanhef'],+ birthDateDay: ['dag'],+ birthDateMonth: ['maand'],+ birthDateYear: ['jaar']+};++/**+ * Dutch gender option patterns+ */+export const DutchGenderOptionPatterns: GenderOptionPatterns = {+ male: ['man', 'mannelijk', 'heer'],+ female: ['vrouw', 'vrouwelijk', 'mevrouw'],+ other: ['anders', 'iets', 'overig', 'onbekend']+};++/**+ * Dutch date option patterns. These are used to detect the month name in the date field.+ */+export const DutchDateOptionPatterns: DateOptionPatterns = {+ months: [+ ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december']+ ],+};++/**+ * Combined field patterns which includes all supported languages.+ */+export const CombinedFieldPatterns: FieldPatterns = {+ username: [...new Set([...EnglishFieldPatterns.username, ...DutchFieldPatterns.username])],+ fullName: [...new Set([...EnglishFieldPatterns.fullName, ...DutchFieldPatterns.fullName])],+ firstName: [...new Set([...EnglishFieldPatterns.firstName, ...DutchFieldPatterns.firstName])],+ lastName: [...new Set([...EnglishFieldPatterns.lastName, ...DutchFieldPatterns.lastName])],+ /**+ * NOTE: Dutch email patterns should be prioritized over English email patterns due to how+ * the nl-registration-form5.html honeypot field is named. The order of the patterns+ * determine which field is detected. If a pattern entry with higher index is detected, that+ * field will be selected instead of the lower index one.+ */+ email: [...new Set([...DutchFieldPatterns.email, ...EnglishFieldPatterns.email])],+ emailConfirm: [...new Set([...EnglishFieldPatterns.emailConfirm, ...DutchFieldPatterns.emailConfirm])],+ password: [...new Set([...EnglishFieldPatterns.password, ...DutchFieldPatterns.password])],+ birthdate: [...new Set([...EnglishFieldPatterns.birthdate, ...DutchFieldPatterns.birthdate])],+ gender: [...new Set([...EnglishFieldPatterns.gender, ...DutchFieldPatterns.gender])],+ birthDateDay: [...new Set([...EnglishFieldPatterns.birthDateDay, ...DutchFieldPatterns.birthDateDay])],+ birthDateMonth: [...new Set([...EnglishFieldPatterns.birthDateMonth, ...DutchFieldPatterns.birthDateMonth])],+ birthDateYear: [...new Set([...EnglishFieldPatterns.birthDateYear, ...DutchFieldPatterns.birthDateYear])]+};++/**+ * Combined gender option patterns which includes all supported languages.+ */+export const CombinedGenderOptionPatterns: GenderOptionPatterns = {+ male: [...new Set([...EnglishGenderOptionPatterns.male, ...DutchGenderOptionPatterns.male])],+ female: [...new Set([...EnglishGenderOptionPatterns.female, ...DutchGenderOptionPatterns.female])],+ other: [...new Set([...EnglishGenderOptionPatterns.other, ...DutchGenderOptionPatterns.other])]+};++/**+ * Combined date option patterns which includes all supported languages.+ * Each array in months must contain exactly 12 elements representing the months in a specific language.+ * These are used to detect the month name in the date field.+ */+export const CombinedDateOptionPatterns: DateOptionPatterns = {+ months: [+ ...EnglishDateOptionPatterns.months,+ ...DutchDateOptionPatterns.months+ ],+};\ No newline at end of filediff --git a/browser-extension/src/utils/formDetector/FormDetector.ts b/browser-extension/src/utils/formDetector/FormDetector.tsnew file mode 100644index 000000000..a8884ad32--- /dev/null+++ b/browser-extension/src/utils/formDetector/FormDetector.ts@@ -0,0 +1,479 @@+import { FormFields } from "./types/FormFields";+import { CombinedFieldPatterns, CombinedGenderOptionPatterns } from "./FieldPatterns";++/**+ * Form detector.+ */+export class FormDetector {+ private readonly document: Document;+ private readonly clickedElement: HTMLElement | null;++ /**+ * Constructor.+ */+ public constructor(document: Document, clickedElement?: HTMLElement) {+ this.document = document;+ this.clickedElement = clickedElement ?? null;+ }++ /**+ * Detect login forms on the page based on the clicked element.+ *+ * @param force - Force the detection of forms, skipping checks such as if the element contains autocomplete="off".+ */+ public containsLoginForm(force: boolean = false): boolean {+ if (this.clickedElement) {+ const formWrapper = this.clickedElement.closest('form') ?? this.document.body;++ /**+ * Sanity check: if form contains more than 150 inputs, don't process as this is likely not a login form.+ * This is a simple way to prevent processing large forms that are not login forms and making the browser page unresponsive.+ */+ const inputCount = formWrapper.querySelectorAll('input').length;+ if (inputCount > 200) {+ return false;+ }++ // Check if the wrapper contains a password or likely username field before processing.+ if (this.containsPasswordField(formWrapper) || this.containsLikelyUsernameOrEmailField(formWrapper, force)) {+ return true;+ }+ }++ return false;+ }++ /**+ * Detect login forms on the page based on the clicked element.+ *+ * @param force - Force the detection of forms, skipping checks such as if the element contains autocomplete="off".+ */+ public getForm(): FormFields | null {+ if (!this.clickedElement) {+ return null;+ }++ const formWrapper = this.clickedElement.closest('form') ?? this.document.body;+ return this.detectFormFields(formWrapper);+ }++ /**+ * Find an input field based on common patterns in its attributes.+ */+ private findInputField(+ form: HTMLFormElement | null,+ patterns: string[],+ types: string[],+ excludeElements: HTMLInputElement[] = []+ ): HTMLInputElement | null {+ const candidates = form+ ? form.querySelectorAll<HTMLInputElement>('input, select')+ : this.document.querySelectorAll<HTMLInputElement>('input, select');++ // Track best match and its pattern index+ let bestMatch: HTMLInputElement | null = null;+ let bestMatchIndex = patterns.length;++ for (const input of Array.from(candidates)) {+ // Skip if this element is already used+ if (excludeElements.includes(input)) {+ continue;+ }++ // Handle both input and select elements+ const type = input.tagName.toLowerCase() === 'select' ? 'select' : input.type.toLowerCase();+ if (!types.includes(type)) {+ continue;+ }++ // Collect all text attributes to check+ const attributes = [+ input.id,+ input.name,+ input.placeholder+ ].map(attr => attr?.toLowerCase() ?? '');++ // Check for associated labels if input has an ID or name+ if (input.id || input.name) {+ const label = this.document.querySelector(`label[for="${input.id || input.name}"]`);+ if (label) {+ attributes.push(label.textContent?.toLowerCase() ?? '');+ }+ }++ // Check for parent label and table cell structure+ let currentElement = input;+ for (let i = 0; i < 3; i++) {+ // Check for parent label+ const parentLabel = currentElement.closest('label');+ if (parentLabel) {+ attributes.push(parentLabel.textContent?.toLowerCase() ?? '');+ break;+ }++ // Check for table cell structure+ const parentTd = currentElement.closest('td');+ if (parentTd) {+ // Get the parent row+ const parentTr = parentTd.closest('tr');+ if (parentTr) {+ // Check all sibling cells in the row+ const siblingTds = parentTr.querySelectorAll('td');+ for (const td of siblingTds) {+ if (td !== parentTd) { // Skip the cell containing the input+ attributes.push(td.textContent?.toLowerCase() ?? '');+ }+ }+ }+ break; // Found table structure, no need to continue up the tree+ }++ if (currentElement.parentElement) {+ currentElement = currentElement.parentElement as HTMLInputElement;+ } else {+ break;+ }+ }++ // Find the earliest matching pattern+ for (let i = 0; i < patterns.length; i++) {+ if (i >= bestMatchIndex) {+ break;+ } // Skip if we already have a better match+ if (attributes.some(attr => attr.includes(patterns[i]))) {+ bestMatch = input;+ bestMatchIndex = i;+ break; // Found the best possible match for this input+ }+ }+ }++ return bestMatch;+ }++ /**+ * Find the email field in the form.+ */+ private findEmailField(form: HTMLFormElement | null): {+ primary: HTMLInputElement | null,+ confirm: HTMLInputElement | null+ } {+ // Find primary email field+ const primaryEmail = this.findInputField(+ form,+ CombinedFieldPatterns.email,+ ['text', 'email']+ );++ // Find confirmation email field if primary exists+ const confirmEmail = primaryEmail+ ? this.findInputField(+ form,+ CombinedFieldPatterns.emailConfirm,+ ['text', 'email']+ )+ : null;++ return {+ primary: primaryEmail,+ confirm: confirmEmail+ };+ }++ /**+ * Find the birthdate fields in the form.+ */+ private findBirthdateFields(form: HTMLFormElement | null, excludeElements: HTMLInputElement[] = []): FormFields['birthdateField'] {+ // First try to find a single date input+ const singleDateField = this.findInputField(form, CombinedFieldPatterns.birthdate, ['date', 'text'], excludeElements);++ // Detect date format by searching all text content in the form+ let format = 'yyyy-mm-dd'; // default format+ if (form && singleDateField) {+ // Get the parent container+ const container = singleDateField.closest('div');+ if (container) {+ // Collect text from all relevant elements+ const elements = [+ ...Array.from(container.getElementsByTagName('label')),+ ...Array.from(container.getElementsByTagName('span')),+ container+ ];++ const allText = elements+ .map(el => el.textContent?.toLowerCase() ?? '')+ .join(' ')+ // Normalize different types of spaces and separators+ .replace(/[\s\u00A0]/g, '')+ // Don't replace separators yet to detect the preferred one+ .toLowerCase();++ // Check for date format patterns with either slash or dash+ if (/dd[-/]mm[-/]jj/i.test(allText) || /dd[-/]mm[-/]yyyy/i.test(allText)) {+ // Determine separator style from the matched pattern+ format = allText.includes('/') ? 'dd/mm/yyyy' : 'dd-mm-yyyy';+ } else if (/mm[-/]dd[-/]yyyy/i.test(allText)) {+ format = allText.includes('/') ? 'mm/dd/yyyy' : 'mm-dd-yyyy';+ } else if (/yyyy[-/]mm[-/]dd/i.test(allText)) {+ format = allText.includes('/') ? 'yyyy/mm/dd' : 'yyyy-mm-dd';+ }++ // Check placeholder as fallback+ if (format === 'yyyy-mm-dd' && singleDateField.placeholder) {+ const placeholder = singleDateField.placeholder.toLowerCase();+ if (/dd[-/]mm/i.test(placeholder)) {+ format = placeholder.includes('/') ? 'dd/mm/yyyy' : 'dd-mm-yyyy';+ } else if (/mm[-/]dd/i.test(placeholder)) {+ format = placeholder.includes('/') ? 'mm/dd/yyyy' : 'mm-dd-yyyy';+ }+ }+ }+ }++ if (singleDateField) {+ return {+ single: singleDateField,+ format,+ day: null,+ month: null,+ year: null+ };+ }++ // Look for separate day/month/year fields+ const dayField = this.findInputField(form, CombinedFieldPatterns.birthDateDay, ['text', 'number', 'select'], excludeElements);+ const monthField = this.findInputField(form, CombinedFieldPatterns.birthDateMonth, ['text', 'number', 'select'], excludeElements);+ const yearField = this.findInputField(form, CombinedFieldPatterns.birthDateYear, ['text', 'number', 'select'], excludeElements);++ return {+ single: null,+ format: 'yyyy-mm-dd', // Default format for separate fields+ day: dayField,+ month: monthField,+ year: yearField+ };+ }++ /**+ * Find the gender field in the form.+ */+ private findGenderField(form: HTMLFormElement | null, excludeElements: HTMLInputElement[] = []): FormFields['genderField'] {+ // Try to find select or input element using the shared method+ const genderField = this.findInputField(+ form,+ CombinedFieldPatterns.gender,+ ['select'],+ excludeElements+ );++ if (genderField?.tagName.toLowerCase() === 'select') {+ return {+ type: 'select',+ field: genderField+ };+ }++ // Try to find radio buttons+ const radioButtons = form+ ? form.querySelectorAll<HTMLInputElement>('input[type="radio"][name*="gender"], input[type="radio"][name*="sex"]')+ : null;++ if (radioButtons && radioButtons.length > 0) {+ /**+ * Find a radio button by patterns.+ */+ const findRadioByPatterns = (patterns: string[], isOther: boolean = false) : HTMLInputElement | null => {+ return Array.from(radioButtons).find(radio => {+ const attributes = [+ radio.value,+ radio.id,+ radio.name,+ radio.labels?.[0]?.textContent ?? ''+ ].map(attr => attr?.toLowerCase() ?? '');++ // For "other" patterns, skip if it matches male or female patterns+ if (isOther && (+ CombinedGenderOptionPatterns.male.some(pattern => attributes.some(attr => attr.includes(pattern))) ||+ CombinedGenderOptionPatterns.female.some(pattern => attributes.some(attr => attr.includes(pattern)))+ )) {+ return false;+ }++ return patterns.some(pattern =>+ attributes.some(attr => attr.includes(pattern))+ );+ }) ?? null;+ };++ return {+ type: 'radio',+ field: null, // Set to null since we're providing specific mappings+ radioButtons: {+ male: findRadioByPatterns(CombinedGenderOptionPatterns.male),+ female: findRadioByPatterns(CombinedGenderOptionPatterns.female),+ other: findRadioByPatterns(CombinedGenderOptionPatterns.other)+ }+ };+ }++ // Fall back to regular text input+ const textField = this.findInputField(form, CombinedFieldPatterns.gender, ['text'], excludeElements);++ return {+ type: 'text',+ field: textField+ };+ }++ /**+ * Find the password field in a form.+ */+ private findPasswordField(form: HTMLFormElement | null): {+ primary: HTMLInputElement | null,+ confirm: HTMLInputElement | null+ } {+ const candidates = form+ ? form.querySelectorAll<HTMLInputElement>('input[type="password"]')+ : this.document.querySelectorAll<HTMLInputElement>('input[type="password"]');++ const candidateArray = Array.from(candidates);++ return {+ primary: candidateArray[0] ?? null,+ confirm: candidateArray[1] ?? null+ };+ }++ /**+ * Check if a form contains a password field.+ */+ private containsPasswordField(wrapper: HTMLElement): boolean {+ const passwordFields = this.findPasswordField(wrapper as HTMLFormElement | null);+ if (passwordFields.primary) {+ return true;+ }++ return false;+ }++ /**+ * Check if a form contains a likely username or email field.+ */+ private containsLikelyUsernameOrEmailField(wrapper: HTMLElement, force: boolean = false): boolean {+ // Check if the form contains an email field.+ const emailFields = this.findEmailField(wrapper as HTMLFormElement | null);+ if (emailFields.primary) {+ const isValid = force || emailFields.primary.getAttribute('autocomplete') !== 'off';+ if (isValid) {+ return true;+ }+ }++ // Check if the form contains a username field.+ const usernameField = this.findInputField(wrapper as HTMLFormElement | null, CombinedFieldPatterns.username, ['text'], []);+ if (usernameField) {+ const isValid = force || usernameField.getAttribute('autocomplete') !== 'off';+ if (isValid) {+ return true;+ }+ }++ // Check if the form contains a first name field.+ const firstNameField = this.findInputField(wrapper as HTMLFormElement | null, CombinedFieldPatterns.firstName, ['text'], []);+ if (firstNameField) {+ const isValid = force || firstNameField.getAttribute('autocomplete') !== 'off';+ if (isValid) {+ return true;+ }+ }++ // Check if the form contains a last name field.+ const lastNameField = this.findInputField(wrapper as HTMLFormElement | null, CombinedFieldPatterns.lastName, ['text'], []);+ if (lastNameField) {+ const isValid = force || lastNameField.getAttribute('autocomplete') !== 'off';+ if (isValid) {+ return true;+ }+ }++ return false;+ }++ /**+ * Create a form entry.+ */+ private detectFormFields(wrapper: HTMLElement | null): FormFields {+ // Keep track of detected fields to prevent overlap+ const detectedFields: HTMLInputElement[] = [];++ // Find fields in priority order (most specific to least specific).+ const emailFields = this.findEmailField(wrapper as HTMLFormElement | null);+ if (emailFields.primary) {+ detectedFields.push(emailFields.primary);+ }+ if (emailFields.confirm) {+ detectedFields.push(emailFields.confirm);+ }++ const passwordFields = this.findPasswordField(wrapper as HTMLFormElement | null);+ if (passwordFields.primary) {+ detectedFields.push(passwordFields.primary);+ }+ if (passwordFields.confirm) {+ detectedFields.push(passwordFields.confirm);+ }++ const usernameField = this.findInputField(wrapper as HTMLFormElement | null, CombinedFieldPatterns.username, ['text'], detectedFields);+ if (usernameField) {+ detectedFields.push(usernameField);+ }++ const fullNameField = this.findInputField(wrapper as HTMLFormElement | null, CombinedFieldPatterns.fullName, ['text'], detectedFields);+ if (fullNameField) {+ detectedFields.push(fullNameField);+ }++ const firstNameField = this.findInputField(wrapper as HTMLFormElement | null, CombinedFieldPatterns.firstName, ['text'], detectedFields);+ if (firstNameField) {+ detectedFields.push(firstNameField);+ }++ const lastNameField = this.findInputField(wrapper as HTMLFormElement | null, CombinedFieldPatterns.lastName, ['text'], detectedFields);+ if (lastNameField) {+ detectedFields.push(lastNameField);+ }++ const birthdateField = this.findBirthdateFields(wrapper as HTMLFormElement | null, detectedFields);+ if (birthdateField.single) {+ detectedFields.push(birthdateField.single);+ }+ if (birthdateField.day) {+ detectedFields.push(birthdateField.day);+ }+ if (birthdateField.month) {+ detectedFields.push(birthdateField.month);+ }+ if (birthdateField.year) {+ detectedFields.push(birthdateField.year);+ }++ const genderField = this.findGenderField(wrapper as HTMLFormElement | null, detectedFields);+ if (genderField.field) {+ detectedFields.push(genderField.field as HTMLInputElement);+ }++ return {+ form: wrapper as HTMLFormElement,+ emailField: emailFields.primary,+ emailConfirmField: emailFields.confirm,+ usernameField,+ passwordField: passwordFields.primary,+ passwordConfirmField: passwordFields.confirm,+ fullNameField,+ firstNameField,+ lastNameField,+ birthdateField,+ genderField+ };+ }+}diff --git a/browser-extension/src/utils/formDetector/FormFiller.ts b/browser-extension/src/utils/formDetector/FormFiller.tsnew file mode 100644index 000000000..7ac8182dc--- /dev/null+++ b/browser-extension/src/utils/formDetector/FormFiller.ts@@ -0,0 +1,304 @@+import { Credential } from "../types/Credential";+import { FormFields } from "./types/FormFields";+import { CombinedDateOptionPatterns, CombinedGenderOptionPatterns } from "./FieldPatterns";+import { Gender } from "../generators/Identity/types/Gender";+/**+ * Class to fill the fields of a form with the given credential.+ */+export class FormFiller {+ /**+ * Constructor.+ */+ public constructor(+ private readonly form: FormFields,+ private readonly triggerInputEvents: (element: HTMLInputElement | HTMLSelectElement) => void+ ) {}++ /**+ * Fill the fields of the form with the given credential.+ * @param credential The credential to fill the form with.+ */+ public fillFields(credential: Credential): void {+ this.fillBasicFields(credential);+ this.fillBirthdateFields(credential);+ this.fillGenderFields(credential);+ }++ /**+ * Fill the basic fields of the form.+ * @param credential The credential to fill the form with.+ */+ private fillBasicFields(credential: Credential): void {+ if (this.form.usernameField) {+ this.form.usernameField.value = credential.Username;+ this.triggerInputEvents(this.form.usernameField);+ }++ if (this.form.passwordField) {+ this.form.passwordField.value = credential.Password;+ this.triggerInputEvents(this.form.passwordField);+ }++ if (this.form.passwordConfirmField) {+ this.form.passwordConfirmField.value = credential.Password;+ this.triggerInputEvents(this.form.passwordConfirmField);+ }++ if (this.form.emailField) {+ this.form.emailField.value = credential.Email;+ this.triggerInputEvents(this.form.emailField);+ }++ if (this.form.emailConfirmField) {+ this.form.emailConfirmField.value = credential.Email;+ this.triggerInputEvents(this.form.emailConfirmField);+ }++ if (this.form.fullNameField) {+ this.form.fullNameField.value = `${credential.Alias.FirstName} ${credential.Alias.LastName}`;+ this.triggerInputEvents(this.form.fullNameField);+ }++ if (this.form.firstNameField) {+ this.form.firstNameField.value = credential.Alias.FirstName;+ this.triggerInputEvents(this.form.firstNameField);+ }++ if (this.form.lastNameField) {+ this.form.lastNameField.value = credential.Alias.LastName;+ this.triggerInputEvents(this.form.lastNameField);+ }+ }++ /**+ * Fill the birthdate fields of the form.+ * @param credential The credential to fill the form with.+ */+ private fillBirthdateFields(credential: Credential): void {+ if (!credential.Alias.BirthDate) {+ return;+ }++ const birthDate = new Date(credential.Alias.BirthDate);++ if (this.form.birthdateField.single) {+ this.fillSingleBirthdateField(birthDate);+ } else {+ this.fillSeparateBirthdateFields(birthDate);+ }+ }++ /**+ * Fill the single birthdate field.+ * @param birthDate The birthdate to fill the form with.+ */+ private fillSingleBirthdateField(birthDate: Date): void {+ const day = birthDate.getDate().toString().padStart(2, '0');+ const month = (birthDate.getMonth() + 1).toString().padStart(2, '0');+ const year = birthDate.getFullYear().toString();++ const formattedDate = this.formatDateString(day, month, year);+ this.form.birthdateField.single!.value = formattedDate;+ this.triggerInputEvents(this.form.birthdateField.single!);+ }++ /**+ * Format the date string based on the format of the birthdate field.+ * @param day The day of the birthdate.+ * @param month The month of the birthdate.+ * @param year The year of the birthdate.+ * @returns The formatted date string.+ */+ private formatDateString(day: string, month: string, year: string): string {+ switch (this.form.birthdateField.format) {+ case 'dd/mm/yyyy': return `${day}/${month}/${year}`;+ case 'mm/dd/yyyy': return `${month}/${day}/${year}`;+ case 'dd-mm-yyyy': return `${day}-${month}-${year}`;+ case 'mm-dd-yyyy': return `${month}-${day}-${year}`;+ case 'yyyy-mm-dd':+ default: return `${year}-${month}-${day}`;+ }+ }++ /**+ * Fill the separate birthdate fields.+ * @param birthDate The birthdate to fill the form with.+ */+ private fillSeparateBirthdateFields(birthDate: Date): void {+ this.fillDayField(birthDate);+ this.fillMonthField(birthDate);+ this.fillYearField(birthDate);+ }++ /**+ * Fill the day field.+ * @param birthDate The birthdate to fill the form with.+ */+ private fillDayField(birthDate: Date): void {+ if (!this.form.birthdateField.day) {+ return;+ }++ const dayElement = this.form.birthdateField.day as HTMLSelectElement | HTMLInputElement;+ const dayValue = birthDate.getDate().toString().padStart(2, '0');++ if ('options' in dayElement && dayElement.options) {+ const dayOption = Array.from(dayElement.options).find(opt =>+ opt.value === dayValue ||+ opt.value === birthDate.getDate().toString() ||+ opt.text === dayValue ||+ opt.text === birthDate.getDate().toString()+ );+ if (dayOption) {+ dayElement.value = dayOption.value;+ }+ } else {+ dayElement.value = dayValue;+ }+ this.triggerInputEvents(dayElement);+ }++ /**+ * Fill the month field.+ * @param birthDate The birthdate to fill the form with.+ */+ private fillMonthField(birthDate: Date): void {+ if (!this.form.birthdateField.month) {+ return;+ }++ const monthElement = this.form.birthdateField.month as HTMLSelectElement | HTMLInputElement;+ const monthValue = (birthDate.getMonth() + 1).toString().padStart(2, '0');++ if ('options' in monthElement && monthElement.options) {+ CombinedDateOptionPatterns.months.forEach(monthNames => {+ const monthOption = Array.from(monthElement.options).find(opt =>+ opt.value === monthValue ||+ opt.value === (birthDate.getMonth() + 1).toString() ||+ opt.text === monthValue ||+ opt.text === (birthDate.getMonth() + 1).toString() ||+ opt.text.toLowerCase() === monthNames[birthDate.getMonth()].toLowerCase() ||+ opt.text.toLowerCase() === monthNames[birthDate.getMonth()].substring(0, 3).toLowerCase()+ );+ if (monthOption) {+ monthElement.value = monthOption.value;+ }+ });+ } else {+ monthElement.value = monthValue;+ }+ this.triggerInputEvents(monthElement);+ }++ /**+ * Fill the year field.+ * @param birthDate The birthdate to fill the form with.+ */+ private fillYearField(birthDate: Date): void {+ if (!this.form.birthdateField.year) {+ return;+ }++ const yearElement = this.form.birthdateField.year as HTMLSelectElement | HTMLInputElement;+ const yearValue = birthDate.getFullYear().toString();++ if ('options' in yearElement && yearElement.options) {+ const yearOption = Array.from(yearElement.options).find(opt =>+ opt.value === yearValue ||+ opt.text === yearValue+ );+ if (yearOption) {+ yearElement.value = yearOption.value;+ }+ } else {+ yearElement.value = yearValue;+ }+ this.triggerInputEvents(yearElement);+ }++ /**+ * Fill the gender fields of the form.+ * @param credential The credential to fill the form with.+ */+ private fillGenderFields(credential: Credential): void {+ switch (this.form.genderField.type) {+ case 'select':+ this.fillGenderSelect(credential.Alias.Gender);+ break;+ case 'radio':+ this.fillGenderRadio(credential.Alias.Gender);+ break;+ case 'text':+ this.fillGenderText(credential.Alias.Gender);+ break;+ }+ }++ /**+ * Fill the gender select field.+ * @param gender The gender to fill the form with.+ */+ private fillGenderSelect(gender: Gender | undefined): void {+ if (!this.form.genderField.field || !gender) {+ return;+ }++ const selectElement = this.form.genderField.field as HTMLSelectElement;+ const options = Array.from(selectElement.options);+ const genderValues = gender === Gender.Male+ ? CombinedGenderOptionPatterns.male+ : CombinedGenderOptionPatterns.female;++ const genderOption = options.find(opt =>+ genderValues.includes(opt.value.toLowerCase()) ||+ genderValues.includes(opt.text.toLowerCase())+ );++ if (genderOption) {+ selectElement.value = genderOption.value;+ this.triggerInputEvents(selectElement);+ }+ }++ /**+ * Fill the gender radio fields.+ * @param gender The gender to fill the form with.+ */+ private fillGenderRadio(gender: Gender | undefined): void {+ const radioButtons = this.form.genderField.radioButtons;+ if (!radioButtons || !gender) {+ return;+ }++ let selectedRadio: HTMLInputElement | null = null;++ if (gender === Gender.Male && radioButtons.male) {+ radioButtons.male.checked = true;+ selectedRadio = radioButtons.male;+ } else if (gender === Gender.Female && radioButtons.female) {+ radioButtons.female.checked = true;+ selectedRadio = radioButtons.female;+ } else if (gender === Gender.Other && radioButtons.other) {+ radioButtons.other.checked = true;+ selectedRadio = radioButtons.other;+ }++ if (selectedRadio) {+ this.triggerInputEvents(selectedRadio);+ }+ }++ /**+ * Fill the gender text field.+ * @param gender The gender to fill the form with.+ */+ private fillGenderText(gender: Gender | undefined): void {+ if (!this.form.genderField.field || !gender) {+ return;+ }++ const inputElement = this.form.genderField.field as HTMLInputElement;+ inputElement.value = gender;+ this.triggerInputEvents(inputElement);+ }+}diff --git a/browser-extension/src/utils/formDetector/__tests__/FormDetector.en.test.ts b/browser-extension/src/utils/formDetector/__tests__/FormDetector.en.test.tsnew file mode 100644index 000000000..72c275aad--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/FormDetector.en.test.ts@@ -0,0 +1,74 @@+import { describe, expect, it } from 'vitest';+import { FormField, testField } from './TestUtils';++describe('FormDetector English tests', () => {+ it('contains tests for English form field detection', () => {+ /**+ * This test suite uses testField() and testBirthdateFormat() helper functions+ * to test form field detection for multiple English registration forms.+ * The actual test implementations are in the helper functions.+ * This test is just to ensure the test suite is working and to satisfy the linter.+ */+ expect(true).toBe(true);+ });++ describe('English registration form 1 detection', () => {+ const htmlFile = 'en-registration-form1.html';++ testField(FormField.Email, 'login', htmlFile);+ testField(FormField.Password, 'password', htmlFile);+ });++ describe('English registration form 2 detection', () => {+ const htmlFile = 'en-registration-form2.html';++ testField(FormField.Email, 'signup-email-input', htmlFile);+ testField(FormField.FirstName, 'signup-name-input', htmlFile);+ });++ describe('English registration form 3 detection', () => {+ const htmlFile = 'en-registration-form3.html';++ testField(FormField.Email, 'email', htmlFile);+ testField(FormField.EmailConfirm, 'reenter_email', htmlFile);+ });++ describe('English registration form 4 detection', () => {+ const htmlFile = 'en-registration-form4.html';++ testField(FormField.Email, 'fbclc_userName', htmlFile);+ testField(FormField.EmailConfirm, 'fbclc_emailConf', htmlFile);+ testField(FormField.Password, 'fbclc_pwd', htmlFile);+ testField(FormField.PasswordConfirm, 'fbclc_pwdConf', htmlFile);+ testField(FormField.FirstName, 'fbclc_fName', htmlFile);+ testField(FormField.LastName, 'fbclc_lName', htmlFile);+ });++ describe('English registration form 5 detection', () => {+ const htmlFile = 'en-registration-form5.html';++ testField(FormField.Username, 'aliasvault-input-7owmnahd9', htmlFile);+ testField(FormField.Password, 'aliasvault-input-ienw3qgxv', htmlFile);+ });++ describe('English registration form 6 detection', () => {+ const htmlFile = 'en-registration-form6.html';++ testField(FormField.FirstName, 'id_first_name', htmlFile);+ testField(FormField.LastName, 'id_last_name', htmlFile);+ });++ describe('English registration form 7 detection', () => {+ const htmlFile = 'en-registration-form7.html';++ testField(FormField.FullName, 'form-group--2', htmlFile);+ testField(FormField.Email, 'form-group--4', htmlFile);+ });++ describe('English email form 1 detection', () => {+ const htmlFile = 'en-email-form1.html';++ // Assert that this test fails, because the autocomplete=off for the specified element.+ testField(FormField.Email, 'P0-0', htmlFile);+ });+});diff --git a/browser-extension/src/utils/formDetector/__tests__/FormDetector.generic.test.ts b/browser-extension/src/utils/formDetector/__tests__/FormDetector.generic.test.tsnew file mode 100644index 000000000..aec0a5798--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/FormDetector.generic.test.ts@@ -0,0 +1,44 @@+import { describe, it, expect } from 'vitest';+import { createTestDom } from './TestUtils';+import { FormDetector } from '../FormDetector';++describe('FormDetector generic tests', () => {+ describe('Invalid form not detected as login form 1', () => {+ const htmlFile = 'invalid-form1.html';++ it('should not detect any forms', () => {+ const dom = createTestDom(htmlFile);+ const document = dom.window.document;+ const formDetector = new FormDetector(document);+ const form = formDetector.containsLoginForm();+ expect(form).toBe(false);+ });+ });++ describe('Invalid form not detected as login form 2', () => {+ const htmlFile = 'invalid-form2.html';++ it('should not detect any forms even when clicking search input', () => {+ const dom = createTestDom(htmlFile);+ const document = dom.window.document;++ // Pass the search input as the clicked element to test if it's still not detected as a login form.+ const searchInput = document.getElementById('js-issues-search');+ const formDetector = new FormDetector(document, searchInput as HTMLElement);+ const form = formDetector.containsLoginForm();+ expect(form).toBe(false);+ });+ });++ describe('Form with autocomplete="off" not detected', () => {+ const htmlFile = 'autocomplete-off.html';++ it('should not detect form with autocomplete="off" on email field', () => {+ const dom = createTestDom(htmlFile);+ const document = dom.window.document;+ const formDetector = new FormDetector(document);+ const form = formDetector.containsLoginForm();+ expect(form).toBe(false);+ });+ });+});diff --git a/browser-extension/src/utils/formDetector/__tests__/FormDetector.nl.test.ts b/browser-extension/src/utils/formDetector/__tests__/FormDetector.nl.test.tsnew file mode 100644index 000000000..647ee59da--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/FormDetector.nl.test.ts@@ -0,0 +1,108 @@+import { describe, it, expect } from 'vitest';+import { FormField, testField, testBirthdateFormat } from './TestUtils';++describe('FormDetector Dutch tests', () => {+ it('contains tests for Dutch form field detection', () => {+ /**+ * This test suite uses testField() and testBirthdateFormat() helper functions+ * to test form field detection for multiple Dutch registration forms.+ * The actual test implementations are in the helper functions.+ * This test is just to ensure the test suite is working and to satisfy the linter.+ */+ expect(true).toBe(true);+ });++ describe('Dutch registration form detection', () => {+ const htmlFile = 'nl-registration-form1.html';++ testField(FormField.LastName, 'cpContent_txtAchternaam', htmlFile);+ testField(FormField.Email, 'cpContent_txtEmail', htmlFile);+ testField(FormField.Password, 'cpContent_txtWachtwoord', htmlFile);+ testField(FormField.PasswordConfirm, 'cpContent_txtWachtwoord2', htmlFile);+ });++ describe('Dutch registration form 2 detection', () => {+ const htmlFile = 'nl-registration-form2.html';++ testField(FormField.Username, 'register-username', htmlFile);+ testField(FormField.Email, 'register-email', htmlFile);+ testField(FormField.Password, 'register-password', htmlFile);++ testField(FormField.BirthDay, 'register-day', htmlFile);+ testField(FormField.BirthMonth, 'register-month', htmlFile);+ testField(FormField.BirthYear, 'register-year', htmlFile);++ testField(FormField.GenderMale, 'man', htmlFile);+ testField(FormField.GenderFemale, 'vrouw', htmlFile);+ testField(FormField.GenderOther, 'iets', htmlFile);+ });++ describe('Dutch registration form 3 detection', () => {+ const htmlFile = 'nl-registration-form3.html';++ testField(FormField.FirstName, 'firstName', htmlFile);+ testField(FormField.LastName, 'lastName', htmlFile);+ testField(FormField.Password, 'password', htmlFile);++ testField(FormField.BirthDate, 'date', htmlFile);+ testBirthdateFormat('dd-mm-yyyy', htmlFile, 'date');+ testField(FormField.GenderMale, 'gender1', htmlFile);+ testField(FormField.GenderFemale, 'gender2', htmlFile);+ testField(FormField.GenderOther, 'gender3', htmlFile);+ });++ describe('Dutch registration form 4 detection', () => {+ const htmlFile = 'nl-registration-form4.html';++ testField(FormField.Email, 'EmailAddress', htmlFile);+ });++ describe('Dutch registration form 5 detection', () => {+ const htmlFile = 'nl-registration-form5.html';++ testField(FormField.Email, 'input_25_5', htmlFile);+ testField(FormField.Gender, 'input_25_13', htmlFile);+ testField(FormField.FirstName, 'input_25_14', htmlFile);+ testField(FormField.LastName, 'input_25_15', htmlFile);+ testField(FormField.BirthDate, 'input_25_10', htmlFile);+ testBirthdateFormat('dd/mm/yyyy', htmlFile, 'input_25_10');+ });++ describe('Dutch registration form 6 detection', () => {+ const htmlFile = 'nl-registration-form6.html';++ testField(FormField.Email, 'field18478', htmlFile);+ testField(FormField.FirstName, 'field18479', htmlFile);+ testField(FormField.LastName, 'field18486', htmlFile);+ });++ describe('Dutch registration form 7 detection', () => {+ const htmlFile = 'nl-registration-form7.html';++ testField(FormField.Email, 'Form_EmailAddress', htmlFile);+ testField(FormField.FirstName, 'Form_Firstname', htmlFile);+ testField(FormField.LastName, 'Form_Lastname', htmlFile);+ testField(FormField.Password, 'Form_Password', htmlFile);+ testField(FormField.PasswordConfirm, 'Form_RepeatPassword', htmlFile);+ testField(FormField.BirthDay, 'Form.Birthdate_d', htmlFile);+ testField(FormField.BirthMonth, 'Form.Birthdate_m', htmlFile);+ testField(FormField.BirthYear, 'Form.Birthdate_y', htmlFile);+ });++ describe('Dutch registration form 8 detection', () => {+ const htmlFile = 'nl-registration-form8.html';++ testField(FormField.FirstName, 'aliasvault-input-name', htmlFile);+ testField(FormField.Email, 'aliasvault-input-email', htmlFile);+ testField(FormField.LastName, 'aliasvault-input-lastname', htmlFile);+ });++ describe('Dutch registration form 9 detection', () => {+ const htmlFile = 'nl-registration-form9.html';++ testField(FormField.Username, 'user_username', htmlFile);+ testField(FormField.Email, 'user_email_address', htmlFile);+ testField(FormField.Password, 'user_password', htmlFile);+ testField(FormField.PasswordConfirm, 'user_password_confirmation', htmlFile);+ });+});diff --git a/browser-extension/src/utils/formDetector/__tests__/FormFiller.en.test.ts b/browser-extension/src/utils/formDetector/__tests__/FormFiller.en.test.tsnew file mode 100644index 000000000..e414d1665--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/FormFiller.en.test.ts@@ -0,0 +1,62 @@+import { describe, it, expect, beforeEach, vi } from 'vitest';+import { FormFiller } from '../FormFiller';+import { JSDOM } from 'jsdom';+import { setupTestDOM, createMockFormFields, createMockCredential, wasTriggerCalledFor, createDateSelects } from './TestUtils';+import { FormFields } from '../types/FormFields';+import { Credential } from '../../types/Credential';++const { window } = new JSDOM('<!DOCTYPE html>');+global.HTMLSelectElement = window.HTMLSelectElement;+global.HTMLInputElement = window.HTMLInputElement;++describe('FormFiller English', () => {+ let mockTriggerInputEvents: ReturnType<typeof vi.fn>;+ let formFields: FormFields;+ let formFiller: FormFiller;+ let mockCredential: Credential;+ let document: Document;++ beforeEach(() => {+ const { document: doc } = setupTestDOM();+ document = doc;+ mockTriggerInputEvents = vi.fn();+ formFields = createMockFormFields(document);+ mockCredential = createMockCredential();+ formFiller = new FormFiller(formFields, mockTriggerInputEvents);+ });++ describe('fillBirthdateFields with English month names', () => {+ it('should fill separate fields with English month names', () => {+ const { daySelect, monthSelect, yearSelect } = createDateSelects(document);++ // Add month options with English month names+ const months = [+ 'January', 'February', 'March', 'April', 'May', 'June',+ 'July', 'August', 'September', 'October', 'November', 'December'+ ];+ months.forEach((month, _) => {+ const option = document.createElement('option');+ option.value = month;+ option.text = month;+ monthSelect.appendChild(option);+ });++ formFields.birthdateField = {+ single: null,+ format: 'dd/mm/yyyy',+ day: daySelect as unknown as HTMLInputElement,+ month: monthSelect as unknown as HTMLInputElement,+ year: yearSelect as unknown as HTMLInputElement+ };++ formFiller.fillFields(mockCredential);++ expect(daySelect.value).toBe('03');+ expect(monthSelect.value).toBe('February');+ expect(yearSelect.value).toBe('1991');+ expect(wasTriggerCalledFor(mockTriggerInputEvents, daySelect)).toBe(true);+ expect(wasTriggerCalledFor(mockTriggerInputEvents, monthSelect)).toBe(true);+ expect(wasTriggerCalledFor(mockTriggerInputEvents, yearSelect)).toBe(true);+ });+ });+});\ No newline at end of filediff --git a/browser-extension/src/utils/formDetector/__tests__/FormFiller.generic.test.ts b/browser-extension/src/utils/formDetector/__tests__/FormFiller.generic.test.tsnew file mode 100644index 000000000..ea5622aa9--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/FormFiller.generic.test.ts@@ -0,0 +1,182 @@+import { describe, it, expect, beforeEach, vi } from 'vitest';+import { FormFiller } from '../FormFiller';+import { JSDOM } from 'jsdom';+import { setupTestDOM, createMockFormFields, createMockCredential, wasTriggerCalledFor, createDateSelects } from './TestUtils';+import { FormFields } from '../types/FormFields';+import { Credential } from '../../types/Credential';++const { window } = new JSDOM('<!DOCTYPE html>');+global.HTMLSelectElement = window.HTMLSelectElement;+global.HTMLInputElement = window.HTMLInputElement;++describe('FormFiller', () => {+ let mockTriggerInputEvents: ReturnType<typeof vi.fn>;+ let formFields: FormFields;+ let formFiller: FormFiller;+ let mockCredential: Credential;+ let document: Document;++ beforeEach(() => {+ const { document: doc } = setupTestDOM();+ document = doc;+ mockTriggerInputEvents = vi.fn();+ formFields = createMockFormFields(document);+ mockCredential = createMockCredential();+ formFiller = new FormFiller(formFields, mockTriggerInputEvents);+ });++ describe('fillBasicFields', () => {+ it('should fill username', () => {+ formFiller.fillFields(mockCredential);++ expect(formFields.usernameField?.value).toBe('testuser');+ expect(wasTriggerCalledFor(mockTriggerInputEvents, formFields.usernameField)).toBe(true);+ });++ it('should fill email and confirmation fields', () => {+ formFields.emailConfirmField = document.createElement('input');++ formFiller.fillFields(mockCredential);++ expect(formFields.emailField?.value).toBe('[email protected]');+ expect(formFields.emailConfirmField?.value).toBe('[email protected]');+ expect(wasTriggerCalledFor(mockTriggerInputEvents, formFields.emailField)).toBe(true);+ expect(wasTriggerCalledFor(mockTriggerInputEvents, formFields.emailConfirmField)).toBe(true);+ });++ it('should fill password and confirmation fields', () => {+ formFields.passwordConfirmField = document.createElement('input');++ formFiller.fillFields(mockCredential);++ expect(formFields.passwordField?.value).toBe('testpass');+ expect(formFields.passwordConfirmField?.value).toBe('testpass');+ expect(wasTriggerCalledFor(mockTriggerInputEvents, formFields.passwordField)).toBe(true);+ expect(wasTriggerCalledFor(mockTriggerInputEvents, formFields.passwordConfirmField)).toBe(true);+ });++ it('should fill name fields correctly', () => {+ formFiller.fillFields(mockCredential);++ expect(formFields.fullNameField?.value).toBe('John Doe');+ expect(formFields.firstNameField?.value).toBe('John');+ expect(formFields.lastNameField?.value).toBe('Doe');+ expect(wasTriggerCalledFor(mockTriggerInputEvents, formFields.fullNameField)).toBe(true);+ expect(wasTriggerCalledFor(mockTriggerInputEvents, formFields.firstNameField)).toBe(true);+ expect(wasTriggerCalledFor(mockTriggerInputEvents, formFields.lastNameField)).toBe(true);+ });+ });++ describe('fillBirthdateFields', () => {+ it('should fill single birthdate field with correct format', () => {+ formFiller.fillFields(mockCredential);++ expect(formFields.birthdateField.single?.value).toBe('1991-02-03');+ expect(wasTriggerCalledFor(mockTriggerInputEvents, formFields.birthdateField.single)).toBe(true);+ });++ it('should handle different date formats (mm/dd/yyyy)', () => {+ formFields.birthdateField.format = 'mm/dd/yyyy';+ formFiller.fillFields(mockCredential);+ expect(formFields.birthdateField.single?.value).toBe('02/03/1991');+ });++ it('should handle different date formats (dd/mm/yyyy)', () => {+ formFields.birthdateField.format = 'dd/mm/yyyy';+ formFiller.fillFields(mockCredential);+ expect(formFields.birthdateField.single?.value).toBe('03/02/1991');+ });++ it('should handle different date formats (dd-mm-yyyy)', () => {+ formFields.birthdateField.format = 'dd-mm-yyyy';+ formFiller.fillFields(mockCredential);+ expect(formFields.birthdateField.single?.value).toBe('03-02-1991');+ });++ it('should handle different date formats (mm-dd-yyyy)', () => {+ formFields.birthdateField.format = 'mm-dd-yyyy';+ formFiller.fillFields(mockCredential);+ expect(formFields.birthdateField.single?.value).toBe('02-03-1991');+ });++ it('should fill separate day/month/year select fields', () => {+ const { daySelect, monthSelect, yearSelect } = createDateSelects(document);++ // Add month options (1-12)+ for (let i = 1; i <= 12; i++) {+ const option = document.createElement('option');+ const value = i.toString().padStart(2, '0');+ option.value = value;+ option.text = value;+ monthSelect.appendChild(option);+ }++ formFields.birthdateField = {+ single: null,+ format: 'dd/mm/yyyy',+ day: daySelect as unknown as HTMLInputElement,+ month: monthSelect as unknown as HTMLInputElement,+ year: yearSelect as unknown as HTMLInputElement+ };++ formFiller.fillFields(mockCredential);++ expect(daySelect.value).toBe('03');+ expect(monthSelect.value).toBe('02');+ expect(yearSelect.value).toBe('1991');+ expect(wasTriggerCalledFor(mockTriggerInputEvents, daySelect)).toBe(true);+ expect(wasTriggerCalledFor(mockTriggerInputEvents, monthSelect)).toBe(true);+ expect(wasTriggerCalledFor(mockTriggerInputEvents, yearSelect)).toBe(true);+ });+ });++ describe('fillGenderFields', () => {+ it('should fill gender select field', () => {+ const selectElement = document.createElement('select');++ // Add options using createElement+ const maleOption = document.createElement('option');+ maleOption.value = 'm';+ maleOption.text = 'Male';+ selectElement.add(maleOption);++ const femaleOption = document.createElement('option');+ femaleOption.value = 'f';+ femaleOption.text = 'Female';+ selectElement.add(femaleOption);++ formFields.genderField = {+ type: 'select',+ field: selectElement+ };++ formFiller.fillFields(mockCredential);++ expect(selectElement.value).toBe('m');+ expect(wasTriggerCalledFor(mockTriggerInputEvents, selectElement)).toBe(true);+ });++ it('should handle radio button gender fields', () => {+ const maleRadio = document.createElement('input');+ maleRadio.type = 'radio';+ const femaleRadio = document.createElement('input');+ femaleRadio.type = 'radio';++ formFields.genderField = {+ type: 'radio',+ field: null,+ radioButtons: {+ male: maleRadio,+ female: femaleRadio,+ other: null+ }+ };++ formFiller.fillFields(mockCredential);++ expect(maleRadio.checked).toBe(true);+ expect(femaleRadio.checked).toBe(false);+ expect(wasTriggerCalledFor(mockTriggerInputEvents, maleRadio)).toBe(true);+ });+ });+});\ No newline at end of filediff --git a/browser-extension/src/utils/formDetector/__tests__/FormFiller.nl.test.ts b/browser-extension/src/utils/formDetector/__tests__/FormFiller.nl.test.tsnew file mode 100644index 000000000..beea1d909--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/FormFiller.nl.test.ts@@ -0,0 +1,62 @@+import { describe, it, expect, beforeEach, vi } from 'vitest';+import { FormFiller } from '../FormFiller';+import { JSDOM } from 'jsdom';+import { setupTestDOM, createMockFormFields, createMockCredential, wasTriggerCalledFor, createDateSelects } from './TestUtils';+import { FormFields } from '../types/FormFields';+import { Credential } from '../../types/Credential';++const { window } = new JSDOM('<!DOCTYPE html>');+global.HTMLSelectElement = window.HTMLSelectElement;+global.HTMLInputElement = window.HTMLInputElement;++describe('FormFiller Dutch', () => {+ let mockTriggerInputEvents: ReturnType<typeof vi.fn>;+ let formFields: FormFields;+ let formFiller: FormFiller;+ let mockCredential: Credential;+ let document: Document;++ beforeEach(() => {+ const { document: doc } = setupTestDOM();+ document = doc;+ mockTriggerInputEvents = vi.fn();+ formFields = createMockFormFields(document);+ mockCredential = createMockCredential();+ formFiller = new FormFiller(formFields, mockTriggerInputEvents);+ });++ describe('fillBirthdateFields with Dutch month names', () => {+ it('should fill separate fields with Dutch month names', () => {+ const { daySelect, monthSelect, yearSelect } = createDateSelects(document);++ // Add month options with Dutch month names+ const months = [+ 'Januari', 'Februari', 'Maart', 'April', 'Mei', 'Juni',+ 'Juli', 'Augustus', 'September', 'Oktober', 'November', 'December'+ ];+ months.forEach((month, _) => {+ const option = document.createElement('option');+ option.value = month;+ option.text = month;+ monthSelect.appendChild(option);+ });++ formFields.birthdateField = {+ single: null,+ format: 'dd/mm/yyyy',+ day: daySelect as unknown as HTMLInputElement,+ month: monthSelect as unknown as HTMLInputElement,+ year: yearSelect as unknown as HTMLInputElement+ };++ formFiller.fillFields(mockCredential);++ expect(daySelect.value).toBe('03');+ expect(monthSelect.value).toBe('Februari');+ expect(yearSelect.value).toBe('1991');+ expect(wasTriggerCalledFor(mockTriggerInputEvents, daySelect)).toBe(true);+ expect(wasTriggerCalledFor(mockTriggerInputEvents, monthSelect)).toBe(true);+ expect(wasTriggerCalledFor(mockTriggerInputEvents, yearSelect)).toBe(true);+ });+ });+});\ No newline at end of filediff --git a/browser-extension/src/utils/formDetector/__tests__/TestUtils.ts b/browser-extension/src/utils/formDetector/__tests__/TestUtils.tsnew file mode 100644index 000000000..dfe7cb745--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/TestUtils.ts@@ -0,0 +1,228 @@+import { FormDetector } from '../FormDetector';+import { readFileSync } from 'fs';+import { join } from 'path';+import { it, expect, vi } from 'vitest';+import { JSDOM, DOMWindow } from 'jsdom';+import { FormFields } from '../types/FormFields';+import { Credential } from '../../types/Credential';+import { Gender } from '../../generators/Identity/types/Gender';++export enum FormField {+ Username = 'username',+ FirstName = 'firstName',+ LastName = 'lastName',+ FullName = 'fullName',+ Email = 'email',+ EmailConfirm = 'emailConfirm',+ Password = 'password',+ PasswordConfirm = 'passwordConfirm',+ BirthDate = 'birthdate',+ BirthDateFormat = 'birthdateFormat',+ BirthDay = 'birthdateDay',+ BirthMonth = 'birthdateMonth',+ BirthYear = 'birthdateYear',+ Gender = 'gender',+ GenderMale = 'genderMale',+ GenderFemale = 'genderFemale',+ GenderOther = 'genderOther'+}++/**+ * Create a JSDOM instance for a test HTML file that can be used to provide as+ * input to the form detector logic.+ */+export const createTestDom = (htmlFile: string) : JSDOM => {+ const html = loadTestHtml(htmlFile);+ return new JSDOM(html, {+ url: 'http://localhost',+ runScripts: 'dangerously',+ resources: 'usable'+ });+};++/**+ * Helper function to test field detection+ */+export const testField = (fieldName: FormField, elementId: string, htmlFile: string) : void => {+ it(`should detect ${fieldName} field`, () => {+ const { document, result } = setupFormTest(htmlFile, elementId);++ // First verify the test element exists+ const expectedElement = document.getElementById(elementId);+ if (!expectedElement) {+ throw new Error(`Test setup failed: Element with id "${elementId}" not found in test HTML. Check if the element is present in the test HTML file: ${htmlFile}`);+ }++ // Handle birthdate fields differently+ if (fieldName === FormField.BirthDate) {+ expect(result.birthdateField.single).toBe(expectedElement);+ } else if (fieldName === FormField.BirthDay) {+ expect(result.birthdateField.day).toBe(expectedElement);+ } else if (fieldName === FormField.BirthMonth) {+ expect(result.birthdateField.month).toBe(expectedElement);+ } else if (fieldName === FormField.BirthYear) {+ expect(result.birthdateField.year).toBe(expectedElement);+ // Handle gender field differently+ } else if (fieldName === FormField.Gender) {+ expect(result.genderField.field).toBe(expectedElement);+ } else if (fieldName === FormField.GenderMale) {+ expect(result.genderField.radioButtons?.male).toBe(expectedElement);+ } else if (fieldName === FormField.GenderFemale) {+ expect(result.genderField.radioButtons?.female).toBe(expectedElement);+ } else if (fieldName === FormField.GenderOther) {+ expect(result.genderField.radioButtons?.other).toBe(expectedElement);+ // Handle default fields+ } else {+ const fieldKey = `${fieldName}Field` as keyof typeof result;+ expect(result[fieldKey]).toBeDefined();+ expect(result[fieldKey]).toBe(expectedElement);+ }+ });+};++/**+ * Test the birthdate format.+ */+export const testBirthdateFormat = (expectedFormat: string, htmlFile: string, focusedElementId: string) : void => {+ it('should detect correct birthdate format', () => {+ const { result } = setupFormTest(htmlFile, focusedElementId);+ expect(result.birthdateField.format).toBe(expectedFormat);+ });+};++/**+ * Load a test HTML file.+ */+const loadTestHtml = (filename: string): string => {+ return readFileSync(join(__dirname, 'test-forms', filename), 'utf-8');+};++/**+ * Set up a form detection test.+ */+const setupFormTest = (htmlFile: string, focusedElementId: string) : { document: Document, result: FormFields | null } => {+ const html = loadTestHtml(htmlFile);+ const dom = new JSDOM(html, {+ url: 'http://localhost',+ runScripts: 'dangerously',+ resources: 'usable'+ });+ const document = dom.window.document;++ // Set focus on specified element if provided+ let focusedElement = document.getElementById(focusedElementId);+ if (!focusedElement) {+ throw new Error(`Focus element with id "${focusedElementId}" not found in test HTML`);+ }++ // Create a new form detector with the focused element.+ const formDetector = new FormDetector(document, focusedElement);+ const result = formDetector.getForm();+ return { document, result };+};++/**+ * Setup a test DOM to be used in unit test context.+ */+export const setupTestDOM = () : { window: DOMWindow, document: Document } => {+ const dom = new JSDOM('<!DOCTYPE html><html><body></body></html>', {+ url: 'http://localhost',+ storageQuota: 10000000+ });+ const window = dom.window;+ const document = window.document;++ // Mock localStorage+ const localStorageMock = {+ getItem: vi.fn(),+ setItem: vi.fn(),+ clear: vi.fn(),+ removeItem: vi.fn(),+ length: 0,+ key: vi.fn(),+ };+ Object.defineProperty(window, 'localStorage', { value: localStorageMock });++ return { window, document };+};++/**+ * Create a mock form fields object with dummy form element instances.+ */+export const createMockFormFields = (document: Document): FormFields => ({+ form: document.createElement('form'),+ usernameField: document.createElement('input'),+ passwordField: document.createElement('input'),+ passwordConfirmField: document.createElement('input'),+ emailField: document.createElement('input'),+ emailConfirmField: document.createElement('input'),+ fullNameField: document.createElement('input'),+ firstNameField: document.createElement('input'),+ lastNameField: document.createElement('input'),+ birthdateField: {+ single: document.createElement('input'),+ format: 'yyyy-mm-dd',+ day: null,+ month: null,+ year: null+ },+ genderField: {+ type: 'select',+ field: document.createElement('select')+ }+});++/**+ * Create a mock credential object with dummy values.+ */+export const createMockCredential = (): Credential => ({+ Id: '123',+ Username: 'testuser',+ Password: 'testpass',+ Email: '[email protected]',+ ServiceName: 'Test Service',+ Alias: {+ FirstName: 'John',+ LastName: 'Doe',+ BirthDate: '1991-02-03',+ Gender: Gender.Male+ }+});++/**+ * Create date select elements.+ */+export const createDateSelects = (document: Document) : { daySelect: HTMLSelectElement, monthSelect: HTMLSelectElement, yearSelect: HTMLSelectElement } => {+ const daySelect = document.createElement('select');+ const monthSelect = document.createElement('select');+ const yearSelect = document.createElement('select');++ // Add day options (1-31)+ for (let i = 1; i <= 31; i++) {+ const option = document.createElement('option');+ const value = i.toString().padStart(2, '0');+ option.value = value;+ option.text = value;+ daySelect.appendChild(option);+ }++ // Add year options (1900-2024)+ for (let i = 1900; i <= 2024; i++) {+ const option = document.createElement('option');+ option.value = i.toString();+ option.text = i.toString();+ yearSelect.appendChild(option);+ }++ return { daySelect, monthSelect, yearSelect };+};++/**+ * Check if the trigger input event was called for a specific field.+ */+export const wasTriggerCalledFor = (mockTriggerInputEvents: ReturnType<typeof vi.fn>, field: HTMLElement | null): boolean => {+ if (!field) {+ return false;+ }+ return mockTriggerInputEvents.mock.calls.some(call => call[0] === field);+};diff --git a/browser-extension/src/utils/formDetector/__tests__/test-forms/autocomplete-off.html b/browser-extension/src/utils/formDetector/__tests__/test-forms/autocomplete-off.htmlnew file mode 100644index 000000000..231e598da--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/test-forms/autocomplete-off.html@@ -0,0 +1,15 @@+<main class="css-qg5f0b"><header><h1 class="css-1tfp4pj">Create your account</h1></header><section class="css-t9ru4u"><form method="post" action="/register?componentEventParams=componentType%3Didentityauthentication%26componentId%3Dguardian_signin_header&returnUrl" data-testid="main-form" class="css-1pw6os9"><div id="recaptcha" class="g-recaptcha css-wyp7vc"><div class="grecaptcha-badge" data-style="bottomright" style="width: 256px; height: 60px; display: block; transition: right 0.3s; position: fixed; bottom: 14px; right: -186px; box-shadow: gray 0px 0px 5px; border-radius: 2px; overflow: hidden;"><div class="grecaptcha-logo"></div><div class="grecaptcha-error"></div><textarea id="g-recaptcha-response" name="g-recaptcha-response" class="g-recaptcha-response" style="width: 250px; height: 40px; border: 1px solid rgb(193, 193, 193); margin: 10px 25px; padding: 0px; resize: none; display: none;"></textarea></div></div><input type="hidden" name="_csrf" value="JQefOI4bd9Rd91s8TaOBEacBoqnZ56ht_sgm6T6wOMSdu0hx0eluksj9fviOzBzmQUcBotU4NKcfGxuQ2cVIfw"><input type="hidden" name="_csrfPageUrl"><input type="hidden" name="ref" value="https://profile.theguardian.com/register/email"><input type="hidden" name="refViewId" value="m6qgqwadrjxge8ow8pnc"><div><label for="P0-0" class="css-0"><div class="css-1daa38r">Email </div></label><div style="position: relative; display: inline-block; width: 100%;"><input type="email" id="P0-0" aria-required="true" aria-invalid="false" aria-describedby="" required="" name="email" autocomplete="off" class="css-l9vrwo" style="width: 428px; display: inline-block;"><div class="aliasvault-input-icon" style="+ display: flex;+ align-items: center;+ justify-content: center;+ position: absolute;+ right: 8px;+ top: 8px;+ margin: auto;+ cursor: pointer;+ width: 20px;+ height: 20px;+ z-index: 999999;+">+ <img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MDAgNTAwIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA1MDAgNTAwIiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJtNDU5Ljg3IDI5NC45NWMwLjAxNjIwNSA1LjQwMDUgMC4wMzI0MSAxMC44MDEtMC4zNTAyMiAxNi44NzMtMS4xMTEgNi4zMzkyLTEuMTk0MSAxMi4xNzMtMi42MzUxIDE3LjY0OS0xMC45MjIgNDEuNTA4LTM2LjczMSA2OS40ODEtNzcuMzUxIDgzLjQwOC03LjIxNTcgMi40NzM5LTE0Ljk3MiAzLjM3MDItMjIuNDc5IDQuOTk1LTIzLjYyOSAwLjA0MjIwNS00Ny4yNTcgMC4xMTQ1My03MC44ODYgMC4xMjAyNy00Ni43NjIgMC4wMTEzMjItOTMuNTIzLTAuMDE0MTYtMTQwLjk1LTAuNDM0MTEtOC41OS0yLjAwMjQtMTYuNzY2LTIuODM1Mi0yNC4zOTgtNS4zMzI2LTIxLjU5NS03LjA2NjYtMzkuNTIzLTE5LjY1Ni01My43MDgtMzcuNTUyLTEwLjIyNy0xMi45MDMtMTcuNTc5LTI3LjE3LTIxLjI4LTQzLjIyMS0xLjQ3NS02LjM5NjctMi40NzExLTEyLjkwNC0zLjY4NTItMTkuMzYxLTAuMDUxODQ5LTUuNzQ3LTAuMTAzNy0xMS40OTQgMC4yNjkxNS0xNy44ODYgNC4xNTktNDIuOTczIDI3LjY4LTcxLjYzOCA2My41NjItOTIuMTUzIDAtMC43MDc2MS0wLjAwMTk2MS0xLjY5ODggMy4xMmUtNCAtMi42OSAwLjAyMjQ4NC05LjgyOTMtMS4zMDcxLTE5Ljg5NCAwLjM1NjY0LTI5LjQzOCAzLjIzOTEtMTguNTc5IDExLjA4LTM1LjI3MiAyMy43NjMtNDkuNzczIDEyLjA5OC0xMy44MzIgMjYuNDU3LTIzLjk4OSA0My42MDktMzAuMDI5IDcuODEzLTIuNzUxMiAxNi4xNC00LjA0MTcgMjQuMjM0LTUuOTk0OCA3LjM5Mi0wLjAyNTczNCAxNC43ODQtMC4wNTE0NiAyMi44MzUgMC4zMjI1MyA0LjE5NTkgMC45NTM5MiA3Ljc5NDYgMS4yNTM4IDExLjI1OCAyLjEwNTMgMTcuMTYgNC4yMTkyIDMyLjI4NyAxMi4xNzYgNDUuNDY5IDI0LjEwNCAyLjI1NTggMi4wNDExIDQuMzcyIDYuNjI0MSA5LjYyMSAzLjg2OCAxNi44MzktOC44NDE5IDM0LjcxOC0xMS41OTcgNTMuNjAzLTguNTk0IDE2Ljc5MSAyLjY2OTkgMzEuNjAyIDkuNDMwOCA0NC4yMzYgMjAuNjM2IDExLjUzMSAxMC4yMjcgMTkuODQgMjIuODQxIDI1LjM5MyAzNy4yMzYgNi4zNDM2IDE2LjQ0NSAxMC4zODkgMzMuMTYzIDYuMDc5OCA0OS4zODkgNy45NTg3IDguOTMyMSAxNS44MDcgMTYuNzA0IDIyLjQyMSAyNS40MTQgOS4xNjIgMTIuMDY1IDE1LjMzIDI1Ljc0NiAxOC4xNDQgNDAuNzc2IDAuOTcwNDYgNS4xODQ4IDEuOTExMSAxMC4zNzUgMi44NjU0IDE1LjU2M20tNzEuNTk3IDcxLjAxMmM1LjU2MTUtNS4yMjg0IDEyLjAwMi05Ljc5ODYgMTYuNTA4LTE1LjgxNyAxMC40NzQtMTMuOTkyIDE0LjMzMy0yOS45MTYgMTEuMjg4LTQ3LjQ0Ni0yLjI0OTYtMTIuOTUtOC4xOTczLTI0LjA3Ni0xNy4yNDMtMzMuMDYzLTEyLjc0Ni0xMi42NjMtMjguODY1LTE4LjYxNC00Ni43ODYtMTguNTY5LTY5LjkxMiAwLjE3NzEyLTEzOS44MiAwLjU2ODMxLTIwOS43NCAwLjk2MTc2LTE1LjkyMiAwLjA4OTU5OS0yOS4xNjggNy40MjA5LTM5LjY4NSAxOC4yOTYtMTQuNDUgMTQuOTQ0LTIwLjQwOCAzMy4zNDMtMTYuNjU1IDU0LjM2OCAyLjI3NjMgMTIuNzU0IDguMjE2NyAyMy43NDggMTcuMTU4IDMyLjY2IDEzLjI5OSAxMy4yNTUgMzAuMDk3IDE4LjY1MyA0OC43MjggMTguNjUxIDU5LjMyMS0wLjAwNTE4OCAxMTguNjQgMC4wNDIzNTggMTc3Ljk2LTAuMDQ2NjAxIDkuNTkxMi0wLjAxNDM3NCAxOS4xODEtMC44NjU4OCAyOC43NzMtMC44ODg1NSAxMC42NDktMC4wMjUxNDYgMTkuOTc4LTMuODI1IDI5LjY4Ny05LjEwNzR6IiBmaWxsPSIjRUVDMTcwIi8+CjxwYXRoIGQ9Im0xNjIuNzcgMjkzYzE1LjY1NCA0LjM4ODMgMjAuNjI3IDIyLjk2NyAxMC4zMDQgMzQuOTgtNS4zMTA0IDYuMTc5NS0xNC44MTcgOC4zMjA4LTI0LjI3OCA1LjA0NzItNy4wNzIzLTIuNDQ3MS0xMi4zMzItMTAuMzYyLTEyLjg3Ni0xNy45MzMtMS4wNDUxLTE0LjU0MiAxMS4wODktMjMuMTc2IDIxLjcwNS0yMy4wNDYgMS41Nzk0IDAuMDE5Mjg3IDMuMTUxNyAwLjYxNTY2IDUuMTQ2MSAwLjk1MTg0eiIgZmlsbD0iI0VFQzE3MCIvPgo8cGF0aCBkPSJtMjI3LjE4IDI5My42NGM3Ljg0OTkgMi4zOTczIDExLjkzOCA4LjIxNDMgMTMuNTI0IDE1LjA3NyAxLjg1OTEgOC4wNDM5LTAuNDQ4MTcgMTUuNzA2LTcuMTU4OCAyMS4xMjEtNi43NjMzIDUuNDU3Mi0xNC40MTcgNi44Nzk0LTIyLjU3OCAzLjE0ODMtOC4yOTcyLTMuNzkzMy0xMi44MzYtMTAuODQ5LTEyLjczNi0xOS40MzggMC4xNjg3LTE0LjQ5NyAxNC4xMy0yNS4zNjggMjguOTQ4LTE5LjkwOHoiIGZpbGw9IiNFRUMxNzAiLz4KPHBhdGggZD0ibTI2MS41NyAzMTkuMDdjLTIuNDk1LTE0LjQxOCA0LjY4NTMtMjIuNjAzIDE0LjU5Ni0yNi4xMDggOS44OTQ1LTMuNDk5NSAyMy4xODEgMy40MzAzIDI2LjI2NyAxMy43NzkgNC42NTA0IDE1LjU5MS03LjE2NTEgMjkuMDY0LTIxLjY2NSAyOC4xNjEtOC41MjU0LTAuNTMwODgtMTcuMjAyLTYuNTA5NC0xOS4xOTgtMTUuODMxeiIgZmlsbD0iI0VFQzE3MCIvPgo8cGF0aCBkPSJtMzM2LjkxIDMzMy40MWMtOS4wMTc1LTQuMjQ5MS0xNS4zMzctMTQuMzQ5LTEzLjgyOS0yMS42ODIgMy4wODI1LTE0Ljk4OSAxMy4zNDEtMjAuMzA0IDIzLjAxOC0xOS41ODUgMTAuNjUzIDAuNzkxNDEgMTcuOTMgNy40MDcgMTkuNzY1IDE3LjU0NyAxLjk1ODggMTAuODI0LTQuMTE3MSAxOS45MzktMTMuNDk0IDIzLjcwMy01LjI3MiAyLjExNjItMTAuMDkxIDEuNTA4Ni0xNS40NiAwLjAxNzg4M3oiIGZpbGw9IiNFRUMxNzAiLz4KPC9zdmc+" style="width: 100%; height: 100%;">+</div></div></div><div class="css-sh1xpo"><label id="6031_description" class="css-141740"><div class="css-wqo2kt"><span class="css-1yorkrx">Saturday Edition newsletter</span><span class="css-o3hxza">An exclusive email highlighting the week’s best Guardian journalism from the editor-in-chief, Katharine Viner.</span></div><input name="6031" type="checkbox" role="switch" checked="" aria-labelledby="6031_description" class="css-1ksnltd"><span aria-hidden="true" aria-labelledby="6031_description" class="css-14xm7ey"></span></label><label id="similar_guardian_products_description" class="css-141740"><div class="css-wqo2kt"><span class="css-o3hxza">Receive information on our products and ways to support and enjoy our journalism. Toggle to opt out.</span></div><input name="similar_guardian_products" type="checkbox" role="switch" checked="" aria-labelledby="similar_guardian_products_description" class="css-1ksnltd"><span aria-hidden="true" aria-labelledby="similar_guardian_products_description" class="css-14xm7ey"></span></label></div><div class="css-gsjv6q"><div class="css-h996v6">Newsletters may contain information about Guardian products, services and chosen charities or online advertisements.</div><div class="css-h996v6">This service is protected by reCAPTCHA and the Google <a href="https://policies.google.com/privacy" rel="noopener noreferrer" class="css-1ss633q">privacy policy</a> and <a href="https://policies.google.com/terms" rel="noopener noreferrer" class="css-1ss633q">terms of service</a> apply.</div></div><button type="submit" aria-live="polite" data-cy="main-form-submit-button" aria-disabled="false" class="css-1aiqjx3">Next</button></form><hr class="css-5bcdcv"><p class="css-jckhu">Already have an account? <a href="/signin?componentEventParams=componentType%3Didentityauthentication%26componentId%3Dguardian_signin_header&returnUrl=https%3A%2F%2Fwww.theguardian.com%2Feurope" class="css-1ss633q">Sign in</a></p></section></main>\ No newline at end of filediff --git a/browser-extension/src/utils/formDetector/__tests__/test-forms/en-email-form1.html b/browser-extension/src/utils/formDetector/__tests__/test-forms/en-email-form1.htmlnew file mode 100644index 000000000..8814522c8--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/test-forms/en-email-form1.html@@ -0,0 +1,15 @@+<main class="css-qg5f0b"><header><h1 class="css-1tfp4pj">Create your account</h1></header><section class="css-t9ru4u"><form method="post" action="/register?componentEventParams=componentType%3Didentityauthentication%26componentId%3Dguardian_signin_header&returnUrl" data-testid="main-form" class="css-1pw6os9"><div id="recaptcha" class="g-recaptcha css-wyp7vc"><div class="grecaptcha-badge" data-style="bottomright" style="width: 256px; height: 60px; display: block; transition: right 0.3s; position: fixed; bottom: 14px; right: -186px; box-shadow: gray 0px 0px 5px; border-radius: 2px; overflow: hidden;"><div class="grecaptcha-logo"></div><div class="grecaptcha-error"></div><textarea id="g-recaptcha-response" name="g-recaptcha-response" class="g-recaptcha-response" style="width: 250px; height: 40px; border: 1px solid rgb(193, 193, 193); margin: 10px 25px; padding: 0px; resize: none; display: none;"></textarea></div></div><input type="hidden" name="_csrf" value="JQefOI4bd9Rd91s8TaOBEacBoqnZ56ht_sgm6T6wOMSdu0hx0eluksj9fviOzBzmQUcBotU4NKcfGxuQ2cVIfw"><input type="hidden" name="_csrfPageUrl"><input type="hidden" name="ref" value="https://profile.theguardian.com/register/email"><input type="hidden" name="refViewId" value="m6qgqwadrjxge8ow8pnc"><div><label for="P0-0" class="css-0"><div class="css-1daa38r">Email </div></label><div style="position: relative; display: inline-block; width: 100%;"><input type="email" id="P0-0" aria-required="true" aria-invalid="false" aria-describedby="" required="" name="email" class="css-l9vrwo" style="width: 428px; display: inline-block;"><div class="aliasvault-input-icon" style="+ display: flex;+ align-items: center;+ justify-content: center;+ position: absolute;+ right: 8px;+ top: 8px;+ margin: auto;+ cursor: pointer;+ width: 20px;+ height: 20px;+ z-index: 999999;+">+ <img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MDAgNTAwIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA1MDAgNTAwIiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJtNDU5Ljg3IDI5NC45NWMwLjAxNjIwNSA1LjQwMDUgMC4wMzI0MSAxMC44MDEtMC4zNTAyMiAxNi44NzMtMS4xMTEgNi4zMzkyLTEuMTk0MSAxMi4xNzMtMi42MzUxIDE3LjY0OS0xMC45MjIgNDEuNTA4LTM2LjczMSA2OS40ODEtNzcuMzUxIDgzLjQwOC03LjIxNTcgMi40NzM5LTE0Ljk3MiAzLjM3MDItMjIuNDc5IDQuOTk1LTIzLjYyOSAwLjA0MjIwNS00Ny4yNTcgMC4xMTQ1My03MC44ODYgMC4xMjAyNy00Ni43NjIgMC4wMTEzMjItOTMuNTIzLTAuMDE0MTYtMTQwLjk1LTAuNDM0MTEtOC41OS0yLjAwMjQtMTYuNzY2LTIuODM1Mi0yNC4zOTgtNS4zMzI2LTIxLjU5NS03LjA2NjYtMzkuNTIzLTE5LjY1Ni01My43MDgtMzcuNTUyLTEwLjIyNy0xMi45MDMtMTcuNTc5LTI3LjE3LTIxLjI4LTQzLjIyMS0xLjQ3NS02LjM5NjctMi40NzExLTEyLjkwNC0zLjY4NTItMTkuMzYxLTAuMDUxODQ5LTUuNzQ3LTAuMTAzNy0xMS40OTQgMC4yNjkxNS0xNy44ODYgNC4xNTktNDIuOTczIDI3LjY4LTcxLjYzOCA2My41NjItOTIuMTUzIDAtMC43MDc2MS0wLjAwMTk2MS0xLjY5ODggMy4xMmUtNCAtMi42OSAwLjAyMjQ4NC05LjgyOTMtMS4zMDcxLTE5Ljg5NCAwLjM1NjY0LTI5LjQzOCAzLjIzOTEtMTguNTc5IDExLjA4LTM1LjI3MiAyMy43NjMtNDkuNzczIDEyLjA5OC0xMy44MzIgMjYuNDU3LTIzLjk4OSA0My42MDktMzAuMDI5IDcuODEzLTIuNzUxMiAxNi4xNC00LjA0MTcgMjQuMjM0LTUuOTk0OCA3LjM5Mi0wLjAyNTczNCAxNC43ODQtMC4wNTE0NiAyMi44MzUgMC4zMjI1MyA0LjE5NTkgMC45NTM5MiA3Ljc5NDYgMS4yNTM4IDExLjI1OCAyLjEwNTMgMTcuMTYgNC4yMTkyIDMyLjI4NyAxMi4xNzYgNDUuNDY5IDI0LjEwNCAyLjI1NTggMi4wNDExIDQuMzcyIDYuNjI0MSA5LjYyMSAzLjg2OCAxNi44MzktOC44NDE5IDM0LjcxOC0xMS41OTcgNTMuNjAzLTguNTk0IDE2Ljc5MSAyLjY2OTkgMzEuNjAyIDkuNDMwOCA0NC4yMzYgMjAuNjM2IDExLjUzMSAxMC4yMjcgMTkuODQgMjIuODQxIDI1LjM5MyAzNy4yMzYgNi4zNDM2IDE2LjQ0NSAxMC4zODkgMzMuMTYzIDYuMDc5OCA0OS4zODkgNy45NTg3IDguOTMyMSAxNS44MDcgMTYuNzA0IDIyLjQyMSAyNS40MTQgOS4xNjIgMTIuMDY1IDE1LjMzIDI1Ljc0NiAxOC4xNDQgNDAuNzc2IDAuOTcwNDYgNS4xODQ4IDEuOTExMSAxMC4zNzUgMi44NjU0IDE1LjU2M20tNzEuNTk3IDcxLjAxMmM1LjU2MTUtNS4yMjg0IDEyLjAwMi05Ljc5ODYgMTYuNTA4LTE1LjgxNyAxMC40NzQtMTMuOTkyIDE0LjMzMy0yOS45MTYgMTEuMjg4LTQ3LjQ0Ni0yLjI0OTYtMTIuOTUtOC4xOTczLTI0LjA3Ni0xNy4yNDMtMzMuMDYzLTEyLjc0Ni0xMi42NjMtMjguODY1LTE4LjYxNC00Ni43ODYtMTguNTY5LTY5LjkxMiAwLjE3NzEyLTEzOS44MiAwLjU2ODMxLTIwOS43NCAwLjk2MTc2LTE1LjkyMiAwLjA4OTU5OS0yOS4xNjggNy40MjA5LTM5LjY4NSAxOC4yOTYtMTQuNDUgMTQuOTQ0LTIwLjQwOCAzMy4zNDMtMTYuNjU1IDU0LjM2OCAyLjI3NjMgMTIuNzU0IDguMjE2NyAyMy43NDggMTcuMTU4IDMyLjY2IDEzLjI5OSAxMy4yNTUgMzAuMDk3IDE4LjY1MyA0OC43MjggMTguNjUxIDU5LjMyMS0wLjAwNTE4OCAxMTguNjQgMC4wNDIzNTggMTc3Ljk2LTAuMDQ2NjAxIDkuNTkxMi0wLjAxNDM3NCAxOS4xODEtMC44NjU4OCAyOC43NzMtMC44ODg1NSAxMC42NDktMC4wMjUxNDYgMTkuOTc4LTMuODI1IDI5LjY4Ny05LjEwNzR6IiBmaWxsPSIjRUVDMTcwIi8+CjxwYXRoIGQ9Im0xNjIuNzcgMjkzYzE1LjY1NCA0LjM4ODMgMjAuNjI3IDIyLjk2NyAxMC4zMDQgMzQuOTgtNS4zMTA0IDYuMTc5NS0xNC44MTcgOC4zMjA4LTI0LjI3OCA1LjA0NzItNy4wNzIzLTIuNDQ3MS0xMi4zMzItMTAuMzYyLTEyLjg3Ni0xNy45MzMtMS4wNDUxLTE0LjU0MiAxMS4wODktMjMuMTc2IDIxLjcwNS0yMy4wNDYgMS41Nzk0IDAuMDE5Mjg3IDMuMTUxNyAwLjYxNTY2IDUuMTQ2MSAwLjk1MTg0eiIgZmlsbD0iI0VFQzE3MCIvPgo8cGF0aCBkPSJtMjI3LjE4IDI5My42NGM3Ljg0OTkgMi4zOTczIDExLjkzOCA4LjIxNDMgMTMuNTI0IDE1LjA3NyAxLjg1OTEgOC4wNDM5LTAuNDQ4MTcgMTUuNzA2LTcuMTU4OCAyMS4xMjEtNi43NjMzIDUuNDU3Mi0xNC40MTcgNi44Nzk0LTIyLjU3OCAzLjE0ODMtOC4yOTcyLTMuNzkzMy0xMi44MzYtMTAuODQ5LTEyLjczNi0xOS40MzggMC4xNjg3LTE0LjQ5NyAxNC4xMy0yNS4zNjggMjguOTQ4LTE5LjkwOHoiIGZpbGw9IiNFRUMxNzAiLz4KPHBhdGggZD0ibTI2MS41NyAzMTkuMDdjLTIuNDk1LTE0LjQxOCA0LjY4NTMtMjIuNjAzIDE0LjU5Ni0yNi4xMDggOS44OTQ1LTMuNDk5NSAyMy4xODEgMy40MzAzIDI2LjI2NyAxMy43NzkgNC42NTA0IDE1LjU5MS03LjE2NTEgMjkuMDY0LTIxLjY2NSAyOC4xNjEtOC41MjU0LTAuNTMwODgtMTcuMjAyLTYuNTA5NC0xOS4xOTgtMTUuODMxeiIgZmlsbD0iI0VFQzE3MCIvPgo8cGF0aCBkPSJtMzM2LjkxIDMzMy40MWMtOS4wMTc1LTQuMjQ5MS0xNS4zMzctMTQuMzQ5LTEzLjgyOS0yMS42ODIgMy4wODI1LTE0Ljk4OSAxMy4zNDEtMjAuMzA0IDIzLjAxOC0xOS41ODUgMTAuNjUzIDAuNzkxNDEgMTcuOTMgNy40MDcgMTkuNzY1IDE3LjU0NyAxLjk1ODggMTAuODI0LTQuMTE3MSAxOS45MzktMTMuNDk0IDIzLjcwMy01LjI3MiAyLjExNjItMTAuMDkxIDEuNTA4Ni0xNS40NiAwLjAxNzg4M3oiIGZpbGw9IiNFRUMxNzAiLz4KPC9zdmc+" style="width: 100%; height: 100%;">+</div></div></div><div class="css-sh1xpo"><label id="6031_description" class="css-141740"><div class="css-wqo2kt"><span class="css-1yorkrx">Saturday Edition newsletter</span><span class="css-o3hxza">An exclusive email highlighting the week’s best Guardian journalism from the editor-in-chief, Katharine Viner.</span></div><input name="6031" type="checkbox" role="switch" checked="" aria-labelledby="6031_description" class="css-1ksnltd"><span aria-hidden="true" aria-labelledby="6031_description" class="css-14xm7ey"></span></label><label id="similar_guardian_products_description" class="css-141740"><div class="css-wqo2kt"><span class="css-o3hxza">Receive information on our products and ways to support and enjoy our journalism. Toggle to opt out.</span></div><input name="similar_guardian_products" type="checkbox" role="switch" checked="" aria-labelledby="similar_guardian_products_description" class="css-1ksnltd"><span aria-hidden="true" aria-labelledby="similar_guardian_products_description" class="css-14xm7ey"></span></label></div><div class="css-gsjv6q"><div class="css-h996v6">Newsletters may contain information about Guardian products, services and chosen charities or online advertisements.</div><div class="css-h996v6">This service is protected by reCAPTCHA and the Google <a href="https://policies.google.com/privacy" rel="noopener noreferrer" class="css-1ss633q">privacy policy</a> and <a href="https://policies.google.com/terms" rel="noopener noreferrer" class="css-1ss633q">terms of service</a> apply.</div></div><button type="submit" aria-live="polite" data-cy="main-form-submit-button" aria-disabled="false" class="css-1aiqjx3">Next</button></form><hr class="css-5bcdcv"><p class="css-jckhu">Already have an account? <a href="/signin?componentEventParams=componentType%3Didentityauthentication%26componentId%3Dguardian_signin_header&returnUrl=https%3A%2F%2Fwww.theguardian.com%2Feurope" class="css-1ss633q">Sign in</a></p></section></main>\ No newline at end of filediff --git a/browser-extension/src/utils/formDetector/__tests__/test-forms/en-registration-form1.html b/browser-extension/src/utils/formDetector/__tests__/test-forms/en-registration-form1.htmlnew file mode 100644index 000000000..9d7ae925f--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/test-forms/en-registration-form1.html@@ -0,0 +1,15 @@+<div class="MrRiXf6"><form class=""><section class="flex flex-col sNhHqjk"><section class="WgRVsyT m-b-24"><section class="DBrYv_V"><h4 class="Z75qIDe">Continue with your email</h4></section><div class="field"><section class="field-label"><label for="login">Email</label></section><div class="yyUbhpn cUkPF7r field-input-wrapper invalid"><div class="hXBbl9K"><div style="position: relative; display: inline-block; width: 100%;"><input class="ttjkrx6 field-input" type="text" data-lpignore="true" placeholder="[email protected]" id="login" name="user_session[login]" autocomplete="email" value="dgreen81" style="width: 357.5px; display: inline-block;"><div class="aliasvault-input-icon" style="+ display: flex;+ align-items: center;+ justify-content: center;+ position: absolute;+ right: 8px;+ top: 8px;+ margin: auto;+ cursor: pointer;+ width: 20px;+ height: 20px;+ z-index: 999999;+ ">+ <img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MDAgNTAwIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA1MDAgNTAwIiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJtNDU5Ljg3IDI5NC45NWMwLjAxNjIwNSA1LjQwMDUgMC4wMzI0MSAxMC44MDEtMC4zNTAyMiAxNi44NzMtMS4xMTEgNi4zMzkyLTEuMTk0MSAxMi4xNzMtMi42MzUxIDE3LjY0OS0xMC45MjIgNDEuNTA4LTM2LjczMSA2OS40ODEtNzcuMzUxIDgzLjQwOC03LjIxNTcgMi40NzM5LTE0Ljk3MiAzLjM3MDItMjIuNDc5IDQuOTk1LTIzLjYyOSAwLjA0MjIwNS00Ny4yNTcgMC4xMTQ1My03MC44ODYgMC4xMjAyNy00Ni43NjIgMC4wMTEzMjItOTMuNTIzLTAuMDE0MTYtMTQwLjk1LTAuNDM0MTEtOC41OS0yLjAwMjQtMTYuNzY2LTIuODM1Mi0yNC4zOTgtNS4zMzI2LTIxLjU5NS03LjA2NjYtMzkuNTIzLTE5LjY1Ni01My43MDgtMzcuNTUyLTEwLjIyNy0xMi45MDMtMTcuNTc5LTI3LjE3LTIxLjI4LTQzLjIyMS0xLjQ3NS02LjM5NjctMi40NzExLTEyLjkwNC0zLjY4NTItMTkuMzYxLTAuMDUxODQ5LTUuNzQ3LTAuMTAzNy0xMS40OTQgMC4yNjkxNS0xNy44ODYgNC4xNTktNDIuOTczIDI3LjY4LTcxLjYzOCA2My41NjItOTIuMTUzIDAtMC43MDc2MS0wLjAwMTk2MS0xLjY5ODggMy4xMmUtNCAtMi42OSAwLjAyMjQ4NC05LjgyOTMtMS4zMDcxLTE5Ljg5NCAwLjM1NjY0LTI5LjQzOCAzLjIzOTEtMTguNTc5IDExLjA4LTM1LjI3MiAyMy43NjMtNDkuNzczIDEyLjA5OC0xMy44MzIgMjYuNDU3LTIzLjk4OSA0My42MDktMzAuMDI5IDcuODEzLTIuNzUxMiAxNi4xNC00LjA0MTcgMjQuMjM0LTUuOTk0OCA3LjM5Mi0wLjAyNTczNCAxNC43ODQtMC4wNTE0NiAyMi44MzUgMC4zMjI1MyA0LjE5NTkgMC45NTM5MiA3Ljc5NDYgMS4yNTM4IDExLjI1OCAyLjEwNTMgMTcuMTYgNC4yMTkyIDMyLjI4NyAxMi4xNzYgNDUuNDY5IDI0LjEwNCAyLjI1NTggMi4wNDExIDQuMzcyIDYuNjI0MSA5LjYyMSAzLjg2OCAxNi44MzktOC44NDE5IDM0LjcxOC0xMS41OTcgNTMuNjAzLTguNTk0IDE2Ljc5MSAyLjY2OTkgMzEuNjAyIDkuNDMwOCA0NC4yMzYgMjAuNjM2IDExLjUzMSAxMC4yMjcgMTkuODQgMjIuODQxIDI1LjM5MyAzNy4yMzYgNi4zNDM2IDE2LjQ0NSAxMC4zODkgMzMuMTYzIDYuMDc5OCA0OS4zODkgNy45NTg3IDguOTMyMSAxNS44MDcgMTYuNzA0IDIyLjQyMSAyNS40MTQgOS4xNjIgMTIuMDY1IDE1LjMzIDI1Ljc0NiAxOC4xNDQgNDAuNzc2IDAuOTcwNDYgNS4xODQ4IDEuOTExMSAxMC4zNzUgMi44NjU0IDE1LjU2M20tNzEuNTk3IDcxLjAxMmM1LjU2MTUtNS4yMjg0IDEyLjAwMi05Ljc5ODYgMTYuNTA4LTE1LjgxNyAxMC40NzQtMTMuOTkyIDE0LjMzMy0yOS45MTYgMTEuMjg4LTQ3LjQ0Ni0yLjI0OTYtMTIuOTUtOC4xOTczLTI0LjA3Ni0xNy4yNDMtMzMuMDYzLTEyLjc0Ni0xMi42NjMtMjguODY1LTE4LjYxNC00Ni43ODYtMTguNTY5LTY5LjkxMiAwLjE3NzEyLTEzOS44MiAwLjU2ODMxLTIwOS43NCAwLjk2MTc2LTE1LjkyMiAwLjA4OTU5OS0yOS4xNjggNy40MjA5LTM5LjY4NSAxOC4yOTYtMTQuNDUgMTQuOTQ0LTIwLjQwOCAzMy4zNDMtMTYuNjU1IDU0LjM2OCAyLjI3NjMgMTIuNzU0IDguMjE2NyAyMy43NDggMTcuMTU4IDMyLjY2IDEzLjI5OSAxMy4yNTUgMzAuMDk3IDE4LjY1MyA0OC43MjggMTguNjUxIDU5LjMyMS0wLjAwNTE4OCAxMTguNjQgMC4wNDIzNTggMTc3Ljk2LTAuMDQ2NjAxIDkuNTkxMi0wLjAxNDM3NCAxOS4xODEtMC44NjU4OCAyOC43NzMtMC44ODg1NSAxMC42NDktMC4wMjUxNDYgMTkuOTc4LTMuODI1IDI5LjY4Ny05LjEwNzR6IiBmaWxsPSIjRUVDMTcwIi8+CjxwYXRoIGQ9Im0xNjIuNzcgMjkzYzE1LjY1NCA0LjM4ODMgMjAuNjI3IDIyLjk2NyAxMC4zMDQgMzQuOTgtNS4zMTA0IDYuMTc5NS0xNC44MTcgOC4zMjA4LTI0LjI3OCA1LjA0NzItNy4wNzIzLTIuNDQ3MS0xMi4zMzItMTAuMzYyLTEyLjg3Ni0xNy45MzMtMS4wNDUxLTE0LjU0MiAxMS4wODktMjMuMTc2IDIxLjcwNS0yMy4wNDYgMS41Nzk0IDAuMDE5Mjg3IDMuMTUxNyAwLjYxNTY2IDUuMTQ2MSAwLjk1MTg0eiIgZmlsbD0iI0VFQzE3MCIvPgo8cGF0aCBkPSJtMjI3LjE4IDI5My42NGM3Ljg0OTkgMi4zOTczIDExLjkzOCA4LjIxNDMgMTMuNTI0IDE1LjA3NyAxLjg1OTEgOC4wNDM5LTAuNDQ4MTcgMTUuNzA2LTcuMTU4OCAyMS4xMjEtNi43NjMzIDUuNDU3Mi0xNC40MTcgNi44Nzk0LTIyLjU3OCAzLjE0ODMtOC4yOTcyLTMuNzkzMy0xMi44MzYtMTAuODQ5LTEyLjczNi0xOS40MzggMC4xNjg3LTE0LjQ5NyAxNC4xMy0yNS4zNjggMjguOTQ4LTE5LjkwOHoiIGZpbGw9IiNFRUMxNzAiLz4KPHBhdGggZD0ibTI2MS41NyAzMTkuMDdjLTIuNDk1LTE0LjQxOCA0LjY4NTMtMjIuNjAzIDE0LjU5Ni0yNi4xMDggOS44OTQ1LTMuNDk5NSAyMy4xODEgMy40MzAzIDI2LjI2NyAxMy43NzkgNC42NTA0IDE1LjU5MS03LjE2NTEgMjkuMDY0LTIxLjY2NSAyOC4xNjEtOC41MjU0LTAuNTMwODgtMTcuMjAyLTYuNTA5NC0xOS4xOTgtMTUuODMxeiIgZmlsbD0iI0VFQzE3MCIvPgo8cGF0aCBkPSJtMzM2LjkxIDMzMy40MWMtOS4wMTc1LTQuMjQ5MS0xNS4zMzctMTQuMzQ5LTEzLjgyOS0yMS42ODIgMy4wODI1LTE0Ljk4OSAxMy4zNDEtMjAuMzA0IDIzLjAxOC0xOS41ODUgMTAuNjUzIDAuNzkxNDEgMTcuOTMgNy40MDcgMTkuNzY1IDE3LjU0NyAxLjk1ODggMTAuODI0LTQuMTE3MSAxOS45MzktMTMuNDk0IDIzLjcwMy01LjI3MiAyLjExNjItMTAuMDkxIDEuNTA4Ni0xNS40NiAwLjAxNzg4M3oiIGZpbGw9IiNFRUMxNzAiLz4KPC9zdmc+" style="width: 100%; height: 100%;">+ </div></div><span class="glAQDp5 LTPJ6PZ field-input-icon" aria-hidden="true" style="width: 16px; height: 16px;"><svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8 0C3.6 0 0 3.6 0 8C0 12.4 3.6 16 8 16C12.4 16 16 12.4 16 8C16 3.6 12.4 0 8 0ZM8 12C7.4 12 7 11.6 7 11C7 10.4 7.4 10 8 10C8.6 10 9 10.4 9 11C9 11.6 8.6 12 8 12ZM9 9H7V4H9V9Z"></path></svg></span></div></div><p class="field-error text-body-2">Looks like this email is incomplete</p></div><div class="field IhbFUXL"><section class="field-label"><label for="password">Password</label></section><div class="yyUbhpn cUkPF7r field-input-wrapper"><div class="hXBbl9K"><input class="ttjkrx6 field-input" type="password" data-lpignore="true" placeholder="" id="password" name="user_session[password]" autocomplete="current-password" value="=8O=vkEelbRQsWr-4Y"><button class="glAQDp5 _Q5OMo2 LTPJ6PZ field-input-icon" type="button" style="width: 16px; height: 16px;"><svg width="15" height="12" xmlns="http://www.w3.org/2000/svg"><path d="M14.8594 11.0391L0.843735 0.0822657C0.805293 0.0514871 0.761164 0.0285818 0.71387 0.0148574C0.666575 0.00113296 0.61704 -0.00314169 0.568094 0.00227748C0.519147 0.00769665 0.471747 0.0227035 0.4286 0.0464412C0.385453 0.0701789 0.347404 0.102183 0.316626 0.140625L0.0822505 0.433359C0.0513997 0.471815 0.0284346 0.515976 0.0146694 0.563317C0.000904094 0.610657 -0.00339118 0.660248 0.00202933 0.70925C0.00744984 0.758252 0.0224797 0.805705 0.046259 0.848892C0.0700383 0.892079 0.1021 0.930154 0.14061 0.960937L14.1562 11.9177C14.1947 11.9485 14.2388 11.9714 14.2861 11.9851C14.3334 11.9989 14.3829 12.0031 14.4319 11.9977C14.4808 11.9923 14.5282 11.9773 14.5714 11.9536C14.6145 11.9298 14.6526 11.8978 14.6833 11.8594L14.9177 11.5666C14.9486 11.5282 14.9715 11.484 14.9853 11.4367C14.9991 11.3893 15.0034 11.3397 14.9979 11.2907C14.9925 11.2417 14.9775 11.1943 14.9537 11.1511C14.9299 11.1079 14.8979 11.0698 14.8594 11.0391ZM6.956 3.43289L10.1151 5.90273C10.0631 4.49789 8.91749 3.375 7.49999 3.375C7.31714 3.37534 7.13483 3.39474 6.956 3.43289ZM8.04397 8.56734L4.88483 6.0975C4.93709 7.50211 6.08272 8.625 7.49999 8.625C7.68282 8.62461 7.86512 8.60528 8.04397 8.56734ZM7.49999 2.625C9.8121 2.625 11.9318 3.91406 13.0765 6C12.7959 6.51336 12.4492 6.98772 12.0452 7.41093L12.9298 8.10234C13.4222 7.57551 13.8395 6.9831 14.1696 6.34195C14.2232 6.23589 14.2511 6.11872 14.2511 5.99988C14.2511 5.88104 14.2232 5.76387 14.1696 5.65781C12.8974 3.17789 10.3812 1.5 7.49999 1.5C6.63983 1.5 5.81928 1.66406 5.04772 1.94086L6.13545 2.7914C6.57936 2.69062 7.03405 2.625 7.49999 2.625ZM7.49999 9.375C5.18788 9.375 3.06842 8.08593 1.9235 6C2.20447 5.48663 2.55157 5.01235 2.95592 4.58929L2.07139 3.89789C1.579 4.42464 1.16185 5.01697 0.831782 5.65804C0.778167 5.7641 0.750232 5.88128 0.750232 6.00011C0.750232 6.11895 0.778167 6.23613 0.831782 6.34218C2.1028 8.8221 4.61905 10.5 7.49999 10.5C8.36014 10.5 9.18069 10.3348 9.95225 10.0591L8.86452 9.20882C8.42061 9.30937 7.96616 9.375 7.49999 9.375Z"></path></svg></button></div></div></div></section><section class="flex flex-col flex-justify-end EJOXDmL FBRr7pW"><button class="sPdE5j4 FmssW6b co-grey-600 rP6Aftu JoowYoV LXdbb1D bLW6XzH bg-co-grey-200" disabled="" type="submit"><p>Continue</p></button><p class="tbody-7 co-text-medium S_brCsT">By joining, you agree to the <a class="hWzdbbC" href="/terms_of_service?store=false" target="_blank" rel="noreferrer noopener">Terms of Service</a> and to occasionally receive emails from us. Please read our <a class="hWzdbbC" href="/privacy-policy?store=false" target="_blank" rel="noreferrer noopener">Privacy Policy</a> to learn how we use your personal data.</p></section></section></form></div>\ No newline at end of filediff --git a/browser-extension/src/utils/formDetector/__tests__/test-forms/en-registration-form2.html b/browser-extension/src/utils/formDetector/__tests__/test-forms/en-registration-form2.htmlnew file mode 100644index 000000000..efe435aa8--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/test-forms/en-registration-form2.html@@ -0,0 +1,15 @@+<form data-gtm-form-interact-id="1"><label class="typography_body-m__k2UI7 typography_appearance-default__t8iAq" for="signup-email-input">Email</label><div class="signup_inputWrapper__WPctr"><div style="position: relative; display: inline-block; width: 100%;"><input class="text-input_textInput__G4Liz text-input_textInput--m__2aAvQ" id="signup-email-input" placeholder="[email protected]" readonly="" required="" type="email" aria-invalid="false" data-signup-email-input="true" value="[email protected]" style="width: 320px; display: block;" data-gtm-form-interact-field-id="1"><div class="aliasvault-input-icon" style="+ display: flex;+ align-items: center;+ justify-content: center;+ position: absolute;+ right: 8px;+ top: 8px;+ margin: auto;+ cursor: pointer;+ width: 20px;+ height: 20px;+ z-index: 999999;+ ">+ <img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MDAgNTAwIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA1MDAgNTAwIiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJtNDU5Ljg3IDI5NC45NWMwLjAxNjIwNSA1LjQwMDUgMC4wMzI0MSAxMC44MDEtMC4zNTAyMiAxNi44NzMtMS4xMTEgNi4zMzkyLTEuMTk0MSAxMi4xNzMtMi42MzUxIDE3LjY0OS0xMC45MjIgNDEuNTA4LTM2LjczMSA2OS40ODEtNzcuMzUxIDgzLjQwOC03LjIxNTcgMi40NzM5LTE0Ljk3MiAzLjM3MDItMjIuNDc5IDQuOTk1LTIzLjYyOSAwLjA0MjIwNS00Ny4yNTcgMC4xMTQ1My03MC44ODYgMC4xMjAyNy00Ni43NjIgMC4wMTEzMjItOTMuNTIzLTAuMDE0MTYtMTQwLjk1LTAuNDM0MTEtOC41OS0yLjAwMjQtMTYuNzY2LTIuODM1Mi0yNC4zOTgtNS4zMzI2LTIxLjU5NS03LjA2NjYtMzkuNTIzLTE5LjY1Ni01My43MDgtMzcuNTUyLTEwLjIyNy0xMi45MDMtMTcuNTc5LTI3LjE3LTIxLjI4LTQzLjIyMS0xLjQ3NS02LjM5NjctMi40NzExLTEyLjkwNC0zLjY4NTItMTkuMzYxLTAuMDUxODQ5LTUuNzQ3LTAuMTAzNy0xMS40OTQgMC4yNjkxNS0xNy44ODYgNC4xNTktNDIuOTczIDI3LjY4LTcxLjYzOCA2My41NjItOTIuMTUzIDAtMC43MDc2MS0wLjAwMTk2MS0xLjY5ODggMy4xMmUtNCAtMi42OSAwLjAyMjQ4NC05LjgyOTMtMS4zMDcxLTE5Ljg5NCAwLjM1NjY0LTI5LjQzOCAzLjIzOTEtMTguNTc5IDExLjA4LTM1LjI3MiAyMy43NjMtNDkuNzczIDEyLjA5OC0xMy44MzIgMjYuNDU3LTIzLjk4OSA0My42MDktMzAuMDI5IDcuODEzLTIuNzUxMiAxNi4xNC00LjA0MTcgMjQuMjM0LTUuOTk0OCA3LjM5Mi0wLjAyNTczNCAxNC43ODQtMC4wNTE0NiAyMi44MzUgMC4zMjI1MyA0LjE5NTkgMC45NTM5MiA3Ljc5NDYgMS4yNTM4IDExLjI1OCAyLjEwNTMgMTcuMTYgNC4yMTkyIDMyLjI4NyAxMi4xNzYgNDUuNDY5IDI0LjEwNCAyLjI1NTggMi4wNDExIDQuMzcyIDYuNjI0MSA5LjYyMSAzLjg2OCAxNi44MzktOC44NDE5IDM0LjcxOC0xMS41OTcgNTMuNjAzLTguNTk0IDE2Ljc5MSAyLjY2OTkgMzEuNjAyIDkuNDMwOCA0NC4yMzYgMjAuNjM2IDExLjUzMSAxMC4yMjcgMTkuODQgMjIuODQxIDI1LjM5MyAzNy4yMzYgNi4zNDM2IDE2LjQ0NSAxMC4zODkgMzMuMTYzIDYuMDc5OCA0OS4zODkgNy45NTg3IDguOTMyMSAxNS44MDcgMTYuNzA0IDIyLjQyMSAyNS40MTQgOS4xNjIgMTIuMDY1IDE1LjMzIDI1Ljc0NiAxOC4xNDQgNDAuNzc2IDAuOTcwNDYgNS4xODQ4IDEuOTExMSAxMC4zNzUgMi44NjU0IDE1LjU2M20tNzEuNTk3IDcxLjAxMmM1LjU2MTUtNS4yMjg0IDEyLjAwMi05Ljc5ODYgMTYuNTA4LTE1LjgxNyAxMC40NzQtMTMuOTkyIDE0LjMzMy0yOS45MTYgMTEuMjg4LTQ3LjQ0Ni0yLjI0OTYtMTIuOTUtOC4xOTczLTI0LjA3Ni0xNy4yNDMtMzMuMDYzLTEyLjc0Ni0xMi42NjMtMjguODY1LTE4LjYxNC00Ni43ODYtMTguNTY5LTY5LjkxMiAwLjE3NzEyLTEzOS44MiAwLjU2ODMxLTIwOS43NCAwLjk2MTc2LTE1LjkyMiAwLjA4OTU5OS0yOS4xNjggNy40MjA5LTM5LjY4NSAxOC4yOTYtMTQuNDUgMTQuOTQ0LTIwLjQwOCAzMy4zNDMtMTYuNjU1IDU0LjM2OCAyLjI3NjMgMTIuNzU0IDguMjE2NyAyMy43NDggMTcuMTU4IDMyLjY2IDEzLjI5OSAxMy4yNTUgMzAuMDk3IDE4LjY1MyA0OC43MjggMTguNjUxIDU5LjMyMS0wLjAwNTE4OCAxMTguNjQgMC4wNDIzNTggMTc3Ljk2LTAuMDQ2NjAxIDkuNTkxMi0wLjAxNDM3NCAxOS4xODEtMC44NjU4OCAyOC43NzMtMC44ODg1NSAxMC42NDktMC4wMjUxNDYgMTkuOTc4LTMuODI1IDI5LjY4Ny05LjEwNzR6IiBmaWxsPSIjRUVDMTcwIi8+CjxwYXRoIGQ9Im0xNjIuNzcgMjkzYzE1LjY1NCA0LjM4ODMgMjAuNjI3IDIyLjk2NyAxMC4zMDQgMzQuOTgtNS4zMTA0IDYuMTc5NS0xNC44MTcgOC4zMjA4LTI0LjI3OCA1LjA0NzItNy4wNzIzLTIuNDQ3MS0xMi4zMzItMTAuMzYyLTEyLjg3Ni0xNy45MzMtMS4wNDUxLTE0LjU0MiAxMS4wODktMjMuMTc2IDIxLjcwNS0yMy4wNDYgMS41Nzk0IDAuMDE5Mjg3IDMuMTUxNyAwLjYxNTY2IDUuMTQ2MSAwLjk1MTg0eiIgZmlsbD0iI0VFQzE3MCIvPgo8cGF0aCBkPSJtMjI3LjE4IDI5My42NGM3Ljg0OTkgMi4zOTczIDExLjkzOCA4LjIxNDMgMTMuNTI0IDE1LjA3NyAxLjg1OTEgOC4wNDM5LTAuNDQ4MTcgMTUuNzA2LTcuMTU4OCAyMS4xMjEtNi43NjMzIDUuNDU3Mi0xNC40MTcgNi44Nzk0LTIyLjU3OCAzLjE0ODMtOC4yOTcyLTMuNzkzMy0xMi44MzYtMTAuODQ5LTEyLjczNi0xOS40MzggMC4xNjg3LTE0LjQ5NyAxNC4xMy0yNS4zNjggMjguOTQ4LTE5LjkwOHoiIGZpbGw9IiNFRUMxNzAiLz4KPHBhdGggZD0ibTI2MS41NyAzMTkuMDdjLTIuNDk1LTE0LjQxOCA0LjY4NTMtMjIuNjAzIDE0LjU5Ni0yNi4xMDggOS44OTQ1LTMuNDk5NSAyMy4xODEgMy40MzAzIDI2LjI2NyAxMy43NzkgNC42NTA0IDE1LjU5MS03LjE2NTEgMjkuMDY0LTIxLjY2NSAyOC4xNjEtOC41MjU0LTAuNTMwODgtMTcuMjAyLTYuNTA5NC0xOS4xOTgtMTUuODMxeiIgZmlsbD0iI0VFQzE3MCIvPgo8cGF0aCBkPSJtMzM2LjkxIDMzMy40MWMtOS4wMTc1LTQuMjQ5MS0xNS4zMzctMTQuMzQ5LTEzLjgyOS0yMS42ODIgMy4wODI1LTE0Ljk4OSAxMy4zNDEtMjAuMzA0IDIzLjAxOC0xOS41ODUgMTAuNjUzIDAuNzkxNDEgMTcuOTMgNy40MDcgMTkuNzY1IDE3LjU0NyAxLjk1ODggMTAuODI0LTQuMTE3MSAxOS45MzktMTMuNDk0IDIzLjcwMy01LjI3MiAyLjExNjItMTAuMDkxIDEuNTA4Ni0xNS40NiAwLjAxNzg4M3oiIGZpbGw9IiNFRUMxNzAiLz4KPC9zdmc+" style="width: 100%; height: 100%;">+ </div></div></div><label class="typography_body-m__k2UI7 typography_appearance-default__t8iAq" for="signup-name-input">Name (publicly visible)</label><div class="signup_inputWrapper__WPctr"><input class="text-input_textInput__G4Liz text-input_textInput--m__2aAvQ" id="signup-name-input" placeholder="Your name" required="" type="text" aria-invalid="false" data-signup-username-input="true" value=""></div><div class="signup_inputWrapper__WPctr"><div class="marketing-opt-in_marketingOptIn__ZrOzw"><input type="checkbox" class="checkbox_checkbox__GXvmh" data-signup-marketing-opt-in-checkbox="true"><p class="typography_body-m__k2UI7 typography_appearance-default__t8iAq">I’m happy to receive email updates, including Trustpilot recommendations, tips, and news.</p></div></div><div class="signup_inputWrapper__WPctr"><label class="accept-terms_acceptTerms__mR_Ce"><span class="typography_body-m__k2UI7 typography_appearance-default__t8iAq">By continuing, you agree to Trustpilot’s <a href="#" target="_blank" class="link_internal__Eam_b typography_appearance-action__u_Du4 link_link__jBdLV link_underlined__eziE0" data-terms-and-conditions-typography="true">Terms and Conditions</a> and <a href="#" target="_blank" class="link_internal__Eam_b typography_appearance-action__u_Du4 link_link__jBdLV link_underlined__eziE0" data-privacy-policy-typography="true">Privacy Policy</a>.</span></label></div><button class="button_button__EM6gX button_l__MAIG_ button_appearance-primary__aCXiy button_wide__9LE3T" name="signup" type="submit" data-signup-button="true"><span class="typography_heading-xs__osRhC typography_appearance-inherit__YnCNb typography_disableResponsiveSizing__z3EGy button_buttonText__uWBzs">Sign up</span></button></form>\ No newline at end of filediff --git a/browser-extension/src/utils/formDetector/__tests__/test-forms/en-registration-form3.html b/browser-extension/src/utils/formDetector/__tests__/test-forms/en-registration-form3.htmlnew file mode 100644index 000000000..5c7b59c85--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/test-forms/en-registration-form3.html@@ -0,0 +1,329 @@+<div class="join_form">+ <div class="section_title">+Create Your Account </div>+<div class="form_row row_flex">+<div class="form_area">+<label for="email">Email Address</label>+<div style="position: relative; display: inline-block; width: 100%;"><input type="text" maxlength="255" name="email" id="email" style="width: 292px; display: block;"><div class="aliasvault-input-icon" style="+display: flex;+align-items: center;+justify-content: center;+position: absolute;+right: 8px;+top: 8px;+margin: auto;+cursor: pointer;+width: 20px;+height: 20px;+z-index: 999999;+">+<img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MDAgNTAwIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA1MDAgNTAwIiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJtNDU5Ljg3IDI5NC45NWMwLjAxNjIwNSA1LjQwMDUgMC4wMzI0MSAxMC44MDEtMC4zNTAyMiAxNi44NzMtMS4xMTEgNi4zMzkyLTEuMTk0MSAxMi4xNzMtMi42MzUxIDE3LjY0OS0xMC45MjIgNDEuNTA4LTM2LjczMSA2OS40ODEtNzcuMzUxIDgzLjQwOC03LjIxNTcgMi40NzM5LTE0Ljk3MiAzLjM3MDItMjIuNDc5IDQuOTk1LTIzLjYyOSAwLjA0MjIwNS00Ny4yNTcgMC4xMTQ1My03MC44ODYgMC4xMjAyNy00Ni43NjIgMC4wMTEzMjItOTMuNTIzLTAuMDE0MTYtMTQwLjk1LTAuNDM0MTEtOC41OS0yLjAwMjQtMTYuNzY2LTIuODM1Mi0yNC4zOTgtNS4zMzI2LTIxLjU5NS03LjA2NjYtMzkuNTIzLTE5LjY1Ni01My43MDgtMzcuNTUyLTEwLjIyNy0xMi45MDMtMTcuNTc5LTI3LjE3LTIxLjI4LTQzLjIyMS0xLjQ3NS02LjM5NjctMi40NzExLTEyLjkwNC0zLjY4NTItMTkuMzYxLTAuMDUxODQ5LTUuNzQ3LTAuMTAzNy0xMS40OTQgMC4yNjkxNS0xNy44ODYgNC4xNTktNDIuOTczIDI3LjY4LTcxLjYzOCA2My41NjItOTIuMTUzIDAtMC43MDc2MS0wLjAwMTk2MS0xLjY5ODggMy4xMmUtNCAtMi42OSAwLjAyMjQ4NC05LjgyOTMtMS4zMDcxLTE5Ljg5NCAwLjM1NjY0LTI5LjQzOCAzLjIzOTEtMTguNTc5IDExLjA4LTM1LjI3MiAyMy43NjMtNDkuNzczIDEyLjA5OC0xMy44MzIgMjYuNDU3LTIzLjk4OSA0My42MDktMzAuMDI5IDcuODEzLTIuNzUxMiAxNi4xNC00LjA0MTcgMjQuMjM0LTUuOTk0OCA3LjM5Mi0wLjAyNTczNCAxNC43ODQtMC4wNTE0NiAyMi44MzUgMC4zMjI1MyA0LjE5NTkgMC45NTM5MiA3Ljc5NDYgMS4yNTM4IDExLjI1OCAyLjEwNTMgMTcuMTYgNC4yMTkyIDMyLjI4NyAxMi4xNzYgNDUuNDY5IDI0LjEwNCAyLjI1NTggMi4wNDExIDQuMzcyIDYuNjI0MSA5LjYyMSAzLjg2OCAxNi44MzktOC44NDE5IDM0LjcxOC0xMS41OTcgNTMuNjAzLTguNTk0IDE2Ljc5MSAyLjY2OTkgMzEuNjAyIDkuNDMwOCA0NC4yMzYgMjAuNjM2IDExLjUzMSAxMC4yMjcgMTkuODQgMjIuODQxIDI1LjM5MyAzNy4yMzYgNi4zNDM2IDE2LjQ0NSAxMC4zODkgMzMuMTYzIDYuMDc5OCA0OS4zODkgNy45NTg3IDguOTMyMSAxNS44MDcgMTYuNzA0IDIyLjQyMSAyNS40MTQgOS4xNjIgMTIuMDY1IDE1LjMzIDI1Ljc0NiAxOC4xNDQgNDAuNzc2IDAuOTcwNDYgNS4xODQ4IDEuOTExMSAxMC4zNzUgMi44NjU0IDE1LjU2M20tNzEuNTk3IDcxLjAxMmM1LjU2MTUtNS4yMjg0IDEyLjAwMi05Ljc5ODYgMTYuNTA4LTE1LjgxNyAxMC40NzQtMTMuOTkyIDE0LjMzMy0yOS45MTYgMTEuMjg4LTQ3LjQ0Ni0yLjI0OTYtMTIuOTUtOC4xOTczLTI0LjA3Ni0xNy4yNDMtMzMuMDYzLTEyLjc0Ni0xMi42NjMtMjguODY1LTE4LjYxNC00Ni43ODYtMTguNTY5LTY5LjkxMiAwLjE3NzEyLTEzOS44MiAwLjU2ODMxLTIwOS43NCAwLjk2MTc2LTE1LjkyMiAwLjA4OTU5OS0yOS4xNjggNy40MjA5LTM5LjY4NSAxOC4yOTYtMTQuNDUgMTQuOTQ0LTIwLjQwOCAzMy4zNDMtMTYuNjU1IDU0LjM2OCAyLjI3NjMgMTIuNzU0IDguMjE2NyAyMy43NDggMTcuMTU4IDMyLjY2IDEzLjI5OSAxMy4yNTUgMzAuMDk3IDE4LjY1MyA0OC43MjggMTguNjUxIDU5LjMyMS0wLjAwNTE4OCAxMTguNjQgMC4wNDIzNTggMTc3Ljk2LTAuMDQ2NjAxIDkuNTkxMi0wLjAxNDM3NCAxOS4xODEtMC44NjU4OCAyOC43NzMtMC44ODg1NSAxMC42NDktMC4wMjUxNDYgMTkuOTc4LTMuODI1IDI5LjY4Ny05LjEwNzR6IiBmaWxsPSIjRUVDMTcwIi8+CjxwYXRoIGQ9Im0xNjIuNzcgMjkzYzE1LjY1NCA0LjM4ODMgMjAuNjI3IDIyLjk2NyAxMC4zMDQgMzQuOTgtNS4zMTA0IDYuMTc5NS0xNC44MTcgOC4zMjA4LTI0LjI3OCA1LjA0NzItNy4wNzIzLTIuNDQ3MS0xMi4zMzItMTAuMzYyLTEyLjg3Ni0xNy45MzMtMS4wNDUxLTE0LjU0MiAxMS4wODktMjMuMTc2IDIxLjcwNS0yMy4wNDYgMS41Nzk0IDAuMDE5Mjg3IDMuMTUxNyAwLjYxNTY2IDUuMTQ2MSAwLjk1MTg0eiIgZmlsbD0iI0VFQzE3MCIvPgo8cGF0aCBkPSJtMjI3LjE4IDI5My42NGM3Ljg0OTkgMi4zOTczIDExLjkzOCA4LjIxNDMgMTMuNTI0IDE1LjA3NyAxLjg1OTEgOC4wNDM5LTAuNDQ4MTcgMTUuNzA2LTcuMTU4OCAyMS4xMjEtNi43NjMzIDUuNDU3Mi0xNC40MTcgNi44Nzk0LTIyLjU3OCAzLjE0ODMtOC4yOTcyLTMuNzkzMy0xMi44MzYtMTAuODQ5LTEyLjczNi0xOS40MzggMC4xNjg3LTE0LjQ5NyAxNC4xMy0yNS4zNjggMjguOTQ4LTE5LjkwOHoiIGZpbGw9IiNFRUMxNzAiLz4KPHBhdGggZD0ibTI2MS41NyAzMTkuMDdjLTIuNDk1LTE0LjQxOCA0LjY4NTMtMjIuNjAzIDE0LjU5Ni0yNi4xMDggOS44OTQ1LTMuNDk5NSAyMy4xODEgMy40MzAzIDI2LjI2NyAxMy43NzkgNC42NTA0IDE1LjU5MS03LjE2NTEgMjkuMDY0LTIxLjY2NSAyOC4xNjEtOC41MjU0LTAuNTMwODgtMTcuMjAyLTYuNTA5NC0xOS4xOTgtMTUuODMxeiIgZmlsbD0iI0VFQzE3MCIvPgo8cGF0aCBkPSJtMzM2LjkxIDMzMy40MWMtOS4wMTc1LTQuMjQ5MS0xNS4zMzctMTQuMzQ5LTEzLjgyOS0yMS42ODIgMy4wODI1LTE0Ljk4OSAxMy4zNDEtMjAuMzA0IDIzLjAxOC0xOS41ODUgMTAuNjUzIDAuNzkxNDEgMTcuOTMgNy40MDcgMTkuNzY1IDE3LjU0NyAxLjk1ODggMTAuODI0LTQuMTE3MSAxOS45MzktMTMuNDk0IDIzLjcwMy01LjI3MiAyLjExNjItMTAuMDkxIDEuNTA4Ni0xNS40NiAwLjAxNzg4M3oiIGZpbGw9IiNFRUMxNzAiLz4KPC9zdmc+" style="width: 100%; height: 100%;">+</div></div>+</div>+</div>+ <div class="form_row row_flex">+<div class="form_area">+<label class="reenter_row" for="reenter_email">Confirm your Address</label>+<input type="text" maxlength="255" name="reenter_email" id="reenter_email">+</div>+</div>+<div class="form_row row_flex">+<div class="form_area">+<div style="">+<label class="country_select" for="country">Country of Residence</label>+<select name="country" id="country" class="blueish" onchange="OnCountryChange( this )">+ <option value="AF">Afghanistan</option>+ <option value="AX">Aland Islands</option>+ <option value="AL">Albania</option>+ <option value="DZ">Algeria</option>+ <option value="AS">American Samoa</option>+ <option value="AD">Andorra</option>+ <option value="AO">Angola</option>+ <option value="AI">Anguilla</option>+ <option value="AQ">Antarctica</option>+ <option value="AG">Antigua and Barbuda</option>+ <option value="AR">Argentina</option>+ <option value="AM">Armenia</option>+ <option value="AW">Aruba</option>+ <option value="AU">Australia</option>+ <option value="AT">Austria</option>+ <option value="AZ">Azerbaijan</option>+ <option value="BL">BL</option>+ <option value="BQ">BQ</option>+ <option value="BS">Bahamas</option>+ <option value="BH">Bahrain</option>+ <option value="BD">Bangladesh</option>+ <option value="BB">Barbados</option>+ <option value="BY">Belarus</option>+ <option value="BE">Belgium</option>+ <option value="BZ">Belize</option>+ <option value="BJ">Benin</option>+ <option value="BM">Bermuda</option>+ <option value="BT">Bhutan</option>+ <option value="BO">Bolivia</option>+ <option value="BA">Bosnia and Herzegovina</option>+ <option value="BW">Botswana</option>+ <option value="BV">Bouvet Island</option>+ <option value="BR">Brazil</option>+ <option value="IO">British Indian Ocean Territory</option>+ <option value="BN">Brunei Darussalam</option>+ <option value="BG">Bulgaria</option>+ <option value="BF">Burkina Faso</option>+ <option value="BI">Burundi</option>+ <option value="CU">CU</option>+ <option value="CW">CW</option>+ <option value="KH">Cambodia</option>+ <option value="CM">Cameroon</option>+ <option value="CA">Canada</option>+ <option value="CV">Cape Verde</option>+ <option value="KY">Cayman Islands</option>+ <option value="CF">Central African Republic</option>+ <option value="TD">Chad</option>+ <option value="CL">Chile</option>+ <option value="CN">China</option>+ <option value="CX">Christmas Island</option>+ <option value="CC">Cocos (Keeling) Islands</option>+ <option value="CO">Colombia</option>+ <option value="KM">Comoros</option>+ <option value="CG">Congo</option>+ <option value="CD">Congo, the Democratic Republic of the</option>+ <option value="CK">Cook Islands</option>+ <option value="CR">Costa Rica</option>+ <option value="CI">Cote d'Ivoire</option>+ <option value="HR">Croatia</option>+ <option value="CY">Cyprus</option>+ <option value="CZ">Czech Republic</option>+ <option value="DK">Denmark</option>+ <option value="DJ">Djibouti</option>+ <option value="DM">Dominica</option>+ <option value="DO">Dominican Republic</option>+ <option value="EC">Ecuador</option>+ <option value="EG">Egypt</option>+ <option value="SV">El Salvador</option>+ <option value="GQ">Equatorial Guinea</option>+ <option value="ER">Eritrea</option>+ <option value="EE">Estonia</option>+ <option value="SZ">Eswatini</option>+ <option value="ET">Ethiopia</option>+ <option value="FK">Falkland Islands (Malvinas)</option>+ <option value="FO">Faroe Islands</option>+ <option value="FJ">Fiji</option>+ <option value="FI">Finland</option>+ <option value="FR">France</option>+ <option value="GF">French Guiana</option>+ <option value="PF">French Polynesia</option>+ <option value="TF">French Southern Territories</option>+ <option value="GA">Gabon</option>+ <option value="GM">Gambia</option>+ <option value="GE">Georgia</option>+ <option value="DE">Germany</option>+ <option value="GH">Ghana</option>+ <option value="GI">Gibraltar</option>+ <option value="GR">Greece</option>+ <option value="GL">Greenland</option>+ <option value="GD">Grenada</option>+ <option value="GP">Guadeloupe</option>+ <option value="GU">Guam</option>+ <option value="GT">Guatemala</option>+ <option value="GG">Guernsey</option>+ <option value="GN">Guinea</option>+ <option value="GW">Guinea-Bissau</option>+ <option value="GY">Guyana</option>+ <option value="HT">Haiti</option>+ <option value="HM">Heard and Mc Donald Islands</option>+ <option value="VA">Holy See(Vatican City State)</option>+ <option value="HN">Honduras</option>+ <option value="HK">Hong Kong</option>+ <option value="HU">Hungary</option>+ <option value="IS">Iceland</option>+ <option value="IN">India</option>+ <option value="ID">Indonesia</option>+ <option value="IR">Iran</option>+ <option value="IQ">Iraq</option>+ <option value="IE">Ireland</option>+ <option value="IM">Isle of Man</option>+ <option value="IL">Israel</option>+ <option value="IT">Italy</option>+ <option value="JM">Jamaica</option>+ <option value="JP">Japan</option>+ <option value="JE">Jersey</option>+ <option value="JO">Jordan</option>+ <option value="KZ">Kazakhstan</option>+ <option value="KE">Kenya</option>+ <option value="KI">Kiribati</option>+ <option value="KR">Korea, Republic of</option>+ <option value="XK">Kosovo</option>+ <option value="KW">Kuwait</option>+ <option value="KG">Kyrgyzstan</option>+ <option value="LA">Lao People's Democratic Republic</option>+ <option value="LV">Latvia</option>+ <option value="LB">Lebanon</option>+ <option value="LS">Lesotho</option>+ <option value="LR">Liberia</option>+ <option value="LY">Libya</option>+ <option value="LI">Liechtenstein</option>+ <option value="LT">Lithuania</option>+ <option value="LU">Luxembourg</option>+ <option value="MF">MF</option>+ <option value="MO">Macau</option>+ <option value="MK">Macedonia, the former Yugoslav Republic of</option>+ <option value="MG">Madagascar</option>+ <option value="MW">Malawi</option>+ <option value="MY">Malaysia</option>+ <option value="MV">Maldives</option>+ <option value="ML">Mali</option>+ <option value="MT">Malta</option>+ <option value="MH">Marshall Islands</option>+ <option value="MQ">Martinique</option>+ <option value="MR">Mauritania</option>+ <option value="MU">Mauritius</option>+ <option value="YT">Mayotte</option>+ <option value="MX">Mexico</option>+ <option value="FM">Micronesia, Federated States of</option>+ <option value="MD">Moldova, Republic of</option>+ <option value="MC">Monaco</option>+ <option value="MN">Mongolia</option>+ <option value="ME">Montenegro</option>+ <option value="MS">Montserrat</option>+ <option value="MA">Morocco</option>+ <option value="MZ">Mozambique</option>+ <option value="MM">Myanmar</option>+ <option value="NA">Namibia</option>+ <option value="NR">Nauru</option>+ <option value="NP">Nepal</option>+ <option value="NL" selected="">Netherlands</option>+ <option value="NC">New Caledonia</option>+ <option value="NZ">New Zealand</option>+ <option value="NI">Nicaragua</option>+ <option value="NE">Niger</option>+ <option value="NG">Nigeria</option>+ <option value="NU">Niue</option>+ <option value="NF">Norfolk Island</option>+ <option value="MP">Northern Mariana Islands</option>+ <option value="NO">Norway</option>+ <option value="OM">Oman</option>+ <option value="PK">Pakistan</option>+ <option value="PW">Palau</option>+ <option value="PS">Palestinian Territory, Occupied</option>+ <option value="PA">Panama</option>+ <option value="PG">Papua New Guinea</option>+ <option value="PY">Paraguay</option>+ <option value="PE">Peru</option>+ <option value="PH">Philippines</option>+ <option value="PN">Pitcairn</option>+ <option value="PL">Poland</option>+ <option value="PT">Portugal</option>+ <option value="PR">Puerto Rico</option>+ <option value="QA">Qatar</option>+ <option value="RE">Reunion</option>+ <option value="RO">Romania</option>+ <option value="RU">Russian Federation</option>+ <option value="RW">Rwanda</option>+ <option value="SS">SS</option>+ <option value="SX">SX</option>+ <option value="SH">Saint Helena</option>+ <option value="KN">Saint Kitts and Nevis</option>+ <option value="LC">Saint Lucia</option>+ <option value="PM">Saint Pierre and Miquelon</option>+ <option value="VC">Saint Vincent and the Grenadines</option>+ <option value="WS">Samoa</option>+ <option value="SM">San Marino</option>+ <option value="ST">Sao Tome and Principe</option>+ <option value="SA">Saudi Arabia</option>+ <option value="SN">Senegal</option>+ <option value="RS">Serbia</option>+ <option value="SC">Seychelles</option>+ <option value="SL">Sierra Leone</option>+ <option value="SG">Singapore</option>+ <option value="SK">Slovakia</option>+ <option value="SI">Slovenia</option>+ <option value="SB">Solomon Islands</option>+ <option value="SO">Somalia</option>+ <option value="ZA">South Africa</option>+ <option value="GS">South Georgia and the South Sandwich Islands</option>+ <option value="ES">Spain</option>+ <option value="LK">Sri Lanka</option>+ <option value="SD">Sudan</option>+ <option value="SR">Suriname</option>+ <option value="SJ">Svalbard and Jan Mayen</option>+ <option value="SE">Sweden</option>+ <option value="CH">Switzerland</option>+ <option value="SY">Syria</option>+ <option value="TW">Taiwan</option>+ <option value="TJ">Tajikistan</option>+ <option value="TZ">Tanzania, United Republic of</option>+ <option value="TH">Thailand</option>+ <option value="TL">Timor-Leste</option>+ <option value="TG">Togo</option>+ <option value="TK">Tokelau</option>+ <option value="TO">Tonga</option>+ <option value="TT">Trinidad and Tobago</option>+ <option value="TN">Tunisia</option>+ <option value="TR">Turkey</option>+ <option value="TM">Turkmenistan</option>+ <option value="TC">Turks and Caicos Islands</option>+ <option value="TV">Tuvalu</option>+ <option value="UG">Uganda</option>+ <option value="UA">Ukraine</option>+ <option value="AE">United Arab Emirates</option>+ <option value="GB">United Kingdom</option>+ <option value="US">United States</option>+ <option value="UM">United States Minor Outlying Islands</option>+ <option value="UY">Uruguay</option>+ <option value="UZ">Uzbekistan</option>+ <option value="VU">Vanuatu</option>+ <option value="VE">Venezuela</option>+ <option value="VN">Viet Nam</option>+ <option value="VG">Virgin Islands, British</option>+ <option value="VI">Virgin Islands, U.S.</option>+ <option value="WF">Wallis and Futuna</option>+ <option value="EH">Western Sahara</option>+ <option value="YE">Yemen</option>+ <option value="ZM">Zambia</option>+ <option value="ZW">Zimbabwe</option>+ </select>+</div>+</div>+<div style="clear: left;"></div>+</div>++<div class="form_row">+<div id="captcha_entry" style="">+<div id="captcha_entry_text" style="display: none;">+<input type="hidden" id="captchagid" name="captchagid" value="2916114042019526">+<div class="form_area">+<img id="captchaImg" src="#" border="0">+<br><br>+<label for="captcha_text">Enter the characters above</label>++<input type="text" name="captcha_text" id="captcha_text">+</div>+<div class="form_notes" style="padding-top: 10px;">+<label for="captcha_text">+ <a id="captchaRefreshLink" href="javascript:RefreshCaptcha()">Refresh</a>+ <a href="javascript:RefreshCaptcha()" style="text-decoration: none;">+ <img id="captchaRefreshImg" src="#" border="0">+ </a>+</label>+</div>+<div style="clear: left;"></div>+</div>+</div>+</div>+<div class="form_row">+ <div id="ssa_box">+<input type="hidden" name="action" value="submit_agreement">+ <div id="eu_ssa_box" class="ssa_box" style="display:block">+ </div>+<label id="label_agree">+<input type="checkbox" name="i_agree_check" id="i_agree_check">+I am 13 years of age or older and agree to the terms of the <a href="#" target="_blank">Steam Subscriber Agreement</a> and the <a href="#" target="_blank">Valve Privacy Policy</a>. </label>++</div>+ <div id="priv_and_sub">+<button type="submit" form="create_account" id="createAccountButton" class="joinsteam_button btn_blue_steamui btn_medium">+<span>Continue</span>+</button>+</div>+</div>+</div>\ No newline at end of filediff --git a/browser-extension/src/utils/formDetector/__tests__/test-forms/en-registration-form4.html b/browser-extension/src/utils/formDetector/__tests__/test-forms/en-registration-form4.htmlnew file mode 100644index 000000000..20152f11a--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/test-forms/en-registration-form4.html@@ -0,0 +1,727 @@+<div class="content extLoginFormContent">+ <input type="hidden" id="fbcs_keyword" name="fbcs_keyword" value="">+ <input type="hidden" id="fbcs_dept" name="fbcs_dept" value="">+ <input type="hidden" id="fbcs_div" name="fbcs_div" value="">+ <input type="hidden" id="fbcs_loc" name="fbcs_loc" value="">+ <input type="hidden" id="career_ns" name="career_ns">++ <div class="button_row bottomspace">+ <div class="left">+ <span class="aquabtn mid inactiveAccessible">+ <span>+++ <button type="button" onclick="javascript:setField('career_ns','home');setFieldAndSubmit('userMsgReq','false');">Go Back+ </button>+++ </span>+ </span>+ </div>+ </div>++ <p>+ <span>Already a registered user?</span>+ <a href="/career?company=1657261P&site=&lang=en_GB&requestParams=kLT07rTA9vLxk7NqwAotzGjSnSJ42lvzloG1uIhBMCuxLFGvtCQzR88jsTjDN7GAlf3WwcNiCReZ%0AGZjcGLhy8hNT3BKTS%2FKLPBk4SzKKUosz8nNSKgrsHRhAgKecA0gKADFbCYNgTn56Zp5bTn55UGph%0AaWZRakppEYNwtA%2FYipzEvHS94JKizLx067WXwp6%2FlK12Z2JgqCgA6mUsYWApKSpNBVLFmSWppYUM%0AdQzMEHGGEga%2B5MSi1NSi%2BOT83ILEvEpkWQ5DM1NzIzPDgBIGdvzSLCD7keVYU%2FPi3Z1KGNjii%2FWS%0Ai5KQpXS8SpItAjzSIn3zDJxLq7yr9DOSU5xNowKcAtMic5M8yssKsgxK3INCjMp8bSsA9GBdIQ%3D%3D%0A&_s.crb=Jtc8PHfYMn0CuzKz%2fhcdC5ZPBQfYmbHwvpj0tGRT2vM%3d">Please sign in+ </a>+ </p>++ <p>+ <span id="loginHelpText">Login credentials are case-sensitive</span>+ </p>++ <!-- OTP Authentication Container -->+ <div id="otpContainer"></div>++ <script type="text/javascript">++ var validationObjectContainer = [];+++</script>+++ <table id="fieldsContainer" class="axial noborder bottomspace">+ <!-- Fragments include: Starts -->+++<!-- Standard Field values initialization -->++<!-- Username -->+<tbody><tr>+<td class="col-sm-4">+<label for="fbclc_userName" title="Required">+Email Address:++<span class="required requiredAccessible" aria-hidden="true">*</span>++</label>+</td>+<td>+<input class="form-control" type="text" size="30" maxlength="99" autocomplete="false" onkeydown="clearErrMsg(event)" id="fbclc_userName" onblur="checkforMandatory("fbclc_userName",+ "Email%20Address%3a");" name="fbclc_userName" value="" aria-describedby="fbclc_userName_error" aria-required="true">++<div class="rcmValidationMsgArea hide" id="fbclc_userName_error"></div>++<script type="text/javascript">++validationObjectContainer.push(+{+id: "fbclc_userName",+label: "Email Address:"+});+++</script>++</td>+</tr>++<!-- Email Address -->++++<!-- Retype Email Address -->++<tr>+<td class="col-sm-4">+<label for="fbclc_emailConf" title="Required">+Retype Email Address:+<span class="required requiredAccessible" aria-hidden="true">*</span>+</label>+</td>+<td>+<input class="form-control" type="text" size="30" maxlength="99" autocomplete="false" id="fbclc_emailConf" name="fbclc_emailConf" title="Retype Email Address:" onkeydown="clearErrMsg(event)" onpaste="SFDOMEvent.preventDefault(event);" onblur="checkforMandatory("fbclc_emailConf", "Retype%20Email%20Address%3a"); validateEmail()" value="" '="" aria-describedby="fbclc_emailConf_error" aria-required="true">++<div class="rcmValidationMsgArea hide" id="fbclc_emailConf_error"></div>+<script type="text/javascript">++validationObjectContainer.push(+{+id: "fbclc_emailConf",+label: "Retype Email Address:"+});+++</script>++</td>+</tr>++++<!-- Password -->+<tr class="">+<td class="col-sm-4">+<label for="fbclc_pwd" title="Required">+Choose Password:+<span class="required requiredAccessible" aria-hidden="true">*</span>+</label>+</td>+<td>++<div class="rcmPwdPolicy">+<input class="form-control" id="fbclc_pwd" type="password" size="30" autocomplete="false" maxlength="99" name="fbclc_pwd" value="" onkeyup="checkPasswordPolicy(event,fbclc_pwdConf);" onblur="checkforMandatory("fbclc_pwd", "Choose Password:");checkPasswordPolicy(event,fbclc_pwdConf);" aria-describedby="fbclc_pwd_error rcmPwdPolicyProgressBar " aria-required="true" aria-autocomplete="list">+</div>++<a id="rcmPwdPolicyAnchor" href="javascript:void(0);" onmouseover="RCMPwdPolicyUtil.showPopup('rcmPwdPolicyAnchor');return false;" onmouseout="RCMPwdPolicyUtil.hidePopup();return false;" onfocus="RCMPwdPolicyUtil.showPopup('rcmPwdPolicyAnchor');return false;" onblur="RCMPwdPolicyUtil.hidePopup();return false;" style="margin-left: 5px; display: none;">Password Policy+</a>++<div id="rcmPwdPolicyProgressBar" style="float: left; margin-left: 5px; display: inline;"><div role="presentation" class="okIcon sapIcon"></div><div id="PasswordPolicyText" aria-live="assertive" style="float:left">Password accepted</div></div>+++<div id="fbclc_pwd_error" class="rcmValidationMsgArea hide"></div>++<script type="text/javascript">++validationObjectContainer.push(+{+id:"fbclc_pwd",+label: "Choose Password:"+});+++</script>++</td>+</tr>++<!-- Retype Password -->+<tr class="">+<td class="col-sm-4">+<label for="fbclc_pwdConf" title="Required">+Retype Password:+<span class="required requiredAccessible" aria-hidden="true">*</span>+</label>+</td>++<td>++<div class="rcmPwdPolicy">+<input class="form-control invalidInput career-password-text-border" type="password" size="30" maxlength="99" autocomplete="chrome-off" id="fbclc_pwdConf" name="fbclc_pwdConf" value="" onkeyup="checkResetPasswordPolicy(event,fbclc_pwd);" onblur="checkforMandatory("fbclc_pwdConf", "Retype Password:");checkResetPasswordPolicy(event,fbclc_pwd,true);" aria-describedby="fbclc_pwdConf_error pwdMatchOrMismatch" aria-required="true" aria-invalid="true">+</div>++<div id="rcmResetPwdPolicyProgressBar" style="float: left; margin-left: 5px; display: block;" class=" hide"><div class="errorMsg sapIcon"></div><div id="pwdMatchOrMismatch" aria-live="assertive" class="warningMsgText"> Passwords don’t match</div></div>+++<div id="fbclc_pwdConf_error" class="rcmValidationMsgArea"><span>Passwords don’t match</span></div>++<script type="text/javascript">++validationObjectContainer.push(+{+id: "fbclc_pwdConf",+label: "Retype Password:"+});+++</script>++</td>+</tr>++<!-- First Name -->+<tr>+<td class="col-sm-4">+<label for="fbclc_fName" title="Required">+First Name:++<span class="required requiredAccessible" aria-hidden="true">*</span>++</label>+</td>+<td>+<input class="form-control" type="text" size="30" maxlength="40" autocomplete="chrome-off" id="fbclc_fName" onblur="checkforMandatory("fbclc_fName", "First Name:") && isValidName("fbclc_fName", "First Name:")" name="fbclc_fName" value="" aria-describedby="fbclc_fName_error" aria-required="true">+<div class="rcmValidationMsgArea hide" id="fbclc_fName_error"></div>++<script type="text/javascript">++validationObjectContainer.push(+{+id: "fbclc_fName",+label: "First Name:"+});+++</script>++</td>+</tr>++<!-- Middle Name -->+++<!-- Last Name -->+<tr>+<td class="col-sm-4">+<label for="fbclc_lName" title="Required">+Last Name:++<span class="required requiredAccessible" aria-hidden="true">*</span>++</label>+</td>+<td>+<input class="form-control" type="text" size="30" maxlength="40" autocomplete="chrome-off" id="fbclc_lName" onblur="checkforMandatory("fbclc_lName", "Last Name:") && isValidName("fbclc_lName", "Last Name:")" name="fbclc_lName" value="" aria-describedby="fbclc_lName_error" aria-required="true">++<div class="rcmValidationMsgArea hide" id="fbclc_lName_error"></div>+<script type="text/javascript">++validationObjectContainer.push(+{+id: "fbclc_lName",+label: "Last Name:"+});+++</script>++</td>+</tr>++<!-- Dial in Prefix-->++ <!-- Country of Residence: Cross border search preference -->+++<tr>+<td class="col-sm-4">+<label for="fbclc_country" style="white-space:normal;"><span title="Required">+Country/Region of Residence:<span class="required requiredAccessible" aria-hidden="true">*</span></span></label>+</td>+<td>+<div class="form-group">+<div class="col-xs-* col-md-*" style="padding:0px;">+<select aria-required="true" aria-label="Country/Region of Residence" autocomplete="off" id="fbclc_country" name="fbclc_country" onblur="checkforMandatory("fbclc_country", "Country/Region of Residence")" aria-describedby="fbclc_country_error" onchange="clearDpcsInfo()">+++ <option value="" role="menuitem">- Select -</option>++ <option value="AF" role="menuitem">Afghanistan</option>++ <option value="AL" role="menuitem">Albania</option>++ <option value="DZ" role="menuitem">Algeria</option>++ <option value="AD" role="menuitem">Andorra</option>++ <option value="AO" role="menuitem">Angola</option>++ <option value="AG" role="menuitem">Antigua and Barbuda</option>++ <option value="AR" role="menuitem">Argentina</option>++ <option value="AM" role="menuitem">Armenia</option>++ <option value="AU" role="menuitem">Australia</option>++ <option value="AT" role="menuitem">Austria</option>++ <option value="AZ" role="menuitem">Azerbaijan</option>++ <option value="BS" role="menuitem">Bahamas</option>++ <option value="BH" role="menuitem">Bahrain</option>++ <option value="BD" role="menuitem">Bangladesh</option>++ <option value="BB" role="menuitem">Barbados</option>++ <option value="BY" role="menuitem">Belarus</option>++ <option value="BE" role="menuitem">Belgium</option>++ <option value="BZ" role="menuitem">Belize</option>++ <option value="BJ" role="menuitem">Benin</option>++ <option value="BT" role="menuitem">Bhutan</option>++ <option value="BA" role="menuitem">Bosnia and Herzegovina</option>++ <option value="BW" role="menuitem">Botswana</option>++ <option value="BR" role="menuitem">Brazil</option>++ <option value="BN" role="menuitem">Brunei Darussalam</option>++ <option value="BG" role="menuitem">Bulgaria</option>++ <option value="BF" role="menuitem">Burkina Faso</option>++ <option value="BI" role="menuitem">Burundi</option>++ <option value="KH" role="menuitem">Cambodia</option>++ <option value="CM" role="menuitem">Cameroon</option>++ <option value="CA" role="menuitem">Canada</option>++ <option value="CF" role="menuitem">Central African Republic</option>++ <option value="TD" role="menuitem">Chad</option>++ <option value="CL" role="menuitem">Chile</option>++ <option value="CN" role="menuitem">China</option>++ <option value="CO" role="menuitem">Colombia</option>++ <option value="KM" role="menuitem">Comoros</option>++ <option value="CG" role="menuitem">Congo</option>++ <option value="CD" role="menuitem">Congo, the Democratic Republic of the</option>++ <option value="CR" role="menuitem">Costa Rica</option>++ <option value="CI" role="menuitem">Côte d'Ivoire</option>++ <option value="HR" role="menuitem">Croatia</option>++ <option value="CU" role="menuitem">Cuba</option>++ <option value="CY" role="menuitem">Cyprus</option>++ <option value="CZ" role="menuitem">Czech Republic</option>++ <option value="DK" role="menuitem">Denmark</option>++ <option value="DJ" role="menuitem">Djibouti</option>++ <option value="DM" role="menuitem">Dominica</option>++ <option value="DO" role="menuitem">Dominican Republic</option>++ <option value="EC" role="menuitem">Ecuador</option>++ <option value="EG" role="menuitem">Egypt</option>++ <option value="SV" role="menuitem">El Salvador</option>++ <option value="GQ" role="menuitem">Equatorial Guinea</option>++ <option value="ER" role="menuitem">Eritrea</option>++ <option value="EE" role="menuitem">Estonia</option>++ <option value="ET" role="menuitem">Ethiopia</option>++ <option value="FJ" role="menuitem">Fiji</option>++ <option value="FI" role="menuitem">Finland</option>++ <option value="FR" role="menuitem">France</option>++ <option value="GA" role="menuitem">Gabon</option>++ <option value="GM" role="menuitem">Gambia</option>++ <option value="GE" role="menuitem">Georgia</option>++ <option value="DE" role="menuitem">Germany</option>++ <option value="GH" role="menuitem">Ghana</option>++ <option value="GR" role="menuitem">Greece</option>++ <option value="GD" role="menuitem">Grenada</option>++ <option value="GT" role="menuitem">Guatemala</option>++ <option value="GN" role="menuitem">Guinea</option>++ <option value="GW" role="menuitem">Guinea-Bissau</option>++ <option value="GY" role="menuitem">Guyana</option>++ <option value="HT" role="menuitem">Haiti</option>++ <option value="HN" role="menuitem">Honduras</option>++ <option value="HU" role="menuitem">Hungary</option>++ <option value="IS" role="menuitem">Iceland</option>++ <option value="IN" role="menuitem">India</option>++ <option value="ID" role="menuitem">Indonesia</option>++ <option value="IR" role="menuitem">Iran, Islamic Republic of</option>++ <option value="IQ" role="menuitem">Iraq</option>++ <option value="IE" role="menuitem">Ireland</option>++ <option value="IL" role="menuitem">Israel</option>++ <option value="IT" role="menuitem">Italy</option>++ <option value="JM" role="menuitem">Jamaica</option>++ <option value="JP" role="menuitem">Japan</option>++ <option value="JO" role="menuitem">Jordan</option>++ <option value="KZ" role="menuitem">Kazakhstan</option>++ <option value="KE" role="menuitem">Kenya</option>++ <option value="KI" role="menuitem">Kiribati</option>++ <option value="KP" role="menuitem">Korea, Democratic People's Republic of</option>++ <option value="KR" role="menuitem">Korea, Republic of</option>++ <option value="XK" role="menuitem">Kosovo</option>++ <option value="KW" role="menuitem">Kuwait</option>++ <option value="KG" role="menuitem">Kyrgyzstan</option>++ <option value="LA" role="menuitem">Lao People's Democratic Republic</option>++ <option value="LV" role="menuitem">Latvia</option>++ <option value="LB" role="menuitem">Lebanon</option>++ <option value="LS" role="menuitem">Lesotho</option>++ <option value="LR" role="menuitem">Liberia</option>++ <option value="LI" role="menuitem">Liechtenstein</option>++ <option value="LT" role="menuitem">Lithuania</option>++ <option value="LU" role="menuitem">Luxembourg</option>++ <option value="MG" role="menuitem">Madagascar</option>++ <option value="MW" role="menuitem">Malawi</option>++ <option value="MY" role="menuitem">Malaysia</option>++ <option value="MV" role="menuitem">Maldives</option>++ <option value="ML" role="menuitem">Mali</option>++ <option value="MT" role="menuitem">Malta</option>++ <option value="MH" role="menuitem">Marshall Islands</option>++ <option value="MR" role="menuitem">Mauritania</option>++ <option value="MU" role="menuitem">Mauritius</option>++ <option value="MX" role="menuitem">Mexico</option>++ <option value="FM" role="menuitem">Micronesia, Federated States of</option>++ <option value="MD" role="menuitem">Moldova, Republic of</option>++ <option value="MC" role="menuitem">Monaco</option>++ <option value="MN" role="menuitem">Mongolia</option>++ <option value="ME" role="menuitem">Montenegro</option>++ <option value="MA" role="menuitem">Morocco</option>++ <option value="MZ" role="menuitem">Mozambique</option>++ <option value="MM" role="menuitem">Myanmar</option>++ <option value="NA" role="menuitem">Namibia</option>++ <option value="NR" role="menuitem">Nauru</option>++ <option value="NP" role="menuitem">Nepal</option>++ <option value="NL" role="menuitem">Netherlands</option>++ <option value="NZ" role="menuitem">New Zealand</option>++ <option value="NI" role="menuitem">Nicaragua</option>++ <option value="NE" role="menuitem">Niger</option>++ <option value="NG" role="menuitem">Nigeria</option>++ <option value="NO" role="menuitem">Norway</option>++ <option value="OM" role="menuitem">Oman</option>++ <option value="PK" role="menuitem">Pakistan</option>++ <option value="PW" role="menuitem">Palau</option>++ <option value="PS" role="menuitem">Palestine, State of</option>++ <option value="PA" role="menuitem">Panama</option>++ <option value="PG" role="menuitem">Papua New Guinea</option>++ <option value="PY" role="menuitem">Paraguay</option>++ <option value="PE" role="menuitem">Peru</option>++ <option value="PH" role="menuitem">Philippines</option>++ <option value="PL" role="menuitem">Poland</option>++ <option value="PT" role="menuitem">Portugal</option>++ <option value="QA" role="menuitem">Qatar</option>++ <option value="MK" role="menuitem">Republic of North Macedonia</option>++ <option value="RO" role="menuitem">Romania</option>++ <option value="RU" role="menuitem">Russian Federation</option>++ <option value="RW" role="menuitem">Rwanda</option>++ <option value="KN" role="menuitem">Saint Kitts and Nevis</option>++ <option value="LC" role="menuitem">Saint Lucia</option>++ <option value="VC" role="menuitem">Saint Vincent and the Grenadines</option>++ <option value="WS" role="menuitem">Samoa</option>++ <option value="SM" role="menuitem">San Marino</option>++ <option value="ST" role="menuitem">Sao Tome and Principe</option>++ <option value="SA" role="menuitem">Saudi Arabia</option>++ <option value="SN" role="menuitem">Senegal</option>++ <option value="RS" role="menuitem">Serbia</option>++ <option value="SC" role="menuitem">Seychelles</option>++ <option value="SL" role="menuitem">Sierra Leone</option>++ <option value="SG" role="menuitem">Singapore</option>++ <option value="SK" role="menuitem">Slovakia</option>++ <option value="SI" role="menuitem">Slovenia</option>++ <option value="SB" role="menuitem">Solomon Islands</option>++ <option value="SO" role="menuitem">Somalia</option>++ <option value="ZA" role="menuitem">South Africa</option>++ <option value="SS" role="menuitem">South Sudan</option>++ <option value="ES" role="menuitem">Spain</option>++ <option value="LK" role="menuitem">Sri Lanka</option>++ <option value="SD" role="menuitem">Sudan</option>++ <option value="SR" role="menuitem">Suriname</option>++ <option value="SE" role="menuitem">Sweden</option>++ <option value="CH" role="menuitem">Switzerland</option>++ <option value="SY" role="menuitem">Syrian Arab Republic</option>++ <option value="TJ" role="menuitem">Tajikistan</option>++ <option value="TZ" role="menuitem">Tanzania, United Republic of</option>++ <option value="TH" role="menuitem">Thailand</option>++ <option value="TL" role="menuitem">Timor-Leste</option>++ <option value="TG" role="menuitem">Togo</option>++ <option value="TO" role="menuitem">Tonga</option>++ <option value="TT" role="menuitem">Trinidad and Tobago</option>++ <option value="TN" role="menuitem">Tunisia</option>++ <option value="TR" role="menuitem">Turkey</option>++ <option value="TM" role="menuitem">Turkmenistan</option>++ <option value="TV" role="menuitem">Tuvalu</option>++ <option value="UG" role="menuitem">Uganda</option>++ <option value="UA" role="menuitem">Ukraine</option>++ <option value="AE" role="menuitem">United Arab Emirates</option>++ <option value="GB" role="menuitem">United Kingdom</option>++ <option value="US" role="menuitem">United States</option>++ <option value="UY" role="menuitem">Uruguay</option>++ <option value="UZ" role="menuitem">Uzbekistan</option>++ <option value="VU" role="menuitem">Vanuatu</option>++ <option value="VE" role="menuitem">Venezuela</option>++ <option value="VN" role="menuitem">Viet Nam</option>++ <option value="YE" role="menuitem">Yemen</option>++ <option value="ZM" role="menuitem">Zambia</option>++ <option value="ZW" role="menuitem">Zimbabwe</option>++</select>+</div>+<div id="fbclc_country_error" class="rcmValidationMsgArea hide"></div>+</div>++<script type="text/javascript">++validationObjectContainer.push(+{+ id: "fbclc_country",+ label: "Country/Region of Residence"+});+++</script>++</td>+</tr>+<!-- Make Profile Visibile to: -->++++<!-- Notifications -->+++<!-- Marketing Consent switch in Recruiting settings -->+++<!-- Captcha -->+++++<!-- Data Privacy Statement -->++<tr>+<td>+<label for="dataPrivacyId" style="white-space:normal;">+Terms of Use:<span class="required requiredAccessible" aria-hidden="true">*</span>+</label>+</td>+<td class="dpcsHyperlink">+<span>+<a aria-label="Terms of Use Read and accept the data privacy statement. Required" id="dataPrivacyId" role="button" tabindex="0" style="cursor:pointer;" onblur="checkforMandatory('fbclc_dpcsId', 'Terms of Use')" onkeydown="javascript:var evt = event.keyCode; if(event.keyCode == 32 || event.keyCode == 13) openDpcsDialog(true);" onclick="openDpcsDialog(true);return false;">+Read and accept the data privacy statement.+</a>+</span>++<div class="rcmValidationMsgArea hide" id="fbclc_dpcsId_error" aria-live="assertive"></div>+<input type="hidden" id="fbclc_dpcsId" name="fbclc_dpcsId" value="">++<script type="text/javascript">++validationObjectContainer.push(+{+ id: "fbclc_dpcsId",+ label: "Terms of Use"+});+++</script>+++</td>+</tr>+++ <!-- Fragments include: Ends -->++ <!-- Create Account button -->+ <tr>+ <th></th>+ <td class="button_cell">+ <div id="dataPrivacyTooltipRegion">+ <span id="fbclc_createAccountButton_span" class="aquabtn inactiveAccessible activeAccessible">+ <span>+ <button id="fbclc_createAccountButton" name="fbclc_createAccountButton" onfocus="readMsg('');" onclick="return submitCreateAccount();">+ Create Account+ </button>+ </span>+ </span>+ </div>+ </td>+ </tr>+ </tbody></table>+</div>\ No newline at end of filediff --git a/browser-extension/src/utils/formDetector/__tests__/test-forms/en-registration-form5.html b/browser-extension/src/utils/formDetector/__tests__/test-forms/en-registration-form5.htmlnew file mode 100644index 000000000..2e52e3cfd--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/test-forms/en-registration-form5.html@@ -0,0 +1,6 @@+<html lang="en"><head><meta name="referrer" content="origin"><meta name="viewport" content="width=device-width, initial-scale=1.0"><link rel="icon" href="y18.svg"><style>com-strongbox-extension {visibility: visible !important; /* Ensure visibility for Strongbox Extension */}</style><style>com-strongbox-extension {visibility: visible !important; /* Ensure visibility for Strongbox Extension */}</style><style>com-strongbox-extension {visibility: visible !important; /* Ensure visibility for Strongbox Extension */}</style></head><body><b>Login</b><br><br>+ <form action="login" method="post"><input type="hidden" name="goto" value="news"><table border="0"><tbody><tr><td>username:</td><td><input type="text" name="acct" size="20" autocorrect="off" spellcheck="false" autocapitalize="off" autofocus="true" id="aliasvault-input-xahcz4tlf" autocomplete="false"></td></tr><tr><td>password:</td><td><input type="password" name="pw" size="20"></td></tr></tbody></table><br>+ <input type="submit" value="login"></form><a href="forgot">Forgot your password?</a><br><br>+ <b>Create Account</b><br><br>+ <form action="login" method="post"><input type="hidden" name="goto" value="news"><input type="hidden" name="creating" value="t"><table border="0"><tbody><tr><td>username:</td><td><input type="text" name="acct" size="20" autocorrect="off" spellcheck="false" autocapitalize="off" id="aliasvault-input-7owmnahd9" autocomplete="false"></td></tr><tr><td>password:</td><td><input type="password" name="pw" size="20" id="aliasvault-input-ienw3qgxv" autocomplete="false"></td></tr></tbody></table><br>+ <input type="submit" value="create account"></form></body></html>\ No newline at end of filediff --git a/browser-extension/src/utils/formDetector/__tests__/test-forms/en-registration-form6.html b/browser-extension/src/utils/formDetector/__tests__/test-forms/en-registration-form6.htmlnew file mode 100644index 000000000..47a032bd1--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/test-forms/en-registration-form6.html@@ -0,0 +1,26 @@+<form id="registerUser" action="/accounts/register/" method="post" class="register-form">+ <input type="hidden" name="csrfmiddlewaretoken" value="U1l5CeQKuQfYceu7DCO2yx1XXFtYXTMYn6ZodGBCz9ruC5XHc56gQDbk7qKUp79d">+++<input type="hidden" name="captcha" class="g-recaptcha" required_score="0.1" data-sitekey="6LckpJAUAAAAAFx3Ywv8kTCIusy2spXnPN27HYFE" id="id_captcha" data-widget-uuid="f91db472574f45898e363c64c961d2e7" data-callback="onSubmit_f91db472574f45898e363c64c961d2e7" data-size="normal" style="">++ <div id="formRegisterInputs"><div class="row custom-col-12"><div class="col-12 col-md-12"><div class="form-group"><label for="id_first_name">First name<span>*</span></label> <input type="text" placeholder="James" id="id_first_name" name="first_name" required="required" value="" autofocus="autofocus" class="form-control" autocomplete="false"></div></div> <div class="col-12 col-md-12"><div class="form-group"><label for="id_last_name">Last name<span>*</span></label> <input type="text" placeholder="Davies" id="id_last_name" name="last_name" required="required" value="" class="form-control"></div></div></div> <div id="ue_emailRegister"><div class="form-group"><label for="id_email">Email<span>*</span></label> <input type="email" placeholder="[email protected]" id="id_email" name="email" required="required" value="" autocomplete="off" class="form-control"></div></div> <div><div class="form-group"><div class="custom-password"><label for="id_password1">Password<span>*</span></label> <input placeholder="Password" name="password1" id="id_password1" required="required" type="password" class="form-control"> <i class="fas fa-eye"></i></div></div> <div class="custom-regex-condition"><p class="uncheck">12 characters</p> <p class="uncheck">lowercase letter (a-z)</p> <p class="uncheck">uppercase letter (A-Z)</p> <p class="uncheck">one digit (0-9)</p> <p class="uncheck">one special character (ex. &%$#@!+_<,>:;)</p></div> <input type="hidden" placeholder="Password" id="id_password1" name="password1" required="required" value="?J@J$RNILhW{P6K.L>" class="form-control"></div> <button type="submit" data-action="createAccount" class="btn btn-primary w-100"><span class="text-white">Sign up free</span> <div class="text-white" style="width: 40px; height: 25px; overflow: hidden; margin: 0px auto; display: none;"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 200 200" width="200" height="200" preserveAspectRatio="xMidYMid meet" style="width: 100%; height: 100%; transform: translate3d(0px, 0px, 0px); content-visibility: visible;"><defs><clipPath id="__lottie_element_2"><rect width="200" height="200" x="0" y="0"></rect></clipPath></defs><g clip-path="url(#__lottie_element_2)"><g transform="matrix(1,0,0,1,68.26899719238281,101.01899719238281)" opacity="1" style="display: block;"><g opacity="1" transform="matrix(1,0,0,1,3.4809999465942383,-1.0190000534057617)"><path fill="rgb(255,255,255)" fill-opacity="1" d=" M0,-7.481500148773193 C4.129039764404297,-7.481500148773193 7.481500148773193,-4.129039764404297 7.481500148773193,0 C7.481500148773193,4.129039764404297 4.129039764404297,7.481500148773193 0,7.481500148773193 C-4.129039764404297,7.481500148773193 -7.481500148773193,4.129039764404297 -7.481500148773193,0 C-7.481500148773193,-4.129039764404297 -4.129039764404297,-7.481500148773193 0,-7.481500148773193z"></path></g></g><g transform="matrix(1,0,0,1,96.39399719238281,101.01899719238281)" opacity="0.2580833333333216" style="display: block;"><g opacity="1" transform="matrix(1,0,0,1,3.4809999465942383,-1.0190000534057617)"><path fill="rgb(255,255,255)" fill-opacity="1" d=" M0,-7.481500148773193 C4.129039764404297,-7.481500148773193 7.481500148773193,-4.129039764404297 7.481500148773193,0 C7.481500148773193,4.129039764404297 4.129039764404297,7.481500148773193 0,7.481500148773193 C-4.129039764404297,7.481500148773193 -7.481500148773193,4.129039764404297 -7.481500148773193,0 C-7.481500148773193,-4.129039764404297 -4.129039764404297,-7.481500148773193 0,-7.481500148773193z"></path></g></g><g transform="matrix(1,0,0,1,124.51899719238281,101.01899719238281)" opacity="0.13108333333332084" style="display: none;"><g opacity="1" transform="matrix(1,0,0,1,3.4809999465942383,-1.0190000534057617)"><path fill="rgb(255,255,255)" fill-opacity="1" d=" M0,-7.481500148773193 C4.129039764404297,-7.481500148773193 7.481500148773193,-4.129039764404297 7.481500148773193,0 C7.481500148773193,4.129039764404297 4.129039764404297,7.481500148773193 0,7.481500148773193 C-4.129039764404297,7.481500148773193 -7.481500148773193,4.129039764404297 -7.481500148773193,0 C-7.481500148773193,-4.129039764404297 -4.129039764404297,-7.481500148773193 0,-7.481500148773193z"></path></g></g></g></svg></div></button></div>++<fieldset class="form-group mb-0 mt-3">+<div class="form-check">+ <input type="checkbox" class="form-check-input" name="subscribe" id="id_subscribe">+ <label for="id_subscribe" class="form-check-label">+ I'd like to get useful tips, inspiration, and offers via email (you can unsubscribe at any time).</label>+</div>+</fieldset>++<span class="mt-4 mb-3" data-hr-text="OR"></span>+++++<p class="custom-p">By creating account I agree with</p>++++</form>\ No newline at end of filediff --git a/browser-extension/src/utils/formDetector/__tests__/test-forms/en-registration-form7.html b/browser-extension/src/utils/formDetector/__tests__/test-forms/en-registration-form7.htmlnew file mode 100644index 000000000..1368f8398--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/test-forms/en-registration-form7.html@@ -0,0 +1 @@+<form data-purpose="code-generation-form" data-gtm-form-interact-id="0"><div class="auth-form-row--small--Byo8R"><div class="ud-compact-form-group ud-form-group"><div class="ud-compact-form-control-container"><input aria-invalid="false" required="" name="full-name" id="form-group--2" type="text" class="ud-text-input ud-text-input-medium ud-text-sm ud-compact-form-control" value="" autocomplete="false" data-gtm-form-interact-field-id="1"><label for="form-group--2" class="ud-form-label ud-heading-sm"><span class="ud-compact-form-label-content"><span class="ud-compact-form-label-text">Full name</span></span></label></div></div></div><div class="auth-form-row--small--Byo8R"><div><div class="ud-compact-form-group ud-form-group"><div class="ud-compact-form-control-container"><input aria-invalid="false" name="email" minlength="7" maxlength="77" id="form-group--4" type="email" class="ud-text-input ud-text-input-medium ud-text-sm ud-compact-form-control" value="" data-gtm-form-interact-field-id="0" autocomplete="false"><label for="form-group--4" class="ud-form-label ud-heading-sm"><span class="ud-compact-form-label-content"><span class="ud-compact-form-label-text">Email</span></span></label></div></div></div></div><button type="submit" class="ud-btn ud-btn-large ud-btn-brand ud-heading-md passwordless-auth-mx-code-generation-form--submit-button--2vOvZ"><svg aria-hidden="true" focusable="false" class="ud-icon ud-icon-medium"><use xlink:href="#icon-email"></use></svg>Continue with email</button></form>\ No newline at end of filediff --git a/browser-extension/src/utils/formDetector/__tests__/test-forms/invalid-form1.html b/browser-extension/src/utils/formDetector/__tests__/test-forms/invalid-form1.htmlnew file mode 100644index 000000000..93de36e46--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/test-forms/invalid-form1.html@@ -0,0 +1,37 @@+<!--+This is a form with only a search input that should not be detected as a login/registration form.+-->+<div id="center" class="style-scope ytd-masthead">++ <yt-searchbox role="search" client-ve-type="10349" class="ytSearchboxComponentHost ytSearchboxComponentDesktop ytd-masthead ytSearchboxComponentHostDark">+ <div class="ytSearchboxComponentInputBox ytSearchboxComponentInputBoxDark"><form action="/results" class="ytSearchboxComponentSearchForm"><input name="search_query" aria-controls="i0" aria-expanded="true" type="text" autocomplete="off" autocorrect="off" aria-autocomplete="list" role="combobox" class="ytSearchboxComponentInput yt-searchbox-input title" placeholder="Search"></form></div><button aria-label="Search" class="ytSearchboxComponentSearchButton ytSearchboxComponentSearchButtonDark" title="Search"><yt-icon><!--css-build:shady--><!--css_build_scope:yt-icon--><!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_icon.yt.icon.css.js--><span class="yt-icon-shape style-scope yt-icon yt-spec-icon-shape"><div style="width: 100%; height: 100%; display: block; fill: currentcolor;"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" height="24" viewBox="0 0 24 24" width="24" focusable="false" aria-hidden="true" style="pointer-events: none; display: inherit; width: 100%; height: 100%;"><path clip-rule="evenodd" d="M16.296 16.996a8 8 0 11.707-.708l3.909 3.91-.707.707-3.909-3.909zM18 11a7 7 0 00-14 0 7 7 0 1014 0z" fill-rule="evenodd"></path></svg></div></span></yt-icon></button><div id="i0" role="listbox" hidden="true" class="ytSearchboxComponentSuggestionsContainer ytSearchboxComponentSuggestionsContainerDark" style="min-width: 536px;"></div></yt-searchbox>+ <dom-if class="style-scope ytd-masthead"><template is="dom-if"></template></dom-if>+ <ytd-searchbox id="search" class="style-scope ytd-masthead" hidden="" system-icons="" role="search"><!--css-build:shady--><!--css_build_scope:ytd-searchbox--><!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--><form id="search-form" action="/results" class="style-scope ytd-searchbox">+<div id="container" class="style-scope ytd-searchbox">+ <yt-icon id="search-icon" class="style-scope ytd-searchbox"><!--css-build:shady--><!--css_build_scope:yt-icon--><!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_icon.yt.icon.css.js--><span class="yt-icon-shape style-scope yt-icon yt-spec-icon-shape"><div style="width: 100%; height: 100%; display: block; fill: currentcolor;"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" height="24" viewBox="0 0 24 24" width="24" focusable="false" aria-hidden="true" style="pointer-events: none; display: inherit; width: 100%; height: 100%;"><path clip-rule="evenodd" d="M16.296 16.996a8 8 0 11.707-.708l3.909 3.91-.707.707-3.909-3.909zM18 11a7 7 0 00-14 0 7 7 0 1014 0z" fill-rule="evenodd"></path></svg></div></span></yt-icon>+ <div id="search-input" class="ytd-searchbox-spt" slot="search-input"><input id="search" autocapitalize="none" autocomplete="off" autocorrect="off" name="search_query" tabindex="0" type="text" spellcheck="false" placeholder="Search" aria-label="Search"></div>+ <div id="search-clear-button" class="style-scope ytd-searchbox" hidden=""><ytd-button-renderer class="style-scope ytd-searchbox" button-renderer="" button-next=""><!--css-build:shady--><yt-button-shape><button class="yt-spec-button-shape-next yt-spec-button-shape-next--text yt-spec-button-shape-next--mono yt-spec-button-shape-next--size-m yt-spec-button-shape-next--icon-only-default" aria-disabled="false" aria-label="Clear search query" title="" style=""><div class="yt-spec-button-shape-next__icon" aria-hidden="true"><yt-icon style="width: 24px; height: 24px;"><!--css-build:shady--><!--css_build_scope:yt-icon--><!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_icon.yt.icon.css.js--><span class="yt-icon-shape style-scope yt-icon yt-spec-icon-shape"><div style="width: 100%; height: 100%; display: block; fill: currentcolor;"><svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24" viewBox="0 0 24 24" width="24" focusable="false" aria-hidden="true" style="pointer-events: none; display: inherit; width: 100%; height: 100%;"><path d="m12.71 12 8.15 8.15-.71.71L12 12.71l-8.15 8.15-.71-.71L11.29 12 3.15 3.85l.71-.71L12 11.29l8.15-8.15.71.71L12.71 12z"></path></svg></div></span></yt-icon></div><yt-touch-feedback-shape style="border-radius: inherit;"><div class="yt-spec-touch-feedback-shape yt-spec-touch-feedback-shape--touch-response" aria-hidden="true"><div class="yt-spec-touch-feedback-shape__stroke" style=""></div><div class="yt-spec-touch-feedback-shape__fill" style=""></div></div></yt-touch-feedback-shape></button></yt-button-shape><tp-yt-paper-tooltip offset="8" disable-upgrade=""></tp-yt-paper-tooltip></ytd-button-renderer></div>+</div>+<div id="search-container" class="ytd-searchbox-spt" slot="search-container"></div>+</form>+<button id="search-icon-legacy" class="style-scope ytd-searchbox" aria-label="Search">+<yt-icon class="style-scope ytd-searchbox"><!--css-build:shady--><!--css_build_scope:yt-icon--><!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_icon.yt.icon.css.js--><span class="yt-icon-shape style-scope yt-icon yt-spec-icon-shape"><div style="width: 100%; height: 100%; display: block; fill: currentcolor;"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" height="24" viewBox="0 0 24 24" width="24" focusable="false" aria-hidden="true" style="pointer-events: none; display: inherit; width: 100%; height: 100%;"><path clip-rule="evenodd" d="M16.296 16.996a8 8 0 11.707-.708l3.909 3.91-.707.707-3.909-3.909zM18 11a7 7 0 00-14 0 7 7 0 1014 0z" fill-rule="evenodd"></path></svg></div></span></yt-icon>+<tp-yt-paper-tooltip prefix="" class="style-scope ytd-searchbox" role="tooltip" tabindex="-1" aria-label="tooltip"><!--css-build:shady--><!--css_build_scope:tp-yt-paper-tooltip--><!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tooltip.tp.yt.paper.tooltip.css.js--><div id="tooltip" class="hidden style-scope tp-yt-paper-tooltip" style-target="tooltip">+Search+</div>+</tp-yt-paper-tooltip>+</button>+</ytd-searchbox>+ <yt-icon-button id="search-button-narrow" class="style-scope ytd-masthead" role="button"><!--css-build:shady--><!--css_build_scope:yt-icon-button--><!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_icon_button.yt.icon.button.css.js--><button id="button" class="style-scope yt-icon-button" aria-label="Search">+ <yt-icon class="topbar-icons style-scope ytd-masthead" icon="yt-icons:search" disable-upgrade="">+ </yt-icon>+ <tp-yt-paper-tooltip for="search-button-narrow" class="style-scope ytd-masthead" disable-upgrade="" hidden="">+ Search+ </tp-yt-paper-tooltip>+ </button><yt-interaction id="interaction" class="circular style-scope yt-icon-button"><!--css-build:shady--><!--css_build_scope:yt-interaction--><!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_interaction.yt.interaction.css.js--><div class="stroke style-scope yt-interaction"></div><div class="fill style-scope yt-interaction"></div></yt-interaction></yt-icon-button>+ <div id="voice-search-button" class="style-scope ytd-masthead">+ <ytd-button-renderer class="style-scope ytd-masthead" button-renderer="" button-next=""><!--css-build:shady--><yt-button-shape><button class="yt-spec-button-shape-next yt-spec-button-shape-next--text yt-spec-button-shape-next--overlay yt-spec-button-shape-next--size-m yt-spec-button-shape-next--icon-only-default" aria-disabled="false" aria-label="Search with your voice" title="" style=""><div class="yt-spec-button-shape-next__icon" aria-hidden="true"><yt-icon style="width: 24px; height: 24px;"><!--css-build:shady--><!--css_build_scope:yt-icon--><!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_icon.yt.icon.css.js--><span class="yt-icon-shape style-scope yt-icon yt-spec-icon-shape"><div style="width: 100%; height: 100%; display: block; fill: currentcolor;"><svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24" focusable="false" aria-hidden="true" style="pointer-events: none; display: inherit; width: 100%; height: 100%;"><path d="M12 3c-1.66 0-3 1.37-3 3.07v5.86c0 1.7 1.34 3.07 3 3.07s3-1.37 3-3.07V6.07C15 4.37 13.66 3 12 3zm6.5 9h-1c0 3.03-2.47 5.5-5.5 5.5S6.5 15.03 6.5 12h-1c0 3.24 2.39 5.93 5.5 6.41V21h2v-2.59c3.11-.48 5.5-3.17 5.5-6.41z"></path></svg></div></span></yt-icon></div><yt-touch-feedback-shape style="border-radius: inherit;"><div class="yt-spec-touch-feedback-shape yt-spec-touch-feedback-shape--overlay-touch-response" aria-hidden="true"><div class="yt-spec-touch-feedback-shape__stroke" style=""></div><div class="yt-spec-touch-feedback-shape__fill" style=""></div></div></yt-touch-feedback-shape></button></yt-button-shape><tp-yt-paper-tooltip offset="8" role="tooltip" tabindex="-1" aria-label="tooltip"><!--css-build:shady--><!--css_build_scope:tp-yt-paper-tooltip--><!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tooltip.tp.yt.paper.tooltip.css.js--><div id="tooltip" class="hidden style-scope tp-yt-paper-tooltip" style-target="tooltip">+Search with your voice+</div>+</tp-yt-paper-tooltip></ytd-button-renderer></div>+</div>\ No newline at end of filediff --git a/browser-extension/src/utils/formDetector/__tests__/test-forms/invalid-form2.html b/browser-extension/src/utils/formDetector/__tests__/test-forms/invalid-form2.htmlnew file mode 100644index 000000000..856c2bacc--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/test-forms/invalid-form2.html@@ -0,0 +1,117 @@+<!--+This is a form with only a dropdown that should not be detected as a login/registration form.+-->+<div class="d-flex flex-justify-between mb-md-3 flex-column-reverse flex-md-row flex-items-end">+ <div class="d-flex flex-justify-start flex-auto my-4 my-md-0 width-full width-md-auto" role="search">+ <details class="details-reset details-overlay subnav-search-context flex-shrink-0" id="filters-select-menu">+ <summary data-view-component="true" class="rounded-right-0 color-border-emphasis Button--secondary Button--medium Button" aria-haspopup="menu" role="button"> <span class="Button-content">+ <span class="Button-label">Filters</span>+ </span>+ <span class="Button-visual Button-trailingAction">+ <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-triangle-down">+ <path d="m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"></path>+ </svg>+ </span>+ </summary>+ <details-menu class="SelectMenu" role="menu">+ <div class="SelectMenu-modal">+ <div class="SelectMenu-header">+ <h3 class="SelectMenu-title">Filter Issues</h3>+ <button class="SelectMenu-closeButton" type="button" data-toggle-for="filters-select-menu">+ <svg aria-label="Close menu" aria-hidden="false" role="img" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x">+ <path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path>+ </svg>+ </button>+ </div>+ <div class="SelectMenu-list" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame">+ <a class="SelectMenu-item" role="menuitemradio" aria-checked="false" href="/lanedirt/AliasVault/issues?q=is%3Aopen" data-ga-click="Pull Requests, Search filter, Open issues and pull requests" data-turbo-frame="repo-content-turbo-frame">+ <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check SelectMenu-icon SelectMenu-icon--check">+ <path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>+ </svg>+ Open issues and pull requests+ </a>+ <a class="SelectMenu-item" role="menuitemradio" aria-checked="false" href="/lanedirt/AliasVault/issues?q=is%3Aopen+is%3Aissue+author%3A%40me" data-ga-click="Pull Requests, Search filter, Your issues" data-turbo-frame="repo-content-turbo-frame">+ <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check SelectMenu-icon SelectMenu-icon--check">+ <path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>+ </svg>+ Your issues+ </a>+ <a class="SelectMenu-item" role="menuitemradio" aria-checked="false" href="/lanedirt/AliasVault/issues?q=is%3Aopen+is%3Apr+author%3A%40me" data-ga-click="Pull Requests, Search filter, Your pull requests" data-turbo-frame="repo-content-turbo-frame">+ <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check SelectMenu-icon SelectMenu-icon--check">+ <path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>+ </svg>+ Your pull requests+ </a>+ <a class="SelectMenu-item" role="menuitemradio" aria-checked="false" href="/lanedirt/AliasVault/issues?q=is%3Aopen+assignee%3A%40me" data-ga-click="Pull Requests, Search filter, Everything assigned to you" data-turbo-frame="repo-content-turbo-frame">+ <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check SelectMenu-icon SelectMenu-icon--check">+ <path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>+ </svg>+ Everything assigned to you+ </a>+ <a class="SelectMenu-item" role="menuitemradio" aria-checked="false" href="/lanedirt/AliasVault/issues?q=is%3Aopen+mentions%3A%40me" data-ga-click="Pull Requests, Search filter, Everything mentioning you" data-turbo-frame="repo-content-turbo-frame">+ <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check SelectMenu-icon SelectMenu-icon--check">+ <path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>+ </svg>+ Everything mentioning you+ </a>+ <a class="SelectMenu-item" role="menuitemradio" href="#" target="_blank" rel="noopener noreferrer" data-turbo-frame="repo-content-turbo-frame">+ <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-link-external mr-2">+ <path d="M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"></path>+ </svg>+ <strong>View advanced search syntax</strong>+ </a>+ </div>+ </div>+ </details-menu>+ </details>++ <!-- '"` --><!-- </textarea></xmp> --><form class="subnav-search width-full d-flex " data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" role="search" aria-label="Issues" data-turbo="false" action="/lanedirt/AliasVault/pulls" accept-charset="UTF-8" method="get">+ <input type="text" name="q" id="js-issues-search" value="is:pr is:open " class="form-control subnav-search-input input-contrast width-full" placeholder="Search all issues" aria-label="Search all issues" data-hotkey="Control+/,Meta+/" autocomplete="false">+ <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-search subnav-search-icon">+ <path d="M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"></path>+ </svg>+ </form> <div class="ml-2 pl-2 d-none d-md-flex">++ <nav class="subnav-links float-left d-flex no-wrap" aria-label="Issue">+ <a selected_link="repo_pulls" class="js-selected-navigation-item subnav-item" data-selected-links="repo_labels /lanedirt/AliasVault/labels" href="/lanedirt/AliasVault/labels">+ <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-tag">+ <path d="M1 7.775V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 0 1 0 2.474l-5.026 5.026a1.75 1.75 0 0 1-2.474 0l-6.25-6.25A1.752 1.752 0 0 1 1 7.775Zm1.5 0c0 .066.026.13.073.177l6.25 6.25a.25.25 0 0 0 .354 0l5.025-5.025a.25.25 0 0 0 0-.354l-6.25-6.25a.25.25 0 0 0-.177-.073H2.75a.25.25 0 0 0-.25.25ZM6 5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"></path>+ </svg>+ Labels+ <span title="12" data-view-component="true" class="Counter d-none d-md-inline">12</span>+ </a> <a selected_link="repo_pulls" class="js-selected-navigation-item subnav-item" data-selected-links="repo_milestones /lanedirt/AliasVault/milestones" href="/lanedirt/AliasVault/milestones">+ <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-milestone">+ <path d="M7.75 0a.75.75 0 0 1 .75.75V3h3.634c.414 0 .814.147 1.13.414l2.07 1.75a1.75 1.75 0 0 1 0 2.672l-2.07 1.75a1.75 1.75 0 0 1-1.13.414H8.5v5.25a.75.75 0 0 1-1.5 0V10H2.75A1.75 1.75 0 0 1 1 8.25v-3.5C1 3.784 1.784 3 2.75 3H7V.75A.75.75 0 0 1 7.75 0Zm4.384 8.5a.25.25 0 0 0 .161-.06l2.07-1.75a.248.248 0 0 0 0-.38l-2.07-1.75a.25.25 0 0 0-.161-.06H2.75a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h9.384Z"></path>+ </svg>+ Milestones+ <span title="0" data-view-component="true" class="Counter d-none d-md-inline">0</span>+ </a></nav>++ </div>+ </div>+ <div class="ml-3 d-flex flex-justify-between width-full width-md-auto" data-pjax="">+ <span class="d-md-none">++ <nav class="subnav-links float-left d-flex no-wrap" aria-label="Issue">+ <a selected_link="repo_pulls" class="js-selected-navigation-item subnav-item" data-selected-links="repo_labels /lanedirt/AliasVault/labels" href="/lanedirt/AliasVault/labels">+ <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-tag">+ <path d="M1 7.775V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 0 1 0 2.474l-5.026 5.026a1.75 1.75 0 0 1-2.474 0l-6.25-6.25A1.752 1.752 0 0 1 1 7.775Zm1.5 0c0 .066.026.13.073.177l6.25 6.25a.25.25 0 0 0 .354 0l5.025-5.025a.25.25 0 0 0 0-.354l-6.25-6.25a.25.25 0 0 0-.177-.073H2.75a.25.25 0 0 0-.25.25ZM6 5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"></path>+ </svg>+ Labels+ <span title="12" data-view-component="true" class="Counter d-none d-md-inline">12</span>+ </a> <a selected_link="repo_pulls" class="js-selected-navigation-item subnav-item" data-selected-links="repo_milestones /lanedirt/AliasVault/milestones" href="/lanedirt/AliasVault/milestones">+ <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-milestone">+ <path d="M7.75 0a.75.75 0 0 1 .75.75V3h3.634c.414 0 .814.147 1.13.414l2.07 1.75a1.75 1.75 0 0 1 0 2.672l-2.07 1.75a1.75 1.75 0 0 1-1.13.414H8.5v5.25a.75.75 0 0 1-1.5 0V10H2.75A1.75 1.75 0 0 1 1 8.25v-3.5C1 3.784 1.784 3 2.75 3H7V.75A.75.75 0 0 1 7.75 0Zm4.384 8.5a.25.25 0 0 0 .161-.06l2.07-1.75a.248.248 0 0 0 0-.38l-2.07-1.75a.25.25 0 0 0-.161-.06H2.75a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h9.384Z"></path>+ </svg>+ Milestones+ <span title="0" data-view-component="true" class="Counter d-none d-md-inline">0</span>+ </a></nav>++ </span>+ <a href="/lanedirt/AliasVault/compare" data-hotkey="c" data-ga-click="Repository, go to compare view, location:pull request list; text:New pull request" tabindex="0" data-view-component="true" class="Button--primary Button--medium Button"> <span class="Button-content">+ <span class="Button-label"><span class="d-none d-md-block">New pull request</span>+ <span class="d-block d-md-none">New</span></span>+ </span>+ </a>+ </div>+ </div>\ No newline at end of filediff --git a/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form1.html b/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form1.htmlnew file mode 100644index 000000000..5985aaa84--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form1.html@@ -0,0 +1,140 @@+<div id="cpContent_pnlRegistratie" onkeypress="javascript:return WebForm_FireDefaultButton(event, 'cpContent_btnRegistreren')">+ <div class="form-horizontal" role="form">+ <div class="form-group">+ <label for="cpContent_txtBedrijfsnaam" id="cpContent_lbBedrijfsnaam" class="control-label col-sm-3">Bedrijfsnaam</label>+ <div class="col-sm-9"><input name="ctl00$cpContent$txtBedrijfsnaam" type="text" maxlength="50" id="cpContent_txtBedrijfsnaam" class="form-control"></div>+ </div>+ <div class="form-group">+ <label for="cpContent_rbMale" id="cpContent_lbAanhef" class="control-label col-sm-3">Aanhef</label>+ <div class="col-sm-9"><input id="cpContent_rbMale" type="radio" name="ctl00$cpContent$geslacht" value="rbMale" checked="checked"><label for="cpContent_rbMale">De heer</label> <input id="cpContent_rbFemale" type="radio" name="ctl00$cpContent$geslacht" value="rbFemale"><label for="cpContent_rbFemale">Mevrouw</label></div>+ </div>+ <div class="form-group">+ <label for="cpContent_txtVoorletters" id="cpContent_lbVoorletters" class="control-label col-sm-3">Voorletters</label>+ <div class="col-sm-9"><input name="ctl00$cpContent$txtVoorletters" type="text" maxlength="15" id="cpContent_txtVoorletters" class="form-control"></div>+ </div>+ <div id="cpContent_divTussenvoegselLabel" class="form-group">+ <label for="cpContent_txtTussenvoegsel" id="cpContent_lbTussenvoegsel" class="control-label col-sm-3">Tussenvoegel</label>+ <div class="col-sm-9"><input name="ctl00$cpContent$txtTussenvoegsel" type="text" maxlength="15" id="cpContent_txtTussenvoegsel" class="form-control"></div>+ </div>+ <div class="form-group">+ <label for="cpContent_txtAchternaam" id="cpContent_lbAchternaam" class="control-label col-sm-3 required">Achternaam</label>+ <div class="col-sm-9"><input name="ctl00$cpContent$txtAchternaam" type="text" maxlength="50" id="cpContent_txtAchternaam" class="form-control" data-gtm-form-interact-field-id="3"></div>+ </div>+ <div class="form-group">+ <label for="cpContent_txtEmail" id="cpContent_lbEmailAdres" class="control-label col-sm-3 required">E-mail adres</label>+ <div class="col-sm-9"><div style="position: relative; display: inline-block; width: 100%;"><input name="ctl00$cpContent$txtEmail" maxlength="50" id="cpContent_txtEmail" class="form-control" type="email" style="width: 555px; display: block;" data-gtm-form-interact-field-id="0"><div class="aliasvault-input-icon" style="+display: flex;+align-items: center;+justify-content: center;+position: absolute;+right: 8px;+top: 8px;+margin: auto;+cursor: pointer;+width: 20px;+height: 20px;+z-index: 999999;+">+<img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MDAgNTAwIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA1MDAgNTAwIiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJtNDU5Ljg3IDI5NC45NWMwLjAxNjIwNSA1LjQwMDUgMC4wMzI0MSAxMC44MDEtMC4zNTAyMiAxNi44NzMtMS4xMTEgNi4zMzkyLTEuMTk0MSAxMi4xNzMtMi42MzUxIDE3LjY0OS0xMC45MjIgNDEuNTA4LTM2LjczMSA2OS40ODEtNzcuMzUxIDgzLjQwOC03LjIxNTcgMi40NzM5LTE0Ljk3MiAzLjM3MDItMjIuNDc5IDQuOTk1LTIzLjYyOSAwLjA0MjIwNS00Ny4yNTcgMC4xMTQ1My03MC44ODYgMC4xMjAyNy00Ni43NjIgMC4wMTEzMjItOTMuNTIzLTAuMDE0MTYtMTQwLjk1LTAuNDM0MTEtOC41OS0yLjAwMjQtMTYuNzY2LTIuODM1Mi0yNC4zOTgtNS4zMzI2LTIxLjU5NS03LjA2NjYtMzkuNTIzLTE5LjY1Ni01My43MDgtMzcuNTUyLTEwLjIyNy0xMi45MDMtMTcuNTc5LTI3LjE3LTIxLjI4LTQzLjIyMS0xLjQ3NS02LjM5NjctMi40NzExLTEyLjkwNC0zLjY4NTItMTkuMzYxLTAuMDUxODQ5LTUuNzQ3LTAuMTAzNy0xMS40OTQgMC4yNjkxNS0xNy44ODYgNC4xNTktNDIuOTczIDI3LjY4LTcxLjYzOCA2My41NjItOTIuMTUzIDAtMC43MDc2MS0wLjAwMTk2MS0xLjY5ODggMy4xMmUtNCAtMi42OSAwLjAyMjQ4NC05LjgyOTMtMS4zMDcxLTE5Ljg5NCAwLjM1NjY0LTI5LjQzOCAzLjIzOTEtMTguNTc5IDExLjA4LTM1LjI3MiAyMy43NjMtNDkuNzczIDEyLjA5OC0xMy44MzIgMjYuNDU3LTIzLjk4OSA0My42MDktMzAuMDI5IDcuODEzLTIuNzUxMiAxNi4xNC00LjA0MTcgMjQuMjM0LTUuOTk0OCA3LjM5Mi0wLjAyNTczNCAxNC43ODQtMC4wNTE0NiAyMi44MzUgMC4zMjI1MyA0LjE5NTkgMC45NTM5MiA3Ljc5NDYgMS4yNTM4IDExLjI1OCAyLjEwNTMgMTcuMTYgNC4yMTkyIDMyLjI4NyAxMi4xNzYgNDUuNDY5IDI0LjEwNCAyLjI1NTggMi4wNDExIDQuMzcyIDYuNjI0MSA5LjYyMSAzLjg2OCAxNi44MzktOC44NDE5IDM0LjcxOC0xMS41OTcgNTMuNjAzLTguNTk0IDE2Ljc5MSAyLjY2OTkgMzEuNjAyIDkuNDMwOCA0NC4yMzYgMjAuNjM2IDExLjUzMSAxMC4yMjcgMTkuODQgMjIuODQxIDI1LjM5MyAzNy4yMzYgNi4zNDM2IDE2LjQ0NSAxMC4zODkgMzMuMTYzIDYuMDc5OCA0OS4zODkgNy45NTg3IDguOTMyMSAxNS44MDcgMTYuNzA0IDIyLjQyMSAyNS40MTQgOS4xNjIgMTIuMDY1IDE1LjMzIDI1Ljc0NiAxOC4xNDQgNDAuNzc2IDAuOTcwNDYgNS4xODQ4IDEuOTExMSAxMC4zNzUgMi44NjU0IDE1LjU2M20tNzEuNTk3IDcxLjAxMmM1LjU2MTUtNS4yMjg0IDEyLjAwMi05Ljc5ODYgMTYuNTA4LTE1LjgxNyAxMC40NzQtMTMuOTkyIDE0LjMzMy0yOS45MTYgMTEuMjg4LTQ3LjQ0Ni0yLjI0OTYtMTIuOTUtOC4xOTczLTI0LjA3Ni0xNy4yNDMtMzMuMDYzLTEyLjc0Ni0xMi42NjMtMjguODY1LTE4LjYxNC00Ni43ODYtMTguNTY5LTY5LjkxMiAwLjE3NzEyLTEzOS44MiAwLjU2ODMxLTIwOS43NCAwLjk2MTc2LTE1LjkyMiAwLjA4OTU5OS0yOS4xNjggNy40MjA5LTM5LjY4NSAxOC4yOTYtMTQuNDUgMTQuOTQ0LTIwLjQwOCAzMy4zNDMtMTYuNjU1IDU0LjM2OCAyLjI3NjMgMTIuNzU0IDguMjE2NyAyMy43NDggMTcuMTU4IDMyLjY2IDEzLjI5OSAxMy4yNTUgMzAuMDk3IDE4LjY1MyA0OC43MjggMTguNjUxIDU5LjMyMS0wLjAwNTE4OCAxMTguNjQgMC4wNDIzNTggMTc3Ljk2LTAuMDQ2NjAxIDkuNTkxMi0wLjAxNDM3NCAxOS4xODEtMC44NjU4OCAyOC43NzMtMC44ODg1NSAxMC42NDktMC4wMjUxNDYgMTkuOTc4LTMuODI1IDI5LjY4Ny05LjEwNzR6IiBmaWxsPSIjRUVDMTcwIi8+CjxwYXRoIGQ9Im0xNjIuNzcgMjkzYzE1LjY1NCA0LjM4ODMgMjAuNjI3IDIyLjk2NyAxMC4zMDQgMzQuOTgtNS4zMTA0IDYuMTc5NS0xNC44MTcgOC4zMjA4LTI0LjI3OCA1LjA0NzItNy4wNzIzLTIuNDQ3MS0xMi4zMzItMTAuMzYyLTEyLjg3Ni0xNy45MzMtMS4wNDUxLTE0LjU0MiAxMS4wODktMjMuMTc2IDIxLjcwNS0yMy4wNDYgMS41Nzk0IDAuMDE5Mjg3IDMuMTUxNyAwLjYxNTY2IDUuMTQ2MSAwLjk1MTg0eiIgZmlsbD0iI0VFQzE3MCIvPgo8cGF0aCBkPSJtMjI3LjE4IDI5My42NGM3Ljg0OTkgMi4zOTczIDExLjkzOCA4LjIxNDMgMTMuNTI0IDE1LjA3NyAxLjg1OTEgOC4wNDM5LTAuNDQ4MTcgMTUuNzA2LTcuMTU4OCAyMS4xMjEtNi43NjMzIDUuNDU3Mi0xNC40MTcgNi44Nzk0LTIyLjU3OCAzLjE0ODMtOC4yOTcyLTMuNzkzMy0xMi44MzYtMTAuODQ5LTEyLjczNi0xOS40MzggMC4xNjg3LTE0LjQ5NyAxNC4xMy0yNS4zNjggMjguOTQ4LTE5LjkwOHoiIGZpbGw9IiNFRUMxNzAiLz4KPHBhdGggZD0ibTI2MS41NyAzMTkuMDdjLTIuNDk1LTE0LjQxOCA0LjY4NTMtMjIuNjAzIDE0LjU5Ni0yNi4xMDggOS44OTQ1LTMuNDk5NSAyMy4xODEgMy40MzAzIDI2LjI2NyAxMy43NzkgNC42NTA0IDE1LjU5MS03LjE2NTEgMjkuMDY0LTIxLjY2NSAyOC4xNjEtOC41MjU0LTAuNTMwODgtMTcuMjAyLTYuNTA5NC0xOS4xOTgtMTUuODMxeiIgZmlsbD0iI0VFQzE3MCIvPgo8cGF0aCBkPSJtMzM2LjkxIDMzMy40MWMtOS4wMTc1LTQuMjQ5MS0xNS4zMzctMTQuMzQ5LTEzLjgyOS0yMS42ODIgMy4wODI1LTE0Ljk4OSAxMy4zNDEtMjAuMzA0IDIzLjAxOC0xOS41ODUgMTAuNjUzIDAuNzkxNDEgMTcuOTMgNy40MDcgMTkuNzY1IDE3LjU0NyAxLjk1ODggMTAuODI0LTQuMTE3MSAxOS45MzktMTMuNDk0IDIzLjcwMy01LjI3MiAyLjExNjItMTAuMDkxIDEuNTA4Ni0xNS40NiAwLjAxNzg4M3oiIGZpbGw9IiNFRUMxNzAiLz4KPC9zdmc+" style="width: 100%; height: 100%;">+</div></div></div>+ </div>+ <div class="form-group">+ <label for="cpContent_txtWachtwoord" id="cpContent_lbWachtwoord" class="control-label col-sm-3 required">Wachtwoord</label>+ <div class="col-sm-9"><input name="ctl00$cpContent$txtWachtwoord" type="password" maxlength="20" id="cpContent_txtWachtwoord" class="form-control" data-gtm-form-interact-field-id="1"></div>+ </div>+ <div class="form-group">+ <label for="cpContent_txtWachtwoord2" id="cpContent_lbWachtwoordTerControle" class="control-label col-sm-3 required">Wachtwoord ter controle</label>+ <div class="col-sm-9"><input name="ctl00$cpContent$txtWachtwoord2" type="password" maxlength="20" id="cpContent_txtWachtwoord2" class="form-control" data-gtm-form-interact-field-id="2"></div>+ </div>+ <div class="form-group">+ <label for="cpContent_ddlBranche" id="cpContent_lbBranche" class="control-label col-sm-3 required">Branche waarin u actief bent</label>+ <div class="col-sm-9"><select name="ctl00$cpContent$ddlBranche" id="cpContent_ddlBranche" class="form-control">+<option value="0">(Selecteer uw branche)</option>+<option value="13">Advisering en onderzoek</option>+<option value="6">Bouwnijverheid</option>+<option value="18">Cultuur, sport en recreatie</option>+<option value="4">Energie, productie en distributie</option>+<option value="21">Extraterritoriale organisaties</option>+<option value="11">Financiële instellingen</option>+<option value="17">Gezondheids- en welzijnszorg</option>+<option value="7">Groot- en detailhandel</option>+<option value="9">Horeca</option>+<option value="20">Huishoudens</option>+<option value="3">Industrie</option>+<option value="10">Informatie en communicatie</option>+<option value="1">Landbouw, bosbouw en visserij</option>+<option value="16">Onderwijs</option>+<option value="12">Onroerend goed</option>+<option value="15">Openbaar bestuur</option>+<option value="19">Overige dienstverlening</option>+<option value="8">Vervoer en opslag</option>+<option value="5">Water; afval- en afvalwaterbeheer</option>+<option value="2">Winning van delfstoffen</option>+<option value="14">Zakelijke dienstverlening</option>++</select></div>+ </div>+ <div class="form-group">+ <label for="cpContent_ddlWerknemers" id="cpContent_lbWerknemers" class="control-label col-sm-3 required">Werkzame personen in uw organisatie</label>+ <div class="col-sm-9"><select name="ctl00$cpContent$ddlWerknemers" id="cpContent_ddlWerknemers" class="form-control">+<option value="0">(Selecteer aantal werkzame personen)</option>+<option value="1">1 werknemer</option>+<option value="2">2-5 werknemers</option>+<option value="3">6-10 werknemer</option>+<option value="4">11-20 werknemers</option>+<option value="5">21-50 werknemers</option>+<option value="6">51-100 werknemers</option>+<option value="7">101-200 werknemers</option>+<option value="8">201-500 werknemers</option>+<option value="9">501-750 werknemers</option>+<option value="10">751-1000 werknemers</option>+<option value="11">Meer dan 1000 werknemers</option>++</select></div>+ </div>+ <div class="form-group">+ <label for="cpContent_ddlFunctie" id="cpContent_lbFunctie" class="control-label col-sm-3 required">Selecteer uw functie</label>:+ <div class="col-sm-9"><select name="ctl00$cpContent$ddlFunctie" id="cpContent_ddlFunctie" class="form-control">+<option value="0">(Selecteer uw functie)</option>+<option value="1">Directie</option>+<option value="2">Management</option>+<option value="3">Financiën</option>+<option value="4">Verkoop / commercie</option>+<option value="5">Marketing</option>+<option value="6">Juridisch</option>+<option value="7">Inkoop</option>+<option value="8">ICT</option>+<option value="9">HRM</option>+<option value="10">Consultancy</option>+<option value="11">Produktie</option>+<option value="13">Student</option>+<option value="14">Gepensioneerd</option>+<option value="15">Zonder werkkring</option>+<option value="16">Overige</option>++</select></div>+ </div>+ <div class="form-group">+ <label for="cpContent_chkNieuwsbrief" id="cpContent_lbNieuwsbrief" class="control-label col-sm-3">Nieuwsbrief</label>+ <div class="col-sm-9"><input id="cpContent_chkNieuwsbrief" type="checkbox" name="ctl00$cpContent$chkNieuwsbrief"><label for="cpContent_chkNieuwsbrief">Ja, ik wil graag de nieuwsbrief ontvangen.</label></div>+ </div>+ <div class="form-group">+ <label for="cpContent_chkVeilingen" id="cpContent_lbVeilingen" class="control-label col-sm-3">Nieuwsflitsen</label>+ <div class="col-sm-9"><input id="cpContent_chkVeilingen" type="checkbox" name="ctl00$cpContent$chkVeilingen"><label for="cpContent_chkVeilingen">Ja, houd mij op de hoogte van nieuwe veilingen.</label></div>+ </div>+ <div class="form-group">+ <div class="col-sm-3"></div>+ <div class="col-sm-9"></div>+ </div>+ <div class="form-group">+ <div class="col-sm-3"></div>+ <div class="col-sm-9"><input type="submit" name="ctl00$cpContent$btnRegistreren" value="Registreren" id="cpContent_btnRegistreren" class="btn btn-success"> <a href="#" id="cpContent_hypPrivacyStatement" rel="nofollow" target="_blank">Privacy statement</a></div>+ </div>+ </div>++ <div class="registratiedisclaimer">+ Invulvelden die gemarkeerd zijn met een *, dienen verplicht ingevuld te worden.<br><br>+ Uw gegevens worden strikt vertrouwelijk behandeld en worden niet doorverkocht of doorgegeven aan derde partijen. Het ingevulde emailadres wordt alleen gebruikt om u toegang te geven tot alle gegevens op en het versturen van relevante informatie indien u dit zelf heeft aangegeven. Zie verder ons <a target="_blank" href="#">privacy statement</a>..+ </div>++</div>\ No newline at end of filediff --git a/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form2.html b/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form2.htmlnew file mode 100644index 000000000..88f05284a--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form2.html@@ -0,0 +1,15 @@+<div class="css-1xdhyk6"><h1 class="css-3ehonm">REGISTREER JOUW ACCOUNT</h1><p class="css-oeufab">Heb je al een account <a class="css-fzffnk" href="/inloggen">log dan in</a></p><form class="css-13brihr"><div class="css-l5xv05"><div class="css-57f0hr">*</div><label for="register-username" class="css-1y6ipd3"><small class="css-1dk2xzj">Gebruikersnaam</small></label><div style="position: relative; display: inline-block; width: 100%;"><input type="text" placeholder="Gebruikersnaam" id="register-username" required="" name="register-username" maxlength="20" class="css-1xh99ob" value="vedwards1992" style="width: 418px; display: block;"><div class="aliasvault-input-icon" style="+ display: flex;+ align-items: center;+ justify-content: center;+ position: absolute;+ right: 8px;+ top: 8px;+ margin: auto;+ cursor: pointer;+ width: 20px;+ height: 20px;+ z-index: 999999;+ ">+ <img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MDAgNTAwIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA1MDAgNTAwIiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJtNDU5Ljg3IDI5NC45NWMwLjAxNjIwNSA1LjQwMDUgMC4wMzI0MSAxMC44MDEtMC4zNTAyMiAxNi44NzMtMS4xMTEgNi4zMzkyLTEuMTk0MSAxMi4xNzMtMi42MzUxIDE3LjY0OS0xMC45MjIgNDEuNTA4LTM2LjczMSA2OS40ODEtNzcuMzUxIDgzLjQwOC03LjIxNTcgMi40NzM5LTE0Ljk3MiAzLjM3MDItMjIuNDc5IDQuOTk1LTIzLjYyOSAwLjA0MjIwNS00Ny4yNTcgMC4xMTQ1My03MC44ODYgMC4xMjAyNy00Ni43NjIgMC4wMTEzMjItOTMuNTIzLTAuMDE0MTYtMTQwLjk1LTAuNDM0MTEtOC41OS0yLjAwMjQtMTYuNzY2LTIuODM1Mi0yNC4zOTgtNS4zMzI2LTIxLjU5NS03LjA2NjYtMzkuNTIzLTE5LjY1Ni01My43MDgtMzcuNTUyLTEwLjIyNy0xMi45MDMtMTcuNTc5LTI3LjE3LTIxLjI4LTQzLjIyMS0xLjQ3NS02LjM5NjctMi40NzExLTEyLjkwNC0zLjY4NTItMTkuMzYxLTAuMDUxODQ5LTUuNzQ3LTAuMTAzNy0xMS40OTQgMC4yNjkxNS0xNy44ODYgNC4xNTktNDIuOTczIDI3LjY4LTcxLjYzOCA2My41NjItOTIuMTUzIDAtMC43MDc2MS0wLjAwMTk2MS0xLjY5ODggMy4xMmUtNCAtMi42OSAwLjAyMjQ4NC05LjgyOTMtMS4zMDcxLTE5Ljg5NCAwLjM1NjY0LTI5LjQzOCAzLjIzOTEtMTguNTc5IDExLjA4LTM1LjI3MiAyMy43NjMtNDkuNzczIDEyLjA5OC0xMy44MzIgMjYuNDU3LTIzLjk4OSA0My42MDktMzAuMDI5IDcuODEzLTIuNzUxMiAxNi4xNC00LjA0MTcgMjQuMjM0LTUuOTk0OCA3LjM5Mi0wLjAyNTczNCAxNC43ODQtMC4wNTE0NiAyMi44MzUgMC4zMjI1MyA0LjE5NTkgMC45NTM5MiA3Ljc5NDYgMS4yNTM4IDExLjI1OCAyLjEwNTMgMTcuMTYgNC4yMTkyIDMyLjI4NyAxMi4xNzYgNDUuNDY5IDI0LjEwNCAyLjI1NTggMi4wNDExIDQuMzcyIDYuNjI0MSA5LjYyMSAzLjg2OCAxNi44MzktOC44NDE5IDM0LjcxOC0xMS41OTcgNTMuNjAzLTguNTk0IDE2Ljc5MSAyLjY2OTkgMzEuNjAyIDkuNDMwOCA0NC4yMzYgMjAuNjM2IDExLjUzMSAxMC4yMjcgMTkuODQgMjIuODQxIDI1LjM5MyAzNy4yMzYgNi4zNDM2IDE2LjQ0NSAxMC4zODkgMzMuMTYzIDYuMDc5OCA0OS4zODkgNy45NTg3IDguOTMyMSAxNS44MDcgMTYuNzA0IDIyLjQyMSAyNS40MTQgOS4xNjIgMTIuMDY1IDE1LjMzIDI1Ljc0NiAxOC4xNDQgNDAuNzc2IDAuOTcwNDYgNS4xODQ4IDEuOTExMSAxMC4zNzUgMi44NjU0IDE1LjU2M20tNzEuNTk3IDcxLjAxMmM1LjU2MTUtNS4yMjg0IDEyLjAwMi05Ljc5ODYgMTYuNTA4LTE1LjgxNyAxMC40NzQtMTMuOTkyIDE0LjMzMy0yOS45MTYgMTEuMjg4LTQ3LjQ0Ni0yLjI0OTYtMTIuOTUtOC4xOTczLTI0LjA3Ni0xNy4yNDMtMzMuMDYzLTEyLjc0Ni0xMi42NjMtMjguODY1LTE4LjYxNC00Ni43ODYtMTguNTY5LTY5LjkxMiAwLjE3NzEyLTEzOS44MiAwLjU2ODMxLTIwOS43NCAwLjk2MTc2LTE1LjkyMiAwLjA4OTU5OS0yOS4xNjggNy40MjA5LTM5LjY4NSAxOC4yOTYtMTQuNDUgMTQuOTQ0LTIwLjQwOCAzMy4zNDMtMTYuNjU1IDU0LjM2OCAyLjI3NjMgMTIuNzU0IDguMjE2NyAyMy43NDggMTcuMTU4IDMyLjY2IDEzLjI5OSAxMy4yNTUgMzAuMDk3IDE4LjY1MyA0OC43MjggMTguNjUxIDU5LjMyMS0wLjAwNTE4OCAxMTguNjQgMC4wNDIzNTggMTc3Ljk2LTAuMDQ2NjAxIDkuNTkxMi0wLjAxNDM3NCAxOS4xODEtMC44NjU4OCAyOC43NzMtMC44ODg1NSAxMC42NDktMC4wMjUxNDYgMTkuOTc4LTMuODI1IDI5LjY4Ny05LjEwNzR6IiBmaWxsPSIjRUVDMTcwIi8+CjxwYXRoIGQ9Im0xNjIuNzcgMjkzYzE1LjY1NCA0LjM4ODMgMjAuNjI3IDIyLjk2NyAxMC4zMDQgMzQuOTgtNS4zMTA0IDYuMTc5NS0xNC44MTcgOC4zMjA4LTI0LjI3OCA1LjA0NzItNy4wNzIzLTIuNDQ3MS0xMi4zMzItMTAuMzYyLTEyLjg3Ni0xNy45MzMtMS4wNDUxLTE0LjU0MiAxMS4wODktMjMuMTc2IDIxLjcwNS0yMy4wNDYgMS41Nzk0IDAuMDE5Mjg3IDMuMTUxNyAwLjYxNTY2IDUuMTQ2MSAwLjk1MTg0eiIgZmlsbD0iI0VFQzE3MCIvPgo8cGF0aCBkPSJtMjI3LjE4IDI5My42NGM3Ljg0OTkgMi4zOTczIDExLjkzOCA4LjIxNDMgMTMuNTI0IDE1LjA3NyAxLjg1OTEgOC4wNDM5LTAuNDQ4MTcgMTUuNzA2LTcuMTU4OCAyMS4xMjEtNi43NjMzIDUuNDU3Mi0xNC40MTcgNi44Nzk0LTIyLjU3OCAzLjE0ODMtOC4yOTcyLTMuNzkzMy0xMi44MzYtMTAuODQ5LTEyLjczNi0xOS40MzggMC4xNjg3LTE0LjQ5NyAxNC4xMy0yNS4zNjggMjguOTQ4LTE5LjkwOHoiIGZpbGw9IiNFRUMxNzAiLz4KPHBhdGggZD0ibTI2MS41NyAzMTkuMDdjLTIuNDk1LTE0LjQxOCA0LjY4NTMtMjIuNjAzIDE0LjU5Ni0yNi4xMDggOS44OTQ1LTMuNDk5NSAyMy4xODEgMy40MzAzIDI2LjI2NyAxMy43NzkgNC42NTA0IDE1LjU5MS03LjE2NTEgMjkuMDY0LTIxLjY2NSAyOC4xNjEtOC41MjU0LTAuNTMwODgtMTcuMjAyLTYuNTA5NC0xOS4xOTgtMTUuODMxeiIgZmlsbD0iI0VFQzE3MCIvPgo8cGF0aCBkPSJtMzM2LjkxIDMzMy40MWMtOS4wMTc1LTQuMjQ5MS0xNS4zMzctMTQuMzQ5LTEzLjgyOS0yMS42ODIgMy4wODI1LTE0Ljk4OSAxMy4zNDEtMjAuMzA0IDIzLjAxOC0xOS41ODUgMTAuNjUzIDAuNzkxNDEgMTcuOTMgNy40MDcgMTkuNzY1IDE3LjU0NyAxLjk1ODggMTAuODI0LTQuMTE3MSAxOS45MzktMTMuNDk0IDIzLjcwMy01LjI3MiAyLjExNjItMTAuMDkxIDEuNTA4Ni0xNS40NiAwLjAxNzg4M3oiIGZpbGw9IiNFRUMxNzAiLz4KPC9zdmc+" style="width: 100%; height: 100%;">+ </div></div></div><div class="css-l5xv05"><div class="css-57f0hr">*</div><label for="register-email" class="css-1y6ipd3"><small class="css-1dk2xzj">E-mail</small></label><input type="email" placeholder="E-mail" id="register-email" required="" name="register-email" class="css-1xh99ob" value="[email protected]"></div><div class="css-l5xv05"><div class="css-57f0hr">*</div><label for="register-password" class="css-1y6ipd3"><small class="css-1dk2xzj">Wachtwoord</small></label><input type="password" placeholder="Wachtwoord" id="register-password" required="" name="register-password" maxlength="20" class="css-1xh99ob" value="#O>dY0C;q?(gLb5OV?"></div><small class="css-ipmugi">Geboortedatum (dd/mm/yyyy)</small><div class="css-1djomvz"><div class="css-l5xv05"><div class="css-57f0hr">*</div><label for="register-day" class="css-1y6ipd3"><small class="css-1dk2xzj">dag</small></label><input type="text" placeholder="dag" id="register-day" required="" name="register-day" maxlength="2" class="css-1xh99ob" value=""></div><div class="css-l5xv05"><div class="css-57f0hr">*</div><label for="register-month" class="css-1y6ipd3"><small class="css-1dk2xzj">maand</small></label><input type="text" placeholder="maand" id="register-month" required="" name="register-month" maxlength="2" class="css-1xh99ob" value=""></div><div class="css-l5xv05"><div class="css-57f0hr">*</div><label for="register-year" class="css-1y6ipd3"><small class="css-1dk2xzj">jaar</small></label><input type="text" placeholder="jaar" id="register-year" required="" name="register-year" maxlength="4" class="css-1xh99ob" value=""></div></div><div class="css-1jke4yk"><small class="css-ipmugi">Geslacht</small><div class="css-57f0hr">*</div></div><div class="css-ohqc9s"><div class="css-1s37ryh"><input type="radio" placeholder="" id="man" name="gender" class="css-1dahgk4" value="M"><label for="man" class="css-13slwco"><small class="css-1dk2xzj">Man</small></label></div><div class="css-1s37ryh"><input type="radio" placeholder="" id="vrouw" name="gender" class="css-1dahgk4" value="V"><label for="vrouw" class="css-13slwco"><small class="css-1dk2xzj">Vrouw</small></label></div><div class="css-1s37ryh"><input type="radio" placeholder="" id="iets" name="gender" class="css-1dahgk4" value="na"><label for="iets" class="css-13slwco"><small class="css-1dk2xzj">Iets</small></label></div></div><div class="css-8atqhb"><div class="css-1s37ryh"><input type="checkbox" placeholder="" id="woonachtig_in_nederland" name="" class="css-j93vli" checked=""><label for="woonachtig_in_nederland" class="css-13slwco"><small class="css-1dk2xzj">Woonachtig in Nederland</small></label></div></div><div class="css-fzwid6"><button type="submit" disabled="" class="css-1107vi6"><span class="css-x4n6n5">registreren</span></button></div></form><div data-menu="contact" class="css-10c3mc2">PROBLEMEN MET REGISTREREN?</div><div class="css-txpm75"><a href="#" target="_blank" rel="noreferrer">PRIVACY</a><a href="#" target="_blank" rel="noreferrer">VOORWAARDEN</a><a href="/huisregels">HUISREGELS</a></div></div>\ No newline at end of filediff --git a/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form3.html b/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form3.htmlnew file mode 100644index 000000000..170047f7c--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form3.html@@ -0,0 +1,228 @@+<main class="main-component_wrapper">+ <h1 class="title-component_title">Maak je account aan</h1>++ <div style="display: flex; gap: 16px">+ <div style="display: flex; gap: 4px">+ <span style="line-height: 23px; text-align: center">Gratis account</span>+ </div>+ <div style="display: flex; gap: 4px">+ <span style="line-height: 23px; text-align: center">Binnen 1 minuut geregeld</span>+ </div>+ </div>++ <div class="email-validation-component_wrapper email-validation-component_error">++ <div id="email-validation-component_valid" class="email-validation-component_hidden">+ <span>Je maakt een DPG Media account aan met:</span>+ <strong class="email-validation-component_email">[email protected]</strong>+ </div>++ <div id="email-validation-component_invalid" class="">+ <span>Je kunt geen account aanmaken met</span>+ <strong class="email-validation-component_email">[email protected]</strong>++ <div id="email-validation-component_suggestion" class="email-validation-component_hidden">+ <span>Misschien bedoelde je</span>+ <strong class="email-validation-component_email"></strong>+ </div>+ <div id="email-validation-component_no-suggestion" class="">+ <span class="email-validation-component_email-context">Vul een geldig e-mailadres in.</span>+ </div>+ </div>+++ <a id="email-validation-component_change-email" href="#" data-selector="sel-registration" class="link-component">wijzig e-mailadres</a>+++ </div>++ <form id="registration-form" action="#" method="post" class="form-component_form" novalidate="" autocomplete="on">++++++ <input type="hidden" id="test" name="test" value="false">+ <input type="hidden" id="email" autocomplete="email" inputmode="email" name="email" value="[email protected]">++ <h2 class="title-component_section" data-ats-observing="">Maak een wachtwoord aan</h2>++ <div>++ <div class="text-input-component_wrapper">++ <div class="text-input-component_input" onclick="inputComponentFocusOnInput(event)">+ <input type="password" id="password" autocomplete="new-password" aria-required="true" aria-label="Wachtwoord" inputmode="password" placeholder=" " required="required" autofocus="autofocus" class="required" name="password" value="">+ <label for="password">Wachtwoord</label>+ <span class="text-input-component_password-icon" onclick="inputComponentShowPassword(event)"></span>+ </div>+ </div>++ <div id="pswmeter" class="password-strength-meter"><div class="password-strength-meter-score"></div></div>+ <div class="pswmeter_message pwsmeter-container" id="pswmeter-message"><div>Gebruik minimaal 10 karakters</div><div class="pswmeter-constraints"><span>Probeer de volgende zaken nog toe te voegen:</span><ul><li class="pswmeter-constraint">Minimaal 10 karakters</li><li class="pswmeter-constraint">Kleine letter</li><li class="pswmeter-constraint">Hoofdletter</li><li class="pswmeter-constraint">Nummer</li><li class="pswmeter-constraint">Speciaal teken</li></ul></div></div>++ </div>+++ <h2 class="title-component_section" data-ats-observing="">Persoonlijke gegevens</h2>++++ <div class="radiobutton-component_wrapper">+++++ <div class="radiobutton-component-options-wrapper-vertical">++ <label for="gender1">+ Meneer+ <input type="radio" value="m" onchange="try{document.getElementsByClassName('validation-error-' + this.name)[0].remove()}catch(e){}" id="gender1" name="gender">+ <span class="radiobutton-component_checkmark"></span>+ </label>++ <label for="gender2">+ Mevrouw+ <input type="radio" value="f" onchange="try{document.getElementsByClassName('validation-error-' + this.name)[0].remove()}catch(e){}" id="gender2" name="gender">+ <span class="radiobutton-component_checkmark"></span>+ </label>++ <label for="gender3">+ Liever geen van beide+ <input type="radio" value="u" onchange="try{document.getElementsByClassName('validation-error-' + this.name)[0].remove()}catch(e){}" id="gender3" name="gender">+ <span class="radiobutton-component_checkmark"></span>+ </label>++ </div>+ <div class="radiobutton-component_label required">Aanspreekvorm</div>+ </div>++++++ <div class="text-input-component_wrapper">++++ <div class="text-input-component_input" onclick="inputComponentFocusOnInput(event)">+ <div style="position: relative; display: inline-block; width: 100%;"><input type="text" id="firstName" autocomplete="firstName" aria-label="Voornaam" inputmode="text" placeholder=" " autofocus="autofocus" class="required" name="firstName" value="" style="width: 293px; display: block;"><div class="aliasvault-input-icon" style="+ display: flex;+ align-items: center;+ justify-content: center;+ position: absolute;+ right: 8px;+ top: 8px;+ margin: auto;+ cursor: pointer;+ width: 20px;+ height: 20px;+ z-index: 999999;+ ">+ <img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MDAgNTAwIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA1MDAgNTAwIiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJtNDU5Ljg3IDI5NC45NWMwLjAxNjIwNSA1LjQwMDUgMC4wMzI0MSAxMC44MDEtMC4zNTAyMiAxNi44NzMtMS4xMTEgNi4zMzkyLTEuMTk0MSAxMi4xNzMtMi42MzUxIDE3LjY0OS0xMC45MjIgNDEuNTA4LTM2LjczMSA2OS40ODEtNzcuMzUxIDgzLjQwOC03LjIxNTcgMi40NzM5LTE0Ljk3MiAzLjM3MDItMjIuNDc5IDQuOTk1LTIzLjYyOSAwLjA0MjIwNS00Ny4yNTcgMC4xMTQ1My03MC44ODYgMC4xMjAyNy00Ni43NjIgMC4wMTEzMjItOTMuNTIzLTAuMDE0MTYtMTQwLjk1LTAuNDM0MTEtOC41OS0yLjAwMjQtMTYuNzY2LTIuODM1Mi0yNC4zOTgtNS4zMzI2LTIxLjU5NS03LjA2NjYtMzkuNTIzLTE5LjY1Ni01My43MDgtMzcuNTUyLTEwLjIyNy0xMi45MDMtMTcuNTc5LTI3LjE3LTIxLjI4LTQzLjIyMS0xLjQ3NS02LjM5NjctMi40NzExLTEyLjkwNC0zLjY4NTItMTkuMzYxLTAuMDUxODQ5LTUuNzQ3LTAuMTAzNy0xMS40OTQgMC4yNjkxNS0xNy44ODYgNC4xNTktNDIuOTczIDI3LjY4LTcxLjYzOCA2My41NjItOTIuMTUzIDAtMC43MDc2MS0wLjAwMTk2MS0xLjY5ODggMy4xMmUtNCAtMi42OSAwLjAyMjQ4NC05LjgyOTMtMS4zMDcxLTE5Ljg5NCAwLjM1NjY0LTI5LjQzOCAzLjIzOTEtMTguNTc5IDExLjA4LTM1LjI3MiAyMy43NjMtNDkuNzczIDEyLjA5OC0xMy44MzIgMjYuNDU3LTIzLjk4OSA0My42MDktMzAuMDI5IDcuODEzLTIuNzUxMiAxNi4xNC00LjA0MTcgMjQuMjM0LTUuOTk0OCA3LjM5Mi0wLjAyNTczNCAxNC43ODQtMC4wNTE0NiAyMi44MzUgMC4zMjI1MyA0LjE5NTkgMC45NTM5MiA3Ljc5NDYgMS4yNTM4IDExLjI1OCAyLjEwNTMgMTcuMTYgNC4yMTkyIDMyLjI4NyAxMi4xNzYgNDUuNDY5IDI0LjEwNCAyLjI1NTggMi4wNDExIDQuMzcyIDYuNjI0MSA5LjYyMSAzLjg2OCAxNi44MzktOC44NDE5IDM0LjcxOC0xMS41OTcgNTMuNjAzLTguNTk0IDE2Ljc5MSAyLjY2OTkgMzEuNjAyIDkuNDMwOCA0NC4yMzYgMjAuNjM2IDExLjUzMSAxMC4yMjcgMTkuODQgMjIuODQxIDI1LjM5MyAzNy4yMzYgNi4zNDM2IDE2LjQ0NSAxMC4zODkgMzMuMTYzIDYuMDc5OCA0OS4zODkgNy45NTg3IDguOTMyMSAxNS44MDcgMTYuNzA0IDIyLjQyMSAyNS40MTQgOS4xNjIgMTIuMDY1IDE1LjMzIDI1Ljc0NiAxOC4xNDQgNDAuNzc2IDAuOTcwNDYgNS4xODQ4IDEuOTExMSAxMC4zNzUgMi44NjU0IDE1LjU2M20tNzEuNTk3IDcxLjAxMmM1LjU2MTUtNS4yMjg0IDEyLjAwMi05Ljc5ODYgMTYuNTA4LTE1LjgxNyAxMC40NzQtMTMuOTkyIDE0LjMzMy0yOS45MTYgMTEuMjg4LTQ3LjQ0Ni0yLjI0OTYtMTIuOTUtOC4xOTczLTI0LjA3Ni0xNy4yNDMtMzMuMDYzLTEyLjc0Ni0xMi42NjMtMjguODY1LTE4LjYxNC00Ni43ODYtMTguNTY5LTY5LjkxMiAwLjE3NzEyLTEzOS44MiAwLjU2ODMxLTIwOS43NCAwLjk2MTc2LTE1LjkyMiAwLjA4OTU5OS0yOS4xNjggNy40MjA5LTM5LjY4NSAxOC4yOTYtMTQuNDUgMTQuOTQ0LTIwLjQwOCAzMy4zNDMtMTYuNjU1IDU0LjM2OCAyLjI3NjMgMTIuNzU0IDguMjE2NyAyMy43NDggMTcuMTU4IDMyLjY2IDEzLjI5OSAxMy4yNTUgMzAuMDk3IDE4LjY1MyA0OC43MjggMTguNjUxIDU5LjMyMS0wLjAwNTE4OCAxMTguNjQgMC4wNDIzNTggMTc3Ljk2LTAuMDQ2NjAxIDkuNTkxMi0wLjAxNDM3NCAxOS4xODEtMC44NjU4OCAyOC43NzMtMC44ODg1NSAxMC42NDktMC4wMjUxNDYgMTkuOTc4LTMuODI1IDI5LjY4Ny05LjEwNzR6IiBmaWxsPSIjRUVDMTcwIi8+CjxwYXRoIGQ9Im0xNjIuNzcgMjkzYzE1LjY1NCA0LjM4ODMgMjAuNjI3IDIyLjk2NyAxMC4zMDQgMzQuOTgtNS4zMTA0IDYuMTc5NS0xNC44MTcgOC4zMjA4LTI0LjI3OCA1LjA0NzItNy4wNzIzLTIuNDQ3MS0xMi4zMzItMTAuMzYyLTEyLjg3Ni0xNy45MzMtMS4wNDUxLTE0LjU0MiAxMS4wODktMjMuMTc2IDIxLjcwNS0yMy4wNDYgMS41Nzk0IDAuMDE5Mjg3IDMuMTUxNyAwLjYxNTY2IDUuMTQ2MSAwLjk1MTg0eiIgZmlsbD0iI0VFQzE3MCIvPgo8cGF0aCBkPSJtMjI3LjE4IDI5My42NGM3Ljg0OTkgMi4zOTczIDExLjkzOCA4LjIxNDMgMTMuNTI0IDE1LjA3NyAxLjg1OTEgOC4wNDM5LTAuNDQ4MTcgMTUuNzA2LTcuMTU4OCAyMS4xMjEtNi43NjMzIDUuNDU3Mi0xNC40MTcgNi44Nzk0LTIyLjU3OCAzLjE0ODMtOC4yOTcyLTMuNzkzMy0xMi44MzYtMTAuODQ5LTEyLjczNi0xOS40MzggMC4xNjg3LTE0LjQ5NyAxNC4xMy0yNS4zNjggMjguOTQ4LTE5LjkwOHoiIGZpbGw9IiNFRUMxNzAiLz4KPHBhdGggZD0ibTI2MS41NyAzMTkuMDdjLTIuNDk1LTE0LjQxOCA0LjY4NTMtMjIuNjAzIDE0LjU5Ni0yNi4xMDggOS44OTQ1LTMuNDk5NSAyMy4xODEgMy40MzAzIDI2LjI2NyAxMy43NzkgNC42NTA0IDE1LjU5MS03LjE2NTEgMjkuMDY0LTIxLjY2NSAyOC4xNjEtOC41MjU0LTAuNTMwODgtMTcuMjAyLTYuNTA5NC0xOS4xOTgtMTUuODMxeiIgZmlsbD0iI0VFQzE3MCIvPgo8cGF0aCBkPSJtMzM2LjkxIDMzMy40MWMtOS4wMTc1LTQuMjQ5MS0xNS4zMzctMTQuMzQ5LTEzLjgyOS0yMS42ODIgMy4wODI1LTE0Ljk4OSAxMy4zNDEtMjAuMzA0IDIzLjAxOC0xOS41ODUgMTAuNjUzIDAuNzkxNDEgMTcuOTMgNy40MDcgMTkuNzY1IDE3LjU0NyAxLjk1ODggMTAuODI0LTQuMTE3MSAxOS45MzktMTMuNDk0IDIzLjcwMy01LjI3MiAyLjExNjItMTAuMDkxIDEuNTA4Ni0xNS40NiAwLjAxNzg4M3oiIGZpbGw9IiNFRUMxNzAiLz4KPC9zdmc+" style="width: 100%; height: 100%;">+ </div></div>+ <label for="firstName">Voornaam</label>++ </div>+ </div>+++ <div class="text-input-component_wrapper">++++ <div class="text-input-component_input" onclick="inputComponentFocusOnInput(event)">+ <input type="text" id="lastName" autocomplete="lastName" aria-label="Achternaam" inputmode="text" placeholder=" " autofocus="autofocus" class="required" name="lastName" value="">+ <label for="lastName">Achternaam</label>++ </div>+ </div>+++++ <div class="date-picker-component_wrapper">++++ <div class="date-picker-component_input">+ <input inputmode="numeric" id="date" type="text" placeholder=" " required="required" class="required" name="birthDate" value="">+ <label for="date">Geboortedatum</label>+ <span class="date-picker-component_icon">dd - mm - jjjj</span>+ </div>+ </div>++++++++ <div role="alert" class="validation-error_field validation-error-address inactive">+ <span>Dit is geen geldig adres.</span>+ </div>+++ <div class="country-postal-wrapper">++++ <div class="country-postal-component_wrapper">+ <div class="country-postal-component_input country-postal-component_input_country">+ <input placeholder=" " inputmode="text" type="text" onfocus="this.value=''" autocomplete="0" id="country" name="country" value="🇳🇱">+ <label for="country">Land</label>+ </div>+ <div class="country-postal-component_input country-postal-component_postcode">+ <input placeholder=" " inputmode="text" type="text" autocomplete="postal-code" class="required" id="postalCode" name="postalCode" value="">+ <label for="postalCode">Postcode</label>+ </div>+ </div>++ </div>+++++++++ <div class="checkbox-component_wrapper">+ <label for="b428652f-189a-4bf2-9008-668bee04804e" class="checkbox-component_label">+ <input type="checkbox" class="checkbox-component_checkbox" id="b428652f-189a-4bf2-9008-668bee04804e" value="b428652f-189a-4bf2-9008-668bee04804e" name="offeringIds"><input type="hidden" name="_offeringIds" value="on">+ <span class="checkbox-component_check"></span>+ <span class="checkbox-component_labeltext">Ja, ik wil via e-mail aanbiedingen van NU.nl ontvangen.</span>+ </label>+ </div>++ <div class="checkbox-component_wrapper">+ <label for="9b498ca0-adf4-418c-90d7-c02ff4a9d0cd" class="checkbox-component_label">+ <input type="checkbox" class="checkbox-component_checkbox" id="9b498ca0-adf4-418c-90d7-c02ff4a9d0cd" value="9b498ca0-adf4-418c-90d7-c02ff4a9d0cd" name="offeringIds"><input type="hidden" name="_offeringIds" value="on">+ <span class="checkbox-component_check"></span>+ <span class="checkbox-component_labeltext">Ja, ik wil via e-mail productinformatie van NU.nl ontvangen (max 1x per week).</span>+ </label>+ </div>++++ <div class="checkbox-component_wrapper">+ <label for="61c9d029405e342b7eb5d333" class="checkbox-component_label">+ <input type="checkbox" class="checkbox-component_checkbox" id="61c9d029405e342b7eb5d333" value="61c9d029405e342b7eb5d333" name="newsletterIds"><input type="hidden" name="_newsletterIds" value="on">+ <span class="checkbox-component_check"></span>+ <span class="checkbox-component_labeltext">Ja, ik ontvang graag elke middag het belangrijkste nieuws van NU.nl.</span>+ </label>+ </div>++++ <p class="paragraph-component_muted">Je bovenstaande gegevens kunnen worden toegevoegd aan jouw profiel in overeenstemming met ons privacy statement. Indien je hiermee ingestemd hebt, gebruiken wij je gegevens voor analyses en om je marketing en advertentie uitingen te tonen die voor jou relevant zijn. Je kunt dit altijd wijzigen via je privacy instellingen in onze websites en apps. Door dit account aan te maken, ga je akkoord met de <a href="#" target="_blank" class="link-component">gebruiksvoorwaarden</a>.</p>++ <div style="margin-top: 8px;">+ <button type="submit" class="button-component_button button-component_submit">Maak mijn account aan</button>+ </div>++++ </form>++ </main>\ No newline at end of filediff --git a/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form4.html b/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form4.htmlnew file mode 100644index 000000000..2c30c6ee8--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form4.html@@ -0,0 +1,10 @@+<!--+Test email detection when there are multiple forms and/or input groups on the page.+In this case, there is a login form in the header bar, and a registration form in the main content.+-->++<!-- Login form to test that this isn't selected -->+<div class="o-sliding-panels o-sliding-panels--six-panels c-navigation-account__page"><button class="c-navigation-account__close u-visually-hidden-from-tablet js-login-layer-account-trigger" type="button"><span class="u-visually-hidden">Sluiten</span></button><div class="o-sliding-panels__wrapper js-account-panel js-login-layer-slider js-login-form" data-visible-panel="0"><article class="o-sliding-panels__panel c-navigation-account__panel js-panel-slider-panel js-account-panel-login" style="max-height: none;"><form id="login-form" class="c-login-form c-form-feedback js-login-layer-form" data-feedback-container="#login-feedback" data-error-message="E-mailadres of wachtwoord is onjuist" method="post" novalidate="novalidate" data-gtm-form-interact-id="0"><header class="gamma mb-"> Inloggen </header><input name="__ApiRequestVerificationToken" type="hidden" value="cLIBwB8xY6oYuY3AtjNCmCtWFWld_8b7G_UUWkQShthfCXsRH00WwfyPjmNDMV-6PZvwt_MEXHb3l2KjszhPcUMzcoQlyhQJF8yzeTTOb7RBvVsCJWP5M83JEig7CIVt6uNyxnt2SBpSwC0trYISCA2:-FLAoK-EUoCqQ7MYa7GM31Wnf3xTuHYE-gEbxSMPogqFrrKoqGbrUyqLiOMX7mWdrWzZOlRwHDIDxVCSUX5vDMpaBPe854wvtvbK3Ewzxw20qxPBngdn1MJ7ygh6tFDnExw0YbtDMrI-7McumR5pzA2"><div class="o-layout"><div class="mb-"><label for="login_username">E-mailadres</label><input id="login_username" class="u-12/12 js-account-panel-email-login is-valid" name="username" autocomplete="false" type="email" inputmode="email" value="" placeholder="E-mailadres" required="required" data-msg-required="E-mailadres is verplicht" data-force-validation="true" data-val="true" data-gtm-form-interact-field-id="1" aria-describedby="login_username-error" aria-invalid="false"><div class="o-form-validation-msg u-12/12 field-validation-valid" data-valmsg-for="username" data-valmsg-replace="true"></div></div><div class="c-login-form__password-field mb-"><label for="login_password">Wachtwoord</label><input id="login_password" class="u-12/12" autocomplete="current-password" name="password" type="password" value="" placeholder="Wachtwoord" required="required" data-capslock-message="Let op: Capslock staat aan" data-feedback-container="#capslock-feedback" data-msg-required="Wachtwoord is verplicht" data-force-validation="true" data-val="true" data-gtm-form-interact-field-id="0"><div class="o-form-validation-msg field-validation-valid u-12/12" data-valmsg-for="password" data-valmsg-replace="true"></div><div id="capslock-feedback" class="c-login-form__password-feedback c-form-feedback mb--until-tablet"></div></div><div class="mb- c-checkbox"><input id="rememberme" name="remember" type="checkbox" value="" class="c-login-form__input-grow mr--"><label for="rememberme">Onthoud mij</label></div><div class="mb"><button class="c-button c-button--cta c-button--full-width js-submit-button js-datalayer-events-trigger" data-datalayer-events-eventobj="Login"><span class="c-button__caption">Inloggen</span><span class="c-button__spinner"></span></button><div id="login-feedback" class="u-12/12 mt-- c-form__feedback"></div></div><button type="button" class="mb-" data-panel-slider-target=".js-account-panel-forgot-password">Wachtwoord vergeten</button><div class="mb-"> Nog geen account?</div><div><span class="c-divider-decoration mb--"><span class="c-divider-decoration__label">of inloggen met</span></span><button type="button" class="c-button c-button--apple-id c-button--full-width mb-- js-apple-id-login js-datalayer-events-trigger" data-datalayer-events-eventobj="AppleLogin" data-locale="nl_NL"><span class="c-button__caption">Login met Apple</span><span class="c-button__spinner"></span></button><button type="button" class="c-button c-button--facebook c-button--full-width js-facebook-login js-datalayer-events-trigger" data-datalayer-events-eventobj="FacebookLogin"><span class="c-button__caption">Login met Facebook</span><span class="c-button__spinner"></span></button></div></div></form></article><article class="o-sliding-panels__panel c-navigation-account__panel js-panel-slider-panel js-account-panel-otp-authenticator js-login-layer-otp-authenticator is-invisible" style="max-height: none;"><button type="button" class="mb-" data-panel-slider-target=".js-account-panel-login"><span class="o-icon o-icon--chevron-left mr-"></span> Terug </button><form id="otp-authenticator-form" class="c-login-form c-form-feedback" data-feedback-container="#otp-feedback" data-error-message="Verificatiecode is onjuist" method="post" style="max-height: none;" novalidate="novalidate"><header class="gamma mb-"> Tweestapsverificatie </header><input name="__ApiRequestVerificationToken" type="hidden" value="yjw-S2HlXND9cM5C6QB5HVyTEN01OR6ahEnERUVlhBp_nEx4-5DqcR0Il7mlDfvV3_6i9dfU8cT3s4REYXvzhtcFHgj3WjDIH6mcWh7NQ7-24HYnu5EpKNceTyH4U3Y2fEMZKCxg7g9WzxqjFRpu8A2:SCY9E3sTaB7n4U1_G_bcNp2oOoDlsXGv2gciRDaXQHJ_JeM9NWLKA_Ryn0HGua69_LyudrbsSdfxmaNeGXxXonT43sWegH_Os0MZMI7Ki2DUs7fIWlA6K48JCLMDR9j4QzaCKBmd2_nlluLl-TyBmQ2"><p>Voer de zescijferige code in die uw verificatie app heeft gegenereerd</p><div class="o-layout mt-"><div class="mb-"><label for="otptoken"> Verificatiecode</label><input id="otptoken" class="u-12/12 js-account-panel-otp-token" name="otptoken" autocomplete="off" type="text" inputmode="numeric" value="" placeholder="000 000" data-val-regex-pattern="\d{3}\s*\d{3}" required="required" data-val-regex="Ongeldige code" data-msg-required="Verificatiecode is verplicht" data-force-validation="true" data-val="true"><div class="o-form-validation-msg field-validation-valid u-12/12" data-valmsg-for="otptoken" data-valmsg-replace="true"></div><input type="hidden" autocomplete="password" name="otpguid" value=""></div><div class="mb- o-wrapper"><div class="c-checkbox"><input id="trust" name="otptrust" type="checkbox" value="" class="c-login-form__input-grow mr--"><label for="trust">Vertrouw deze browser</label></div><span class="o-icon o-icon--tooltip-brand o-icon--tooltip-help c-tooltip ml-- js-tooltip" data-tooltip-content="Zodra u ervoor kiest om deze browser te vertrouwen wordt er bij het inloggen via deze browser niet meer om tweestapsverificatie gevraagd voor een periode van 30 dagen."></span></div><div class="mb"><button class="c-button c-button--cta c-button--full-width js-submit-button js-datalayer-events-trigger" data-datalayer-events-eventobj="TwoFactorSubmitToken"><span class="c-button__caption">Doorgaan</span><span class="c-button__spinner"></span></button><div id="otp-feedback" class="u-12/12 mt-- c-form__feedback"></div></div><button type="button" data-panel-slider-target=".js-account-panel-otp-sms"> Problemen met accounttoegang? </button></div></form></article><article class="o-sliding-panels__panel c-navigation-account__panel js-panel-slider-panel js-account-panel-otp-sms is-invisible" style="max-height: none;"><button type="button" class="mb-" data-panel-slider-target=".js-account-panel-otp-authenticator"><span class="o-icon o-icon--chevron-left mr-"></span> Terug </button><form id="otp-sms-form" class="c-login-form c-form-feedback" data-opt-sms-get-description="Ontvang een sms-bericht met een verificatiecode op het volgende telefoonnummer: {phoneMaskPlaceholder}. Met deze code kunt u bevestigen dat dit account van u is." data-feedback-container="#sms-feedback" data-error-message="Verificatiecode is onjuist" method="post" style="max-height: none;" novalidate="novalidate"><header class="gamma mb-">Ik kan niet meer bij m'n account</header><input name="__ApiRequestVerificationToken" type="hidden" value="VuZGu5Iowyr6qXCler09KF2vlPp2JR-JktelE5ty9AjSNqQeXUyuCodRIZgXNHoZNzTI6tqBwxg3gaiSeaXBOVUpOk7tOJHlHV1IeBq6zepRqD7_OB2sbHHlqRElxK1R5HIuycgoxgv19lL06pXzjQ2:s3LYz6UyWQLYhMNa-8yz5IXYL9vIHqPF1Go4HfgkqBaT-5zVYXzcCQaSKZlH5yVJMMg7oQFsphM-xU54pnXjvcQRu5ZeeEckrk1q9DGd517PgLC6oZah6AtjZEKhtU-nxCrEu_b0K83j-JnWbUI-JQ2"><div class="js-login-form-otp-sms-get-panel mb-"><p class="js-login-form-otp-sms-get-description"></p><button class="c-button c-button--ghost c-button--full-width mt- js-login-form-otp-sms-get-trigger js-datalayer-events-trigger" data-datalayer-events-eventobj="TwoFactorRequestSms" type="button"><span class="c-button__caption"> Vertuur sms </span><span class="c-button__spinner"></span></button></div><div class="js-login-form-otp-sms-error-panel c-content-box c-content-box--informative c-content-box--framed p- u-hidden"><p>Het versturen van de sms is niet gelukt.</p></div><div class="js-login-form-otp-sms-send-panel mb- u-hidden"><p class="mb-">Voer de zescijferige code in die wij u per sms hebben gestuurd.</p><div class="o-layout mt-"><div class="mb-"><label for="otpSmsToken"> Verificatiecode</label><input id="otpSmsToken" class="u-12/12 js-account-panel-otp-token" name="otpSmsToken" autocomplete="one-time-code" type="text" inputmode="numeric" value="" placeholder="000 000" data-val-regex-pattern="\d{3}\s*\d{3}" required="required" data-val-regex="Ongeldige code" data-msg-required="Verificatiecode is verplicht" data-force-validation="true" data-val="true"><div class="o-form-validation-msg field-validation-valid u-12/12" data-valmsg-for="otpSmsToken" data-valmsg-replace="true"></div><input type="hidden" autocomplete="password" name="otpguid" value=""></div><div class="mb-"><button class="c-button c-button--cta c-button--full-width js-submit-button js-datalayer-events-trigger" data-datalayer-events-eventobj="TwoFactorSubmitSms"><span class="c-button__caption">Doorgaan</span><span class="c-button__spinner"></span></button><div id="sms-feedback" class="u-12/12 mt-- c-form__feedback"></div></div><button type="button" class="js-login-form-otp-sms-retry-trigger js-datalayer-events-trigger" data-datalayer-events-eventobj="TwoFactorResendSms"> Geen verificatiecode ontvangen? </button></div></div><hr><article><header class="epsilon">Geen toegang meer tot geverifieerd telefoonnummer?</header><p>Om uw account alsnog terug te krijgen raden wij u aan om via mail contact op te nemen met </p></article></form></article><article class="o-sliding-panels__panel c-navigation-account__panel js-panel-slider-panel js-login-layer-notify-2fa-reset is-invisible" style="max-height: none;"><header class="gamma mb">Accounttoegang hersteld</header><div class="u-text-center mb-"><div class="c-status-badge"><div class="c-status-badge__circle c-status-badge__success"><span class="c-status-badge__success-line c-status-badge__success-line-tip"></span><span class="c-status-badge__success-line c-status-badge__success-line-long"></span><div class="c-status-badge__success-circle"></div><div class="c-status-badge__success-fix"></div></div></div></div><p class="o-intro-text mb"> U bent succesvol ingelogd en hebt weer toegang tot uw account. </p><div class="c-content-box c-content-box--informative c-content-box--framed p- mb"><p>Omdat u geen gebruik kon maken van tweestapsverificatie is deze uitgeschakeld. U kunt het opnieuw instellen in uw account.</p></div><p class="mb">Klik.</p><button class="c-button c-button--cta c-button--full-width js-login-layer-2fa-reset-close js-datalayer-events-trigger" data-datalayer-events-eventobj="DismissNotifyTwoFactorReset" type="submit" data-disable-double-click-additional-classnames="is-busy"><span class="c-button__caption"> Sluiten </span><span class="c-button__spinner"></span></button></article><article class="o-sliding-panels__panel c-navigation-account__panel js-panel-slider-panel js-account-panel-forgot-password is-invisible" style="max-height: none;"><button type="button" class="mb-" data-panel-slider-target=".js-account-panel-login"><span class="o-icon o-icon--chevron-left mr-"></span> Terug </button><form action="/" method="post" class="js-forgot-password c-login-form c-form-feedback js-login-layer-reset-password-form" data-feedback-container="#forgot-password-feedback" data-success-message="Indien uw e-mailadres bij ons bekend is heeft u van ons een e-mail ontvangen. Volg de instructies in de mail om uw wachtwoord opnieuw in te stellen." data-error-message="Er was een technisch probleem met het herstellen van uw wachtwoord, probeer het op een laten tijdstip nogmaals."><header class="gamma mb-"> Wachtwoord vergeten </header><div class="o-layout"><input name="__ApiRequestVerificationToken" type="hidden" value="E6jGTgTNl6EP9cVeUn-9YltfjP8QmZUO_Jy9UkFWcWAyasQPC_wzBlk93T-iJdhdYRy1OTByYBfbBsskcXdHGK7ZEYmTK6DIdd0tUsmhBvPqsBh3nQBGbiyjMlS5WR_D6Oh8WYGd562S3csXHCqEQA2:7HPcnrQ7wFeVAujZZa8dUDDkAqHYiFDgPyMOGEnKEhvd5ZbUNtQRMYSsVu5iMgsAe0BlHqbR4ajTVk4WZiK0qljtjJ6xvvoY6rxkwVga4EJXVbxyEe1ZcPQ5vBr1U--h2GScIOCMqm6tMsMQWOoCYg2"><label for="reset_password_email">E-mailadres</label><input id="reset_password_email" class="u-12/12 mb- js-account-panel-email-reset" name="username" type="email" inputmode="email" value="" placeholder="E-mailadres" required="required"><button class="c-button c-button--cta c-button--full-width js-submit-button js-datalayer-events-trigger" data-datalayer-events-eventobj="ForgotPassword"><span class="c-button__caption">Herstel wachtwoord</span><span class="c-button__spinner"></span></button><div id="forgot-password-feedback" class="o-layout__col c-form__feedback u-12/12 mt"></div></div></form></article><article class="o-sliding-panels__panel c-navigation-account__account p0 js-panel-slider-panel js-login-layer-account-menu" style="max-height: 1px;"><div class="o-wrapper o-wrapper--col u-full-height js-login-layer-account-menu-items"></div></article></div></div>++<!-- Target form for test that this is selected -->+<div class="o-container"><article class="c-article u-12/12 u-8/12-from-desktop"><h1 class="c-article__heading">Wat is uw e-mailadres?</h1><p class="c-article__content">Dan kunnen wij een gratis Valk Exclusief Membership voor u registreren of uw Valk Account upgraden naar een gratis Valk Exclusief Membership</p></article><form action="/valkaccount/e-mail-controleren/" class="js-disable-double-click" enctype="multipart/form-data" method="post" novalidate="novalidate"><div class="c-content-box c-content-box--shadowed"><input name="__RequestVerificationToken" type="hidden" value="b4NQkr7RK_w8oInuQZhvxe5GjjVXAgk887yG0llwIVk5VSaOyvs50Nswsfk33OKJHTOGo-Jq6FRS-OL6KDn-F1Cj4pQhWinfJdNXmxDpW3ARWI72i22lPawJiU3RfD_4PeKz5PfFbon61yToWCdlWg2"><label class="u-12/12" for="EmailAddress">E-mailadres</label><div class="o-wrapper o-wrapper--col-until-desktop"><fieldset class="u-12/12"><input class="o-form-text o-form-text--fullwidth o-form-text--reduced-height-from-desktop text-box single-line" data-val="true" data-val-email="E-mailadres is ongeldig" data-val-maxlength="E-mailadres mag maximaal 250 karakters zijn" data-val-maxlength-max="250" data-val-regex="E-mailadres is ongeldig" data-val-regex-pattern="^(?:[a-zA-Z0-9!#$%&'*+=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-zA-Z0-9-]*[a-zA-Z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$" data-val-required="E-mailadres is verplicht" id="EmailAddress" name="EmailAddress" tabindex="1" type="email" value="" autocomplete="false"><div class="field-validation-valid o-form-validation-msg" data-valmsg-for="EmailAddress" data-valmsg-replace="true"></div></fieldset><div class="mt--until-desktop u-inline-push-end"><button class="o-button c-button c-button--cta c-button--icon-next c-button--centered-caption-icon ml---from-desktop" data-disable-double-click-additional-classnames="is-busy" tabindex="2"><span class="c-button__caption">Volgende</span><span class="c-button__spinner"></span></button></div></div></div><div class="o-layout__row"><div class="o-layout__col u-12/12"><ul class="o-wrapper o-wrapper--justified o-wrapper--col-until-tablet"><li class="mb--until-desktop"><div class="o-wrapper o-wrapper--middle o-wrapper--center"><span><strong>€15,-</strong> Membership <strong>welkomstkorting</strong></span></div></li><li class="mb--until-desktop"><div class="o-wrapper o-wrapper--middle o-wrapper--center"><span><strong>Exclusieve</strong> Membership acties</span></div></li><li><div class="o-wrapper o-wrapper--middle o-wrapper--center"><span><strong>Persoonlijke</strong> aanbiedingen</span></div></li></ul></div></div><div class="u-text-center mt-"><span class="c-divider-decoration"><span class="c-divider-decoration__label">Of</span></span><ul><li><button type="button" class="c-button c-button--content-text c-button--content-text--apple-id js-apple-id-login mt-" tabindex="3" data-locale="nl_NL"><span class="c-button__caption">Login met Apple</span><span class="c-button__spinner"></span></button></li><li><button type="button" class="c-button c-button--content-text c-button--content-text--facebook js-facebook-login mt-" tabindex="3"><span class="c-button__caption">Login met Facebook</span><span class="c-button__spinner"></span></button></li></ul></div><input name="ufprt" type="hidden" value="03530FAAA72D686D217AA2D53F79379AE3E3D223707F9577E72947D56EED7B71760B727BB66AFE6370AE1E07A3D18E3B217F7689CD19F6FE1343CD8171647BC87A0B8A6B3544FEE074ACDCD95B51056CB8263C205219956B1D7600AE18DD7BCA1C0D9A996CA5AFBC148B1EE2DA0694F6ACE6A67398FF7CC9D95AEA87F0FA5053DB3C7811DFC824EEC792B42E76E658D751708C5863829BE26BAF20670EA823C44EE8ABA827380FD412DEDF85A988987510175B52F844D7B30200D014B9283522737437CD5D9C291801B88A1AAFAA8E2CB9BB9B3192E2A0BFDC5F990A77FD10CF"></form></div>\ No newline at end of filediff --git a/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form5.html b/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form5.htmlnew file mode 100644index 000000000..2fe7596d9--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form5.html@@ -0,0 +1,61 @@+<!--+Test form element detection where the input fields themselves have gibberish IDs and only the labels are descriptive.+This is to test the label detection logic.+-->++<div class="gf_browser_chrome gform_wrapper gform_legacy_markup_wrapper gform-theme--no-framework" data-form-theme="legacy" data-form-index="0" id="gform_wrapper_25"><form method="post" enctype="multipart/form-data" id="gform_25" action="/nieuwsbrief/" data-formid="25" novalidate="" data-gtm-form-interact-id="0">+ <div class="gform-body gform_body"><ul id="gform_fields_25" class="gform_fields top_label form_sublabel_below description_below validation_below"><li id="field_25_5" class="gfield gfield--type-email gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible" data-js-reload="field_25_5"><label class="gfield_label gform-field-label gfield_label_before_complex">E-mailadres<span class="gfield_required"><i class="fas fa-lock"></i></span></label><div class="ginput_complex ginput_container ginput_container_email gform-grid-row" id="input_25_5_container">+ <span id="input_25_5_1_container" class="ginput_left gform-grid-col gform-grid-col--size-auto">+ <input class="" type="email" name="input_5" id="input_25_5" value="" aria-required="true" aria-invalid="false" autocomplete="false" data-gtm-form-interact-field-id="0">+ <label for="input_25_5" class="gform-field-label gform-field-label--type-sub ">E-mailadres invoeren</label>+ </span>+ <span id="input_25_5_2_container" class="ginput_right gform-grid-col gform-grid-col--size-auto">+ <input class="" type="email" name="input_5_2" id="input_25_5_2" value="" aria-required="true" aria-invalid="false" data-gtm-form-interact-field-id="1">+ <label for="input_25_5_2" class="gform-field-label gform-field-label--type-sub ">E-mailadres bevestigen</label>+ </span>+ <div class="gf_clear gf_clear_complex"></div>+ </div></li><li id="field_25_13" class="gfield gfield--type-select gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible" data-js-reload="field_25_13"><label class="gfield_label gform-field-label" for="input_25_13">Aanhef<span class="gfield_required"><i class="fas fa-lock"></i></span></label><div class="ginput_container ginput_container_select"><select name="input_13" id="input_25_13" class="medium gfield_select" aria-required="true" aria-invalid="false"><option value="heer">heer</option><option value="mevrouw">mevrouw</option></select><div class="field_icon"><i class="fas fa-sort"></i></div></div></li><li id="field_25_14" class="gfield gfield--type-text gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible" data-js-reload="field_25_14"><label class="gfield_label gform-field-label" for="input_25_14">Voornaam<span class="gfield_required"><i class="fas fa-lock"></i></span></label><div class="ginput_container ginput_container_text"><input name="input_14" id="input_25_14" type="text" value="" class="medium" aria-required="true" aria-invalid="false" data-gtm-form-interact-field-id="2"></div></li><li id="field_25_15" class="gfield gfield--type-text gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible" data-js-reload="field_25_15"><label class="gfield_label gform-field-label" for="input_25_15">Achternaam<span class="gfield_required"><i class="fas fa-lock"></i></span></label><div class="ginput_container ginput_container_text"><input name="input_15" id="input_25_15" type="text" value="" class="medium" aria-required="true" aria-invalid="false" data-gtm-form-interact-field-id="3"></div></li><li id="field_25_10" class="gfield gfield--type-date gfield--input-type-datepicker gfield--datepicker-no-icon field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible" data-js-reload="field_25_10"><label class="gfield_label gform-field-label" for="input_25_10">Geboortedatum (niet verplicht)</label><div class="ginput_container ginput_container_date">+ <input name="input_10" id="input_25_10" type="text" value="" class="datepicker gform-datepicker dmy datepicker_no_icon gdatepicker-no-icon hasDatepicker initialized" placeholder="dd/mm/jjjj" aria-describedby="input_25_10_date_format" aria-invalid="false" data-gtm-form-interact-field-id="4">+ <span id="input_25_10_date_format" class="screen-reader-text">DD slash MM slash JJJJ</span>+ <div class="field_icon"><i class="far fa-calendar-alt"></i></div></div>+</li><li id="field_25_9" class="gfield gfield--type-checkbox gfield--type-choice field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible" data-js-reload="field_25_9"><label class="gfield_label gform-field-label gfield_label_before_complex">Mijn favoriete vakantiebestemming (niet verplicht)</label><div class="ginput_container ginput_container_checkbox"><ul class="gfield_checkbox" id="input_25_9"><li class="gchoice gchoice_25_9_1">+ <input class="gfield-choice-input" name="input_9.1" type="checkbox" value="Wad" id="choice_25_9_1">+ <label for="choice_25_9_1" id="label_25_9_1" class="gform-field-label gform-field-label--type-inline">Wad</label>+ </li><li class="gchoice gchoice_25_9_2">+ <input class="gfield-choice-input" name="input_9.2" type="checkbox" value="Stad" id="choice_25_9_2">+ <label for="choice_25_9_2" id="label_25_9_2" class="gform-field-label gform-field-label--type-inline">Stad</label>+ </li><li class="gchoice gchoice_25_9_3">+ <input class="gfield-choice-input" name="input_9.3" type="checkbox" value="Landelijk" id="choice_25_9_3">+ <label for="choice_25_9_3" id="label_25_9_3" class="gform-field-label gform-field-label--type-inline">Landelijk</label>+ </li></ul></div></li><li id="field_25_4" class="gfield gfield--type-checkbox gfield--type-choice gfield_contains_required field_sublabel_below gfield--has-description field_description_above field_validation_below gfield_visibility_visible" data-js-reload="field_25_4"><label class="gfield_label gform-field-label gfield_label_before_complex">Welke nieuwsbrief wil je van ons ontvangen?<span class="gfield_required"><i class="fas fa-lock"></i></span></label><div class="gfield_description" id="gfield_description_25_4">Wij gebruiken deze gegevens alleen om je nieuwsbrieven te sturen. Wij vragen je expliciet om akkoord voor het versturen van onze nieuwsbrief.</div><div class="ginput_container ginput_container_checkbox"><ul class="gfield_checkbox" id="input_25_4"><li class="gchoice gchoice_25_4_1">+ <input class="gfield-choice-input" name="input_4.1" type="checkbox" value="WestCord Hotels" id="choice_25_4_1" aria-describedby="gfield_description_25_4">+ <label for="choice_25_4_1" id="label_25_4_1" class="gform-field-label gform-field-label--type-inline">WestCord Hotels</label>+ </li><li class="gchoice gchoice_25_4_2">+ <input class="gfield-choice-input" name="input_4.2" type="checkbox" value="ss Rotterdam" id="choice_25_4_2">+ <label for="choice_25_4_2" id="label_25_4_2" class="gform-field-label gform-field-label--type-inline">ss Rotterdam</label>+ </li><li class="gchoice gchoice_25_4_3">+ <input class="gfield-choice-input" name="input_4.3" type="checkbox" value="Hotel New York" id="choice_25_4_3">+ <label for="choice_25_4_3" id="label_25_4_3" class="gform-field-label gform-field-label--type-inline">Hotel New York</label>+ </li><li class="gchoice gchoice_25_4_4">+ <input class="gfield-choice-input" name="input_4.4" type="checkbox" value="Hotel Jakarta Amsterdam" id="choice_25_4_4">+ <label for="choice_25_4_4" id="label_25_4_4" class="gform-field-label gform-field-label--type-inline">Hotel Jakarta Amsterdam</label>+ </li></ul></div></li><li id="field_25_8" class="gfield gfield--type-checkbox gfield--type-choice gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible" data-js-reload="field_25_8"><label class="gfield_label gform-field-label gfield_label_before_complex">Privacyverklaring<span class="gfield_required"><i class="fas fa-lock"></i></span></label><div class="ginput_container ginput_container_checkbox"><ul class="gfield_checkbox" id="input_25_8"><li class="gchoice gchoice_25_8_1">+ <input class="gfield-choice-input" name="input_8.1" type="checkbox" value="Ik heb de privacyverklaring gelezen en ga hiermee akkoord" id="choice_25_8_1">+ <label for="choice_25_8_1" id="label_25_8_1" class="gform-field-label gform-field-label--type-inline">Ik heb de privacyverklaring gelezen en ga hiermee akkoord</label>+ </li></ul></div></li><li id="field_25_16" class="gfield gfield--type-honeypot gform_validation_container field_sublabel_below gfield--has-description field_description_below field_validation_below gfield_visibility_visible" data-js-reload="field_25_16"><label class="gfield_label gform-field-label" for="input_25_16">Email</label><div class="ginput_container"><input name="input_16" id="input_25_16" type="text" value="" autocomplete="new-password"></div><div class="gfield_description" id="gfield_description_25_16">Dit veld is bedoeld voor validatiedoeleinden en moet niet worden gewijzigd.</div></li></ul></div>+<div class="gform-footer gform_footer top_label"> <input type="submit" id="gform_submit_button_25" class="gform_button button" onclick="gform.submission.handleButtonClick(this);" value="Versturen">+<input type="hidden" class="gform_hidden" name="gform_submission_method" data-js="gform_submission_method_25" value="postback">+<input type="hidden" class="gform_hidden" name="gform_theme" data-js="gform_theme_25" id="gform_theme_25" value="legacy">+<input type="hidden" class="gform_hidden" name="gform_style_settings" data-js="gform_style_settings_25" id="gform_style_settings_25" value="[]">+<input type="hidden" class="gform_hidden" name="is_submit_25" value="1">+<input type="hidden" class="gform_hidden" name="gform_submit" value="25">++<input type="hidden" class="gform_hidden" name="gform_unique_id" value="">+<input type="hidden" class="gform_hidden" name="state_25" value="WyJbXSIsIjI0NWU2MWRlZWQ0YWI5NTY4MGU2YjA5YTM2NmUxMTViIl0=">+<input type="hidden" autocomplete="off" class="gform_hidden" name="gform_target_page_number_25" id="gform_target_page_number_25" value="0">+<input type="hidden" autocomplete="off" class="gform_hidden" name="gform_source_page_number_25" id="gform_source_page_number_25" value="1">+<input type="hidden" name="gform_field_values" value="">++</div>+ <p style="display: none !important;" class="akismet-fields-container" data-prefix="ak_"><label>Δ<textarea name="ak_hp_textarea" cols="45" rows="8" maxlength="100"></textarea></label><input type="hidden" id="ak_js_1" name="ak_js" value="1739544393837"><script>document.getElementById( "ak_js_1" ).setAttribute( "value", ( new Date() ).getTime() );</script></p></form>+ </div>\ No newline at end of filediff --git a/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form6.html b/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form6.htmlnew file mode 100644index 000000000..084f2621c--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form6.html@@ -0,0 +1,69 @@+<form id="form11501" enctype="application/x-www-form-urlencoded" class="mpForm" method="post" action="" novalidate="novalidate">+ <table class="mpFormTable mpTwoColumnLayout">+ <tbody><tr>+ <td>+ <table id="CNT18485" role="group" class="mpQuestionTable error inlineValidated" aria-labelledby="lbl-field18485">+ <tbody><tr class="mpLabelRow">+ <td class="mpFormLabel"><label class="descriptionLabel" for="field18485" id="lbl-field18485">Graag ontvang ik (meerdere opties mogelijk):</label><span class="mandatorySign"> *</span></td>+ <td class="mpFormField">+ <ul id="field18485">+ <li><input type="checkbox" value="2" id="field18485-2011" name="field18485" aria-labelledby="lbl-field18485 field18485-2011" class="mpMultipleInput" autocomplete="false" aria-invalid="true"><label class="mpMultipleLabel" for="field18485-2011">De nieuwsbrief voor vrijwilligerswerk</label></li>+ <li><input type="checkbox" value="4" id="field18485-2010" name="field18485" aria-labelledby="lbl-field18485 field18485-2010" class="mpMultipleInput" aria-invalid="true"><label class="mpMultipleLabel" for="field18485-2010">De nieuwsbrief voor mantelzorgers</label></li>+ </ul>+ </td>+ </tr>+ <tr class="mpErrorRow"><td colspan="2"><label id="field18485-error" class="error" for="field18485">Maak a.u.b. een keuze.</label></td></tr></tbody></table>+ <table id="CNT18478" role="group" class="mpQuestionTable error inlineValidated" aria-labelledby="lbl-field18478">+ <tbody><tr class="mpLabelRow">+ <td class="mpFormLabel"><label class="descriptionLabel" for="field18478" id="lbl-field18478">E-mailadres</label><span class="mandatorySign"> *</span></td>+ <td class="mpFormField"><input type="text" id="field18478" name="field18478" autocomplete="false" aria-invalid="true"><div class="sublabel">[email protected] </div>+ </td>+ </tr>+ <tr class="mpErrorRow"><td colspan="2"><label id="field18478-error" class="error" for="field18478">Vul a.u.b. een e-mailadres in.</label></td></tr></tbody></table>+ <table id="CNT18477" role="group" class="mpQuestionTable " aria-labelledby="lbl-field18477" style="display: none;">+ <tbody><tr class="mpLabelRow">+ <td class="mpFormLabel"><label class="descriptionLabel" for="field18477" id="lbl-field18477">Email</label></td>+ <td class="mpFormField"><input type="text" id="field18477" name="field18477"></td>+ </tr>+ </tbody></table>+ <table id="CNT18479" role="group" class="mpQuestionTable mpHighlight" aria-labelledby="lbl-field18479">+ <tbody><tr class="mpLabelRow">+ <td class="mpFormLabel"><label class="descriptionLabel" for="field18479" id="lbl-field18479">Voornaam</label></td>+ <td class="mpFormField"><input type="text" id="field18479" name="field18479" autocomplete="false" aria-invalid="false"></td>+ </tr>+ </tbody></table>+ <table id="CNT18476" role="group" class="mpQuestionTable " aria-labelledby="lbl-field18476" style="display: none;">+ <tbody><tr class="mpLabelRow">+ <td class="mpFormLabel"><label class="descriptionLabel" for="field18476" id="lbl-field18476">0 + 1 =</label><span class="mandatorySign"> *</span></td>+ <td class="mpFormField"><input type="text" id="field18476" name="field18476" value="1"></td>+ </tr>+ </tbody></table>+ <table id="CNT18486" role="group" class="mpQuestionTable " aria-labelledby="lbl-field18486">+ <tbody><tr class="mpLabelRow">+ <td class="mpFormLabel"><label class="descriptionLabel" for="field18486" id="lbl-field18486">Achternaam</label></td>+ <td class="mpFormField"><input type="text" id="field18486" name="field18486" autocomplete="family-name"></td>+ </tr>+ </tbody></table>+ <table id="CNT18487" role="group" class="mpQuestionTable" aria-labelledby="lbl-field18487">+ <tbody><tr class="mpLabelRow">+ <td class="mpFormLabel"><label class="descriptionLabel" for="field18487" id="lbl-field18487">Organisatie (indien van toepassing)</label></td>+ <td class="mpFormField"><input type="text" id="field18487" name="field18487" autocomplete="false"></td>+ </tr>+ </tbody></table>+ <table id="CNT18975" role="group" class="mpQuestionTable " aria-labelledby="lbl-field18975">+ <tbody><tr class="mpLabelRow">+ <td class="mpFormLabel"><label class="descriptionLabel" for="field18975" id="lbl-field18975">Mobiel</label></td>+ <td class="mpFormField"><input type="text" maxlength="15" size="15" id="field18975" name="field18975" autocomplete="tel"></td>+ </tr>+ </tbody></table>+ <table id="CNT18484" role="group" class="mpQuestionTable " aria-labelledby="lbl-field18484">+ <tbody><tr class="mpLabelRow">+ <td class="submitCellSpacer"><span></span></td>+ <td class="submitCell"><input value="Aanmelden" class="submitButton" name="next" type="submit" id="field18484"></td>+ </tr>+ </tbody></table>+ </td>+ </tr>+ </tbody></table>+ <fieldset style="display: none"><input type="hidden" name="userId" value="314100103"><input type="hidden" name="formEncId" value="zdXwzQtKhCXtthgkjsuU"><input type="hidden" name="pageEncId" value="ze4Nb47CgT"><input type="hidden" name="paramActivityId" value="test"><input type="hidden" name="subscriptionEncId" value="{encId}"><input type="hidden" name="pagePosition" value="1"><input type="hidden" name="viewMode" value="LANDINGPAGE"><input type="hidden" name="redir" value="formAdmin2"><input type="hidden" name="formLayout" value="N"><input type="hidden" name="errorText" value="Dit formulier kon niet verzonden worden om de volgende reden(en):"><input type="hidden" name="abInfo" value="04eRNBA4/P0QrJR3bDHX8IOU5u2iLw/xAd74Rxw+E7LuscXwaOlQrjOfO7+gJdAVHMxnHKcCMVAGg4t6SVd/n037kaaIrZFr2u7Sc6TN7HV+ObQHFQYKwbjD02LchIyKsdr4clKYJw+nnO5FORREwBu4rY/eIyQ5XmJAild5UviN4gUwAW6o6TszkS+/Nh3H"></fieldset>+ </form>\ No newline at end of filediff --git a/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form7.html b/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form7.htmlnew file mode 100644index 000000000..88af40f4f--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form7.html@@ -0,0 +1,5 @@+<!--+Test that email field is correctly detected instead of the "postcode" field which also contains the label "adres".+-->++<form action="" class="js-disable-double-click" enctype="multipart/form-data" method="post" novalidate="novalidate"><script type="json/options"> { "translations": { "intlInputTel": { "invalidNumber": "Ongeldig telefoonnummer", "invalidCountryCode": "Ongeldige landcode", "tooShort": "Telefoonnummer is te kort", "tooLong": "Telefoonnummer is te lang" } } } </script><input name="__RequestVerificationToken" type="hidden" value="DSBtVIZqfgsO-GdXXg9jYft-O1ojsWP3Zbd8lgrGCX02Ts-6vSVtsU2S9NElnY_v_NNF6AyLqL2ur_sarJd1fzwOKqHFBru6Px1Rd-0QcmUL9uGOzqYCyijjiVLcuxzCCS4_ROkUlyl8MNvaeLEzow2"><input name="__ApiRequestVerificationToken" type="hidden" value="SQCUReK3EvCsw7lBon921Mh-NXv3XVINhvPGIJr2NuVl1lGJBFUZzdjVR4ZIbjg9q6jbDYPldPqNcALN1R6D7sLd2qwGEqZp_qc2SCCqVrFp9ECRjg-3Xaq9qvf670S7Cd_-fIPdDbmBb6JQ0C1dtw2:Dyv8rZJweZqHrja4Ej1QxOJ37xcrwqrdR7Po2JAkVQfGH3YEOaW0J3FqHukaFDzFujxnh2Q5VvNgu7LBQnNYRmRWyqmbOOcnmeMl7O9SF9L_5qofh8s7HFgVz97ZovXl6rI7w5ZITjtKO8huXm-CcA2"><div class="o-layout o-layout--half"><div class="js-slide-toggle" data-slide-toggle-event="change"><div class="js-toggle-trigger" aria-controls="rnd2"><div class="c-radio-button c-radio-button--inline"><input checked="checked" data-val="true" data-val-number="The field AccountType must be a number." data-val-required="The AccountType field is required." id="Form_AccountType_0" name="Form.AccountType" type="radio" value="0"><label for="Form_AccountType_0">Prive</label></div><div class="c-radio-button c-radio-button--inline"><input id="Form_AccountType_1" name="Form.AccountType" type="radio" value="1"><label for="Form_AccountType_1">Zakelijk</label></div></div><div class="js-toggle-content " style="display: none;" id="rnd2" aria-hidden=""><h2 class="o-heading-emphasis mt">Bedrijfsgegevens</h2><div class="o-layout__row"><div class="u-clearfix"><div class="o-layout__col u-12/12"><label for="Form_KVKNumber">Kvk nummer</label><div class="c-decorated-input c-decorated-input--suggestions js-kvk-lookup"><input autocomplete="off" class="c-decorated-input__input o-form-text u-12/12 text-box single-line" data-lookup-min-length="8" data-lookup-type="kvkNumber" data-val="true" data-val-requiredif="Kvk nummer is verplicht" data-val-requiredif-dependentproperty="Form.Country" data-val-requiredif-desiredvalue="nl" id="Form_KVKNumber" maxlength="50" name="Form.KVKNumber" type="text" value=""><button type="button" class="js-kvk-lookup-trigger c-decorated-input__decoration u-text-uni is-empty" tabindex="-1"><span class="js-kvk-lookup-icon c-decorated-input__icon"></span></button><div class="js-kvk-lookup-list-container"><ul class="js-kvk-lookup-list c-lookup-suggestions" style="display: none;"></ul></div></div><span class="field-validation-valid o-form-validation-msg" data-valmsg-for="Form.KVKNumber" data-valmsg-replace="true"></span></div><div class="o-layout__col u-12/12"><label for="Form_CompanyName">Bedrijfsnaam</label><input class="u-12/12 o-form-text text-box single-line" data-kvk-lookup-prefill="CompanyName" data-val="true" data-val-maxlength="Bedrijfsnaam mag maximaal 100 karakters zijn" data-val-maxlength-max="100" data-val-requiredif="Bedrijfsnaam is verplicht" data-val-requiredif-dependentproperty="Form.AccountType" data-val-requiredif-desiredvalue="1" id="Form_CompanyName" name="Form.CompanyName" type="text" value=""><div class="field-validation-valid o-form-validation-msg" data-valmsg-for="Form.CompanyName" data-valmsg-replace="true"></div></div></div></div></div></div><h2 class="o-heading-emphasis mt">Contactgegevens</h2><fieldset><legend class="u-hidden">Naam</legend><div class="o-layout__row"><div class="o-layout__col u-5/12 u-4/12-from-tablet"><label for="Form_Title">Titel</label><div class="c-select c-select--full-width"><select class="c-select__select" data-val="true" data-val-maxlength="Titel mag maximaal 15 karakters zijn" data-val-maxlength-max="15" data-val-required="Titel is verplicht" id="Form_Title" name="Form.Title"><option value="Dhr.">Dhr.</option><option value="Mevr.">Mevr.</option><option value="Fam.">Fam.</option></select></div></div><div class="o-layout__col u-7/12 u-8/12-from-tablet"><label for="Form_Firstname">Voornaam</label><input class="u-12/12 o-form-text text-box single-line" data-val="true" data-val-maxlength="Voornaam mag maximaal 50 karakters zijn" data-val-maxlength-max="50" data-val-required="Voornaam is verplicht" id="Form_Firstname" name="Form.Firstname" type="text" value=""><div class="field-validation-valid o-form-validation-msg" data-valmsg-for="Form.Firstname" data-valmsg-replace="true"></div></div></div><div class="o-layout__row"><div class="o-layout__col u-5/12 u-4/12-from-tablet"><label for="Form_Prefix">Tussenvoegsel(s)</label><input class="u-12/12 o-form-text text-box single-line" data-val="true" data-val-maxlength="Tussenvoegsel(s) mag maximaal 50 karakters zijn" data-val-maxlength-max="50" data-val-regex="Tussenvoegsel(s) is ongeldig" data-val-regex-pattern="((?!06|@|\+31).)*" id="Form_Prefix" name="Form.Prefix" type="text" value=""><div class="field-validation-valid o-form-validation-msg" data-valmsg-for="Form.Prefix" data-valmsg-replace="true"></div></div><div class="o-layout__col u-7/12 u-8/12-from-tablet"><label for="Form_Lastname">Achternaam</label><input class="u-12/12 o-form-text text-box single-line" data-val="true" data-val-maxlength="Achternaam mag maximaal 50 karakters zijn" data-val-maxlength-max="50" data-val-required="Achternaam is verplicht" id="Form_Lastname" name="Form.Lastname" type="text" value=""><div class="field-validation-valid o-form-validation-msg" data-valmsg-for="Form.Lastname" data-valmsg-replace="true"></div></div></div></fieldset><fieldset class="js-address-lookup" data-address-lookup-countries="NL"><legend class="u-hidden">Adresgegevens</legend><div class="o-layout__row"><div class="o-layout__col u-5/12 u-4/12-from-tablet"><label for="Form_ZipCode">Postcode</label><input class="js-address-lookup-zipcode u-12/12 o-form-text text-box single-line" data-val="true" data-val-custom="Postcode is ongeldig" data-val-maxlength="Postcode mag maximaal 15 karakters zijn" data-val-maxlength-max="15" data-val-required="Postcode is verplicht" id="Form_ZipCode" name="Form.ZipCode" type="text" value=""><div class="field-validation-valid o-form-validation-msg" data-valmsg-for="Form.ZipCode" data-valmsg-replace="true"></div></div><div class="o-layout__col u-4/12"><label for="Form_Housenumber">Huisnummer</label><input class="js-address-lookup-house-number u-12/12 o-form-text text-box single-line" data-val="true" data-val-maxlength="Huisnummer mag maximaal 40 karakters zijn" data-val-maxlength-max="40" data-val-regex="Huisnummer is ongeldig" data-val-regex-pattern="[^@]*" data-val-required="Huisnummer is verplicht" id="Form_Housenumber" name="Form.Housenumber" type="text" value=""><div class="field-validation-valid o-form-validation-msg" data-valmsg-for="Form.Housenumber" data-valmsg-replace="true"></div></div></div><div class="o-layout__row js-address-lookup-loading-layer"><div class="u-clearfix"><div class="o-layout__col u-12/12"><label for="Form_Street">Straat</label><input class="js-address-lookup-street u-12/12 o-form-text text-box single-line" data-val="true" data-val-maxlength="Straat mag maximaal 100 karakters zijn" data-val-maxlength-max="100" data-val-required="Straat is verplicht" id="Form_Street" name="Form.Street" type="text" value=""><div class="field-validation-valid o-form-validation-msg" data-valmsg-for="Form.Street" data-valmsg-replace="true"></div></div><div class="o-layout__col u-12/12"><label for="Form_City">Woonplaats</label><input class="js-address-lookup-city u-12/12 o-form-text text-box single-line" data-val="true" data-val-maxlength="Woonplaats mag maximaal 50 karakters zijn" data-val-maxlength-max="50" data-val-required="Woonplaats is verplicht" id="Form_City" name="Form.City" type="text" value=""><div class="field-validation-valid o-form-validation-msg" data-valmsg-for="Form.City" data-valmsg-replace="true"></div></div></div></div><div class="o-layout__row"><div class="o-layout__col u-12/12"><label for="Form_Country">Land</label><div class="c-select c-select--full-width"><select class="js-address-lookup-country c-select__select" id="Form_Country" name="Form.Country"><option value="AF">Afghanistan</option><option value="AL">Albania</option><option value="DZ">Algeria</option><option value="AS">American Samoa</option><option value="AD">Andorra</option><option value="AO">Angola</option><option value="AI">Anguilla</option><option value="AQ">Antarctica</option><option value="AG">Antigua and Barbuda</option><option value="AR">Argentina</option><option value="AM">Armenia</option><option value="AW">Aruba</option><option value="AU">Australia</option><option value="AT">Austria</option><option value="AZ">Azerbaijan</option><option value="BS">Bahamas</option><option value="BH">Bahrain</option><option value="BD">Bangladesh</option><option value="BB">Barbados</option><option value="BY">Belarus</option><option value="BE">België</option><option value="BZ">Belize</option><option value="BJ">Benin</option><option value="BM">Bermuda</option><option value="BT">Bhutan</option><option value="BO">Bolivia</option><option value="BA">Bosnia and Herzegowina</option><option value="BW">Botswana</option><option value="BV">Bouvet island</option><option value="BR">Brazil</option><option value="IO">British Indian Ocean Territory</option><option value="BN">Brunei Darussalam</option><option value="BG">Bulgaria</option><option value="BF">Burkina Faso</option><option value="BI">Burundi</option><option value="KH">Cambodia</option><option value="CM">Cameroon</option><option value="CA">Canada</option><option value="CV">Cape Verde</option><option value="KY">Cayman Islands</option><option value="CF">Central African Republic</option><option value="TD">Chad</option><option value="CL">Chile</option><option value="CN">China</option><option value="CX">Christmas Island</option><option value="CC">Cocos (Keeling) Islands</option><option value="CO">Colombia</option><option value="KM">Comoros</option><option value="CG">Congo</option><option value="CD">Congo, Democratic Rep. of the</option><option value="CK">Cook Islands</option><option value="CR">Costa Rica</option><option value="CI">Cote d'Ivoire</option><option value="HR">Croatia (local name: Hrvatska)</option><option value="CU">Cuba</option><option value="CY">Cyprus</option><option value="CZ">Czech Republic</option><option value="DK">Denmark</option><option value="DJ">Djibouti</option><option value="DM">Dominica</option><option value="DO">Dominican Republic</option><option value="DE">Duitsland</option><option value="TL">East Timor</option><option value="EC">Ecuador</option><option value="EG">Egypt</option><option value="SV">El Salvador</option><option value="GQ">Equatorial Guinea</option><option value="ER">Eritrea</option><option value="EE">Estonia</option><option value="ET">Ethiopia</option><option value="FK">Falkland Islands (Malvinas)</option><option value="FO">Faroe Islands</option><option value="FJ">Fiji</option><option value="FI">Finland</option><option value="FX">France, Metropolitan</option><option value="FR">Frankrijk</option><option value="GF">French Guiana</option><option value="PF">French Polynesia</option><option value="TF">French Southern Territories</option><option value="GA">Gabon</option><option value="GM">Gambia</option><option value="GE">Georgia</option><option value="GH">Ghana</option><option value="GI">Gibraltar</option><option value="GR">Greece</option><option value="GL">Greenland</option><option value="GD">Grenada</option><option value="GP">Guadeloupe</option><option value="GU">Guam</option><option value="GT">Guatemala</option><option value="GN">Guinea</option><option value="GW">Guinea-bissau</option><option value="GY">Guyana</option><option value="HT">Haiti</option><option value="HM">Heard and Mc Donald Islands</option><option value="VA">Holy See (Vatican City State)</option><option value="HN">Honduras</option><option value="HK">Hong Kong</option><option value="HU">Hungary</option><option value="IS">Iceland</option><option value="IN">India</option><option value="ID">Indonesia</option><option value="IR">Iran (Islamic Republic of)</option><option value="IQ">Iraq</option><option value="IE">Ireland</option><option value="IL">Israel</option><option value="IT">Italy</option><option value="JM">Jamaica</option><option value="JP">Japan</option><option value="JE">Jersey</option><option value="JO">Jordan</option><option value="KZ">Kazakhstan</option><option value="KE">Kenya</option><option value="KI">Kiribati</option><option value="KP">Korea, Dem. People's Rep. of</option><option value="KR">Korea, Republic of</option><option value="XK">Kosovo</option><option value="KW">Kuwait</option><option value="KG">Kyrgyzstan</option><option value="LA">Lao People's Dem. Rep.</option><option value="LV">Latvia</option><option value="LB">Lebanon</option><option value="LS">Lesotho</option><option value="LR">Liberia</option><option value="LY">Libyan Arab Jamahiriya</option><option value="LI">Liechtenstein</option><option value="LT">Lithuania</option><option value="LU">Luxembourg</option><option value="MO">Macau</option><option value="MK">Macedonia</option><option value="MG">Madagascar</option><option value="MW">Malawi</option><option value="MY">Malaysia</option><option value="MV">Maldives</option><option value="ML">Mali</option><option value="MT">Malta</option><option value="MH">Marshall Islands</option><option value="MQ">Martinique</option><option value="MR">Mauritania</option><option value="MU">Mauritius</option><option value="YT">Mayotte</option><option value="MX">Mexico</option><option value="FM">Micronesia, Federated States of</option><option value="MD">Moldova, Republic of</option><option value="MC">Monaco</option><option value="MN">Mongolia</option><option value="ME">Montenegro</option><option value="MS">Montserrat</option><option value="MA">Morocco</option><option value="MZ">Mozambique</option><option value="MM">Myanmar</option><option value="NA">Namibia</option><option value="NR">Nauru</option><option selected="selected" value="NL">Nederland</option><option value="AN">Nederlandse Antillen</option><option value="NP">Nepal</option><option value="NC">New Caledonia</option><option value="NZ">New Zealand</option><option value="NI">Nicaragua</option><option value="NE">Niger</option><option value="NG">Nigeria</option><option value="NU">Niue</option><option value="NF">Norfolk Island</option><option value="MP">Northern Mariana Islands</option><option value="NO">Norway</option><option value="OM">Oman</option><option value="PK">Pakistan</option><option value="PW">Palau</option><option value="PS">Palestinian Territory, Occupied</option><option value="PA">Panama</option><option value="PG">Papua New Guinea</option><option value="PY">Paraguay</option><option value="PE">Peru</option><option value="PH">Philippines</option><option value="PN">Pitcairn</option><option value="PL">Poland</option><option value="PT">Portugal</option><option value="PR">Puerto Rico</option><option value="QA">Qatar</option><option value="RE">Reunion</option><option value="RO">Romania</option><option value="RU">Russian Federation</option><option value="RW">Rwanda</option><option value="KN">Saint Kitts and Nevis</option><option value="LC">Saint Lucia</option><option value="WS">Samoa</option><option value="SM">San Marino</option><option value="ST">Sao Tome and Principe</option><option value="SA">Saudi Arabia</option><option value="SN">Senegal</option><option value="RS">Servië</option><option value="SC">Seychelles</option><option value="SL">Sierra Leone</option><option value="SG">Singapore</option><option value="SK">Slovakia (Slovak Republic)</option><option value="SI">Slovenia</option><option value="SB">Solomon Islands</option><option value="SO">Somalia</option><option value="ZA">South Africa</option><option value="GS">South Georgia & s. Sandwich Isls</option><option value="ES">Spanje</option><option value="LK">Sri Lanka</option><option value="SH">St. Helena</option><option value="PM">St. Pierre and Miquelon</option><option value="VC">St. Vincent & the Grenadines</option><option value="SD">Sudan</option><option value="SR">Suriname</option><option value="SJ">Svalbard and Jan Mayen Islands</option><option value="SZ">Swaziland</option><option value="SE">Sweden</option><option value="CH">Switzerland</option><option value="SY">Syrian Arab Republic</option><option value="TW">Taiwan, Province of China</option><option value="TJ">Tajikistan</option><option value="TZ">Tanzania, United Republic of</option><option value="TH">Thailand</option><option value="TG">Togo</option><option value="TK">Tokelau</option><option value="TO">Tonga</option><option value="TT">Trinidad and Tobago</option><option value="TN">Tunisia</option><option value="TR">Turkey</option><option value="TM">Turkmenistan</option><option value="TC">Turks and Caicos Islands</option><option value="TV">Tuvalu</option><option value="UG">Uganda</option><option value="UA">Ukraine</option><option value="AE">United Arab Emirates</option><option value="GB">United Kingdom</option><option value="UM">United States Minor Outlying Isls</option><option value="UY">Uruguay</option><option value="UZ">Uzbekistan</option><option value="VU">Vanuatu</option><option value="VE">Venezuela</option><option value="US">Verenigde Staten</option><option value="VN">Viet Nam</option><option value="VG">Virgin Islands (British)</option><option value="VI">Virgin Islands (U.S.)</option><option value="WF">Wallis and Futuna Islands</option><option value="EH">Western Sahara</option><option value="YE">Yemen</option><option value="YU">Yugoslavia</option><option value="ZM">Zambia</option><option value="ZW">Zimbabwe</option></select></div></div></div></fieldset><fieldset class="o-layout__row"><legend class="u-hidden">Contactgegevens</legend><div class="o-layout__col u-12/12"><label for="Form_Phone">Telefoonnummer</label><div class="js-input-int-tel" data-input-int-tel-inital-country="nl" data-input-int-tel-accept-fixed-line="true" data-input-int-tel-only-countries="AF,AL,DZ,AS,AD,AO,AI,AQ,AG,AR,AM,AW,AU,AT,AZ,BS,BH,BD,BB,BY,BE,BZ,BJ,BM,BT,BO,BA,BW,BV,BR,IO,BN,BG,BF,BI,KH,CM,CA,CV,KY,CF,TD,CL,CN,CX,CC,CO,KM,CG,CD,CK,CR,CI,HR,CU,CY,CZ,DK,DJ,DM,DO,DE,TL,EC,EG,SV,GQ,ER,EE,ET,FK,FO,FJ,FI,FX,FR,GF,PF,TF,GA,GM,GE,GH,GI,GR,GL,GD,GP,GU,GT,GN,GW,GY,HT,HM,VA,HN,HK,HU,IS,IN,ID,IR,IQ,IE,IL,IT,JM,JP,JE,JO,KZ,KE,KI,KP,KR,XK,KW,KG,LA,LV,LB,LS,LR,LY,LI,LT,LU,MO,MK,MG,MW,MY,MV,ML,MT,MH,MQ,MR,MU,YT,MX,FM,MD,MC,MN,ME,MS,MA,MZ,MM,NA,NR,NL,AN,NP,NC,NZ,NI,NE,NG,NU,NF,MP,NO,OM,PK,PW,PS,PA,PG,PY,PE,PH,PN,PL,PT,PR,QA,RE,RO,RU,RW,KN,LC,WS,SM,ST,SA,SN,RS,SC,SL,SG,SK,SI,SB,SO,ZA,GS,ES,LK,SH,PM,VC,SD,SR,SJ,SZ,SE,CH,SY,TW,TJ,TZ,TH,TG,TK,TO,TT,TN,TR,TM,TC,TV,UG,UA,AE,GB,UM,UY,UZ,VU,VE,US,VN,VG,VI,WF,EH,YE,YU,ZM,ZW" data-input-int-tel-preferred-countries="nl,de,be,gb,us"><div class="iti iti--allow-dropdown iti--show-flags iti--inline-dropdown"><div class="iti__country-container" style="left: 0px;"><button type="button" class="iti__selected-country" aria-expanded="false" aria-label="Selected country" aria-haspopup="true" aria-controls="iti-0__dropdown-content" role="combobox" title="Netherlands: +31"><div class="iti__selected-country-primary"><div class="iti__flag iti__nl"><span class="iti__a11y-text">Netherlands +31</span></div><div class="iti__arrow" aria-hidden="true"></div></div></button><div id="iti-0__dropdown-content" class="iti__dropdown-content iti__hide "><ul class="iti__country-list" id="iti-0__country-listbox" role="listbox" aria-label="List of countries"><li id="iti-0__item-af" class="iti__country iti__highlight" tabindex="-1" role="option" data-dial-code="93" data-country-code="af" aria-selected="false"><div class="iti__flag iti__af"></div><span class="iti__country-name">Afghanistan</span><span class="iti__dial-code">+93</span></li><li id="iti-0__item-al" class="iti__country " tabindex="-1" role="option" data-dial-code="355" data-country-code="al" aria-selected="false"><div class="iti__flag iti__al"></div><span class="iti__country-name">Albania</span><span class="iti__dial-code">+355</span></li><li id="iti-0__item-dz" class="iti__country " tabindex="-1" role="option" data-dial-code="213" data-country-code="dz" aria-selected="false"><div class="iti__flag iti__dz"></div><span class="iti__country-name">Algeria</span><span class="iti__dial-code">+213</span></li><li id="iti-0__item-as" class="iti__country " tabindex="-1" role="option" data-dial-code="1" data-country-code="as" aria-selected="false"><div class="iti__flag iti__as"></div><span class="iti__country-name">American Samoa</span><span class="iti__dial-code">+1</span></li><li id="iti-0__item-ad" class="iti__country " tabindex="-1" role="option" data-dial-code="376" data-country-code="ad" aria-selected="false"><div class="iti__flag iti__ad"></div><span class="iti__country-name">Andorra</span><span class="iti__dial-code">+376</span></li><li id="iti-0__item-ao" class="iti__country " tabindex="-1" role="option" data-dial-code="244" data-country-code="ao" aria-selected="false"><div class="iti__flag iti__ao"></div><span class="iti__country-name">Angola</span><span class="iti__dial-code">+244</span></li><li id="iti-0__item-ai" class="iti__country " tabindex="-1" role="option" data-dial-code="1" data-country-code="ai" aria-selected="false"><div class="iti__flag iti__ai"></div><span class="iti__country-name">Anguilla</span><span class="iti__dial-code">+1</span></li><li id="iti-0__item-ag" class="iti__country " tabindex="-1" role="option" data-dial-code="1" data-country-code="ag" aria-selected="false"><div class="iti__flag iti__ag"></div><span class="iti__country-name">Antigua & Barbuda</span><span class="iti__dial-code">+1</span></li><li id="iti-0__item-ar" class="iti__country " tabindex="-1" role="option" data-dial-code="54" data-country-code="ar" aria-selected="false"><div class="iti__flag iti__ar"></div><span class="iti__country-name">Argentina</span><span class="iti__dial-code">+54</span></li><li id="iti-0__item-am" class="iti__country " tabindex="-1" role="option" data-dial-code="374" data-country-code="am" aria-selected="false"><div class="iti__flag iti__am"></div><span class="iti__country-name">Armenia</span><span class="iti__dial-code">+374</span></li><li id="iti-0__item-aw" class="iti__country " tabindex="-1" role="option" data-dial-code="297" data-country-code="aw" aria-selected="false"><div class="iti__flag iti__aw"></div><span class="iti__country-name">Aruba</span><span class="iti__dial-code">+297</span></li><li id="iti-0__item-au" class="iti__country " tabindex="-1" role="option" data-dial-code="61" data-country-code="au" aria-selected="false"><div class="iti__flag iti__au"></div><span class="iti__country-name">Australia</span><span class="iti__dial-code">+61</span></li><li id="iti-0__item-at" class="iti__country " tabindex="-1" role="option" data-dial-code="43" data-country-code="at" aria-selected="false"><div class="iti__flag iti__at"></div><span class="iti__country-name">Austria</span><span class="iti__dial-code">+43</span></li><li id="iti-0__item-az" class="iti__country " tabindex="-1" role="option" data-dial-code="994" data-country-code="az" aria-selected="false"><div class="iti__flag iti__az"></div><span class="iti__country-name">Azerbaijan</span><span class="iti__dial-code">+994</span></li><li id="iti-0__item-bs" class="iti__country " tabindex="-1" role="option" data-dial-code="1" data-country-code="bs" aria-selected="false"><div class="iti__flag iti__bs"></div><span class="iti__country-name">Bahamas</span><span class="iti__dial-code">+1</span></li><li id="iti-0__item-bh" class="iti__country " tabindex="-1" role="option" data-dial-code="973" data-country-code="bh" aria-selected="false"><div class="iti__flag iti__bh"></div><span class="iti__country-name">Bahrain</span><span class="iti__dial-code">+973</span></li><li id="iti-0__item-bd" class="iti__country " tabindex="-1" role="option" data-dial-code="880" data-country-code="bd" aria-selected="false"><div class="iti__flag iti__bd"></div><span class="iti__country-name">Bangladesh</span><span class="iti__dial-code">+880</span></li><li id="iti-0__item-bb" class="iti__country " tabindex="-1" role="option" data-dial-code="1" data-country-code="bb" aria-selected="false"><div class="iti__flag iti__bb"></div><span class="iti__country-name">Barbados</span><span class="iti__dial-code">+1</span></li><li id="iti-0__item-by" class="iti__country " tabindex="-1" role="option" data-dial-code="375" data-country-code="by" aria-selected="false"><div class="iti__flag iti__by"></div><span class="iti__country-name">Belarus</span><span class="iti__dial-code">+375</span></li><li id="iti-0__item-be" class="iti__country " tabindex="-1" role="option" data-dial-code="32" data-country-code="be" aria-selected="false"><div class="iti__flag iti__be"></div><span class="iti__country-name">Belgium</span><span class="iti__dial-code">+32</span></li><li id="iti-0__item-bz" class="iti__country " tabindex="-1" role="option" data-dial-code="501" data-country-code="bz" aria-selected="false"><div class="iti__flag iti__bz"></div><span class="iti__country-name">Belize</span><span class="iti__dial-code">+501</span></li><li id="iti-0__item-bj" class="iti__country " tabindex="-1" role="option" data-dial-code="229" data-country-code="bj" aria-selected="false"><div class="iti__flag iti__bj"></div><span class="iti__country-name">Benin</span><span class="iti__dial-code">+229</span></li><li id="iti-0__item-bm" class="iti__country " tabindex="-1" role="option" data-dial-code="1" data-country-code="bm" aria-selected="false"><div class="iti__flag iti__bm"></div><span class="iti__country-name">Bermuda</span><span class="iti__dial-code">+1</span></li><li id="iti-0__item-bt" class="iti__country " tabindex="-1" role="option" data-dial-code="975" data-country-code="bt" aria-selected="false"><div class="iti__flag iti__bt"></div><span class="iti__country-name">Bhutan</span><span class="iti__dial-code">+975</span></li><li id="iti-0__item-bo" class="iti__country " tabindex="-1" role="option" data-dial-code="591" data-country-code="bo" aria-selected="false"><div class="iti__flag iti__bo"></div><span class="iti__country-name">Bolivia</span><span class="iti__dial-code">+591</span></li><li id="iti-0__item-ba" class="iti__country " tabindex="-1" role="option" data-dial-code="387" data-country-code="ba" aria-selected="false"><div class="iti__flag iti__ba"></div><span class="iti__country-name">Bosnia & Herzegovina</span><span class="iti__dial-code">+387</span></li><li id="iti-0__item-bw" class="iti__country " tabindex="-1" role="option" data-dial-code="267" data-country-code="bw" aria-selected="false"><div class="iti__flag iti__bw"></div><span class="iti__country-name">Botswana</span><span class="iti__dial-code">+267</span></li><li id="iti-0__item-br" class="iti__country " tabindex="-1" role="option" data-dial-code="55" data-country-code="br" aria-selected="false"><div class="iti__flag iti__br"></div><span class="iti__country-name">Brazil</span><span class="iti__dial-code">+55</span></li><li id="iti-0__item-io" class="iti__country " tabindex="-1" role="option" data-dial-code="246" data-country-code="io" aria-selected="false"><div class="iti__flag iti__io"></div><span class="iti__country-name">British Indian Ocean Territory</span><span class="iti__dial-code">+246</span></li><li id="iti-0__item-vg" class="iti__country " tabindex="-1" role="option" data-dial-code="1" data-country-code="vg" aria-selected="false"><div class="iti__flag iti__vg"></div><span class="iti__country-name">British Virgin Islands</span><span class="iti__dial-code">+1</span></li><li id="iti-0__item-bn" class="iti__country " tabindex="-1" role="option" data-dial-code="673" data-country-code="bn" aria-selected="false"><div class="iti__flag iti__bn"></div><span class="iti__country-name">Brunei</span><span class="iti__dial-code">+673</span></li><li id="iti-0__item-bg" class="iti__country " tabindex="-1" role="option" data-dial-code="359" data-country-code="bg" aria-selected="false"><div class="iti__flag iti__bg"></div><span class="iti__country-name">Bulgaria</span><span class="iti__dial-code">+359</span></li><li id="iti-0__item-bf" class="iti__country " tabindex="-1" role="option" data-dial-code="226" data-country-code="bf" aria-selected="false"><div class="iti__flag iti__bf"></div><span class="iti__country-name">Burkina Faso</span><span class="iti__dial-code">+226</span></li><li id="iti-0__item-bi" class="iti__country " tabindex="-1" role="option" data-dial-code="257" data-country-code="bi" aria-selected="false"><div class="iti__flag iti__bi"></div><span class="iti__country-name">Burundi</span><span class="iti__dial-code">+257</span></li><li id="iti-0__item-kh" class="iti__country " tabindex="-1" role="option" data-dial-code="855" data-country-code="kh" aria-selected="false"><div class="iti__flag iti__kh"></div><span class="iti__country-name">Cambodia</span><span class="iti__dial-code">+855</span></li><li id="iti-0__item-cm" class="iti__country " tabindex="-1" role="option" data-dial-code="237" data-country-code="cm" aria-selected="false"><div class="iti__flag iti__cm"></div><span class="iti__country-name">Cameroon</span><span class="iti__dial-code">+237</span></li><li id="iti-0__item-ca" class="iti__country " tabindex="-1" role="option" data-dial-code="1" data-country-code="ca" aria-selected="false"><div class="iti__flag iti__ca"></div><span class="iti__country-name">Canada</span><span class="iti__dial-code">+1</span></li><li id="iti-0__item-cv" class="iti__country " tabindex="-1" role="option" data-dial-code="238" data-country-code="cv" aria-selected="false"><div class="iti__flag iti__cv"></div><span class="iti__country-name">Cape Verde</span><span class="iti__dial-code">+238</span></li><li id="iti-0__item-ky" class="iti__country " tabindex="-1" role="option" data-dial-code="1" data-country-code="ky" aria-selected="false"><div class="iti__flag iti__ky"></div><span class="iti__country-name">Cayman Islands</span><span class="iti__dial-code">+1</span></li><li id="iti-0__item-cf" class="iti__country " tabindex="-1" role="option" data-dial-code="236" data-country-code="cf" aria-selected="false"><div class="iti__flag iti__cf"></div><span class="iti__country-name">Central African Republic</span><span class="iti__dial-code">+236</span></li><li id="iti-0__item-td" class="iti__country " tabindex="-1" role="option" data-dial-code="235" data-country-code="td" aria-selected="false"><div class="iti__flag iti__td"></div><span class="iti__country-name">Chad</span><span class="iti__dial-code">+235</span></li><li id="iti-0__item-cl" class="iti__country " tabindex="-1" role="option" data-dial-code="56" data-country-code="cl" aria-selected="false"><div class="iti__flag iti__cl"></div><span class="iti__country-name">Chile</span><span class="iti__dial-code">+56</span></li><li id="iti-0__item-cn" class="iti__country " tabindex="-1" role="option" data-dial-code="86" data-country-code="cn" aria-selected="false"><div class="iti__flag iti__cn"></div><span class="iti__country-name">China</span><span class="iti__dial-code">+86</span></li><li id="iti-0__item-cx" class="iti__country " tabindex="-1" role="option" data-dial-code="61" data-country-code="cx" aria-selected="false"><div class="iti__flag iti__cx"></div><span class="iti__country-name">Christmas Island</span><span class="iti__dial-code">+61</span></li><li id="iti-0__item-cc" class="iti__country " tabindex="-1" role="option" data-dial-code="61" data-country-code="cc" aria-selected="false"><div class="iti__flag iti__cc"></div><span class="iti__country-name">Cocos (Keeling) Islands</span><span class="iti__dial-code">+61</span></li><li id="iti-0__item-co" class="iti__country " tabindex="-1" role="option" data-dial-code="57" data-country-code="co" aria-selected="false"><div class="iti__flag iti__co"></div><span class="iti__country-name">Colombia</span><span class="iti__dial-code">+57</span></li><li id="iti-0__item-km" class="iti__country " tabindex="-1" role="option" data-dial-code="269" data-country-code="km" aria-selected="false"><div class="iti__flag iti__km"></div><span class="iti__country-name">Comoros</span><span class="iti__dial-code">+269</span></li><li id="iti-0__item-cg" class="iti__country " tabindex="-1" role="option" data-dial-code="242" data-country-code="cg" aria-selected="false"><div class="iti__flag iti__cg"></div><span class="iti__country-name">Congo - Brazzaville</span><span class="iti__dial-code">+242</span></li><li id="iti-0__item-cd" class="iti__country " tabindex="-1" role="option" data-dial-code="243" data-country-code="cd" aria-selected="false"><div class="iti__flag iti__cd"></div><span class="iti__country-name">Congo - Kinshasa</span><span class="iti__dial-code">+243</span></li><li id="iti-0__item-ck" class="iti__country " tabindex="-1" role="option" data-dial-code="682" data-country-code="ck" aria-selected="false"><div class="iti__flag iti__ck"></div><span class="iti__country-name">Cook Islands</span><span class="iti__dial-code">+682</span></li><li id="iti-0__item-cr" class="iti__country " tabindex="-1" role="option" data-dial-code="506" data-country-code="cr" aria-selected="false"><div class="iti__flag iti__cr"></div><span class="iti__country-name">Costa Rica</span><span class="iti__dial-code">+506</span></li><li id="iti-0__item-ci" class="iti__country " tabindex="-1" role="option" data-dial-code="225" data-country-code="ci" aria-selected="false"><div class="iti__flag iti__ci"></div><span class="iti__country-name">Côte d’Ivoire</span><span class="iti__dial-code">+225</span></li><li id="iti-0__item-hr" class="iti__country " tabindex="-1" role="option" data-dial-code="385" data-country-code="hr" aria-selected="false"><div class="iti__flag iti__hr"></div><span class="iti__country-name">Croatia</span><span class="iti__dial-code">+385</span></li><li id="iti-0__item-cu" class="iti__country " tabindex="-1" role="option" data-dial-code="53" data-country-code="cu" aria-selected="false"><div class="iti__flag iti__cu"></div><span class="iti__country-name">Cuba</span><span class="iti__dial-code">+53</span></li><li id="iti-0__item-cy" class="iti__country " tabindex="-1" role="option" data-dial-code="357" data-country-code="cy" aria-selected="false"><div class="iti__flag iti__cy"></div><span class="iti__country-name">Cyprus</span><span class="iti__dial-code">+357</span></li><li id="iti-0__item-cz" class="iti__country " tabindex="-1" role="option" data-dial-code="420" data-country-code="cz" aria-selected="false"><div class="iti__flag iti__cz"></div><span class="iti__country-name">Czechia</span><span class="iti__dial-code">+420</span></li><li id="iti-0__item-dk" class="iti__country " tabindex="-1" role="option" data-dial-code="45" data-country-code="dk" aria-selected="false"><div class="iti__flag iti__dk"></div><span class="iti__country-name">Denmark</span><span class="iti__dial-code">+45</span></li><li id="iti-0__item-dj" class="iti__country " tabindex="-1" role="option" data-dial-code="253" data-country-code="dj" aria-selected="false"><div class="iti__flag iti__dj"></div><span class="iti__country-name">Djibouti</span><span class="iti__dial-code">+253</span></li><li id="iti-0__item-dm" class="iti__country " tabindex="-1" role="option" data-dial-code="1" data-country-code="dm" aria-selected="false"><div class="iti__flag iti__dm"></div><span class="iti__country-name">Dominica</span><span class="iti__dial-code">+1</span></li><li id="iti-0__item-do" class="iti__country " tabindex="-1" role="option" data-dial-code="1" data-country-code="do" aria-selected="false"><div class="iti__flag iti__do"></div><span class="iti__country-name">Dominican Republic</span><span class="iti__dial-code">+1</span></li><li id="iti-0__item-ec" class="iti__country " tabindex="-1" role="option" data-dial-code="593" data-country-code="ec" aria-selected="false"><div class="iti__flag iti__ec"></div><span class="iti__country-name">Ecuador</span><span class="iti__dial-code">+593</span></li><li id="iti-0__item-eg" class="iti__country " tabindex="-1" role="option" data-dial-code="20" data-country-code="eg" aria-selected="false"><div class="iti__flag iti__eg"></div><span class="iti__country-name">Egypt</span><span class="iti__dial-code">+20</span></li><li id="iti-0__item-sv" class="iti__country " tabindex="-1" role="option" data-dial-code="503" data-country-code="sv" aria-selected="false"><div class="iti__flag iti__sv"></div><span class="iti__country-name">El Salvador</span><span class="iti__dial-code">+503</span></li><li id="iti-0__item-gq" class="iti__country " tabindex="-1" role="option" data-dial-code="240" data-country-code="gq" aria-selected="false"><div class="iti__flag iti__gq"></div><span class="iti__country-name">Equatorial Guinea</span><span class="iti__dial-code">+240</span></li><li id="iti-0__item-er" class="iti__country " tabindex="-1" role="option" data-dial-code="291" data-country-code="er" aria-selected="false"><div class="iti__flag iti__er"></div><span class="iti__country-name">Eritrea</span><span class="iti__dial-code">+291</span></li><li id="iti-0__item-ee" class="iti__country " tabindex="-1" role="option" data-dial-code="372" data-country-code="ee" aria-selected="false"><div class="iti__flag iti__ee"></div><span class="iti__country-name">Estonia</span><span class="iti__dial-code">+372</span></li><li id="iti-0__item-sz" class="iti__country " tabindex="-1" role="option" data-dial-code="268" data-country-code="sz" aria-selected="false"><div class="iti__flag iti__sz"></div><span class="iti__country-name">Eswatini</span><span class="iti__dial-code">+268</span></li><li id="iti-0__item-et" class="iti__country " tabindex="-1" role="option" data-dial-code="251" data-country-code="et" aria-selected="false"><div class="iti__flag iti__et"></div><span class="iti__country-name">Ethiopia</span><span class="iti__dial-code">+251</span></li><li id="iti-0__item-fk" class="iti__country " tabindex="-1" role="option" data-dial-code="500" data-country-code="fk" aria-selected="false"><div class="iti__flag iti__fk"></div><span class="iti__country-name">Falkland Islands</span><span class="iti__dial-code">+500</span></li><li id="iti-0__item-fo" class="iti__country " tabindex="-1" role="option" data-dial-code="298" data-country-code="fo" aria-selected="false"><div class="iti__flag iti__fo"></div><span class="iti__country-name">Faroe Islands</span><span class="iti__dial-code">+298</span></li><li id="iti-0__item-fj" class="iti__country " tabindex="-1" role="option" data-dial-code="679" data-country-code="fj" aria-selected="false"><div class="iti__flag iti__fj"></div><span class="iti__country-name">Fiji</span><span class="iti__dial-code">+679</span></li><li id="iti-0__item-fi" class="iti__country " tabindex="-1" role="option" data-dial-code="358" data-country-code="fi" aria-selected="false"><div class="iti__flag iti__fi"></div><span class="iti__country-name">Finland</span><span class="iti__dial-code">+358</span></li><li id="iti-0__item-fr" class="iti__country " tabindex="-1" role="option" data-dial-code="33" data-country-code="fr" aria-selected="false"><div class="iti__flag iti__fr"></div><span class="iti__country-name">France</span><span class="iti__dial-code">+33</span></li><li id="iti-0__item-gf" class="iti__country " tabindex="-1" role="option" data-dial-code="594" data-country-code="gf" aria-selected="false"><div class="iti__flag iti__gf"></div><span class="iti__country-name">French Guiana</span><span class="iti__dial-code">+594</span></li><li id="iti-0__item-pf" class="iti__country " tabindex="-1" role="option" data-dial-code="689" data-country-code="pf" aria-selected="false"><div class="iti__flag iti__pf"></div><span class="iti__country-name">French Polynesia</span><span class="iti__dial-code">+689</span></li><li id="iti-0__item-ga" class="iti__country " tabindex="-1" role="option" data-dial-code="241" data-country-code="ga" aria-selected="false"><div class="iti__flag iti__ga"></div><span class="iti__country-name">Gabon</span><span class="iti__dial-code">+241</span></li><li id="iti-0__item-gm" class="iti__country " tabindex="-1" role="option" data-dial-code="220" data-country-code="gm" aria-selected="false"><div class="iti__flag iti__gm"></div><span class="iti__country-name">Gambia</span><span class="iti__dial-code">+220</span></li><li id="iti-0__item-ge" class="iti__country " tabindex="-1" role="option" data-dial-code="995" data-country-code="ge" aria-selected="false"><div class="iti__flag iti__ge"></div><span class="iti__country-name">Georgia</span><span class="iti__dial-code">+995</span></li><li id="iti-0__item-de" class="iti__country " tabindex="-1" role="option" data-dial-code="49" data-country-code="de" aria-selected="false"><div class="iti__flag iti__de"></div><span class="iti__country-name">Germany</span><span class="iti__dial-code">+49</span></li><li id="iti-0__item-gh" class="iti__country " tabindex="-1" role="option" data-dial-code="233" data-country-code="gh" aria-selected="false"><div class="iti__flag iti__gh"></div><span class="iti__country-name">Ghana</span><span class="iti__dial-code">+233</span></li><li id="iti-0__item-gi" class="iti__country " tabindex="-1" role="option" data-dial-code="350" data-country-code="gi" aria-selected="false"><div class="iti__flag iti__gi"></div><span class="iti__country-name">Gibraltar</span><span class="iti__dial-code">+350</span></li><li id="iti-0__item-gr" class="iti__country " tabindex="-1" role="option" data-dial-code="30" data-country-code="gr" aria-selected="false"><div class="iti__flag iti__gr"></div><span class="iti__country-name">Greece</span><span class="iti__dial-code">+30</span></li><li id="iti-0__item-gl" class="iti__country " tabindex="-1" role="option" data-dial-code="299" data-country-code="gl" aria-selected="false"><div class="iti__flag iti__gl"></div><span class="iti__country-name">Greenland</span><span class="iti__dial-code">+299</span></li><li id="iti-0__item-gd" class="iti__country " tabindex="-1" role="option" data-dial-code="1" data-country-code="gd" aria-selected="false"><div class="iti__flag iti__gd"></div><span class="iti__country-name">Grenada</span><span class="iti__dial-code">+1</span></li><li id="iti-0__item-gp" class="iti__country " tabindex="-1" role="option" data-dial-code="590" data-country-code="gp" aria-selected="false"><div class="iti__flag iti__gp"></div><span class="iti__country-name">Guadeloupe</span><span class="iti__dial-code">+590</span></li><li id="iti-0__item-gu" class="iti__country " tabindex="-1" role="option" data-dial-code="1" data-country-code="gu" aria-selected="false"><div class="iti__flag iti__gu"></div><span class="iti__country-name">Guam</span><span class="iti__dial-code">+1</span></li><li id="iti-0__item-gt" class="iti__country " tabindex="-1" role="option" data-dial-code="502" data-country-code="gt" aria-selected="false"><div class="iti__flag iti__gt"></div><span class="iti__country-name">Guatemala</span><span class="iti__dial-code">+502</span></li><li id="iti-0__item-gn" class="iti__country " tabindex="-1" role="option" data-dial-code="224" data-country-code="gn" aria-selected="false"><div class="iti__flag iti__gn"></div><span class="iti__country-name">Guinea</span><span class="iti__dial-code">+224</span></li><li id="iti-0__item-gw" class="iti__country " tabindex="-1" role="option" data-dial-code="245" data-country-code="gw" aria-selected="false"><div class="iti__flag iti__gw"></div><span class="iti__country-name">Guinea-Bissau</span><span class="iti__dial-code">+245</span></li><li id="iti-0__item-gy" class="iti__country " tabindex="-1" role="option" data-dial-code="592" data-country-code="gy" aria-selected="false"><div class="iti__flag iti__gy"></div><span class="iti__country-name">Guyana</span><span class="iti__dial-code">+592</span></li><li id="iti-0__item-ht" class="iti__country " tabindex="-1" role="option" data-dial-code="509" data-country-code="ht" aria-selected="false"><div class="iti__flag iti__ht"></div><span class="iti__country-name">Haiti</span><span class="iti__dial-code">+509</span></li><li id="iti-0__item-hn" class="iti__country " tabindex="-1" role="option" data-dial-code="504" data-country-code="hn" aria-selected="false"><div class="iti__flag iti__hn"></div><span class="iti__country-name">Honduras</span><span class="iti__dial-code">+504</span></li><li id="iti-0__item-hk" class="iti__country " tabindex="-1" role="option" data-dial-code="852" data-country-code="hk" aria-selected="false"><div class="iti__flag iti__hk"></div><span class="iti__country-name">Hong Kong SAR China</span><span class="iti__dial-code">+852</span></li><li id="iti-0__item-hu" class="iti__country " tabindex="-1" role="option" data-dial-code="36" data-country-code="hu" aria-selected="false"><div class="iti__flag iti__hu"></div><span class="iti__country-name">Hungary</span><span class="iti__dial-code">+36</span></li><li id="iti-0__item-is" class="iti__country " tabindex="-1" role="option" data-dial-code="354" data-country-code="is" aria-selected="false"><div class="iti__flag iti__is"></div><span class="iti__country-name">Iceland</span><span class="iti__dial-code">+354</span></li><li id="iti-0__item-in" class="iti__country " tabindex="-1" role="option" data-dial-code="91" data-country-code="in" aria-selected="false"><div class="iti__flag iti__in"></div><span class="iti__country-name">India</span><span class="iti__dial-code">+91</span></li><li id="iti-0__item-id" class="iti__country " tabindex="-1" role="option" data-dial-code="62" data-country-code="id" aria-selected="false"><div class="iti__flag iti__id"></div><span class="iti__country-name">Indonesia</span><span class="iti__dial-code">+62</span></li><li id="iti-0__item-ir" class="iti__country " tabindex="-1" role="option" data-dial-code="98" data-country-code="ir" aria-selected="false"><div class="iti__flag iti__ir"></div><span class="iti__country-name">Iran</span><span class="iti__dial-code">+98</span></li><li id="iti-0__item-iq" class="iti__country " tabindex="-1" role="option" data-dial-code="964" data-country-code="iq" aria-selected="false"><div class="iti__flag iti__iq"></div><span class="iti__country-name">Iraq</span><span class="iti__dial-code">+964</span></li><li id="iti-0__item-ie" class="iti__country " tabindex="-1" role="option" data-dial-code="353" data-country-code="ie" aria-selected="false"><div class="iti__flag iti__ie"></div><span class="iti__country-name">Ireland</span><span class="iti__dial-code">+353</span></li><li id="iti-0__item-il" class="iti__country " tabindex="-1" role="option" data-dial-code="972" data-country-code="il" aria-selected="false"><div class="iti__flag iti__il"></div><span class="iti__country-name">Israel</span><span class="iti__dial-code">+972</span></li><li id="iti-0__item-it" class="iti__country " tabindex="-1" role="option" data-dial-code="39" data-country-code="it" aria-selected="false"><div class="iti__flag iti__it"></div><span class="iti__country-name">Italy</span><span class="iti__dial-code">+39</span></li><li id="iti-0__item-jm" class="iti__country " tabindex="-1" role="option" data-dial-code="1" data-country-code="jm" aria-selected="false"><div class="iti__flag iti__jm"></div><span class="iti__country-name">Jamaica</span><span class="iti__dial-code">+1</span></li><li id="iti-0__item-jp" class="iti__country " tabindex="-1" role="option" data-dial-code="81" data-country-code="jp" aria-selected="false"><div class="iti__flag iti__jp"></div><span class="iti__country-name">Japan</span><span class="iti__dial-code">+81</span></li><li id="iti-0__item-je" class="iti__country " tabindex="-1" role="option" data-dial-code="44" data-country-code="je" aria-selected="false"><div class="iti__flag iti__je"></div><span class="iti__country-name">Jersey</span><span class="iti__dial-code">+44</span></li><li id="iti-0__item-jo" class="iti__country " tabindex="-1" role="option" data-dial-code="962" data-country-code="jo" aria-selected="false"><div class="iti__flag iti__jo"></div><span class="iti__country-name">Jordan</span><span class="iti__dial-code">+962</span></li><li id="iti-0__item-kz" class="iti__country " tabindex="-1" role="option" data-dial-code="7" data-country-code="kz" aria-selected="false"><div class="iti__flag iti__kz"></div><span class="iti__country-name">Kazakhstan</span><span class="iti__dial-code">+7</span></li><li id="iti-0__item-ke" class="iti__country " tabindex="-1" role="option" data-dial-code="254" data-country-code="ke" aria-selected="false"><div class="iti__flag iti__ke"></div><span class="iti__country-name">Kenya</span><span class="iti__dial-code">+254</span></li><li id="iti-0__item-ki" class="iti__country " tabindex="-1" role="option" data-dial-code="686" data-country-code="ki" aria-selected="false"><div class="iti__flag iti__ki"></div><span class="iti__country-name">Kiribati</span><span class="iti__dial-code">+686</span></li><li id="iti-0__item-xk" class="iti__country " tabindex="-1" role="option" data-dial-code="383" data-country-code="xk" aria-selected="false"><div class="iti__flag iti__xk"></div><span class="iti__country-name">Kosovo</span><span class="iti__dial-code">+383</span></li><li id="iti-0__item-kw" class="iti__country " tabindex="-1" role="option" data-dial-code="965" data-country-code="kw" aria-selected="false"><div class="iti__flag iti__kw"></div><span class="iti__country-name">Kuwait</span><span class="iti__dial-code">+965</span></li><li id="iti-0__item-kg" class="iti__country " tabindex="-1" role="option" data-dial-code="996" data-country-code="kg" aria-selected="false"><div class="iti__flag iti__kg"></div><span class="iti__country-name">Kyrgyzstan</span><span class="iti__dial-code">+996</span></li><li id="iti-0__item-la" class="iti__country " tabindex="-1" role="option" data-dial-code="856" data-country-code="la" aria-selected="false"><div class="iti__flag iti__la"></div><span class="iti__country-name">Laos</span><span class="iti__dial-code">+856</span></li><li id="iti-0__item-lv" class="iti__country " tabindex="-1" role="option" data-dial-code="371" data-country-code="lv" aria-selected="false"><div class="iti__flag iti__lv"></div><span class="iti__country-name">Latvia</span><span class="iti__dial-code">+371</span></li><li id="iti-0__item-lb" class="iti__country " tabindex="-1" role="option" data-dial-code="961" data-country-code="lb" aria-selected="false"><div class="iti__flag iti__lb"></div><span class="iti__country-name">Lebanon</span><span class="iti__dial-code">+961</span></li><li id="iti-0__item-ls" class="iti__country " tabindex="-1" role="option" data-dial-code="266" data-country-code="ls" aria-selected="false"><div class="iti__flag iti__ls"></div><span class="iti__country-name">Lesotho</span><span class="iti__dial-code">+266</span></li><li id="iti-0__item-lr" class="iti__country " tabindex="-1" role="option" data-dial-code="231" data-country-code="lr" aria-selected="false"><div class="iti__flag iti__lr"></div><span class="iti__country-name">Liberia</span><span class="iti__dial-code">+231</span></li><li id="iti-0__item-ly" class="iti__country " tabindex="-1" role="option" data-dial-code="218" data-country-code="ly" aria-selected="false"><div class="iti__flag iti__ly"></div><span class="iti__country-name">Libya</span><span class="iti__dial-code">+218</span></li><li id="iti-0__item-li" class="iti__country " tabindex="-1" role="option" data-dial-code="423" data-country-code="li" aria-selected="false"><div class="iti__flag iti__li"></div><span class="iti__country-name">Liechtenstein</span><span class="iti__dial-code">+423</span></li><li id="iti-0__item-lt" class="iti__country " tabindex="-1" role="option" data-dial-code="370" data-country-code="lt" aria-selected="false"><div class="iti__flag iti__lt"></div><span class="iti__country-name">Lithuania</span><span class="iti__dial-code">+370</span></li><li id="iti-0__item-lu" class="iti__country " tabindex="-1" role="option" data-dial-code="352" data-country-code="lu" aria-selected="false"><div class="iti__flag iti__lu"></div><span class="iti__country-name">Luxembourg</span><span class="iti__dial-code">+352</span></li><li id="iti-0__item-mo" class="iti__country " tabindex="-1" role="option" data-dial-code="853" data-country-code="mo" aria-selected="false"><div class="iti__flag iti__mo"></div><span class="iti__country-name">Macao SAR China</span><span class="iti__dial-code">+853</span></li><li id="iti-0__item-mg" class="iti__country " tabindex="-1" role="option" data-dial-code="261" data-country-code="mg" aria-selected="false"><div class="iti__flag iti__mg"></div><span class="iti__country-name">Madagascar</span><span class="iti__dial-code">+261</span></li><li id="iti-0__item-mw" class="iti__country " tabindex="-1" role="option" data-dial-code="265" data-country-code="mw" aria-selected="false"><div class="iti__flag iti__mw"></div><span class="iti__country-name">Malawi</span><span class="iti__dial-code">+265</span></li><li id="iti-0__item-my" class="iti__country " tabindex="-1" role="option" data-dial-code="60" data-country-code="my" aria-selected="false"><div class="iti__flag iti__my"></div><span class="iti__country-name">Malaysia</span><span class="iti__dial-code">+60</span></li><li id="iti-0__item-mv" class="iti__country " tabindex="-1" role="option" data-dial-code="960" data-country-code="mv" aria-selected="false"><div class="iti__flag iti__mv"></div><span class="iti__country-name">Maldives</span><span class="iti__dial-code">+960</span></li><li id="iti-0__item-ml" class="iti__country " tabindex="-1" role="option" data-dial-code="223" data-country-code="ml" aria-selected="false"><div class="iti__flag iti__ml"></div><span class="iti__country-name">Mali</span><span class="iti__dial-code">+223</span></li><li id="iti-0__item-mt" class="iti__country " tabindex="-1" role="option" data-dial-code="356" data-country-code="mt" aria-selected="false"><div class="iti__flag iti__mt"></div><span class="iti__country-name">Malta</span><span class="iti__dial-code">+356</span></li><li id="iti-0__item-mh" class="iti__country " tabindex="-1" role="option" data-dial-code="692" data-country-code="mh" aria-selected="false"><div class="iti__flag iti__mh"></div><span class="iti__country-name">Marshall Islands</span><span class="iti__dial-code">+692</span></li><li id="iti-0__item-mq" class="iti__country " tabindex="-1" role="option" data-dial-code="596" data-country-code="mq" aria-selected="false"><div class="iti__flag iti__mq"></div><span class="iti__country-name">Martinique</span><span class="iti__dial-code">+596</span></li><li id="iti-0__item-mr" class="iti__country " tabindex="-1" role="option" data-dial-code="222" data-country-code="mr" aria-selected="false"><div class="iti__flag iti__mr"></div><span class="iti__country-name">Mauritania</span><span class="iti__dial-code">+222</span></li><li id="iti-0__item-mu" class="iti__country " tabindex="-1" role="option" data-dial-code="230" data-country-code="mu" aria-selected="false"><div class="iti__flag iti__mu"></div><span class="iti__country-name">Mauritius</span><span class="iti__dial-code">+230</span></li><li id="iti-0__item-yt" class="iti__country " tabindex="-1" role="option" data-dial-code="262" data-country-code="yt" aria-selected="false"><div class="iti__flag iti__yt"></div><span class="iti__country-name">Mayotte</span><span class="iti__dial-code">+262</span></li><li id="iti-0__item-mx" class="iti__country " tabindex="-1" role="option" data-dial-code="52" data-country-code="mx" aria-selected="false"><div class="iti__flag iti__mx"></div><span class="iti__country-name">Mexico</span><span class="iti__dial-code">+52</span></li><li id="iti-0__item-fm" class="iti__country " tabindex="-1" role="option" data-dial-code="691" data-country-code="fm" aria-selected="false"><div class="iti__flag iti__fm"></div><span class="iti__country-name">Micronesia</span><span class="iti__dial-code">+691</span></li><li id="iti-0__item-md" class="iti__country " tabindex="-1" role="option" data-dial-code="373" data-country-code="md" aria-selected="false"><div class="iti__flag iti__md"></div><span class="iti__country-name">Moldova</span><span class="iti__dial-code">+373</span></li><li id="iti-0__item-mc" class="iti__country " tabindex="-1" role="option" data-dial-code="377" data-country-code="mc" aria-selected="false"><div class="iti__flag iti__mc"></div><span class="iti__country-name">Monaco</span><span class="iti__dial-code">+377</span></li><li id="iti-0__item-mn" class="iti__country " tabindex="-1" role="option" data-dial-code="976" data-country-code="mn" aria-selected="false"><div class="iti__flag iti__mn"></div><span class="iti__country-name">Mongolia</span><span class="iti__dial-code">+976</span></li><li id="iti-0__item-me" class="iti__country " tabindex="-1" role="option" data-dial-code="382" data-country-code="me" aria-selected="false"><div class="iti__flag iti__me"></div><span class="iti__country-name">Montenegro</span><span class="iti__dial-code">+382</span></li><li id="iti-0__item-ms" class="iti__country " tabindex="-1" role="option" data-dial-code="1" data-country-code="ms" aria-selected="false"><div class="iti__flag iti__ms"></div><span class="iti__country-name">Montserrat</span><span class="iti__dial-code">+1</span></li><li id="iti-0__item-ma" class="iti__country " tabindex="-1" role="option" data-dial-code="212" data-country-code="ma" aria-selected="false"><div class="iti__flag iti__ma"></div><span class="iti__country-name">Morocco</span><span class="iti__dial-code">+212</span></li><li id="iti-0__item-mz" class="iti__country " tabindex="-1" role="option" data-dial-code="258" data-country-code="mz" aria-selected="false"><div class="iti__flag iti__mz"></div><span class="iti__country-name">Mozambique</span><span class="iti__dial-code">+258</span></li><li id="iti-0__item-mm" class="iti__country " tabindex="-1" role="option" data-dial-code="95" data-country-code="mm" aria-selected="false"><div class="iti__flag iti__mm"></div><span class="iti__country-name">Myanmar (Burma)</span><span class="iti__dial-code">+95</span></li><li id="iti-0__item-na" class="iti__country " tabindex="-1" role="option" data-dial-code="264" data-country-code="na" aria-selected="false"><div class="iti__flag iti__na"></div><span class="iti__country-name">Namibia</span><span class="iti__dial-code">+264</span></li><li id="iti-0__item-nr" class="iti__country " tabindex="-1" role="option" data-dial-code="674" data-country-code="nr" aria-selected="false"><div class="iti__flag iti__nr"></div><span class="iti__country-name">Nauru</span><span class="iti__dial-code">+674</span></li><li id="iti-0__item-np" class="iti__country " tabindex="-1" role="option" data-dial-code="977" data-country-code="np" aria-selected="false"><div class="iti__flag iti__np"></div><span class="iti__country-name">Nepal</span><span class="iti__dial-code">+977</span></li><li id="iti-0__item-nl" class="iti__country " tabindex="-1" role="option" data-dial-code="31" data-country-code="nl" aria-selected="false"><div class="iti__flag iti__nl"></div><span class="iti__country-name">Netherlands</span><span class="iti__dial-code">+31</span></li><li id="iti-0__item-nc" class="iti__country " tabindex="-1" role="option" data-dial-code="687" data-country-code="nc" aria-selected="false"><div class="iti__flag iti__nc"></div><span class="iti__country-name">New Caledonia</span><span class="iti__dial-code">+687</span></li><li id="iti-0__item-nz" class="iti__country " tabindex="-1" role="option" data-dial-code="64" data-country-code="nz" aria-selected="false"><div class="iti__flag iti__nz"></div><span class="iti__country-name">New Zealand</span><span class="iti__dial-code">+64</span></li><li id="iti-0__item-ni" class="iti__country " tabindex="-1" role="option" data-dial-code="505" data-country-code="ni" aria-selected="false"><div class="iti__flag iti__ni"></div><span class="iti__country-name">Nicaragua</span><span class="iti__dial-code">+505</span></li><li id="iti-0__item-ne" class="iti__country " tabindex="-1" role="option" data-dial-code="227" data-country-code="ne" aria-selected="false"><div class="iti__flag iti__ne"></div><span class="iti__country-name">Niger</span><span class="iti__dial-code">+227</span></li><li id="iti-0__item-ng" class="iti__country " tabindex="-1" role="option" data-dial-code="234" data-country-code="ng" aria-selected="false"><div class="iti__flag iti__ng"></div><span class="iti__country-name">Nigeria</span><span class="iti__dial-code">+234</span></li><li id="iti-0__item-nu" class="iti__country " tabindex="-1" role="option" data-dial-code="683" data-country-code="nu" aria-selected="false"><div class="iti__flag iti__nu"></div><span class="iti__country-name">Niue</span><span class="iti__dial-code">+683</span></li><li id="iti-0__item-nf" class="iti__country " tabindex="-1" role="option" data-dial-code="672" data-country-code="nf" aria-selected="false"><div class="iti__flag iti__nf"></div><span class="iti__country-name">Norfolk Island</span><span class="iti__dial-code">+672</span></li><li id="iti-0__item-kp" class="iti__country " tabindex="-1" role="option" data-dial-code="850" data-country-code="kp" aria-selected="false"><div class="iti__flag iti__kp"></div><span class="iti__country-name">North Korea</span><span class="iti__dial-code">+850</span></li><li id="iti-0__item-mk" class="iti__country " tabindex="-1" role="option" data-dial-code="389" data-country-code="mk" aria-selected="false"><div class="iti__flag iti__mk"></div><span class="iti__country-name">North Macedonia</span><span class="iti__dial-code">+389</span></li><li id="iti-0__item-mp" class="iti__country " tabindex="-1" role="option" data-dial-code="1" data-country-code="mp" aria-selected="false"><div class="iti__flag iti__mp"></div><span class="iti__country-name">Northern Mariana Islands</span><span class="iti__dial-code">+1</span></li><li id="iti-0__item-no" class="iti__country " tabindex="-1" role="option" data-dial-code="47" data-country-code="no" aria-selected="false"><div class="iti__flag iti__no"></div><span class="iti__country-name">Norway</span><span class="iti__dial-code">+47</span></li><li id="iti-0__item-om" class="iti__country " tabindex="-1" role="option" data-dial-code="968" data-country-code="om" aria-selected="false"><div class="iti__flag iti__om"></div><span class="iti__country-name">Oman</span><span class="iti__dial-code">+968</span></li><li id="iti-0__item-pk" class="iti__country " tabindex="-1" role="option" data-dial-code="92" data-country-code="pk" aria-selected="false"><div class="iti__flag iti__pk"></div><span class="iti__country-name">Pakistan</span><span class="iti__dial-code">+92</span></li><li id="iti-0__item-pw" class="iti__country " tabindex="-1" role="option" data-dial-code="680" data-country-code="pw" aria-selected="false"><div class="iti__flag iti__pw"></div><span class="iti__country-name">Palau</span><span class="iti__dial-code">+680</span></li><li id="iti-0__item-ps" class="iti__country " tabindex="-1" role="option" data-dial-code="970" data-country-code="ps" aria-selected="false"><div class="iti__flag iti__ps"></div><span class="iti__country-name">Palestinian Territories</span><span class="iti__dial-code">+970</span></li><li id="iti-0__item-pa" class="iti__country " tabindex="-1" role="option" data-dial-code="507" data-country-code="pa" aria-selected="false"><div class="iti__flag iti__pa"></div><span class="iti__country-name">Panama</span><span class="iti__dial-code">+507</span></li><li id="iti-0__item-pg" class="iti__country " tabindex="-1" role="option" data-dial-code="675" data-country-code="pg" aria-selected="false"><div class="iti__flag iti__pg"></div><span class="iti__country-name">Papua New Guinea</span><span class="iti__dial-code">+675</span></li><li id="iti-0__item-py" class="iti__country " tabindex="-1" role="option" data-dial-code="595" data-country-code="py" aria-selected="false"><div class="iti__flag iti__py"></div><span class="iti__country-name">Paraguay</span><span class="iti__dial-code">+595</span></li><li id="iti-0__item-pe" class="iti__country " tabindex="-1" role="option" data-dial-code="51" data-country-code="pe" aria-selected="false"><div class="iti__flag iti__pe"></div><span class="iti__country-name">Peru</span><span class="iti__dial-code">+51</span></li><li id="iti-0__item-ph" class="iti__country " tabindex="-1" role="option" data-dial-code="63" data-country-code="ph" aria-selected="false"><div class="iti__flag iti__ph"></div><span class="iti__country-name">Philippines</span><span class="iti__dial-code">+63</span></li><li id="iti-0__item-pl" class="iti__country " tabindex="-1" role="option" data-dial-code="48" data-country-code="pl" aria-selected="false"><div class="iti__flag iti__pl"></div><span class="iti__country-name">Poland</span><span class="iti__dial-code">+48</span></li><li id="iti-0__item-pt" class="iti__country " tabindex="-1" role="option" data-dial-code="351" data-country-code="pt" aria-selected="false"><div class="iti__flag iti__pt"></div><span class="iti__country-name">Portugal</span><span class="iti__dial-code">+351</span></li><li id="iti-0__item-pr" class="iti__country " tabindex="-1" role="option" data-dial-code="1" data-country-code="pr" aria-selected="false"><div class="iti__flag iti__pr"></div><span class="iti__country-name">Puerto Rico</span><span class="iti__dial-code">+1</span></li><li id="iti-0__item-qa" class="iti__country " tabindex="-1" role="option" data-dial-code="974" data-country-code="qa" aria-selected="false"><div class="iti__flag iti__qa"></div><span class="iti__country-name">Qatar</span><span class="iti__dial-code">+974</span></li><li id="iti-0__item-re" class="iti__country " tabindex="-1" role="option" data-dial-code="262" data-country-code="re" aria-selected="false"><div class="iti__flag iti__re"></div><span class="iti__country-name">Réunion</span><span class="iti__dial-code">+262</span></li><li id="iti-0__item-ro" class="iti__country " tabindex="-1" role="option" data-dial-code="40" data-country-code="ro" aria-selected="false"><div class="iti__flag iti__ro"></div><span class="iti__country-name">Romania</span><span class="iti__dial-code">+40</span></li><li id="iti-0__item-ru" class="iti__country " tabindex="-1" role="option" data-dial-code="7" data-country-code="ru" aria-selected="false"><div class="iti__flag iti__ru"></div><span class="iti__country-name">Russia</span><span class="iti__dial-code">+7</span></li><li id="iti-0__item-rw" class="iti__country " tabindex="-1" role="option" data-dial-code="250" data-country-code="rw" aria-selected="false"><div class="iti__flag iti__rw"></div><span class="iti__country-name">Rwanda</span><span class="iti__dial-code">+250</span></li><li id="iti-0__item-ws" class="iti__country " tabindex="-1" role="option" data-dial-code="685" data-country-code="ws" aria-selected="false"><div class="iti__flag iti__ws"></div><span class="iti__country-name">Samoa</span><span class="iti__dial-code">+685</span></li><li id="iti-0__item-sm" class="iti__country " tabindex="-1" role="option" data-dial-code="378" data-country-code="sm" aria-selected="false"><div class="iti__flag iti__sm"></div><span class="iti__country-name">San Marino</span><span class="iti__dial-code">+378</span></li><li id="iti-0__item-st" class="iti__country " tabindex="-1" role="option" data-dial-code="239" data-country-code="st" aria-selected="false"><div class="iti__flag iti__st"></div><span class="iti__country-name">São Tomé & Príncipe</span><span class="iti__dial-code">+239</span></li><li id="iti-0__item-sa" class="iti__country " tabindex="-1" role="option" data-dial-code="966" data-country-code="sa" aria-selected="false"><div class="iti__flag iti__sa"></div><span class="iti__country-name">Saudi Arabia</span><span class="iti__dial-code">+966</span></li><li id="iti-0__item-sn" class="iti__country " tabindex="-1" role="option" data-dial-code="221" data-country-code="sn" aria-selected="false"><div class="iti__flag iti__sn"></div><span class="iti__country-name">Senegal</span><span class="iti__dial-code">+221</span></li><li id="iti-0__item-rs" class="iti__country " tabindex="-1" role="option" data-dial-code="381" data-country-code="rs" aria-selected="false"><div class="iti__flag iti__rs"></div><span class="iti__country-name">Serbia</span><span class="iti__dial-code">+381</span></li><li id="iti-0__item-sc" class="iti__country " tabindex="-1" role="option" data-dial-code="248" data-country-code="sc" aria-selected="false"><div class="iti__flag iti__sc"></div><span class="iti__country-name">Seychelles</span><span class="iti__dial-code">+248</span></li><li id="iti-0__item-sl" class="iti__country " tabindex="-1" role="option" data-dial-code="232" data-country-code="sl" aria-selected="false"><div class="iti__flag iti__sl"></div><span class="iti__country-name">Sierra Leone</span><span class="iti__dial-code">+232</span></li><li id="iti-0__item-sg" class="iti__country " tabindex="-1" role="option" data-dial-code="65" data-country-code="sg" aria-selected="false"><div class="iti__flag iti__sg"></div><span class="iti__country-name">Singapore</span><span class="iti__dial-code">+65</span></li><li id="iti-0__item-sk" class="iti__country " tabindex="-1" role="option" data-dial-code="421" data-country-code="sk" aria-selected="false"><div class="iti__flag iti__sk"></div><span class="iti__country-name">Slovakia</span><span class="iti__dial-code">+421</span></li><li id="iti-0__item-si" class="iti__country " tabindex="-1" role="option" data-dial-code="386" data-country-code="si" aria-selected="false"><div class="iti__flag iti__si"></div><span class="iti__country-name">Slovenia</span><span class="iti__dial-code">+386</span></li><li id="iti-0__item-sb" class="iti__country " tabindex="-1" role="option" data-dial-code="677" data-country-code="sb" aria-selected="false"><div class="iti__flag iti__sb"></div><span class="iti__country-name">Solomon Islands</span><span class="iti__dial-code">+677</span></li><li id="iti-0__item-so" class="iti__country " tabindex="-1" role="option" data-dial-code="252" data-country-code="so" aria-selected="false"><div class="iti__flag iti__so"></div><span class="iti__country-name">Somalia</span><span class="iti__dial-code">+252</span></li><li id="iti-0__item-za" class="iti__country " tabindex="-1" role="option" data-dial-code="27" data-country-code="za" aria-selected="false"><div class="iti__flag iti__za"></div><span class="iti__country-name">South Africa</span><span class="iti__dial-code">+27</span></li><li id="iti-0__item-kr" class="iti__country " tabindex="-1" role="option" data-dial-code="82" data-country-code="kr" aria-selected="false"><div class="iti__flag iti__kr"></div><span class="iti__country-name">South Korea</span><span class="iti__dial-code">+82</span></li><li id="iti-0__item-es" class="iti__country " tabindex="-1" role="option" data-dial-code="34" data-country-code="es" aria-selected="false"><div class="iti__flag iti__es"></div><span class="iti__country-name">Spain</span><span class="iti__dial-code">+34</span></li><li id="iti-0__item-lk" class="iti__country " tabindex="-1" role="option" data-dial-code="94" data-country-code="lk" aria-selected="false"><div class="iti__flag iti__lk"></div><span class="iti__country-name">Sri Lanka</span><span class="iti__dial-code">+94</span></li><li id="iti-0__item-sh" class="iti__country " tabindex="-1" role="option" data-dial-code="290" data-country-code="sh" aria-selected="false"><div class="iti__flag iti__sh"></div><span class="iti__country-name">St. Helena</span><span class="iti__dial-code">+290</span></li><li id="iti-0__item-kn" class="iti__country " tabindex="-1" role="option" data-dial-code="1" data-country-code="kn" aria-selected="false"><div class="iti__flag iti__kn"></div><span class="iti__country-name">St. Kitts & Nevis</span><span class="iti__dial-code">+1</span></li><li id="iti-0__item-lc" class="iti__country " tabindex="-1" role="option" data-dial-code="1" data-country-code="lc" aria-selected="false"><div class="iti__flag iti__lc"></div><span class="iti__country-name">St. Lucia</span><span class="iti__dial-code">+1</span></li><li id="iti-0__item-pm" class="iti__country " tabindex="-1" role="option" data-dial-code="508" data-country-code="pm" aria-selected="false"><div class="iti__flag iti__pm"></div><span class="iti__country-name">St. Pierre & Miquelon</span><span class="iti__dial-code">+508</span></li><li id="iti-0__item-vc" class="iti__country " tabindex="-1" role="option" data-dial-code="1" data-country-code="vc" aria-selected="false"><div class="iti__flag iti__vc"></div><span class="iti__country-name">St. Vincent & Grenadines</span><span class="iti__dial-code">+1</span></li><li id="iti-0__item-sd" class="iti__country " tabindex="-1" role="option" data-dial-code="249" data-country-code="sd" aria-selected="false"><div class="iti__flag iti__sd"></div><span class="iti__country-name">Sudan</span><span class="iti__dial-code">+249</span></li><li id="iti-0__item-sr" class="iti__country " tabindex="-1" role="option" data-dial-code="597" data-country-code="sr" aria-selected="false"><div class="iti__flag iti__sr"></div><span class="iti__country-name">Suriname</span><span class="iti__dial-code">+597</span></li><li id="iti-0__item-sj" class="iti__country " tabindex="-1" role="option" data-dial-code="47" data-country-code="sj" aria-selected="false"><div class="iti__flag iti__sj"></div><span class="iti__country-name">Svalbard & Jan Mayen</span><span class="iti__dial-code">+47</span></li><li id="iti-0__item-se" class="iti__country " tabindex="-1" role="option" data-dial-code="46" data-country-code="se" aria-selected="false"><div class="iti__flag iti__se"></div><span class="iti__country-name">Sweden</span><span class="iti__dial-code">+46</span></li><li id="iti-0__item-ch" class="iti__country " tabindex="-1" role="option" data-dial-code="41" data-country-code="ch" aria-selected="false"><div class="iti__flag iti__ch"></div><span class="iti__country-name">Switzerland</span><span class="iti__dial-code">+41</span></li><li id="iti-0__item-sy" class="iti__country " tabindex="-1" role="option" data-dial-code="963" data-country-code="sy" aria-selected="false"><div class="iti__flag iti__sy"></div><span class="iti__country-name">Syria</span><span class="iti__dial-code">+963</span></li><li id="iti-0__item-tw" class="iti__country " tabindex="-1" role="option" data-dial-code="886" data-country-code="tw" aria-selected="false"><div class="iti__flag iti__tw"></div><span class="iti__country-name">Taiwan</span><span class="iti__dial-code">+886</span></li><li id="iti-0__item-tj" class="iti__country " tabindex="-1" role="option" data-dial-code="992" data-country-code="tj" aria-selected="false"><div class="iti__flag iti__tj"></div><span class="iti__country-name">Tajikistan</span><span class="iti__dial-code">+992</span></li><li id="iti-0__item-tz" class="iti__country " tabindex="-1" role="option" data-dial-code="255" data-country-code="tz" aria-selected="false"><div class="iti__flag iti__tz"></div><span class="iti__country-name">Tanzania</span><span class="iti__dial-code">+255</span></li><li id="iti-0__item-th" class="iti__country " tabindex="-1" role="option" data-dial-code="66" data-country-code="th" aria-selected="false"><div class="iti__flag iti__th"></div><span class="iti__country-name">Thailand</span><span class="iti__dial-code">+66</span></li><li id="iti-0__item-tl" class="iti__country " tabindex="-1" role="option" data-dial-code="670" data-country-code="tl" aria-selected="false"><div class="iti__flag iti__tl"></div><span class="iti__country-name">Timor-Leste</span><span class="iti__dial-code">+670</span></li><li id="iti-0__item-tg" class="iti__country " tabindex="-1" role="option" data-dial-code="228" data-country-code="tg" aria-selected="false"><div class="iti__flag iti__tg"></div><span class="iti__country-name">Togo</span><span class="iti__dial-code">+228</span></li><li id="iti-0__item-tk" class="iti__country " tabindex="-1" role="option" data-dial-code="690" data-country-code="tk" aria-selected="false"><div class="iti__flag iti__tk"></div><span class="iti__country-name">Tokelau</span><span class="iti__dial-code">+690</span></li><li id="iti-0__item-to" class="iti__country " tabindex="-1" role="option" data-dial-code="676" data-country-code="to" aria-selected="false"><div class="iti__flag iti__to"></div><span class="iti__country-name">Tonga</span><span class="iti__dial-code">+676</span></li><li id="iti-0__item-tt" class="iti__country " tabindex="-1" role="option" data-dial-code="1" data-country-code="tt" aria-selected="false"><div class="iti__flag iti__tt"></div><span class="iti__country-name">Trinidad & Tobago</span><span class="iti__dial-code">+1</span></li><li id="iti-0__item-tn" class="iti__country " tabindex="-1" role="option" data-dial-code="216" data-country-code="tn" aria-selected="false"><div class="iti__flag iti__tn"></div><span class="iti__country-name">Tunisia</span><span class="iti__dial-code">+216</span></li><li id="iti-0__item-tr" class="iti__country " tabindex="-1" role="option" data-dial-code="90" data-country-code="tr" aria-selected="false"><div class="iti__flag iti__tr"></div><span class="iti__country-name">Turkey</span><span class="iti__dial-code">+90</span></li><li id="iti-0__item-tm" class="iti__country " tabindex="-1" role="option" data-dial-code="993" data-country-code="tm" aria-selected="false"><div class="iti__flag iti__tm"></div><span class="iti__country-name">Turkmenistan</span><span class="iti__dial-code">+993</span></li><li id="iti-0__item-tc" class="iti__country " tabindex="-1" role="option" data-dial-code="1" data-country-code="tc" aria-selected="false"><div class="iti__flag iti__tc"></div><span class="iti__country-name">Turks & Caicos Islands</span><span class="iti__dial-code">+1</span></li><li id="iti-0__item-tv" class="iti__country " tabindex="-1" role="option" data-dial-code="688" data-country-code="tv" aria-selected="false"><div class="iti__flag iti__tv"></div><span class="iti__country-name">Tuvalu</span><span class="iti__dial-code">+688</span></li><li id="iti-0__item-vi" class="iti__country " tabindex="-1" role="option" data-dial-code="1" data-country-code="vi" aria-selected="false"><div class="iti__flag iti__vi"></div><span class="iti__country-name">U.S. Virgin Islands</span><span class="iti__dial-code">+1</span></li><li id="iti-0__item-ug" class="iti__country " tabindex="-1" role="option" data-dial-code="256" data-country-code="ug" aria-selected="false"><div class="iti__flag iti__ug"></div><span class="iti__country-name">Uganda</span><span class="iti__dial-code">+256</span></li><li id="iti-0__item-ua" class="iti__country " tabindex="-1" role="option" data-dial-code="380" data-country-code="ua" aria-selected="false"><div class="iti__flag iti__ua"></div><span class="iti__country-name">Ukraine</span><span class="iti__dial-code">+380</span></li><li id="iti-0__item-ae" class="iti__country " tabindex="-1" role="option" data-dial-code="971" data-country-code="ae" aria-selected="false"><div class="iti__flag iti__ae"></div><span class="iti__country-name">United Arab Emirates</span><span class="iti__dial-code">+971</span></li><li id="iti-0__item-gb" class="iti__country " tabindex="-1" role="option" data-dial-code="44" data-country-code="gb" aria-selected="false"><div class="iti__flag iti__gb"></div><span class="iti__country-name">United Kingdom</span><span class="iti__dial-code">+44</span></li><li id="iti-0__item-us" class="iti__country " tabindex="-1" role="option" data-dial-code="1" data-country-code="us" aria-selected="false"><div class="iti__flag iti__us"></div><span class="iti__country-name">United States</span><span class="iti__dial-code">+1</span></li><li id="iti-0__item-uy" class="iti__country " tabindex="-1" role="option" data-dial-code="598" data-country-code="uy" aria-selected="false"><div class="iti__flag iti__uy"></div><span class="iti__country-name">Uruguay</span><span class="iti__dial-code">+598</span></li><li id="iti-0__item-uz" class="iti__country " tabindex="-1" role="option" data-dial-code="998" data-country-code="uz" aria-selected="false"><div class="iti__flag iti__uz"></div><span class="iti__country-name">Uzbekistan</span><span class="iti__dial-code">+998</span></li><li id="iti-0__item-vu" class="iti__country " tabindex="-1" role="option" data-dial-code="678" data-country-code="vu" aria-selected="false"><div class="iti__flag iti__vu"></div><span class="iti__country-name">Vanuatu</span><span class="iti__dial-code">+678</span></li><li id="iti-0__item-va" class="iti__country " tabindex="-1" role="option" data-dial-code="39" data-country-code="va" aria-selected="false"><div class="iti__flag iti__va"></div><span class="iti__country-name">Vatican City</span><span class="iti__dial-code">+39</span></li><li id="iti-0__item-ve" class="iti__country " tabindex="-1" role="option" data-dial-code="58" data-country-code="ve" aria-selected="false"><div class="iti__flag iti__ve"></div><span class="iti__country-name">Venezuela</span><span class="iti__dial-code">+58</span></li><li id="iti-0__item-vn" class="iti__country " tabindex="-1" role="option" data-dial-code="84" data-country-code="vn" aria-selected="false"><div class="iti__flag iti__vn"></div><span class="iti__country-name">Vietnam</span><span class="iti__dial-code">+84</span></li><li id="iti-0__item-wf" class="iti__country " tabindex="-1" role="option" data-dial-code="681" data-country-code="wf" aria-selected="false"><div class="iti__flag iti__wf"></div><span class="iti__country-name">Wallis & Futuna</span><span class="iti__dial-code">+681</span></li><li id="iti-0__item-eh" class="iti__country " tabindex="-1" role="option" data-dial-code="212" data-country-code="eh" aria-selected="false"><div class="iti__flag iti__eh"></div><span class="iti__country-name">Western Sahara</span><span class="iti__dial-code">+212</span></li><li id="iti-0__item-ye" class="iti__country " tabindex="-1" role="option" data-dial-code="967" data-country-code="ye" aria-selected="false"><div class="iti__flag iti__ye"></div><span class="iti__country-name">Yemen</span><span class="iti__dial-code">+967</span></li><li id="iti-0__item-zm" class="iti__country " tabindex="-1" role="option" data-dial-code="260" data-country-code="zm" aria-selected="false"><div class="iti__flag iti__zm"></div><span class="iti__country-name">Zambia</span><span class="iti__dial-code">+260</span></li><li id="iti-0__item-zw" class="iti__country " tabindex="-1" role="option" data-dial-code="263" data-country-code="zw" aria-selected="false"><div class="iti__flag iti__zw"></div><span class="iti__country-name">Zimbabwe</span><span class="iti__dial-code">+263</span></li></ul></div></div><input type="tel" id="intTelInp" name="intTelInp" class="js-input-int-tel-formatted-input u-12/12 o-form-text iti__tel-input" data-rule-input-int-tel-validator="" autocomplete="off" data-intl-tel-input-id="0" style="padding-left: 48px;" placeholder="06 12345678"></div><input class="js-input-int-tel-raw-input" data-val="true" data-val-maxlength="Telefoonnummer mag maximaal 15 karakters zijn" data-val-maxlength-max="15" data-val-required="Telefoonnummer is verplicht" id="Form_Phone" name="Form.Phone" type="hidden" value=""><div class="o-form-validation-msg field-validation-valid u-12/12" data-valmsg-for="intTelInp" data-valmsg-replace="true"></div><div class="field-validation-valid o-form-validation-msg" data-valmsg-for="Form.Phone" data-valmsg-replace="true"></div></div></div><div class="o-layout__col u-12/12"><label for="Form_EmailAddress">E-mailadres</label><input class="u-12/12 o-form-text js-remote-validation text-box single-line" data-remote-validation-message="Emailadres is al in gebruik" data-remote-validation-url="/Validation/IsNewAccount" data-val="true" data-val-email="E-mailadres is ongeldig" data-val-maxlength="E-mailadres mag maximaal 250 karakters zijn" data-val-maxlength-max="250" data-val-regex="E-mailadres is ongeldig" data-val-regex-pattern="^(?:[a-zA-Z0-9!#$%&'*+=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-zA-Z0-9-]*[a-zA-Z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$" data-val-required="E-mailadres is verplicht" id="Form_EmailAddress" name="Form.EmailAddress" type="email" value=""><div class="field-validation-valid o-form-validation-msg" data-valmsg-for="Form.EmailAddress" data-valmsg-replace="true"></div></div><div class="o-layout__col u-12/12"><label for="Form_Password">Wachtwoord</label><input class="u-12/12 o-form-text text-box single-line password" data-val="true" data-val-custom="Wachtwoord is ongeldig" data-val-maxlength="Wachtwoord mag maximaal 50 karakters zijn" data-val-maxlength-max="50" data-val-minlength="Wachtwoord moet minimaal 8 karakters zijn" data-val-minlength-min="8" data-val-required="Wachtwoord is verplicht" id="Form_Password" name="Form.Password" type="password"><div class="field-validation-valid o-form-validation-msg" data-valmsg-for="Form.Password" data-valmsg-replace="true"></div></div><div class="o-layout__col u-12/12"><label for="Form_RepeatPassword">Herhaal wachtwoord</label><input class="u-12/12 o-form-text text-box single-line password" data-val="true" data-val-custom="Herhaal wachtwoord is ongeldig" data-val-equalto="Wachtwoord komt niet overeen" data-val-equalto-other="*.Password" data-val-maxlength="Herhaal wachtwoord mag maximaal 50 karakters zijn" data-val-maxlength-max="50" data-val-required="Herhaal wachtwoord is verplicht" id="Form_RepeatPassword" name="Form.RepeatPassword" type="password"><div class="field-validation-valid o-form-validation-msg" data-valmsg-for="Form.RepeatPassword" data-valmsg-replace="true"></div></div></fieldset><fieldset class="o-layout__row js-validate-date-container"><legend class="u-hidden">Geboortedatum</legend><div class="o-layout__col o-compact-text mb-- u-12/12"><label for="Form_Birthdate">Geboortedatum</label></div><div class="o-layout__col u-3/12 mt0"><div class="c-select c-select--full-width"><select class="c-select__select js-date-day" data-val="true" data-val-birthdate="Ongeldige datum ingevoerd" data-val-minage="Minimale leeftijd is 18 jaar" data-val-minage-min="18" data-val-required="Geboortedatum is verplicht" id="Form.Birthdate_d" name="Form.Birthdate"><option class="c-select__item" selected="selected" value=""></option><option class="c-select__item" value="01">1</option><option class="c-select__item" value="02">2</option><option class="c-select__item" value="03">3</option><option class="c-select__item" value="04">4</option><option class="c-select__item" value="05">5</option><option class="c-select__item" value="06">6</option><option class="c-select__item" value="07">7</option><option class="c-select__item" value="08">8</option><option class="c-select__item" value="09">9</option><option class="c-select__item" value="10">10</option><option class="c-select__item" value="11">11</option><option class="c-select__item" value="12">12</option><option class="c-select__item" value="13">13</option><option class="c-select__item" value="14">14</option><option class="c-select__item" value="15">15</option><option class="c-select__item" value="16">16</option><option class="c-select__item" value="17">17</option><option class="c-select__item" value="18">18</option><option class="c-select__item" value="19">19</option><option class="c-select__item" value="20">20</option><option class="c-select__item" value="21">21</option><option class="c-select__item" value="22">22</option><option class="c-select__item" value="23">23</option><option class="c-select__item" value="24">24</option><option class="c-select__item" value="25">25</option><option class="c-select__item" value="26">26</option><option class="c-select__item" value="27">27</option><option class="c-select__item" value="28">28</option><option class="c-select__item" value="29">29</option><option class="c-select__item" value="30">30</option><option class="c-select__item" value="31">31</option></select></div></div><div class="o-layout__col u-5/12 mt0"><div class="c-select c-select--full-width"><select class="c-select__select js-date-month" data-val="true" data-val-birthdate="Ongeldige datum ingevoerd" data-val-minage="Minimale leeftijd is 18 jaar" data-val-minage-min="18" data-val-required="Geboortedatum is verplicht" id="Form.Birthdate_m" name="Form.Birthdate"><option class="c-select__item" selected="selected" value=""></option><option class="c-select__item" value="01">januari</option><option class="c-select__item" value="02">februari</option><option class="c-select__item" value="03">maart</option><option class="c-select__item" value="04">april</option><option class="c-select__item" value="05">mei</option><option class="c-select__item" value="06">juni</option><option class="c-select__item" value="07">juli</option><option class="c-select__item" value="08">augustus</option><option class="c-select__item" value="09">september</option><option class="c-select__item" value="10">oktober</option><option class="c-select__item" value="11">november</option><option class="c-select__item" value="12">december</option></select></div></div><div class="o-layout__col u-4/12 mt0"><div class="c-select c-select--full-width"><select class="c-select__select js-date-year" data-val="true" data-val-birthdate="Ongeldige datum ingevoerd" data-val-minage="Minimale leeftijd is 18 jaar" data-val-minage-min="18" data-val-required="Geboortedatum is verplicht" id="Form.Birthdate_y" name="Form.Birthdate"><option class="c-select__item" selected="selected" value=""></option><option class="c-select__item" value="2025">2025</option><option class="c-select__item" value="2024">2024</option><option class="c-select__item" value="2023">2023</option><option class="c-select__item" value="2022">2022</option><option class="c-select__item" value="2021">2021</option><option class="c-select__item" value="2020">2020</option><option class="c-select__item" value="2019">2019</option><option class="c-select__item" value="2018">2018</option><option class="c-select__item" value="2017">2017</option><option class="c-select__item" value="2016">2016</option><option class="c-select__item" value="2015">2015</option><option class="c-select__item" value="2014">2014</option><option class="c-select__item" value="2013">2013</option><option class="c-select__item" value="2012">2012</option><option class="c-select__item" value="2011">2011</option><option class="c-select__item" value="2010">2010</option><option class="c-select__item" value="2009">2009</option><option class="c-select__item" value="2008">2008</option><option class="c-select__item" value="2007">2007</option><option class="c-select__item" value="2006">2006</option><option class="c-select__item" value="2005">2005</option><option class="c-select__item" value="2004">2004</option><option class="c-select__item" value="2003">2003</option><option class="c-select__item" value="2002">2002</option><option class="c-select__item" value="2001">2001</option><option class="c-select__item" value="2000">2000</option><option class="c-select__item" value="1999">1999</option><option class="c-select__item" value="1998">1998</option><option class="c-select__item" value="1997">1997</option><option class="c-select__item" value="1996">1996</option><option class="c-select__item" value="1995">1995</option><option class="c-select__item" value="1994">1994</option><option class="c-select__item" value="1993">1993</option><option class="c-select__item" value="1992">1992</option><option class="c-select__item" value="1991">1991</option><option class="c-select__item" value="1990">1990</option><option class="c-select__item" value="1989">1989</option><option class="c-select__item" value="1988">1988</option><option class="c-select__item" value="1987">1987</option><option class="c-select__item" value="1986">1986</option><option class="c-select__item" value="1985">1985</option><option class="c-select__item" value="1984">1984</option><option class="c-select__item" value="1983">1983</option><option class="c-select__item" value="1982">1982</option><option class="c-select__item" value="1981">1981</option><option class="c-select__item" value="1980">1980</option><option class="c-select__item" value="1979">1979</option><option class="c-select__item" value="1978">1978</option><option class="c-select__item" value="1977">1977</option><option class="c-select__item" value="1976">1976</option><option class="c-select__item" value="1975">1975</option><option class="c-select__item" value="1974">1974</option><option class="c-select__item" value="1973">1973</option><option class="c-select__item" value="1972">1972</option><option class="c-select__item" value="1971">1971</option><option class="c-select__item" value="1970">1970</option><option class="c-select__item" value="1969">1969</option><option class="c-select__item" value="1968">1968</option><option class="c-select__item" value="1967">1967</option><option class="c-select__item" value="1966">1966</option><option class="c-select__item" value="1965">1965</option><option class="c-select__item" value="1964">1964</option><option class="c-select__item" value="1963">1963</option><option class="c-select__item" value="1962">1962</option><option class="c-select__item" value="1961">1961</option><option class="c-select__item" value="1960">1960</option><option class="c-select__item" value="1959">1959</option><option class="c-select__item" value="1958">1958</option><option class="c-select__item" value="1957">1957</option><option class="c-select__item" value="1956">1956</option><option class="c-select__item" value="1955">1955</option><option class="c-select__item" value="1954">1954</option><option class="c-select__item" value="1953">1953</option><option class="c-select__item" value="1952">1952</option><option class="c-select__item" value="1951">1951</option><option class="c-select__item" value="1950">1950</option><option class="c-select__item" value="1949">1949</option><option class="c-select__item" value="1948">1948</option><option class="c-select__item" value="1947">1947</option><option class="c-select__item" value="1946">1946</option><option class="c-select__item" value="1945">1945</option><option class="c-select__item" value="1944">1944</option><option class="c-select__item" value="1943">1943</option><option class="c-select__item" value="1942">1942</option><option class="c-select__item" value="1941">1941</option><option class="c-select__item" value="1940">1940</option><option class="c-select__item" value="1939">1939</option><option class="c-select__item" value="1938">1938</option><option class="c-select__item" value="1937">1937</option><option class="c-select__item" value="1936">1936</option><option class="c-select__item" value="1935">1935</option><option class="c-select__item" value="1934">1934</option><option class="c-select__item" value="1933">1933</option><option class="c-select__item" value="1932">1932</option><option class="c-select__item" value="1931">1931</option><option class="c-select__item" value="1930">1930</option><option class="c-select__item" value="1929">1929</option><option class="c-select__item" value="1928">1928</option><option class="c-select__item" value="1927">1927</option><option class="c-select__item" value="1926">1926</option><option class="c-select__item" value="1925">1925</option><option class="c-select__item" value="1924">1924</option><option class="c-select__item" value="1923">1923</option><option class="c-select__item" value="1922">1922</option><option class="c-select__item" value="1921">1921</option><option class="c-select__item" value="1920">1920</option><option class="c-select__item" value="1919">1919</option><option class="c-select__item" value="1918">1918</option><option class="c-select__item" value="1917">1917</option><option class="c-select__item" value="1916">1916</option><option class="c-select__item" value="1915">1915</option><option class="c-select__item" value="1914">1914</option><option class="c-select__item" value="1913">1913</option><option class="c-select__item" value="1912">1912</option><option class="c-select__item" value="1911">1911</option><option class="c-select__item" value="1910">1910</option><option class="c-select__item" value="1909">1909</option><option class="c-select__item" value="1908">1908</option><option class="c-select__item" value="1907">1907</option><option class="c-select__item" value="1906">1906</option><option class="c-select__item" value="1905">1905</option><option class="c-select__item" value="1904">1904</option><option class="c-select__item" value="1903">1903</option><option class="c-select__item" value="1902">1902</option><option class="c-select__item" value="1901">1901</option><option class="c-select__item" value="1900">1900</option></select></div></div><div class="field-validation-valid o-form-validation-msg o-layout__col u-12/12 mt0" data-valmsg-for="Form.Birthdate" data-valmsg-replace="true"></div></fieldset><input data-val="true" data-val-required="The KeepMePosted field is required." id="Form_KeepMePosted" name="Form.KeepMePosted" type="hidden" value="True"><fieldset class="o-layout__row"><div class="o-layout__col u-12/12"><div class="c-form-controls"><input type="submit" class="o-button c-button c-button--cta" value="Registreren"></div></div><input name="ufprt" type="hidden" value="E0A7F5C69336A050AB030D588AB88E6C3BAB716FA17EE5E76C7CB8D7B5E21E5344BE86C4DE89490BE088FF02ACB3E65BEEE4152EE52F821E4FB857225CEA022A4026E25A7C7A60644BBF3366381A01444830FFD87D1BAE16A70DA6F69E436AE835BA62956BBB1D3728561E19C9727E9A92A5E056FF58733538DAF915FFA8BEE268C8675497C6D589DCA7DF9AEF8499F4F1DF9B71C99D1E231B04B7E218C0096572701F8FFF676AFC8F13A1990BB817CAF8DE62EAFB6DEEABFC2717339A59FB16E9758021C8D16B764920E08638D2C3F7"></form>\ No newline at end of filediff --git a/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form8.html b/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form8.htmlnew file mode 100644index 000000000..c73565268--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form8.html@@ -0,0 +1,4 @@+<!--+Test that name vs email field detection works correctly in that it detects the most specific field correctly.+-->+<div class="c-enormail-webform__content"><div class="c-enormail-webform__optin--default c-enormail-webform__panel__row"><div class="col-sm-12"><div class="c-enormail-webform__text"><div class="c-enormail-webform__heading"><p>Ja, ik wil de XO-nieuwsbrief ontvangen</p></div></div></div></div><div class="c-enormail-webform__optin--success c-enormail-webform__panel__row" style="display:none;"><div class="col-sm-12"><div class="c-enormail-webform__text"><div class="c-enormail-webform__thankyouheading"><p>Inschrijving bevestigd!</p></div><div class="c-enormail-webform__thankyouparagraph"><p>Je inschrijving op onze mailinglijst is bevestigd.</p><p>Hartelijk dank voor je inschrijving!</p></div></div></div></div><div class="c-enormail-webform__form"><div class="c-enormail-webform__form__inner"><form name="subscribe" action="https://app.enormail.eu/subscribe/6cab6d38b17c8393d74837d3cb20ce1d" method="post"><div class="c-enormail-webform__fields"><div class="c-enormail-webform__fields__grid c-enormail-webform__fields__grid--fields"><div class="c-enormail-webform__fields__grid__cell c-enormail-webform__fields__grid__cell--wide"><div class="form-group has-feedback"><label for="name" class="c-enormail-webform__label">Naam *</label><input type="text" name="name" value="" class="form-control c-enormail-webform__field" id="aliasvault-input-name" autocomplete="false"></div></div><div class="c-enormail-webform__fields__grid__cell c-enormail-webform__fields__grid__cell--wide"><div class="form-group has-feedback"><label for="lastname" class="c-enormail-webform__label">Achternaam *</label><input type="text" name="lastname" id="aliasvault-input-lastname" value="" class="form-control c-enormail-webform__field"></div></div><div class="c-enormail-webform__fields__grid__cell c-enormail-webform__fields__grid__cell--wide"><div class="form-group has-feedback"><label for="email" class="c-enormail-webform__label">E-mailadres *</label><input type="email" name="email" value="" class="form-control c-enormail-webform__field" id="aliasvault-input-email" autocomplete="false"></div></div></div><div class="c-enormail-webform__gdpr"><div class="c-enormail-webform__gdpr__item c-enormail-webform__gdpr__item--privacy c-enormail-webform__privacyborder"><div class="c-enormail-webform__privacy"><p>Na registratie stuurt XO Hotels u regelmatig nieuwsbrieven. Het is mogelijk om u uit te schrijven via de link in de nieuwsbrief. Wij gebruiken uw e-mailadres niet voor andere doeleinden. Meer informatie vindt u in onze <a href="https://xohotels.com/privacy-statement-xo-hotels/">privacyverklaring</a>.</p></div></div></div><div class="c-enormail-webform__fields__grid c-enormail-webform__fields__grid--button"><div class="c-enormail-webform__fields__grid__cell c-enormail-webform__fields__grid__cell--wide"><div class="form-group text-center"><!-- Prevents automated signups, please don't remove --><div style="position:absolute;left:-5000px;" aria-hidden="true"><input type="text" name="b_6cab6d38b17c8393d74837d3cb20ce1d" tabindex="-1" value=""></div><button type="submit" class="btn c-enormail-webform__button c-enormail-webform__button--left c-enormail-webform__button--shadow"><span class="c-enormail-webform__button__inner"><span class="c-enormail-webform__button__loader" style="display:none;height:16px;color:#ffffff;"><svg version="1.1" id="L4" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 100 40" enable-background="new 0 0 0 0" xml:space="preserve"><circle fill="#ffffff" stroke="none" cx="30" cy="20" r="6"><animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.1"></animate></circle><circle fill="#ffffff" stroke="none" cx="50" cy="20" r="6"><animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.2"></animate></circle><circle fill="#ffffff" stroke="none" cx="70" cy="20" r="6"><animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.3"></animate></circle></svg></span><span class="c-enormail-webform__button__text" style="color:#ffffff;">Schrijf mij in voor de XO Nieuwsbrief</span></span></button></div></div></div></div></form><!-- Enormail Branding --><div class="c-enormail-webform__brand light"><a href="https://enormail.eu?utm_source=&utm_medium=referral&utm_campaign=subscribe-form" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="465.4" height="76" viewBox="0 0 465.4 76" fill="#fff"><path d="M42.5.1h12.2c4.4 0 8.8-.2 13.2.1C73.8.4 79.7 2 85 4.7L34.8 37.8c-3.1-5.1-6.1-10.1-9.2-15.2-2.1-3.4-4.1-6.8-6.2-10.2l-1.8-3c-.1-.2-.4-.5-.4-.7 0-.5 1.5-1.2 1.9-1.5C26 2.6 34.2.1 42.5.1M23.3 28.9L13 12C5.5 19.2.6 29.2 0 40.2l23.3-11.3z"></path><path d="M64.3 61.7H39.5V76H0V46l26.1-12.4 7.1 11.7v-.1.1c2.7-1.8 5.3-3.5 8-5.3.8-.5 1.5-1 2.3-1.5.3-.2.9-.8 1.3-.9.4-.1.5.4.8.7 4.7 5.8 9.3 11.7 14 17.5 1.6 2 3.2 3.9 4.7 5.9zm61.8-13.6c-1.9 3.1-4.9 5-8.4 5.7-2.2.4-4.7.7-6.7-.4-.9-.5-1.9-1.3-2.3-2.2-.5-1.1-.5-2.5-.5-3.7v-4.9c0-9.9-3.6-19.7-10-27.3-1.6-1.9-3.3-3.6-5.2-5.2-.7-.6-1.7-1.7-2.6-2-.6-.2 0-.2-.4-.1-.3.1-.7.5-1 .6-.6.4-1.3.8-1.9 1.3-9.6 6.3-19.2 12.7-28.8 19-2.9 1.9-5.9 3.9-8.8 5.8l21.1 27h-.1V76h37.6v-6.7c11.5 7 26.7 3.7 34.4-7.3 7-10.1 5.7-24.2-3.1-32.9-4.8-4.7-11.3-7.3-18-7.3v12.3h.1c6.1 0 11.6 4.3 13 10.3 1.4 5.9-1.6 12.2-7 14.9-3.5 1.7-7.6 1.9-11.2.3 5.5-1 9.6-5.9 9.8-11.5M86 35.4c-2.5 0-4.5-2.1-4.5-4.5 0-2.5 2.1-4.5 4.5-4.5 2.5 0 4.5 2.1 4.5 4.5s-2.1 4.5-4.5 4.5"></path><path d="M359.9 40.9V75h-8c-.7-.1-1.5-.2-2.2-.3l-.3-33.8c-4-2.4-13.7-1.4-13.9-.2v34c-2 .3-4 .5-5.9.5-2 0-3.9-.2-6-.5V33.2c5.2-1.8 10.8-2.7 16.3-2.7 3.7 0 10 .2 14 1.5 7.4-1.8 18.5-2.9 25.9 0 8.2 3.1 7.8 9.1 7.8 16.4V75h-2.9c-.7.1-1.4.1-2.1.1h-2.1c-1.6 0-3.3-.2-4.9-.5l-.3-33.8c-5.4-2-14.7-1.1-15.4.1M241.4 75c-2 .3-4 .5-6 .5s-3.9-.2-6-.5V52c0-2.3-.2-4.2-.5-5.7-.4-1.5-.9-2.7-1.7-3.5-.8-.9-1.7-1.5-2.8-1.8-1.1-.4-2.4-.5-3.9-.5-2.1 0-3.8.2-5.2.6v34c-2 .3-4 .5-5.9.5-2 0-3.9-.2-6-.5V33.2c1.8-.6 4.2-1.2 7.1-1.8 2.9-.6 6-.9 9.2-.9 2.9 0 5.6.2 8.2.7 2.6.4 4.9 1.4 6.9 2.9s3.6 3.6 4.7 6.4c1.2 2.8 1.8 6.5 1.8 11.2V75zm74.2-34.6c-1.8 0-7.5.1-9.3.6v34c-2 .3-4 .5-5.9.5-2 0-3.9-.2-6-.5V33.2c5.5-1.9 15.4-2.8 21.1-2.7v9.9zm119.8-15.7c-.3-1.9-.5-3.8-.5-5.6 0-1.8.2-3.7.5-5.6 1-.2 2-.3 3.1-.4 1.1-.1 2.1-.1 3-.1 1 0 2 0 3.1.1s2.2.2 3.1.4c.2 1 .3 1.9.3 2.8.1.9.1 1.9.1 2.8 0 .9 0 1.8-.1 2.8-.1 1-.2 1.9-.3 2.9-1 .2-2 .3-3.1.3-1.1.1-2.1.1-3.1.1-.9 0-1.9 0-3-.1-1.1-.2-2.2-.3-3.1-.4m-.5 6.7h11.7v43.4c-2 .3-4 .5-5.9.5-1.8 0-3.8-.2-5.8-.5V31.4zm-18.6 23.7c-.7-.1-1.4-.2-2.2-.3-.8-.1-1.5-.1-2.1-.1-2.7 0-4.9.5-6.5 1.5-1.6 1-2.4 2.6-2.4 4.7 0 1.5.3 2.6.9 3.4.6.8 1.4 1.4 2.2 1.7.9.4 1.8.6 2.8.7 1 .1 1.8.1 2.6.1s1.7-.1 2.5-.2 1.6-.3 2.2-.4V55.1zm0-8.7c0-1.3-.2-2.4-.7-3.3-.4-.8-1.1-1.5-1.8-2-.8-.5-1.7-.8-2.9-1-1.2-.2-2.4-.3-3.8-.3-3 0-6.2.6-9.7 1.8-.8-1.5-1.4-2.8-1.8-4.1-.4-1.3-.6-2.8-.6-4.6 2.5-.8 4.9-1.5 7.4-1.8 2.5-.4 4.8-.6 6.9-.6 5.8 0 10.4 1.4 13.7 4.2 3.3 2.8 4.9 7.3 4.9 13.4v25.2c-2 .6-4.3 1.2-7.1 1.8-2.8.6-6 .8-9.5.8-2.9 0-5.5-.3-7.9-.8-2.4-.5-4.4-1.3-6.1-2.5-1.7-1.2-3-2.7-3.9-4.5-.9-1.8-1.4-4.1-1.4-6.8s.6-4.9 1.7-6.8c1.1-1.8 2.6-3.3 4.5-4.4 1.8-1.1 3.8-1.9 6.1-2.4 2.2-.5 4.5-.7 6.7-.7 1.6 0 3.4.1 5.4.3v-.9zM267.9 76c-3.5 0-6.6-.6-9.2-1.7-2.6-1.1-4.8-2.7-6.5-4.8-1.7-2-3-4.4-3.9-7.2-.9-2.7-1.3-5.7-1.3-8.9s.4-6.2 1.3-9 2.2-5.2 3.9-7.3c1.7-2 3.9-3.7 6.5-4.8 2.6-1.2 5.7-1.8 9.2-1.8 3.5 0 6.6.6 9.2 1.8 2.6 1.2 4.8 2.8 6.6 4.8 1.7 2 3 4.5 3.9 7.3.8 2.8 1.3 5.8 1.3 9s-.4 6.2-1.3 8.9c-.8 2.7-2.1 5.1-3.9 7.2-1.7 2-3.9 3.6-6.6 4.8-2.6 1.1-5.7 1.7-9.2 1.7m0-9.1c3.1 0 5.4-1.2 6.8-3.5 1.4-2.3 2.1-5.7 2.1-10 0-4.4-.7-7.7-2.1-10-1.4-2.3-3.6-3.5-6.8-3.5-3.1 0-5.3 1.2-6.7 3.5-1.4 2.3-2.1 5.7-2.1 10 0 4.4.7 7.7 2.1 10 1.4 2.3 3.6 3.5 6.7 3.5zm-98.4-10c.2 3.4 1.4 5.8 3.5 7.3s4.9 2.3 8.4 2.3c1.6 0 3.3-.1 5-.4v9.5c-1.9.2-3.9.4-6 .4-4 0-7.5-.6-10.4-1.7-2.9-1.1-5.2-2.7-7.1-4.7-1.8-2-3.2-4.4-4-7.1-.9-2.7-1.3-5.7-1.3-9 0-3.2.4-6.2 1.3-9s2.2-5.2 4-7.3c1.8-2.1 3.9-3.7 6.6-4.9 2.6-1.2 5.6-1.8 9.1-1.8 3 0 5.7.5 8.1 1.6 2.3 1.1 4.4 2.5 6 4.4 1.7 1.8 2.9 4 3.7 6.6.8 2.5 1.3 5.3 1.3 8.2 0 1.1 0 2.1-.1 3.1s-.2 1.9-.3 2.5h-27.8zm17-8.3c-.1-2.7-.8-4.9-2.2-6.5-1.4-1.7-3.3-2.5-5.8-2.5-2.8 0-4.9.8-6.4 2.4s-2.3 3.8-2.6 6.6h17zm267 26.7c2 .3 4 .5 6 .5 1.9 0 3.9-.2 5.9-.5V13.4c-2-.3-4-.5-5.9-.5-2 0-3.9.2-6 .5v61.9"></path></svg></a></div></div></div></div>\ No newline at end of filediff --git a/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form9.html b/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form9.htmlnew file mode 100644index 000000000..e3cf17c94--- /dev/null+++ b/browser-extension/src/utils/formDetector/__tests__/test-forms/nl-registration-form9.html@@ -0,0 +1,139 @@+<!--+Test that the username field is correctly detected.+-->+<form class="sch_form" id="new_sub_account" novalidate="novalidate" data-client-side-validations="{"html_settings":{"type":"TaggedBuilder","input_tag":"\u003cdiv class=\"field_with_errors\"\u003e\u003cspan id=\"input_tag\"\u003e\u003c/span\u003e\u003cdiv class=\"error_msg\"\u003e\u003clabel for=\"\" class=\"message noscript\"\u003e\u003c/label\u003e\u003c/div\u003e\u003c/div\u003e","label_tag":"\u003cdiv class=\"field_with_errors\"\u003e\u003clabel id=\"label_tag\"\u003e\u003c/label\u003e\u003c/div\u003e"},"number_format":{"separator":".","delimiter":","},"validators":{"sub_account[sub_account_profile_attributes][brin_number]":{"length":[{"messages":{"maximum":"is te lang (niet meer dan 255 karakters)"},"maximum":255}],"presence":[{"message":"is niet ingevuld"}]},"sub_account[sub_account_profile_attributes][city]":{"length":[{"messages":{"maximum":"is te lang (niet meer dan 255 karakters)"},"maximum":255}],"presence":[{"message":"is niet ingevuld"}]},"sub_account[sub_account_profile_attributes][contact_phone_number]":{"length":[{"messages":{"maximum":"is te lang (niet meer dan 255 karakters)"},"maximum":255}]},"user[new_user_attributes][accept_conditions]":{"acceptance":[{"message":"Het account kan alleen worden aangemaakt indien u akkoord gaat met de Privacy Policy en de Gebruiksvoorwaarden","accept":["1",true]}]},"user[firstname]":{"length":[{"messages":{"maximum":"is te lang (niet meer dan 255 karakters)"},"maximum":255}],"presence":[{"message":"is niet ingevuld"}]},"user[name_prefix]":{"length":[{"messages":{"maximum":"is te lang (niet meer dan 255 karakters)"},"maximum":255}]},"user[lastname]":{"length":[{"messages":{"maximum":"is te lang (niet meer dan 255 karakters)"},"maximum":255}],"presence":[{"message":"is niet ingevuld"}]},"user[email_address]":{"length":[{"messages":{"maximum":"is te lang (niet meer dan 255 karakters)"},"maximum":255}],"presence":[{"message":"is niet ingevuld"}],"format":[{"message":"bevat geen geldig emailadres","with":{"source":"^(?:(?:[%'+\\x2D0-9=_a-z]+)(?:\\.(?![.@]))?)+@(?:[a-z0-9][\\x2D0-9a-z]*\\.)+[a-z]+(?=\\n?$)","options":"i"},"allow_blank":true},{"message":"bevat geen geldig emailadres","with":{"source":"^(?:[\\x00-,.-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF])(?:[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[^\\n\\uD800-\\uDFFF])+","options":""},"allow_blank":true}]},"user[username]":{"length":[{"messages":{"maximum":"is te lang (niet meer dan 255 karakters)"},"maximum":255}],"presence":[{"message":"is niet ingevuld"}],"uniqueness":[{"message":"moet uniek zijn"}],"format":[{"message":"toegestaan: letters, cijfers en '_.%+-'","with":{"source":"^[%+\\x2D.0-9A-Z_a-z]+(?=\\n?$)","options":""}}]},"user[password]":{"presence":[{"message":"is niet ingevuld"}],"confirmation":[{"message":"komt niet met z'n bevestiging overeen","case_sensitive":true}],"format":[{"message":"min. 1 hoofdletter, 1 kleine letter, 1 cijfer of ander teken (min. 8 karakters)","with":{"source":"^(?=(?:[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[^\\n\\uD800-\\uDFFF])*[\\x09-\\x0D\\x20!#-\u0026(-@\\x5B-_{-}])(?=(?:[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[^\\n\\uD800-\\uDFFF])*[a-zà-ÿ])(?=(?:[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[^\\n\\uD800-\\uDFFF])*[A-ZÀ-Ÿ])[\\x09-\\x0D\\x20!#-\u0026(-_a-}\\xC0-\\xFF]{8,}(?=\\n?$)","options":""}}]},"user[password_confirmation]":{"presence":[{"message":"is niet ingevuld"}]},"sub_account[name]":{"length":[{"messages":{"maximum":"is te lang (niet meer dan 255 karakters)"},"maximum":255}],"presence":[{"message":"is niet ingevuld"}]},"sub_account[subdomain]":{"length":[{"messages":{"maximum":"is te lang (niet meer dan 255 karakters)"},"maximum":255}],"presence":[{"message":"is niet ingevuld"}],"uniqueness":[{"message":"moet uniek zijn"}],"format":[{"message":"toegestaan: letters, cijfers en '-'","with":{"source":"^([\\x2D0-9A-Za-z])*(?=\\n?$)","options":""}}]},"sub_account[humanizer_answer]":{"presence":[{"message":"is niet ingevuld"}]}}}" action="/scholen/aanmaken_verwerken" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="aLf0yW9_HFyONjp27_ZtMkEcOmzS6dWJQR-wqmVo6lMzHEuPXqdwxbwFK16sTCcrW92o7IUPPS3aK9JrnFvHBA" autocomplete="off">+ <div class="validation_error nodisplay"><a title="Verberg foutboodschap" class="close" onclick="$(this).closest('div.validation_error').addClass('nodisplay'); return false;" href="#"><span class="close font-icon hover"></span></a>Sommige velden zijn niet ingevuld of bevatten verkeerde invoer (zie de foutmeldingen bij de velden). Graag herstellen en opnieuw proberen.</div>+ <fieldset class="sch_border">+ <legend>Schoolgegevens</legend>+ <a title="Lees meer..." class="facebox_js sch_button_show" href="#if_a_parent">Bent u een ouder? Klik hier</a>+ <div style="display:none;" id="if_a_parent">++ <div class="title">+ <h1>Bent u een ouder?</h1>+</div>+<p>+ Dan hoeft u dit formulier niet in te vullen.+</p>+<br>+<p>+ Een School-account wordt aangevraagd door de school zelf. Na het invoeren van de emailadressen+ door de school ontvangt u als ouder vanzelf een uitnodigingsemail met daarin een link. Via die+ link kunt u uw gebruikersaccount aanmaken.+</p>+++ </div>+ <div class=" mb-4"><div class="label "><div class="field_with_errors"><label for="sub_account_name">Naam school</label></div> <a title="Klik voor meer informatie" class="question_mark no_print noscript " target="product_help" href="/help?help_text=accounts%2Fname"><span class="help font-icon "></span></a></div><div class="input "><div class="field_with_errors"><input tabindex="1" class="" type="text" name="sub_account[name]" id="sub_account_name" data-validate="true" autocomplete="false"><div class="error_msg"><label for="sub_account_name" class="message noscript">is niet ingevuld</label></div></div><div class="field_help nodisplay" style="display: none;">+<p>Geef de naam van de school, inclusief lidwoord. De naam die u invult zal gebruikt worden in zinnen als+<em>"Welkom op het het ouderportaal van <strong><naam></strong>".</em></p>+</div></div></div>++ <div class=" mb-4"><div class="label "><label for="sub_account_sub_account_profile_attributes_brin_number">BRIN-nummer <a title="Klik voor meer informatie" class="question_mark no_print " target="product_help" href="/help?help_text=sub_accounts%2Fbrin_number"><span class="help font-icon "></span></a></label></div><div class="input "><input tabindex="2" type="text" name="sub_account[sub_account_profile_attributes][brin_number]" id="sub_account_sub_account_profile_attributes_brin_number" data-validate="true"></div></div>+ <div class=" mb-4"><div class="label "><label for="sub_account_subdomain">Subdomein</label> <a title="Klik voor meer informatie" class="question_mark no_print noscript " target="product_help" href="/help?help_text=accounts%2Fsubdomain"><span class="help font-icon "></span></a></div><div class="input "><input tabindex="3" type="text" name="sub_account[subdomain]" id="sub_account_subdomain" data-validate="true"><div class="field_help nodisplay">+<p>Geef de naam van het subdomein waarop u uw school op SchouderCom wilt kunnen benaderen. De naam die u invult+wordt voor schoudercom.nl geplaatst en bepaald het webadres.</p>+<br>+<p><em>Voorbeeld: </em>indien u "regenboog" invult zal uw site onder <strong><em>regenboog</em>.schoudercom.nl</strong> bereikbaar zijn.</p></div></div></div>+ <div class=" mb-4"><div class="label "><label for="sub_account_sub_account_profile_attributes_city">Plaats</label></div><div class="input "><input tabindex="4" type="text" name="sub_account[sub_account_profile_attributes][city]" id="sub_account_sub_account_profile_attributes_city" data-validate="true"></div></div>+ <div class="region">+ <div class="label"><span class="label_like">+ Regio <a title="Klik voor meer informatie" class="question_mark no_print noscript " target="product_help" href="/help?help_text=accounts%2Fregion"><span class="help font-icon "></span></a>+</span></div> <div class="input no_txtfld">+ <span class="nobreak">+ <input tabindex="5" class=" new-check" type="radio" value="0" name="sub_account[sub_account_profile_attributes][region]" id="sub_account_sub_account_profile_attributes_region_0"><label class="no_label new-check" for="sub_account_sub_account_profile_attributes_region_0">Noord</label>+ + <input tabindex="6" class=" new-check" type="radio" value="1" checked="checked" name="sub_account[sub_account_profile_attributes][region]" id="sub_account_sub_account_profile_attributes_region_1"><label class="no_label new-check" for="sub_account_sub_account_profile_attributes_region_1">Midden</label>+ + <input tabindex="7" class=" new-check" type="radio" value="2" name="sub_account[sub_account_profile_attributes][region]" id="sub_account_sub_account_profile_attributes_region_2"><label class="no_label new-check" for="sub_account_sub_account_profile_attributes_region_2">Zuid</label>+ </span>+ <div class="field_help nodisplay">+<p>Selecteer de regio waartoe uw school behoort.</p><br>+<p>+ Wanneer u in de beheeromgeving de vakanties aan de jaarkalender toevoegt, zal SchouderCom+ automatisch de juiste vakanties voor uw regio invoegen. Daarna kunt u desgewenst de gegevens+ van de vakanties nog wijzigen.</p></div>+</div> </div>+ <div class="language">+ <div class="label"><span class="label_like">+ Standaardtaal <a title="Klik voor meer informatie" class="question_mark no_print noscript " target="product_help" href="/help?help_text=accounts%2Fset_default_language"><span class="help font-icon "></span></a>+</span></div> <div class="input ">+ <div id="language_body">+ <span>+ <input type="radio" name="sub_account[sub_account_profile_attributes][default_language]" id="sub_account_sub_account_profile_attributes_default_language_nl" value="nl" tabindex="8" class=" new-check" checked="checked"><label class=" new-check hide_label" for="sub_account_sub_account_profile_attributes_default_language_nl">l</label>+ </span>+ <span>+ <label for="sub_account_sub_account_profile_attributes_default_language_nl"><span title="Dit is de huidige selectie voor de standaardtaal in uw Gratis School-account" class="flag-icon flag-icon-nl"></span></label>+ </span>+ <span>+ <input type="radio" name="sub_account[sub_account_profile_attributes][default_language]" id="sub_account_sub_account_profile_attributes_default_language_en" value="en" tabindex="9" class=" new-check"><label class=" new-check hide_label" for="sub_account_sub_account_profile_attributes_default_language_en">l</label>+ </span>+ <span>+ <label for="sub_account_sub_account_profile_attributes_default_language_en"><span title="Selecteer als u dit als standaardtaal voor het Gratis School-account wilt" class="flag-icon flag-icon-en"></span></label>+ </span>+</div>+ <div class="field_help nodisplay">+<p>+ De standaardtaal voor nieuwe gebruikers bepaalt de taal van de uitnodigingsemails waarmee nieuwe gebruikers+ uitgenodigd worden een account aan te maken. Zodra ze een account hebben aangemaakt kunnen ze zelf de taalkeuze+ aanpassen aan hun voorkeuren.+</p>+<p>+ U kunt de standaardtaal later via de <em>Beheer</em> tab altijd weer aanpassen.+</p>+</div>+</div> </div>+ </fieldset>+ <fieldset class="sch_border">+ <legend>Gegevens beheerder <a title="Klik voor meer informatie" class="question_mark no_print " target="product_help" href="/help?help_text=accounts%2Fadministrator"><span class="help font-icon "></span></a></legend>++ <div class=" mb-4"><div class="label "><label for="user_firstname">Voornaam</label></div><div class="input "><input tabindex="10" type="text" name="user[firstname]" id="user_firstname" data-validate="true" autocomplete="false"></div></div>+ <div class=" mb-4"><div class="label "><label for="user_name_prefix">Tussenvoegsel</label></div><div class="input "><input tabindex="11" type="text" name="user[name_prefix]" id="user_name_prefix" data-validate="true"></div></div>+ <div class=" mb-4"><div class="label "><label for="user_lastname">Achternaam</label></div><div class="input "><input tabindex="12" type="text" name="user[lastname]" id="user_lastname" data-validate="true"></div></div>+ <div class=" mb-4"><div class="label "><label for="user_email_address">Emailadres</label> <a title="Klik voor meer informatie" class="question_mark no_print noscript " target="product_help" href="/help?help_text=accounts%2Femail_address"><span class="help font-icon "></span></a></div><div class="input "><input tabindex="13" type="email" name="user[email_address]" id="user_email_address" data-validate="true" autocomplete="false"><div class="field_help nodisplay" style="display: none;">+<p>Gebruik het emailadres waarmee u aan de school verbonden bent. Als u een algemeen emailadres gebruikt, bijvoorbeeld van Gmail of Hotmail,+ dan kan dit vertraging opleveren bij het vrijgeven van het school-account.</p>+</div></div></div>++ <div class=" mb-4"><div class="label "><label for="sub_account_sub_account_profile_attributes_contact_phone_number">Telefoon</label></div><div class="input "><input tabindex="14" type="text" name="sub_account[sub_account_profile_attributes][contact_phone_number]" id="sub_account_sub_account_profile_attributes_contact_phone_number" data-validate="true"></div></div>+ <div class=" mb-4"><div class="label "><label for="user_username">Gebruikersnaam</label> <a title="Klik voor meer informatie" class="question_mark no_print noscript " target="product_help" href="/help?help_text=users%2Fdesired_username"><span class="help font-icon "></span></a></div><div class="input "><input tabindex="15" type="text" name="user[username]" id="user_username" data-validate="true"><div class="field_help nodisplay">+<p>Iedereen binnen SchouderCom heeft een gebruikersnaam.</p>+<p>De gebruikersnaam moet uniek zijn, het kan zijn dat u hierover een melding krijgt en een andere moet kiezen.</p></div></div></div>+ <div class=" mb-4"><div class="label "><label for="user_password">Wachtwoord</label></div><div class="input "><input tabindex="16" type="password" name="user[password]" id="user_password" data-validate="true"></div></div>+ <div class=" mb-4"><div class="label "><label for="user_password_confirmation">Bevestig wachtwoord</label></div><div class="input "><input tabindex="17" type="password" name="user[password_confirmation]" id="user_password_confirmation"></div></div>++ <br>+ <div class="check accept_conditions">+ <input name="user[new_user_attributes][accept_conditions]" type="hidden" value="0" autocomplete="off"><input tabindex="18" class=" new-check" type="checkbox" value="1" name="user[new_user_attributes][accept_conditions]" id="user_new_user_attributes_accept_conditions" data-validate="true"><label class=" new-check" for="user_new_user_attributes_accept_conditions">Ik ga akkoord met de <a title="Bekijk de Privacy Policy van SchouderCom.nl" class="link facebox_js as_popup" href="/privacy_policy">Privacy Policy</a>, de <a title="Bekijk de Gebruiksvoorwaarden van SchouderCom.nl" class="link facebox_js as_popup" href="/gebruiksvoorwaarden">Gebruiksvoorwaarden</a> en de synchronisatie van mijn gegevens met de leerling-administratie</label>+ </div>+ <div class="check accept_conditions">+ <input name="user[new_user_attributes][open_for_mailings]" type="hidden" value="0" autocomplete="off"><input tabindex="19" class=" new-check" type="checkbox" value="1" name="user[new_user_attributes][open_for_mailings]" id="user_new_user_attributes_open_for_mailings" data-validate="true"><label class=" new-check" for="user_new_user_attributes_open_for_mailings">Ik wil de SchouderCom.nl nieuwsbrief ontvangen (~4x per jaar, keuze kunt u in uw profiel weer wijzigen) (<em><strong>optioneel</strong></em>)</label>+ </div>+ <div class="check accept_conditions">+ <input name="user[new_user_attributes][open_for_partners]" type="hidden" value="0" autocomplete="off"><input tabindex="20" class=" new-check" type="checkbox" value="1" name="user[new_user_attributes][open_for_partners]" id="user_new_user_attributes_open_for_partners" data-validate="true"><label class=" new-check" for="user_new_user_attributes_open_for_partners">Ik doe mee met incidentele niet-commerciële onderzoeksenquêtes van SchouderCom.nl of onderwijspartners (<em><strong>optioneel</strong></em>)</label>+ </div>++ </fieldset>+ <div class="wizard_next no_border">+ <fieldset>+ <div class="anti_spam">+ <div class="label">+ <label for="sub_account_humanizer_answer">Anti-spam vraag <a title="Klik voor meer informatie" class="question_mark no_print noscript " target="product_help" href="/help?help_text=anti_spam"><span class="help font-icon "></span></a>: Wat is het omgekeerde van zuid?</label>+ </div>+ <div class="input">+ <input tabindex="21" type="text" name="sub_account[humanizer_answer]" id="sub_account_humanizer_answer" data-validate="true">+ <div class="field_help nodisplay">+<p>+ Om het automatisch invullen van formulieren door robots tegen te gaan verzoeken wij u deze vraag te beantwoorden.+</p>+</div>+ </div>+ <input autocomplete="off" type="hidden" value="11" name="sub_account[humanizer_question_id]" id="sub_account_humanizer_question_id">+ </div>+ </fieldset>++ <input type="submit" name="create_free" value="Gratis School-account" tabindex="22" id="create_free" title="Klik om een Gratis School-account aan te maken." class=" sch_button_publish" data-disable-with="Gratis School-account"> of+ <input type="submit" name="create_basic" value="Instap School-account" tabindex="23" id="create_basic" title="Klik om een Instap School-account aan te maken." class=" sch_button_publish" data-disable-with="Instap School-account"> of+ <input type="submit" name="create_premium" value="Premium School-account" tabindex="24" id="create_premium" title="Klik om een Premium School-account aan te maken." class=" sch_button_publish" data-disable-with="Premium School-account">+ <p class="top_20"><em></em></p>+ </div>+</form>\ No newline at end of filediff --git a/browser-extension/src/utils/formDetector/types/FormFields.ts b/browser-extension/src/utils/formDetector/types/FormFields.tsnew file mode 100644index 000000000..bcb170715--- /dev/null+++ b/browser-extension/src/utils/formDetector/types/FormFields.ts@@ -0,0 +1,33 @@+export type FormFields = {+ form: HTMLFormElement | null;+ emailField: HTMLInputElement | null;+ emailConfirmField: HTMLInputElement | null;+ usernameField: HTMLInputElement | null;+ passwordField: HTMLInputElement | null;+ passwordConfirmField: HTMLInputElement | null;++ // Identity fields+ fullNameField: HTMLInputElement | null;+ firstNameField: HTMLInputElement | null;+ lastNameField: HTMLInputElement | null;++ // Birthdate fields can be either a single field or multiple fields+ birthdateField: {+ single: HTMLInputElement | null;+ format: string; // 'yyyy-mm-dd' | 'dd-mm-yyyy' | 'mm-dd-yyyy'+ day: HTMLInputElement | null;+ month: HTMLInputElement | null;+ year: HTMLInputElement | null;+ };++ // Gender field can be either select, radio or text input+ genderField: {+ type: 'select' | 'radio' | 'text';+ field: HTMLInputElement | HTMLSelectElement | null;+ radioButtons?: {+ male: HTMLInputElement | null;+ female: HTMLInputElement | null;+ other: HTMLInputElement | null;+ };+ };+ }diff --git a/browser-extension/src/utils/generators/Identity/UsernameEmailGenerator.ts b/browser-extension/src/utils/generators/Identity/UsernameEmailGenerator.tsnew file mode 100644index 000000000..3993209ec--- /dev/null+++ b/browser-extension/src/utils/generators/Identity/UsernameEmailGenerator.ts@@ -0,0 +1,130 @@+import { Identity } from "./types/Identity";++/**+ * Generate a username or email prefix.+ */+export class UsernameEmailGenerator {+ private static readonly MIN_LENGTH = 6;+ private static readonly MAX_LENGTH = 20;+ private readonly symbols: string[] = ['.', '-'];++ /**+ * Generate a username based on an identity.+ */+ public generateUsername(identity: Identity): string {+ // Generate username based on email prefix but strip all non-alphanumeric characters+ let username = this.generateEmailPrefix(identity);+ username = username.replace(/[^a-zA-Z0-9]/g, '');++ // Adjust length+ if (username.length < UsernameEmailGenerator.MIN_LENGTH) {+ username += this.generateRandomString(UsernameEmailGenerator.MIN_LENGTH - username.length);+ } else if (username.length > UsernameEmailGenerator.MAX_LENGTH) {+ username = username.substring(0, UsernameEmailGenerator.MAX_LENGTH);+ }++ return username;+ }++ /**+ * Generate an email prefix based on an identity.+ */+ public generateEmailPrefix(identity: Identity): string {+ const parts: string[] = [];++ switch (this.getSecureRandom(4)) {+ case 0:+ // First initial + last name+ parts.push(identity.firstName.substring(0, 1).toLowerCase() + identity.lastName.toLowerCase());+ break;+ case 1:+ // Full name+ parts.push((identity.firstName + identity.lastName).toLowerCase());+ break;+ case 2:+ // First name + last initial+ parts.push(identity.firstName.toLowerCase() + identity.lastName.substring(0, 1).toLowerCase());+ break;+ case 3:+ // First 3 chars of first name + last name+ parts.push(identity.firstName.substring(0, Math.min(3, identity.firstName.length)).toLowerCase() + identity.lastName.toLowerCase());+ break;+ }++ // Add birth year variations+ if (this.getSecureRandom(3) !== 0) {+ switch (this.getSecureRandom(2)) {+ case 0:+ parts.push(identity.birthDate.getFullYear().toString().substring(2));+ break;+ case 1:+ parts.push(identity.birthDate.getFullYear().toString());+ break;+ }+ } else if (this.getSecureRandom(2) === 0) {+ // Add random numbers for more uniqueness+ parts.push((this.getSecureRandom(990) + 10).toString());+ }++ // Join parts with random symbols, possibly multiple+ let emailPrefix = parts.join(this.getRandomSymbol());++ // Add extra random symbol at random position+ if (this.getSecureRandom(2) === 0) {+ const position = this.getSecureRandom(emailPrefix.length);+ emailPrefix = emailPrefix.slice(0, position) + this.getRandomSymbol() + emailPrefix.slice(position);+ }++ emailPrefix = this.sanitizeEmailPrefix(emailPrefix);++ // Adjust length+ if (emailPrefix.length < UsernameEmailGenerator.MIN_LENGTH) {+ emailPrefix += this.generateRandomString(UsernameEmailGenerator.MIN_LENGTH - emailPrefix.length);+ } else if (emailPrefix.length > UsernameEmailGenerator.MAX_LENGTH) {+ emailPrefix = emailPrefix.substring(0, UsernameEmailGenerator.MAX_LENGTH);+ }++ return emailPrefix;+ }++ /**+ * Sanitize an email prefix.+ */+ private sanitizeEmailPrefix(input: string): string {+ // Remove any character that's not a letter, number, dot, underscore, or hyphen including special characters+ let sanitized = input.replace(/[^a-zA-Z0-9._-]/g, '');++ // Remove consecutive dots, underscores, or hyphens+ sanitized = sanitized.replace(/[-_.]{2,}/g, (match) => match[0]);++ // Remove leading and trailing dots, underscores, or hyphens+ sanitized = sanitized.replace(/^[-._]+/, ''); // Remove from start+ sanitized = sanitized.replace(/[-._]*$/, ''); // Remove from end++ return sanitized;+ }++ /**+ * Get a random symbol.+ */+ private getRandomSymbol(): string {+ return this.getSecureRandom(3) === 0 ? this.symbols[this.getSecureRandom(this.symbols.length)] : '';+ }++ /**+ * Generate a random string.+ */+ private generateRandomString(length: number): string {+ const chars = 'abcdefghijklmnopqrstuvwxyz0123456789';+ return Array.from({ length }, () => chars.charAt(this.getSecureRandom(chars.length))).join('');+ }++ /**+ * Generate a secure random integer between 0 (inclusive) and max (exclusive)+ */+ private getSecureRandom(max: number): number {+ const array = new Uint32Array(1);+ crypto.getRandomValues(array);+ return array[0] % max;+ }+}diff --git a/browser-extension/src/utils/generators/Identity/__tests__/IdentityGenerator.test.ts b/browser-extension/src/utils/generators/Identity/__tests__/IdentityGenerator.test.tsnew file mode 100644index 000000000..e0977756f--- /dev/null+++ b/browser-extension/src/utils/generators/Identity/__tests__/IdentityGenerator.test.ts@@ -0,0 +1,53 @@+import { IdentityGeneratorEn } from '../implementations/IdentityGeneratorEn';+import { IdentityGeneratorNl } from '../implementations/IdentityGeneratorNl';+import { describe, it, expect } from 'vitest';+import { IIdentityGenerator } from '../interfaces/IIdentityGenerator';+import { Gender } from '../types/Gender';+/**+ * Test the identity generator.+ */+const testIdentityGenerator = (+ language: string,+ generator: IIdentityGenerator+) : void => {+ describe(`IdentityGenerator${language}`, () => {+ describe('generateRandomIdentity', () => {+ it('should generate a random gender identity when no gender is specified', async () => {+ const identity = await generator.generateRandomIdentity();++ expect(identity).toBeDefined();+ expect(identity.firstName).toBeTruthy();+ expect(identity.lastName).toBeTruthy();+ expect([Gender.Male, Gender.Female]).toContain(identity.gender);+ });++ it('should generate unique identities on subsequent calls', async () => {+ const identity1 = await generator.generateRandomIdentity();+ const identity2 = await generator.generateRandomIdentity();++ expect(identity1).not.toEqual(identity2);+ });++ it('should generate an identity with all non-empty fields', async () => {+ const identity = await generator.generateRandomIdentity();++ Object.entries(identity).forEach(([, value]) => {+ expect(value).toBeTruthy();+ expect(value).not.toBe('');+ expect(value).not.toBeNull();+ expect(value).not.toBeUndefined();+ });++ // Add length checks for first and last names+ expect(identity.firstName.length).toBeGreaterThan(1);+ expect(identity.lastName.length).toBeGreaterThan(1);+ });+ });+ });+};++// Run tests for each language implementation+describe('Identity Generators', () => {+ testIdentityGenerator('En', new IdentityGeneratorEn());+ testIdentityGenerator('Nl', new IdentityGeneratorNl());+});\ No newline at end of filediff --git a/browser-extension/src/utils/generators/Identity/implementations/IdentityGeneratorEn.ts b/browser-extension/src/utils/generators/Identity/implementations/IdentityGeneratorEn.tsnew file mode 100644index 000000000..b43e3a623--- /dev/null+++ b/browser-extension/src/utils/generators/Identity/implementations/IdentityGeneratorEn.ts@@ -0,0 +1,39 @@+import { BaseIdentityGenerator } from "./base/BaseIdentityGenerator";++/**+ * Identity generator for English language using English word dictionaries.+ */+export class IdentityGeneratorEn extends BaseIdentityGenerator {+ /**+ * Get the male first names.+ */+ protected getFirstNamesMaleJson(): string[] {+ /*+ * This is a placeholder for the dictionary-loader to replace with the actual data.+ * See vite-plugins/dictionary-loader.ts for more information.+ */+ return '__FIRSTNAMES_MALE_EN__';+ }++ /**+ * Get the female first names.+ */+ protected getFirstNamesFemaleJson(): string[] {+ /*+ * This is a placeholder for the dictionary-loader to replace with the actual data.+ * See vite-plugins/dictionary-loader.ts for more information.+ */+ return '__FIRSTNAMES_FEMALE_EN__';+ }++ /**+ * Get the last names.+ */+ protected getLastNamesJson(): string[] {+ /*+ * This is a placeholder for the dictionary-loader to replace with the actual data.+ * See vite-plugins/dictionary-loader.ts for more information.+ */+ return '__LASTNAMES_EN__';+ }+}diff --git a/browser-extension/src/utils/generators/Identity/implementations/IdentityGeneratorNl.ts b/browser-extension/src/utils/generators/Identity/implementations/IdentityGeneratorNl.tsnew file mode 100644index 000000000..53ea8b958--- /dev/null+++ b/browser-extension/src/utils/generators/Identity/implementations/IdentityGeneratorNl.ts@@ -0,0 +1,39 @@+import { BaseIdentityGenerator } from "./base/BaseIdentityGenerator";++/**+ * Identity generator for Dutch language using Dutch word dictionaries.+ */+export class IdentityGeneratorNl extends BaseIdentityGenerator {+ /**+ * Get the male first names.+ */+ protected getFirstNamesMaleJson(): string[] {+ /*+ * This is a placeholder for the dictionary-loader to replace with the actual data.+ * See vite-plugins/dictionary-loader.ts for more information.+ */+ return '__FIRSTNAMES_MALE_NL__';+ }++ /**+ * Get the female first names.+ */+ protected getFirstNamesFemaleJson(): string[] {+ /*+ * This is a placeholder for the dictionary-loader to replace with the actual data.+ * See vite-plugins/dictionary-loader.ts for more information.+ */+ return '__FIRSTNAMES_FEMALE_NL__';+ }++ /**+ * Get the last names.+ */+ protected getLastNamesJson(): string[] {+ /*+ * This is a placeholder for the dictionary-loader to replace with the actual data.+ * See vite-plugins/dictionary-loader.ts for more information.+ */+ return '__LASTNAMES_NL__';+ }+}diff --git a/browser-extension/src/utils/generators/Identity/implementations/base/BaseIdentityGenerator.ts b/browser-extension/src/utils/generators/Identity/implementations/base/BaseIdentityGenerator.tsnew file mode 100644index 000000000..9453a4ac4--- /dev/null+++ b/browser-extension/src/utils/generators/Identity/implementations/base/BaseIdentityGenerator.ts@@ -0,0 +1,75 @@+import { UsernameEmailGenerator } from '../../UsernameEmailGenerator';+import { Gender } from '../../types/Gender';+import { IIdentityGenerator } from '../../interfaces/IIdentityGenerator';+import { Identity } from '../../types/Identity';++/**+ * Base identity generator.+ */+export abstract class BaseIdentityGenerator implements IIdentityGenerator {+ protected firstNamesMale: string[] = [];+ protected firstNamesFemale: string[] = [];+ protected lastNames: string[] = [];+ private readonly random = Math.random;++ /**+ * Constructor.+ */+ public constructor() {+ // Each implementing class should provide these as static JSON strings+ this.firstNamesMale = this.getFirstNamesMaleJson();+ this.firstNamesFemale = this.getFirstNamesFemaleJson();+ this.lastNames = this.getLastNamesJson();+ }++ protected abstract getFirstNamesMaleJson(): string[];+ protected abstract getFirstNamesFemaleJson(): string[];+ protected abstract getLastNamesJson(): string[];++ /**+ * Generate a random date of birth.+ */+ protected generateRandomDateOfBirth(): Date {+ const today = new Date();+ const minAge = 21;+ const maxAge = 65;++ const minDate = new Date(today.getFullYear() - maxAge, today.getMonth(), today.getDate());+ const maxDate = new Date(today.getFullYear() - minAge, today.getMonth(), today.getDate());++ const timestamp = minDate.getTime() + (this.random() * (maxDate.getTime() - minDate.getTime()));+ return new Date(timestamp);+ }++ /**+ * Generate a random identity.+ */+ public async generateRandomIdentity(): Promise<Identity> {+ const identity: Identity = {+ firstName: '',+ lastName: '',+ gender: Gender.Male,+ birthDate: new Date(),+ emailPrefix: '',+ nickName: ''+ };++ // Determine gender+ if (this.random() < 0.5) {+ identity.firstName = this.firstNamesMale[Math.floor(this.random() * this.firstNamesMale.length)];+ identity.gender = Gender.Male;+ } else {+ identity.firstName = this.firstNamesFemale[Math.floor(this.random() * this.firstNamesFemale.length)];+ identity.gender = Gender.Female;+ }++ identity.lastName = this.lastNames[Math.floor(this.random() * this.lastNames.length)];+ identity.birthDate = this.generateRandomDateOfBirth();++ const generator = new UsernameEmailGenerator();+ identity.emailPrefix = generator.generateEmailPrefix(identity);+ identity.nickName = generator.generateUsername(identity);++ return identity;+ }+}\ No newline at end of filediff --git a/browser-extension/src/utils/generators/Identity/interfaces/IIdentityGenerator.ts b/browser-extension/src/utils/generators/Identity/interfaces/IIdentityGenerator.tsnew file mode 100644index 000000000..437622b51--- /dev/null+++ b/browser-extension/src/utils/generators/Identity/interfaces/IIdentityGenerator.ts@@ -0,0 +1,5 @@+import { Identity } from "../types/Identity";++export interface IIdentityGenerator {+ generateRandomIdentity(): Promise<Identity>;+}diff --git a/browser-extension/src/utils/generators/Identity/types/Gender.ts b/browser-extension/src/utils/generators/Identity/types/Gender.tsnew file mode 100644index 000000000..631f6e3c8--- /dev/null+++ b/browser-extension/src/utils/generators/Identity/types/Gender.ts@@ -0,0 +1,5 @@+export enum Gender {+ Male = 'Male',+ Female = 'Female',+ Other = 'Other'+ }diff --git a/browser-extension/src/utils/generators/Identity/types/Identity.ts b/browser-extension/src/utils/generators/Identity/types/Identity.tsnew file mode 100644index 000000000..738b8ee83--- /dev/null+++ b/browser-extension/src/utils/generators/Identity/types/Identity.ts@@ -0,0 +1,13 @@+import { Gender } from './Gender';++/**+ * Identity.+ */+export type Identity = {+ firstName: string;+ lastName: string;+ gender: Gender;+ birthDate: Date;+ emailPrefix: string;+ nickName: string;+ }\ No newline at end of filediff --git a/browser-extension/src/utils/generators/Password/PasswordGenerator.ts b/browser-extension/src/utils/generators/Password/PasswordGenerator.tsnew file mode 100644index 000000000..c026d06ff--- /dev/null+++ b/browser-extension/src/utils/generators/Password/PasswordGenerator.ts@@ -0,0 +1,134 @@+/**+ * Generate a random password.+ */+export class PasswordGenerator {+ private readonly lowercaseChars = 'abcdefghijklmnopqrstuvwxyz';+ private readonly uppercaseChars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';+ private readonly numberChars = '0123456789';+ private readonly specialChars = '!@#$%^&*()_+-=[]{}|;:,.<>?';++ private length: number = 18;+ private useLowercase: boolean = true;+ private useUppercase: boolean = true;+ private useNumbers: boolean = true;+ private useSpecial: boolean = true;++ /**+ * Set the length of the password.+ */+ public setLength(length: number): this {+ this.length = length;+ return this;+ }++ /**+ * Set if lowercase letters should be used.+ */+ public useLowercaseLetters(use: boolean): this {+ this.useLowercase = use;+ return this;+ }++ /**+ * Set if uppercase letters should be used.+ */+ public useUppercaseLetters(use: boolean): this {+ this.useUppercase = use;+ return this;+ }++ /**+ * Set if numeric characters should be used.+ */+ public useNumericCharacters(use: boolean): this {+ this.useNumbers = use;+ return this;+ }++ /**+ * Set if special characters should be used.+ */+ public useSpecialCharacters(use: boolean): this {+ this.useSpecial = use;+ return this;+ }++ /**+ * Get a random index from the crypto module.+ */+ private getUnbiasedRandomIndex(max: number): number {+ // Calculate the largest multiple of max that fits within Uint32+ const limit = Math.floor((2 ** 32) / max) * max;++ while (true) {+ const array = new Uint32Array(1);+ crypto.getRandomValues(array);+ const value = array[0];++ // Reject values that would introduce bias+ if (value < limit) {+ return value % max;+ }+ }+ }++ /**+ * Generate a random password.+ */+ public generateRandomPassword(): string {+ let chars = '';+ let password = '';++ // Build character set based on options+ if (this.useLowercase) {+ chars += this.lowercaseChars;+ }+ if (this.useUppercase) {+ chars += this.uppercaseChars;+ }+ if (this.useNumbers) {+ chars += this.numberChars;+ }+ if (this.useSpecial) {+ chars += this.specialChars;+ }++ // Ensure at least one character set is selected+ if (chars.length === 0) {+ chars = this.lowercaseChars;+ }++ // Generate password+ for (let i = 0; i < this.length; i++) {+ password += chars[this.getUnbiasedRandomIndex(chars.length)];+ }++ // Ensure password contains at least one character from each selected set+ if (this.useLowercase && !/[a-z]/.exec(password)) {+ const pos = this.getUnbiasedRandomIndex(this.length);+ password = password.substring(0, pos) ++ this.lowercaseChars[this.getUnbiasedRandomIndex(this.lowercaseChars.length)] ++ password.substring(pos + 1);+ }+ if (this.useUppercase && !/[A-Z]/.exec(password)) {+ const pos = this.getUnbiasedRandomIndex(this.length);+ password = password.substring(0, pos) ++ this.uppercaseChars[this.getUnbiasedRandomIndex(this.uppercaseChars.length)] ++ password.substring(pos + 1);+ }+ if (this.useNumbers && !/\d/.exec(password)) {+ const pos = this.getUnbiasedRandomIndex(this.length);+ password = password.substring(0, pos) ++ this.numberChars[this.getUnbiasedRandomIndex(this.numberChars.length)] ++ password.substring(pos + 1);+ }+ if (this.useSpecial && !/[!@#$%^&*()_+\-=[\]{}|;:,.<>?]/.exec(password)) {+ const pos = this.getUnbiasedRandomIndex(this.length);+ password = password.substring(0, pos) ++ this.specialChars[this.getUnbiasedRandomIndex(this.specialChars.length)] ++ password.substring(pos + 1);+ }++ return password;+ }+}diff --git a/browser-extension/src/utils/generators/Password/__tests__/PasswordGenerator.test.ts b/browser-extension/src/utils/generators/Password/__tests__/PasswordGenerator.test.tsnew file mode 100644index 000000000..385f39dc2--- /dev/null+++ b/browser-extension/src/utils/generators/Password/__tests__/PasswordGenerator.test.ts@@ -0,0 +1,106 @@+import { PasswordGenerator } from '../PasswordGenerator';+import { describe, it, expect, beforeEach } from 'vitest';++describe('PasswordGenerator', () => {+ let generator: PasswordGenerator;++ beforeEach(() => {+ generator = new PasswordGenerator();+ });++ it('generates password with default settings', () => {+ const password = generator.generateRandomPassword();++ // Default length is 18+ expect(password.length).toBe(18);++ // Should contain at least one of each character type by default+ expect(password).toMatch(/[a-z]/); // lowercase+ expect(password).toMatch(/[A-Z]/); // uppercase+ expect(password).toMatch(/[0-9]/); // numbers+ expect(password).toMatch(/[!@#$%^&*()_+\-=[\]{}|;:,.<>?]/); // special+ });++ it('respects custom length setting', () => {+ const customLength = 24;+ const password = generator.setLength(customLength).generateRandomPassword();+ expect(password.length).toBe(customLength);+ });++ it('respects lowercase setting', () => {+ const password = generator.useLowercaseLetters(false).generateRandomPassword();+ expect(password).not.toMatch(/[a-z]/);+ });++ it('respects uppercase setting', () => {+ const password = generator.useUppercaseLetters(false).generateRandomPassword();+ expect(password).not.toMatch(/[A-Z]/);+ });++ it('respects numbers setting', () => {+ const password = generator.useNumericCharacters(false).generateRandomPassword();+ expect(password).not.toMatch(/[0-9]/);+ });++ it('respects special characters setting', () => {+ const password = generator.useSpecialCharacters(false).generateRandomPassword();+ expect(password).not.toMatch(/[!@#$%^&*()_+\-=[\]{}|;:,.<>?]/);+ });++ it('generates different passwords on subsequent calls', () => {+ const password1 = generator.generateRandomPassword();+ const password2 = generator.generateRandomPassword();+ expect(password1).not.toBe(password2);+ });++ it('handles minimum character requirements', () => {+ let hasLower = false;+ let hasUpper = false;+ let hasNumber = false;+ let hasSpecial = false;++ // Generate 20 passwords and check if at least one contains all required characters+ for (let i = 0; i < 20; i++) {+ const password = generator.generateRandomPassword();++ hasLower = hasLower || /[a-z]/.test(password);+ hasUpper = hasUpper || /[A-Z]/.test(password);+ hasNumber = hasNumber || /[0-9]/.test(password);+ hasSpecial = hasSpecial || /[!@#$%^&*()_+\-=[\]{}|;:,.<>?]/.test(password);++ // Break early if we've found all character types+ if (hasLower && hasUpper && hasNumber && hasSpecial) {+ break;+ }+ }++ // Assert that we found at least one password with each character type+ expect(hasLower).toBe(true);+ expect(hasUpper).toBe(true);+ expect(hasNumber).toBe(true);+ expect(hasSpecial).toBe(true);+ });++ it('falls back to lowercase when all options disabled', () => {+ const password = generator+ .useLowercaseLetters(false)+ .useUppercaseLetters(false)+ .useNumericCharacters(false)+ .useSpecialCharacters(false)+ .generateRandomPassword();++ // Should fall back to lowercase+ expect(password).toMatch(/^[a-z]+$/);+ });++ it('maintains method chaining', () => {+ const result = generator+ .setLength(20)+ .useLowercaseLetters(true)+ .useUppercaseLetters(true)+ .useNumericCharacters(true)+ .useSpecialCharacters(true);++ expect(result).toBe(generator);+ });+});\ No newline at end of filediff --git a/browser-extension/src/utils/types/Credential.ts b/browser-extension/src/utils/types/Credential.tsnew file mode 100644index 000000000..c495f8685--- /dev/null+++ b/browser-extension/src/utils/types/Credential.ts@@ -0,0 +1,23 @@+import { Gender } from "../generators/Identity/types/Gender";++/**+ * Credential SQLite database type.+ */+export type Credential = {+ Id: string;+ Username: string;+ Password: string;+ Email: string;+ ServiceName: string;+ ServiceUrl?: string;+ Logo?: Uint8Array | number[];+ Notes?: string;+ Alias: {+ FirstName: string;+ LastName: string;+ NickName?: string;+ BirthDate: string;+ Gender?: Gender;+ Email?: string;+ };+}\ No newline at end of filediff --git a/browser-extension/src/utils/types/EncryptionKey.ts b/browser-extension/src/utils/types/EncryptionKey.tsnew file mode 100644index 000000000..7dc64d603--- /dev/null+++ b/browser-extension/src/utils/types/EncryptionKey.ts@@ -0,0 +1,9 @@+/**+ * Encryption key SQLite database type.+ */+export type EncryptionKey = {+ Id: string;+ PublicKey: string;+ PrivateKey: string;+ IsPrimary: boolean;+}diff --git a/browser-extension/src/utils/types/webapi/Attachment.ts b/browser-extension/src/utils/types/webapi/Attachment.tsnew file mode 100644index 000000000..cd74065fe--- /dev/null+++ b/browser-extension/src/utils/types/webapi/Attachment.ts@@ -0,0 +1,19 @@+/**+ * Email attachment type.+ */+export type Attachment = {+ /** The ID of the attachment */+ id: number;++ /** The ID of the email the attachment belongs to */+ emailId: number;++ /** The filename of the attachment */+ filename: string;++ /** The MIME type of the attachment */+ mimeType: string;++ /** The size of the attachment in bytes */+ filesize: number;+}\ No newline at end of filediff --git a/browser-extension/src/utils/types/webapi/Email.ts b/browser-extension/src/utils/types/webapi/Email.tsnew file mode 100644index 000000000..f88518999--- /dev/null+++ b/browser-extension/src/utils/types/webapi/Email.ts@@ -0,0 +1,51 @@+import { Attachment } from "./Attachment";++export type Email = {+ /** The body of the email message */+ messageHtml: string;++ /** The plain text body of the email message */+ messagePlain: string;++ /** The ID of the email */+ id: number;++ /** The subject of the email */+ subject: string;++ /** The display name of the sender */+ fromDisplay: string;++ /** The domain of the sender's email address */+ fromDomain: string;++ /** The local part of the sender's email address */+ fromLocal: string;++ /** The domain of the recipient's email address */+ toDomain: string;++ /** The local part of the recipient's email address */+ toLocal: string;++ /** The date of the email */+ date: string;++ /** The system date of the email */+ dateSystem: string;++ /** The number of seconds ago the email was received */+ secondsAgo: number;++ /**+ * The encrypted symmetric key which was used to encrypt the email message.+ * This key is encrypted with the public key of the user.+ */+ encryptedSymmetricKey: string;++ /** The public key of the user used to encrypt the symmetric key */+ encryptionKey: string;++ /** The attachments of the email */+ attachments: Attachment[];+}diff --git a/browser-extension/src/utils/types/webapi/Login.ts b/browser-extension/src/utils/types/webapi/Login.tsnew file mode 100644index 000000000..40a0822d8--- /dev/null+++ b/browser-extension/src/utils/types/webapi/Login.ts@@ -0,0 +1,16 @@+/**+ * Login request type.+ */+export type LoginRequest = {+ username: string;+}++/**+ * Login response type.+ */+export type LoginResponse = {+ salt: string;+ serverEphemeral: string;+ encryptionType: string;+ encryptionSettings: string;+}diff --git a/browser-extension/src/utils/types/webapi/MailboxBulk.ts b/browser-extension/src/utils/types/webapi/MailboxBulk.tsnew file mode 100644index 000000000..775b8c56d--- /dev/null+++ b/browser-extension/src/utils/types/webapi/MailboxBulk.ts@@ -0,0 +1,21 @@+import { MailboxEmail } from "./MailboxEmail";++/**+ * Mailbox bulk request type.+ */+export type MailboxBulkRequest = {+ addresses: string[];+ page: number;+ pageSize: number;+}++/**+ * Mailbox bulk response type.+ */+export type MailboxBulkResponse = {+ addresses: string[];+ currentPage: number;+ pageSize: number;+ totalRecords: number;+ mails: MailboxEmail[];+}\ No newline at end of filediff --git a/browser-extension/src/utils/types/webapi/MailboxEmail.ts b/browser-extension/src/utils/types/webapi/MailboxEmail.tsnew file mode 100644index 000000000..dd15b9ae4--- /dev/null+++ b/browser-extension/src/utils/types/webapi/MailboxEmail.ts@@ -0,0 +1,46 @@+export type MailboxEmail = {+ /** The preview of the email message */+ messagePreview: string;++ /** Indicates whether the email has attachments */+ hasAttachments: boolean;++ /** The ID of the email */+ id: number;++ /** The subject of the email */+ subject: string;++ /** The display name of the sender */+ fromDisplay: string;++ /** The domain of the sender's email address */+ fromDomain: string;++ /** The local part of the sender's email address */+ fromLocal: string;++ /** The domain of the recipient's email address */+ toDomain: string;++ /** The local part of the recipient's email address */+ toLocal: string;++ /** The date of the email */+ date: string;++ /** The system date of the email */+ dateSystem: string;++ /** The number of seconds ago the email was received */+ secondsAgo: number;++ /**+ * The encrypted symmetric key which was used to encrypt the email message.+ * This key is encrypted with the public key of the user.+ */+ encryptedSymmetricKey: string;++ /** The public key of the user used to encrypt the symmetric key */+ encryptionKey: string;+}\ No newline at end of filediff --git a/browser-extension/src/utils/types/webapi/StatusResponse.ts b/browser-extension/src/utils/types/webapi/StatusResponse.tsnew file mode 100644index 000000000..53d4181f0--- /dev/null+++ b/browser-extension/src/utils/types/webapi/StatusResponse.ts@@ -0,0 +1,8 @@+/**+ * Status response type.+ */+export type StatusResponse = {+ clientVersionSupported: boolean;+ serverVersion: string;+ vaultRevision: number;+}diff --git a/browser-extension/src/utils/types/webapi/ValidateLogin.ts b/browser-extension/src/utils/types/webapi/ValidateLogin.tsnew file mode 100644index 000000000..e64eaf216--- /dev/null+++ b/browser-extension/src/utils/types/webapi/ValidateLogin.ts@@ -0,0 +1,32 @@+/**+ * Validate login request type.+ */+export type ValidateLoginRequest = {+ username: string;+ rememberMe: boolean;+ clientPublicEphemeral: string;+ clientSessionProof: string;+}++/**+ * Validate login request type for 2FA.+ */+export type ValidateLoginRequest2Fa = {+ username: string;+ code2Fa: number;+ rememberMe: boolean;+ clientPublicEphemeral: string;+ clientSessionProof: string;+}++/**+ * Validate login response type.+ */+export type ValidateLoginResponse = {+ requiresTwoFactor: boolean;+ token?: {+ token: string;+ refreshToken: string;+ };+ serverSessionProof: string;+ }\ No newline at end of filediff --git a/browser-extension/src/utils/types/webapi/Vault.ts b/browser-extension/src/utils/types/webapi/Vault.tsnew file mode 100644index 000000000..e318aa196--- /dev/null+++ b/browser-extension/src/utils/types/webapi/Vault.ts@@ -0,0 +1,17 @@+/**+ * Vault type.+ */+export type Vault = {+ blob: string;+ createdAt: string;+ credentialsCount: number;+ currentRevisionNumber: number;+ emailAddressList: string[];+ privateEmailDomainList: string[];+ publicEmailDomainList: string[];+ encryptionPublicKey: string;+ updatedAt: string;+ username: string;+ version: string;+ client: string;+}\ No newline at end of filediff --git a/browser-extension/src/utils/types/webapi/VaultPostResponse.ts b/browser-extension/src/utils/types/webapi/VaultPostResponse.tsnew file mode 100644index 000000000..33de71718--- /dev/null+++ b/browser-extension/src/utils/types/webapi/VaultPostResponse.ts@@ -0,0 +1,7 @@+/**+ * Vault post response type returned after uploading a new vault to the server.+ */+export type VaultPostResponse = {+ status: number;+ newRevisionNumber: number;+}\ No newline at end of filediff --git a/browser-extension/src/utils/types/webapi/VaultResponse.ts b/browser-extension/src/utils/types/webapi/VaultResponse.tsnew file mode 100644index 000000000..06207affb--- /dev/null+++ b/browser-extension/src/utils/types/webapi/VaultResponse.ts@@ -0,0 +1,9 @@+import { Vault } from "./Vault";++/**+ * Vault response type.+ */+export type VaultResponse = {+ status: number;+ vault: Vault;+}\ No newline at end of filediff --git a/browser-extension/tailwind.config.js b/browser-extension/tailwind.config.jsnew file mode 100644index 000000000..c5f423310--- /dev/null+++ b/browser-extension/tailwind.config.js@@ -0,0 +1,27 @@+/** @type {import('tailwindcss').Config} */+export default {+ content: [+ "./src/entrypoints/*.{js,jsx,ts,tsx}",+ "./src/entrypoints/**/*.{js,jsx,ts,tsx}",+ "./src/entrypoints/**/*/*.{html,js}"+ ],+ theme: {+ extend: {+ colors: {+ primary: {+ "900": "#7b4a1e",+ "800": "#9a5d26",+ "700": "#b8702f",+ "600": "#d68338",+ "500": "#f49541",+ "400": "#f6a752",+ "300": "#f8b963",+ "200": "#fbcb74",+ "100": "#fdde85",+ "50": "#ffe096"+ }+ }+ }+ },+ plugins: [],+}\ No newline at end of filediff --git a/browser-extension/tsconfig.json b/browser-extension/tsconfig.jsonnew file mode 100644index 000000000..9b364da1d--- /dev/null+++ b/browser-extension/tsconfig.json@@ -0,0 +1,7 @@+{+ "extends": "./.wxt/tsconfig.json",+ "compilerOptions": {+ "allowImportingTsExtensions": true,+ "jsx": "react-jsx"+ }+}diff --git a/browser-extension/wxt.config.ts b/browser-extension/wxt.config.tsnew file mode 100644index 000000000..d74b661d5--- /dev/null+++ b/browser-extension/wxt.config.ts@@ -0,0 +1,45 @@+import { defineConfig } from 'wxt';+import { viteStaticCopy } from 'vite-plugin-static-copy';++// See https://wxt.dev/api/config.html+export default defineConfig({+ manifest: {+ name: "AliasVault",+ description: "AliasVault Browser AutoFill Extension. Keeping your personal information private.",+ version: "0.12.3",+ content_security_policy: {+ extension_pages: "script-src 'self' 'wasm-unsafe-eval'; object-src 'self';"+ },+ action: {+ default_title: "AliasVault"+ },+ permissions: [+ "storage",+ "activeTab",+ "contextMenus",+ "scripting"+ ],+ host_permissions: [+ "<all_urls>"+ ]+ },+ extensionApi: 'chrome',+ modules: ['@wxt-dev/module-react'],+ srcDir: 'src',+ vite: () => ({+ plugins: [+ viteStaticCopy({+ targets: [+ {+ src: 'node_modules/argon2-browser/dist/argon2.wasm',+ dest: 'src'+ },+ {+ src: 'node_modules/sql.js/dist/sql-wasm.wasm',+ dest: 'src'+ }+ ]+ })+ ],+ }),+});