(https://wooorm.com)"
+ ],
+ "dependencies": {
+ "character-entities": "^2.0.0"
+ },
+ "description": "Decode named character references",
+ "devDependencies": {
+ "@types/node": "^25.0.0",
+ "c8": "^10.0.0",
+ "prettier": "^3.0.0",
+ "remark-cli": "^12.0.0",
+ "remark-preset-wooorm": "^11.0.0",
+ "type-coverage": "^2.0.0",
+ "typescript": "^5.0.0",
+ "xo": "^1.0.0"
+ },
+ "exports": {
+ "convex": "./index.js",
+ "deno": "./index.js",
+ "edge-light": "./index.js",
+ "react-native": "./index.js",
+ "worker": "./index.js",
+ "workerd": "./index.js",
+ "browser": "./index.dom.js",
+ "default": "./index.js"
+ },
+ "files": [
+ "index.d.ts.map",
+ "index.d.ts",
+ "index.dom.d.ts.map",
+ "index.dom.d.ts",
+ "index.dom.js",
+ "index.js"
+ ],
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ },
+ "keywords": [
+ "character",
+ "decode",
+ "named",
+ "references"
+ ],
+ "license": "MIT",
+ "main#": "to do: next major: remove field",
+ "main": "index.js",
+ "name": "decode-named-character-reference",
+ "prettier": {
+ "bracketSpacing": false,
+ "semi": false,
+ "singleQuote": true,
+ "tabWidth": 2,
+ "trailingComma": "none",
+ "useTabs": false
+ },
+ "remarkConfig": {
+ "plugins": [
+ "remark-preset-wooorm"
+ ]
+ },
+ "repository": "wooorm/decode-named-character-reference",
+ "scripts": {
+ "build": "tsc --build --clean && tsc --build && type-coverage",
+ "format": "remark --frail --output --quiet -- . && prettier --log-level warn --write -- . && xo --fix",
+ "test-api": "node --conditions development test.js",
+ "test-coverage": "c8 --100 --reporter lcov -- npm run test-api",
+ "test": "npm run build && npm run format && npm run test-coverage"
+ },
+ "sideEffects": false,
+ "typeCoverage": {
+ "atLeast": 100,
+ "ignoreCatch": true
+ },
+ "types#": "to do: next major: remove field",
+ "types": "index.d.ts",
+ "type": "module",
+ "version": "1.3.0",
+ "xo": {
+ "prettier": true,
+ "rules": {
+ "unicorn/prefer-code-point": "off"
+ },
+ "space": true
+ }
+}
diff --git a/tools/ui/node_modules/decode-named-character-reference/readme.md b/tools/ui/node_modules/decode-named-character-reference/readme.md
new file mode 100644
index 0000000000000000000000000000000000000000..a0c8199e7351688f9aca2ad191209ab70eb84847
--- /dev/null
+++ b/tools/ui/node_modules/decode-named-character-reference/readme.md
@@ -0,0 +1,136 @@
+# decode-named-character-reference
+
+[![Build Status][build-badge]][build]
+[![Coverage Status][coverage-badge]][coverage]
+[![Downloads][downloads-badge]][downloads]
+[![Size][size-badge]][size]
+
+Decode named character references.
+
+## Contents
+
+* [What is this?](#what-is-this)
+* [When should I use this?](#when-should-i-use-this)
+* [Install](#install)
+* [Use](#use)
+* [API](#api)
+ * [`decodeNamedCharacterReference(value)`](#decodenamedcharacterreferencevalue)
+* [Types](#types)
+* [Compatibility](#compatibility)
+* [Security](#security)
+* [Related](#related)
+* [Contribute](#contribute)
+* [License](#license)
+
+## What is this?
+
+A workaround for webpack.
+
+## When should I use this?
+
+Never use this.
+Use [`parse-entities`][parse-entities].
+It uses this.
+
+## Install
+
+This package is [ESM only][esm].
+In Node.js (version 14.14+, 16.0+), install with [npm][]:
+
+```sh
+npm install decode-named-character-reference
+```
+
+In Deno with [`esm.sh`][esmsh]:
+
+```js
+import {decodeNamedCharacterReference} from 'https://esm.sh/decode-named-character-reference@1'
+```
+
+In browsers with [`esm.sh`][esmsh]:
+
+```html
+
+```
+
+## Use
+
+```js
+import {decodeNamedCharacterReference} from 'decode-named-character-reference'
+
+decodeNamedCharacterReference('amp') //=> '&'
+```
+
+## API
+
+This package exports the identifier `decodeNamedCharacterReference`.
+There is no default export.
+
+### `decodeNamedCharacterReference(value)`
+
+Again, use [`parse-entities`][parse-entities].
+
+## Types
+
+This package is fully typed with [TypeScript][].
+It exports no additional types.
+
+## Compatibility
+
+This package is at least compatible with all maintained versions of Node.js.
+As of now, that is Node.js 14.14+ and 16.0+.
+It also works in Deno and modern browsers.
+
+## Security
+
+This package is safe.
+
+## Related
+
+* [`parse-entities`][parse-entities]
+ — parse (decode) HTML character references
+
+## Contribute
+
+Yes please!
+See [How to Contribute to Open Source][contribute].
+
+## License
+
+[MIT][license] © [Titus Wormer][author]
+
+
+
+[author]: https://wooorm.com
+
+[build]: https://github.com/wooorm/decode-named-character-reference/actions
+
+[build-badge]: https://github.com/wooorm/decode-named-character-reference/workflows/main/badge.svg
+
+[contribute]: https://opensource.guide/how-to-contribute/
+
+[coverage]: https://codecov.io/github/wooorm/decode-named-character-reference
+
+[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/decode-named-character-reference.svg
+
+[downloads]: https://www.npmjs.com/package/decode-named-character-reference
+
+[downloads-badge]: https://img.shields.io/npm/dm/decode-named-character-reference.svg
+
+[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
+
+[esmsh]: https://esm.sh
+
+[license]: license
+
+[npm]: https://docs.npmjs.com/cli/install
+
+[parse-entities]: https://github.com/wooorm/parse-entities
+
+[size]: https://bundlephobia.com/result?p=decode-named-character-reference
+
+[size-badge]: https://img.shields.io/bundlephobia/minzip/decode-named-character-reference.svg
+
+[typescript]: https://www.typescriptlang.org
diff --git a/tools/ui/node_modules/dedent-js/LICENSE b/tools/ui/node_modules/dedent-js/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..0e15fd81631dc1a8581c9ee59e80ff503dd1270c
--- /dev/null
+++ b/tools/ui/node_modules/dedent-js/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2015 Martin Kolárik
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/tools/ui/node_modules/dedent-js/README.md b/tools/ui/node_modules/dedent-js/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..1b042bb81d842045845f2d05f4fe8a51068ee172
--- /dev/null
+++ b/tools/ui/node_modules/dedent-js/README.md
@@ -0,0 +1,70 @@
+# dedent-js
+
+Removes indentation from multiline strings. Works with both tabs and spaces.
+
+## Installation
+
+```
+$ npm install dedent-js
+```
+
+## Usage
+
+```js
+// Dedent can be also used as a function.
+expect(dedent`Line #1
+ Line #2
+ Line #3`).to.equal('Line #1\nLine #2\nLine #3');
+
+// Leading/trailing line break is removed.
+expect(
+ dedent`
+ Line #1
+ Line #2
+ Line #3
+ `
+).to.equal('Line #1\nLine #2\nLine #3');
+
+// No more than one leading/trailing line break is removed.
+expect(
+ dedent`
+
+ Line #1
+ Line #2
+ Line #3
+
+ `
+).to.equal('\nLine #1\nLine #2\nLine #3\n');
+
+// Only the "base" indentation is removed.
+expect(
+ dedent`
+ Line #1
+ Line #2
+ Line #3
+ `
+).to.equal('Line #1\n\tLine #2\n\t\tLine #3');
+
+// The last line is ignored if it doesn't contain anything else than whitespace.
+expect(
+ function () {
+ return dedent`
+ Line #1
+ Line #2
+ Line #3
+ `;
+ }()
+).to.equal('Line #1\nLine #2\nLine #3');
+
+// Escaped characters are NOT ignored.
+expect(
+ dedent`
+ \tLine #1
+ \tLine #2
+ \tLine #3
+ `
+).to.equal('Line #1\nLine #2\nLine #3');
+```
+
+## License
+Copyright (c) 2015 Martin Kolárik. Released under the MIT license.
diff --git a/tools/ui/node_modules/dedent-js/lib/index.d.ts b/tools/ui/node_modules/dedent-js/lib/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..8739b455fb32b7cc69cc7b655fc3db6faa628b54
--- /dev/null
+++ b/tools/ui/node_modules/dedent-js/lib/index.d.ts
@@ -0,0 +1,8 @@
+declare module 'dedent-js' {
+ interface Dedent {
+ (templateStrings: TemplateStringsArray|string, ...values: any[]): string;
+ }
+
+ var dedent: Dedent;
+ export = dedent;
+}
diff --git a/tools/ui/node_modules/dedent-js/lib/index.js b/tools/ui/node_modules/dedent-js/lib/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..8defe58e27bdb9d1d736185ee44f1b461b4fa758
--- /dev/null
+++ b/tools/ui/node_modules/dedent-js/lib/index.js
@@ -0,0 +1,34 @@
+module.exports = function dedent(templateStrings) {
+ var values = [];
+ for (var _i = 1; _i < arguments.length; _i++) {
+ values[_i - 1] = arguments[_i];
+ }
+ var matches = [];
+ var strings = typeof templateStrings === 'string' ? [templateStrings] : templateStrings.slice();
+ // 1. Remove trailing whitespace.
+ strings[strings.length - 1] = strings[strings.length - 1].replace(/\r?\n([\t ]*)$/, '');
+ // 2. Find all line breaks to determine the highest common indentation level.
+ for (var i = 0; i < strings.length; i++) {
+ var match = void 0;
+ if (match = strings[i].match(/\n[\t ]+/g)) {
+ matches.push.apply(matches, match);
+ }
+ }
+ // 3. Remove the common indentation from all strings.
+ if (matches.length) {
+ var size = Math.min.apply(Math, matches.map(function (value) { return value.length - 1; }));
+ var pattern = new RegExp("\n[\t ]{" + size + "}", 'g');
+ for (var i = 0; i < strings.length; i++) {
+ strings[i] = strings[i].replace(pattern, '\n');
+ }
+ }
+ // 4. Remove leading whitespace.
+ strings[0] = strings[0].replace(/^\r?\n/, '');
+ // 5. Perform interpolation.
+ var string = strings[0];
+ for (var i = 0; i < values.length; i++) {
+ string += values[i] + strings[i + 1];
+ }
+ return string;
+};
+//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/tools/ui/node_modules/dedent-js/lib/index.js.map b/tools/ui/node_modules/dedent-js/lib/index.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..d7c0641534e4a5ca6714c7ad62e0b81fd8bd7b03
--- /dev/null
+++ b/tools/ui/node_modules/dedent-js/lib/index.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":["dedent"],"mappings":"AAqCC,AArCD,iBAAS,gBAAiB,eAA4C;IAAEA,gBAAgBA;SAAhBA,WAAgBA,CAAhBA,sBAAgBA,CAAhBA,IAAgBA;QAAhBA,+BAAgBA;;IACvFA,IAAIA,OAAOA,GAAGA,EAAEA,CAACA;IACjBA,IAAIA,OAAOA,GAAGA,OAAOA,eAAeA,KAAKA,QAAQA,GAAGA,CAAEA,eAAeA,CAAEA,GAAGA,eAAeA,CAACA,KAAKA,EAAEA,CAACA;IAGlGA,AADAA,iCAAiCA;IACjCA,OAAOA,CAACA,OAAOA,CAACA,MAAMA,GAAGA,CAACA,CAACA,GAAGA,OAAOA,CAACA,OAAOA,CAACA,MAAMA,GAAGA,CAACA,CAACA,CAACA,OAAOA,CAACA,gBAAgBA,EAAEA,EAAEA,CAACA,CAACA;IAGxFA,AADAA,6EAA6EA;IAC7EA,GAAGA,CAACA,CAACA,GAAGA,CAACA,CAACA,GAAGA,CAACA,EAAEA,CAACA,GAAGA,OAAOA,CAACA,MAAMA,EAAEA,CAACA,EAAEA,EAAEA,CAACA;QACzCA,IAAIA,KAAKA,SAAAA,CAACA;QAEVA,EAAEA,CAACA,CAACA,KAAKA,GAAGA,OAAOA,CAACA,CAACA,CAACA,CAACA,KAAKA,CAACA,WAAWA,CAACA,CAACA,CAACA,CAACA;YAC3CA,OAAOA,CAACA,IAAIA,OAAZA,OAAOA,EAASA,KAAKA,CAACA,CAACA;QACxBA,CAACA;IACFA,CAACA;IAGDA,AADAA,qDAAqDA;IACrDA,EAAEA,CAACA,CAACA,OAAOA,CAACA,MAAMA,CAACA,CAACA,CAACA;QACpBA,IAAIA,IAAIA,GAAGA,IAAIA,CAACA,GAAGA,OAARA,IAAIA,EAAQA,OAAOA,CAACA,GAAGA,CAACA,UAAAA,KAAKA,IAAIA,OAAAA,KAAKA,CAACA,MAAMA,GAAGA,CAACA,EAAhBA,CAAgBA,CAACA,CAACA,CAACA;QAC/DA,IAAIA,OAAOA,GAAGA,IAAIA,MAAMA,CAACA,aAAWA,IAAIA,MAAGA,EAAEA,GAAGA,CAACA,CAACA;QAElDA,GAAGA,CAACA,CAACA,GAAGA,CAACA,CAACA,GAAGA,CAACA,EAAEA,CAACA,GAAGA,OAAOA,CAACA,MAAMA,EAAEA,CAACA,EAAEA,EAAEA,CAACA;YACzCA,OAAOA,CAACA,CAACA,CAACA,GAAGA,OAAOA,CAACA,CAACA,CAACA,CAACA,OAAOA,CAACA,OAAOA,EAAEA,IAAIA,CAACA,CAACA;QAChDA,CAACA;IACFA,CAACA;IAGDA,AADAA,gCAAgCA;IAChCA,OAAOA,CAACA,CAACA,CAACA,GAAGA,OAAOA,CAACA,CAACA,CAACA,CAACA,OAAOA,CAACA,QAAQA,EAAEA,EAAEA,CAACA,CAACA;IAG9CA,AADAA,4BAA4BA;QACxBA,MAAMA,GAAGA,OAAOA,CAACA,CAACA,CAACA,CAACA;IAExBA,GAAGA,CAACA,CAACA,GAAGA,CAACA,CAACA,GAAGA,CAACA,EAAEA,CAACA,GAAGA,MAAMA,CAACA,MAAMA,EAAEA,CAACA,EAAEA,EAAEA,CAACA;QACxCA,MAAMA,IAAIA,MAAMA,CAACA,CAACA,CAACA,GAAGA,OAAOA,CAACA,CAACA,GAAGA,CAACA,CAACA,CAACA;IACtCA,CAACA;IAEDA,MAAMA,CAACA,MAAMA,CAACA;AACfA,CAACA,CAAA"}
\ No newline at end of file
diff --git a/tools/ui/node_modules/dedent-js/package.json b/tools/ui/node_modules/dedent-js/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..36833e122fd3140b6a8762c15c1cf0647c88ba9a
--- /dev/null
+++ b/tools/ui/node_modules/dedent-js/package.json
@@ -0,0 +1,44 @@
+{
+ "name": "dedent-js",
+ "description": "Remove indentation from multiline strings",
+ "version": "1.0.1",
+ "homepage": "https://github.com/MartinKolarik/dedent-js/",
+ "github": "https://github.com/MartinKolarik/dedent-js/",
+ "main": "lib/index.js",
+ "keywords": [
+ "multiline strings",
+ "template literals",
+ "template strings",
+ "dedent",
+ "deintend",
+ "indentation",
+ "es6",
+ "harmony"
+ ],
+ "author": {
+ "name": "Martin Kolárik",
+ "email": "martin@kolarik.sk",
+ "url": "https://kolarik.me"
+ },
+ "license": "MIT",
+ "devDependencies": {
+ "chai": "~3.2",
+ "babel": "~5.8",
+ "mocha": "~2.3",
+ "typescript": "~1.6"
+ },
+ "scripts": {
+ "build": "tsc",
+ "test": "babel test/tests.es6 --out-file test/tests.js && mocha test"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/MartinKolarik/dedent-js.git"
+ },
+ "bugs": {
+ "url": "https://github.com/MartinKolarik/dedent-js/issues/"
+ },
+ "typescript": {
+ "definition": "./lib/index.d.ts"
+ }
+}
diff --git a/tools/ui/node_modules/dedent-js/tsconfig.json b/tools/ui/node_modules/dedent-js/tsconfig.json
new file mode 100644
index 0000000000000000000000000000000000000000..60d6069e5b117e24e237be137b440d9bfc970d12
--- /dev/null
+++ b/tools/ui/node_modules/dedent-js/tsconfig.json
@@ -0,0 +1,12 @@
+{
+ "compilerOptions": {
+ "module": "commonjs",
+ "outDir": "lib",
+ "sourceMap": true,
+ "target": "ES5",
+ "declaration": true
+ },
+ "files": [
+ "src/index.ts"
+ ]
+}
diff --git a/tools/ui/node_modules/dedent/LICENSE.md b/tools/ui/node_modules/dedent/LICENSE.md
new file mode 100644
index 0000000000000000000000000000000000000000..08520a1e2740fb6923f63950220ad3c50d16399e
--- /dev/null
+++ b/tools/ui/node_modules/dedent/LICENSE.md
@@ -0,0 +1,20 @@
+# MIT License
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/tools/ui/node_modules/dedent/README.md b/tools/ui/node_modules/dedent/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..855a5089411f838c9f224922e5412cad4291c7fd
--- /dev/null
+++ b/tools/ui/node_modules/dedent/README.md
@@ -0,0 +1,244 @@
+dedent
+
+A string tag that strips indentation from multi-line strings. ⬅️
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Usage
+
+```shell
+npm i dedent
+```
+
+```js
+import dedent from "dedent";
+
+function usageExample() {
+ const first = dedent`A string that gets so long you need to break it over
+ multiple lines. Luckily dedent is here to keep it
+ readable without lots of spaces ending up in the string
+ itself.`;
+
+ const second = dedent`
+ Leading and trailing lines will be trimmed, so you can write something like
+ this and have it work as you expect:
+
+ * how convenient it is
+ * that I can use an indented list
+ - and still have it do the right thing
+
+ That's all.
+ `;
+
+ const third = dedent(`
+ Wait! I lied. Dedent can also be used as a function.
+ `);
+
+ return first + "\n\n" + second + "\n\n" + third;
+}
+
+console.log(usageExample());
+```
+
+```plaintext
+A string that gets so long you need to break it over
+multiple lines. Luckily dedent is here to keep it
+readable without lots of spaces ending up in the string
+itself.
+
+Leading and trailing lines will be trimmed, so you can write something like
+this and have it work as you expect:
+
+ * how convenient it is
+ * that I can use an indented list
+ - and still have it do the right thing
+
+That's all.
+
+Wait! I lied. Dedent can also be used as a function.
+```
+
+## Options
+
+You can customize the options `dedent` runs with by calling its `withOptions` method with an object:
+
+
+```js
+import dedent from 'dedent';
+
+dedent.withOptions({ /* ... */ })`input`;
+dedent.withOptions({ /* ... */ })(`input`);
+```
+
+`options` returns a new `dedent` function, so if you'd like to reuse the same options, you can create a dedicated `dedent` function:
+
+
+```js
+import dedent from 'dedent';
+
+const dedenter = dedent.withOptions({ /* ... */ });
+
+dedenter`input`;
+dedenter(`input`);
+```
+
+### `alignValues`
+
+When an interpolation evaluates to a multi-line string, only its first line is placed where the `${...}` appears. Subsequent lines keep whatever indentation they already had inside that value (often none), so they can appear “shifted left”.
+
+Enable `alignValues` to fix that visual jump. When `true`, for every multi-line interpolated value, each line after the first gets extra indentation appended so it starts in the same column as the first line.
+
+```js
+import dedent from "dedent";
+
+const list = dedent`
+ - apples
+ - bananas
+ - cherries
+`;
+
+const withoutAlign = dedent`
+ List without alignValues (default):
+ ${list}
+ Done.
+`;
+
+const withAlign = dedent.withOptions({ alignValues: true })`
+ List with alignValues: true
+ ${list}
+ Done.
+`;
+
+console.log(withoutAlign);
+console.log("---");
+console.log(withAlign);
+```
+
+```plaintext
+List without alignValues (default):
+ - apples
+- bananas
+- cherries
+Done.
+---
+List with alignValues: true
+ - apples
+ - bananas
+ - cherries
+Done.
+```
+
+### `escapeSpecialCharacters`
+
+JavaScript string tags by default add an extra `\` escape in front of some special characters such as `$` dollar signs.
+`dedent` will escape those special characters when called as a string tag.
+
+If you'd like to change the behavior, an `escapeSpecialCharacters` option is available.
+It defaults to:
+
+- `false`: when `dedent` is called as a function
+- `true`: when `dedent` is called as a string tag
+
+```js
+import dedent from "dedent";
+
+// "$hello!"
+dedent`
+ $hello!
+`;
+
+// "\$hello!"
+dedent.withOptions({ escapeSpecialCharacters: false })`
+ $hello!
+`;
+
+// "$hello!"
+dedent.withOptions({ escapeSpecialCharacters: true })`
+ $hello!
+`;
+```
+
+For more context, see [🚀 Feature: Add an option to disable special character escaping](https://github.com/dmnd/dedent/issues/63).
+
+### `trimWhitespace`
+
+By default, dedent will trim leading and trailing whitespace from the overall string.
+
+This can be disabled by setting `trimWhitespace: false`.
+
+```js
+import dedent from "dedent";
+
+// "hello!"
+dedent`
+ hello!
+`;
+
+// "\nhello! \n"
+dedent.withOptions({ trimWhitespace: false })`
+ hello!
+`;
+
+// "hello!"
+dedent.withOptions({ trimWhitespace: true })`
+ hello!
+`;
+```
+
+## License
+
+MIT
+
+## Contributors
+
+
+
+
+
+
+
+
+
+
+
+
+
+> 💙 This package was templated with [create-typescript-app](https://github.com/JoshuaKGoldberg/create-typescript-app).
diff --git a/tools/ui/node_modules/dedent/dist/dedent.d.mts b/tools/ui/node_modules/dedent/dist/dedent.d.mts
new file mode 100644
index 0000000000000000000000000000000000000000..24c8bab9c3b5a7aa6514e01cff657fadb9b6483a
--- /dev/null
+++ b/tools/ui/node_modules/dedent/dist/dedent.d.mts
@@ -0,0 +1,15 @@
+interface DedentOptions {
+ alignValues?: boolean;
+ escapeSpecialCharacters?: boolean;
+ trimWhitespace?: boolean;
+}
+interface Dedent {
+ (literals: string): string;
+ (strings: TemplateStringsArray, ...values: unknown[]): string;
+ withOptions: CreateDedent;
+}
+type CreateDedent = (options: DedentOptions) => Dedent;
+
+declare const dedent: Dedent;
+
+export { CreateDedent, Dedent, DedentOptions, dedent as default };
diff --git a/tools/ui/node_modules/dedent/dist/dedent.d.ts b/tools/ui/node_modules/dedent/dist/dedent.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..24c8bab9c3b5a7aa6514e01cff657fadb9b6483a
--- /dev/null
+++ b/tools/ui/node_modules/dedent/dist/dedent.d.ts
@@ -0,0 +1,15 @@
+interface DedentOptions {
+ alignValues?: boolean;
+ escapeSpecialCharacters?: boolean;
+ trimWhitespace?: boolean;
+}
+interface Dedent {
+ (literals: string): string;
+ (strings: TemplateStringsArray, ...values: unknown[]): string;
+ withOptions: CreateDedent;
+}
+type CreateDedent = (options: DedentOptions) => Dedent;
+
+declare const dedent: Dedent;
+
+export { CreateDedent, Dedent, DedentOptions, dedent as default };
diff --git a/tools/ui/node_modules/dedent/dist/dedent.js b/tools/ui/node_modules/dedent/dist/dedent.js
new file mode 100644
index 0000000000000000000000000000000000000000..5c8cdc95c3e175294c2c1620262c825543ad22dd
--- /dev/null
+++ b/tools/ui/node_modules/dedent/dist/dedent.js
@@ -0,0 +1,105 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+const dedent = createDedent({});
+var _default = exports.default = dedent;
+function createDedent(options) {
+ dedent.withOptions = newOptions => createDedent({
+ ...options,
+ ...newOptions
+ });
+ return dedent;
+ function dedent(strings, ...values) {
+ const raw = typeof strings === "string" ? [strings] : strings.raw;
+ const {
+ alignValues = false,
+ escapeSpecialCharacters = Array.isArray(strings),
+ trimWhitespace = true
+ } = options;
+
+ // first, perform interpolation
+ let result = "";
+ for (let i = 0; i < raw.length; i++) {
+ let next = raw[i];
+ if (escapeSpecialCharacters) {
+ // handle escaped newlines, backticks, and interpolation characters
+ next = next.replace(/\\\n[ \t]*/g, "").replace(/\\`/g, "`").replace(/\\\$/g, "$").replace(/\\\{/g, "{");
+ }
+ result += next;
+ if (i < values.length) {
+ const value = alignValues ? alignValue(values[i], result) : values[i];
+
+ // eslint-disable-next-line @typescript-eslint/restrict-plus-operands
+ result += value;
+ }
+ }
+
+ // now strip indentation
+ const lines = result.split("\n");
+ let mindent = null;
+ for (const l of lines) {
+ const m = l.match(/^(\s+)\S+/);
+ if (m) {
+ const indent = m[1].length;
+ if (!mindent) {
+ // this is the first indented line
+ mindent = indent;
+ } else {
+ mindent = Math.min(mindent, indent);
+ }
+ }
+ }
+ if (mindent !== null) {
+ const m = mindent; // appease TypeScript
+ result = lines
+ // https://github.com/typescript-eslint/typescript-eslint/issues/7140
+ // eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
+ .map(l => l[0] === " " || l[0] === "\t" ? l.slice(m) : l).join("\n");
+ }
+
+ // dedent eats leading and trailing whitespace too
+ if (trimWhitespace) {
+ result = result.trim();
+ }
+
+ // Unescape escapes after trimming so sequences like `\n`, `\t`,
+ // `\xHH` and `\u{...}` are preserved (fixes #24)
+ if (escapeSpecialCharacters) {
+ result = result.replace(/\\n/g, "\n").replace(/\\t/g, "\t").replace(/\\r/g, "\r").replace(/\\v/g, "\v").replace(/\\b/g, "\b").replace(/\\f/g, "\f").replace(/\\0/g, "\0").replace(/\\x([\da-fA-F]{2})/g, (_, h) => String.fromCharCode(parseInt(h, 16))).replace(/\\u\{([\da-fA-F]{1,6})\}/g, (_, h) => String.fromCodePoint(parseInt(h, 16))).replace(/\\u([\da-fA-F]{4})/g, (_, h) => String.fromCharCode(parseInt(h, 16)));
+ }
+
+ // Workaround for Bun issue with Unicode characters
+ // https://github.com/oven-sh/bun/issues/8745
+ if (typeof Bun !== "undefined") {
+ result = result.replace(
+ // Matches e.g. \\u{1f60a} or \\u5F1F
+ /\\u(?:\{([\da-fA-F]{1,6})\}|([\da-fA-F]{4}))/g, (_, braced, unbraced) => {
+ var _ref;
+ const hex = (_ref = braced !== null && braced !== void 0 ? braced : unbraced) !== null && _ref !== void 0 ? _ref : "";
+ return String.fromCodePoint(parseInt(hex, 16));
+ });
+ }
+ return result;
+ }
+}
+
+/**
+ * Adjusts the indentation of a multi-line interpolated value to match the current line.
+ */
+function alignValue(value, precedingText) {
+ if (typeof value !== "string" || !value.includes("\n")) {
+ return value;
+ }
+ const currentLine = precedingText.slice(precedingText.lastIndexOf("\n") + 1);
+ const indentMatch = currentLine.match(/^(\s+)/);
+ if (indentMatch) {
+ const indent = indentMatch[1];
+ return value.replace(/\n/g, `\n${indent}`);
+ }
+ return value;
+}
+module.exports = exports.default;
+module.exports.default = exports.default;
diff --git a/tools/ui/node_modules/dedent/dist/dedent.mjs b/tools/ui/node_modules/dedent/dist/dedent.mjs
new file mode 100644
index 0000000000000000000000000000000000000000..d53ee1ae634c81e494adf8b7f66cd569ffee6862
--- /dev/null
+++ b/tools/ui/node_modules/dedent/dist/dedent.mjs
@@ -0,0 +1,99 @@
+function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
+function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
+function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
+function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
+function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
+const dedent = createDedent({});
+export default dedent;
+function createDedent(options) {
+ dedent.withOptions = newOptions => createDedent(_objectSpread(_objectSpread({}, options), newOptions));
+ return dedent;
+ function dedent(strings, ...values) {
+ const raw = typeof strings === "string" ? [strings] : strings.raw;
+ const {
+ alignValues = false,
+ escapeSpecialCharacters = Array.isArray(strings),
+ trimWhitespace = true
+ } = options;
+
+ // first, perform interpolation
+ let result = "";
+ for (let i = 0; i < raw.length; i++) {
+ let next = raw[i];
+ if (escapeSpecialCharacters) {
+ // handle escaped newlines, backticks, and interpolation characters
+ next = next.replace(/\\\n[ \t]*/g, "").replace(/\\`/g, "`").replace(/\\\$/g, "$").replace(/\\\{/g, "{");
+ }
+ result += next;
+ if (i < values.length) {
+ const value = alignValues ? alignValue(values[i], result) : values[i];
+
+ // eslint-disable-next-line @typescript-eslint/restrict-plus-operands
+ result += value;
+ }
+ }
+
+ // now strip indentation
+ const lines = result.split("\n");
+ let mindent = null;
+ for (const l of lines) {
+ const m = l.match(/^(\s+)\S+/);
+ if (m) {
+ const indent = m[1].length;
+ if (!mindent) {
+ // this is the first indented line
+ mindent = indent;
+ } else {
+ mindent = Math.min(mindent, indent);
+ }
+ }
+ }
+ if (mindent !== null) {
+ const m = mindent; // appease TypeScript
+ result = lines
+ // https://github.com/typescript-eslint/typescript-eslint/issues/7140
+ // eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
+ .map(l => l[0] === " " || l[0] === "\t" ? l.slice(m) : l).join("\n");
+ }
+
+ // dedent eats leading and trailing whitespace too
+ if (trimWhitespace) {
+ result = result.trim();
+ }
+
+ // Unescape escapes after trimming so sequences like `\n`, `\t`,
+ // `\xHH` and `\u{...}` are preserved (fixes #24)
+ if (escapeSpecialCharacters) {
+ result = result.replace(/\\n/g, "\n").replace(/\\t/g, "\t").replace(/\\r/g, "\r").replace(/\\v/g, "\v").replace(/\\b/g, "\b").replace(/\\f/g, "\f").replace(/\\0/g, "\0").replace(/\\x([\da-fA-F]{2})/g, (_, h) => String.fromCharCode(parseInt(h, 16))).replace(/\\u\{([\da-fA-F]{1,6})\}/g, (_, h) => String.fromCodePoint(parseInt(h, 16))).replace(/\\u([\da-fA-F]{4})/g, (_, h) => String.fromCharCode(parseInt(h, 16)));
+ }
+
+ // Workaround for Bun issue with Unicode characters
+ // https://github.com/oven-sh/bun/issues/8745
+ if (typeof Bun !== "undefined") {
+ result = result.replace(
+ // Matches e.g. \\u{1f60a} or \\u5F1F
+ /\\u(?:\{([\da-fA-F]{1,6})\}|([\da-fA-F]{4}))/g, (_, braced, unbraced) => {
+ var _ref;
+ const hex = (_ref = braced !== null && braced !== void 0 ? braced : unbraced) !== null && _ref !== void 0 ? _ref : "";
+ return String.fromCodePoint(parseInt(hex, 16));
+ });
+ }
+ return result;
+ }
+}
+
+/**
+ * Adjusts the indentation of a multi-line interpolated value to match the current line.
+ */
+function alignValue(value, precedingText) {
+ if (typeof value !== "string" || !value.includes("\n")) {
+ return value;
+ }
+ const currentLine = precedingText.slice(precedingText.lastIndexOf("\n") + 1);
+ const indentMatch = currentLine.match(/^(\s+)/);
+ if (indentMatch) {
+ const indent = indentMatch[1];
+ return value.replace(/\n/g, `\n${indent}`);
+ }
+ return value;
+}
diff --git a/tools/ui/node_modules/dedent/macro.js b/tools/ui/node_modules/dedent/macro.js
new file mode 100644
index 0000000000000000000000000000000000000000..2e5763d0cff444290206bd2fc397c7c04c775e9d
--- /dev/null
+++ b/tools/ui/node_modules/dedent/macro.js
@@ -0,0 +1,32 @@
+const { MacroError, createMacro } = require("babel-plugin-macros");
+const dedent = require("./dist/dedent.js").default;
+
+module.exports = createMacro(prevalMacros);
+
+function prevalMacros({ babel, references, state }) {
+ references.default.forEach((referencePath) => {
+ if (referencePath.parentPath.type === "TaggedTemplateExpression") {
+ asTag(referencePath.parentPath.get("quasi"), state, babel);
+ } else if (referencePath.parentPath.type === "CallExpression") {
+ asFunction(referencePath.parentPath.get("arguments"), state, babel);
+ } else {
+ throw new MacroError(
+ `dedent.macro can only be used as tagged template expression or function call. You tried ${referencePath.parentPath.type}.`,
+ );
+ }
+ });
+}
+
+function asTag(quasiPath, _, babel) {
+ const string = quasiPath.parentPath.get("quasi").evaluate().value;
+ const { types: t } = babel;
+
+ quasiPath.parentPath.replaceWith(t.stringLiteral(dedent(string)));
+}
+
+function asFunction(argumentsPaths, _, babel) {
+ const string = argumentsPaths[0].evaluate().value;
+ const { types: t } = babel;
+
+ argumentsPaths[0].parentPath.replaceWith(t.stringLiteral(dedent(string)));
+}
diff --git a/tools/ui/node_modules/dedent/package.json b/tools/ui/node_modules/dedent/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..2d73912c8f36c163dccfbf97359e90726530cbfa
--- /dev/null
+++ b/tools/ui/node_modules/dedent/package.json
@@ -0,0 +1,121 @@
+{
+ "name": "dedent",
+ "version": "1.7.2",
+ "description": "A string tag that strips indentation from multi-line strings. ⬅️",
+ "keywords": [
+ "dedent",
+ "tag",
+ "multi-line string",
+ "es6"
+ ],
+ "homepage": "https://github.com/dmnd/dedent",
+ "bugs": {
+ "url": "https://github.com/dmnd/dedent/issues"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/dmnd/dedent"
+ },
+ "license": "MIT",
+ "author": {
+ "name": "Desmond Brand",
+ "email": "dmnd@desmondbrand.com",
+ "url": "http://desmondbrand.com"
+ },
+ "type": "commonjs",
+ "exports": {
+ ".": {
+ "types": {
+ "import": "./dist/dedent.d.mts",
+ "require": "./dist/dedent.d.ts"
+ },
+ "import": "./dist/dedent.mjs",
+ "require": "./dist/dedent.js"
+ }
+ },
+ "main": "./dist/dedent.js",
+ "module": "./dist/dedent.mjs",
+ "types": "./dist/dedent.d.mts",
+ "files": [
+ "dist/",
+ "macro.js",
+ "package.json",
+ "LICENSE.md",
+ "README.md"
+ ],
+ "scripts": {
+ "build": "pnpm build:legacy && pnpm build:modern && pnpm build:types",
+ "build:legacy": "BABEL_ENV=legacy babel src/dedent.ts --out-file dist/dedent.js",
+ "build:modern": "BABEL_ENV=modern babel src/dedent.ts --out-file dist/dedent.mjs",
+ "build:types": "tsup src/dedent.ts --dts-only",
+ "format": "prettier \"**/*\" --ignore-unknown",
+ "lint": "eslint . .*js --max-warnings 0 --report-unused-disable-directives",
+ "lint:knip": "knip",
+ "lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\"",
+ "lint:package-json": "npmPkgJsonLint .",
+ "lint:packages": "pnpm dedupe --check",
+ "lint:spelling": "cspell \"**\" \".github/**/*\"",
+ "prepare": "husky install",
+ "should-semantic-release": "should-semantic-release --verbose",
+ "test": "jest",
+ "test:bun": "bun test src/dedent.test.ts",
+ "tsc": "tsc"
+ },
+ "lint-staged": {
+ "*": "prettier --ignore-unknown --write"
+ },
+ "devDependencies": {
+ "@babel/cli": "^7.21.5",
+ "@babel/preset-env": "^7.23.3",
+ "@babel/preset-typescript": "^7.23.3",
+ "@release-it/conventional-changelog": "^8.0.1",
+ "@types/babel-plugin-macros": "^3.1.0",
+ "@types/bun": "^1.3.4",
+ "@types/eslint": "^8.44.7",
+ "@types/jest": "^29.5.3",
+ "@typescript-eslint/eslint-plugin": "^6.10.0",
+ "@typescript-eslint/parser": "^6.10.0",
+ "babel-plugin-add-module-exports": "^1.0.4",
+ "babel-plugin-tester": "^11.0.4",
+ "console-fail-test": "^0.2.3",
+ "cspell": "^8.0.0",
+ "eslint": "^8.53.0",
+ "eslint-plugin-deprecation": "^2.0.0",
+ "eslint-plugin-eslint-comments": "^3.2.0",
+ "eslint-plugin-jest": "^27.6.0",
+ "eslint-plugin-jsdoc": "^46.9.0",
+ "eslint-plugin-jsonc": "^2.10.0",
+ "eslint-plugin-markdown": "^3.0.1",
+ "eslint-plugin-n": "^16.3.1",
+ "eslint-plugin-no-only-tests": "^3.1.0",
+ "eslint-plugin-perfectionist": "^2.3.0",
+ "eslint-plugin-regexp": "^2.1.1",
+ "eslint-plugin-yml": "^1.10.0",
+ "husky": "^8.0.3",
+ "jest": "^29.7.0",
+ "jsonc-eslint-parser": "^2.4.0",
+ "knip": "^5.75.0",
+ "lint-staged": "^15.1.0",
+ "markdownlint": "^0.31.1",
+ "markdownlint-cli": "^0.37.0",
+ "npm-package-json-lint": "^7.1.0",
+ "npm-package-json-lint-config-default": "^6.0.0",
+ "prettier": "^3.0.3",
+ "prettier-plugin-curly": "^0.1.3",
+ "prettier-plugin-packagejson": "^2.4.6",
+ "release-it": "^17.0.0",
+ "should-semantic-release": "^0.2.1",
+ "tsup": "^7.2.0",
+ "typescript": "^5.2.2",
+ "yaml-eslint-parser": "^1.2.2"
+ },
+ "peerDependencies": {
+ "babel-plugin-macros": "^3.1.0"
+ },
+ "peerDependenciesMeta": {
+ "babel-plugin-macros": {
+ "optional": true
+ }
+ },
+ "packageManager": "pnpm@8.7.0"
+}
diff --git a/tools/ui/node_modules/deep-eql/LICENSE b/tools/ui/node_modules/deep-eql/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..7ea799f0ef4a80112178975b5f15d97c4863e09e
--- /dev/null
+++ b/tools/ui/node_modules/deep-eql/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2013 Jake Luer (http://alogicalparadox.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/tools/ui/node_modules/deep-eql/README.md b/tools/ui/node_modules/deep-eql/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..f6e1b85cf79a26d1d625542cef5926b6bf124c0a
--- /dev/null
+++ b/tools/ui/node_modules/deep-eql/README.md
@@ -0,0 +1,93 @@
+
+
+
+ Improved deep equality testing for node and the browser.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## What is Deep-Eql?
+
+Deep Eql is a module which you can use to determine if two objects are "deeply" equal - that is, rather than having referential equality (`a === b`), this module checks an object's keys recursively, until it finds primitives to check for referential equality. For more on equality in JavaScript, read [the comparison operators article on mdn](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators).
+
+As an example, take the following:
+
+```js
+1 === 1 // These are primitives, they hold the same reference - they are strictly equal
+1 == '1' // These are two different primitives, through type coercion they hold the same value - they are loosely equal
+{ a: 1 } !== { a: 1 } // These are two different objects, they hold different references and so are not strictly equal - even though they hold the same values inside
+{ a: 1 } != { a: 1 } // They have the same type, meaning loose equality performs the same check as strict equality - they are still not equal.
+
+var deepEql = require("deep-eql");
+deepEql({ a: 1 }, { a: 1 }) === true // deepEql can determine that they share the same keys and those keys share the same values, therefore they are deeply equal!
+```
+
+## Installation
+
+### Node.js
+
+`deep-eql` is available on [npm](http://npmjs.org).
+
+ $ npm install deep-eql
+
+## Usage
+
+The primary export of `deep-eql` is function that can be given two objects to compare. It will always return a boolean which can be used to determine if two objects are deeply equal.
+
+### Rules
+
+- Strict equality for non-traversable nodes according to [`Object.is`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is):
+ - `eql(NaN, NaN).should.be.true;`
+ - `eql(-0, +0).should.be.false;`
+- All own and inherited enumerable properties are considered:
+ - `eql(Object.create({ foo: { a: 1 } }), Object.create({ foo: { a: 1 } })).should.be.true;`
+ - `eql(Object.create({ foo: { a: 1 } }), Object.create({ foo: { a: 2 } })).should.be.false;`
+- When comparing `Error` objects, only `name`, `message`, and `code` properties are considered, regardless of enumerability:
+ - `eql(Error('foo'), Error('foo')).should.be.true;`
+ - `eql(Error('foo'), Error('bar')).should.be.false;`
+ - `eql(Error('foo'), TypeError('foo')).should.be.false;`
+ - `eql(Object.assign(Error('foo'), { code: 42 }), Object.assign(Error('foo'), { code: 42 })).should.be.true;`
+ - `eql(Object.assign(Error('foo'), { code: 42 }), Object.assign(Error('foo'), { code: 13 })).should.be.false;`
+ - `eql(Object.assign(Error('foo'), { otherProp: 42 }), Object.assign(Error('foo'), { otherProp: 13 })).should.be.true;`
+- Arguments are not Arrays:
+ - `eql([], arguments).should.be.false;`
+ - `eql([], Array.prototype.slice.call(arguments)).should.be.true;`
diff --git a/tools/ui/node_modules/deep-eql/index.js b/tools/ui/node_modules/deep-eql/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..8e5e333dd6fbc69e21b3515f1b2518f25250b0df
--- /dev/null
+++ b/tools/ui/node_modules/deep-eql/index.js
@@ -0,0 +1,513 @@
+/* globals Symbol: false, Uint8Array: false, WeakMap: false */
+/*!
+ * deep-eql
+ * Copyright(c) 2013 Jake Luer
+ * MIT Licensed
+ */
+
+function type(obj) {
+ if (typeof obj === 'undefined') {
+ return 'undefined';
+ }
+
+ if (obj === null) {
+ return 'null';
+ }
+
+ const stringTag = obj[Symbol.toStringTag];
+ if (typeof stringTag === 'string') {
+ return stringTag;
+ }
+ const sliceStart = 8;
+ const sliceEnd = -1;
+ return Object.prototype.toString.call(obj).slice(sliceStart, sliceEnd);
+}
+
+function FakeMap() {
+ this._key = 'chai/deep-eql__' + Math.random() + Date.now();
+}
+
+FakeMap.prototype = {
+ get: function get(key) {
+ return key[this._key];
+ },
+ set: function set(key, value) {
+ if (Object.isExtensible(key)) {
+ Object.defineProperty(key, this._key, {
+ value: value,
+ configurable: true,
+ });
+ }
+ },
+};
+
+export var MemoizeMap = typeof WeakMap === 'function' ? WeakMap : FakeMap;
+/*!
+ * Check to see if the MemoizeMap has recorded a result of the two operands
+ *
+ * @param {Mixed} leftHandOperand
+ * @param {Mixed} rightHandOperand
+ * @param {MemoizeMap} memoizeMap
+ * @returns {Boolean|null} result
+*/
+function memoizeCompare(leftHandOperand, rightHandOperand, memoizeMap) {
+ // Technically, WeakMap keys can *only* be objects, not primitives.
+ if (!memoizeMap || isPrimitive(leftHandOperand) || isPrimitive(rightHandOperand)) {
+ return null;
+ }
+ var leftHandMap = memoizeMap.get(leftHandOperand);
+ if (leftHandMap) {
+ var result = leftHandMap.get(rightHandOperand);
+ if (typeof result === 'boolean') {
+ return result;
+ }
+ }
+ return null;
+}
+
+/*!
+ * Set the result of the equality into the MemoizeMap
+ *
+ * @param {Mixed} leftHandOperand
+ * @param {Mixed} rightHandOperand
+ * @param {MemoizeMap} memoizeMap
+ * @param {Boolean} result
+*/
+function memoizeSet(leftHandOperand, rightHandOperand, memoizeMap, result) {
+ // Technically, WeakMap keys can *only* be objects, not primitives.
+ if (!memoizeMap || isPrimitive(leftHandOperand) || isPrimitive(rightHandOperand)) {
+ return;
+ }
+ var leftHandMap = memoizeMap.get(leftHandOperand);
+ if (leftHandMap) {
+ leftHandMap.set(rightHandOperand, result);
+ } else {
+ leftHandMap = new MemoizeMap();
+ leftHandMap.set(rightHandOperand, result);
+ memoizeMap.set(leftHandOperand, leftHandMap);
+ }
+}
+
+/*!
+ * Primary Export
+ */
+
+export default deepEqual;
+
+/**
+ * Assert deeply nested sameValue equality between two objects of any type.
+ *
+ * @param {Mixed} leftHandOperand
+ * @param {Mixed} rightHandOperand
+ * @param {Object} [options] (optional) Additional options
+ * @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.
+ * @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of
+ complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular
+ references to blow the stack.
+ * @return {Boolean} equal match
+ */
+function deepEqual(leftHandOperand, rightHandOperand, options) {
+ // If we have a comparator, we can't assume anything; so bail to its check first.
+ if (options && options.comparator) {
+ return extensiveDeepEqual(leftHandOperand, rightHandOperand, options);
+ }
+
+ var simpleResult = simpleEqual(leftHandOperand, rightHandOperand);
+ if (simpleResult !== null) {
+ return simpleResult;
+ }
+
+ // Deeper comparisons are pushed through to a larger function
+ return extensiveDeepEqual(leftHandOperand, rightHandOperand, options);
+}
+
+/**
+ * Many comparisons can be canceled out early via simple equality or primitive checks.
+ * @param {Mixed} leftHandOperand
+ * @param {Mixed} rightHandOperand
+ * @return {Boolean|null} equal match
+ */
+function simpleEqual(leftHandOperand, rightHandOperand) {
+ // Equal references (except for Numbers) can be returned early
+ if (leftHandOperand === rightHandOperand) {
+ // Handle +-0 cases
+ return leftHandOperand !== 0 || 1 / leftHandOperand === 1 / rightHandOperand;
+ }
+
+ // handle NaN cases
+ if (
+ leftHandOperand !== leftHandOperand && // eslint-disable-line no-self-compare
+ rightHandOperand !== rightHandOperand // eslint-disable-line no-self-compare
+ ) {
+ return true;
+ }
+
+ // Anything that is not an 'object', i.e. symbols, functions, booleans, numbers,
+ // strings, and undefined, can be compared by reference.
+ if (isPrimitive(leftHandOperand) || isPrimitive(rightHandOperand)) {
+ // Easy out b/c it would have passed the first equality check
+ return false;
+ }
+ return null;
+}
+
+/*!
+ * The main logic of the `deepEqual` function.
+ *
+ * @param {Mixed} leftHandOperand
+ * @param {Mixed} rightHandOperand
+ * @param {Object} [options] (optional) Additional options
+ * @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.
+ * @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of
+ complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular
+ references to blow the stack.
+ * @return {Boolean} equal match
+*/
+function extensiveDeepEqual(leftHandOperand, rightHandOperand, options) {
+ options = options || {};
+ options.memoize = options.memoize === false ? false : options.memoize || new MemoizeMap();
+ var comparator = options && options.comparator;
+
+ // Check if a memoized result exists.
+ var memoizeResultLeft = memoizeCompare(leftHandOperand, rightHandOperand, options.memoize);
+ if (memoizeResultLeft !== null) {
+ return memoizeResultLeft;
+ }
+ var memoizeResultRight = memoizeCompare(rightHandOperand, leftHandOperand, options.memoize);
+ if (memoizeResultRight !== null) {
+ return memoizeResultRight;
+ }
+
+ // If a comparator is present, use it.
+ if (comparator) {
+ var comparatorResult = comparator(leftHandOperand, rightHandOperand);
+ // Comparators may return null, in which case we want to go back to default behavior.
+ if (comparatorResult === false || comparatorResult === true) {
+ memoizeSet(leftHandOperand, rightHandOperand, options.memoize, comparatorResult);
+ return comparatorResult;
+ }
+ // To allow comparators to override *any* behavior, we ran them first. Since it didn't decide
+ // what to do, we need to make sure to return the basic tests first before we move on.
+ var simpleResult = simpleEqual(leftHandOperand, rightHandOperand);
+ if (simpleResult !== null) {
+ // Don't memoize this, it takes longer to set/retrieve than to just compare.
+ return simpleResult;
+ }
+ }
+
+ var leftHandType = type(leftHandOperand);
+ if (leftHandType !== type(rightHandOperand)) {
+ memoizeSet(leftHandOperand, rightHandOperand, options.memoize, false);
+ return false;
+ }
+
+ // Temporarily set the operands in the memoize object to prevent blowing the stack
+ memoizeSet(leftHandOperand, rightHandOperand, options.memoize, true);
+
+ var result = extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandType, options);
+ memoizeSet(leftHandOperand, rightHandOperand, options.memoize, result);
+ return result;
+}
+
+function extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandType, options) {
+ switch (leftHandType) {
+ case 'String':
+ case 'Number':
+ case 'Boolean':
+ case 'Date':
+ // If these types are their instance types (e.g. `new Number`) then re-deepEqual against their values
+ return deepEqual(leftHandOperand.valueOf(), rightHandOperand.valueOf());
+ case 'Promise':
+ case 'Symbol':
+ case 'function':
+ case 'WeakMap':
+ case 'WeakSet':
+ return leftHandOperand === rightHandOperand;
+ case 'Error':
+ return keysEqual(leftHandOperand, rightHandOperand, [ 'name', 'message', 'code' ], options);
+ case 'Arguments':
+ case 'Int8Array':
+ case 'Uint8Array':
+ case 'Uint8ClampedArray':
+ case 'Int16Array':
+ case 'Uint16Array':
+ case 'Int32Array':
+ case 'Uint32Array':
+ case 'Float32Array':
+ case 'Float64Array':
+ case 'Array':
+ return iterableEqual(leftHandOperand, rightHandOperand, options);
+ case 'RegExp':
+ return regexpEqual(leftHandOperand, rightHandOperand);
+ case 'Generator':
+ return generatorEqual(leftHandOperand, rightHandOperand, options);
+ case 'DataView':
+ return iterableEqual(new Uint8Array(leftHandOperand.buffer), new Uint8Array(rightHandOperand.buffer), options);
+ case 'ArrayBuffer':
+ return iterableEqual(new Uint8Array(leftHandOperand), new Uint8Array(rightHandOperand), options);
+ case 'Set':
+ return entriesEqual(leftHandOperand, rightHandOperand, options);
+ case 'Map':
+ return entriesEqual(leftHandOperand, rightHandOperand, options);
+ case 'Temporal.PlainDate':
+ case 'Temporal.PlainTime':
+ case 'Temporal.PlainDateTime':
+ case 'Temporal.Instant':
+ case 'Temporal.ZonedDateTime':
+ case 'Temporal.PlainYearMonth':
+ case 'Temporal.PlainMonthDay':
+ return leftHandOperand.equals(rightHandOperand);
+ case 'Temporal.Duration':
+ return leftHandOperand.total('nanoseconds') === rightHandOperand.total('nanoseconds');
+ case 'Temporal.TimeZone':
+ case 'Temporal.Calendar':
+ return leftHandOperand.toString() === rightHandOperand.toString();
+ default:
+ return objectEqual(leftHandOperand, rightHandOperand, options);
+ }
+}
+
+/*!
+ * Compare two Regular Expressions for equality.
+ *
+ * @param {RegExp} leftHandOperand
+ * @param {RegExp} rightHandOperand
+ * @return {Boolean} result
+ */
+
+function regexpEqual(leftHandOperand, rightHandOperand) {
+ return leftHandOperand.toString() === rightHandOperand.toString();
+}
+
+/*!
+ * Compare two Sets/Maps for equality. Faster than other equality functions.
+ *
+ * @param {Set} leftHandOperand
+ * @param {Set} rightHandOperand
+ * @param {Object} [options] (Optional)
+ * @return {Boolean} result
+ */
+
+function entriesEqual(leftHandOperand, rightHandOperand, options) {
+ try {
+ // IE11 doesn't support Set#entries or Set#@@iterator, so we need manually populate using Set#forEach
+ if (leftHandOperand.size !== rightHandOperand.size) {
+ return false;
+ }
+ if (leftHandOperand.size === 0) {
+ return true;
+ }
+ } catch (sizeError) {
+ // things that aren't actual Maps or Sets will throw here
+ return false;
+ }
+ var leftHandItems = [];
+ var rightHandItems = [];
+ leftHandOperand.forEach(function gatherEntries(key, value) {
+ leftHandItems.push([ key, value ]);
+ });
+ rightHandOperand.forEach(function gatherEntries(key, value) {
+ rightHandItems.push([ key, value ]);
+ });
+ return iterableEqual(leftHandItems.sort(), rightHandItems.sort(), options);
+}
+
+/*!
+ * Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.
+ *
+ * @param {Iterable} leftHandOperand
+ * @param {Iterable} rightHandOperand
+ * @param {Object} [options] (Optional)
+ * @return {Boolean} result
+ */
+
+function iterableEqual(leftHandOperand, rightHandOperand, options) {
+ var length = leftHandOperand.length;
+ if (length !== rightHandOperand.length) {
+ return false;
+ }
+ if (length === 0) {
+ return true;
+ }
+ var index = -1;
+ while (++index < length) {
+ if (deepEqual(leftHandOperand[index], rightHandOperand[index], options) === false) {
+ return false;
+ }
+ }
+ return true;
+}
+
+/*!
+ * Simple equality for generator objects such as those returned by generator functions.
+ *
+ * @param {Iterable} leftHandOperand
+ * @param {Iterable} rightHandOperand
+ * @param {Object} [options] (Optional)
+ * @return {Boolean} result
+ */
+
+function generatorEqual(leftHandOperand, rightHandOperand, options) {
+ return iterableEqual(getGeneratorEntries(leftHandOperand), getGeneratorEntries(rightHandOperand), options);
+}
+
+/*!
+ * Determine if the given object has an @@iterator function.
+ *
+ * @param {Object} target
+ * @return {Boolean} `true` if the object has an @@iterator function.
+ */
+function hasIteratorFunction(target) {
+ return typeof Symbol !== 'undefined' &&
+ typeof target === 'object' &&
+ typeof Symbol.iterator !== 'undefined' &&
+ typeof target[Symbol.iterator] === 'function';
+}
+
+/*!
+ * Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.
+ * This will consume the iterator - which could have side effects depending on the @@iterator implementation.
+ *
+ * @param {Object} target
+ * @returns {Array} an array of entries from the @@iterator function
+ */
+function getIteratorEntries(target) {
+ if (hasIteratorFunction(target)) {
+ try {
+ return getGeneratorEntries(target[Symbol.iterator]());
+ } catch (iteratorError) {
+ return [];
+ }
+ }
+ return [];
+}
+
+/*!
+ * Gets all entries from a Generator. This will consume the generator - which could have side effects.
+ *
+ * @param {Generator} target
+ * @returns {Array} an array of entries from the Generator.
+ */
+function getGeneratorEntries(generator) {
+ var generatorResult = generator.next();
+ var accumulator = [ generatorResult.value ];
+ while (generatorResult.done === false) {
+ generatorResult = generator.next();
+ accumulator.push(generatorResult.value);
+ }
+ return accumulator;
+}
+
+/*!
+ * Gets all own and inherited enumerable keys from a target.
+ *
+ * @param {Object} target
+ * @returns {Array} an array of own and inherited enumerable keys from the target.
+ */
+function getEnumerableKeys(target) {
+ var keys = [];
+ for (var key in target) {
+ keys.push(key);
+ }
+ return keys;
+}
+
+function getEnumerableSymbols(target) {
+ var keys = [];
+ var allKeys = Object.getOwnPropertySymbols(target);
+ for (var i = 0; i < allKeys.length; i += 1) {
+ var key = allKeys[i];
+ if (Object.getOwnPropertyDescriptor(target, key).enumerable) {
+ keys.push(key);
+ }
+ }
+ return keys;
+}
+
+/*!
+ * Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
+ * each key. If any value of the given key is not equal, the function will return false (early).
+ *
+ * @param {Mixed} leftHandOperand
+ * @param {Mixed} rightHandOperand
+ * @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against
+ * @param {Object} [options] (Optional)
+ * @return {Boolean} result
+ */
+function keysEqual(leftHandOperand, rightHandOperand, keys, options) {
+ var length = keys.length;
+ if (length === 0) {
+ return true;
+ }
+ for (var i = 0; i < length; i += 1) {
+ if (deepEqual(leftHandOperand[keys[i]], rightHandOperand[keys[i]], options) === false) {
+ return false;
+ }
+ }
+ return true;
+}
+
+/*!
+ * Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`
+ * for each enumerable key in the object.
+ *
+ * @param {Mixed} leftHandOperand
+ * @param {Mixed} rightHandOperand
+ * @param {Object} [options] (Optional)
+ * @return {Boolean} result
+ */
+function objectEqual(leftHandOperand, rightHandOperand, options) {
+ var leftHandKeys = getEnumerableKeys(leftHandOperand);
+ var rightHandKeys = getEnumerableKeys(rightHandOperand);
+ var leftHandSymbols = getEnumerableSymbols(leftHandOperand);
+ var rightHandSymbols = getEnumerableSymbols(rightHandOperand);
+ leftHandKeys = leftHandKeys.concat(leftHandSymbols);
+ rightHandKeys = rightHandKeys.concat(rightHandSymbols);
+
+ if (leftHandKeys.length && leftHandKeys.length === rightHandKeys.length) {
+ if (iterableEqual(mapSymbols(leftHandKeys).sort(), mapSymbols(rightHandKeys).sort()) === false) {
+ return false;
+ }
+ return keysEqual(leftHandOperand, rightHandOperand, leftHandKeys, options);
+ }
+
+ var leftHandEntries = getIteratorEntries(leftHandOperand);
+ var rightHandEntries = getIteratorEntries(rightHandOperand);
+ if (leftHandEntries.length && leftHandEntries.length === rightHandEntries.length) {
+ leftHandEntries.sort();
+ rightHandEntries.sort();
+ return iterableEqual(leftHandEntries, rightHandEntries, options);
+ }
+
+ if (leftHandKeys.length === 0 &&
+ leftHandEntries.length === 0 &&
+ rightHandKeys.length === 0 &&
+ rightHandEntries.length === 0) {
+ return true;
+ }
+
+ return false;
+}
+
+/*!
+ * Returns true if the argument is a primitive.
+ *
+ * This intentionally returns true for all objects that can be compared by reference,
+ * including functions and symbols.
+ *
+ * @param {Mixed} value
+ * @return {Boolean} result
+ */
+function isPrimitive(value) {
+ return value === null || typeof value !== 'object';
+}
+
+function mapSymbols(arr) {
+ return arr.map(function mapSymbol(entry) {
+ if (typeof entry === 'symbol') {
+ return entry.toString();
+ }
+
+ return entry;
+ });
+}
diff --git a/tools/ui/node_modules/deep-eql/package.json b/tools/ui/node_modules/deep-eql/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..c88004316f2f61c0473e7bbdf3a002f7f69a4c8a
--- /dev/null
+++ b/tools/ui/node_modules/deep-eql/package.json
@@ -0,0 +1,73 @@
+{
+ "name": "deep-eql",
+ "version": "5.0.2",
+ "description": "Improved deep equality testing for Node.js and the browser.",
+ "keywords": [
+ "chai util",
+ "deep equal",
+ "object equal",
+ "testing"
+ ],
+ "repository": {
+ "type": "git",
+ "url": "git@github.com:chaijs/deep-eql.git"
+ },
+ "license": "MIT",
+ "author": "Jake Luer ",
+ "contributors": [
+ "Keith Cirkel (https://github.com/keithamus)",
+ "dougluce (https://github.com/dougluce)",
+ "Lorenz Leutgeb (https://github.com/flowlo)"
+ ],
+ "type": "module",
+ "main": "./index.js",
+ "files": [
+ "index.js",
+ "deep-eql.js"
+ ],
+ "scripts": {
+ "bench": "node bench",
+ "lint": "eslint --ignore-path .gitignore .",
+ "semantic-release": "semantic-release pre && semantic-release post",
+ "pretest": "npm run lint",
+ "test": "npm run test:node && npm run test:browser",
+ "test:browser": "web-test-runner",
+ "test:node": "istanbul cover _mocha",
+ "upload-coverage": "lcov-result-merger 'coverage/**/lcov.info' | coveralls; exit 0",
+ "watch": "web-test-runner --watch"
+ },
+ "eslintConfig": {
+ "extends": [
+ "strict/es5"
+ ],
+ "rules": {
+ "complexity": 0,
+ "no-underscore-dangle": 0,
+ "no-use-before-define": 0,
+ "spaced-comment": 0
+ },
+ "parserOptions": {
+ "sourceType": "module",
+ "ecmaVersion": 2015
+ }
+ },
+ "devDependencies": {
+ "@js-temporal/polyfill": "^0.4.3",
+ "@rollup/plugin-commonjs": "^24.1.0",
+ "@web/test-runner": "^0.16.1",
+ "benchmark": "^2.1.0",
+ "coveralls": "^3.1.1",
+ "eslint": "^7.32.0",
+ "eslint-config-strict": "^14.0.1",
+ "eslint-plugin-filenames": "^1.3.2",
+ "istanbul": "^0.4.2",
+ "kewlr": "^0.4.1",
+ "lcov-result-merger": "^1.0.2",
+ "lodash.isequal": "^4.4.0",
+ "mocha": "^9.1.1",
+ "simple-assert": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+}
diff --git a/tools/ui/node_modules/deep-is/.travis.yml b/tools/ui/node_modules/deep-is/.travis.yml
new file mode 100644
index 0000000000000000000000000000000000000000..58f23716aefb940d7d7ea44c1f3004416ac5f065
--- /dev/null
+++ b/tools/ui/node_modules/deep-is/.travis.yml
@@ -0,0 +1,5 @@
+language: node_js
+node_js:
+ - 0.6
+ - 0.8
+ - 0.10
diff --git a/tools/ui/node_modules/deep-is/LICENSE b/tools/ui/node_modules/deep-is/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..c38f84073f61efcc2313d2de94aedbff6d1eb26d
--- /dev/null
+++ b/tools/ui/node_modules/deep-is/LICENSE
@@ -0,0 +1,22 @@
+Copyright (c) 2012, 2013 Thorsten Lorenz
+Copyright (c) 2012 James Halliday
+Copyright (c) 2009 Thomas Robinson <280north.com>
+
+This software is released under the MIT license:
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/tools/ui/node_modules/deep-is/README.markdown b/tools/ui/node_modules/deep-is/README.markdown
new file mode 100644
index 0000000000000000000000000000000000000000..eb69a83bda12f8dd23651289dc08afdaa407339e
--- /dev/null
+++ b/tools/ui/node_modules/deep-is/README.markdown
@@ -0,0 +1,70 @@
+deep-is
+==========
+
+Node's `assert.deepEqual() algorithm` as a standalone module. Exactly like
+[deep-equal](https://github.com/substack/node-deep-equal) except for the fact that `deepEqual(NaN, NaN) === true`.
+
+This module is around [5 times faster](https://gist.github.com/2790507)
+than wrapping `assert.deepEqual()` in a `try/catch`.
+
+[](http://ci.testling.com/thlorenz/deep-is)
+
+[](http://travis-ci.org/thlorenz/deep-is)
+
+example
+=======
+
+``` js
+var equal = require('deep-is');
+console.dir([
+ equal(
+ { a : [ 2, 3 ], b : [ 4 ] },
+ { a : [ 2, 3 ], b : [ 4 ] }
+ ),
+ equal(
+ { x : 5, y : [6] },
+ { x : 5, y : 6 }
+ )
+]);
+```
+
+methods
+=======
+
+var deepIs = require('deep-is')
+
+deepIs(a, b)
+---------------
+
+Compare objects `a` and `b`, returning whether they are equal according to a
+recursive equality algorithm.
+
+install
+=======
+
+With [npm](http://npmjs.org) do:
+
+```
+npm install deep-is
+```
+
+test
+====
+
+With [npm](http://npmjs.org) do:
+
+```
+npm test
+```
+
+license
+=======
+
+Copyright (c) 2012, 2013 Thorsten Lorenz
+Copyright (c) 2012 James Halliday
+
+Derived largely from node's assert module, which has the copyright statement:
+
+Copyright (c) 2009 Thomas Robinson <280north.com>
+
+Released under the MIT license, see LICENSE for details.
diff --git a/tools/ui/node_modules/deep-is/example/cmp.js b/tools/ui/node_modules/deep-is/example/cmp.js
new file mode 100644
index 0000000000000000000000000000000000000000..67014b88dcbc9b2ebb6398bf79e8f15c628fcf51
--- /dev/null
+++ b/tools/ui/node_modules/deep-is/example/cmp.js
@@ -0,0 +1,11 @@
+var equal = require('../');
+console.dir([
+ equal(
+ { a : [ 2, 3 ], b : [ 4 ] },
+ { a : [ 2, 3 ], b : [ 4 ] }
+ ),
+ equal(
+ { x : 5, y : [6] },
+ { x : 5, y : 6 }
+ )
+]);
diff --git a/tools/ui/node_modules/deep-is/index.js b/tools/ui/node_modules/deep-is/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..506fe2795313498361313e024e89f8b5b1deb65c
--- /dev/null
+++ b/tools/ui/node_modules/deep-is/index.js
@@ -0,0 +1,102 @@
+var pSlice = Array.prototype.slice;
+var Object_keys = typeof Object.keys === 'function'
+ ? Object.keys
+ : function (obj) {
+ var keys = [];
+ for (var key in obj) keys.push(key);
+ return keys;
+ }
+;
+
+var deepEqual = module.exports = function (actual, expected) {
+ // enforce Object.is +0 !== -0
+ if (actual === 0 && expected === 0) {
+ return areZerosEqual(actual, expected);
+
+ // 7.1. All identical values are equivalent, as determined by ===.
+ } else if (actual === expected) {
+ return true;
+
+ } else if (actual instanceof Date && expected instanceof Date) {
+ return actual.getTime() === expected.getTime();
+
+ } else if (isNumberNaN(actual)) {
+ return isNumberNaN(expected);
+
+ // 7.3. Other pairs that do not both pass typeof value == 'object',
+ // equivalence is determined by ==.
+ } else if (typeof actual != 'object' && typeof expected != 'object') {
+ return actual == expected;
+
+ // 7.4. For all other Object pairs, including Array objects, equivalence is
+ // determined by having the same number of owned properties (as verified
+ // with Object.prototype.hasOwnProperty.call), the same set of keys
+ // (although not necessarily the same order), equivalent values for every
+ // corresponding key, and an identical 'prototype' property. Note: this
+ // accounts for both named and indexed properties on Arrays.
+ } else {
+ return objEquiv(actual, expected);
+ }
+};
+
+function isUndefinedOrNull(value) {
+ return value === null || value === undefined;
+}
+
+function isArguments(object) {
+ return Object.prototype.toString.call(object) == '[object Arguments]';
+}
+
+function isNumberNaN(value) {
+ // NaN === NaN -> false
+ return typeof value == 'number' && value !== value;
+}
+
+function areZerosEqual(zeroA, zeroB) {
+ // (1 / +0|0) -> Infinity, but (1 / -0) -> -Infinity and (Infinity !== -Infinity)
+ return (1 / zeroA) === (1 / zeroB);
+}
+
+function objEquiv(a, b) {
+ if (isUndefinedOrNull(a) || isUndefinedOrNull(b))
+ return false;
+
+ // an identical 'prototype' property.
+ if (a.prototype !== b.prototype) return false;
+ //~~~I've managed to break Object.keys through screwy arguments passing.
+ // Converting to array solves the problem.
+ if (isArguments(a)) {
+ if (!isArguments(b)) {
+ return false;
+ }
+ a = pSlice.call(a);
+ b = pSlice.call(b);
+ return deepEqual(a, b);
+ }
+ try {
+ var ka = Object_keys(a),
+ kb = Object_keys(b),
+ key, i;
+ } catch (e) {//happens when one is a string literal and the other isn't
+ return false;
+ }
+ // having the same number of owned properties (keys incorporates
+ // hasOwnProperty)
+ if (ka.length != kb.length)
+ return false;
+ //the same set of keys (although not necessarily the same order),
+ ka.sort();
+ kb.sort();
+ //~~~cheap key test
+ for (i = ka.length - 1; i >= 0; i--) {
+ if (ka[i] != kb[i])
+ return false;
+ }
+ //equivalent values for every corresponding key, and
+ //~~~possibly expensive deep test
+ for (i = ka.length - 1; i >= 0; i--) {
+ key = ka[i];
+ if (!deepEqual(a[key], b[key])) return false;
+ }
+ return true;
+}
diff --git a/tools/ui/node_modules/deep-is/package.json b/tools/ui/node_modules/deep-is/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..dae72d7873ed0be1f926ca98693582f0383a1e18
--- /dev/null
+++ b/tools/ui/node_modules/deep-is/package.json
@@ -0,0 +1,58 @@
+{
+ "name": "deep-is",
+ "version": "0.1.4",
+ "description": "node's assert.deepEqual algorithm except for NaN being equal to NaN",
+ "main": "index.js",
+ "directories": {
+ "lib": ".",
+ "example": "example",
+ "test": "test"
+ },
+ "scripts": {
+ "test": "tape test/*.js"
+ },
+ "devDependencies": {
+ "tape": "~1.0.2"
+ },
+ "repository": {
+ "type": "git",
+ "url": "http://github.com/thlorenz/deep-is.git"
+ },
+ "keywords": [
+ "equality",
+ "equal",
+ "compare"
+ ],
+ "author": {
+ "name": "Thorsten Lorenz",
+ "email": "thlorenz@gmx.de",
+ "url": "http://thlorenz.com"
+ },
+ "license": "MIT",
+ "testling": {
+ "files": "test/*.js",
+ "browsers": {
+ "ie": [
+ 6,
+ 7,
+ 8,
+ 9
+ ],
+ "ff": [
+ 3.5,
+ 10,
+ 15
+ ],
+ "chrome": [
+ 10,
+ 22
+ ],
+ "safari": [
+ 5.1
+ ],
+ "opera": [
+ 12
+ ]
+ }
+ }
+}
diff --git a/tools/ui/node_modules/deep-is/test/NaN.js b/tools/ui/node_modules/deep-is/test/NaN.js
new file mode 100644
index 0000000000000000000000000000000000000000..ddaa5a77b412fcc73c3013f88bdbb4e4d4e7da6b
--- /dev/null
+++ b/tools/ui/node_modules/deep-is/test/NaN.js
@@ -0,0 +1,16 @@
+var test = require('tape');
+var equal = require('../');
+
+test('NaN and 0 values', function (t) {
+ t.ok(equal(NaN, NaN));
+ t.notOk(equal(0, NaN));
+ t.ok(equal(0, 0));
+ t.notOk(equal(0, 1));
+ t.end();
+});
+
+
+test('nested NaN values', function (t) {
+ t.ok(equal([ NaN, 1, NaN ], [ NaN, 1, NaN ]));
+ t.end();
+});
diff --git a/tools/ui/node_modules/deep-is/test/cmp.js b/tools/ui/node_modules/deep-is/test/cmp.js
new file mode 100644
index 0000000000000000000000000000000000000000..307101341db090a31d2aa9e7e466042e16d1afd4
--- /dev/null
+++ b/tools/ui/node_modules/deep-is/test/cmp.js
@@ -0,0 +1,23 @@
+var test = require('tape');
+var equal = require('../');
+
+test('equal', function (t) {
+ t.ok(equal(
+ { a : [ 2, 3 ], b : [ 4 ] },
+ { a : [ 2, 3 ], b : [ 4 ] }
+ ));
+ t.end();
+});
+
+test('not equal', function (t) {
+ t.notOk(equal(
+ { x : 5, y : [6] },
+ { x : 5, y : 6 }
+ ));
+ t.end();
+});
+
+test('nested nulls', function (t) {
+ t.ok(equal([ null, null, null ], [ null, null, null ]));
+ t.end();
+});
diff --git a/tools/ui/node_modules/deep-is/test/neg-vs-pos-0.js b/tools/ui/node_modules/deep-is/test/neg-vs-pos-0.js
new file mode 100644
index 0000000000000000000000000000000000000000..ac26130e6a7757f3341eefe2dd7ce8539b5b66e5
--- /dev/null
+++ b/tools/ui/node_modules/deep-is/test/neg-vs-pos-0.js
@@ -0,0 +1,15 @@
+var test = require('tape');
+var equal = require('../');
+
+test('0 values', function (t) {
+ t.ok(equal( 0, 0), ' 0 === 0');
+ t.ok(equal( 0, +0), ' 0 === +0');
+ t.ok(equal(+0, +0), '+0 === +0');
+ t.ok(equal(-0, -0), '-0 === -0');
+
+ t.notOk(equal(-0, 0), '-0 !== 0');
+ t.notOk(equal(-0, +0), '-0 !== +0');
+
+ t.end();
+});
+
diff --git a/tools/ui/node_modules/deepmerge/.editorconfig b/tools/ui/node_modules/deepmerge/.editorconfig
new file mode 100644
index 0000000000000000000000000000000000000000..6244e1b7bf4ec9d050cb53b600c9b7f9c376a7bf
--- /dev/null
+++ b/tools/ui/node_modules/deepmerge/.editorconfig
@@ -0,0 +1,7 @@
+root = true
+
+[*]
+indent_style = tab
+end_of_line = lf
+trim_trailing_whitespace = true
+insert_final_newline = true
diff --git a/tools/ui/node_modules/deepmerge/.eslintcache b/tools/ui/node_modules/deepmerge/.eslintcache
new file mode 100644
index 0000000000000000000000000000000000000000..c1321eb470e0026ecce2014fe5a34f408ecba873
--- /dev/null
+++ b/tools/ui/node_modules/deepmerge/.eslintcache
@@ -0,0 +1 @@
+[{"/Users/joshduff/code/deepmerge/test/custom-is-mergeable-object.js":"1"},{"size":1990,"mtime":1679007485753,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","suppressedMessages":"6","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"ktjd5k","/Users/joshduff/code/deepmerge/test/custom-is-mergeable-object.js",[],[]]
\ No newline at end of file
diff --git a/tools/ui/node_modules/deepmerge/changelog.md b/tools/ui/node_modules/deepmerge/changelog.md
new file mode 100644
index 0000000000000000000000000000000000000000..082e0dd393f4dcee8668050a850c7e327762f976
--- /dev/null
+++ b/tools/ui/node_modules/deepmerge/changelog.md
@@ -0,0 +1,167 @@
+# [4.3.1](https://github.com/TehShrike/deepmerge/releases/tag/v4.3.1)
+
+- Fix type definition for arrayMerge options. [#239](https://github.com/TehShrike/deepmerge/pull/239)
+
+# [4.3.0](https://github.com/TehShrike/deepmerge/releases/tag/v4.3.0)
+
+- Avoid thrown errors if the target doesn't have `propertyIsEnumerable`. [#252](https://github.com/TehShrike/deepmerge/pull/252)
+
+# [4.2.2](https://github.com/TehShrike/deepmerge/releases/tag/v4.2.2)
+
+- `isMergeableObject` is now only called if there are two values that could be merged. [a34dd4d2](https://github.com/TehShrike/deepmerge/commit/a34dd4d25bf5e250653540a2022bc832c7b00a19)
+
+# [4.2.1](https://github.com/TehShrike/deepmerge/releases/tag/v4.2.1)
+
+- Fix: falsey values can now be merged. [#170](https://github.com/TehShrike/deepmerge/issues/170)
+
+# [4.2.0](https://github.com/TehShrike/deepmerge/releases/tag/v4.2.0)
+
+- Properties are now only overwritten if they exist on the target object and are enumerable. [#164](https://github.com/TehShrike/deepmerge/pull/164)
+
+Technically this could probably be a patch release since "which properties get overwritten" wasn't documented and accidentally overwriting a built-in function or some function up the property chain would almost certainly be undesirable, but it feels like a gray area, so here we are with a feature version bump.
+
+# [4.1.2](https://github.com/TehShrike/deepmerge/releases/tag/v4.1.2)
+
+- Rolled back #167 since `Object.assign` breaks ES5 support. [55067352](https://github.com/TehShrike/deepmerge/commit/55067352a92c65a6c44a5165f3387720aae1e192)
+
+# [4.1.1](https://github.com/TehShrike/deepmerge/releases/tag/v4.1.1)
+
+- The `options` argument is no longer mutated [#167](https://github.com/TehShrike/deepmerge/pull/167)
+
+# [4.1.0](https://github.com/TehShrike/deepmerge/releases/tag/v4.1.0)
+
+- `cloneUnlessOtherwiseSpecified` is now exposed to the `arrayMerge` function [#165](https://github.com/TehShrike/deepmerge/pull/165)
+
+# [4.0.0](https://github.com/TehShrike/deepmerge/releases/tag/v4.0.0)
+
+- The `main` entry point in `package.json` is now a CommonJS module instead of a UMD module [#155](https://github.com/TehShrike/deepmerge/pull/155)
+
+# [3.3.0](https://github.com/TehShrike/deepmerge/releases/tag/v3.3.0)
+
+- Enumerable Symbol properties are now copied [#151](https://github.com/TehShrike/deepmerge/pull/151)
+
+# [3.2.1](https://github.com/TehShrike/deepmerge/releases/tag/v3.2.1)
+
+- bumping dev dependency versions to try to shut up bogus security warnings from Github/npm [#149](https://github.com/TehShrike/deepmerge/pull/149)
+
+# [3.2.0](https://github.com/TehShrike/deepmerge/releases/tag/v3.2.0)
+
+- feature: added the [`customMerge`](https://github.com/TehShrike/deepmerge#custommerge) option [#133](https://github.com/TehShrike/deepmerge/pull/133)
+
+# [3.1.0](https://github.com/TehShrike/deepmerge/releases/tag/v3.1.0)
+
+- typescript typing: make the `all` function generic [#129](https://github.com/TehShrike/deepmerge/pull/129)
+
+# [3.0.0](https://github.com/TehShrike/deepmerge/releases/tag/v3.0.0)
+
+- drop ES module build [#123](https://github.com/TehShrike/deepmerge/issues/123)
+
+# [2.2.1](https://github.com/TehShrike/deepmerge/releases/tag/v2.2.1)
+
+- bug: typescript export type was wrong [#121](https://github.com/TehShrike/deepmerge/pull/121)
+
+# [2.2.0](https://github.com/TehShrike/deepmerge/releases/tag/v2.2.0)
+
+- feature: added TypeScript typings [#119](https://github.com/TehShrike/deepmerge/pull/119)
+
+# [2.1.1](https://github.com/TehShrike/deepmerge/releases/tag/v2.1.1)
+
+- documentation: Rename "methods" to "api", note ESM syntax [#103](https://github.com/TehShrike/deepmerge/pull/103)
+- documentation: Fix grammar [#107](https://github.com/TehShrike/deepmerge/pull/107)
+- documentation: Restructure headers for clarity + some wording tweaks [108](https://github.com/TehShrike/deepmerge/pull/108) + [109](https://github.com/TehShrike/deepmerge/pull/109)
+
+
+# [2.1.0](https://github.com/TehShrike/deepmerge/releases/tag/v2.1.0)
+
+- feature: Support a custom `isMergeableObject` function [#96](https://github.com/TehShrike/deepmerge/pull/96)
+- documentation: note a Webpack bug that some users might need to work around [#100](https://github.com/TehShrike/deepmerge/pull/100)
+
+# [2.0.1](https://github.com/TehShrike/deepmerge/releases/tag/v2.0.1)
+
+- documentation: fix the old array merge algorithm in the readme. [#84](https://github.com/TehShrike/deepmerge/pull/84)
+
+# [2.0.0](https://github.com/TehShrike/deepmerge/releases/tag/v2.0.0)
+
+- breaking: the array merge algorithm has changed from a complicated thing to `target.concat(source).map(element => cloneUnlessOtherwiseSpecified(element, optionsArgument))`
+- breaking: The `clone` option now defaults to `true`
+- feature: `merge.all` now accepts an array of any size, even 0 or 1 elements
+
+See [pull request 77](https://github.com/TehShrike/deepmerge/pull/77).
+
+# [1.5.2](https://github.com/TehShrike/deepmerge/releases/tag/v1.5.2)
+
+- fix: no longer attempts to merge React elements [#76](https://github.com/TehShrike/deepmerge/issues/76)
+
+# [1.5.1](https://github.com/TehShrike/deepmerge/releases/tag/v1.5.1)
+
+- bower support: officially dropping bower support. If you use bower, please depend on the [unpkg distribution](https://unpkg.com/deepmerge/dist/umd.js). See [#63](https://github.com/TehShrike/deepmerge/issues/63)
+
+# [1.5.0](https://github.com/TehShrike/deepmerge/releases/tag/v1.5.0)
+
+- bug fix: merging objects into arrays was allowed, and doesn't make any sense. [#65](https://github.com/TehShrike/deepmerge/issues/65) published as a feature release instead of a patch because it is a decent behavior change.
+
+# [1.4.4](https://github.com/TehShrike/deepmerge/releases/tag/v1.4.4)
+
+- bower support: updated `main` in bower.json
+
+# [1.4.3](https://github.com/TehShrike/deepmerge/releases/tag/v1.4.3)
+
+- bower support: inline is-mergeable-object in a new CommonJS build, so that people using both bower and CommonJS can bundle the library [0b34e6](https://github.com/TehShrike/deepmerge/commit/0b34e6e95f989f2fc8091d25f0d291c08f3d2d24)
+
+# [1.4.2](https://github.com/TehShrike/deepmerge/releases/tag/v1.4.2)
+
+- performance: bump is-mergeable-object dependency version for a slight performance improvement [5906c7](https://github.com/TehShrike/deepmerge/commit/5906c765d691d48e83d76efbb0d4b9ca150dc12c)
+
+# [1.4.1](https://github.com/TehShrike/deepmerge/releases/tag/v1.4.1)
+
+- documentation: fix unpkg link [acc45b](https://github.com/TehShrike/deepmerge/commit/acc45be85519c1df906a72ecb24764b622d18d47)
+
+# [1.4.0](https://github.com/TehShrike/deepmerge/releases/tag/v1.4.0)
+
+- api: instead of only exporting a UMD module, expose a UMD module with `pkg.main`, a CJS module with `pkg.browser`, and an ES module with `pkg.module` [#62](https://github.com/TehShrike/deepmerge/pull/62)
+
+# [1.3.2](https://github.com/TehShrike/deepmerge/releases/tag/v1.3.2)
+
+- documentation: note the minified/gzipped file sizes [56](https://github.com/TehShrike/deepmerge/pull/56)
+- documentation: make data structures more readable in merge example: pull request [57](https://github.com/TehShrike/deepmerge/pull/57)
+
+# [1.3.1](https://github.com/TehShrike/deepmerge/releases/tag/v1.3.1)
+
+- documentation: clarify and test some array merging documentation: pull request [51](https://github.com/TehShrike/deepmerge/pull/51)
+
+# [1.3.0](https://github.com/TehShrike/deepmerge/releases/tag/v1.3.0)
+
+- feature: `merge.all`, a merge function that merges any number of objects: pull request [50](https://github.com/TehShrike/deepmerge/pull/50)
+
+# [1.2.0](https://github.com/TehShrike/deepmerge/releases/tag/v1.2.0)
+
+- fix: an error that would be thrown when an array would be merged onto a truthy non-array value: pull request [46](https://github.com/TehShrike/deepmerge/pull/46)
+- feature: the ability to clone: Issue [28](https://github.com/TehShrike/deepmerge/issues/28), pull requests [44](https://github.com/TehShrike/deepmerge/pull/44) and [48](https://github.com/TehShrike/deepmerge/pull/48)
+- maintenance: added tests + travis to `.npmignore`: pull request [47](https://github.com/TehShrike/deepmerge/pull/47)
+
+# [1.1.1](https://github.com/TehShrike/deepmerge/releases/tag/v1.1.1)
+
+- fix an issue where an error was thrown when merging an array onto a non-array: [Pull request 46](https://github.com/TehShrike/deepmerge/pull/46)
+
+# [1.1.0](https://github.com/TehShrike/deepmerge/releases/tag/v1.1.0)
+
+- allow consumers to specify their own array merging algorithm: [Pull request 37](https://github.com/TehShrike/deepmerge/pull/37)
+
+# [1.0.3](https://github.com/TehShrike/deepmerge/releases/tag/v1.0.3)
+
+- adding bower.json back: [Issue 38](https://github.com/TehShrike/deepmerge/pull/38)
+- updating keywords and Github links in package.json [bc3898e](https://github.com/TehShrike/deepmerge/commit/bc3898e587a56f74591328f40f656b0152c1d5eb)
+
+# [1.0.2](https://github.com/TehShrike/deepmerge/releases/tag/v1.0.2)
+
+- Updating the readme: dropping bower, testing that the example works: [7102fc](https://github.com/TehShrike/deepmerge/commit/7102fcc4ddec11e2d33205866f9f18df14e5aeb5)
+
+# [1.0.1](https://github.com/TehShrike/deepmerge/releases/tag/v1.0.1)
+
+- `null`, dates, and regular expressions are now properly merged in arrays: [Issue 18](https://github.com/TehShrike/deepmerge/pull/18), plus commit: [ef1c6b](https://github.com/TehShrike/deepmerge/commit/ef1c6bac8350ba12a24966f0bc7da02560827586)
+
+# 1.0.0
+
+- Should only be a patch change, because this module is READY. [Issue 15](https://github.com/TehShrike/deepmerge/issues/15)
+- Regular expressions are now treated like primitive values when merging: [Issue 30](https://github.com/TehShrike/deepmerge/pull/30)
+- Dates are now treated like primitives when merging: [Issue 31](https://github.com/TehShrike/deepmerge/issues/31)
diff --git a/tools/ui/node_modules/deepmerge/dist/cjs.js b/tools/ui/node_modules/deepmerge/dist/cjs.js
new file mode 100644
index 0000000000000000000000000000000000000000..7c36cbdd06cc22c92d590be3f87a08a91ca06b40
--- /dev/null
+++ b/tools/ui/node_modules/deepmerge/dist/cjs.js
@@ -0,0 +1,133 @@
+'use strict';
+
+var isMergeableObject = function isMergeableObject(value) {
+ return isNonNullObject(value)
+ && !isSpecial(value)
+};
+
+function isNonNullObject(value) {
+ return !!value && typeof value === 'object'
+}
+
+function isSpecial(value) {
+ var stringValue = Object.prototype.toString.call(value);
+
+ return stringValue === '[object RegExp]'
+ || stringValue === '[object Date]'
+ || isReactElement(value)
+}
+
+// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
+var canUseSymbol = typeof Symbol === 'function' && Symbol.for;
+var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;
+
+function isReactElement(value) {
+ return value.$$typeof === REACT_ELEMENT_TYPE
+}
+
+function emptyTarget(val) {
+ return Array.isArray(val) ? [] : {}
+}
+
+function cloneUnlessOtherwiseSpecified(value, options) {
+ return (options.clone !== false && options.isMergeableObject(value))
+ ? deepmerge(emptyTarget(value), value, options)
+ : value
+}
+
+function defaultArrayMerge(target, source, options) {
+ return target.concat(source).map(function(element) {
+ return cloneUnlessOtherwiseSpecified(element, options)
+ })
+}
+
+function getMergeFunction(key, options) {
+ if (!options.customMerge) {
+ return deepmerge
+ }
+ var customMerge = options.customMerge(key);
+ return typeof customMerge === 'function' ? customMerge : deepmerge
+}
+
+function getEnumerableOwnPropertySymbols(target) {
+ return Object.getOwnPropertySymbols
+ ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
+ return Object.propertyIsEnumerable.call(target, symbol)
+ })
+ : []
+}
+
+function getKeys(target) {
+ return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))
+}
+
+function propertyIsOnObject(object, property) {
+ try {
+ return property in object
+ } catch(_) {
+ return false
+ }
+}
+
+// Protects from prototype poisoning and unexpected merging up the prototype chain.
+function propertyIsUnsafe(target, key) {
+ return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,
+ && !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,
+ && Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.
+}
+
+function mergeObject(target, source, options) {
+ var destination = {};
+ if (options.isMergeableObject(target)) {
+ getKeys(target).forEach(function(key) {
+ destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
+ });
+ }
+ getKeys(source).forEach(function(key) {
+ if (propertyIsUnsafe(target, key)) {
+ return
+ }
+
+ if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
+ destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
+ } else {
+ destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
+ }
+ });
+ return destination
+}
+
+function deepmerge(target, source, options) {
+ options = options || {};
+ options.arrayMerge = options.arrayMerge || defaultArrayMerge;
+ options.isMergeableObject = options.isMergeableObject || isMergeableObject;
+ // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
+ // implementations can use it. The caller may not replace it.
+ options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
+
+ var sourceIsArray = Array.isArray(source);
+ var targetIsArray = Array.isArray(target);
+ var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
+
+ if (!sourceAndTargetTypesMatch) {
+ return cloneUnlessOtherwiseSpecified(source, options)
+ } else if (sourceIsArray) {
+ return options.arrayMerge(target, source, options)
+ } else {
+ return mergeObject(target, source, options)
+ }
+}
+
+deepmerge.all = function deepmergeAll(array, options) {
+ if (!Array.isArray(array)) {
+ throw new Error('first argument should be an array')
+ }
+
+ return array.reduce(function(prev, next) {
+ return deepmerge(prev, next, options)
+ }, {})
+};
+
+var deepmerge_1 = deepmerge;
+
+module.exports = deepmerge_1;
diff --git a/tools/ui/node_modules/deepmerge/dist/umd.js b/tools/ui/node_modules/deepmerge/dist/umd.js
new file mode 100644
index 0000000000000000000000000000000000000000..4071e7c56ec8e5273fe166f6e723ac460fab8b72
--- /dev/null
+++ b/tools/ui/node_modules/deepmerge/dist/umd.js
@@ -0,0 +1,139 @@
+(function (global, factory) {
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
+ typeof define === 'function' && define.amd ? define(factory) :
+ (global = global || self, global.deepmerge = factory());
+}(this, function () { 'use strict';
+
+ var isMergeableObject = function isMergeableObject(value) {
+ return isNonNullObject(value)
+ && !isSpecial(value)
+ };
+
+ function isNonNullObject(value) {
+ return !!value && typeof value === 'object'
+ }
+
+ function isSpecial(value) {
+ var stringValue = Object.prototype.toString.call(value);
+
+ return stringValue === '[object RegExp]'
+ || stringValue === '[object Date]'
+ || isReactElement(value)
+ }
+
+ // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
+ var canUseSymbol = typeof Symbol === 'function' && Symbol.for;
+ var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;
+
+ function isReactElement(value) {
+ return value.$$typeof === REACT_ELEMENT_TYPE
+ }
+
+ function emptyTarget(val) {
+ return Array.isArray(val) ? [] : {}
+ }
+
+ function cloneUnlessOtherwiseSpecified(value, options) {
+ return (options.clone !== false && options.isMergeableObject(value))
+ ? deepmerge(emptyTarget(value), value, options)
+ : value
+ }
+
+ function defaultArrayMerge(target, source, options) {
+ return target.concat(source).map(function(element) {
+ return cloneUnlessOtherwiseSpecified(element, options)
+ })
+ }
+
+ function getMergeFunction(key, options) {
+ if (!options.customMerge) {
+ return deepmerge
+ }
+ var customMerge = options.customMerge(key);
+ return typeof customMerge === 'function' ? customMerge : deepmerge
+ }
+
+ function getEnumerableOwnPropertySymbols(target) {
+ return Object.getOwnPropertySymbols
+ ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
+ return Object.propertyIsEnumerable.call(target, symbol)
+ })
+ : []
+ }
+
+ function getKeys(target) {
+ return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))
+ }
+
+ function propertyIsOnObject(object, property) {
+ try {
+ return property in object
+ } catch(_) {
+ return false
+ }
+ }
+
+ // Protects from prototype poisoning and unexpected merging up the prototype chain.
+ function propertyIsUnsafe(target, key) {
+ return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,
+ && !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,
+ && Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.
+ }
+
+ function mergeObject(target, source, options) {
+ var destination = {};
+ if (options.isMergeableObject(target)) {
+ getKeys(target).forEach(function(key) {
+ destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
+ });
+ }
+ getKeys(source).forEach(function(key) {
+ if (propertyIsUnsafe(target, key)) {
+ return
+ }
+
+ if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
+ destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
+ } else {
+ destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
+ }
+ });
+ return destination
+ }
+
+ function deepmerge(target, source, options) {
+ options = options || {};
+ options.arrayMerge = options.arrayMerge || defaultArrayMerge;
+ options.isMergeableObject = options.isMergeableObject || isMergeableObject;
+ // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
+ // implementations can use it. The caller may not replace it.
+ options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
+
+ var sourceIsArray = Array.isArray(source);
+ var targetIsArray = Array.isArray(target);
+ var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
+
+ if (!sourceAndTargetTypesMatch) {
+ return cloneUnlessOtherwiseSpecified(source, options)
+ } else if (sourceIsArray) {
+ return options.arrayMerge(target, source, options)
+ } else {
+ return mergeObject(target, source, options)
+ }
+ }
+
+ deepmerge.all = function deepmergeAll(array, options) {
+ if (!Array.isArray(array)) {
+ throw new Error('first argument should be an array')
+ }
+
+ return array.reduce(function(prev, next) {
+ return deepmerge(prev, next, options)
+ }, {})
+ };
+
+ var deepmerge_1 = deepmerge;
+
+ return deepmerge_1;
+
+}));
diff --git a/tools/ui/node_modules/deepmerge/index.d.ts b/tools/ui/node_modules/deepmerge/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..46784de5625a962c3c4c68c8fe16078815cce018
--- /dev/null
+++ b/tools/ui/node_modules/deepmerge/index.d.ts
@@ -0,0 +1,20 @@
+declare function deepmerge(x: Partial, y: Partial, options?: deepmerge.Options): T;
+declare function deepmerge(x: Partial, y: Partial, options?: deepmerge.Options): T1 & T2;
+
+declare namespace deepmerge {
+ export interface Options {
+ arrayMerge?(target: any[], source: any[], options?: ArrayMergeOptions): any[];
+ clone?: boolean;
+ customMerge?: (key: string, options?: Options) => ((x: any, y: any) => any) | undefined;
+ isMergeableObject?(value: object): boolean;
+ }
+ export interface ArrayMergeOptions {
+ isMergeableObject(value: object): boolean;
+ cloneUnlessOtherwiseSpecified(value: object, options?: Options): object;
+ }
+
+ export function all (objects: object[], options?: Options): object;
+ export function all (objects: Partial[], options?: Options): T;
+}
+
+export = deepmerge;
diff --git a/tools/ui/node_modules/deepmerge/index.js b/tools/ui/node_modules/deepmerge/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..77968aed5d456cccc294f60912ef381fa1e52a7b
--- /dev/null
+++ b/tools/ui/node_modules/deepmerge/index.js
@@ -0,0 +1,106 @@
+var defaultIsMergeableObject = require('is-mergeable-object')
+
+function emptyTarget(val) {
+ return Array.isArray(val) ? [] : {}
+}
+
+function cloneUnlessOtherwiseSpecified(value, options) {
+ return (options.clone !== false && options.isMergeableObject(value))
+ ? deepmerge(emptyTarget(value), value, options)
+ : value
+}
+
+function defaultArrayMerge(target, source, options) {
+ return target.concat(source).map(function(element) {
+ return cloneUnlessOtherwiseSpecified(element, options)
+ })
+}
+
+function getMergeFunction(key, options) {
+ if (!options.customMerge) {
+ return deepmerge
+ }
+ var customMerge = options.customMerge(key)
+ return typeof customMerge === 'function' ? customMerge : deepmerge
+}
+
+function getEnumerableOwnPropertySymbols(target) {
+ return Object.getOwnPropertySymbols
+ ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
+ return Object.propertyIsEnumerable.call(target, symbol)
+ })
+ : []
+}
+
+function getKeys(target) {
+ return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))
+}
+
+function propertyIsOnObject(object, property) {
+ try {
+ return property in object
+ } catch(_) {
+ return false
+ }
+}
+
+// Protects from prototype poisoning and unexpected merging up the prototype chain.
+function propertyIsUnsafe(target, key) {
+ return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,
+ && !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,
+ && Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.
+}
+
+function mergeObject(target, source, options) {
+ var destination = {}
+ if (options.isMergeableObject(target)) {
+ getKeys(target).forEach(function(key) {
+ destination[key] = cloneUnlessOtherwiseSpecified(target[key], options)
+ })
+ }
+ getKeys(source).forEach(function(key) {
+ if (propertyIsUnsafe(target, key)) {
+ return
+ }
+
+ if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
+ destination[key] = getMergeFunction(key, options)(target[key], source[key], options)
+ } else {
+ destination[key] = cloneUnlessOtherwiseSpecified(source[key], options)
+ }
+ })
+ return destination
+}
+
+function deepmerge(target, source, options) {
+ options = options || {}
+ options.arrayMerge = options.arrayMerge || defaultArrayMerge
+ options.isMergeableObject = options.isMergeableObject || defaultIsMergeableObject
+ // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
+ // implementations can use it. The caller may not replace it.
+ options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified
+
+ var sourceIsArray = Array.isArray(source)
+ var targetIsArray = Array.isArray(target)
+ var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray
+
+ if (!sourceAndTargetTypesMatch) {
+ return cloneUnlessOtherwiseSpecified(source, options)
+ } else if (sourceIsArray) {
+ return options.arrayMerge(target, source, options)
+ } else {
+ return mergeObject(target, source, options)
+ }
+}
+
+deepmerge.all = function deepmergeAll(array, options) {
+ if (!Array.isArray(array)) {
+ throw new Error('first argument should be an array')
+ }
+
+ return array.reduce(function(prev, next) {
+ return deepmerge(prev, next, options)
+ }, {})
+}
+
+module.exports = deepmerge
diff --git a/tools/ui/node_modules/deepmerge/license.txt b/tools/ui/node_modules/deepmerge/license.txt
new file mode 100644
index 0000000000000000000000000000000000000000..5003078718343fc207823c9f543ef906ac59dcbe
--- /dev/null
+++ b/tools/ui/node_modules/deepmerge/license.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2012 James Halliday, Josh Duff, and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/tools/ui/node_modules/deepmerge/package.json b/tools/ui/node_modules/deepmerge/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..2b7b1be8c3ad6253396713c5a915eda3fef74462
--- /dev/null
+++ b/tools/ui/node_modules/deepmerge/package.json
@@ -0,0 +1,42 @@
+{
+ "name": "deepmerge",
+ "description": "A library for deep (recursive) merging of Javascript objects",
+ "keywords": [
+ "merge",
+ "deep",
+ "extend",
+ "copy",
+ "clone",
+ "recursive"
+ ],
+ "version": "4.3.1",
+ "homepage": "https://github.com/TehShrike/deepmerge",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/TehShrike/deepmerge.git"
+ },
+ "main": "dist/cjs.js",
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "scripts": {
+ "build": "rollup -c",
+ "test": "npm run build && tape test/*.js && jsmd readme.md && npm run test:typescript",
+ "test:typescript": "tsc --noEmit test/typescript.ts && ts-node test/typescript.ts",
+ "size": "npm run build && uglifyjs --compress --mangle -- ./dist/umd.js | gzip -c | wc -c"
+ },
+ "devDependencies": {
+ "@types/node": "^8.10.54",
+ "is-mergeable-object": "1.1.0",
+ "is-plain-object": "^5.0.0",
+ "jsmd": "^1.0.2",
+ "rollup": "^1.23.1",
+ "rollup-plugin-commonjs": "^10.1.0",
+ "rollup-plugin-node-resolve": "^5.2.0",
+ "tape": "^4.11.0",
+ "ts-node": "7.0.1",
+ "typescript": "=2.2.2",
+ "uglify-js": "^3.6.1"
+ },
+ "license": "MIT"
+}
diff --git a/tools/ui/node_modules/deepmerge/readme.md b/tools/ui/node_modules/deepmerge/readme.md
new file mode 100644
index 0000000000000000000000000000000000000000..79e4e303b0148748b5ef107e6d7f0afa2d665aa6
--- /dev/null
+++ b/tools/ui/node_modules/deepmerge/readme.md
@@ -0,0 +1,264 @@
+# deepmerge
+
+Merges the enumerable properties of two or more objects deeply.
+
+> UMD bundle is 723B minified+gzipped
+
+## Getting Started
+
+### Example Usage
+
+
+```js
+const x = {
+ foo: { bar: 3 },
+ array: [{
+ does: 'work',
+ too: [ 1, 2, 3 ]
+ }]
+}
+
+const y = {
+ foo: { baz: 4 },
+ quux: 5,
+ array: [{
+ does: 'work',
+ too: [ 4, 5, 6 ]
+ }, {
+ really: 'yes'
+ }]
+}
+
+const output = {
+ foo: {
+ bar: 3,
+ baz: 4
+ },
+ array: [{
+ does: 'work',
+ too: [ 1, 2, 3 ]
+ }, {
+ does: 'work',
+ too: [ 4, 5, 6 ]
+ }, {
+ really: 'yes'
+ }],
+ quux: 5
+}
+
+merge(x, y) // => output
+```
+
+
+### Installation
+
+With [npm](http://npmjs.org) do:
+
+```sh
+npm install deepmerge
+```
+
+deepmerge can be used directly in the browser without the use of package managers/bundlers as well: [UMD version from unpkg.com](https://unpkg.com/deepmerge/dist/umd.js).
+
+
+### Include
+
+deepmerge exposes a CommonJS entry point:
+
+```
+const merge = require('deepmerge')
+```
+
+The ESM entry point was dropped due to a [Webpack bug](https://github.com/webpack/webpack/issues/6584).
+
+# API
+
+
+## `merge(x, y, [options])`
+
+Merge two objects `x` and `y` deeply, returning a new merged object with the
+elements from both `x` and `y`.
+
+If an element at the same key is present for both `x` and `y`, the value from
+`y` will appear in the result.
+
+Merging creates a new object, so that neither `x` or `y` is modified.
+
+**Note:** By default, arrays are merged by concatenating them.
+
+## `merge.all(arrayOfObjects, [options])`
+
+Merges any number of objects into a single result object.
+
+```js
+const foobar = { foo: { bar: 3 } }
+const foobaz = { foo: { baz: 4 } }
+const bar = { bar: 'yay!' }
+
+merge.all([ foobar, foobaz, bar ]) // => { foo: { bar: 3, baz: 4 }, bar: 'yay!' }
+```
+
+
+## Options
+
+### `arrayMerge`
+
+There are multiple ways to merge two arrays, below are a few examples but you can also create your own custom function.
+
+Your `arrayMerge` function will be called with three arguments: a `target` array, the `source` array, and an `options` object with these properties:
+
+- `isMergeableObject(value)`
+- `cloneUnlessOtherwiseSpecified(value, options)`
+
+#### `arrayMerge` example: overwrite target array
+
+Overwrites the existing array values completely rather than concatenating them:
+
+```js
+const overwriteMerge = (destinationArray, sourceArray, options) => sourceArray
+
+merge(
+ [1, 2, 3],
+ [3, 2, 1],
+ { arrayMerge: overwriteMerge }
+) // => [3, 2, 1]
+```
+
+#### `arrayMerge` example: combine arrays
+
+Combines objects at the same index in the two arrays.
+
+This was the default array merging algorithm pre-version-2.0.0.
+
+```js
+const combineMerge = (target, source, options) => {
+ const destination = target.slice()
+
+ source.forEach((item, index) => {
+ if (typeof destination[index] === 'undefined') {
+ destination[index] = options.cloneUnlessOtherwiseSpecified(item, options)
+ } else if (options.isMergeableObject(item)) {
+ destination[index] = merge(target[index], item, options)
+ } else if (target.indexOf(item) === -1) {
+ destination.push(item)
+ }
+ })
+ return destination
+}
+
+merge(
+ [{ a: true }],
+ [{ b: true }, 'ah yup'],
+ { arrayMerge: combineMerge }
+) // => [{ a: true, b: true }, 'ah yup']
+```
+
+### `isMergeableObject`
+
+By default, deepmerge clones every property from almost every kind of object.
+
+You may not want this, if your objects are of special types, and you want to copy the whole object instead of just copying its properties.
+
+You can accomplish this by passing in a function for the `isMergeableObject` option.
+
+If you only want to clone properties of plain objects, and ignore all "special" kinds of instantiated objects, you probably want to drop in [`is-plain-object`](https://github.com/jonschlinkert/is-plain-object).
+
+```js
+const { isPlainObject } = require('is-plain-object')
+
+function SuperSpecial() {
+ this.special = 'oh yeah man totally'
+}
+
+const instantiatedSpecialObject = new SuperSpecial()
+
+const target = {
+ someProperty: {
+ cool: 'oh for sure'
+ }
+}
+
+const source = {
+ someProperty: instantiatedSpecialObject
+}
+
+const defaultOutput = merge(target, source)
+
+defaultOutput.someProperty.cool // => 'oh for sure'
+defaultOutput.someProperty.special // => 'oh yeah man totally'
+defaultOutput.someProperty instanceof SuperSpecial // => false
+
+const customMergeOutput = merge(target, source, {
+ isMergeableObject: isPlainObject
+})
+
+customMergeOutput.someProperty.cool // => undefined
+customMergeOutput.someProperty.special // => 'oh yeah man totally'
+customMergeOutput.someProperty instanceof SuperSpecial // => true
+```
+
+### `customMerge`
+
+Specifies a function which can be used to override the default merge behavior for a property, based on the property name.
+
+The `customMerge` function will be passed the key for each property, and should return the function which should be used to merge the values for that property.
+
+It may also return undefined, in which case the default merge behaviour will be used.
+
+```js
+const alex = {
+ name: {
+ first: 'Alex',
+ last: 'Alexson'
+ },
+ pets: ['Cat', 'Parrot']
+}
+
+const tony = {
+ name: {
+ first: 'Tony',
+ last: 'Tonison'
+ },
+ pets: ['Dog']
+}
+
+const mergeNames = (nameA, nameB) => `${nameA.first} and ${nameB.first}`
+
+const options = {
+ customMerge: (key) => {
+ if (key === 'name') {
+ return mergeNames
+ }
+ }
+}
+
+const result = merge(alex, tony, options)
+
+result.name // => 'Alex and Tony'
+result.pets // => ['Cat', 'Parrot', 'Dog']
+```
+
+
+### `clone`
+
+*Deprecated.*
+
+Defaults to `true`.
+
+If `clone` is `false` then child objects will be copied directly instead of being cloned. This was the default behavior before version 2.x.
+
+
+# Testing
+
+With [npm](http://npmjs.org) do:
+
+```sh
+npm test
+```
+
+
+# License
+
+MIT
diff --git a/tools/ui/node_modules/deepmerge/rollup.config.js b/tools/ui/node_modules/deepmerge/rollup.config.js
new file mode 100644
index 0000000000000000000000000000000000000000..8323ab27e53825fc55e052c54a8869de99d8b874
--- /dev/null
+++ b/tools/ui/node_modules/deepmerge/rollup.config.js
@@ -0,0 +1,22 @@
+import resolve from 'rollup-plugin-node-resolve'
+import commonjs from 'rollup-plugin-commonjs'
+import pkg from './package.json'
+
+export default {
+ input: `index.js`,
+ plugins: [
+ commonjs(),
+ resolve(),
+ ],
+ output: [
+ {
+ file: pkg.main,
+ format: `cjs`
+ },
+ {
+ name: 'deepmerge',
+ file: 'dist/umd.js',
+ format: `umd`
+ },
+ ],
+}
diff --git a/tools/ui/node_modules/default-browser-id/index.js b/tools/ui/node_modules/default-browser-id/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..1101c73636e35e076771b0850dc36587c12e5999
--- /dev/null
+++ b/tools/ui/node_modules/default-browser-id/index.js
@@ -0,0 +1,25 @@
+import {promisify} from 'node:util';
+import process from 'node:process';
+import {execFile} from 'node:child_process';
+
+const execFileAsync = promisify(execFile);
+
+export default async function defaultBrowserId() {
+ if (process.platform !== 'darwin') {
+ throw new Error('macOS only');
+ }
+
+ const {stdout} = await execFileAsync('defaults', ['read', 'com.apple.LaunchServices/com.apple.launchservices.secure', 'LSHandlers']);
+
+ // `(?!-)` is to prevent matching `LSHandlerRoleAll = "-";`.
+ const match = /LSHandlerRoleAll = "(?!-)(?[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(stdout);
+
+ const browserId = match?.groups.id ?? 'com.apple.Safari';
+
+ // Correct the case for Safari's bundle identifier
+ if (browserId === 'com.apple.safari') {
+ return 'com.apple.Safari';
+ }
+
+ return browserId;
+}
diff --git a/tools/ui/node_modules/default-browser-id/license b/tools/ui/node_modules/default-browser-id/license
new file mode 100644
index 0000000000000000000000000000000000000000..fa7ceba3eb4a9657a9db7f3ffca4e4e97a9019de
--- /dev/null
+++ b/tools/ui/node_modules/default-browser-id/license
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/tools/ui/node_modules/default-browser-id/package.json b/tools/ui/node_modules/default-browser-id/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..ce9690765b8a9d0a65acf1f9209515db87acc3a8
--- /dev/null
+++ b/tools/ui/node_modules/default-browser-id/package.json
@@ -0,0 +1,41 @@
+{
+ "name": "default-browser-id",
+ "version": "5.0.1",
+ "description": "Get the bundle identifier of the default browser (macOS). Example: com.apple.Safari",
+ "license": "MIT",
+ "repository": "sindresorhus/default-browser-id",
+ "funding": "https://github.com/sponsors/sindresorhus",
+ "author": {
+ "name": "Sindre Sorhus",
+ "email": "sindresorhus@gmail.com",
+ "url": "https://sindresorhus.com"
+ },
+ "type": "module",
+ "exports": "./index.js",
+ "sideEffects": false,
+ "engines": {
+ "node": ">=18"
+ },
+ "scripts": {
+ "test": "xo && ava"
+ },
+ "files": [
+ "index.js"
+ ],
+ "keywords": [
+ "macos",
+ "browser",
+ "default",
+ "plist",
+ "web",
+ "bundle",
+ "bundleid",
+ "id",
+ "identifier",
+ "uti"
+ ],
+ "devDependencies": {
+ "ava": "^6.0.1",
+ "xo": "^0.56.0"
+ }
+}
diff --git a/tools/ui/node_modules/default-browser-id/readme.md b/tools/ui/node_modules/default-browser-id/readme.md
new file mode 100644
index 0000000000000000000000000000000000000000..6d6b043a574f213ae53fd722255ec1b3aab8705e
--- /dev/null
+++ b/tools/ui/node_modules/default-browser-id/readme.md
@@ -0,0 +1,19 @@
+# default-browser-id
+
+> Get the [bundle identifier](https://developer.apple.com/library/Mac/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/plist/info/CFBundleIdentifier) of the default browser *(macOS)*\
+> Example: `com.apple.Safari`
+
+## Install
+
+```sh
+npm install default-browser-id
+```
+
+## Usage
+
+```js
+import defaultBrowserId from 'default-browser-id';
+
+console.log(await defaultBrowserId());
+//=> 'com.apple.Safari'
+```
diff --git a/tools/ui/node_modules/default-browser/index.d.ts b/tools/ui/node_modules/default-browser/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..1f3875f438273158f44d847c403dc0743d867531
--- /dev/null
+++ b/tools/ui/node_modules/default-browser/index.d.ts
@@ -0,0 +1,29 @@
+export type Browser = {
+ /**
+ Human-readadable name of the browser.
+ */
+ name: string;
+
+ /**
+ The unique identifier for the browser on the current platform:
+ - On macOS, it's the app's bundle identifier.
+ - On Linux, it's the desktop file identifier (from `xdg-mime`).
+ - On Windows, it's an invented identifier, because apps on Windows does not have identifiers.
+ */
+ id: string;
+};
+
+/**
+Get the default browser for the current platform.
+
+@returns A promise for the browser.
+
+@example
+```
+import defaultBrowser from 'default-browser';
+
+console.log(await defaultBrowser());
+//=> {name: 'Safari', id: 'com.apple.Safari'}
+```
+*/
+export default function defaultBrowser(): Promise;
diff --git a/tools/ui/node_modules/default-browser/index.js b/tools/ui/node_modules/default-browser/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..3a3137dffcdd8918955185fd76dfe28e74943c15
--- /dev/null
+++ b/tools/ui/node_modules/default-browser/index.js
@@ -0,0 +1,34 @@
+import {promisify} from 'node:util';
+import process from 'node:process';
+import {execFile} from 'node:child_process';
+import defaultBrowserId from 'default-browser-id';
+import bundleName from 'bundle-name';
+import windows from './windows.js';
+
+export {_windowsBrowserProgIdMap} from './windows.js';
+
+const execFileAsync = promisify(execFile);
+
+// Inlined: https://github.com/sindresorhus/titleize/blob/main/index.js
+const titleize = string => string.toLowerCase().replaceAll(/(?:^|\s|-)\S/g, x => x.toUpperCase());
+
+export default async function defaultBrowser() {
+ if (process.platform === 'darwin') {
+ const id = await defaultBrowserId();
+ const name = await bundleName(id);
+ return {name, id};
+ }
+
+ if (process.platform === 'linux') {
+ const {stdout} = await execFileAsync('xdg-mime', ['query', 'default', 'x-scheme-handler/http']);
+ const id = stdout.trim();
+ const name = titleize(id.replace(/.desktop$/, '').replace('-', ' '));
+ return {name, id};
+ }
+
+ if (process.platform === 'win32') {
+ return windows();
+ }
+
+ throw new Error('Only macOS, Linux, and Windows are supported');
+}
diff --git a/tools/ui/node_modules/default-browser/license b/tools/ui/node_modules/default-browser/license
new file mode 100644
index 0000000000000000000000000000000000000000..fa7ceba3eb4a9657a9db7f3ffca4e4e97a9019de
--- /dev/null
+++ b/tools/ui/node_modules/default-browser/license
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/tools/ui/node_modules/default-browser/package.json b/tools/ui/node_modules/default-browser/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..1511b1b1b0380e3d0e222596b60f764e0a24ae18
--- /dev/null
+++ b/tools/ui/node_modules/default-browser/package.json
@@ -0,0 +1,54 @@
+{
+ "name": "default-browser",
+ "version": "5.5.0",
+ "description": "Get the default browser",
+ "license": "MIT",
+ "repository": "sindresorhus/default-browser",
+ "funding": "https://github.com/sponsors/sindresorhus",
+ "author": {
+ "name": "Sindre Sorhus",
+ "email": "sindresorhus@gmail.com",
+ "url": "https://sindresorhus.com"
+ },
+ "type": "module",
+ "exports": {
+ "types": "./index.d.ts",
+ "default": "./index.js"
+ },
+ "sideEffects": false,
+ "engines": {
+ "node": ">=18"
+ },
+ "scripts": {
+ "test": "xo && ava && tsd"
+ },
+ "files": [
+ "index.js",
+ "index.d.ts",
+ "windows.js"
+ ],
+ "keywords": [
+ "macos",
+ "linux",
+ "browser",
+ "default",
+ "plist",
+ "web",
+ "bundle",
+ "bundleid",
+ "id",
+ "identifier",
+ "uti",
+ "cfbundlename",
+ "applescript"
+ ],
+ "dependencies": {
+ "bundle-name": "^4.1.0",
+ "default-browser-id": "^5.0.0"
+ },
+ "devDependencies": {
+ "ava": "^6.0.1",
+ "tsd": "^0.30.0",
+ "xo": "^0.56.0"
+ }
+}
diff --git a/tools/ui/node_modules/default-browser/readme.md b/tools/ui/node_modules/default-browser/readme.md
new file mode 100644
index 0000000000000000000000000000000000000000..cd0d05b067fdc427538d0a6e6dc38d204966012e
--- /dev/null
+++ b/tools/ui/node_modules/default-browser/readme.md
@@ -0,0 +1,24 @@
+# default-browser
+
+> Get the default browser
+
+Works on macOS, Linux, and Windows.
+
+## Install
+
+```sh
+npm install default-browser
+```
+
+## Usage
+
+```js
+import defaultBrowser from 'default-browser';
+
+console.log(await defaultBrowser());
+//=> {name: 'Safari', id: 'com.apple.Safari'}
+```
+
+## Related
+
+- [default-browser-cli](https://github.com/sindresorhus/default-browser-cli) - CLI for this package
diff --git a/tools/ui/node_modules/default-browser/windows.js b/tools/ui/node_modules/default-browser/windows.js
new file mode 100644
index 0000000000000000000000000000000000000000..30ee2af709b77feee2f944d399131b87916d7213
--- /dev/null
+++ b/tools/ui/node_modules/default-browser/windows.js
@@ -0,0 +1,57 @@
+import {promisify} from 'node:util';
+import {execFile} from 'node:child_process';
+
+const execFileAsync = promisify(execFile);
+
+// TODO: Fix the casing of bundle identifiers in the next major version.
+
+// Windows doesn't have browser IDs in the same way macOS/Linux does so we give fake
+// ones that look real and match the macOS/Linux versions for cross-platform apps.
+const windowsBrowserProgIds = {
+ MSEdgeHTM: {name: 'Edge', id: 'com.microsoft.edge'}, // The missing `L` is correct.
+ MSEdgeBHTML: {name: 'Edge Beta', id: 'com.microsoft.edge.beta'},
+ MSEdgeDHTML: {name: 'Edge Dev', id: 'com.microsoft.edge.dev'},
+ AppXq0fevzme2pys62n3e0fbqa7peapykr8v: {name: 'Edge', id: 'com.microsoft.edge.old'},
+ ChromeHTML: {name: 'Chrome', id: 'com.google.chrome'},
+ ChromeBHTML: {name: 'Chrome Beta', id: 'com.google.chrome.beta'},
+ ChromeDHTML: {name: 'Chrome Dev', id: 'com.google.chrome.dev'},
+ ChromiumHTM: {name: 'Chromium', id: 'org.chromium.Chromium'},
+ BraveHTML: {name: 'Brave', id: 'com.brave.Browser'},
+ BraveBHTML: {name: 'Brave Beta', id: 'com.brave.Browser.beta'},
+ BraveDHTML: {name: 'Brave Dev', id: 'com.brave.Browser.dev'},
+ BraveSSHTM: {name: 'Brave Nightly', id: 'com.brave.Browser.nightly'},
+ FirefoxURL: {name: 'Firefox', id: 'org.mozilla.firefox'},
+ OperaStable: {name: 'Opera', id: 'com.operasoftware.Opera'},
+ VivaldiHTM: {name: 'Vivaldi', id: 'com.vivaldi.Vivaldi'},
+ 'IE.HTTP': {name: 'Internet Explorer', id: 'com.microsoft.ie'},
+};
+
+export const _windowsBrowserProgIdMap = new Map(Object.entries(windowsBrowserProgIds));
+
+export class UnknownBrowserError extends Error {}
+
+export default async function defaultBrowser(_execFileAsync = execFileAsync) {
+ const {stdout} = await _execFileAsync('reg', [
+ 'QUERY',
+ ' HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice',
+ '/v',
+ 'ProgId',
+ ]);
+
+ const match = /ProgId\s*REG_SZ\s*(?\S+)/.exec(stdout);
+ if (!match) {
+ throw new UnknownBrowserError(`Cannot find Windows browser in stdout: ${JSON.stringify(stdout)}`);
+ }
+
+ const {id} = match.groups;
+
+ // Windows can append a hash suffix to ProgIds using a dot or hyphen
+ // (e.g., `ChromeHTML.ABC123`, `FirefoxURL-6F193CCC56814779`).
+ // Try exact match first, then try without the suffix.
+ const dotIndex = id.lastIndexOf('.');
+ const hyphenIndex = id.lastIndexOf('-');
+ const baseIdByDot = dotIndex === -1 ? undefined : id.slice(0, dotIndex);
+ const baseIdByHyphen = hyphenIndex === -1 ? undefined : id.slice(0, hyphenIndex);
+
+ return windowsBrowserProgIds[id] ?? windowsBrowserProgIds[baseIdByDot] ?? windowsBrowserProgIds[baseIdByHyphen] ?? {name: id, id};
+}
diff --git a/tools/ui/node_modules/define-data-property/.eslintrc b/tools/ui/node_modules/define-data-property/.eslintrc
new file mode 100644
index 0000000000000000000000000000000000000000..75443e81ee0f6180b9ceee33bc69fa8696162783
--- /dev/null
+++ b/tools/ui/node_modules/define-data-property/.eslintrc
@@ -0,0 +1,24 @@
+{
+ "root": true,
+
+ "extends": "@ljharb",
+
+ "rules": {
+ "complexity": 0,
+ "id-length": 0,
+ "new-cap": ["error", {
+ "capIsNewExceptions": [
+ "GetIntrinsic",
+ ],
+ }],
+ },
+
+ "overrides": [
+ {
+ "files": "test/**",
+ "rules": {
+ "max-lines-per-function": "off",
+ },
+ },
+ ],
+}
diff --git a/tools/ui/node_modules/define-data-property/.github/FUNDING.yml b/tools/ui/node_modules/define-data-property/.github/FUNDING.yml
new file mode 100644
index 0000000000000000000000000000000000000000..3e17725ddfc684e0a254b7eed5adb8d05bfdeaa5
--- /dev/null
+++ b/tools/ui/node_modules/define-data-property/.github/FUNDING.yml
@@ -0,0 +1,12 @@
+# These are supported funding model platforms
+
+github: [ljharb]
+patreon: # Replace with a single Patreon username
+open_collective: # Replace with a single Open Collective username
+ko_fi: # Replace with a single Ko-fi username
+tidelift: npm/define-data-property
+community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
+liberapay: # Replace with a single Liberapay username
+issuehunt: # Replace with a single IssueHunt username
+otechie: # Replace with a single Otechie username
+custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
diff --git a/tools/ui/node_modules/define-data-property/.nycrc b/tools/ui/node_modules/define-data-property/.nycrc
new file mode 100644
index 0000000000000000000000000000000000000000..1826526e091b89c896e7099ccd891db79165e329
--- /dev/null
+++ b/tools/ui/node_modules/define-data-property/.nycrc
@@ -0,0 +1,13 @@
+{
+ "all": true,
+ "check-coverage": false,
+ "reporter": ["text-summary", "text", "html", "json"],
+ "lines": 86,
+ "statements": 85.93,
+ "functions": 82.43,
+ "branches": 76.06,
+ "exclude": [
+ "coverage",
+ "test"
+ ]
+}
diff --git a/tools/ui/node_modules/define-data-property/CHANGELOG.md b/tools/ui/node_modules/define-data-property/CHANGELOG.md
new file mode 100644
index 0000000000000000000000000000000000000000..4eed75ea9096735ec95f1158a6f30461cec02430
--- /dev/null
+++ b/tools/ui/node_modules/define-data-property/CHANGELOG.md
@@ -0,0 +1,70 @@
+# Changelog
+
+All notable changes to this project will be documented in this file.
+
+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
+and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+
+## [v1.1.4](https://github.com/ljharb/define-data-property/compare/v1.1.3...v1.1.4) - 2024-02-13
+
+### Commits
+
+- [Refactor] use `es-define-property` [`90f2f4c`](https://github.com/ljharb/define-data-property/commit/90f2f4cc20298401e71c28e1e08888db12021453)
+- [Dev Deps] update `@types/object.getownpropertydescriptors` [`cd929d9`](https://github.com/ljharb/define-data-property/commit/cd929d9a04f5f2fdcfa9d5be140940b91a083153)
+
+## [v1.1.3](https://github.com/ljharb/define-data-property/compare/v1.1.2...v1.1.3) - 2024-02-12
+
+### Commits
+
+- [types] hand-write d.ts instead of emitting it [`0cbc988`](https://github.com/ljharb/define-data-property/commit/0cbc988203c105f2d97948327c7167ebd33bd318)
+- [meta] simplify `exports` [`690781e`](https://github.com/ljharb/define-data-property/commit/690781eed28bbf2d6766237efda0ba6dd591609e)
+- [Dev Deps] update `hasown`; clean up DT packages [`6cdfd1c`](https://github.com/ljharb/define-data-property/commit/6cdfd1cb2d91d791bfd18cda5d5cab232fd5d8fc)
+- [actions] cleanup [`3142bc6`](https://github.com/ljharb/define-data-property/commit/3142bc6a4bc406a51f5b04f31e98562a27f35ffd)
+- [meta] add `funding` [`8474423`](https://github.com/ljharb/define-data-property/commit/847442391a79779af3e0f1bf0b5bb923552b7804)
+- [Deps] update `get-intrinsic` [`3e9be00`](https://github.com/ljharb/define-data-property/commit/3e9be00e07784ba34e7c77d8bc0fdbc832ad61de)
+
+## [v1.1.2](https://github.com/ljharb/define-data-property/compare/v1.1.1...v1.1.2) - 2024-02-05
+
+### Commits
+
+- [Dev Deps] update @types packages, `object-inspect`, `tape`, `typescript` [`df41bf8`](https://github.com/ljharb/define-data-property/commit/df41bf84ca3456be6226055caab44e38e3a7fd2f)
+- [Dev Deps] update DT packages, `aud`, `npmignore`, `tape`, typescript` [`fab0e4e`](https://github.com/ljharb/define-data-property/commit/fab0e4ec709ee02b79f42d6db3ee5f26e0a34b8a)
+- [Dev Deps] use `hasown` instead of `has` [`aa51ef9`](https://github.com/ljharb/define-data-property/commit/aa51ef93f6403d49d9bb72a807bcdb6e418978c0)
+- [Refactor] use `es-errors`, so things that only need those do not need `get-intrinsic` [`d89be50`](https://github.com/ljharb/define-data-property/commit/d89be50571175888d391238605122679f7e65ffc)
+- [Deps] update `has-property-descriptors` [`7af887c`](https://github.com/ljharb/define-data-property/commit/7af887c9083b59b195b0079e04815cfed9fcee2b)
+- [Deps] update `get-intrinsic` [`bb8728e`](https://github.com/ljharb/define-data-property/commit/bb8728ec42cd998505a7157ae24853a560c20646)
+
+## [v1.1.1](https://github.com/ljharb/define-data-property/compare/v1.1.0...v1.1.1) - 2023-10-12
+
+### Commits
+
+- [Tests] fix tests in ES3 engines [`5c6920e`](https://github.com/ljharb/define-data-property/commit/5c6920edd1f52f675b02f417e539c28135b43f94)
+- [Dev Deps] update `@types/es-value-fixtures`, `@types/for-each`, `@types/gopd`, `@types/has-property-descriptors`, `tape`, `typescript` [`7d82dfc`](https://github.com/ljharb/define-data-property/commit/7d82dfc20f778b4465bba06335dd53f6f431aea3)
+- [Fix] IE 8 has a broken `Object.defineProperty` [`0672e1a`](https://github.com/ljharb/define-data-property/commit/0672e1af2a9fcc787e7c23b96dea60d290df5548)
+- [meta] emit types on prepack [`73acb1f`](https://github.com/ljharb/define-data-property/commit/73acb1f903c21b314ec7156bf10f73c7910530c0)
+- [Dev Deps] update `tape`, `typescript` [`9489a77`](https://github.com/ljharb/define-data-property/commit/9489a7738bf2ecf0ac71d5b78ec4ca6ad7ba0142)
+
+## [v1.1.0](https://github.com/ljharb/define-data-property/compare/v1.0.1...v1.1.0) - 2023-09-13
+
+### Commits
+
+- [New] add `loose` arg [`155235a`](https://github.com/ljharb/define-data-property/commit/155235a4c4d7741f6de01cd87c99599a56654b72)
+- [New] allow `null` to be passed for the non* args [`7d2fa5f`](https://github.com/ljharb/define-data-property/commit/7d2fa5f06be0392736c13b126f7cd38979f34792)
+
+## [v1.0.1](https://github.com/ljharb/define-data-property/compare/v1.0.0...v1.0.1) - 2023-09-12
+
+### Commits
+
+- [meta] add TS types [`43d763c`](https://github.com/ljharb/define-data-property/commit/43d763c6c883f652de1c9c02ef6216ee507ffa69)
+- [Dev Deps] update `@types/tape`, `typescript` [`f444985`](https://github.com/ljharb/define-data-property/commit/f444985811c36f3e6448a03ad2f9b7898917f4c7)
+- [meta] add `safe-publish-latest`, [`172bb10`](https://github.com/ljharb/define-data-property/commit/172bb10890896ebb160e64398f6ee55760107bee)
+
+## v1.0.0 - 2023-09-12
+
+### Commits
+
+- Initial implementation, tests, readme [`5b43d6b`](https://github.com/ljharb/define-data-property/commit/5b43d6b44e675a904810467a7d4e0adb7efc3196)
+- Initial commit [`35e577a`](https://github.com/ljharb/define-data-property/commit/35e577a6ba59a98befa97776d70d90f3bea9009d)
+- npm init [`82a0a04`](https://github.com/ljharb/define-data-property/commit/82a0a04a321ca7de220af02d41e2745e8a9962ed)
+- Only apps should have lockfiles [`96df244`](https://github.com/ljharb/define-data-property/commit/96df244a3c6f426f9a2437be825d1c6f5dd7158e)
+- [meta] use `npmignore` to autogenerate an npmignore file [`a87ff18`](https://github.com/ljharb/define-data-property/commit/a87ff18cb79e14c2eb5720486c4759fd9a189375)
diff --git a/tools/ui/node_modules/define-data-property/LICENSE b/tools/ui/node_modules/define-data-property/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..b4213ac640ad53446325d2dab2c2bc8620406b72
--- /dev/null
+++ b/tools/ui/node_modules/define-data-property/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/tools/ui/node_modules/define-data-property/README.md b/tools/ui/node_modules/define-data-property/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..f2304daef9b105844c4495414f1b8164d86befa2
--- /dev/null
+++ b/tools/ui/node_modules/define-data-property/README.md
@@ -0,0 +1,67 @@
+# define-data-property [![Version Badge][npm-version-svg]][package-url]
+
+[![github actions][actions-image]][actions-url]
+[![coverage][codecov-image]][codecov-url]
+[![License][license-image]][license-url]
+[![Downloads][downloads-image]][downloads-url]
+
+[![npm badge][npm-badge-png]][package-url]
+
+Define a data property on an object. Will fall back to assignment in an engine without descriptors.
+
+The three `non*` argument can also be passed `null`, which will use the existing state if available.
+
+The `loose` argument will mean that if you attempt to set a non-normal data property, in an environment without descriptor support, it will fall back to normal assignment.
+
+## Usage
+
+```javascript
+var defineDataProperty = require('define-data-property');
+var assert = require('assert');
+
+var obj = {};
+defineDataProperty(obj, 'key', 'value');
+defineDataProperty(
+ obj,
+ 'key2',
+ 'value',
+ true, // nonEnumerable, optional
+ false, // nonWritable, optional
+ true, // nonConfigurable, optional
+ false // loose, optional
+);
+
+assert.deepEqual(
+ Object.getOwnPropertyDescriptors(obj),
+ {
+ key: {
+ configurable: true,
+ enumerable: true,
+ value: 'value',
+ writable: true,
+ },
+ key2: {
+ configurable: false,
+ enumerable: false,
+ value: 'value',
+ writable: true,
+ },
+ }
+);
+```
+
+[package-url]: https://npmjs.org/package/define-data-property
+[npm-version-svg]: https://versionbadg.es/ljharb/define-data-property.svg
+[deps-svg]: https://david-dm.org/ljharb/define-data-property.svg
+[deps-url]: https://david-dm.org/ljharb/define-data-property
+[dev-deps-svg]: https://david-dm.org/ljharb/define-data-property/dev-status.svg
+[dev-deps-url]: https://david-dm.org/ljharb/define-data-property#info=devDependencies
+[npm-badge-png]: https://nodei.co/npm/define-data-property.png?downloads=true&stars=true
+[license-image]: https://img.shields.io/npm/l/define-data-property.svg
+[license-url]: LICENSE
+[downloads-image]: https://img.shields.io/npm/dm/define-data-property.svg
+[downloads-url]: https://npm-stat.com/charts.html?package=define-data-property
+[codecov-image]: https://codecov.io/gh/ljharb/define-data-property/branch/main/graphs/badge.svg
+[codecov-url]: https://app.codecov.io/gh/ljharb/define-data-property/
+[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/define-data-property
+[actions-url]: https://github.com/ljharb/define-data-property/actions
diff --git a/tools/ui/node_modules/define-data-property/index.d.ts b/tools/ui/node_modules/define-data-property/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..b56a77da820232226188558bb7c86772c5b2c834
--- /dev/null
+++ b/tools/ui/node_modules/define-data-property/index.d.ts
@@ -0,0 +1,12 @@
+
+declare function defineDataProperty(
+ obj: Record,
+ property: keyof typeof obj,
+ value: typeof obj[typeof property],
+ nonEnumerable?: boolean | null,
+ nonWritable?: boolean | null,
+ nonConfigurable?: boolean | null,
+ loose?: boolean
+): void;
+
+export = defineDataProperty;
\ No newline at end of file
diff --git a/tools/ui/node_modules/define-data-property/index.js b/tools/ui/node_modules/define-data-property/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..e1a38c07bb14bb1ca31acdf7b9d677abff94d34b
--- /dev/null
+++ b/tools/ui/node_modules/define-data-property/index.js
@@ -0,0 +1,56 @@
+'use strict';
+
+var $defineProperty = require('es-define-property');
+
+var $SyntaxError = require('es-errors/syntax');
+var $TypeError = require('es-errors/type');
+
+var gopd = require('gopd');
+
+/** @type {import('.')} */
+module.exports = function defineDataProperty(
+ obj,
+ property,
+ value
+) {
+ if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
+ throw new $TypeError('`obj` must be an object or a function`');
+ }
+ if (typeof property !== 'string' && typeof property !== 'symbol') {
+ throw new $TypeError('`property` must be a string or a symbol`');
+ }
+ if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
+ throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
+ }
+ if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
+ throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
+ }
+ if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
+ throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
+ }
+ if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
+ throw new $TypeError('`loose`, if provided, must be a boolean');
+ }
+
+ var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
+ var nonWritable = arguments.length > 4 ? arguments[4] : null;
+ var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
+ var loose = arguments.length > 6 ? arguments[6] : false;
+
+ /* @type {false | TypedPropertyDescriptor} */
+ var desc = !!gopd && gopd(obj, property);
+
+ if ($defineProperty) {
+ $defineProperty(obj, property, {
+ configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
+ enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
+ value: value,
+ writable: nonWritable === null && desc ? desc.writable : !nonWritable
+ });
+ } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
+ // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
+ obj[property] = value; // eslint-disable-line no-param-reassign
+ } else {
+ throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
+ }
+};
diff --git a/tools/ui/node_modules/define-data-property/package.json b/tools/ui/node_modules/define-data-property/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..eec40971ebb115846a8c6f7d2d8a880b6fb92bfe
--- /dev/null
+++ b/tools/ui/node_modules/define-data-property/package.json
@@ -0,0 +1,106 @@
+{
+ "name": "define-data-property",
+ "version": "1.1.4",
+ "description": "Define a data property on an object. Will fall back to assignment in an engine without descriptors.",
+ "main": "index.js",
+ "types": "./index.d.ts",
+ "exports": {
+ ".": "./index.js",
+ "./package.json": "./package.json"
+ },
+ "sideEffects": false,
+ "scripts": {
+ "prepack": "npmignore --auto --commentLines=autogenerated",
+ "prepublish": "not-in-publish || npm run prepublishOnly",
+ "prepublishOnly": "safe-publish-latest",
+ "tsc": "tsc -p .",
+ "prelint": "evalmd README.md",
+ "lint": "eslint --ext=js,mjs .",
+ "postlint": "npm run tsc",
+ "pretest": "npm run lint",
+ "tests-only": "nyc tape 'test/**/*.js'",
+ "test": "npm run tests-only",
+ "posttest": "aud --production",
+ "version": "auto-changelog && git add CHANGELOG.md",
+ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/ljharb/define-data-property.git"
+ },
+ "keywords": [
+ "define",
+ "data",
+ "property",
+ "object",
+ "accessor",
+ "javascript",
+ "ecmascript",
+ "enumerable",
+ "configurable",
+ "writable"
+ ],
+ "author": "Jordan Harband ",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ },
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/ljharb/define-data-property/issues"
+ },
+ "homepage": "https://github.com/ljharb/define-data-property#readme",
+ "dependencies": {
+ "es-define-property": "^1.0.0",
+ "es-errors": "^1.3.0",
+ "gopd": "^1.0.1"
+ },
+ "devDependencies": {
+ "@ljharb/eslint-config": "^21.1.0",
+ "@types/call-bind": "^1.0.5",
+ "@types/define-properties": "^1.1.5",
+ "@types/es-value-fixtures": "^1.4.4",
+ "@types/for-each": "^0.3.3",
+ "@types/get-intrinsic": "^1.2.2",
+ "@types/gopd": "^1.0.3",
+ "@types/has-property-descriptors": "^1.0.3",
+ "@types/object-inspect": "^1.8.4",
+ "@types/object.getownpropertydescriptors": "^2.1.4",
+ "@types/tape": "^5.6.4",
+ "aud": "^2.0.4",
+ "auto-changelog": "^2.4.0",
+ "es-value-fixtures": "^1.4.2",
+ "eslint": "=8.8.0",
+ "evalmd": "^0.0.19",
+ "for-each": "^0.3.3",
+ "hasown": "^2.0.1",
+ "in-publish": "^2.0.1",
+ "npmignore": "^0.3.1",
+ "nyc": "^10.3.2",
+ "object-inspect": "^1.13.1",
+ "object.getownpropertydescriptors": "^2.1.7",
+ "reflect.ownkeys": "^1.1.4",
+ "safe-publish-latest": "^2.0.0",
+ "tape": "^5.7.4",
+ "typescript": "next"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "testling": {
+ "files": "test/index.js"
+ },
+ "auto-changelog": {
+ "output": "CHANGELOG.md",
+ "template": "keepachangelog",
+ "unreleased": false,
+ "commitLimit": false,
+ "backfillLimit": false,
+ "hideCredit": true
+ },
+ "publishConfig": {
+ "ignore": [
+ ".github/workflows",
+ "types/reflect.ownkeys"
+ ]
+ }
+}
diff --git a/tools/ui/node_modules/define-data-property/test/index.js b/tools/ui/node_modules/define-data-property/test/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..68204c66b26697b2d2b1ae9ef97eb5de63c55e2d
--- /dev/null
+++ b/tools/ui/node_modules/define-data-property/test/index.js
@@ -0,0 +1,392 @@
+'use strict';
+
+var test = require('tape');
+var v = require('es-value-fixtures');
+var forEach = require('for-each');
+var inspect = require('object-inspect');
+var hasOwn = require('hasown');
+var hasPropertyDescriptors = require('has-property-descriptors')();
+var getOwnPropertyDescriptors = require('object.getownpropertydescriptors');
+var ownKeys = require('reflect.ownkeys');
+
+var defineDataProperty = require('../');
+
+test('defineDataProperty', function (t) {
+ t.test('argument validation', function (st) {
+ forEach(v.primitives, function (nonObject) {
+ st['throws'](
+ // @ts-expect-error
+ function () { defineDataProperty(nonObject, 'key', 'value'); },
+ TypeError,
+ 'throws on non-object input: ' + inspect(nonObject)
+ );
+ });
+
+ forEach(v.nonPropertyKeys, function (nonPropertyKey) {
+ st['throws'](
+ // @ts-expect-error
+ function () { defineDataProperty({}, nonPropertyKey, 'value'); },
+ TypeError,
+ 'throws on non-PropertyKey input: ' + inspect(nonPropertyKey)
+ );
+ });
+
+ forEach(v.nonBooleans, function (nonBoolean) {
+ if (nonBoolean !== null) {
+ st['throws'](
+ // @ts-expect-error
+ function () { defineDataProperty({}, 'key', 'value', nonBoolean); },
+ TypeError,
+ 'throws on non-boolean nonEnumerable: ' + inspect(nonBoolean)
+ );
+
+ st['throws'](
+ // @ts-expect-error
+ function () { defineDataProperty({}, 'key', 'value', false, nonBoolean); },
+ TypeError,
+ 'throws on non-boolean nonWritable: ' + inspect(nonBoolean)
+ );
+
+ st['throws'](
+ // @ts-expect-error
+ function () { defineDataProperty({}, 'key', 'value', false, false, nonBoolean); },
+ TypeError,
+ 'throws on non-boolean nonConfigurable: ' + inspect(nonBoolean)
+ );
+ }
+ });
+
+ st.end();
+ });
+
+ t.test('normal data property', function (st) {
+ /** @type {Record} */
+ var obj = { existing: 'existing property' };
+ st.ok(hasOwn(obj, 'existing'), 'has initial own property');
+ st.equal(obj.existing, 'existing property', 'has expected initial value');
+
+ var res = defineDataProperty(obj, 'added', 'added property');
+ st.equal(res, void undefined, 'returns `undefined`');
+ st.ok(hasOwn(obj, 'added'), 'has expected own property');
+ st.equal(obj.added, 'added property', 'has expected value');
+
+ defineDataProperty(obj, 'existing', 'new value');
+ st.ok(hasOwn(obj, 'existing'), 'still has expected own property');
+ st.equal(obj.existing, 'new value', 'has new expected value');
+
+ defineDataProperty(obj, 'explicit1', 'new value', false);
+ st.ok(hasOwn(obj, 'explicit1'), 'has expected own property (explicit enumerable)');
+ st.equal(obj.explicit1, 'new value', 'has new expected value (explicit enumerable)');
+
+ defineDataProperty(obj, 'explicit2', 'new value', false, false);
+ st.ok(hasOwn(obj, 'explicit2'), 'has expected own property (explicit writable)');
+ st.equal(obj.explicit2, 'new value', 'has new expected value (explicit writable)');
+
+ defineDataProperty(obj, 'explicit3', 'new value', false, false, false);
+ st.ok(hasOwn(obj, 'explicit3'), 'has expected own property (explicit configurable)');
+ st.equal(obj.explicit3, 'new value', 'has new expected value (explicit configurable)');
+
+ st.end();
+ });
+
+ t.test('loose mode', { skip: !hasPropertyDescriptors }, function (st) {
+ var obj = { existing: 'existing property' };
+
+ defineDataProperty(obj, 'added', 'added value 1', true, null, null, true);
+ st.deepEqual(
+ getOwnPropertyDescriptors(obj),
+ {
+ existing: {
+ configurable: true,
+ enumerable: true,
+ value: 'existing property',
+ writable: true
+ },
+ added: {
+ configurable: true,
+ enumerable: !hasPropertyDescriptors,
+ value: 'added value 1',
+ writable: true
+ }
+ },
+ 'in loose mode, obj still adds property 1'
+ );
+
+ defineDataProperty(obj, 'added', 'added value 2', false, true, null, true);
+ st.deepEqual(
+ getOwnPropertyDescriptors(obj),
+ {
+ existing: {
+ configurable: true,
+ enumerable: true,
+ value: 'existing property',
+ writable: true
+ },
+ added: {
+ configurable: true,
+ enumerable: true,
+ value: 'added value 2',
+ writable: !hasPropertyDescriptors
+ }
+ },
+ 'in loose mode, obj still adds property 2'
+ );
+
+ defineDataProperty(obj, 'added', 'added value 3', false, false, true, true);
+ st.deepEqual(
+ getOwnPropertyDescriptors(obj),
+ {
+ existing: {
+ configurable: true,
+ enumerable: true,
+ value: 'existing property',
+ writable: true
+ },
+ added: {
+ configurable: !hasPropertyDescriptors,
+ enumerable: true,
+ value: 'added value 3',
+ writable: true
+ }
+ },
+ 'in loose mode, obj still adds property 3'
+ );
+
+ st.end();
+ });
+
+ t.test('non-normal data property, ES3', { skip: hasPropertyDescriptors }, function (st) {
+ /** @type {Record} */
+ var obj = { existing: 'existing property' };
+
+ st['throws'](
+ function () { defineDataProperty(obj, 'added', 'added value', true); },
+ SyntaxError,
+ 'nonEnumerable throws a Syntax Error'
+ );
+
+ st['throws'](
+ function () { defineDataProperty(obj, 'added', 'added value', false, true); },
+ SyntaxError,
+ 'nonWritable throws a Syntax Error'
+ );
+
+ st['throws'](
+ function () { defineDataProperty(obj, 'added', 'added value', false, false, true); },
+ SyntaxError,
+ 'nonWritable throws a Syntax Error'
+ );
+
+ st.deepEqual(
+ ownKeys(obj),
+ ['existing'],
+ 'obj still has expected keys'
+ );
+ st.equal(obj.existing, 'existing property', 'obj still has expected values');
+
+ st.end();
+ });
+
+ t.test('new non-normal data property, ES5+', { skip: !hasPropertyDescriptors }, function (st) {
+ /** @type {Record} */
+ var obj = { existing: 'existing property' };
+
+ defineDataProperty(obj, 'nonEnum', null, true);
+ defineDataProperty(obj, 'nonWrit', null, false, true);
+ defineDataProperty(obj, 'nonConf', null, false, false, true);
+
+ st.deepEqual(
+ getOwnPropertyDescriptors(obj),
+ {
+ existing: {
+ configurable: true,
+ enumerable: true,
+ value: 'existing property',
+ writable: true
+ },
+ nonEnum: {
+ configurable: true,
+ enumerable: false,
+ value: null,
+ writable: true
+ },
+ nonWrit: {
+ configurable: true,
+ enumerable: true,
+ value: null,
+ writable: false
+ },
+ nonConf: {
+ configurable: false,
+ enumerable: true,
+ value: null,
+ writable: true
+ }
+ },
+ 'obj has expected property descriptors'
+ );
+
+ st.end();
+ });
+
+ t.test('existing non-normal data property, ES5+', { skip: !hasPropertyDescriptors }, function (st) {
+ // test case changing an existing non-normal property
+
+ /** @type {Record} */
+ var obj = {};
+ Object.defineProperty(obj, 'nonEnum', { configurable: true, enumerable: false, value: null, writable: true });
+ Object.defineProperty(obj, 'nonWrit', { configurable: true, enumerable: true, value: null, writable: false });
+ Object.defineProperty(obj, 'nonConf', { configurable: false, enumerable: true, value: null, writable: true });
+
+ st.deepEqual(
+ getOwnPropertyDescriptors(obj),
+ {
+ nonEnum: {
+ configurable: true,
+ enumerable: false,
+ value: null,
+ writable: true
+ },
+ nonWrit: {
+ configurable: true,
+ enumerable: true,
+ value: null,
+ writable: false
+ },
+ nonConf: {
+ configurable: false,
+ enumerable: true,
+ value: null,
+ writable: true
+ }
+ },
+ 'obj initially has expected property descriptors'
+ );
+
+ defineDataProperty(obj, 'nonEnum', 'new value', false);
+ defineDataProperty(obj, 'nonWrit', 'new value', false, false);
+ st['throws'](
+ function () { defineDataProperty(obj, 'nonConf', 'new value', false, false, false); },
+ TypeError,
+ 'can not alter a nonconfigurable property'
+ );
+
+ st.deepEqual(
+ getOwnPropertyDescriptors(obj),
+ {
+ nonEnum: {
+ configurable: true,
+ enumerable: true,
+ value: 'new value',
+ writable: true
+ },
+ nonWrit: {
+ configurable: true,
+ enumerable: true,
+ value: 'new value',
+ writable: true
+ },
+ nonConf: {
+ configurable: false,
+ enumerable: true,
+ value: null,
+ writable: true
+ }
+ },
+ 'obj ends up with expected property descriptors'
+ );
+
+ st.end();
+ });
+
+ t.test('frozen object, ES5+', { skip: !hasPropertyDescriptors }, function (st) {
+ var frozen = Object.freeze({ existing: true });
+
+ st['throws'](
+ function () { defineDataProperty(frozen, 'existing', 'new value'); },
+ TypeError,
+ 'frozen object can not modify an existing property'
+ );
+
+ st['throws'](
+ function () { defineDataProperty(frozen, 'new', 'new property'); },
+ TypeError,
+ 'frozen object can not add a new property'
+ );
+
+ st.end();
+ });
+
+ t.test('sealed object, ES5+', { skip: !hasPropertyDescriptors }, function (st) {
+ var sealed = Object.seal({ existing: true });
+ st.deepEqual(
+ Object.getOwnPropertyDescriptor(sealed, 'existing'),
+ {
+ configurable: false,
+ enumerable: true,
+ value: true,
+ writable: true
+ },
+ 'existing value on sealed object has expected descriptor'
+ );
+
+ defineDataProperty(sealed, 'existing', 'new value');
+
+ st.deepEqual(
+ Object.getOwnPropertyDescriptor(sealed, 'existing'),
+ {
+ configurable: false,
+ enumerable: true,
+ value: 'new value',
+ writable: true
+ },
+ 'existing value on sealed object has changed descriptor'
+ );
+
+ st['throws'](
+ function () { defineDataProperty(sealed, 'new', 'new property'); },
+ TypeError,
+ 'sealed object can not add a new property'
+ );
+
+ st.end();
+ });
+
+ t.test('nonextensible object, ES5+', { skip: !hasPropertyDescriptors }, function (st) {
+ var nonExt = Object.preventExtensions({ existing: true });
+
+ st.deepEqual(
+ Object.getOwnPropertyDescriptor(nonExt, 'existing'),
+ {
+ configurable: true,
+ enumerable: true,
+ value: true,
+ writable: true
+ },
+ 'existing value on non-extensible object has expected descriptor'
+ );
+
+ defineDataProperty(nonExt, 'existing', 'new value', true);
+
+ st.deepEqual(
+ Object.getOwnPropertyDescriptor(nonExt, 'existing'),
+ {
+ configurable: true,
+ enumerable: false,
+ value: 'new value',
+ writable: true
+ },
+ 'existing value on non-extensible object has changed descriptor'
+ );
+
+ st['throws'](
+ function () { defineDataProperty(nonExt, 'new', 'new property'); },
+ TypeError,
+ 'non-extensible object can not add a new property'
+ );
+
+ st.end();
+ });
+
+ t.end();
+});
diff --git a/tools/ui/node_modules/define-data-property/tsconfig.json b/tools/ui/node_modules/define-data-property/tsconfig.json
new file mode 100644
index 0000000000000000000000000000000000000000..69f060dccdff2bc2089bd1056026de02fe6c760a
--- /dev/null
+++ b/tools/ui/node_modules/define-data-property/tsconfig.json
@@ -0,0 +1,59 @@
+{
+ "compilerOptions": {
+ /* Visit https://aka.ms/tsconfig to read more about this file */
+
+ /* Projects */
+
+ /* Language and Environment */
+ "target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
+ // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
+ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
+ "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
+ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
+
+ /* Modules */
+ "module": "commonjs", /* Specify what module code is generated. */
+ // "rootDir": "./", /* Specify the root folder within your source files. */
+ // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
+ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
+ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
+ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
+ "typeRoots": ["types"], /* Specify multiple folders that act like './node_modules/@types'. */
+ "resolveJsonModule": true, /* Enable importing .json files. */
+
+ /* JavaScript Support */
+ "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
+ "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
+ "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
+
+ /* Emit */
+ "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
+ "declarationMap": true, /* Create sourcemaps for d.ts files. */
+ // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
+ "noEmit": true, /* Disable emitting files from a compilation. */
+
+ /* Interop Constraints */
+ "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
+ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
+ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
+
+ /* Type Checking */
+ "strict": true, /* Enable all strict type-checking options. */
+ "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
+ "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
+ "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
+ "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
+ "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
+ "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
+ "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
+ "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
+ "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
+ // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
+
+ /* Completeness */
+ // "skipLibCheck": true /* Skip type checking all .d.ts files. */
+ },
+ "exclude": [
+ "coverage"
+ ]
+}
diff --git a/tools/ui/node_modules/define-lazy-prop/index.d.ts b/tools/ui/node_modules/define-lazy-prop/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..f95bc7f38183badd2655c57b7074a86143380c88
--- /dev/null
+++ b/tools/ui/node_modules/define-lazy-prop/index.d.ts
@@ -0,0 +1,31 @@
+/**
+Define a [lazily evaluated](https://en.wikipedia.org/wiki/Lazy_evaluation) property on an object.
+
+@param object - Object to add the property to.
+@param propertyName - Name of the property to add.
+@param valueGetter - Called the first time `propertyName` is accessed.
+
+@example
+```
+import defineLazyProperty from 'define-lazy-prop';
+
+const unicorn = {
+ // …
+};
+
+defineLazyProperty(unicorn, 'rainbow', () => expensiveComputation());
+
+app.on('user-action', () => {
+ doSomething(unicorn.rainbow);
+});
+```
+*/
+export default function defineLazyProperty<
+ ObjectType extends Record,
+ PropertyNameType extends string,
+ PropertyValueType
+>(
+ object: ObjectType,
+ propertyName: PropertyNameType,
+ valueGetter: () => PropertyValueType
+): ObjectType & {[K in PropertyNameType]: PropertyValueType};
diff --git a/tools/ui/node_modules/define-lazy-prop/index.js b/tools/ui/node_modules/define-lazy-prop/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..77c59f06cc5dbc952240a0c83dedb8dddcb59d5c
--- /dev/null
+++ b/tools/ui/node_modules/define-lazy-prop/index.js
@@ -0,0 +1,18 @@
+export default function defineLazyProperty(object, propertyName, valueGetter) {
+ const define = value => Object.defineProperty(object, propertyName, {value, enumerable: true, writable: true});
+
+ Object.defineProperty(object, propertyName, {
+ configurable: true,
+ enumerable: true,
+ get() {
+ const result = valueGetter();
+ define(result);
+ return result;
+ },
+ set(value) {
+ define(value);
+ }
+ });
+
+ return object;
+}
diff --git a/tools/ui/node_modules/define-lazy-prop/license b/tools/ui/node_modules/define-lazy-prop/license
new file mode 100644
index 0000000000000000000000000000000000000000..fa7ceba3eb4a9657a9db7f3ffca4e4e97a9019de
--- /dev/null
+++ b/tools/ui/node_modules/define-lazy-prop/license
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/tools/ui/node_modules/define-lazy-prop/package.json b/tools/ui/node_modules/define-lazy-prop/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..05bda939cbc7c1ecf7752173baa3994c38383aa7
--- /dev/null
+++ b/tools/ui/node_modules/define-lazy-prop/package.json
@@ -0,0 +1,51 @@
+{
+ "name": "define-lazy-prop",
+ "version": "3.0.0",
+ "description": "Define a lazily evaluated property on an object",
+ "license": "MIT",
+ "repository": "sindresorhus/define-lazy-prop",
+ "funding": "https://github.com/sponsors/sindresorhus",
+ "author": {
+ "name": "Sindre Sorhus",
+ "email": "sindresorhus@gmail.com",
+ "url": "https://sindresorhus.com"
+ },
+ "type": "module",
+ "exports": "./index.js",
+ "engines": {
+ "node": ">=12"
+ },
+ "scripts": {
+ "test": "xo && ava && tsd"
+ },
+ "files": [
+ "index.js",
+ "index.d.ts"
+ ],
+ "keywords": [
+ "lazy",
+ "property",
+ "properties",
+ "prop",
+ "define",
+ "object",
+ "value",
+ "lazily",
+ "laziness",
+ "evaluation",
+ "eval",
+ "execute",
+ "getter",
+ "function",
+ "fn",
+ "memoize",
+ "cache",
+ "defer",
+ "deferred"
+ ],
+ "devDependencies": {
+ "ava": "^3.15.0",
+ "tsd": "^0.14.0",
+ "xo": "^0.38.2"
+ }
+}
diff --git a/tools/ui/node_modules/define-lazy-prop/readme.md b/tools/ui/node_modules/define-lazy-prop/readme.md
new file mode 100644
index 0000000000000000000000000000000000000000..83f652d7acb9a8e3f955ba2dc1d24d2d099c24a0
--- /dev/null
+++ b/tools/ui/node_modules/define-lazy-prop/readme.md
@@ -0,0 +1,55 @@
+# define-lazy-prop
+
+> Define a [lazily evaluated](https://en.wikipedia.org/wiki/Lazy_evaluation) property on an object
+
+Useful when the value of a property is expensive to generate, so you want to delay the computation until the property is needed. For example, improving startup performance by deferring nonessential operations.
+
+## Install
+
+```
+$ npm install define-lazy-prop
+```
+
+## Usage
+
+```js
+import defineLazyProperty from 'define-lazy-prop';
+
+const unicorn = {
+ // …
+};
+
+defineLazyProperty(unicorn, 'rainbow', () => expensiveComputation());
+
+app.on('user-action', () => {
+ doSomething(unicorn.rainbow);
+});
+```
+
+## API
+
+### defineLazyProperty(object, propertyName, valueGetter)
+
+#### object
+
+Type: `object`
+
+Object to add the property to.
+
+#### propertyName
+
+Type: `string`
+
+Name of the property to add.
+
+#### valueGetter
+
+Type: `Function`
+
+Called the first time `propertyName` is accessed. Expected to return a value.
+
+## Related
+
+- [lazy-value](https://github.com/sindresorhus/lazy-value) - Create a lazily evaluated value
+- [import-lazy](https://github.com/sindresorhus/import-lazy) - Import a module lazily
+- [p-lazy](https://github.com/sindresorhus/p-lazy) - Create a lazy promise
diff --git a/tools/ui/node_modules/define-properties/.editorconfig b/tools/ui/node_modules/define-properties/.editorconfig
new file mode 100644
index 0000000000000000000000000000000000000000..eaa214161f5cdb409c32465fd822624c633a6bd8
--- /dev/null
+++ b/tools/ui/node_modules/define-properties/.editorconfig
@@ -0,0 +1,13 @@
+root = true
+
+[*]
+indent_style = tab;
+insert_final_newline = true;
+quote_type = auto;
+space_after_anonymous_functions = true;
+space_after_control_statements = true;
+spaces_around_operators = true;
+trim_trailing_whitespace = true;
+spaces_in_brackets = false;
+end_of_line = lf;
+
diff --git a/tools/ui/node_modules/define-properties/.eslintrc b/tools/ui/node_modules/define-properties/.eslintrc
new file mode 100644
index 0000000000000000000000000000000000000000..4297a97f636e0ecc47e979991e56a0e41d005dc7
--- /dev/null
+++ b/tools/ui/node_modules/define-properties/.eslintrc
@@ -0,0 +1,19 @@
+{
+ "root": true,
+
+ "extends": "@ljharb",
+
+ "rules": {
+ "id-length": [2, { "min": 1, "max": 35 }],
+ "max-params": [2, 4],
+ },
+
+ "overrides": [
+ {
+ "files": "test/**",
+ "rules": {
+ "max-lines-per-function": 0,
+ },
+ },
+ ],
+}
diff --git a/tools/ui/node_modules/define-properties/.github/FUNDING.yml b/tools/ui/node_modules/define-properties/.github/FUNDING.yml
new file mode 100644
index 0000000000000000000000000000000000000000..c70f264ad1937a398cac2a4e6c3d59d1772591c1
--- /dev/null
+++ b/tools/ui/node_modules/define-properties/.github/FUNDING.yml
@@ -0,0 +1,12 @@
+# These are supported funding model platforms
+
+github: [ljharb]
+patreon: # Replace with a single Patreon username
+open_collective: # Replace with a single Open Collective username
+ko_fi: # Replace with a single Ko-fi username
+tidelift: npm/define-properties
+community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
+liberapay: # Replace with a single Liberapay username
+issuehunt: # Replace with a single IssueHunt username
+otechie: # Replace with a single Otechie username
+custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
diff --git a/tools/ui/node_modules/define-properties/.nycrc b/tools/ui/node_modules/define-properties/.nycrc
new file mode 100644
index 0000000000000000000000000000000000000000..bdd626ce91477abbdd489b79988baebadbd3c897
--- /dev/null
+++ b/tools/ui/node_modules/define-properties/.nycrc
@@ -0,0 +1,9 @@
+{
+ "all": true,
+ "check-coverage": false,
+ "reporter": ["text-summary", "text", "html", "json"],
+ "exclude": [
+ "coverage",
+ "test"
+ ]
+}
diff --git a/tools/ui/node_modules/define-properties/CHANGELOG.md b/tools/ui/node_modules/define-properties/CHANGELOG.md
new file mode 100644
index 0000000000000000000000000000000000000000..5bdf5f1cc7ca936a2dc15e4526a2ab0bad9bebd8
--- /dev/null
+++ b/tools/ui/node_modules/define-properties/CHANGELOG.md
@@ -0,0 +1,91 @@
+# Changelog
+
+All notable changes to this project will be documented in this file.
+
+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
+and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+
+## [v1.2.1](https://github.com/ljharb/define-properties/compare/v1.2.0...v1.2.1) - 2023-09-12
+
+### Commits
+
+- [Refactor] use `define-data-property` [`e7782a7`](https://github.com/ljharb/define-properties/commit/e7782a7480a62f8b6e141b49371e6de4df176c97)
+- [actions] use reusable rebase action [`cd249c3`](https://github.com/ljharb/define-properties/commit/cd249c3920607bc8eeb7c0cd5b672b810983cac5)
+- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`8205f97`](https://github.com/ljharb/define-properties/commit/8205f9734a4da8ee5b3b29798788567a09b330e8)
+
+## [v1.2.0](https://github.com/ljharb/define-properties/compare/v1.1.4...v1.2.0) - 2023-02-10
+
+### Commits
+
+- [New] if the predicate is boolean `true`, it compares the existing value with `===` as the predicate [`d8dd6fc`](https://github.com/ljharb/define-properties/commit/d8dd6fca40d7c5878a4b643b91e66ae5a513a194)
+- [meta] add `auto-changelog` [`7ebe2b0`](https://github.com/ljharb/define-properties/commit/7ebe2b0a0f90e62b842942cd45e86864fe75d9f6)
+- [meta] use `npmignore` to autogenerate an npmignore file [`647478a`](https://github.com/ljharb/define-properties/commit/647478a8401fbf053fb633c0a3a7c982da6bad74)
+- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`e620d70`](https://github.com/ljharb/define-properties/commit/e620d707d2e1118a38796f22a862200eb0a53fff)
+- [Dev Deps] update `aud`, `tape` [`f1e5072`](https://github.com/ljharb/define-properties/commit/f1e507225c2551a99ed4fe40d3fe71b0f44acf88)
+- [actions] update checkout action [`628b3af`](https://github.com/ljharb/define-properties/commit/628b3af5c74b8f0963296d811a8f6fa657baf964)
+
+
+
+1.1.4 / 2022-04-14
+=================
+ * [Refactor] use `has-property-descriptors`
+ * [readme] add github actions/codecov badges
+ * [Docs] fix header parsing; remove testling
+ * [Deps] update `object-keys`
+ * [meta] use `prepublishOnly` script for npm 7+
+ * [meta] add `funding` field; create FUNDING.yml
+ * [actions] add "Allow Edits" workflow; automatic rebasing / merge commit blocking
+ * [actions] reuse common workflows
+ * [actions] update codecov uploader
+ * [actions] use `node/install` instead of `node/run`; use `codecov` action
+ * [Tests] migrate tests to Github Actions
+ * [Tests] run `nyc` on all tests; use `tape` runner
+ * [Tests] use shared travis-ci config
+ * [Tests] use `npx aud` instead of `nsp` or `npm audit` with hoops
+ * [Tests] remove `jscs`
+ * [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `tape`; add `aud`, `safe-publish-latest`
+
+1.1.3 / 2018-08-14
+=================
+ * [Refactor] use a for loop instead of `foreach` to make for smaller bundle sizes
+ * [Robustness] cache `Array.prototype.concat` and `Object.defineProperty`
+ * [Deps] update `object-keys`
+ * [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `nsp`, `tape`, `jscs`; remove unused eccheck script + dep
+ * [Tests] use pretest/posttest for linting/security
+ * [Tests] fix npm upgrades on older nodes
+
+1.1.2 / 2015-10-14
+=================
+ * [Docs] Switch from vb.teelaun.ch to versionbadg.es for the npm version badge SVG
+ * [Deps] Update `object-keys`
+ * [Dev Deps] update `jscs`, `tape`, `eslint`, `@ljharb/eslint-config`, `nsp`
+ * [Tests] up to `io.js` `v3.3`, `node` `v4.2`
+
+1.1.1 / 2015-07-21
+=================
+ * [Deps] Update `object-keys`
+ * [Dev Deps] Update `tape`, `eslint`
+ * [Tests] Test on `io.js` `v2.4`
+
+1.1.0 / 2015-07-01
+=================
+ * [New] Add support for symbol-valued properties.
+ * [Dev Deps] Update `nsp`, `eslint`
+ * [Tests] Test up to `io.js` `v2.3`
+
+1.0.3 / 2015-05-30
+=================
+ * Using a more reliable check for supported property descriptors.
+
+1.0.2 / 2015-05-23
+=================
+ * Test up to `io.js` `v2.0`
+ * Update `tape`, `jscs`, `nsp`, `eslint`, `object-keys`, `editorconfig-tools`, `covert`
+
+1.0.1 / 2015-01-06
+=================
+ * Update `object-keys` to fix ES3 support
+
+1.0.0 / 2015-01-04
+=================
+ * v1.0.0
diff --git a/tools/ui/node_modules/define-properties/LICENSE b/tools/ui/node_modules/define-properties/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..8c271c14b62fa20621eac06b1fb298602f82324a
--- /dev/null
+++ b/tools/ui/node_modules/define-properties/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (C) 2015 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
\ No newline at end of file
diff --git a/tools/ui/node_modules/define-properties/README.md b/tools/ui/node_modules/define-properties/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..650adfa3abe49a7af371769702b948d017e19dae
--- /dev/null
+++ b/tools/ui/node_modules/define-properties/README.md
@@ -0,0 +1,84 @@
+# define-properties [![Version Badge][npm-version-svg]][package-url]
+
+[![github actions][actions-image]][actions-url]
+[![coverage][codecov-image]][codecov-url]
+[![dependency status][deps-svg]][deps-url]
+[![dev dependency status][dev-deps-svg]][dev-deps-url]
+[![License][license-image]][license-url]
+[![Downloads][downloads-image]][downloads-url]
+
+[![npm badge][npm-badge-png]][package-url]
+
+Define multiple non-enumerable properties at once. Uses `Object.defineProperty` when available; falls back to standard assignment in older engines.
+Existing properties are not overridden. Accepts a map of property names to a predicate that, when true, force-overrides.
+
+## Example
+
+```js
+var define = require('define-properties');
+var assert = require('assert');
+
+var obj = define({ a: 1, b: 2 }, {
+ a: 10,
+ b: 20,
+ c: 30
+});
+assert(obj.a === 1);
+assert(obj.b === 2);
+assert(obj.c === 30);
+if (define.supportsDescriptors) {
+ assert.deepEqual(Object.keys(obj), ['a', 'b']);
+ assert.deepEqual(Object.getOwnPropertyDescriptor(obj, 'c'), {
+ configurable: true,
+ enumerable: false,
+ value: 30,
+ writable: false
+ });
+}
+```
+
+Then, with predicates:
+```js
+var define = require('define-properties');
+var assert = require('assert');
+
+var obj = define({ a: 1, b: 2, c: 3 }, {
+ a: 10,
+ b: 20,
+ c: 30
+}, {
+ a: function () { return false; },
+ b: function () { return true; }
+});
+assert(obj.a === 1);
+assert(obj.b === 20);
+assert(obj.c === 3);
+if (define.supportsDescriptors) {
+ assert.deepEqual(Object.keys(obj), ['a', 'c']);
+ assert.deepEqual(Object.getOwnPropertyDescriptor(obj, 'b'), {
+ configurable: true,
+ enumerable: false,
+ value: 20,
+ writable: false
+ });
+}
+```
+
+## Tests
+Simply clone the repo, `npm install`, and run `npm test`
+
+[package-url]: https://npmjs.org/package/define-properties
+[npm-version-svg]: https://versionbadg.es/ljharb/define-properties.svg
+[deps-svg]: https://david-dm.org/ljharb/define-properties.svg
+[deps-url]: https://david-dm.org/ljharb/define-properties
+[dev-deps-svg]: https://david-dm.org/ljharb/define-properties/dev-status.svg
+[dev-deps-url]: https://david-dm.org/ljharb/define-properties#info=devDependencies
+[npm-badge-png]: https://nodei.co/npm/define-properties.png?downloads=true&stars=true
+[license-image]: https://img.shields.io/npm/l/define-properties.svg
+[license-url]: LICENSE
+[downloads-image]: https://img.shields.io/npm/dm/define-properties.svg
+[downloads-url]: https://npm-stat.com/charts.html?package=define-properties
+[codecov-image]: https://codecov.io/gh/ljharb/define-properties/branch/main/graphs/badge.svg
+[codecov-url]: https://app.codecov.io/gh/ljharb/define-properties/
+[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/define-properties
+[actions-url]: https://github.com/ljharb/define-properties/actions
diff --git a/tools/ui/node_modules/define-properties/index.js b/tools/ui/node_modules/define-properties/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..1860404e43936e999a17ecc019a7cf9cf50527a2
--- /dev/null
+++ b/tools/ui/node_modules/define-properties/index.js
@@ -0,0 +1,47 @@
+'use strict';
+
+var keys = require('object-keys');
+var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
+
+var toStr = Object.prototype.toString;
+var concat = Array.prototype.concat;
+var defineDataProperty = require('define-data-property');
+
+var isFunction = function (fn) {
+ return typeof fn === 'function' && toStr.call(fn) === '[object Function]';
+};
+
+var supportsDescriptors = require('has-property-descriptors')();
+
+var defineProperty = function (object, name, value, predicate) {
+ if (name in object) {
+ if (predicate === true) {
+ if (object[name] === value) {
+ return;
+ }
+ } else if (!isFunction(predicate) || !predicate()) {
+ return;
+ }
+ }
+
+ if (supportsDescriptors) {
+ defineDataProperty(object, name, value, true);
+ } else {
+ defineDataProperty(object, name, value);
+ }
+};
+
+var defineProperties = function (object, map) {
+ var predicates = arguments.length > 2 ? arguments[2] : {};
+ var props = keys(map);
+ if (hasSymbols) {
+ props = concat.call(props, Object.getOwnPropertySymbols(map));
+ }
+ for (var i = 0; i < props.length; i += 1) {
+ defineProperty(object, props[i], map[props[i]], predicates[props[i]]);
+ }
+};
+
+defineProperties.supportsDescriptors = !!supportsDescriptors;
+
+module.exports = defineProperties;
diff --git a/tools/ui/node_modules/define-properties/package.json b/tools/ui/node_modules/define-properties/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..577d8853b31efe472bcfb15923fee05a0ca6bd2d
--- /dev/null
+++ b/tools/ui/node_modules/define-properties/package.json
@@ -0,0 +1,88 @@
+{
+ "name": "define-properties",
+ "version": "1.2.1",
+ "author": "Jordan Harband ",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ },
+ "description": "Define multiple non-enumerable properties at once. Uses `Object.defineProperty` when available; falls back to standard assignment in older engines.",
+ "license": "MIT",
+ "main": "index.js",
+ "scripts": {
+ "prepack": "npmignore --auto --commentLines=autogenerated",
+ "prepublish": "not-in-publish || npm run prepublishOnly",
+ "prepublishOnly": "safe-publish-latest",
+ "pretest": "npm run lint",
+ "test": "npm run tests-only",
+ "posttest": "aud --production",
+ "tests-only": "nyc tape 'test/**/*.js'",
+ "lint": "eslint --ext=js,mjs .",
+ "version": "auto-changelog && git add CHANGELOG.md",
+ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
+ },
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/ljharb/define-properties.git"
+ },
+ "keywords": [
+ "Object.defineProperty",
+ "Object.defineProperties",
+ "object",
+ "property descriptor",
+ "descriptor",
+ "define",
+ "ES5"
+ ],
+ "dependencies": {
+ "define-data-property": "^1.0.1",
+ "has-property-descriptors": "^1.0.0",
+ "object-keys": "^1.1.1"
+ },
+ "devDependencies": {
+ "@ljharb/eslint-config": "^21.1.0",
+ "aud": "^2.0.3",
+ "auto-changelog": "^2.4.0",
+ "eslint": "=8.8.0",
+ "in-publish": "^2.0.1",
+ "npmignore": "^0.3.0",
+ "nyc": "^10.3.2",
+ "safe-publish-latest": "^2.0.0",
+ "tape": "^5.6.6"
+ },
+ "testling": {
+ "files": "test/index.js",
+ "browsers": [
+ "iexplore/6.0..latest",
+ "firefox/3.0..6.0",
+ "firefox/15.0..latest",
+ "firefox/nightly",
+ "chrome/4.0..10.0",
+ "chrome/20.0..latest",
+ "chrome/canary",
+ "opera/10.0..latest",
+ "opera/next",
+ "safari/4.0..latest",
+ "ipad/6.0..latest",
+ "iphone/6.0..latest",
+ "android-browser/4.2"
+ ]
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "auto-changelog": {
+ "output": "CHANGELOG.md",
+ "template": "keepachangelog",
+ "unreleased": false,
+ "commitLimit": false,
+ "backfillLimit": false,
+ "hideCredit": true,
+ "startingVersion": "1.1.5"
+ },
+ "publishConfig": {
+ "ignore": [
+ ".github/workflows",
+ "test/"
+ ]
+ }
+}
diff --git a/tools/ui/node_modules/defu/LICENSE b/tools/ui/node_modules/defu/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..e739abce461d8b2899aaec6529a4af24a417e0fc
--- /dev/null
+++ b/tools/ui/node_modules/defu/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Pooya Parsa
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/tools/ui/node_modules/defu/README.md b/tools/ui/node_modules/defu/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..09e6a077baef427b99426eb0b41a8d5de1e637db
--- /dev/null
+++ b/tools/ui/node_modules/defu/README.md
@@ -0,0 +1,171 @@
+# 🌊 defu
+
+Assign default properties, recursively. Lightweight and Fast.
+
+[![npm version][npm-version-src]][npm-version-href]
+[![npm downloads][npm-downloads-src]][npm-downloads-href]
+[![bundle][bundle-src]][bundle-href]
+[![Codecov][codecov-src]][codecov-href]
+[![License][license-src]][license-href]
+
+## Install
+
+Install package:
+
+```bash
+# yarn
+yarn add defu
+# npm
+npm install defu
+# pnpm
+pnpm install defu
+```
+
+## Usage
+
+```js
+import { defu } from "defu";
+
+const options = defu(object, ...defaults);
+```
+
+Leftmost arguments have more priority when assigning defaults.
+
+### Arguments
+
+- **object (Object):** The destination object.
+- **source (Object):** The source object.
+
+```js
+import { defu } from "defu";
+
+console.log(defu({ a: { b: 2 } }, { a: { b: 1, c: 3 } }));
+// => { a: { b: 2, c: 3 } }
+```
+
+### Using with CommonJS
+
+```js
+const { defu } = require("defu");
+```
+
+## Custom Merger
+
+Sometimes default merging strategy is not desirable. Using `createDefu` we can create a custom instance with different merging strategy.
+
+This function accepts `obj` (source object), `key` and `value` (current value) and should return `true` if applied custom merging.
+
+**Example:** Sum numbers instead of overriding
+
+```js
+import { createDefu } from "defu";
+
+const ext = createDefu((obj, key, value) => {
+ if (typeof obj[key] === "number" && typeof value === "number") {
+ obj[key] += value;
+ return true;
+ }
+});
+
+ext({ cost: 15 }, { cost: 10 }); // { cost: 25 }
+```
+
+## Function Merger
+
+Using `defuFn`, if user provided a function, it will be called with default value instead of merging.
+
+It can be useful for default values manipulation.
+
+**Example:** Filter some items from defaults (array) and add 20 to the count default value.
+
+```js
+import { defuFn } from "defu";
+
+defuFn(
+ {
+ ignore: (val) => val.filter((item) => item !== "dist"),
+ count: (count) => count + 20,
+ },
+ {
+ ignore: ["node_modules", "dist"],
+ count: 10,
+ },
+);
+/*
+ {
+ ignore: ['node_modules'],
+ count: 30
+ }
+ */
+```
+
+**Note:** if the default value is not defined, the function defined won't be called and kept as value.
+
+## Array Function Merger
+
+`defuArrayFn` is similar to `defuFn` but **only applies to array values defined in defaults**.
+
+**Example:** Filter some items from defaults (array) and add 20 to the count default value.
+
+```js
+import { defuArrayFn } from "defu";
+
+defuArrayFn(
+ {
+ ignore: (val) => val.filter((i) => i !== "dist"),
+ count: () => 20,
+ },
+ {
+ ignore: ["node_modules", "dist"],
+ count: 10,
+ },
+);
+/*
+ {
+ ignore: ['node_modules'],
+ count: () => 20
+ }
+ */
+```
+
+**Note:** the function is called only if the value defined in defaults is an aray.
+
+### Remarks
+
+- `object` and `defaults` are not modified
+- Nullish values ([`null`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null) and [`undefined`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined)) are skipped. Please use [defaults-deep](https://www.npmjs.com/package/defaults-deep) or [omit-deep](http://npmjs.com/package/omit-deep) or [lodash.defaultsdeep](https://www.npmjs.com/package/lodash.defaultsdeep) if you need to preserve or different behavior.
+- Assignment of `__proto__` and `constructor` keys will be skipped to prevent security issues with object pollution.
+- Will concat `array` values (if default property is defined)
+
+```js
+console.log(defu({ array: ["b", "c"] }, { array: ["a"] }));
+// => { array: ['b', 'c', 'a'] }
+```
+
+## Type
+
+We expose `Defu` as a type utility to return a merged type that follows the rules that defu follows.
+
+```js
+import type { Defu } from 'defu'
+
+type Options = Defu<{ foo: 'bar' }, [{}, { bar: 'baz' }, { something: 42 }]>
+// returns { foo: 'bar', bar: 'baz', 'something': 42 }
+```
+
+## License
+
+MIT. Made with 💖
+
+
+
+[npm-version-src]: https://img.shields.io/npm/v/defu?style=flat&colorA=18181B&colorB=F0DB4F
+[npm-version-href]: https://npmjs.com/package/defu
+[npm-downloads-src]: https://img.shields.io/npm/dm/defu?style=flat&colorA=18181B&colorB=F0DB4F
+[npm-downloads-href]: https://npmjs.com/package/defu
+[codecov-src]: https://img.shields.io/codecov/c/gh/unjs/defu/main?style=flat&colorA=18181B&colorB=F0DB4F
+[codecov-href]: https://codecov.io/gh/unjs/defu
+[bundle-src]: https://img.shields.io/bundlephobia/minzip/defu?style=flat&colorA=18181B&colorB=F0DB4F
+[bundle-href]: https://bundlephobia.com/result?p=defu
+[license-src]: https://img.shields.io/github/license/unjs/defu.svg?style=flat&colorA=18181B&colorB=F0DB4F
+[license-href]: https://github.com/unjs/defu/blob/main/LICENSE
diff --git a/tools/ui/node_modules/defu/dist/defu.cjs b/tools/ui/node_modules/defu/dist/defu.cjs
new file mode 100644
index 0000000000000000000000000000000000000000..95e5c7daf2a4b93d4a1d61fadc0a25b7d094b03f
--- /dev/null
+++ b/tools/ui/node_modules/defu/dist/defu.cjs
@@ -0,0 +1,77 @@
+'use strict';
+
+Object.defineProperty(exports, '__esModule', { value: true });
+
+function isPlainObject(value) {
+ if (value === null || typeof value !== "object") {
+ return false;
+ }
+ const prototype = Object.getPrototypeOf(value);
+ if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {
+ return false;
+ }
+ if (Symbol.iterator in value) {
+ return false;
+ }
+ if (Symbol.toStringTag in value) {
+ return Object.prototype.toString.call(value) === "[object Module]";
+ }
+ return true;
+}
+
+function _defu(baseObject, defaults, namespace = ".", merger) {
+ if (!isPlainObject(defaults)) {
+ return _defu(baseObject, {}, namespace, merger);
+ }
+ const object = { ...defaults };
+ for (const key of Object.keys(baseObject)) {
+ if (key === "__proto__" || key === "constructor") {
+ continue;
+ }
+ const value = baseObject[key];
+ if (value === null || value === void 0) {
+ continue;
+ }
+ if (merger && merger(object, key, value, namespace)) {
+ continue;
+ }
+ if (Array.isArray(value) && Array.isArray(object[key])) {
+ object[key] = [...value, ...object[key]];
+ } else if (isPlainObject(value) && isPlainObject(object[key])) {
+ object[key] = _defu(
+ value,
+ object[key],
+ (namespace ? `${namespace}.` : "") + key.toString(),
+ merger
+ );
+ } else {
+ object[key] = value;
+ }
+ }
+ return object;
+}
+function createDefu(merger) {
+ return (...arguments_) => (
+ // eslint-disable-next-line unicorn/no-array-reduce
+ arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
+ );
+}
+const defu = createDefu();
+const defuFn = createDefu((object, key, currentValue) => {
+ if (object[key] !== void 0 && typeof currentValue === "function") {
+ object[key] = currentValue(object[key]);
+ return true;
+ }
+});
+const defuArrayFn = createDefu((object, key, currentValue) => {
+ if (Array.isArray(object[key]) && typeof currentValue === "function") {
+ object[key] = currentValue(object[key]);
+ return true;
+ }
+});
+
+exports.createDefu = createDefu;
+exports.default = defu;
+exports.defu = defu;
+exports.defuArrayFn = defuArrayFn;
+exports.defuFn = defuFn;
diff --git a/tools/ui/node_modules/defu/dist/defu.d.cts b/tools/ui/node_modules/defu/dist/defu.d.cts
new file mode 100644
index 0000000000000000000000000000000000000000..d85a2760fee4546cabb4629fd6a25c8ac50decc8
--- /dev/null
+++ b/tools/ui/node_modules/defu/dist/defu.d.cts
@@ -0,0 +1,31 @@
+type Input = Record;
+type IgnoredInput = boolean | number | null | any[] | Record | undefined;
+type Merger = (object: T, key: keyof T, value: T[K], namespace: string) => any;
+type nullish = null | undefined | void;
+type MergeObjects = Destination extends Defaults ? Destination : Omit & Omit & {
+ -readonly [Key in keyof Destination & keyof Defaults]: Destination[Key] extends nullish ? Defaults[Key] extends nullish ? nullish : Defaults[Key] : Defaults[Key] extends nullish ? Destination[Key] : Merge;
+};
+type Defu> = D extends [
+ infer F,
+ ...infer Rest
+] ? F extends Input ? Rest extends Array ? Defu, Rest> : MergeObjects : F extends IgnoredInput ? Rest extends Array ? Defu : S : S : S;
+type DefuFn = >(source: Source, ...defaults: Defaults) => Defu;
+interface DefuInstance {
+ >(source: Source | IgnoredInput, ...defaults: Defaults): Defu;
+ fn: DefuFn;
+ arrayFn: DefuFn;
+ extend(merger?: Merger): DefuFn;
+}
+type MergeArrays = Destination extends Array ? Source extends Array ? Array : Source | Array : Source | Destination;
+type Merge = Destination extends nullish ? Defaults extends nullish ? nullish : Defaults : Defaults extends nullish ? Destination : Destination extends Array ? Defaults extends Array ? MergeArrays : Destination | Defaults : Destination extends Function ? Destination | Defaults : Destination extends RegExp ? Destination | Defaults : Destination extends Promise ? Destination | Defaults : Defaults extends Function ? Destination | Defaults : Defaults extends RegExp ? Destination | Defaults : Defaults extends Promise ? Destination | Defaults : Destination extends Input ? Defaults extends Input ? MergeObjects : Destination | Defaults : Destination | Defaults;
+
+declare function createDefu(merger?: Merger): DefuFn;
+declare const defu: DefuInstance;
+
+declare const defuFn: DefuFn;
+declare const defuArrayFn: DefuFn;
+
+// @ts-ignore
+export = defu;
+export { createDefu, defu, defuArrayFn, defuFn };
+export type { Defu, DefuFn, DefuInstance };
diff --git a/tools/ui/node_modules/defu/dist/defu.d.mts b/tools/ui/node_modules/defu/dist/defu.d.mts
new file mode 100644
index 0000000000000000000000000000000000000000..a66c162695f3aabd142db8057a6da230a9c9f5a1
--- /dev/null
+++ b/tools/ui/node_modules/defu/dist/defu.d.mts
@@ -0,0 +1,29 @@
+type Input = Record;
+type IgnoredInput = boolean | number | null | any[] | Record | undefined;
+type Merger = (object: T, key: keyof T, value: T[K], namespace: string) => any;
+type nullish = null | undefined | void;
+type MergeObjects = Destination extends Defaults ? Destination : Omit & Omit & {
+ -readonly [Key in keyof Destination & keyof Defaults]: Destination[Key] extends nullish ? Defaults[Key] extends nullish ? nullish : Defaults[Key] : Defaults[Key] extends nullish ? Destination[Key] : Merge;
+};
+type Defu> = D extends [
+ infer F,
+ ...infer Rest
+] ? F extends Input ? Rest extends Array ? Defu, Rest> : MergeObjects : F extends IgnoredInput ? Rest extends Array ? Defu : S : S : S;
+type DefuFn = >(source: Source, ...defaults: Defaults) => Defu;
+interface DefuInstance {
+ >(source: Source | IgnoredInput, ...defaults: Defaults): Defu;
+ fn: DefuFn;
+ arrayFn: DefuFn;
+ extend(merger?: Merger): DefuFn;
+}
+type MergeArrays = Destination extends Array ? Source extends Array ? Array : Source | Array : Source | Destination;
+type Merge = Destination extends nullish ? Defaults extends nullish ? nullish : Defaults : Defaults extends nullish ? Destination : Destination extends Array ? Defaults extends Array ? MergeArrays : Destination | Defaults : Destination extends Function ? Destination | Defaults : Destination extends RegExp ? Destination | Defaults : Destination extends Promise ? Destination | Defaults : Defaults extends Function ? Destination | Defaults : Defaults extends RegExp ? Destination | Defaults : Defaults extends Promise ? Destination | Defaults : Destination extends Input ? Defaults extends Input ? MergeObjects : Destination | Defaults : Destination | Defaults;
+
+declare function createDefu(merger?: Merger): DefuFn;
+declare const defu: DefuInstance;
+
+declare const defuFn: DefuFn;
+declare const defuArrayFn: DefuFn;
+
+export { createDefu, defu as default, defu, defuArrayFn, defuFn };
+export type { Defu, DefuFn, DefuInstance };
diff --git a/tools/ui/node_modules/defu/dist/defu.d.ts b/tools/ui/node_modules/defu/dist/defu.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..d85a2760fee4546cabb4629fd6a25c8ac50decc8
--- /dev/null
+++ b/tools/ui/node_modules/defu/dist/defu.d.ts
@@ -0,0 +1,31 @@
+type Input = Record;
+type IgnoredInput = boolean | number | null | any[] | Record | undefined;
+type Merger =